[Mathmagic-devlopment] Druids and everything else.
Status: Pre-Alpha
Brought to you by:
nayaniabhishek
From: NAYANI A. <nay...@ya...> - 2000-10-13 07:47:27
|
Hi, The best resources you can have when programming with GTK+ & GNOME toolkits are the reference guides. You can download them from developer.gnome.org/docs/api. You should get all the docs there ( gtk,glib,gdk,libgnome etc.) and there are excellent tutorials in the doc directory itself (like GGAD etc.) If it is not possible to download all these stuff you can find similar docs in /usr/doc/gnome-libs-devel/. The thing you need to know about a druid is it is mostly automated. It needs to be put in a toplevel window of its own.There are three types of pages it can hold, druidpagestandard - this has an empty vbox in which we can keep any of our widgets, druidpagestart(or first :)) - this page has a disabled back button and we can display any text in the center. druidpagefinish - similar to first, but it has got a finish button instead of next. The druid automaticaly handles the next and other buttons if we don't handle the signals. There are four signals we can handle "next","cancel","back","finish". you can connect a callback to it ,do your function calls and then display the next page using the func gnome_druid_page_set(). For more info see the docs --its easy. I used glade to do the following - create the toplevel window, set the title, create druid with 4 pages. set each pages heading,logo. set the first pages intro, create an hbox for the second page and embed a label and entry widget. that's all! save, build and delete the .glade file. The changes i did to the main interface file are at the bottom separated by ****. This style is really good and I would like it if you can get used to it as well :). Abhi. PS: I actually downloaded the whole developer.gnome.org :). (wget -cr --tries=0 -nc http://developer.gnome.org) It comes to arround just 25Mb of high quality data. __________________________________________________ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ |