mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-14 00:49:09 +02:00
bugfix 2612
This commit is contained in:
@@ -1052,9 +1052,18 @@ QAction *movID;
|
|||||||
|
|
||||||
if ( (Firewall::isA(currentObj) || Host::isA(currentObj)) &&
|
if ( (Firewall::isA(currentObj) || Host::isA(currentObj)) &&
|
||||||
! currentObj->isReadOnly() )
|
! currentObj->isReadOnly() )
|
||||||
|
{
|
||||||
newID1=popup->addAction( tr("Add Interface"), this ,
|
newID1=popup->addAction( tr("Add Interface"), this ,
|
||||||
SLOT( newInterface() ) );
|
SLOT( newInterface() ) );
|
||||||
|
|
||||||
|
}
|
||||||
|
if ((Firewall::isA(currentObj) &&! currentObj->isReadOnly()))
|
||||||
|
{
|
||||||
|
newID1=popup->addAction( tr("Add Policy Rule Set"), this ,
|
||||||
|
SLOT( newPolicyRuleSet() ) );
|
||||||
|
newID1=popup->addAction( tr("Add NAT Rule Set"), this ,
|
||||||
|
SLOT( newNATRuleSet() ) );
|
||||||
|
}
|
||||||
if (Interface::isA(currentObj) && ! currentObj->isReadOnly())
|
if (Interface::isA(currentObj) && ! currentObj->isReadOnly())
|
||||||
{
|
{
|
||||||
newID1=popup->addAction( tr("Add IP Address"), this ,
|
newID1=popup->addAction( tr("Add IP Address"), this ,
|
||||||
@@ -2788,6 +2797,31 @@ void ObjectManipulator::newLibrary()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ObjectManipulator::newPolicyRuleSet ()
|
||||||
|
{
|
||||||
|
if ( currentObj->isReadOnly() ) return;
|
||||||
|
FWObject *o=createObject(currentObj,Policy::TYPENAME,tr("New Policy"));
|
||||||
|
if (o!=NULL)
|
||||||
|
{
|
||||||
|
openObject(o);
|
||||||
|
editObject(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void ObjectManipulator::newNATRuleSet ()
|
||||||
|
{
|
||||||
|
if ( currentObj->isReadOnly() ) return;
|
||||||
|
FWObject *o=createObject(currentObj,NAT::TYPENAME,tr("New NAT"));
|
||||||
|
if (o!=NULL)
|
||||||
|
{
|
||||||
|
openObject(o);
|
||||||
|
editObject(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void ObjectManipulator::newFirewall()
|
void ObjectManipulator::newFirewall()
|
||||||
{
|
{
|
||||||
// QVector <ObjectManipulator*> oms = getAllMdiObjectManipulators();
|
// QVector <ObjectManipulator*> oms = getAllMdiObjectManipulators();
|
||||||
@@ -2968,6 +3002,7 @@ void ObjectManipulator::newAddressTable()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ObjectManipulator::newInterfaceAddress()
|
void ObjectManipulator::newInterfaceAddress()
|
||||||
{
|
{
|
||||||
if ( currentObj->isReadOnly() ) return;
|
if ( currentObj->isReadOnly() ) return;
|
||||||
|
|||||||
@@ -195,7 +195,8 @@ public slots:
|
|||||||
void newServiceGroup();
|
void newServiceGroup();
|
||||||
|
|
||||||
void newInterval();
|
void newInterval();
|
||||||
|
void newPolicyRuleSet ();
|
||||||
|
void newNATRuleSet ();
|
||||||
void duplicateObj(QAction*);
|
void duplicateObj(QAction*);
|
||||||
void duplicateObjUnderSameParent();
|
void duplicateObjUnderSameParent();
|
||||||
void moveObj(QAction*);
|
void moveObj(QAction*);
|
||||||
|
|||||||
Reference in New Issue
Block a user