+
AlignBottom
diff --git a/kmyfirewall/installer/kmfinstallerplugin.cpp b/kmyfirewall/installer/kmfinstallerplugin.cpp
index 4e05c92..e29acd1 100644
--- a/kmyfirewall/installer/kmfinstallerplugin.cpp
+++ b/kmyfirewall/installer/kmfinstallerplugin.cpp
@@ -130,16 +130,16 @@ bool KMFInstallerPlugin::isConfigValid() {
if ( ! configValid ) {
if( KMessageBox::questionYesNo ( 0,
- i18n( "Do you want KMyFirewall to try to auto configure %1 settings
" ).tqarg( rulesetDoc()->target()->toFriendlyString() ),
+ i18n( "Do you want KMyFirewall to try to auto configure %1 settings
" ).arg( rulesetDoc()->target()->toFriendlyString() ),
i18n( "Auto Configure Target" ), KStdGuiItem::yes(), KStdGuiItem::no() ) == KMessageBox::Yes ) {
KMFError* err = rulesetDoc()->target()->tryAutoConfiguration();
KMFErrorHandler* errH = new KMFErrorHandler( "Target Autoconfiguration" );
errH->showError( err );
if ( ! rulesetDoc()->target()->config()->isValid() ) {
- KMessageBox::error( KApplication::kApplication()->mainWidget(), i18n("Auto Confguration of: %1 could not determinate all needed setting. You'll need to configure the mmissing settings.
").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+ KMessageBox::error( KApplication::kApplication()->mainWidget(), i18n("Auto Confguration of: %1 could not determinate all needed setting. You'll need to configure the mmissing settings.
").arg( rulesetDoc()->target()->toFriendlyString() ) );
} else {
- KMessageBox::information( KApplication::kApplication()->mainWidget(), i18n("Auto Confguration of: %1 finished successfully.
").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+ KMessageBox::information( KApplication::kApplication()->mainWidget(), i18n("Auto Confguration of: %1 finished successfully.
").arg( rulesetDoc()->target()->toFriendlyString() ) );
}
configValid = rulesetDoc()->target()->config()->isValid();
@@ -368,7 +368,7 @@ void KMFInstallerPlugin::slotGenerateInstallerPackage() {
if ( KIO::NetAccess::exists( url, false, KApplication::kApplication()->mainWidget() ) ) {
answer = KMessageBox::warningYesNo( 0, i18n( "File %1 already exists!"
- "Overwrite the existing file?
" ).tqarg( url.url() ) );
+ "Overwrite the existing file?
" ).arg( url.url() ) );
if ( answer == KMessageBox::No ) {
return;
}
diff --git a/kmyfirewall/installer/linux/kmfiptinstaller.cpp b/kmyfirewall/installer/linux/kmfiptinstaller.cpp
index 80912b6..f519687 100644
--- a/kmyfirewall/installer/linux/kmfiptinstaller.cpp
+++ b/kmyfirewall/installer/linux/kmfiptinstaller.cpp
@@ -148,7 +148,7 @@ void KMFIPTInstaller::slotJobFinished( bool ok, const TQString& cmd_name ) {
KMessageBox::error( 0, msg, cap );
} /*else if ( !ok ) {
const TQString & msg = i18n( "Execution of %1 failed"
- "
Click OK to check your configuration and make sure you are logged in as root" ).tqarg( cmd_name );
+ "
Click OK to check your configuration and make sure you are logged in as root" ).arg( cmd_name );
const TQString& cap = "KMFIPTInstaller";
KMessageBox::error( 0, msg, cap );
}*/
@@ -207,7 +207,7 @@ void KMFIPTInstaller::cmdRunFW() {
TQString cmd = "bash " + temp_file->name() + " -v start";
// KProcessWrapper::instance()->slotStartLocalJob( "startfirewall", cmd, true, true );
setOutputWidget( execWidget() );
- execWidget()->runCmd( cmd, Constants::StartFirewallJob_Name, i18n("Start Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ), true );
+ execWidget()->runCmd( cmd, Constants::StartFirewallJob_Name, i18n("Start Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ), true );
showOutput();
checkStatus();
} else {
@@ -233,7 +233,7 @@ void KMFIPTInstaller::cmdRunFW() {
"
iptables -t mangle -P OUTPUT ACCEPT "
"iptables -t mangle -P FORWARD ACCEPT "
"iptables -t mangle -P PREROUTING ACCEPT "
- "iptables -t mangle -P POSTROUTING ACCEPT " ).tqarg(rulesetDoc()->target()->toFriendlyString() ),
+ "iptables -t mangle -P POSTROUTING ACCEPT " ).arg(rulesetDoc()->target()->toFriendlyString() ),
i18n( "Install Firewall" ), KStdGuiItem::yes(), KStdGuiItem::no(), "output_run_fw_remote" ) != KMessageBox::Yes
) {
return;
@@ -241,7 +241,7 @@ void KMFIPTInstaller::cmdRunFW() {
setOutputWidget( execWidget() );
- execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+ execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
showOutput();
generateInstallerPackage( rulesetDoc()->target() );
@@ -255,7 +255,7 @@ void KMFIPTInstaller::cmdRunFW() {
}
setOutputWidget( execWidget() );
- execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Start Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+ execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Start Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
showOutput();
checkStatus();
}
@@ -272,7 +272,7 @@ void KMFIPTInstaller::cmdStopFW() {
}
if( KMessageBox::questionYesNo ( 0 , i18n( "Are you sure you want to stop the firewall on %1?"
- "
This will leave the computer unprotected!
" ).tqarg(rulesetDoc()->target()->toFriendlyString() ),
+ "This will leave the computer unprotected!
" ).arg(rulesetDoc()->target()->toFriendlyString() ),
i18n( "Install Firewall" ), KStdGuiItem::yes(), KStdGuiItem::no(), "output_stop_fw_remote" ) != KMessageBox::Yes
) {
return;
@@ -283,13 +283,13 @@ void KMFIPTInstaller::cmdStopFW() {
TQString cmd = "bash " + file + " -v stop";
setOutputWidget( execWidget() );
- execWidget()->runCmd( cmd, Constants::StopFirewallJob_Name, i18n("Stop Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ), true );
+ execWidget()->runCmd( cmd, Constants::StopFirewallJob_Name, i18n("Stop Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ), true );
showOutput();
checkStatus();
} else {
setOutputWidget( execWidget() );
- execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+ execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
showOutput();
generateInstallerPackage( rulesetDoc()->target() );
@@ -303,7 +303,7 @@ void KMFIPTInstaller::cmdStopFW() {
}
setOutputWidget( execWidget() );
- execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Stop Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+ execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Stop Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
showOutput();
checkStatus();
}
@@ -324,12 +324,12 @@ void KMFIPTInstaller::cmdShowRunningConfig( const TQString& para ) {
if( rulesetDoc()->target()->isLocalExecuteTarget() ) {
// KProcessWrapper::instance()->slotStartLocalJob( "show_config", cmd, true, true );
setOutputWidget( execWidget() );
- execWidget()->runCmd( cmd,Constants::ShowConfigJob_Name, i18n("Show Table %1 on %2").tqarg( para ).tqarg( rulesetDoc()->target()->toFriendlyString() ), true );
+ execWidget()->runCmd( cmd,Constants::ShowConfigJob_Name, i18n("Show Table %1 on %2").arg( para ).arg( rulesetDoc()->target()->toFriendlyString() ), true );
showOutput();
} else {
setOutputWidget( execWidget() );
- execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+ execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
showOutput();
KProcessWrapper::instance()->slotStartRemoteJob( Constants::ShowConfigJob_Name, cmd, rulesetDoc()->target() );
@@ -340,7 +340,7 @@ void KMFIPTInstaller::cmdShowRunningConfig( const TQString& para ) {
}
setOutputWidget( execWidget() );
- execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Show Table %1 on %2").tqarg( para ).tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+ execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Show Table %1 on %2").arg( para ).arg( rulesetDoc()->target()->toFriendlyString() ) );
showOutput();
}
}
@@ -354,7 +354,7 @@ void KMFIPTInstaller::cmdInstallFW() {
if( KMessageBox::questionYesNo ( 0 , i18n( "Are you sure you want to install the firewall on %1?"
"
This will add the scripts to your init system that are required to "
"start your firewall during bootup."
- "
Please make sure that the firewall runs properly before you install it." ).tqarg( rulesetDoc()->target()->toFriendlyString() ),
+ "
Please make sure that the firewall runs properly before you install it." ).arg( rulesetDoc()->target()->toFriendlyString() ),
i18n( "Install Firewall" ), KStdGuiItem::yes(), KStdGuiItem::no(), "output_view_install_fw" ) != KMessageBox::Yes ) {
return;
}
@@ -379,11 +379,11 @@ void KMFIPTInstaller::cmdInstallFW() {
"
File: %2"
"File: %3"
"Link: %4 -> %5" )
- .tqarg( "/etc/kmyfirewall" )
- .tqarg( "/etc/kmyfirewall/kmyfirewall.sh" )
- .tqarg( conf->IPTPath() + "/kmyfirewall" )
- .tqarg( conf->rcDefaultPath() + "/kmyfirewall" )
- .tqarg( conf->initPath() + "/kmyfirewall" );
+ .arg( "/etc/kmyfirewall" )
+ .arg( "/etc/kmyfirewall/kmyfirewall.sh" )
+ .arg( conf->IPTPath() + "/kmyfirewall" )
+ .arg( conf->rcDefaultPath() + "/kmyfirewall" )
+ .arg( conf->initPath() + "/kmyfirewall" );
TQString cap = i18n( "Install Firewall" );
KMessageBox::information( 0, msg, cap, "created_install_files", 0 );
} else if ( conf->oS() == "linux" ) {
@@ -393,13 +393,13 @@ void KMFIPTInstaller::cmdInstallFW() {
"File: %3"
"Link: %4 -> %5"
"Link: %6 -> %7" )
- .tqarg( "/etc/kmyfirewall" )
- .tqarg( "/etc/kmyfirewall/kmyfirewall.sh" )
- .tqarg( conf->initPath() + "/kmyfirewall" )
- .tqarg( conf->rcDefaultPath() + "/S99kmyfirewall" )
- .tqarg( conf->initPath() + "/kmyfirewall" )
- .tqarg( conf->rcDefaultPath() + "/K01kmyfirewall" )
- .tqarg( conf->initPath() + "/kmyfirewall" );
+ .arg( "/etc/kmyfirewall" )
+ .arg( "/etc/kmyfirewall/kmyfirewall.sh" )
+ .arg( conf->initPath() + "/kmyfirewall" )
+ .arg( conf->rcDefaultPath() + "/S99kmyfirewall" )
+ .arg( conf->initPath() + "/kmyfirewall" )
+ .arg( conf->rcDefaultPath() + "/K01kmyfirewall" )
+ .arg( conf->initPath() + "/kmyfirewall" );
TQString cap = i18n( "Install Firewall" );
KMessageBox::information( 0, msg, cap, "created_install_files", 0 );
}
@@ -424,12 +424,12 @@ void KMFIPTInstaller::cmdInstallFW() {
TQString cmd = "bash " + installscript + " install " + systemtype + " " + conf->initPath() + " " + conf->rcDefaultPath() + " " + initscript + " " + fwscript;
setOutputWidget( execWidget() );
- execWidget()->runCmd( cmd, Constants::InstallFirewallJob_Name, i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ), true );
+ execWidget()->runCmd( cmd, Constants::InstallFirewallJob_Name, i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ), true );
showOutput();
checkStatus();
} else {
setOutputWidget( execWidget() );
- execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+ execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
showOutput();
generateInstallerPackage( rulesetDoc()->target() );
@@ -443,7 +443,7 @@ void KMFIPTInstaller::cmdInstallFW() {
}
setOutputWidget( execWidget() );
- execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+ execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
showOutput();
checkStatus();
}
@@ -456,7 +456,7 @@ void KMFIPTInstaller::cmdUninstallFW() {
KMFTargetConfig *conf = rulesetDoc()->target()->config();
if ( KMessageBox::questionYesNo ( 0 , i18n( "Are you sure you want to uninstall the firewall from %1?
"
- "The firewall will no longer start up during boot." ).tqarg( rulesetDoc()->target()->toFriendlyString() ),
+ "The firewall will no longer start up during boot." ).arg( rulesetDoc()->target()->toFriendlyString() ),
i18n( "Uninstall Firewall" ), KStdGuiItem::yes(), KStdGuiItem::no(), "output_view_uninstall_fw" ) != KMessageBox::Yes ) {
return;
}
@@ -482,11 +482,11 @@ void KMFIPTInstaller::cmdUninstallFW() {
"
File: %2"
"File: %3"
"Link: %4 -> %5" )
- .tqarg( "/etc/kmyfirewall" )
- .tqarg( "/etc/kmyfirewall/kmyfirewall.sh" )
- .tqarg( conf->initPath() + "/kmyfirewall" )
- .tqarg( conf->rcDefaultPath() + "/kmyfirewall" )
- .tqarg( conf->initPath() + "/kmyfirewall" );
+ .arg( "/etc/kmyfirewall" )
+ .arg( "/etc/kmyfirewall/kmyfirewall.sh" )
+ .arg( conf->initPath() + "/kmyfirewall" )
+ .arg( conf->rcDefaultPath() + "/kmyfirewall" )
+ .arg( conf->initPath() + "/kmyfirewall" );
TQString cap = i18n( "Uninstall Firewall" );
KMessageBox::information( 0, msg, cap, "removed_uninstall_files", 0 );
} else if ( conf->oS() == "linux" ) {
@@ -496,13 +496,13 @@ void KMFIPTInstaller::cmdUninstallFW() {
"File: %3"
"Link: %4 -> %5"
"Link: %6 -> %7" )
- .tqarg( "/etc/kmyfirewall" )
- .tqarg( "/etc/kmyfirewall/kmyfirewall.sh" )
- .tqarg( conf->initPath() + "/kmyfirewall" )
- .tqarg( conf->rcDefaultPath() + "/S99kmyfirewall" )
- .tqarg( conf->initPath() + "/kmyfirewall" )
- .tqarg( conf->rcDefaultPath() + "/K01kmyfirewall" )
- .tqarg( conf->initPath() + "/kmyfirewall" );
+ .arg( "/etc/kmyfirewall" )
+ .arg( "/etc/kmyfirewall/kmyfirewall.sh" )
+ .arg( conf->initPath() + "/kmyfirewall" )
+ .arg( conf->rcDefaultPath() + "/S99kmyfirewall" )
+ .arg( conf->initPath() + "/kmyfirewall" )
+ .arg( conf->rcDefaultPath() + "/K01kmyfirewall" )
+ .arg( conf->initPath() + "/kmyfirewall" );
TQString cap = i18n( "Uninstall Firewall" );
KMessageBox::information( 0, msg, cap, "removed_uninstall_files", 0 );
}
@@ -519,13 +519,13 @@ void KMFIPTInstaller::cmdUninstallFW() {
// KProcessWrapper::instance()->slotStartLocalJob( "uninstallfirewall", cmd, true, true );
setOutputWidget( execWidget() );
- execWidget()->runCmd( cmd, Constants::UninstallFirewallJob_Name, i18n("Uninstall Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ), true );
+ execWidget()->runCmd( cmd, Constants::UninstallFirewallJob_Name, i18n("Uninstall Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ), true );
showOutput();
checkStatus();
} else {
setOutputWidget( execWidget() );
- execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+ execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
showOutput();
generateInstallerPackage( rulesetDoc()->target() );
@@ -539,7 +539,7 @@ void KMFIPTInstaller::cmdUninstallFW() {
}
setOutputWidget( execWidget() );
- execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Uninstall Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+ execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Uninstall Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
showOutput();
checkStatus();
}
@@ -571,7 +571,7 @@ void KMFIPTInstaller::cmdUninstallFW() {
//
// return;
// } else {
-// KMessageBox::sorry( 0, i18n( "Input file %1 could not be opened." ).tqarg( file ), i18n( "Output Viewer" ) );
+// KMessageBox::sorry( 0, i18n( "Input file %1 could not be opened." ).arg( file ), i18n( "Output Viewer" ) );
// }
// } else {
// KMessageBox::sorry( 0, i18n( "Unable to find input file" ), i18n( "Output Viewer" ) );
@@ -772,7 +772,7 @@ TQStringList lines;
source_file.close();
} else {
m_err->setErrType( KMFError::NORMAL );
- const TQString& msg = i18n( "Opening file for %1 reading failed." ).tqarg( source_file_path );
+ const TQString& msg = i18n( "
Opening file for %1 reading failed." ).arg( source_file_path );
m_err->setErrMsg( msg );
}
@@ -794,7 +794,7 @@ TQStringList lines;
target_file.close();
} else {
m_err->setErrType( KMFError::NORMAL );
- const TQString& msg = i18n( "
Opening file for %1 writing failed." ).tqarg( target_file_path );
+ const TQString& msg = i18n( "
Opening file for %1 writing failed." ).arg( target_file_path );
m_err->setErrMsg( msg );
}
}
@@ -823,7 +823,7 @@ void KMFIPTInstaller::parseFileHeaders( const TQString& source_file_path, const
source_file.close();
} else {
m_err->setErrType( KMFError::NORMAL );
- const TQString& msg = i18n( "
Opening file for %1 reading failed." ).tqarg( source_file_path );
+ const TQString& msg = i18n( "
Opening file for %1 reading failed." ).arg( source_file_path );
m_err->setErrMsg( msg );
}
@@ -847,7 +847,7 @@ void KMFIPTInstaller::parseFileHeaders( const TQString& source_file_path, const
target_file.close();
} else {
m_err->setErrType( KMFError::NORMAL );
- const TQString& msg = i18n( "
Opening file for %1 writing failed." ).tqarg( target_file_path );
+ const TQString& msg = i18n( "
Opening file for %1 writing failed." ).arg( target_file_path );
m_err->setErrMsg( msg );
}
}
@@ -927,7 +927,7 @@ void KMFIPTInstaller::generateInstallerPackage( KMFTarget* target, const KURL& p
"
Please check your installation. Usually this script is installed in "
"$TDEDIR/share/apps/kmyfirewall/scripts/installer/%1"
"
Unable to install the firewall without this script."
- ).tqarg(target->config()->oS());
+ ).arg(target->config()->oS());
TQString cap = "KMFIPTInstaller";
KMessageBox::error( 0, msg, cap );
return;
@@ -944,7 +944,7 @@ void KMFIPTInstaller::generateInstallerPackage( KMFTarget* target, const KURL& p
"
Please check your installation. Usually this script is installed in "
"$TDEDIR/share/apps/kmyfirewall/scripts/installer/%1"
"
Unable to install the firewall without this script."
- ).tqarg(target->config()->oS());
+ ).arg(target->config()->oS());
TQString cap = "KMFIPTInstaller";
KMessageBox::error( 0, msg, cap );
return;
@@ -960,7 +960,7 @@ void KMFIPTInstaller::generateInstallerPackage( KMFTarget* target, const KURL& p
"
Please check your installation. Usually this script is installed in "
"$TDEDIR/share/apps/kmyfirewall/scripts/installer/%1"
"
Unable to install the firewall without this script."
- ).tqarg(target->config()->oS());
+ ).arg(target->config()->oS());
TQString cap = "KMFIPTInstaller";
KMessageBox::error( 0, msg, cap );
return;
diff --git a/kmyfirewall/installer/openbsd/kmfpfinstaller.cpp b/kmyfirewall/installer/openbsd/kmfpfinstaller.cpp
index 88ccbc8..6a30aa6 100644
--- a/kmyfirewall/installer/openbsd/kmfpfinstaller.cpp
+++ b/kmyfirewall/installer/openbsd/kmfpfinstaller.cpp
@@ -162,7 +162,7 @@ KMFProcOut* KMFPFInstaller::execWidget(){
// KMessageBox::error( 0, msg, cap );
// } /*else if ( !ok ) {
// const TQString & msg = i18n( "
Execution of %1 failed"
-// "
Click OK to check your configuration and make sure you are logged in as root" ).tqarg( cmd_name );
+// "
Click OK to check your configuration and make sure you are logged in as root" ).arg( cmd_name );
// const TQString& cap = "KMFPFInstaller";
// KMessageBox::error( 0, msg, cap );
// }*/
@@ -218,7 +218,7 @@ void KMFPFInstaller::cmdRunFW() {
// TQString cmd = "bash " + file + " -v start";
// // KProcessWrapper::instance()->slotStartLocalJob( "startfirewall", cmd, true, true );
// setOutputWidget( execWidget() );
-// execWidget()->runCmd( cmd, Constants::StartFirewallJob_Name, i18n("Start Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ), true );
+// execWidget()->runCmd( cmd, Constants::StartFirewallJob_Name, i18n("Start Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ), true );
// showOutput();
// checkStatus();
// } else {
@@ -244,7 +244,7 @@ void KMFPFInstaller::cmdRunFW() {
// "
iptables -t mangle -P OUTPUT ACCEPT "
// "iptables -t mangle -P FORWARD ACCEPT "
// "iptables -t mangle -P PREROUTING ACCEPT "
-// "iptables -t mangle -P POSTROUTING ACCEPT " ).tqarg(rulesetDoc()->target()->toFriendlyString() ),
+// "iptables -t mangle -P POSTROUTING ACCEPT " ).arg(rulesetDoc()->target()->toFriendlyString() ),
// i18n( "Install Firewall" ), KStdGuiItem::yes(), KStdGuiItem::no(), "output_run_fw_remote" ) != KMessageBox::Yes
// ) {
// return;
@@ -252,7 +252,7 @@ void KMFPFInstaller::cmdRunFW() {
//
//
// setOutputWidget( execWidget() );
-// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
//
// generateInstallerPackage( rulesetDoc()->target() );
@@ -266,7 +266,7 @@ void KMFPFInstaller::cmdRunFW() {
// }
//
// setOutputWidget( execWidget() );
-// execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Start Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+// execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Start Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
// checkStatus();
// }
@@ -283,7 +283,7 @@ void KMFPFInstaller::cmdStopFW() {
// }
//
// if( KMessageBox::questionYesNo ( 0 , i18n( "Are you sure you want to stop the firewall on %1?"
-// "
This will leave the computer unprotected!
" ).tqarg(rulesetDoc()->target()->toFriendlyString() ),
+// "This will leave the computer unprotected!
" ).arg(rulesetDoc()->target()->toFriendlyString() ),
// i18n( "Install Firewall" ), KStdGuiItem::yes(), KStdGuiItem::no(), "output_stop_fw_remote" ) != KMessageBox::Yes
// ) {
// return;
@@ -294,13 +294,13 @@ void KMFPFInstaller::cmdStopFW() {
//
// TQString cmd = "bash " + file + " -v stop";
// setOutputWidget( execWidget() );
-// execWidget()->runCmd( cmd, Constants::StopFirewallJob_Name, i18n("Stop Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ), true );
+// execWidget()->runCmd( cmd, Constants::StopFirewallJob_Name, i18n("Stop Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ), true );
// showOutput();
// checkStatus();
//
// } else {
// setOutputWidget( execWidget() );
-// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
//
// generateInstallerPackage( rulesetDoc()->target() );
@@ -314,7 +314,7 @@ void KMFPFInstaller::cmdStopFW() {
// }
//
// setOutputWidget( execWidget() );
-// execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Stop Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+// execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Stop Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
// checkStatus();
// }
@@ -335,12 +335,12 @@ void KMFPFInstaller::cmdShowRunningConfig( const TQString& para ) {
// if( rulesetDoc()->target()->isLocalExecuteTarget() ) {
// // KProcessWrapper::instance()->slotStartLocalJob( "show_config", cmd, true, true );
// setOutputWidget( execWidget() );
-// execWidget()->runCmd( cmd,Constants::ShowConfigJob_Name, i18n("Show Table %1 on %2").tqarg( para ).tqarg( rulesetDoc()->target()->toFriendlyString() ), true );
+// execWidget()->runCmd( cmd,Constants::ShowConfigJob_Name, i18n("Show Table %1 on %2").arg( para ).arg( rulesetDoc()->target()->toFriendlyString() ), true );
// showOutput();
//
// } else {
// setOutputWidget( execWidget() );
-// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
// KProcessWrapper::instance()->slotStartRemoteJob( Constants::ShowConfigJob_Name, cmd, rulesetDoc()->target() );
//
@@ -351,7 +351,7 @@ void KMFPFInstaller::cmdShowRunningConfig( const TQString& para ) {
// }
//
// setOutputWidget( execWidget() );
-// execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Show Table %1 on %2").tqarg( para ).tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+// execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Show Table %1 on %2").arg( para ).arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
// }
}
@@ -365,7 +365,7 @@ void KMFPFInstaller::cmdInstallFW() {
// if( KMessageBox::questionYesNo ( 0 , i18n( "Are you sure you want to install the firewall on %1?"
// "
This will add the scripts to your init system that are required to "
// "start your firewall during bootup."
-// "
Please make sure that the firewall runs properly before you install it." ).tqarg( rulesetDoc()->target()->toFriendlyString() ),
+// "
Please make sure that the firewall runs properly before you install it." ).arg( rulesetDoc()->target()->toFriendlyString() ),
// i18n( "Install Firewall" ), KStdGuiItem::yes(), KStdGuiItem::no(), "output_view_install_fw" ) != KMessageBox::Yes ) {
// return;
// }
@@ -390,11 +390,11 @@ void KMFPFInstaller::cmdInstallFW() {
// "
File: %2"
// "File: %3"
// "Link: %4 -> %5" )
-// .tqarg( "/etc/kmyfirewall" )
-// .tqarg( "/etc/kmyfirewall/kmyfirewall.sh" )
-// .tqarg( conf->IPTPath() + "/kmyfirewall" )
-// .tqarg( conf->rcDefaultPath() + "/kmyfirewall" )
-// .tqarg( conf->initPath() + "/kmyfirewall" );
+// .arg( "/etc/kmyfirewall" )
+// .arg( "/etc/kmyfirewall/kmyfirewall.sh" )
+// .arg( conf->IPTPath() + "/kmyfirewall" )
+// .arg( conf->rcDefaultPath() + "/kmyfirewall" )
+// .arg( conf->initPath() + "/kmyfirewall" );
// TQString cap = i18n( "Install Firewall" );
// KMessageBox::information( 0, msg, cap, "created_install_files", 0 );
// } else if ( conf->oS() == "linux" ) {
@@ -404,13 +404,13 @@ void KMFPFInstaller::cmdInstallFW() {
// "File: %3"
// "Link: %4 -> %5"
// "Link: %6 -> %7" )
-// .tqarg( "/etc/kmyfirewall" )
-// .tqarg( "/etc/kmyfirewall/kmyfirewall.sh" )
-// .tqarg( conf->initPath() + "/kmyfirewall" )
-// .tqarg( conf->rcDefaultPath() + "/S99kmyfirewall" )
-// .tqarg( conf->initPath() + "/kmyfirewall" )
-// .tqarg( conf->rcDefaultPath() + "/K01kmyfirewall" )
-// .tqarg( conf->initPath() + "/kmyfirewall" );
+// .arg( "/etc/kmyfirewall" )
+// .arg( "/etc/kmyfirewall/kmyfirewall.sh" )
+// .arg( conf->initPath() + "/kmyfirewall" )
+// .arg( conf->rcDefaultPath() + "/S99kmyfirewall" )
+// .arg( conf->initPath() + "/kmyfirewall" )
+// .arg( conf->rcDefaultPath() + "/K01kmyfirewall" )
+// .arg( conf->initPath() + "/kmyfirewall" );
// TQString cap = i18n( "Install Firewall" );
// KMessageBox::information( 0, msg, cap, "created_install_files", 0 );
// }
@@ -437,12 +437,12 @@ void KMFPFInstaller::cmdInstallFW() {
// // KProcessWrapper::instance()->slotStartLocalJob( "installfirewall", cmd, true, true );
//
// setOutputWidget( execWidget() );
-// execWidget()->runCmd( cmd, Constants::InstallFirewallJob_Name, i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ), true );
+// execWidget()->runCmd( cmd, Constants::InstallFirewallJob_Name, i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ), true );
// showOutput();
// checkStatus();
// } else {
// setOutputWidget( execWidget() );
-// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
//
// generateInstallerPackage( rulesetDoc()->target() );
@@ -456,7 +456,7 @@ void KMFPFInstaller::cmdInstallFW() {
// }
//
// setOutputWidget( execWidget() );
-// execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+// execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
// checkStatus();
// }
@@ -469,7 +469,7 @@ void KMFPFInstaller::cmdUninstallFW() {
// KMFTargetConfig *conf = rulesetDoc()->target()->config();
//
// if ( KMessageBox::questionYesNo ( 0 , i18n( "Are you sure you want to uninstall the firewall from %1?
"
-// "The firewall will no longer start up during boot." ).tqarg( rulesetDoc()->target()->toFriendlyString() ),
+// "The firewall will no longer start up during boot." ).arg( rulesetDoc()->target()->toFriendlyString() ),
// i18n( "Uninstall Firewall" ), KStdGuiItem::yes(), KStdGuiItem::no(), "output_view_uninstall_fw" ) != KMessageBox::Yes ) {
// return;
// }
@@ -495,11 +495,11 @@ void KMFPFInstaller::cmdUninstallFW() {
// "
File: %2"
// "File: %3"
// "Link: %4 -> %5" )
-// .tqarg( "/etc/kmyfirewall" )
-// .tqarg( "/etc/kmyfirewall/kmyfirewall.sh" )
-// .tqarg( conf->initPath() + "/kmyfirewall" )
-// .tqarg( conf->rcDefaultPath() + "/kmyfirewall" )
-// .tqarg( conf->initPath() + "/kmyfirewall" );
+// .arg( "/etc/kmyfirewall" )
+// .arg( "/etc/kmyfirewall/kmyfirewall.sh" )
+// .arg( conf->initPath() + "/kmyfirewall" )
+// .arg( conf->rcDefaultPath() + "/kmyfirewall" )
+// .arg( conf->initPath() + "/kmyfirewall" );
// TQString cap = i18n( "Uninstall Firewall" );
// KMessageBox::information( 0, msg, cap, "removed_uninstall_files", 0 );
// } else if ( conf->oS() == "linux" ) {
@@ -509,13 +509,13 @@ void KMFPFInstaller::cmdUninstallFW() {
// "File: %3"
// "Link: %4 -> %5"
// "Link: %6 -> %7" )
-// .tqarg( "/etc/kmyfirewall" )
-// .tqarg( "/etc/kmyfirewall/kmyfirewall.sh" )
-// .tqarg( conf->initPath() + "/kmyfirewall" )
-// .tqarg( conf->rcDefaultPath() + "/S99kmyfirewall" )
-// .tqarg( conf->initPath() + "/kmyfirewall" )
-// .tqarg( conf->rcDefaultPath() + "/K01kmyfirewall" )
-// .tqarg( conf->initPath() + "/kmyfirewall" );
+// .arg( "/etc/kmyfirewall" )
+// .arg( "/etc/kmyfirewall/kmyfirewall.sh" )
+// .arg( conf->initPath() + "/kmyfirewall" )
+// .arg( conf->rcDefaultPath() + "/S99kmyfirewall" )
+// .arg( conf->initPath() + "/kmyfirewall" )
+// .arg( conf->rcDefaultPath() + "/K01kmyfirewall" )
+// .arg( conf->initPath() + "/kmyfirewall" );
// TQString cap = i18n( "Uninstall Firewall" );
// KMessageBox::information( 0, msg, cap, "removed_uninstall_files", 0 );
// }
@@ -532,13 +532,13 @@ void KMFPFInstaller::cmdUninstallFW() {
// // KProcessWrapper::instance()->slotStartLocalJob( "uninstallfirewall", cmd, true, true );
//
// setOutputWidget( execWidget() );
-// execWidget()->runCmd( cmd, Constants::UninstallFirewallJob_Name, i18n("Uninstall Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ), true );
+// execWidget()->runCmd( cmd, Constants::UninstallFirewallJob_Name, i18n("Uninstall Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ), true );
// showOutput();
// checkStatus();
//
// } else {
// setOutputWidget( execWidget() );
-// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
//
// generateInstallerPackage( rulesetDoc()->target() );
@@ -552,7 +552,7 @@ void KMFPFInstaller::cmdUninstallFW() {
// }
//
// setOutputWidget( execWidget() );
-// execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Uninstall Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
+// execWidget()->setText( KProcessWrapper::instance()->stdOut(), i18n("Uninstall Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
// checkStatus();
// }
@@ -727,7 +727,7 @@ void KMFPFInstaller::cmdUninstallFW() {
// source_file.close();
// } else {
// m_err->setErrType( KMFError::NORMAL );
-// const TQString& msg = i18n( "Opening file for %1 reading failed." ).tqarg( source_file_path );
+// const TQString& msg = i18n( "
Opening file for %1 reading failed." ).arg( source_file_path );
// m_err->setErrMsg( msg );
// }
//
@@ -749,7 +749,7 @@ void KMFPFInstaller::cmdUninstallFW() {
// target_file.close();
// } else {
// m_err->setErrType( KMFError::NORMAL );
-// const TQString& msg = i18n( "
Opening file for %1 writing failed." ).tqarg( target_file_path );
+// const TQString& msg = i18n( "
Opening file for %1 writing failed." ).arg( target_file_path );
// m_err->setErrMsg( msg );
// }
// }
@@ -778,7 +778,7 @@ void KMFPFInstaller::cmdUninstallFW() {
// source_file.close();
// } else {
// m_err->setErrType( KMFError::NORMAL );
-// const TQString& msg = i18n( "
Opening file for %1 reading failed." ).tqarg( source_file_path );
+// const TQString& msg = i18n( "
Opening file for %1 reading failed." ).arg( source_file_path );
// m_err->setErrMsg( msg );
// }
//
@@ -802,7 +802,7 @@ void KMFPFInstaller::cmdUninstallFW() {
// target_file.close();
// } else {
// m_err->setErrType( KMFError::NORMAL );
-// const TQString& msg = i18n( "
Opening file for %1 writing failed." ).tqarg( target_file_path );
+// const TQString& msg = i18n( "
Opening file for %1 writing failed." ).arg( target_file_path );
// m_err->setErrMsg( msg );
// }
// }
diff --git a/kmyfirewall/ipteditor/kmfchainedit.cpp b/kmyfirewall/ipteditor/kmfchainedit.cpp
index 1730f43..a498289 100644
--- a/kmyfirewall/ipteditor/kmfchainedit.cpp
+++ b/kmyfirewall/ipteditor/kmfchainedit.cpp
@@ -184,7 +184,7 @@ void KMFChainEdit::accept() {
kdDebug() << "KMyFirewallChainEditor::slotSaveChainChanges()" << endl;
KMFUndoEngine::instance()->startTransaction(
m_chain,
- i18n( "Edit Chain: %1 properties" ).tqarg( m_chain->name() )
+ i18n( "Edit Chain: %1 properties" ).arg( m_chain->name() )
);
bool log = c_enable_log->isChecked();
bool log_limit = c_log_limit->isChecked();
diff --git a/kmyfirewall/ipteditor/kmfruleedit.cpp b/kmyfirewall/ipteditor/kmfruleedit.cpp
index 8c90bc2..760d484 100644
--- a/kmyfirewall/ipteditor/kmfruleedit.cpp
+++ b/kmyfirewall/ipteditor/kmfruleedit.cpp
@@ -329,7 +329,7 @@ void KMFRuleEdit::loadPlugins() {
void KMFRuleEdit::registerRuleOptionPlugin( KMFRuleOptionEditInterface* edit ) {
m_widgetStack->addWidget( edit->editWidget() );
m_editPlugins.append( edit );
- kb_optSelect->insertItem( i18n("Edit %1").tqarg( edit->optionEditName() ) );
+ kb_optSelect->insertItem( i18n("Edit %1").arg( edit->optionEditName() ) );
}
void KMFRuleEdit::registerRuleTargetOptionPlugin( KMFRuleTargetOptionEditInterface* edit ) {
@@ -561,7 +561,7 @@ void KMFRuleEdit::slotAddRule() {
if ( m_err_handler->showError( m_err ) ) {
KMFUndoEngine::instance()->startTransaction(
m_chain,
- i18n( "Add Rule: %1 to Chain: %2" ).tqarg( text ).tqarg( m_chain->name() )
+ i18n( "Add Rule: %1 to Chain: %2" ).arg( text ).arg( m_chain->name() )
);
IPTRule *inserted = m_chain->addRule( text, m_err );
@@ -603,21 +603,21 @@ void KMFRuleEdit::slotDelChain() {
if ( m_chain->isBuildIn() ) {
KMessageBox::sorry( this, i18n( "Cannot delete built-in chain: %1
"
"Built-in chains cannot be deleted; you can only delete chains "
- "that you have defined yourself." ).tqarg( m_chain->name() ),
+ "that you have defined yourself." ).arg( m_chain->name() ),
i18n( "Sorry" ) );
return ;
}
int doit = KMessageBox::questionYesNo ( this , i18n( "Are you sure that you want to delete "
"chain: %1 from table: %2?
"
"Note: By deleting the chain all rules that belong "
- "to the chain will be deleted too." ).tqarg( m_chain ->name() ).tqarg( m_chain ->table() ->name() ),
+ "to the chain will be deleted too." ).arg( m_chain ->name() ).arg( m_chain ->table() ->name() ),
i18n( "Delete Chain" ), KStdGuiItem::yes(), KStdGuiItem::no(), "main_view_delete_chain" );
kdDebug() << "Message Box returned: " << doit << endl;
if ( doit == 3 ) {
kdDebug() << "Try to delete Chain" << endl;
KMFUndoEngine::instance()->startTransaction(
m_table,
- i18n( "Delete Chain: %1 from Table: %2").tqarg( m_chain->name() ).tqarg( m_chain->table()->name() )
+ i18n( "Delete Chain: %1 from Table: %2").arg( m_chain->name() ).arg( m_chain->table()->name() )
);
m_err = m_network->currentDocAsIPTDoc()->table( m_chain->table()->name() )->delChain( m_chain );
if ( m_err_handler ->showError( m_err ) ) {
@@ -732,7 +732,7 @@ void KMFRuleEdit::slotMoveRuleDown() {
// if ( m_rule && kb_optSelect->isEnabled() ) {
// KMFUndoEngine::instance()->startTransaction(
// m_chain,
-// i18n("Move Rule: %1 down").tqarg( m_rule->name() )
+// i18n("Move Rule: %1 down").arg( m_rule->name() )
// );
// m_chain->saveState();
// if ( m_chain->moveRule( m_rule, 1 ) ) {
@@ -759,7 +759,7 @@ void KMFRuleEdit::slotMoveRuleUp() {
// if ( item ) {
// KMFUndoEngine::instance()->startTransaction(
// m_chain,
-// i18n("Move Rule: %1 up").tqarg( m_rule->name() )
+// i18n("Move Rule: %1 up").arg( m_rule->name() )
// );
// m_chain->saveState();
// if ( m_chain->moveRule( m_rule, -1 ) ) {
@@ -775,12 +775,12 @@ void KMFRuleEdit::slotMoveRuleUp() {
void KMFRuleEdit::moveRuleInChain( int amount ) {
if ( m_rule && kb_optSelect->isEnabled() ) {
- const TQString& transMsg = i18n("Move Rule: %1 %2").tqarg( m_rule->name() ).tqarg( amount > 0 ? "down" : "up" );
+ const TQString& transMsg = i18n("Move Rule: %1 %2").arg( m_rule->name() ).arg( amount > 0 ? "down" : "up" );
KMFListViewItem* item = currTableView()->findKMFItem( m_rule->name(),2, m_rule->uuid() );
if ( item ) {
KMFUndoEngine::instance()->startTransaction(
m_chain,
- transMsg.tqarg( m_rule->name() )
+ transMsg.arg( m_rule->name() )
);
if ( m_chain->moveRule( m_rule, -1 ) ) {
m_rule->chain()->changed();
@@ -805,14 +805,14 @@ void KMFRuleEdit::slotDelRule() {
return ;
} else {
int doit = KMessageBox::questionYesNo ( this , i18n( "
Are you sure that you want to delete "
- "rule: %1 from chain: %2?
").tqarg( m_rule->name() ).tqarg( m_rule->chain() ->name() ),
+ "rule: %1 from chain: %2?
").arg( m_rule->name() ).arg( m_rule->chain() ->name() ),
i18n( "Delete Rule" ), KStdGuiItem::yes(), KStdGuiItem::no(), "rule_edit_delete_rule" );
kdDebug() << "Message Box returned: " << doit << endl;
if ( doit == 3 ) { // OK clicked
kdDebug() << "clicked ok" << endl;
KMFUndoEngine::instance()->startTransaction(
m_chain,
- i18n("Delete Rule: %1 from Chain: %2").tqarg( m_rule->name() ).tqarg( m_chain->name() )
+ i18n("Delete Rule: %1 from Chain: %2").arg( m_rule->name() ).arg( m_chain->name() )
);
m_err = m_chain->delRule( m_rule );
if ( m_err_handler->showError( m_err ) ) {
@@ -997,7 +997,7 @@ void KMFRuleEdit::slotFragChanged() {
}
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n( "Edit Rule: %1 Fragment option" ).tqarg( m_rule->name() )
+ i18n( "Edit Rule: %1 Fragment option" ).arg( m_rule->name() )
);
m_rule->addRuleOption( *cmd, *vals );
KMFUndoEngine::instance()->endTransaction();
@@ -1009,7 +1009,7 @@ void KMFRuleEdit::slotLogRuleChanged() {
return ;
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n( "Edit Rule: %1 Log option" ).tqarg( m_rule->name() )
+ i18n( "Edit Rule: %1 Log option" ).arg( m_rule->name() )
);
if ( cb_log_rule->isChecked() ) {
m_rule->setLogging( true );
@@ -1026,7 +1026,7 @@ void KMFRuleEdit::slotEnableRuleChanged() {
return ;
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n( "Edit Rule: %1 enabled state" ).tqarg( m_rule->name() )
+ i18n( "Edit Rule: %1 enabled state" ).arg( m_rule->name() )
);
if ( cb_disable_rule->isChecked() ) {
m_rule->setEnabled( false );
@@ -1065,7 +1065,7 @@ void KMFRuleEdit::slotTargetChanged( const TQString & tg ) {
if ( m_rule->target() != tg ) {
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n( "Change Rule: %1 target from: %2 to: %3" ).tqarg( m_rule->name() ).tqarg( m_rule->target() ).tqarg( tg )
+ i18n( "Change Rule: %1 target from: %2 to: %3" ).arg( m_rule->name() ).arg( m_rule->target() ).arg( tg )
);
m_rule->setTarget( tg );
emit sigUpdateView( m_rule->chain()->table() );
@@ -1083,7 +1083,7 @@ void KMFRuleEdit::slotTargetChanged( const TQString & tg ) {
if ( m_rule->target() != tg ) {
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n( "Change Rule: %1 target from: %2 to: %3" ).tqarg( m_rule->name() ).tqarg( m_rule->target() ).tqarg( tg )
+ i18n( "Change Rule: %1 target from: %2 to: %3" ).arg( m_rule->name() ).arg( m_rule->target() ).arg( tg )
);
m_rule->setTarget( tg );
emit sigUpdateView( m_rule->chain()->table() );
@@ -1153,7 +1153,7 @@ void KMFRuleEdit::createRBM( NetfilterObject* obj ) {
if ( IPTable* table = dynamic_cast ( obj ) ) {
m_contextMenu->clear();
TQString name = table->name();
- TQString lab_str = i18n("Table: %1").tqarg( name );
+ TQString lab_str = i18n("Table: %1").arg( name );
m_contextMenu->insertTitle( lab_str );
m_contextMenu->insertItem( icon_new, i18n( "Add Chain..." ), this, TQT_SLOT( slotAddChain() ) );
@@ -1163,7 +1163,7 @@ void KMFRuleEdit::createRBM( NetfilterObject* obj ) {
if ( IPTChain* chain = dynamic_cast ( obj ) ) {
m_contextMenu->clear();
TQString name = chain->name();
- TQString lab_str = i18n("Chain: %1").tqarg( name );
+ TQString lab_str = i18n("Chain: %1").arg( name );
m_contextMenu->insertTitle( icon_chain, lab_str );
m_contextMenu->insertItem( icon_new, i18n( "Add Rule..." ), this, TQT_SLOT( slotAddRule() ) );
@@ -1179,13 +1179,13 @@ void KMFRuleEdit::createRBM( NetfilterObject* obj ) {
if ( IPTRule* rule = dynamic_cast ( obj ) ) {
m_contextMenu->clear();
TQString name = rule->name();
- TQString lab_str = i18n("Rule: %1").tqarg( name );
+ TQString lab_str = i18n("Rule: %1").arg( name );
m_contextMenu->insertTitle( icon_rule, lab_str );
KPopupMenu *sub_edit = new KPopupMenu( m_contextMenu );
sub_edit->insertTitle( i18n( "Edit Rule Option" ) );
for( uint i = 0; i < m_editPlugins.count(); i++ ) {
- sub_edit->insertItem( icon_edit, i18n( "Edit %1" ).tqarg(m_editPlugins.at(i)->optionEditName() ), i );
+ sub_edit->insertItem( icon_edit, i18n( "Edit %1" ).arg(m_editPlugins.at(i)->optionEditName() ), i );
}
connect( sub_edit,TQT_SIGNAL(activated( int ) ),
this,TQT_SLOT(slotNewOptionType( int ) ) );
@@ -1237,7 +1237,7 @@ void KMFRuleEdit::slotMoveRule( int index ) {
if ( chain_target ) {
KMFUndoEngine::instance()->startTransaction(
m_rule->chain()->table(),
- i18n( "Move Rule: %1 from Chain: %2 to Chain: %3" ).tqarg( m_rule->name() ).tqarg( m_rule->chain()->name() ).tqarg( chain_target->name() )
+ i18n( "Move Rule: %1 from Chain: %2 to Chain: %3" ).arg( m_rule->name() ).arg( m_rule->chain()->name() ).arg( chain_target->name() )
);
m_err = m_rule->chain()->table()->moveRuleToChain( m_rule, chain_target );
if ( m_err_handler->showError( m_err ) ) {
@@ -1257,7 +1257,7 @@ void KMFRuleEdit::slotCopyRule( int index ) {
if ( chain_target ) {
KMFUndoEngine::instance()->startTransaction(
m_rule->chain() ->table(),
- i18n( "Copy Rule: %1 from Chain: %2 to Chain: %3" ).tqarg( m_rule->name() ).tqarg( m_rule->chain()->name() ).tqarg( chain_target->name() )
+ i18n( "Copy Rule: %1 from Chain: %2 to Chain: %3" ).arg( m_rule->name() ).arg( m_rule->chain()->name() ).arg( chain_target->name() )
);
m_err = m_rule->chain() ->table() ->copyRuleToChain( m_rule, chain_target );
if ( m_err_handler->showError( m_err ) ) {
@@ -1297,7 +1297,7 @@ void KMFRuleEdit::slotRenameRule( TQListViewItem* , int, const TQString& name )
for ( rule = rules.first(); rule; rule = rules.next() ) {
if ( rule->name() == name ) {
KMessageBox::sorry( this, i18n( "Sorry, there is already a rule named: %1 in the chain.
"
- "Please make sure that the new rule name is unique in its chain.
" ).tqarg( name ) );
+ "Please make sure that the new rule name is unique in its chain." ).arg( name ) );
rule_item->setText( 2, rule_item->rule()->name() );
emit sigUpdateView( rule_item->rule()->chain() );
return ;
@@ -1305,7 +1305,7 @@ void KMFRuleEdit::slotRenameRule( TQListViewItem* , int, const TQString& name )
}
KMFUndoEngine::instance()->startTransaction(
rule_item->rule(),
- i18n( "Rename Rule: %1 to %2").tqarg( rule_item->rule()->name() ).tqarg( name )
+ i18n( "Rename Rule: %1 to %2").arg( rule_item->rule()->name() ).arg( name )
);
TQString origName = rule_item->rule()->name();
diff --git a/kmyfirewall/ipteditor/kmyfirewallchaineditor.ui b/kmyfirewall/ipteditor/kmyfirewallchaineditor.ui
index e453dc4..fda29aa 100644
--- a/kmyfirewall/ipteditor/kmyfirewallchaineditor.ui
+++ b/kmyfirewall/ipteditor/kmyfirewallchaineditor.ui
@@ -452,7 +452,7 @@
Please set the default policy for your chain:
-
+
WordBreak|AlignVCenter|AlignLeft
@@ -475,7 +475,7 @@
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.
-
+
WordBreak|AlignVCenter|AlignLeft
@@ -496,7 +496,7 @@
The Default Policy decides what to do with Packets that do not match any of the rules defined for the Chain.
-
+
WordBreak|AlignVCenter|AlignLeft
@@ -537,7 +537,7 @@
Logging
-
+
AlignVCenter|AlignBottom|AlignTop|AlignLeft
@@ -569,7 +569,7 @@
Here you can decide whether you would like to log all packets that did not match any rule at the end of the chain.
-
+
WordBreak|AlignTop|AlignLeft
@@ -740,7 +740,7 @@
/
-
+
AlignCenter
diff --git a/kmyfirewall/ipteditor/kmyfirewallchaineditornewchain.ui b/kmyfirewall/ipteditor/kmyfirewallchaineditornewchain.ui
index 8342b98..fcf0435 100644
--- a/kmyfirewall/ipteditor/kmyfirewallchaineditornewchain.ui
+++ b/kmyfirewall/ipteditor/kmyfirewallchaineditornewchain.ui
@@ -52,7 +52,7 @@
Please define a unique (in the table) name and decide which table this chain should be added to.
-
+
WordBreak|AlignVCenter
diff --git a/kmyfirewall/ipteditor/kmyfirewallruleeditor.ui b/kmyfirewall/ipteditor/kmyfirewallruleeditor.ui
index 8165f25..116ac70 100644
--- a/kmyfirewall/ipteditor/kmyfirewallruleeditor.ui
+++ b/kmyfirewall/ipteditor/kmyfirewallruleeditor.ui
@@ -70,7 +70,7 @@
Editing Rule
-
+
AlignVCenter|AlignLeft
diff --git a/kmyfirewall/kmfwidgets/kmfgenericinterfaceeditprotocol.cpp b/kmyfirewall/kmfwidgets/kmfgenericinterfaceeditprotocol.cpp
index f7b77d1..538d9ff 100644
--- a/kmyfirewall/kmfwidgets/kmfgenericinterfaceeditprotocol.cpp
+++ b/kmyfirewall/kmfwidgets/kmfgenericinterfaceeditprotocol.cpp
@@ -262,7 +262,7 @@ void KMFGenericInterfaceEditProtocol::slotDelProtocol() {
kdDebug() << "\n\nWARNING: No Protocol Object to save Changes in Memory!!\n\n" << endl;
}
int doit = KMessageBox::questionYesNo ( this , i18n( "Are you sure that you want to delete "
- "the protocol: %1?
").tqarg( m_protocol->name() ),
+ "the protocol: %1?").arg( m_protocol->name() ),
i18n( "Delete Protocol" ), KStdGuiItem::yes(), KStdGuiItem::no() /*, "protocol_edit_delete_protocol"*/ );
// kdDebug() << "Got Answer: " << doit << endl;
diff --git a/kmyfirewall/kmfwidgets/kmfhostwidget.cpp b/kmyfirewall/kmfwidgets/kmfhostwidget.cpp
index e572e34..45148ef 100644
--- a/kmyfirewall/kmfwidgets/kmfhostwidget.cpp
+++ b/kmyfirewall/kmfwidgets/kmfhostwidget.cpp
@@ -243,9 +243,9 @@ void KMFHostWidget::slotTestConnection() {
}
if ( KIO::NetAccess::fish_execute( m_target->getFishUrl(), "ls /",
KApplication::kApplication()->mainWidget() ) != 0) {
- KMessageBox::information( this, i18n("Conneted successfully to: %1").tqarg( m_target->toFriendlyString() ) );
+ KMessageBox::information( this, i18n("Conneted successfully to: %1").arg( m_target->toFriendlyString() ) );
} else {
- KMessageBox::error( this, i18n("Connetion to: %1 failed!").tqarg( m_target->toFriendlyString() ) );
+ KMessageBox::error( this, i18n("Connetion to: %1 failed!").arg( m_target->toFriendlyString() ) );
}
}
void KMFHostWidget::slotTryAutoConfiguration(){
@@ -254,14 +254,14 @@ void KMFHostWidget::slotTryAutoConfiguration(){
return;
}
KMFError* err = m_target->tryAutoConfiguration();
- KMFErrorHandler* errH = new KMFErrorHandler( i18n("Auto Confguration of: %1").tqarg( m_target->toFriendlyString() ) );
+ KMFErrorHandler* errH = new KMFErrorHandler( i18n("Auto Confguration of: %1").arg( m_target->toFriendlyString() ) );
if ( ! errH->showError( err ) ) {
return;
}
if ( ! m_target->config()->isValid() ) {
- KMessageBox::error( this, i18n("Auto Confguration of: %1 could not determinate all needed setting. You'll need to configure the mmissing settings.
").tqarg( m_target->toFriendlyString() ) );
+ KMessageBox::error( this, i18n("Auto Confguration of: %1 could not determinate all needed setting. You'll need to configure the mmissing settings.
").arg( m_target->toFriendlyString() ) );
} else {
- KMessageBox::information( this, i18n("Auto Confguration of: %1 finished successfully.
").tqarg( m_target->toFriendlyString() ) );
+ KMessageBox::information( this, i18n("Auto Confguration of: %1 finished successfully.
").arg( m_target->toFriendlyString() ) );
}
emit sigTargetChanged();
}
@@ -270,9 +270,9 @@ void KMFHostWidget::slotTryAutoConfiguration_Callback( KMFTarget* ) {
disconnect( m_target, TQT_SIGNAL( sigTargetChanged( KMFTarget* ) ),
this,TQT_SLOT( slotTryAutoConfiguration_Callback( KMFTarget* ) ) );
if ( ! m_target->config()->isValid() ) {
- KMessageBox::error( 0, i18n("Auto Confguration of: %1 could not determinate all needed setting. You'll need to configure the mmissing settings.
").tqarg( m_target->toFriendlyString() ) );
+ KMessageBox::error( 0, i18n("Auto Confguration of: %1 could not determinate all needed setting. You'll need to configure the mmissing settings.
").arg( m_target->toFriendlyString() ) );
} else {
- KMessageBox::information( this, i18n("Auto Confguration of: %1 finished successfully.
").tqarg( m_target->toFriendlyString() ) );
+ KMessageBox::information( this, i18n("Auto Confguration of: %1 finished successfully.
").arg( m_target->toFriendlyString() ) );
}
emit sigTargetChanged();
}
@@ -281,7 +281,7 @@ void KMFHostWidget::slotAddressChanged( int val ) {
kdDebug() << "KMFHostWidget::slotAddressChanged( int " << val << " )" << endl;
KMFUndoEngine::instance()->startTransaction(
m_target,
- i18n( "Edit address of target: %1.").tqarg( m_target->guiName() )
+ i18n( "Edit address of target: %1.").arg( m_target->guiName() )
);
m_target->address()->setAddress(
m_sb_host_0->value(),
@@ -297,7 +297,7 @@ void KMFHostWidget::slotSSHPortChanged( int val ) {
kdDebug() << "KMFHostWidget:::slotSSHPortChanged( int " << val << " )" << endl;
KMFUndoEngine::instance()->startTransaction(
m_target,
- i18n( "Edit SSH port of target: %1.").tqarg( m_target->guiName() )
+ i18n( "Edit SSH port of target: %1.").arg( m_target->guiName() )
);
m_target->setSSHPort( val );
KMFUndoEngine::instance()->endTransaction();
@@ -313,7 +313,7 @@ void KMFHostWidget::slotOSChanged( const TQString& val ) {
}
KMFUndoEngine::instance()->startTransaction(
m_target->config(),
- i18n( "Edit operation system setting of target: %1.").tqarg( m_target->guiName() )
+ i18n( "Edit operation system setting of target: %1.").arg( m_target->guiName() )
);
m_target->config()->setOS( val.lower() );
@@ -337,7 +337,7 @@ void KMFHostWidget::slotBackaendChanged( const TQString& val ) {
kdDebug() << "KMFHostWidget::slotBackaendChanged( const TQString& " << val << " )" << endl;
KMFUndoEngine::instance()->startTransaction(
m_target->config(),
- i18n( "Edit backend setting of target: %1.").tqarg( m_target->guiName() )
+ i18n( "Edit backend setting of target: %1.").arg( m_target->guiName() )
);
m_target->config()->setBackend( val.lower() );
@@ -355,7 +355,7 @@ void KMFHostWidget::slotDescriptionChanged() {
}
KMFUndoEngine::instance()->startTransaction(
m_target,
- i18n( "Edit documentation of target: %1.").tqarg( m_target->guiName() )
+ i18n( "Edit documentation of target: %1.").arg( m_target->guiName() )
);
m_target->setDescription( m_host_desc->text().simplifyWhiteSpace() );
KMFUndoEngine::instance()->endTransaction();
diff --git a/kmyfirewall/kmfwidgets/kmfinterfacewidget.cpp b/kmyfirewall/kmfwidgets/kmfinterfacewidget.cpp
index 47b5622..72ee3a5 100644
--- a/kmyfirewall/kmfwidgets/kmfinterfacewidget.cpp
+++ b/kmyfirewall/kmfwidgets/kmfinterfacewidget.cpp
@@ -101,7 +101,7 @@ void KMFInterfaceWidget::slotAddInterface() {
KMFUndoEngine::instance()->startTransaction(
m_target->config(),
- i18n( "Edit interfaces for target: %1.").tqarg( m_target->guiName() )
+ i18n( "Edit interfaces for target: %1.").arg( m_target->guiName() )
);
m_target->config()->setInterfaces( interfaces() );
KMFUndoEngine::instance()->endTransaction();
@@ -137,7 +137,7 @@ void KMFInterfaceWidget::slotDelInterface() {
m_lb_int->removeItem( index );
KMFUndoEngine::instance()->startTransaction(
m_target->config(),
- i18n( "Edit interfaces for target: %1.").tqarg( m_target->guiName() )
+ i18n( "Edit interfaces for target: %1.").arg( m_target->guiName() )
);
m_target->config()->setInterfaces( interfaces() );
KMFUndoEngine::instance()->endTransaction();
diff --git a/kmyfirewall/kmfwidgets/kmfiptdocoptions.cpp b/kmyfirewall/kmfwidgets/kmfiptdocoptions.cpp
index 6023d3f..b61f577 100644
--- a/kmyfirewall/kmfwidgets/kmfiptdocoptions.cpp
+++ b/kmyfirewall/kmfwidgets/kmfiptdocoptions.cpp
@@ -57,7 +57,7 @@ void KMFIPTDocOptions::accept() {
KMFUndoEngine::instance()->startTransaction(
kmfdoc,
- i18n( "Edit document settings for target: %1.").tqarg( kmfdoc->target()->guiName() )
+ i18n( "Edit document settings for target: %1.").arg( kmfdoc->target()->guiName() )
);
kmfdoc->setUseFilter( c_use_filter->isChecked() );
kmfdoc->setUseNat( c_use_nat->isChecked() );
diff --git a/kmyfirewall/kmfwidgets/kmflistview.cpp b/kmyfirewall/kmfwidgets/kmflistview.cpp
index e263fc2..05c5e8d 100644
--- a/kmyfirewall/kmfwidgets/kmflistview.cpp
+++ b/kmyfirewall/kmfwidgets/kmflistview.cpp
@@ -493,7 +493,7 @@ void KMFListView::setupChainView( IPTChain* chain, KMFListViewItem* parent ) {
++it;
KMFListViewItem * item_feeds = new KMFListViewItem( i_chain_feeds, chain );
item_feeds->setInUse( true );
- item_feeds->setText( 0, i18n( "From chain: %1" ).tqarg( curr_rule->chain() ->name() ) );
+ item_feeds->setText( 0, i18n( "From chain: %1" ).arg( curr_rule->chain() ->name() ) );
item_feeds->setPixmap( 2, icon_rule );
item_feeds->setText( 2, curr_rule->name() );
}
@@ -528,7 +528,7 @@ void KMFListView::setupChainView( IPTChain* chain, KMFListViewItem* parent ) {
KMFListViewItem * item_fwds = new KMFListViewItem( i_chain_fwds, chain );
item_fwds->setInUse( true );
item_fwds->setPixmap( 0, icon_rule );
- item_fwds->setText( 0, i18n( "Rule: %1" ).tqarg( curr_rule->name() ) );
+ item_fwds->setText( 0, i18n( "Rule: %1" ).arg( curr_rule->name() ) );
item_fwds->setPixmap( 1, icon_fwd );
item_fwds->setText( 2, curr_rule->target() );
}
diff --git a/kmyfirewall/kmfwidgets/kmflistviewitem.cpp b/kmyfirewall/kmfwidgets/kmflistviewitem.cpp
index bf1999e..3ed6968 100644
--- a/kmyfirewall/kmfwidgets/kmflistviewitem.cpp
+++ b/kmyfirewall/kmfwidgets/kmflistviewitem.cpp
@@ -226,10 +226,10 @@ void KMFListViewItem::setupNetHostView() {
setText( 1,"[" + host()->address()->toString() + "]" );
if ( host()->name().startsWith("incoming_world") ) {
- setText( 2,"" + i18n("%1 -> Localhost").tqarg( host()->guiName() ) );
+ setText( 2,"" + i18n("%1 -> Localhost").arg( host()->guiName() ) );
}
if ( host()->name().startsWith("outgoing_world") ) {
- setText( 2, i18n("Localhost -> %1").tqarg( host()->guiName() ) );
+ setText( 2, i18n("Localhost -> %1").arg( host()->guiName() ) );
}
}
@@ -250,17 +250,17 @@ void KMFListViewItem::setupZoneView() {
}
// if ( m_zone->name().startsWith("incoming_world") || m_zone->name().startsWith("outgoing_world") )
- setText( 1, "[" + m_zone->address()->toString() + i18n("/%1]").tqarg( m_zone->maskLength() ) );
+ setText( 1, "[" + m_zone->address()->toString() + i18n("/%1]").arg( m_zone->maskLength() ) );
-/* setText( 2,"" + i18n("%1 -> Localhost").tqarg( m_zone->guiName() ) );*/
+/* setText( 2,"" + i18n("%1 -> Localhost").arg( m_zone->guiName() ) );*/
setText( 4,"" + m_zone->description() );
if ( m_zone->name().startsWith("incoming_world") ) {
- setText( 2,"" + i18n("%1 -> Localhost").tqarg( m_zone->guiName() ) );
+ setText( 2,"" + i18n("%1 -> Localhost").arg( m_zone->guiName() ) );
}
if ( m_zone->name().startsWith("outgoing_world") ) {
- setText( 2, i18n("Localhost -> %1").tqarg( m_zone->guiName() ) );
+ setText( 2, i18n("Localhost -> %1").arg( m_zone->guiName() ) );
}
@@ -314,10 +314,10 @@ void KMFListViewItem::setupZoneView() {
item->setText( 1,"[" + host->address()->toString() + "]" );
if ( host->name().startsWith("incoming_world") ) {
- item->setText( 2,"" + i18n("%1 -> Localhost").tqarg( host->guiName() ) );
+ item->setText( 2,"" + i18n("%1 -> Localhost").arg( host->guiName() ) );
}
if ( host->name().startsWith("outgoing_world") ) {
- item->setText( 2, i18n("Localhost -> %1").tqarg( host->guiName() ) );
+ item->setText( 2, i18n("Localhost -> %1").arg( host->guiName() ) );
}*/
// setOpen(true);
// // ++it2;
@@ -334,10 +334,10 @@ void KMFListViewItem::setupZoneView() {
// item->setText( 1,"[" + it2.current()->address()->toString() + "]" );
//
// if ( it2.current()->name().startsWith("incoming_world") ) {
-// item->setText( 2,"" + i18n("%1 -> Localhost").tqarg( it2.current()->guiName() ) );
+// item->setText( 2,"" + i18n("%1 -> Localhost").arg( it2.current()->guiName() ) );
// }
// if ( it2.current()->name().startsWith("outgoing_world") ) {
-// item->setText( 2, i18n("Localhost -> %1").tqarg( it2.current()->guiName() ) );
+// item->setText( 2, i18n("Localhost -> %1").arg( it2.current()->guiName() ) );
// }
// setOpen(true);
++it2;
diff --git a/kmyfirewall/kmfwidgets/kmfmynetworkwidget.cpp b/kmyfirewall/kmfwidgets/kmfmynetworkwidget.cpp
index c42fb12..1c38b96 100644
--- a/kmyfirewall/kmfwidgets/kmfmynetworkwidget.cpp
+++ b/kmyfirewall/kmfwidgets/kmfmynetworkwidget.cpp
@@ -164,7 +164,7 @@ void KMFMyNetworkWidget::slotNewItemSelected( TQListViewItem* item ) {
if ( m_zone ) {
// kdDebug() << "kmfitem->zone() pointer is valid" << endl;
kmfitem->setText( 0,m_zone->guiName() );
- kmfitem->setText( 1, "[" + m_zone->address()->toString() + i18n("/%1]").tqarg( m_zone->maskLength() ) );
+ kmfitem->setText( 1, "[" + m_zone->address()->toString() + i18n("/%1]").arg( m_zone->maskLength() ) );
m_network_widget->loadZone( m_zone );
if ( m_zone->readOnly() ) {
@@ -206,7 +206,7 @@ void KMFMyNetworkWidget::slotZoneChanged( KMFNetZone* z ) {
kdDebug() << "void KMFMyNetworkWidget::slotZoneChanged( KMFNetZone* z )" << endl;
if ( KMFListViewItem *item = findItem( z->uuid() ) ) {
kdDebug() << "Updating item" << endl;
- item->setText( 1, "[" + z->address()->toString() + i18n("/%1]").tqarg( z->maskLength() ) );
+ item->setText( 1, "[" + z->address()->toString() + i18n("/%1]").arg( z->maskLength() ) );
item->setText( 4, z->description() );
}
@@ -234,7 +234,7 @@ void KMFMyNetworkWidget::slotZoneRBM( TQListViewItem* item, const TQPoint& point
if ( m_zone ) {
m_contextMenu->clear();
TQString name = m_zone->name();
- TQString lab_str = i18n("Zone: %1").tqarg( m_zone->guiName() );
+ TQString lab_str = i18n("Zone: %1").arg( m_zone->guiName() );
m_contextMenu->insertTitle( icon_chain, lab_str );
m_contextMenu->insertItem( icon_new, i18n( "Add Host..." ), this, TQT_SLOT( slotAddHost() ) );
@@ -256,7 +256,7 @@ void KMFMyNetworkWidget::slotZoneRBM( TQListViewItem* item, const TQPoint& point
if ( m_target ) {
m_contextMenu->clear();
TQString name = m_target->name();
- TQString lab_str = i18n("Host: %1").tqarg( m_target->guiName() );
+ TQString lab_str = i18n("Host: %1").arg( m_target->guiName() );
m_contextMenu->insertTitle( icon_chain, lab_str );
if ( ! m_target->readOnly() ) {
m_contextMenu->insertItem( icon_rename, i18n( "Rename Host..." ), this, TQT_SLOT( slotRenameHost() ) );
@@ -292,7 +292,7 @@ void KMFMyNetworkWidget::slotAddHost() {
if ( m_zone ) {
KMFUndoEngine::instance()->startTransaction(
m_network->netzone(),
- i18n("Add Target: %1 to Zone: %2").tqarg( name ).tqarg( m_zone->guiName() )
+ i18n("Add Target: %1 to Zone: %2").arg( name ).arg( m_zone->guiName() )
);
TQString s = "";
s = s.setNum( m_zone->hosts().count() );
@@ -317,7 +317,7 @@ void KMFMyNetworkWidget::slotDelHost() {
return;
KMFUndoEngine::instance()->startTransaction(
m_zone,
- i18n("Delete Target: %1 from Zone: %2").tqarg( m_target->guiName() ).tqarg( m_zone->guiName() )
+ i18n("Delete Target: %1 from Zone: %2").arg( m_target->guiName() ).arg( m_zone->guiName() )
);
m_zone->delHost( m_target );
KMFUndoEngine::instance()->endTransaction();
@@ -338,7 +338,7 @@ void KMFMyNetworkWidget::slotAddZone() {
KMFUndoEngine::instance()->startTransaction(
m_network->netzone(),
- i18n("Add Zone: %1 to Zone: %2").tqarg( name ).tqarg( m_network->netzone()->guiName() )
+ i18n("Add Zone: %1 to Zone: %2").arg( name ).arg( m_network->netzone()->guiName() )
);
KMFNetZone * zone = m_network->netzone()->addZone( "", new KMFError() );
@@ -362,7 +362,7 @@ void KMFMyNetworkWidget::slotDelZone() {
if ( m_zone->name() != i18n("world") ) {
KMFUndoEngine::instance()->startTransaction(
m_zone->zone(),
- i18n("Delete Zone: %1 from Zone: %2").tqarg( m_zone->guiName() ).tqarg( m_zone->zone()->guiName() )
+ i18n("Delete Zone: %1 from Zone: %2").arg( m_zone->guiName() ).arg( m_zone->zone()->guiName() )
);
m_zone->zone()->delZone( m_zone );
m_zone = 0;
@@ -385,7 +385,7 @@ void KMFMyNetworkWidget::slotRenameItem( TQListViewItem* item, int, const TQStri
if ( kmfitem->type() == NetfilterObject::NETZONE ) {
KMFUndoEngine::instance()->startTransaction(
kmfitem->zone(),
- i18n("Rename Zone: %1 to %3").tqarg( m_zone->guiName() ).tqarg( name )
+ i18n("Rename Zone: %1 to %3").arg( m_zone->guiName() ).arg( name )
);
kmfitem->zone()->setGuiName( name );
@@ -397,7 +397,7 @@ void KMFMyNetworkWidget::slotRenameItem( TQListViewItem* item, int, const TQStri
if ( kmfitem->type() == NetfilterObject::KMFTARGET ) {
KMFUndoEngine::instance()->startTransaction(
kmfitem->target(),
- i18n("Rename Host: %1 to %3").tqarg( m_zone->guiName() ).tqarg( name )
+ i18n("Rename Host: %1 to %3").arg( m_zone->guiName() ).arg( name )
);
kmfitem->target()->setGuiName( name );
kdDebug() << "Renaming Host: " << kmfitem->target()->name() << endl;
diff --git a/kmyfirewall/kmfwidgets/kmfnethostpropertieswidget.cpp b/kmyfirewall/kmfwidgets/kmfnethostpropertieswidget.cpp
index 6e50797..d46be4b 100644
--- a/kmyfirewall/kmfwidgets/kmfnethostpropertieswidget.cpp
+++ b/kmyfirewall/kmfwidgets/kmfnethostpropertieswidget.cpp
@@ -158,7 +158,7 @@ void KMFNetHostPropertiesWidget::slotAddressChanged( int d0, int d1, int d2, int
<< d3 << ")" << endl;
KMFUndoEngine::instance()->startTransaction(
m_host,
- i18n("Change address of Host: %1.").tqarg( m_host->guiName() )
+ i18n("Change address of Host: %1.").arg( m_host->guiName() )
);
m_host->address()->setAddress( d0, d1, d2, d3 );
m_host->zone()->rootZone()->placeHostInZone( m_host );
@@ -183,7 +183,7 @@ void KMFNetHostPropertiesWidget::slotHostLogToggled( bool ) {
}
KMFUndoEngine::instance()->startTransaction(
m_host,
- i18n( "%1 logging of incoming packets for host %2." ).tqarg( m_cb_host_log->isChecked() ? i18n( "Enable" ) : i18n( "Disable" ) ).tqarg( m_host->guiName() )
+ i18n( "%1 logging of incoming packets for host %2." ).arg( m_cb_host_log->isChecked() ? i18n( "Enable" ) : i18n( "Disable" ) ).arg( m_host->guiName() )
);
m_host->setLogIncoming( m_cb_host_log->isChecked() );
KMFUndoEngine::instance()->endTransaction();
@@ -193,7 +193,7 @@ void KMFNetHostPropertiesWidget::slotHostLogToggled( bool ) {
}
KMFUndoEngine::instance()->startTransaction(
m_host,
- i18n( "%1 logging of outgoing packets for host %2." ).tqarg( m_cb_host_log->isChecked() ? i18n( "Enable" ) : i18n( "Disable" ) ).tqarg( m_host->guiName() )
+ i18n( "%1 logging of outgoing packets for host %2." ).arg( m_cb_host_log->isChecked() ? i18n( "Enable" ) : i18n( "Disable" ) ).arg( m_host->guiName() )
);
m_host->setLogOutgoing( m_cb_host_log->isChecked() );
KMFUndoEngine::instance()->endTransaction();
@@ -209,14 +209,14 @@ void KMFNetHostPropertiesWidget::slotHostLimitToggled( bool on ){
if ( on ) {
KMFUndoEngine::instance()->startTransaction(
m_host,
- i18n( "Enable package limit for host %1." ).tqarg( m_host->guiName() )
+ i18n( "Enable package limit for host %1." ).arg( m_host->guiName() )
);
m_host->setLimit( m_sb_host_rate->value(), m_cb_limit_host_interval->currentText() );
KMFUndoEngine::instance()->endTransaction();
} else {
KMFUndoEngine::instance()->startTransaction(
m_host,
- i18n( "Disable package limit for host %1." ).tqarg( m_host->guiName() )
+ i18n( "Disable package limit for host %1." ).arg( m_host->guiName() )
);
m_host->setLimit( -1, m_cb_limit_host_interval->currentText() );
KMFUndoEngine::instance()->endTransaction();
@@ -232,14 +232,14 @@ void KMFNetHostPropertiesWidget::slotHostLimitValueChanged( int ) {
if ( m_cb_host_limit->isChecked() ) {
KMFUndoEngine::instance()->startTransaction(
m_host,
- i18n( "Change package limit for host %1 to %2/%3." ).tqarg( m_host->guiName() ).tqarg( m_sb_host_rate->value() ).tqarg( m_cb_limit_host_interval->currentText() )
+ i18n( "Change package limit for host %1 to %2/%3." ).arg( m_host->guiName() ).arg( m_sb_host_rate->value() ).arg( m_cb_limit_host_interval->currentText() )
);
m_host->setLimit( m_sb_host_rate->value(), m_cb_limit_host_interval->currentText() );
KMFUndoEngine::instance()->endTransaction();
} else {
KMFUndoEngine::instance()->startTransaction(
m_host,
- i18n( "Disable package limit for host %1." ).tqarg( m_host->guiName() )
+ i18n( "Disable package limit for host %1." ).arg( m_host->guiName() )
);
m_host->setLimit( -1, m_cb_limit_host_interval->currentText() );
KMFUndoEngine::instance()->endTransaction();
@@ -255,14 +255,14 @@ void KMFNetHostPropertiesWidget::slotHostLimitScaleChanged( int ) {
if ( m_cb_host_limit->isChecked() ) {
KMFUndoEngine::instance()->startTransaction(
m_host,
- i18n( "Change package limit for host %1 to %2/%3." ).tqarg( m_host->guiName() ).tqarg( m_sb_host_rate->value() ).tqarg( m_cb_limit_host_interval->currentText() )
+ i18n( "Change package limit for host %1 to %2/%3." ).arg( m_host->guiName() ).arg( m_sb_host_rate->value() ).arg( m_cb_limit_host_interval->currentText() )
);
m_host->setLimit( m_sb_host_rate->value(), m_cb_limit_host_interval->currentText() );
KMFUndoEngine::instance()->endTransaction();
} else {
KMFUndoEngine::instance()->startTransaction(
m_host,
- i18n( "Disable package limit for host %1." ).tqarg( m_host->guiName() )
+ i18n( "Disable package limit for host %1." ).arg( m_host->guiName() )
);
m_host->setLimit( -1, "" );
KMFUndoEngine::instance()->endTransaction();
@@ -279,7 +279,7 @@ void KMFNetHostPropertiesWidget::slotDescriptionChanged() {
if ( newTxt != m_host->description() ) {
KMFUndoEngine::instance()->startTransaction(
m_host,
- i18n( "Change documentation of host: %1" ).tqarg( m_host->guiName() )
+ i18n( "Change documentation of host: %1" ).arg( m_host->guiName() )
);
m_host->setDescription( newTxt );
KMFUndoEngine::instance()->endTransaction();
diff --git a/kmyfirewall/kmfwidgets/kmfnetworkwidget.cpp b/kmyfirewall/kmfwidgets/kmfnetworkwidget.cpp
index be43b03..f540982 100644
--- a/kmyfirewall/kmfwidgets/kmfnetworkwidget.cpp
+++ b/kmyfirewall/kmfwidgets/kmfnetworkwidget.cpp
@@ -97,7 +97,7 @@ void KMFNetworkWidget::slotAddressChanged( const TQString& ) {
}
KMFUndoEngine::instance()->startTransaction(
m_zone->rootZone(),
- i18n( "Change address of Zone: %1" ).tqarg( m_zone->guiName() )
+ i18n( "Change address of Zone: %1" ).arg( m_zone->guiName() )
);
m_zone->address()->setAddress( m_sb_from_1->value(), m_sb_from_2->value(), m_sb_from_3->value(), m_sb_from_4->value() );
@@ -117,7 +117,7 @@ void KMFNetworkWidget::slotShortMaskChanged( int len ) {
if ( m_allowEdit && m_zone->maskLength() != len ) {
KMFUndoEngine::instance()->startTransaction(
m_zone->rootZone(),
- i18n( "Change mask length of Zone: %1" ).tqarg( m_zone->guiName() )
+ i18n( "Change mask length of Zone: %1" ).arg( m_zone->guiName() )
);
m_zone->setMaskLength( len );
m_zone->rootZone()->refreshNetworkTree();
@@ -137,7 +137,7 @@ void KMFNetworkWidget::slotDescriptionChanged() {
blockAllSignals( true );
KMFUndoEngine::instance()->startTransaction(
m_zone,
- i18n( "Change documentation of Zone: %1" ).tqarg( m_zone->guiName() )
+ i18n( "Change documentation of Zone: %1" ).arg( m_zone->guiName() )
);
m_zone->setDescription( newTxt );
KMFUndoEngine::instance()->endTransaction();
diff --git a/kmyfirewall/kmfwidgets/kmfnewdocdlg.cpp b/kmyfirewall/kmfwidgets/kmfnewdocdlg.cpp
index 581323d..f3b8cae 100644
--- a/kmyfirewall/kmfwidgets/kmfnewdocdlg.cpp
+++ b/kmyfirewall/kmfwidgets/kmfnewdocdlg.cpp
@@ -43,9 +43,9 @@ KMFNewDocDlg::KMFNewDocDlg( TQWidget *parent, const char *name, WFlags fl ) : KM
TQPainter p( &pic );
p.setFont( f );
p.setPen( TQt::white );
- p.drawText( 165, 45, TQString( "Version %1" ).tqarg( KMYFIREWALL_VERSION ) );
- p.drawText( 93, 215, TQString( "%1" ).tqarg( COPYRIGHT_DATE ) );
- p.drawText( 70, 230, TQString( "%1" ).tqarg( COPYRIGHT_OWNER ) );
+ p.drawText( 165, 45, TQString( "Version %1" ).arg( KMYFIREWALL_VERSION ) );
+ p.drawText( 93, 215, TQString( "%1" ).arg( COPYRIGHT_DATE ) );
+ p.drawText( 70, 230, TQString( "%1" ).arg( COPYRIGHT_OWNER ) );
if ( pic.isNull() )
return ;
l_pic->setPixmap( pic );
diff --git a/kmyfirewall/kmfwidgets/kmfobjectinfo.cpp b/kmyfirewall/kmfwidgets/kmfobjectinfo.cpp
index 1c76d49..87f1778 100644
--- a/kmyfirewall/kmfwidgets/kmfobjectinfo.cpp
+++ b/kmyfirewall/kmfwidgets/kmfobjectinfo.cpp
@@ -74,7 +74,7 @@ void KMFObjectInfo::accept() {
if ( m_netfilter_object->description() != te_desc->text() ) {
KMFUndoEngine::instance()->startTransaction(
m_netfilter_object,
- i18n("Edit Documentaion for: %1").tqarg( m_netfilter_object->name() )
+ i18n("Edit Documentaion for: %1").arg( m_netfilter_object->name() )
);
m_netfilter_object->setDescription( te_desc->text() );
kdDebug() << "Description Changed: " << te_desc->text() << endl;
@@ -84,7 +84,7 @@ void KMFObjectInfo::accept() {
if ( m_doc->description() != te_desc->text() ) {
KMFUndoEngine::instance()->startTransaction(
m_doc,
- i18n("Edit Documentaion for: %1").tqarg( m_netfilter_object->name() )
+ i18n("Edit Documentaion for: %1").arg( m_netfilter_object->name() )
);
m_doc->setDescription( te_desc->text() );
KMFUndoEngine::instance()->endTransaction();
diff --git a/kmyfirewall/kmfwidgets/kmfprocout.cpp b/kmyfirewall/kmfwidgets/kmfprocout.cpp
index cf83a69..d3fe32c 100644
--- a/kmyfirewall/kmfwidgets/kmfprocout.cpp
+++ b/kmyfirewall/kmfwidgets/kmfprocout.cpp
@@ -165,7 +165,7 @@ void KMFProcOut::insertStdoutLine( const TQString &line ) {
}
void KMFProcOut::insertStderrLine( const TQString &line ) {
- const TQString & line2 = i18n( "Error: %1" ).tqarg( line );
+ const TQString & line2 = i18n( "Error: %1" ).arg( line );
m_lbview->append( "" + line2 + "" );
}
@@ -175,7 +175,7 @@ void KMFProcOut::childFinished( bool , int status ) {
const TQString& job_name = m_job_name;
if ( status != 0 ) {
m_lbview->append( i18n( "
Execution failed" ) );
- m_lbview->append( i18n( "Exit(Code): %1" ).tqarg( stat ) );
+ m_lbview->append( i18n( "Exit(Code): %1" ).arg( stat ) );
emit sigJobFinished( false, job_name );
} else {
m_lbview->append( i18n( "
Finished successfully" ) );
diff --git a/kmyfirewall/kmfwidgets/kmfprotocolpropertieswidget.cpp b/kmyfirewall/kmfwidgets/kmfprotocolpropertieswidget.cpp
index 8de1b62..d7468b0 100644
--- a/kmyfirewall/kmfwidgets/kmfprotocolpropertieswidget.cpp
+++ b/kmyfirewall/kmfwidgets/kmfprotocolpropertieswidget.cpp
@@ -81,7 +81,7 @@ void KMFProtocolPropertiesWidget::loadProtocolCategory( KMFProtocolCategory* pro
m_gb_protocol_option->setEnabled( false );
m_gb_protocol_description->setEnabled( true );
m_l_protocol_desc->setEnabled( true );
- TQString text = i18n( "Description: %1
" ).tqarg( protCat ->description() );
+ TQString text = i18n( "Description: %1
" ).arg( protCat ->description() );
text += "";
m_l_protocol_desc->setText( text );
@@ -93,7 +93,7 @@ void KMFProtocolPropertiesWidget::loadProtocol( KMFProtocol* prot ) {
m_gb_protocol_option->setEnabled( false );
m_gb_protocol_description->setEnabled( true );
m_l_protocol_desc->setEnabled( true );
- TQString text = i18n( "Description: %1
" ).tqarg( prot ->description() );
+ TQString text = i18n( "Description: %1
" ).arg( prot ->description() );
const TQString& tcpports = prot->tcpPortsList();
if ( ! tcpports.isEmpty() ) {
@@ -160,7 +160,7 @@ void KMFProtocolPropertiesWidget::slotEnableProtocolLimit( bool onoff ) {
if ( onoff ) {
KMFUndoEngine::instance()->startTransaction(
m_protocolUsage,
- i18n("Enable package limit for protocol %1.").tqarg( m_protocolUsage->name() )
+ i18n("Enable package limit for protocol %1.").arg( m_protocolUsage->name() )
);
m_protocolUsage->setLimit( m_sb_limit_rate->value() );
m_protocolUsage->setLimitInterval( m_cb_limit_interval->currentText() );
@@ -168,7 +168,7 @@ void KMFProtocolPropertiesWidget::slotEnableProtocolLimit( bool onoff ) {
} else {
KMFUndoEngine::instance()->startTransaction(
m_protocolUsage,
- i18n("Sisable package limit for protocol %1.").tqarg( m_protocolUsage->name() )
+ i18n("Sisable package limit for protocol %1.").arg( m_protocolUsage->name() )
);
m_protocolUsage->setLimit( -1 );
KMFUndoEngine::instance()->endTransaction();
@@ -184,7 +184,7 @@ void KMFProtocolPropertiesWidget::slotSetProtocolLimitRate( int rate ){
KMFUndoEngine::instance()->startTransaction(
m_protocolUsage,
- i18n("Set package limit for protocol %1 to %2/%3.").tqarg( m_protocolUsage->name() ).tqarg( rate ).tqarg( m_protocolUsage->limitInterval() )
+ i18n("Set package limit for protocol %1 to %2/%3.").arg( m_protocolUsage->name() ).arg( rate ).arg( m_protocolUsage->limitInterval() )
);
m_protocolUsage->setLimit( rate );
KMFUndoEngine::instance()->endTransaction();
@@ -202,7 +202,7 @@ void KMFProtocolPropertiesWidget::slotSetProtocolLimitInterval( const TQString&
KMFUndoEngine::instance()->startTransaction(
m_protocolUsage,
- i18n("Set package limit for protocol %1 to %2/%3.").tqarg( m_protocolUsage->name() ).tqarg( m_protocolUsage->limit() ).tqarg( interval )
+ i18n("Set package limit for protocol %1 to %2/%3.").arg( m_protocolUsage->name() ).arg( m_protocolUsage->limit() ).arg( interval )
);
m_protocolUsage->setLimitInterval( interval );
KMFUndoEngine::instance()->endTransaction();
@@ -217,7 +217,7 @@ void KMFProtocolPropertiesWidget::slotEnableProtocolLogging( bool onoff ){
KMFUndoEngine::instance()->startTransaction(
m_protocolUsage,
- i18n( "%1 logging of dropped packets for protocol %2." ).tqarg( onoff ? i18n( "Enable" ) : i18n( "Disable" ) ).tqarg( m_protocolUsage->name() )
+ i18n( "%1 logging of dropped packets for protocol %2." ).arg( onoff ? i18n( "Enable" ) : i18n( "Disable" ) ).arg( m_protocolUsage->name() )
);
m_protocolUsage->setLogging( onoff );
diff --git a/kmyfirewall/kmfwidgets/kmfsystemsettingslinux.cpp b/kmyfirewall/kmfwidgets/kmfsystemsettingslinux.cpp
index 993a99f..5165e38 100644
--- a/kmyfirewall/kmfwidgets/kmfsystemsettingslinux.cpp
+++ b/kmyfirewall/kmfwidgets/kmfsystemsettingslinux.cpp
@@ -147,7 +147,7 @@ void KMFSystemSettingsLinux::slotDistributionChanged() {
}
KMFUndoEngine::instance()->startTransaction(
conf,
- i18n( "Change system settings of target: %1" ).tqarg( conf->target()->guiName() )
+ i18n( "Change system settings of target: %1" ).arg( conf->target()->guiName() )
);
conf->setIPTPath( m_url_ipt_path->url() );
conf->setModprobePath( m_url_mod_path->url() );
@@ -174,7 +174,7 @@ void KMFSystemSettingsLinux::slotSettingChanged() {
}
KMFUndoEngine::instance()->startTransaction(
conf,
- i18n( "Change system settings of target: %1" ).tqarg( conf->target()->guiName() )
+ i18n( "Change system settings of target: %1" ).arg( conf->target()->guiName() )
);
conf->setIPTPath( m_url_ipt_path->url() );
conf->setModprobePath( m_url_mod_path->url() );
diff --git a/kmyfirewall/kmfwidgets/kmftemplatechooser.cpp b/kmyfirewall/kmfwidgets/kmftemplatechooser.cpp
index c1e4c27..d82ba5c 100644
--- a/kmyfirewall/kmfwidgets/kmftemplatechooser.cpp
+++ b/kmyfirewall/kmfwidgets/kmftemplatechooser.cpp
@@ -110,7 +110,7 @@ void KMFTemplateChooser::parseTemplates(){
}
TQStringList templates = dir.entryList( type );
if ( templates.isEmpty() ) {
- KMessageBox::information( this, i18n("No templates (%1) could be found; please check your installation.").tqarg( type ) );
+ KMessageBox::information( this, i18n("No templates (%1) could be found; please check your installation.").arg( type ) );
return;
}
for ( TQStringList::Iterator it = templates.begin(); it != templates.end(); ++it ) {
@@ -123,21 +123,21 @@ void KMFTemplateChooser::parseFile( const TQString& file ) {
TQFile f( file );
if ( !f.open( IO_ReadOnly ) ) {
- KMessageBox::information( this, i18n("Template %1 could not be opened.").tqarg( file ) );
+ KMessageBox::information( this, i18n("Template %1 could not be opened.").arg( file ) );
return;
}
TQDomDocument doc;
if ( !doc.setContent( &f ) ) {
f.close();
- KMessageBox::information( this, i18n("Template %1 is not a valid XML document.").tqarg( file ) );
+ KMessageBox::information( this, i18n("Template %1 is not a valid XML document.").arg( file ) );
return;
}
TQDomElement root = doc.documentElement();
TQDomNodeList list = root.elementsByTagName ( XML::Abstract_Element );
if ( list.count() == 0 ) {
- KMessageBox::information( this, i18n("Template %1 does not contain the \"abstract\" tag.").tqarg( file ) );
+ KMessageBox::information( this, i18n("Template %1 does not contain the \"abstract\" tag.").arg( file ) );
return;
}
TQDomNode node = list.item( 0 );
diff --git a/kmyfirewall/kmfwidgets/kmftransactionlog.cpp b/kmyfirewall/kmfwidgets/kmftransactionlog.cpp
index 7d1e85f..da89c7e 100644
--- a/kmyfirewall/kmfwidgets/kmftransactionlog.cpp
+++ b/kmyfirewall/kmfwidgets/kmftransactionlog.cpp
@@ -128,8 +128,8 @@ void KMFTransactionLog::slotZoneRBM( TQListViewItem* item, const TQPoint& point,
m_currentTransaction = t;
m_contextMenu->clear();
- TQString name = i18n("Transaction: %1").tqarg( m_currentTransaction->uuid().toString() );
- // TQString lab_str = i18n("Zone: %1").tqarg( m_zone->guiName() );
+ TQString name = i18n("Transaction: %1").arg( m_currentTransaction->uuid().toString() );
+ // TQString lab_str = i18n("Zone: %1").arg( m_zone->guiName() );
m_contextMenu->insertTitle( name );
m_contextMenu->insertItem( i18n( "Show XML diff using Kompare" ), this, TQT_SLOT( slotShowDiff() ) );
m_contextMenu->popup( point );
@@ -264,7 +264,7 @@ KListViewItem* KMFTransactionLog::setupListItem( KMFTransaction* trans, KListVie
NetfilterObject *obj = 0;
obj = NetfilterObject::findObject ( obj_uuid );
if ( obj ) {
- itemID->setText( 0, i18n("Object: %1").tqarg( obj->name() ) );
+ itemID->setText( 0, i18n("Object: %1").arg( obj->name() ) );
// itemID->setText( 2, obj->name() );
// itemID->setText( 3, obj->getXMLSniplet() );
}
diff --git a/kmyfirewall/kmfwidgets/kmyfirewalldocumentinfo.ui b/kmyfirewall/kmfwidgets/kmyfirewalldocumentinfo.ui
index 8d1b331..95150a0 100644
--- a/kmyfirewall/kmfwidgets/kmyfirewalldocumentinfo.ui
+++ b/kmyfirewall/kmfwidgets/kmyfirewalldocumentinfo.ui
@@ -37,7 +37,7 @@
<b>Ruleset Description:</b>
-
+
WordBreak|AlignTop
diff --git a/kmyfirewall/kmfwidgets/kmyfirewallhostwidget.ui b/kmyfirewall/kmfwidgets/kmyfirewallhostwidget.ui
index 5c55952..4f92f9d 100644
--- a/kmyfirewall/kmfwidgets/kmyfirewallhostwidget.ui
+++ b/kmyfirewall/kmfwidgets/kmyfirewallhostwidget.ui
@@ -59,7 +59,7 @@
.
-
+
AlignBottom
@@ -89,7 +89,7 @@
.
-
+
AlignBottom
@@ -119,7 +119,7 @@
.
-
+
AlignBottom
diff --git a/kmyfirewall/kmfwidgets/kmyfirewallinterfacewidget.ui b/kmyfirewall/kmfwidgets/kmyfirewallinterfacewidget.ui
index a374a79..f2e2fa8 100644
--- a/kmyfirewall/kmfwidgets/kmyfirewallinterfacewidget.ui
+++ b/kmyfirewall/kmfwidgets/kmyfirewallinterfacewidget.ui
@@ -32,7 +32,7 @@
Please add your available network Interfaces here:
-
+
WordBreak|AlignVCenter
diff --git a/kmyfirewall/kmfwidgets/kmyfirewalliptdocoptions.ui b/kmyfirewall/kmfwidgets/kmyfirewalliptdocoptions.ui
index 035bfaa..0c62584 100644
--- a/kmyfirewall/kmfwidgets/kmyfirewalliptdocoptions.ui
+++ b/kmyfirewall/kmfwidgets/kmyfirewalliptdocoptions.ui
@@ -49,7 +49,7 @@
Here you can configure several general options that your firewall has.
-
+
WordBreak|AlignCenter
@@ -85,7 +85,7 @@
Enable the iptables you like to use in your firewall.
-
+
WordBreak|AlignVCenter
@@ -264,7 +264,7 @@
<b>Enable this if you compiled iptables as modules</b>. For details about the required modules, take a look at the iptables man page.
-
+
WordBreak|AlignVCenter
@@ -283,7 +283,7 @@
<b>Enable this if your host should act as a router</b>.
-
+
WordBreak|AlignVCenter
@@ -294,7 +294,7 @@
<b>Enable if you like to use Syn Cookies.</b> (needs support compiled in the kernel)
-
+
WordBreak|AlignVCenter
@@ -313,7 +313,7 @@
<b>Enable</b> if you like to use <b>Reverse Parse Filtering</b>.
-
+
WordBreak|AlignVCenter
diff --git a/kmyfirewall/kmfwidgets/kmyfirewallipv4adddresswidget.ui b/kmyfirewall/kmfwidgets/kmyfirewallipv4adddresswidget.ui
index 2413e25..c0d3334 100644
--- a/kmyfirewall/kmfwidgets/kmyfirewallipv4adddresswidget.ui
+++ b/kmyfirewall/kmfwidgets/kmyfirewallipv4adddresswidget.ui
@@ -56,7 +56,7 @@
.
-
+
AlignBottom
@@ -86,7 +86,7 @@
.
-
+
AlignBottom
@@ -116,7 +116,7 @@
.
-
+
AlignBottom
diff --git a/kmyfirewall/kmfwidgets/kmyfirewallmultiportwidget.ui b/kmyfirewall/kmfwidgets/kmyfirewallmultiportwidget.ui
index f6e42bc..5f134f6 100644
--- a/kmyfirewall/kmfwidgets/kmyfirewallmultiportwidget.ui
+++ b/kmyfirewall/kmfwidgets/kmyfirewallmultiportwidget.ui
@@ -167,7 +167,7 @@
<p>You may filter for up to 15 ports within one rule if you are using the multiport extention.<br>
Use this to avoid too large (slow) rulesets.
-
+
WordBreak|AlignTop
diff --git a/kmyfirewall/kmfwidgets/kmyfirewallnetworkwidget.ui b/kmyfirewall/kmfwidgets/kmyfirewallnetworkwidget.ui
index 163ff1f..14f4c0e 100644
--- a/kmyfirewall/kmfwidgets/kmyfirewallnetworkwidget.ui
+++ b/kmyfirewall/kmfwidgets/kmyfirewallnetworkwidget.ui
@@ -114,7 +114,7 @@
.
-
+
AlignBottom
@@ -144,7 +144,7 @@
.
-
+
AlignBottom
@@ -174,7 +174,7 @@
.
-
+
AlignBottom
@@ -250,7 +250,7 @@
Mask:
-
+
AlignVCenter
@@ -313,7 +313,7 @@
Zone Properties:
-
+
AlignVCenter
diff --git a/kmyfirewall/kmfwidgets/kmyfirewallnewdocument.ui b/kmyfirewall/kmfwidgets/kmyfirewallnewdocument.ui
index 04268f2..04da3cd 100644
--- a/kmyfirewall/kmfwidgets/kmyfirewallnewdocument.ui
+++ b/kmyfirewall/kmfwidgets/kmyfirewallnewdocument.ui
@@ -129,7 +129,7 @@
<h3>New/Open Document</h3>
-
+
WordBreak|AlignTop
@@ -190,7 +190,7 @@
Please choose how you would like to start your new firewall configuration.
-
+
WordBreak|AlignTop
diff --git a/kmyfirewall/kmfwidgets/kmyfirewallobjectinfo.ui b/kmyfirewall/kmfwidgets/kmyfirewallobjectinfo.ui
index 5915913..a365e5c 100644
--- a/kmyfirewall/kmfwidgets/kmyfirewallobjectinfo.ui
+++ b/kmyfirewall/kmfwidgets/kmyfirewallobjectinfo.ui
@@ -49,7 +49,7 @@
Rule Documentation
-
+
AlignCenter
diff --git a/kmyfirewall/kmfwidgets/kmyfirewallprotocolpropertieswidget.ui b/kmyfirewall/kmfwidgets/kmyfirewallprotocolpropertieswidget.ui
index 8083d06..9ee27a1 100644
--- a/kmyfirewall/kmfwidgets/kmyfirewallprotocolpropertieswidget.ui
+++ b/kmyfirewall/kmfwidgets/kmyfirewallprotocolpropertieswidget.ui
@@ -141,7 +141,7 @@
m_l_protocol_desc
-
+
WordBreak|AlignTop
diff --git a/kmyfirewall/kmfwidgets/kmyfirewallselectinterface.ui b/kmyfirewall/kmfwidgets/kmyfirewallselectinterface.ui
index 645d918..ffa59f3 100644
--- a/kmyfirewall/kmfwidgets/kmyfirewallselectinterface.ui
+++ b/kmyfirewall/kmfwidgets/kmyfirewallselectinterface.ui
@@ -130,7 +130,7 @@
Description
-
+
AlignTop
@@ -220,7 +220,7 @@
<p>KMyFirewall provides two different inerfaces for setting up your firewall. Please select the Interface you like to use.</p>
-
+
WordBreak|AlignTop
diff --git a/kmyfirewall/kmfwidgets/kmyfirewallsystemsettingslinux.ui b/kmyfirewall/kmfwidgets/kmyfirewallsystemsettingslinux.ui
index b65c8f9..0fb4ed1 100644
--- a/kmyfirewall/kmfwidgets/kmyfirewallsystemsettingslinux.ui
+++ b/kmyfirewall/kmfwidgets/kmyfirewallsystemsettingslinux.ui
@@ -60,7 +60,7 @@
As Gentoo and Slackware are using non-standard SysV init system it is required to select your distibution in order to make the firewall install properly into your boot setup.
-
+
WordBreak|AlignVCenter
@@ -71,7 +71,7 @@
Path to the defaul <b> runlevel</b> directoy:
-
+
AlignVCenter
@@ -82,7 +82,7 @@
Path to the <b>init</b> directory:
-
+
AlignVCenter
@@ -93,7 +93,7 @@
Path to the <b>modprobe</b> program:
-
+
AlignVCenter
@@ -112,7 +112,7 @@
Path to the <b>iptables</b> binary:
-
+
AlignVCenter
diff --git a/kmyfirewall/kmfwidgets/kmyfirewalltemplatechooser.ui b/kmyfirewall/kmfwidgets/kmyfirewalltemplatechooser.ui
index 7a9239c..96bd6e7 100644
--- a/kmyfirewall/kmfwidgets/kmyfirewalltemplatechooser.ui
+++ b/kmyfirewall/kmfwidgets/kmyfirewalltemplatechooser.ui
@@ -248,7 +248,7 @@
AutoText
-
+
WordBreak|AlignTop
@@ -297,7 +297,7 @@
<h3>Template Chooser</h3>
<p>Select a ruleset template you like to use as the starting point for your firewall setup.</p>
-
+
WordBreak|AlignTop
@@ -400,7 +400,7 @@
<h3>Available Templates</h3>
-
+
AlignVCenter
diff --git a/kmyfirewall/kmyfirewall.cpp b/kmyfirewall/kmyfirewall.cpp
index cc8f8cd..990f3c6 100644
--- a/kmyfirewall/kmyfirewall.cpp
+++ b/kmyfirewall/kmyfirewall.cpp
@@ -185,7 +185,7 @@ void KMyFirewall::parseCommandLineArgs() {
} else {
closeSplash();
const TQString & msg = i18n( "Open File %1 failed
"
- "" ).tqarg( curr ) ;
+ "" ).arg( curr ) ;
KMessageBox::error( this, msg, i18n( "Error" ) );
// Show interface select if open file failed when requested
if ( KMFConfig::showSelInterface() ) {
@@ -476,7 +476,7 @@ void KMyFirewall::updateCaption(){
if ( ! network() || ! network()->currentTarget() ) {
return;
}
- TQString s = network()->url().fileName() + i18n(" Configuring Target %1").tqarg( network()->currentTarget()->toFriendlyString() );
+ TQString s = network()->url().fileName() + i18n(" Configuring Target %1").arg( network()->currentTarget()->toFriendlyString() );
if ( ! KMFUndoEngine::instance()->isSaved() ) {
s += i18n( "[modified]" );
}
@@ -531,7 +531,7 @@ void KMyFirewall::slotRedo() {
void KMyFirewall::slotFileOpen() {
kdDebug() << "KMyFirewall::slotFileOpen()" << endl;
KURL url;
- url = KFileDialog::getOpenURL( ":", TQString( "%1" ).tqarg( network()->getFileDialogFilter() ) );
+ url = KFileDialog::getOpenURL( ":", TQString( "%1" ).arg( network()->getFileDialogFilter() ) );
TQString xmlfile = url.path();
if ( url.path().isEmpty() ) {
@@ -561,7 +561,7 @@ void KMyFirewall::slotLoadFile( const TQString& file ) {
void KMyFirewall::slotImportTargetConfig() {
kdDebug() << "KMyFirewall::slotImportTragetConfig()" << endl;
KURL url;
- url = KFileDialog::getOpenURL( ":", TQString( "%1" ).tqarg( network()->currentDoc()->getFileDialogFilter() ) );
+ url = KFileDialog::getOpenURL( ":", TQString( "%1" ).arg( network()->currentDoc()->getFileDialogFilter() ) );
TQString xmlfile = url.path();
if ( url.path().isEmpty() ) {
@@ -711,7 +711,7 @@ KMFDoc* KMyFirewall::getDocumentLoaderForUrl( const KURL& url, KMFError* err ) {
if ( ! KIO::NetAccess::download( url, xmlfile, KApplication::kApplication()->mainWidget() ) ) {
kdDebug() << "Could not download file." << endl;
err->setErrType( KMFError::NORMAL );
- err->setErrMsg( i18n( "Could not download file %1" ).tqarg( url.url() ) );
+ err->setErrMsg( i18n( "Could not download file %1" ).arg( url.url() ) );
return 0;
}
@@ -720,7 +720,7 @@ KMFDoc* KMyFirewall::getDocumentLoaderForUrl( const KURL& url, KMFError* err ) {
if ( !kmfrsFile.open( IO_ReadOnly ) ) {
err->setErrType( KMFError::NORMAL );
- err->setErrMsg( i18n( "Could not read file %1." ).tqarg( url.url() ) );
+ err->setErrMsg( i18n( "Could not read file %1." ).arg( url.url() ) );
return 0;
}
@@ -728,7 +728,7 @@ KMFDoc* KMyFirewall::getDocumentLoaderForUrl( const KURL& url, KMFError* err ) {
if ( !doc.setContent( &kmfrsFile ) ) {
kmfrsFile.close();
err->setErrType( KMFError::NORMAL );
- err->setErrMsg( i18n( "File %1 in not a vaild XML file." ).tqarg( url.url() ) );
+ err->setErrMsg( i18n( "File %1 in not a vaild XML file." ).arg( url.url() ) );
return 0;
}
kmfrsFile.close();
@@ -813,7 +813,7 @@ KMFDoc* KMyFirewall::getDocumentLoaderForUrl( const KURL& url, KMFError* err ) {
}
KIO::NetAccess::removeTempFile( xmlfile );
err->setErrType( KMFError::NORMAL );
- err->setErrMsg( i18n( "Could not download file %1." ).tqarg( url.url() ) );
+ err->setErrMsg( i18n( "Could not download file %1." ).arg( url.url() ) );
return 0;
}
@@ -825,7 +825,7 @@ KMFError* KMyFirewall::parseDocument( const KURL& url ) {
closeSplash();
const TQString msg = i18n( "The file %1 could not be loaded.
"
"If you are working with files stored on remote computers "
- "make sure that the network is up and the fileserver running.
" ).tqarg( url.url() );
+ "make sure that the network is up and the fileserver running." ).arg( url.url() );
m_err->setErrType( KMFError::NORMAL );
m_err->setErrMsg( msg );
return m_err;
@@ -833,7 +833,7 @@ KMFError* KMyFirewall::parseDocument( const KURL& url ) {
KFileItem *props = new KFileItem( f_props, url );
kdDebug() << "Found file permissions: " << props->permissionsString() << endl;
if ( !props->isReadable() ) {
- const TQString msg = i18n( "You don't have the permissions to read file: %1
" ).tqarg( url.url() );
+ const TQString msg = i18n( "You don't have the permissions to read file: %1
" ).arg( url.url() );
m_err->setErrType( KMFError::NORMAL );
m_err->setErrMsg( msg );
return m_err;
@@ -845,7 +845,7 @@ KMFError* KMyFirewall::parseDocument( const KURL& url ) {
}
if ( ! loader ) {
- const TQString msg = i18n( "No loader found for file: %1
" ).tqarg( url.url() );
+ const TQString msg = i18n( "No loader found for file: %1
" ).arg( url.url() );
m_err->setErrType( KMFError::NORMAL );
m_err->setErrMsg( msg );
return m_err;
@@ -873,7 +873,7 @@ KMFError* KMyFirewall::parseDocument( const KURL& url ) {
KMFConfig::setCurrentConfiguration( "" );
network()->currentDoc()->clear();
m_err->setErrType( KMFError::NORMAL );
- const TQString msg = i18n( "Unable to load file %1." ).tqarg( url.url() );
+ const TQString msg = i18n( "Unable to load file %1." ).arg( url.url() );
m_err->setErrMsg( msg );
return m_err;
}
@@ -1027,9 +1027,9 @@ void KMyFirewall::checkStatus() {
if ( isInstalled ) {
- statusBar() ->changeItem( i18n( "Firewall is installed on %1" ).tqarg( network()->currentTarget() ->toFriendlyString() ), 1 );
+ statusBar() ->changeItem( i18n( "Firewall is installed on %1" ).arg( network()->currentTarget() ->toFriendlyString() ), 1 );
} else {
- statusBar() ->changeItem( i18n( "Firewall is not installed on %1" ).tqarg( network()->currentTarget() ->toFriendlyString() ), 1 );
+ statusBar() ->changeItem( i18n( "Firewall is not installed on %1" ).arg( network()->currentTarget() ->toFriendlyString() ), 1 );
}
diff --git a/kmyfirewall/ruleoptionplugins/custom_option/kmfruleeditcustomopt.cpp b/kmyfirewall/ruleoptionplugins/custom_option/kmfruleeditcustomopt.cpp
index 66641a5..cb3d0f2 100644
--- a/kmyfirewall/ruleoptionplugins/custom_option/kmfruleeditcustomopt.cpp
+++ b/kmyfirewall/ruleoptionplugins/custom_option/kmfruleeditcustomopt.cpp
@@ -84,7 +84,7 @@ void KMFRuleEditCustomOpt::loadRule( IPTRule * rule ) {
void KMFRuleEditCustomOpt::accept() {
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n("Edit Custom Rule: %1 Option").tqarg( m_rule->name() )
+ i18n("Edit Custom Rule: %1 Option").arg( m_rule->name() )
);
TQString target = "";
target = t_target->text();
diff --git a/kmyfirewall/ruleoptionplugins/custom_option/kmyfirewallruleeditorcustomrule.ui b/kmyfirewall/ruleoptionplugins/custom_option/kmyfirewallruleeditorcustomrule.ui
index ce363cd..d9d3247 100644
--- a/kmyfirewall/ruleoptionplugins/custom_option/kmyfirewallruleeditorcustomrule.ui
+++ b/kmyfirewall/ruleoptionplugins/custom_option/kmyfirewallruleeditorcustomrule.ui
@@ -60,7 +60,7 @@
Custom Options
-
+
WordBreak|AlignCenter
@@ -234,7 +234,7 @@
Here you may define the target option for the rule. Please keep in mind that not all targets have options to set.
-
+
WordBreak|AlignTop
diff --git a/kmyfirewall/ruleoptionplugins/interface_option/kmfruleeditorinterface.cpp b/kmyfirewall/ruleoptionplugins/interface_option/kmfruleeditorinterface.cpp
index 27ef89d..ebaf39b 100644
--- a/kmyfirewall/ruleoptionplugins/interface_option/kmfruleeditorinterface.cpp
+++ b/kmyfirewall/ruleoptionplugins/interface_option/kmfruleeditorinterface.cpp
@@ -96,7 +96,7 @@ void KMFRuleEditorInterface::slotOk() {
// KMyFirewallRuleEditor* ed = (KMyFirewallRuleEditor*)parentWidget();
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n("Edit Rule: %1 Interface Option").tqarg( m_rule->name() )
+ i18n("Edit Rule: %1 Interface Option").arg( m_rule->name() )
);
TQString out = cb_out_int->currentText();
diff --git a/kmyfirewall/ruleoptionplugins/interface_option/kmyfirewallruleeditorinterface.ui b/kmyfirewall/ruleoptionplugins/interface_option/kmyfirewallruleeditorinterface.ui
index 4cd62f4..ee3fc2e 100644
--- a/kmyfirewall/ruleoptionplugins/interface_option/kmyfirewallruleeditorinterface.ui
+++ b/kmyfirewall/ruleoptionplugins/interface_option/kmyfirewallruleeditorinterface.ui
@@ -59,7 +59,7 @@
Interface Options
-
+
WordBreak|AlignCenter
@@ -72,7 +72,7 @@
<b>ATTENTION: </b>Not All options are not always allowed! The program will attempt to check your settings, but as usual options may be accepted even if the configuration is not valid. If you get error messages at firewall startup, make sure that your configuration is valid. Have a look at the help or the "iptables" man page for more details.
-
+
WordBreak|AlignVCenter|AlignLeft
@@ -117,7 +117,7 @@
The incoming interface is only valid in the INPUT and FORWARD chains, and chains that are fed only by them.
-
+
WordBreak|AlignVCenter|AlignLeft
@@ -231,7 +231,7 @@
Checking for the outgoing interface is only possible in the OUTPUT and FORWARD chains, and chains that are fed only by them.
-
+
WordBreak|AlignVCenter|AlignLeft
diff --git a/kmyfirewall/ruleoptionplugins/ip_option/kmfruleeditip.cpp b/kmyfirewall/ruleoptionplugins/ip_option/kmfruleeditip.cpp
index b63ab42..c95f709 100644
--- a/kmyfirewall/ruleoptionplugins/ip_option/kmfruleeditip.cpp
+++ b/kmyfirewall/ruleoptionplugins/ip_option/kmfruleeditip.cpp
@@ -120,7 +120,7 @@ void KMFRuleEditIP::accept() {
kdDebug() << "KMFRuleEditIP::slotOk()" << endl;
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n("Edit Rule: %1 IP Option").tqarg( m_rule->name() )
+ i18n("Edit Rule: %1 IP Option").arg( m_rule->name() )
);
TQString* src_ip = new TQString( t_src_ip->text() );
TQString* dest_ip = new TQString( t_dest_ip->text() );
diff --git a/kmyfirewall/ruleoptionplugins/ip_option/kmyfirewallruleeditorip.ui b/kmyfirewall/ruleoptionplugins/ip_option/kmyfirewallruleeditorip.ui
index 2ad95d7..1d40d29 100644
--- a/kmyfirewall/ruleoptionplugins/ip_option/kmyfirewallruleeditorip.ui
+++ b/kmyfirewall/ruleoptionplugins/ip_option/kmyfirewallruleeditorip.ui
@@ -67,7 +67,7 @@
IP Options
-
+
WordBreak|AlignCenter
@@ -100,7 +100,7 @@
NOTE: By checking the "Invert" checkbox the rule will only match if the specified address is not one of the values you defined.
-
+
WordBreak|AlignVCenter
diff --git a/kmyfirewall/ruleoptionplugins/limit_option/kmfruleeditorlimit.cpp b/kmyfirewall/ruleoptionplugins/limit_option/kmfruleeditorlimit.cpp
index 39dd5fd..206587b 100644
--- a/kmyfirewall/ruleoptionplugins/limit_option/kmfruleeditorlimit.cpp
+++ b/kmyfirewall/ruleoptionplugins/limit_option/kmfruleeditorlimit.cpp
@@ -92,7 +92,7 @@ void KMFRuleEditorLimit::readRuleConfig() {
void KMFRuleEditorLimit::slotOk() {
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n("Edit Rule: %1 Limit Option").tqarg( m_rule->name() )
+ i18n("Edit Rule: %1 Limit Option").arg( m_rule->name() )
);
TQPtrList* options = new TQPtrList;
TQString* name = new TQString( "limit_opt" );
diff --git a/kmyfirewall/ruleoptionplugins/limit_option/kmyfirewallruleeditorlimit.ui b/kmyfirewall/ruleoptionplugins/limit_option/kmyfirewallruleeditorlimit.ui
index d6059e3..ece0c09 100644
--- a/kmyfirewall/ruleoptionplugins/limit_option/kmyfirewallruleeditorlimit.ui
+++ b/kmyfirewall/ruleoptionplugins/limit_option/kmyfirewallruleeditorlimit.ui
@@ -67,7 +67,7 @@
Limit Options
-
+
WordBreak|AlignCenter
diff --git a/kmyfirewall/ruleoptionplugins/log_target_option/kmfruleedittargetlog.cpp b/kmyfirewall/ruleoptionplugins/log_target_option/kmfruleedittargetlog.cpp
index b03242a..8bb5650 100644
--- a/kmyfirewall/ruleoptionplugins/log_target_option/kmfruleedittargetlog.cpp
+++ b/kmyfirewall/ruleoptionplugins/log_target_option/kmfruleedittargetlog.cpp
@@ -101,7 +101,7 @@ void KMFRuleEditTargetLog::loadRule( IPTRule* rule ) {
void KMFRuleEditTargetLog::accept() {
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n("Edit Rule: %1 Target Log Option").tqarg( m_rule->name() )
+ i18n("Edit Rule: %1 Target Log Option").arg( m_rule->name() )
);
TQPtrList* args = new TQPtrList;
TQString* name = new TQString( "target_log_opt" );
diff --git a/kmyfirewall/ruleoptionplugins/mac_option/kmfruleeditmac.cpp b/kmyfirewall/ruleoptionplugins/mac_option/kmfruleeditmac.cpp
index 876c92c..13ad162 100644
--- a/kmyfirewall/ruleoptionplugins/mac_option/kmfruleeditmac.cpp
+++ b/kmyfirewall/ruleoptionplugins/mac_option/kmfruleeditmac.cpp
@@ -162,7 +162,7 @@ void KMFRuleEditMac::accept() {
kdDebug() << "KMFRuleEditMac::accept()" << endl;
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n("Edit Rule: %1 MAC Option").tqarg( m_rule->name() )
+ i18n("Edit Rule: %1 MAC Option").arg( m_rule->name() )
);
TQString tok1 = t_src_mac1->text().upper();
TQString tok2 = t_src_mac2->text().upper();
diff --git a/kmyfirewall/ruleoptionplugins/mac_option/kmyfirewallruleeditormac.ui b/kmyfirewall/ruleoptionplugins/mac_option/kmyfirewallruleeditormac.ui
index ae9473b..1d06a0c 100644
--- a/kmyfirewall/ruleoptionplugins/mac_option/kmyfirewallruleeditormac.ui
+++ b/kmyfirewall/ruleoptionplugins/mac_option/kmyfirewallruleeditormac.ui
@@ -67,7 +67,7 @@
MAC Options
-
+
WordBreak|AlignCenter
@@ -337,7 +337,7 @@
NOTE: By checking the "Invert" checkbox the rule will only match if the address found in the packet header is not one you defined.
-
+
WordBreak|AlignVCenter
diff --git a/kmyfirewall/ruleoptionplugins/mark_target_option/kmfruleedittargetmark.cpp b/kmyfirewall/ruleoptionplugins/mark_target_option/kmfruleedittargetmark.cpp
index 0ba0e49..4ceff96 100644
--- a/kmyfirewall/ruleoptionplugins/mark_target_option/kmfruleedittargetmark.cpp
+++ b/kmyfirewall/ruleoptionplugins/mark_target_option/kmfruleedittargetmark.cpp
@@ -61,7 +61,7 @@ void KMFRuleEditTargetMark::loadRule( IPTRule* rule ) {
void KMFRuleEditTargetMark::accept() {
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n("Edit Rule: %1 Mark Target Option").tqarg( m_rule->name() )
+ i18n("Edit Rule: %1 Mark Target Option").arg( m_rule->name() )
);
kdDebug() << "void KMFRuleEditTargetMark::accept()" << endl;
TQPtrList* options = new TQPtrList;
diff --git a/kmyfirewall/ruleoptionplugins/nat_target_option/kmfruleeditortargetnat.cpp b/kmyfirewall/ruleoptionplugins/nat_target_option/kmfruleeditortargetnat.cpp
index 7435dd9..7563bac 100644
--- a/kmyfirewall/ruleoptionplugins/nat_target_option/kmfruleeditortargetnat.cpp
+++ b/kmyfirewall/ruleoptionplugins/nat_target_option/kmfruleeditortargetnat.cpp
@@ -178,7 +178,7 @@ void KMFRuleEditorTargetNat::accept() {
kdDebug() << "KMFRuleEditorTargetNat::accept()";
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n("Edit Rule: %1 Target NAT Option").tqarg( m_rule->name() )
+ i18n("Edit Rule: %1 Target NAT Option").arg( m_rule->name() )
);
bool ip_range = c_ip_range->isChecked();
diff --git a/kmyfirewall/ruleoptionplugins/nat_target_option/kmyfirewallruleeditortargetnat.ui b/kmyfirewall/ruleoptionplugins/nat_target_option/kmyfirewallruleeditortargetnat.ui
index 4b0656d..203b567 100644
--- a/kmyfirewall/ruleoptionplugins/nat_target_option/kmyfirewallruleeditortargetnat.ui
+++ b/kmyfirewall/ruleoptionplugins/nat_target_option/kmyfirewallruleeditortargetnat.ui
@@ -122,7 +122,7 @@
Translate to IP:
-
+
AlignVCenter
diff --git a/kmyfirewall/ruleoptionplugins/protocol_option/kmfruleeditorprotocol.cpp b/kmyfirewall/ruleoptionplugins/protocol_option/kmfruleeditorprotocol.cpp
index 84897a3..9a9b67e 100644
--- a/kmyfirewall/ruleoptionplugins/protocol_option/kmfruleeditorprotocol.cpp
+++ b/kmyfirewall/ruleoptionplugins/protocol_option/kmfruleeditorprotocol.cpp
@@ -468,7 +468,7 @@ void KMFRuleEditorProtocol::accept() {
kdDebug() << "void KMFRuleEditorProtocol::accept()" << endl;
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n("Edit Rule: %1 Protocol Option").tqarg( m_rule->name() )
+ i18n("Edit Rule: %1 Protocol Option").arg( m_rule->name() )
);
///////////////////////////////////////////////////////
diff --git a/kmyfirewall/ruleoptionplugins/protocol_option/kmyfirewallruleeditorprotocol.ui b/kmyfirewall/ruleoptionplugins/protocol_option/kmyfirewallruleeditorprotocol.ui
index 49c41aa..4b8097a 100644
--- a/kmyfirewall/ruleoptionplugins/protocol_option/kmyfirewallruleeditorprotocol.ui
+++ b/kmyfirewall/ruleoptionplugins/protocol_option/kmyfirewallruleeditorprotocol.ui
@@ -64,7 +64,7 @@
Protocol Options
-
+
WordBreak|AlignCenter
@@ -88,7 +88,7 @@
Match Protocol
-
+
WordBreak|AlignLeft
@@ -268,7 +268,7 @@
<p>Specifie the ports that should match you rule here.<br>
You may use a portnumber an inclusive portrange or a service name from <i>/etc/sevices</i> to specifie the port.
-
+
WordBreak|AlignTop
@@ -609,7 +609,7 @@ You may use a portnumber an inclusive portrange or a service name from <i>
A misuse of this functionality may result in a hard to detect bug in the firewall.</p>
-
+
WordBreak|AlignTop
@@ -870,7 +870,7 @@ A misuse of this functionality may result in a hard to detect bug in the firewal
Here you can decide which ICMP Type your rulr should Match.
-
+
WordBreak|AlignTop
diff --git a/kmyfirewall/ruleoptionplugins/state_option/kmfruleeditorstate.cpp b/kmyfirewall/ruleoptionplugins/state_option/kmfruleeditorstate.cpp
index cb04caf..f551baa 100644
--- a/kmyfirewall/ruleoptionplugins/state_option/kmfruleeditorstate.cpp
+++ b/kmyfirewall/ruleoptionplugins/state_option/kmfruleeditorstate.cpp
@@ -55,7 +55,7 @@ void KMFRuleEditorState::loadRule( IPTRule *rule ) {
void KMFRuleEditorState::slotOk() {
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n("Edit Rule: %1 State Option").tqarg( m_rule->name() )
+ i18n("Edit Rule: %1 State Option").arg( m_rule->name() )
);
bool s_new = c_new->isChecked();
bool s_related = c_related->isChecked();
diff --git a/kmyfirewall/ruleoptionplugins/state_option/kmyfirewallruleeditorstate.ui b/kmyfirewall/ruleoptionplugins/state_option/kmyfirewallruleeditorstate.ui
index 6154a1d..0491c5c 100644
--- a/kmyfirewall/ruleoptionplugins/state_option/kmyfirewallruleeditorstate.ui
+++ b/kmyfirewall/ruleoptionplugins/state_option/kmyfirewallruleeditorstate.ui
@@ -66,7 +66,7 @@
Connection Tracking Options
-
+
WordBreak|AlignCenter
@@ -205,7 +205,7 @@
Packets that are associated with a connection that has packets sent in both directions.
-
+
WordBreak|AlignVCenter|AlignLeft
@@ -221,7 +221,7 @@
Packets that are not associated with any known connection.
-
+
WordBreak|AlignVCenter|AlignLeft
@@ -237,7 +237,7 @@
Packets that are associated with an existing bi-directional connection and start a new connection (e.g. FTP).
-
+
WordBreak|AlignVCenter|AlignLeft
@@ -261,7 +261,7 @@
Packets that start new connections and are not associated with any known connection.
-
+
WordBreak|AlignVCenter|AlignLeft
@@ -277,7 +277,7 @@
Match packets with state:
-
+
AlignVCenter|AlignLeft
diff --git a/kmyfirewall/ruleoptionplugins/tos_option/kmfruleeditortos.cpp b/kmyfirewall/ruleoptionplugins/tos_option/kmfruleeditortos.cpp
index a6744a1..9f51885 100644
--- a/kmyfirewall/ruleoptionplugins/tos_option/kmfruleeditortos.cpp
+++ b/kmyfirewall/ruleoptionplugins/tos_option/kmfruleeditortos.cpp
@@ -123,7 +123,7 @@ void KMFRuleEditorTos::loadRule( IPTRule* rule ) {
void KMFRuleEditorTos::accept() {
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n("Edit Rule: %1 TOS Option").tqarg( m_rule->name() )
+ i18n("Edit Rule: %1 TOS Option").arg( m_rule->name() )
);
if ( m_option_type == "SETTOS" ) {
bool use_tos = c_use_tos->isChecked();
diff --git a/kmyfirewall/ruleoptionplugins/tos_target_option/kmfruleeditortos.cpp b/kmyfirewall/ruleoptionplugins/tos_target_option/kmfruleeditortos.cpp
index 48bb63b..0cba2b0 100644
--- a/kmyfirewall/ruleoptionplugins/tos_target_option/kmfruleeditortos.cpp
+++ b/kmyfirewall/ruleoptionplugins/tos_target_option/kmfruleeditortos.cpp
@@ -123,7 +123,7 @@ void KMFRuleEditorTos::loadRule( IPTRule* rule ) {
void KMFRuleEditorTos::accept() {
KMFUndoEngine::instance()->startTransaction(
m_rule,
- i18n("Edit Rule: %1 TOS Target Option").tqarg( m_rule->name() )
+ i18n("Edit Rule: %1 TOS Target Option").arg( m_rule->name() )
);
if ( m_option_type == "SETTOS" ) {
bool use_tos = c_use_tos->isChecked();