#include <QMenu>
-#include <vector>
-
class QString;
class QMenuBar;
Q_OBJECT
public:
///
- Menu(GuiView * gv, QString const & name, bool top_level);
+ Menu(GuiView * gv, QString const & name, bool top_level,
+ bool keyboard = false);
///
~Menu();
-
+
+ /// QMenu::clear() reimplementation to handle the deletion of submenus.
+ void clear();
+
private Q_SLOTS:
///
void updateView();
///
void reset();
-
+
///
bool searchMenu(FuncRequest const & func,
docstring_list & names) const;
void fillMenuBar(QMenuBar * qmb, GuiView * view, bool initial = false);
/// \return a top-level submenu given its name.
- Menu * menu(QString const & name, GuiView & view);
+ Menu * menu(QString const & name, GuiView & view, bool keyboard = false);
///
void read(Lexer &);