KDE Developer
|
There could be a menu-action in KDevelop to insert code for a KIcon.
You click on the action, see the icon-chooser, select an icon, at cursor-position such code will be inserted:
Maybe it's possible to implement this feature language-independent. For example in Ruby it should be:
The User
Last edited by The User on Fri Aug 14, 2009 9:01 pm, edited 1 time in total.
|
KDE Developer
|
1. Your C++ code is wrong because KIcon has value semantics. Just write KIcon("icon-id").
2. I vote no because this opens Pandora's box of interface clutter: Why only KIcon? I want buttons for QLatin1String, QRectF, KXMLGUIClient, Plasma::PopupApplet, Kolf::GameUIPageWidget, ... You know what I mean?
Proud kdegames developer since 2008, and member of the KDE forums since March 2009
|
Registered Member
|
I think it can be implemented through using features plugins to KDevelop. For example, there are plugin for Qt Designer integration - if it is possibility to choose icons from resource browser or whatever else, why not use it as context dependent? I'm not using KDE framework, but think that it has similar behaviour. I agreed that it isn't a reason to implement such actions for QLatin1String, QRectF and so, but for Resource Browser-like features it can be implemented.
|
KDE Developer
|
You can insert a text or a rect easily. But it's complicate to search the name of the KIcon. There's a menu to select an icon and it would be very useful.
|
KDE Developer
|
Please move it to implemented, I have commmited a KTextEditor-plugin some time ago.
|
Registered users: Bing [Bot], gfielding, Google [Bot], Sogou [Bot]