00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef CALCDISPLAY_H
00017 #define CALCDISPLAY_H
00018
00019 #include <qhbox.h>
00020 #include <qlcdnumber.h>
00021 #include <qhgroupbox.h>
00022 #include <qpushbutton.h>
00023 #include <qcombobox.h>
00024
00025
00026
00027 class LCDDisplay : public QHBox{
00028
00029 Q_OBJECT
00030 public:
00031 LCDDisplay( QWidget *parent=0, const char *name=0 );
00032
00033 public slots:
00034 void setValue(double);
00035 void swapLCD(void);
00036 void cbbxChange(void);
00037
00038
00039
00040 private:
00041 int grpbxStyle;
00042
00043 QHGroupBox *grpbxTop;
00044 QComboBox *cbbxTop;
00045 QLCDNumber *lcdTop;
00046
00047 QHGroupBox *grpbxBottom;
00048 QComboBox *cbbxBottom;
00049 QLCDNumber *lcdBottom;
00050
00051 QPushButton *btnSwap;
00052
00053 int iCurrentLCD;
00054
00055 double Euro2x(int iIndex, double dValue);
00056 double x2Euro(int iIndex, double dValue);
00057
00058
00059 };
00060
00061 #endif // CALCDISPLAY_H