summaryrefslogtreecommitdiffstats
path: root/src/widget.h
blob: 96e6f1a9de4451f38a42e5eff2fda59f3a40df7c (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
#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>  // for Qt5
#include <QDebug>

namespace Ui {
class Widget;
}

class AdvancedScreen;
class AdvancedOutput;

class Widget : public QWidget
{
	Q_OBJECT

public:
	explicit Widget(QWidget *parent = nullptr);
	~Widget();

protected:
	virtual void showEvent(QShowEvent *event) override;

private slots:
	void comboBold(int index);

private:
	Ui::Widget *_ui;
	bool _ignoreResolutionChange;
	QVector<AdvancedScreen*> _advancedScreens;
	QVector<AdvancedOutput*> _advancedOutput;

	void initControls();
	void connectButtons();
	bool keepResolution();
};

#endif // WIDGET_H