/[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 961 by capela, Sun Dec 3 18:26:13 2006 UTC revision 1505 by capela, Wed Nov 21 18:37:40 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">      <widget class="QSplitter" name="splitter" >
59                  <cstring>splitter1</cstring>       <property name="orientation" >
60              </property>        <enum>Qt::Horizontal</enum>
61              <property name="orientation">       </property>
62                  <enum>Horizontal</enum>       <property name="handleWidth" >
63              </property>        <number>4</number>
64              <widget class="QListView">       </property>
65                  <column>       <widget class="QTreeWidget" name="DeviceListView" >
66                      <property name="text">        <property name="minimumSize" >
67                          <string>Devices</string>         <size>
68                      </property>          <width>120</width>
69                      <property name="clickable">          <height>0</height>
70                          <bool>true</bool>         </size>
71                      </property>        </property>
72                      <property name="resizable">        <property name="toolTip" >
73                          <bool>true</bool>         <string>Device list</string>
74                      </property>        </property>
75                  </column>        <property name="rootIsDecorated" >
76                  <property name="name">         <bool>false</bool>
77                      <cstring>DeviceListView</cstring>        </property>
78                  </property>        <property name="uniformRowHeights" >
79                  <property name="minimumSize">         <bool>true</bool>
80                      <size>        </property>
81                          <width>160</width>        <column>
82                          <height>0</height>         <property name="text" >
83                      </size>          <string>Devices</string>
84                  </property>         </property>
85                  <property name="rootIsDecorated">        </column>
86                      <bool>true</bool>       </widget>
87                  </property>       <widget class="QWidget" name="DeviceLayout" >
88                  <property name="resizeMode">        <layout class="QVBoxLayout" >
89                      <enum>LastColumn</enum>         <property name="margin" >
90                  </property>          <number>0</number>
91                  <property name="toolTip" stdset="0">         </property>
92                      <string>Device list</string>         <property name="spacing" >
93                  </property>          <number>6</number>
94              </widget>         </property>
95              <widget class="QSplitter">         <item>
96                  <property name="name">          <layout class="QHBoxLayout" >
97                      <cstring>splitter2</cstring>           <property name="margin" >
98                  </property>            <number>0</number>
99                  <property name="orientation">           </property>
100                      <enum>Vertical</enum>           <property name="spacing" >
101                  </property>            <number>6</number>
102                  <widget class="QLayoutWidget">           </property>
103                      <property name="name">           <item>
104                          <cstring>layout2</cstring>            <widget class="QLabel" name="DeviceNameTextLabel" >
105                      </property>             <property name="sizePolicy" >
106                      <grid>              <sizepolicy>
107                          <property name="name">               <hsizetype>7</hsizetype>
108                              <cstring>unnamed</cstring>               <vsizetype>5</vsizetype>
109                          </property>               <horstretch>0</horstretch>
110                          <widget class="QLabel" row="0" column="0">               <verstretch>0</verstretch>
111                              <property name="name">              </sizepolicy>
112                                  <cstring>DeviceNameTextLabel</cstring>             </property>
113                              </property>             <property name="font" >
114                              <property name="sizePolicy">              <font>
115                                  <sizepolicy>               <weight>75</weight>
116                                      <hsizetype>7</hsizetype>               <bold>true</bold>
117                                      <vsizetype>5</vsizetype>              </font>
118                                      <horstretch>0</horstretch>             </property>
119                                      <verstretch>0</verstretch>             <property name="toolTip" >
120                                  </sizepolicy>              <string>Device name</string>
121                              </property>             </property>
122                              <property name="font">             <property name="wordWrap" >
123                                  <font>              <bool>false</bool>
124                                      <bold>1</bold>             </property>
125                                  </font>             <property name="indent" >
126                              </property>              <number>4</number>
127                              <property name="indent">             </property>
128                                  <number>4</number>            </widget>
129                              </property>           </item>
130                              <property name="toolTip" stdset="0">           <item>
131                                  <string>Device name</string>            <widget class="QLabel" name="DriverNameTextLabel" >
132                              </property>             <property name="text" >
133                          </widget>              <string>Dri&amp;ver:</string>
134                          <widget class="QLabel" row="0" column="1">             </property>
135                              <property name="name">             <property name="alignment" >
136                                  <cstring>DriverNameTextLabel</cstring>              <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
137                              </property>             </property>
138                              <property name="text">             <property name="wordWrap" >
139                                  <string>Dri&amp;ver:</string>              <bool>false</bool>
140                              </property>             </property>
141                              <property name="alignment">             <property name="buddy" >
142                                  <set>AlignVCenter|AlignRight</set>              <cstring>DriverNameComboBox</cstring>
143                              </property>             </property>
144                              <property name="buddy" stdset="0">            </widget>
145                                  <cstring>DriverNameComboBox</cstring>           </item>
146                              </property>           <item>
147                          </widget>            <widget class="QComboBox" name="DriverNameComboBox" >
148                          <widget class="qsamplerDeviceParamTable" row="1" column="0" rowspan="1" colspan="3">             <property name="toolTip" >
149                              <property name="name">              <string>Driver type name</string>
150                                  <cstring>DeviceParamTable</cstring>             </property>
151                              </property>            </widget>
152                              <property name="sizePolicy">           </item>
153                                  <sizepolicy>          </layout>
154                                      <hsizetype>7</hsizetype>         </item>
155                                      <vsizetype>7</vsizetype>         <item>
156                                      <horstretch>0</horstretch>          <widget class="QTableView" name="DeviceParamTable" >
157                                      <verstretch>0</verstretch>           <property name="alternatingRowColors" >
158                                  </sizepolicy>            <bool>true</bool>
159                              </property>           </property>
160                              <property name="minimumSize">           <property name="showGrid" >
161                                  <size>            <bool>false</bool>
162                                      <width>380</width>           </property>
                                     <height>160</height>  
                                 </size>  
                             </property>  
                             <property name="focusPolicy">  
                                 <enum>StrongFocus</enum>  
                             </property>  
                             <property name="toolTip" stdset="0">  
                                 <string>Device parameters</string>  
                             </property>  
                         </widget>  
                         <widget class="QComboBox" row="0" column="2">  
                             <property name="name">  
                                 <cstring>DriverNameComboBox</cstring>  
                             </property>  
                             <property name="toolTip" stdset="0">  
                                 <string>Driver type name</string>  
                             </property>  
                         </widget>  
                     </grid>  
                 </widget>  
                 <widget class="QLayoutWidget">  
                     <property name="name">  
                         <cstring>layout3</cstring>  
                     </property>  
                     <grid>  
                         <property name="name">  
                             <cstring>unnamed</cstring>  
                         </property>  
                         <widget class="qsamplerDeviceParamTable" row="1" column="0" rowspan="1" colspan="2">  
                             <property name="name">  
                                 <cstring>DevicePortParamTable</cstring>  
                             </property>  
                             <property name="sizePolicy">  
                                 <sizepolicy>  
                                     <hsizetype>7</hsizetype>  
                                     <vsizetype>7</vsizetype>  
                                     <horstretch>0</horstretch>  
                                     <verstretch>0</verstretch>  
                                 </sizepolicy>  
                             </property>  
                             <property name="minimumSize">  
                                 <size>  
                                     <width>380</width>  
                                     <height>80</height>  
                                 </size>  
                             </property>  
                             <property name="focusPolicy">  
                                 <enum>StrongFocus</enum>  
                             </property>  
                             <property name="toolTip" stdset="0">  
                                 <string>Device port/channel parameters</string>  
                             </property>  
                         </widget>  
                         <widget class="QLabel" row="0" column="0">  
                             <property name="name">  
                                 <cstring>DevicePortTextLabel</cstring>  
                             </property>  
                             <property name="text">  
                                 <string>Channel:</string>  
                             </property>  
                             <property name="alignment">  
                                 <set>AlignVCenter|AlignRight</set>  
                             </property>  
                             <property name="buddy" stdset="0">  
                                 <cstring>DevicePortComboBox</cstring>  
                             </property>  
                         </widget>  
                         <widget class="QComboBox" row="0" column="1">  
                             <property name="name">  
                                 <cstring>DevicePortComboBox</cstring>  
                             </property>  
                             <property name="sizePolicy">  
                                 <sizepolicy>  
                                     <hsizetype>7</hsizetype>  
                                     <vsizetype>0</vsizetype>  
                                     <horstretch>0</horstretch>  
                                     <verstretch>0</verstretch>  
                                 </sizepolicy>  
                             </property>  
                             <property name="toolTip" stdset="0">  
                                 <string>Device port/channel</string>  
                             </property>  
                         </widget>  
                     </grid>  
                 </widget>  
             </widget>  
163          </widget>          </widget>
164          <widget class="QLayoutWidget">         </item>
165              <property name="name">         <item>
166                  <cstring>layout1</cstring>          <layout class="QHBoxLayout" >
167              </property>           <property name="margin" >
168              <hbox>            <number>0</number>
169                  <property name="name">           </property>
170                      <cstring>unnamed</cstring>           <property name="spacing" >
171                  </property>            <number>6</number>
172                  <widget class="QPushButton">           </property>
173                      <property name="name">           <item>
174                          <cstring>RefreshDevicesPushButton</cstring>            <spacer>
175                      </property>             <property name="orientation" >
176                      <property name="text">              <enum>Qt::Horizontal</enum>
177                          <string>&amp;Refresh</string>             </property>
178                      </property>             <property name="sizeHint" >
179                      <property name="accel">              <size>
180                          <string>Alt+R</string>               <width>40</width>
181                      </property>               <height>20</height>
182                      <property name="iconSet">              </size>
183                          <iconset>formRefresh.png</iconset>             </property>
184                      </property>            </spacer>
185                      <property name="toolTip" stdset="0">           </item>
186                          <string>Refresh device list view</string>           <item>
187                      </property>            <widget class="QLabel" name="DevicePortTextLabel" >
188                  </widget>             <property name="text" >
189                  <spacer>              <string>Channel:</string>
190                      <property name="name">             </property>
191                          <cstring>spacer1</cstring>             <property name="alignment" >
192                      </property>              <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
193                      <property name="orientation">             </property>
194                          <enum>Horizontal</enum>             <property name="wordWrap" >
195                      </property>              <bool>false</bool>
196                      <property name="sizeType">             </property>
197                          <enum>Expanding</enum>             <property name="buddy" >
198                      </property>              <cstring>DevicePortComboBox</cstring>
199                      <property name="sizeHint">             </property>
200                          <size>            </widget>
201                              <width>180</width>           </item>
202                              <height>20</height>           <item>
203                          </size>            <widget class="QComboBox" name="DevicePortComboBox" >
204                      </property>             <property name="sizePolicy" >
205                  </spacer>              <sizepolicy>
206                  <widget class="QPushButton">               <hsizetype>7</hsizetype>
207                      <property name="name">               <vsizetype>0</vsizetype>
208                          <cstring>CreateDevicePushButton</cstring>               <horstretch>0</horstretch>
209                      </property>               <verstretch>0</verstretch>
210                      <property name="text">              </sizepolicy>
211                          <string>&amp;Create</string>             </property>
212                      </property>             <property name="toolTip" >
213                      <property name="accel">              <string>Device port/channel</string>
214                          <string>Alt+C</string>             </property>
215                      </property>            </widget>
216                      <property name="iconSet">           </item>
217                          <iconset>deviceCreate.png</iconset>          </layout>
218                      </property>         </item>
219                      <property name="toolTip" stdset="0">         <item>
220                          <string>Create device</string>          <widget class="QTableView" name="DevicePortParamTable" >
221                      </property>           <property name="alternatingRowColors" >
222                  </widget>            <bool>true</bool>
223                  <widget class="QPushButton">           </property>
224                      <property name="name">           <property name="showGrid" >
225                          <cstring>DeleteDevicePushButton</cstring>            <bool>false</bool>
226                      </property>           </property>
                     <property name="text">  
                         <string>&amp;Delete</string>  
                     </property>  
                     <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>  
227          </widget>          </widget>
228      </vbox>         </item>
229  </widget>        </layout>
230  <customwidgets>       </widget>
231      <customwidget>      </widget>
232          <class>qsamplerDeviceParamTable</class>     </item>
233          <header location="global">qsamplerDevice.h</header>     <item>
234          <sizehint>      <layout class="QHBoxLayout" >
235              <width>-1</width>       <property name="margin" >
236              <height>-1</height>        <number>0</number>
237          </sizehint>       </property>
238          <container>0</container>       <property name="spacing" >
239          <sizepolicy>        <number>4</number>
240              <hordata>7</hordata>       </property>
241              <verdata>7</verdata>       <item>
242              <horstretch>0</horstretch>        <widget class="QPushButton" name="RefreshDevicesPushButton" >
243              <verstretch>0</verstretch>         <property name="toolTip" >
244          </sizepolicy>          <string>Refresh device list view</string>
245      </customwidget>         </property>
246  </customwidgets>         <property name="text" >
247  <connections>          <string>&amp;Refresh</string>
248      <connection>         </property>
249          <sender>DeviceListView</sender>         <property name="icon" >
250          <signal>selectionChanged()</signal>          <iconset resource="../icons/qsampler.qrc" >:/icons/formRefresh.png</iconset>
251          <receiver>qsamplerDeviceForm</receiver>         </property>
252          <slot>selectDevice()</slot>         <property name="shortcut" >
253      </connection>          <string>Alt+R</string>
254      <connection>         </property>
255          <sender>DeviceListView</sender>        </widget>
256          <signal>contextMenuRequested(QListViewItem*,const QPoint&amp;,int)</signal>       </item>
257          <receiver>qsamplerDeviceForm</receiver>       <item>
258          <slot>contextMenu(QListViewItem*,const QPoint&amp;,int)</slot>        <spacer>
259      </connection>         <property name="orientation" >
260      <connection>          <enum>Qt::Horizontal</enum>
261          <sender>RefreshDevicesPushButton</sender>         </property>
262          <signal>clicked()</signal>         <property name="sizeType" >
263          <receiver>qsamplerDeviceForm</receiver>          <enum>QSizePolicy::Expanding</enum>
264          <slot>refreshDevices()</slot>         </property>
265      </connection>         <property name="sizeHint" >
266      <connection>          <size>
267          <sender>DriverNameComboBox</sender>           <width>180</width>
268          <signal>activated(const QString&amp;)</signal>           <height>20</height>
269          <receiver>qsamplerDeviceForm</receiver>          </size>
270          <slot>selectDriver(const QString&amp;)</slot>         </property>
271      </connection>        </spacer>
272      <connection>       </item>
273          <sender>DevicePortComboBox</sender>       <item>
274          <signal>activated(int)</signal>        <widget class="QPushButton" name="CreateDevicePushButton" >
275          <receiver>qsamplerDeviceForm</receiver>         <property name="toolTip" >
276          <slot>selectDevicePort(int)</slot>          <string>Create device</string>
277      </connection>         </property>
278      <connection>         <property name="text" >
279          <sender>CreateDevicePushButton</sender>          <string>&amp;Create</string>
280          <signal>clicked()</signal>         </property>
281          <receiver>qsamplerDeviceForm</receiver>         <property name="icon" >
282          <slot>createDevice()</slot>          <iconset resource="../icons/qsampler.qrc" >:/icons/deviceCreate.png</iconset>
283      </connection>         </property>
284      <connection>         <property name="shortcut" >
285          <sender>DeleteDevicePushButton</sender>          <string>Alt+C</string>
286          <signal>clicked()</signal>         </property>
287          <receiver>qsamplerDeviceForm</receiver>        </widget>
288          <slot>deleteDevice()</slot>       </item>
289      </connection>       <item>
290      <connection>        <widget class="QPushButton" name="DeleteDevicePushButton" >
291          <sender>ClosePushButton</sender>         <property name="toolTip" >
292          <signal>clicked()</signal>          <string>Delete device</string>
293          <receiver>qsamplerDeviceForm</receiver>         </property>
294          <slot>close()</slot>         <property name="text" >
295      </connection>          <string>&amp;Delete</string>
296  </connections>         </property>
297  <tabstops>         <property name="icon" >
298      <tabstop>DeviceListView</tabstop>          <iconset resource="../icons/qsampler.qrc" >:/icons/deviceDelete.png</iconset>
299      <tabstop>RefreshDevicesPushButton</tabstop>         </property>
300      <tabstop>DriverNameComboBox</tabstop>         <property name="shortcut" >
301      <tabstop>DeviceParamTable</tabstop>          <string>Alt+D</string>
302      <tabstop>DevicePortComboBox</tabstop>         </property>
303      <tabstop>DevicePortParamTable</tabstop>        </widget>
304      <tabstop>CreateDevicePushButton</tabstop>       </item>
305      <tabstop>DeleteDevicePushButton</tabstop>       <item>
306      <tabstop>ClosePushButton</tabstop>        <widget class="QPushButton" name="ClosePushButton" >
307  </tabstops>         <property name="toolTip" >
308  <includes>          <string>Close this dialog</string>
309      <include location="local" impldecl="in declaration">qsamplerDevice.h</include>         </property>
310      <include location="local" impldecl="in implementation">qsamplerDeviceForm.ui.h</include>         <property name="text" >
311  </includes>          <string>Close</string>
312  <forwards>         </property>
313      <forward>class qsamplerMainForm;</forward>         <property name="icon" >
314  </forwards>          <iconset resource="../icons/qsampler.qrc" >:/icons/formReject.png</iconset>
315  <variables>         </property>
316      <variable access="private">qsamplerMainForm *m_pMainForm;</variable>         <property name="shortcut" >
317      <variable access="private">lscp_client_t *m_pClient;</variable>          <string/>
318      <variable access="private">int m_iDirtySetup;</variable>         </property>
319      <variable access="private">int m_iDirtyCount;</variable>        </widget>
320      <variable access="private">bool m_bNewDevice;</variable>       </item>
321      <variable access="private">qsamplerDevice::qsamplerDeviceType m_deviceType;</variable>      </layout>
322      <variable access="private">qsamplerDevice::qsamplerDeviceType m_deviceTypeMode;</variable>     </item>
323      <variable access="private">qsamplerDeviceItem *m_pAudioItems;</variable>    </layout>
324      <variable access="private">qsamplerDeviceItem *m_pMidiItems;</variable>   </widget>
325  </variables>   <layoutdefault spacing="4" margin="4" />
326  <signals>   <tabstops>
327      <signal>devicesChanged()</signal>    <tabstop>DeviceListView</tabstop>
328  </signals>    <tabstop>RefreshDevicesPushButton</tabstop>
329  <slots>    <tabstop>DriverNameComboBox</tabstop>
330      <slot specifier="non virtual">createDevice()</slot>    <tabstop>DevicePortComboBox</tabstop>
331      <slot specifier="non virtual">deleteDevice()</slot>    <tabstop>CreateDevicePushButton</tabstop>
332      <slot specifier="non virtual">refreshDevices()</slot>    <tabstop>DeleteDevicePushButton</tabstop>
333      <slot specifier="non virtual">selectDriver( const QString &amp; sDriverName )</slot>    <tabstop>ClosePushButton</tabstop>
334      <slot specifier="non virtual">selectDevice()</slot>   </tabstops>
335      <slot specifier="non virtual">selectDevicePort( int iPort )</slot>   <resources>
336      <slot specifier="non virtual">changeDeviceParam( int iRow, int iCol )</slot>    <include location="../icons/qsampler.qrc" />
337      <slot specifier="non virtual">changeDevicePortParam( int iRow, int iCol )</slot>   </resources>
338      <slot specifier="non virtual">contextMenu(QListViewItem *, const QPoint&amp;, int)</slot>  </ui>
     <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">setDeviceTypeMode( qsamplerDevice::qsamplerDeviceType deviceType )</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.961  
changed lines
  Added in v.1505

  ViewVC Help
Powered by ViewVC