From 9da9a8fb53059a380967cddd903967ab4113922e Mon Sep 17 00:00:00 2001 From: Vadim Kurland Date: Sun, 6 Jul 2008 21:34:25 +0000 Subject: [PATCH] icons for Policy NAT Routing --- src/gui/Icons/nat_16.png | Bin 0 -> 311 bytes src/gui/Icons/nat_25.png | Bin 0 -> 349 bytes src/gui/Icons/ruleset_16.png | Bin 0 -> 200 bytes src/gui/Icons/ruleset_25.png | Bin 0 -> 300 bytes src/gui/MainRes.qrc | 10 ++++++ src/gui/ObjectManipulator.cpp | 65 ++++++++++++++++++++++------------ 6 files changed, 53 insertions(+), 22 deletions(-) create mode 100644 src/gui/Icons/nat_16.png create mode 100644 src/gui/Icons/nat_25.png create mode 100644 src/gui/Icons/ruleset_16.png create mode 100644 src/gui/Icons/ruleset_25.png diff --git a/src/gui/Icons/nat_16.png b/src/gui/Icons/nat_16.png new file mode 100644 index 0000000000000000000000000000000000000000..1bb56f8b58b3db78af04fdead1ed0c54ddb51a41 GIT binary patch literal 311 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Jl0 z7BU>Uk^H*?D8gCb5n0T@z%2~Ij105pNB{-dOFVsD*>AA3iOQ>A_s?|z3T^jvaSX9I zot&^hz`*I{|CCqB35|v_;&P6Gg>Au%=brulJ=gK;b#FExX#4xoEW-DXKTlaq#S?pG z=EMI_PFDYa{B_gqoJR%QKHOi=0|HL<`xCZG<}v6kw{=WfTs`@PK>`pM{QTEoBYxni zq=bYWCzsKOhei)3FHnel$&klz|Mzzm(d5l396KLu-eACd`1W>@9SrR@XBgc0`T4)_ veC=**Y~(#$b3{ut%&FG|KGBG8yinf zR$tu0#l6eBqsTDL=3(ghrgb-};<#SM&7OX!z$BBeaGHUEL4t-GztF?|@qs^_>h}wj zFduy2#6L^@#^kR89C}#{n}Wn$4}SFwn4oy(&YU$5qDnuhFw1W|xb@W&&s%Kb_kVv+ zk^BUd{dQ2)O@YO&xqIKiuaOZm8o$4d-jg*$gE!wvEI`-KV`Iz3!-pT+>*^$`gp^KV kE-EgT)HG@cC_2izopr09U1fO8@`> literal 0 HcmV?d00001 diff --git a/src/gui/Icons/ruleset_16.png b/src/gui/Icons/ruleset_16.png new file mode 100644 index 0000000000000000000000000000000000000000..0ac97ea33ca9ce4cabcf628f3fbf602f1db5c787 GIT binary patch literal 200 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^K$w z2r>xnc^vp1D8gCb5n0T@z%2~Ij105pNB{-dOFVsD*>AA3iAqbby0%sVg*-f6978Nl zCnqcrFmQVLKjl?&LZjio|LW&>+}zyOJo?{x@W0}=Kl5!WKhD`^Dzf7Jyxu~e<^5x6Ae$RT>{3<{8$vgg!iHY%=HEZN7qce7YTzu&}P@ji~ zM|^yoW5bQ2o?r4hUs>2c1us17P`j3m=Ro+1my(9t{{R0U)bL$SNe!sD-$&{g$l{V9 zzhDN3XE)M7oFs2|7lsa2Sq~tGv%n*=n1O*?7=#%aX3dcR3bL1Y`ns~;U}qDtHdwMP zSqvy-;pyTSqH#VsL4lhifni4vkCcGG5#7U0S4~nRB^^Z?bd0m4rur&hlT&CoX~2=h iFoTDg+v>plB@Bz#DeMXUx@{)V3Icons/user-ref_25.png Icons/user_16.png Icons/user_25.png + + Icons/ruleset_25.png + Icons/ruleset_16.png + + Icons/nat_25.png + Icons/nat_16.png + + Icons/ruleset_25.png + Icons/ruleset_16.png + Icons/stop.png Icons/uncheck.png Icons/undo.png diff --git a/src/gui/ObjectManipulator.cpp b/src/gui/ObjectManipulator.cpp index f123e368a..144b4b412 100644 --- a/src/gui/ObjectManipulator.cpp +++ b/src/gui/ObjectManipulator.cpp @@ -158,33 +158,54 @@ ObjectManipulator::ObjectManipulator( QWidget *parent): QMenu* newObjectPopup = new QMenu( this ); - newObjectPopup->addAction(QIcon(icon_path+Library::TYPENAME+"/icon-tree"), tr( "New &Library" ), this, SLOT( newLibrary() )); + newObjectPopup->addAction(QIcon(icon_path+Library::TYPENAME+"/icon-tree"), tr( "New &Library"), this, SLOT( newLibrary() )); newObjectPopup->addSeparator(); - newObjectPopup->addAction(QIcon(icon_path+Firewall::TYPENAME+"/icon-tree"), tr( "New Firewall" ), this, SLOT( newFirewall() )); - newObjectPopup->addAction(QIcon(icon_path+Host::TYPENAME+"/icon-tree"), tr( "New Host" ), this, SLOT( newHost() )); - newObjectPopup->addAction(QIcon(icon_path+Interface::TYPENAME+"/icon-tree"), tr( "New Interface" ), this, SLOT( newInterface() )); - newObjectPopup->addAction(QIcon(icon_path+Network::TYPENAME+"/icon-tree"), tr( "New Network" ), this, SLOT( newNetwork() )); - newObjectPopup->addAction(QIcon(icon_path+NetworkIPv6::TYPENAME+"/icon-tree"), tr( "New Network IPv6" ), this, SLOT( newNetworkIPv6() )); - newObjectPopup->addAction(QIcon(icon_path+IPv4::TYPENAME+"/icon-tree"), tr( "New Address" ), this, SLOT( newAddress() )); - newObjectPopup->addAction(QIcon(icon_path+IPv6::TYPENAME+"/icon-tree"), tr( "New Address IPv6" ), this, SLOT( newAddressIPv6() )); - newObjectPopup->addAction(QIcon(icon_path+DNSName::TYPENAME+"/icon-tree"), tr( "New DNS Name" ), this, SLOT( newDNSName() )); - newObjectPopup->addAction(QIcon(icon_path+AddressTable::TYPENAME+"/icon-tree"), tr( "New Address Table" ), this, SLOT( newAddressTable() )); - newObjectPopup->addAction(QIcon(icon_path+AddressRange::TYPENAME+"/icon-tree"), tr( "New Address Range" ), this, SLOT( newAddressRange() )); - newObjectPopup->addAction(QIcon(icon_path+ObjectGroup::TYPENAME+"/icon-tree"), tr( "New Object Group" ), this, SLOT( newObjectGroup() )); + newObjectPopup->addAction(QIcon(icon_path+Firewall::TYPENAME+"/icon-tree"), + tr("New Firewall"), this, SLOT( newFirewall())); + newObjectPopup->addAction(QIcon(icon_path+Host::TYPENAME+"/icon-tree"), + tr("New Host"), this, SLOT( newHost() )); + newObjectPopup->addAction(QIcon(icon_path+Interface::TYPENAME+"/icon-tree"), + tr("New Interface"), this, SLOT(newInterface())); + newObjectPopup->addAction(QIcon(icon_path+Network::TYPENAME+"/icon-tree"), + tr("New Network"), this, SLOT( newNetwork() )); + newObjectPopup->addAction(QIcon(icon_path+NetworkIPv6::TYPENAME+"/icon-tree"), + tr("New Network IPv6"), this, SLOT(newNetworkIPv6() )); + newObjectPopup->addAction(QIcon(icon_path+IPv4::TYPENAME+"/icon-tree"), + tr("New Address"), this, SLOT(newAddress() )); + newObjectPopup->addAction(QIcon(icon_path+IPv6::TYPENAME+"/icon-tree"), + tr("New Address IPv6"), this, SLOT(newAddressIPv6() )); + newObjectPopup->addAction(QIcon(icon_path+DNSName::TYPENAME+"/icon-tree"), + tr("New DNS Name"), this, SLOT(newDNSName() )); + newObjectPopup->addAction(QIcon(icon_path+AddressTable::TYPENAME+"/icon-tree"), + tr("New Address Table"), this, SLOT(newAddressTable() )); + newObjectPopup->addAction(QIcon(icon_path+AddressRange::TYPENAME+"/icon-tree"), + tr("New Address Range"), this, SLOT(newAddressRange() )); + newObjectPopup->addAction(QIcon(icon_path+ObjectGroup::TYPENAME+"/icon-tree"), + tr("New Object Group"), this, SLOT(newObjectGroup() )); newObjectPopup->addSeparator(); - newObjectPopup->addAction(QIcon(icon_path+CustomService::TYPENAME+"/icon-tree"), tr( "New Custom Service" ), this, SLOT( newCustom() )); - newObjectPopup->addAction(QIcon(icon_path+IPService::TYPENAME+"/icon-tree"), tr( "New IP Service" ), this, SLOT( newIP() )); - newObjectPopup->addAction(QIcon(icon_path+ICMPService::TYPENAME+"/icon-tree"), tr( "New ICMP Service" ), this, SLOT( newICMP() )); - newObjectPopup->addAction(QIcon(icon_path+ICMP6Service::TYPENAME+"/icon-tree"), tr( "New ICMP6 Service" ), this, SLOT( newICMP6() )); - newObjectPopup->addAction(QIcon(icon_path+TCPService::TYPENAME+"/icon-tree"), tr( "New TCP Serivce" ), this, SLOT( newTCP() )); - newObjectPopup->addAction(QIcon(icon_path+UDPService::TYPENAME+"/icon-tree"), tr( "New UDP Service" ), this, SLOT( newUDP() )); - newObjectPopup->addAction(QIcon(icon_path+TagService::TYPENAME+"/icon-tree"), tr( "New TagService" ), this, SLOT( newTagService() )); - newObjectPopup->addAction(QIcon(icon_path+UserService::TYPENAME+"/icon-tree"), tr( "New User Service" ), this, SLOT( newUserService() )); - newObjectPopup->addAction(QIcon(icon_path+ServiceGroup::TYPENAME+"/icon-tree"), tr( "New Service Group" ), this, SLOT( newServiceGroup() )); + newObjectPopup->addAction(QIcon(icon_path+CustomService::TYPENAME+"/icon-tree"), + tr("New Custom Service"), this, SLOT(newCustom() )); + newObjectPopup->addAction(QIcon(icon_path+IPService::TYPENAME+"/icon-tree"), + tr("New IP Service"), this, SLOT(newIP() )); + newObjectPopup->addAction(QIcon(icon_path+ICMPService::TYPENAME+"/icon-tree"), + tr("New ICMP Service"), this, SLOT(newICMP() )); + newObjectPopup->addAction(QIcon(icon_path+ICMP6Service::TYPENAME+"/icon-tree"), + tr("New ICMP6 Service"), this, SLOT(newICMP6() )); + newObjectPopup->addAction(QIcon(icon_path+TCPService::TYPENAME+"/icon-tree"), + tr("New TCP Serivce"), this, SLOT(newTCP() )); + newObjectPopup->addAction(QIcon(icon_path+UDPService::TYPENAME+"/icon-tree"), + tr("New UDP Service"), this, SLOT(newUDP() )); + newObjectPopup->addAction(QIcon(icon_path+TagService::TYPENAME+"/icon-tree"), + tr("New TagService"), this, SLOT(newTagService() )); + newObjectPopup->addAction(QIcon(icon_path+UserService::TYPENAME+"/icon-tree"), + tr("New User Service"), this, SLOT(newUserService() )); + newObjectPopup->addAction(QIcon(icon_path+ServiceGroup::TYPENAME+"/icon-tree"), + tr("New Service Group"), this, SLOT(newServiceGroup() )); newObjectPopup->addSeparator(); - newObjectPopup->addAction(QIcon(icon_path+Interval::TYPENAME+"/icon-tree"), tr( "New Time Interval" ), this, SLOT( newInterval() )); + newObjectPopup->addAction(QIcon(icon_path+Interval::TYPENAME+"/icon-tree"), + tr( "New Time Interval"), this, SLOT( newInterval() )); // QToolButton *btn = (QToolButton*)toolBar->child("newObjectAction_action_button");