annotate src/AboutDialogGraphicsView.h @ 745:b30f03c1a40d

Changed the positioning of the about dialog background to work on Linux properly. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@1022 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Mon, 27 Sep 2010 18:53:48 +0000
parents aae5a8d04f70
children ac165b6ae67e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
406
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
1 /***************************************************************************
727
aae5a8d04f70 Updated comment copyright year.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 714
diff changeset
2 * Copyright (C) 2006-2010 by Thomas Schweitzer *
406
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
3 * thomas-schweitzer(at)arcor.de *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
4 * *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
5 * This program is free software; you can redistribute it and/or modify *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
6 * it under the terms of the GNU General Public License version 2.0 as *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
7 * published by the Free Software Foundation. *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
8 * *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
9 * This program is distributed in the hope that it will be useful, *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
12 * GNU General Public License for more details. *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
13 * *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
15 * along with this program in the file LICENSE.GPL; if not, write to the *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
16 * Free Software Foundation, Inc., *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
17 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
18 ***************************************************************************/
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
19 #ifndef ABOUTDIALOGGRAPHICSVIEW_H
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
20 #define ABOUTDIALOGGRAPHICSVIEW_H
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
21
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
22 #include <QGraphicsView>
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
23 #include <QGraphicsProxyWidget>
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
24 #include <QDesktopWidget>
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
25 #include <QDate>
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
26 #include <QTimeLine>
504
de77387ab259 Enabled the QGraphicsView about dialog.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 406
diff changeset
27 #include <QPixmap>
510
3422fa516978 - Made the animated about dialog behave correctly on systems with multiple screens. Before only the first screen was grabbed.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 504
diff changeset
28 #include <QSplashScreen>
406
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
29
638
94734b9eb54f Renamed the source files and some classes to have consistent names. What a nice kind of work.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 542
diff changeset
30 #include "AboutDialog.h"
406
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
31
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
32 class AboutDialogGraphicsView : public QGraphicsView
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
33 {
714
3363b7bb0d41 Once more let Uncrustify reformat my code.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 648
diff changeset
34 Q_OBJECT
406
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
35 public:
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
36 AboutDialogGraphicsView(AboutDialog *aboutDialog, QWidget *parent = 0);
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
37 ~AboutDialogGraphicsView(void);
714
3363b7bb0d41 Once more let Uncrustify reformat my code.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 648
diff changeset
38 void setScreenshotPixmap(const QPixmap &screenShot);
406
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
39
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
40 public slots:
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
41 void show();
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
42 void hide();
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
43
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
44 private:
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
45 AboutDialog *aboutDialog;
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
46 QGraphicsProxyWidget *graphicsProxyWidget;
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
47 QGraphicsScene *scene;
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
48 QWidget *parent;
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
49 QTimeLine *timeLine;
510
3422fa516978 - Made the animated about dialog behave correctly on systems with multiple screens. Before only the first screen was grabbed.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 504
diff changeset
50 QSplashScreen *aboutDialogAsSplashScreen;
406
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
51 int windowTitleBarWidth;
745
b30f03c1a40d Changed the positioning of the about dialog background to work on Linux properly.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 727
diff changeset
52 int windowPosOffset;
714
3363b7bb0d41 Once more let Uncrustify reformat my code.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 648
diff changeset
53 QPixmap originalPixmap;
406
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
54
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
55 private slots:
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
56 void updateStep(int step);
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
57 void showAboutDialog();
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
58 void hideReally();
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
59 };
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
60
cd5b54430964 Added some preparations for animated about dialog using QGraphicsView. But this needs Qt 4.4 so the code needs to be tested whether it runs on qt 4.3.x
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
diff changeset
61 #endif // ABOUTDIALOGGRAPHICSVIEW_H