@ -162,7 +162,7 @@ void KMFListViewItem::setupProtocolView() {
delete firstChild ( ) ;
delete firstChild ( ) ;
}
}
setPixmap ( 0 , TDEGlobal : : iconLoader ( ) - > loadIcon ( " kmyfirewall " , K Icon: : Small ) ) ;
setPixmap ( 0 , TDEGlobal : : iconLoader ( ) - > loadIcon ( " kmyfirewall " , TDE Icon: : Small ) ) ;
setText ( 0 , protocol ( ) - > name ( ) ) ;
setText ( 0 , protocol ( ) - > name ( ) ) ;
setText ( 1 , protocol ( ) - > description ( ) ) ;
setText ( 1 , protocol ( ) - > description ( ) ) ;
// setOpen( true );
// setOpen( true );
@ -190,7 +190,7 @@ void KMFListViewItem::setupProtocolCategoryView() {
delete firstChild ( ) ;
delete firstChild ( ) ;
}
}
setPixmap ( 0 , TDEGlobal : : iconLoader ( ) - > loadIcon ( " folder " , K Icon: : Small ) ) ;
setPixmap ( 0 , TDEGlobal : : iconLoader ( ) - > loadIcon ( " folder " , TDE Icon: : Small ) ) ;
setText ( 0 , protocolCategory ( ) - > name ( ) ) ;
setText ( 0 , protocolCategory ( ) - > name ( ) ) ;
setText ( 1 , protocolCategory ( ) - > description ( ) ) ;
setText ( 1 , protocolCategory ( ) - > description ( ) ) ;
@ -209,9 +209,9 @@ void KMFListViewItem::setupTargetView() {
// setFont( TQFont::Bold );
// setFont( TQFont::Bold );
// }
// }
if ( target ( ) - > isCurrentTarget ( ) ) {
if ( target ( ) - > isCurrentTarget ( ) ) {
setPixmap ( 0 , TDEGlobal : : iconLoader ( ) - > loadIcon ( " kmyfirewall " , K Icon: : Small ) ) ;
setPixmap ( 0 , TDEGlobal : : iconLoader ( ) - > loadIcon ( " kmyfirewall " , TDE Icon: : Small ) ) ;
} else {
} else {
setPixmap ( 0 , TDEGlobal : : iconLoader ( ) - > loadIcon ( " enhanced_browsing " , K Icon: : Small ) ) ;
setPixmap ( 0 , TDEGlobal : : iconLoader ( ) - > loadIcon ( " enhanced_browsing " , TDE Icon: : Small ) ) ;
}
}
setText ( 0 , target ( ) - > guiName ( ) ) ;
setText ( 0 , target ( ) - > guiName ( ) ) ;
setText ( 1 , " [ " + target ( ) - > address ( ) - > toString ( ) + " ] " ) ;
setText ( 1 , " [ " + target ( ) - > address ( ) - > toString ( ) + " ] " ) ;
@ -221,7 +221,7 @@ void KMFListViewItem::setupTargetView() {
}
}
void KMFListViewItem : : setupNetHostView ( ) {
void KMFListViewItem : : setupNetHostView ( ) {
setPixmap ( 0 , TDEGlobal : : iconLoader ( ) - > loadIcon ( " home_white " , K Icon: : Small ) ) ;
setPixmap ( 0 , TDEGlobal : : iconLoader ( ) - > loadIcon ( " home_white " , TDE Icon: : Small ) ) ;
setText ( 0 , host ( ) - > guiName ( ) ) ;
setText ( 0 , host ( ) - > guiName ( ) ) ;
setText ( 1 , " [ " + host ( ) - > address ( ) - > toString ( ) + " ] " ) ;
setText ( 1 , " [ " + host ( ) - > address ( ) - > toString ( ) + " ] " ) ;
@ -240,13 +240,13 @@ void KMFListViewItem::setupZoneView() {
if ( type ( ) ! = NetfilterObject : : NETZONE ) {
if ( type ( ) ! = NetfilterObject : : NETZONE ) {
return ;
return ;
}
}
K IconLoader * loader = TDEGlobal : : iconLoader ( ) ;
TDE IconLoader * loader = TDEGlobal : : iconLoader ( ) ;
setText ( 0 , m_zone - > guiName ( ) ) ;
setText ( 0 , m_zone - > guiName ( ) ) ;
if ( m_zone - > name ( ) = = " incoming_world " | | m_zone - > name ( ) = = " outgoing_world " ) {
if ( m_zone - > name ( ) = = " incoming_world " | | m_zone - > name ( ) = = " outgoing_world " ) {
setPixmap ( 0 , loader - > loadIcon ( " network " , K Icon: : Small ) ) ;
setPixmap ( 0 , loader - > loadIcon ( " network " , TDE Icon: : Small ) ) ;
} else {
} else {
setPixmap ( 0 , loader - > loadIcon ( " network_local " , K Icon: : Small ) ) ;
setPixmap ( 0 , loader - > loadIcon ( " network_local " , TDE Icon: : Small ) ) ;
}
}
// if ( m_zone->name().startsWith("incoming_world") || m_zone->name().startsWith("outgoing_world") )
// if ( m_zone->name().startsWith("incoming_world") || m_zone->name().startsWith("outgoing_world") )
@ -309,7 +309,7 @@ void KMFListViewItem::setupZoneView() {
// item->setRenameEnabled( 0, true );
// item->setRenameEnabled( 0, true );
item - > setupNetHostView ( ) ; */
item - > setupNetHostView ( ) ; */
/* item->setPixmap(0, loader->loadIcon("home_white", K Icon::Small ) );
/* item->setPixmap(0, loader->loadIcon("home_white", TDE Icon::Small ) );
item - > setText ( 0 , host - > guiName ( ) ) ;
item - > setText ( 0 , host - > guiName ( ) ) ;
item - > setText ( 1 , " [ " + host - > address ( ) - > toString ( ) + " ] " ) ;
item - > setText ( 1 , " [ " + host - > address ( ) - > toString ( ) + " ] " ) ;
@ -329,7 +329,7 @@ void KMFListViewItem::setupZoneView() {
// KMFListViewItem *item = new KMFListViewItem( this, 0, it2.current() );
// KMFListViewItem *item = new KMFListViewItem( this, 0, it2.current() );
// item->loadNetfilterObject( it2.current() );
// item->loadNetfilterObject( it2.current() );
// item->setPixmap(0, loader->loadIcon("home_white", K Icon::Small ) );
// item->setPixmap(0, loader->loadIcon("home_white", TDE Icon::Small ) );
// item->setText( 0, it2.current()->guiName() );
// item->setText( 0, it2.current()->guiName() );
// item->setText( 1,"[" + it2.current()->address()->toString() + "]" );
// item->setText( 1,"[" + it2.current()->address()->toString() + "]" );
//
//