/[projects]/infoscreen/MainView.h
ViewVC logotype

Contents of /infoscreen/MainView.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 535 - (show annotations) (download)
Fri Jan 8 09:20:37 2010 UTC (14 years, 4 months ago) by torben
File MIME type: text/plain
File size: 995 byte(s)
make client even more configureable
1
2 #ifndef MAINVIEW_H
3 #define MAINVIEW_H
4
5 #include <QVector>
6 #include <QWidget>
7 #include "screenmanager.h"
8 #include "screenitem.h"
9 #include "screenxmlhandler.h"
10
11 class VideoView;
12 class MyWebView;
13 class ClientSideRender;
14 class PictureView;
15
16 class QSettings;
17
18 class MainView : public QWidget
19 {
20
21 Q_OBJECT
22 public:
23 MainView(QWidget* parent);
24
25 public slots:
26 void onTimer();
27
28 protected:
29 virtual void keyPressEvent ( QKeyEvent * event );
30 private:
31 bool readXml();
32 void switchScreens();
33 void hideAll();
34 void ensureVisible(QWidget* widget);
35
36
37 MyWebView* web;
38 ClientSideRender* render;
39 PictureView* picture;
40 VideoView* video;
41 QWidget* current;
42 ScreenManager screenManager;
43
44 QTime lastXml;
45 QTime lastScreenSwitch;
46 ScreenItem currentItem;
47 int currentItemIdx;
48 QVector<ScreenItem> screenItems;
49
50 ScreenXmlHandler xmlHandler;
51
52 QSettings* settings;
53 QString url;
54 QString screenid;
55 QString xmlUrl;
56 };
57
58 #endif //MAINVIEW_H

  ViewVC Help
Powered by ViewVC 1.1.20