/[svn]/qsampler/trunk/src/qsamplerDeviceForm.ui
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerDeviceForm.ui

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 920 by capela, Sun Sep 24 12:47:51 2006 UTC revision 1473 by capela, Mon Nov 5 19:07:26 2007 UTC
# Line 1  Line 1 
1  <!DOCTYPE UI><UI version="3.1" stdsetdef="1">  <ui version="4.0" >
2  <class>qsamplerDeviceForm</class>   <author>rncbc aka Rui Nuno Capela</author>
3  <comment>qsampler - A LinuxSampler Qt GUI Interface.   <comment>qsampler - A LinuxSampler Qt GUI Interface.
4    
5     Copyright (C) 2004-2006, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.
6       Copyright (C) 2007, Christian Schoenebeck
7    
8     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
9     modify it under the terms of the GNU General Public License     modify it under the terms of the GNU General Public License
# Line 19  Line 20 
20     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21    
22  </comment>  </comment>
23  <author>rncbc aka Rui Nuno Capela</author>   <class>qsamplerDeviceForm</class>
24  <widget class="QWidget">   <widget class="QDialog" name="qsamplerDeviceForm" >
25      <property name="name">    <property name="geometry" >
26          <cstring>qsamplerDeviceForm</cstring>     <rect>
27      </property>      <x>0</x>
28      <property name="geometry">      <y>0</y>
29          <rect>      <width>601</width>
30              <x>0</x>      <height>378</height>
31              <y>0</y>     </rect>
32              <width>570</width>    </property>
33              <height>361</height>    <property name="sizePolicy" >
34          </rect>     <sizepolicy>
35      </property>      <hsizetype>7</hsizetype>
36      <property name="sizePolicy">      <vsizetype>1</vsizetype>
37          <sizepolicy>      <horstretch>0</horstretch>
38              <hsizetype>7</hsizetype>      <verstretch>0</verstretch>
39              <vsizetype>1</vsizetype>     </sizepolicy>
40              <horstretch>0</horstretch>    </property>
41              <verstretch>0</verstretch>    <property name="focusPolicy" >
42          </sizepolicy>     <enum>Qt::StrongFocus</enum>
43      </property>    </property>
44      <property name="caption">    <property name="windowTitle" >
45          <string>Qsampler: Devices</string>     <string>Qsampler: Devices</string>
46      </property>    </property>
47      <property name="icon">    <property name="windowIcon" >
48          <pixmap>qsamplerDevice.png</pixmap>     <iconset resource="../icons/qsampler.qrc" >:/icons/qsamplerDevice.png</iconset>
49      </property>    </property>
50      <property name="focusPolicy">    <layout class="QVBoxLayout" >
51          <enum>StrongFocus</enum>     <property name="margin" >
52      </property>      <number>9</number>
53      <vbox>     </property>
54          <property name="name">     <property name="spacing" >
55              <cstring>unnamed</cstring>      <number>6</number>
56          </property>     </property>
57          <widget class="QSplitter">     <item>
58              <property name="name">      <layout class="QHBoxLayout" >
59                  <cstring>splitter1</cstring>       <property name="margin" >
60              </property>        <number>0</number>
61              <property name="orientation">       </property>
62                  <enum>Horizontal</enum>       <property name="spacing" >
63              </property>        <number>6</number>
64              <widget class="QListView">       </property>
65                  <column>       <item>
66                      <property name="text">        <widget class="QTreeWidget" name="DeviceListView" >
67                          <string>Devices</string>         <property name="minimumSize" >
68                      </property>          <size>
69                      <property name="clickable">           <width>160</width>
70                          <bool>true</bool>           <height>0</height>
71                      </property>          </size>
72                      <property name="resizable">         </property>
73                          <bool>true</bool>         <property name="toolTip" >
74                      </property>          <string>Device list</string>
75                  </column>         </property>
76                  <property name="name">        </widget>
77                      <cstring>DeviceListView</cstring>       </item>
78                  </property>       <item>
79                  <property name="minimumSize">        <layout class="QVBoxLayout" >
80                      <size>         <property name="margin" >
81                          <width>160</width>          <number>0</number>
82                          <height>0</height>         </property>
83                      </size>         <property name="spacing" >
84                  </property>          <number>6</number>
85                  <property name="rootIsDecorated">         </property>
86                      <bool>true</bool>         <item>
87                  </property>          <layout class="QHBoxLayout" >
88                  <property name="resizeMode">           <property name="margin" >
89                      <enum>LastColumn</enum>            <number>0</number>
90                  </property>           </property>
91                  <property name="toolTip" stdset="0">           <property name="spacing" >
92                      <string>Device list</string>            <number>6</number>
93                  </property>           </property>
94              </widget>           <item>
95              <widget class="QSplitter">            <widget class="QLabel" name="DeviceNameTextLabel" >
96                  <property name="name">             <property name="sizePolicy" >
97                      <cstring>splitter2</cstring>              <sizepolicy>
98                  </property>               <hsizetype>7</hsizetype>
99                  <property name="orientation">               <vsizetype>5</vsizetype>
100                      <enum>Vertical</enum>               <horstretch>0</horstretch>
101                  </property>               <verstretch>0</verstretch>
102                  <widget class="QLayoutWidget">              </sizepolicy>
103                      <property name="name">             </property>
104                          <cstring>layout2</cstring>             <property name="font" >
105                      </property>              <font>
106                      <grid>               <weight>75</weight>
107                          <property name="name">               <bold>true</bold>
108                              <cstring>unnamed</cstring>              </font>
109                          </property>             </property>
110                          <widget class="QLabel" row="0" column="0">             <property name="toolTip" >
111                              <property name="name">              <string>Device name</string>
112                                  <cstring>DeviceNameTextLabel</cstring>             </property>
113                              </property>             <property name="wordWrap" >
114                              <property name="sizePolicy">              <bool>false</bool>
115                                  <sizepolicy>             </property>
116                                      <hsizetype>7</hsizetype>             <property name="indent" >
117                                      <vsizetype>5</vsizetype>              <number>4</number>
118                                      <horstretch>0</horstretch>             </property>
119                                      <verstretch>0</verstretch>            </widget>
120                                  </sizepolicy>           </item>
121                              </property>           <item>
122                              <property name="font">            <widget class="QLabel" name="DriverNameTextLabel" >
123                                  <font>             <property name="text" >
124                                      <bold>1</bold>              <string>Dri&amp;ver:</string>
125                                  </font>             </property>
126                              </property>             <property name="alignment" >
127                              <property name="indent">              <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
128                                  <number>4</number>             </property>
129                              </property>             <property name="wordWrap" >
130                              <property name="toolTip" stdset="0">              <bool>false</bool>
131                                  <string>Device name</string>             </property>
132                              </property>             <property name="buddy" >
133                          </widget>              <cstring>DriverNameComboBox</cstring>
134                          <widget class="QLabel" row="0" column="1">             </property>
135                              <property name="name">            </widget>
136                                  <cstring>DriverNameTextLabel</cstring>           </item>
137                              </property>           <item>
138                              <property name="text">            <widget class="QComboBox" name="DriverNameComboBox" >
139                                  <string>Dri&amp;ver:</string>             <property name="toolTip" >
140                              </property>              <string>Driver type name</string>
141                              <property name="alignment">             </property>
142                                  <set>AlignVCenter|AlignRight</set>            </widget>
143                              </property>           </item>
144                              <property name="buddy" stdset="0">          </layout>
145                                  <cstring>DriverNameComboBox</cstring>         </item>
146                              </property>         <item>
147                          </widget>          <widget class="QTableView" name="DeviceParamTable" />
148                          <widget class="qsamplerDeviceParamTable" row="1" column="0" rowspan="1" colspan="3">         </item>
149                              <property name="name">         <item>
150                                  <cstring>DeviceParamTable</cstring>          <layout class="QHBoxLayout" >
151                              </property>           <property name="margin" >
152                              <property name="sizePolicy">            <number>0</number>
153                                  <sizepolicy>           </property>
154                                      <hsizetype>7</hsizetype>           <property name="spacing" >
155                                      <vsizetype>7</vsizetype>            <number>6</number>
156                                      <horstretch>0</horstretch>           </property>
157                                      <verstretch>0</verstretch>           <item>
158                                  </sizepolicy>            <spacer>
159                              </property>             <property name="orientation" >
160                              <property name="minimumSize">              <enum>Qt::Horizontal</enum>
161                                  <size>             </property>
162                                      <width>380</width>             <property name="sizeHint" >
163                                      <height>160</height>              <size>
164                                  </size>               <width>40</width>
165                              </property>               <height>20</height>
166                              <property name="focusPolicy">              </size>
167                                  <enum>StrongFocus</enum>             </property>
168                              </property>            </spacer>
169                              <property name="toolTip" stdset="0">           </item>
170                                  <string>Device parameters</string>           <item>
171                              </property>            <widget class="QLabel" name="DevicePortTextLabel" >
172                          </widget>             <property name="text" >
173                          <widget class="QComboBox" row="0" column="2">              <string>Channel:</string>
174                              <property name="name">             </property>
175                                  <cstring>DriverNameComboBox</cstring>             <property name="alignment" >
176                              </property>              <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
177                              <property name="toolTip" stdset="0">             </property>
178                                  <string>Driver type name</string>             <property name="wordWrap" >
179                              </property>              <bool>false</bool>
180                          </widget>             </property>
181                      </grid>             <property name="buddy" >
182                  </widget>              <cstring>DevicePortComboBox</cstring>
183                  <widget class="QLayoutWidget">             </property>
184                      <property name="name">            </widget>
185                          <cstring>layout3</cstring>           </item>
186                      </property>           <item>
187                      <grid>            <widget class="QComboBox" name="DevicePortComboBox" >
188                          <property name="name">             <property name="sizePolicy" >
189                              <cstring>unnamed</cstring>              <sizepolicy>
190                          </property>               <hsizetype>7</hsizetype>
191                          <widget class="qsamplerDeviceParamTable" row="1" column="0" rowspan="1" colspan="2">               <vsizetype>0</vsizetype>
192                              <property name="name">               <horstretch>0</horstretch>
193                                  <cstring>DevicePortParamTable</cstring>               <verstretch>0</verstretch>
194                              </property>              </sizepolicy>
195                              <property name="sizePolicy">             </property>
196                                  <sizepolicy>             <property name="toolTip" >
197                                      <hsizetype>7</hsizetype>              <string>Device port/channel</string>
198                                      <vsizetype>7</vsizetype>             </property>
199                                      <horstretch>0</horstretch>            </widget>
200                                      <verstretch>0</verstretch>           </item>
201                                  </sizepolicy>          </layout>
202                              </property>         </item>
203                              <property name="minimumSize">         <item>
204                                  <size>          <widget class="QTableView" name="DevicePortParamTable" />
205                                      <width>380</width>         </item>
206                                      <height>80</height>        </layout>
207                                  </size>       </item>
208                              </property>      </layout>
209                              <property name="focusPolicy">     </item>
210                                  <enum>StrongFocus</enum>     <item>
211                              </property>      <layout class="QHBoxLayout" >
212                              <property name="toolTip" stdset="0">       <property name="margin" >
213                                  <string>Device port/channel parameters</string>        <number>0</number>
214                              </property>       </property>
215                          </widget>       <property name="spacing" >
216                          <widget class="QLabel" row="0" column="0">        <number>4</number>
217                              <property name="name">       </property>
218                                  <cstring>DevicePortTextLabel</cstring>       <item>
219                              </property>        <widget class="QPushButton" name="RefreshDevicesPushButton" >
220                              <property name="text">         <property name="toolTip" >
221                                  <string>Channel:</string>          <string>Refresh device list view</string>
222                              </property>         </property>
223                              <property name="alignment">         <property name="text" >
224                                  <set>AlignVCenter|AlignRight</set>          <string>&amp;Refresh</string>
225                              </property>         </property>
226                              <property name="buddy" stdset="0">         <property name="icon" >
227                                  <cstring>DevicePortComboBox</cstring>          <iconset resource="../icons/qsampler.qrc" >:/icons/formRefresh.png</iconset>
228                              </property>         </property>
229                          </widget>         <property name="shortcut" >
230                          <widget class="QComboBox" row="0" column="1">          <string>Alt+R</string>
231                              <property name="name">         </property>
232                                  <cstring>DevicePortComboBox</cstring>        </widget>
233                              </property>       </item>
234                              <property name="sizePolicy">       <item>
235                                  <sizepolicy>        <spacer>
236                                      <hsizetype>7</hsizetype>         <property name="orientation" >
237                                      <vsizetype>0</vsizetype>          <enum>Qt::Horizontal</enum>
238                                      <horstretch>0</horstretch>         </property>
239                                      <verstretch>0</verstretch>         <property name="sizeType" >
240                                  </sizepolicy>          <enum>QSizePolicy::Expanding</enum>
241                              </property>         </property>
242                              <property name="toolTip" stdset="0">         <property name="sizeHint" >
243                                  <string>Device port/channel</string>          <size>
244                              </property>           <width>180</width>
245                          </widget>           <height>20</height>
246                      </grid>          </size>
247                  </widget>         </property>
248              </widget>        </spacer>
249          </widget>       </item>
250          <widget class="QLayoutWidget">       <item>
251              <property name="name">        <widget class="QPushButton" name="CreateDevicePushButton" >
252                  <cstring>layout1</cstring>         <property name="toolTip" >
253              </property>          <string>Create device</string>
254              <hbox>         </property>
255                  <property name="name">         <property name="text" >
256                      <cstring>unnamed</cstring>          <string>&amp;Create</string>
257                  </property>         </property>
258                  <widget class="QPushButton">         <property name="icon" >
259                      <property name="name">          <iconset resource="../icons/qsampler.qrc" >:/icons/deviceCreate.png</iconset>
260                          <cstring>RefreshDevicesPushButton</cstring>         </property>
261                      </property>         <property name="shortcut" >
262                      <property name="text">          <string>Alt+C</string>
263                          <string>&amp;Refresh</string>         </property>
264                      </property>        </widget>
265                      <property name="accel">       </item>
266                          <string>Alt+R</string>       <item>
267                      </property>        <widget class="QPushButton" name="DeleteDevicePushButton" >
268                      <property name="iconSet">         <property name="toolTip" >
269                          <iconset>formRefresh.png</iconset>          <string>Delete device</string>
270                      </property>         </property>
271                      <property name="toolTip" stdset="0">         <property name="text" >
272                          <string>Refresh device list view</string>          <string>&amp;Delete</string>
273                      </property>         </property>
274                  </widget>         <property name="icon" >
275                  <spacer>          <iconset resource="../icons/qsampler.qrc" >:/icons/deviceDelete.png</iconset>
276                      <property name="name">         </property>
277                          <cstring>spacer1</cstring>         <property name="shortcut" >
278                      </property>          <string>Alt+D</string>
279                      <property name="orientation">         </property>
280                          <enum>Horizontal</enum>        </widget>
281                      </property>       </item>
282                      <property name="sizeType">       <item>
283                          <enum>Expanding</enum>        <widget class="QPushButton" name="ClosePushButton" >
284                      </property>         <property name="toolTip" >
285                      <property name="sizeHint">          <string>Close this dialog</string>
286                          <size>         </property>
287                              <width>180</width>         <property name="text" >
288                              <height>20</height>          <string>Close</string>
289                          </size>         </property>
290                      </property>         <property name="icon" >
291                  </spacer>          <iconset resource="../icons/qsampler.qrc" >:/icons/formReject.png</iconset>
292                  <widget class="QPushButton">         </property>
293                      <property name="name">         <property name="shortcut" >
294                          <cstring>CreateDevicePushButton</cstring>          <string/>
295                      </property>         </property>
296                      <property name="text">        </widget>
297                          <string>&amp;Create</string>       </item>
298                      </property>      </layout>
299                      <property name="accel">     </item>
300                          <string>Alt+C</string>    </layout>
301                      </property>   </widget>
302                      <property name="iconSet">   <layoutdefault spacing="4" margin="4" />
303                          <iconset>deviceCreate.png</iconset>   <tabstops>
304                      </property>    <tabstop>DeviceListView</tabstop>
305                      <property name="toolTip" stdset="0">    <tabstop>RefreshDevicesPushButton</tabstop>
306                          <string>Create device</string>    <tabstop>DriverNameComboBox</tabstop>
307                      </property>    <tabstop>DevicePortComboBox</tabstop>
308                  </widget>    <tabstop>CreateDevicePushButton</tabstop>
309                  <widget class="QPushButton">    <tabstop>DeleteDevicePushButton</tabstop>
310                      <property name="name">    <tabstop>ClosePushButton</tabstop>
311                          <cstring>DeleteDevicePushButton</cstring>   </tabstops>
312                      </property>   <resources>
313                      <property name="text">    <include location="../icons/qsampler.qrc" />
314                          <string>&amp;Delete</string>   </resources>
315                      </property>  </ui>
                     <property name="accel">  
                         <string>Alt+D</string>  
                     </property>  
                     <property name="iconSet">  
                         <iconset>deviceDelete.png</iconset>  
                     </property>  
                     <property name="toolTip" stdset="0">  
                         <string>Delete device</string>  
                     </property>  
                 </widget>  
                 <widget class="QPushButton">  
                     <property name="name">  
                         <cstring>ClosePushButton</cstring>  
                     </property>  
                     <property name="text">  
                         <string>Close</string>  
                     </property>  
                     <property name="accel">  
                         <string></string>  
                     </property>  
                     <property name="iconSet">  
                         <iconset>formReject.png</iconset>  
                     </property>  
                     <property name="toolTip" stdset="0">  
                         <string>Close this dialog</string>  
                     </property>  
                 </widget>  
             </hbox>  
         </widget>  
     </vbox>  
 </widget>  
 <customwidgets>  
     <customwidget>  
         <class>qsamplerDeviceParamTable</class>  
         <header location="global">qsamplerDevice.h</header>  
         <sizehint>  
             <width>-1</width>  
             <height>-1</height>  
         </sizehint>  
         <container>0</container>  
         <sizepolicy>  
             <hordata>7</hordata>  
             <verdata>7</verdata>  
             <horstretch>0</horstretch>  
             <verstretch>0</verstretch>  
         </sizepolicy>  
     </customwidget>  
 </customwidgets>  
 <connections>  
     <connection>  
         <sender>DeviceListView</sender>  
         <signal>selectionChanged()</signal>  
         <receiver>qsamplerDeviceForm</receiver>  
         <slot>selectDevice()</slot>  
     </connection>  
     <connection>  
         <sender>DeviceListView</sender>  
         <signal>contextMenuRequested(QListViewItem*,const QPoint&amp;,int)</signal>  
         <receiver>qsamplerDeviceForm</receiver>  
         <slot>contextMenu(QListViewItem*,const QPoint&amp;,int)</slot>  
     </connection>  
     <connection>  
         <sender>RefreshDevicesPushButton</sender>  
         <signal>clicked()</signal>  
         <receiver>qsamplerDeviceForm</receiver>  
         <slot>refreshDevices()</slot>  
     </connection>  
     <connection>  
         <sender>DriverNameComboBox</sender>  
         <signal>activated(const QString&amp;)</signal>  
         <receiver>qsamplerDeviceForm</receiver>  
         <slot>selectDriver(const QString&amp;)</slot>  
     </connection>  
     <connection>  
         <sender>DevicePortComboBox</sender>  
         <signal>activated(int)</signal>  
         <receiver>qsamplerDeviceForm</receiver>  
         <slot>selectDevicePort(int)</slot>  
     </connection>  
     <connection>  
         <sender>CreateDevicePushButton</sender>  
         <signal>clicked()</signal>  
         <receiver>qsamplerDeviceForm</receiver>  
         <slot>createDevice()</slot>  
     </connection>  
     <connection>  
         <sender>DeleteDevicePushButton</sender>  
         <signal>clicked()</signal>  
         <receiver>qsamplerDeviceForm</receiver>  
         <slot>deleteDevice()</slot>  
     </connection>  
     <connection>  
         <sender>ClosePushButton</sender>  
         <signal>clicked()</signal>  
         <receiver>qsamplerDeviceForm</receiver>  
         <slot>close()</slot>  
     </connection>  
 </connections>  
 <tabstops>  
     <tabstop>DeviceListView</tabstop>  
     <tabstop>RefreshDevicesPushButton</tabstop>  
     <tabstop>DriverNameComboBox</tabstop>  
     <tabstop>DeviceParamTable</tabstop>  
     <tabstop>DevicePortComboBox</tabstop>  
     <tabstop>DevicePortParamTable</tabstop>  
     <tabstop>CreateDevicePushButton</tabstop>  
     <tabstop>DeleteDevicePushButton</tabstop>  
     <tabstop>ClosePushButton</tabstop>  
 </tabstops>  
 <includes>  
     <include location="local" impldecl="in declaration">qsamplerDevice.h</include>  
     <include location="local" impldecl="in implementation">qsamplerDeviceForm.ui.h</include>  
 </includes>  
 <forwards>  
     <forward>class qsamplerMainForm;</forward>  
 </forwards>  
 <variables>  
     <variable access="private">qsamplerMainForm *m_pMainForm;</variable>  
     <variable access="private">lscp_client_t *m_pClient;</variable>  
     <variable access="private">int m_iDirtySetup;</variable>  
     <variable access="private">int m_iDirtyCount;</variable>  
     <variable access="private">bool m_bNewDevice;</variable>  
     <variable access="private">qsamplerDevice::qsamplerDeviceType m_deviceType;</variable>  
     <variable access="private">qsamplerDevice::qsamplerDeviceType m_deviceTypeMode;</variable>  
     <variable access="private">qsamplerDeviceItem *m_pAudioItems;</variable>  
     <variable access="private">qsamplerDeviceItem *m_pMidiItems;</variable>  
 </variables>  
 <signals>  
     <signal>devicesChanged()</signal>  
 </signals>  
 <slots>  
     <slot specifier="non virtual">createDevice()</slot>  
     <slot specifier="non virtual">deleteDevice()</slot>  
     <slot specifier="non virtual">refreshDevices()</slot>  
     <slot specifier="non virtual">selectDriver( const QString &amp; sDriverName )</slot>  
     <slot specifier="non virtual">selectDevice()</slot>  
     <slot specifier="non virtual">selectDevicePort( int iPort )</slot>  
     <slot specifier="non virtual">changeDeviceParam( int iRow, int iCol )</slot>  
     <slot specifier="non virtual">changeDevicePortParam( int iRow, int iCol )</slot>  
     <slot specifier="non virtual">contextMenu(QListViewItem *, const QPoint&amp;, int)</slot>  
     <slot specifier="non virtual">stabilizeForm()</slot>  
 </slots>  
 <functions>  
     <function access="private" specifier="non virtual">init()</function>  
     <function access="private" specifier="non virtual">destroy()</function>  
     <function access="private" specifier="non virtual">showEvent( QShowEvent * pShowEvent )</function>  
     <function access="private" specifier="non virtual">hideEvent( QHideEvent * pHideEvent )</function>  
     <function specifier="non virtual">setMainForm( qsamplerMainForm *pMainForm )</function>  
     <function specifier="non virtual">setDeviceTypeMode( qsamplerDevice::qsamplerDeviceType deviceType )</function>  
     <function specifier="non virtual">setClient( lscp_client_t *pClient )</function>  
     <function specifier="non virtual">setDriverName( const QString &amp; sDriverName )</function>  
     <function specifier="non virtual">setDevice( qsamplerDevice *pDevice )</function>  
 </functions>  
 <pixmapinproject/>  
 <layoutdefaults spacing="4" margin="4"/>  
 </UI>  

Legend:
Removed from v.920  
changed lines
  Added in v.1473

  ViewVC Help
Powered by ViewVC