]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/BrowserView.ui
Switch the Domain Settings implementation to a Dialog.
[PrivacyBrowserPC.git] / src / BrowserView.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>BrowserView</class>
23
24     <widget class="QWidget" name="BrowserView">
25         <!-- TODO.  Make this maximized by default. -->
26         <property name="geometry">
27             <rect>
28                 <x>0</x>
29                 <y>0</y>
30                 <width>700</width>
31                 <height>500</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                     <!-- Back button. -->
63                     <item>
64                         <widget class="QPushButton" name="backButton">
65                             <property name="icon">
66                                 <iconset theme="arrow-left" />
67                             </property>
68
69                             <property name="iconSize">
70                                 <size>
71                                     <height>24</height>
72                                     <width>24</width>
73                                 </size>
74                             </property>
75
76                             <property name="flat">
77                                 <bool>true</bool>
78                             </property>
79                         </widget>
80                     </item>
81
82                     <!-- Forward button. -->
83                     <item>
84                         <widget class="QPushButton" name="forwardButton">
85                             <property name="icon">
86                                 <iconset theme="arrow-right" />
87                             </property>
88
89                             <property name="iconSize">
90                                 <size>
91                                     <height>24</height>
92                                     <width>24</width>
93                                 </size>
94                             </property>
95
96                             <property name="flat">
97                                 <bool>true</bool>
98                             </property>
99                         </widget>
100                     </item>
101
102                     <!-- Refresh button. -->
103                     <item>
104                         <widget class="QPushButton" name="refreshButton">
105                             <property name="icon">
106                                 <iconset theme="view-refresh" />
107                             </property>
108
109                             <property name="iconSize">
110                                 <size>
111                                     <height>24</height>
112                                     <width>24</width>
113                                 </size>
114                             </property>
115
116                             <property name="flat">
117                                 <bool>true</bool>
118                             </property>
119                         </widget>
120                     </item>
121
122                     <!-- Home button. -->
123                     <item>
124                         <widget class="QPushButton" name="homeButton">
125                             <property name="icon">
126                                 <iconset theme="home" />
127                             </property>
128
129                             <property name="iconSize">
130                                 <size>
131                                     <height>24</height>
132                                     <width>24</width>
133                                 </size>
134                             </property>
135
136                             <property name="flat">
137                                 <bool>true</bool>
138                             </property>
139                         </widget>
140                     </item>
141
142                     <!-- URL line edit. -->
143                     <item>
144                         <widget class="KLineEdit" name="urlLineEdit" />
145                     </item>
146
147                     <!-- JavaScript. -->
148                     <item>
149                         <widget class="QPushButton" name="javaScript">
150                             <property name="iconSize">
151                                 <size>
152                                     <height>24</height>
153                                     <width>24</width>
154                                 </size>
155                             </property>
156
157                             <property name="flat">
158                                 <bool>true</bool>
159                             </property>
160                         </widget>
161                     </item>
162
163                     <!-- Domain Settings. -->
164                     <item>
165                         <widget class="QPushButton" name="domainSettingsButton">
166                             <property name="icon">
167                                 <iconset theme="network-server-symbolic" />
168                             </property>
169
170                             <property name="iconSize">
171                                 <size>
172                                     <height>24</height>
173                                     <width>24</width>
174                                 </size>
175                             </property>
176
177                             <property name="flat">
178                                 <bool>true</bool>
179                             </property>
180                         </widget>
181                     </item>
182                 </layout>
183             </item>
184
185             <!-- WebEngine view. -->
186             <item>
187                 <widget class="QWebEngineView" name="webEngineView" />
188             </item>
189         </layout>
190     </widget>
191 </ui>