summaryrefslogtreecommitdiff
path: root/noncore/tools/euroconv/calcdisplay.h
authorgroucho <groucho>2003-02-15 11:45:26 (UTC)
committer groucho <groucho>2003-02-15 11:45:26 (UTC)
commitb50692ba650418aa06cbd2662b4ff698c7d3f961 (patch) (side-by-side diff)
tree433cba343b22bfa15e246c302553d976975b08dd /noncore/tools/euroconv/calcdisplay.h
parente8f0c623ff6a8822b84b9cc4ee3c1fb3b3016738 (diff)
downloadopie-b50692ba650418aa06cbd2662b4ff698c7d3f961.zip
opie-b50692ba650418aa06cbd2662b4ff698c7d3f961.tar.gz
opie-b50692ba650418aa06cbd2662b4ff698c7d3f961.tar.bz2
Forgot to add the sources :-}
Diffstat (limited to 'noncore/tools/euroconv/calcdisplay.h') (more/less context) (ignore 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