home *** CD-ROM | disk | FTP | other *** search
Qt User Interface | 2001-09-13 | 8.3 KB | 242 lines |
- <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
- <class>BookForm</class>
- <widget class="QWidget">
- <property name="name">
- <cstring>BookForm</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>478</width>
- <height>498</height>
- </rect>
- </property>
- <property name="caption">
- <string>Book</string>
- </property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
- <number>11</number>
- </property>
- <property name="spacing">
- <number>6</number>
- </property>
- <widget class="QDataTable" row="1" column="0" rowspan="1" colspan="3">
- <column>
- <property name="text">
- <string>Surname</string>
- </property>
- <property name="field">
- <string>surname</string>
- </property>
- </column>
- <column>
- <property name="text">
- <string>Forename</string>
- </property>
- <property name="field">
- <string>forename</string>
- </property>
- </column>
- <property name="name">
- <cstring>AuthorDataTable</cstring>
- </property>
- <property name="sorting">
- <bool>true</bool>
- </property>
- <property name="confirmDelete">
- <bool>true</bool>
- </property>
- <property name="sort">
- <stringlist>
- <string>surname ASC</string>
- <string>forename ASC</string>
- </stringlist>
- </property>
- <property name="database" stdset="0">
- <stringlist>
- <string>(default)</string>
- <string>author</string>
- </stringlist>
- </property>
- <property name="frameworkCode" stdset="0">
- <bool>false</bool>
- </property>
- </widget>
- <spacer row="0" column="1" rowspan="1" colspan="2">
- <property name="name">
- <cstring>Spacer3</cstring>
- </property>
- <property name="orientation">
- <enum>Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>Expanding</enum>
- </property>
- <property name="sizeHint">
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget class="QDataTable" row="2" column="0" rowspan="1" colspan="3">
- <column>
- <property name="text">
- <string>Title</string>
- </property>
- <property name="field">
- <string>title</string>
- </property>
- </column>
- <column>
- <property name="text">
- <string>Price</string>
- </property>
- <property name="field">
- <string>price</string>
- </property>
- </column>
- <column>
- <property name="text">
- <string>Notes</string>
- </property>
- <property name="field">
- <string>notes</string>
- </property>
- </column>
- <property name="name">
- <cstring>BookDataTable</cstring>
- </property>
- <property name="readOnly">
- <bool>true</bool>
- </property>
- <property name="sorting">
- <bool>true</bool>
- </property>
- <property name="sort">
- <stringlist>
- <string>title ASC</string>
- </stringlist>
- </property>
- <property name="database" stdset="0">
- <stringlist>
- <string>(default)</string>
- <string>book</string>
- </stringlist>
- </property>
- <property name="frameworkCode" stdset="0">
- <bool>false</bool>
- </property>
- </widget>
- <spacer row="3" column="0" rowspan="1" colspan="2">
- <property name="name">
- <cstring>Spacer1</cstring>
- </property>
- <property name="orientation">
- <enum>Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>Expanding</enum>
- </property>
- <property name="sizeHint">
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget class="QPushButton" row="0" column="0">
- <property name="name">
- <cstring>connectButton</cstring>
- </property>
- <property name="sizePolicy">
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="text">
- <string>&Connect...</string>
- </property>
- </widget>
- <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>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="text">
- <string>&Edit Books</string>
- </property>
- </widget>
- </grid>
- </widget>
- <connections>
- <connection>
- <sender>editButton</sender>
- <signal>clicked()</signal>
- <receiver>BookForm</receiver>
- <slot>editClicked()</slot>
- </connection>
- <connection>
- <sender>AuthorDataTable</sender>
- <signal>primeInsert(QSqlRecord*)</signal>
- <receiver>BookForm</receiver>
- <slot>primeInsertAuthor(QSqlRecord*)</slot>
- </connection>
- <connection>
- <sender>AuthorDataTable</sender>
- <signal>currentChanged(QSqlRecord*)</signal>
- <receiver>BookForm</receiver>
- <slot>newCurrentAuthor(QSqlRecord*)</slot>
- </connection>
- <connection>
- <sender>connectButton</sender>
- <signal>clicked()</signal>
- <receiver>BookForm</receiver>
- <slot>connectClicked()</slot>
- </connection>
- </connections>
- <tabstops>
- <tabstop>connectButton</tabstop>
- <tabstop>editButton</tabstop>
- </tabstops>
- <includes>
- <include location="global" impldecl="in declaration">qsqlrecord.h</include>
- <include location="local" impldecl="in declaration">editbook.h</include>
- <include location="global" impldecl="in declaration">qdatabrowser.h</include>
- <include location="global" impldecl="in implementation">qsqlcursor.h</include>
- <include location="global" impldecl="in implementation">qcombobox.h</include>
- <include location="local" impldecl="in implementation">connect.h</include>
- <include location="global" impldecl="in implementation">qsqldatabase.h</include>
- <include location="global" impldecl="in implementation">qlineedit.h</include>
- <include location="global" impldecl="in implementation">qdatatable.h</include>
- <include location="local" impldecl="in implementation">book.ui.h</include>
- </includes>
- <slots>
- <slot access="protected">init()</slot>
- <slot access="protected">destroy()</slot>
- <slot access="protected">editClicked()</slot>
- <slot access="protected">connectClicked()</slot>
- <slot access="protected">newCurrentAuthor( QSqlRecord * author )</slot>
- <slot access="protected">primeInsertAuthor( QSqlRecord * buffer )</slot>
- </slots>
- <layoutdefaults spacing="6" margin="11"/>
- </UI>
-