Mercurial > hg > forks > UniversalIndentGUI
comparison src/AboutDialogGraphicsView.h @ 751:ac165b6ae67e
Done some refactoring:
- Moved includes into the cpp files where possible and using class pre-declarations if possible
- Made class member variable names begin with an underscore
- Made by uic created header files be used as class members instead of inherting them
- Renamed some variables to reflect their purpose better
- Added some NULL initializations and added some comments
- Rearranged some include and declaration code parts to be consistent and better readable
- Updated for QScintilla 2.4.5
- Made UiGuiSettings be accessed via a shared pointer only
git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@1028 59b1889a-e5ac-428c-b0c7-476e01d41282
author | thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282> |
---|---|
date | Thu, 14 Oct 2010 19:52:47 +0000 |
parents | b30f03c1a40d |
children | f3631db17328 |
comparison
equal
deleted
inserted
replaced
750:a884b5861e93 | 751:ac165b6ae67e |
---|---|
18 ***************************************************************************/ | 18 ***************************************************************************/ |
19 #ifndef ABOUTDIALOGGRAPHICSVIEW_H | 19 #ifndef ABOUTDIALOGGRAPHICSVIEW_H |
20 #define ABOUTDIALOGGRAPHICSVIEW_H | 20 #define ABOUTDIALOGGRAPHICSVIEW_H |
21 | 21 |
22 #include <QGraphicsView> | 22 #include <QGraphicsView> |
23 #include <QGraphicsProxyWidget> | |
24 #include <QDesktopWidget> | |
25 #include <QDate> | |
26 #include <QTimeLine> | |
27 #include <QPixmap> | |
28 #include <QSplashScreen> | |
29 | 23 |
30 #include "AboutDialog.h" | 24 class AboutDialog; |
25 | |
26 class QTimeLine; | |
27 class QSplashScreen; | |
28 | |
31 | 29 |
32 class AboutDialogGraphicsView : public QGraphicsView | 30 class AboutDialogGraphicsView : public QGraphicsView |
33 { | 31 { |
34 Q_OBJECT | 32 Q_OBJECT |
35 public: | 33 public: |
36 AboutDialogGraphicsView(AboutDialog *aboutDialog, QWidget *parent = 0); | 34 AboutDialogGraphicsView(AboutDialog *aboutDialog, QWidget *parentWindow = NULL); |
37 ~AboutDialogGraphicsView(void); | 35 ~AboutDialogGraphicsView(void); |
38 void setScreenshotPixmap(const QPixmap &screenShot); | |
39 | 36 |
40 public slots: | 37 public slots: |
41 void show(); | 38 void show(); |
42 void hide(); | 39 void hide(); |
43 | 40 |
44 private: | |
45 AboutDialog *aboutDialog; | |
46 QGraphicsProxyWidget *graphicsProxyWidget; | |
47 QGraphicsScene *scene; | |
48 QWidget *parent; | |
49 QTimeLine *timeLine; | |
50 QSplashScreen *aboutDialogAsSplashScreen; | |
51 int windowTitleBarWidth; | |
52 int windowPosOffset; | |
53 QPixmap originalPixmap; | |
54 | |
55 private slots: | 41 private slots: |
56 void updateStep(int step); | 42 void updateStep(int step); |
57 void showAboutDialog(); | 43 void showAboutDialog(); |
58 void hideReally(); | 44 void hideReally(); |
45 | |
46 private: | |
47 AboutDialog *_aboutDialog; | |
48 QGraphicsProxyWidget *_graphicsProxyWidget; | |
49 QWidget *_parentWindow; | |
50 QTimeLine *_timeLine; | |
51 QSplashScreen *_aboutDialogAsSplashScreen; | |
52 int _windowTitleBarWidth; | |
53 int _windowPosOffset; | |
59 }; | 54 }; |
60 | 55 |
61 #endif // ABOUTDIALOGGRAPHICSVIEW_H | 56 #endif // ABOUTDIALOGGRAPHICSVIEW_H |