CAnnulusParamsGuiComp.h
Go to the documentation of this file.
1 #ifndef iqt2d_CAnnulusParamsGuiComp_included
2 #define iqt2d_CAnnulusParamsGuiComp_included
3 
4 
5 // ACF includes
6 #include <i2d/CAnnulus.h>
7 
8 #include <iview/CAnnulusShape.h>
9 
11 #include <GeneratedFiles/iqt2d/ui_CAnnulusParamsGuiComp.h>
12 
13 
14 namespace iqt2d
15 {
16 
17 
20  Ui::CAnnulusParamsGuiComp,
21  iview::CAnnulusShape,
22  i2d::CAnnulus>
23 {
24  Q_OBJECT
25 
26 public:
28  Ui::CAnnulusParamsGuiComp,
31 
32  I_BEGIN_COMPONENT(CAnnulusParamsGuiComp);
33  I_END_COMPONENT;
34 
35 protected:
36  // reimplemented (iqtgui::TGuiObserverWrap)
37  virtual void UpdateModel() const;
38  virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet);
39 
40  // reimplemented (iqtgui::CGuiComponentBase)
41  virtual void OnGuiCreated();
42  virtual void OnGuiDestroyed();
43  virtual void OnGuiRetranslate();
44 
45 protected Q_SLOTS:
46  void OnParamsChanged(double value);
47  void OnActionTriggered(QAction* actionPtr);
48 };
49 
50 
51 } // namespace iqt2d
52 
53 
54 #endif // !iqt2d_CAnnulusParamsGuiComp_included
55 
56 
virtual void UpdateModel() const
Do update of the model to reflect the current contents of GUI.
virtual void OnGuiCreated()
Called just after GUI is initialized.
void OnParamsChanged(double value)
void OnActionTriggered(QAction *actionPtr)
iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusParamsGuiComp, iview::CAnnulusShape, i2d::CAnnulus > BaseClass
Definition of graphical annulus object.
Definition: CAnnulus.h:19
virtual void OnGuiDestroyed()
Called just before GUI is released.
virtual void OnGuiRetranslate()
Called from widget event filter when GUI should be retranslated.
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet)
Do update of the GUI to reflect the state of model.
Set of change flags (its IDs).
Definition: IChangeable.h:30

© 2007-2017 Witold Gantzke and Kirill Lepskiy