GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
AboutDialog.h
1 
29 #pragma once
30 
31 #include "ui/GpgFrontendUI.h"
32 #include "ui/dialog/GeneralDialog.h"
33 
34 namespace GpgFrontend::UI {
35 
40 class InfoTab : public QWidget {
41  Q_OBJECT
42 
43  public:
49  explicit InfoTab(QWidget* parent = nullptr);
50 };
51 
56 class TranslatorsTab : public QWidget {
57  Q_OBJECT
58 
59  public:
65  explicit TranslatorsTab(QWidget* parent = nullptr);
66 };
67 
72 class UpdateTab : public QWidget {
73  Q_OBJECT
74 
75  QLabel* current_version_label_;
76  QLabel* latest_version_label_;
77  QLabel* upgrade_label_;
78  QProgressBar* pb_;
79  QString current_version_;
80 
81  public:
87  explicit UpdateTab(QWidget* parent = nullptr);
88 
89  protected:
90  void showEvent(QShowEvent* event) override;
91 
92  private slots:
99 
100  signals:
106  void SignalReplyFromUpdateServer(QByteArray data);
107 };
108 
113 class AboutDialog : public GeneralDialog {
114  Q_OBJECT
115 
116  public:
123  explicit AboutDialog(int defaultIndex, QWidget* parent);
124 
125  protected:
131  void showEvent(QShowEvent* ev) override;
132 
133  private:
134  UpdateTab* update_tab_;
135 };
136 
137 } // namespace GpgFrontend::UI
Class for handling the about dialog.
Definition: AboutDialog.h:113
AboutDialog(int defaultIndex, QWidget *parent)
Construct a new About Dialog object.
Definition: AboutDialog.cpp:39
void showEvent(QShowEvent *ev) override
Definition: AboutDialog.cpp:74
Definition: GeneralDialog.h:35
Class containing the main tab of about dialog.
Definition: AboutDialog.h:40
InfoTab(QWidget *parent=nullptr)
Construct a new Info Tab object.
Definition: AboutDialog.cpp:76
Class containing the translator tab of about dialog.
Definition: AboutDialog.h:56
TranslatorsTab(QWidget *parent=nullptr)
Construct a new Translators Tab object.
Definition: AboutDialog.cpp:120
Class containing the main tab of about dialog.
Definition: AboutDialog.h:72
void slot_show_version_status()
Definition: AboutDialog.cpp:211
void SignalReplyFromUpdateServer(QByteArray data)
UpdateTab(QWidget *parent=nullptr)
Construct a new Update Tab object.
Definition: AboutDialog.cpp:140
Definition: FileReadTask.cpp:31