00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 //Author : Denis Bertini 01.11.2000 00017 00018 /************************************************************************** 00019 * Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI * 00020 * Planckstr. 1, 64291 Darmstadt, Germany * 00021 * All rights reserved. * 00022 * Contact: http://go4.gsi.de * 00023 * * 00024 * This software can be used under the license agreements as stated in * 00025 * Go4License.txt file which is part of the distribution. * 00026 ***************************************************************************/ 00027 00028 #ifndef TQROOTDIALOG_H 00029 #define TQROOTDIALOG_H 00030 00031 #include "qvbox.h" 00032 #include "qptrlist.h" 00033 00034 class TObject; 00035 class TMethod; 00036 class TCanvas; 00037 class QLineEdit; 00038 class TQCanvasMenu; 00039 00054 class TQRootDialog: public QVBox { 00055 Q_OBJECT 00056 00057 public: 00058 TQRootDialog(QWidget *parent, const char *name, WFlags f=0, 00059 TObject *obj=0,TMethod *meth=0); 00060 00061 virtual ~TQRootDialog(); 00062 00063 void add(const char* argname, const char* value, const char* type); 00064 void popup(); 00065 void setTCanvas(TCanvas* aCanvas) { fCurCanvas=aCanvas; } 00066 void SetCanMenu(TQCanvasMenu* menu) { fMenu = menu; } 00067 00068 public slots: 00069 void receive(); // to be replaced 00070 void executeMethod(); 00071 00072 protected: 00073 void closeEvent( QCloseEvent* ce); 00074 00075 protected: 00076 QVBox* fArgBox; 00077 QPtrList<QLineEdit> aList; 00078 TObject* fCurObj; 00079 TObject* fPrevObj; 00080 TMethod* fCurMethod; 00081 TMethod* fPrevMethod; 00082 TCanvas* fCurCanvas; 00083 QWidget* fParent; 00084 TQCanvasMenu* fMenu; 00085 }; 00086 00087 #endif 00088 00089 //----------------------------END OF GO4 SOURCE FILE ---------------------