mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:00:08 +00:00
Setup wizard classes
This commit is contained in:
parent
be33ff8cef
commit
388abb05bf
9 changed files with 273 additions and 33 deletions
|
|
@ -226,6 +226,14 @@ set(UI_UI source/scwx/qt/ui/about_dialog.ui
|
|||
source/scwx/qt/ui/radar_site_dialog.ui
|
||||
source/scwx/qt/ui/settings_dialog.ui
|
||||
source/scwx/qt/ui/update_dialog.ui)
|
||||
set(HDR_UI_SETUP source/scwx/qt/ui/setup/finish_page.hpp
|
||||
source/scwx/qt/ui/setup/map_page.hpp
|
||||
source/scwx/qt/ui/setup/setup_wizard.hpp
|
||||
source/scwx/qt/ui/setup/welcome_page.hpp)
|
||||
set(SRC_UI_SETUP source/scwx/qt/ui/setup/finish_page.cpp
|
||||
source/scwx/qt/ui/setup/map_page.cpp
|
||||
source/scwx/qt/ui/setup/setup_wizard.cpp
|
||||
source/scwx/qt/ui/setup/welcome_page.cpp)
|
||||
set(HDR_UTIL source/scwx/qt/util/color.hpp
|
||||
source/scwx/qt/util/file.hpp
|
||||
source/scwx/qt/util/font.hpp
|
||||
|
|
@ -327,6 +335,8 @@ set(PROJECT_SOURCES ${HDR_MAIN}
|
|||
${HDR_UI}
|
||||
${SRC_UI}
|
||||
${UI_UI}
|
||||
${HDR_UI_SETUP}
|
||||
${SRC_UI_SETUP}
|
||||
${HDR_UTIL}
|
||||
${SRC_UTIL}
|
||||
${HDR_VIEW}
|
||||
|
|
@ -362,6 +372,8 @@ source_group("Header Files\\types" FILES ${HDR_TYPES})
|
|||
source_group("Source Files\\types" FILES ${SRC_TYPES})
|
||||
source_group("Header Files\\ui" FILES ${HDR_UI})
|
||||
source_group("Source Files\\ui" FILES ${SRC_UI})
|
||||
source_group("Header Files\\ui\\setup" FILES ${HDR_UI_SETUP})
|
||||
source_group("Source Files\\ui\\setup" FILES ${SRC_UI_SETUP})
|
||||
source_group("UI Files\\ui" FILES ${UI_UI})
|
||||
source_group("Header Files\\util" FILES ${HDR_UTIL})
|
||||
source_group("Source Files\\util" FILES ${SRC_UTIL})
|
||||
|
|
|
|||
29
scwx-qt/source/scwx/qt/ui/setup/finish_page.cpp
Normal file
29
scwx-qt/source/scwx/qt/ui/setup/finish_page.cpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#include <scwx/qt/ui/setup/finish_page.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace ui
|
||||
{
|
||||
namespace setup
|
||||
{
|
||||
|
||||
class FinishPage::Impl
|
||||
{
|
||||
public:
|
||||
explicit Impl() = default;
|
||||
~Impl() = default;
|
||||
};
|
||||
|
||||
FinishPage::FinishPage(QWidget* parent) :
|
||||
QWizardPage(parent), p {std::make_shared<Impl>()}
|
||||
{
|
||||
}
|
||||
|
||||
FinishPage::~FinishPage() = default;
|
||||
|
||||
} // namespace setup
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
28
scwx-qt/source/scwx/qt/ui/setup/finish_page.hpp
Normal file
28
scwx-qt/source/scwx/qt/ui/setup/finish_page.hpp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
|
||||
#include <QWizardPage>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace ui
|
||||
{
|
||||
namespace setup
|
||||
{
|
||||
|
||||
class FinishPage : public QWizardPage
|
||||
{
|
||||
public:
|
||||
explicit FinishPage(QWidget* parent = nullptr);
|
||||
~FinishPage();
|
||||
|
||||
private:
|
||||
class Impl;
|
||||
std::shared_ptr<Impl> p;
|
||||
};
|
||||
|
||||
} // namespace setup
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
29
scwx-qt/source/scwx/qt/ui/setup/map_page.cpp
Normal file
29
scwx-qt/source/scwx/qt/ui/setup/map_page.cpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#include <scwx/qt/ui/setup/map_page.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace ui
|
||||
{
|
||||
namespace setup
|
||||
{
|
||||
|
||||
class MapPage::Impl
|
||||
{
|
||||
public:
|
||||
explicit Impl() = default;
|
||||
~Impl() = default;
|
||||
};
|
||||
|
||||
MapPage::MapPage(QWidget* parent) :
|
||||
QWizardPage(parent), p {std::make_shared<Impl>()}
|
||||
{
|
||||
}
|
||||
|
||||
MapPage::~MapPage() = default;
|
||||
|
||||
} // namespace setup
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
28
scwx-qt/source/scwx/qt/ui/setup/map_page.hpp
Normal file
28
scwx-qt/source/scwx/qt/ui/setup/map_page.hpp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
|
||||
#include <QWizardPage>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace ui
|
||||
{
|
||||
namespace setup
|
||||
{
|
||||
|
||||
class MapPage : public QWizardPage
|
||||
{
|
||||
public:
|
||||
explicit MapPage(QWidget* parent = nullptr);
|
||||
~MapPage();
|
||||
|
||||
private:
|
||||
class Impl;
|
||||
std::shared_ptr<Impl> p;
|
||||
};
|
||||
|
||||
} // namespace setup
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
29
scwx-qt/source/scwx/qt/ui/setup/setup_wizard.cpp
Normal file
29
scwx-qt/source/scwx/qt/ui/setup/setup_wizard.cpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#include <scwx/qt/ui/setup/setup_wizard.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace ui
|
||||
{
|
||||
namespace setup
|
||||
{
|
||||
|
||||
class SetupWizard::Impl
|
||||
{
|
||||
public:
|
||||
explicit Impl() = default;
|
||||
~Impl() = default;
|
||||
};
|
||||
|
||||
SetupWizard::SetupWizard(QWidget* parent) :
|
||||
QWizard(parent), p {std::make_shared<Impl>()}
|
||||
{
|
||||
}
|
||||
|
||||
SetupWizard::~SetupWizard() = default;
|
||||
|
||||
} // namespace setup
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
28
scwx-qt/source/scwx/qt/ui/setup/setup_wizard.hpp
Normal file
28
scwx-qt/source/scwx/qt/ui/setup/setup_wizard.hpp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
|
||||
#include <QWizard>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace ui
|
||||
{
|
||||
namespace setup
|
||||
{
|
||||
|
||||
class SetupWizard : public QWizard
|
||||
{
|
||||
public:
|
||||
explicit SetupWizard(QWidget* parent = nullptr);
|
||||
~SetupWizard();
|
||||
|
||||
private:
|
||||
class Impl;
|
||||
std::shared_ptr<Impl> p;
|
||||
};
|
||||
|
||||
} // namespace setup
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
29
scwx-qt/source/scwx/qt/ui/setup/welcome_page.cpp
Normal file
29
scwx-qt/source/scwx/qt/ui/setup/welcome_page.cpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#include <scwx/qt/ui/setup/welcome_page.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace ui
|
||||
{
|
||||
namespace setup
|
||||
{
|
||||
|
||||
class WelcomePage::Impl
|
||||
{
|
||||
public:
|
||||
explicit Impl() = default;
|
||||
~Impl() = default;
|
||||
};
|
||||
|
||||
WelcomePage::WelcomePage(QWidget* parent) :
|
||||
QWizardPage(parent), p {std::make_shared<Impl>()}
|
||||
{
|
||||
}
|
||||
|
||||
WelcomePage::~WelcomePage() = default;
|
||||
|
||||
} // namespace setup
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
28
scwx-qt/source/scwx/qt/ui/setup/welcome_page.hpp
Normal file
28
scwx-qt/source/scwx/qt/ui/setup/welcome_page.hpp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
|
||||
#include <QWizardPage>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace ui
|
||||
{
|
||||
namespace setup
|
||||
{
|
||||
|
||||
class WelcomePage : public QWizardPage
|
||||
{
|
||||
public:
|
||||
explicit WelcomePage(QWidget* parent = nullptr);
|
||||
~WelcomePage();
|
||||
|
||||
private:
|
||||
class Impl;
|
||||
std::shared_ptr<Impl> p;
|
||||
};
|
||||
|
||||
} // namespace setup
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue