/[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 432 by capela, Wed Mar 9 11:33:27 2005 UTC revision 462 by capela, Tue Mar 15 11:39:12 2005 UTC
# Line 20  Line 20 
20    
21  </comment>  </comment>
22  <author>rncbc aka Rui Nuno Capela</author>  <author>rncbc aka Rui Nuno Capela</author>
23  <widget class="QDialog">  <widget class="QWidget">
24      <property name="name">      <property name="name">
25          <cstring>qsamplerDeviceForm</cstring>          <cstring>qsamplerDeviceForm</cstring>
26      </property>      </property>
# Line 28  Line 28 
28          <rect>          <rect>
29              <x>0</x>              <x>0</x>
30              <y>0</y>              <y>0</y>
31              <width>604</width>              <width>544</width>
32              <height>329</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>DeviceSplitter</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="rootIsDecorated">  
                             <bool>true</bool>  
                         </property>  
                         <property name="resizeMode">  
                             <enum>LastColumn</enum>  
                         </property>  
                         <property name="toolTip" stdset="0">  
                             <string>Device list</string>  
                         </property>  
                     </widget>  
                 </grid>  
93              </widget>              </widget>
94              <widget class="QLayoutWidget">              <widget class="QLayoutWidget">
95                  <property name="name">                  <property name="name">
96                      <cstring>layout4</cstring>                      <cstring>layout5</cstring>
97                  </property>                  </property>
98                  <grid>                  <grid>
99                      <property name="name">                      <property name="name">
100                          <cstring>unnamed</cstring>                          <cstring>unnamed</cstring>
101                      </property>                      </property>
102                      <widget class="QPushButton" row="2" column="6">                      <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>  
                         </property>  
                         <property name="maximumSize">  
                             <size>  
                                 <width>32767</width>  
                                 <height>28</height>  
                             </size>  
                         </property>  
                         <property name="text">  
                             <string>Close</string>  
                         </property>  
                         <property name="accel">  
                             <string></string>  
                         </property>  
                         <property name="toolTip" stdset="0">  
                             <string>Close this dialog</string>  
                         </property>  
                     </widget>  
                     <widget class="QPushButton" row="2" 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>  
                         </property>  
                         <property name="text">  
                             <string>&amp;Update</string>  
                         </property>  
                         <property name="accel">  
                             <string>Alt+U</string>  
                         </property>  
                         <property name="toolTip" stdset="0">  
                             <string>Update current device</string>  
                         </property>  
                     </widget>  
                     <spacer row="2" column="5">  
                         <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>38</width>  
                                 <height>20</height>  
                             </size>  
                         </property>  
                     </spacer>  
                     <spacer row="2" column="0">  
                         <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="QPushButton" row="2" column="3" rowspan="1" colspan="2">  
                         <property name="name">  
                             <cstring>DeleteDevicePushButton</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;Delete</string>  
                         </property>  
                         <property name="accel">  
                             <string>Alt+D</string>  
                         </property>  
                         <property name="toolTip" stdset="0">  
                             <string>Delete current device</string>  
                         </property>  
                     </widget>  
                     <widget class="QComboBox" row="0" column="6">  
                         <property name="name">  
                             <cstring>DriverNameComboBox</cstring>  
                         </property>  
                         <property name="toolTip" stdset="0">  
                             <string>Driver type name</string>  
                         </property>  
                     </widget>  
                     <widget class="QPushButton" row="2" column="1">  
                         <property name="name">  
                             <cstring>CreateDevicePushButton</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                                    <verstretch>0</verstretch>
112                                </sizepolicy>
113                          </property>                          </property>
114                          <property name="text">                          <property name="font">
115                              <string>&amp;Create</string>                              <font>
116                                    <bold>1</bold>
117                                </font>
118                          </property>                          </property>
119                          <property name="accel">                          <property name="indent">
120                              <string>Alt+C</string>                              <number>4</number>
121                          </property>                          </property>
122                          <property name="toolTip" stdset="0">                          <property name="toolTip" stdset="0">
123                              <string>Create current device</string>                              <string>Device name</string>
                         </property>  
                     </widget>  
                     <widget class="QLabel" row="0" column="4" rowspan="1" colspan="2">  
                         <property name="name">  
                             <cstring>DriverNameTextLabel</cstring>  
                         </property>  
                         <property name="text">  
                             <string>&amp;Driver:</string>  
                         </property>  
                         <property name="alignment">  
                             <set>AlignVCenter|AlignRight</set>  
                         </property>  
                         <property name="buddy" stdset="0">  
                             <cstring>DriverNameComboBox</cstring>  
124                          </property>                          </property>
125                      </widget>                      </widget>
126                      <widget class="qsamplerDeviceParamTable" row="1" column="0" rowspan="1" colspan="7">                      <widget class="qsamplerDeviceParamTable" row="1" column="0" rowspan="1" colspan="3">
127                          <property name="name">                          <property name="name">
128                              <cstring>DeviceParamTable</cstring>                              <cstring>DeviceParamTable</cstring>
129                          </property>                          </property>
# Line 352  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>
# Line 363  Line 148 
148                              <string>Device parameters</string>                              <string>Device parameters</string>
149                          </property>                          </property>
150                      </widget>                      </widget>
151                      <widget class="QLabel" row="0" column="0" rowspan="1" colspan="4">                      <widget class="QComboBox" row="0" column="2">
152                          <property name="name">                          <property name="name">
153                              <cstring>DeviceNameTextLabel</cstring>                              <cstring>DriverNameComboBox</cstring>
154                          </property>                          </property>
155                          <property name="sizePolicy">                          <property name="toolTip" stdset="0">
156                              <sizepolicy>                              <string>Driver type name</string>
                                 <hsizetype>7</hsizetype>  
                                 <vsizetype>5</vsizetype>  
                                 <horstretch>0</horstretch>  
                                 <verstretch>0</verstretch>  
                             </sizepolicy>  
157                          </property>                          </property>
158                          <property name="font">                      </widget>
159                              <font>                      <widget class="QLabel" row="0" column="1">
160                                  <pointsize>10</pointsize>                          <property name="name">
161                                  <bold>1</bold>                              <cstring>DriverNameTextLabel</cstring>
                             </font>  
162                          </property>                          </property>
163                          <property name="text">                          <property name="text">
164                              <string></string>                              <string>Dri&amp;ver:</string>
165                          </property>                          </property>
166                          <property name="toolTip" stdset="0">                          <property name="alignment">
167                              <string>Device name</string>                              <set>AlignVCenter|AlignRight</set>
168                            </property>
169                            <property name="buddy" stdset="0">
170                                <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 413  Line 290 
290  </customwidgets>  </customwidgets>
291  <images>  <images>
292      <image name="image0">      <image name="image0">
293          <data format="XPM.GZ" length="45">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523250004143a55a6b2e0026630c4f</data>          <data format="XBM.GZ" length="79">789c534e494dcbcc4b554829cdcdad8c2fcf4c29c95030e0524611cd48cd4ccf28010a1797249664262b2467241641a592324b8aa363156c15aab914146aadb90067111b1f</data>
294      </image>      </image>
295  </images>  </images>
296  <connections>  <connections>
# Line 424  Line 301 
301          <slot>selectDevice()</slot>          <slot>selectDevice()</slot>
302      </connection>      </connection>
303      <connection>      <connection>
304          <sender>LoadDevicesPushButton</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>loadDevices()</slot>          <slot>contextMenu(QListViewItem*,const QPoint&amp;,int)</slot>
308      </connection>      </connection>
309      <connection>      <connection>
310          <sender>SaveDevicesPushButton</sender>          <sender>RefreshDevicesPushButton</sender>
311          <signal>clicked()</signal>          <signal>clicked()</signal>
312          <receiver>qsamplerDeviceForm</receiver>          <receiver>qsamplerDeviceForm</receiver>
313          <slot>saveDevices()</slot>          <slot>refreshDevices()</slot>
314      </connection>      </connection>
315      <connection>      <connection>
316          <sender>DriverNameComboBox</sender>          <sender>DriverNameComboBox</sender>
# Line 442  Line 319 
319          <slot>selectDriver(const QString&amp;)</slot>          <slot>selectDriver(const QString&amp;)</slot>
320      </connection>      </connection>
321      <connection>      <connection>
         <sender>DeviceParamTable</sender>  
         <signal>valueChanged(int,int)</signal>  
         <receiver>qsamplerDeviceForm</receiver>  
         <slot>changeValue(int,int)</slot>  
     </connection>  
     <connection>  
322          <sender>CreateDevicePushButton</sender>          <sender>CreateDevicePushButton</sender>
323          <signal>clicked()</signal>          <signal>clicked()</signal>
324          <receiver>qsamplerDeviceForm</receiver>          <receiver>qsamplerDeviceForm</receiver>
325          <slot>createDevice()</slot>          <slot>createDevice()</slot>
326      </connection>      </connection>
327      <connection>      <connection>
         <sender>UpdateDevicePushButton</sender>  
         <signal>clicked()</signal>  
         <receiver>qsamplerDeviceForm</receiver>  
         <slot>updateDevice()</slot>  
     </connection>  
     <connection>  
328          <sender>DeleteDevicePushButton</sender>          <sender>DeleteDevicePushButton</sender>
329          <signal>clicked()</signal>          <signal>clicked()</signal>
330          <receiver>qsamplerDeviceForm</receiver>          <receiver>qsamplerDeviceForm</receiver>
# Line 474  Line 339 
339  </connections>  </connections>
340  <tabstops>  <tabstops>
341      <tabstop>DeviceListView</tabstop>      <tabstop>DeviceListView</tabstop>
342      <tabstop>LoadDevicesPushButton</tabstop>      <tabstop>RefreshDevicesPushButton</tabstop>
     <tabstop>SaveDevicesPushButton</tabstop>  
     <tabstop>DeviceParamTable</tabstop>  
343      <tabstop>DriverNameComboBox</tabstop>      <tabstop>DriverNameComboBox</tabstop>
344        <tabstop>DeviceParamTable</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 493  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>      <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>
369      <slot specifier="non virtual">refreshDevices()</slot>      <slot specifier="non virtual">refreshDevices()</slot>
370      <slot specifier="non virtual">selectDriver( const QString &amp; sDriverName )</slot>      <slot specifier="non virtual">selectDriver( const QString &amp; sDriverName )</slot>
# Line 518  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.432  
changed lines
  Added in v.462

  ViewVC Help
Powered by ViewVC