00001 /* 00002 ClanGUI, copyrights by various people. Have a look in the CREDITS file. 00003 00004 This sourcecode is distributed using the Library GNU Public Licence, 00005 version 2 or (at your option) any later version. Please read LICENSE 00006 for details. 00007 */ 00008 00009 #ifndef combobox_default 00010 #define combobox_default 00011 00012 #include "API/GUI/combobox.h" 00013 #include "API/GUI/stylemanager_default.h" 00014 #include "API/GUI/component_style.h" 00015 #include "selection_list.h" 00016 00017 class CL_Font; 00018 class CL_Surface; 00019 00020 class CL_ComboBox_Default : public CL_ComponentStyle 00021 { 00022 public: 00023 CL_ComboBox_Default( 00024 CL_ComboBox *combobox, 00025 const CL_ComponentOptions &options, 00026 CL_StyleManager_Default *style); 00027 00028 virtual ~CL_ComboBox_Default(); 00029 00030 private: 00031 void on_paint(); 00032 void on_listbox_activated(int index); 00033 // void on_listbox_deactivated(); 00034 void on_listbox_highlighted(int selection); 00035 void on_listbox_cancel(); 00036 00037 CL_ComboBox *combobox; 00038 00039 CL_StyleManager_Default *style; 00040 CL_ResourceManager *resources; 00041 CL_Font *fnt_options; 00042 CL_Surface *sur_select_normal; 00043 CL_Surface *sur_select_toggled; 00044 CL_Surface *sur_select_disabled; 00045 00046 int button_width; 00047 int button_height; 00048 00049 CL_SelectionList *select_list; 00050 00051 CL_Slot selection_slot; 00052 CL_Slot selection_cancel_slot; 00053 CL_Slot slot_activated, slot_deactivated, slot_paint; 00054 }; 00055 00056 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001