Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

GUINetPopup.h

00001 // Copyright (C) 2001 Jean-Marc Valin
00002 
00003 #ifndef GUINETPOPUP_H
00004 #define GUINETPOPUP_H
00005 
00006 #include <gnome.h>
00007 #include <map>
00008 #include <string>
00009 
00010 namespace FD {
00011 
00012 class UINetwork;
00013 class UIDocument;
00014 
00015 class GUINetPopup {
00016 protected:
00017    UIDocument *doc;
00018    UINetwork *net;
00019    GtkWidget *menu;
00020    GtkWidget *newMenu;
00021    std::map<std::string,GtkWidget *> categories;
00022 public:
00023    GUINetPopup(UIDocument *_doc, UINetwork *_net);
00024    ~GUINetPopup();
00025    void popup(GdkEvent *event);
00026    void addCategory(std::string name);
00027    void addType(std::string cat, std::string type);
00028 };
00029 
00030 
00031 
00032 
00033 
00034 class NodeLabel {
00035 protected:
00036    GtkMenuItem item;
00037    UINetwork *net;
00038 public:
00039 };
00040 
00041 class NodeLabel_class {
00042    GtkMenuItemClass parent_class;
00043 };
00044 
00045 
00046 #define NODELABEL(obj)           GTK_CHECK_CAST (obj, NodeLabel_get_type (), NodeLabel)
00047 #define NODELABEL_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, NodeLabel_get_type (), NodeLabel_class)
00048 #define IS_NODELABEL(obj)        GTK_CHECK_TYPE (obj, NodeLabel_get_type ())
00049 GtkType NodeLabel_get_type ();
00050 GtkWidget *node_item_new (gchar *label, UINetwork *net);
00051 //NodeLabel *NodeLabel_new ();
00052 
00053 }//namespace FD
00054 
00055 #endif

Generated on Wed Oct 5 14:28:55 2005 for FlowDesigner by  doxygen 1.4.4