CPolylineParamsGuiComp.h
Go to the documentation of this file.
1 #ifndef iqt2d_CPolylineParamsGuiComp_included
2 #define iqt2d_CPolylineParamsGuiComp_included
3 
4 
5 // ACF includes
6 #include <i2d/CPolyline.h>
7 #include <iview/CPolylineShape.h>
9 
10 
11 namespace iqt2d
12 {
13 
14 
15 class CPolylineParamsGuiComp: public TPolygonBasedParamsGuiComp<iview::CPolylineShape, i2d::CPolyline>
16 {
17  Q_OBJECT
18 
19 public:
21 
22  I_BEGIN_COMPONENT(CPolylineParamsGuiComp);
23  I_ASSIGN(m_showOrientationAttrPtr, "ShowOrientation", "Show orientation on display console", true, false);
24  I_END_COMPONENT;
25 
27 
28 protected:
29  // reimplemented (iqt2d::TShapeParamsGuiCompBase)
30  virtual bool PopulateActions(QWidget& host, imod::IModel* modelPtr);
32 
33  // reimplemented (iqtgui::CGuiComponentBase)
34  virtual void OnGuiRetranslate();
35 
36 protected Q_SLOTS:
37  void OnParamsChanged();
38 
41  void on_CopyButton_clicked();
43 
44  // reimplemented (iqt2d::TShapeParamsGuiCompBase)
45  virtual void OnActionTriggered(QAction* actionPtr);
46 
47 private:
48  I_ATTR(bool, m_showOrientationAttrPtr);
49 
50  QAction m_openCloseAction;
51 };
52 
53 
54 } // namespace iqt2d
55 
56 
57 #endif // !iqt2d_CPolylineParamsGuiComp_included
virtual bool PopulateActions(QWidget &host, imod::IModel *modelPtr)
virtual void OnActionTriggered(QAction *actionPtr)
virtual void OnGuiRetranslate()
Called from widget event filter when GUI should be retranslated.
TPolygonBasedParamsGuiComp< iview::CPolylineShape, i2d::CPolyline > BaseClass
Common interface for model objects, that supports Model/Observer design pattern.
Definition: IModel.h:23
virtual iview::CInteractiveShapeBase * CreateShapeInstance() const
Simple creation of shape instance.

© 2007-2017 Witold Gantzke and Kirill Lepskiy