Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

ColorCoder plugin v1.0.1 (updated 2010/10/17)

<< < (2/4) > >>

dmoore:
very nice! I recommend you add the option to switch between tiny and regular dialogs to the dialog itself (an expander control like you see in the gnome file picker)

killerbot:
I would say, once you got the code cleaned up (if needed) and ready, we could add it to the contrib plug-ins, if you like that.

Then you images will automatically get into the correct dir ;-)

mandrav:

--- Quote ---With regard to that... Is it possible for the plugin installer to add these icons to the ~/.codeblocks/share/codeblocks/images/settings/ folder (or its equivalent path in other platforms) during the installation process? ATM I'm adding them "by hand", and each time I uninstall the plugin (installing a new version) I need to copy them again.
--- End quote ---

Although it's mentioned elsewhere, you need to do two things:
[*] Inside the .cbplugin archive you must put the two icon files (.png, on/off versions), in the root of the archive (aka not in any folders)
[*] Those two icons must follow a strict naming rule (case-sensitive!): if your plugin is named ColorCoder then those two files must be named as ColorCoder.png and ColorCoder-off.png.

Deschamps:

--- Quote from: mandrav ---Although it's mentioned elsewhere, you need to do two things:
[*] Inside the .cbplugin archive you must put the two icon files (.png, on/off versions), in the root of the archive (aka not in any folders)
[*] Those two icons must follow a strict naming rule (case-sensitive!): if your plugin is named ColorCoder then those two files must be named as ColorCoder.png and ColorCoder-off.png.
--- End quote ---

Yes. I had read elsewhere (I think that was the wiki) that this was the procedure. But I've done in that manner and it's not working for me, neither in Vista nor openSUSE 10.3. Finally, what I've done is to copy these two images to the /usr/local/share/codeblocks/images/settigs/ folder, so they are always available (copy them each time to my home path was annoying and adding them to the proper folder in the svn sources and recompiling the whole C::B also works, but this is a disproportionate work around :D)

I had also read about the naming rules, and I have assured that all the involved files (including the return string in the GetBitmapBaseName() method for the setup class) are observing strictly the case-sensitive aspect.



--- Quote from: killerbot ---I would say, once you got the code cleaned up (if needed) and ready, we could add it to the contrib plug-ins, if you like that.

--- End quote ---

It would be really nice seeing this poor tool integrated with the contrib plugins in C::B :) But.. yes. I need to clean up a lot the code. By now, lots of comments are needed and the coding style should be also adapted to the look you use in most of the sources. I would feel ashamed showing you the current sources :D



--- Quote from: dmoore ---very nice! I recommend you add the option to switch between tiny and regular dialogs to the dialog itself (an expander control like you see in the gnome file picker)

--- End quote ---

Thanks. I'll add that feature today or tomorrow, so it will be implemented for the first "public" release.

Regards.

mandrav:

--- Quote from: Deschamps on June 10, 2008, 11:14:25 am ---
--- Quote from: mandrav ---Although it's mentioned elsewhere, you need to do two things:
[*] Inside the .cbplugin archive you must put the two icon files (.png, on/off versions), in the root of the archive (aka not in any folders)
[*] Those two icons must follow a strict naming rule (case-sensitive!): if your plugin is named ColorCoder then those two files must be named as ColorCoder.png and ColorCoder-off.png.
--- End quote ---

Yes. I had read elsewhere (I think that was the wiki) that this was the procedure. But I've done in that manner and it's not working for me, neither in Vista nor openSUSE 10.3. Finally, what I've done is to copy these two images to the /usr/local/share/codeblocks/images/settigs/ folder, so they are always available (copy them each time to my home path was annoying and adding them to the proper folder in the svn sources and recompiling the whole C::B also works, but this is a disproportionate work around :D)

I had also read about the naming rules, and I have assured that all the involved files (including the return string in the GetBitmapBaseName() method for the setup class) are observing strictly the case-sensitive aspect.

--- End quote ---

Keep in mind that we 're talking about the plugin's base name here, not its filename. So, on linux for example, if your plugin is bundled as libColorCoder.cbplugin the icons should still be named ColorCoder.png and ColorCoder-off.png (no 'lib').
Finally, I insist that it works because I have a small plugin here that proves the procedure works :). If you still can't make it work, when you release the source, I 'll try to find the time and fix this for you. Maybe it's another step going wrong (or not done at all) that makes this fail...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version