Manage Scribus preferences here, and here alone Start to move the preferences out of scribus.cpp and provide some more features and hide some of the data within this class TODO Move prefsFile in here from scribus.cpp and stop passing it in for convertOldPreferences TODO Lots more :)
More...
|
| PrefsManager (QObject *parent=0) |
|
void | setup () |
|
void | initDefaults () |
| Initialise the defaults for prefs in this class Only set the GUI font stuff up if we have a GUI!!! Must be run after: PrefsManager::GetAllFonts() More...
|
|
void | initDefaultGUIFont (const QFont &) |
|
void | initDefaultCheckerPrefs (CheckerPrefsList *cp) |
|
void | initDefaultActionKeys () |
|
void | applyLoadedShortCuts () |
|
void | initArrowStyles () |
|
QString | setupPreferencesLocation () |
| Set the user's preference file location. Rename any existing old preferences files. More...
|
|
bool | copyOldPreferences () |
| Copy 1.2 prefs XML before loading, and copy rc files we don't yet convert. More...
|
|
void | convert12Preferences () |
| Move and convert 1.2 style preferences to new XML format. More...
|
|
const QString | preferencesLocation () |
| Get the prefs location property. More...
|
|
void | ReadPrefs (const QString &fname=QString::null) |
| Read the preferences. More...
|
|
void | ReadPrefsXML () |
|
void | SavePrefs (const QString &fname=QString::null) |
| Save the preferences. More...
|
|
void | SavePrefsXML () |
|
bool | WritePref (QString ho) |
| Writes the preferences physically to the file. Here is the XML file created itself. More...
|
|
bool | ReadPref (QString ho) |
| Reads the preferences physically from the file. Here is the XML file parsed itself. Returns false on error. It's the caller's job to make sure the prefs file actually exists. More...
|
|
void | setupMainWindow (ScribusMainWindow *mw) |
| Set up the main window with prefs values, recent files list, main window size etc.
|
|
void | setGhostscriptExecutable (const QString &) |
|
void | setImageEditorExecutable (const QString &) |
|
void | setExtBrowserExecutable (const QString &) |
|
void | setUniconvExecutable (const QString &) |
|
void | setLatexConfigs (const QStringList &) |
|
void | setLatexCommands (const QMap< QString, QString > &commands) |
|
void | setLatexEditorExecutable (const QString &) |
|
QString | ghostscriptExecutable () const |
|
QString | imageEditorExecutable () const |
|
QString | extBrowserExecutable () const |
|
QString | uniconvExecutable () const |
|
QStringList | latexConfigs () const |
|
QMap< QString, QString > | latexCommands () const |
|
bool | renderFrameConfigured () |
|
QString | latexEditorExecutable () const |
|
bool | latexStartWithEmptyFrames () const |
|
int | gsResolution () |
| Get the users preferred preview resolution.
|
|
int | latexResolution () const |
|
bool | latexForceDpi () const |
|
const QString | documentDir () |
| Get the users preferred document directory.
|
|
void | setDocumentDir (const QString &dirname) |
|
int | mouseWheelJump () const |
|
double | displayScale () const |
| Get the user set display scale.
|
|
const QString & | uiLanguage () const |
| Get the GUI language from preferences.
|
|
const QString & | guiStyle () const |
| Get the GUI style from preferences.
|
|
const QString & | guiSystemStyle () const |
|
const int & | guiFontSize () const |
| Get the GUI style from preferences.
|
|
const int & | paletteFontSize () const |
|
void | setKeyEntry (const QString &, const QString &, const QKeySequence &, const int &) |
|
void | setShowStartupDialog (const bool) |
|
bool | showPageShadow () const |
|
void | setColorSet (const ColorList &) |
| Sets the preferences' color set.
|
|
void | setColorSetName (const QString &) |
| Sets the preferences' color set name.
|
|
const ColorList & | colorSet () |
| Returns the preferences' color set.
|
|
ColorList * | colorSetPtr () |
| Returns a pointer to the preferences' color set. Needed for now until colors are better defined.
|
|
const QString & | colorSetName () |
| Returns the preferences' color set name.
|
|
bool | isToolColor (const QString &name) |
| Return if a color belongs to tools prefs colors.
|
|
QStringList | toolColorNames () |
| Return the list of used colors in tool prefs.
|
|
void | replaceToolColors (const QMap< QString, QString > replaceMap) |
| Replace used colors in tool prefs.
|
|
bool | GetAllFonts (bool showFontInfo) |
| Finds the fonts on the system Must be run after: PrefsManager::setup() Must be run before: PrefsManager::initDefaults() More...
|
|
ApplicationPrefs * | applicationPrefs () |
|
void | setNewPrefs (ApplicationPrefs &newPrefs) |
|
PrefsFile * | applicationPrefsFile () |
|
bool | importingFrom12x () |
|
const QString & | lastError () const |
| Return the last error reported by a PrefsManager method.
|
|
void | alertSavePrefsFailed () const |
| Display a GUI alert informing the user that saving prefs failed. This might want to move to another class later, perhaps being triggered by a signal emitted here.
|
|
void | alertLoadPrefsFailed () const |
|
Manage Scribus preferences here, and here alone Start to move the preferences out of scribus.cpp and provide some more features and hide some of the data within this class TODO Move prefsFile in here from scribus.cpp and stop passing it in for convertOldPreferences TODO Lots more :)
- Author
- Craig Bradney