summaryrefslogtreecommitdiffstats
path: root/korganizer/interfaces
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 /korganizer/interfaces
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 'korganizer/interfaces')
-rw-r--r--korganizer/interfaces/calendar/calendardecoration.h20
-rw-r--r--korganizer/interfaces/calendar/plugin.h10
-rw-r--r--korganizer/interfaces/korganizer/baseview.h32
-rw-r--r--korganizer/interfaces/korganizer/calendarviewbase.h10
-rw-r--r--korganizer/interfaces/korganizer/corehelper.h18
-rw-r--r--korganizer/interfaces/korganizer/incidencechangerbase.h8
-rw-r--r--korganizer/interfaces/korganizer/mainwindow.h6
-rw-r--r--korganizer/interfaces/korganizer/part.h14
-rw-r--r--korganizer/interfaces/korganizer/printplugin.h22
9 files changed, 70 insertions, 70 deletions
diff --git a/korganizer/interfaces/calendar/calendardecoration.h b/korganizer/interfaces/calendar/calendardecoration.h
index a6f487b7b..1653edb48 100644
--- a/korganizer/interfaces/calendar/calendardecoration.h
+++ b/korganizer/interfaces/calendar/calendardecoration.h
@@ -21,9 +21,9 @@
#ifndef KORG_CALENDARDECORATION_H
#define KORG_CALENDARDECORATION_H
-#include <qstring.h>
-#include <qdatetime.h>
-#include <qpixmap.h>
+#include <tqstring.h>
+#include <tqdatetime.h>
+#include <tqpixmap.h>
#include <klibloader.h>
@@ -41,9 +41,9 @@ class CalendarDecoration : public Plugin
{
public:
static int interfaceVersion() { return 2; }
- static QString serviceType() { return "Calendar/Decoration"; }
+ static TQString serviceType() { return "Calendar/Decoration"; }
- typedef QPtrList<CalendarDecoration> List;
+ typedef TQPtrList<CalendarDecoration> List;
CalendarDecoration() {}
virtual ~CalendarDecoration() {}
@@ -51,26 +51,26 @@ class CalendarDecoration : public Plugin
/**
Return a short text for a given date, ususally only a few words.
*/
- virtual QString shortText( const QDate & ) { return QString::null; }
+ virtual TQString shortText( const TQDate & ) { return TQString::null; }
/**
Return along text for a given date. This text can be of any length, but
usually it will have one or a few paragraphs.
*/
- virtual QString longText( const QDate & ) { return QString::null; }
+ virtual TQString longText( const TQDate & ) { return TQString::null; }
/**
Return a small pixmap. The size should be something like 30x30 pixels.
*/
- virtual QPixmap smallPixmap( const QDate &) { return QPixmap(); }
+ virtual TQPixmap smallPixmap( const TQDate &) { return TQPixmap(); }
/**
Return a large pixmap. The size should be something like 300x300 pixels.
*/
- virtual QPixmap largePixmap( const QDate &) { return QPixmap(); }
+ virtual TQPixmap largePixmap( const TQDate &) { return TQPixmap(); }
/**
Return a small widget. It should have the size of a pushbutton.
*/
- virtual QWidget *smallWidget( QWidget *, const QDate & ) { return 0; }
+ virtual TQWidget *smallWidget( TQWidget *, const TQDate & ) { return 0; }
};
class CalendarDecorationFactory : public PluginFactory
diff --git a/korganizer/interfaces/calendar/plugin.h b/korganizer/interfaces/calendar/plugin.h
index 478b86468..eb0f78927 100644
--- a/korganizer/interfaces/calendar/plugin.h
+++ b/korganizer/interfaces/calendar/plugin.h
@@ -30,14 +30,14 @@ class Plugin
{
public:
static int interfaceVersion() { return 2; }
- static QString serviceType() { return "Calendar/Plugin"; }
+ static TQString serviceType() { return "Calendar/Plugin"; }
Plugin() {}
virtual ~Plugin() {}
- virtual QString info() = 0;
+ virtual TQString info() = 0;
- virtual void configure( QWidget * ) {}
+ virtual void configure( TQWidget * ) {}
};
class PluginFactory : public KLibFactory
@@ -46,8 +46,8 @@ class PluginFactory : public KLibFactory
virtual Plugin *create() = 0;
protected:
- virtual QObject *createObject( QObject *, const char *,const char *,
- const QStringList & )
+ virtual TQObject *createObject( TQObject *, const char *,const char *,
+ const TQStringList & )
{
return 0;
}
diff --git a/korganizer/interfaces/korganizer/baseview.h b/korganizer/interfaces/korganizer/baseview.h
index abaa85917..64fbd72b5 100644
--- a/korganizer/interfaces/korganizer/baseview.h
+++ b/korganizer/interfaces/korganizer/baseview.h
@@ -22,9 +22,9 @@
#ifndef KORG_BASEVIEW_H
#define KORG_BASEVIEW_H
-#include <qwidget.h>
-#include <qptrlist.h>
-#include <qvaluelist.h>
+#include <tqwidget.h>
+#include <tqptrlist.h>
+#include <tqvaluelist.h>
#include <klocale.h>
#include <kdebug.h>
@@ -66,9 +66,9 @@ class KDE_EXPORT BaseView : public QWidget
@param parent parent widget.
@param name name of this widget.
*/
- BaseView( Calendar *cal, QWidget *parent = 0,
+ BaseView( Calendar *cal, TQWidget *parent = 0,
const char *name = 0 )
- : QWidget( parent, name ), mCalendar( cal ), mChanger( 0 ) {}
+ : TQWidget( parent, name ), mCalendar( cal ), mChanger( 0 ) {}
/**
Destructor. Views will do view-specific cleanups here.
@@ -117,7 +117,7 @@ class KDE_EXPORT BaseView : public QWidget
@param start Start of date range.
@param end End of date range.
*/
- virtual void showDates( const QDate &start, const QDate &end ) = 0;
+ virtual void showDates( const TQDate &start, const TQDate &end ) = 0;
/**
Show given incidences. Depending on the actual view it might not be possible to
@@ -132,7 +132,7 @@ class KDE_EXPORT BaseView : public QWidget
in the calendar since the last display refresh.
*/
virtual void updateView() = 0;
- virtual void dayPassed( const QDate & ) { updateView(); }
+ virtual void dayPassed( const TQDate & ) { updateView(); }
/**
Assign a new incidence change helper object.
@@ -163,7 +163,7 @@ class KDE_EXPORT BaseView : public QWidget
/**
Set the default start/end date/time for new events. Return true if anything was changed
*/
- virtual bool eventDurationHint(QDateTime &/*startDt*/, QDateTime &/*endDt*/, bool &/*allDay*/) { return false; }
+ virtual bool eventDurationHint(TQDateTime &/*startDt*/, TQDateTime &/*endDt*/, bool &/*allDay*/) { return false; }
signals:
void incidenceSelected( Incidence * );
@@ -208,12 +208,12 @@ class KDE_EXPORT BaseView : public QWidget
void toggleAlarmSignal(Incidence *);
/** Dissociate from a recurring incidence the occurrence on the given
date to a new incidence */
- void dissociateOccurrenceSignal( Incidence *, const QDate & );
+ void dissociateOccurrenceSignal( Incidence *, const TQDate & );
/** Dissociate from a recurring incidence all occurrences after the given
date to a new incidence */
- void dissociateFutureOccurrenceSignal( Incidence *, const QDate & );
+ void dissociateFutureOccurrenceSignal( Incidence *, const TQDate & );
- void startMultiModify( const QString & );
+ void startMultiModify( const TQString & );
void endMultiModify();
/**
@@ -225,23 +225,23 @@ class KDE_EXPORT BaseView : public QWidget
* instructs the receiver to create a new event with the specified beginning
* time. Doesn't make sense to connect to more than one receiver.
*/
- void newEventSignal( const QDate & );
+ void newEventSignal( const TQDate & );
/**
* instructs the receiver to create a new event with the specified beginning
* time. Doesn't make sense to connect to more than one receiver.
*/
- void newEventSignal( const QDateTime & );
+ void newEventSignal( const TQDateTime & );
/**
* instructs the receiver to create a new event, with the specified
* beginning end ending times. Doesn't make sense to connect to more
* than one receiver.
*/
- void newEventSignal( const QDateTime &, const QDateTime & );
+ void newEventSignal( const TQDateTime &, const TQDateTime & );
- void newTodoSignal( const QDate & );
+ void newTodoSignal( const TQDate & );
void newSubTodoSignal( Todo * );
- void newJournalSignal( const QDate & );
+ void newJournalSignal( const TQDate & );
private:
Calendar *mCalendar;
diff --git a/korganizer/interfaces/korganizer/calendarviewbase.h b/korganizer/interfaces/korganizer/calendarviewbase.h
index fe0cd4961..02c2459bb 100644
--- a/korganizer/interfaces/korganizer/calendarviewbase.h
+++ b/korganizer/interfaces/korganizer/calendarviewbase.h
@@ -22,7 +22,7 @@
#ifndef KORG_CALENDARVIEWBASE_H
#define KORG_CALENDARVIEWBASE_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <libkcal/calendar.h>
@@ -37,14 +37,14 @@ namespace KOrg {
class CalendarViewBase : public QWidget
{
public:
- CalendarViewBase( QWidget *parent, const char *name )
- : QWidget( parent, name ) {}
+ CalendarViewBase( TQWidget *parent, const char *name )
+ : TQWidget( parent, name ) {}
virtual ~CalendarViewBase() {}
virtual KCal::Calendar *calendar() = 0;
- virtual QDate startDate() = 0;
- virtual QDate endDate() = 0;
+ virtual TQDate startDate() = 0;
+ virtual TQDate endDate() = 0;
virtual Incidence *currentSelection() = 0;
diff --git a/korganizer/interfaces/korganizer/corehelper.h b/korganizer/interfaces/korganizer/corehelper.h
index 2ab839065..53b5d9fb2 100644
--- a/korganizer/interfaces/korganizer/corehelper.h
+++ b/korganizer/interfaces/korganizer/corehelper.h
@@ -23,9 +23,9 @@
#ifndef KORG_COREHELPER_H
#define KORG_COREHELPER_H
-#include <qstring.h>
-#include <qdatetime.h>
-#include <qcolor.h>
+#include <tqstring.h>
+#include <tqdatetime.h>
+#include <tqcolor.h>
#include "printplugin.h"
class KCalendarSytstem;
@@ -38,14 +38,14 @@ class CoreHelper
CoreHelper() {}
virtual ~CoreHelper() {}
- virtual QColor defaultEventColor() = 0;
- virtual QColor textColor( const QColor &bgColor ) = 0;
- virtual QColor categoryColor( const QStringList &cats ) = 0;
- virtual QString holidayString( const QDate &dt ) = 0;
- virtual QTime dayStart() = 0;
+ virtual TQColor defaultEventColor() = 0;
+ virtual TQColor textColor( const TQColor &bgColor ) = 0;
+ virtual TQColor categoryColor( const TQStringList &cats ) = 0;
+ virtual TQString holidayString( const TQDate &dt ) = 0;
+ virtual TQTime dayStart() = 0;
virtual const KCalendarSystem *calendarSystem() = 0;
virtual KOrg::PrintPlugin::List loadPrintPlugins() = 0;
- virtual bool isWorkingDay( const QDate &dt ) = 0;
+ virtual bool isWorkingDay( const TQDate &dt ) = 0;
};
}
diff --git a/korganizer/interfaces/korganizer/incidencechangerbase.h b/korganizer/interfaces/korganizer/incidencechangerbase.h
index 9aeaf2438..9deb87642 100644
--- a/korganizer/interfaces/korganizer/incidencechangerbase.h
+++ b/korganizer/interfaces/korganizer/incidencechangerbase.h
@@ -22,7 +22,7 @@
#define KORG_INCIDENCECHANGERBASE_H
#include <libkcal/scheduler.h>
-#include <qobject.h>
+#include <tqobject.h>
class QWidget;
namespace KCal {
@@ -37,8 +37,8 @@ class IncidenceChangerBase : public QObject
{
Q_OBJECT
public:
- IncidenceChangerBase( Calendar*cal, QObject *parent = 0 ) :
- QObject( parent ), mCalendar( cal ) {}
+ IncidenceChangerBase( Calendar*cal, TQObject *parent = 0 ) :
+ TQObject( parent ), mCalendar( cal ) {}
virtual ~IncidenceChangerBase() {}
virtual bool sendGroupwareMessage( Incidence *incidence,
@@ -47,7 +47,7 @@ public:
virtual bool beginChange( Incidence * incidence ) = 0;
virtual bool endChange( Incidence *incidence ) = 0;
- virtual bool addIncidence( Incidence *incidence, QWidget *parent = 0 ) = 0;
+ virtual bool addIncidence( Incidence *incidence, TQWidget *parent = 0 ) = 0;
virtual bool changeIncidence( Incidence *newinc, Incidence *oldinc,
int action = -1 ) = 0;
virtual bool deleteIncidence( Incidence *incidence ) = 0;
diff --git a/korganizer/interfaces/korganizer/mainwindow.h b/korganizer/interfaces/korganizer/mainwindow.h
index cbfb7915c..3343470aa 100644
--- a/korganizer/interfaces/korganizer/mainwindow.h
+++ b/korganizer/interfaces/korganizer/mainwindow.h
@@ -22,7 +22,7 @@
#include <kxmlguiclient.h>
-#include <qwidget.h>
+#include <tqwidget.h>
class KActionCollection;
class KAction;
@@ -68,7 +68,7 @@ class MainWindow
/**
Return widget whcih represents this main window.
*/
- virtual QWidget *topLevelWidget() = 0;
+ virtual TQWidget *topLevelWidget() = 0;
/**
Return ActionManager of this main window.
*/
@@ -80,7 +80,7 @@ class MainWindow
/**
Show status mesage in status bar.
*/
- virtual void showStatusMessage( const QString &message ) = 0;
+ virtual void showStatusMessage( const TQString &message ) = 0;
/**
Set window title.
diff --git a/korganizer/interfaces/korganizer/part.h b/korganizer/interfaces/korganizer/part.h
index 5db429298..2ce21c13f 100644
--- a/korganizer/interfaces/korganizer/part.h
+++ b/korganizer/interfaces/korganizer/part.h
@@ -21,7 +21,7 @@
#ifndef KORG_PART_H
#define KORG_PART_H
-#include <qstring.h>
+#include <tqstring.h>
#include <klibloader.h>
#include <kparts/part.h>
@@ -34,18 +34,18 @@ class Part : public KParts::Part
{
public:
static int interfaceVersion() { return 2; }
- static QString serviceType() { return "KOrganizer/Part"; }
+ static TQString serviceType() { return "KOrganizer/Part"; }
- typedef QPtrList<Part> List;
+ typedef TQPtrList<Part> List;
Part( MainWindow *parent, const char *name )
: KParts::Part( parent?(parent->topLevelWidget()):0, name ), mMainWindow( parent ) {}
virtual ~Part() {}
- virtual QString info() = 0;
+ virtual TQString info() = 0;
/** short name of the part, used as category in the keybindings dialog */
- virtual QString shortInfo() = 0;
+ virtual TQString shortInfo() = 0;
MainWindow *mainWindow() { return mMainWindow; }
@@ -59,8 +59,8 @@ class PartFactory : public KLibFactory
virtual Part *create( MainWindow *parent, const char *name = 0 ) = 0;
protected:
- virtual QObject *createObject( QObject *, const char *,const char *,
- const QStringList & )
+ virtual TQObject *createObject( TQObject *, const char *,const char *,
+ const TQStringList & )
{
return 0;
}
diff --git a/korganizer/interfaces/korganizer/printplugin.h b/korganizer/interfaces/korganizer/printplugin.h
index 0a7abd44c..a1414cdb8 100644
--- a/korganizer/interfaces/korganizer/printplugin.h
+++ b/korganizer/interfaces/korganizer/printplugin.h
@@ -23,7 +23,7 @@
#ifndef KORG_NOPRINTER
-#include <qdatetime.h>
+#include <tqdatetime.h>
#include <kprinter.h>
#include <calendar/plugin.h>
#include <libkcal/incidence.h>
@@ -55,9 +55,9 @@ class PrintPlugin : public KOrg::Plugin
mCalendar(0), mConfig(0) {}
virtual ~PrintPlugin() {}
- typedef QPtrList<PrintPlugin> List;
+ typedef TQPtrList<PrintPlugin> List;
static int interfaceVersion() { return 2; }
- static QString serviceType() { return "KOrganizer/PrintPlugin"; }
+ static TQString serviceType() { return "KOrganizer/PrintPlugin"; }
virtual void setKOrgCoreHelper( KOrg::CoreHelper*helper ) { mCoreHelper = helper; }
virtual void setConfig( KConfig *cfg ) { mConfig = cfg; }
@@ -69,11 +69,11 @@ class PrintPlugin : public KOrg::Plugin
/**
Returns short description of print format.
*/
- virtual QString description() = 0;
+ virtual TQString description() = 0;
/**
Returns long description of print format.
*/
- virtual QString info() = 0;
+ virtual TQString info() = 0;
/**
Returns the sort ID of the plugin. This value will be used to identify
@@ -90,7 +90,7 @@ class PrintPlugin : public KOrg::Plugin
*/
virtual bool enabled() { return false; }
- QWidget *configWidget( QWidget *w )
+ TQWidget *configWidget( TQWidget *w )
{
if ( !mConfigWidget ) {
mConfigWidget = createConfigWidget( w );
@@ -100,7 +100,7 @@ class PrintPlugin : public KOrg::Plugin
}
/* Create the config widget. setSettingsWidget will be automatically
called on it */
- virtual QWidget *createConfigWidget( QWidget * ) = 0;
+ virtual TQWidget *createConfigWidget( TQWidget * ) = 0;
/**
Actually do the printing.
@@ -138,18 +138,18 @@ class PrintPlugin : public KOrg::Plugin
/**
Set date range which should be printed.
*/
- virtual void setDateRange( const QDate &from, const QDate &to )
+ virtual void setDateRange( const TQDate &from, const TQDate &to )
{
mFromDate = from;
mToDate = to;
}
protected:
- QDate mFromDate;
- QDate mToDate;
+ TQDate mFromDate;
+ TQDate mToDate;
protected:
- QWidget *mConfigWidget;
+ TQWidget *mConfigWidget;
KOrg::CoreHelper *mCoreHelper;
/** The printer object. This will only be available in the doPrint method
of the selected plugin */