summaryrefslogtreecommitdiffstats
path: root/karm/taskview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /karm/taskview.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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 'karm/taskview.h')
-rw-r--r--karm/taskview.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/karm/taskview.h b/karm/taskview.h
index f1cf78078..7b60f7e8f 100644
--- a/karm/taskview.h
+++ b/karm/taskview.h
@@ -1,9 +1,9 @@
#ifndef KARM_TASK_VIEW_H
#define KARM_TASK_VIEW_H
-#include <qdict.h>
-#include <qptrlist.h>
-#include <qptrstack.h>
+#include <tqdict.h>
+#include <tqptrlist.h>
+#include <tqptrstack.h>
#include <klistview.h>
@@ -12,7 +12,7 @@
#include "karmstorage.h"
#include "mainwindow.h"
#include "reportcriteria.h"
-#include <qtimer.h>
+#include <tqtimer.h>
//#include "desktoptracker.h"
//#include "karmutility.h"
@@ -44,7 +44,7 @@ class TaskView : public KListView
Q_OBJECT
public:
- TaskView( QWidget *parent = 0, const char *name = 0, const QString &icsfile = "" );
+ TaskView( TQWidget *parent = 0, const char *name = 0, const TQString &icsfile = "" );
virtual ~TaskView();
/** Return the first item in the view, cast to a Task pointer. */
@@ -57,7 +57,7 @@ class TaskView : public KListView
Task* item_at_index(int i);
/** Load the view from storage. */
- void load( QString filename="" );
+ void load( TQString filename="" );
/** Close the storage and release lock. */
void closeStorage();
@@ -72,7 +72,7 @@ class TaskView : public KListView
long count();
/** Return list of start/stop events for given date range. */
- QValueList<HistoryEvent> getHistory(const QDate& from, const QDate& to) const;
+ TQValueList<HistoryEvent> getHistory(const TQDate& from, const TQDate& to) const;
/** Schedule that we should save very soon */
void scheduleSave();
@@ -81,12 +81,12 @@ class TaskView : public KListView
Preferences *preferences();
/** Add a task to view and storage. */
- QString addTask( const QString& taskame, long total, long session, const DesktopList& desktops,
+ TQString addTask( const TQString& taskame, long total, long session, const DesktopList& desktops,
Task* parent = 0 );
public slots:
/** Save to persistent storage. */
- QString save();
+ TQString save();
/** Start the timer on the current item (task) in view. */
void startCurrentTimer();
@@ -98,13 +98,13 @@ class TaskView : public KListView
void stopAllTimers();
/** Stop all running timers as if it was qdt */
- void stopAllTimersAt(QDateTime qdt);
+ void stopAllTimersAt(TQDateTime qdt);
/** Calls newTask dialog with caption "New Task". */
void newTask();
/** Display edit task dialog and create a new task with results. */
- void newTask( QString caption, Task* parent );
+ void newTask( TQString caption, Task* parent );
/** Used to refresh (e.g. after import) */
void refresh();
@@ -113,16 +113,16 @@ class TaskView : public KListView
void loadFromFlatFile();
/** used to import tasks from imendio planner */
- QString importPlanner( QString fileName="" );
+ TQString importPlanner( TQString fileName="" );
/** call export function for csv totals or history */
- QString report( const ReportCriteria &rc );
+ TQString report( const ReportCriteria &rc );
/** Export comma separated values format for task time totals. */
void exportcsvFile();
/** Export comma-separated values format for task history. */
- QString exportcsvHistory();
+ TQString exportcsvHistory();
/** Calls newTask dialog with caption "New Sub Task". */
void newSubTask();
@@ -172,7 +172,7 @@ class TaskView : public KListView
* @param task task to start timer of
* @param startTime if taskview has been modified by another program, we
have to set the starting time to not-now. */
- void startTimerFor( Task* task, QDateTime startTime = QDateTime::currentDateTime() );
+ void startTimerFor( Task* task, TQDateTime startTime = TQDateTime::currentDateTime() );
void stopTimerFor( Task* task );
/** clears all active tasks. Needed e.g. if iCal file was modified by
@@ -183,7 +183,7 @@ class TaskView : public KListView
/** User might have picked a new iCalendar file on preferences screen.
Verify the file is not the same as before and load the new one.
This is not iCalFileModified. */
- void iCalFileChanged(QString file);
+ void iCalFileChanged(TQString file);
/** Copy totals for current and all sub tasks to clipboard. */
void clipTotals();
@@ -199,16 +199,16 @@ class TaskView : public KListView
void updateButtons();
void timersActive();
void timersInactive();
- void tasksChanged( QPtrList<Task> activeTasks );
- void setStatusBar( QString );
+ void tasksChanged( TQPtrList<Task> activeTasks );
+ void setStatusBar( TQString );
private: // member variables
IdleTimeDetector *_idleTimeDetector;
- QTimer *_minuteTimer;
- QTimer *_autoSaveTimer;
- QTimer *_manualSaveTimer;
+ TQTimer *_minuteTimer;
+ TQTimer *_autoSaveTimer;
+ TQTimer *_manualSaveTimer;
Preferences *_preferences;
- QPtrList<Task> activeTasks;
+ TQPtrList<Task> activeTasks;
int previousColumnWidths[4];
DesktopTracker* _desktopTracker;
bool _isloading;
@@ -217,20 +217,20 @@ class TaskView : public KListView
KarmStorage * _storage;
private:
- void contentsMousePressEvent ( QMouseEvent * e );
- void contentsMouseDoubleClickEvent ( QMouseEvent * e );
+ void contentsMousePressEvent ( TQMouseEvent * e );
+ void contentsMouseDoubleClickEvent ( TQMouseEvent * e );
void updateParents( Task* task, long totalDiff, long sesssionDiff);
void deleteChildTasks( Task *item );
void addTimeToActiveTasks( int minutes, bool save_data = true );
/** item state stores if a task is expanded so you can see the subtasks */
- void restoreItemState( QListViewItem *item );
+ void restoreItemState( TQListViewItem *item );
protected slots:
void autoSaveChanged( bool );
void autoSavePeriodChanged( int period );
void minuteUpdate();
/** item state stores if a task is expanded so you can see the subtasks */
- void itemStateChanged( QListViewItem *item );
+ void itemStateChanged( TQListViewItem *item );
/** React on another process having modified the iCal file we rely on. */
void iCalFileModified(ResourceCalendar *);
};