BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Slots | Protected Member Functions | List of all members
BALL::VIEW::ModelSettingsDialog Class Reference

#include <BALL/VIEW/DIALOGS/modelSettingsDialog.h>

Inheritance diagram for BALL::VIEW::ModelSettingsDialog:
QWidget BALL::VIEW::PreferencesEntry

Public Member Functions

 ModelSettingsDialog (QWidget *parent=0, const char *name="ModelSettingsDialog", Qt::WFlags fl=0)
 Constructor. More...
 
virtual ~ModelSettingsDialog ()
 Destructor. More...
 
virtual void applySettingsTo (ModelProcessor &cp) const
 
virtual ModelProcessorcreateModelProcessor (ModelType type) const throw (Exception::InvalidOption)
 
virtual void getSettings (const ModelProcessor &mp)
 
virtual QWidgetgetEntryFor (ModelType type)
 
float getStickStickRadius () const
 
float getBallAndStickStickRadius () const
 
bool ballAndStickDashedBondsEnabled () const
 
float getBallRadius () const
 
float getVDWRadiusFactor () const
 
float getSurfaceProbeRadius () const
 
float getTubeRadius () const
 
float getCartoonTubeRadius () const
 
float getCartoonHelixRadius () const
 
float getCartoonArrowWidth () const
 
float getCartoonStrandHeight () const
 
float getCartoonStrandWidth () const
 
float getHBondsRadius () const
 
float getForceMaxLength () const
 
float getForceScaling () const
 
float getForceBase () const
 
float getForceOffset () const
 
float getDNALadderRadius () const
 
float getDNABaseRadius () const
 
float getDNAHelixRadius () const
 
void setStickStickRadius (float value)
 
void setBallAndStickStickRadius (float value)
 
void setBallAndStickStickDashedBondsEnabled (bool state)
 
void setBallRadius (float value)
 
void setVDWRadiusFactor (float value)
 
void setSurfaceProbeRadius (float value)
 
void setTubeRadius (float value)
 
void setCartoonTubeRadius (float value)
 
void setCartoonHelixRadius (float value)
 
void setCartoonArrowWidth (float value)
 
void setCartoonStrandHeight (float value)
 
void setCartoonStrandWidth (float value)
 
void setHBondRadius (float value)
 
void setForceMaxLenght (float value)
 
void setForceScaling (float value)
 
void setForceOffset (float value)
 
void setForceBase (float value)
 
void setCartoonDNALadderRadius (float value)
 
void setCartoonDNAHelixRadius (float value)
 
void setCartoonDNABaseRadius (float value)
 
- Public Member Functions inherited from BALL::VIEW::PreferencesEntry
 PreferencesEntry ()
 
virtual ~PreferencesEntry ()
 
virtual void writePreferenceEntries (INIFile &inifile)
 Store the settings of all registered objects. More...
 
virtual void readPreferenceEntries (const INIFile &inifile)
 Restore the settings of all registered objects. More...
 
void setINIFileSectionName (const String &name)
 Set the name for the section in the INIFile. More...
 
const StringgetINIFileSectionName () const
 Get the name for the section in the INIFile. More...
 
void setWidgetStackName (const String &name)
 
StackPagesgetStackPages ()
 Return all pages, that are to be shown in a parent QStackedWidget. More...
 
void setWidgetStack (QStackedWidget *stack)
 
virtual void showStackPage (Position nr)
 Show the specified page in the QStackedWidget. More...
 
virtual void showStackPage (QWidget *widget)
 Show the specified page in the QStackedWidget. More...
 
virtual Position currentStackPage () const
 Get the currently shown page in the QStackedWidget. More...
 
virtual void restoreDefaultValues (bool all=false)
 Set all registered objects to their default values. More...
 
virtual void storeValues ()
 
virtual void restoreValues (bool all=false)
 
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
 
virtual bool setValueAllowed (QObject *)
 Allows to prevent restoring of widgets. More...
 

Protected Slots

void stickRadiusChanged ()
 
void VDWfactorChanged ()
 
void ballStickSphereRadiusChanged ()
 
void ballStickCylinderRadiusChanged ()
 
void probeRadiusChanged ()
 
void tubeRadiusChanged ()
 
void cartoonTubeRadiusChanged ()
 
void cartoonHelixRadiusChanged ()
 
void cartoonStrandArrowWidthChanged ()
 
void cartoonStrandHeightChanged ()
 
void cartoonStrandWidthChanged ()
 
void cartoonDNAHelixRadiusChanged ()
 
void cartoonDNABaseRadiusChanged ()
 
void cartoonDNALadderRadiusChanged ()
 
void hbondsRadiusChanged ()
 
void forceScalingChanged ()
 
void forceMaxLengthChanged ()
 
void forceBaseChanged ()
 
void forceOffsetChanged ()
 
void changedNAMode_ (bool state)
 

Protected Member Functions

float getFloatValue_ (const QSlider *const &le) const
 
void setValue_ (QSlider *le, float value)
 
void setLabelText_ (QLabel *label, const QSlider *const from)
 
void setDefaultValues_ ()
 
- Protected Member Functions inherited from BALL::VIEW::PreferencesEntry
void registerWidgets_ ()
 
void registerObject_ (QObject *widget)
 
void unregisterObject_ (QObject *widget)
 
void registerWidgetForHelpSystem_ (const QWidget *widget, const String &url)
 
void restoreValues_ (bool all, const ValueMap &map)
 
void insertStackEntry_ (QWidget *, const String &name)
 
bool isSupported_ (QObject &widget)
 
bool getValue_ (const QObject *widget, String &value)
 
bool setValue_ (QObject *widget, const String &value)
 

Additional Inherited Members

- Public Types inherited from BALL::VIEW::PreferencesEntry
typedef std::list< std::pair
< QWidget *, String > > 
StackPages
 
- Protected Types inherited from BALL::VIEW::PreferencesEntry
typedef HashMap< const QObject
*, String
ValueMap
 
- Protected Attributes inherited from BALL::VIEW::PreferencesEntry
String inifile_section_name_
 
HashSet< QObject * > registered_objects_
 
ValueMap default_values_
 
ValueMap last_values_
 
QStackedWidget * widget_stack_
 
StackPages stack_pages_
 

Detailed Description

Dialog for the molecular model settings, it is inserted into the Preferences.

Definition at line 42 of file modelSettingsDialog.h.

Constructor & Destructor Documentation

BALL::VIEW::ModelSettingsDialog::ModelSettingsDialog ( QWidget parent = 0,
const char *  name = "ModelSettingsDialog",
Qt::WFlags  fl = 0 
)

Constructor.

virtual BALL::VIEW::ModelSettingsDialog::~ModelSettingsDialog ( )
inlinevirtual

Destructor.

Definition at line 56 of file modelSettingsDialog.h.

Member Function Documentation

virtual void BALL::VIEW::ModelSettingsDialog::applySettingsTo ( ModelProcessor cp) const
virtual
bool BALL::VIEW::ModelSettingsDialog::ballAndStickDashedBondsEnabled ( ) const
inline

Definition at line 80 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::ballStickCylinderRadiusChanged ( )
inlineprotectedslot

Definition at line 239 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::ballStickSphereRadiusChanged ( )
inlineprotectedslot

Definition at line 238 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::cartoonDNABaseRadiusChanged ( )
inlineprotectedslot

Definition at line 250 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::cartoonDNAHelixRadiusChanged ( )
inlineprotectedslot

Definition at line 249 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::cartoonDNALadderRadiusChanged ( )
inlineprotectedslot

Definition at line 251 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::cartoonHelixRadiusChanged ( )
inlineprotectedslot

Definition at line 243 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::cartoonStrandArrowWidthChanged ( )
inlineprotectedslot

Definition at line 245 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::cartoonStrandHeightChanged ( )
inlineprotectedslot

Definition at line 246 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::cartoonStrandWidthChanged ( )
inlineprotectedslot

Definition at line 247 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::cartoonTubeRadiusChanged ( )
inlineprotectedslot

Definition at line 242 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::changedNAMode_ ( bool  state)
protectedslot
virtual ModelProcessor* BALL::VIEW::ModelSettingsDialog::createModelProcessor ( ModelType  type) const
throw (Exception::InvalidOption
)
virtual
void BALL::VIEW::ModelSettingsDialog::forceBaseChanged ( )
inlineprotectedslot

Definition at line 255 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::forceMaxLengthChanged ( )
inlineprotectedslot

Definition at line 254 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::forceOffsetChanged ( )
inlineprotectedslot

Definition at line 256 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::forceScalingChanged ( )
inlineprotectedslot

Definition at line 253 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getBallAndStickStickRadius ( ) const
inline

Definition at line 76 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getBallRadius ( ) const
inline

Definition at line 84 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getCartoonArrowWidth ( ) const
inline

Definition at line 108 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getCartoonHelixRadius ( ) const
inline

Definition at line 104 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getCartoonStrandHeight ( ) const
inline

Definition at line 112 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getCartoonStrandWidth ( ) const
inline

Definition at line 116 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getCartoonTubeRadius ( ) const
inline

Definition at line 100 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getDNABaseRadius ( ) const
inline

Definition at line 144 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getDNAHelixRadius ( ) const
inline

Definition at line 148 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getDNALadderRadius ( ) const
inline

Definition at line 140 of file modelSettingsDialog.h.

virtual QWidget* BALL::VIEW::ModelSettingsDialog::getEntryFor ( ModelType  type)
virtual
float BALL::VIEW::ModelSettingsDialog::getFloatValue_ ( const QSlider *const &  le) const
protected
float BALL::VIEW::ModelSettingsDialog::getForceBase ( ) const
inline

Definition at line 132 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getForceMaxLength ( ) const
inline

Definition at line 124 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getForceOffset ( ) const
inline

Definition at line 136 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getForceScaling ( ) const
inline

Definition at line 128 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getHBondsRadius ( ) const
inline

Definition at line 120 of file modelSettingsDialog.h.

virtual void BALL::VIEW::ModelSettingsDialog::getSettings ( const ModelProcessor mp)
virtual
float BALL::VIEW::ModelSettingsDialog::getStickStickRadius ( ) const
inline

Definition at line 72 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getSurfaceProbeRadius ( ) const
inline

Definition at line 92 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getTubeRadius ( ) const
inline

Definition at line 96 of file modelSettingsDialog.h.

float BALL::VIEW::ModelSettingsDialog::getVDWRadiusFactor ( ) const
inline

Definition at line 88 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::hbondsRadiusChanged ( )
inlineprotectedslot

Definition at line 252 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::probeRadiusChanged ( )
inlineprotectedslot

Definition at line 240 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setBallAndStickStickDashedBondsEnabled ( bool  state)
inline

Definition at line 160 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setBallAndStickStickRadius ( float  value)
inline

Definition at line 156 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setBallRadius ( float  value)
inline

Definition at line 164 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setCartoonArrowWidth ( float  value)
inline

Definition at line 188 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setCartoonDNABaseRadius ( float  value)
inline

Definition at line 228 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setCartoonDNAHelixRadius ( float  value)
inline

Definition at line 224 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setCartoonDNALadderRadius ( float  value)
inline

Definition at line 220 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setCartoonHelixRadius ( float  value)
inline

Definition at line 184 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setCartoonStrandHeight ( float  value)
inline

Definition at line 192 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setCartoonStrandWidth ( float  value)
inline

Definition at line 196 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setCartoonTubeRadius ( float  value)
inline

Definition at line 180 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setDefaultValues_ ( )
protected
void BALL::VIEW::ModelSettingsDialog::setForceBase ( float  value)
inline

Definition at line 216 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setForceMaxLenght ( float  value)
inline

Definition at line 204 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setForceOffset ( float  value)
inline

Definition at line 212 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setForceScaling ( float  value)
inline

Definition at line 208 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setHBondRadius ( float  value)
inline

Definition at line 200 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setLabelText_ ( QLabel *  label,
const QSlider *const  from 
)
protected
void BALL::VIEW::ModelSettingsDialog::setStickStickRadius ( float  value)
inline

Definition at line 152 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setSurfaceProbeRadius ( float  value)
inline

Definition at line 172 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setTubeRadius ( float  value)
inline

Definition at line 176 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::setValue_ ( QSlider *  le,
float  value 
)
protected
void BALL::VIEW::ModelSettingsDialog::setVDWRadiusFactor ( float  value)
inline

Definition at line 168 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::stickRadiusChanged ( )
inlineprotectedslot

Definition at line 236 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::tubeRadiusChanged ( )
inlineprotectedslot

Definition at line 241 of file modelSettingsDialog.h.

void BALL::VIEW::ModelSettingsDialog::VDWfactorChanged ( )
inlineprotectedslot

Definition at line 237 of file modelSettingsDialog.h.