QElectroTech  0.8-dev
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
ProjectMainConfigPage Class Reference

#include <projectconfigpages.h>

Inheritance diagram for ProjectMainConfigPage:
Inheritance graph
Collaboration diagram for ProjectMainConfigPage:
Collaboration graph

Public Member Functions

 ProjectMainConfigPage (QETProject *, QWidget *=nullptr)
 
 ~ProjectMainConfigPage () override
 
QString title () const override
 
QIcon icon () const override
 
void applyProjectConf () override
 
QString projectTitle () const
 
- Public Member Functions inherited from ProjectConfigPage
 ProjectConfigPage (QETProject *, QWidget *=nullptr)
 
 ~ProjectConfigPage () override
 
virtual QETProjectproject () const
 
virtual QETProjectsetProject (QETProject *project, bool=true)
 ProjectConfigPage::setProject Set new_project as the project being edited by this page. More...
 
void applyConf () override
 
- Public Member Functions inherited from ConfigPage
 ConfigPage (QWidget *parent)
 
 ~ConfigPage () override
 Destructor. More...
 

Protected Member Functions

void initWidgets () override
 
void initLayout () override
 
void readValuesFromProject () override
 
void adjustReadOnly () override
 
- Protected Member Functions inherited from ProjectConfigPage
virtual void init ()
 

Protected Attributes

QLabel * title_label_
 
QLineEdit * title_value_
 
QLabel * title_information_
 
QLabel * project_variables_label_
 
DiagramContextWidgetproject_variables_
 
- Protected Attributes inherited from ProjectConfigPage
QETProjectm_project
 Currently edited project. More...
 

Private Member Functions

 ProjectMainConfigPage (const ProjectMainConfigPage &)
 

Detailed Description

This page enables users to configure the main properties of a project.

Constructor & Destructor Documentation

◆ ProjectMainConfigPage() [1/2]

ProjectMainConfigPage::ProjectMainConfigPage ( QETProject project,
QWidget *  parent = nullptr 
)

Constructor

Parameters
projectProject this page is editing.
parentParent QWidget
Here is the call graph for this function:

◆ ~ProjectMainConfigPage()

ProjectMainConfigPage::~ProjectMainConfigPage ( )
override

Destructor

◆ ProjectMainConfigPage() [2/2]

ProjectMainConfigPage::ProjectMainConfigPage ( const ProjectMainConfigPage )
private

Member Function Documentation

◆ adjustReadOnly()

void ProjectMainConfigPage::adjustReadOnly ( )
overrideprotectedvirtual

Set the content of this page read only if the project is read only, editable if the project is editable.

Implements ProjectConfigPage.

◆ applyProjectConf()

void ProjectMainConfigPage::applyProjectConf ( )
overridevirtual

Apply the configuration after user input

Implements ProjectConfigPage.

Here is the call graph for this function:

◆ icon()

QIcon ProjectMainConfigPage::icon ( ) const
overridevirtual
Returns
the icon for this page

Implements ConfigPage.

◆ initLayout()

void ProjectMainConfigPage::initLayout ( )
overrideprotectedvirtual

Initialize the layout of this page.

Implements ProjectConfigPage.

◆ initWidgets()

void ProjectMainConfigPage::initWidgets ( )
overrideprotectedvirtual

Initialize widgets displayed by the page.

Implements ProjectConfigPage.

◆ projectTitle()

QString ProjectMainConfigPage::projectTitle ( ) const
Returns
the project title entered by the user

◆ readValuesFromProject()

void ProjectMainConfigPage::readValuesFromProject ( )
overrideprotectedvirtual

Read properties from the edited project then fill widgets with them.

Implements ProjectConfigPage.

Here is the call graph for this function:

◆ title()

QString ProjectMainConfigPage::title ( ) const
overridevirtual
Returns
the title for this page

Implements ConfigPage.

Here is the caller graph for this function:

Member Data Documentation

◆ project_variables_

DiagramContextWidget* ProjectMainConfigPage::project_variables_
protected

◆ project_variables_label_

QLabel* ProjectMainConfigPage::project_variables_label_
protected

◆ title_information_

QLabel* ProjectMainConfigPage::title_information_
protected

◆ title_label_

QLabel* ProjectMainConfigPage::title_label_
protected

◆ title_value_

QLineEdit* ProjectMainConfigPage::title_value_
protected

The documentation for this class was generated from the following files: