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

Diff of /infoscreen/mainview.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 537 by torben, Fri Jan 8 21:53:23 2010 UTC revision 899 by torben, Thu Jun 24 19:06:43 2010 UTC
# Line 4  Line 4 
4    
5  #include <QVector>  #include <QVector>
6  #include <QWidget>  #include <QWidget>
 #include "screenmanager.h"  
7  #include "screenitem.h"  #include "screenitem.h"
8  #include "screenxmlhandler.h"  #include "screenxmlhandler.h"
9    
10    class QStackedLayout;
11  class VideoView;  class VideoView;
12  class MyWebView;  class WebView;
13  class ClientSideRender;  class ClientSideRender;
14  class PictureView;  class PictureView;
15    class QSvgWidget;
16    class ScreenManager;
17    class ClockOverlay;
18  class QSettings;  class QSettings;
19    
20    enum Mode {
21        ModeNone,
22        ModeSimpleWeb,
23        ModeXml,
24        ModeLocal
25    };
26    
27  class MainView : public QWidget  class MainView : public QWidget
28  {  {
29    
# Line 29  protected: Line 38  protected:
38      virtual void keyPressEvent ( QKeyEvent * event );      virtual void keyPressEvent ( QKeyEvent * event );
39      virtual void closeEvent ( QCloseEvent * event );      virtual void closeEvent ( QCloseEvent * event );
40  private:  private:
41        void loadSettings();
42      bool readXml();      bool readXml();
43        void readLocalFiles();
44      void switchScreens();      void switchScreens();
     void hideAll();  
45      void ensureVisible(QWidget* widget);      void ensureVisible(QWidget* widget);
46          void noInfoScreen();      void errorInfoScreen(QString msg);
47    
48      MyWebView* web;      Mode currentMode;
49        bool enableScreenManager;
50    
51        QStackedLayout* layout;
52    
53        WebView* web;
54      ClientSideRender* render;      ClientSideRender* render;
55      PictureView* picture;      PictureView* picture;
56      VideoView* video;      VideoView* video;
57        QSvgWidget* svg;
58      QWidget* current;      QWidget* current;
59      ScreenManager screenManager;      ScreenManager* screenManager;
60        QTime screenManagerOn;
61        QTime screenManagerOff;
62        int xmlInterval;
63    
64      QTimer* timer ;      QTimer* timer ;
65      QTime lastXml;      QTime lastXml;
# Line 55  private: Line 74  private:
74      QString url;      QString url;
75      QString screenid;      QString screenid;
76      QString xmlUrl;      QString xmlUrl;
77        QString path;
78    
79        ClockOverlay* clockOverlay;
80  };  };
81    
82  #endif //MAINVIEW_H  #endif //MAINVIEW_H

Legend:
Removed from v.537  
changed lines
  Added in v.899

  ViewVC Help
Powered by ViewVC 1.1.20