QElectroTech
0.70
|
#include <projectconfigpages.h>
Public Member Functions | |
ProjectMainConfigPage (QETProject *, QWidget *=nullptr) | |
~ProjectMainConfigPage () override | |
QString | title () const override |
QIcon | icon () const override |
void | applyProjectConf () override |
QString | projectTitle () const |
![]() | |
ProjectConfigPage (QETProject *, QWidget *=nullptr) | |
~ProjectConfigPage () override | |
virtual QETProject * | project () const |
virtual QETProject * | setProject (QETProject *project, bool=true) |
void | applyConf () override |
![]() | |
ConfigPage (QWidget *parent) | |
~ConfigPage () override | |
Destructor. More... | |
Protected Member Functions | |
void | initWidgets () override |
void | initLayout () override |
void | readValuesFromProject () override |
void | adjustReadOnly () override |
![]() | |
virtual void | init () |
Protected Attributes | |
QLabel * | title_label_ |
QLineEdit * | title_value_ |
QLabel * | title_information_ |
QLabel * | project_variables_label_ |
DiagramContextWidget * | project_variables_ |
![]() | |
QETProject * | m_project |
Currently edited project. More... | |
Private Member Functions | |
ProjectMainConfigPage (const ProjectMainConfigPage &) | |
This page enables users to configure the main properties of a project.
Definition at line 89 of file projectconfigpages.h.
ProjectMainConfigPage::ProjectMainConfigPage | ( | QETProject * | project, |
QWidget * | parent = nullptr |
||
) |
Constructor
project | Project this page is editing. |
parent | Parent QWidget |
Definition at line 105 of file projectconfigpages.cpp.
References ProjectConfigPage::init().
|
override |
Destructor
Definition at line 114 of file projectconfigpages.cpp.
|
private |
|
overrideprotectedvirtual |
Set the content of this page read only if the project is read only, editable if the project is editable.
Implements ProjectConfigPage.
Definition at line 208 of file projectconfigpages.cpp.
References ProjectConfigPage::m_project, and title_value_.
|
overridevirtual |
Apply the configuration after user input
Implements ProjectConfigPage.
Definition at line 134 of file projectconfigpages.cpp.
References ProjectConfigPage::m_project, project_variables_, title(), and title_value_.
|
overridevirtual |
Implements ConfigPage.
Definition at line 127 of file projectconfigpages.cpp.
References QET::Icons::Settings.
|
overrideprotectedvirtual |
Initialize the layout of this page.
Implements ProjectConfigPage.
Definition at line 181 of file projectconfigpages.cpp.
References project_variables_, project_variables_label_, title_information_, title_label_, and title_value_.
|
overrideprotectedvirtual |
Initialize widgets displayed by the page.
Implements ProjectConfigPage.
Definition at line 163 of file projectconfigpages.cpp.
References project_variables_, project_variables_label_, title_information_, title_label_, title_value_, and QET::Icons::tr.
QString ProjectMainConfigPage::projectTitle | ( | ) | const |
Definition at line 156 of file projectconfigpages.cpp.
References title_value_.
|
overrideprotectedvirtual |
Read properties from the edited project then fill widgets with them.
Implements ProjectConfigPage.
Definition at line 199 of file projectconfigpages.cpp.
References ProjectConfigPage::m_project, project_variables_, title(), and title_value_.
|
overridevirtual |
Implements ConfigPage.
Definition at line 120 of file projectconfigpages.cpp.
References QET::Icons::tr.
Referenced by applyProjectConf(), and readValuesFromProject().
|
protected |
Definition at line 117 of file projectconfigpages.h.
Referenced by applyProjectConf(), initLayout(), initWidgets(), and readValuesFromProject().
|
protected |
Definition at line 116 of file projectconfigpages.h.
Referenced by initLayout(), and initWidgets().
|
protected |
Definition at line 115 of file projectconfigpages.h.
Referenced by initLayout(), and initWidgets().
|
protected |
Definition at line 113 of file projectconfigpages.h.
Referenced by initLayout(), and initWidgets().
|
protected |
Definition at line 114 of file projectconfigpages.h.
Referenced by adjustReadOnly(), applyProjectConf(), initLayout(), initWidgets(), projectTitle(), and readValuesFromProject().