Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Options Class Reference

Management of application options. More...

List of all members.

Public Types

enum  COLORTYPES {
  BackgroundColor = 1, NormalColor = 2, TypeColor = 3, TextColor = 4,
  LeafColor = 5, TreeColor = 6, TreeLineColor = 7, ErrorColor = 8,
  HiddenColor = 9, MarkerColor = 10, FoundColor = 11, DifferentNodeColor = 12,
  ArcLabelColor = 13, ArcLabelBgColor = 14
}
 Contants in this enum are passed to changeColorSlot in order to specify what color value is to be changed. More...

enum  FONTTYPES {
  NormalFont = 1, TypeFont = 2, TextFont = 3, LeafFont = 4,
  TreeFont = 5, ErrorFont = 6, ArcLabelFont = 7
}
 Contants in this enum are passed to changeFontSlot in order to specify which font is to be changed. More...


Public Slots

void changeColorSlot (int what, QWidget *parent)
 Shows the color dialog.

void changeFontSlot (int what)
 Shows the font dialog.

void readOptionFromConfig ()
 Reads in all options from a KDE-style config file (Grisurc).

void writeOptionFromConfig ()
 Writes all options to a KDE-style config file (Grisurc).

void copyFromLocal (Options &)
 Copies all options from op into this.


Public Member Functions

 Options ()
 Creates a new Options object with default values.

 Options (Options &)
 Copy constructor.

 ~Options ()
 Destroys the options instance.

void writePrinterOptions (QPrinter &printer)
 Writes all settings in the given printer dialog to the configuration file.

void readPrinterOptions (QPrinter &printer)
 Initializes a printer dialog with options from the configuration file.


Public Attributes

QColor backgroundColor
 The background color.

QColor normalColor
 The color of features, tags and other visual objects like brackets.

QColor typeColor
 The color of types.

QColor textColor
 The color of atoms.

QColor errorColor
 Error color.

QColor treeColor
 The color of inner nodes in a tree.

QColor treeLineColor
 The color of the lines connecting nodes in a tree.

QColor leafColor
 The color of leaves in a tree.

QColor hiddenColor
 The color of hidden nodes.

QColor markerColor
 The color of a structure marker (used in highlight).

QColor foundColor
 The color of a found marker.

QColor differentNodeColor
 The color of a marker indicating different nodes (in a diff).

QColor arclabelColor
 The text color the text of an arc label in a tree.

QColor arclabelBgColor
 The background color of an arc label in a tree.

QFont normalFont
 The font of features, tags and other visual objects like brackets.

QFont typeFont
 The font of types.

QFont textFont
 The font of atoms.

QFont treeFont
 The font of inner tree nodes.

QFont leafFont
 The font of leaves in a tree.

QFont errorFont
 Error font.

QFont arclabelFont
 The font of edge labels in a tree.

int treeLineWidth
 The width of the lines representing edges in a tree.

int offset
 The amount of space between nodes (the "Structure Spacing" value modifiable in the GUI).

bool drawHidden
 true if grayed-out placeholders should be shown for hidden nodes.

bool fitToDrawing
 true if view windows should automatically adjust their size to that of the structures displayed.

bool autoOpenWindows
 true if a view window is to be opened automatically when new data arrives.

bool expandReentrancies
 true if reentrancies are to expanded automatically when a window opens.

bool highlightStructures
 true if structures are to be highlighted when the user points on them with the mouse.

bool writeConfig
 Currently not used.

bool showAppName
 If this option is set to true, the application name is shown in view windows in addition to the name supplied by the document.

bool useKFileDialog
 If this option is set to true, KFileDialog is used instead of QFileDialog in all file operations.


Detailed Description

Management of application options.

Author:
Holger Wunsch


Member Enumeration Documentation

enum Options::COLORTYPES
 

Contants in this enum are passed to changeColorSlot in order to specify what color value is to be changed.

enum Options::FONTTYPES
 

Contants in this enum are passed to changeFontSlot in order to specify which font is to be changed.


Constructor & Destructor Documentation

Options::Options  ) 
 

Creates a new Options object with default values.

Options::Options Options &   ) 
 

Copy constructor.

Options::~Options  ) 
 

Destroys the options instance.


Member Function Documentation

void Options::changeColorSlot int  what,
QWidget *  parent
[slot]
 

Shows the color dialog.

Parameters:
what Specifies the color value to be changed (one of the COLORTYPES constants).
parent the parent widget.

void Options::changeFontSlot int  what  )  [slot]
 

Shows the font dialog.

Parameters:
what Specifies what font is to be changed (one of the FONTTYPES constants).

void Options::copyFromLocal Options &   )  [slot]
 

Copies all options from op into this.

void Options::readOptionFromConfig  )  [slot]
 

Reads in all options from a KDE-style config file (Grisurc).

void Options::readPrinterOptions QPrinter &  printer  ) 
 

Initializes a printer dialog with options from the configuration file.

Parameters:
printer the QPrinter object.

void Options::writeOptionFromConfig  )  [slot]
 

Writes all options to a KDE-style config file (Grisurc).

void Options::writePrinterOptions QPrinter &  printer  ) 
 

Writes all settings in the given printer dialog to the configuration file.

Parameters:
printer the QPrinter object.


Member Data Documentation

QColor Options::arclabelBgColor
 

The background color of an arc label in a tree.

QColor Options::arclabelColor
 

The text color the text of an arc label in a tree.

QFont Options::arclabelFont
 

The font of edge labels in a tree.

bool Options::autoOpenWindows
 

true if a view window is to be opened automatically when new data arrives.

QColor Options::backgroundColor
 

The background color.

QColor Options::differentNodeColor
 

The color of a marker indicating different nodes (in a diff).

bool Options::drawHidden
 

true if grayed-out placeholders should be shown for hidden nodes.

QColor Options::errorColor
 

Error color.

QFont Options::errorFont
 

Error font.

bool Options::expandReentrancies
 

true if reentrancies are to expanded automatically when a window opens.

bool Options::fitToDrawing
 

true if view windows should automatically adjust their size to that of the structures displayed.

QColor Options::foundColor
 

The color of a found marker.

QColor Options::hiddenColor
 

The color of hidden nodes.

bool Options::highlightStructures
 

true if structures are to be highlighted when the user points on them with the mouse.

QColor Options::leafColor
 

The color of leaves in a tree.

QFont Options::leafFont
 

The font of leaves in a tree.

QColor Options::markerColor
 

The color of a structure marker (used in highlight).

QColor Options::normalColor
 

The color of features, tags and other visual objects like brackets.

QFont Options::normalFont
 

The font of features, tags and other visual objects like brackets.

int Options::offset
 

The amount of space between nodes (the "Structure Spacing" value modifiable in the GUI).

bool Options::showAppName
 

If this option is set to true, the application name is shown in view windows in addition to the name supplied by the document.

QColor Options::textColor
 

The color of atoms.

QFont Options::textFont
 

The font of atoms.

QColor Options::treeColor
 

The color of inner nodes in a tree.

QFont Options::treeFont
 

The font of inner tree nodes.

QColor Options::treeLineColor
 

The color of the lines connecting nodes in a tree.

int Options::treeLineWidth
 

The width of the lines representing edges in a tree.

QColor Options::typeColor
 

The color of types.

QFont Options::typeFont
 

The font of types.

bool Options::useKFileDialog
 

If this option is set to true, KFileDialog is used instead of QFileDialog in all file operations.

bool Options::writeConfig
 

Currently not used.


Generated on Sun Apr 27 18:26:58 2003 for Grisu by doxygen1.3