summaryrefslogtreecommitdiff
path: root/noncore/tools/euroconv/calcdisplay.h
Side-by-side diff
Diffstat (limited to 'noncore/tools/euroconv/calcdisplay.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/tools/euroconv/calcdisplay.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/noncore/tools/euroconv/calcdisplay.h b/noncore/tools/euroconv/calcdisplay.h
new file mode 100644
index 0000000..17ce8f4
--- a/dev/null
+++ b/noncore/tools/euroconv/calcdisplay.h
@@ -0,0 +1,57 @@
+/****************************************************************************
+ *
+ * File: calcdisplay.h
+ *
+ * Description: Header file for the class LCDDisplay
+ *
+ *
+ * Authors: Eric Santonacci <Eric.Santonacci@talc.fr>
+ *
+ * Requirements: Qt
+ *
+ * $Id$
+ *
+ *
+ ***************************************************************************/
+#ifndef CALCDISPLAY_H
+#define CALCDISPLAY_H
+
+#include <qhbox.h>
+#include <qlcdnumber.h>
+#include <qvgroupbox.h>
+#include <qpushbutton.h>
+#include <qcombobox.h>
+
+class LCDDisplay : public QHBox{
+
+Q_OBJECT
+public:
+ LCDDisplay( QWidget *parent=0, const char *name=0 );
+
+public slots:
+ void setValue(double);
+ void swapLCD(void);
+ void cbbxChange(void);
+
+//signals:
+// void valueChanged( int );
+private:
+ QVGroupBox *grpbxTop;
+ QComboBox *cbbxTop;
+ QLCDNumber *lcdTop;
+
+ QVGroupBox *grpbxBottom;
+ QComboBox *cbbxBottom;
+ QLCDNumber *lcdBottom;
+
+ QPushButton *btnSwap;
+
+ int iCurrentLCD; // 0=top, 1=bottom
+
+ double Euro2x(int iIndex, double dValue);
+ double x2Euro(int iIndex, double dValue);
+
+
+};
+
+#endif // CALCDISPLAY_H