[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: QtDesigner/Glade
From: |
Richard Dale |
Subject: |
Re: QtDesigner/Glade |
Date: |
Tue, 15 Jan 2002 15:36:30 +0000 |
On Monday 14 January 2002 3:05 pm, Helge Hess wrote:
> did anybody consider building GNUstep/MacOSX UI using the GLADE or
> QtDesigner XML files ?
I think the Qt Designer format is too specific to the Qt toolkit to use as a
AppKit format. For instance, here is a sample extract:
<widget class="QPushButton" row="3" column="2">
<property name="name">
<cstring>editButton</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property name="text">
<string>&Edit Books</string>
</property>
</widget>
It has the name of a Qt widget 'QPushButton', and expects it to have
properties compatible with other Qt widgets.
On the other hand, it would be possible to generate Objective-C/Qt code via
the Qt Designer uic utility for the KDE Qt/Objective-C bindings project, but
I haven't done that yet. Qt 3 Designer has a plugin api for syntax
highlighting, which could be used to add Objective-C highlighting.
The .ui file format isn't language independent as it can contain embedded
snippets of code (always C++ at the moment), which makes it specific to
whichever language you were using with Qt Designer. And it assumes widgets
are connected via the Qt slots/signals mechanism, rather than outlets/actions.
-- Richard