LibrePCB Developers Documentation
newprojectwizard.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_NEWPROJECTWIZARD_H
21 #define LIBREPCB_EDITOR_NEWPROJECTWIZARD_H
22 
23 /*******************************************************************************
24  * Includes
25  ******************************************************************************/
27 
28 #include <QtCore>
29 #include <QtWidgets>
30 
31 #include <memory>
32 
33 /*******************************************************************************
34  * Namespace / Forward Declarations
35  ******************************************************************************/
36 namespace librepcb {
37 
38 class Project;
39 class Workspace;
40 
41 namespace editor {
42 
43 class NewProjectWizardPage_Initialization;
44 class NewProjectWizardPage_Metadata;
45 
46 //
47 
48 class NewProjectWizardPage_VersionControl;
49 
50 namespace Ui {
51 class NewProjectWizard;
52 }
53 
54 /*******************************************************************************
55  * Class NewProjectWizard
56  ******************************************************************************/
57 
61 class NewProjectWizard final : public QWizard {
62  Q_OBJECT
63 
64 public:
65  // Constructors / Destructor
66  NewProjectWizard() = delete;
67  NewProjectWizard(const NewProjectWizard& other) = delete;
68  explicit NewProjectWizard(const Workspace& ws,
69  QWidget* parent = nullptr) noexcept;
70  ~NewProjectWizard() noexcept;
71 
72  // Setters
73  void setLocation(const FilePath& dir) noexcept;
74 
75  // General Methods
76  std::unique_ptr<Project> createProject() const;
77 
78  // Operator Overloadings
79  NewProjectWizard& operator=(const NewProjectWizard& rhs) = delete;
80 
81 private: // Data
83  QScopedPointer<Ui::NewProjectWizard> mUi;
86  // NewProjectWizardPage_VersionControl* mPageVersionControl;
87 };
88 
89 /*******************************************************************************
90  * End of File
91  ******************************************************************************/
92 
93 } // namespace editor
94 } // namespace librepcb
95 
96 #endif
Definition: occmodel.cpp:76
NewProjectWizardPage_Metadata * mPageMetadata
Definition: newprojectwizard.h:84
QScopedPointer< Ui::NewProjectWizard > mUi
Definition: newprojectwizard.h:83
The NewProjectWizard class.
Definition: newprojectwizard.h:61
The NewProjectWizardPage_Initialization class.
Definition: newprojectwizardpage_initialization.h:46
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:127
const Workspace & mWorkspace
Definition: newprojectwizard.h:82
The NewProjectWizardPage_Metadata class.
Definition: newprojectwizardpage_metadata.h:51
NewProjectWizardPage_Initialization * mPageInitialization
Definition: newprojectwizard.h:85
The Workspace class represents a workspace with all its data (library, projects, settings, ...)
Definition: workspace.h:54