Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Examples

gnuplotdlg.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 2005 by Marco * 00003 * marco@robot * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00019 ***************************************************************************/ 00020 00021 00022 #ifndef _GNUPLOTDLG_H_ 00023 #define _GNUPLOTDLG_H_ 00024 00025 #ifdef HAVE_CONFIG_H 00026 #include <config.h> 00027 #endif 00028 00029 #include "plotlog.h" 00030 #include "gnuplot.h" 00031 #include <list> 00032 #include <qpushbutton.h> 00033 #include <qlistbox.h> 00034 #include <qlineedit.h> 00035 #include <qlabel.h> 00036 #include <qslider.h> 00037 #include <qcheckbox.h> 00038 #include <qevent.h> 00039 #include <qdialog.h> 00040 00041 class _PlotDlg; 00042 00045 00046 00056 class GnuplotDlg : public QDialog{ 00057 Q_OBJECT 00058 00060 class Slider : public QSlider{ 00061 public: 00062 int state; 00063 Slider(int minValue, int maxValue, int pageStep, int value, Orientation orientation, QWidget * parent, const char * name = 0) 00064 : QSlider( minValue, maxValue, pageStep, value, orientation,parent, name ) 00065 {}; 00066 00067 bool event ( QEvent * e ){ 00068 switch(e->type()){ 00069 case QEvent::MouseMove: 00070 state=((QMouseEvent*)e)->state(); 00071 break; 00072 case QEvent::KeyPress: 00073 state=((QKeyEvent*)e)->state(); 00074 break; 00075 default : break; 00076 } 00077 return QSlider::event(e); 00078 } 00079 }; 00080 00081 00082 public: 00086 GnuplotDlg(_PlotDlg*); 00087 00091 virtual ~GnuplotDlg(); 00092 00093 private: 00094 typedef std::list<std::string> nameslist; 00095 _PlotDlg *dlg; 00096 QListBox *box; 00097 Slider *S1; 00098 Slider *S2; 00099 QCheckBox *C1; 00100 bool ok; 00101 _PlotDlg * gg; 00102 QLabel *l1; 00103 QLabel *l2; 00104 QLabel *l3; 00105 int ab; 00106 nameslist names; 00107 00108 public slots: 00110 void change(); 00112 void e1return(int); 00114 void e2return(int); 00115 00116 }; 00117 00118 #endif // _GNUPLOTDLG_H_

Generated on Wed Apr 6 10:22:14 2005 for Gnuplot by doxygen 1.3.8