Implemented directory browser
[someplayer] / src / ui / directoryview.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3  <class>DirectoryView</class>
4  <widget class="QWidget" name="DirectoryView">
5   <property name="geometry">
6    <rect>
7     <x>0</x>
8     <y>0</y>
9     <width>800</width>
10     <height>480</height>
11    </rect>
12   </property>
13   <property name="windowTitle">
14    <string>Directories</string>
15   </property>
16   <layout class="QHBoxLayout" name="horizontalLayout_3">
17    <property name="spacing">
18     <number>0</number>
19    </property>
20    <property name="margin">
21     <number>0</number>
22    </property>
23    <item>
24     <layout class="QVBoxLayout" name="lverticalLayout">
25      <property name="spacing">
26       <number>0</number>
27      </property>
28      <item>
29       <widget class="QPushButton" name="backButton">
30        <property name="sizePolicy">
31         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
32          <horstretch>0</horstretch>
33          <verstretch>0</verstretch>
34         </sizepolicy>
35        </property>
36        <property name="minimumSize">
37         <size>
38          <width>70</width>
39          <height>70</height>
40         </size>
41        </property>
42        <property name="maximumSize">
43         <size>
44          <width>70</width>
45          <height>70</height>
46         </size>
47        </property>
48        <property name="text">
49         <string/>
50        </property>
51        <property name="icon">
52         <iconset resource="../../resources/resources.qrc">
53          <normaloff>:/icons/white/back.png</normaloff>:/icons/white/back.png</iconset>
54        </property>
55        <property name="flat">
56         <bool>true</bool>
57        </property>
58       </widget>
59      </item>
60      <item>
61       <spacer name="lverticalSpacer_0">
62        <property name="orientation">
63         <enum>Qt::Vertical</enum>
64        </property>
65        <property name="sizeHint" stdset="0">
66         <size>
67          <width>20</width>
68          <height>40</height>
69         </size>
70        </property>
71       </spacer>
72      </item>
73      <item>
74       <widget class="QPushButton" name="homeButton">
75        <property name="sizePolicy">
76         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
77          <horstretch>0</horstretch>
78          <verstretch>0</verstretch>
79         </sizepolicy>
80        </property>
81        <property name="minimumSize">
82         <size>
83          <width>70</width>
84          <height>70</height>
85         </size>
86        </property>
87        <property name="text">
88         <string/>
89        </property>
90        <property name="icon">
91         <iconset resource="../../resources/resources.qrc">
92          <normaloff>:/icons/white/home.png</normaloff>:/icons/white/home.png</iconset>
93        </property>
94        <property name="flat">
95         <bool>true</bool>
96        </property>
97       </widget>
98      </item>
99      <item>
100       <spacer name="lverticalSpacer_1">
101        <property name="orientation">
102         <enum>Qt::Vertical</enum>
103        </property>
104        <property name="sizeHint" stdset="0">
105         <size>
106          <width>20</width>
107          <height>40</height>
108         </size>
109        </property>
110       </spacer>
111      </item>
112      <item>
113       <widget class="QPushButton" name="playerButton">
114        <property name="sizePolicy">
115         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
116          <horstretch>0</horstretch>
117          <verstretch>0</verstretch>
118         </sizepolicy>
119        </property>
120        <property name="minimumSize">
121         <size>
122          <width>70</width>
123          <height>70</height>
124         </size>
125        </property>
126        <property name="maximumSize">
127         <size>
128          <width>70</width>
129          <height>70</height>
130         </size>
131        </property>
132        <property name="text">
133         <string/>
134        </property>
135        <property name="icon">
136         <iconset resource="../../resources/resources.qrc">
137          <normaloff>:/icons/white/player.png</normaloff>:/icons/white/player.png</iconset>
138        </property>
139        <property name="flat">
140         <bool>true</bool>
141        </property>
142       </widget>
143      </item>
144     </layout>
145    </item>
146    <item>
147     <layout class="QVBoxLayout" name="verticalLayout">
148      <property name="spacing">
149       <number>0</number>
150      </property>
151      <item>
152       <widget class="QWidget" name="topWidget" native="true">
153        <property name="styleSheet">
154         <string notr="true">background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(38, 38, 38, 255), stop:1 rgba(92, 92, 92, 255))</string>
155        </property>
156        <layout class="QHBoxLayout" name="horizontalLayout">
157         <property name="spacing">
158          <number>0</number>
159         </property>
160         <property name="margin">
161          <number>0</number>
162         </property>
163         <item>
164          <spacer name="thorizontalSpacer_0">
165           <property name="orientation">
166            <enum>Qt::Horizontal</enum>
167           </property>
168           <property name="sizeType">
169            <enum>QSizePolicy::Maximum</enum>
170           </property>
171           <property name="sizeHint" stdset="0">
172            <size>
173             <width>324</width>
174             <height>0</height>
175            </size>
176           </property>
177          </spacer>
178         </item>
179         <item>
180          <spacer name="thorizontalSpacer_1">
181           <property name="orientation">
182            <enum>Qt::Horizontal</enum>
183           </property>
184           <property name="sizeType">
185            <enum>QSizePolicy::Maximum</enum>
186           </property>
187           <property name="sizeHint" stdset="0">
188            <size>
189             <width>327</width>
190             <height>0</height>
191            </size>
192           </property>
193          </spacer>
194         </item>
195        </layout>
196       </widget>
197      </item>
198      <item>
199       <widget class="QTableView" name="dirView">
200        <property name="contextMenuPolicy">
201         <enum>Qt::CustomContextMenu</enum>
202        </property>
203        <property name="frameShadow">
204         <enum>QFrame::Sunken</enum>
205        </property>
206        <property name="horizontalScrollBarPolicy">
207         <enum>Qt::ScrollBarAlwaysOff</enum>
208        </property>
209        <property name="autoScroll">
210         <bool>false</bool>
211        </property>
212        <property name="editTriggers">
213         <set>QAbstractItemView::NoEditTriggers</set>
214        </property>
215        <property name="showDropIndicator" stdset="0">
216         <bool>false</bool>
217        </property>
218        <property name="dragEnabled">
219         <bool>false</bool>
220        </property>
221        <property name="dragDropOverwriteMode">
222         <bool>false</bool>
223        </property>
224        <property name="dragDropMode">
225         <enum>QAbstractItemView::NoDragDrop</enum>
226        </property>
227        <property name="selectionMode">
228         <enum>QAbstractItemView::MultiSelection</enum>
229        </property>
230        <property name="selectionBehavior">
231         <enum>QAbstractItemView::SelectRows</enum>
232        </property>
233        <property name="iconSize">
234         <size>
235          <width>50</width>
236          <height>50</height>
237         </size>
238        </property>
239        <property name="showGrid">
240         <bool>false</bool>
241        </property>
242        <property name="cornerButtonEnabled">
243         <bool>false</bool>
244        </property>
245        <attribute name="horizontalHeaderVisible">
246         <bool>false</bool>
247        </attribute>
248        <attribute name="horizontalHeaderStretchLastSection">
249         <bool>true</bool>
250        </attribute>
251        <attribute name="verticalHeaderVisible">
252         <bool>false</bool>
253        </attribute>
254        <attribute name="verticalHeaderDefaultSectionSize">
255         <number>70</number>
256        </attribute>
257        <attribute name="verticalHeaderMinimumSectionSize">
258         <number>70</number>
259        </attribute>
260       </widget>
261      </item>
262      <item>
263       <widget class="QProgressBar" name="progressBar">
264        <property name="value">
265         <number>24</number>
266        </property>
267       </widget>
268      </item>
269      <item>
270       <widget class="QWidget" name="bottomWidget" native="true">
271        <property name="styleSheet">
272         <string notr="true">background:qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(38, 38, 38, 255), stop:1 rgba(92, 92, 92, 255))</string>
273        </property>
274        <layout class="QHBoxLayout" name="horizontalLayout_2">
275         <property name="spacing">
276          <number>0</number>
277         </property>
278         <property name="margin">
279          <number>0</number>
280         </property>
281         <item>
282          <spacer name="bhorizontalSpacer">
283           <property name="orientation">
284            <enum>Qt::Horizontal</enum>
285           </property>
286           <property name="sizeHint" stdset="0">
287            <size>
288             <width>651</width>
289             <height>0</height>
290            </size>
291           </property>
292          </spacer>
293         </item>
294        </layout>
295       </widget>
296      </item>
297     </layout>
298    </item>
299    <item>
300     <layout class="QVBoxLayout" name="rverticalLayout">
301      <property name="spacing">
302       <number>0</number>
303      </property>
304      <item>
305       <widget class="QPushButton" name="addButton">
306        <property name="sizePolicy">
307         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
308          <horstretch>0</horstretch>
309          <verstretch>0</verstretch>
310         </sizepolicy>
311        </property>
312        <property name="minimumSize">
313         <size>
314          <width>70</width>
315          <height>70</height>
316         </size>
317        </property>
318        <property name="maximumSize">
319         <size>
320          <width>70</width>
321          <height>70</height>
322         </size>
323        </property>
324        <property name="text">
325         <string/>
326        </property>
327        <property name="icon">
328         <iconset resource="../../resources/resources.qrc">
329          <normaloff>:/icons/white/add.png</normaloff>:/icons/white/add.png</iconset>
330        </property>
331        <property name="flat">
332         <bool>true</bool>
333        </property>
334       </widget>
335      </item>
336      <item>
337       <spacer name="rverticalSpacer">
338        <property name="orientation">
339         <enum>Qt::Vertical</enum>
340        </property>
341        <property name="sizeHint" stdset="0">
342         <size>
343          <width>20</width>
344          <height>40</height>
345         </size>
346        </property>
347       </spacer>
348      </item>
349      <item>
350       <widget class="QPushButton" name="selectToggleButton">
351        <property name="sizePolicy">
352         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
353          <horstretch>0</horstretch>
354          <verstretch>0</verstretch>
355         </sizepolicy>
356        </property>
357        <property name="minimumSize">
358         <size>
359          <width>70</width>
360          <height>70</height>
361         </size>
362        </property>
363        <property name="maximumSize">
364         <size>
365          <width>70</width>
366          <height>70</height>
367         </size>
368        </property>
369        <property name="text">
370         <string/>
371        </property>
372        <property name="icon">
373         <iconset resource="../../resources/resources.qrc">
374          <normaloff>:/icons/white/select_all.png</normaloff>:/icons/white/select_all.png</iconset>
375        </property>
376        <property name="flat">
377         <bool>true</bool>
378        </property>
379       </widget>
380      </item>
381     </layout>
382    </item>
383   </layout>
384  </widget>
385  <resources>
386   <include location="../../resources/resources.qrc"/>
387  </resources>
388  <connections>
389   <connection>
390    <sender>playerButton</sender>
391    <signal>clicked()</signal>
392    <receiver>DirectoryView</receiver>
393    <slot>hide()</slot>
394    <hints>
395     <hint type="sourcelabel">
396      <x>35</x>
397      <y>443</y>
398     </hint>
399     <hint type="destinationlabel">
400      <x>399</x>
401      <y>239</y>
402     </hint>
403    </hints>
404   </connection>
405  </connections>
406 </ui>