27 #ifndef DIGIKAM_CAL_SETTINGS_H
28 #define DIGIKAM_CAL_SETTINGS_H
45 #include "digikam_config.h"
50 typedef QPair<QColor, QString>
Day;
90 void setImage(
int month,
const QUrl& url);
91 QUrl
image(
int month)
const;
100 #ifdef HAVE_KCALENDAR
102 void loadSpecial(
const QUrl& url,
const QColor& color);
123 void setFont(
const QString& font);
138 static QPointer<CalSettings> s_instance;
Definition: calsettings.h:81
void setDrawLines(bool draw)
Definition: calsettings.cpp:190
static CalSettings * instance(QObject *const parent=nullptr)
Definition: calsettings.cpp:83
bool isPrayDay(const QDate &date) const
Definition: calsettings.cpp:234
bool isSpecial(int month, int day) const
Definition: calsettings.cpp:242
CalParams params
Definition: calsettings.h:110
QPrinter::PrinterMode resolution() const
Definition: calsettings.cpp:288
int year() const
Definition: calsettings.cpp:100
QColor getDayColor(int month, int day) const
Definition: calsettings.cpp:252
void setYear(int year)
Definition: calsettings.cpp:93
void setFont(const QString &font)
Definition: calsettings.cpp:208
~CalSettings() override
Definition: calsettings.cpp:78
void addSpecial(const QDate &date, const Day &info)
Definition: calsettings.cpp:222
void setImage(int month, const QUrl &url)
Definition: calsettings.cpp:105
QUrl image(int month) const
Definition: calsettings.cpp:110
void setRatio(int ratio)
Definition: calsettings.cpp:199
void clearSpecial()
Definition: calsettings.cpp:217
QString getDayDescr(int month, int day) const
Definition: calsettings.cpp:274
void setImagePos(int pos)
Definition: calsettings.cpp:147
void setResolution(const QString &resolution)
Definition: calsettings.cpp:133
void setPaperSize(const QString &paperSize)
Definition: calsettings.cpp:115
Definition: calendarplugin.cpp:38
QPair< QColor, QString > Day
Definition: calsettings.h:50
Definition: calsettings.h:53
ItemPosition
Definition: calsettings.h:57
@ Right
Definition: calsettings.h:60
@ Left
Definition: calsettings.h:59
@ Top
Definition: calsettings.h:58
int paperWidth
Definition: calsettings.h:67
int width
Definition: calsettings.h:69
QPrinter::PrinterMode printResolution
Definition: calsettings.h:66
bool drawLines
Definition: calsettings.h:71
QPageSize::PageSizeId pageSize
Definition: calsettings.h:65
float ratio
Definition: calsettings.h:72
int height
Definition: calsettings.h:70
QFont baseFont
Definition: calsettings.h:74
int paperHeight
Definition: calsettings.h:68
ItemPosition imgPos
Definition: calsettings.h:73
int year
Definition: calsettings.h:75