I searched a lot about this but i am unable to find any useful resources for that. It will be very helpfull if someone can tell me from where should i start looking into source code for that or any useful tutorial links.
Steps to create a custom tool may include something like
1. Add a new tool type in toolbox in some source code file. 2. Add properties for that tool into its "Snap Controls Bar". 3. Add defination of properties in "Snap Controls Bar" for that tool. 4. Get values from properties and draw lines according to given properties. 5. ..etc
For example: This custom tool with a custom "Snap Controls Bar" A tool that creates two lines and we can change lines's properties in "Snap Control Bar"
1. Length
2. Alignment
3. Left most points distance
4. Right most points distance
That will result into two lines that can be customize according to those parameters.
This particular example might be best for extension but for some other tools Its better if it is inside toolbox have a Snap Control Bar similar to other tools inside toolbox. likewise 3d cube tool is inside toolbox. i want to know how to add a tool inside toolbox.
If a 3rd party extension is useful enough, it will be included in the release versions. In the future, Inkscape may provide a way to add custom buttons for extensions. If an extension is very popular, it may be added as a tool in the release versions.
Some extensions that are very popular, but are not fully upgraded to version 1.0 yet:
Modify Path>Bezier Envelope
Laser Tools> Tabbed Box Maker
Export> Pre-Process File Save As...
You might try to update these extensions and get a better idea how operations and extensions function in Inkscape. (If you can make these work well in 1.0, the community would declare you a hero).
I searched a lot about this but i am unable to find any useful resources for that.
It will be very helpfull if someone can tell me from where should i start looking into source code for that or any useful tutorial links.
Steps to create a custom tool may include something like
1. Add a new tool type in toolbox in some source code file.
2. Add properties for that tool into its "Snap Controls Bar".
3. Add defination of properties in "Snap Controls Bar" for that tool.
4. Get values from properties and draw lines according to given properties.
5. ..etc
For example:
This custom tool with a custom "Snap Controls Bar"
A tool that creates two lines and we can change lines's properties in "Snap Control Bar"
1. Length
2. Alignment
3. Left most points distance
4. Right most points distance
That will result into two lines that can be customize according to those parameters.
That might be best as an "Extension".
https://inkscape.org/forums/extensions/
Thank you for your reply.
This particular example might be best for extension but for some other tools Its better if it is inside toolbox have a Snap Control Bar similar to other tools inside toolbox.
likewise 3d cube tool is inside toolbox.
i want to know how to add a tool inside toolbox.
If someone made a extension then is it easy to add it inside toolbox as a tool ?
i want to learn about source code of inkscape and i think creating a tool inside toolbox is best starting point. thats why i am asking for that.
If a 3rd party extension is useful enough, it will be included in the release versions. In the future, Inkscape may provide a way to add custom buttons for extensions. If an extension is very popular, it may be added as a tool in the release versions.
Some extensions that are very popular, but are not fully upgraded to version 1.0 yet:
You might try to update these extensions and get a better idea how operations and extensions function in Inkscape. (If you can make these work well in 1.0, the community would declare you a hero).
Thank you @TylerDurden
Thats very helpful.