[PB-Linux] Using GLADE as VD for pureBasic (0.3.0)
Posted: Sun May 14, 2006 1:10 pm
Hi,
this is a simple, not yet finished project. It uses Glade C-outputfiles to convert them to PureBasic-source.

To use this prog. you have to install Glade (if not already done).
After this, start Glade and create a project (i.e. a Window with some Buttons)
Save and create the sourcecode (make sure that Language in options is C..) but if you don't change anything, all runs well
The Project-path specified in the options must be selected in the options of glade2pb too... that's all (Language-selection doesn't work yet)
After that a click on the left most button will refresh the dropdown-list and show all projects in the given path (if any).
Select a project from the list an push the second button "Umwandeln". Now you'll find in the "Project folder"->src 3 pb-files
main.pb, interface.pb (the window-definitions etc.) and callbacks.pb (the procedures for each event defined in Glade)
If a requester pops up after selecting a project asking you to specify the project manually... you have different gtk version than me....(this is part of a workaround....and not avoidable yet....)
If a Gadget (or Widget in GTK) uses variables, they're not treaten right for the moment (i.e. toolbar; these variables must be edited by hand)
Btw.: the Glade2PB GUI is designd with Glade...
If there is enough interest in this project, I'll continue it....
Sourcecode then will be released with version 4 of PB for Linux because there are some workarounds (some things are missing or broken in V3.94, you'll fnd them in Bug-Reports later on) and the code itself isn't very clean...
At least, here is the downloadlink (approx 57k) http://home.arcor.de/x-linux/pure/g2pb
After downlading you may have to make it executable..
Comments, questions etc. are welcome...
...and if somone can provide a screenshot using an english environment...(want to know, if all GTK+ entries are translated automatically) Thanks
this is a simple, not yet finished project. It uses Glade C-outputfiles to convert them to PureBasic-source.

To use this prog. you have to install Glade (if not already done).
After this, start Glade and create a project (i.e. a Window with some Buttons)
Save and create the sourcecode (make sure that Language in options is C..) but if you don't change anything, all runs well

The Project-path specified in the options must be selected in the options of glade2pb too... that's all (Language-selection doesn't work yet)
After that a click on the left most button will refresh the dropdown-list and show all projects in the given path (if any).
Select a project from the list an push the second button "Umwandeln". Now you'll find in the "Project folder"->src 3 pb-files
main.pb, interface.pb (the window-definitions etc.) and callbacks.pb (the procedures for each event defined in Glade)
If a requester pops up after selecting a project asking you to specify the project manually... you have different gtk version than me....(this is part of a workaround....and not avoidable yet....)
If a Gadget (or Widget in GTK) uses variables, they're not treaten right for the moment (i.e. toolbar; these variables must be edited by hand)
Btw.: the Glade2PB GUI is designd with Glade...
If there is enough interest in this project, I'll continue it....
Sourcecode then will be released with version 4 of PB for Linux because there are some workarounds (some things are missing or broken in V3.94, you'll fnd them in Bug-Reports later on) and the code itself isn't very clean...
At least, here is the downloadlink (approx 57k) http://home.arcor.de/x-linux/pure/g2pb
After downlading you may have to make it executable..
Comments, questions etc. are welcome...
...and if somone can provide a screenshot using an english environment...(want to know, if all GTK+ entries are translated automatically) Thanks