blob: efcf9e90747ba9d28bb5f38c240a3c60a6562c58 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QtGui>
#include <QDebug>
#include <x.h>
namespace Ui {
class Widget;
}
class Widget : public QWidget
{
Q_OBJECT
typedef QSet<RRMode> ModeSet;
typedef QSet<RRCrtc> CrtcSet;
typedef QSet<RROutput> OutputSet;
typedef QList<RRMode> ModeList;
typedef QList<RRCrtc> CrtcList;
typedef QList<RROutput> OutputList;
typedef QMap<RRMode, XRRModeInfo*> ModeMap;
typedef QMap<RRCrtc, XRRCrtcInfo*> CrtcMap;
typedef QMap<RROutput, XRROutputInfo*> OutputMap;
public:
explicit Widget(QWidget *parent = 0);
~Widget();
private:
void updateScreenResources();
Ui::Widget * _ui;
Display* _display;
XRRScreenResources* _screenResources;
ModeMap _modeMap;
CrtcMap _crtcMap;
OutputMap _outputMap;
OutputList _connectedOutputList;
RROutput _beamer, _monitor;
};
#endif // WIDGET_H
|