scidavis  2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).
  Fossies Dox: scidavis-2.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ProjectConfigPage.cpp
Go to the documentation of this file.
1 
11 
30 #include "ProjectConfigPage.h"
31 #include "Project.h"
32 
34 {
35  ui.setupUi(this);
36  ui.default_subwindow_visibility_combobox->setCurrentIndex(Project::global("default_mdi_window_visibility").toInt());
37  // TODO: set the ui according to the global settings in Project::Private
38 }
39 
41 {
42  int index = ui.default_subwindow_visibility_combobox->currentIndex();
43  switch (index)
44  {
45  case 0:
46  case 1:
47  case 2:
48  Project::setGlobal("default_mdi_window_visibility", index);
49  break;
50  }
51  // TODO: read settings from ui and change them in Project::Private
52 }
53 
Project.h
AbstractAspect::global
static QVariant global(const QString &key)
Retrieve a global setting.
Definition: AbstractAspect.cpp:360
ProjectConfigPage::apply
virtual void apply()
Definition: ProjectConfigPage.cpp:40
ProjectConfigPage::ui
Ui::ProjectConfigPage ui
Definition: ProjectConfigPage.h:46
ProjectConfigPage::ProjectConfigPage
ProjectConfigPage()
Definition: ProjectConfigPage.cpp:33
ProjectConfigPage.h
AbstractAspect::setGlobal
static void setGlobal(const QString &key, const QVariant &value)
Update a global setting.
Definition: AbstractAspect.cpp:370