Bug 147372 - Add any button to toolbar
Summary: Add any button to toolbar
Status: CONFIRMED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-29 20:06 UTC by Dotan Cohen
Modified: 2008-01-09 00:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dotan Cohen 2007-06-29 20:06:49 UTC
Version:           2.5.6 (using KDE KDE 3.5.6)
Installed from:    Fedora RPMs
OS:                Linux

I often edit php files with the .html extension. Kate does not know that these are php files, and therefore does not highlight them. Digging into the menus to get to the correct highlight option is a pain. I'd appreciate a way to add _any_ menu item as a button on the toolbar, so that I can add PHP Highlighting. See Open Office's toolbar (and keyboard shortcut) configurations for the ideal way of doing this.
Comment 1 Anders Lund 2007-07-02 08:19:36 UTC
Such as Settings->Configure Toolbars?
Comment 2 Dotan Cohen 2007-07-06 09:41:15 UTC
I see where one can add the highlighting button to the toobar, thus enabling selection of any of the highlighting options. However, I'd like to add a _specific_ highlighting to the toolbar and/or keyboard shortcut as I need it very, very often.
Comment 3 Dotan Cohen 2008-01-05 23:46:11 UTC
I have just noticed that Open Office has this functionality: any menu item can be added as a toolbar button. Is there a Qt limitation that GTK does not have, therefore, Open Office (GTK based) can have this option but KDE cannot?
Comment 4 Anders Lund 2008-01-08 22:26:52 UTC
On Saturday 05 January 2008, Dotan Cohen wrote:
> I have just noticed that Open Office has this functionality: any menu item
> can be added as a toolbar button. Is there a Qt limitation that GTK does
> not have, therefore, Open Office (GTK based) can have this option but KDE
> cannot?


KDE lets you add any defined action to the toolbar. When a program generates 
menu items without adding itmes to the applications action collections, that 
is not possible.

As far as Kate is concerned, the only thing we can do about your specific 
problem is to add add all those actions to the action collection, something I 
do not think we want to do.

If you wish for kde to have this option, you should file a wish for 
kdelibs/kdeui.
Comment 5 Dotan Cohen 2008-01-09 00:07:50 UTC
Thanks. I changed the product to kdelibs.

I have another good use case for this request: My native language has three popular encodings. I'd like to add buttons for these three encoding, and no others, to the toolbar. Fulfillment of this bug would allow that.

Thanks!