digiKam
DigikamGenericCalendarPlugin::CalSettings Class Reference
+ Inheritance diagram for DigikamGenericCalendarPlugin::CalSettings:

Public Slots

void setDrawLines (bool draw)
 
void setFont (const QString &font)
 
void setImagePos (int pos)
 
void setPaperSize (const QString &paperSize)
 
void setRatio (int ratio)
 
void setResolution (const QString &resolution)
 

Signals

void settingsChanged ()
 

Public Member Functions

void addSpecial (const QDate &date, const Day &info)
 
void clearSpecial ()
 
QColor getDayColor (int month, int day) const
 
QString getDayDescr (int month, int day) const
 
QUrl image (int month) const
 
bool isSpecial (int month, int day) const
 
QPrinter::PrinterMode resolution () const
 
void setImage (int month, const QUrl &url)
 
void setYear (int year)
 
int year () const
 
 ~CalSettings () override
 

Static Public Member Functions

static CalSettingsinstance (QObject *const parent=nullptr)
 

Public Attributes

CalParams params
 

Protected Member Functions

bool isPrayDay (const QDate &date) const
 

Constructor & Destructor Documentation

◆ ~CalSettings()

DigikamGenericCalendarPlugin::CalSettings::~CalSettings ( )
override

Member Function Documentation

◆ addSpecial()

void DigikamGenericCalendarPlugin::CalSettings::addSpecial ( const QDate &  date,
const Day info 
)

◆ clearSpecial()

void DigikamGenericCalendarPlugin::CalSettings::clearSpecial ( )

◆ getDayColor()

QColor DigikamGenericCalendarPlugin::CalSettings::getDayColor ( int  month,
int  day 
) const
Returns
the color to be used for painting of the day info

References DigikamGenericCalendarPlugin::CalSystem::date().

Referenced by DigikamGenericCalendarPlugin::CalPainter::paint().

◆ getDayDescr()

QString DigikamGenericCalendarPlugin::CalSettings::getDayDescr ( int  month,
int  day 
) const
Returns
the description of the day to be painted on the calendar.

References DigikamGenericCalendarPlugin::CalSystem::date().

Referenced by DigikamGenericCalendarPlugin::CalPainter::paint().

◆ image()

QUrl DigikamGenericCalendarPlugin::CalSettings::image ( int  month) const

◆ instance()

◆ isPrayDay()

bool DigikamGenericCalendarPlugin::CalSettings::isPrayDay ( const QDate &  date) const
protected

◆ isSpecial()

bool DigikamGenericCalendarPlugin::CalSettings::isSpecial ( int  month,
int  day 
) const
Returns
true if d->special formatting is to be applied to the particular day

References DigikamGenericCalendarPlugin::CalSystem::date().

Referenced by DigikamGenericCalendarPlugin::CalPainter::paint().

◆ resolution()

QPrinter::PrinterMode DigikamGenericCalendarPlugin::CalSettings::resolution ( ) const

◆ setDrawLines

void DigikamGenericCalendarPlugin::CalSettings::setDrawLines ( bool  draw)
slot

◆ setFont

void DigikamGenericCalendarPlugin::CalSettings::setFont ( const QString &  font)
slot

◆ setImage()

void DigikamGenericCalendarPlugin::CalSettings::setImage ( int  month,
const QUrl &  url 
)

◆ setImagePos

void DigikamGenericCalendarPlugin::CalSettings::setImagePos ( int  pos)
slot

◆ setPaperSize

void DigikamGenericCalendarPlugin::CalSettings::setPaperSize ( const QString &  paperSize)
slot

◆ setRatio

void DigikamGenericCalendarPlugin::CalSettings::setRatio ( int  ratio)
slot

◆ setResolution

void DigikamGenericCalendarPlugin::CalSettings::setResolution ( const QString &  resolution)
slot

◆ settingsChanged

void DigikamGenericCalendarPlugin::CalSettings::settingsChanged ( )
signal

◆ setYear()

void DigikamGenericCalendarPlugin::CalSettings::setYear ( int  year)

◆ year()

int DigikamGenericCalendarPlugin::CalSettings::year ( ) const

Member Data Documentation

◆ params

CalParams DigikamGenericCalendarPlugin::CalSettings::params

The documentation for this class was generated from the following files: