diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /korganizer/koagendaview.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/koagendaview.h')
-rw-r--r-- | korganizer/koagendaview.h | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/korganizer/koagendaview.h b/korganizer/koagendaview.h index 6fc673307..c1434dc1d 100644 --- a/korganizer/koagendaview.h +++ b/korganizer/koagendaview.h @@ -25,8 +25,8 @@ #ifndef KOAGENDAVIEW_H #define KOAGENDAVIEW_H -#include <qscrollview.h> -#include <qlabel.h> +#include <tqscrollview.h> +#include <tqlabel.h> #include <libkcal/calendar.h> @@ -56,7 +56,7 @@ class EventIndicator : public QFrame Q_OBJECT public: enum Location { Top, Bottom }; - EventIndicator( Location loc = Top, QWidget *parent = 0, + EventIndicator( Location loc = Top, TQWidget *parent = 0, const char *name = 0 ); virtual ~EventIndicator(); @@ -65,38 +65,38 @@ class EventIndicator : public QFrame void enableColumn( int column, bool enable ); protected: - void drawContents( QPainter * ); + void drawContents( TQPainter * ); private: int mColumns; Location mLocation; - QPixmap mPixmap; - QMemArray<bool> mEnabled; + TQPixmap mPixmap; + TQMemArray<bool> mEnabled; }; class KOAlternateLabel : public QLabel { Q_OBJECT public: - KOAlternateLabel( const QString &shortlabel, const QString &longlabel, - const QString &extensivelabel = QString::null, - QWidget *parent = 0, const char *name = 0 ); + KOAlternateLabel( const TQString &shortlabel, const TQString &longlabel, + const TQString &extensivelabel = TQString::null, + TQWidget *parent = 0, const char *name = 0 ); ~KOAlternateLabel(); - virtual QSize minimumSizeHint() const; + virtual TQSize minimumSizeHint() const; public slots: - void setText( const QString & ); + void setText( const TQString & ); void useShortText(); void useLongText(); void useExtensiveText(); void useDefaultText(); protected: - virtual void resizeEvent( QResizeEvent * ); + virtual void resizeEvent( TQResizeEvent * ); virtual void squeezeTextToLabel(); bool mTextTypeFixed; - QString mShortText, mLongText, mExtensiveText; + TQString mShortText, mLongText, mExtensiveText; }; /** @@ -107,7 +107,7 @@ class KOAgendaView : public KOrg::AgendaView, public KCal::Calendar::Observer { Q_OBJECT public: - KOAgendaView( Calendar *cal, QWidget *parent = 0, const char *name = 0, bool isSideBySide = false ); + KOAgendaView( Calendar *cal, TQWidget *parent = 0, const char *name = 0, bool isSideBySide = false ); virtual ~KOAgendaView(); @@ -125,7 +125,7 @@ class KOAgendaView : public KOrg::AgendaView, public KCal::Calendar::Observer virtual DateList selectedDates(); /** return the default start/end date/time for new events */ - virtual bool eventDurationHint(QDateTime &startDt, QDateTime &endDt, bool &allDay); + virtual bool eventDurationHint(TQDateTime &startDt, TQDateTime &endDt, bool &allDay); /** Remove all events from view */ void clearView(); @@ -133,9 +133,9 @@ class KOAgendaView : public KOrg::AgendaView, public KCal::Calendar::Observer KOrg::CalPrinterBase::PrintType printType(); /** start-datetime of selection */ - QDateTime selectionStart() { return mTimeSpanBegin; } + TQDateTime selectionStart() { return mTimeSpanBegin; } /** end-datetime of selection */ - QDateTime selectionEnd() { return mTimeSpanEnd; } + TQDateTime selectionEnd() { return mTimeSpanEnd; } /** returns true if selection is for whole day */ bool selectedIsAllDay() { return mTimeSpanInAllDay; } /** make selected start/end invalid */ @@ -143,13 +143,13 @@ class KOAgendaView : public KOrg::AgendaView, public KCal::Calendar::Observer /** returns if only a single cell is selected, or a range of cells */ bool selectedIsSingleCell(); - void setTypeAheadReceiver( QObject * ); + void setTypeAheadReceiver( TQObject * ); /** Show only incidences from the given resource. */ - void setResource( KCal::ResourceCalendar *res, const QString &subResource = QString::null ); + void setResource( KCal::ResourceCalendar *res, const TQString &subResource = TQString::null ); KOAgenda* agenda() const { return mAgenda; } - QSplitter* splitter() const { return mSplitterAgenda; } + TQSplitter* splitter() const { return mSplitterAgenda; } /* reimplmented from KCal::Calendar::Observer */ void calendarIncidenceAdded( Incidence *incidence ); @@ -159,10 +159,10 @@ class KOAgendaView : public KOrg::AgendaView, public KCal::Calendar::Observer 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 insertIncidence( Incidence *incidence, const QDate &curDate, int curCol = -1 ); + void insertIncidence( Incidence *incidence, const TQDate &curDate, int curCol = -1 ); void changeIncidenceDisplayAdded( Incidence *incidence ); void changeIncidenceDisplay( Incidence *incidence, int mode ); @@ -181,18 +181,18 @@ class KOAgendaView : public KOrg::AgendaView, public KCal::Calendar::Observer void finishTypeAhead(); /** reschedule the todo to the given x- and y- coordinates. Third parameter determines all-day (no time specified) */ - void slotTodoDropped( Todo *, const QPoint &, bool ); + void slotTodoDropped( Todo *, const TQPoint &, bool ); void enableAgendaUpdate( bool enable ); void setIncidenceChanger( KOrg::IncidenceChangerBase *changer ); - void zoomInHorizontally( const QDate& date=QDate() ); - void zoomOutHorizontally( const QDate& date=QDate() ); + void zoomInHorizontally( const TQDate& date=TQDate() ); + void zoomOutHorizontally( const TQDate& date=TQDate() ); void zoomInVertically( ); void zoomOutVertically( ); - void zoomView( const int delta, const QPoint &pos, + void zoomView( const int delta, const TQPoint &pos, const Qt::Orientation orient=Qt::Horizontal ); void clearTimeSpanSelection(); @@ -201,18 +201,18 @@ class KOAgendaView : public KOrg::AgendaView, public KCal::Calendar::Observer signals: void toggleExpand(); - void zoomViewHorizontally(const QDate &, int count ); + void zoomViewHorizontally(const TQDate &, int count ); void timeSpanSelectionChanged(); protected: /** Fill agenda beginning with date startDate */ - void fillAgenda( const QDate &startDate ); + void fillAgenda( const TQDate &startDate ); /** Fill agenda using the current set value for the start date */ void fillAgenda(); - void connectAgenda( KOAgenda*agenda, QPopupMenu*popup, KOAgenda* otherAgenda ); + void connectAgenda( KOAgenda*agenda, TQPopupMenu*popup, KOAgenda* otherAgenda ); /** Create labels for the selected dates. */ void createDayLabels(); @@ -241,25 +241,25 @@ class KOAgendaView : public KOrg::AgendaView, public KCal::Calendar::Observer void updateEventIndicatorBottom( int newY ); /** Updates data for selected timespan */ - void newTimeSpanSelected( const QPoint &start, const QPoint &end ); + void newTimeSpanSelected( const TQPoint &start, const TQPoint &end ); /** Updates data for selected timespan for all day event*/ - void newTimeSpanSelectedAllDay( const QPoint &start, const QPoint &end ); + void newTimeSpanSelectedAllDay( const TQPoint &start, const TQPoint &end ); private: bool filterByResource( Incidence *incidence ); private: // view widgets - QFrame *mDayLabels; - QHBox *mDayLabelsFrame; - QBoxLayout *mLayoutDayLabels; - QFrame *mAllDayFrame; + TQFrame *mDayLabels; + TQHBox *mDayLabelsFrame; + TQBoxLayout *mLayoutDayLabels; + TQFrame *mAllDayFrame; KOAgenda *mAllDayAgenda; KOAgenda *mAgenda; TimeLabels *mTimeLabels; - QWidget *mDummyAllDayLeft; - QSplitter *mSplitterAgenda; - QPushButton *mExpandButton; + TQWidget *mDummyAllDayLeft; + TQSplitter *mSplitterAgenda; + TQPushButton *mExpandButton; DateList mSelectedDates; // List of dates to be displayed int mViewType; @@ -270,23 +270,23 @@ class KOAgendaView : public KOrg::AgendaView, public KCal::Calendar::Observer EventIndicator *mEventIndicatorTop; EventIndicator *mEventIndicatorBottom; - QMemArray<int> mMinY; - QMemArray<int> mMaxY; + TQMemArray<int> mMinY; + TQMemArray<int> mMaxY; - QMemArray<bool> mHolidayMask; + TQMemArray<bool> mHolidayMask; - QPixmap mExpandedPixmap; - QPixmap mNotExpandedPixmap; + TQPixmap mExpandedPixmap; + TQPixmap mNotExpandedPixmap; - QDateTime mTimeSpanBegin; - QDateTime mTimeSpanEnd; + TQDateTime mTimeSpanBegin; + TQDateTime mTimeSpanEnd; bool mTimeSpanInAllDay; bool mAllowAgendaUpdate; Incidence *mUpdateItem; KCal::ResourceCalendar *mResource; - QString mSubResource; + TQString mSubResource; bool mIsSideBySide; bool mPendingChanges; |