Registered Member
|
As I explained in my Menu Buttons idea, I found that we are able to add menus to toolbars in kde by editing a configuration file. In dolphin this file is dolphinui.rc. I have also found a gwenviewui.rc and dragonplayerui.rc. However, there is currently no gui for it. I think there should be. At the simplest level, all you would have to do is have a "menu" item that you can add to a toolar, similar to how you add a toolbar button or separator. You can then move items inside that menu using the normal UI. Settings an icon would be similar. It would probably be collapsible using a +/- button. Renaming would probably be done by clicking twice on the name. Making submenus would be as simple as moving a menu inside another menu. There should probably also be an option to set the tooltip and title (if any) of the menu, both of which can be set in the ui.rc files.
A more advanced feature, which is not essential to the idea but I think would be very useful, would be to add a check box option for all buttons inside a menu. I haven't been able to come up with a good name for it, but the two best I could think of are "root action" and "button action" (I will call it root action from now on). If there is no item in the menu with this checked, then clicking on the toolbar button's icon brings up the menu. If you have one item in the menu with this option checked, then clicking on the button carries out that action, and clicking on the arrow next to the button brings up the menu (that action does not appear in the menu). The icon, name, and tooltip are also inhereted from this button (they are grayed out in the toolbar editor dialog). So for instance in kate you could have a button where if you clicked on it then it would save, while if you clicked the arrow next to the button you could get a menu with "save as", "save all", "reload", and "reload all". If you have more than one item in the menu assigned to root actions, then they appear in the menu with radio buttons next to them. The one with the selected radio button is the action that clicking on the button will carry out. To change the button's action, you just bring up the menu and click the item you want to assign to the button. Okular already has this for the button that lets you switch between the text and image selection tools.
Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965 |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft