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) (unidiff)
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 @@
1/****************************************************************************
2 *
3 * File: calcdisplay.h
4 *
5 * Description: Header file for the class LCDDisplay
6 *
7 *
8 * Authors: Eric Santonacci <Eric.Santonacci@talc.fr>
9 *
10 * Requirements: Qt
11 *
12 * $Id$
13 *
14 *
15 ***************************************************************************/
16#ifndef CALCDISPLAY_H
17#define CALCDISPLAY_H
18
19#include <qhbox.h>
20#include <qlcdnumber.h>
21#include <qvgroupbox.h>
22#include <qpushbutton.h>
23#include <qcombobox.h>
24
25class LCDDisplay : public QHBox{
26
27Q_OBJECT
28public:
29 LCDDisplay( QWidget *parent=0, const char *name=0 );
30
31public slots:
32 void setValue(double);
33 void swapLCD(void);
34 void cbbxChange(void);
35
36//signals:
37// void valueChanged( int );
38private:
39 QVGroupBox *grpbxTop;
40 QComboBox *cbbxTop;
41 QLCDNumber *lcdTop;
42
43 QVGroupBox *grpbxBottom;
44 QComboBox *cbbxBottom;
45 QLCDNumber *lcdBottom;
46
47 QPushButton *btnSwap;
48
49 int iCurrentLCD; // 0=top, 1=bottom
50
51 double Euro2x(int iIndex, double dValue);
52 double x2Euro(int iIndex, double dValue);
53
54
55};
56
57#endif // CALCDISPLAY_H