COPASI API
4.16.103
|
#include <copasiui3window.h>
Public Slots | |
void | autoSave () |
void | openInitialDocument (const QString &file) |
void | slotFileOpen (QString file=QString::null) |
void | slotObjectBrowserDialogWasClosed () |
void | slotShowSliders (bool flag) |
Signals | |
void | signalLoadFile (QString newFile) |
void | signalQuit () |
Public Member Functions | |
void | addWindow (QMainWindow *pWindow) |
void | checkPendingMessages () |
void | disableSliders (bool disable) |
void | exportSBMLToString (std::string &SBML) |
DataModelGUI * | getDataModel () |
ListViews * | getMainWidget () |
const QList< QPointer < QMainWindow > > & | getWindows () const |
void | importSBMLFromString (const std::string &sbmlDocumentText) |
const bool & | messageShown () const |
void | removeWindow (QMainWindow *pWindow) |
void | setMessageShown (const bool &shown) |
void | suspendAutoSave (const bool &suspend) |
~CopasiUI3Window () | |
Static Public Member Functions | |
static CopasiUI3Window * | create () |
static CopasiUI3Window * | getMainWindow () |
static bool | isMainThread () |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *e) |
void | dragEnterEvent (QDragEnterEvent *event) |
void | dropEvent (QDropEvent *event) |
Private Member Functions | |
void | CleanUp () |
CopasiUI3Window () | |
void | createActions () |
void | createMenuBar () |
void | createToolBar () |
void | refreshRecentFileMenu () |
void | refreshRecentSBMLFileMenu () |
void | refreshWindowsMenu () |
void | setApplicationFont () |
void | updateTitle () |
Static Private Attributes | |
static CopasiUI3Window * | pMainWindow = NULL |
Definition at line 54 of file copasiui3window.h.
CopasiUI3Window::~CopasiUI3Window | ( | ) |
Definition at line 272 of file copasiui3window.cpp.
References DataModelGUI::deregisterListView(), mpDataModelGUI, mpListView, mpSliders, mWindows, and pdelete.
|
private |
Constructs a CopasiUI window which is a child of 'parent', with the name 'name' and widget flags set to 'f'.
parent | The widget which this window is a child of. |
name | The object name is a text that can be used to identify this QObject. It's particularly useful in conjunction with the Qt Designer. You can find an object by name (and type) using child(), and more than one using queryList(). |
flags | Flags for this widget. Refer Qt::WidgetFlags of Qt documentation for more information about these flags. |
Definition at line 150 of file copasiui3window.cpp.
References AutoSaveInterval, CQIconResource::copasi, createActions(), createMenuBar(), createToolBar(), FixedTitle, FROM_UTF8, ListViews::getCurrentItemId(), CCopasiRootContainer::getDatamodelList(), CQIconResource::icon(), listViewsFolderChanged(), mpaExportODE, mpaExportSBML, mpaSave, mpaSaveAs, mpAutoSaveTimer, mpDataModelGUI, mpListView, mpSliders, mSliderDialogEnabled, mWindows, DataModelGUI::registerListView(), setApplicationFont(), SliderDialog::setChanged(), SliderDialog::setCurrentFolderId(), SliderDialog::setParentWindow(), ListViews::switchToOtherWidget(), updateTitle(), and CVersion::VERSION.
Referenced by create().
|
protectedslot |
Definition at line 1240 of file copasiui3window.cpp.
References FixedTitle, FROM_UTF8, AboutDialog::text, and CVersion::VERSION.
Referenced by createMenuBar().
|
protectedslot |
Definition at line 1259 of file copasiui3window.cpp.
Referenced by createMenuBar().
void CopasiUI3Window::addWindow | ( | QMainWindow * | pWindow | ) |
Definition at line 1966 of file copasiui3window.cpp.
References mWindows, and refreshWindowsMenu().
Referenced by CWindowInterface::addToMainWindow(), and slotShowSliders().
|
slot |
Definition at line 1823 of file copasiui3window.cpp.
References AutoSaveInterval, CCopasiRootContainer::getDatamodelList(), mpAutoSaveTimer, and mSuspendAutoSave.
Referenced by TaskWidget::commonBeforeRunTask().
void CopasiUI3Window::checkPendingMessages | ( | ) |
Definition at line 1744 of file copasiui3window.cpp.
References FROM_UTF8, CCopasiMessage::getLastMessage(), CCopasiMessage::getNumber(), CCopasiMessage::getText(), CCopasiMessage::getType(), CQMessageBox::information(), MCCopasiMessage, and CQMessageBox::setFilteredText().
Referenced by slotExportSBMLFinished(), slotImportSBMLFinished(), slotImportSBMLFromStringFinished(), and slotUpdateMIRIAMFinished().
|
private |
Definition at line 1227 of file copasiui3window.cpp.
References COptions::getValue(), CDirEntry::remove(), CDirEntry::removeFiles(), and signalQuit().
Referenced by slotQuitFinished().
|
protectedvirtual |
|
static |
Definition at line 117 of file copasiui3window.cpp.
References COptions::compareValue(), CopasiUI3Window(), and pMainWindow.
Referenced by main().
|
private |
Definition at line 297 of file copasiui3window.cpp.
References CQIconResource::captureImage, CQIconResource::checkMark, CQIconResource::fileAdd, CQIconResource::fileExport, CQIconResource::fileNew, CQIconResource::fileOpen, CQIconResource::fileSave, CQIconResource::fileSaveas, CQIconResource::icon(), CQIconResource::isToS, CQIconResource::miriam, mpaApplyInitialState, mpaCapture, mpaCheckModel, mpaCloseAllWindows, mpaExpandModel, mpaExportODE, mpaExportSBML, mpaFontSelectionDialog, mpaFunctionDBLoad, mpaFunctionDBSave, mpaImportSBML, mpaNew, mpaObjectBrowser, mpaOpen, mpaOpenCopasiFiles, mpaOpenSBMLFiles, mpaQuit, mpaSave, mpaSaveAs, mpaSliders, mpaUpdateInitialState, mpaUpdateMIRIAM, newDoc(), CQIconResource::slider, slotApplyInitialState(), slotCapture(), slotCheckModel(), slotCloseAllWindows(), slotExpandModel(), slotExportMathModel(), slotExportSBML(), slotFileExamplesCopasiFiles(), slotFileExamplesSBMLFiles(), slotFileOpen(), slotFileSave(), slotFileSaveAs(), slotFontSelection(), slotFunctionDBLoad(), slotFunctionDBSave(), slotImportSBML(), slotQuit(), slotShowObjectBrowserDialog(), slotShowSliders(), slotUpdateInitialState(), slotUpdateMIRIAM(), and CQIconResource::sToIs.
Referenced by CopasiUI3Window().
|
private |
Definition at line 489 of file copasiui3window.cpp.
References about(), aboutQt(), license(), mpaApplyInitialState, mpaCapture, mpaCheckModel, mpaExpandModel, mpaExportODE, mpaExportSBML, mpaFontSelectionDialog, mpaFunctionDBLoad, mpaFunctionDBSave, mpaImportSBML, mpaNew, mpaObjectBrowser, mpaOpen, mpaOpenCopasiFiles, mpaOpenSBMLFiles, mpaQuit, mpaSave, mpaSaveAs, mpaSliders, mpaUpdateInitialState, mpaUpdateMIRIAM, mpMenuExamples, mpMenuRecentFiles, mpMenuRecentSBMLFiles, mpTools, mpWindowsMenu, refreshRecentFileMenu(), refreshRecentSBMLFileMenu(), refreshWindowsMenu(), slotConvertToIrreversible(), slotPreferences(), and slotTutorialWizard().
Referenced by CopasiUI3Window().
|
private |
Definition at line 457 of file copasiui3window.cpp.
References mpaApplyInitialState, mpaCapture, mpaCheckModel, mpaNew, mpaOpen, mpaSave, mpaSliders, mpaUpdateInitialState, mpaUpdateMIRIAM, mpBoxSelectFramework, and slotFrameworkChanged().
Referenced by CopasiUI3Window().
|
protectedslot |
Definition at line 2727 of file copasiui3window.cpp.
void CopasiUI3Window::disableSliders | ( | bool | disable | ) |
The slider dialog has to be disabled before a task is run and reenabled afterwards. Actually the methods stores the state when the value true is passed and restores that state when the value false is passed.
Definition at line 2792 of file copasiui3window.cpp.
References mpSliders, mSliderDialogEnabled, and SliderDialog::updateAllSliders().
Referenced by CProgressBar::CProgressBar(), and CProgressBar::finish().
|
protected |
Definition at line 2731 of file copasiui3window.cpp.
|
protected |
Definition at line 2762 of file copasiui3window.cpp.
References isProabablySBML(), slotFileOpen(), and slotImportSBML().
void CopasiUI3Window::exportSBMLToString | ( | std::string & | SBML | ) |
Definition at line 1932 of file copasiui3window.cpp.
References DataModelGUI::commit(), DataModelGUI::exportSBMLToString(), mpDataModelGUI, and slotExportSBMLToStringFinished().
DataModelGUI * CopasiUI3Window::getDataModel | ( | ) |
Definition at line 1729 of file copasiui3window.cpp.
References mpDataModelGUI.
Referenced by SliderDialog::addSlider(), SliderDialog::createSlidersForFolder(), SliderDialog::updateAllSliders(), and Worker::Worker().
ListViews * CopasiUI3Window::getMainWidget | ( | ) |
Definition at line 1739 of file copasiui3window.cpp.
References mpListView.
Referenced by Worker::finishedLoading(), Worker::getWidgetForTask(), SliderDialog::runCrossSectionTask(), SliderDialog::runLNATask(), SliderDialog::runMCATask(), SliderDialog::runOptimizationTask(), SliderDialog::runParameterEstimationTask(), SliderDialog::runScanTask(), SliderDialog::runSteadyStateTask(), SliderDialog::runTask(), SliderDialog::runTimeCourse(), and WizardDialog::textBrowser_anchorClicked().
|
static |
Definition at line 105 of file copasiui3window.cpp.
References pMainWindow.
Referenced by CWindowInterface::addToMainWindow(), TaskWidget::commonAfterRunTask(), TaskWidget::commonBeforeRunTask(), COutputHandlerPlot::compile(), CProgressBar::CProgressBar(), CQLayoutThread::CQLayoutThread(), CQMessageBox::CQMessageBox(), CProgressBar::create(), CProgressBar::finish(), CWindowInterface::removeFromMainWindow(), slotQuit(), CQProgressDialog::timerShow(), and CQMessageBox::~CQMessageBox().
const QList< QPointer< QMainWindow > > & CopasiUI3Window::getWindows | ( | ) | const |
Returns the list of current windows
Definition at line 1961 of file copasiui3window.cpp.
References mWindows.
Referenced by Worker::slotNotify().
void CopasiUI3Window::importSBMLFromString | ( | const std::string & | sbmlDocumentText | ) |
This is used to import an SBML file from a std::string in the GUI it does all the necessary GUI stuff like asking to save the old document, displaying messages, etc.
Definition at line 1305 of file copasiui3window.cpp.
References DataModelGUI::commit(), ListViews::DELETE, CCopasiRootContainer::getDatamodelList(), DataModelGUI::importSBMLFromString(), SliderDialog::isChanged(), mCommitRequired, ListViews::MODEL, mpDataModelGUI, mpListView, mpSliders, DataModelGUI::notify(), CQMessageBox::question(), slotFileSave(), slotImportSBMLFromStringFinished(), and ListViews::switchToOtherWidget().
|
static |
Definition at line 111 of file copasiui3window.cpp.
References mpMainThread, and pMainWindow.
Referenced by CProgressBar::addItem(), COutputHandlerPlot::compile(), CProgressBar::create(), CQMessageBox::critical(), CProgressBar::finish(), CProgressBar::finishItem(), CQMessageBox::information(), CProgressBar::progressItem(), CQMessageBox::question(), CProgressBar::setName(), and CQMessageBox::warning().
|
protectedslot |
Definition at line 1252 of file copasiui3window.cpp.
References FixedTitle, and CCopasiRootContainer::getLicenseHTML().
Referenced by createMenuBar().
|
protectedslot |
Definition at line 1732 of file copasiui3window.cpp.
References ListViews::getCurrentItemId(), mpListView, mpSliders, refreshWindowsMenu(), and SliderDialog::setCurrentFolderId().
Referenced by CopasiUI3Window().
const bool & CopasiUI3Window::messageShown | ( | ) | const |
|
protectedslot |
Definition at line 700 of file copasiui3window.cpp.
References ListViews::ADD, DataModelGUI::commit(), DataModelGUI::createModel(), ListViews::DELETE, ListViews::getCurrentWidget(), CCopasiRootContainer::getDatamodelList(), SliderDialog::isChanged(), mCommitRequired, mNewFile, ListViews::MODEL, mpaExportODE, mpaExportSBML, mpaSave, mpaSaveAs, mpDataModelGUI, mpListView, mpSliders, mSaveAsRequired, DataModelGUI::notify(), CQMessageBox::question(), SliderDialog::reset(), CQTabWidget::selectTab(), SliderDialog::setChanged(), signalLoadFile(), slotFileSave(), ListViews::switchToOtherWidget(), and updateTitle().
Referenced by createActions(), openInitialDocument(), and slotFileOpenFinished().
|
slot |
Definition at line 773 of file copasiui3window.cpp.
References COptions::compareValue(), FROM_UTF8, COptions::getNonOptions(), COptions::getValue(), newDoc(), slotFileOpen(), and slotImportSBML().
Referenced by CQCopasiApplication::setMainWindow(), and Worker::Worker().
|
private |
Definition at line 1866 of file copasiui3window.cpp.
References CCopasiParameterGroup::beginIndex(), C_INT, CCopasiParameterGroup::endIndex(), FROM_UTF8, CCopasiRootContainer::getConfiguration(), CCopasiParameterGroup::getGroup(), CConfigurationFile::getRecentFiles(), mpMenuRecentFiles, mpRecentFilesActionGroup, mRecentFilesActionMap, and slotOpenRecentFile().
Referenced by createMenuBar(), slotFileOpenFinished(), and slotFileSaveFinished().
|
private |
Definition at line 1899 of file copasiui3window.cpp.
References CCopasiParameterGroup::beginIndex(), C_INT, CCopasiParameterGroup::endIndex(), FROM_UTF8, CCopasiRootContainer::getConfiguration(), CCopasiParameterGroup::getGroup(), CConfigurationFile::getRecentSBMLFiles(), mpMenuRecentSBMLFiles, mpRecentSBMLFilesActionGroup, mRecentSBMLFilesActionMap, and slotOpenRecentSBMLFile().
Referenced by createMenuBar(), slotExportSBMLFinished(), and slotImportSBMLFinished().
|
private |
Definition at line 1984 of file copasiui3window.cpp.
References CWindowInterface::getWindowMenu(), mpaCloseAllWindows, mpWindowsActionGroup, mpWindowsMenu, mWindows, and slotActivateWindowTriggered().
Referenced by addWindow(), createMenuBar(), listViewsFolderChanged(), removeWindow(), and slotCloseAllWindows().
void CopasiUI3Window::removeWindow | ( | QMainWindow * | pWindow | ) |
Definition at line 1972 of file copasiui3window.cpp.
References mWindows, and refreshWindowsMenu().
Referenced by PlotWindow::closeEvent(), CWindowInterface::removeFromMainWindow(), and slotShowSliders().
|
private |
Definition at line 2250 of file copasiui3window.cpp.
References FROM_UTF8, CConfigurationFile::getApplicationFont(), CCopasiRootContainer::getConfiguration(), CConfigurationFile::setApplicationFont(), and TO_UTF8.
Referenced by CopasiUI3Window().
void CopasiUI3Window::setMessageShown | ( | const bool & | shown | ) |
Definition at line 2071 of file copasiui3window.cpp.
References mMessageShown.
Referenced by CQMessageBox::CQMessageBox(), and CQMessageBox::~CQMessageBox().
|
signal |
Referenced by newDoc(), slotFileOpen(), slotFileSaveFinished(), and slotImportSBML().
|
protectedslot |
Definition at line 2063 of file copasiui3window.cpp.
References getWindowByTitle(), and mWindows.
Referenced by refreshWindowsMenu().
|
protectedslot |
Definition at line 2155 of file copasiui3window.cpp.
References CModel::applyInitialValues(), ListViews::CHANGE, DataModelGUI::commit(), CModel::compileIfNecessary(), CCopasiRootContainer::getDatamodelList(), mpDataModelGUI, DataModelGUI::notify(), ListViews::STATE, and CModel::updateNonSimulatedValues().
Referenced by createActions().
|
protectedslot |
Definition at line 2197 of file copasiui3window.cpp.
References C_INT32, checkSelection(), ListViews::getCurrentWidget(), CopasiFileDialog::getSaveFileName(), and mpListView.
Referenced by createActions().
|
protectedslot |
Definition at line 2082 of file copasiui3window.cpp.
References FROM_UTF8, CCopasiRootContainer::getDatamodelList(), and CModelAnalyzer::writeReport().
Referenced by createActions().
|
protectedslot |
Definition at line 2049 of file copasiui3window.cpp.
References mWindows, and refreshWindowsMenu().
Referenced by createActions().
|
protectedslot |
Definition at line 1691 of file copasiui3window.cpp.
References ListViews::CHANGE, CCopasiMessage::clearDeque(), DataModelGUI::commit(), CModel::convert2NonReversible(), CCopasiMessage::getAllMessageText(), CCopasiRootContainer::getDatamodelList(), CQMessageBox::information(), ListViews::MODEL, mpDataModelGUI, mpListView, DataModelGUI::notify(), and ListViews::switchToOtherWidget().
Referenced by createMenuBar().
|
protectedslot |
Definition at line 2279 of file copasiui3window.cpp.
References ListViews::CHANGE, ListViews::MODEL, mpDataModelGUI, and DataModelGUI::notify().
Referenced by createActions().
|
protectedslot |
Definition at line 1585 of file copasiui3window.cpp.
References CDirEntry::baseName(), C_INT32, checkSelection(), DataModelGUI::commit(), CDirEntry::dirName(), DataModelGUI::exportMathModel(), FROM_UTF8, CCopasiRootContainer::getDatamodelList(), CCopasiDataModel::getFileName(), CopasiFileDialog::getSaveFileName(), mpDataModelGUI, CDirEntry::Separator, slotExportMathModelFinished(), and TO_UTF8.
Referenced by createActions().
|
protectedslot |
Definition at line 1635 of file copasiui3window.cpp.
References CCopasiMessage::clearDeque(), CQMessageBox::critical(), CCopasiMessage::getAllMessageText(), MCCopasiMessage, mpDataModelGUI, and CCopasiMessage::peekLastMessage().
Referenced by slotExportMathModel().
|
protectedslot |
Definition at line 1516 of file copasiui3window.cpp.
References CDirEntry::baseName(), C_INT32, checkSelection(), DataModelGUI::commit(), CDirEntry::dirName(), DataModelGUI::exportSBML(), FROM_UTF8, CCopasiRootContainer::getDatamodelList(), CQSBMLFileDialog::getSaveFileName(), mpDataModelGUI, CDirEntry::Separator, slotExportSBMLFinished(), and TO_UTF8.
Referenced by createActions().
|
protectedslot |
Definition at line 1576 of file copasiui3window.cpp.
References checkPendingMessages(), mpDataModelGUI, and refreshRecentSBMLFileMenu().
Referenced by slotExportSBML().
|
protectedslot |
Definition at line 1945 of file copasiui3window.cpp.
References CCopasiMessage::clearDeque(), CQMessageBox::critical(), FROM_UTF8, CCopasiMessage::getLastMessage(), and mpDataModelGUI.
Referenced by exportSBMLToString().
|
protectedslot |
Definition at line 994 of file copasiui3window.cpp.
References CopasiFileDialog::openExampleDir(), and slotFileOpen().
Referenced by createActions().
|
protectedslot |
Definition at line 1000 of file copasiui3window.cpp.
References CopasiFileDialog::openExampleDir(), and slotImportSBML().
Referenced by createActions().
|
slot |
Definition at line 812 of file copasiui3window.cpp.
References CCopasiMessage::clearDeque(), DataModelGUI::commit(), ListViews::DELETE, CCopasiRootContainer::getDatamodelList(), CopasiFileDialog::getOpenFileName(), SliderDialog::isChanged(), DataModelGUI::loadModel(), mCommitRequired, mNewFile, ListViews::MODEL, mpDataModelGUI, mpListView, mpSliders, DataModelGUI::notify(), CQMessageBox::question(), SliderDialog::reset(), signalLoadFile(), slotFileOpenFinished(), slotFileSave(), ListViews::switchToOtherWidget(), and TO_UTF8.
Referenced by createActions(), dropEvent(), CQCopasiApplication::event(), openInitialDocument(), slotFileExamplesCopasiFiles(), and slotOpenRecentFile().
|
protectedslot |
Definition at line 882 of file copasiui3window.cpp.
References ListViews::ADD, DataModelGUI::createModel(), CQMessageBox::critical(), FROM_UTF8, CCopasiMessage::getAllMessageText(), ListViews::getCurrentWidget(), CCopasiRootContainer::getDatamodelList(), CCopasiMessage::getLastMessage(), CCopasiMessage::getNumber(), CCopasiMessage::getText(), CDirEntry::isWritable(), MCCopasiMessage, mCommitRequired, mNewFile, ListViews::MODEL, mpaExportODE, mpaExportSBML, mpaSave, mpaSaveAs, mpDataModelGUI, mpListView, mSaveAsRequired, newDoc(), DataModelGUI::notify(), CQMessageBox::question(), refreshRecentFileMenu(), CQTabWidget::selectTab(), slotImportSBML(), CDirEntry::suffix(), ListViews::switchToOtherWidget(), TO_UTF8, updateTitle(), and CQMessageBox::warning().
Referenced by slotFileOpen().
|
protectedslot |
Definition at line 1237 of file copasiui3window.cpp.
|
protectedslot |
Definition at line 1098 of file copasiui3window.cpp.
References DataModelGUI::commit(), FROM_UTF8, CLocaleString::fromUtf8(), CCopasiRootContainer::getDatamodelList(), mpDataModelGUI, mSaveAsRequired, DataModelGUI::saveModel(), CQMessageBox::setText(), slotFileSaveAs(), and slotFileSaveFinished().
Referenced by createActions(), importSBMLFromString(), newDoc(), slotFileOpen(), slotImportSBML(), and slotQuit().
|
protectedslot |
Definition at line 604 of file copasiui3window.cpp.
References C_INT32, checkSelection(), DataModelGUI::commit(), CopasiFileDialog::getSaveFileName(), mpDataModelGUI, DataModelGUI::saveModel(), slotFileSaveFinished(), and TO_UTF8.
Referenced by createActions(), and slotFileSave().
|
protectedslot |
Definition at line 645 of file copasiui3window.cpp.
References CCopasiMessage::clearDeque(), CQMessageBox::critical(), FROM_UTF8, CCopasiMessage::getAllMessageText(), CCopasiRootContainer::getDatamodelList(), CCopasiMessage::getLastMessage(), CCopasiMessage::getNumber(), CCopasiMessage::getText(), MCCopasiMessage, mNewFile, mpDataModelGUI, mpSliders, mSaveAsRequired, CCopasiMessage::peekLastMessage(), refreshRecentFileMenu(), SliderDialog::setChanged(), signalLoadFile(), updateTitle(), and CQMessageBox::warning().
Referenced by slotFileSave(), slotFileSaveAs(), and slotUpdateMIRIAMFinished().
|
protectedslot |
Definition at line 2220 of file copasiui3window.cpp.
References TaskWidget::adjustTable(), CCopasiRootContainer::getConfiguration(), ListViews::getCurrentWidget(), getFont(), mpListView, CConfigurationFile::setApplicationFont(), and TO_UTF8.
Referenced by createActions().
|
protectedslot |
Definition at line 2189 of file copasiui3window.cpp.
References DataModelGUI::commit(), mpDataModelGUI, mpSliders, SliderDialog::setFramework(), and DataModelGUI::setFramework().
Referenced by createToolBar().
|
protectedslot |
Definition at line 436 of file copasiui3window.cpp.
References DataModelGUI::commit(), CopasiFileDialog::getOpenFileName(), DataModelGUI::loadFunctionDB(), mCommitRequired, mpDataModelGUI, and TO_UTF8.
Referenced by createActions().
|
protectedslot |
Definition at line 406 of file copasiui3window.cpp.
References C_INT32, checkSelection(), DataModelGUI::commit(), CopasiFileDialog::getSaveFileName(), mCommitRequired, mpDataModelGUI, DataModelGUI::saveFunctionDB(), and TO_UTF8.
Referenced by createActions().
|
protectedslot |
Definition at line 1402 of file copasiui3window.cpp.
References DataModelGUI::commit(), ListViews::DELETE, CCopasiRootContainer::getDatamodelList(), CopasiFileDialog::getOpenFileName(), DataModelGUI::importSBML(), SliderDialog::isChanged(), mCommitRequired, mNewFile, ListViews::MODEL, mpDataModelGUI, mpListView, mpSliders, DataModelGUI::notify(), CQMessageBox::question(), SliderDialog::reset(), signalLoadFile(), slotFileSave(), slotImportSBMLFinished(), ListViews::switchToOtherWidget(), and TO_UTF8.
Referenced by createActions(), dropEvent(), openInitialDocument(), slotFileExamplesSBMLFiles(), slotFileOpenFinished(), and slotOpenRecentSBMLFile().
|
protectedslot |
Definition at line 1473 of file copasiui3window.cpp.
References ListViews::ADD, checkPendingMessages(), DataModelGUI::createModel(), CQMessageBox::critical(), FROM_UTF8, ListViews::getCurrentWidget(), CCopasiRootContainer::getDatamodelList(), CCopasiMessage::getLastMessage(), mCommitRequired, mNewFile, ListViews::MODEL, mpaExportODE, mpaExportSBML, mpaSave, mpaSaveAs, mpDataModelGUI, mpListView, mSaveAsRequired, DataModelGUI::notify(), refreshRecentSBMLFileMenu(), CQTabWidget::selectTab(), ListViews::switchToOtherWidget(), and updateTitle().
Referenced by slotImportSBML().
|
protectedslot |
Definition at line 1356 of file copasiui3window.cpp.
References ListViews::ADD, checkPendingMessages(), CCopasiMessage::clearDeque(), DataModelGUI::createModel(), CQMessageBox::critical(), FROM_UTF8, ListViews::getCurrentWidget(), CCopasiRootContainer::getDatamodelList(), CCopasiMessage::getLastMessage(), mCommitRequired, ListViews::MODEL, mpDataModelGUI, mpListView, mSaveAsRequired, DataModelGUI::notify(), CQTabWidget::selectTab(), ListViews::switchToOtherWidget(), and updateTitle().
Referenced by importSBMLFromString().
|
slot |
This should only be called by the destructor of the object browser dialog otherwise a memory leak occurs
Definition at line 1284 of file copasiui3window.cpp.
References mpaObjectBrowser, and mpObjectBrowser.
Referenced by slotShowObjectBrowserDialog().
|
protectedslot |
Definition at line 1846 of file copasiui3window.cpp.
References FROM_UTF8, CCopasiRootContainer::getConfiguration(), CCopasiParameterGroup::getGroup(), CConfigurationFile::getRecentFiles(), CCopasiParameterGroup::getValue(), mRecentFilesActionMap, CCopasiParameter::Value::pSTRING, and slotFileOpen().
Referenced by refreshRecentFileMenu().
|
protectedslot |
Definition at line 1856 of file copasiui3window.cpp.
References FROM_UTF8, CCopasiRootContainer::getConfiguration(), CCopasiParameterGroup::getGroup(), CConfigurationFile::getRecentSBMLFiles(), CCopasiParameterGroup::getValue(), mRecentSBMLFilesActionMap, CCopasiParameter::Value::pSTRING, and slotImportSBML().
Referenced by refreshRecentSBMLFileMenu().
|
protectedslot |
Definition at line 1290 of file copasiui3window.cpp.
Referenced by createMenuBar().
|
protectedslot |
Definition at line 1158 of file copasiui3window.cpp.
References DataModelGUI::commit(), CCopasiRootContainer::getDatamodelList(), getMainWindow(), CQMessageBox::information(), SliderDialog::isChanged(), mpDataModelGUI, mpSliders, mQuitApplication, CQMessageBox::question(), slotFileSave(), and slotQuitFinished().
Referenced by closeEvent(), and createActions().
|
protectedslot |
Definition at line 1203 of file copasiui3window.cpp.
References CleanUp(), mpDataModelGUI, and mQuitApplication.
Referenced by slotQuit().
|
protectedslot |
This should only be called via signal by the corresponding QAction mpaObjectBrowser. Otherwise the QAction will not be up to date.
Definition at line 1264 of file copasiui3window.cpp.
References mpObjectBrowser, and slotObjectBrowserDialogWasClosed().
Referenced by createActions().
|
slot |
Definition at line 1718 of file copasiui3window.cpp.
References addWindow(), mpaSliders, mpSliders, and removeWindow().
Referenced by SliderDialog::closeEvent(), and createActions().
|
protectedslot |
Definition at line 1298 of file copasiui3window.cpp.
References WizardDialog::setCopasiMainWindow().
Referenced by createMenuBar().
|
protectedslot |
Definition at line 2172 of file copasiui3window.cpp.
References ListViews::CHANGE, DataModelGUI::commit(), CModel::compileIfNecessary(), CCopasiRootContainer::getDatamodelList(), CModel::getState(), mpDataModelGUI, DataModelGUI::notify(), CModel::setInitialState(), ListViews::STATE, and CModel::updateInitialValues().
Referenced by createActions().
|
protectedslot |
Definition at line 2133 of file copasiui3window.cpp.
References CCopasiMessage::clearDeque(), CCopasiRootContainer::getConfiguration(), mpDataModelGUI, slotUpdateMIRIAMFinished(), and DataModelGUI::updateMIRIAM().
Referenced by createActions().
|
protectedslot |
Definition at line 2099 of file copasiui3window.cpp.
References checkPendingMessages(), CCopasiMessage::clearDeque(), CQMessageBox::critical(), FROM_UTF8, CCopasiRootContainer::getConfiguration(), CCopasiMessage::getLastMessage(), mpDataModelGUI, mpListView, CConfigurationFile::save(), CMIRIAMResourceObject::setMIRIAMResources(), slotFileSaveFinished(), ListViews::switchToOtherWidget(), and DataModelGUI::updateMIRIAMResourceContents().
Referenced by slotUpdateMIRIAM().
void CopasiUI3Window::suspendAutoSave | ( | const bool & | suspend | ) |
Definition at line 1838 of file copasiui3window.cpp.
References AutoSaveInterval, mpAutoSaveTimer, and mSuspendAutoSave.
Referenced by TaskWidget::commonAfterRunTask(), and TaskWidget::commonBeforeRunTask().
|
private |
Definition at line 1794 of file copasiui3window.cpp.
References CDirEntry::baseName(), FixedTitle, FROM_UTF8, CCopasiRootContainer::getDatamodelList(), and TO_UTF8.
Referenced by CopasiUI3Window(), newDoc(), slotFileOpenFinished(), slotFileSaveFinished(), slotImportSBMLFinished(), and slotImportSBMLFromStringFinished().
|
private |
Definition at line 239 of file copasiui3window.h.
Referenced by about(), CopasiUI3Window(), license(), and updateTitle().
|
private |
Definition at line 297 of file copasiui3window.h.
Referenced by importSBMLFromString(), newDoc(), slotFileOpen(), slotFileOpenFinished(), slotFunctionDBLoad(), slotFunctionDBSave(), slotImportSBML(), slotImportSBMLFinished(), and slotImportSBMLFromStringFinished().
|
private |
Definition at line 300 of file copasiui3window.h.
Referenced by messageShown(), and setMessageShown().
|
private |
Definition at line 296 of file copasiui3window.h.
Referenced by newDoc(), slotFileOpen(), slotFileOpenFinished(), slotFileSaveFinished(), slotImportSBML(), and slotImportSBMLFinished().
|
private |
Definition at line 256 of file copasiui3window.h.
Referenced by createActions(), createMenuBar(), and createToolBar().
|
private |
Definition at line 258 of file copasiui3window.h.
Referenced by createActions(), createMenuBar(), and createToolBar().
|
private |
Definition at line 255 of file copasiui3window.h.
Referenced by createActions(), createMenuBar(), and createToolBar().
|
private |
Definition at line 263 of file copasiui3window.h.
Referenced by createActions(), and refreshWindowsMenu().
|
private |
Definition at line 260 of file copasiui3window.h.
Referenced by createActions(), and createMenuBar().
|
private |
Definition at line 251 of file copasiui3window.h.
Referenced by CopasiUI3Window(), createActions(), createMenuBar(), newDoc(), slotFileOpenFinished(), and slotImportSBMLFinished().
|
private |
Definition at line 250 of file copasiui3window.h.
Referenced by CopasiUI3Window(), createActions(), createMenuBar(), newDoc(), slotFileOpenFinished(), and slotImportSBMLFinished().
|
private |
Definition at line 261 of file copasiui3window.h.
Referenced by createActions(), and createMenuBar().
|
private |
Definition at line 248 of file copasiui3window.h.
Referenced by createActions(), and createMenuBar().
|
private |
Definition at line 247 of file copasiui3window.h.
Referenced by createActions(), and createMenuBar().
|
private |
Definition at line 249 of file copasiui3window.h.
Referenced by createActions(), and createMenuBar().
|
private |
Definition at line 241 of file copasiui3window.h.
Referenced by createActions(), createMenuBar(), and createToolBar().
|
private |
Definition at line 253 of file copasiui3window.h.
Referenced by createActions(), createMenuBar(), and slotObjectBrowserDialogWasClosed().
|
private |
Definition at line 242 of file copasiui3window.h.
Referenced by createActions(), createMenuBar(), and createToolBar().
|
private |
Definition at line 243 of file copasiui3window.h.
Referenced by createActions(), and createMenuBar().
|
private |
Definition at line 244 of file copasiui3window.h.
Referenced by createActions(), and createMenuBar().
|
private |
Definition at line 252 of file copasiui3window.h.
Referenced by createActions(), and createMenuBar().
|
private |
Definition at line 245 of file copasiui3window.h.
Referenced by CopasiUI3Window(), createActions(), createMenuBar(), createToolBar(), newDoc(), slotFileOpenFinished(), and slotImportSBMLFinished().
|
private |
Definition at line 246 of file copasiui3window.h.
Referenced by CopasiUI3Window(), createActions(), createMenuBar(), newDoc(), slotFileOpenFinished(), and slotImportSBMLFinished().
|
private |
Definition at line 254 of file copasiui3window.h.
Referenced by createActions(), createMenuBar(), createToolBar(), and slotShowSliders().
|
private |
Definition at line 257 of file copasiui3window.h.
Referenced by createActions(), createMenuBar(), and createToolBar().
|
private |
Definition at line 259 of file copasiui3window.h.
Referenced by createActions(), createMenuBar(), and createToolBar().
|
private |
Definition at line 273 of file copasiui3window.h.
Referenced by autoSave(), CopasiUI3Window(), and suspendAutoSave().
|
private |
Definition at line 237 of file copasiui3window.h.
Referenced by createToolBar().
|
private |
Definition at line 235 of file copasiui3window.h.
Referenced by CopasiUI3Window(), exportSBMLToString(), getDataModel(), importSBMLFromString(), newDoc(), slotApplyInitialState(), slotConvertToIrreversible(), slotExpandModel(), slotExportMathModel(), slotExportMathModelFinished(), slotExportSBML(), slotExportSBMLFinished(), slotExportSBMLToStringFinished(), slotFileOpen(), slotFileOpenFinished(), slotFileSave(), slotFileSaveAs(), slotFileSaveFinished(), slotFrameworkChanged(), slotFunctionDBLoad(), slotFunctionDBSave(), slotImportSBML(), slotImportSBMLFinished(), slotImportSBMLFromStringFinished(), slotQuit(), slotQuitFinished(), slotUpdateInitialState(), slotUpdateMIRIAM(), slotUpdateMIRIAMFinished(), and ~CopasiUI3Window().
|
private |
Definition at line 236 of file copasiui3window.h.
Referenced by CopasiUI3Window(), getMainWidget(), importSBMLFromString(), listViewsFolderChanged(), newDoc(), slotCapture(), slotConvertToIrreversible(), slotFileOpen(), slotFileOpenFinished(), slotFontSelection(), slotImportSBML(), slotImportSBMLFinished(), slotImportSBMLFromStringFinished(), slotUpdateMIRIAMFinished(), and ~CopasiUI3Window().
|
private |
Definition at line 295 of file copasiui3window.h.
Referenced by isMainThread().
|
private |
Definition at line 277 of file copasiui3window.h.
Referenced by createMenuBar().
|
private |
Definition at line 278 of file copasiui3window.h.
Referenced by createMenuBar(), and refreshRecentFileMenu().
|
private |
Definition at line 285 of file copasiui3window.h.
Referenced by createMenuBar(), and refreshRecentSBMLFileMenu().
|
private |
Definition at line 293 of file copasiui3window.h.
|
private |
Definition at line 270 of file copasiui3window.h.
Referenced by slotObjectBrowserDialogWasClosed(), and slotShowObjectBrowserDialog().
|
private |
Definition at line 281 of file copasiui3window.h.
Referenced by refreshRecentFileMenu().
|
private |
Definition at line 287 of file copasiui3window.h.
Referenced by refreshRecentSBMLFileMenu().
|
private |
Definition at line 269 of file copasiui3window.h.
Referenced by CopasiUI3Window(), disableSliders(), importSBMLFromString(), listViewsFolderChanged(), newDoc(), slotFileOpen(), slotFileSaveFinished(), slotFrameworkChanged(), slotImportSBML(), slotQuit(), slotShowSliders(), and ~CopasiUI3Window().
|
private |
Definition at line 291 of file copasiui3window.h.
Referenced by createMenuBar().
|
private |
Definition at line 288 of file copasiui3window.h.
Referenced by refreshWindowsMenu().
|
private |
Definition at line 279 of file copasiui3window.h.
Referenced by createMenuBar(), and refreshWindowsMenu().
|
private |
Definition at line 298 of file copasiui3window.h.
Referenced by slotQuit(), and slotQuitFinished().
|
private |
Definition at line 280 of file copasiui3window.h.
Referenced by refreshRecentFileMenu(), and slotOpenRecentFile().
|
private |
Definition at line 286 of file copasiui3window.h.
Referenced by refreshRecentSBMLFileMenu(), and slotOpenRecentSBMLFile().
|
private |
Definition at line 272 of file copasiui3window.h.
Referenced by newDoc(), slotFileOpenFinished(), slotFileSave(), slotFileSaveFinished(), slotImportSBMLFinished(), and slotImportSBMLFromStringFinished().
|
private |
Definition at line 299 of file copasiui3window.h.
Referenced by CopasiUI3Window(), and disableSliders().
|
private |
Definition at line 274 of file copasiui3window.h.
Referenced by autoSave(), and suspendAutoSave().
|
private |
Definition at line 302 of file copasiui3window.h.
Referenced by addWindow(), CopasiUI3Window(), getWindows(), refreshWindowsMenu(), removeWindow(), slotActivateWindowTriggered(), slotCloseAllWindows(), and ~CopasiUI3Window().
|
staticprivate |
Definition at line 304 of file copasiui3window.h.
Referenced by create(), getMainWindow(), and isMainThread().