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

Contents of /infoscreen/MainView.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 516 - (show annotations) (download)
Tue Dec 15 21:06:14 2009 UTC (14 years, 5 months ago) by torben
File size: 1226 byte(s)
code sync
1 #include "MainView.h"
2 #include <QApplication>
3 #include <QPushButton>
4 #include <QLabel>
5 #include <QVBoxLayout>
6
7 #include <QTimer>
8
9 //#include <VideoPlayer> //Phonon
10 //#include <MediaSource> //Phonon
11
12 #include "MyWebView.h"
13 #include "clientsiderender.h"
14
15
16 MainView::MainView(QWidget* parent)
17 : QWidget(parent)
18 {
19 this->resize(400,400);
20 this->setWindowState( Qt::WindowFullScreen );
21
22 // qApp->setOverrideCursor( QCursor( Qt::BlankCursor) );
23
24
25 //Phonon::VideoPlayer* video;
26 //video = new Phonon::VideoPlayer(Phonon::VideoCategory, this);
27 //video->load( Phonon::MediaSource("http://todic.dk/ps3cache/Inglourious_Basterds_2009.avi") );
28 //layout->addWidget(video,1);
29 //video->play();
30
31 render = new ClientSideRender(this);
32 web = new MyWebView(this);
33 web->setVisible( false );
34
35 QVBoxLayout* layout = new QVBoxLayout();
36 layout->addWidget(web,1);
37 layout->addWidget(render,1);
38 layout->addStretch();
39 layout->setContentsMargins(0,0,0,0);
40 setLayout(layout);
41
42 QTimer* timer = new QTimer(this);
43 connect(timer, SIGNAL(timeout() ), this, SLOT(onTimer() ));
44 timer->start(1000);
45
46
47 // web->start();
48 }
49
50
51 void MainView::onTimer()
52 {
53 screenManager.timerTick();
54 }

  ViewVC Help
Powered by ViewVC 1.1.20