]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/uis/AddBookmarkDialog.ui
Add dragging and dropping of bookmarks.
[PrivacyBrowserPC.git] / src / uis / AddBookmarkDialog.ui
index b6dc2cfb887d1165114e93a486015e03aaa655d8..01f143ce84f4d861ae7834487036aaf17b3a03a4 100644 (file)
   along with Privacy Browser PC.  If not, see <http://www.gnu.org/licenses/>. -->
 
 <ui version="4.0">
-  <class>AddBookmarkDialog</class>
-
-  <widget class="QWidget">
-    <layout class="QVBoxLayout">
-
-      <!-- First row. -->
-      <item>
-        <layout class="QHBoxLayout">
-          <property name="alignment">
-            <enum>Qt::AlignLeft</enum>
-          </property>
-
-          <!-- Icon. -->
-          <item>
-            <widget class="QGraphicsView"  name="favoriteIconGraphicsView">
-              <property name="sizePolicy">
-                <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
-                  <horstretch>0</horstretch>
-                  <verstretch>0</verstretch>
-                </sizepolicy>
-              </property>
-
-              <property name="maximumSize">
-                <size>
-                  <width>32</width>
-                  <height>32</height>
-                </size>
-              </property>
-
-              <property name="frameShape">
-                <enum>QFrame::NoFrame</enum>
-              </property>
-
-              <property name="alignment">
-                <set>Qt::AlignCenter</set>
-              </property>
-            </widget>
-          </item>
-
-          <!-- Spacer label. -->
-          <item>
-            <widget class="QLabel">
-              <property name="textFormat">
-                <enum>Qt::RichText</enum>
-              </property>
-
-              <property name="text">
-                <string>&amp;nbsp;</string>
-              </property>
-            </widget>
-          </item>
-
-          <!-- Bookmark name.  -->
-          <item>
-            <widget class="QLabel">
-              <property name="toolTip">
-                <string>The name of the bookmark.</string>
-              </property>
-
-              <property name="text">
-                <string>Bookmark name</string>
-              </property>
-            </widget>
-          </item>
-
-          <item>
-            <widget class="QLineEdit" name="bookmarkNameLineEdit" />
-          </item>
+    <class>AddBookmarkDialog</class>
+
+    <widget class="QWidget">
+        <layout class="QVBoxLayout">
+            <!-- Dialog body. -->
+            <item>
+                <layout class="QHBoxLayout">
+                    <!-- Favorite icon column. -->
+                    <item>
+                        <layout class="QVBoxLayout">
+                            <property name="rightMargin">
+                                <number>10</number>
+                            </property>
+
+                            <!-- First row, default favorite icon. -->
+                            <item>
+                                <widget class="QRadioButton" name="defaultFavoriteIconRadioButton">
+                                    <property name="text">
+                                        <string>Default favorite icon</string>
+                                    </property>
+
+                                    <property name="checked">
+                                        <bool>true</bool>
+                                    </property>
+
+                                    <property name="iconSize">
+                                        <size>
+                                            <height>32</height>
+                                            <width>32</width>
+                                        </size>
+                                    </property>
+                                </widget>
+                            </item>
+
+                            <!-- Second row, custom favorite icon. -->
+                            <item>
+                                <widget class="QRadioButton" name="customFavoriteIconRadioButton">
+                                    <property name="text">
+                                        <string>Custom favorite icon</string>
+                                    </property>
+
+                                    <property name="icon">
+                                        <iconset theme="globe"/>
+                                    </property>
+
+                                    <property name="iconSize">
+                                        <size>
+                                            <height>32</height>
+                                            <width>32</width>
+                                        </size>
+                                    </property>
+                                </widget>
+                            </item>
+                        </layout>
+                    </item>
+
+                    <!-- Name and URL column. -->
+                    <item>
+                        <layout class="QVBoxLayout">
+                            <!-- First row. -->
+                            <item>
+                                <layout class="QHBoxLayout">
+                                    <property name="alignment">
+                                        <enum>Qt::AlignLeft</enum>
+                                    </property>
+                                    <!-- Bookmark name.  -->
+                                    <item>
+                                        <widget class="QLabel">
+                                            <property name="toolTip">
+                                                <string>The name of the bookmark.</string>
+                                            </property>
+
+                                            <property name="text">
+                                                <string>Bookmark name</string>
+                                            </property>
+                                        </widget>
+                                    </item>
+
+                                    <item>
+                                        <widget class="QLineEdit" name="bookmarkNameLineEdit" />
+                                    </item>
+                                </layout>
+                            </item>
+
+                            <!-- Second row. -->
+                            <item>
+                                <layout class="QHBoxLayout">
+                                    <property name="alignment">
+                                        <enum>Qt::AlignLeft</enum>
+                                    </property>
+                                    <!-- Bookmark URL. -->
+                                    <item>
+                                        <widget class="QLabel">
+                                            <property name="toolTip">
+                                                <string>The URL of the bookmark.</string>
+                                            </property>
+
+                                            <property name="text">
+                                                <string>Bookmark URL</string>
+                                            </property>
+                                        </widget>
+                                    </item>
+
+                                    <item>
+                                        <widget class="QLineEdit" name="bookmarkUrlLineEdit">
+                                            <property name="sizePolicy">
+                                                <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+                                                    <horstretch>0</horstretch>
+                                                    <verstretch>0</verstretch>
+                                                </sizepolicy>
+                                            </property>
+
+                                            <property name="minimumSize">
+                                                <size>
+                                                    <width>700</width>
+                                                    <height>0</height>
+                                                </size>
+                                            </property>
+                                        </widget>
+                                    </item>
+                                </layout>
+                            </item>
+                        </layout>
+                    </item>
+                </layout>
+            </item>
+
+            <!-- Spacer. -->
+            <item>
+                <spacer>
+                    <property name="orientation">
+                        <enum>Qt::Vertical</enum>
+                    </property>
+                </spacer>
+            </item>
+
+            <!-- Buttons. -->
+            <item>
+                <layout class="QHBoxLayout">
+                    <!-- Browse button. -->
+                    <item>
+                        <widget class="QPushButton" name="browseButton">
+                            <property name="text">
+                                <string>Browse</string>
+                            </property>
+
+                            <property name="icon">
+                                <iconset theme="insert-image" />
+                            </property>
+                        </widget>
+                    </item>
+
+                    <!-- Cancel button - dialog button box. -->
+                    <item>
+                        <widget class="QDialogButtonBox" name="dialogButtonBox">
+                            <property name="standardButtons">
+                                <set>QDialogButtonBox::Cancel</set>
+                            </property>
+                        </widget>
+                    </item>
+                </layout>
+            </item>
         </layout>
-      </item>
-
-      <!-- Second row. -->
-      <item>
-        <layout class="QHBoxLayout">
-          <property name="alignment">
-            <enum>Qt::AlignLeft</enum>
-          </property>
-
-          <!-- Bookmark URL. -->
-          <item>
-            <widget class="QLabel">
-              <property name="toolTip">
-                <string>The URL of the bookmark.</string>
-              </property>
-
-              <property name="text">
-                <string>Bookmark URL</string>
-              </property>
-            </widget>
-          </item>
-
-          <item>
-            <widget class="QLineEdit" name="bookmarkUrlLineEdit">
-              <property name="sizePolicy">
-                <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
-                  <horstretch>0</horstretch>
-                  <verstretch>0</verstretch>
-                </sizepolicy>
-              </property>
-
-              <property name="minimumSize">
-                <size>
-                  <width>700</width>
-                  <height>0</height>
-                </size>
-              </property>
-            </widget>
-          </item>
-        </layout>
-      </item>
-
-      <!-- Spacer. -->
-      <item>
-        <spacer>
-          <property name="orientation">
-            <enum>Qt::Vertical</enum>
-          </property>
-        </spacer>
-      </item>
-
-      <!-- Dialog buttons. -->
-      <item>
-        <widget class="QDialogButtonBox" name="dialogButtonBox">
-          <property name="standardButtons">
-            <set>QDialogButtonBox::Cancel</set>
-          </property>
-        </widget>
-      </item>
-    </layout>
-  </widget>
+    </widget>
 </ui>