blob: 0009553be66c8e10f51a775befe035b454a885ad (
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_vjoy.h"
#include "facetracknoir/global-settings.h"
VJoyControls::VJoyControls() : QWidget()
{
ui.setupUi( this );
connect(ui.btnOK, SIGNAL(clicked()), this, SLOT(doOK()));
connect(ui.btnCancel, SIGNAL(clicked()), this, SLOT(doCancel()));
}
VJoyControls::~VJoyControls() {
}
//
// Initialize tracker-client-dialog
//
void VJoyControls::Initialize(QWidget *parent) {
QPoint offsetpos(100, 100);
if (parent) {
this->move(parent->pos() + offsetpos);
}
show();
}
void VJoyControls::doOK() {
save();
this->close();
}
void VJoyControls::doCancel() {
this->close();
}
void VJoyControls::save() {
}
extern "C" FTNOIR_PROTOCOL_BASE_EXPORT IProtocolDialog* CALLING_CONVENTION GetDialog( )
{
return new VJoyControls;
}
|