blob: 77b1ff2ef7c72f571e8cdc133d6f725e3ef63070 (
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
|
#include "ftnoir_protocol_mouse.h"
#include "api/plugin-api.hpp"
MOUSEControls::MOUSEControls()
{
ui.setupUi( this );
connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(doOK()));
connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel()));
tie_setting(s.Mouse_X, ui.cbxSelectMouse_X);
tie_setting(s.Mouse_Y, ui.cbxSelectMouse_Y);
tie_setting(s.sensitivity_x, ui.sensitivity_x);
tie_setting(s.sensitivity_y, ui.sensitivity_y);
}
void MOUSEControls::doOK() {
s.b->save();
close();
}
void MOUSEControls::doCancel()
{
close();
}
|