}
+MenuItem::MenuItem(Kind kind, string const & label, int action,
+ bool optional = false);
+ : kind_(kind), label_(label), action_(action), submenuname_(),
+ optional_(optional)
+{}
+
+
MenuItem::~MenuItem()
{}
}
+void Menu::submenu(Menu * menu)
+{
+ submenu_.reset(menu);
+}
+
+
Menu & Menu::read(LyXLex & lex)
{
enum Menutags {
MenuItem(Kind kind,
string const & label,
int action,
- bool optional = false)
- : kind_(kind), label_(label),
- action_(action), submenuname_(), optional_(optional) {}
+ bool optional = false);
/// This one is just to please boost::shared_ptr<>
~MenuItem();
///
Menu * submenu() const { return submenu_.get(); }
///
- void submenu(Menu * menu) { submenu_.reset(menu); }
+ void submenu(Menu * menu);
private:
//friend class MenuBackend;
}
+Menubar::Pimpl::~Pimpl()
+{}
+
+
void Menubar::Pimpl::makeMenubar(Menu const & menu)
{
FL_FORM * form = owner_->getForm();
fl_set_tabstop(default_tabstop);
}
+
+
+Menubar::Pimpl::ItemInfo::ItemInfo
+ (Menubar::Pimpl * p, MenuItem const * i, FL_OBJECT * o)
+ : pimpl_(p), obj_(o)
+{
+ item_.reset(i);
+}
+
+
+Menubar::Pimpl::ItemInfo::~ItemInfo()
+{}
public:
///
Pimpl(LyXView *, MenuBackend const &);
+ ///
+ ~Pimpl();
/// update the state of the menuitems
void update();
std::vector<int> & smn, bool & all_disabled);
//
- void makeMenubar(Menu const &menu);
+ void makeMenubar(Menu const & menu);
///
XFormsView * owner_;
struct ItemInfo {
///
ItemInfo(Menubar::Pimpl * p, MenuItem const * i,
- FL_OBJECT * o)
-
- : pimpl_(p), obj_(o) { item_.reset(i); }
+ FL_OBJECT * o);
+ ~ItemInfo();
///
Menubar::Pimpl * pimpl_;
///