CDirectoryItemGuiComp.h
Go to the documentation of this file.
1 #ifndef ihotfgui_CDirectoryItemGuiComp_included
2 #define ihotfgui_CDirectoryItemGuiComp_included
3 
4 
5 // ACF includes
6 #include "iprm/IParamsManager.h"
7 #include "ifile/IFileNameParam.h"
8 #include "iprm/ISelectionParam.h"
10 
11 // AcfSln includes
13 #include "GeneratedFiles/ihotfgui/ui_CDirectoryItemGuiComp.h"
14 
15 
16 namespace ihotfgui
17 {
18 
19 
22  Ui::CDirectoryItemGuiComp, ihotf::IHotfolderStatistics>,
23  virtual public iprm::ISelectionParam
24 {
25  Q_OBJECT
26 public:
28  Ui::CDirectoryItemGuiComp,
30 
31  I_BEGIN_COMPONENT(CDirectoryItemGuiComp);
32  I_REGISTER_INTERFACE(iprm::ISelectionParam);
33  I_ASSIGN(m_inputDirectoriesParamsManagerCompPtr, "InputDirectoriesManager", "Parameter manager for the input directories", true, "InputDirectoriesManager");
34  I_ASSIGN(m_directoryPathIdAttrPtr, "DirParamId", "Parameter ID of the directory path", true, "DirectoryPath");
35  I_END_COMPONENT;
36 
38 
39  // reimplemented (iprm::ISelectionParam)
40  virtual const iprm::IOptionsList* GetSelectionConstraints() const;
41  virtual int GetSelectedOptionIndex() const;
42  virtual bool SetSelectedOptionIndex(int index);
43  virtual iprm::ISelectionParam* GetSubselection(int index) const;
44 
45  // reimplemented (iser::ISerializable)
46  virtual bool Serialize(iser::IArchive& archive);
47 
48  // reimplemenented (iqtgui::TGuiObserverWrap)
49  virtual void UpdateGui(int updateFlags = 0);
50 
51 private:
52  void UpdateProgressBar(const ihotf::IHotfolderStatistics& statistics);
53 
54  QString GenerateStyleSheet(double successed, double errors, double aborted) const;
55 
56 private:
57  I_REF(iprm::IParamsManager, m_inputDirectoriesParamsManagerCompPtr);
58  I_ATTR(QByteArray, m_directoryPathIdAttrPtr);
59 
60  QString m_directoryPath;
61  QString m_hotfolderInputName;
62 
63  int m_setIndex;
64 };
65 
66 
67 } // namespace ihotfgui
68 
69 
70 #endif // !ihotfgui_CDirectoryItemGuiComp_included
71 
72 
virtual const iprm::IOptionsList * GetSelectionConstraints() const
virtual bool SetSelectedOptionIndex(int index)
Interface for a simple static of the hotfolder processing.
virtual iprm::ISelectionParam * GetSubselection(int index) const
iqtgui::TDesignerGuiObserverCompBase< Ui::CDirectoryItemGuiComp, ihotf::IHotfolderStatistics > BaseClass
virtual int GetSelectedOptionIndex() const
virtual void UpdateGui(int updateFlags=0)
virtual bool Serialize(iser::IArchive &archive)

© 2007-2011 Witold Gantzke and Kirill Lepskiy