summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev_dialog.cpp
blob: 6665a3d21195799f9f44bccfbdb8b13de428694c (plain)
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
#include "ftnoir_protocol_libevdev.h"
#include "facetracknoir/global-settings.h"

LibevdevControls::LibevdevControls() : QWidget()
{
	ui.setupUi( this );
	connect(ui.btnOK, SIGNAL(clicked()), this, SLOT(doOK()));
	connect(ui.btnCancel, SIGNAL(clicked()), this, SLOT(doCancel()));
}

LibevdevControls::~LibevdevControls() {
}

//
// Initialize tracker-client-dialog
//
void LibevdevControls::Initialize(QWidget *parent) {

	QPoint offsetpos(100, 100);
	if (parent) {
		this->move(parent->pos() + offsetpos);
	}
	show();
}

void LibevdevControls::doOK() {
	save();
	this->close();
}

void LibevdevControls::doCancel() {
    this->close();
}

void LibevdevControls::save() {
}

extern "C" FTNOIR_PROTOCOL_BASE_EXPORT IProtocolDialog* CALLING_CONVENTION GetDialog( )
{
    return new LibevdevControls;
}