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

36
src/keycode.h Normal file
View File

@ -0,0 +1,36 @@
#ifndef KEYCODE_H
#define KEYCODE_H
//To create the "press a key" dialog:
#include <QPushButton>
#include <QDialog>
#include <QPaintEvent>
#include <QPainter>
#include "constant.h"
//Produce a string for any keycode
const QString ktos( int keycode );
//The X11 display, taken from main.cpp
extern Display* display;
//a button that requests a keycode from the user when clicked.
class KeyButton : public QPushButton {
Q_OBJECT
public:
KeyButton(QString name, int val, QWidget* parent, bool m = false, bool nowMouse = false);
int getValue() {return value;};
int choseMouse() {return mouseClicked;};
protected slots:
void onClick();
private:
QString buttonname;
int value;
bool mouse;
bool mouseClicked;
};
#endif