summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/editconnection.h
blob: c2fc6434cf3c8de1eed8d81a3a7556000a1cd50e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include "editconnectionGUI.h"

#include <qptrdict.h>
#include <qvector.h>
#include "netnode.h"

class ANetNodeInstance;
class ANetNode;
class QListViewItem;
class NetNodeLVI;
class QCloseEvent;

class EditNetworkSetup : public EditNetworkSetupGUI {

      Q_OBJECT

public :

      EditNetworkSetup( QWidget * P );

      ANetNodeInstance * netNodeInstance( void );
      void setNetworkSetup( NetworkSetup * NC );
      NetworkSetup * networkSetup( void );

public slots :

      void SLOT_AutoCollapse( bool );
      void SLOT_SelectNode( QListViewItem * it );
      void SLOT_AlterTab( const QString & S );
      virtual void accept( void );

private :

      NetworkSetup * 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<ANetNode> * Mapping;
      NetworkSetup * SelectedNodes;
      bool           TmpIsValid;
      NetworkSetup TmpCollection;

      static bool AutoCollapse;

};