mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-13 08:38:14 +01:00
All the ranges of the axes work properly without zooming in and out each time
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@11 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
/**
|
||||
* @author Ian Johnson
|
||||
* @version 1.0
|
||||
* @comments
|
||||
* 19.06.2012 All modifications with the Ian flag has been made since
|
||||
* z_range_ne and the buttons are defined in another class.
|
||||
* Logz button and z_range_ne have wrappers to connect them
|
||||
*/
|
||||
|
||||
|
||||
@@ -15,7 +19,7 @@
|
||||
|
||||
class QGridLayout;
|
||||
class QString;
|
||||
|
||||
class QToolButton;
|
||||
|
||||
|
||||
class SlsQt2DPlotLayout: public QGroupBox{
|
||||
@@ -26,33 +30,42 @@ public:
|
||||
SlsQt2DPlotLayout(QWidget * = NULL);
|
||||
~SlsQt2DPlotLayout();
|
||||
|
||||
SlsQt2DPlot* GetPlot() {return the_plot;}
|
||||
SlsQt2DPlot* GetPlot(){return the_plot;}
|
||||
void SetXTitle(QString st);
|
||||
void SetYTitle(QString st);
|
||||
void SetZTitle(QString st);
|
||||
void UpdateNKeepSetRangeIfSet();
|
||||
|
||||
void UpdateNKeepSetRangeIfSet();
|
||||
|
||||
private:
|
||||
QGridLayout* the_layout;
|
||||
SlsQt2DPlot* the_plot;
|
||||
QGridLayout* the_layout;
|
||||
QToolButton* btnInterpolate;
|
||||
QToolButton* btnContour;
|
||||
QToolButton* btnLogz;
|
||||
SlsQt2DPlot* the_plot;
|
||||
SlsQtNumberEntry* z_range_ne;
|
||||
|
||||
SlsQtNumberEntry* z_range_ne;
|
||||
|
||||
bool logsChecked;
|
||||
#ifndef IAN
|
||||
bool zRangeChecked;
|
||||
#endif
|
||||
|
||||
void CreateTheButtons();
|
||||
void ConnectSignalsAndSlots();
|
||||
|
||||
void Layout();
|
||||
|
||||
public slots:
|
||||
void SetZScaleToLog(bool yes);
|
||||
void ResetRange();
|
||||
void SetTitle(QString st);
|
||||
|
||||
#ifndef IAN
|
||||
void SetZRange(double,double);
|
||||
void EnableZRange(bool enable);
|
||||
#endif
|
||||
|
||||
signals:
|
||||
void InterpolateSignal(bool);
|
||||
void ContourSignal(bool);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user