COPASI API  4.16.103
SliderSettingsDialog.h
Go to the documentation of this file.
1 // Copyright (C) 2010 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 // Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual
7 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
8 // and The University of Manchester.
9 // All rights reserved.
10 
11 // Copyright (C) 2004 - 2007 by Pedro Mendes, Virginia Tech Intellectual
12 // Properties, Inc. and EML Research, gGmbH.
13 // All rights reserved.
14 
15 #ifndef SliderSettingsDialog_H__
16 #define SliderSettingsDialog_H__
17 
18 #include "ui_SliderSettingsDialog.h"
19 
20 #include <QtGui/QDialog>
21 
22 #include <vector>
23 
24 class CSlider;
25 class CModel;
26 
27 class SliderSettingsDialog : public QDialog, private Ui::SliderSettingsDialog
28 {
29  Q_OBJECT
30 
31 public:
32  /**
33  * Ctor.
34  */
35  SliderSettingsDialog(QWidget* pParent = NULL);
36 
37  virtual ~SliderSettingsDialog();
38 
39  virtual CSlider * getSlider();
40  virtual void setSlider(CSlider * slider);
41  virtual void setDefinedSliders(std::vector<CSlider *> sliderVect);
42  virtual void setModel(CModel * model);
43  virtual void disableObjectChoosing(bool disableChoosing);
44  virtual void updateSlider();
45 
46 signals:
47  void sliderChanged(CSlider* slider);
48 
49 protected:
53  double mMaxValue;
54  double mMinValue;
55  double mValue;
57  unsigned int mMinorMajorFactor;
58  unsigned int mNumMinorTicks;
59  std::vector< CSlider* > mDefinedSliders;
63  int mScaling;
64  void showOptionsControls();
65  void hideOptionsControls();
66 
67 protected slots:
68  virtual void okButtonPressed();
69  virtual void cancelButtonPressed();
70  virtual void minorTickSizeChanged();
71  virtual void numMinorTicksChanged();
72  virtual void maxValueChanged();
73  virtual void objectValueChanged();
74  virtual void minorMajorFactorChanged();
75  virtual void browseButtonPressed();
76  virtual void extendedOptionsClicked();
77  virtual void logCheckBoxToggled(bool on);
78  virtual void globalCheckBoxToggled();
79  virtual void originalValueChanged();
80  virtual void minValueChanged();
81  virtual void minValueTextChanged();
82  virtual void maxValueTextChanged();
83  virtual void numTicksTextChanged();
84  virtual void tickSizeTextChanged();
85  virtual void tickFactorTextChanged();
86  virtual void origValueTextChanged();
87  virtual void valueTextChanged();
88 
89 protected:
91  void updateInputFields();
92  void updateInternalValues();
93  void init();
94 };
95 
96 #endif /* SliderSettingsDialog_H__ */
void sliderChanged(CSlider *slider)
virtual void numMinorTicksChanged()
virtual void maxValueTextChanged()
virtual void cancelButtonPressed()
virtual void numTicksTextChanged()
SliderSettingsDialog(QWidget *pParent=NULL)
virtual void tickFactorTextChanged()
virtual void setSlider(CSlider *slider)
std::vector< CSlider * > mDefinedSliders
virtual void minorTickSizeChanged()
virtual void setDefinedSliders(std::vector< CSlider * > sliderVect)
virtual void origValueTextChanged()
virtual void setModel(CModel *model)
virtual void originalValueChanged()
virtual void browseButtonPressed()
virtual void logCheckBoxToggled(bool on)
virtual void minorMajorFactorChanged()
virtual void globalCheckBoxToggled()
virtual void disableObjectChoosing(bool disableChoosing)
Definition: CModel.h:50
virtual CSlider * getSlider()
virtual void tickSizeTextChanged()
virtual void minValueTextChanged()
virtual void extendedOptionsClicked()