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

Annotation of /infoscreen/mainview.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 512 - (hide annotations) (download)
Tue Dec 15 13:53:02 2009 UTC (14 years, 5 months ago) by torben
Original Path: infoscreen/MainView.cpp
File size: 1015 byte(s)
Now with screenmanager

1 torben 509 #include "MainView.h"
2 torben 512 #include <QApplication>
3 torben 510 #include <QPushButton>
4 torben 512 #include <QLabel>
5 torben 510 #include <QVBoxLayout>
6 torben 509
7 torben 510 #include <QTimer>
8    
9 torben 511 #include <VideoPlayer> //Phonon
10     #include <MediaSource> //Phonon
11    
12 torben 512 #include "MyWebView.h"
13 torben 511
14 torben 512
15 torben 509 MainView::MainView(QWidget* parent)
16     : QWidget(parent)
17     {
18 torben 512 this->setWindowState( Qt::WindowFullScreen );
19     qApp->setOverrideCursor( QCursor( Qt::BlankCursor) );
20 torben 510
21 torben 511
22 torben 512 //Phonon::VideoPlayer* video;
23     //video = new Phonon::VideoPlayer(Phonon::VideoCategory, this);
24     //video->load( Phonon::MediaSource("http://todic.dk/ps3cache/Inglourious_Basterds_2009.avi") );
25     //layout->addWidget(video,1);
26     //video->play();
27 torben 510
28 torben 512 web = new MyWebView(this);
29 torben 511
30 torben 510 QVBoxLayout* layout = new QVBoxLayout();
31 torben 512 layout->addWidget(web,1);
32    
33 torben 510 layout->addStretch();
34     layout->setContentsMargins(0,0,0,0);
35     setLayout(layout);
36    
37     QTimer* timer = new QTimer(this);
38     connect(timer, SIGNAL(timeout() ), this, SLOT(onTimer() ));
39 torben 511 timer->start(1000);
40 torben 512
41    
42     web->start();
43 torben 509 }
44    
45    
46     void MainView::onTimer()
47     {
48 torben 512 screenManager.timerTick();
49 torben 509 }

  ViewVC Help
Powered by ViewVC 1.1.20