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 header_popupmenu_generic 00010 #define header_popupmenu_generic 00011 00012 #include "API/GUI/popupmenu.h" 00013 00014 class CL_PopupMenu_Generic 00015 { 00016 public: 00017 static CL_ComponentOptions create_options( 00018 const CL_Point &pos); 00019 00020 CL_PopupMenu_Generic(CL_PopupMenu *self, const CL_ComponentOptions &options); 00021 ~CL_PopupMenu_Generic(); 00022 00023 CL_PopupMenu *popupmenu; 00024 00025 CL_Signal_v0 sig_cancelled; 00026 CL_Signal_v1<int /*itemid*/> sig_clicked; 00027 00028 private: 00029 // virtual void on_item_activated(CL_MenuItem *item, CL_PopupMenu *child); 00030 // CL_Slot slot_item_activated; 00031 00032 void on_got_focus(); 00033 void close_children(); 00034 00035 private: 00036 bool checkable; 00037 }; 00038 00039 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001