Scribus
Open source desktop publishing at your fingertips
about.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef ABOUT_H
8 #define ABOUT_H
9 
10 #include <QDialog>
11 #include <QTextBrowser>
12 #include <QVBoxLayout>
13 #include <QHBoxLayout>
14 
15 #include "scribusapi.h"
16 
17 class QLabel;
18 class QWidget;
19 class QTabWidget;
20 class QPushButton;
21 class QShowEvent;
22 
23 
24 class SCRIBUS_API About : public QDialog
25 {
26  Q_OBJECT
27 
28 public:
29 
30  typedef enum
31  {
32  Default = 0,
33  CheckUpdates = 1
34  } AboutMode;
35 
36  About( QWidget* parent, AboutMode mode = About::Default );
37  ~About() {};
38 
39 protected:
40  QLabel* pixmapLabel1;
41  QLabel* buildID;
42  QPushButton* okButton;
43  QPushButton* checkForUpdateButton;
44  QTabWidget* tabWidget2;
45  QWidget* tab;
46  QWidget* tab_2;
47  QWidget* tab_3;
48  QWidget* tab_4;
49  QWidget* tab_5;
50  QWidget* tab_Licence;
51  QTextBrowser* authorView;
52  QTextBrowser* transView;
53  QTextBrowser* onlineView;
54  QTextBrowser* updateView;
55  QTextBrowser* textViewLicence;
56  QVBoxLayout* aboutLayout;
57  QVBoxLayout* updateLayout;
58  QVBoxLayout* licenceLayout;
59  QHBoxLayout* tabLayout;
60  QVBoxLayout* tabLayout1;
61  QHBoxLayout* tabLayout_2;
62  QHBoxLayout* tabLayout_4;
63  QHBoxLayout* layout2;
64 
65  bool m_firstShow;
66  AboutMode m_mode;
67  virtual void showEvent ( QShowEvent * event );
68  QString trAuthorTitle(QString title);
69  QString trTranslationTitle(QString title);
70  QString trLinksTitle(QString title);
71  QString parseAuthorFile(QString fileName);
72  QString parseTranslationFile(QString fileName);
73  QString parseLinksFile(QString fileName);
74 
75 protected slots:
76  void runUpdateCheck();
77 
78 public slots:
79  virtual void setVisible (bool visible);
80 };
81 
82 #endif // ABOUT_H
Definition: about.h:24