/[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 429 by capela, Tue Mar 8 14:56:05 2005 UTC revision 452 by capela, Sun Mar 13 22:06:59 2005 UTC
# Line 2  Line 2 
2  <class>qsamplerDeviceForm</class>  <class>qsamplerDeviceForm</class>
3  <comment>qsampler - A LinuxSampler Qt GUI Interface.  <comment>qsampler - A LinuxSampler Qt GUI Interface.
4    
5     Copyright (C) 2004-2005, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2005, rncbc aka Rui Nuno Capela. All rights reserved.
6    
7     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
8     modify it under the terms of the GNU General Public License     modify it under the terms of the GNU General Public License
# Line 28  Line 28 
28          <rect>          <rect>
29              <x>0</x>              <x>0</x>
30              <y>0</y>              <y>0</y>
31              <width>607</width>              <width>544</width>
32              <height>323</height>              <height>343</height>
33          </rect>          </rect>
34      </property>      </property>
35      <property name="sizePolicy">      <property name="sizePolicy">
# Line 44  Line 44 
44          <string>Devices</string>          <string>Devices</string>
45      </property>      </property>
46      <property name="icon">      <property name="icon">
47          <pixmap>qsamplerChannel.png</pixmap>          <pixmap>qsamplerDevice.png</pixmap>
48      </property>      </property>
49      <property name="focusPolicy">      <property name="focusPolicy">
50          <enum>StrongFocus</enum>          <enum>StrongFocus</enum>
51      </property>      </property>
52      <hbox>      <vbox>
53          <property name="name">          <property name="name">
54              <cstring>unnamed</cstring>              <cstring>unnamed</cstring>
55          </property>          </property>
56          <widget class="QSplitter">          <widget class="QSplitter">
57              <property name="name">              <property name="name">
58                  <cstring>splitter4</cstring>                  <cstring>splitter3</cstring>
59              </property>              </property>
60              <property name="orientation">              <property name="orientation">
61                  <enum>Horizontal</enum>                  <enum>Horizontal</enum>
62              </property>              </property>
63              <widget class="QLayoutWidget">              <widget class="QListView">
64                    <column>
65                        <property name="text">
66                            <string>Devices</string>
67                        </property>
68                        <property name="clickable">
69                            <bool>true</bool>
70                        </property>
71                        <property name="resizable">
72                            <bool>true</bool>
73                        </property>
74                    </column>
75                  <property name="name">                  <property name="name">
76                      <cstring>layout1</cstring>                      <cstring>DeviceListView</cstring>
77                    </property>
78                    <property name="minimumSize">
79                        <size>
80                            <width>160</width>
81                            <height>0</height>
82                        </size>
83                    </property>
84                    <property name="rootIsDecorated">
85                        <bool>true</bool>
86                    </property>
87                    <property name="resizeMode">
88                        <enum>LastColumn</enum>
89                    </property>
90                    <property name="toolTip" stdset="0">
91                        <string>Device list</string>
92                  </property>                  </property>
                 <grid>  
                     <property name="name">  
                         <cstring>unnamed</cstring>  
                     </property>  
                     <widget class="QPushButton" row="1" column="1">  
                         <property name="name">  
                             <cstring>SaveDevicesPushButton</cstring>  
                         </property>  
                         <property name="minimumSize">  
                             <size>  
                                 <width>0</width>  
                                 <height>28</height>  
                             </size>  
                         </property>  
                         <property name="maximumSize">  
                             <size>  
                                 <width>32767</width>  
                                 <height>28</height>  
                             </size>  
                         </property>  
                         <property name="text">  
                             <string>&amp;Save...</string>  
                         </property>  
                         <property name="accel">  
                             <string>Alt+S</string>  
                         </property>  
                         <property name="iconSet">  
                             <iconset>fileSave.png</iconset>  
                         </property>  
                         <property name="toolTip" stdset="0">  
                             <string>Save device configuration to file</string>  
                         </property>  
                     </widget>  
                     <spacer row="1" column="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>24</width>  
                                 <height>16</height>  
                             </size>  
                         </property>  
                     </spacer>  
                     <widget class="QPushButton" row="1" column="0">  
                         <property name="name">  
                             <cstring>LoadDevicesPushButton</cstring>  
                         </property>  
                         <property name="minimumSize">  
                             <size>  
                                 <width>0</width>  
                                 <height>28</height>  
                             </size>  
                         </property>  
                         <property name="maximumSize">  
                             <size>  
                                 <width>32767</width>  
                                 <height>28</height>  
                             </size>  
                         </property>  
                         <property name="text">  
                             <string>&amp;Load...</string>  
                         </property>  
                         <property name="accel">  
                             <string>Alt+L</string>  
                         </property>  
                         <property name="iconSet">  
                             <iconset>fileOpen.png</iconset>  
                         </property>  
                         <property name="toolTip" stdset="0">  
                             <string>Load device configuration from file</string>  
                         </property>  
                     </widget>  
                     <widget class="QListView" row="0" column="0" rowspan="1" colspan="3">  
                         <column>  
                             <property name="text">  
                                 <string>Devices</string>  
                             </property>  
                             <property name="clickable">  
                                 <bool>true</bool>  
                             </property>  
                             <property name="resizable">  
                                 <bool>true</bool>  
                             </property>  
                         </column>  
                         <property name="name">  
                             <cstring>DeviceListView</cstring>  
                         </property>  
                         <property name="resizeMode">  
                             <enum>LastColumn</enum>  
                         </property>  
                         <property name="toolTip" stdset="0">  
                             <string>Device list view</string>  
                         </property>  
                     </widget>  
                 </grid>  
93              </widget>              </widget>
94              <widget class="QLayoutWidget">              <widget class="QLayoutWidget">
95                  <property name="name">                  <property name="name">
# Line 175  Line 99 
99                      <property name="name">                      <property name="name">
100                          <cstring>unnamed</cstring>                          <cstring>unnamed</cstring>
101                      </property>                      </property>
102                      <widget class="QPushButton" row="1" column="5">                      <widget class="QLabel" row="0" column="0">
103                          <property name="name">                          <property name="name">
104                              <cstring>ClosePushButton</cstring>                              <cstring>DeviceNameTextLabel</cstring>
                         </property>  
                         <property name="minimumSize">  
                             <size>  
                                 <width>0</width>  
                                 <height>28</height>  
                             </size>  
105                          </property>                          </property>
106                          <property name="maximumSize">                          <property name="sizePolicy">
107                              <size>                              <sizepolicy>
108                                  <width>32767</width>                                  <hsizetype>7</hsizetype>
109                                  <height>28</height>                                  <vsizetype>5</vsizetype>
110                              </size>                                  <horstretch>0</horstretch>
111                          </property>                                  <verstretch>0</verstretch>
112                          <property name="text">                              </sizepolicy>
                             <string>Close</string>  
                         </property>  
                         <property name="accel">  
                             <string></string>  
                         </property>  
                         <property name="toolTip" stdset="0">  
                             <string>Close this dialog</string>  
                         </property>  
                     </widget>  
                     <spacer row="1" column="4">  
                         <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>30</width>  
                                 <height>20</height>  
                             </size>  
                         </property>  
                     </spacer>  
                     <widget class="QPushButton" row="1" column="2">  
                         <property name="name">  
                             <cstring>UpdateDevicePushButton</cstring>  
                         </property>  
                         <property name="minimumSize">  
                             <size>  
                                 <width>0</width>  
                                 <height>28</height>  
                             </size>  
                         </property>  
                         <property name="maximumSize">  
                             <size>  
                                 <width>32767</width>  
                                 <height>28</height>  
                             </size>  
113                          </property>                          </property>
114                          <property name="text">                          <property name="font">
115                              <string>&amp;Update</string>                              <font>
116                                    <bold>1</bold>
117                                </font>
118                          </property>                          </property>
119                          <property name="accel">                          <property name="indent">
120                              <string>Alt+U</string>                              <number>4</number>
121                          </property>                          </property>
122                          <property name="toolTip" stdset="0">                          <property name="toolTip" stdset="0">
123                              <string>Update current device</string>                              <string>Device name</string>
124                          </property>                          </property>
125                      </widget>                      </widget>
126                      <spacer row="1" column="0">                      <widget class="qsamplerDeviceParamTable" row="1" column="0" rowspan="1" colspan="3">
                         <property name="name">  
                             <cstring>spacer2</cstring>  
                         </property>  
                         <property name="orientation">  
                             <enum>Horizontal</enum>  
                         </property>  
                         <property name="sizeType">  
                             <enum>Minimum</enum>  
                         </property>  
                         <property name="sizeHint">  
                             <size>  
                                 <width>4</width>  
                                 <height>20</height>  
                             </size>  
                         </property>  
                     </spacer>  
                     <widget class="qsamplerDeviceParamTable" row="0" column="0" rowspan="1" colspan="6">  
127                          <property name="name">                          <property name="name">
128                              <cstring>DeviceParamTable</cstring>                              <cstring>DeviceParamTable</cstring>
129                          </property>                          </property>
# Line 275  Line 137 
137                          </property>                          </property>
138                          <property name="minimumSize">                          <property name="minimumSize">
139                              <size>                              <size>
140                                  <width>0</width>                                  <width>360</width>
141                                  <height>260</height>                                  <height>260</height>
142                              </size>                              </size>
143                          </property>                          </property>
144                          <property name="focusPolicy">                          <property name="focusPolicy">
145                              <enum>StrongFocus</enum>                              <enum>StrongFocus</enum>
146                          </property>                          </property>
147                            <property name="toolTip" stdset="0">
148                                <string>Device parameters</string>
149                            </property>
150                      </widget>                      </widget>
151                      <widget class="QPushButton" row="1" column="1">                      <widget class="QComboBox" row="0" column="2">
152                          <property name="name">                          <property name="name">
153                              <cstring>CreateDevicePushButton</cstring>                              <cstring>DriverNameComboBox</cstring>
                         </property>  
                         <property name="minimumSize">  
                             <size>  
                                 <width>0</width>  
                                 <height>28</height>  
                             </size>  
                         </property>  
                         <property name="maximumSize">  
                             <size>  
                                 <width>32767</width>  
                                 <height>28</height>  
                             </size>  
                         </property>  
                         <property name="text">  
                             <string>&amp;Create</string>  
                         </property>  
                         <property name="accel">  
                             <string>Alt+C</string>  
154                          </property>                          </property>
155                          <property name="toolTip" stdset="0">                          <property name="toolTip" stdset="0">
156                              <string>Create current device</string>                              <string>Driver type name</string>
157                          </property>                          </property>
158                      </widget>                      </widget>
159                      <widget class="QPushButton" row="1" column="3">                      <widget class="QLabel" row="0" column="1">
160                          <property name="name">                          <property name="name">
161                              <cstring>DeleteDevicePushButton</cstring>                              <cstring>DriverNameTextLabel</cstring>
                         </property>  
                         <property name="minimumSize">  
                             <size>  
                                 <width>0</width>  
                                 <height>28</height>  
                             </size>  
                         </property>  
                         <property name="maximumSize">  
                             <size>  
                                 <width>32767</width>  
                                 <height>28</height>  
                             </size>  
162                          </property>                          </property>
163                          <property name="text">                          <property name="text">
164                              <string>&amp;Delete</string>                              <string>Dri&amp;ver:</string>
165                          </property>                          </property>
166                          <property name="accel">                          <property name="alignment">
167                              <string>Alt+D</string>                              <set>AlignVCenter|AlignRight</set>
168                          </property>                          </property>
169                          <property name="toolTip" stdset="0">                          <property name="buddy" stdset="0">
170                              <string>Delete current device</string>                              <cstring>DriverNameComboBox</cstring>
171                          </property>                          </property>
172                      </widget>                      </widget>
173                  </grid>                  </grid>
174              </widget>              </widget>
175          </widget>          </widget>
176      </hbox>          <widget class="QLayoutWidget">
177                <property name="name">
178                    <cstring>layout6</cstring>
179                </property>
180                <hbox>
181                    <property name="name">
182                        <cstring>unnamed</cstring>
183                    </property>
184                    <widget class="QPushButton">
185                        <property name="name">
186                            <cstring>RefreshDevicesPushButton</cstring>
187                        </property>
188                        <property name="text">
189                            <string>&amp;Refresh</string>
190                        </property>
191                        <property name="accel">
192                            <string>Alt+R</string>
193                        </property>
194                        <property name="iconSet">
195                            <iconset>formRefresh.png</iconset>
196                        </property>
197                        <property name="toolTip" stdset="0">
198                            <string>refresh device list view</string>
199                        </property>
200                    </widget>
201                    <spacer>
202                        <property name="name">
203                            <cstring>spacer1</cstring>
204                        </property>
205                        <property name="orientation">
206                            <enum>Horizontal</enum>
207                        </property>
208                        <property name="sizeType">
209                            <enum>Expanding</enum>
210                        </property>
211                        <property name="sizeHint">
212                            <size>
213                                <width>180</width>
214                                <height>20</height>
215                            </size>
216                        </property>
217                    </spacer>
218                    <widget class="QPushButton">
219                        <property name="name">
220                            <cstring>CreateDevicePushButton</cstring>
221                        </property>
222                        <property name="text">
223                            <string>&amp;Create</string>
224                        </property>
225                        <property name="accel">
226                            <string>Alt+C</string>
227                        </property>
228                        <property name="iconSet">
229                            <iconset>deviceCreate.png</iconset>
230                        </property>
231                        <property name="toolTip" stdset="0">
232                            <string>Create current device</string>
233                        </property>
234                    </widget>
235                    <widget class="QPushButton">
236                        <property name="name">
237                            <cstring>DeleteDevicePushButton</cstring>
238                        </property>
239                        <property name="text">
240                            <string>&amp;Delete</string>
241                        </property>
242                        <property name="accel">
243                            <string>Alt+D</string>
244                        </property>
245                        <property name="iconSet">
246                            <iconset>deviceDelete.png</iconset>
247                        </property>
248                        <property name="toolTip" stdset="0">
249                            <string>Delete current device</string>
250                        </property>
251                    </widget>
252                    <widget class="QPushButton">
253                        <property name="name">
254                            <cstring>ClosePushButton</cstring>
255                        </property>
256                        <property name="text">
257                            <string>Close</string>
258                        </property>
259                        <property name="accel">
260                            <string></string>
261                        </property>
262                        <property name="iconSet">
263                            <iconset>formReject.png</iconset>
264                        </property>
265                        <property name="toolTip" stdset="0">
266                            <string>Close this dialog</string>
267                        </property>
268                    </widget>
269                </hbox>
270            </widget>
271        </vbox>
272  </widget>  </widget>
273  <customwidgets>  <customwidgets>
274      <customwidget>      <customwidget>
# Line 358  Line 288 
288          <pixmap>image0</pixmap>          <pixmap>image0</pixmap>
289      </customwidget>      </customwidget>
290  </customwidgets>  </customwidgets>
291    <images>
292        <image name="image0">
293            <data format="XBM.GZ" length="79">789c534e494dcbcc4b554829cdcdad8c2fcf4c29c95030e0524611cd48cd4ccf28010a1797249664262b2467241641a592324b8aa363156c15aab914146aadb90067111b1f</data>
294        </image>
295    </images>
296  <connections>  <connections>
297      <connection>      <connection>
298          <sender>LoadDevicesPushButton</sender>          <sender>DeviceListView</sender>
299          <signal>clicked()</signal>          <signal>selectionChanged()</signal>
300          <receiver>qsamplerDeviceForm</receiver>          <receiver>qsamplerDeviceForm</receiver>
301          <slot>loadDevices()</slot>          <slot>selectDevice()</slot>
302      </connection>      </connection>
303      <connection>      <connection>
304          <sender>SaveDevicesPushButton</sender>          <sender>DeviceListView</sender>
305          <signal>clicked()</signal>          <signal>contextMenuRequested(QListViewItem*,const QPoint&amp;,int)</signal>
306          <receiver>qsamplerDeviceForm</receiver>          <receiver>qsamplerDeviceForm</receiver>
307          <slot>saveDevices()</slot>          <slot>contextMenu(QListViewItem*,const QPoint&amp;,int)</slot>
308      </connection>      </connection>
309      <connection>      <connection>
310          <sender>CreateDevicePushButton</sender>          <sender>RefreshDevicesPushButton</sender>
311          <signal>clicked()</signal>          <signal>clicked()</signal>
312          <receiver>qsamplerDeviceForm</receiver>          <receiver>qsamplerDeviceForm</receiver>
313          <slot>createDevice()</slot>          <slot>refreshDevices()</slot>
314      </connection>      </connection>
315      <connection>      <connection>
316          <sender>UpdateDevicePushButton</sender>          <sender>DriverNameComboBox</sender>
317            <signal>activated(const QString&amp;)</signal>
318            <receiver>qsamplerDeviceForm</receiver>
319            <slot>selectDriver(const QString&amp;)</slot>
320        </connection>
321        <connection>
322            <sender>CreateDevicePushButton</sender>
323          <signal>clicked()</signal>          <signal>clicked()</signal>
324          <receiver>qsamplerDeviceForm</receiver>          <receiver>qsamplerDeviceForm</receiver>
325          <slot>updateDevice()</slot>          <slot>createDevice()</slot>
326      </connection>      </connection>
327      <connection>      <connection>
328          <sender>DeleteDevicePushButton</sender>          <sender>DeleteDevicePushButton</sender>
# Line 398  Line 339 
339  </connections>  </connections>
340  <tabstops>  <tabstops>
341      <tabstop>DeviceListView</tabstop>      <tabstop>DeviceListView</tabstop>
342        <tabstop>RefreshDevicesPushButton</tabstop>
343        <tabstop>DriverNameComboBox</tabstop>
344      <tabstop>DeviceParamTable</tabstop>      <tabstop>DeviceParamTable</tabstop>
     <tabstop>LoadDevicesPushButton</tabstop>  
     <tabstop>SaveDevicesPushButton</tabstop>  
345      <tabstop>CreateDevicePushButton</tabstop>      <tabstop>CreateDevicePushButton</tabstop>
     <tabstop>UpdateDevicePushButton</tabstop>  
346      <tabstop>DeleteDevicePushButton</tabstop>      <tabstop>DeleteDevicePushButton</tabstop>
347      <tabstop>ClosePushButton</tabstop>      <tabstop>ClosePushButton</tabstop>
348  </tabstops>  </tabstops>
# Line 416  Line 356 
356  <variables>  <variables>
357      <variable access="private">qsamplerMainForm *m_pMainForm;</variable>      <variable access="private">qsamplerMainForm *m_pMainForm;</variable>
358      <variable access="private">int m_iDirtySetup;</variable>      <variable access="private">int m_iDirtySetup;</variable>
     <variable access="private">int m_iDirtyCount;</variable>  
     <variable access="private">int m_iUntitled;</variable>  
     <variable access="private">QString m_sFilename;</variable>  
359      <variable access="private">lscp_client_t *m_pClient;</variable>      <variable access="private">lscp_client_t *m_pClient;</variable>
360        <variable access="private">bool m_bNewDevice;</variable>
361        <variable access="private">qsamplerDevice::qsamplerDeviceType m_deviceType;</variable>
362        <variable access="private">qsamplerDeviceItem *m_pAudioItems;</variable>
363        <variable access="private">qsamplerDeviceItem *m_pMidiItems;</variable>
364  </variables>  </variables>
365  <slots>  <slots>
366      <slot specifier="non virtual">contentsChanged()</slot>      <slot specifier="non virtual">contextMenu(QListViewItem *, const QPoint&amp;, int)</slot>
     <slot specifier="non virtual">loadDevices()</slot>  
     <slot specifier="non virtual">saveDevices()</slot>  
367      <slot specifier="non virtual">createDevice()</slot>      <slot specifier="non virtual">createDevice()</slot>
     <slot specifier="non virtual">updateDevice()</slot>  
368      <slot specifier="non virtual">deleteDevice()</slot>      <slot specifier="non virtual">deleteDevice()</slot>
     <slot specifier="non virtual">selectDevice( QListViewItem * pItem )</slot>  
369      <slot specifier="non virtual">refreshDevices()</slot>      <slot specifier="non virtual">refreshDevices()</slot>
370        <slot specifier="non virtual">selectDriver( const QString &amp; sDriverName )</slot>
371        <slot specifier="non virtual">selectDevice()</slot>
372        <slot specifier="non virtual">changeValue( int iRow, int iCol )</slot>
373      <slot specifier="non virtual">stabilizeForm()</slot>      <slot specifier="non virtual">stabilizeForm()</slot>
374  </slots>  </slots>
375  <functions>  <functions>
# Line 438  Line 378 
378      <function access="private" specifier="non virtual">showEvent( QShowEvent * pShowEvent )</function>      <function access="private" specifier="non virtual">showEvent( QShowEvent * pShowEvent )</function>
379      <function access="private" specifier="non virtual">hideEvent( QHideEvent * pHideEvent )</function>      <function access="private" specifier="non virtual">hideEvent( QHideEvent * pHideEvent )</function>
380      <function specifier="non virtual">setClient( lscp_client_t *pClient )</function>      <function specifier="non virtual">setClient( lscp_client_t *pClient )</function>
     <function specifier="non virtual" returnType="QString">devicesName( const QString &amp; sFilename )</function>  
     <function specifier="non virtual" returnType="bool">queryClose()</function>  
     <function specifier="non virtual">loadDevicesFile( const QString &amp; sFilename )</function>  
     <function specifier="non virtual">saveDevicesFile( const QString &amp; sFilename )</function>  
381  </functions>  </functions>
382  <pixmapinproject/>  <pixmapinproject/>
383  <layoutdefaults spacing="4" margin="4"/>  <layoutdefaults spacing="4" margin="4"/>

Legend:
Removed from v.429  
changed lines
  Added in v.452

  ViewVC Help
Powered by ViewVC