5 #ifndef CNOID_BASE_MENU_MANAGER_H
6 #define CNOID_BASE_MENU_MANAGER_H
10 #include "exportdecl.h"
21 void bindTextDomain(
const std::string& domain);
23 void setTopMenu(QWidget* topMenu);
26 void setNewPopupMenu(QWidget* parent = 0);
29 QWidget* current()
const;
34 QAction* findItem(
const QString& path);
39 void addAction(QAction* action);
41 Action* addItem(
const QString& text);
42 Action* addItem(
const std::string& text);
43 Action* addItem(
const char* text);
44 Action* addCheckItem(
const QString& text);
45 Action* addRadioItem(QActionGroup* group,
const QString& text);
52 QWidget* currentMenu_;
55 std::string textDomain;
57 std::pair<QAction*, QWidget*> findPath(
const QString& path,
bool createPath);
58 void addItem(QWidget* menu, QAction* item);