00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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_