kodaymatrix.h
small helper class to dynamically show tooltips inside the day matrix.
Definition: kodaymatrix.h:57
void maybeTip(const TQPoint &pos)
TQt's callback to ask the object to provide an approrpiate text for the tooltip to be shown.
Definition: kodaymatrix.cpp:74
DynamicTip(TQWidget *parent)
Constructor that expects a KODayMatrix object as parent.
Definition: kodaymatrix.cpp:67
Replacement for kdpdatebuton.cpp that used 42 widgets for the day matrix to be displayed.
Definition: kodaymatrix.h:106
void selected(const KCal::DateList &daylist)
emitted if the user selects a block of days with the mouse by dragging a rectangle inside the matrix
void updateView()
Recalculates all the flags of the days in the matrix like holidays or events on a day (Actually calls...
Definition: kodaymatrix.cpp:226
void incidenceDropped(Incidence *incidence, const TQDate &dt)
emitted if the user has dropped an incidence (event or todo) inside the matrix
void setCalendar(Calendar *)
Associate a calendar with this day matrix.
Definition: kodaymatrix.cpp:117
bool isTodayVisible() const
Is today visible in the view? Keep this in sync with the values today (below) can take.
Definition: kodaymatrix.h:177
~KODayMatrix()
destructor that deallocates all dynamically allocated private members.
Definition: kodaymatrix.cpp:152
static TQPair< TQDate, TQDate > matrixLimits(const TQDate &month)
returns the first and last date of the 6*7 matrix that displays month
Definition: kodaymatrix.cpp:713
void setSelectedDaysFrom(const TQDate &start, const TQDate &end)
sets the actual to be displayed selection in the day matrix starting from start and ending with end.
Definition: kodaymatrix.cpp:195
TQString getHolidayLabel(int offset)
returns the official name of this holy day or 0 if there is no label for this day.
Definition: kodaymatrix.cpp:329
void incidenceDroppedMove(Incidence *oldincidence, const TQDate &dt)
emitted if the user has dropped an event inside the matrix and chose to move it instead of copy
void addSelectedDaysTo(DateList &)
adds all actual selected days from mSelStart to mSelEnd to the supplied DateList.
Definition: kodaymatrix.cpp:162
bool isBeginningOfMonth() const
If today is visible, then we can find out if today is near the beginning or the end of the month.
Definition: kodaymatrix.h:185
const TQDate & getDate(int offset)
returns the TQDate object associated with day indexed by the supplied offset.
Definition: kodaymatrix.cpp:320
void recalculateToday()
Calculate which square in the matrix should be hilighted to indicate it's today.
Definition: kodaymatrix.cpp:208
KODayMatrix(TQWidget *parent, const char *name)
constructor to create a day matrix widget.
Definition: kodaymatrix.cpp:102