kdatetbl.h
329 void setCustomDatePainting( const TQDate &date, const TQColor &fgColor, BackgroundMode bgMode=NoBgMode, const TQColor &bgColor=TQColor());
342 int posFromDate( const TQDate &date ); // KDE4: make this virtual, so subclasses can reimplement this and use a different default for the start of the matrix
virtual void contentsMousePressEvent(TQMouseEvent *e)
Catch mouse click and move events to paint a rectangle around the item.
Definition kdatetbl.cpp:757
virtual void paintCell(TQPainter *painter, int row, int col)
Paint a cell.
Definition kdatetbl.cpp:742
KDateInternalMonthPicker(const TQDate &date, TQWidget *parent, const char *name=0)
The constructor.
Definition kdatetbl.cpp:680
virtual void contentsMouseReleaseEvent(TQMouseEvent *e)
Emit monthSelected(int) when a cell has been released.
Definition kdatetbl.cpp:824
virtual void viewportResizeEvent(TQResizeEvent *)
Handle the resize events.
Definition kdatetbl.cpp:415
virtual void contentsMousePressEvent(TQMouseEvent *)
React on mouse clicks that select a date.
Definition kdatetbl.cpp:455
void setPopupMenuEnabled(bool enable)
Enables a popup menu when right clicking on a date.
Definition kdatetbl.cpp:576
void unsetCustomDatePainting(const TQDate &date)
Unsets the custom painting of a date so that the date is painted as usual.
Definition kdatetbl.cpp:604
int posFromDate(const TQDate &date)
calculate the position of the cell in the matrix for the given date.
Definition kdatetbl.cpp:170
KDateTable(TQWidget *parent=0, TQDate date=TQDate::currentDate(), const char *name=0, WFlags f=0)
The constructor.
Definition kdatetbl.cpp:117
virtual void paintEmptyArea(TQPainter *, int, int, int, int)
Paint the empty area (background).
Definition kdatetbl.cpp:198
bool popupMenuEnabled() const
Returns if the popup menu is enabled or not.
Definition kdatetbl.cpp:581
void setCustomDatePainting(const TQDate &date, const TQColor &fgColor, BackgroundMode bgMode=NoBgMode, const TQColor &bgColor=TQColor())
Makes a given date be painted with a given foregroundColor, and background (a rectangle,...
Definition kdatetbl.cpp:586
virtual TQSize sizeHint() const
Returns a recommended size for the widget.
Definition kdatetbl.cpp:564
TQDate dateFromPos(int pos)
calculate the date that is displayed at a given cell in the matrix.
Definition kdatetbl.cpp:182
void aboutToShowContextMenu(TDEPopupMenu *menu, const TQDate &date)
A popup menu for a given date is about to be shown (as when the user right clicks on that date and th...
void dateChanged(const TQDate &cur, const TQDate &old)
This function behaves essentially like the one above.
Trinity API Reference