diff --git a/plugins/gui/src/grouping/grouping_manager_widget.cpp b/plugins/gui/src/grouping/grouping_manager_widget.cpp index 365f998ade8..0186afc89b1 100644 --- a/plugins/gui/src/grouping/grouping_manager_widget.cpp +++ b/plugins/gui/src/grouping/grouping_manager_widget.cpp @@ -119,7 +119,7 @@ namespace hal void GroupingManagerWidget::handleColorSelectClicked() { - QModelIndex currentIndex = mGroupingTableView->currentIndex(); + QModelIndex currentIndex = m_proxy_model->mapToSource(mGroupingTableView->currentIndex()); if (!currentIndex.isValid()) return; QModelIndex nameIndex = mGroupingTableModel->index(currentIndex.row(),0); QString name = mGroupingTableModel->data(nameIndex,Qt::DisplayRole).toString(); @@ -132,7 +132,7 @@ namespace hal void GroupingManagerWidget::handleToSelectionClicked() { - QModelIndex currentIndex = mGroupingTableView->currentIndex(); + QModelIndex currentIndex = m_proxy_model->mapToSource(mGroupingTableView->currentIndex()); if (!currentIndex.isValid()) return; Grouping* grp = getCurrentGrouping().grouping(); if (!grp) return; @@ -147,7 +147,7 @@ namespace hal void GroupingManagerWidget::handleRenameGroupingClicked() { - QModelIndex currentIndex = mGroupingTableView->currentIndex(); + QModelIndex currentIndex = m_proxy_model->mapToSource(mGroupingTableView->currentIndex()); if (!currentIndex.isValid()) return; QModelIndex modelIndex = mGroupingTableModel->index(currentIndex.row(),0); @@ -166,7 +166,7 @@ namespace hal void GroupingManagerWidget::handleDeleteGroupingClicked() { - mGroupingTableModel->removeRows(mGroupingTableView->currentIndex().row()); + mGroupingTableModel->removeRows(m_proxy_model->mapToSource(mGroupingTableView->currentIndex()).row()); } void GroupingManagerWidget::handle_selection_changed(const QItemSelection &selected, const QItemSelection &deselected) @@ -200,7 +200,7 @@ namespace hal GroupingTableEntry GroupingManagerWidget::getCurrentGrouping() { - QModelIndex modelIndex = mGroupingTableView->currentIndex(); + QModelIndex modelIndex = m_proxy_model->mapToSource(mGroupingTableView->currentIndex()); return mGroupingTableModel->groupingAt(modelIndex.row()); } diff --git a/plugins/gui/src/grouping/grouping_table_model.cpp b/plugins/gui/src/grouping/grouping_table_model.cpp index 6ccb74e680e..5a76b709abf 100644 --- a/plugins/gui/src/grouping/grouping_table_model.cpp +++ b/plugins/gui/src/grouping/grouping_table_model.cpp @@ -37,6 +37,21 @@ namespace hal { GroupingTableModel::GroupingTableModel(QObject* parent) : QAbstractTableModel(parent), mDisableEvents(false) { + //on creation load all already existing groupings from the netlist into the model + for(auto grp : g_netlist->get_groupings()) + { + mDisableEvents = true; + Q_EMIT layoutAboutToBeChanged(); + GroupingTableEntry gte(grp->get_id(), nextColor()); + int n = mGroupings.size(); + mGroupings.append(gte); + Q_EMIT layoutChanged(); + mDisableEvents = false; + + QModelIndex inx = index(n,0); + Q_EMIT newEntryAdded(inx); + } + connect(g_netlist_relay, &NetlistRelay::grouping_created, this, &GroupingTableModel::createGroupingEvent); connect(g_netlist_relay, &NetlistRelay::grouping_removed, this, &GroupingTableModel::deleteGroupingEvent); connect(g_netlist_relay, &NetlistRelay::grouping_nameChanged, this, &GroupingTableModel::groupingNameChangedEvent); diff --git a/wiki_images/graph_view/graph_view_gate_information.png b/wiki_images/graph_view/graph_view_gate_information.png new file mode 100755 index 00000000000..9583b3ab22e Binary files /dev/null and b/wiki_images/graph_view/graph_view_gate_information.png differ diff --git a/wiki_images/graph_view/graph_view_module_information.png b/wiki_images/graph_view/graph_view_module_information.png new file mode 100755 index 00000000000..0241dac0997 Binary files /dev/null and b/wiki_images/graph_view/graph_view_module_information.png differ diff --git a/wiki_images/graph_view/graph_view_overview.png b/wiki_images/graph_view/graph_view_overview.png new file mode 100755 index 00000000000..12ceb0aec5c Binary files /dev/null and b/wiki_images/graph_view/graph_view_overview.png differ diff --git a/wiki_images/selection/multi_selection.png b/wiki_images/selection/multi_selection.png new file mode 100644 index 00000000000..2adffd80e69 Binary files /dev/null and b/wiki_images/selection/multi_selection.png differ diff --git a/wiki_images/selection/single_selection.png b/wiki_images/selection/single_selection.png new file mode 100644 index 00000000000..630ed235348 Binary files /dev/null and b/wiki_images/selection/single_selection.png differ diff --git a/wiki_images/selection_details/selection_details.png b/wiki_images/selection_details/selection_details.png new file mode 100644 index 00000000000..f0eafb4c294 Binary files /dev/null and b/wiki_images/selection_details/selection_details.png differ