LibrePCB Developers Documentation
boardpickplacegeneratordialog.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_PROJECT_EDITOR_BOARDPICKPLACEGENERATORDIALOG_H
21 #define LIBREPCB_PROJECT_EDITOR_BOARDPICKPLACEGENERATORDIALOG_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 PickPlaceData;
39 
40 namespace project {
41 
42 class Board;
43 
44 namespace editor {
45 
46 namespace Ui {
47 class BoardPickPlaceGeneratorDialog;
48 }
49 
50 /*******************************************************************************
51  * Class BoardPickPlaceGeneratorDialog
52  ******************************************************************************/
53 
57 class BoardPickPlaceGeneratorDialog final : public QDialog {
58  Q_OBJECT
59 
60 public:
61  // Constructors / Destructor
64  delete;
65  explicit BoardPickPlaceGeneratorDialog(Board& board,
66  QWidget* parent = nullptr);
68 
69 private: // Methods
70  void btnGenerateClicked() noexcept;
71  void updateTable() noexcept;
72  FilePath getOutputFilePath(const QString& text) const noexcept;
73 
74 private: // Data
76  std::shared_ptr<PickPlaceData> mData;
77  QScopedPointer<Ui::BoardPickPlaceGeneratorDialog> mUi;
78 };
79 
80 /*******************************************************************************
81  * End of File
82  ******************************************************************************/
83 
84 } // namespace editor
85 } // namespace project
86 } // namespace librepcb
87 
88 #endif // LIBREPCB_PROJECT_EDITOR_BOARDPICKPLACEGENERATORDIALOG_H
Definition: mainwindow.h:10
Board & mBoard
Definition: boardpickplacegeneratordialog.h:75
Definition: airwiresbuilder.cpp:32
The BoardPickPlaceGeneratorDialog class.
Definition: boardpickplacegeneratordialog.h:57
std::shared_ptr< PickPlaceData > mData
Definition: boardpickplacegeneratordialog.h:76
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:127
The Board class represents a PCB of a project and is always part of a circuit.
Definition: board.h:83
QScopedPointer< Ui::BoardPickPlaceGeneratorDialog > mUi
Definition: boardpickplacegeneratordialog.h:77