pfcrender
1.0.1
|
The Config_Registry singleton is a global configuration store singleton It is fed from filesystem, CLI, and GUI. More...
#include <Config_Registry.h>
Public Slots | |
const QString | getOpt (const QString &optName) const |
Config_Registry::getOpt. More... | |
void | setOpt (const QString &optName, const QString &optValue) |
void | setOpt (const QPair< QString, QString > &) |
Public Member Functions | |
~Config_Registry () | |
Config_Registry::~Config_Registry Since this is a singleton class, this destructor only gets called on program end and is responsible for saving the application state. More... | |
void | add_to_sequence (const QString &name) |
void | clearSequence () |
const QVector< QString > | getSequence () const |
Static Public Member Functions | |
static Config_Registry * | getInstance () |
Private Member Functions | |
Config_Registry () | |
void | store_to_file () |
Private Attributes | |
QHash< QString, QString > | m_options |
XXX: Old style leaky singleton. Should be a more C++11 style definiton. More... | |
QVector< QString > | m_sequence |
QSettings | m_set |
Static Private Attributes | |
static Config_Registry * | instance = nullptr |
The Config_Registry singleton is a global configuration store singleton It is fed from filesystem, CLI, and GUI.
|
private |
Referenced by getInstance().
Common::Config_Registry::~Config_Registry | ( | ) |
Config_Registry::~Config_Registry Since this is a singleton class, this destructor only gets called on program end and is responsible for saving the application state.
References store_to_file().
void Common::Config_Registry::add_to_sequence | ( | const QString & | name | ) |
References Common::Plugin_Registry::getInstance(), and m_sequence.
void Common::Config_Registry::clearSequence | ( | ) |
References m_sequence.
Referenced by Common::Sequence_Walker::Sequence_Walker().
|
static |
References Config_Registry(), and instance.
Referenced by Plugins::LSYS::LSYSModelFactory::createModel(), Plugins::Export::SVG::SVG::drawSVG(), Test_GUI::initTestCase(), main(), Plugins::Export::PDF::QPainterParse::parsing_preamble(), Plugins::Export::SVG::QPainterParse::parsing_preamble(), QtGUI::QNanoCurvePainter::parsing_preamble(), Plugins::Export::PDF::PDF::printPDF(), Common::Sequence_Walker::Sequence_Walker(), Plugins::LSYS::Test_LSYS::test_modelstringOutputs(), QtCLI::PFCRenderCLI::~PFCRenderCLI(), and QtGUI::PFCRenderGUI::~PFCRenderGUI().
|
slot |
Config_Registry::getOpt.
optName |
References m_options.
Referenced by Plugins::Export::SVG::SVG::drawSVG(), Plugins::Export::PDF::QPainterParse::parsing_preamble(), Plugins::Export::SVG::QPainterParse::parsing_preamble(), QtGUI::QNanoCurvePainter::parsing_preamble(), and Plugins::Export::PDF::PDF::printPDF().
const QVector< QString > Common::Config_Registry::getSequence | ( | ) | const |
References m_sequence.
|
slot |
References m_options.
Referenced by Test_GUI::initTestCase(), and setOpt().
|
slot |
References setOpt().
|
private |
References m_options, and m_set.
Referenced by ~Config_Registry().
|
staticprivate |
Referenced by getInstance().
|
private |
XXX: Old style leaky singleton. Should be a more C++11 style definiton.
Referenced by getOpt(), setOpt(), and store_to_file().
|
private |
Referenced by add_to_sequence(), clearSequence(), and getSequence().
|
private |
Referenced by store_to_file().