libyui  3.1.4
 All Classes Files Functions Variables Typedefs Enumerations Friends Pages
YSettings Class Reference

Settings for libyui. More...

#include <YSettings.h>

Static Public Member Functions

static void setProgDir (std::string directory)
 This can be used to set a subdir beneath PLUGINDIR or THEMEDIR, where your program stores a custom plugin or theme. More...
 
static std::string progDir ()
 Returns the value of your program's subdir.
 
static void setIconDir (std::string directory)
 This can be used to set a subdir ICONDIR, where your program stores a custom icons. More...
 
static std::string iconDir ()
 Returns the value of your program's icons subdir.
 
static void setThemeDir (std::string directory)
 This can be used to set a subdir THEMEDIR, where your program stores a custom icons. More...
 
static std::string themeDir ()
 Returns the value of your program's theme subdir.
 
static void setLocaleDir (std::string directory)
 This can be used to set a subdir LOCALEDIR, where your program stores translations. More...
 
static std::string localeDir ()
 Returns the value of your program's locale subdir.
 

Detailed Description

Settings for libyui.

This singleton-object hold some presets for libyui.

Definition at line 43 of file YSettings.h.

Member Function Documentation

void YSettings::setIconDir ( std::string  directory)
static

This can be used to set a subdir ICONDIR, where your program stores a custom icons.

Once this is set, it can't be altered. If you do so although an exception will be thrown.

Definition at line 79 of file YSettings.cc.

void YSettings::setLocaleDir ( std::string  directory)
static

This can be used to set a subdir LOCALEDIR, where your program stores translations.

Once this is set, it can't be altered. If you do so although an exception will be thrown.

Definition at line 141 of file YSettings.cc.

void YSettings::setProgDir ( std::string  directory)
static

This can be used to set a subdir beneath PLUGINDIR or THEMEDIR, where your program stores a custom plugin or theme.

Once this is set, it can't be altered. If you do so although an exception will be thrown.

Definition at line 55 of file YSettings.cc.

void YSettings::setThemeDir ( std::string  directory)
static

This can be used to set a subdir THEMEDIR, where your program stores a custom icons.

Once this is set, it can't be altered. If you do so although an exception will be thrown.

Definition at line 108 of file YSettings.cc.


The documentation for this class was generated from the following files: