Files
thunderpad/src/axis_edit.h
John Toman 345bb5748e straight copy of qt4 branch over to trunk, merge refused to work
git-svn-id: svn://svn.code.sf.net/p/qjoypad/code/trunk@95 c05e91a0-76c8-4ec0-b377-ef19ce7cc080
2009-08-03 01:01:45 +00:00

42 lines
988 B
C++

#ifndef AXIS_EDIT_H
#define AXIS_EDIT_H
//to refer to the axis we're editing
//for building up the dialog we need
#include "axis.h"
#include <QComboBox>
#include <QSpinBox>
#include <QCheckBox>
#include <QLabel>
//for my home-brewed widgets
#include "joyslider.h"
#include "keycode.h"
class AxisEdit : public QDialog {
Q_OBJECT
public:
AxisEdit(Axis* ax);
//show the dialog (modal)
void show();
//set the current state of the axis (adjusts the JoySlider for real time
//notification of the state to the user)
void setState( int val );
protected slots:
//slots for GUI events
void CModeChanged( int index );
void CThrottleChanged( int index );
void accept();
protected:
//the associated Axis that needs to be set.
Axis *axis;
//the important parts of the dialog:
QCheckBox *CGradient;
QComboBox *CMode, *CThrottle;
QFrame *MouseBox, *KeyBox;
QSpinBox *SSpeed;
KeyButton *BNeg, *BPos;
JoySlider *Slider;
QPushButton *BOkay, *BCancel;
};
#endif