00001 /* 00002 * CComboBox.h 00003 * 00004 * Created on: 12.05.2010 00005 * Author: vdv 00006 */ 00007 00008 #ifndef LIBGUI_CCOMBOBOX_H_ 00009 #define LIBGUI_CCOMBOBOX_H_ 00010 00011 #include "CComponent.h" 00012 00013 class CItemList; 00014 class CGraphics; 00015 00016 //FIXME drop-down list, button, editable field are not implemented. 00023 class CComboBox : public CComponent 00024 { 00025 public: 00031 CComboBox(); 00032 ~CComboBox(); 00042 void AddItem(SItem* item); 00048 void RemoveItem(SItem* item); 00049 virtual void Paint(CGraphics* g); 00050 virtual void ProcessComponentKeyEvent(SKeyEvent* e); 00051 private: 00055 CItemList* m_list; 00059 INT8 m_selectedIndex; 00060 BOOL m_edit_mode; 00061 }; 00062 00063 #endif /* LIBGUI_CCOMBOBOX_H_ */