CProcessingItemPreviewGuiComp.h
Go to the documentation of this file.
1 #ifndef ihotfgui_CProcessingItemPreviewGuiComp_included
2 #define ihotfgui_CProcessingItemPreviewGuiComp_included
3 
4 
5 // ACF includes
6 #include "imod/IModel.h"
7 #include "ifile/IFileNameParam.h"
8 
9 #include "iqtgui/IIconProvider.h"
11 
12 
13 // AcfSln includes
15 
16 #include "GeneratedFiles/ihotfgui/ui_CProcessingItemPreviewGuiComp.h"
17 
18 
19 namespace ihotfgui
20 {
21 
22 
25  Ui::CProcessingItemPreviewGuiComp,
26  ihotf::IHotfolderProcessingItem>
27 {
28  Q_OBJECT
29 public:
31  Ui::CProcessingItemPreviewGuiComp,
33 
34  I_BEGIN_COMPONENT(CProcessingItemPreviewGuiComp);
35  I_ASSIGN(m_inputPreviewObserverCompPtr, "InputPreview", "View of the input file", true, "InputPreview");
36  I_ASSIGN_TO(m_inputPreviewGuiCompPtr, m_inputPreviewObserverCompPtr, true);
37  I_ASSIGN(m_outputPreviewObserverCompPtr, "OutputPreview", "View of the input file", true, "OutputPreview");
38  I_ASSIGN_TO(m_outputPreviewGuiCompPtr, m_outputPreviewObserverCompPtr, true);
39  I_ASSIGN(m_inputFileNameParamCompPtr, "InputFileName", "File name parameter for the input file", true, "InputFileName");
40  I_ASSIGN_TO(m_inputFileNameParamModelCompPtr, m_inputFileNameParamCompPtr, true);
41  I_ASSIGN(m_outputFileNameParamCompPtr, "OutputFileName", "File name parameter for the output file", true, "OutputFileName");
42  I_ASSIGN_TO(m_outputFileNameParamModelCompPtr, m_outputFileNameParamCompPtr, true);
43  I_END_COMPONENT;
44 
45  // reimplemented (iqtgui::TGuiObserverWrap)
46  virtual void UpdateGui(int updateFlags = 0);
47  virtual void OnGuiModelAttached();
48  virtual void OnGuiModelDetached();
49 
50  // reimplemented (iqtgui::CGuiComponentBase)
51  virtual void OnGuiCreated();
52  virtual void OnGuiDestroyed();
53 
54 private:
55  void ResetEditor();
56 
57 private:
58  I_REF(imod::IObserver, m_inputPreviewObserverCompPtr);
59  I_REF(iqtgui::IGuiObject, m_inputPreviewGuiCompPtr);
60  I_REF(imod::IObserver, m_outputPreviewObserverCompPtr);
61  I_REF(iqtgui::IGuiObject, m_outputPreviewGuiCompPtr);
62  I_REF(ifile::IFileNameParam, m_inputFileNameParamCompPtr);
63  I_REF(imod::IModel, m_inputFileNameParamModelCompPtr);
64  I_REF(ifile::IFileNameParam, m_outputFileNameParamCompPtr);
65  I_REF(imod::IModel, m_outputFileNameParamModelCompPtr);
66 };
67 
68 
69 } // namespace ihotfgui
70 
71 
72 #endif // !ihotfgui_CProcessingItemPreviewGuiComp_included
73 
74 
Interface for a single processing item in the hotfolder.
virtual void UpdateGui(int updateFlags=0)
iqtgui::TDesignerGuiObserverCompBase< Ui::CProcessingItemPreviewGuiComp, ihotf::IHotfolderProcessingItem > BaseClass
I_ASSIGN_TO(m_inputPreviewGuiCompPtr, m_inputPreviewObserverCompPtr, true)

© 2007-2011 Witold Gantzke and Kirill Lepskiy