You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

tuxipuxi

Unregistered

1

Saturday, April 17th 2004, 9:01am

KDevelop project and appicon

Hi,

I'm currently writing a Plugin for Kate(the editor) using KDevelop(3) as my IDE.
The Plugin puts an icon into the toolbar.
If I were using qmake, I would just put this icon into the imagecollection, but since I'm using autotools/KDevelop, I need to do it another way.

So, what's the easiest way to install an icon into the kde data directory and load it after make install'ing the plugin?

Sorry for the question, but I couldn't find it out myself with the kdelibs documentation.

Thanks in advance,
Michael.

axeljaeger

Beginner

Posts: 10

Location: Frankfurt Germany

Occupation: Student

  • Send private message

2

Saturday, April 17th 2004, 9:30am

This is the way to do if you want to load icons for a KDE application that should follow the currently selected iconstyle.

http://developer.kde.org/documentation/l…IconLoader.html
It's nice to be important but it's more important to be nice

tuxipuxi

Unregistered

3

Saturday, April 17th 2004, 9:31am

Hi,

thanks, but before loading them I have to find a way for installing the icon in a KDE data directory.
Any hints for how to do that?

Michael.

tuxipuxi

Unregistered

4

Saturday, April 17th 2004, 10:00am

Hi,

I succeeded in copying the icon to the plugin data directory now, but I can't load it using
KGlobal::iconLoader()->loadIcon("designer_appicon.png", KIcon::NoGroup).

Michael.

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

5

Saturday, April 17th 2004, 6:48pm

See description of the "name" parameter in KIconLoader docs :)
Hint: designer_appicon.png.png?

Cheers,
_
Qt/KDE Developer
Debian User

tuxipuxi

Unregistered

6

Saturday, April 17th 2004, 9:08pm

Hi,

KGlobal::iconLoader()->addAppDir("kate");
KGlobal::iconLoader()->loadIcon("designer_appicon", KIcon::NoGroup)

doesn't work neither :(

Michael.

axeljaeger

Beginner

Posts: 10

Location: Frankfurt Germany

Occupation: Student

  • Send private message

7

Sunday, April 18th 2004, 9:35am

This cannot work because your icon is not in the app-icon-dir of kate but in one of the plugins dirs.
It's nice to be important but it's more important to be nice