00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef ROOT_TQRootDialog
00013 #define ROOT_TQRootDialog
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef __CINT__
00027 # include "qlineedit.h"
00028 # include "qnamespace.h"
00029 # if (QT_VERSION > 0x039999) // Added by cholm@nbi.dk - for Qt 4
00030 # include "qlist.h"
00031 # include "q3vbox.h"
00032 typedef Q3VBox QVBox;
00033 using namespace Qt;
00034 # else
00035 # include "qvbox.h"
00036 # endif
00037 #endif
00038
00039 #ifndef ROOT_TObject
00040 #include "TObject.h"
00041 #endif
00042
00043 class TMethod;
00044 class TCanvas;
00045
00046 class QLineEdit;
00047 class QWidget;
00048 #ifdef __CINT__
00049 template <typename T> class QList;
00050 class QLineEdit;
00051 class QList<QLineEdit*>;
00052 class QVBox;
00053 #if QTVERS > 3
00054 class WindowFlags;
00055 typedef WindowFlags WFlags;
00056 #endif
00057 #endif
00058
00059 class TQRootDialog: public QVBox
00060 {
00061 #ifndef __CINT__
00062 Q_OBJECT
00063 #endif
00064 private:
00065 TQRootDialog(const TQRootDialog &);
00066 TQRootDialog& operator=(const TQRootDialog &);
00067
00068 public:
00069 TQRootDialog(QWidget *parent, const char *name, WFlags f=0,
00070 TObject *obj=0,TMethod *meth=0);
00071 virtual ~TQRootDialog();
00072 void Add(const char* argname, const char* value, const char* type);
00073 void Popup();
00074 void SetTCanvas(TCanvas* aCanvas){fCurCanvas=aCanvas;}
00075
00076 public slots:
00077 void Receive(){ExecuteMethod();}
00078 void ExecuteMethod();
00079
00080 protected:
00081 void closeEvent( QCloseEvent* ce);
00082 QVBox *fArgBox;
00083 QLineEdit *fLineEdit;
00084 TObject *fCurObj;
00085 TMethod *fCurMethod;
00086 TCanvas* fCurCanvas;
00087 QWidget* fParent;
00088 # if (QT_VERSION > 0x039999) // Added by cholm@nbi.dk - for Qt 4
00089 QList<QLineEdit*> fList;
00090 #else
00091 QList<QLineEdit> fList;
00092 #endif
00093 ClassDef(TQRootDialog,1)
00094 };
00095
00096 #endif