CLine2dParamsGuiComp.h
Go to the documentation of this file.
1 #ifndef iqt2d_CLine2dParamsGuiComp_included
2 #define iqt2d_CLine2dParamsGuiComp_included
3 
4 
5 // ACF includes
6 #include <i2d/CLine2d.h>
7 
8 #include <iview/CLineShape.h>
9 
11 #include <GeneratedFiles/iqt2d/ui_CLine2dParamsGuiComp.h>
12 
13 
14 namespace iqt2d
15 {
16 
17 
20  Ui::CLine2dParamsGuiComp,
21  iview::CLineShape,
22  i2d::CLine2d>
23 {
24  Q_OBJECT
25 
26 public:
28  Ui::CLine2dParamsGuiComp,
31 
32  I_BEGIN_COMPONENT(CLine2dParamsGuiComp);
33  I_ASSIGN(m_displayArrowAttrPtr, "DisplayArrow", "If enabled arrow will be displayed instead of line", true, false);
34  I_END_COMPONENT;
35 
36 protected:
37  // reimplemented (iqt2d::TShapeParamsGuiCompBase)
39 
40  // reimplemented (iqtgui::TGuiObserverWrap)
41  virtual void UpdateModel() const;
42  virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet);
43 
44  // reimplemented (iqtgui::CGuiComponentBase)
45  virtual void OnGuiCreated();
46  virtual void OnGuiDestroyed();
47  virtual void OnGuiRetranslate();
48 
49 protected Q_SLOTS:
50  void OnParamsChanged(double value);
51 
52 private:
53  I_ATTR(bool, m_displayArrowAttrPtr);
54 };
55 
56 
57 } // namespace iqt2d
58 
59 
60 #endif // !iqt2d_CLine2dParamsGuiComp_included
61 
62 
virtual void OnGuiCreated()
Called just after GUI is initialized.
virtual void UpdateModel() const
Do update of the model to reflect the current contents of GUI.
Definition of a line in 2D-space.
Definition: CLine2d.h:24
virtual void OnGuiRetranslate()
Called from widget event filter when GUI should be retranslated.
virtual void OnGuiDestroyed()
Called just before GUI is released.
iqt2d::TShapeParamsGuiCompBase< Ui::CLine2dParamsGuiComp, iview::CLineShape, i2d::CLine2d > BaseClass
virtual iview::CInteractiveShapeBase * CreateShapeInstance() const
Simple creation of shape instance.
Set of change flags (its IDs).
Definition: IChangeable.h:30
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet)
Do update of the GUI to reflect the state of model.
void OnParamsChanged(double value)

© 2007-2017 Witold Gantzke and Kirill Lepskiy