NewAtomBase Class Reference

#include <newatombase.h>

List of all members.


Detailed Description

Allows the addition of a new atom.

This can be done either by specifying the required cartesian coordinates or by entering internal coordinates using other atoms as references.

Definition at line 33 of file newatombase.h.

Public Slots

void updateAtomLimits ()
 Updates all widgets that are based on the AtomSet.

Signals

void atomAdded ()

Public Member Functions

 NewAtomBase (AtomSet *atomset, QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)
 ~NewAtomBase ()
 The default destructor.

Protected Member Functions

void showEvent (QShowEvent *e)
 Updates everything when showing the dialog. Overridden from NewAtomWidget.

Private Slots

void addAtom ()
 Adds an atom based on the status of the widgets.
void updateICAtoms ()
 Updates the labels for the internal coordinate specifications depending on the values in the spinboxes holding the reference atoms and the type of the new atom.
void updateSelectedAtom (int number)
 Updates the symbol and atomic number of the selected atom type.
void checkAdd ()
 Checks the status of the widgets to verify whether an atom can be added or not and subsequently enables/disables the addAtom button.

Private Attributes

AtomSetatoms
 A pointer to the active AtomSet.


Constructor & Destructor Documentation

NewAtomBase::NewAtomBase AtomSet atomset,
QWidget *  parent = 0,
const char *  name = 0,
bool  modal = FALSE,
WFlags  fl = 0
 

Definition at line 53 of file newatombase.cpp.

NewAtomBase::~NewAtomBase  ) 
 

The default destructor.

Definition at line 73 of file newatombase.cpp.


Member Function Documentation

void NewAtomBase::atomAdded  )  [signal]
 

void NewAtomBase::updateAtomLimits  )  [slot]
 

Updates all widgets that are based on the AtomSet.

This slot should be called whenever the AtomSet changes.

Definition at line 83 of file newatombase.cpp.

void NewAtomBase::showEvent QShowEvent *  e  )  [protected]
 

Updates everything when showing the dialog. Overridden from NewAtomWidget.

Definition at line 143 of file newatombase.cpp.

void NewAtomBase::addAtom  )  [private, slot]
 

Adds an atom based on the status of the widgets.

Definition at line 155 of file newatombase.cpp.

void NewAtomBase::updateICAtoms  )  [private, slot]
 

Updates the labels for the internal coordinate specifications depending on the values in the spinboxes holding the reference atoms and the type of the new atom.

Definition at line 221 of file newatombase.cpp.

void NewAtomBase::updateSelectedAtom int  number  )  [private, slot]
 

Updates the symbol and atomic number of the selected atom type.

The atomic number of this atom is passed as an argument.

Definition at line 248 of file newatombase.cpp.

void NewAtomBase::checkAdd  )  [private, slot]
 

Checks the status of the widgets to verify whether an atom can be added or not and subsequently enables/disables the addAtom button.

Definition at line 257 of file newatombase.cpp.


Member Data Documentation

AtomSet* NewAtomBase::atoms [private]
 

A pointer to the active AtomSet.

Definition at line 59 of file newatombase.h.


Generated on Fri May 19 14:31:58 2006 for Brabosphere by  doxygen 1.4.6-NO