LibrePCB Developers Documentation
newprojectwizardpage_initialization.h
Go to the documentation of this file.
1/*
2 * LibrePCB - Professional EDA for everyone!
3 * Copyright (C) 2013 LibrePCB Developers, see AUTHORS.md for contributors.
4 * https://librepcb.org/
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef LIBREPCB_EDITOR_NEWPROJECTWIZARDPAGE_INITIALIZATION_H
21#define LIBREPCB_EDITOR_NEWPROJECTWIZARDPAGE_INITIALIZATION_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
26#include <QtCore>
27#include <QtWidgets>
28
29/*******************************************************************************
30 * Namespace / Forward Declarations
31 ******************************************************************************/
32namespace librepcb {
33namespace editor {
34
35namespace Ui {
36class NewProjectWizardPage_Initialization;
37}
38
39/*******************************************************************************
40 * Class NewProjectWizardPage_Initialization
41 ******************************************************************************/
42
46class NewProjectWizardPage_Initialization final : public QWizardPage {
47 Q_OBJECT
48
49public:
50 // Constructors / Destructor
51
53 QWidget* parent = nullptr) noexcept;
55 const NewProjectWizardPage_Initialization& other) = delete;
57
58 // Getters
59 bool getCreateSchematic() const noexcept;
60 QString getSchematicName() const noexcept;
61 QString getSchematicDirName() const noexcept { return mSchematicDirName; }
62 bool getCreateBoard() const noexcept;
63 QString getBoardName() const noexcept;
64 QString getBoardDirName() const noexcept { return mBoardDirName; }
65
66 // Operator Overloadings
68 const NewProjectWizardPage_Initialization& rhs) = delete;
69
70private: // GUI Action Handlers
71 void schematicNameChanged(const QString& name) noexcept;
72 void boardNameChanged(const QString& name) noexcept;
73
74private: // Methods
75 bool isComplete() const noexcept override;
76
77private: // Data
81};
82
83/*******************************************************************************
84 * End of File
85 ******************************************************************************/
86
87} // namespace editor
88} // namespace librepcb
89
90#endif
The NewProjectWizardPage_Initialization class.
Definition: newprojectwizardpage_initialization.h:46
NewProjectWizardPage_Initialization & operator=(const NewProjectWizardPage_Initialization &rhs)=delete
QString getBoardName() const noexcept
Definition: newprojectwizardpage_initialization.cpp:86
QString getSchematicDirName() const noexcept
Definition: newprojectwizardpage_initialization.h:61
QScopedPointer< Ui::NewProjectWizardPage_Initialization > mUi
Definition: newprojectwizardpage_initialization.h:78
void boardNameChanged(const QString &name) noexcept
Definition: newprojectwizardpage_initialization.cpp:107
QString mSchematicDirName
Definition: newprojectwizardpage_initialization.h:79
bool isComplete() const noexcept override
Definition: newprojectwizardpage_initialization.cpp:123
bool getCreateSchematic() const noexcept
Definition: newprojectwizardpage_initialization.cpp:74
QString getBoardDirName() const noexcept
Definition: newprojectwizardpage_initialization.h:64
void schematicNameChanged(const QString &name) noexcept
Definition: newprojectwizardpage_initialization.cpp:94
NewProjectWizardPage_Initialization(QWidget *parent=nullptr) noexcept
Definition: newprojectwizardpage_initialization.cpp:42
QString getSchematicName() const noexcept
Definition: newprojectwizardpage_initialization.cpp:78
NewProjectWizardPage_Initialization(const NewProjectWizardPage_Initialization &other)=delete
~NewProjectWizardPage_Initialization() noexcept
Definition: newprojectwizardpage_initialization.cpp:67
bool getCreateBoard() const noexcept
Definition: newprojectwizardpage_initialization.cpp:82
QString mBoardDirName
Definition: newprojectwizardpage_initialization.h:80
Definition: occmodel.cpp:77