SyntaxColors Class Reference
Store colors for syntax highligter. It provides defaults, loading and storing preferences. More...
#include <pconsole.h>
Public Member Functions | |
| SyntaxColors () | |
| ~SyntaxColors () | |
Public Attributes | |
| QColor | errorColor |
| QColor | commentColor |
| QColor | keywordColor |
| QColor | signColor |
| QColor | numberColor |
| QColor | stringColor |
| QColor | textColor |
Private Member Functions | |
| QString | qcolor2named (QColor color) |
| Converts QColor into rrggbb string. | |
Detailed Description
Store colors for syntax highligter. It provides defaults, loading and storing preferences.
Definition at line 85 of file pconsole.h.
Constructor & Destructor Documentation
| SyntaxColors::SyntaxColors | ( | ) |
Definition at line 337 of file pconsole.cpp.
References commentColor, errorColor, PrefsContext::get(), PrefsFile::getPluginContext(), PrefsManager::instance(), keywordColor, numberColor, PrefsManager::prefsFile, signColor, stringColor, and textColor.
| SyntaxColors::~SyntaxColors | ( | ) |
Definition at line 349 of file pconsole.cpp.
References commentColor, errorColor, PrefsFile::getPluginContext(), PrefsManager::instance(), keywordColor, numberColor, PrefsManager::prefsFile, qcolor2named(), PrefsContext::set(), signColor, stringColor, and textColor.
Member Function Documentation
| QString SyntaxColors::qcolor2named | ( | QColor | color | ) | [private] |
Converts QColor into rrggbb string.
- Parameters:
-
color a QColor to convert.
Definition at line 361 of file pconsole.cpp.
Referenced by ~SyntaxColors().
Member Data Documentation
| QColor SyntaxColors::errorColor |
Definition at line 90 of file pconsole.h.
Referenced by ScripterPrefsGui::apply(), ScripterPrefsGui::setupSyntaxColors(), SyntaxColors(), and ~SyntaxColors().
| QColor SyntaxColors::commentColor |
Definition at line 91 of file pconsole.h.
Referenced by ScripterPrefsGui::apply(), ScripterPrefsGui::setupSyntaxColors(), SyntaxColors(), SyntaxHighlighter::SyntaxHighlighter(), and ~SyntaxColors().
| QColor SyntaxColors::keywordColor |
Definition at line 92 of file pconsole.h.
Referenced by ScripterPrefsGui::apply(), ScripterPrefsGui::setupSyntaxColors(), SyntaxColors(), SyntaxHighlighter::SyntaxHighlighter(), and ~SyntaxColors().
| QColor SyntaxColors::signColor |
Definition at line 93 of file pconsole.h.
Referenced by ScripterPrefsGui::apply(), ScripterPrefsGui::setupSyntaxColors(), SyntaxColors(), SyntaxHighlighter::SyntaxHighlighter(), and ~SyntaxColors().
| QColor SyntaxColors::numberColor |
Definition at line 94 of file pconsole.h.
Referenced by ScripterPrefsGui::apply(), ScripterPrefsGui::setupSyntaxColors(), SyntaxColors(), SyntaxHighlighter::SyntaxHighlighter(), and ~SyntaxColors().
| QColor SyntaxColors::stringColor |
Definition at line 95 of file pconsole.h.
Referenced by ScripterPrefsGui::apply(), ScripterPrefsGui::setupSyntaxColors(), SyntaxColors(), SyntaxHighlighter::SyntaxHighlighter(), and ~SyntaxColors().
| QColor SyntaxColors::textColor |
Definition at line 96 of file pconsole.h.
Referenced by ScripterPrefsGui::apply(), ScripterPrefsGui::setupSyntaxColors(), SyntaxColors(), and ~SyntaxColors().
The documentation for this class was generated from the following files:
