Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::GeometricFitDialog Class Reference
[QT DialogsQT Dialogs]

Dialog for options of the docking algorithm GeometricFit. More...

#include <geometricFitDialog.h>

Inheritance diagram for VIEW::GeometricFitDialog:

VIEW::PreferencesEntry List of all members.

Public Slots

void show ()
 Shows dialog to user.
void reset ()
 Is called when reset button is pressed.
virtual void reject ()
 Is called when cancel button is pressed.
virtual void accept ()

Public Member Functions

Constructors and Destructors
 GeometricFitDialog (QWidget *parent=0, const char *name="GeometricFitDialog") throw ()
 Default Constructor.
virtual ~GeometricFitDialog () throw ()
 Destructor.
Assignment
const GeometricFitDialogoperator= (const GeometricFitDialog &geo_fit_dialog) throw ()
 Assignment operator.
Accessors: inspectors and mutators
void getOptions (Options &options) throw ()
 Fills options with values of the dialog.
void isRedock (bool is_redock) throw ()
 Sets the flags is_redock_ and has_changed_ .
void fetchPreferences (INIFile &file) throw ()
 Fetchs the preferences from the INIFile.
void writePreferences (INIFile &file) throw ()
 Writes the preferences to the INIFile.

Protected Member Functions

void fetchPreferences_ (INIFile &file, const String &entry, const QString &default_value) throw ()
 Function to read the redocking options from INIFile into vector backup_.
void swapValues_ () throw ()
 Swaps the option values between vector backup_ and dialog.

Detailed Description

Dialog for options of the docking algorithm GeometricFit.

See also:
GeometricFit


Constructor & Destructor Documentation

VIEW::GeometricFitDialog::GeometricFitDialog QWidget *  parent = 0,
const char *  name = "GeometricFitDialog"
throw ()
 

Default Constructor.

Calls PreferencesEntry::registerObject_

Parameters:
parent the parent widget of the GeometricFitDialog
name the name of the GeometricFitDialog
modal the modal flag
fl the widget flags
See also:
QDialog

PreferncesEntry

virtual VIEW::GeometricFitDialog::~GeometricFitDialog  )  throw () [virtual]
 

Destructor.


Member Function Documentation

void VIEW::GeometricFitDialog::fetchPreferences INIFile file  )  throw ()
 

Fetchs the preferences from the INIFile.

Calls PreferencesEntry::readPreferenceEntries . Calls fetchPreferences_ to read the redocking options. This method is called in DockDialog::fetchPreferences .

See also:
writePreferences

void VIEW::GeometricFitDialog::fetchPreferences_ INIFile file,
const String entry,
const QString &  default_value
throw () [protected]
 

Function to read the redocking options from INIFile into vector backup_.

If INIFile has not yet section GEOMETRIC_FIT_OPTIONS_REDOCK , fill vector backup_ with default values.

Parameters:
file the INIFile that is read
entry key of entry that is read
default_value default value
See also:
fetchPreferences

void VIEW::GeometricFitDialog::getOptions Options options  )  throw ()
 

Fills options with values of the dialog.

Parameters:
options the options that are filled

void VIEW::GeometricFitDialog::isRedock bool  is_redock  )  throw ()
 

Sets the flags is_redock_ and has_changed_ .

virtual void VIEW::GeometricFitDialog::reject  )  [virtual, slot]
 

Is called when cancel button is pressed.

Hides dialog.

void VIEW::GeometricFitDialog::reset  )  [slot]
 

Is called when reset button is pressed.

Calls reset .

void VIEW::GeometricFitDialog::show  )  [slot]
 

Shows dialog to user.

void VIEW::GeometricFitDialog::swapValues_  )  throw () [protected]
 

Swaps the option values between vector backup_ and dialog.

Is called in show if has_changed_ is true and in writePreferences if is redock_ is true.

void VIEW::GeometricFitDialog::writePreferences INIFile file  )  throw ()
 

Writes the preferences to the INIFile.

Calls PreferencesEntry::writePreferenceEntries . This method is called in DockDialog::writePreferences .

See also:
fetchPreferences