You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kvkbd/src/VButton.h

51 lines
860 B

#ifndef VBUTTON_H
#define VBUTTON_H
#include <tqpushbutton.h>
#include <tqevent.h>
class VButton : public TQPushButton
{
Q_OBJECT
public:
VButton(TQWidget *parent=0, const char *name=0);
~VButton();
void setKeyCode(unsigned int keycode);
unsigned int getKeyCode();
void setText(const TQString& text);
void setShiftText(const TQString& text);
void capsPressed(bool press);
void reposition(int width, int height);
void res();
static double pw;
static double ph;
private:
bool press;
bool inrpt;
protected:
unsigned int keycode;
TQString u;
TQString l;
TQRect orig_size;
void timerEvent ( TQTimerEvent * );
public slots:
void sendKey();
void shiftPressed(bool press);
protected slots:
void mousePressEvent(TQMouseEvent *e);
void mouseReleaseEvent(TQMouseEvent *e);
signals:
void keyClick(unsigned int keycode);
};
#endif