summaryrefslogtreecommitdiffstats
path: root/korganizer/komonthview.h
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/komonthview.h')
-rw-r--r--korganizer/komonthview.h112
1 files changed, 56 insertions, 56 deletions
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h
index 44e36b05..9a3015d0 100644
--- a/korganizer/komonthview.h
+++ b/korganizer/komonthview.h
@@ -26,9 +26,9 @@
#ifndef _KOMONTHVIEW_H
#define _KOMONTHVIEW_H
-#include <qlistbox.h>
-#include <qptrvector.h>
-#include <qtooltip.h>
+#include <tqlistbox.h>
+#include <tqptrvector.h>
+#include <tqtooltip.h>
#include "koeventview.h"
class KNoScrollListBox;
@@ -36,10 +36,10 @@ class KNoScrollListBox;
class KOMonthCellToolTip : public QToolTip
{
public:
- KOMonthCellToolTip (QWidget* parent, KNoScrollListBox* lv );
+ KOMonthCellToolTip (TQWidget* parent, KNoScrollListBox* lv );
protected:
- void maybeTip( const QPoint & pos);
+ void maybeTip( const TQPoint & pos);
private:
KNoScrollListBox* eventlist;
@@ -50,7 +50,7 @@ class KNoScrollListBox: public QListBox
{
Q_OBJECT
public:
- KNoScrollListBox(QWidget *parent=0, const char *name=0);
+ KNoScrollListBox(TQWidget *parent=0, const char *name=0);
~KNoScrollListBox() {}
void setBackground( bool primary, bool workday );
@@ -61,11 +61,11 @@ class KNoScrollListBox: public QListBox
void rightClick();
protected slots:
- void keyPressEvent(QKeyEvent *);
- void keyReleaseEvent(QKeyEvent *);
- void mousePressEvent(QMouseEvent *);
- void resizeEvent(QResizeEvent *);
- void contentsMouseDoubleClickEvent( QMouseEvent * e );
+ void keyPressEvent(TQKeyEvent *);
+ void keyReleaseEvent(TQKeyEvent *);
+ void mousePressEvent(TQMouseEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void contentsMouseDoubleClickEvent( TQMouseEvent * e );
private:
bool mSqueezing;
@@ -75,7 +75,7 @@ class KNoScrollListBox: public QListBox
class MonthViewItem: public QListBoxItem
{
public:
- MonthViewItem( Incidence *, const QDateTime &qd, const QString & title );
+ MonthViewItem( Incidence *, const TQDateTime &qd, const TQString & title );
void setEvent(bool on) { mEvent = on; }
void setTodo(bool on) { mTodo = on; }
@@ -84,20 +84,20 @@ class MonthViewItem: public QListBoxItem
void setAlarm(bool on) { mAlarm = on; }
void setReply(bool on) { mReply = on; }
- void setPalette(const QPalette &p) { mPalette = p; }
- QPalette palette() const { return mPalette; }
+ void setPalette(const TQPalette &p) { mPalette = p; }
+ TQPalette palette() const { return mPalette; }
Incidence *incidence() const { return mIncidence; }
- QDateTime incidenceDateTime() { return mDateTime; }
+ TQDateTime incidenceDateTime() { return mDateTime; }
- void setResourceColor( QColor& color ) { mResourceColor = color; }
- QColor &resourceColor() { return mResourceColor; }
+ void setResourceColor( TQColor& color ) { mResourceColor = color; }
+ TQColor &resourceColor() { return mResourceColor; }
protected:
- virtual void paint(QPainter *);
- virtual int height(const QListBox *) const;
- virtual int width(const QListBox *) const;
+ virtual void paint(TQPainter *);
+ virtual int height(const TQListBox *) const;
+ virtual int width(const TQListBox *) const;
//Color of the resource
- QColor mResourceColor;
+ TQColor mResourceColor;
private:
bool mEvent;
bool mTodo;
@@ -106,15 +106,15 @@ class MonthViewItem: public QListBoxItem
bool mAlarm;
bool mReply;
- QPixmap mEventPixmap;
- QPixmap mTodoPixmap;
- QPixmap mTodoDonePixmap;
- QPixmap mAlarmPixmap;
- QPixmap mRecurPixmap;
- QPixmap mReplyPixmap;
+ TQPixmap mEventPixmap;
+ TQPixmap mTodoPixmap;
+ TQPixmap mTodoDonePixmap;
+ TQPixmap mAlarmPixmap;
+ TQPixmap mRecurPixmap;
+ TQPixmap mReplyPixmap;
- QPalette mPalette;
- QDateTime mDateTime;
+ TQPalette mPalette;
+ TQDateTime mDateTime;
Incidence *mIncidence;
};
@@ -134,9 +134,9 @@ class MonthViewCell : public QWidget
MonthViewCell( KOMonthView * );
/** Sets the date of the cell */
- void setDate( const QDate & );
+ void setDate( const TQDate & );
/** @return Date of cell */
- QDate date() const;
+ TQDate date() const;
/**
Set this cell as primary if @p primary is true. A primary cell belongs
@@ -158,7 +158,7 @@ class MonthViewCell : public QWidget
setHoliday( true ).
@param name The name of the holiday.
*/
- void setHolidayString( const QString &name );
+ void setHolidayString( const TQString &name );
void updateCell();
/** Adds an incidence to the cell.
@@ -180,7 +180,7 @@ class MonthViewCell : public QWidget
void enableScrollBars( bool );
Incidence *selectedIncidence();
- QDate selectedIncidenceDate();
+ TQDate selectedIncidenceDate();
void deselect();
@@ -192,37 +192,37 @@ class MonthViewCell : public QWidget
will pop up.
@param date The date of the event we want create.
*/
- void newEventSignal( const QDate &date );
+ void newEventSignal( const TQDate &date );
public slots:
void select();
protected:
void setFrameWidth();
- void resizeEvent( QResizeEvent * );
+ void resizeEvent( TQResizeEvent * );
protected slots:
- void defaultAction( QListBoxItem * );
- void contextMenu( QListBoxItem * );
+ void defaultAction( TQListBoxItem * );
+ void contextMenu( TQListBoxItem * );
private:
KOMonthView *mMonthView;
// We need the calendar for paint the ResourceColor
Calendar *mCalendar;
- QDate mDate;
+ TQDate mDate;
bool mPrimary;
bool mHoliday;
- QString mHolidayString;
+ TQString mHolidayString;
- QLabel *mLabel;
+ TQLabel *mLabel;
KNoScrollListBox *mItemList;
- QSize mLabelSize;
-// QPalette mOriginalPalette;
- QPalette mHolidayPalette;
- QPalette mStandardPalette;
- QPalette mTodayPalette;
+ TQSize mLabelSize;
+// TQPalette mOriginalPalette;
+ TQPalette mHolidayPalette;
+ TQPalette mStandardPalette;
+ TQPalette mTodayPalette;
};
/**
@@ -236,7 +236,7 @@ class KOMonthView: public KOEventView
{
Q_OBJECT
public:
- KOMonthView(Calendar *cal, QWidget *parent = 0, const char *name = 0 );
+ KOMonthView(Calendar *cal, TQWidget *parent = 0, const char *name = 0 );
~KOMonthView();
/** Returns maximum number of days supported by the komonthview */
@@ -251,12 +251,12 @@ class KOMonthView: public KOEventView
/** Returns dates of the currently selected events */
virtual DateList selectedDates();
- virtual bool eventDurationHint(QDateTime &startDt, QDateTime &endDt, bool &allDay);
+ virtual bool eventDurationHint(TQDateTime &startDt, TQDateTime &endDt, bool &allDay);
public slots:
virtual void updateView();
virtual void updateConfig();
- virtual void showDates(const QDate &start, const QDate &end);
+ virtual void showDates(const TQDate &start, const TQDate &end);
virtual void showIncidences( const Incidence::List &incidenceList );
void changeIncidenceDisplay(Incidence *, int);
@@ -264,7 +264,7 @@ class KOMonthView: public KOEventView
void clearSelection();
- void showEventContextMenu( Incidence *, const QDate & );
+ void showEventContextMenu( Incidence *, const TQDate & );
void showGeneralContextMenu();
void setSelectedCell( MonthViewCell * );
@@ -273,7 +273,7 @@ class KOMonthView: public KOEventView
void processSelectionChange();
protected:
- void resizeEvent(QResizeEvent *);
+ void resizeEvent(TQResizeEvent *);
void viewChanged();
void updateDayLabels();
@@ -285,20 +285,20 @@ class KOMonthView: public KOEventView
int mNumCells;
int mWeekStartDay;
- QPtrVector<MonthViewCell> mCells;
- QMap<QDate,MonthViewCell *> mDateToCell;
- QPtrVector<QLabel> mDayLabels;
+ TQPtrVector<MonthViewCell> mCells;
+ TQMap<TQDate,MonthViewCell *> mDateToCell;
+ TQPtrVector<TQLabel> mDayLabels;
bool mShortDayLabels;
int mWidthLongDayLabel;
- QDate mStartDate;
- QDate mSelectedDate;
+ TQDate mStartDate;
+ TQDate mSelectedDate;
MonthViewCell *mSelectedCell;
KOEventPopupMenu *mEventContextMenu;
- QLabel *mLabel;
+ TQLabel *mLabel;
};
#endif