CMultiLineSupplierGuiComp.h
Go to the documentation of this file.
1 #ifndef iqtipr_CMultiLineSupplierGuiComp_included
2 #define iqtipr_CMultiLineSupplierGuiComp_included
3 
4 
5 // ACF includes
6 #include "i2d/CPolyline.h"
8 #include "iprm/ISelectionParam.h"
10 
11 // ACF-Solutions includes
13 
14 #include "GeneratedFiles/iqtipr/ui_CMultiLineSupplierGuiComp.h"
15 
16 
17 namespace iqtipr
18 {
19 
20 
23  Ui::CMultiLineSupplierGuiComp,
24  imeas::INumericValueProvider>
25 {
26  Q_OBJECT
27 
28 public:
30  Ui::CMultiLineSupplierGuiComp,
32 
33  I_BEGIN_COMPONENT(CMultiLineSupplierGuiComp);
36  I_END_COMPONENT;
37 
39 
40 protected Q_SLOTS:
41  void on_TestButton_clicked();
42 
43 protected:
44  // reimplemented (iqtgui::TGuiObserverWrap)
45  virtual void UpdateGui(int updateFlags = 0);
46 
47  // reimplemented (iqtinsp::TSupplierGuiCompBase)
48  virtual void OnSupplierParamsChanged();
49  virtual QWidget* GetParamsWidget() const;
50 
51  // reimplemented (iqt2d::TViewExtenderCompBase)
52  virtual void CreateShapes(int sceneId, Shapes& result);
53 
54  // reimplemented (iqtgui::CGuiComponentBase)
55  virtual void OnGuiHidden();
56 
57 protected:
59  {
60  public:
61  LineSelection();
62 
63  // reimplemented (iprm::ISelectionParam)
64  virtual const iprm::IOptionsList* GetSelectionConstraints() const;
65  virtual int GetSelectedOptionIndex() const;
66  virtual bool SetSelectedOptionIndex(int index);
67  virtual iprm::ISelectionParam* GetSubselection(int index) const;
68 
69  // reimplemented (iser::ISerializable)
70  virtual bool Serialize(iser::IArchive& archive);
71 
72  protected:
74  };
75 
76  class CShape:
77  public iview::CShapeBase,
79  {
80  public:
83 
84  CShape(iprm::ISelectionParam& selection);
85  virtual ~CShape();
86 
87  // reimplemented (iview::IVisualizable)
88  virtual void Draw(QPainter& drawContext) const;
89 
90  // reimplemented (imod::CMultiModelDispatcherBase)
91  virtual void OnModelChanged(int modelId, int changeFlags, istd::IPolymorphic* updateParamsPtr);
92 
93  protected:
94  // reimplemented (iview::CShapeBase)
95  virtual i2d::CRect CalcBoundingBox() const;
96 
97  private:
98  iprm::ISelectionParam& m_lineSelection;
99  };
100 
102 
104  {
105  return &component.m_lineSelection;
106  }
107 };
108 
109 
110 } // namespace iqtipr
111 
112 
113 #endif // !iqtipr_CMultiLineSupplierGuiComp_included
CShape(iprm::ISelectionParam &selection)
iqtinsp::TSupplierGuiCompBase< Ui::CMultiLineSupplierGuiComp, imeas::INumericValueProvider > BaseClass
imod::TModelWrap< LineSelection > m_lineSelection
virtual iprm::ISelectionParam * GetSubselection(int index) const
static iprm::ISelectionParam * ExtractLineSelection(CMultiLineSupplierGuiComp &component)
virtual void OnModelChanged(int modelId, int changeFlags, istd::IPolymorphic *updateParamsPtr)
virtual void Draw(QPainter &drawContext) const
I_REGISTER_SUBELEMENT_INTERFACE(LineSelection, iprm::ISelectionParam, ExtractLineSelection)
virtual bool Serialize(iser::IArchive &archive)
Provide access to the list of the numeric values.
virtual QWidget * GetParamsWidget() const
Get parameters widget object.
virtual void OnSupplierParamsChanged()
Method will be called every time if the parameter set of the supplier has been changed.
virtual const iprm::IOptionsList * GetSelectionConstraints() const
virtual void UpdateGui(int updateFlags=0)
virtual i2d::CRect CalcBoundingBox() const
virtual void CreateShapes(int sceneId, Shapes &result)

© 2007-2011 Witold Gantzke and Kirill Lepskiy