equal
deleted
inserted
replaced
39 #include "mapContainer.h" |
39 #include "mapContainer.h" |
40 #include "about.h" |
40 #include "about.h" |
41 #include "fpsedit.h" |
41 #include "fpsedit.h" |
42 #include "netudpwidget.h" |
42 #include "netudpwidget.h" |
43 #include "chatwidget.h" |
43 #include "chatwidget.h" |
|
44 #include "SDLs.h" |
44 |
45 |
45 PageMain::PageMain(QWidget* parent) : QWidget(parent) |
46 PageMain::PageMain(QWidget* parent) : QWidget(parent) |
46 { |
47 { |
47 QFont * font14 = new QFont("MS Shell Dlg", 14); |
48 QFont * font14 = new QFont("MS Shell Dlg", 14); |
48 QGridLayout * pageLayout = new QGridLayout(this); |
49 QGridLayout * pageLayout = new QGridLayout(this); |
370 QLabel * resolution = new QLabel(AGGroupBox); |
371 QLabel * resolution = new QLabel(AGGroupBox); |
371 resolution->setText(QLabel::tr("Resolution")); |
372 resolution->setText(QLabel::tr("Resolution")); |
372 GBAreslayout->addWidget(resolution); |
373 GBAreslayout->addWidget(resolution); |
373 |
374 |
374 CBResolution = new QComboBox(AGGroupBox); |
375 CBResolution = new QComboBox(AGGroupBox); |
375 CBResolution->addItem("640x480"); |
376 SDLInteraction sdli; |
376 CBResolution->addItem("800x600"); |
377 CBResolution->addItems(sdli.getResolutions()); |
377 CBResolution->addItem("1024x768"); |
|
378 CBResolution->addItem("1280x1024"); |
|
379 GBAreslayout->addWidget(CBResolution); |
378 GBAreslayout->addWidget(CBResolution); |
380 GBAlayout->addLayout(GBAreslayout); |
379 GBAlayout->addLayout(GBAreslayout); |
381 |
380 |
382 QHBoxLayout * GBAfpslayout = new QHBoxLayout(0); |
381 QHBoxLayout * GBAfpslayout = new QHBoxLayout(0); |
383 QLabel * maxfps = new QLabel(AGGroupBox); |
382 QLabel * maxfps = new QLabel(AGGroupBox); |