QElectroTech  0.8-dev
projectpropertiesdialog.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 The QElectroTech Team
3  This file is part of QElectroTech.
4 
5  QElectroTech is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 2 of the License, or
8  (at your option) any later version.
9 
10  QElectroTech is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef PROJECTPROPERTIESDIALOG_H
19 #define PROJECTPROPERTIESDIALOG_H
20 #include <QtCore>
21 
22 class QETProject;
23 class QWidget;
24 class ConfigDialog;
25 
30 class ProjectPropertiesDialog : public QObject {
31  public:
32  enum Page {
33  Main = 0,
34  Diagram = 1,
35  Autonum = 2
36  };
37 
38  ProjectPropertiesDialog(QETProject *project, QWidget *parent = nullptr);
39  ~ProjectPropertiesDialog() override;
40  void exec();
42  void changeToFolio();
43 
44  private:
46 };
47 
48 #endif // PROJECTPROPERTIESDIALOG_H
ProjectPropertiesDialog::exec
void exec()
ProjectPropertiesDialog::exec execute this dialog.
Definition: projectpropertiesdialog.cpp:55
ProjectAutoNumConfigPage
Definition: projectconfigpages.h:121
ConfigDialog::pages
QList< ConfigPage * > pages
Definition: configdialog.h:41
ProjectPropertiesDialog::Autonum
@ Autonum
Definition: projectpropertiesdialog.h:35
configpages.h
ProjectAutoNumConfigPage::changeToTab
virtual void changeToTab(int)
ProjectAutoNumConfigPage::changeToTab.
Definition: projectconfigpages.cpp:629
ProjectPropertiesDialog::~ProjectPropertiesDialog
~ProjectPropertiesDialog() override
ProjectPropertiesDialog::~ProjectPropertiesDialog.
Definition: projectpropertiesdialog.cpp:47
Diagram
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
projectconfigpages.h
ConfigDialog
Definition: configdialog.h:31
NewDiagramPage
The NewDiagramPage class This configuration page enables users to define the properties of new diagra...
Definition: configpages.h:39
projectpropertiesdialog.h
ProjectPropertiesDialog::ProjectPropertiesDialog
ProjectPropertiesDialog(QETProject *project, QWidget *parent=nullptr)
ProjectPropertiesDialog::ProjectPropertiesDialog Default constructor.
Definition: projectpropertiesdialog.cpp:30
ProjectMainConfigPage
Definition: projectconfigpages.h:90
QETProject
Definition: qetproject.h:51
ProjectPropertiesDialog::changeToFolio
void changeToFolio()
ProjectPropertiesDialog::changeToFolio Change the current displayed tab to folio tab.
Definition: projectpropertiesdialog.cpp:73
ProjectPropertiesDialog::Main
@ Main
Definition: projectpropertiesdialog.h:33
ProjectPropertiesDialog::m_properties_dialog
ConfigDialog * m_properties_dialog
Definition: projectpropertiesdialog.h:45
ProjectPropertiesDialog::Page
Page
Definition: projectpropertiesdialog.h:32
configdialog.h
ProjectPropertiesDialog::setCurrentPage
void setCurrentPage(ProjectPropertiesDialog::Page)
ProjectPropertiesDialog::setCurrentPage Change the current displayed page by p.
Definition: projectpropertiesdialog.cpp:65
ProjectPropertiesDialog
The ProjectPropertiesDialog class this class builds a dialog to edit whole properties of a project.
Definition: projectpropertiesdialog.h:30
QET::Icons::tr
QIcon tr
Definition: qeticons.cpp:206