SV: Re: SV: add icons to project
Rolf Thunbo
rolft at stofanet.dk
Sun Dec 12 14:40:24 GMT 2004
Alright, a more detailed explaination follows below .
--
Rolf Thunbo
-----Oprindelig meddelelse-----
Fra: kdevelop at kdevelop.org
Til: kdevelop at kdevelop.org <kdevelop at kdevelop.org>
Emne: Re: SV: add icons to project
Dato: 12-12-2004 15:22:15
> On 12.Dec 2004 - 14:03:00, Rolf Thunbo wrote:
> > make a prefix in kdevelop, which then in the Makefile.am would look like
> > mypicsdir = $(kde_datadir)/appname/pics
> >
> > and then ad target in the subproject where made the prefix, and then choose Data file in the dialog
> > and the prefix just selected.
> >
> > Then you can add the icons needed to the newly created target, and can use them by using statements like
>
> Thanks for your help, but:
>
> This doesn't work. I can only choose between bin/sbin and noinst as
> prefix nothing else for primary target "data". If I choose bin, I get
> bin_DATA in the Makefile.am which makes automake error out with
> "invalid variable `bin_DATA`".
Before you make a new target in the existing subproject, you should go into subproject options,
- in that dialog there is a tab called prefixes, here you type in your prefix, as an example this
could be
Name: mypics
Path: $(kde_datadir)/name_of_your_app/pics
For that same subproject now add a new target, and do the stuff I mentioned before, choosing Data as primary,
choosing mypics as prefix, and type in a dummy name, the name will not be used in the Makefile.am file.
After this has been done, a new item 'Data in mypics' will appear in the detailsview of the Automake Manager.
And you can add your icons to this new target.
>
> > UserIcon("iconname", KIcon::DefaultState, appinstance)
>
> I assume UserIcon would be an instance of KIcon right? (Yes I'm pretty
> new to the whole KDE-Development and I could only find very little
> documentation about this :-( )
Correct, and the appinstance is ofcouse the instance of KApplication made in the your main cpp file, the
entry point for the application.
>
> Andreas
>
> --
> Stay the curse.
>
> -
> to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«
>
>
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list