You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qt3/examples/demo/sql/sqlex.ui

310 lines
13 KiB

<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>SqlEx</class>
<widget class="QWidget">
<property name="name">
<cstring>SqlEx</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>654</width>
<height>438</height>
</rect>
</property>
<property name="caption">
<string>Form1</string>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="QSplitter">
<property name="name">
<cstring>vsplit</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<widget class="QSplitter">
<property name="name">
<cstring>hsplit</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<widget class="QListView">
<column>
<property name="text">
<string>Tables</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<column>
<property name="text">
<string>Type</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<column>
<property name="text">
<string>Required</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<property name="name">
<cstring>lv</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="allColumnsShowFocus">
<bool>true</bool>
</property>
<property name="rootIsDecorated">
<bool>true</bool>
</property>
<property name="resizeMode">
<enum>LastColumn</enum>
</property>
</widget>
<widget class="QDataTable">
<property name="name">
<cstring>dt</cstring>
</property>
<property name="frameworkCode" stdset="0">
<bool>false</bool>
</property>
</widget>
</widget>
<widget class="QGroupBox">
<property name="name">
<cstring>gb</cstring>
</property>
<property name="title">
<string>SQL Query</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="QLayoutWidget" row="0" column="0">
<property name="name">
<cstring>Layout22</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="QTextEdit">
<property name="name">
<cstring>te</cstring>
</property>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>Layout21</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<spacer>
<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="QPushButton">
<property name="name">
<cstring>submitBtn</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>&amp;Submit</string>
</property>
</widget>
<widget class="QPushButton">
<property name="name">
<cstring>clearBtn</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>C&amp;lear</string>
</property>
</widget>
</hbox>
</widget>
</vbox>
</widget>
</grid>
</widget>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>Layout23</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="QLabel">
<property name="name">
<cstring>lbl</cstring>
</property>
<property name="text">
<string>Press "Connect" to open a database</string>
</property>
</widget>
<widget class="QPushButton">
<property name="name">
<cstring>conBtn</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>&amp;Connect...</string>
</property>
</widget>
</hbox>
</widget>
</vbox>
</widget>
<connections>
<connection>
<sender>clearBtn</sender>
<signal>clicked()</signal>
<receiver>te</receiver>
<slot>clear()</slot>
</connection>
<connection>
<sender>conBtn</sender>
<signal>clicked()</signal>
<receiver>SqlEx</receiver>
<slot>dbConnect()</slot>
</connection>
<connection>
<sender>lv</sender>
<signal>returnPressed(QListViewItem*)</signal>
<receiver>SqlEx</receiver>
<slot>showTable(QListViewItem*)</slot>
</connection>
<connection>
<sender>lv</sender>
<signal>doubleClicked(QListViewItem*)</signal>
<receiver>SqlEx</receiver>
<slot>showTable(QListViewItem*)</slot>
</connection>
<connection>
<sender>submitBtn</sender>
<signal>clicked()</signal>
<receiver>SqlEx</receiver>
<slot>execQuery()</slot>
</connection>
</connections>
<includes>
<include location="local" impldecl="in implementation">sqlex.ui.h</include>
</includes>
<slots>
<slot>init()</slot>
<slot>dbConnect()</slot>
<slot>execQuery()</slot>
<slot>showTable( QListViewItem * item )</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>