00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef AIBase_H
00011 #define AIBase_H
00012
00013 #include <qwidget.h>
00014 #include <qcolor.h>
00015 #include <qpopmenu.h>
00016 #include <qlayout.h>
00017 #include <qlabel.h>
00018 #include <qpainter.h>
00019 #include <qprinter.h>
00020 #include <qpushbt.h>
00021 #include <qradiobt.h>
00022 #include <qbttngrp.h>
00023 #include <qtooltip.h>
00024
00025 #include <stdio.h>
00026 #include <stdlib.h>
00027
00028
00029
00030
00031
00032 class AIBase : public QWidget
00033 {
00034 Q_OBJECT
00035 public:
00036
00037 AIBase(QWidget *parent,const char *name=0);
00038 ~AIBase();
00039
00040 void setBackgroundColor(QColor c);
00041 void setBackgroundColor(int r, int g, int b);
00042 void setGridColor(QColor c);
00043 void setGridColor(int r, int g, int b);
00044 void setCommonColor(QColor c);
00045 void setCommonColor(int r, int g, int b);
00046
00047 QColor getBackgroundColor();
00048
00049 void setAutoScale(bool s);
00050
00051 static void setDesktopPal(QApplication *a);
00052
00053 bool autoscale;
00054
00055 virtual void printOut(QPainter *p);
00056
00057
00058 protected:
00059 virtual void drawIt( QPainter *p);
00060 virtual void invertColor();
00061
00062 QColor c_bg,c_grid,c_comm;
00063
00064 private:
00065 bool invert;
00066 };
00067
00068
00069
00070
00071
00072 #endif // #ifdef AIBase_H
00073
00074
00075
00076
00077