WebBrowser/SafeBrowsing/SafeBrowsingDialog.ui

Sun, 30 Jul 2017 19:56:04 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 30 Jul 2017 19:56:04 +0200
branch
safe_browsing
changeset 5821
6c7766cde4c1
parent 5820
b610cb5b501a
child 5829
d3448873ced3
permissions
-rw-r--r--

Added a progress bar to the management part and fine tuned the hash prefix update process.

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>SafeBrowsingDialog</class>
 <widget class="QDialog" name="SafeBrowsingDialog">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>650</width>
    <height>288</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>Safe Browsing Management</string>
  </property>
  <property name="sizeGripEnabled">
   <bool>true</bool>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout_2">
   <item>
    <widget class="QGroupBox" name="gsbGroupBox">
     <property name="toolTip">
      <string>Select to enable the Google sage browsing support</string>
     </property>
     <property name="title">
      <string>Enable Google Safe Browsing</string>
     </property>
     <property name="checkable">
      <bool>true</bool>
     </property>
     <layout class="QGridLayout" name="gridLayout">
      <item row="0" column="0" rowspan="2">
       <widget class="QLabel" name="iconLabel">
        <property name="minimumSize">
         <size>
          <width>48</width>
          <height>48</height>
         </size>
        </property>
        <property name="text">
         <string notr="true">Icon</string>
        </property>
       </widget>
      </item>
      <item row="0" column="1">
       <widget class="QLabel" name="label_14">
        <property name="text">
         <string>API Key:</string>
        </property>
       </widget>
      </item>
      <item row="0" column="2">
       <widget class="QLineEdit" name="gsbApiKeyEdit">
        <property name="toolTip">
         <string>Enter the Google Safe Browsing API key</string>
        </property>
       </widget>
      </item>
      <item row="1" column="1" colspan="2">
       <widget class="QPushButton" name="gsbHelpButton">
        <property name="toolTip">
         <string>Press to get some help about obtaining the API key</string>
        </property>
        <property name="text">
         <string>Google Safe Browsing API Help</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item>
    <widget class="QGroupBox" name="groupBox">
     <property name="title">
      <string>Manage Local Cache</string>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout">
      <item>
       <layout class="QHBoxLayout" name="horizontalLayout">
        <item>
         <widget class="QPushButton" name="updateCacheButton">
          <property name="toolTip">
           <string>Press to update the local cache database</string>
          </property>
          <property name="text">
           <string>Update Cache</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QPushButton" name="clearCacheButton">
          <property name="toolTip">
           <string>Press to clear the local cache database</string>
          </property>
          <property name="text">
           <string>Clear Cache</string>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item>
       <widget class="QLabel" name="progressLabel">
        <property name="text">
         <string notr="true"/>
        </property>
        <property name="wordWrap">
         <bool>true</bool>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QProgressBar" name="progressBar">
        <property name="value">
         <number>0</number>
        </property>
        <property name="format">
         <string>%v/%m</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item>
    <widget class="QDialogButtonBox" name="buttonBox">
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
     <property name="standardButtons">
      <set>QDialogButtonBox::Close</set>
     </property>
    </widget>
   </item>
  </layout>
 </widget>
 <tabstops>
  <tabstop>gsbGroupBox</tabstop>
  <tabstop>gsbApiKeyEdit</tabstop>
  <tabstop>gsbHelpButton</tabstop>
 </tabstops>
 <resources/>
 <connections/>
</ui>

eric ide

mercurial