From b50692ba650418aa06cbd2662b4ff698c7d3f961 Mon Sep 17 00:00:00 2001 From: groucho Date: Sat, 15 Feb 2003 11:45:26 +0000 Subject: Forgot to add the sources :-} --- (limited to 'noncore/tools/euroconv/calckeypad.h') diff --git a/noncore/tools/euroconv/calckeypad.h b/noncore/tools/euroconv/calckeypad.h new file mode 100644 index 0000000..42e7eb3 --- a/dev/null +++ b/noncore/tools/euroconv/calckeypad.h @@ -0,0 +1,78 @@ +/**************************************************************************** + * + * File: calckeypad.h + * + * Description: Header file for the class KeyPad + * + * + * Authors: Eric Santonacci + * + * Requirements: Qt + * + * $Id$ + * + * + ***************************************************************************/ +#ifndef CALCKEYPAD_H +#define CALCKEYPAD_H + +#include +#include +#include + +#include "calcdisplay.h" + +class KeyPad : public QGrid { + +Q_OBJECT +public: + KeyPad(LCDDisplay *LCD, QWidget *parent=0, const char *name=0 ); + +public slots: + void enterDigits(int); + void operatorPressed(int); + void clearLCD(void); + void aboutDialog(void); + void gotoDec(void); + +private: + LCDDisplay *display; + double dCurrent; + int iLenCurrent; + bool bIsDec; + double dDecCurrent; + int iPreviousOperator; + double dPreviousValue; + + QPushButton *btn0; + QPushButton *btn1; + QPushButton *btn2; + QPushButton *btn3; + QPushButton *btn4; + QPushButton *btn5; + QPushButton *btn6; + QPushButton *btn7; + QPushButton *btn8; + QPushButton *btn9; + QButtonGroup *grpbtnDigits; + + QPushButton *btnDot; + + QPushButton *btnClear; + + QPushButton *btnPlus; + QPushButton *btnMinus; + QPushButton *btnMultiply; + QPushButton *btnDivide; + QPushButton *btnEqual; + QPushButton *btnPercent; + QPushButton *btnF1; + QPushButton *btnAbout; + + QButtonGroup *grpbtnOperators; + + + +}; + +#endif // CALCKEYPAD_H -- cgit v0.9.0.2