The Options object manages the user preferences for the entire application. More...
Publicly inherits QObject.
Options | ( int argc, char* argv[] ); | |
bool | autoLoad | ( ); |
QString | bookmarksUrl | ( ); |
QString | catalogFile | ( ); |
bool | debugging | ( ); |
QString | homeUrl | ( ); |
bool | menuFontItalic | ( ); |
QString | menuFontName | ( ); |
int | menuFontSize | ( ); |
int | menuFontWeight | ( ); |
void | setAutoLoad | ( bool b ); |
void | setBookmarksUrl | ( QString url ); |
void | setCatalogFile | ( QString url ); |
void | setDebugging | ( bool b ); |
void | setHomeUrl | ( QString url ); |
void | setMenuFontItalic | ( bool italic ); |
void | setMenuFontName | ( QString name ); |
void | setMenuFontSize | ( int size ); |
void | setMenuFontWeight | ( int weight ); |
void | save | ( ); |
QString | getToken | ( FILE* fp ); |
void | load | ( ); |
void | updateAutoLoad | ( ); |
void | updateBookmarksUrl | ( ); |
void | updateCatalogFile | ( ); |
void | updateDebugging | ( ); |
void | updateHomeUrl | ( ); |
void | updateMenuFontItalic | ( ); |
void | updateMenuFontName | ( ); |
void | updateMenuFontSize | ( ); |
void | updateMenuFontWeight | ( ); |
bool | _autoLoad; |
QString | _bookmarksUrl; |
QString | _catalogFile; |
bool | _debugging; |
QString | _homeUrl; |
bool | _menuFontItalic; |
QString | _menuFontName; |
int | _menuFontSize; |
int | _menuFontWeight; |
The Options object manages the user preferences for the entire application.
The Options object is responsible for reading user preferences from the $HOME/.qwebrc file and the command line. Whenever any option is changed, a signal is emitted. Upon request, the current user preferences can be written back out to $HOME/.qwebrc.Create a new Options object. Set some reasonable default for all the options. Read any settings from $HOME/.qwebrc. Override these settings with anything specified on the command line.
Return the value of the auto load option.
Return the value of the bookmarks URL option.
Return the value of the catalog file option.
Return the value of the debugging option.
Return the value of the home URL option.
Change the auto load option.
Change the bookmarks file option.
Change the catalog file option.
Change the debugging option.
Change the home URL option.
Save the current options to the file $HOME/.qwebrc.
Return a single token from the preferences file. A tokens are delimited by spaces only.
Read in the user preferences from $HOME/.qwebrc.
Emitted when the auto load options is changed.
Emitted when the bookmarks URL option is changed.
Emitted when the catalog file option is changed.
Emitted when the debugging option is changed.
Emitted when the home URL options is changed.