]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/mainview.ui
c7afeb850379167bb43aa3ce430aabc78fd77927
[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         <layout class="QVBoxLayout">
36             <!-- Set the spacing between items to 0. -->
37             <property name="spacing">
38                 <number>0</number>
39             </property>
40
41             <!-- Set the margins to 0. -->
42             <property name="topMargin">
43                 <number>0</number>
44             </property>
45
46             <property name="bottomMargin">
47                 <number>0</number>
48             </property>
49
50             <property name="leftMargin">
51                 <number>0</number>
52             </property>
53
54             <property name="rightMargin">
55                 <number>0</number>
56             </property>
57
58             <!-- URL bar. -->
59             <item>
60                 <layout class="QHBoxLayout">
61                     <!-- Set the spacing between items to 0. -->
62                     <property name="spacing">
63                         <number>0</number>
64                     </property>
65
66                     <!-- Back button. -->
67                     <item>
68                         <widget class="QPushButton" name="backButton">
69                             <property name="icon">
70                                 <iconset theme="arrow-left" />
71                             </property>
72
73                             <property name="iconSize">
74                                 <size>
75                                     <height>24</height>
76                                     <width>24</width>
77                                 </size>
78                             </property>
79
80                             <property name="flat">
81                                 <bool>true</bool>
82                             </property>
83                         </widget>
84                     </item>
85
86                     <!-- Forward button. -->
87                     <item>
88                         <widget class="QPushButton" name="forwardButton">
89                             <property name="icon">
90                                 <iconset theme="arrow-right" />
91                             </property>
92
93                             <property name="iconSize">
94                                 <size>
95                                     <height>24</height>
96                                     <width>24</width>
97                                 </size>
98                             </property>
99
100                             <property name="flat">
101                                 <bool>true</bool>
102                             </property>
103                         </widget>
104                     </item>
105
106                     <!-- Home button. -->
107                     <item>
108                         <widget class="QPushButton" name="homeButton">
109                             <property name="icon">
110                                 <iconset theme="home" />
111                             </property>
112
113                             <property name="iconSize">
114                                 <size>
115                                     <height>24</height>
116                                     <width>24</width>
117                                 </size>
118                             </property>
119
120                             <property name="flat">
121                                 <bool>true</bool>
122                             </property>
123                         </widget>
124                     </item>
125
126                     <!-- URL line edit. -->
127                     <item>
128                         <widget class="KLineEdit" name="urlLineEdit" />
129                     </item>
130
131                     <!-- JavaScript. -->
132                     <item>
133                         <widget class="QPushButton" name="javaScript">
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                 </layout>
147             </item>
148
149             <!-- WebEngine view. -->
150             <item>
151                 <widget class="QWebEngineView" name="webEngineView" />
152             </item>
153         </layout>
154     </widget>
155 </ui>