35 : actionBarConfigurer(configurer)
42 return actionBarConfigurer;
47 if (!flags.testFlag(FILL_PROXY))
49 this->
MakeActions(actionBarConfigurer->GetWindowConfigurer()->GetWindow().GetPointer());
51 if (flags.testFlag(FILL_MENU_BAR))
53 this->
FillMenuBar(actionBarConfigurer->GetMenuManager());
55 if (flags.testFlag(FILL_TOOL_BAR))
57 this->
FillToolBar(actionBarConfigurer->GetToolBarManager());
59 if (flags.testFlag(FILL_STATUS_LINE))
72 Q_ASSERT_X(action,
"nullcheck",
"QAction must not be null");
73 actions.insert(
id, action);
78 auto iter = actions.find(
id);
79 return iter == actions.end() ?
nullptr : iter.value();
virtual QAction * GetAction(const QString &id) const
virtual void FillStatusLine(IStatusLineManager *statusLine)
virtual void FillToolBar(IToolBarManager *toolBar)
Implements transparent reference counting.
virtual void FillMenuBar(IMenuManager *menuBar)
virtual void FillActionBars(FillFlags flags)
virtual void MakeActions(IWorkbenchWindow *window)
ActionBarAdvisor(const SmartPointer< IActionBarConfigurer > &configurer)
virtual bool RestoreState(SmartPointer< IMemento > memento)
virtual bool SaveState(SmartPointer< IMemento > memento)
virtual SmartPointer< IActionBarConfigurer > GetActionBarConfigurer() const