Here is a glade example file. After using it and building it , I have very little work to do to get it smoothed out a little for lazarus.
Disable project options and code generation get rid of the most of the extra GTK + specifics. But I only have one important question the tool pallet is by itself from a user interface this is a little different than Delphi. I personally could care less and maybe we could make the compiler output window part of the main toolbar instead????
The parser will just map the GTK class to the lazarus class equivelent.
Cliff
<?xml version="1.0"?>
<GTK-Interface>
<project>
<name>Project1</name>
<program_name>project1</program_name>
<directory></directory>
<source_directory>src</source_directory>
<pixmaps_directory>pixmaps</pixmaps_directory>
<language>C</language>
<gnome_support>False</gnome_support>
<gettext_support>False</gettext_support>
<output_main_file>False</output_main_file>
<output_support_files>False</output_support_files> <output_build_files>False</output_build_files>
<backup_source_files>False</backup_source_files>
</project>
<widget>
<class>GtkWindow</class>
<name>window1</name>
<title>window1</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>False</modal>
<allow_shrink>False</allow_shrink>
<allow_grow>True</allow_grow>
<auto_shrink>False</auto_shrink>
<widget>
<class>GtkFixed</class>
<name>fixed1</name>
<widget>
<class>GtkButton</class>
<name>button1</name>
<x>168</x>
<y>72</y>
<width>96</width>
<height>48</height>
<tooltip>test</tooltip>
<can_focus>True</can_focus>
<label>Hello</label>
</widget>
</widget>
</widget>
<widget>
<class>GtkWindow</class>
<name>window2</name>
<title>window2</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>False</modal>
<allow_shrink>False</allow_shrink>
<allow_grow>True</allow_grow>
<auto_shrink>False</auto_shrink>
<widget>
<class>GtkFixed</class>
<name>fixed2</name>
<widget>
<class>GtkButton</class>
<name>button2</name>
<x>152</x>
<y>120</y>
<width>47</width>
<height>22</height>
<can_focus>True</can_focus>
<label>button2</label>
</widget>
</widget>
</widget>
</GTK-Interface>
