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

Contents of /infoscreen/MainView.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 537 - (show annotations) (download)
Fri Jan 8 21:53:23 2010 UTC (14 years, 4 months ago) by torben
File MIME type: text/plain
File size: 1089 byte(s)
- (xml) prepare for more screen media types
- make sure the app exits when requested
- (xml) nicer screen when theres nothing to show


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 virtual void closeEvent ( QCloseEvent * event );
31 private:
32 bool readXml();
33 void switchScreens();
34 void hideAll();
35 void ensureVisible(QWidget* widget);
36 void noInfoScreen();
37
38 MyWebView* web;
39 ClientSideRender* render;
40 PictureView* picture;
41 VideoView* video;
42 QWidget* current;
43 ScreenManager screenManager;
44
45 QTimer* timer ;
46 QTime lastXml;
47 QTime lastScreenSwitch;
48 ScreenItem currentItem;
49 int currentItemIdx;
50 QVector<ScreenItem> screenItems;
51
52 ScreenXmlHandler xmlHandler;
53
54 QSettings* settings;
55 QString url;
56 QString screenid;
57 QString xmlUrl;
58 };
59
60 #endif //MAINVIEW_H

  ViewVC Help
Powered by ViewVC 1.1.20