void add(ToolbarBackend::Toolbar const & tb);
/// add an item to a toolbar
- void add(int action, string const & tooltip);
+ void add(FuncRequest const &, std::string const & tooltip);
/// display toolbar, not implemented
void displayToolbar(ToolbarBackend::Toolbar const & tb, bool show);
void update();
/// select the right layout in the combox
- void setLayout(string const & layout);
+ void setLayout(std::string const & layout);
/// Populate the layout combox.
void updateLayoutList();
/// Drop down the layout list
/// deallocate icon
void kill_icon();
- /// lyx action number
- int action;
+ /// lyx action
+ FuncRequest func;
/// icon for this item
FL_OBJECT * icon;
};
+ typedef std::vector<FuncRequest> Funcs;
+
+ Funcs funcs;
+
typedef std::vector<toolbarItem> ToolbarList;
/// The list containing all the buttons
int ypos;
};
-#endif
+#endif