From 788d865d7e6433f485c10e5f5b28c71e0445ff7b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 17:25:32 -0600 Subject: Fix FTBFS --- kmyfirewall/kmfwidgets/kmfchecklistitem.cpp | 58 ------------- kmyfirewall/kmfwidgets/kmfchecklistitem.h | 53 ------------ kmyfirewall/kmfwidgets/kmfchecklistoutput.cpp | 104 ------------------------ kmyfirewall/kmfwidgets/kmfchecklistoutput.h | 65 --------------- kmyfirewall/kmfwidgets/kmfchectdelistitem.cpp | 58 +++++++++++++ kmyfirewall/kmfwidgets/kmfchectdelistitem.h | 53 ++++++++++++ kmyfirewall/kmfwidgets/kmfchectdelistoutput.cpp | 104 ++++++++++++++++++++++++ kmyfirewall/kmfwidgets/kmfchectdelistoutput.h | 65 +++++++++++++++ 8 files changed, 280 insertions(+), 280 deletions(-) delete mode 100644 kmyfirewall/kmfwidgets/kmfchecklistitem.cpp delete mode 100644 kmyfirewall/kmfwidgets/kmfchecklistitem.h delete mode 100644 kmyfirewall/kmfwidgets/kmfchecklistoutput.cpp delete mode 100644 kmyfirewall/kmfwidgets/kmfchecklistoutput.h create mode 100644 kmyfirewall/kmfwidgets/kmfchectdelistitem.cpp create mode 100644 kmyfirewall/kmfwidgets/kmfchectdelistitem.h create mode 100644 kmyfirewall/kmfwidgets/kmfchectdelistoutput.cpp create mode 100644 kmyfirewall/kmfwidgets/kmfchectdelistoutput.h (limited to 'kmyfirewall') diff --git a/kmyfirewall/kmfwidgets/kmfchecklistitem.cpp b/kmyfirewall/kmfwidgets/kmfchecklistitem.cpp deleted file mode 100644 index 2659d6c..0000000 --- a/kmyfirewall/kmfwidgets/kmfchecklistitem.cpp +++ /dev/null @@ -1,58 +0,0 @@ -// -// C++ Implementation: kmfchecklistitem -// -// Description: -// -// -// Author: Christian Hubinger , (C) 2003 -// -// Copyright: See COPYING file that comes with this distribution -// -// -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - - -#include "kmfchecklistitem.h" - -// QT includes - -// KDE includes -#include - -// Project includes -#include "../core/netfilterobject.h" -#include "../core/kmfprotocol.h" -#include "../core/kmfprotocolusage.h" - -namespace KMF { - -KMFCheckListItem::KMFCheckListItem( TQListView *parent, TQListViewItem *after, const TQString& text, Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( parent, after, text, tt ) { - loadKMFProtocolUsage( obj ); -} -KMFCheckListItem::KMFCheckListItem( TQListViewItem *parent, const TQString& text , Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( parent, text, tt ) { - loadKMFProtocolUsage( obj ); -} -KMFCheckListItem::KMFCheckListItem( TQListViewItem *parent, TQListViewItem *after, const TQString& text, Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( parent, after, text, tt ) { - loadKMFProtocolUsage( obj ); -} - -KMFCheckListItem::~KMFCheckListItem() {} - - -void KMFCheckListItem::loadKMFProtocolUsage( KMFProtocolUsage* obj ) { - if ( KMFProtocolUsage *prot = dynamic_cast ( obj ) ) { - m_protocolUsage = prot; - } else { - kdDebug() << "ERROR: Given NetfilterObject has wrong type" << endl; - } -} - -} - diff --git a/kmyfirewall/kmfwidgets/kmfchecklistitem.h b/kmyfirewall/kmfwidgets/kmfchecklistitem.h deleted file mode 100644 index d60e778..0000000 --- a/kmyfirewall/kmfwidgets/kmfchecklistitem.h +++ /dev/null @@ -1,53 +0,0 @@ -// -// C++ Interface: kmfchecklistitem -// -// Description: -// -// -// Author: Christian Hubinger , (C) 2003 -// -// Copyright: See COPYING file that comes with this distribution -// -// -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - - -#ifndef KMFCHECKLISTITEM_H -#define KMFCHECKLISTITEM_H - -#include -#include - -namespace KMF { -class KMFProtocol; -class KMFProtocolUsage; -class NetfilterObject; - -class KDE_EXPORT KMFCheckListItem : public TQCheckListItem -{ -public: - KMFCheckListItem( TQListViewItem *parent, const TQString&, Type tt = Controller, KMFProtocolUsage* = 0 ); - KMFCheckListItem( TQListView *parent, TQListViewItem *after, const TQString&, Type tt = Controller, KMFProtocolUsage* = 0 ); - KMFCheckListItem( TQListViewItem *parent, TQListViewItem *after, const TQString&, Type tt = Controller, KMFProtocolUsage* = 0); - ~KMFCheckListItem(); - - -public: - KMFProtocolUsage* protocolUsage() const { - return m_protocolUsage; - }; - -private: - void loadKMFProtocolUsage( KMFProtocolUsage* ); - - KMFProtocolUsage *m_protocolUsage; -}; -} -#endif diff --git a/kmyfirewall/kmfwidgets/kmfchecklistoutput.cpp b/kmyfirewall/kmfwidgets/kmfchecklistoutput.cpp deleted file mode 100644 index 5db3c42..0000000 --- a/kmyfirewall/kmfwidgets/kmfchecklistoutput.cpp +++ /dev/null @@ -1,104 +0,0 @@ -/*************************************************************************** - begin : Tue Jul 30 2002 - copyright : (C) 2002 by Christian Hubinger - email : chubinger@irrsinnig.org -***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -#include "kmfchecklistoutput.h" - -// QT includs -#include -#include -#include -#include -#include -#include - -// kde includes -#include -#include -#include -#include - -namespace KMF { -KMFCheckListOutput::KMFCheckListOutput( TQWidget *parent, const char *name , bool modal, WFlags fl ) : TQDialog( parent, name, modal, fl ) { - setCaption( "KMyFirewall" ); - TQGridLayout *l_prog = new TQGridLayout( this,4,2,6,11 ); - text = new TQLabel( i18n("Trying to guess the system configuration...
" - "If errors are occurring you'll have to setup the configuration yourself." - "
"), this); - l_prog -> addMultiCellWidget( text, 0, 0, 0, 2 ); - - mpb_ok = new TQPushButton( this, "Ok" ); - mpb_ok->setText( i18n( "&Close Window" ) ); - l_prog -> addMultiCellWidget( mpb_ok, 4, 4, 0, 2 ); - - mlb_outputView = new TQListView( this, "msg" ); - mlb_outputView->addColumn( i18n( "Looking For" ) ); - mlb_outputView->addColumn( i18n( "Found?" ) ); - mlb_outputView->setSelectionMode( TQListView::NoSelection ); - mlb_outputView->setSorting( -1 ); - l_prog -> addMultiCellWidget( mlb_outputView, 1, 3, 0, 2 ); - - - connect( mpb_ok, TQT_SIGNAL( clicked() ) , this, TQT_SLOT( hide() ) ); - m_currItem = new TQListViewItem( mlb_outputView ); - m_currItem->setText( 0, i18n( "Starting system scan..." ) ); - loadIcons(); - this->resize( 450, 450 ); -} - -KMFCheckListOutput::~KMFCheckListOutput() {} - -void KMFCheckListOutput::appendLine( const TQString &txt ) { - TQListViewItem * item = new TQListViewItem( mlb_outputView, m_currItem ); - item->setMultiLinesEnabled( true ); - item->setText( 0, txt ); - m_currItem = item; - kdDebug() << "void KMFCheckListOutput::appendLine(TQString txt)" << endl; -} - -void KMFCheckListOutput::setStatus( bool ok, const TQString &err_msg ) { - kdDebug() << "void KMFCheckListOutput::setStatus(bool ok,TQString &err_msg)" << endl; - if ( ok ) { - m_currItem->setPixmap( 1, icon_ok ); - } else { - m_currItem->setPixmap( 1, icon_err ); - m_currItem->setOpen( true ); - if ( !err_msg.isEmpty() ) { - TQListViewItem * item = new TQListViewItem( m_currItem ); - item->setText( 0, err_msg ); - } - } -} - -void KMFCheckListOutput::clearList() { - kdDebug() << "void KMFCheckListOutput::clearList()" << endl; - mlb_outputView->clear(); -} - -void KMFCheckListOutput::loadIcons() { - kdDebug() << "void KMFCheckListOutput::loadIcons()" << endl; - KIconLoader *loader = TDEGlobal::iconLoader(); - TQString icon_name; - - icon_name = "stop"; - icon_err = loader->loadIcon( icon_name, KIcon::Small ); - - icon_name = "button_ok"; - icon_ok = loader->loadIcon( icon_name, KIcon::Small ); - -} - -} - -#include "kmfchecklistoutput.moc" diff --git a/kmyfirewall/kmfwidgets/kmfchecklistoutput.h b/kmyfirewall/kmfwidgets/kmfchecklistoutput.h deleted file mode 100644 index c36b6aa..0000000 --- a/kmyfirewall/kmfwidgets/kmfchecklistoutput.h +++ /dev/null @@ -1,65 +0,0 @@ -/*************************************************************************** - begin : Tue Jul 30 2002 - copyright : (C) 2002 by Christian Hubinger - email : chubinger@irrsinnig.org -***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -#ifndef KMFCHECKLISTOUTPUT_H -#define KMFCHECKLISTOUTPUT_H - -#include -#include -#include -class TQLabel; -class TQListView; -class TQListViewItem; -class TQString; -class TQPushButton; -namespace KMF { -/** - *@author Christian Hubinger - */ - -class KDE_EXPORT KMFCheckListOutput : public TQDialog { - Q_OBJECT - -public: - KMFCheckListOutput( TQWidget *parent = 0, const char *name = 0, bool modal = FALSE, WFlags fl = 0 ); - ~KMFCheckListOutput(); - - /** - Appends one line at the End Of the List - */ - void appendLine( const TQString &txt ); - - /** - Sets the Status of the last created ListItem - */ - void setStatus( bool ok, const TQString &err_msg ); - - void clearList(); - -private: - - // Functions - void loadIcons(); - - // Data - TQListView *mlb_outputView; - TQPushButton *mpb_ok; - TQListViewItem *m_currItem; - TQPixmap icon_ok; - TQPixmap icon_err; - TQLabel *text; -}; -} -#endif diff --git a/kmyfirewall/kmfwidgets/kmfchectdelistitem.cpp b/kmyfirewall/kmfwidgets/kmfchectdelistitem.cpp new file mode 100644 index 0000000..2659d6c --- /dev/null +++ b/kmyfirewall/kmfwidgets/kmfchectdelistitem.cpp @@ -0,0 +1,58 @@ +// +// C++ Implementation: kmfchecklistitem +// +// Description: +// +// +// Author: Christian Hubinger , (C) 2003 +// +// Copyright: See COPYING file that comes with this distribution +// +// +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + + +#include "kmfchecklistitem.h" + +// QT includes + +// KDE includes +#include + +// Project includes +#include "../core/netfilterobject.h" +#include "../core/kmfprotocol.h" +#include "../core/kmfprotocolusage.h" + +namespace KMF { + +KMFCheckListItem::KMFCheckListItem( TQListView *parent, TQListViewItem *after, const TQString& text, Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( parent, after, text, tt ) { + loadKMFProtocolUsage( obj ); +} +KMFCheckListItem::KMFCheckListItem( TQListViewItem *parent, const TQString& text , Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( parent, text, tt ) { + loadKMFProtocolUsage( obj ); +} +KMFCheckListItem::KMFCheckListItem( TQListViewItem *parent, TQListViewItem *after, const TQString& text, Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( parent, after, text, tt ) { + loadKMFProtocolUsage( obj ); +} + +KMFCheckListItem::~KMFCheckListItem() {} + + +void KMFCheckListItem::loadKMFProtocolUsage( KMFProtocolUsage* obj ) { + if ( KMFProtocolUsage *prot = dynamic_cast ( obj ) ) { + m_protocolUsage = prot; + } else { + kdDebug() << "ERROR: Given NetfilterObject has wrong type" << endl; + } +} + +} + diff --git a/kmyfirewall/kmfwidgets/kmfchectdelistitem.h b/kmyfirewall/kmfwidgets/kmfchectdelistitem.h new file mode 100644 index 0000000..d60e778 --- /dev/null +++ b/kmyfirewall/kmfwidgets/kmfchectdelistitem.h @@ -0,0 +1,53 @@ +// +// C++ Interface: kmfchecklistitem +// +// Description: +// +// +// Author: Christian Hubinger , (C) 2003 +// +// Copyright: See COPYING file that comes with this distribution +// +// +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + + +#ifndef KMFCHECKLISTITEM_H +#define KMFCHECKLISTITEM_H + +#include +#include + +namespace KMF { +class KMFProtocol; +class KMFProtocolUsage; +class NetfilterObject; + +class KDE_EXPORT KMFCheckListItem : public TQCheckListItem +{ +public: + KMFCheckListItem( TQListViewItem *parent, const TQString&, Type tt = Controller, KMFProtocolUsage* = 0 ); + KMFCheckListItem( TQListView *parent, TQListViewItem *after, const TQString&, Type tt = Controller, KMFProtocolUsage* = 0 ); + KMFCheckListItem( TQListViewItem *parent, TQListViewItem *after, const TQString&, Type tt = Controller, KMFProtocolUsage* = 0); + ~KMFCheckListItem(); + + +public: + KMFProtocolUsage* protocolUsage() const { + return m_protocolUsage; + }; + +private: + void loadKMFProtocolUsage( KMFProtocolUsage* ); + + KMFProtocolUsage *m_protocolUsage; +}; +} +#endif diff --git a/kmyfirewall/kmfwidgets/kmfchectdelistoutput.cpp b/kmyfirewall/kmfwidgets/kmfchectdelistoutput.cpp new file mode 100644 index 0000000..5db3c42 --- /dev/null +++ b/kmyfirewall/kmfwidgets/kmfchectdelistoutput.cpp @@ -0,0 +1,104 @@ +/*************************************************************************** + begin : Tue Jul 30 2002 + copyright : (C) 2002 by Christian Hubinger + email : chubinger@irrsinnig.org +***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#include "kmfchecklistoutput.h" + +// QT includs +#include +#include +#include +#include +#include +#include + +// kde includes +#include +#include +#include +#include + +namespace KMF { +KMFCheckListOutput::KMFCheckListOutput( TQWidget *parent, const char *name , bool modal, WFlags fl ) : TQDialog( parent, name, modal, fl ) { + setCaption( "KMyFirewall" ); + TQGridLayout *l_prog = new TQGridLayout( this,4,2,6,11 ); + text = new TQLabel( i18n("Trying to guess the system configuration...
" + "If errors are occurring you'll have to setup the configuration yourself." + "
"), this); + l_prog -> addMultiCellWidget( text, 0, 0, 0, 2 ); + + mpb_ok = new TQPushButton( this, "Ok" ); + mpb_ok->setText( i18n( "&Close Window" ) ); + l_prog -> addMultiCellWidget( mpb_ok, 4, 4, 0, 2 ); + + mlb_outputView = new TQListView( this, "msg" ); + mlb_outputView->addColumn( i18n( "Looking For" ) ); + mlb_outputView->addColumn( i18n( "Found?" ) ); + mlb_outputView->setSelectionMode( TQListView::NoSelection ); + mlb_outputView->setSorting( -1 ); + l_prog -> addMultiCellWidget( mlb_outputView, 1, 3, 0, 2 ); + + + connect( mpb_ok, TQT_SIGNAL( clicked() ) , this, TQT_SLOT( hide() ) ); + m_currItem = new TQListViewItem( mlb_outputView ); + m_currItem->setText( 0, i18n( "Starting system scan..." ) ); + loadIcons(); + this->resize( 450, 450 ); +} + +KMFCheckListOutput::~KMFCheckListOutput() {} + +void KMFCheckListOutput::appendLine( const TQString &txt ) { + TQListViewItem * item = new TQListViewItem( mlb_outputView, m_currItem ); + item->setMultiLinesEnabled( true ); + item->setText( 0, txt ); + m_currItem = item; + kdDebug() << "void KMFCheckListOutput::appendLine(TQString txt)" << endl; +} + +void KMFCheckListOutput::setStatus( bool ok, const TQString &err_msg ) { + kdDebug() << "void KMFCheckListOutput::setStatus(bool ok,TQString &err_msg)" << endl; + if ( ok ) { + m_currItem->setPixmap( 1, icon_ok ); + } else { + m_currItem->setPixmap( 1, icon_err ); + m_currItem->setOpen( true ); + if ( !err_msg.isEmpty() ) { + TQListViewItem * item = new TQListViewItem( m_currItem ); + item->setText( 0, err_msg ); + } + } +} + +void KMFCheckListOutput::clearList() { + kdDebug() << "void KMFCheckListOutput::clearList()" << endl; + mlb_outputView->clear(); +} + +void KMFCheckListOutput::loadIcons() { + kdDebug() << "void KMFCheckListOutput::loadIcons()" << endl; + KIconLoader *loader = TDEGlobal::iconLoader(); + TQString icon_name; + + icon_name = "stop"; + icon_err = loader->loadIcon( icon_name, KIcon::Small ); + + icon_name = "button_ok"; + icon_ok = loader->loadIcon( icon_name, KIcon::Small ); + +} + +} + +#include "kmfchecklistoutput.moc" diff --git a/kmyfirewall/kmfwidgets/kmfchectdelistoutput.h b/kmyfirewall/kmfwidgets/kmfchectdelistoutput.h new file mode 100644 index 0000000..c36b6aa --- /dev/null +++ b/kmyfirewall/kmfwidgets/kmfchectdelistoutput.h @@ -0,0 +1,65 @@ +/*************************************************************************** + begin : Tue Jul 30 2002 + copyright : (C) 2002 by Christian Hubinger + email : chubinger@irrsinnig.org +***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef KMFCHECKLISTOUTPUT_H +#define KMFCHECKLISTOUTPUT_H + +#include +#include +#include +class TQLabel; +class TQListView; +class TQListViewItem; +class TQString; +class TQPushButton; +namespace KMF { +/** + *@author Christian Hubinger + */ + +class KDE_EXPORT KMFCheckListOutput : public TQDialog { + Q_OBJECT + +public: + KMFCheckListOutput( TQWidget *parent = 0, const char *name = 0, bool modal = FALSE, WFlags fl = 0 ); + ~KMFCheckListOutput(); + + /** + Appends one line at the End Of the List + */ + void appendLine( const TQString &txt ); + + /** + Sets the Status of the last created ListItem + */ + void setStatus( bool ok, const TQString &err_msg ); + + void clearList(); + +private: + + // Functions + void loadIcons(); + + // Data + TQListView *mlb_outputView; + TQPushButton *mpb_ok; + TQListViewItem *m_currItem; + TQPixmap icon_ok; + TQPixmap icon_err; + TQLabel *text; +}; +} +#endif -- cgit v1.2.3