finishing up repo migration

git-svn-id: svn://svn.code.sf.net/p/qjoypad/code/trunk@80 c05e91a0-76c8-4ec0-b377-ef19ce7cc080
This commit is contained in:
John Toman
2009-05-26 00:45:05 +00:00
committed by virtuoussin13
commit 1cc6e9087e
59 changed files with 6563 additions and 0 deletions

41
src/axis_edit.h Normal file
View File

@ -0,0 +1,41 @@
#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