| 28 |
#include <vector> |
#include <vector> |
| 29 |
#include <gtk--/menu.h> |
#include <gtk--/menu.h> |
| 30 |
|
|
| 31 |
typedef std::pair < std::string, std::string > MenuItem_t; |
typedef void LinkEditionReturnHandler_t; |
| 32 |
|
typedef SigC::Slot0 < LinkEditionReturnHandler_t> LinkEditionSlotHandler_t; |
| 33 |
|
|
| 34 |
|
typedef std::pair < std::string, LinkEditionSlotHandler_t > MenuItem_t; |
| 35 |
typedef std::vector < MenuItem_t > MenuItems_t; |
typedef std::vector < MenuItem_t > MenuItems_t; |
| 36 |
typedef std::vector < MenuItems_t > LinkEditorMenu_t; |
typedef std::vector < MenuItems_t > LinkEditorMenu_t; |
|
class MMIMenuLinkEditor; |
|
| 37 |
|
|
|
#include "OneFamilyLink.hh" |
|
| 38 |
|
|
| 39 |
class MMIMenuLinkEditor : public Gtk::Menu |
class MMIMenuLinkEditor : public Gtk::Menu |
| 40 |
{ |
{ |
| 41 |
public: |
public: |
| 42 |
MMIMenuLinkEditor(LinkEditorMenu_t const &menus, OneFamilyLink * const mmi); |
MMIMenuLinkEditor(LinkEditorMenu_t const &menus); |
| 43 |
private: |
private: |
| 44 |
Gtk::Menu * InitSubMenu(Gtk::Menu * parent_menu, std::string const &label); |
Gtk::Menu * InitSubMenu(Gtk::Menu * parent_menu, std::string const &label); |
| 45 |
}; |
}; |