QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
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.
void applyConf () override
Public Member Functions inherited from ConfigPage
 ConfigPage (QWidget *parent)
 ~ConfigPage () override
 Destructor.

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_
QLabel * usage_label_
QLabel * usage_value_
QCheckBox * usage_enabled_cb_
QPushButton * usage_reset_pb_
Protected Attributes inherited from ProjectConfigPage
QETProjectm_project
 Currently edited project.

Private Slots

void resetUsageTracker ()
 ProjectMainConfigPage::resetUsageTracker Reset the accumulated "time spent on this project" counter to zero and refresh its displayed value. Applies immediately (not staged behind OK/Cancel like the other fields on this page), since it isn't destructive to any actual project content.

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:
Here is the caller graph for this function:

◆ ~ProjectMainConfigPage()

ProjectMainConfigPage::~ProjectMainConfigPage ( )
override

Destructor

◆ ProjectMainConfigPage() [2/2]

ProjectMainConfigPage::ProjectMainConfigPage ( const ProjectMainConfigPage & )
private
Here is the call graph for this function:

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.

Here is the call graph for this function:

◆ 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:

◆ resetUsageTracker

void ProjectMainConfigPage::resetUsageTracker ( )
privateslot

ProjectMainConfigPage::resetUsageTracker Reset the accumulated "time spent on this project" counter to zero and refresh its displayed value. Applies immediately (not staged behind OK/Cancel like the other fields on this page), since it isn't destructive to any actual project content.

Here is the caller 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

◆ usage_enabled_cb_

QCheckBox* ProjectMainConfigPage::usage_enabled_cb_
protected

◆ usage_label_

QLabel* ProjectMainConfigPage::usage_label_
protected

◆ usage_reset_pb_

QPushButton* ProjectMainConfigPage::usage_reset_pb_
protected

◆ usage_value_

QLabel* ProjectMainConfigPage::usage_value_
protected

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