|
Canorus
0.7
|
Class for storing the Canorus settings. More...
#include <settings.h>

Static Public Member Functions | |
| static const QString | defaultSettingsPath () |
Private Member Functions | |
| void | writeRecentDocuments () |
| void | readRecentDocuments () |
Private Attributes | |
| bool | _finaleLyricsBehaviour |
| bool | _shadowNotesInOtherStaffs |
| bool | _playInsertedNotes |
| bool | _autoBar |
| QDir | _documentsDirectory |
| CAFileFormats::CAFileFormatType | _defaultSaveFormat |
| int | _autoRecoveryInterval |
| int | _maxRecentDocuments |
| bool | _antiAliasing |
| QColor | _backgroundColor |
| QColor | _foregroundColor |
| QColor | _selectionColor |
| QColor | _selectionAreaColor |
| QColor | _selectedContextColor |
| QColor | _hiddenElementsColor |
| QColor | _disabledElementsColor |
| int | _midiOutPort |
| int | _midiInPort |
| CATypesetter::CATypesetterType | _typesetter |
| QString | _typesetterLocation |
| bool | _useSystemDefaultTypesetter |
| QString | _pdfViewerLocation |
| bool | _useSystemDefaultPdfViewer |
Class for storing the Canorus settings.
Copyright (c) 2007, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.
This class is a model class used for reading and writing the settings in/out of the config file.
The default location of config files are usually $HOME$/.config/Canorus for POSIX systems and HOME% data on M$ systems. See
| CASettings::CASettings | ( | QObject * | parent = 0 | ) |
Create a new settings instance using the default config file for a local user.
Create a new settings instance using the config file fileName.
|
virtual |
|
inline |
References _antiAliasing.
Referenced by writeSettings().

|
inline |
References _autoBar.
Referenced by CAMainWin::insertMusElementAt(), and writeSettings().

|
inline |
References _autoRecoveryInterval.
Referenced by writeSettings().

|
inline |
References _backgroundColor.
Referenced by setBackgroundColor(), and writeSettings().

|
inline |
References _defaultSaveFormat.
Referenced by CASettingsDialog::setupPages(), and writeSettings().

|
static |
Returns the default settings path. This function is static and is used when no config filename is specified or when a plugin wants a settings directory to store its own settings in.
Referenced by CAAutoRecovery::cleanupRecovery(), main(), CAAutoRecovery::openRecovery(), and CAAutoRecovery::saveRecovery().

|
inline |
References _disabledElementsColor.
Referenced by setDisabledElementsColor(), and writeSettings().

|
inline |
References _documentsDirectory.
Referenced by writeSettings().

|
inline |
References _finaleLyricsBehaviour.
Referenced by CAMainWin::onTextEditKeyPressEvent(), and writeSettings().

|
inline |
References _foregroundColor.
Referenced by setForegroundColor(), and writeSettings().

|
inline |
References _hiddenElementsColor.
Referenced by setHiddenElementsColor(), and writeSettings().

|
inline |
References _maxRecentDocuments.
Referenced by writeSettings().

|
inline |
References _midiInPort.
Referenced by setMidiInPort(), CASettingsDialog::setupPages(), and writeSettings().

|
inline |
References _midiOutPort.
Referenced by CASettingsDialog::setupPages(), and writeSettings().

|
inline |
References _pdfViewerLocation.
Referenced by writeSettings().

|
inline |
References _playInsertedNotes.
Referenced by CAMainWin::insertMusElementAt(), and writeSettings().

|
private |
References CACanorus::addRecentDocument().
Referenced by readSettings().


| int CASettings::readSettings | ( | ) |
Opens the settings stored in a config file and sets the local values. Returns Undefined, if everything went fine or appropriate settings page, if a file or value wasn't set and settings window should be shown (eg. setup the MIDI devices the first time).
References DEFAULT_ANTIALIASING, DEFAULT_AUTO_BAR, DEFAULT_AUTO_RECOVERY_INTERVAL, DEFAULT_BACKGROUND_COLOR, DEFAULT_DISABLED_ELEMENTS_COLOR, DEFAULT_DOCUMENTS_DIRECTORY, DEFAULT_FINALE_LYRICS_BEHAVIOUR, DEFAULT_FOREGROUND_COLOR, DEFAULT_HIDDEN_ELEMENTS_COLOR, DEFAULT_MAX_RECENT_DOCUMENTS, DEFAULT_MIDI_IN_PORT, DEFAULT_MIDI_OUT_PORT, DEFAULT_PDF_VIEWER_LOCATION, DEFAULT_PLAY_INSERTED_NOTES, DEFAULT_SAVE_FORMAT, DEFAULT_SELECTED_CONTEXT_COLOR, DEFAULT_SELECTION_AREA_COLOR, DEFAULT_SELECTION_COLOR, DEFAULT_SHADOW_NOTES_IN_OTHER_STAFFS, DEFAULT_TYPESETTER, DEFAULT_TYPESETTER_LOCATION, DEFAULT_USE_SYSTEM_PDF_VIEWER, DEFAULT_USE_SYSTEM_TYPESETTER, CACanorus::midiDevice(), readRecentDocuments(), setAntiAliasing(), setAutoBar(), setAutoRecoveryInterval(), setBackgroundColor(), setDefaultSaveFormat(), setDisabledElementsColor(), setDocumentsDirectory(), setFinaleLyricsBehaviour(), setForegroundColor(), setHiddenElementsColor(), setMaxRecentDocuments(), setMidiInPort(), setMidiOutPort(), setPdfViewerLocation(), setPlayInsertedNotes(), setSelectedContextColor(), setSelectionAreaColor(), setSelectionColor(), setShadowNotesInOtherStaffs(), setTypesetter(), setTypesetterLocation(), setUseSystemDefaultPdfViewer(), and setUseSystemDefaultTypesetter().
Referenced by CACanorus::initSettings().


|
inline |
References _selectedContextColor.
Referenced by setSelectedContextColor(), and writeSettings().

|
inline |
References _selectionAreaColor.
Referenced by setSelectionAreaColor(), and writeSettings().

|
inline |
References _selectionColor.
Referenced by setSelectionColor(), and writeSettings().

|
inline |
References _antiAliasing.
Referenced by CASettingsDialog::applySettings(), and readSettings().

|
inline |
References _autoBar.
Referenced by CASettingsDialog::applySettings(), and readSettings().

|
inline |
References _autoRecoveryInterval.
Referenced by CASettingsDialog::applySettings(), and readSettings().

|
inline |
References _backgroundColor, and backgroundColor().
Referenced by CASettingsDialog::applySettings(), and readSettings().


|
inline |
References _defaultSaveFormat.
Referenced by CASettingsDialog::applySettings(), and readSettings().

|
inline |
References _disabledElementsColor, and disabledElementsColor().
Referenced by CASettingsDialog::applySettings(), and readSettings().


|
inline |
References _documentsDirectory.
Referenced by CASettingsDialog::applySettings(), and readSettings().

|
inline |
References _finaleLyricsBehaviour.
Referenced by CASettingsDialog::applySettings(), and readSettings().

|
inline |
References _foregroundColor, and foregroundColor().
Referenced by CASettingsDialog::applySettings(), and readSettings().


|
inline |
References _hiddenElementsColor, and hiddenElementsColor().
Referenced by CASettingsDialog::applySettings(), and readSettings().


|
inline |
References _maxRecentDocuments.
Referenced by readSettings().

| void CASettings::setMidiInPort | ( | int | in | ) |
References _midiInPort, CAMidiDevice::closeInputPort(), CACanorus::midiDevice(), midiInPort(), and CAMidiDevice::openInputPort().
Referenced by CASettingsDialog::applySettings(), and readSettings().


|
inline |
References _midiOutPort.
Referenced by CASettingsDialog::applySettings(), and readSettings().

|
inline |
References _pdfViewerLocation.
Referenced by CASettingsDialog::applySettings(), and readSettings().

|
inline |
References _playInsertedNotes.
Referenced by CASettingsDialog::applySettings(), and readSettings().

|
inline |
References _selectedContextColor, and selectedContextColor().
Referenced by CASettingsDialog::applySettings(), and readSettings().


|
inline |
References _selectionAreaColor, and selectionAreaColor().
Referenced by CASettingsDialog::applySettings(), and readSettings().


|
inline |
References _selectionColor, and selectionColor().
Referenced by CASettingsDialog::applySettings(), and readSettings().


|
inline |
References _shadowNotesInOtherStaffs.
Referenced by CASettingsDialog::applySettings(), and readSettings().

|
inline |
References _typesetter.
Referenced by CASettingsDialog::applySettings(), and readSettings().

|
inline |
References _typesetterLocation.
Referenced by CASettingsDialog::applySettings(), and readSettings().

|
inline |
References _useSystemDefaultPdfViewer.
Referenced by CASettingsDialog::applySettings(), and readSettings().

|
inline |
References _useSystemDefaultTypesetter.
Referenced by CASettingsDialog::applySettings(), and readSettings().

|
inline |
References _shadowNotesInOtherStaffs.
Referenced by CAScoreViewPort::paintEvent(), and writeSettings().

|
inline |
|
inline |
References _typesetterLocation.
Referenced by writeSettings().

|
inline |
References _useSystemDefaultPdfViewer.
Referenced by writeSettings().

|
inline |
References _useSystemDefaultTypesetter.
Referenced by writeSettings().

|
private |
References CACanorus::recentDocumentList().
Referenced by writeSettings().


| void CASettings::writeSettings | ( | ) |
Writes the stored settings to a config file.
References antiAliasing(), autoBar(), autoRecoveryInterval(), backgroundColor(), defaultSaveFormat(), disabledElementsColor(), documentsDirectory(), finaleLyricsBehaviour(), foregroundColor(), hiddenElementsColor(), maxRecentDocuments(), midiInPort(), midiOutPort(), pdfViewerLocation(), playInsertedNotes(), selectedContextColor(), selectionAreaColor(), selectionColor(), shadowNotesInOtherStaffs(), typesetter(), typesetterLocation(), useSystemDefaultPdfViewer(), useSystemDefaultTypesetter(), and writeRecentDocuments().
Referenced by CASettingsDialog::applySettings(), CACanorus::insertRecentDocument(), and ~CASettings().


|
private |
Referenced by antiAliasing(), and setAntiAliasing().
|
private |
Referenced by autoBar(), and setAutoBar().
|
private |
Referenced by autoRecoveryInterval(), and setAutoRecoveryInterval().
|
private |
Referenced by backgroundColor(), and setBackgroundColor().
|
private |
Referenced by defaultSaveFormat(), and setDefaultSaveFormat().
|
private |
Referenced by disabledElementsColor(), and setDisabledElementsColor().
|
private |
Referenced by documentsDirectory(), and setDocumentsDirectory().
|
private |
Referenced by finaleLyricsBehaviour(), and setFinaleLyricsBehaviour().
|
private |
Referenced by foregroundColor(), and setForegroundColor().
|
private |
Referenced by hiddenElementsColor(), and setHiddenElementsColor().
|
private |
Referenced by maxRecentDocuments(), and setMaxRecentDocuments().
|
private |
Referenced by midiInPort(), and setMidiInPort().
|
private |
Referenced by midiOutPort(), and setMidiOutPort().
|
private |
Referenced by pdfViewerLocation(), and setPdfViewerLocation().
|
private |
Referenced by playInsertedNotes(), and setPlayInsertedNotes().
|
private |
Referenced by selectedContextColor(), and setSelectedContextColor().
|
private |
Referenced by selectionAreaColor(), and setSelectionAreaColor().
|
private |
Referenced by selectionColor(), and setSelectionColor().
|
private |
Referenced by setShadowNotesInOtherStaffs(), and shadowNotesInOtherStaffs().
|
private |
Referenced by setTypesetter(), and typesetter().
|
private |
Referenced by setTypesetterLocation(), and typesetterLocation().
|
private |
Referenced by setUseSystemDefaultPdfViewer(), and useSystemDefaultPdfViewer().
|
private |
Referenced by setUseSystemDefaultTypesetter(), and useSystemDefaultTypesetter().
|
static |
Referenced by readSettings().
|
static |
Referenced by readSettings().
|
static |
Referenced by readSettings().
|
static |
Referenced by CASettingsDialog::on_uiBackgroundRevert_clicked(), and readSettings().
|
static |
Referenced by CASettingsDialog::on_uiDisabledElementsRevert_clicked(), and readSettings().
|
static |
Referenced by CASettingsDialog::on_uiDocumentsDirectoryRevert_clicked(), and readSettings().
|
static |
Copyright (c) 2007, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.
Referenced by readSettings().
|
static |
Referenced by CASettingsDialog::on_uiForegroundRevert_clicked(), and readSettings().
|
static |
Referenced by CASettingsDialog::on_uiHiddenElementsRevert_clicked(), and readSettings().
|
static |
Referenced by readSettings().
|
static |
Referenced by readSettings().
|
static |
Referenced by readSettings().
|
static |
Referenced by readSettings().
|
static |
Referenced by readSettings().
|
static |
Referenced by readSettings().
|
static |
Referenced by CASettingsDialog::on_uiSelectedContextRevert_clicked(), and readSettings().
|
static |
Referenced by CASettingsDialog::on_uiSelectionAreaRevert_clicked(), and readSettings().
|
static |
Referenced by CASettingsDialog::on_uiSelectionRevert_clicked(), and readSettings().
|
static |
Referenced by readSettings().
|
static |
Referenced by readSettings().
|
static |
Referenced by readSettings(), CAPDFExport::startExport(), and CASVGExport::startExport().
|
static |
Referenced by readSettings().
|
static |
Referenced by readSettings().
1.8.3