CRectangleParamsGuiComp.h
Go to the documentation of this file.
1 #ifndef iqt2d_CRectangleParamsGuiComp_included
2 #define iqt2d_CRectangleParamsGuiComp_included
3 
4 
5 #include <i2d/CRectangle.h>
6 
8 
10 #include <GeneratedFiles/iqt2d/ui_CRectangleParamsGuiComp.h>
11 
12 
13 namespace iqt2d
14 {
15 
16 
19  Ui::CRectangleParamsGuiComp,
20  iview::CRectangleShape,
21  i2d::CRectangle>
22 {
23  Q_OBJECT
24 
25 public:
27  Ui::CRectangleParamsGuiComp,
30 
31  I_BEGIN_COMPONENT(CRectangleParamsGuiComp);
32  I_END_COMPONENT;
33 
34 protected:
35  // reimplemented (iqtgui::TGuiObserverWrap)
36  virtual void OnGuiModelAttached();
37  virtual void OnGuiModelDetached();
38  virtual void UpdateModel() const;
39  virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet);
40 
41  // reimplemented (iqtgui::CGuiComponentBase)
42  virtual void OnGuiRetranslate();
43 
44 protected Q_SLOTS:
45  void OnParamsChanged(double value);
46 };
47 
48 
49 } // namespace iqt2d
50 
51 
52 #endif // !iqt2d_CRectangleParamsGuiComp_included
53 
54 
void OnParamsChanged(double value)
virtual void OnGuiModelAttached()
Called when model is attached and GUI is created.
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet)
Do update of the GUI to reflect the state of model.
virtual void OnGuiRetranslate()
Called from widget event filter when GUI should be retranslated.
Definition of rectangle area orthogonal to axis of coordination system.
Definition: CRectangle.h:26
Interactive shape object for iview::CSearchArea.
virtual void OnGuiModelDetached()
Called when model is detached or GUI is destroyed.
virtual void UpdateModel() const
Do update of the model to reflect the current contents of GUI.
Set of change flags (its IDs).
Definition: IChangeable.h:30
iqt2d::TShapeParamsGuiCompBase< Ui::CRectangleParamsGuiComp, iview::CRectangleShape, i2d::CRectangle > BaseClass

© 2007-2017 Witold Gantzke and Kirill Lepskiy