14 #ifndef TGO4VIEWPANEL_H
15 #define TGO4VIEWPANEL_H
18 #include "ui_TGo4ViewPanel.h"
38 class TVirtualPadEditor;
113 virtual bool IsAcceptDrag(
const char * itemname, TClass * cl,
int kind );
114 virtual void DropOnPad(TPad* pad,
const char * itemname, TClass * cl,
int kind );
125 virtual void SetSelectedMarker( TPad * pad,
const QString & selname,
int selindex );
132 virtual TGo4Slot*
AddDrawObject( TPad * pad,
int kind,
const char * itemname, TObject * obj,
bool owner,
const char * drawopt );
134 virtual TObject*
GetDrawObject( TPad * pad,
const char * name );
144 TObjArray * objs, TObjArray * objslots,
bool showitems );
145 virtual void Divide(
int numX,
int numY );
154 virtual TPad *
GetSubPad( TPad * toppad,
int num,
bool onlytoplevel );
180 virtual void ProcessCanvasAdopt( TPad * tgtpad, TPad * srcpad,
const char* srcitemname);
183 virtual void RedrawStack( TPad * pad,
TGo4Picture * padopt, THStack * hs,
bool dosuperimpose,
bool scancontent );
184 virtual void RedrawGraph( TPad * pad,
TGo4Picture * padopt, TGraph * gr,
bool scancontent,
bool first_draw );
195 virtual void ClearPad( TPad * pad,
bool removeitems,
bool removesubpads );
197 virtual void ProcessPadClear( TPad * pad,
bool removeitems,
bool removesubpads );
201 virtual void MoveScale(
int expandfactor,
int xaction,
int yaction,
int zaction );
206 virtual bool GetVisibleRange(TPad* pad,
int naxis,
double & min,
double & max);
208 virtual void PadRangeAxisChanged( TPad * pad,
double rxmin,
double rxmax,
double rymin,
double rymax );
212 double & xmin,
double & xmax,
213 double & ymin,
double & ymax,
214 double & zmin,
double & zmax);
215 virtual void SetSelectedRange(
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax );
269 virtual void RedrawPanel( TPad * pad,
bool force );
318 virtual void AddMarkerObj( TPad * pad,
int kind, TObject * obj );
virtual void SetMouseMode(int mode)
virtual void ShootRepaintTimer()
virtual TObject * GetDrawObject(TPad *pad, const char *name)
virtual void CheckActionAtTheEnd(TPad *pad)
virtual bool IsPadHasSubPads(TGo4Slot *padslot)
virtual void SwitchMarkerButton(int kind, bool on)
virtual void linkedRemoved(TGo4Slot *slot, TObject *obj)
virtual void ResetWidget()
virtual void RectangularRatio(TPad *pad)
virtual void PrintCanvas()
virtual void linkedUpdated(TGo4Slot *slot, TObject *obj)
virtual void SetPadDefaults(TPad *pad)
virtual void TakeFullRangeFromHisto(TH1 *h1, TGo4Picture *padopt, bool isfirsthisto)
virtual TGo4Slot * GetSuperimposeSlot(TGo4Slot *slot)
virtual void ApplyToAllToggled(bool)
QSignalMapper * fOptionsMap
virtual void RedrawImage(TPad *pad, TGo4Picture *padopt, TGo4ASImage *im, TH2 *asihisto, bool scancontent)
virtual void StartConditionEditor()
virtual const char * GetDrawObjectLinkName(TPad *pad, TObject *obj)
virtual void SetFreezeMouseMode(bool on)
virtual void MakePictureForPad(TGo4Picture *pic, TPad *pad, bool useitemname)
TVirtualPadEditor * fxPeditor
virtual void ActivateInGedEditor(TObject *obj)
virtual void SetDrawKind(TGo4Slot *slot, int kind)
virtual int GetAutoColor(int indx)
virtual void SetActivePad(TPad *pad)
bool fbModifiedSignalFlag
virtual bool IsRedrawBlocked()
virtual bool ProcessPadRedraw(TPad *pad, bool force)
virtual void EditConditionBtn_clicked()
virtual void RedrawMultiGraph(TPad *pad, TGo4Picture *padopt, TMultiGraph *mg, bool dosuperimpose, bool scancontent)
virtual void RedrawStack(TPad *pad, TGo4Picture *padopt, THStack *hs, bool dosuperimpose, bool scancontent)
virtual QString GetSelectedMarkerName(TPad *pad)
virtual void StartConditionEditing(TPad *pad)
virtual bool GetVisibleRange(TPad *pad, int naxis, double &min, double &max)
virtual TGo4Slot * GetDrawObjectSlot(TPad *pad, const char *name)
virtual void PadDoubleClickedSlot(TPad *pad)
virtual const char * GetPanelName()
virtual bool IsAutoZoomFlag()
virtual bool ScanDrawOptions(TPad *pad, TGo4Slot *padslot, TGo4Picture *pic, bool onlyscan)
virtual TObject * GetActiveObj(TPad *pad, int kind)
virtual void ResizeGedEditor()
virtual void SaveCanvas()
virtual void ProcessMarkersClear(TPad *pad, bool withsubpads)
virtual void ProduceGraphFromMarkers()
virtual void GetConditionBtn_clicked()
virtual TGo4Slot * GetPanelSlot()
virtual void InfoConditionBtn_clicked()
virtual void AutoScaleToggled(bool)
Graphic Qt Widget based Canvas.
virtual void ProducePicture()
virtual const char * GetDrawItemName(int itemcnt=0)
virtual void SetAutoZoomFlag(bool on)
bool fbLeaveFocusAfterCondEnd
virtual TGo4Slot * GetPadMainObjectSlot(TPad *pad)
virtual void CompleteInitialization()
virtual void ProcessPadDoubleClick()
virtual void RedrawPanel(TPad *pad, bool force)
virtual void MoveScale(int expandfactor, int xaction, int yaction, int zaction)
virtual void resizeEvent(QResizeEvent *e)
virtual void ClearCanvas()
virtual void DelSelectedMarker_clicked()
virtual void Divide(int numX, int numY)
virtual void PadClickedSlot(TPad *pad)
virtual void StartRootEditor()
virtual void LogMarkerValues()
virtual void SetCursorMode(bool on)
virtual bool IsAcceptDrag(const char *itemname, TClass *cl, int kind)
virtual void CheckForSpecialObjects(TPad *pad, TGo4Slot *padslot)
virtual void TakeFullRangeFromGraph(TGraph *gr, TGo4Picture *padopt, bool isfirst)
virtual void UpdatePanelCaption()
virtual void ShowEventStatus()
QRootWindow * fxRooteditor
virtual QString GetActiveObjName(TPad *pad, int kind)
virtual void SetConditionBtn_clicked()
virtual void UndrawItemOnPanel(const char *itemname)
virtual void DeleteDrawObject(TPad *pad, const char *name)
virtual TPad * GetSlotPad(TGo4Slot *slot)
virtual TPad * GetSubPad(TPad *toppad, int num, bool onlytoplevel)
virtual TObject * GetPadMainObject(TPad *pad)
virtual void AboutToShowOptionsMenu()
virtual void ProducePadsList(TObjArray *arr, TPad *toppad)
virtual void SetApplyToAllFlag(bool on)
virtual void AllocatePadOptions(TPad *pad)
virtual bool IsConditionSelected(TPad *pad)
virtual bool IsRepaintTimerActive()
virtual const char * GetSpecialDrawOption(TGo4Slot *slot)
virtual void SetSelectedRange(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
virtual void DisplayPadStatus(TPad *pad)
virtual void CheckObjectsAssigments(TPad *pad, TGo4Slot *padslot)
virtual void RedrawLegend(TPad *pad, TGo4Picture *padopt, TGo4Slot *legslot)
virtual TGo4Slot * AddNewSlot(const char *name, TGo4Slot *parent)
virtual void SaveMarkers()
virtual void ProcessCanvasAdopt(TPad *tgtpad, TPad *srcpad, const char *srcitemname)
virtual void SetSelectedMarker(TPad *pad, const QString &selname, int selindex)
virtual bool ShiftSelectedObjectToEnd(TPad *pad)
virtual QRootCanvas * GetQCanvas()
virtual void checkRepaintSlot()
virtual void RedrawHistogram(TPad *pad, TGo4Picture *padopt, TH1 *his, bool scancontent, bool first_draw)
virtual void PadRangeAxisChanged(TPad *pad)
bool fbEditorFrameVisible
virtual void MarkPadModified(TPad *pad)
virtual void DropOnPad(TPad *pad, const char *itemname, TClass *cl, int kind)
virtual void UpdatePadStatus(TPad *pad, bool removeitems)
QStatusBar * CanvasStatus
virtual void SetPolygonMode(bool on)
virtual void CleanupGedEditor()
virtual void MoveSingleScale(int expandfactor, int action, int naxis, TGo4Picture *opt, TObject *padhist)
virtual void SelectMenuItemActivated(int)
virtual TGo4Slot * GetPadSlot(TPad *pad)
virtual void SelectedMarkerCmb_activated(int indx)
virtual void ClearPad(TPad *pad, bool removeitems, bool removesubpads)
virtual TPad * FindPadWithItem(const char *itemname)
virtual void SetSelectedRangeToHisto(TPad *pad, TH1 *h1, THStack *hs, TGo4Picture *padopt, bool ishisto)
virtual int GetNumMarkers(TPad *pad, int kind)
virtual void PadDeleted(TPad *pad)
virtual void linkedObjectUpdated(const char *linkname, TObject *obj)
virtual void SetRegionMode(bool on)
virtual void SetSpecialDrawOption(TGo4Slot *slot, const char *drawopt)
virtual void ClearAllMarkers()
virtual void ClearActivePad()
virtual void GetSelectedRange(int &ndim, bool &autoscale, double &xmin, double &xmax, double &ymin, double &ymax, double &zmin, double &zmax)
virtual void RedrawGraph(TPad *pad, TGo4Picture *padopt, TGraph *gr, bool scancontent, bool first_draw)
virtual void OptionsMenuItemActivated(int)
virtual void SetSelectedObjectIndex(TGo4Slot *slot, int indx)
virtual TGo4Picture * GetPadOptions(TPad *pad)
virtual int GetSelectedMarkerIndex(TPad *pad)
QSignalMapper * fSelectMap
virtual void AddMarkerObj(TPad *pad, int kind, TObject *obj)
virtual int GetDrawKind(TGo4Slot *slot)
virtual void panelSlot(TGo4ViewPanel *panel, TPad *pad, int signalid)
virtual TObject * ProduceSuperimposeObject(TGo4Slot *padslot, TGo4Picture *padopt, TGo4Slot *sislot, TGo4Slot *legslot, TObjArray *objs, TObjArray *objslots, bool showitems)
virtual void SetSlotPad(TGo4Slot *padslot, TPad *pad)
virtual void SetSelectedMarkerByMouseClick(TPad *pad, const char *name)
virtual void ProcessPadModifiedSignal()
virtual void CollectMainDrawObjects(TGo4Slot *slot, TObjArray *objs, TObjArray *objslots, int modifier)
virtual void ScanObjectsDrawOptions(bool onlyscan, TGo4Slot *padslot, TObjArray *objs, TObjArray *objslots)
virtual void ProcessPadStatusUpdate(TPad *pad, TGo4Slot *parent, bool removeitems)
TGo4ViewPanel(QWidget *parent=0, const char *name=0)
virtual TH1 * GetPadHistogram(TPad *pad)
virtual void SetPadSuperImpose(TPad *pad, bool on)
virtual bool TakeSelectedAxisRange(int naxis, TGo4Picture *padopt, double selmin, double selmax, bool force)
virtual void ClearPadItems(TGo4Slot *padslot, TGo4Slot *remain)
QCheckBox * fAutoScaleCheck
virtual void SetLateXMode(bool on)
virtual void RefreshButtons()
virtual bool IsPanelPad(TPad *pad)
virtual TGo4Slot * GetSelectedSlot(TPad *pad, int *selkind, TObject **selobj)
virtual void BlockPanelRedraw(bool on)
virtual void CanvasDropEventSlot(QDropEvent *event, TPad *pad)
TPad * fxDoubleClickTimerPad
virtual void SetActiveObj(TPad *pad, int kind, TGo4Slot *activeslot)
virtual void CollectSpecialObjects(TPad *pad, TObjArray *objs, int selectkind)
virtual void LoadMarkers()
virtual void RedrawSpecialObjects(TPad *pad, TGo4Slot *padslot)
virtual void SetPanelName(const char *newname)
virtual bool IsApplyToAllFlag()
virtual void ChangeDrawOption(int kind, int value, const char *drawopt)
virtual int GetNumberOfPads(TPad *toppad)
virtual TPad * GetActivePad()
virtual void SetMarkerPanel()
virtual void SuperImposeToggled(bool)
virtual void DefaultPadMargin(TPad *pad)
virtual void ProcessPictureRedraw(const char *picitemname, TPad *pad, TGo4Picture *pic)
virtual void SetDrawingMode(bool on)
virtual bool DeleteDrawObjects(TPad *pad, int kindtodelete)
virtual TObject * GetSelectedObject(TPad *pad, const char **drawopt)
virtual void CanvasStatusEventSlot(const char *message)
virtual void checkResizeSlot()
virtual TCanvas * GetCanvas()
virtual bool IsFreezeTitle()
virtual TGo4Slot * AddDrawObject(TPad *pad, int kind, const char *itemname, TObject *obj, bool owner, const char *drawopt)
virtual void ProcessPadClear(TPad *pad, bool removeitems, bool removesubpads)
virtual void SetFreezedTitle(const QString &title)
virtual bool CompleteMarkerEdit(TPad *pad)
virtual int GetMouseMode()
virtual void MenuCommandExecutedSlot(TObject *obj, const char *cmdname)
virtual void ResetPadFillColors(TPad *pad, int col, TPad *backup=0)
virtual int GetSelectedObjectIndex(TGo4Slot *slot)
virtual void CanvasUpdatedSlot()
virtual void ChangeDrawOptionForPad(TGo4Slot *padslot, int kind, int value, const char *drawopt)
virtual void SetAutoScale(bool on, TPad *selpad)