Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

EditNetworkSetup Class Reference

#include </home/clem/local/src/opie/noncore/settings/networksettings2/editconnection.h>

Collaboration diagram for EditNetworkSetup:

Collaboration graph
[legend]
List of all members.

Public Slots

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

Public Member Functions

 EditNetworkSetup (QWidget *P)
ANetNodeInstancenetNodeInstance (void)
void setNetworkSetup (NetworkSetup *NC)
NetworkSetupnetworkSetup (void)

Private Member Functions

NetworkSetupgetTmpCollection (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)

Private Attributes

QPtrDict< ANetNode > * Mapping
NetworkSetupSelectedNodes
bool TmpIsValid
NetworkSetup TmpCollection

Static Private Attributes

static bool AutoCollapse = 1

Constructor & Destructor Documentation

EditNetworkSetup::EditNetworkSetup QWidget *  P  ) 
 

Definition at line 90 of file editconnection.cpp.

References AutoCollapse, buildFullTree(), FALSE, Mapping, SelectedNodes, and TmpIsValid.


Member Function Documentation

void EditNetworkSetup::accept void   )  [virtual, slot]
 

Definition at line 386 of file editconnection.cpp.

References ANetNodeInstance::acceptable(), ANetNodeInstance::commit(), getTmpCollection(), haveCompleteConfig(), QString::isEmpty(), ANetNodeInstance::isModified(), S, NetworkSetup::setModified(), TmpCollection, tr, and warning().

void EditNetworkSetup::buildFullTree void   )  [private]
 

Definition at line 313 of file editconnection.cpp.

References buildSubTree(), QDictIterator< type >::current(), ANetNode::isToplevel(), Mapping, NSResources, ANetNode::pixmapName(), and TRUE.

Referenced by EditNetworkSetup().

void EditNetworkSetup::buildSubTree QListViewItem *  Parent,
ANetNode NN
[private]
 

Definition at line 350 of file editconnection.cpp.

References ANetNode::alternatives(), FALSE, i, Mapping, name, ANetNode::needs(), and NSResources.

Referenced by buildFullTree().

void EditNetworkSetup::disableTree QListViewItem *  it,
bool  Mode
[private]
 

Definition at line 559 of file editconnection.cpp.

References AutoCollapse.

Referenced by enablePath(), and updateGUI().

void EditNetworkSetup::enablePath QListViewItem *  it,
bool  pha
[private]
 

Definition at line 571 of file editconnection.cpp.

References ANetNode::alternatives(), AutoCollapse, disableTree(), FALSE, and TRUE.

Referenced by updateGUI().

NetworkSetup * EditNetworkSetup::getTmpCollection void   )  [private]
 

Definition at line 108 of file editconnection.cpp.

References NetworkSetup::append(), NetworkSetup::copyFrom(), ANetNode::createInstance(), ANetNodeInstance::initialize(), ANetNodeInstance::nodeClass(), SelectedNodes, NetworkSetup::setModified(), TmpCollection, and TmpIsValid.

Referenced by accept(), and SLOT_AlterTab().

bool EditNetworkSetup::haveCompleteConfig QListViewItem *  it  )  [private]
 

Definition at line 608 of file editconnection.cpp.

References Log.

Referenced by accept(), and updateGUI().

ANetNodeInstance* EditNetworkSetup::netNodeInstance void   ) 
 

NetworkSetup * EditNetworkSetup::networkSetup void   ) 
 

Definition at line 284 of file editconnection.cpp.

References NetworkSetup::append(), NetworkSetup::isModified(), NetworkSetup::name(), SelectedNodes, NetworkSetup::setModified(), NetworkSetup::setName(), and TmpCollection.

Referenced by NetworkSettings::SLOT_EditNode().

void EditNetworkSetup::setNetworkSetup NetworkSetup NC  ) 
 

Definition at line 202 of file editconnection.cpp.

References FALSE, ANetNodeInstance::nodeClass(), SelectedNodes, TmpIsValid, tr, updateGUI(), and warning().

Referenced by NetworkSettings::SLOT_EditNode().

void EditNetworkSetup::SLOT_AlterTab const QString S  )  [slot]
 

Definition at line 483 of file editconnection.cpp.

References ANetNodeInstance::edit(), getTmpCollection(), i, ANetNodeInstance::nodeClass(), NSResources, TmpCollection, TmpIsValid, tr, and W.

void EditNetworkSetup::SLOT_AutoCollapse bool   )  [slot]
 

Definition at line 426 of file editconnection.cpp.

References AutoCollapse.

void EditNetworkSetup::SLOT_SelectNode QListViewItem *  it  )  [slot]
 

Definition at line 431 of file editconnection.cpp.

References ANetNode::alternatives(), ANetNode::needs(), ANetNode::nodeDescription(), NSResources, TmpIsValid, and updateGUI().

void EditNetworkSetup::updateGUI QListViewItem *  it,
ANetNode NN
[private]
 

Definition at line 532 of file editconnection.cpp.

References ANetNode::alternatives(), AutoCollapse, disableTree(), enablePath(), FALSE, haveCompleteConfig(), Log, and TRUE.

Referenced by setNetworkSetup(), and SLOT_SelectNode().


Member Data Documentation

bool EditNetworkSetup::AutoCollapse = 1 [static, private]
 

Definition at line 88 of file editconnection.cpp.

Referenced by disableTree(), EditNetworkSetup(), enablePath(), SLOT_AutoCollapse(), and updateGUI().

QPtrDict<ANetNode>* EditNetworkSetup::Mapping [private]
 

Definition at line 42 of file editconnection.h.

Referenced by buildFullTree(), buildSubTree(), and EditNetworkSetup().

NetworkSetup* EditNetworkSetup::SelectedNodes [private]
 

Definition at line 43 of file editconnection.h.

Referenced by EditNetworkSetup(), getTmpCollection(), networkSetup(), and setNetworkSetup().

NetworkSetup EditNetworkSetup::TmpCollection [private]
 

Definition at line 45 of file editconnection.h.

Referenced by accept(), getTmpCollection(), networkSetup(), and SLOT_AlterTab().

bool EditNetworkSetup::TmpIsValid [private]
 

Definition at line 44 of file editconnection.h.

Referenced by EditNetworkSetup(), getTmpCollection(), setNetworkSetup(), SLOT_AlterTab(), and SLOT_SelectNode().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:31:48 2005 for OPIE by  doxygen 1.4.2