From kde-devel Mon Feb 18 19:15:38 2013 From: Albert Astals Cid Date: Mon, 18 Feb 2013 19:15:38 +0000 To: kde-devel Subject: Re: Question on Toolbars Message-Id: <1941830.FuZ9Dzssx5 () xps> X-MARC-Message: https://marc.info/?l=kde-devel&m=136121496701847 El Dimecres, 13 de febrer de 2013, a les 16:19:50, Stephane MANKOWSKI va escriure: > 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. Agreed > > *Q2:Is it possible to group all "Main Toolbar"? How?* I don't think you can (without adding the feature to kdelibs) > *Q3:Is the following behavior normal ?* > If the rc file of the "unit" plugin is like this: > * > > > Edit > > > > Tools > > > > _Main Toolbar_ > * > Then the 2 actions can be added in the "Main Toolbar" like this: > > If I remove the empty 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? That is how i understand it, each plugin has it's own toolbar, it seems that kdelibs has a feature that if you name all the toolbars the same way they are collapsed and just shown as one, but the editing and "creating" part is still not really up to that feature. It may be an interesting feature to add but xmlgui+parts is not really easy to develop, so unless you have lots of time to spent getting your head around it, it may be better to improve the documentation. After all, all KDE programs have the same issue, so users may be already used to it. Cheers, Albert > > Thank you in advance. > Regards, > Stephane >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<