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

SPref Class Reference

#include <SPref.h>

Inherits SObservable.

Inheritance diagram for SPref:

Inheritance graph
[legend]
List of all members.

Public Methods

 SPref (int blub)
 ~SPref ()
void load ()
void save ()
const leda_string & getJobHiddenColor () const
void setJobHiddenColor (const leda_string &s)
const leda_string & getJobReleasedColor () const
void setJobReleasedColor (const leda_string &s)
const leda_string & getJobRunningColor () const
void setJobRunningColor (const leda_string &s)
const leda_string & getJobFinishedColor () const
void setJobFinishedColor (const leda_string &s)
const leda_string & getJobRejectedColor () const
void setJobRejectedColor (const leda_string &s)
const int & getUsePixmaps () const
void setUsePixmaps (const int &i)
const leda_string & getJobPixmapFile () const
void setJobPixmapFile (const leda_string &s)
void setJobLayoutSettings (const leda_string &hcol, const leda_string &recol, const leda_string &rucol, const leda_string &fcol, const leda_string &rjcol, int width, int height, const leda_string &shape, int usepix, const leda_string &pixfile)
int getNodeWidth () const
void setNodeWidth (int w)
int getNodeHeight () const
void setNodeHeight (int h)
const leda_string & getNodeShape () const
void setNodeShape (const leda_string &s)
const leda_string & getMachGifFile () const
void setMachGifFile (const leda_string &s)
const leda_string & getAlgorithm () const
const leda_string & getPlayerTasksystemFile () const
const leda_string & getPlayerLogFile () const
void setAlgorithm (const leda_string &alg, const leda_string &playerTS, const leda_string &playerLog)
int getLogTextActivated ()
const string & getLogTextStream ()
const int & getSchedFilter () const
const int & getEditFilter () const
void setLogTextSettings (int act, const string &s, int schedfilter, int editfilter)
int getLogPlayerActivated ()
const string & getLogPlayerStream ()
void setLogPlayerSettings (int act, const string &s)
int getLogOptCritActivated ()
void getLogOptCritValues (int &criterion, int &type, int &weighted)
void setLogOptCritSettings (int act, int criterion, int type, int weighted)
void setSchedWinPos (QPoint p)
void setSchedWinSize (int w, int h)
const QRect & getSchedWinGeometry ()
void setDAGWinPos (QPoint p)
void setDAGWinSize (int w, int h)
const QRect & getDAGWinGeometry ()
void setMachineWinPos (QPoint p)
void setMachineWinSize (int w, int h)
const QRect & getMachineWinGeometry ()
void setMeshWinPos (QPoint p)
void setMeshWinSize (int w, int h)
const QRect & getMeshWinGeometry ()
void setGanttWinPos (QPoint p)
void setGanttWinSize (int w, int h)
const QRect & getGanttWinGeometry ()
void setRecentFiles (leda_list< string > recentFiles)
const leda_list< string > getRecentFiles ()
const double & getProcTimeEps () const
void setProcTimeEps (const double &d)
void addObserver (SObserver &obs)
void deleteObserver (SObserver &obs)
void notifyObservers (const SEvent &event)

Static Public Methods

SPref & instance ()
string getRootDir ()

Detailed Description

A singleton class which is used to globally access the Preferences. Please have a look at the header-file for finding out what preferences are defined.


Constructor & Destructor Documentation

SPref::SPref (  int    blub )  [inline]
 

SPref::~SPref (    )  [inline]
 

destructor, which also saves the preferences


Member Function Documentation

void SObservable::addObserver (  SObserver &    obs )  [inline, inherited]
 

Here another component can register himself as observer of this component

Parameters:
obs  observer that wants to be notified of events created by this class

void SObservable::deleteObserver (  SObserver &    obs )  [inline, inherited]
 

Here another component can delete himself from the list of observers of this component

Parameters:
obs  observer that doesn't want to be notified anymore

const leda_string& SPref::getAlgorithm (    )  const [inline]
 

const QRect& SPref::getDAGWinGeometry (    )  [inline]
 

const int& SPref::getEditFilter (    )  const [inline]
 

const QRect& SPref::getGanttWinGeometry (    )  [inline]
 

const leda_string& SPref::getJobFinishedColor (    )  const [inline]
 

const leda_string& SPref::getJobHiddenColor (    )  const [inline]
 

const leda_string& SPref::getJobPixmapFile (    )  const [inline]
 

const leda_string& SPref::getJobRejectedColor (    )  const [inline]
 

const leda_string& SPref::getJobReleasedColor (    )  const [inline]
 

const leda_string& SPref::getJobRunningColor (    )  const [inline]
 

int SPref::getLogOptCritActivated (    )  [inline]
 

void SPref::getLogOptCritValues (  int &    criterion,
int &    type,
int &    weighted
)  [inline]
 

int SPref::getLogPlayerActivated (    )  [inline]
 

const string& SPref::getLogPlayerStream (    )  [inline]
 

int SPref::getLogTextActivated (    )  [inline]
 

const string& SPref::getLogTextStream (    )  [inline]
 

const leda_string& SPref::getMachGifFile (    )  const [inline]
 

const QRect& SPref::getMachineWinGeometry (    )  [inline]
 

const QRect& SPref::getMeshWinGeometry (    )  [inline]
 

int SPref::getNodeHeight (    )  const [inline]
 

const leda_string& SPref::getNodeShape (    )  const [inline]
 

int SPref::getNodeWidth (    )  const [inline]
 

const leda_string& SPref::getPlayerLogFile (    )  const [inline]
 

const leda_string& SPref::getPlayerTasksystemFile (    )  const [inline]
 

const double& SPref::getProcTimeEps (    )  const [inline]
 

const leda_list<string> SPref::getRecentFiles (    )  [inline]
 

string SPref::getRootDir (    )  [static]
 

get the SCHEDROOT environment variable

Returns:
the content of SCHEDROOT

const int& SPref::getSchedFilter (    )  const [inline]
 

const QRect& SPref::getSchedWinGeometry (    )  [inline]
 

const int& SPref::getUsePixmaps (    )  const [inline]
 

SPref & SPref::instance (    )  [static]
 

Get the one and only instance of the preferences

Returns:
preferences instance

void SPref::load (    ) 
 

Load the contents of the preferences file

void SObservable::notifyObservers (  const SEvent &    event )  [inline, inherited]
 

Inform all observers of this component about an event. The Observers will receive this event by their SObserver::update()-method.

Parameters:
event  an event that is sent to all observers of this component
See also:
SObserver::update()

void SPref::save (    ) 
 

Save the current state to the preferences file

void SPref::setAlgorithm (  const leda_string &    alg,
const leda_string &    playerTS,
const leda_string &    playerLog
)  [inline]
 

void SPref::setDAGWinPos (  QPoint    p )  [inline]
 

void SPref::setDAGWinSize (  int    w,
int    h
)  [inline]
 

void SPref::setGanttWinPos (  QPoint    p )  [inline]
 

void SPref::setGanttWinSize (  int    w,
int    h
)  [inline]
 

void SPref::setJobFinishedColor (  const leda_string &    s )  [inline]
 

void SPref::setJobHiddenColor (  const leda_string &    s )  [inline]
 

void SPref::setJobLayoutSettings (  const leda_string &    hcol,
const leda_string &    recol,
const leda_string &    rucol,
const leda_string &    fcol,
const leda_string &    rjcol,
int    width,
int    height,
const leda_string &    shape,
int    usepix,
const leda_string &    pixfile
)  [inline]
 

void SPref::setJobPixmapFile (  const leda_string &    s )  [inline]
 

void SPref::setJobRejectedColor (  const leda_string &    s )  [inline]
 

void SPref::setJobReleasedColor (  const leda_string &    s )  [inline]
 

void SPref::setJobRunningColor (  const leda_string &    s )  [inline]
 

void SPref::setLogOptCritSettings (  int    act,
int    criterion,
int    type,
int    weighted
)  [inline]
 

void SPref::setLogPlayerSettings (  int    act,
const string &    s
)  [inline]
 

void SPref::setLogTextSettings (  int    act,
const string &    s,
int    schedfilter,
int    editfilter
)  [inline]
 

void SPref::setMachGifFile (  const leda_string &    s )  [inline]
 

void SPref::setMachineWinPos (  QPoint    p )  [inline]
 

void SPref::setMachineWinSize (  int    w,
int    h
)  [inline]
 

void SPref::setMeshWinPos (  QPoint    p )  [inline]
 

void SPref::setMeshWinSize (  int    w,
int    h
)  [inline]
 

void SPref::setNodeHeight (  int    h )  [inline]
 

void SPref::setNodeShape (  const leda_string &    s )  [inline]
 

void SPref::setNodeWidth (  int    w )  [inline]
 

void SPref::setProcTimeEps (  const double &    d )  [inline]
 

void SPref::setRecentFiles (  leda_list< string >    recentFiles )  [inline]
 

void SPref::setSchedWinPos (  QPoint    p )  [inline]
 

void SPref::setSchedWinSize (  int    w,
int    h
)  [inline]
 

void SPref::setUsePixmaps (  const int &    i )  [inline]
 


The documentation for this class was generated from the following files:
Generated on Thu May 22 16:50:52 2003 for Sketch-it! by doxygen1.2.18