LibrePCB Developers Documentation
eaglelibraryimportwizardpage_selectelements.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_EAGLELIBRARYIMPORTWIZARDPAGE_SELECTELEMENTS_H
21#define LIBREPCB_EDITOR_EAGLELIBRARYIMPORTWIZARDPAGE_SELECTELEMENTS_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
26#include <QtCore>
27#include <QtWidgets>
28
29#include <memory>
30
31/*******************************************************************************
32 * Namespace / Forward Declarations
33 ******************************************************************************/
34namespace librepcb {
35namespace editor {
36
37class EagleLibraryImportWizardContext;
38
39namespace Ui {
40class EagleLibraryImportWizardPage_SelectElements;
41}
42
43/*******************************************************************************
44 * Class EagleLibraryImportWizardPage_SelectElements
45 ******************************************************************************/
46
50class EagleLibraryImportWizardPage_SelectElements final : public QWizardPage {
51 Q_OBJECT
52
59 };
60
61public:
62 // Constructors / Destructor
67 std::shared_ptr<EagleLibraryImportWizardContext> context,
68 QWidget* parent = nullptr) noexcept;
70
71 // General Methods
72 virtual void initializePage() override;
73 virtual bool isComplete() const override;
74
75 // Operator Overloadings
78
79private: // Methods
80 void treeItemChanged(QTreeWidgetItem* item) noexcept;
81 void updateItemCheckState(ElementType elementType, const QString& name,
82 Qt::CheckState state) noexcept;
83 void updateRootNodes() noexcept;
84
85private: // Data
88};
89
90/*******************************************************************************
91 * End of File
92 ******************************************************************************/
93
94} // namespace editor
95} // namespace librepcb
96
97#endif
The EagleLibraryImportWizardContext class.
Definition: eaglelibraryimportwizardcontext.h:52
The EagleLibraryImportWizardPage_SelectElements class.
Definition: eaglelibraryimportwizardpage_selectelements.h:50
ElementType
Definition: eaglelibraryimportwizardpage_selectelements.h:53
@ _Unknown
Definition: eaglelibraryimportwizardpage_selectelements.h:54
@ Symbol
Definition: eaglelibraryimportwizardpage_selectelements.h:57
@ Device
Definition: eaglelibraryimportwizardpage_selectelements.h:55
@ Package
Definition: eaglelibraryimportwizardpage_selectelements.h:58
@ Component
Definition: eaglelibraryimportwizardpage_selectelements.h:56
std::shared_ptr< EagleLibraryImportWizardContext > mContext
Definition: eaglelibraryimportwizardpage_selectelements.h:87
void updateItemCheckState(ElementType elementType, const QString &name, Qt::CheckState state) noexcept
Definition: eaglelibraryimportwizardpage_selectelements.cpp:207
void updateRootNodes() noexcept
Definition: eaglelibraryimportwizardpage_selectelements.cpp:222
virtual void initializePage() override
Definition: eaglelibraryimportwizardpage_selectelements.cpp:89
virtual bool isComplete() const override
Definition: eaglelibraryimportwizardpage_selectelements.cpp:158
void treeItemChanged(QTreeWidgetItem *item) noexcept
Definition: eaglelibraryimportwizardpage_selectelements.cpp:166
EagleLibraryImportWizardPage_SelectElements(const EagleLibraryImportWizardPage_SelectElements &other)=delete
QScopedPointer< Ui::EagleLibraryImportWizardPage_SelectElements > mUi
Definition: eaglelibraryimportwizardpage_selectelements.h:86
Definition: occmodel.cpp:77