Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef TGO4EDITDYNENTRY_H
00015 #define TGO4EDITDYNENTRY_H
00016
00017 #include "QGo4Widget.h"
00018 #include "ui_TGo4EditDynEntry.h"
00019
00020 class QGo4LineEdit;
00021 class QSpinBox;
00022 class TObject;
00023 class TGo4DynamicEntry;
00024 class TGo4HistogramEntry;
00025 class TGo4TreeHistogramEntry;
00026
00027
00028
00029
00030 class TGo4EditDynEntry : public QGo4Widget, public Ui::TGo4EditDynEntry
00031 {
00032 Q_OBJECT
00033
00034 public:
00035
00036 enum ESelectedType {entry_None = -1, entry_Histogram = 0, entry_Tree = 1};
00037
00038
00039 TGo4EditDynEntry(QWidget *parent = 0, const char* name = 0);
00040
00041 virtual bool IsAcceptDrag( const char * itemname, TClass * cl, int kind );
00042 virtual void DropItem( const char * itemname, TClass * cl, int kind );
00043 virtual void linkedObjectUpdated( const char * linkname, TObject * obj );
00044 virtual void RefreshWidget();
00045 virtual QString GetEventName( const QString & itemname );
00046 virtual QString GetEventMember( const QString & itemname );
00047 virtual void WorkWithEntry( const char * itemname );
00048 virtual void DropHistogram( const char * itemname );
00049 virtual void DropCondition( const char * itemname );
00050 virtual void DropTree( const char * itemname );
00051 virtual void ResetWidget();
00052 virtual void ProcessDropEvent( QGo4LineEdit * edt );
00053 virtual void ProcessTreeDropEvent( QGo4LineEdit * edt );
00054 virtual void requestedObjectCreated( const char * itemname, TClass * cl );
00055 virtual bool PrepareEntryForAnalysis();
00056
00057
00058 public slots:
00059
00060 virtual void RefreshClicked();
00061 virtual void ApplyClicked();
00062 virtual void SetPleaseUpdate( bool on );
00063 virtual void EntryChangedSlot();
00064 virtual void SaveEntrySlot();
00065 virtual void EvXnameEdit_dropped();
00066 virtual void EvYnameEdit_dropped();
00067 virtual void EvZnameEdit_dropped();
00068 virtual void ConXnameEdit_dropped();
00069 virtual void ConYnameEdit_dropped();
00070 virtual void DrawExprEdit_dropped();
00071 virtual void CutExprEdit_dropped();
00072 virtual void HisCreateButton_clicked();
00073 virtual void HisInfoButton_clicked();
00074 virtual void ConNewButton_clicked();
00075 virtual void ConInfoButton_clicked();
00076 virtual void EntryEnabledButton_toggled( bool on );
00077 virtual void EvXnameEdit_textChanged( const QString & xname );
00078 virtual void EvYnameEdit_textChanged( const QString & yname );
00079 virtual void EvZnameEdit_textChanged( const QString & zname );
00080 virtual void ConXnameEdit_textChanged( const QString & xname );
00081 virtual void ConYnameEdit_textChanged( const QString & yname );
00082 virtual void DrawExprEdit_textChanged( const QString & value );
00083 virtual void CutExprEdit_textChanged( const QString & value );
00084 virtual void DynIntervalSpin_valueChanged( int value );
00085 virtual void DrawButton_clicked();
00086 virtual void ClearHistogramClicked();
00087 virtual void PrintDynList();
00088 virtual void ConRemoveButton_clicked();
00089
00090 protected:
00091 int fiSelectedType;
00092 bool fbTypingMode;
00093
00094
00095 };
00096
00097 #endif