QIGUIPlotCanvasEditWindow.hh

00001 #ifndef _QIGUI_PLOTCANVASEDITWINDOW__H_
00002 #define _QIGUI_PLOTCANVASEDITWINDOW__H_
00003 
00004 
00005 #include <QWidget>
00006 
00007 #include "ui_PlotCanvasEditWindow.h"
00008 
00009 class QIGUIPlotWindow;
00010 class QIGUIPlotCanvasEditWindow: public QWidget, public Ui::PlotCanvasEditWindow
00011 {
00012   Q_OBJECT
00013 
00014   public:
00015     QIGUIPlotCanvasEditWindow (int index, QWidget * parent=0);
00016     QIGUIPlotCanvasEditWindow (QWidget * parent=0);
00017     virtual ~QIGUIPlotCanvasEditWindow();
00018     void Init();
00019     void CreateSignals();
00020     void DestroySignals();
00021     bool IsScatterPlot(){return fScatterPlotFlag;}
00022     void SetScatterPlotFlag(bool flag) {fScatterPlotFlag=flag;}
00023     void SetParent(QIGUIPlotWindow*p) {fParent=p;}
00024     void RefreshPlotSetup(int ind); // refresh panel plot setup with data from ind plot
00025     void CheckLogScale(); 
00026     bool CheckXMaxFixed();
00027     bool CheckXMinFixed();
00028     bool CheckYMaxFixed();
00029     bool CheckYMinFixed();
00030 
00031   public slots:
00032     void ToggleScatterPlot(bool scat);
00033     void ToggleCoAnalysis(bool flag);
00034     void ToggleCoBased(bool flag);
00035     void NotifyChangePlotSetup(QTreeWidgetItem* item, int column);
00036     void NotifyChangeXVar(QString var);
00037     void NotifyChangeYVar(QString var);
00038     void ToggleXVar(bool);
00039     void ToggleCoXVar(bool);
00040     void ToggleYVar(bool);
00041     void ToggleCoYVar(bool);
00042     void ToggleCoVarSignals(bool);
00043 
00044 
00045   private:
00046     bool fScatterPlotFlag; 
00047     bool fCoAnalysis;
00048     bool fCoBased;
00049     int fNBins;
00050     double fBinWidth;
00051     int fIndex; // index of the tab = index of the corresponding pad
00052     QIGUIPlotWindow * fParent ; // Pointer to parent
00053 
00054   // Auxiliares
00055   public:
00056     QString GetXMax();
00057     QString GetXMin();
00058     QString GetYMax();
00059     QString GetYMin();
00060     QString GetNBins();
00061     QString GetBinWidth();
00062 
00063     void SetXMax(QString text);
00064     void SetXMin(QString text);
00065     void SetYMax(QString text);
00066     void SetYMin(QString text);
00067     void SetNBins(QString text);
00068     void SetBinWidth(QString text);
00069 
00070     bool GetCoBased() {return fCoBased;}
00071     QString GetCurrentXVar();
00072     QString GetCurrentYVar();
00073     void SetXVar(bool);
00074     void SetCoXVar(bool);
00075     void SetYVar(bool);
00076     void SetCoYVar(bool);
00077 };
00078 
00079 #endif

Generated on Tue Nov 16 10:49:59 2010 for CUORE Software by  doxygen 1.5.6