home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / demo / sql / book.ui < prev    next >
Encoding:
Qt User Interface  |  2001-09-13  |  8.3 KB  |  242 lines

  1. <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
  2. <class>BookForm</class>
  3. <widget class="QWidget">
  4.     <property name="name">
  5.         <cstring>BookForm</cstring>
  6.     </property>
  7.     <property name="geometry">
  8.         <rect>
  9.             <x>0</x>
  10.             <y>0</y>
  11.             <width>478</width>
  12.             <height>498</height>
  13.         </rect>
  14.     </property>
  15.     <property name="caption">
  16.         <string>Book</string>
  17.     </property>
  18.     <grid>
  19.         <property name="name">
  20.             <cstring>unnamed</cstring>
  21.         </property>
  22.         <property name="margin">
  23.             <number>11</number>
  24.         </property>
  25.         <property name="spacing">
  26.             <number>6</number>
  27.         </property>
  28.         <widget class="QDataTable" row="1" column="0" rowspan="1" colspan="3">
  29.             <column>
  30.                 <property name="text">
  31.                     <string>Surname</string>
  32.                 </property>
  33.                 <property name="field">
  34.                     <string>surname</string>
  35.                 </property>
  36.             </column>
  37.             <column>
  38.                 <property name="text">
  39.                     <string>Forename</string>
  40.                 </property>
  41.                 <property name="field">
  42.                     <string>forename</string>
  43.                 </property>
  44.             </column>
  45.             <property name="name">
  46.                 <cstring>AuthorDataTable</cstring>
  47.             </property>
  48.             <property name="sorting">
  49.                 <bool>true</bool>
  50.             </property>
  51.             <property name="confirmDelete">
  52.                 <bool>true</bool>
  53.             </property>
  54.             <property name="sort">
  55.                 <stringlist>
  56.                     <string>surname ASC</string>
  57.                     <string>forename ASC</string>
  58.                 </stringlist>
  59.             </property>
  60.             <property name="database" stdset="0">
  61.                 <stringlist>
  62.                     <string>(default)</string>
  63.                     <string>author</string>
  64.                 </stringlist>
  65.             </property>
  66.             <property name="frameworkCode" stdset="0">
  67.                 <bool>false</bool>
  68.             </property>
  69.         </widget>
  70.         <spacer row="0" column="1" rowspan="1" colspan="2">
  71.             <property name="name">
  72.                 <cstring>Spacer3</cstring>
  73.             </property>
  74.             <property name="orientation">
  75.                 <enum>Horizontal</enum>
  76.             </property>
  77.             <property name="sizeType">
  78.                 <enum>Expanding</enum>
  79.             </property>
  80.             <property name="sizeHint">
  81.                 <size>
  82.                     <width>20</width>
  83.                     <height>20</height>
  84.                 </size>
  85.             </property>
  86.         </spacer>
  87.         <widget class="QDataTable" row="2" column="0" rowspan="1" colspan="3">
  88.             <column>
  89.                 <property name="text">
  90.                     <string>Title</string>
  91.                 </property>
  92.                 <property name="field">
  93.                     <string>title</string>
  94.                 </property>
  95.             </column>
  96.             <column>
  97.                 <property name="text">
  98.                     <string>Price</string>
  99.                 </property>
  100.                 <property name="field">
  101.                     <string>price</string>
  102.                 </property>
  103.             </column>
  104.             <column>
  105.                 <property name="text">
  106.                     <string>Notes</string>
  107.                 </property>
  108.                 <property name="field">
  109.                     <string>notes</string>
  110.                 </property>
  111.             </column>
  112.             <property name="name">
  113.                 <cstring>BookDataTable</cstring>
  114.             </property>
  115.             <property name="readOnly">
  116.                 <bool>true</bool>
  117.             </property>
  118.             <property name="sorting">
  119.                 <bool>true</bool>
  120.             </property>
  121.             <property name="sort">
  122.                 <stringlist>
  123.                     <string>title ASC</string>
  124.                 </stringlist>
  125.             </property>
  126.             <property name="database" stdset="0">
  127.                 <stringlist>
  128.                     <string>(default)</string>
  129.                     <string>book</string>
  130.                 </stringlist>
  131.             </property>
  132.             <property name="frameworkCode" stdset="0">
  133.                 <bool>false</bool>
  134.             </property>
  135.         </widget>
  136.         <spacer row="3" column="0" rowspan="1" colspan="2">
  137.             <property name="name">
  138.                 <cstring>Spacer1</cstring>
  139.             </property>
  140.             <property name="orientation">
  141.                 <enum>Horizontal</enum>
  142.             </property>
  143.             <property name="sizeType">
  144.                 <enum>Expanding</enum>
  145.             </property>
  146.             <property name="sizeHint">
  147.                 <size>
  148.                     <width>20</width>
  149.                     <height>20</height>
  150.                 </size>
  151.             </property>
  152.         </spacer>
  153.         <widget class="QPushButton" row="0" column="0">
  154.             <property name="name">
  155.                 <cstring>connectButton</cstring>
  156.             </property>
  157.             <property name="sizePolicy">
  158.                 <sizepolicy>
  159.                     <hsizetype>0</hsizetype>
  160.                     <vsizetype>0</vsizetype>
  161.                     <horstretch>0</horstretch>
  162.                     <verstretch>0</verstretch>
  163.                 </sizepolicy>
  164.             </property>
  165.             <property name="text">
  166.                 <string>&Connect...</string>
  167.             </property>
  168.         </widget>
  169.         <widget class="QPushButton" row="3" column="2">
  170.             <property name="name">
  171.                 <cstring>editButton</cstring>
  172.             </property>
  173.             <property name="enabled">
  174.                 <bool>false</bool>
  175.             </property>
  176.             <property name="sizePolicy">
  177.                 <sizepolicy>
  178.                     <hsizetype>0</hsizetype>
  179.                     <vsizetype>0</vsizetype>
  180.                     <horstretch>0</horstretch>
  181.                     <verstretch>0</verstretch>
  182.                 </sizepolicy>
  183.             </property>
  184.             <property name="text">
  185.                 <string>&Edit Books</string>
  186.             </property>
  187.         </widget>
  188.     </grid>
  189. </widget>
  190. <connections>
  191.     <connection>
  192.         <sender>editButton</sender>
  193.         <signal>clicked()</signal>
  194.         <receiver>BookForm</receiver>
  195.         <slot>editClicked()</slot>
  196.     </connection>
  197.     <connection>
  198.         <sender>AuthorDataTable</sender>
  199.         <signal>primeInsert(QSqlRecord*)</signal>
  200.         <receiver>BookForm</receiver>
  201.         <slot>primeInsertAuthor(QSqlRecord*)</slot>
  202.     </connection>
  203.     <connection>
  204.         <sender>AuthorDataTable</sender>
  205.         <signal>currentChanged(QSqlRecord*)</signal>
  206.         <receiver>BookForm</receiver>
  207.         <slot>newCurrentAuthor(QSqlRecord*)</slot>
  208.     </connection>
  209.     <connection>
  210.         <sender>connectButton</sender>
  211.         <signal>clicked()</signal>
  212.         <receiver>BookForm</receiver>
  213.         <slot>connectClicked()</slot>
  214.     </connection>
  215. </connections>
  216. <tabstops>
  217.     <tabstop>connectButton</tabstop>
  218.     <tabstop>editButton</tabstop>
  219. </tabstops>
  220. <includes>
  221.     <include location="global" impldecl="in declaration">qsqlrecord.h</include>
  222.     <include location="local" impldecl="in declaration">editbook.h</include>
  223.     <include location="global" impldecl="in declaration">qdatabrowser.h</include>
  224.     <include location="global" impldecl="in implementation">qsqlcursor.h</include>
  225.     <include location="global" impldecl="in implementation">qcombobox.h</include>
  226.     <include location="local" impldecl="in implementation">connect.h</include>
  227.     <include location="global" impldecl="in implementation">qsqldatabase.h</include>
  228.     <include location="global" impldecl="in implementation">qlineedit.h</include>
  229.     <include location="global" impldecl="in implementation">qdatatable.h</include>
  230.     <include location="local" impldecl="in implementation">book.ui.h</include>
  231. </includes>
  232. <slots>
  233.     <slot access="protected">init()</slot>
  234.     <slot access="protected">destroy()</slot>
  235.     <slot access="protected">editClicked()</slot>
  236.     <slot access="protected">connectClicked()</slot>
  237.     <slot access="protected">newCurrentAuthor( QSqlRecord * author )</slot>
  238.     <slot access="protected">primeInsertAuthor( QSqlRecord * buffer )</slot>
  239. </slots>
  240. <layoutdefaults spacing="6" margin="11"/>
  241. </UI>
  242.