diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-29 20:16:26 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-29 20:16:26 +0200 |
commit | dbb5ab72d1f16ce864567dad84a7bf2a586fd0ff (patch) | |
tree | ec5aeca433f6fab2619834dd0c1edc1c8c46ff13 /ftnoir_protocol_vjoy/ftnoir_protocol_vjoy_dialog.cpp | |
parent | c05fc771558a62ebdcd16dfb2f8459ae2a12fb88 (diff) |
VJoy protocol
Diffstat (limited to 'ftnoir_protocol_vjoy/ftnoir_protocol_vjoy_dialog.cpp')
-rw-r--r-- | ftnoir_protocol_vjoy/ftnoir_protocol_vjoy_dialog.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/ftnoir_protocol_vjoy/ftnoir_protocol_vjoy_dialog.cpp b/ftnoir_protocol_vjoy/ftnoir_protocol_vjoy_dialog.cpp new file mode 100644 index 00000000..0009553b --- /dev/null +++ b/ftnoir_protocol_vjoy/ftnoir_protocol_vjoy_dialog.cpp @@ -0,0 +1,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; +} |