Hello ALL
I am new in the inkscape development.I wants to add some new feature in inkscape for Window Os . Please let me how can i add following things. New dialog Button Edit Box Set Event of each button and edit box.
which is base class for GUI and event control in Inkscape?.If you have any test example for Inkscape please suggest me.
Thanks
On Jul 20, 2011, at 9:53 PM, mahendra1 wrote:
Hello ALL
I am new in the inkscape development.I wants to add some new feature in inkscape for Window Os . Please let me how can i add following things. New dialog Button Edit Box Set Event of each button and edit box.
which is base class for GUI and event control in Inkscape?.If you have any test example for Inkscape please suggest me.
Well, first you're looking at things at perhaps the wrong level. You're asking very low-level implementation questions, but we don't have the higher-level context of why you need to do such things. Knowing that can really help.
Our first question would probably be if you are working on a bit of Windows-only functionality, or if it could be more general.
The next questions would be to narrow down your use to see if an extension would be more appropriate. If so, one describes the UI in abstract data needs in an .inx file and then Inkscape will magically do the rest.
Finally, the approach sounds a bit off. That is, the questions you are asking convey a hint of certain assumptions that make things look more like VB's approach to code. For more Inkscape coding, one does not worry about buttons and edit boxes as directly. Instead one can set up to use GtkActions that will be magically transformed at runtime into buttons, menuitems, etc. as needed dynamically. More generally, with overall GTK coding one would not focus on handling events out of buttons or edit boxes (in the cases where GtkAction is not appropriate), but instead create abstract data items that are tied to one or more UI controls and let them run with built-in behaviors.
You ask for a "test example", however we need specifics. What type of functionality are you looking for examples of? Once we know what type of end result you need, we can have a more concrete idea of which steps and code you will need to get there.
To summarize, you are asking us the "how do I implement step so-and-so" (the "how" of your solution) when we really first need to know the "why" of the final purpose you are needing to complete.
2011/7/21 mahendra1 <mahendra.gajera@...2640...>:
Hello ALL
I am new in the inkscape development.I wants to add some new feature in inkscape for Window Os . Please let me how can i add following things. New dialog Button Edit Box Set Event of each button and edit box.
User interface is done using the GTK+ library. You can read the manual here. http://developer.gnome.org/gtk/stable/ We use the gtkmm bindings for C++, but they are less documented. http://developer.gnome.org/gtkmm/stable/
The classes you are looking for: Gtk::Dialog http://developer.gnome.org/gtkmm/stable/classGtk_1_1Dialog.html Gtk::Button http://developer.gnome.org/gtkmm/stable/classGtk_1_1Button.html Gtk::Entry http://developer.gnome.org/gtkmm/unstable/classGtk_1_1Entry.html To connect events, you use libsigc++ signals or virtual functions. http://developer.gnome.org/libsigc++/stable/
There is a good book about gtkmm programming available here: http://developer.gnome.org/gtkmm-tutorial/stable/
which is base class for GUI and event control in Inkscape?.
I don't know what you are looking for. SPDesktop (src/desktop.h) is the class that represents an editing window.
If you have any test example for Inkscape please suggest me.
There are many examples in the gtkmm book.
Regards, Krzysztof
OK,I study your documents. Here i try to add button with following way,but it doesn't appear on screen. http://old.nabble.com/file/p32147093/Button.svg Button.svg
Please let me know at where i make mistake.
1)Add icon in share\icons\icon.svg file.
ID:Mark-tool-pointer Label:#Mark_draw_select
2)verb.h SP_VERB_CONTEXT_MARK,
3)Verb.cpp new ContextVerb(SP_VERB_CONTEXT_MARK, "MarkToolSelector", N_("Select"), N_("MarkPro objects"), MARKPRO_ICON_TOOL_POINTER),
3)inkscape.xml <bind action="MarkToolSelector" display="true" />
4)default.xml. <bind action="MarkToolSelector" display="true" />
Krzysztof Kosiński wrote:
2011/7/21 mahendra1 <mahendra.gajera@...2640...>:
Hello ALL
I am new in the inkscape development.I wants to add some new feature in inkscape for Window Os . Please let me how can i add following things. New dialog Button Edit Box Set Event of each button and edit box.
User interface is done using the GTK+ library. You can read the manual here. http://developer.gnome.org/gtk/stable/ We use the gtkmm bindings for C++, but they are less documented. http://developer.gnome.org/gtkmm/stable/
The classes you are looking for: Gtk::Dialog http://developer.gnome.org/gtkmm/stable/classGtk_1_1Dialog.html Gtk::Button http://developer.gnome.org/gtkmm/stable/classGtk_1_1Button.html Gtk::Entry http://developer.gnome.org/gtkmm/unstable/classGtk_1_1Entry.html To connect events, you use libsigc++ signals or virtual functions. http://developer.gnome.org/libsigc++/stable/
There is a good book about gtkmm programming available here: http://developer.gnome.org/gtkmm-tutorial/stable/
which is base class for GUI and event control in Inkscape?.
I don't know what you are looking for. SPDesktop (src/desktop.h) is the class that represents an editing window.
If you have any test example for Inkscape please suggest me.
There are many examples in the gtkmm book.
Regards, Krzysztof
5 Ways to Improve & Secure Unified Communications Unified Communications promises greater efficiencies for business. UC can improve internal communications as well as offer faster, more efficient ways to interact with customers and streamline customer service. Learn more! http://www.accelacomm.com/jaw/sfnl/114/51426253/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
http://old.nabble.com/file/p32147093/Button.bmp Button.bmp
participants (3)
-
Jon Cruz
-
Krzysztof Kosiński
-
mahendra1