kdatetbl.cpp
237 TQColor titleColor(isEnabled()?( TDEGlobalSettings::activeTitleColor() ):( TDEGlobalSettings::inactiveTitleColor() ) );
238 TQColor textColor(isEnabled()?( TDEGlobalSettings::activeTextColor() ):( TDEGlobalSettings::inactiveTextColor() ) );
269 // TODO: don't hardcode gray here! Use a color with less contrast to the background than normal text.
586 void KDateTable::setCustomDatePainting(const TQDate &date, const TQColor &fgColor, BackgroundMode bgMode, const TQColor &bgColor)
700 viewport()->setEraseColor(TDEGlobalSettings::baseColor()); // for consistency with the datepicker
virtual bool setYMD(TQDate &date, int y, int m, int d) const=0
static TQColor baseColor()
BeginningOfLine
KDateTable(TQWidget *parent=0, TQDate date=TQDate::currentDate(), const char *name=0, WFlags f=0)
The constructor.
Definition: kdatetbl.cpp:117
TQString name(StdAccel id)
virtual void viewportResizeEvent(TQResizeEvent *)
Handle the resize events.
Definition: kdatetbl.cpp:415
virtual void contentsMousePressEvent(TQMouseEvent *e)
Catch mouse click and move events to paint a rectangle around the item.
Definition: kdatetbl.cpp:757
virtual void contentsMousePressEvent(TQMouseEvent *)
React on mouse clicks that select a date.
Definition: kdatetbl.cpp:455
TQDate readDate(const TQString &str, bool *ok=0) const
virtual TQString dayString(const TQDate &pDate, bool bShort) const
TQDate dateFromPos(int pos)
calculate the date that is displayed at a given cell in the matrix.
Definition: kdatetbl.cpp:182
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
virtual TQDate addDays(const TQDate &date, int ndays) const=0
kndbgstream & endl(kndbgstream &s)
const KCalendarSystem * calendar() const
static TQFont generalFont()
virtual int weekDayOfPray() const=0
static TQColor textColor()
virtual int day(const TQDate &date) const=0
virtual int month(const TQDate &date) const=0
static TQColor activeTextColor()
static TQColor inactiveTextColor()
kdbgstream kdDebug(int area=0)
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...
virtual TQDate addMonths(const TQDate &date, int nmonths) const=0
bool readSettings(TDEConfigBase *pConfig=0)
void setPopupMenuEnabled(bool enable)
Enables a popup menu when right clicking on a date.
Definition: kdatetbl.cpp:576
virtual TQString weekDayName(int weekDay, bool shortName=false) const=0
static TQRect desktopGeometry(const TQPoint &point)
virtual TQString monthName(int month, int year, bool shortName=false) const=0
TDEAccelAction * insert(const TQString &sAction, const TQString &sLabel, const TQString &sWhatsThis, const TDEShortcut &cutDef, const TQObject *pObjSlot, const char *psMethodSlot, bool bConfigurable=true, bool bEnabled=true)
int insertTitle(const TQString &text, int id=-1, int index=-1)
Inserts a title item with no icon.
Definition: tdepopupmenu.cpp:181
virtual TQSize sizeHint() const
Returns a recommended size for the widget.
Definition: kdatetbl.cpp:564
virtual TQString calendarName() const=0
virtual void paintCell(TQPainter *painter, int row, int col)
Paint a cell.
Definition: kdatetbl.cpp:742
EndOfLine
static TDELocale * locale()
static TQColor inactiveTitleColor()
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 weekStartDay() const
int posFromDate(const TQDate &date)
calculate the position of the cell in the matrix for the given date.
Definition: kdatetbl.cpp:170
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
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
static TQColor activeTitleColor()
virtual int daysInMonth(const TQDate &date) const=0
virtual int year(const TQDate &date) const=0
void beep(const TQString &reason=TQString::null)