CPosition2dParamsGuiComp.h
Go to the documentation of this file.
1 #ifndef iqt2d_CPosition2dParamsGuiComp_included
2 #define iqt2d_CPosition2dParamsGuiComp_included
3 
4 
5 // ACF includes
6 #include <i2d/CPosition2d.h>
7 
8 #include <iview/CPinShape.h>
9 
11 #include <GeneratedFiles/iqt2d/ui_CPosition2dParamsGuiComp.h>
12 
13 
14 namespace iqt2d
15 {
16 
17 
20  Ui::CPosition2dParamsGuiComp,
21  iview::CPinShape,
22  i2d::CPosition2d>
23 {
24  Q_OBJECT
25 
26 public:
28  Ui::CPosition2dParamsGuiComp,
31 
32  I_BEGIN_COMPONENT(CPosition2dParamsGuiComp);
33  I_ASSIGN(m_altrnativeStrAttrPtr, "AlternativeLabel", "String that repleace default label", false, "Position");
34  I_ASSIGN(m_xLabelStrAttrPtr, "XLabel", "X value label", false, "X:");
35  I_ASSIGN(m_yLabelStrAttrPtr, "YLabel", "Y value label", false, "Y:");
36  I_END_COMPONENT;
37 
38 protected:
39  // reimplemented (iqtgui::TGuiObserverWrap)
40  virtual void UpdateModel() const;
41  virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet);
42 
43  // reimplemented (iqtgui::CGuiComponentBase)
44  virtual void OnGuiCreated();
45  virtual void OnGuiDestroyed();
46  virtual void OnGuiRetranslate();
47 
48 protected Q_SLOTS:
49  void OnParamsChanged(double value);
50  void OnActionTriggered(QAction* actionPtr);
51 
52 private:
53  I_TEXTATTR(m_altrnativeStrAttrPtr);
54  I_TEXTATTR(m_xLabelStrAttrPtr);
55  I_TEXTATTR(m_yLabelStrAttrPtr);
56 };
57 
58 
59 } // namespace iqt2d
60 
61 
62 #endif // !iqt2d_CPosition2dParamsGuiComp_included
63 
64 
virtual void OnGuiDestroyed()
Called just before GUI is released.
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet)
Do update of the GUI to reflect the state of model.
virtual void OnGuiCreated()
Called just after GUI is initialized.
iqt2d::TShapeParamsGuiCompBase< Ui::CPosition2dParamsGuiComp, iview::CPinShape, i2d::CPosition2d > BaseClass
void OnActionTriggered(QAction *actionPtr)
Set of change flags (its IDs).
Definition: IChangeable.h:30
void OnParamsChanged(double value)
virtual void OnGuiRetranslate()
Called from widget event filter when GUI should be retranslated.
Definition of graphical point object.
Definition: CPosition2d.h:17
virtual void UpdateModel() const
Do update of the model to reflect the current contents of GUI.

© 2007-2017 Witold Gantzke and Kirill Lepskiy