adds in advanced gradient control to axis code (thanks to Yue Shi Lai)

git-svn-id: svn://svn.code.sf.net/p/qjoypad/code/trunk@116 c05e91a0-76c8-4ec0-b377-ef19ce7cc080
This commit is contained in:
John Toman
2009-09-16 03:51:40 +00:00
committed by virtuoussin13
parent 85dfc3ee90
commit e7f4dfa748
5 changed files with 143 additions and 44 deletions

View File

@ -6,6 +6,7 @@
#include <QComboBox>
#include <QSpinBox>
#include <QCheckBox>
#include <QDoubleSpinBox>
#include <QLabel>
//for my home-brewed widgets
#include "joyslider.h"
@ -22,7 +23,9 @@ class AxisEdit : public QDialog {
void setState( int val );
protected slots:
//slots for GUI events
void CModeChanged( int index );
void CGradientChanged( bool on );
void CModeChanged( int index );
void CTransferCurveChanged( int index );
void CThrottleChanged( int index );
void accept();
protected:
@ -30,9 +33,11 @@ class AxisEdit : public QDialog {
Axis *axis;
//the important parts of the dialog:
QCheckBox *CGradient;
QComboBox *CMode, *CThrottle;
QComboBox *CMode, *CThrottle, *CTransferCurve;
QFrame *MouseBox, *KeyBox;
QSpinBox *SSpeed;
QLabel *LSensitivity;
QDoubleSpinBox *SSensitivity;
KeyButton *BNeg, *BPos;
JoySlider *Slider;
QPushButton *BOkay, *BCancel;