summaryrefslogtreecommitdiffstats
path: root/korganizer/koagenda.h
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koagenda.h')
-rw-r--r--korganizer/koagenda.h134
1 files changed, 67 insertions, 67 deletions
diff --git a/korganizer/koagenda.h b/korganizer/koagenda.h
index cec1b74d..0b0d0698 100644
--- a/korganizer/koagenda.h
+++ b/korganizer/koagenda.h
@@ -24,9 +24,9 @@
#ifndef KOAGENDA_H
#define KOAGENDA_H
-#include <qscrollview.h>
-#include <qtimer.h>
-#include <qguardedptr.h>
+#include <tqscrollview.h>
+#include <tqtimer.h>
+#include <tqguardedptr.h>
#include <libkcal/incidencebase.h>
@@ -49,7 +49,7 @@ class Todo;
class Calendar;
}
-class MarcusBains : public QFrame {
+class MarcusBains : public TQFrame {
Q_OBJECT
public:
MarcusBains( KOAgenda *agenda = 0, const char *name = 0 );
@@ -60,10 +60,10 @@ class MarcusBains : public QFrame {
private:
int todayColumn();
- QTimer *minutes;
- QLabel *mTimeBox;
+ TQTimer *minutes;
+ TQLabel *mTimeBox;
KOAgenda *agenda;
- QTime oldTime;
+ TQTime oldTime;
int oldToday;
};
@@ -72,47 +72,47 @@ class KOAgenda : public QScrollView
{
Q_OBJECT
public:
- KOAgenda ( int columns, int rows, int columnSize, QWidget *parent=0,
+ KOAgenda ( int columns, int rows, int columnSize, TQWidget *parent=0,
const char *name = 0, WFlags f = 0 );
- KOAgenda ( int columns, QWidget *parent = 0,
+ KOAgenda ( int columns, TQWidget *parent = 0,
const char *name = 0, WFlags f = 0 );
virtual ~KOAgenda();
Incidence *selectedIncidence() const;
- QDate selectedIncidenceDate() const;
+ TQDate selectedIncidenceDate() const;
/**
* Returns the uid of the last incidence that was selected. This
* persists across reloads and clear, so that if the same uid
* reappears, it can be reselected. */
- const QString lastSelectedUid() const;
+ const TQString lastSelectedUid() const;
- virtual bool eventFilter ( QObject *, QEvent * );
+ virtual bool eventFilter ( TQObject *, TQEvent * );
- QPoint contentsToGrid ( const QPoint &pos ) const;
- QPoint gridToContents ( const QPoint &gpos ) const;
+ TQPoint contentsToGrid ( const TQPoint &pos ) const;
+ TQPoint gridToContents ( const TQPoint &gpos ) const;
- int timeToY ( const QTime &time );
- QTime gyToTime ( int y );
+ int timeToY ( const TQTime &time );
+ TQTime gyToTime ( int y );
- QMemArray<int> minContentsY();
- QMemArray<int> maxContentsY();
+ TQMemArray<int> minContentsY();
+ TQMemArray<int> maxContentsY();
int visibleContentsYMin();
int visibleContentsYMax();
- void setStartTime( const QTime &startHour );
+ void setStartTime( const TQTime &startHour );
- KOAgendaItem *insertItem ( Incidence *incidence, const QDate &qd, int X, int YTop,
+ KOAgendaItem *insertItem ( Incidence *incidence, const TQDate &qd, int X, int YTop,
int YBottom );
- KOAgendaItem *insertAllDayItem ( Incidence *event, const QDate &qd, int XBegin,
+ KOAgendaItem *insertAllDayItem ( Incidence *event, const TQDate &qd, int XBegin,
int XEnd );
- void insertMultiItem ( Event *event, const QDate &qd, int XBegin, int XEnd,
+ void insertMultiItem ( Event *event, const TQDate &qd, int XBegin, int XEnd,
int YTop, int YBottom );
/** remove an event and all its multi-items from the agenda.
* This function removes the items from the view, but doesn't delete them immediately.
* Instead, they are queued in mItemsToDelete and later deleted by
- * the slot deleteItemsToDelete() (called by QTimer::singleShot ) */
+ * the slot deleteItemsToDelete() (called by TQTimer::singleShot ) */
void removeIncidence( Incidence *incidence );
void changeColumns( int columns );
@@ -123,7 +123,7 @@ class KOAgenda : public QScrollView
double gridSpacingX() const { return mGridSpacingX; }
double gridSpacingY() const { return mGridSpacingY; }
-// virtual QSizePolicy sizePolicy() const;
+// virtual TQSizePolicy sizePolicy() const;
void clear();
@@ -134,13 +134,13 @@ class KOAgenda : public QScrollView
void checkScrollBoundaries();
- void setHolidayMask( QMemArray<bool> * );
+ void setHolidayMask( TQMemArray<bool> * );
void setDateList( const DateList &selectedDates );
DateList dateList() const;
- void setTypeAheadReceiver( QObject * );
- QObject *typeAheadReceiver() const;
+ void setTypeAheadReceiver( TQObject * );
+ TQObject *typeAheadReceiver() const;
void finishTypeAhead();
void setCalendar( Calendar*cal ) { mCalendar = cal; }
@@ -166,36 +166,36 @@ class KOAgenda : public QScrollView
/**
Select the item associated with a given uid. Linear search, use carefully.
*/
- void selectItemByUID( const QString& uid );
+ void selectItemByUID( const TQString& uid );
bool removeAgendaItem( KOAgendaItem *item );
void showAgendaItem( KOAgendaItem *item );
signals:
void newEventSignal();
- void newTimeSpanSignal( const QPoint &, const QPoint & );
+ void newTimeSpanSignal( const TQPoint &, const TQPoint & );
void newStartSelectSignal();
void showIncidenceSignal( Incidence * );
void editIncidenceSignal( Incidence * );
void deleteIncidenceSignal( Incidence * );
- void showIncidencePopupSignal( Incidence *, const QDate &);
+ void showIncidencePopupSignal( Incidence *, const TQDate &);
void showNewEventPopupSignal();
void itemModified( KOAgendaItem *item );
void incidenceSelected( Incidence * );
- void startMultiModify( const QString & );
+ void startMultiModify( const TQString & );
void endMultiModify();
void lowerYChanged( int );
void upperYChanged( int );
void startDragSignal(Incidence *);
- void droppedToDo( Todo*todo, const QPoint &gpos, bool allDay );
+ void droppedToDo( Todo*todo, const TQPoint &gpos, bool allDay );
void enableAgendaUpdate( bool enable );
- void zoomView( const int delta, const QPoint &pos, const Qt::Orientation );
+ void zoomView( const int delta, const TQPoint &pos, const Qt::Orientation );
- void mousePosSignal(const QPoint &pos);
+ void mousePosSignal(const TQPoint &pos);
void enterAgenda();
void leaveAgenda();
@@ -206,21 +206,21 @@ class KOAgenda : public QScrollView
RESIZETOP, RESIZEBOTTOM, RESIZELEFT, RESIZERIGHT };
protected:
- void drawContents( QPainter *p, int cx, int cy, int cw, int ch );
+ void drawContents( TQPainter *p, int cx, int cy, int cw, int ch );
int columnWidth( int column );
- virtual void resizeEvent ( QResizeEvent * );
+ virtual void resizeEvent ( TQResizeEvent * );
/** Handles mouse events. Called from eventFilter */
- virtual bool eventFilter_mouse ( QObject *, QMouseEvent * );
+ virtual bool eventFilter_mouse ( TQObject *, TQMouseEvent * );
#ifndef QT_NO_WHEELEVENT
/** Handles mousewheel events. Called from eventFilter */
- virtual bool eventFilter_wheel ( QObject *, QWheelEvent * );
+ virtual bool eventFilter_wheel ( TQObject *, TQWheelEvent * );
#endif
/** Handles key events. Called from eventFilter */
- virtual bool eventFilter_key ( QObject *, QKeyEvent * );
+ virtual bool eventFilter_key ( TQObject *, TQKeyEvent * );
/** Handles drag and drop events. Called from eventFilter */
- virtual bool eventFilter_drag( QObject *, QDropEvent * );
+ virtual bool eventFilter_drag( TQObject *, TQDropEvent * );
/** returns RESIZELEFT if pos is near the lower edge of the action item,
RESIZERIGHT if pos is near the higher edge, and MOVE otherwise.
@@ -228,32 +228,32 @@ class KOAgenda : public QScrollView
the event, although that means moving to the right!
horizontal is the same as mAllDayAgenda.
*/
- MouseActionType isInResizeArea( bool horizontal, const QPoint &pos, KOAgendaItem *item );
+ MouseActionType isInResizeArea( bool horizontal, const TQPoint &pos, KOAgendaItem *item );
/** Return whether the cell specified by the grid point belongs to the current select
*/
- bool ptInSelection( QPoint gpos ) const;
+ bool ptInSelection( TQPoint gpos ) const;
/** Start selecting time span. */
- void startSelectAction( const QPoint &viewportPos );
+ void startSelectAction( const TQPoint &viewportPos );
/** Select time span. */
- void performSelectAction( const QPoint &viewportPos );
+ void performSelectAction( const TQPoint &viewportPos );
/** Emd selecting time span. */
- void endSelectAction( const QPoint &viewportPos );
+ void endSelectAction( const TQPoint &viewportPos );
/** Start moving/resizing agenda item */
- void startItemAction(const QPoint& viewportPos);
+ void startItemAction(const TQPoint& viewportPos);
/** Move/resize agenda item */
- void performItemAction(const QPoint& viewportPos);
+ void performItemAction(const TQPoint& viewportPos);
/** End moving/resizing agenda item */
void endItemAction();
/** Set cursor, when no item action is in progress */
- void setNoActionCursor( KOAgendaItem *moveItem, const QPoint &viewportPos );
+ void setNoActionCursor( KOAgendaItem *moveItem, const TQPoint &viewportPos );
/** Sets the cursor according to the given action type. If acting==true,
the corresponding action is running (i.e. the item is really moved). If
acting==false the cursor should just indicate that the corresponding action
@@ -272,11 +272,11 @@ class KOAgenda : public QScrollView
/** Process the keyevent, including the ignored keyevents of eventwidgets.
* Implements pgup/pgdn and cursor key navigation in the view.
*/
- void keyPressEvent( QKeyEvent * );
+ void keyPressEvent( TQKeyEvent * );
void calculateWorkingHours();
- virtual void contentsMousePressEvent ( QMouseEvent * );
+ virtual void contentsMousePressEvent ( TQMouseEvent * );
void emitNewEventForSelection();
@@ -312,44 +312,44 @@ class KOAgenda : public QScrollView
int mScrollDelay;
int mScrollOffset;
- QTimer mScrollUpTimer;
- QTimer mScrollDownTimer;
+ TQTimer mScrollUpTimer;
+ TQTimer mScrollDownTimer;
// Number of Columns/Rows of agenda grid
int mColumns;
int mRows;
// Cells to store Move and Resize coordiantes while performing the action
- QPoint mStartCell;
- QPoint mEndCell;
+ TQPoint mStartCell;
+ TQPoint mEndCell;
// Working Hour coordiantes
bool mWorkingHoursEnable;
- QMemArray<bool> *mHolidayMask;
+ TQMemArray<bool> *mHolidayMask;
int mWorkingHoursYTop;
int mWorkingHoursYBottom;
// Selection
bool mHasSelection;
- QPoint mSelectionStartPoint;
- QPoint mSelectionStartCell;
- QPoint mSelectionEndCell;
+ TQPoint mSelectionStartPoint;
+ TQPoint mSelectionStartCell;
+ TQPoint mSelectionEndCell;
// List of dates to be displayed
DateList mSelectedDates;
// The KOAgendaItem, which has been right-clicked last
- QGuardedPtr<KOAgendaItem> mClickedItem;
+ TQGuardedPtr<KOAgendaItem> mClickedItem;
// The KOAgendaItem, which is being moved/resized
- QGuardedPtr<KOAgendaItem> mActionItem;
+ TQGuardedPtr<KOAgendaItem> mActionItem;
// Currently selected item
- QGuardedPtr<KOAgendaItem> mSelectedItem;
+ TQGuardedPtr<KOAgendaItem> mSelectedItem;
// Uid of the last selected item. Used for reselecting in situations
// where the selected item points to a no longer valid incidence, for
// example during resource reload.
- QString mSelectedUid;
+ TQString mSelectedUid;
// The Marcus Bains Line widget.
MarcusBains *mMarcusBains;
@@ -359,17 +359,17 @@ class KOAgenda : public QScrollView
bool mItemMoved;
// List of all Items contained in agenda
- QPtrList<KOAgendaItem> mItems;
- QPtrList<KOAgendaItem> mItemsToDelete;
+ TQPtrList<KOAgendaItem> mItems;
+ TQPtrList<KOAgendaItem> mItemsToDelete;
- QPopupMenu *mItemPopup; // Right mouse button popup menu for KOAgendaItems
+ TQPopupMenu *mItemPopup; // Right mouse button popup menu for KOAgendaItems
int mOldLowerScrollValue;
int mOldUpperScrollValue;
bool mTypeAhead;
- QObject *mTypeAheadReceiver;
- QPtrList<QEvent> mTypeAheadEvents;
+ TQObject *mTypeAheadReceiver;
+ TQPtrList<TQEvent> mTypeAheadEvents;
bool mReturnPressed;
KOrg::IncidenceChangerBase *mChanger;