Hi,

In Skrooge, the main windows is a KParts::MainWindow where plugins (KParts::ReadOnlyPart) are added by using something like this:
setupActions();
setupGUI(Default, "../skg/skgmainpanel.rc");
...
for (int j = 0; j < nbplugin; ++j)
  guiFactory()->addClient(m_pluginsList.at(j));
This work well, menus and toolbars are built as expected.

But, I still have some questions:

Q1: Why in "Configure Toolbars", I have one item per plugin in the combo?

This is not really user friendly to customize the toolbar.

Q2:Is it possible to group all "Main Toolbar"? How?

Q3:Is the following behavior normal ?
If the rc file of the "unit" plugin is like this:
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="skrooge_unit" version="2">
<MenuBar>
  <Menu name="edit"><text>Edit</text>
      <Separator group="edit_group_2"/>
      <Action name="edit_split_stock" group="edit_group_2"/>
  </Menu>
  <Menu name="tool"><text>Tools</text>
      <Action name="tool_delete_unused_units" group="tool_group_2"/>
  </Menu>   
</MenuBar>
<ToolBar name="mainToolBar"><text>Main Toolbar</text></ToolBar>
</kpartgui>

Then the 2 actions can be added in the "Main Toolbar" like this:

If I remove the empty <ToolBar> in the rc file, then the user is no more able to add the 2 actions in the "Main Toolbar".
Is it normal? Does it mean that each plugin must declare all toolbars to be sure that the action can be added?

Thank you in advance.
Regards,
Stephane