mirror of https://github.com/KLayout/klayout.git
Fixed tests
This commit is contained in:
parent
b3992ab25c
commit
30a5954f77
|
|
@ -40,6 +40,7 @@
|
|||
#include "dbCellMapping.h"
|
||||
#include "dbLayerMapping.h"
|
||||
#include "dbCell.h"
|
||||
#include "dbLog.h"
|
||||
|
||||
#include <QUrl>
|
||||
#include <QPainter>
|
||||
|
|
@ -792,6 +793,29 @@ NetlistBrowserPage::navigate_to (const QModelIndex &index, bool fwd)
|
|||
selection_changed (hierarchy_tree, directory_tree);
|
||||
}
|
||||
|
||||
void
|
||||
NetlistBrowserPage::log_selection_changed ()
|
||||
{
|
||||
clear_highlights ();
|
||||
|
||||
NetlistLogModel *model = dynamic_cast<NetlistLogModel *> (log_view->model ());
|
||||
tl_assert (model != 0);
|
||||
|
||||
QModelIndexList selection = log_view->selectionModel ()->selectedIndexes ();
|
||||
for (QModelIndexList::const_iterator i = selection.begin (); i != selection.end (); ++i) {
|
||||
if (i->column () == 0) {
|
||||
const db::LogEntryData *le = model->log_entry (*i);
|
||||
if (le && le->geometry () != db::DPolygon ()) {
|
||||
|
||||
// @@@ TODO: add highlight for error here.
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
update_highlights ();
|
||||
}
|
||||
|
||||
void
|
||||
NetlistBrowserPage::add_to_history (const QModelIndex &index, bool fwd)
|
||||
{
|
||||
|
|
@ -1140,6 +1164,8 @@ NetlistBrowserPage::setup_trees ()
|
|||
delete log_view->model ();
|
||||
log_view->setModel (new_model);
|
||||
|
||||
connect (log_view->selectionModel (), SIGNAL (selectionChanged (const QItemSelection &, const QItemSelection &)), this, SLOT (log_selection_changed ()));
|
||||
|
||||
log_tab_icon = NetlistLogModel::icon_for_severity (new_model->max_severity ());
|
||||
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -211,6 +211,7 @@ private slots:
|
|||
void nl_selection_changed ();
|
||||
void sch_selection_changed ();
|
||||
void xref_selection_changed ();
|
||||
void log_selection_changed ();
|
||||
void browse_color_for_net ();
|
||||
void select_color_for_net ();
|
||||
|
||||
|
|
|
|||
|
|
@ -182,10 +182,11 @@ NetlistLogModel::icon_for_severity (db::Severity severity)
|
|||
}
|
||||
}
|
||||
|
||||
QVariant
|
||||
NetlistLogModel::data (const QModelIndex &index, int role) const
|
||||
const db::LogEntryData *
|
||||
NetlistLogModel::log_entry (const QModelIndex &index) const
|
||||
{
|
||||
const db::LogEntryData *le = 0;
|
||||
|
||||
if (index.parent ().isValid ()) {
|
||||
const circuit_entry *ce = (const circuit_entry *) index.internalPointer ();
|
||||
if (ce) {
|
||||
|
|
@ -200,6 +201,14 @@ NetlistLogModel::data (const QModelIndex &index, int role) const
|
|||
}
|
||||
}
|
||||
|
||||
return le;
|
||||
}
|
||||
|
||||
QVariant
|
||||
NetlistLogModel::data (const QModelIndex &index, int role) const
|
||||
{
|
||||
const db::LogEntryData *le = log_entry (index);
|
||||
|
||||
if (role == Qt::DecorationRole) {
|
||||
|
||||
if (le) {
|
||||
|
|
|
|||
|
|
@ -52,6 +52,8 @@ public:
|
|||
virtual QVariant data (const QModelIndex &index, int role) const;
|
||||
virtual QVariant headerData (int section, Qt::Orientation orientation, int role) const;
|
||||
|
||||
const db::LogEntryData *log_entry (const QModelIndex &index) const;
|
||||
|
||||
static QIcon icon_for_severity (db::Severity severity);
|
||||
|
||||
db::Severity max_severity () const
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ J(
|
|||
C(l2 l6 l2)
|
||||
C(l5 l6 l5)
|
||||
G(l14 SUBSTRATE)
|
||||
H(W B('Must-connect nets GND must be connected further up in the hierarchy - this is an error at the chip top level') C(INVCHAIN))
|
||||
H(W B('Must-connect nets R must be connected further up in the hierarchy - this is an error at the chip top level') C(INVCHAIN))
|
||||
H(E B('Must-connect nets R are not connected in INVCHAIN') C(INV2))
|
||||
H(W B('Must-connect nets GND must be connected further up in the hierarchy - this is an error at chip top level') C(INVCHAIN) X('must-connect'))
|
||||
H(W B('Must-connect nets R must be connected further up in the hierarchy - this is an error at chip top level') C(INVCHAIN) X('must-connect'))
|
||||
H(E B('Must-connect nets R of circuit INV2 are not connected') C(INVCHAIN) X('must-connect') Q('(0,0;0,9.2;3,9.2;3,0)'))
|
||||
K(PMOS MOS3)
|
||||
K(NMOS MOS3)
|
||||
D(D$PMOS PMOS
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ J(
|
|||
C(l2 l6 l2)
|
||||
C(l5 l6 l5)
|
||||
G(l14 SUBSTRATE)
|
||||
H(W B('Must-connect nets GND must be connected further up in the hierarchy - this is an error at the chip top level') C(INVCHAIN))
|
||||
H(W B('Must-connect nets R must be connected further up in the hierarchy - this is an error at the chip top level') C(INVCHAIN))
|
||||
H(E B('Must-connect nets R are not connected in INVCHAIN') C(INV2))
|
||||
H(W B('Must-connect nets GND must be connected further up in the hierarchy - this is an error at chip top level') C(INVCHAIN) X('must-connect'))
|
||||
H(W B('Must-connect nets R must be connected further up in the hierarchy - this is an error at chip top level') C(INVCHAIN) X('must-connect'))
|
||||
H(E B('Must-connect nets R of circuit INV2 are not connected') C(INVCHAIN) X('must-connect') Q('(0,0;0,9.2;3,9.2;3,0)'))
|
||||
K(PMOS MOS3)
|
||||
K(NMOS MOS3)
|
||||
D(D$PMOS PMOS
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ layout(
|
|||
global(l6 vss)
|
||||
|
||||
# Log entries
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at the chip top level') cell(SP6TArray_2X4))
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at chip top level') cell(SP6TArray_2X4) cat('must-connect'))
|
||||
|
||||
# Device class section
|
||||
class(active_res RES)
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ layout(
|
|||
global(l6 vss)
|
||||
|
||||
# Log entries
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at the chip top level') cell(SP6TArray_2X4))
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at chip top level') cell(SP6TArray_2X4) cat('must-connect'))
|
||||
|
||||
# Device class section
|
||||
class(active_res RES)
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ layout(
|
|||
global(l6 vss)
|
||||
|
||||
# Log entries
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at the chip top level') cell(SP6TArray_2X4))
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at chip top level') cell(SP6TArray_2X4) cat('must-connect'))
|
||||
|
||||
# Device class section
|
||||
class(active_res RES)
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ layout(
|
|||
global(l6 vss)
|
||||
|
||||
# Log entries
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at the chip top level') cell(SP6TArray_2X4))
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at chip top level') cell(SP6TArray_2X4) cat('must-connect'))
|
||||
|
||||
# Device class section
|
||||
class(active_res RES)
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ layout(
|
|||
global(l1 vss)
|
||||
|
||||
# Log entries
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at the chip top level') cell(SP6TArray_2X4))
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at chip top level') cell(SP6TArray_2X4) cat('must-connect'))
|
||||
|
||||
# Device class section
|
||||
class(active_res RES)
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ layout(
|
|||
global(l1 vss)
|
||||
|
||||
# Log entries
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at the chip top level') cell(SP6TArray_2X4))
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at chip top level') cell(SP6TArray_2X4) cat('must-connect'))
|
||||
|
||||
# Device class section
|
||||
class(active_res RES)
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ layout(
|
|||
global(l1 vss)
|
||||
|
||||
# Log entries
|
||||
message(warning description('Must-connect nets vdd from circuit SP6TArray_2X4 must be connected further up in the hierarchy. This is an error at the chip top level.'))
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at chip top level') cell(SP6TArray_2X4) cat('must-connect'))
|
||||
|
||||
# Device class section
|
||||
class(active_res RES)
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ layout(
|
|||
global(l1 vss)
|
||||
|
||||
# Log entries
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at the chip top level') cell(SP6TArray_2X4))
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at chip top level') cell(SP6TArray_2X4) cat('must-connect'))
|
||||
|
||||
# Device class section
|
||||
class(active_res RES)
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ layout(
|
|||
global(l1 vss)
|
||||
|
||||
# Log entries
|
||||
message(warning description('Must-connect nets vdd from circuit SP6TArray_2X4 must be connected further up in the hierarchy. This is an error at the chip top level.'))
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at chip top level') cell(SP6TArray_2X4) cat('must-connect'))
|
||||
|
||||
# Device class section
|
||||
class(active_res RES)
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ layout(
|
|||
global(l1 vss)
|
||||
|
||||
# Log entries
|
||||
message(warning description('Must-connect nets vdd from circuit SP6TArray_2X4 must be connected further up in the hierarchy. This is an error at the chip top level.'))
|
||||
message(warning description('Must-connect nets vdd must be connected further up in the hierarchy - this is an error at chip top level') cell(SP6TArray_2X4) cat('must-connect'))
|
||||
|
||||
# Device class section
|
||||
class(active_res RES)
|
||||
|
|
|
|||
Loading…
Reference in New Issue