LibrePCB Developers Documentation
eaglelibraryimportwizardpage_result.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_RESULT_H
21#define LIBREPCB_EDITOR_EAGLELIBRARYIMPORTWIZARDPAGE_RESULT_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_Result;
41}
42
43/*******************************************************************************
44 * Class EagleLibraryImportWizardPage_Result
45 ******************************************************************************/
46
50class EagleLibraryImportWizardPage_Result final : public QWizardPage {
51 Q_OBJECT
52
53public:
54 // Constructors / Destructor
57 const EagleLibraryImportWizardPage_Result& other) = delete;
59 std::shared_ptr<EagleLibraryImportWizardContext> context,
60 QWidget* parent = nullptr) noexcept;
62
63 // General Methods
64 virtual void initializePage() override;
65 virtual bool isComplete() const override;
66
67 // Operator Overloadings
69 const EagleLibraryImportWizardPage_Result& rhs) = delete;
70
71private: // Methods
72 void importFinished() noexcept;
73
74private: // Data
77 QVector<QMetaObject::Connection> mProgressBarConnections;
79};
80
81/*******************************************************************************
82 * End of File
83 ******************************************************************************/
84
85} // namespace editor
86} // namespace librepcb
87
88#endif
The EagleLibraryImportWizardContext class.
Definition: eaglelibraryimportwizardcontext.h:52
The EagleLibraryImportWizardPage_Result class.
Definition: eaglelibraryimportwizardpage_result.h:50
QVector< QMetaObject::Connection > mProgressBarConnections
Definition: eaglelibraryimportwizardpage_result.h:77
void importFinished() noexcept
Definition: eaglelibraryimportwizardpage_result.cpp:103
bool mIsCompleted
Definition: eaglelibraryimportwizardpage_result.h:78
std::shared_ptr< EagleLibraryImportWizardContext > mContext
Definition: eaglelibraryimportwizardpage_result.h:76
virtual void initializePage() override
Definition: eaglelibraryimportwizardpage_result.cpp:75
QScopedPointer< Ui::EagleLibraryImportWizardPage_Result > mUi
Definition: eaglelibraryimportwizardpage_result.h:75
virtual bool isComplete() const override
Definition: eaglelibraryimportwizardpage_result.cpp:95
EagleLibraryImportWizardPage_Result(const EagleLibraryImportWizardPage_Result &other)=delete
Definition: occmodel.cpp:77