BALL::VIEW::MainControlPreferences Class Reference
[QT Dialogs]

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

Inheritance diagram for BALL::VIEW::MainControlPreferences:
QWidget Ui_MainControlPreferencesData BALL::VIEW::PreferencesEntry

List of all members.


Public Slots

void selectFont ()
 

Get the application's default font.


void setFont (QFont font)
 

Set the application's default font.



Public Member Functions

 MainControlPreferences (QWidget *parent=NULL, const char *name="MainControlPreferences", Qt::WFlags fl=0)
 

Default Constructor.


virtual ~MainControlPreferences ()
QStyle * getStyle ()
void enableLoggingToFile (bool state)
 

Enable logging to file.


bool loggingToFileEnabled () const
QFont getFont ()
void writePreferenceEntries (INIFile &inifile)
 

Store the settings of all registered objects.


void readPreferenceEntries (const INIFile &inifile)
 

Restore the settings of all registered objects.



Protected Attributes

QFont font_

Detailed Description

MainControlPreferences is a widget that will be inserted into the tab dialog Preferences. It contains the following settings:


Constructor & Destructor Documentation

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

Default Constructor.

virtual BALL::VIEW::MainControlPreferences::~MainControlPreferences (  )  [virtual]

Member Function Documentation

void BALL::VIEW::MainControlPreferences::enableLoggingToFile ( bool  state  ) 

Enable logging to file.

QFont BALL::VIEW::MainControlPreferences::getFont (  ) 
QStyle* BALL::VIEW::MainControlPreferences::getStyle (  ) 

Inspection of the selected style. This method will be called from MainControl::applyPreferences().

Returns:
QStyle* a pointer to the selected style. (See documentation of QT-library for information concerning styles)
bool BALL::VIEW::MainControlPreferences::loggingToFileEnabled (  )  const
void BALL::VIEW::MainControlPreferences::readPreferenceEntries ( const INIFile inifile  )  [virtual]

Restore the settings of all registered objects.

Reimplemented from BALL::VIEW::PreferencesEntry.

void BALL::VIEW::MainControlPreferences::selectFont (  )  [slot]

Get the application's default font.

void BALL::VIEW::MainControlPreferences::setFont ( QFont  font  )  [slot]

Set the application's default font.

void BALL::VIEW::MainControlPreferences::writePreferenceEntries ( INIFile inifile  )  [virtual]

Store the settings of all registered objects.

Reimplemented from BALL::VIEW::PreferencesEntry.


Member Data Documentation