This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Insert KIcon

7

Votes
13
6
Tags: kdevelop kdevelop kdevelop
(comma "," separated)
The User
KDE Developer
Posts
647
Karma
0
OS

[KDevelop] Insert KIcon

Sat Aug 01, 2009 6:15 pm
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:
Code: Select all
KIcon("icon-id")

Maybe it's possible to implement this feature language-independent. For example in Ruby it should be:
Code: Select all
KDE::Icon.new('icon-id')


The User

Last edited by The User on Fri Aug 14, 2009 9:01 pm, edited 1 time in total.
majewsky
KDE Developer
Posts
46
Karma
0
OS

[KDevelop] Insert KIcon

Sun Aug 09, 2009 1:08 am
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
ged
Registered Member
Posts
1
Karma
0
OS

[KDevelop] Insert KIcon

Thu Aug 13, 2009 9:54 am
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.
The User
KDE Developer
Posts
647
Karma
0
OS

[KDevelop] Insert KIcon

Fri Aug 14, 2009 9:02 pm
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.
The User
KDE Developer
Posts
647
Karma
0
OS

Insert KIcon

Sun Nov 01, 2009 10:11 am
Please move it to implemented, I have commmited a KTextEditor-plugin some time ago.


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], Sogou [Bot]