EventViews::Prefs Class
class EventViews::PrefsThe Prefs class. More...
| Header: | #include <EventViews/Prefs> |
| CMake: | find_package(KPim6 REQUIRED COMPONENTS EventViews)target_link_libraries(mytarget PRIVATE KPim6::EventViews) |
Public Functions
| Prefs() | |
| Prefs(KCoreConfigSkeleton *appConfig) | |
| ~Prefs() | |
| QColor | agendaGridBackgroundColor() const |
| QColor | agendaGridHighlightColor() const |
| QColor | agendaGridWorkHoursBackgroundColor() const |
| QColor | agendaHolidaysBackgroundColor() const |
| QFont | agendaMarcusBainsLineFont() const |
| QColor | agendaMarcusBainsLineLineColor() const |
| QFont | agendaTimeLabelsFont() const |
| QColor | agendaViewBackgroundColor() const |
| int | agendaViewColors() const |
| QFont | agendaViewFont() const |
| QSet<EventViews::EventView::ItemIcon> | agendaViewIcons() const |
| bool | colorAgendaBusyDays() const |
| bool | colorMonthBusyDays() const |
| KConfig * | config() const |
| QDateTime | dayBegins() const |
| QStringList | decorationsAtAgendaViewBottom() const |
| QStringList | decorationsAtAgendaViewTop() const |
| bool | enableAgendaItemDesc() const |
| bool | enableAgendaItemIcons() const |
| bool | enableMonthItemIcons() const |
| bool | enableQuickTodo() const |
| bool | enableTodoQuickSearch() const |
| bool | enableToolTips() const |
| int | firstDayOfWeek() const |
| bool | flatListTodo() const |
| KConfigSkeleton::ItemFont * | fontItem(const QString &name) const |
| bool | fullViewMonth() const |
| bool | fullViewTodo() const |
| bool | highlightTodos() const |
| QColor | holidayColor() const |
| int | hourSize() const |
| bool | marcusBainsEnabled() const |
| bool | marcusBainsShowSeconds() const |
| QColor | monthGridBackgroundColor() const |
| QColor | monthGridWorkHoursBackgroundColor() const |
| void | monthGridWorkHoursBackgroundColor(const QColor &color) |
| QColor | monthTodayColor() const |
| int | monthViewColors() const |
| QFont | monthViewFont() const |
| QSet<EventViews::EventView::ItemIcon> | monthViewIcons() const |
| void | readConfig() |
| QColor | resourceColor(const QString &) |
| QColor | resourceColorKnown(const QString &) const |
| QStringList | selectedPlugins() const |
| bool | selectionStartsEditor() const |
| void | setAgendaGridBackgroundColor(const QColor &color) |
| void | setAgendaGridHighlightColor(const QColor &color) |
| void | setAgendaGridWorkHoursBackgroundColor(const QColor &color) |
| void | setAgendaHolidaysBackgroundColor(const QColor &color) const |
| void | setAgendaMarcusBainsLineFont(const QFont &font) |
| void | setAgendaMarcusBainsLineLineColor(const QColor &color) |
| void | setAgendaTimeLabelsFont(const QFont &font) |
| void | setAgendaViewBackgroundColor(const QColor &color) |
| void | setAgendaViewColors(int colors) |
| void | setAgendaViewFont(const QFont &font) |
| void | setAgendaViewIcons(const QSet<EventViews::EventView::ItemIcon> &icons) |
| void | setColorAgendaBusyDays(bool enable) |
| void | setColorMonthBusyDays(bool enable) |
| void | setDayBegins(const QDateTime &dateTime) |
| void | setDecorationsAtAgendaViewBottom(const QStringList &) |
| void | setDecorationsAtAgendaViewTop(const QStringList &) |
| void | setEnableAgendaItemDesc(bool enable) |
| void | setEnableAgendaItemIcons(bool enable) |
| void | setEnableMonthItemIcons(bool enable) |
| void | setEnableQuickTodo(bool enable) |
| void | setEnableTodoQuickSearch(bool enable) |
| void | setEnableToolTips(bool enable) |
| void | setFirstDayOfWeek(const int day) |
| void | setFlatListTodo(bool) |
| void | setFullViewMonth(bool fullView) |
| void | setFullViewTodo(bool) |
| void | setHighlightTodos(bool) |
| void | setHolidayColor(const QColor &color) |
| void | setHourSize(int size) |
| void | setMarcusBainsEnabled(bool enabled) |
| void | setMarcusBainsShowSeconds(bool showSeconds) |
| void | setMonthGridBackgroundColor(const QColor &color) |
| void | setMonthTodayColor(const QColor &color) |
| void | setMonthViewColors(int colors) const |
| void | setMonthViewFont(const QFont &font) |
| void | setMonthViewIcons(const QSet<EventViews::EventView::ItemIcon> &icons) |
| void | setResourceColor(const QString &, const QColor &) |
| void | setSelectedPlugins(const QStringList &) |
| void | setSelectionStartsEditor(bool startEditor) |
| void | setShowJournalsMonthView(bool show) |
| void | setShowTimeInMonthView(bool show) |
| void | setShowTodosAgendaView(bool show) |
| void | setShowTodosMonthView(bool show) |
| void | setSortCompletedTodosSeparately(bool enable) |
| void | setTimeScaleTimezones(const QStringList &timeZones) |
| void | setTodoDueTodayColor(const QColor &color) |
| void | setTodoOverdueColor(const QColor &color) |
| void | setTodosUseCategoryColors(bool useColors) |
| void | setUse24HourClock(bool) |
| void | setUseDualLabels(bool) |
| void | setUseSystemColor(bool useSystemColor) |
| void | setViewBgBusyColor(const QColor &) |
| void | setWorkingHoursColor(const QColor &color) |
| void | setWorkingHoursEnd(const QDateTime &dateTime) |
| void | setWorkingHoursStart(const QDateTime &dateTime) |
| bool | showJournalsMonthView() const |
| bool | showTimeInMonthView() const |
| bool | showTodosAgendaView() const |
| bool | showTodosMonthView() const |
| bool | sortCompletedTodosSeparately() const |
| QStringList | timeScaleTimezones() const |
| QTimeZone | timeZone() const |
| QColor | todoDueTodayColor() const |
| QColor | todoOverdueColor() const |
| bool | todosUseCategoryColors() const |
| bool | use24HourClock() const |
| bool | useDualLabels() const |
| bool | useSystemColor() const |
| QColor | viewBgBusyColor() const |
| QColor | workingHoursColor() const |
| QDateTime | workingHoursEnd() const |
| QDateTime | workingHoursStart() const |
| void | writeConfig() |
Detailed Description
Member Function Documentation
Prefs::Prefs()
Creates an instance of Prefs with just base config
[explicit] Prefs::Prefs(KCoreConfigSkeleton *appConfig)
Creates an instance of Prefs with base config and application override config
The passed appConfig will be queried for matching items whenever one of the accessors is called. If one is found it is used for setting/getting the value otherwise the one from the eventviews base config is used.
[noexcept] Prefs::~Prefs()
QColor Prefs::agendaGridBackgroundColor() const
See also setAgendaGridBackgroundColor().
QColor Prefs::agendaGridHighlightColor() const
See also setAgendaGridHighlightColor().
QColor Prefs::agendaGridWorkHoursBackgroundColor() const
See also setAgendaGridWorkHoursBackgroundColor().
QColor Prefs::agendaHolidaysBackgroundColor() const
See also setAgendaHolidaysBackgroundColor().
QFont Prefs::agendaMarcusBainsLineFont() const
See also setAgendaMarcusBainsLineFont().
QColor Prefs::agendaMarcusBainsLineLineColor() const
See also setAgendaMarcusBainsLineLineColor().
QFont Prefs::agendaTimeLabelsFont() const
See also setAgendaTimeLabelsFont().
QColor Prefs::agendaViewBackgroundColor() const
See also setAgendaViewBackgroundColor().
int Prefs::agendaViewColors() const
See also setAgendaViewColors().
QFont Prefs::agendaViewFont() const
See also setAgendaViewFont().
QSet<EventViews::EventView::ItemIcon> Prefs::agendaViewIcons() const
See also setAgendaViewIcons().
bool Prefs::colorAgendaBusyDays() const
See also setColorAgendaBusyDays().
bool Prefs::colorMonthBusyDays() const
See also setColorMonthBusyDays().
KConfig *Prefs::config() const
QDateTime Prefs::dayBegins() const
See also setDayBegins().
QStringList Prefs::decorationsAtAgendaViewBottom() const
See also setDecorationsAtAgendaViewBottom().
QStringList Prefs::decorationsAtAgendaViewTop() const
See also setDecorationsAtAgendaViewTop().
bool Prefs::enableAgendaItemDesc() const
See also setEnableAgendaItemDesc().
bool Prefs::enableAgendaItemIcons() const
See also setEnableAgendaItemIcons().
bool Prefs::enableMonthItemIcons() const
See also setEnableMonthItemIcons().
bool Prefs::enableQuickTodo() const
See also setEnableQuickTodo().
bool Prefs::enableTodoQuickSearch() const
See also setEnableTodoQuickSearch().
bool Prefs::enableToolTips() const
See also setEnableToolTips().
int Prefs::firstDayOfWeek() const
See also setFirstDayOfWeek().
bool Prefs::flatListTodo() const
See also setFlatListTodo().
KConfigSkeleton::ItemFont *Prefs::fontItem(const QString &name) const
bool Prefs::fullViewMonth() const
See also setFullViewMonth().
bool Prefs::fullViewTodo() const
See also setFullViewTodo().
bool Prefs::highlightTodos() const
See also setHighlightTodos().
QColor Prefs::holidayColor() const
See also setHolidayColor().
int Prefs::hourSize() const
See also setHourSize().
bool Prefs::marcusBainsEnabled() const
See also setMarcusBainsEnabled().
bool Prefs::marcusBainsShowSeconds() const
See also setMarcusBainsShowSeconds().
QColor Prefs::monthGridBackgroundColor() const
See also setMonthGridBackgroundColor().
QColor Prefs::monthGridWorkHoursBackgroundColor() const
void Prefs::monthGridWorkHoursBackgroundColor(const QColor &color)
QColor Prefs::monthTodayColor() const
See also setMonthTodayColor().
int Prefs::monthViewColors() const
See also setMonthViewColors().
QFont Prefs::monthViewFont() const
See also setMonthViewFont().
QSet<EventViews::EventView::ItemIcon> Prefs::monthViewIcons() const
See also setMonthViewIcons().
void Prefs::readConfig()
QColor Prefs::resourceColor(const QString &)
See also setResourceColor().
QColor Prefs::resourceColorKnown(const QString &) const
QStringList Prefs::selectedPlugins() const
See also setSelectedPlugins().
bool Prefs::selectionStartsEditor() const
See also setSelectionStartsEditor().
void Prefs::setAgendaGridBackgroundColor(const QColor &color)
See also agendaGridBackgroundColor().
void Prefs::setAgendaGridHighlightColor(const QColor &color)
See also agendaGridHighlightColor().
void Prefs::setAgendaGridWorkHoursBackgroundColor(const QColor &color)
See also agendaGridWorkHoursBackgroundColor().
void Prefs::setAgendaHolidaysBackgroundColor(const QColor &color) const
See also agendaHolidaysBackgroundColor().
void Prefs::setAgendaMarcusBainsLineFont(const QFont &font)
See also agendaMarcusBainsLineFont().
void Prefs::setAgendaMarcusBainsLineLineColor(const QColor &color)
See also agendaMarcusBainsLineLineColor().
void Prefs::setAgendaTimeLabelsFont(const QFont &font)
See also agendaTimeLabelsFont().
void Prefs::setAgendaViewBackgroundColor(const QColor &color)
See also agendaViewBackgroundColor().
void Prefs::setAgendaViewColors(int colors)
See also agendaViewColors().
void Prefs::setAgendaViewFont(const QFont &font)
See also agendaViewFont().
void Prefs::setAgendaViewIcons(const QSet<EventViews::EventView::ItemIcon> &icons)
See also agendaViewIcons().
void Prefs::setColorAgendaBusyDays(bool enable)
See also colorAgendaBusyDays().
void Prefs::setColorMonthBusyDays(bool enable)
See also colorMonthBusyDays().
void Prefs::setDayBegins(const QDateTime &dateTime)
See also dayBegins().
void Prefs::setDecorationsAtAgendaViewBottom(const QStringList &)
See also decorationsAtAgendaViewBottom().
void Prefs::setDecorationsAtAgendaViewTop(const QStringList &)
See also decorationsAtAgendaViewTop().
void Prefs::setEnableAgendaItemDesc(bool enable)
See also enableAgendaItemDesc().
void Prefs::setEnableAgendaItemIcons(bool enable)
See also enableAgendaItemIcons().
void Prefs::setEnableMonthItemIcons(bool enable)
See also enableMonthItemIcons().
void Prefs::setEnableQuickTodo(bool enable)
See also enableQuickTodo().
void Prefs::setEnableTodoQuickSearch(bool enable)
See also enableTodoQuickSearch().
void Prefs::setEnableToolTips(bool enable)
See also enableToolTips().
void Prefs::setFirstDayOfWeek(const int day)
See also firstDayOfWeek().
void Prefs::setFlatListTodo(bool)
See also flatListTodo().
void Prefs::setFullViewMonth(bool fullView)
See also fullViewMonth().
void Prefs::setFullViewTodo(bool)
See also fullViewTodo().
void Prefs::setHighlightTodos(bool)
See also highlightTodos().
void Prefs::setHolidayColor(const QColor &color)
See also holidayColor().
void Prefs::setHourSize(int size)
See also hourSize().
void Prefs::setMarcusBainsEnabled(bool enabled)
See also marcusBainsEnabled().
void Prefs::setMarcusBainsShowSeconds(bool showSeconds)
See also marcusBainsShowSeconds().
void Prefs::setMonthGridBackgroundColor(const QColor &color)
See also monthGridBackgroundColor().
void Prefs::setMonthTodayColor(const QColor &color)
See also monthTodayColor().
void Prefs::setMonthViewColors(int colors) const
See also monthViewColors().
void Prefs::setMonthViewFont(const QFont &font)
See also monthViewFont().
void Prefs::setMonthViewIcons(const QSet<EventViews::EventView::ItemIcon> &icons)
See also monthViewIcons().
void Prefs::setResourceColor(const QString &, const QColor &)
See also resourceColor().
void Prefs::setSelectedPlugins(const QStringList &)
See also selectedPlugins().
void Prefs::setSelectionStartsEditor(bool startEditor)
See also selectionStartsEditor().
void Prefs::setShowJournalsMonthView(bool show)
See also showJournalsMonthView().
void Prefs::setShowTimeInMonthView(bool show)
See also showTimeInMonthView().
void Prefs::setShowTodosAgendaView(bool show)
See also showTodosAgendaView().
void Prefs::setShowTodosMonthView(bool show)
See also showTodosMonthView().
void Prefs::setSortCompletedTodosSeparately(bool enable)
See also sortCompletedTodosSeparately().
void Prefs::setTimeScaleTimezones(const QStringList &timeZones)
See also timeScaleTimezones().
void Prefs::setTodoDueTodayColor(const QColor &color)
See also todoDueTodayColor().
void Prefs::setTodoOverdueColor(const QColor &color)
See also todoOverdueColor().
void Prefs::setTodosUseCategoryColors(bool useColors)
See also todosUseCategoryColors().
void Prefs::setUse24HourClock(bool)
See also use24HourClock().
void Prefs::setUseDualLabels(bool)
See also useDualLabels().
void Prefs::setUseSystemColor(bool useSystemColor)
See also useSystemColor().
void Prefs::setViewBgBusyColor(const QColor &)
See also viewBgBusyColor().
void Prefs::setWorkingHoursColor(const QColor &color)
See also workingHoursColor().
void Prefs::setWorkingHoursEnd(const QDateTime &dateTime)
See also workingHoursEnd().
void Prefs::setWorkingHoursStart(const QDateTime &dateTime)
See also workingHoursStart().
bool Prefs::showJournalsMonthView() const
See also setShowJournalsMonthView().
bool Prefs::showTimeInMonthView() const
See also setShowTimeInMonthView().
bool Prefs::showTodosAgendaView() const
See also setShowTodosAgendaView().
bool Prefs::showTodosMonthView() const
See also setShowTodosMonthView().
bool Prefs::sortCompletedTodosSeparately() const
See also setSortCompletedTodosSeparately().
QStringList Prefs::timeScaleTimezones() const
See also setTimeScaleTimezones().
QTimeZone Prefs::timeZone() const
QColor Prefs::todoDueTodayColor() const
See also setTodoDueTodayColor().
QColor Prefs::todoOverdueColor() const
See also setTodoOverdueColor().
bool Prefs::todosUseCategoryColors() const
See also setTodosUseCategoryColors().
bool Prefs::use24HourClock() const
See also setUse24HourClock().
bool Prefs::useDualLabels() const
See also setUseDualLabels().
bool Prefs::useSystemColor() const
See also setUseSystemColor().
QColor Prefs::viewBgBusyColor() const
See also setViewBgBusyColor().
QColor Prefs::workingHoursColor() const
See also setWorkingHoursColor().
QDateTime Prefs::workingHoursEnd() const
See also setWorkingHoursEnd().
QDateTime Prefs::workingHoursStart() const
See also setWorkingHoursStart().