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