Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

SaveImageMenu.H

Go to the documentation of this file.
00001 
00019 #ifndef _SAVEIMAGEMENU_H
00020 #define _SAVEIMAGEMENU_H
00021 
00022 #include <Menu.H>
00023 
00024 namespace xchen
00025 {
00026   class UI::SaveImageMenu : private UI::Menu
00027   {
00028   public:
00029       SaveImageMenu(KeyBoard* kb, KeyValue all_views = 'S', KeyValue this_view = 'S'-'A'+1);
00030       MenuID GenerateMenu() { return menu_id; }
00031   private:
00032       static void save_image_cb(ConvertedKeyValue item_id, int x, int y);
00033   };
00034 
00035 
00036 
00037   inline UI::SaveImageMenu :: SaveImageMenu(KeyBoard* kb, KeyValue all_views, KeyValue this_view) : Menu(kb)
00038   {
00039     AddItem("Save all views", save_image_cb, all_views);
00040     AddItem("Save this view", save_image_cb, this_view);
00041   }
00042 }
00043 #endif
00044 

Generated on Wed Apr 7 21:40:49 2004 by doxygen1.2.18