copasi API
0.1
|
00001 // Begin CVS Header 00002 // $Source: /fs/turing/cvs/copasi_dev/copasi/barChart/qwt3dBaseWidget.h,v $ 00003 // $Revision: 1.5 $ 00004 // $Name: Build-33 $ 00005 // $Author: shoops $ 00006 // $Date: 2010/07/16 18:54:05 $ 00007 // End CVS Header 00008 00009 // Copyright (C) 2010 by Pedro Mendes, Virginia Tech Intellectual 00010 // Properties, Inc., University of Heidelberg, and The University 00011 // of Manchester. 00012 // All rights reserved. 00013 00014 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual 00015 // Properties, Inc., EML Research, gGmbH, University of Heidelberg, 00016 // and The University of Manchester. 00017 // All rights reserved. 00018 00019 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual 00020 // Properties, Inc. and EML Research, gGmbH. 00021 // All rights reserved. 00022 00023 #ifndef BASE_WIDGET_H 00024 #define BASE_WIDGET_H 00025 00026 #include <QWidget> 00027 class QLabel; 00028 class QVBoxLayout; 00029 class QHBoxLayout; 00030 class QGridLayout; 00031 class QLabel; 00032 class QSlider; 00033 class QFrame; 00034 00035 class BaseWidget : public QWidget 00036 { 00037 Q_OBJECT 00038 00039 public: 00040 BaseWidget(QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0); 00041 ~BaseWidget(); 00042 00043 bool mpSlider; 00044 00045 QLabel* mpLabelColumn; 00046 QLabel* mpLabelRow; 00047 QSlider* mpSliderColumn; 00048 QSlider* mpSliderRow; 00049 QFrame* mpFrame; 00050 00051 QHBoxLayout* mpHBoxBig; 00052 QVBoxLayout* mpVBoxBig; 00053 QVBoxLayout* mpVBoxSmall; 00054 QHBoxLayout* mpHBoxSmall; 00055 00056 void activateSlider(); 00057 virtual void sliderMoved(int column, int row) = 0; 00058 00059 int scaleFactor(); 00060 00061 protected: 00062 QGridLayout* mpBaseWidgetLayout; 00063 00067 int mScaleFactor; 00068 00069 protected slots: 00070 virtual void languageChange(); 00071 void setSlider(); 00072 }; 00073 00074 #endif // BASE_WIDGET_H