COPASI API
4.16.103
|
#include <CQLayoutsWidget.h>
Public Member Functions | |
CQLayoutsWidget (QWidget *parent) | |
void | deleteLayoutWindows () |
virtual bool | leave () |
virtual bool | update (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key) |
virtual | ~CQLayoutsWidget () |
![]() | |
CopasiWidget (QWidget *parent=0, const char *name=0, Qt::WFlags f=0) | |
bool | enter (const std::string &key) |
CCopasiDataModel * | getDataModel () |
bool | getIgnoreUpdates () |
virtual void | setFramework (int framework) |
void | setIgnoreUpdates (bool v) |
Protected Slots | |
virtual void | dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
virtual void | slotBtnClearClicked () |
virtual void | slotBtnDeleteClicked () |
virtual void | slotBtnNewClicked () |
virtual void | slotDoubleClicked (const QModelIndex proxyIndex) |
virtual void | slotFilterChanged () |
virtual void | slotSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
void | slotShowLayout (const QModelIndex &index) |
![]() | |
virtual bool | protectedNotify (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key="") |
Private Types | |
typedef CWindowInterface | LayoutWindow |
typedef std::map< std::string, LayoutWindow * > | LayoutWindowMap |
Private Member Functions | |
LayoutWindow * | createLayoutWindow (int row, CLayout *pLayout) |
void | deleteSelectedLayouts () |
virtual bool | enterProtected () |
void | showButtons () |
void | updateDeleteBtns () |
Private Attributes | |
LayoutWindowMap | mLayoutWindowMap |
CQLayoutsDM * | mpLayoutsDM |
CQSortFilterProxyModel * | mpProxyModel |
CQPushButtonDelegate * | mpPushButtonDelegate |
Additional Inherited Members | |
![]() | |
int | mFramework |
bool | mIgnoreUpdates |
std::string | mKey |
CCopasiDataModel * | mpDataModel |
ListViews * | mpListView |
CCopasiObject * | mpObject |
Definition at line 30 of file CQLayoutsWidget.h.
|
private |
Definition at line 34 of file CQLayoutsWidget.h.
|
private |
Definition at line 36 of file CQLayoutsWidget.h.
CQLayoutsWidget::CQLayoutsWidget | ( | QWidget * | parent | ) |
Definition at line 44 of file CQLayoutsWidget.cpp.
References COL_ROW_NUMBER, COL_SHOW, dataChanged(), CQIconResource::icon(), mpLayoutsDM, mpProxyModel, mpPushButtonDelegate, CopasiWidget::protectedNotify(), CQPushButtonDelegate::PushButton, slotFilterChanged(), slotShowLayout(), and CQIconResource::unknown.
|
virtual |
|
private |
This creates a new layout window.
This creates a new layout window and return a pointer to it. In case of an error, NULL is returned.
Definition at line 367 of file CQLayoutsWidget.cpp.
References CWindowInterface::addToMainWindow(), CCopasiRootContainer::getConfiguration(), CCopasiRootContainer::getDatamodelList(), CLayout::getKey(), CCopasiObject::getObjectName(), and mLayoutWindowMap.
Referenced by slotBtnNewClicked(), and slotShowLayout().
|
protectedvirtualslot |
Definition at line 348 of file CQLayoutsWidget.cpp.
References showButtons(), and updateDeleteBtns().
Referenced by CQLayoutsWidget(), enterProtected(), and slotBtnNewClicked().
void CQLayoutsWidget::deleteLayoutWindows | ( | ) |
Definition at line 100 of file CQLayoutsWidget.cpp.
References mLayoutWindowMap.
Referenced by slotBtnClearClicked(), ListViews::slotNotify(), and ListViews::~ListViews().
|
private |
Definition at line 113 of file CQLayoutsWidget.cpp.
References CCopasiRootContainer::getDatamodelList(), mLayoutWindowMap, mpLayoutsDM, mpProxyModel, CQLayoutsDM::removeRows(), and CQLayoutsDM::rowCount().
Referenced by slotBtnDeleteClicked().
|
privatevirtual |
Reimplemented from CopasiWidget.
Definition at line 158 of file CQLayoutsWidget.cpp.
References CCopasiVector< T >::begin(), dataChanged(), CCopasiVector< T >::end(), CModel::getCompartments(), CCopasiRootContainer::getDatamodelList(), CCopasiDataModel::getModel(), mLayoutWindowMap, mpLayoutsDM, CQLayoutsDM::setListOfLayouts(), CCopasiVector< T >::size(), and slotSelectionChanged().
Referenced by update().
|
virtual |
Reimplemented from CopasiWidget.
Definition at line 95 of file CQLayoutsWidget.cpp.
|
private |
Definition at line 208 of file CQLayoutsWidget.cpp.
References COL_SHOW, mpLayoutsDM, mpProxyModel, and CQLayoutsDM::rowCount().
Referenced by dataChanged().
|
protectedvirtualslot |
Definition at line 316 of file CQLayoutsWidget.cpp.
References CQLayoutsDM::clear(), deleteLayoutWindows(), mpLayoutsDM, and CQMessageBox::question().
|
protectedvirtualslot |
Definition at line 309 of file CQLayoutsWidget.cpp.
References deleteSelectedLayouts().
|
protectedvirtualslot |
Definition at line 234 of file CQLayoutsWidget.cpp.
References CListOfLayouts::addLayout(), CCopasiSpringLayout::createLayout(), createLayoutWindow(), dataChanged(), CCopasiRootContainer::getDatamodelList(), CCopasiDataModel::getListOfLayouts(), CCopasiDataModel::getModel(), CQAutolayoutWizard::getSelectedCompartments(), CQAutolayoutWizard::getSelectedMetabolites(), CQAutolayoutWizard::getSelectedReactions(), CQAutolayoutWizard::getSideMetabolites(), hasLayout(), CQLayoutsDM::insertRows(), mpLayoutsDM, CCopasiObject::setObjectName(), CCopasiVector< T >::size(), and CQAnimationWindow::slotAutoLayout().
|
protectedvirtualslot |
Definition at line 336 of file CQLayoutsWidget.cpp.
References mpLayoutsDM, mpProxyModel, CQLayoutsDM::rowCount(), and slotShowLayout().
|
protectedvirtualslot |
Definition at line 357 of file CQLayoutsWidget.cpp.
References mpProxyModel.
Referenced by CQLayoutsWidget().
|
protectedvirtualslot |
Definition at line 329 of file CQLayoutsWidget.cpp.
References updateDeleteBtns().
Referenced by enterProtected().
|
protectedslot |
Definition at line 399 of file CQLayoutsWidget.cpp.
References createLayoutWindow(), CCopasiRootContainer::getDatamodelList(), CLayout::getKey(), mLayoutWindowMap, CQNewMainWindow::setMode(), and CQNewMainWindow::slotLayoutChanged().
Referenced by CQLayoutsWidget(), and slotDoubleClicked().
|
virtual |
Reimplemented from CopasiWidget.
Definition at line 84 of file CQLayoutsWidget.cpp.
References enterProtected(), and CopasiWidget::mIgnoreUpdates.
|
private |
Definition at line 151 of file CQLayoutsWidget.cpp.
References mpProxyModel.
Referenced by dataChanged(), and slotSelectionChanged().
|
private |
Definition at line 50 of file CQLayoutsWidget.h.
Referenced by createLayoutWindow(), deleteLayoutWindows(), deleteSelectedLayouts(), enterProtected(), and slotShowLayout().
|
private |
Definition at line 48 of file CQLayoutsWidget.h.
Referenced by CQLayoutsWidget(), deleteSelectedLayouts(), enterProtected(), showButtons(), slotBtnClearClicked(), slotBtnNewClicked(), and slotDoubleClicked().
|
private |
Definition at line 49 of file CQLayoutsWidget.h.
Referenced by CQLayoutsWidget(), deleteSelectedLayouts(), showButtons(), slotDoubleClicked(), slotFilterChanged(), updateDeleteBtns(), and ~CQLayoutsWidget().
|
private |
Definition at line 51 of file CQLayoutsWidget.h.
Referenced by CQLayoutsWidget().