Removing and Adding Toolbar Buttons
Removing and Adding Toolbar Buttons
Hello, I've enjoyed using Inkscape for several years. I'd now like to try customizing the interface. In particular, I'd like to remove some of the default buttons from the toolbar, and add some new ones in their place. I have downloaded and built the source code for Inkscape, but thought it might be worth asking for any advice or direction anyone can offer. Thanks in advance for any direction or help you can offer.
Re: Removing and Adding Toolbar Buttons
LiquidAsh wrote: I'd now like to try customizing the interface. In particular, I'd like to remove some of the default buttons from the toolbar, and add some new ones in their place.
Could you explain what your goal is? Do you want to change the icon (image) of the buttons, or do you indeed want to write code for new functions and make those functions available as a new button on one of the toolbars?
Note that just changing the icon/image used for the buttons does not require to recompile Inkscape (those images are loaded at runtime) - if you tell us on which platform you use Inkscape, we can provide you with detailed steps how to make Inkscape load the icons from a custom resource file.
Re: Removing and Adding Toolbar Buttons
Thanks for the response ~suv.
First, I'd like to remove some of the buttons to simplify the interface a bit. Second, I'd like to add new functionality behind a couple of new buttons: things like set the linear curve tool with 2px wide green stroke settings.
I'm building with the buildtool.cpp app compiled with MinGW32 under Windows7.
First, I'd like to remove some of the buttons to simplify the interface a bit. Second, I'd like to add new functionality behind a couple of new buttons: things like set the linear curve tool with 2px wide green stroke settings.
I'm building with the buildtool.cpp app compiled with MinGW32 under Windows7.
-
- Posts: 626
- Joined: Wed Jun 06, 2007 2:37 am
Re: Removing and Adding Toolbar Buttons
Toolbox.cpp would be a good place to start if I remember right (not at home so no access to the code) the othe files you may want will be the context files, so select-context.cpp for the select tool, these should all be in the main src directory unless someones be rearranging again.
If u have code questions the chartroom may get u instant answers, or the dev mailing list is a good place to go, most of the devs read it to some level.
If u have code questions the chartroom may get u instant answers, or the dev mailing list is a good place to go, most of the devs read it to some level.
Re: Removing and Adding Toolbar Buttons
Thanks Simarilius, I'll definitely give those context files a look, and direct future code questions to the jabber/irc chatrooms.
P.S. sorry about the double post... I didn't remember seeing the admin approval message after quick replying the first time. I'll see whether I can edit that.
P.S. sorry about the double post... I didn't remember seeing the admin approval message after quick replying the first time. I'll see whether I can edit that.
-
- Posts: 626
- Joined: Wed Jun 06, 2007 2:37 am
Re: Removing and Adding Toolbar Buttons
Feel free to continue to ask here, just be aware that a lot less devs will see it here. The things your wanting to do don't sound overly difficult.