LibrePCB Developers Documentation
Loading...
Searching...
No Matches
kicadlibraryimportwizardpage_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_KICADLIBRARYIMPORTWIZARDPAGE_SELECTELEMENTS_H
21#define LIBREPCB_EDITOR_KICADLIBRARYIMPORTWIZARDPAGE_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 KiCadLibraryImportWizardContext;
38
39namespace Ui {
40class KiCadLibraryImportWizardPage_SelectElements;
41}
42
43/*******************************************************************************
44 * Class KiCadLibraryImportWizardPage_SelectElements
45 ******************************************************************************/
46
50class KiCadLibraryImportWizardPage_SelectElements final : public QWizardPage {
51 Q_OBJECT
52
60
61public:
62 // Constructors / Destructor
67 std::shared_ptr<KiCadLibraryImportWizardContext> 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 applyChangedCheckState(bool checked) noexcept;
82 void updateItemCheckState(ElementType elementType, const QString& libName,
83 const QString& name, Qt::CheckState state) noexcept;
84 void updateRootNodes() noexcept;
85
86private: // Data
89};
90
91/*******************************************************************************
92 * End of File
93 ******************************************************************************/
94
95} // namespace editor
96} // namespace librepcb
97
98#endif
The KiCadLibraryImportWizardContext class.
Definition kicadlibraryimportwizardcontext.h:54
The KiCadLibraryImportWizardPage_SelectElements class.
Definition kicadlibraryimportwizardpage_selectelements.h:50
ElementType
Definition kicadlibraryimportwizardpage_selectelements.h:53
@ _Unknown
Definition kicadlibraryimportwizardpage_selectelements.h:54
@ Symbol
Definition kicadlibraryimportwizardpage_selectelements.h:57
@ Device
Definition kicadlibraryimportwizardpage_selectelements.h:55
@ Package
Definition kicadlibraryimportwizardpage_selectelements.h:58
@ Component
Definition kicadlibraryimportwizardpage_selectelements.h:56
std::shared_ptr< KiCadLibraryImportWizardContext > mContext
Definition kicadlibraryimportwizardpage_selectelements.h:88
void updateRootNodes() noexcept
Definition kicadlibraryimportwizardpage_selectelements.cpp:311
virtual void initializePage() override
Definition kicadlibraryimportwizardpage_selectelements.cpp:94
virtual bool isComplete() const override
Definition kicadlibraryimportwizardpage_selectelements.cpp:233
void treeItemChanged(QTreeWidgetItem *item) noexcept
Definition kicadlibraryimportwizardpage_selectelements.cpp:241
QScopedPointer< Ui::KiCadLibraryImportWizardPage_SelectElements > mUi
Definition kicadlibraryimportwizardpage_selectelements.h:87
void updateItemCheckState(ElementType elementType, const QString &libName, const QString &name, Qt::CheckState state) noexcept
Definition kicadlibraryimportwizardpage_selectelements.cpp:289
KiCadLibraryImportWizardPage_SelectElements(const KiCadLibraryImportWizardPage_SelectElements &other)=delete
Definition occmodel.cpp:76
Definition uuid.h:186