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/calendarview.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/calendarview.h')
-rw-r--r-- | korganizer/calendarview.h | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/korganizer/calendarview.h b/korganizer/calendarview.h index ceb2b2d7a..a3e9a9ab3 100644 --- a/korganizer/calendarview.h +++ b/korganizer/calendarview.h @@ -25,9 +25,9 @@ #ifndef CALENDARVIEW_H #define CALENDARVIEW_H -#include <qwidget.h> -#include <qptrlist.h> -#include <qmap.h> +#include <tqwidget.h> +#include <tqptrlist.h> +#include <tqmap.h> #include <kfile.h> #include <korganizer/koeventviewer.h> #include <libkcal/scheduler.h> @@ -58,13 +58,13 @@ using namespace KCal; class CalendarViewExtension : public QWidget { public: - CalendarViewExtension( QWidget *parent, const char *name = 0 ) - : QWidget( parent, name ) {} + CalendarViewExtension( TQWidget *parent, const char *name = 0 ) + : TQWidget( parent, name ) {} class Factory { public: - virtual CalendarViewExtension *create( QWidget *parent ) = 0; + virtual CalendarViewExtension *create( TQWidget *parent ) = 0; }; }; @@ -87,7 +87,7 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: @param parent parent window @param name Qt internal widget object name */ - CalendarView( QWidget *parent = 0, const char *name = 0 ); + CalendarView( TQWidget *parent = 0, const char *name = 0 ); virtual ~CalendarView(); @@ -121,16 +121,16 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: KOViewManager *viewManager() const { return mViewManager; } KODialogManager *dialogManager() const { return mDialogManager; } - QWidgetStack *viewStack() const { return mRightFrame; } - QWidget *leftFrame() const { return mLeftFrame; } + TQWidgetStack *viewStack() const { return mRightFrame; } + TQWidget *leftFrame() const { return mLeftFrame; } NavigatorBar *navigatorBar() const { return mNavigatorBar; } DateNavigator *dateNavigator() const { return mNavigator; } KOIncidenceEditor *editorDialog( Incidence* ) const; IncidenceChangerBase *incidenceChanger() const { return mChanger; } - QDate startDate(); - QDate endDate(); + TQDate startDate(); + TQDate endDate(); void addView( KOrg::BaseView * ); @@ -148,7 +148,7 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: is no selection, return the selected todo from the todo list on the left */ Incidence *selectedIncidence(); /** Returns the name of the current filter */ - QString currentFilterName() const; + TQString currentFilterName() const; signals: /** when change is made to options dialog, the topwidget will catch this @@ -162,7 +162,7 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: child windows can also close. */ void closingDown(); /** emitted right before we die */ - void closed( QWidget * ); + void closed( TQWidget * ); /** Emitted when state of modified flag changes */ void modifiedChanged( bool ); @@ -171,8 +171,8 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: void readOnlyChanged( bool ); /** Emitted when the unit of navigation changes */ - void changeNavStringPrev( const QString & ); - void changeNavStringNext( const QString & ); + void changeNavStringPrev( const TQString & ); + void changeNavStringNext( const TQString & ); /** Emitted when state of events selection has changed and user is organizer*/ void organizerEventsSelected( bool ); @@ -190,7 +190,7 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: /** Emitted, when a day changed (i.e. korganizer was running at midnight). The argument is the new date */ - void dayPassed( const QDate & ); + void dayPassed( const TQDate & ); /** Attendees were removed from this incidence. Only the removed attendees are present in the incidence, so we just need to send a cancel messages @@ -205,7 +205,7 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: */ void pasteEnabled( bool ); /** Send status message, which can e.g. be displayed in the status bar. */ - void statusMessage( const QString & ); + void statusMessage( const TQString & ); void calendarViewExpanded( bool ); @@ -215,14 +215,14 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: void newIncidenceChanger( IncidenceChangerBase* ); void exportHTML( HTMLExportSettings* ); - void newFilterListSignal( const QStringList & ); + void newFilterListSignal( const TQStringList & ); void selectFilterSignal( int ); void filterChanged(); public slots: /** options dialog made a changed to the configuration. we catch this * and notify all widgets which need to update their configuration. */ - void updateConfig( const QCString& ); + void updateConfig( const TQCString& ); /** Calendar configuration was changed, so refresh categories list */ void updateCategories(); @@ -233,13 +233,13 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: calendar into existing one, if it is false, clear calendar, before loading. Return true, if calendar could be successfully loaded. */ - bool openCalendar( const QString &filename, bool merge = false ); + bool openCalendar( const TQString &filename, bool merge = false ); /** Save calendar data to file. Return true if calendar could be successfully saved. */ - bool saveCalendar( const QString &filename ); + bool saveCalendar( const TQString &filename ); /** Close calendar. Clear calendar data and reset views to display an empty @@ -252,7 +252,7 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: void showIncidence(); void editIncidence(); - bool editIncidence( const QString& uid ); + bool editIncidence( const TQString& uid ); void deleteIncidence(); /** @@ -263,7 +263,7 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: optionally a VTIMEZONE component. If there is more than one incidence, only the first is added to KOrganizer's calendar. */ - bool addIncidence( const QString &ical ); + bool addIncidence( const TQString &ical ); void connectIncidenceEditor( KOIncidenceEditor * ); @@ -272,16 +272,16 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: void newEvent(); /** create an editeventwin with supplied date/time, and if bool is true, * make the event take all day. */ - void newEvent( const QDate &startDt ); - void newEvent( const QDateTime &startDt ); - void newEvent( const QDateTime &startDt, const QDateTime &EndDt, bool allDay = false ); + void newEvent( const TQDate &startDt ); + void newEvent( const TQDateTime &startDt ); + void newEvent( const TQDateTime &startDt, const TQDateTime &EndDt, bool allDay = false ); /** Create new Event from given summary, description, attachment list and attendees list */ - void newEvent( const QString &summary, const QString &description = QString::null, - const QStringList &attachment = QStringList(), const QStringList &attendees = QStringList(), - const QStringList &attachmentMimetypes = QStringList(), bool inlineAttachment = false ); + void newEvent( const TQString &summary, const TQString &description = TQString::null, + const TQStringList &attachment = TQStringList(), const TQStringList &attendees = TQStringList(), + const TQStringList &attachmentMimetypes = TQStringList(), bool inlineAttachment = false ); void newFloatingEvent(); /** Create a read-only viewer dialog for the supplied incidence. It calls the correct showXXX method*/ @@ -327,28 +327,28 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: @param force If true, all recurrences and sub-todos (if applicable) will be deleted without prompting for confirmation. */ - bool deleteIncidence( const QString &uid, bool force = false ); + bool deleteIncidence( const TQString &uid, bool force = false ); /** create new todo */ void newTodo(); /** create new todo, due on date */ - void newTodo( const QDate &date ); + void newTodo( const TQDate &date ); /** create new todo with a parent todo */ void newSubTodo(); /** create new todo with a parent todo */ void newSubTodo( Todo * ); - void newTodo( const QString &summary, const QString &description = QString::null, - const QStringList &attachments = QStringList(), const QStringList &attendees = QStringList(), - const QStringList &attachmentMimetypes = QStringList(), bool inlineAttachment = false ); + void newTodo( const TQString &summary, const TQString &description = TQString::null, + const TQStringList &attachments = TQStringList(), const TQStringList &attendees = TQStringList(), + const TQStringList &attachmentMimetypes = TQStringList(), bool inlineAttachment = false ); void newJournal(); - void newJournal( const QDate &date ); - void newJournal( const QString &text, const QDate &date = QDate() ); + void newJournal( const TQDate &date ); + void newJournal( const TQString &text, const TQDate &date = TQDate() ); void toggleAlarm( Incidence * ); - void dissociateOccurrence( Incidence *, const QDate & ); - void dissociateFutureOccurrence( Incidence *, const QDate & ); + void dissociateOccurrence( Incidence *, const TQDate & ); + void dissociateFutureOccurrence( Incidence *, const TQDate & ); /** @@ -383,12 +383,12 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: void incidenceChanged( Incidence *oldEvent, Incidence *newEvent, int what ); void incidenceToBeDeleted( Incidence *incidence ); void incidenceDeleted( Incidence * ); - void startMultiModify( const QString &text ); + void startMultiModify( const TQString &text ); void endMultiModify(); void editCanceled( Incidence * ); - void updateView( const QDate &start, const QDate &end ); + void updateView( const TQDate &start, const TQDate &end ); void updateView(); void updateUnmanagedViews(); @@ -487,10 +487,10 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: void showEventViewer( bool ); /** Move the current view date to the specified date */ - void goDate( const QDate& date ); + void goDate( const TQDate& date ); /** Show the given date without changing date selection length. */ - void showDate( const QDate &date ); + void showDate( const TQDate &date ); /** Move the current view date to today */ void goToday(); @@ -517,10 +517,10 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: void slotAutoArchivingSettingsModified() { emit autoArchivingSettingsModified(); } - void showErrorMessage( const QString & ); + void showErrorMessage( const TQString & ); void schedule( Scheduler::Method, Incidence *incidence ); - void addIncidenceOn( Incidence *, const QDate & ); - void moveIncidenceTo( Incidence *, const QDate & ); + void addIncidenceOn( Incidence *, const TQDate & ); + void moveIncidenceTo( Incidence *, const TQDate & ); void filterActivated( int filterNum ); void resourcesChanged(); @@ -554,9 +554,9 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: /** Adjust the given date/times by valid defaults (selection or configured defaults, if invalid values are given) and allow the view to adjust the type. */ - void dateTimesForNewEvent( QDateTime &startDt, QDateTime &endDt, bool &allDay ); - KOEventEditor *newEventEditor( const QDateTime &startDtParam = QDateTime(), - const QDateTime &endDtParam = QDateTime() , bool allDayParam = false ); + void dateTimesForNewEvent( TQDateTime &startDt, TQDateTime &endDt, bool &allDay ); + KOEventEditor *newEventEditor( const TQDateTime &startDtParam = TQDateTime(), + const TQDateTime &endDtParam = TQDateTime() , bool allDayParam = false ); private: void init(); @@ -569,17 +569,17 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: KOrg::History *mHistory; - QSplitter *mPanner; - QSplitter *mLeftSplitter; - QWidget *mLeftFrame; - QWidgetStack *mRightFrame; + TQSplitter *mPanner; + TQSplitter *mLeftSplitter; + TQWidget *mLeftFrame; + TQWidgetStack *mRightFrame; NavigatorBar *mNavigatorBar; DateNavigatorContainer *mDateNavigator; - QPtrList<CalendarViewExtension> mExtensions; + TQPtrList<CalendarViewExtension> mExtensions; Calendar *mCalendar; @@ -591,18 +591,18 @@ class KDE_EXPORT CalendarView : public KOrg::CalendarViewBase, public Calendar:: KODialogManager *mDialogManager; // Calendar filters - QPtrList<CalFilter> mFilters; + TQPtrList<CalFilter> mFilters; CalFilter *mCurrentFilter; // various housekeeping variables. bool mModified; // flag indicating if calendar is modified bool mReadOnly; // flag indicating if calendar is read-only - QDate mSaveSingleDate; + TQDate mSaveSingleDate; Incidence *mSelectedIncidence; KOTodoView *mTodoList; - QMap<Incidence*,KOIncidenceEditor*> mDialogList; + TQMap<Incidence*,KOIncidenceEditor*> mDialogList; KOrg::IncidenceChangerBase *mChanger; }; |