diff -r d2eac9616a92 -r a64b986abb54 WebBrowser/SafeBrowsing/SafeBrowsingDialog.ui --- a/WebBrowser/SafeBrowsing/SafeBrowsingDialog.ui Tue Apr 10 19:43:45 2018 +0200 +++ b/WebBrowser/SafeBrowsing/SafeBrowsingDialog.ui Wed Apr 11 19:57:23 2018 +0200 @@ -16,7 +16,7 @@ <property name="sizeGripEnabled"> <bool>true</bool> </property> - <layout class="QVBoxLayout" name="verticalLayout_2"> + <layout class="QVBoxLayout" name="verticalLayout_3"> <item> <layout class="QHBoxLayout" name="horizontalLayout_3"> <item> @@ -78,25 +78,8 @@ <property name="checkable"> <bool>true</bool> </property> - <layout class="QGridLayout" name="gridLayout"> - <item row="3" column="0" 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> - <item row="2" column="1"> - <widget class="QLineEdit" name="gsbApiKeyEdit"> - <property name="toolTip"> - <string>Enter the Google Safe Browsing API key</string> - </property> - </widget> - </item> - <item row="0" column="0" colspan="2"> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> <widget class="QCheckBox" name="gsbFilterPlatformCheckBox"> <property name="toolTip"> <string>Select to check against the current platform only</string> @@ -106,20 +89,48 @@ </property> </widget> </item> - <item row="1" column="0" colspan="2"> + <item> <widget class="QCheckBox" name="gsbAutoUpdateCheckBox"> <property name="toolTip"> <string>Select to update the threat lists automatically when fair use period has expired</string> </property> <property name="text"> - <string>Update threat lists automatically</string> + <string>Update threat lists automatically (Update API only)</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="gsbLookupCheckBox"> + <property name="text"> + <string>Use 'Lookup API' (Note: each URL is sent to Google for checking)</string> </property> </widget> </item> - <item row="2" column="0"> - <widget class="QLabel" name="label_14"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_4"> + <item> + <widget class="QLabel" name="label_14"> + <property name="text"> + <string>API Key:</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="gsbApiKeyEdit"> + <property name="toolTip"> + <string>Enter the Google Safe Browsing API key</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <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>API Key:</string> + <string>Google Safe Browsing API Help</string> </property> </widget> </item> @@ -174,9 +185,9 @@ </widget> </item> <item> - <widget class="QGroupBox" name="groupBox"> + <widget class="QGroupBox" name="manageCacheGroupBox"> <property name="title"> - <string>Manage Local Cache</string> + <string>Manage Local Cache (Update API only)</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> @@ -305,6 +316,7 @@ <tabstop>gsbGroupBox</tabstop> <tabstop>gsbFilterPlatformCheckBox</tabstop> <tabstop>gsbAutoUpdateCheckBox</tabstop> + <tabstop>gsbLookupCheckBox</tabstop> <tabstop>gsbApiKeyEdit</tabstop> <tabstop>gsbHelpButton</tabstop> <tabstop>saveButton</tabstop> @@ -315,5 +327,22 @@ <tabstop>urlCheckButton</tabstop> </tabstops> <resources/> - <connections/> + <connections> + <connection> + <sender>gsbLookupCheckBox</sender> + <signal>toggled(bool)</signal> + <receiver>manageCacheGroupBox</receiver> + <slot>setDisabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>62</x> + <y>161</y> + </hint> + <hint type="destinationlabel"> + <x>67</x> + <y>334</y> + </hint> + </hints> + </connection> + </connections> </ui>