00001 00029 #ifndef INC_RVC_UIFORMSELECTCHILD_H 00030 #define INC_RVC_UIFORMSELECTCHILD_H 00031 00032 #ifndef INC_MGUI_COMBOBOX_H 00033 #include <mgui/combobox.h> 00034 #endif 00035 00036 #ifndef INC_RVC_OBJECT_H 00037 #include <rvc/object.h> 00038 #endif 00039 00040 00041 namespace RVC { 00042 namespace UI { 00043 00044 //=================================================================================================================== 00048 class FORM_SELECT_CHILD : public MGUI::FORM_COMBOBOX { 00049 public: 00050 00052 FORM_SELECT_CHILD (); 00053 00055 virtual ~FORM_SELECT_CHILD ( 00056 ); 00057 00065 void AddChildren ( 00066 const RVC::OBJECT& ParentObj, 00067 RVC::OBJTYPE ObjTypeChild, 00068 bool DftLastUsed, 00069 bool resize = true, 00070 RVC::OBJECT::FILTER *pFilter = 0 00071 ); 00072 00075 void AddChildren ( 00076 const RVC::OBJITEM& ObjItemParent, 00077 RVC::OBJTYPE ObjTypeChild, 00078 bool DftLastUsed, 00079 bool resize = true, 00080 RVC::OBJECT::FILTER *pFilter = 0 00081 ); 00082 00084 void DeleteChildren ( 00085 ); 00086 00089 const RVC::OBJECTNAME& GetSelectedChildName ( 00090 ) const; 00091 00093 bool HasSelectedChild () const; 00094 00098 bool SetSelectedChildName ( 00099 const RVC::OBJECTNAME& ChildName, 00100 bool notify = false 00101 ); 00102 00103 private: 00104 #ifndef GENERATING_DOXYGEN_OUTPUT 00105 SIMPLE_ARRAY<RVC::OBJECTNAME> m_ObjectNames; 00106 int m_IdxFirstChild; 00107 00108 FORM_SELECT_CHILD (const FORM_SELECT_CHILD&); 00109 FORM_SELECT_CHILD& operator= (const FORM_SELECT_CHILD&); 00110 #endif // GENERATING_DOXYGEN_OUTPUT 00111 }; 00112 00113 //=================================================================================================================== 00114 } // End namespace UI 00115 } // End namespace RVC 00116 00117 #endif // INC_RVC_UIFORMSELECTCHILD_H
1.6.1