kstars
#include <moonphasecalendarwidget.h>

Public Slots | |
virtual void | setGeometry (int x, int y, int w, int h) |
virtual void | setGeometry (const QRect &r) |
Public Member Functions | |
MoonPhaseCalendar (KSMoon &moon, KSSun &sun, QWidget *parent=0) | |
~MoonPhaseCalendar () | |
virtual QSize | sizeHint () const |
Protected Member Functions | |
void | computeMoonImageSize () |
void | loadImages () |
void | paintCell (QPainter *painter, int row, int col, const KColorScheme &colorScheme) |
virtual void | paintEvent (QPaintEvent *e) |
Detailed Description
Definition at line 28 of file moonphasecalendarwidget.h.
Constructor & Destructor Documentation
Constructor.
- Parameters
-
moon A reference to a (non-const) KSMoon object, that will be updated sun A reference to a (non-const) KSSun object, that will be updated
Definition at line 41 of file moonphasecalendarwidget.cpp.
MoonPhaseCalendar::~MoonPhaseCalendar | ( | ) |
Definition at line 52 of file moonphasecalendarwidget.cpp.
Member Function Documentation
|
protected |
Computes the optimum moon image size.
Definition at line 73 of file moonphasecalendarwidget.cpp.
|
protected |
Loads the moon images, appropriately resized depending on the current cell size.
- Note
- This method is very slow and one must avoid calling it more than once.
Definition at line 61 of file moonphasecalendarwidget.cpp.
|
protected |
Replaces KDateTable::paintCell() to draw moon phases on the calendar cells.
- Note
- Most of this code is copied from KDateTable::paintCell()
Definition at line 115 of file moonphasecalendarwidget.cpp.
|
protectedvirtual |
Overrides KDateTable::paintEvent() to draw moon phases on the calendar cells by calling this->paintCell()
- Note
- Most of this code is copied from KDateTable::paintEvent()
Definition at line 89 of file moonphasecalendarwidget.cpp.
|
virtualslot |
Set the geometry of the moon phase calendar (overloaded from QWidget).
Resizes the cells so as to fill the space of the calendar.
- Note
- This is called automatically by resize events.
x
the x-position of the widgety
the y-position of the widgetw
the width of the widgeth
the height of the widget
Definition at line 80 of file moonphasecalendarwidget.cpp.
|
virtualslot |
Definition at line 84 of file moonphasecalendarwidget.cpp.
|
virtual |
- Returns
- a suggested size for the widget
Definition at line 55 of file moonphasecalendarwidget.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.