From 5334b639c9f97793bcae4f50f7b47c7a2ada4e2f Mon Sep 17 00:00:00 2001 From: wimpie Date: Fri, 02 Apr 2004 18:29:49 +0000 Subject: First import of NS2 app --- (limited to 'noncore/settings/networksettings2/editconnection.h') diff --git a/noncore/settings/networksettings2/editconnection.h b/noncore/settings/networksettings2/editconnection.h new file mode 100644 index 0000000..e8d7a2c --- a/dev/null +++ b/noncore/settings/networksettings2/editconnection.h @@ -0,0 +1,49 @@ +#include "editconnectionGUI.h" + +#include +#include +#include "netnode.h" + +class ANetNodeInstance; +class ANetNode; +class QListViewItem; +class NetNodeLVI; +class QCloseEvent; + +class EditConnection : public EditConnectionGUI { + + Q_OBJECT + +public : + + EditConnection( QWidget * P ); + + ANetNodeInstance * netNodeInstance( void ); + void setConnection( NodeCollection * NC ); + NodeCollection * connection( void ); + +public slots : + + void SLOT_AutoCollapse( bool ); + void SLOT_SelectNode( QListViewItem * it ); + void SLOT_AlterTab( const QString & S ); + virtual void accept( void ); + +private : + + NodeCollection * getTmpCollection( void ); + void updateGUI( QListViewItem * it, ANetNode * NN ); + void buildFullTree( void ); + void buildSubTree( QListViewItem * Parent, ANetNode * NN ); + void disableTree( QListViewItem * it, bool Mode); + void enablePath( QListViewItem * it, bool pha); + + bool haveCompleteConfig( QListViewItem * it ); + QPtrDict * Mapping; + NodeCollection * SelectedNodes; + bool TmpIsValid; + NodeCollection TmpCollection; + + static bool AutoCollapse; + +}; -- cgit v0.9.0.2