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 00010 00011 #ifndef header_menubar 00012 #define header_menubar 00013 00014 #include "component_options.h" 00015 #include "stylemanager.h" 00016 #include "menudata.h" 00017 00018 class CL_Component; 00019 class CL_MenuItem; 00020 class CL_PopupMenu; 00021 00022 class CL_MenuBar : public CL_MenuData 00023 { 00024 public: 00025 static CL_MenuBar *create( 00026 const CL_ComponentOptions &options, 00027 CL_Component *parent, 00028 CL_StyleManager *style); 00029 00030 CL_MenuBar(const CL_ComponentOptions &options, CL_Component *parent); 00031 virtual ~CL_MenuBar() { return; } 00032 00033 // virtual void adjust_size() = 0; 00034 // Adjusts the size of the component to fit the contents. 00035 00036 // virtual void update(); 00037 00038 protected: 00039 virtual void on_item_activated(CL_MenuItem *item, CL_PopupMenu *child); 00040 virtual void on_item_highlighted(CL_MenuItem *item); 00041 }; 00042 00043 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001