You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kmyfirewall/kmyfirewall/ipteditor/kmyfirewallchaineditor.ui

894 lines
44 KiB

<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>KMyFirewallChainEditor</class>
<author>Christian Hubinger</author>
<widget class="TQWidget">
<property name="name">
<cstring>KMyFirewallChainEditor</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>500</width>
<height>572</height>
</rect>
</property>
<property name="caption">
<string>Chain Editor</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>2</number>
</property>
<property name="spacing">
<number>2</number>
</property>
<widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>GroupBox6</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="frameShape">
<enum>GroupBoxPanel</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
</property>
<property name="title">
<string>Chain Properties</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQLayoutWidget" row="0" column="0" rowspan="1" colspan="6">
<property name="name">
<cstring>Layout9</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQLabel">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Working on chain:</string>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>l_chain_name</cstring>
</property>
<property name="font">
<font>
<bold>1</bold>
</font>
</property>
<property name="text">
<string>CHAINNAME</string>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>TextLabel1_2</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>in table:</string>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>l_chain_table</cstring>
</property>
<property name="font">
<font>
<bold>1</bold>
</font>
</property>
<property name="text">
<string>filter</string>
</property>
</widget>
</hbox>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel1_5_2</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<bold>1</bold>
</font>
</property>
<property name="text">
<string>Chain rules:</string>
</property>
</widget>
<widget class="TQLCDNumber" row="1" column="1">
<property name="name">
<cstring>lcd_rules</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="numDigits">
<number>2</number>
</property>
<property name="segmentStyle">
<enum>Flat</enum>
</property>
</widget>
<widget class="TQLabel" row="1" column="2">
<property name="name">
<cstring>TextLabel1_5</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<bold>1</bold>
</font>
</property>
<property name="text">
<string>Chain feeds:</string>
</property>
</widget>
<widget class="TQLCDNumber" row="1" column="3">
<property name="name">
<cstring>lcd_feeds</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="numDigits">
<number>2</number>
</property>
<property name="segmentStyle">
<enum>Flat</enum>
</property>
</widget>
<widget class="TQLabel" row="1" column="4">
<property name="name">
<cstring>TextLabel1_4</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<bold>1</bold>
</font>
</property>
<property name="text">
<string>Chain forwards:</string>
</property>
</widget>
<widget class="TQLCDNumber" row="1" column="5">
<property name="name">
<cstring>lcd_fwds</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="numDigits">
<number>2</number>
</property>
<property name="segmentStyle">
<enum>Flat</enum>
</property>
</widget>
</grid>
</widget>
<widget class="TQLayoutWidget" row="2" column="0">
<property name="name">
<cstring>layout36</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="KPushButton">
<property name="name">
<cstring>kPushButton5</cstring>
</property>
<property name="text">
<string>&amp;Cancel</string>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer9_2</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>110</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="TQPushButton">
<property name="name">
<cstring>b_help</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&amp;Help</string>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer9</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>110</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="TQPushButton">
<property name="name">
<cstring>b_ok</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&amp;Apply</string>
</property>
</widget>
</hbox>
</widget>
<widget class="TQTabWidget" row="1" column="0">
<property name="name">
<cstring>m_tabWidget</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
<attribute name="title">
<string>Policy</string>
</attribute>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>gb_target</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="title">
<string>Configure Default Policy</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout12</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLayoutWidget" row="2" column="0">
<property name="name">
<cstring>layout11</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQComboBox" row="0" column="1">
<property name="name">
<cstring>cb_target</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="insertionPolicy">
<enum>NoInsertion</enum>
</property>
<property name="duplicatesEnabled">
<bool>false</bool>
</property>
</widget>
<widget class="TQCheckBox" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>c_has_default_target</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Define default policy</string>
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel6_2</cstring>
</property>
<property name="font">
<font>
<bold>1</bold>
</font>
</property>
<property name="text">
<string>Please set the default policy for your chain:</string>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
<property name="wordwrap" stdset="0">
</property>
</widget>
</grid>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel1_3</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>User defined chains do not have any "Default Policy" set because the packets return to the chain from which this chain is fed, right after the rule that fed the chain. If you want your user defined chains to act like built-in chains, enable the option "Define Default Policy" and set the policy to your needs.</string>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
<property name="wordwrap" stdset="0">
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel7</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>The Default Policy decides what to do with Packets that do not match any of the rules defined for the Chain.</string>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
<property name="wordwrap" stdset="0">
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
</grid>
</widget>
<widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
<attribute name="title">
<string>Logging</string>
</attribute>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>gb_logging</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>3</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Logging</string>
</property>
<property name="alignment">
<set>AlignVCenter|AlignBottom|AlignTop|AlignLeft</set>
</property>
<property name="hAlign" stdset="0">
</property>
<property name="wordwrap" stdset="0">
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>c_enable_log</cstring>
</property>
<property name="text">
<string>Enable chain drop logging</string>
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>l_logging_2</cstring>
</property>
<property name="text">
<string>Here you can decide whether you would like to log all packets that did not match any rule at the end of the chain.</string>
</property>
<property name="alignment">
<set>WordBreak|AlignTop|AlignLeft</set>
</property>
<property name="vAlign" stdset="0">
</property>
<property name="wordwrap" stdset="0">
</property>
</widget>
<widget class="TQGroupBox" row="2" column="0">
<property name="name">
<cstring>groupBox4</cstring>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="title">
<string></string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQCheckBox" row="2" column="0">
<property name="name">
<cstring>c_log_prefix</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Use a log prefix:</string>
</property>
</widget>
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>t_log_prefix</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maxLength">
<number>29</number>
</property>
<property name="frame">
<bool>true</bool>
</property>
</widget>
<widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>c_log_burst</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Burst limit:</string>
</property>
</widget>
<widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>c_log_limit</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Limit logging: </string>
</property>
</widget>
<widget class="TQSpinBox" row="1" column="1">
<property name="name">
<cstring>sb_burst</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minValue">
<number>1</number>
</property>
<property name="value">
<number>5</number>
</property>
</widget>
<widget class="TQLayoutWidget" row="0" column="1">
<property name="name">
<cstring>layout8</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQSpinBox">
<property name="name">
<cstring>sb_limit</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maxValue">
<number>60</number>
</property>
<property name="minValue">
<number>1</number>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>TextLabel8_2</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>/</string>
</property>
<property name="alignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
<widget class="TQComboBox">
<item>
<property name="text">
<string>second</string>
</property>
</item>
<item>
<property name="text">
<string>minute</string>
</property>
</item>
<item>
<property name="text">
<string>hour</string>
</property>
</item>
<property name="name">
<cstring>cb_interval</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="duplicatesEnabled">
<bool>false</bool>
</property>
</widget>
</hbox>
</widget>
</grid>
</widget>
</grid>
</widget>
</grid>
</widget>
</widget>
</grid>
</widget>
<connections>
<connection>
<sender>c_enable_log</sender>
<signal>toggled(bool)</signal>
<receiver>c_log_limit</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>b_help</sender>
<signal>clicked()</signal>
<receiver>KMyFirewallChainEditor</receiver>
<slot>slotHelp()</slot>
</connection>
<connection>
<sender>b_ok</sender>
<signal>clicked()</signal>
<receiver>KMyFirewallChainEditor</receiver>
<slot>accept()</slot>
</connection>
<connection>
<sender>kPushButton5</sender>
<signal>clicked()</signal>
<receiver>KMyFirewallChainEditor</receiver>
<slot>reject()</slot>
</connection>
<connection>
<sender>c_enable_log</sender>
<signal>toggled(bool)</signal>
<receiver>c_log_burst</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>c_enable_log</sender>
<signal>toggled(bool)</signal>
<receiver>c_log_prefix</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>c_log_limit</sender>
<signal>toggled(bool)</signal>
<receiver>sb_limit</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>c_log_limit</sender>
<signal>toggled(bool)</signal>
<receiver>cb_interval</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>c_log_burst</sender>
<signal>toggled(bool)</signal>
<receiver>sb_burst</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>c_log_prefix</sender>
<signal>toggled(bool)</signal>
<receiver>t_log_prefix</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>c_log_limit</sender>
<signal>toggled(bool)</signal>
<receiver>TextLabel8_2</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>c_enable_log</sender>
<signal>toggled(bool)</signal>
<receiver>groupBox4</receiver>
<slot>setEnabled(bool)</slot>
</connection>
</connections>
<tabstops>
<tabstop>kPushButton5</tabstop>
<tabstop>b_help</tabstop>
<tabstop>b_ok</tabstop>
<tabstop>m_tabWidget</tabstop>
<tabstop>c_has_default_target</tabstop>
<tabstop>cb_target</tabstop>
<tabstop>c_enable_log</tabstop>
<tabstop>c_log_limit</tabstop>
<tabstop>c_log_burst</tabstop>
<tabstop>c_log_prefix</tabstop>
<tabstop>t_log_prefix</tabstop>
<tabstop>sb_burst</tabstop>
<tabstop>sb_limit</tabstop>
<tabstop>cb_interval</tabstop>
</tabstops>
<slots>
<slot>slotHelp()</slot>
<slot>accept()</slot>
<slot>reject()</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">kpushbutton.h</include>
</includes>
</UI>