summaryrefslogtreecommitdiffstats
path: root/src/klamonacc_config.ui
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-02-26 19:34:09 +0200
committerMavridis Philippe <[email protected]>2021-03-03 17:44:31 +0200
commit13cb4a5e7dc1c22d25c51da52156a558be0b7d05 (patch)
treee013fb1be4c88430b4be1ef21acb656c7f91eb5d /src/klamonacc_config.ui
parent8300c80d583320087d844b9f0ad0025d4a60aa10 (diff)
downloadklamav-13cb4a5e7dc1c22d25c51da52156a558be0b7d05.tar.gz
klamav-13cb4a5e7dc1c22d25c51da52156a558be0b7d05.zip
Added On-Access Scanner.
There are still a few TODOs, but it seems to work quite well already. This relates to issue #10. Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/klamonacc_config.ui')
-rw-r--r--src/klamonacc_config.ui253
1 files changed, 253 insertions, 0 deletions
diff --git a/src/klamonacc_config.ui b/src/klamonacc_config.ui
new file mode 100644
index 0000000..97e9fe5
--- /dev/null
+++ b/src/klamonacc_config.ui
@@ -0,0 +1,253 @@
+<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
+<class>KlamOnAccConfig</class>
+<widget class="TQWidget">
+ <property name="name">
+ <cstring>KlamOnAccConfig</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>712</width>
+ <height>647</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Form1</string>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="TQGroupBox">
+ <property name="name">
+ <cstring>GroupScannerOpts</cstring>
+ </property>
+ <property name="title">
+ <string>Scanner Settings</string>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="TQCheckBox">
+ <property name="name">
+ <cstring>kcfg_EnableOnAccess</cstring>
+ </property>
+ <property name="text">
+ <string>Enable &amp;On-Access Scanner</string>
+ </property>
+ <property name="accel">
+ <string>Alt+O</string>
+ </property>
+ </widget>
+ <widget class="TQCheckBox">
+ <property name="name">
+ <cstring>kcfg_ExtraScanning</cstring>
+ </property>
+ <property name="text">
+ <string>Scan Files/Directories When They Are &amp;Created or Moved</string>
+ </property>
+ <property name="accel">
+ <string>Alt+C</string>
+ </property>
+ </widget>
+ <widget class="TQCheckBox">
+ <property name="name">
+ <cstring>kcfg_ExcludeConfDir</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>E&amp;xclude TDE Configuration Directory</string>
+ </property>
+ <property name="accel">
+ <string>Alt+X</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <widget class="TQGroupBox">
+ <property name="name">
+ <cstring>groupBox2</cstring>
+ </property>
+ <property name="title">
+ <string>Limits</string>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="TQLayoutWidget">
+ <property name="name">
+ <cstring>MaxFileHBox</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="TQLabel">
+ <property name="name">
+ <cstring>MaxFileLabel</cstring>
+ </property>
+ <property name="text">
+ <string>Max File Size:</string>
+ </property>
+ </widget>
+ <widget class="TQSpinBox">
+ <property name="name">
+ <cstring>kcfg_OnAccessMaxFile</cstring>
+ </property>
+ <property name="suffix">
+ <string> M</string>
+ </property>
+ <property name="value">
+ <number>5</number>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>MaxFileSpacer</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ </vbox>
+ </widget>
+ <widget class="TQFrame">
+ <property name="name">
+ <cstring>GroupWatchDirs</cstring>
+ </property>
+ <property name="frameShape">
+ <enum>StyledPanel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>Raised</enum>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <spacer>
+ <property name="name">
+ <cstring>WatchDirsSpacerLeft</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="TQPushButton">
+ <property name="name">
+ <cstring>SetUpWatchDirs</cstring>
+ </property>
+ <property name="text">
+ <string>Set up &amp;Directories to Watch</string>
+ </property>
+ <property name="accel">
+ <string>Alt+D</string>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>WatchDirsSpacerRight</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget class="TQTextEdit">
+ <property name="name">
+ <cstring>textEdit1</cstring>
+ </property>
+ <property name="text">
+ <string>&lt;html&gt;&lt;head&gt;&lt;meta name="qrichtext" content="1" /&gt;&lt;/head&gt;&lt;body style="font-size:12pt;font-family:Arial"&gt;
+&lt;p align="center"&gt;&lt;span style="font-weight:600;text-decoration:underline;color:#ff0000"&gt;Warning!&lt;/span&gt; This function is experimental. Use with caution.&lt;/p&gt;
+&lt;p&gt;The &lt;span style="font-weight:600"&gt;On-Access Scanner&lt;/span&gt; can scan files and directories as you open them, or even as you create them.&lt;/p&gt;
+&lt;p&gt;This function requires the &lt;span style="font-style:italic"&gt;ClamAV Daemon&lt;/span&gt; to be already running in the background and requires root permissions to start.&lt;/p&gt;
+&lt;/body&gt;&lt;/html&gt;
+</string>
+ </property>
+ <property name="wordWrap">
+ <enum>WidgetWidth</enum>
+ </property>
+ </widget>
+ </vbox>
+</widget>
+<connections>
+ <connection>
+ <sender>SetUpWatchDirs</sender>
+ <signal>clicked()</signal>
+ <receiver>KlamOnAccConfig</receiver>
+ <slot>reconfigurePaths()</slot>
+ </connection>
+ <connection>
+ <sender>kcfg_ExtraScanning</sender>
+ <signal>clicked()</signal>
+ <receiver>KlamOnAccConfig</receiver>
+ <slot>slotSettingsChanged()</slot>
+ </connection>
+ <connection>
+ <sender>kcfg_ExcludeConfDir</sender>
+ <signal>clicked()</signal>
+ <receiver>KlamOnAccConfig</receiver>
+ <slot>slotSettingsChanged()</slot>
+ </connection>
+ <connection>
+ <sender>kcfg_OnAccessMaxFile</sender>
+ <signal>valueChanged(const TQString&amp;)</signal>
+ <receiver>KlamOnAccConfig</receiver>
+ <slot>slotSettingsChanged()</slot>
+ </connection>
+</connections>
+<includes>
+ <include location="local" impldecl="in implementation">klamonacc_config.ui.h</include>
+</includes>
+<variables>
+ <variable>bool restart;</variable>
+</variables>
+<signals>
+ <signal>directoriesModified()</signal>
+</signals>
+<slots>
+ <slot>reconfigurePaths()</slot>
+ <slot access="private">slotSettingsChanged()</slot>
+ <slot>slotSettingsApplied()</slot>
+</slots>
+<functions>
+ <function returnType="bool">needsRestart()</function>
+</functions>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>