GpgFrontend Project A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.

AboutDialog.h
1
29 #ifndef __ABOUTDIALOG_H__
30 #define __ABOUTDIALOG_H__
31
32 #include "core/GpgContext.h"
33 #include "ui/GpgFrontendUI.h"
34 #include "ui/struct/SoftwareVersion.h"
35
36 namespace GpgFrontend::UI {
37
42 class InfoTab : public QWidget {
43 Q_OBJECT
44
45 public:
51 explicit InfoTab(QWidget* parent = nullptr);
52 };
53
58 class TranslatorsTab : public QWidget {
59 Q_OBJECT
60
61 public:
67 explicit TranslatorsTab(QWidget* parent = nullptr);
68 };
69
74 class UpdateTab : public QWidget {
75 Q_OBJECT
76
77 QLabel* current_version_label_;
78 QLabel* latest_version_label_;
79 QLabel* upgrade_label_;
80 QProgressBar* pb_;
81 QString current_version_;
82 QPushButton* download_button_;
83
84 public:
90 explicit UpdateTab(QWidget* parent = nullptr);
91
96 void getLatestVersion();
97
98 private slots:
104 void slot_show_version_status(const SoftwareVersion& version);
105
106 signals:
112 void SignalReplyFromUpdateServer(QByteArray data);
113 };
114
119 class AboutDialog : public QDialog {
120 Q_OBJECT
121
122 public:
129 explicit AboutDialog(int defaultIndex, QWidget* parent);
130
131 protected:
137 void showEvent(QShowEvent* ev) override;
138
139 private:
140 UpdateTab* update_tab_;
141 };
142
143 } // namespace GpgFrontend::UI
144
145 #endif // __ABOUTDIALOG_H__
GpgFrontend::UI
Definition: VerifyDetailsDialog.cpp:33
GpgFrontend::UI::TranslatorsTab
Class containing the translator tab of about dialog.
Definition: AboutDialog.h:58
GpgFrontend::UI::UpdateTab::getLatestVersion
void getLatestVersion()
Get the Latest Version object.
Definition: AboutDialog.cpp:196
GpgFrontend::SingletonFunctionObject< GpgContext >::GetInstance
static GpgContext & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:57
GpgFrontend::UI::SoftwareVersion
Definition: SoftwareVersion.h:39
GpgFrontend::UI::InfoTab
Class containing the main tab of about dialog.
Definition: AboutDialog.h:42
GpgFrontend::GlobalSettingStation::GetResourceDir
std::filesystem::path GetResourceDir() const
Get the Resource Dir object.
Definition: GlobalSettingStation.h:130
GpgFrontend::UI::AboutDialog::AboutDialog
AboutDialog(int defaultIndex, QWidget *parent)
Construct a new About Dialog object.
Definition: AboutDialog.cpp:37
GpgFrontend::UI::VersionCheckThread::SignalUpgradeVersion
void SignalUpgradeVersion(SoftwareVersion version)
GpgFrontend::UI::SoftwareVersion::VersionWithDrawn
bool VersionWithDrawn() const
Definition: SoftwareVersion.h:68
GpgFrontend::UI::SoftwareVersion::CurrentVersionReleased
bool CurrentVersionReleased() const
Definition: SoftwareVersion.h:79
GpgFrontend::UI::AboutDialog::showEvent
void showEvent(QShowEvent *ev) override
Definition: AboutDialog.cpp:69
GpgFrontend::UI::TranslatorsTab::TranslatorsTab
TranslatorsTab(QWidget *parent=nullptr)
Construct a new Translators Tab object.
Definition: AboutDialog.cpp:112
GpgFrontend::UI::UpdateTab::UpdateTab
UpdateTab(QWidget *parent=nullptr)
Construct a new Update Tab object.
Definition: AboutDialog.cpp:144
GpgFrontend::UI::VersionCheckThread
Definition: VersionCheckThread.h:41
GpgFrontend::UI::InfoTab::InfoTab
InfoTab(QWidget *parent=nullptr)
Construct a new Info Tab object.
Definition: AboutDialog.cpp:74
GpgFrontend::UI::UpdateTab::slot_show_version_status
void slot_show_version_status(const SoftwareVersion &version)
Definition: AboutDialog.cpp:211
GpgFrontend::UI::AboutDialog
Class for handling the about dialog.
Definition: AboutDialog.h:119
GpgFrontend::UI::SoftwareVersion::NeedUpgrade
bool NeedUpgrade() const
Definition: SoftwareVersion.h:57
GpgFrontend::UI::UpdateTab
Class containing the main tab of about dialog.
Definition: AboutDialog.h:74
GpgFrontend::UI::UpdateTab::SignalReplyFromUpdateServer
void SignalReplyFromUpdateServer(QByteArray data)