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

Contents of /infoscreen/MainView.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 515 - (show annotations) (download)
Tue Dec 15 20:36:26 2009 UTC (14 years, 5 months ago) by torben
File size: 1193 byte(s)
code sync. start on client side render
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->setWindowState( Qt::WindowFullScreen );
20 // qApp->setOverrideCursor( QCursor( Qt::BlankCursor) );
21
22
23 //Phonon::VideoPlayer* video;
24 //video = new Phonon::VideoPlayer(Phonon::VideoCategory, this);
25 //video->load( Phonon::MediaSource("http://todic.dk/ps3cache/Inglourious_Basterds_2009.avi") );
26 //layout->addWidget(video,1);
27 //video->play();
28
29 render = new ClientSideRender(this);
30 web = new MyWebView(this);
31 web->setVisible( false );
32
33 QVBoxLayout* layout = new QVBoxLayout();
34 layout->addWidget(web,1);
35 layout->addWidget(render,1);
36 layout->addStretch();
37 layout->setContentsMargins(0,0,0,0);
38 setLayout(layout);
39
40 QTimer* timer = new QTimer(this);
41 connect(timer, SIGNAL(timeout() ), this, SLOT(onTimer() ));
42 timer->start(1000);
43
44
45 web->start();
46 }
47
48
49 void MainView::onTimer()
50 {
51 screenManager.timerTick();
52 }

  ViewVC Help
Powered by ViewVC 1.1.20