Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

calcdisplay.h

Go to the documentation of this file.
00001 /****************************************************************************
00002  *
00003  * File:        calcdisplay.h
00004  *
00005  * Description: Header file for the class LCDDisplay
00006  *              
00007  *               
00008  * Authors:     Eric Santonacci <Eric.Santonacci@talc.fr>
00009  *
00010  * Requirements:    Qt
00011  *
00012  * $Id: calcdisplay.h,v 1.3 2004/09/10 11:18:05 zecke Exp $
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 //signals:
00039 //    void valueChanged( int );
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; // 0=top, 1=bottom
00054 
00055     double  Euro2x(int iIndex, double dValue);
00056     double  x2Euro(int iIndex, double dValue);
00057 
00058     
00059 };
00060 
00061 #endif // CALCDISPLAY_H

Generated on Sat Nov 5 16:18:01 2005 for OPIE by  doxygen 1.4.2