]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/MainView.ui
632ae6f7c04fb31c05afc27bfa7c95582fd6d3fc
[PrivacyBrowserPC.git] / src / MainView.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4   Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-android>.
7
8   Privacy Browser PC is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser PC is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser PC.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <ui version="4.0">
22     <class>MainView</class>
23
24     <widget class="QWidget" name="MainView">
25         <!-- TODO.  Make this maximized by default. -->
26         <property name="geometry">
27             <rect>
28                 <x>0</x>
29                 <y>0</y>
30                 <width>315</width>
31                 <height>233</height>
32             </rect>
33         </property>
34
35         <!-- Main widget. -->
36         <layout class="QVBoxLayout">
37             <!-- Set the spacing between items to 0. -->
38             <property name="spacing">
39                 <number>0</number>
40             </property>
41
42             <!-- Set the margins to 0. -->
43             <property name="topMargin">
44                 <number>0</number>
45             </property>
46
47             <property name="bottomMargin">
48                 <number>0</number>
49             </property>
50
51             <property name="leftMargin">
52                 <number>0</number>
53             </property>
54
55             <property name="rightMargin">
56                 <number>0</number>
57             </property>
58
59             <!-- URL bar. -->
60             <item>
61                 <layout class="QHBoxLayout">
62                     <!-- Set the spacing between items to 0. -->
63                     <property name="spacing">
64                         <number>0</number>
65                     </property>
66
67                     <!-- Back button. -->
68                     <item>
69                         <widget class="QPushButton" name="backButton">
70                             <property name="icon">
71                                 <iconset theme="arrow-left" />
72                             </property>
73
74                             <property name="iconSize">
75                                 <size>
76                                     <height>24</height>
77                                     <width>24</width>
78                                 </size>
79                             </property>
80
81                             <property name="flat">
82                                 <bool>true</bool>
83                             </property>
84                         </widget>
85                     </item>
86
87                     <!-- Forward button. -->
88                     <item>
89                         <widget class="QPushButton" name="forwardButton">
90                             <property name="icon">
91                                 <iconset theme="arrow-right" />
92                             </property>
93
94                             <property name="iconSize">
95                                 <size>
96                                     <height>24</height>
97                                     <width>24</width>
98                                 </size>
99                             </property>
100
101                             <property name="flat">
102                                 <bool>true</bool>
103                             </property>
104                         </widget>
105                     </item>
106
107                     <!-- Refresh button. -->
108                     <item>
109                         <widget class="QPushButton" name="refreshButton">
110                             <property name="icon">
111                                 <iconset theme="view-refresh" />
112                             </property>
113
114                             <property name="iconSize">
115                                 <size>
116                                     <height>24</height>
117                                     <width>24</width>
118                                 </size>
119                             </property>
120
121                             <property name="flat">
122                                 <bool>true</bool>
123                             </property>
124                         </widget>
125                     </item>
126
127                     <!-- Home button. -->
128                     <item>
129                         <widget class="QPushButton" name="homeButton">
130                             <property name="icon">
131                                 <iconset theme="home" />
132                             </property>
133
134                             <property name="iconSize">
135                                 <size>
136                                     <height>24</height>
137                                     <width>24</width>
138                                 </size>
139                             </property>
140
141                             <property name="flat">
142                                 <bool>true</bool>
143                             </property>
144                         </widget>
145                     </item>
146
147                     <!-- URL line edit. -->
148                     <item>
149                         <widget class="KLineEdit" name="urlLineEdit" />
150                     </item>
151
152                     <!-- JavaScript. -->
153                     <item>
154                         <widget class="QPushButton" name="javaScript">
155                             <property name="iconSize">
156                                 <size>
157                                     <height>24</height>
158                                     <width>24</width>
159                                 </size>
160                             </property>
161
162                             <property name="flat">
163                                 <bool>true</bool>
164                             </property>
165                         </widget>
166                     </item>
167                 </layout>
168             </item>
169
170             <!-- WebEngine view. -->
171             <item>
172                 <widget class="QWebEngineView" name="webEngineView" />
173             </item>
174         </layout>
175     </widget>
176 </ui>