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/plugins | |
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/plugins')
41 files changed, 338 insertions, 338 deletions
diff --git a/korganizer/plugins/datenums/configdialog.cpp b/korganizer/plugins/datenums/configdialog.cpp index d26a1fd8..3766e2ff 100644 --- a/korganizer/plugins/datenums/configdialog.cpp +++ b/korganizer/plugins/datenums/configdialog.cpp @@ -18,10 +18,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qlayout.h> -#include <qlabel.h> -#include <qvbuttongroup.h> -#include <qradiobutton.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqvbuttongroup.h> +#include <tqradiobutton.h> #include <klocale.h> #include <kmessagebox.h> @@ -34,20 +34,20 @@ #include "configdialog.h" #include "configdialog.moc" -ConfigDialog::ConfigDialog(QWidget *parent) +ConfigDialog::ConfigDialog(TQWidget *parent) : KDialogBase(Plain,i18n("Configure Day Numbers"),Ok|Cancel,Ok,parent) { - QFrame *topFrame = plainPage(); - QVBoxLayout *topLayout = new QVBoxLayout(topFrame,0,spacingHint()); + TQFrame *topFrame = plainPage(); + TQVBoxLayout *topLayout = new TQVBoxLayout(topFrame,0,spacingHint()); -// QLabel *label = new QLabel(i18n("Show date numbers:"),topFrame); +// TQLabel *label = new TQLabel(i18n("Show date numbers:"),topFrame); // topLayout->addWidget(label); - mDayNumGroup = new QVButtonGroup( i18n("Show Date Number"), topFrame ); + mDayNumGroup = new TQVButtonGroup( i18n("Show Date Number"), topFrame ); topLayout->addWidget( mDayNumGroup ); - new QRadioButton( i18n("Show day number"), mDayNumGroup ); - new QRadioButton( i18n("Show days to end of year"), mDayNumGroup ); - new QRadioButton( i18n("Show both"), mDayNumGroup ); + new TQRadioButton( i18n("Show day number"), mDayNumGroup ); + new TQRadioButton( i18n("Show days to end of year"), mDayNumGroup ); + new TQRadioButton( i18n("Show both"), mDayNumGroup ); load(); } diff --git a/korganizer/plugins/datenums/configdialog.h b/korganizer/plugins/datenums/configdialog.h index 15efaf04..cef3e013 100644 --- a/korganizer/plugins/datenums/configdialog.h +++ b/korganizer/plugins/datenums/configdialog.h @@ -27,7 +27,7 @@ class ConfigDialog : public KDialogBase { Q_OBJECT public: - ConfigDialog(QWidget *parent=0); + ConfigDialog(TQWidget *parent=0); virtual ~ConfigDialog(); protected: @@ -38,7 +38,7 @@ class ConfigDialog : public KDialogBase void slotOk(); private: - QButtonGroup *mDayNumGroup; + TQButtonGroup *mDayNumGroup; }; #endif diff --git a/korganizer/plugins/datenums/datenums.cpp b/korganizer/plugins/datenums/datenums.cpp index a849f39f..af022837 100644 --- a/korganizer/plugins/datenums/datenums.cpp +++ b/korganizer/plugins/datenums/datenums.cpp @@ -40,7 +40,7 @@ Datenums::Datenums() mDateNum = config.readNumEntry( "ShowDayNumbers", 0 ); } -void Datenums::configure(QWidget *parent) +void Datenums::configure(TQWidget *parent) { ConfigDialog *dlg = new ConfigDialog(parent); dlg->exec(); @@ -48,12 +48,12 @@ void Datenums::configure(QWidget *parent) } -QString Datenums::shortText(const QDate &date) +TQString Datenums::shortText(const TQDate &date) { int doy = KOGlobals::self()->calendarSystem()->dayOfYear(date); switch (mDateNum) { case 1: // only days until end of year - return QString::number( KOGlobals::self()->calendarSystem()->daysInYear(date) - doy ); + return TQString::number( KOGlobals::self()->calendarSystem()->daysInYear(date) - doy ); break; case 2: // both day of year and days till end of year return i18n("dayOfYear / daysTillEndOfYear", "%1 / %2").arg( doy ) @@ -61,12 +61,12 @@ QString Datenums::shortText(const QDate &date) break; case 0: // only day of year default: - return QString::number( doy ); + return TQString::number( doy ); } - return QString::number( doy ); + return TQString::number( doy ); } -QString Datenums::info() +TQString Datenums::info() { return i18n("This plugin provides numbers of days and weeks."); } diff --git a/korganizer/plugins/datenums/datenums.h b/korganizer/plugins/datenums/datenums.h index af3e4647..f9ca7783 100644 --- a/korganizer/plugins/datenums/datenums.h +++ b/korganizer/plugins/datenums/datenums.h @@ -19,7 +19,7 @@ #ifndef KORG_DATENUMS_H #define KORG_DATENUMS_H -#include <qstring.h> +#include <tqstring.h> #include <calendar/calendardecoration.h> @@ -30,10 +30,10 @@ class Datenums : public CalendarDecoration { Datenums(); ~Datenums() {} - void configure(QWidget *parent); - QString shortText(const QDate &); + void configure(TQWidget *parent); + TQString shortText(const TQDate &); - QString info(); + TQString info(); protected: int mDateNum; }; diff --git a/korganizer/plugins/exchange/exchange.cpp b/korganizer/plugins/exchange/exchange.cpp index 86377f04..3d3719ed 100644 --- a/korganizer/plugins/exchange/exchange.cpp +++ b/korganizer/plugins/exchange/exchange.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qfile.h> +#include <tqfile.h> #include <kapplication.h> #include <kconfig.h> @@ -69,29 +69,29 @@ Exchange::Exchange(KOrg::MainWindow *parent, const char *name) : setXMLFile("plugins/exchangeui.rc"); - new KAction(i18n("&Download..."), 0, this, SLOT(download()), + new KAction(i18n("&Download..."), 0, this, TQT_SLOT(download()), actionCollection(), "exchange_download"); - KAction *action = new KAction(i18n("&Upload Event..."), 0, this, SLOT(upload()), + KAction *action = new KAction(i18n("&Upload Event..."), 0, this, TQT_SLOT(upload()), actionCollection(), "exchange_upload"); - QObject::connect(mainWindow()->view(),SIGNAL(incidenceSelected(Incidence *)), - this, SLOT(slotIncidenceSelected(Incidence *))); + TQObject::connect(mainWindow()->view(),TQT_SIGNAL(incidenceSelected(Incidence *)), + this, TQT_SLOT(slotIncidenceSelected(Incidence *))); action->setEnabled( false ); - QObject::connect(this,SIGNAL(enableIncidenceActions(bool)), - action,SLOT(setEnabled(bool))); + TQObject::connect(this,TQT_SIGNAL(enableIncidenceActions(bool)), + action,TQT_SLOT(setEnabled(bool))); - action = new KAction(i18n("De&lete Event"), 0, this, SLOT(remove()), + action = new KAction(i18n("De&lete Event"), 0, this, TQT_SLOT(remove()), actionCollection(), "exchange_delete"); - QObject::connect(this,SIGNAL(enableIncidenceActions(bool)), - action,SLOT(setEnabled(bool))); + TQObject::connect(this,TQT_SIGNAL(enableIncidenceActions(bool)), + action,TQT_SLOT(setEnabled(bool))); action->setEnabled( false ); - new KAction(i18n("&Configure..."), 0, this, SLOT(configure()), + new KAction(i18n("&Configure..."), 0, this, TQT_SLOT(configure()), actionCollection(), "exchange_configure"); - connect( this, SIGNAL( calendarChanged() ), mainWindow()->view(), SLOT( updateView() ) ); - connect( this, SIGNAL( calendarChanged(const QDate &, const QDate &)), - mainWindow()->view(), SLOT(updateView(const QDate &, const QDate &)) ); + connect( this, TQT_SIGNAL( calendarChanged() ), mainWindow()->view(), TQT_SLOT( updateView() ) ); + connect( this, TQT_SIGNAL( calendarChanged(const TQDate &, const TQDate &)), + mainWindow()->view(), TQT_SLOT(updateView(const TQDate &, const TQDate &)) ); } Exchange::~Exchange() @@ -99,12 +99,12 @@ Exchange::~Exchange() kdDebug(5850) << "Exchange Plugin destructor" << endl; } -QString Exchange::info() +TQString Exchange::info() { return i18n("This plugin imports and export calendar events from/to a Microsoft Exchange 2000 Server."); } -QString Exchange::shortInfo() +TQString Exchange::shortInfo() { return i18n("Exchange Plugin"); } @@ -118,11 +118,11 @@ void Exchange::download() { ExchangeDialog dialog( mainWindow()->view()->startDate(), mainWindow()->view()->endDate() ); - if (dialog.exec() != QDialog::Accepted ) + if (dialog.exec() != TQDialog::Accepted ) return; - QDate start = dialog.m_start->date(); - QDate end = dialog.m_end->date(); + TQDate start = dialog.m_start->date(); + TQDate end = dialog.m_end->date(); KCal::Calendar* calendar = mainWindow()->view()->calendar(); @@ -183,13 +183,13 @@ void Exchange::configure() kdDebug(5850) << "Exchange::configure" << endl; ExchangeConfig dialog( mAccount ); - if (dialog.exec() == QDialog::Accepted ) + if (dialog.exec() == TQDialog::Accepted ) mAccount->save( "Calendar/Exchange Plugin" ); } -void Exchange::showError( int error, const QString& moreInfo /* = QString::null */ ) +void Exchange::showError( int error, const TQString& moreInfo /* = TQString::null */ ) { - QString errorText; + TQString errorText; switch( error ) { case KPIM::ExchangeClient::ResultOK: errorText = i18n( "No Error" ); diff --git a/korganizer/plugins/exchange/exchange.h b/korganizer/plugins/exchange/exchange.h index a145bd12..22a15f1c 100644 --- a/korganizer/plugins/exchange/exchange.h +++ b/korganizer/plugins/exchange/exchange.h @@ -19,8 +19,8 @@ #ifndef KORG_EXCHANGE_H #define KORG_EXCHANGE_H -#include <qstring.h> -#include <qdatetime.h> +#include <tqstring.h> +#include <tqdatetime.h> #include <korganizer/part.h> @@ -39,14 +39,14 @@ class Exchange : public KOrg::Part { Exchange( KOrg::MainWindow *, const char *name ); ~Exchange(); - QString info(); + TQString info(); // This method is used for the category of the key bindings - QString shortInfo(); + TQString shortInfo(); signals: void enableIncidenceActions( bool ); void calendarChanged(); - void calendarChanged(const QDate&start,const QDate&end); + void calendarChanged(const TQDate&start,const TQDate&end); private slots: void download(); @@ -58,7 +58,7 @@ class Exchange : public KOrg::Part { private: void test2(); - void showError( int error, const QString& moreInfo = QString::null ); + void showError( int error, const TQString& moreInfo = TQString::null ); KPIM::ExchangeClient *mClient; KPIM::ExchangeAccount* mAccount; diff --git a/korganizer/plugins/exchange/exchangeconfig.cpp b/korganizer/plugins/exchange/exchangeconfig.cpp index e75265ca..fe01324a 100644 --- a/korganizer/plugins/exchange/exchangeconfig.cpp +++ b/korganizer/plugins/exchange/exchangeconfig.cpp @@ -17,9 +17,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qlayout.h> -#include <qlabel.h> -#include <qcombobox.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqcombobox.h> #include <kapplication.h> #include <kconfig.h> @@ -31,7 +31,7 @@ #include "exchangeconfig.h" -ExchangeConfig::ExchangeConfig( KPIM::ExchangeAccount* account, QWidget* parent ) +ExchangeConfig::ExchangeConfig( KPIM::ExchangeAccount* account, TQWidget* parent ) : KDialogBase(Plain,i18n("Exchange Plugin"),Ok|Cancel,Ok,parent) { mAccount = account; @@ -39,38 +39,38 @@ ExchangeConfig::ExchangeConfig( KPIM::ExchangeAccount* account, QWidget* parent kdDebug(5850) << "Creating ExchangeConfig with account: " << account->host() << ":" << account->account() << endl; - QFrame *topFrame = plainPage(); - QGridLayout *topLayout = new QGridLayout( topFrame, 5, 3, 3 ); + TQFrame *topFrame = plainPage(); + TQGridLayout *topLayout = new TQGridLayout( topFrame, 5, 3, 3 ); m_host = new KLineEdit( mAccount->host(), topFrame ); - topLayout->addWidget( new QLabel( i18n( "Exchange server:" ), topFrame ), 0, 0 ); + topLayout->addWidget( new TQLabel( i18n( "Exchange server:" ), topFrame ), 0, 0 ); topLayout->addWidget( m_host, 0, 1 ); m_port = new KLineEdit( mAccount->port(), topFrame ); - topLayout->addWidget( new QLabel( i18n( "Port:" ), topFrame ), 1, 0 ); + topLayout->addWidget( new TQLabel( i18n( "Port:" ), topFrame ), 1, 0 ); topLayout->addWidget( m_port, 1, 1 ); m_user = new KLineEdit( mAccount->account(), topFrame ); - topLayout->addWidget( new QLabel( i18n( "User:" ), topFrame ), 2, 0 ); + topLayout->addWidget( new TQLabel( i18n( "User:" ), topFrame ), 2, 0 ); topLayout->addWidget( m_user, 2, 1 ); - connect( m_user, SIGNAL(textChanged(const QString&)), this, SLOT(slotUserChanged(const QString&)) ); + connect( m_user, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUserChanged(const TQString&)) ); m_password = new KLineEdit( mAccount->password(), topFrame ); - topLayout->addWidget( new QLabel( i18n( "Password:" ), topFrame ), 3, 0 ); + topLayout->addWidget( new TQLabel( i18n( "Password:" ), topFrame ), 3, 0 ); topLayout->addWidget( m_password, 3, 1 ); - m_password->setEchoMode( QLineEdit::Password ); + m_password->setEchoMode( TQLineEdit::Password ); - m_autoMailbox = new QCheckBox( i18n( "Determine mailbox automatically" ), topFrame ); + m_autoMailbox = new TQCheckBox( i18n( "Determine mailbox automatically" ), topFrame ); topLayout->addMultiCellWidget( m_autoMailbox, 4, 4, 0, 1 ); - connect( m_autoMailbox, SIGNAL(toggled(bool)), this, SLOT(slotToggleAuto(bool)) ); + connect( m_autoMailbox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleAuto(bool)) ); m_mailbox= new KLineEdit( mAccount->mailbox(), topFrame ); - topLayout->addWidget( new QLabel( i18n( "Mailbox URL:" ), topFrame ), 5, 0 ); + topLayout->addWidget( new TQLabel( i18n( "Mailbox URL:" ), topFrame ), 5, 0 ); topLayout->addWidget( m_mailbox, 5, 1 ); - m_tryFindMailbox = new QPushButton( "&Find", topFrame ); + m_tryFindMailbox = new TQPushButton( "&Find", topFrame ); topLayout->addWidget( m_tryFindMailbox, 5, 2 ); - connect( m_tryFindMailbox, SIGNAL(clicked()), this, SLOT(slotFindClicked()) ); + connect( m_tryFindMailbox, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFindClicked()) ); kapp->config()->setGroup( "Calendar/Exchange Plugin" ); bool autoChecked = kapp->config()->readBoolEntry( "auto-mailbox", true ); @@ -90,7 +90,7 @@ void ExchangeConfig::slotToggleAuto( bool on ) // } } -void ExchangeConfig::slotUserChanged( const QString& /*text*/ ) +void ExchangeConfig::slotUserChanged( const TQString& /*text*/ ) { // if ( m_mailboxEqualsUser->isChecked() ) { // m_mailbox->setText( "webdav://" + m_host->text() + "/exchange/" + text ); @@ -100,7 +100,7 @@ void ExchangeConfig::slotUserChanged( const QString& /*text*/ ) void ExchangeConfig::slotOk() { if ( m_autoMailbox->isChecked() ) { - QString mailbox = mAccount->tryFindMailbox( m_host->text(), m_port->text(), m_user->text(), m_password->text() ); + TQString mailbox = mAccount->tryFindMailbox( m_host->text(), m_port->text(), m_user->text(), m_password->text() ); if ( mailbox.isNull() ) { kdWarning() << "Could not find Exchange mailbox URL, incomplete settings!"<< endl; KMessageBox::sorry( this, "Could not determine mailbox URL" ); @@ -124,7 +124,7 @@ void ExchangeConfig::slotOk() void ExchangeConfig::slotFindClicked() { - QString mailbox = mAccount->tryFindMailbox( m_host->text(), m_port->text(), m_user->text(), m_password->text() ); + TQString mailbox = mAccount->tryFindMailbox( m_host->text(), m_port->text(), m_user->text(), m_password->text() ); if ( mailbox.isNull() ) { KMessageBox::sorry( this, "Could not determine mailbox URL" ); } else { diff --git a/korganizer/plugins/exchange/exchangeconfig.h b/korganizer/plugins/exchange/exchangeconfig.h index ba974ba2..0e18bfe2 100644 --- a/korganizer/plugins/exchange/exchangeconfig.h +++ b/korganizer/plugins/exchange/exchangeconfig.h @@ -19,8 +19,8 @@ #ifndef EXCHANGECONFIG_H #define EXCHANGECONFIG_H -#include <qcheckbox.h> -#include <qpushbutton.h> +#include <tqcheckbox.h> +#include <tqpushbutton.h> #include <kdialogbase.h> #include <klineedit.h> //#include <kpassdlg.h> @@ -31,7 +31,7 @@ class ExchangeConfig : public KDialogBase { Q_OBJECT public: - ExchangeConfig(KPIM::ExchangeAccount* account, QWidget *parent=0); + ExchangeConfig(KPIM::ExchangeAccount* account, TQWidget *parent=0); virtual ~ExchangeConfig(); // protected: @@ -40,7 +40,7 @@ class ExchangeConfig : public KDialogBase protected slots: void slotToggleAuto( bool on ); - void slotUserChanged( const QString& text ); + void slotUserChanged( const TQString& text ); void slotFindClicked(); void slotOk(); @@ -50,9 +50,9 @@ class ExchangeConfig : public KDialogBase KLineEdit *m_host; KLineEdit *m_port; KLineEdit *m_user; - QCheckBox *m_autoMailbox; + TQCheckBox *m_autoMailbox; KLineEdit *m_mailbox; - QPushButton* m_tryFindMailbox; + TQPushButton* m_tryFindMailbox; KLineEdit *m_password; }; diff --git a/korganizer/plugins/exchange/exchangedialog.cpp b/korganizer/plugins/exchange/exchangedialog.cpp index 249b07a9..de56a3a1 100644 --- a/korganizer/plugins/exchange/exchangedialog.cpp +++ b/korganizer/plugins/exchange/exchangedialog.cpp @@ -17,9 +17,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qlayout.h> -#include <qlabel.h> -#include <qcombobox.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqcombobox.h> #include <klocale.h> #include <kmessagebox.h> @@ -30,20 +30,20 @@ #include "exchangedialog.h" -ExchangeDialog::ExchangeDialog( const QDate &_start, const QDate &_end, QWidget *parent) +ExchangeDialog::ExchangeDialog( const TQDate &_start, const TQDate &_end, TQWidget *parent) : KDialogBase(Plain,i18n("Exchange Plugin"),Ok|Cancel,Ok,parent) { - QFrame *topFrame = plainPage(); - QGridLayout *topLayout = new QGridLayout( topFrame, 2, 2, 3 ); + TQFrame *topFrame = plainPage(); + TQGridLayout *topLayout = new TQGridLayout( topFrame, 2, 2, 3 ); - QLabel *label = new QLabel(i18n("Start date:"),topFrame); + TQLabel *label = new TQLabel(i18n("Start date:"),topFrame); topLayout->addWidget(label, 0, 0); m_start = new KDateWidget( _start, topFrame ); topLayout->addWidget( m_start, 0, 1 ); m_end = new KDateWidget( _end, topFrame ); - topLayout->addWidget( new QLabel( i18n( "End date:" ), topFrame ), 1, 0 ); + topLayout->addWidget( new TQLabel( i18n( "End date:" ), topFrame ), 1, 0 ); topLayout->addWidget( m_end, 1, 1 ); } diff --git a/korganizer/plugins/exchange/exchangedialog.h b/korganizer/plugins/exchange/exchangedialog.h index 440d48fd..bd0e2f26 100644 --- a/korganizer/plugins/exchange/exchangedialog.h +++ b/korganizer/plugins/exchange/exchangedialog.h @@ -28,7 +28,7 @@ class ExchangeDialog : public KDialogBase { Q_OBJECT public: - ExchangeDialog( const QDate &start, const QDate &end, QWidget *parent=0); + ExchangeDialog( const TQDate &start, const TQDate &end, TQWidget *parent=0); virtual ~ExchangeDialog(); protected slots: diff --git a/korganizer/plugins/hebrew/configdialog.cpp b/korganizer/plugins/hebrew/configdialog.cpp index aad50a68..6298151a 100644 --- a/korganizer/plugins/hebrew/configdialog.cpp +++ b/korganizer/plugins/hebrew/configdialog.cpp @@ -19,33 +19,33 @@ #include "configdialog.h" #include "configdialog.moc" #include <klocale.h> -#include <qlayout.h> +#include <tqlayout.h> #include <kapplication.h> #include <kglobal.h> #include <kconfig.h> #include <kstandarddirs.h> #include <ksimpleconfig.h> -ConfigDialog::ConfigDialog(QWidget * parent):KDialogBase(Plain, i18n("Configure Holidays"), Ok|Cancel, Ok, +ConfigDialog::ConfigDialog(TQWidget * parent):KDialogBase(Plain, i18n("Configure Holidays"), Ok|Cancel, Ok, parent) { - QFrame *topFrame = plainPage(); - QVBoxLayout *topLayout = - new QVBoxLayout(topFrame, 0, spacingHint()); + TQFrame *topFrame = plainPage(); + TQVBoxLayout *topLayout = + new TQVBoxLayout(topFrame, 0, spacingHint()); - israel_box = new QCheckBox(topFrame); + israel_box = new TQCheckBox(topFrame); israel_box->setText(i18n("Use Israeli holidays")); topLayout->addWidget(israel_box); - parsha_box = new QCheckBox(topFrame); + parsha_box = new TQCheckBox(topFrame); parsha_box->setText(i18n("Show weekly parsha")); topLayout->addWidget(parsha_box); - omer_box = new QCheckBox(topFrame); + omer_box = new TQCheckBox(topFrame); omer_box->setText(i18n("Show day of Omer")); topLayout->addWidget(omer_box); - chol_box = new QCheckBox(topFrame); + chol_box = new TQCheckBox(topFrame); chol_box->setText(i18n("Show Chol HaMoed")); topLayout->addWidget(chol_box); diff --git a/korganizer/plugins/hebrew/configdialog.h b/korganizer/plugins/hebrew/configdialog.h index 1d0d1811..1638f75c 100644 --- a/korganizer/plugins/hebrew/configdialog.h +++ b/korganizer/plugins/hebrew/configdialog.h @@ -20,7 +20,7 @@ #define CONFIGDIALOG_H #include <kdialogbase.h> -#include <qcheckbox.h> +#include <tqcheckbox.h> /** @author Jonathan Singer @@ -29,7 +29,7 @@ class ConfigDialog:public KDialogBase { Q_OBJECT public: - ConfigDialog(QWidget * parent = 0); + ConfigDialog(TQWidget * parent = 0); virtual ~ ConfigDialog(); protected: @@ -39,10 +39,10 @@ protected: protected slots: void slotOk(); private: - QCheckBox * omer_box; - QCheckBox *parsha_box; - QCheckBox *israel_box; - QCheckBox *chol_box; + TQCheckBox * omer_box; + TQCheckBox *parsha_box; + TQCheckBox *israel_box; + TQCheckBox *chol_box; }; diff --git a/korganizer/plugins/hebrew/converter.h b/korganizer/plugins/hebrew/converter.h index 8a3bc8ba..430f10eb 100644 --- a/korganizer/plugins/hebrew/converter.h +++ b/korganizer/plugins/hebrew/converter.h @@ -11,8 +11,8 @@ #ifndef CONVERTER_H #define CONVERTER_H -#include <qstring.h> -#include <qstringlist.h> +#include <tqstring.h> +#include <tqstringlist.h> struct DateResult { @@ -67,8 +67,8 @@ public: private: - static QStringList HebrewMonthNames; - static QStringList SecularMonthNames; + static TQStringList HebrewMonthNames; + static TQStringList SecularMonthNames; }; diff --git a/korganizer/plugins/hebrew/hebrew.cpp b/korganizer/plugins/hebrew/hebrew.cpp index 4c557d00..9fb0f2fb 100644 --- a/korganizer/plugins/hebrew/hebrew.cpp +++ b/korganizer/plugins/hebrew/hebrew.cpp @@ -43,7 +43,7 @@ public: K_EXPORT_COMPONENT_FACTORY( libkorg_hebrew, HebrewFactory ) -QString Hebrew::shortText(const QDate & date) +TQString Hebrew::shortText(const TQDate & date) { KConfig config("korganizerrc", true, false); // Open read-only, no kdeglobals @@ -55,7 +55,7 @@ QString Hebrew::shortText(const QDate & date) Holiday::ParshaP = config.readBoolEntry("Parsha", true); Holiday::CholP = config.readBoolEntry("Chol_HaMoed", true); Holiday::OmerP = config.readBoolEntry("Omer", true); - QString *label_text = new QString(); + TQString *label_text = new TQString(); int day = date.day(); int month = date.month(); @@ -74,14 +74,14 @@ QString Hebrew::shortText(const QDate & date) int hebrew_kvia = result.kvia; int hebrew_day_number = result.hebrew_day_number; - QStringList holidays = + TQStringList holidays = Holiday::FindHoliday(hebrew_month, hebrew_day, hebrew_day_of_week + 1, hebrew_kvia, hebrew_leap_year_p, IsraelP, hebrew_day_number, hebrew_year); KCalendarSystem *cal = KCalendarSystemFactory::create("hebrew"); - *label_text = QString("%1 %2").arg(cal->dayString(date, false)) + *label_text = TQString("%1 %2").arg(cal->dayString(date, false)) .arg(cal->monthName(date)); if (holidays.count()) @@ -97,13 +97,13 @@ QString Hebrew::shortText(const QDate & date) return *label_text; } -QString Hebrew::info() +TQString Hebrew::info() { return i18n("This plugin provides the date in the Jewish calendar."); } -void Hebrew::configure(QWidget * parent) +void Hebrew::configure(TQWidget * parent) { ConfigDialog *dlg = new ConfigDialog(parent); //parent? diff --git a/korganizer/plugins/hebrew/hebrew.h b/korganizer/plugins/hebrew/hebrew.h index 1153c101..c337f7ef 100644 --- a/korganizer/plugins/hebrew/hebrew.h +++ b/korganizer/plugins/hebrew/hebrew.h @@ -19,8 +19,8 @@ #ifndef KORG_HEBREW_H #define KORG_HEBREW_H -#include <qstring.h> -#include <qstringlist.h> +#include <tqstring.h> +#include <tqstringlist.h> #include <calendar/calendardecoration.h> using namespace KOrg; @@ -34,10 +34,10 @@ public: ~Hebrew() { } - void configure(QWidget * parent); - QString shortText(const QDate &); + void configure(TQWidget * parent); + TQString shortText(const TQDate &); - QString info(); + TQString info(); static bool IsraelP; private: diff --git a/korganizer/plugins/hebrew/holiday.cpp b/korganizer/plugins/hebrew/holiday.cpp index 732a0044..9b5ea3f1 100644 --- a/korganizer/plugins/hebrew/holiday.cpp +++ b/korganizer/plugins/hebrew/holiday.cpp @@ -15,7 +15,7 @@ bool Holiday::CholP; bool Holiday::OmerP; bool Holiday::ParshaP; -QStringList Holiday::holidays; +TQStringList Holiday::holidays; int Holiday::HolidayFlags; Holiday::Holiday() @@ -413,7 +413,7 @@ QStringList } /* Return a string corresponding to the nth day of the Omer */ -QString Holiday::Sfirah(int day) +TQString Holiday::Sfirah(int day) { /*static char buffer[40]; char *endings[] = {"th", "st", "nd", "rd"}; @@ -422,7 +422,7 @@ QString Holiday::Sfirah(int day) if ( ((day >= 11) && (day <= 19)) || (remainder > 3)) remainder = 0; sprintf(buffer, "%d%s day Omer", day, endings[remainder]); return buffer; */ - QString buffer; + TQString buffer; buffer.setNum(day); buffer + i18n(" Omer"); // Fix this to original function diff --git a/korganizer/plugins/hebrew/holiday.h b/korganizer/plugins/hebrew/holiday.h index 6c8c61d9..f73083fd 100644 --- a/korganizer/plugins/hebrew/holiday.h +++ b/korganizer/plugins/hebrew/holiday.h @@ -11,8 +11,8 @@ #ifndef HOLIDAY_H #define HOLIDAY_H -#include <qstring.h> -#include <qstringlist.h> +#include <tqstring.h> +#include <tqstringlist.h> #include <parsha.h> /** @author Jonathan Singer @@ -24,12 +24,12 @@ public: Holiday(); ~Holiday(); - static QStringList FindHoliday(int month, int day, int weekday, + static TQStringList FindHoliday(int month, int day, int weekday, int kvia, bool leap_year_p, bool israel_p, int day_number, int year); - static QString Sfirah(int); + static TQString Sfirah(int); static bool CholP; static bool OmerP; @@ -37,7 +37,7 @@ public: private: - static QStringList holidays; + static TQStringList holidays; static int HolidayFlags; //supposed to be extern //parsha Parsha_lookup; diff --git a/korganizer/plugins/hebrew/parsha.cpp b/korganizer/plugins/hebrew/parsha.cpp index 21fdf8a4..d8ff2dd6 100644 --- a/korganizer/plugins/hebrew/parsha.cpp +++ b/korganizer/plugins/hebrew/parsha.cpp @@ -11,7 +11,7 @@ #include "parsha.h" #include <klocale.h> -QStringList Parsha::parshiot_names; +TQStringList Parsha::parshiot_names; Parsha::Parsha() { @@ -243,7 +243,7 @@ QString } - QString buffer; + TQString buffer; if (array == NULL) /* Something is terribly wrong. */ diff --git a/korganizer/plugins/hebrew/parsha.h b/korganizer/plugins/hebrew/parsha.h index aac2625f..59099b0e 100644 --- a/korganizer/plugins/hebrew/parsha.h +++ b/korganizer/plugins/hebrew/parsha.h @@ -11,8 +11,8 @@ #ifndef PARSHA_H #define PARSHA_H -#include <qstring.h> -#include <qstringlist.h> +#include <tqstring.h> +#include <tqstringlist.h> /** @author Jonathan Singer @@ -23,11 +23,11 @@ public: Parsha(); ~Parsha(); - static QString FindParshaName(int daynumber, int kvia, bool leap_p, + static TQString FindParshaName(int daynumber, int kvia, bool leap_p, bool israel_p); private: - static QStringList parshiot_names; + static TQStringList parshiot_names; }; #endif diff --git a/korganizer/plugins/printing/journal/journalprint.cpp b/korganizer/plugins/printing/journal/journalprint.cpp index 31b1b10b..551f23a9 100644 --- a/korganizer/plugins/printing/journal/journalprint.cpp +++ b/korganizer/plugins/printing/journal/journalprint.cpp @@ -33,7 +33,7 @@ #include <kconfig.h> #include <kdebug.h> -#include <qbuttongroup.h> +#include <tqbuttongroup.h> #include "calprintjournalconfig_base.h" @@ -50,7 +50,7 @@ K_EXPORT_COMPONENT_FACTORY( libkorg_journalprint, JournalPrintFactory ) * Print Journal **************************************************************/ -QWidget *CalPrintJournal::createConfigWidget( QWidget *w ) +TQWidget *CalPrintJournal::createConfigWidget( TQWidget *w ) { return new CalPrintJournalConfig_Base( w ); } @@ -96,7 +96,7 @@ void CalPrintJournal::saveConfig() } } -void CalPrintJournal::setDateRange( const QDate& from, const QDate& to ) +void CalPrintJournal::setDateRange( const TQDate& from, const TQDate& to ) { CalPrintPluginBase::setDateRange( from, to ); CalPrintJournalConfig_Base *cfg = @@ -107,7 +107,7 @@ void CalPrintJournal::setDateRange( const QDate& from, const QDate& to ) } } -void CalPrintJournal::print( QPainter &p, int width, int height ) +void CalPrintJournal::print( TQPainter &p, int width, int height ) { int x=0, y=0; Journal::List journals( mCalendar->journals() ); @@ -116,14 +116,14 @@ void CalPrintJournal::print( QPainter &p, int width, int height ) journals.clear(); Journal::List::Iterator it = allJournals.begin(); for ( ; it != allJournals.end(); ++it ) { - QDate dt = (*it)->dtStart().date(); + TQDate dt = (*it)->dtStart().date(); if ( mFromDate <= dt && dt <= mToDate ) { journals.append( *it ); } } } - drawHeader( p, i18n("Journal entries"), QDate(), QDate(), QRect( 0, 0, width, headerHeight() ) ); + drawHeader( p, i18n("Journal entries"), TQDate(), TQDate(), TQRect( 0, 0, width, headerHeight() ) ); y = headerHeight() + 15; Journal::List::Iterator it = journals.begin(); diff --git a/korganizer/plugins/printing/journal/journalprint.h b/korganizer/plugins/printing/journal/journalprint.h index fb91759f..f1c0db44 100644 --- a/korganizer/plugins/printing/journal/journalprint.h +++ b/korganizer/plugins/printing/journal/journalprint.h @@ -40,19 +40,19 @@ class CalPrintJournal : public CalPrintPluginBase public: CalPrintJournal():CalPrintPluginBase() {} virtual ~CalPrintJournal() {} - virtual QString description() { return i18n("Print &journal"); } - virtual QString info() { return i18n("Prints all journals for a given date range"); } + virtual TQString description() { return i18n("Print &journal"); } + virtual TQString info() { return i18n("Prints all journals for a given date range"); } virtual int sortID() { return CalPrinterBase::Journallist; } virtual bool enabled() { return true; } - virtual QWidget *createConfigWidget( QWidget* ); + virtual TQWidget *createConfigWidget( TQWidget* ); public: - virtual void print(QPainter &p, int width, int height); + virtual void print(TQPainter &p, int width, int height); virtual void readSettingsWidget(); virtual void setSettingsWidget(); virtual void loadConfig(); virtual void saveConfig(); - virtual void setDateRange( const QDate& from, const QDate& to ); + virtual void setDateRange( const TQDate& from, const TQDate& to ); protected: bool mUseDateRange; diff --git a/korganizer/plugins/printing/list/listprint.cpp b/korganizer/plugins/printing/list/listprint.cpp index 0221f1c6..4a90bfb5 100644 --- a/korganizer/plugins/printing/list/listprint.cpp +++ b/korganizer/plugins/printing/list/listprint.cpp @@ -34,7 +34,7 @@ #include <kconfig.h> #include <kdebug.h> -#include <qbuttongroup.h> +#include <tqbuttongroup.h> #include "calprintlistconfig_base.h" @@ -52,7 +52,7 @@ K_EXPORT_COMPONENT_FACTORY( libkorg_listprint, ListPrintFactory ) * Print Day **************************************************************/ -QWidget *CalPrintList::createConfigWidget( QWidget *w ) +TQWidget *CalPrintList::createConfigWidget( TQWidget *w ) { return new CalPrintListConfig_Base( w ); } @@ -98,7 +98,7 @@ void CalPrintList::saveConfig() } } -void CalPrintList::setDateRange( const QDate& from, const QDate& to ) +void CalPrintList::setDateRange( const TQDate& from, const TQDate& to ) { CalPrintPluginBase::setDateRange( from, to ); CalPrintListConfig_Base *cfg = @@ -109,7 +109,7 @@ void CalPrintList::setDateRange( const QDate& from, const QDate& to ) } } -void CalPrintList::print( QPainter &p, int width, int height ) +void CalPrintList::print( TQPainter &p, int width, int height ) { } diff --git a/korganizer/plugins/printing/list/listprint.h b/korganizer/plugins/printing/list/listprint.h index dc370ba8..561e0d46 100644 --- a/korganizer/plugins/printing/list/listprint.h +++ b/korganizer/plugins/printing/list/listprint.h @@ -39,18 +39,18 @@ class CalPrintList : public CalPrintPluginBase public: CalPrintList():CalPrintPluginBase() {} virtual ~CalPrintList() {} - virtual QString description() { return i18n("Print list"); } - virtual QString info() { return i18n("Prints a list of events and to-dos"); } + virtual TQString description() { return i18n("Print list"); } + virtual TQString info() { return i18n("Prints a list of events and to-dos"); } virtual int sortID() { return 950; } - virtual QWidget *createConfigWidget( QWidget* ); + virtual TQWidget *createConfigWidget( TQWidget* ); public: - virtual void print(QPainter &p, int width, int height); + virtual void print(TQPainter &p, int width, int height); virtual void readSettingsWidget(); virtual void setSettingsWidget(); virtual void loadConfig(); virtual void saveConfig(); - virtual void setDateRange( const QDate& from, const QDate& to ); + virtual void setDateRange( const TQDate& from, const TQDate& to ); protected: bool mUseDateRange; diff --git a/korganizer/plugins/printing/whatsnext/whatsnextprint.cpp b/korganizer/plugins/printing/whatsnext/whatsnextprint.cpp index 48dd3043..b5d43ae9 100644 --- a/korganizer/plugins/printing/whatsnext/whatsnextprint.cpp +++ b/korganizer/plugins/printing/whatsnext/whatsnextprint.cpp @@ -34,7 +34,7 @@ #include <kconfig.h> #include <kdebug.h> -#include <qbuttongroup.h> +#include <tqbuttongroup.h> #include "calprintwhatsnextconfig_base.h" @@ -51,7 +51,7 @@ K_EXPORT_COMPONENT_FACTORY( libkorg_whatsnextprint, WhatsNextPrintFactory ) * Print What's Next **************************************************************/ -QWidget *CalPrintWhatsNext::createConfigWidget( QWidget *w ) +TQWidget *CalPrintWhatsNext::createConfigWidget( TQWidget *w ) { return new CalPrintWhatsNextConfig_Base( w ); } @@ -97,7 +97,7 @@ void CalPrintWhatsNext::saveConfig() } } -void CalPrintWhatsNext::setDateRange( const QDate& from, const QDate& to ) +void CalPrintWhatsNext::setDateRange( const TQDate& from, const TQDate& to ) { CalPrintPluginBase::setDateRange( from, to ); CalPrintWhatsNextConfig_Base *cfg = @@ -108,7 +108,7 @@ void CalPrintWhatsNext::setDateRange( const QDate& from, const QDate& to ) } } -void CalPrintWhatsNext::print( QPainter &p, int width, int height ) +void CalPrintWhatsNext::print( TQPainter &p, int width, int height ) { } diff --git a/korganizer/plugins/printing/whatsnext/whatsnextprint.h b/korganizer/plugins/printing/whatsnext/whatsnextprint.h index bdba1f71..fb9ee66e 100644 --- a/korganizer/plugins/printing/whatsnext/whatsnextprint.h +++ b/korganizer/plugins/printing/whatsnext/whatsnextprint.h @@ -39,18 +39,18 @@ class CalPrintWhatsNext : public CalPrintPluginBase public: CalPrintWhatsNext():CalPrintPluginBase() {} virtual ~CalPrintWhatsNext() {} - virtual QString description() { return i18n("Print What's Next"); } - virtual QString info() { return i18n("Prints a list of all upcoming events and todos."); } + virtual TQString description() { return i18n("Print What's Next"); } + virtual TQString info() { return i18n("Prints a list of all upcoming events and todos."); } virtual int sortID() { return 50; } - virtual QWidget *createConfigWidget( QWidget* ); + virtual TQWidget *createConfigWidget( TQWidget* ); public: - virtual void print(QPainter &p, int width, int height); + virtual void print(TQPainter &p, int width, int height); virtual void readSettingsWidget(); virtual void setSettingsWidget(); virtual void loadConfig(); virtual void saveConfig(); - virtual void setDateRange( const QDate& from, const QDate& to ); + virtual void setDateRange( const TQDate& from, const TQDate& to ); protected: bool mUseDateRange; diff --git a/korganizer/plugins/printing/year/yearprint.cpp b/korganizer/plugins/printing/year/yearprint.cpp index d71cd9f0..5f3a9dc6 100644 --- a/korganizer/plugins/printing/year/yearprint.cpp +++ b/korganizer/plugins/printing/year/yearprint.cpp @@ -34,10 +34,10 @@ #include <kcalendarsystem.h> #include <klocale.h> -#include <qcheckbox.h> -#include <qspinbox.h> -#include <qcombobox.h> -#include <qpainter.h> +#include <tqcheckbox.h> +#include <tqspinbox.h> +#include <tqcombobox.h> +#include <tqpainter.h> class YearPrintFactory : public KOrg::PrintPluginFactory { public: @@ -51,7 +51,7 @@ K_EXPORT_COMPONENT_FACTORY( libkorg_yearlyprint, YearPrintFactory ) * Print Year **************************************************************/ -QWidget *CalPrintYear::createConfigWidget( QWidget *w ) +TQWidget *CalPrintYear::createConfigWidget( TQWidget *w ) { return new CalPrintYearConfig_Base( w ); } @@ -74,7 +74,7 @@ void CalPrintYear::setSettingsWidget() dynamic_cast<CalPrintYearConfig_Base*>( mConfigWidget ); if ( cfg ) { const KCalendarSystem *calsys = calendarSystem(); - QDate start; + TQDate start; calsys->setYMD( start, mYear, 1, 1 ); int months = calsys->monthsInYear( start ); int pages=0, prevPages=0; @@ -82,12 +82,12 @@ void CalPrintYear::setSettingsWidget() pages = (months-1)/i + 1; if ( pages != prevPages ) { prevPages = pages; - cfg->mPages->insertItem( QString::number( pages ), 0 ); + cfg->mPages->insertItem( TQString::number( pages ), 0 ); } } cfg->mYear->setValue( mYear ); - cfg->mPages->setCurrentText( QString::number( mPages ) ); + cfg->mPages->setCurrentText( TQString::number( mPages ) ); cfg->mSubDays->setCurrentItem( (mSubDaysEvents==Text)?0:1 ); cfg->mHolidays->setCurrentItem( (mHolidaysEvents==Text)?0:1 ); @@ -125,7 +125,7 @@ KPrinter::Orientation CalPrintYear::defaultOrientation() } -void CalPrintYear::setDateRange( const QDate& from, const QDate& to ) +void CalPrintYear::setDateRange( const TQDate& from, const TQDate& to ) { CalPrintPluginBase::setDateRange( from, to ); CalPrintYearConfig_Base *cfg = @@ -135,21 +135,21 @@ void CalPrintYear::setDateRange( const QDate& from, const QDate& to ) } } -void CalPrintYear::print( QPainter &p, int width, int height ) +void CalPrintYear::print( TQPainter &p, int width, int height ) { kdDebug()<<"CalPrintYear::print, width: "<<width<<", height: "<<height<<endl; - QRect headerBox( 0, 0, width, headerHeight() ); + TQRect headerBox( 0, 0, width, headerHeight() ); kdDebug()<<"headerBox: "<<headerBox<<endl; const KCalendarSystem *calsys = calendarSystem(); KLocale *locale = KGlobal::locale(); if ( !calsys || !locale ) return; - QDate start; + TQDate start; calsys->setYMD( start, mYear, 1, 1 ); // Determine the nr of months and the max nr of days per month (dependent on // calendar system!!!!) - QDate temp( start ); + TQDate temp( start ); int months = calsys->monthsInYear( start ); int maxdays = 1; for ( int i = 1; i< months; ++i ) { @@ -167,9 +167,9 @@ kdDebug()<<"headerBox: "<<headerBox<<endl; if ( page > 0 ) { mPrinter->newPage(); } - QDate end( calsys->addMonths( start, monthsPerPage ) ); + TQDate end( calsys->addMonths( start, monthsPerPage ) ); end = calsys->addDays( end, -1 ); - QString title; + TQString title; if ( orientation() == KPrinter::Landscape ) { title = i18n("date from - to", "%1 - %2"); } else { @@ -181,7 +181,7 @@ kdDebug()<<"headerBox: "<<headerBox<<endl; calsys->addMonths( start, -1), calsys->addMonths( start, monthsPerPage ), headerBox ); - QRect monthesBox( headerBox ); + TQRect monthesBox( headerBox ); monthesBox.setTop( monthesBox.bottom() + padding() ); monthesBox.setBottom( height ); @@ -192,7 +192,7 @@ kdDebug()<<"headerBox: "<<headerBox<<endl; if ( ++thismonth > months ) break; int xstart = int(j*monthwidth + 0.5); int xend = int((j+1)*monthwidth + 0.5); - QRect monthBox( xstart, monthesBox.top(), xend-xstart, monthesBox.height() ); + TQRect monthBox( xstart, monthesBox.top(), xend-xstart, monthesBox.height() ); drawMonth( p, temp, monthBox, maxdays, mSubDaysEvents, mHolidaysEvents ); temp = calsys->addMonths( temp, 1 ); diff --git a/korganizer/plugins/printing/year/yearprint.h b/korganizer/plugins/printing/year/yearprint.h index 3191150b..f993e5da 100644 --- a/korganizer/plugins/printing/year/yearprint.h +++ b/korganizer/plugins/printing/year/yearprint.h @@ -39,20 +39,20 @@ class CalPrintYear : public CalPrintPluginBase public: CalPrintYear():CalPrintPluginBase() {} virtual ~CalPrintYear() {} - virtual QString description() { return i18n("Print &Year"); } - virtual QString info() { return i18n("Prints a calendar for an entire year"); } + virtual TQString description() { return i18n("Print &Year"); } + virtual TQString info() { return i18n("Prints a calendar for an entire year"); } virtual int sortID() { return 900; } virtual bool enabled() { return true; } - virtual QWidget *createConfigWidget( QWidget* ); + virtual TQWidget *createConfigWidget( TQWidget* ); virtual KPrinter::Orientation defaultOrientation(); public: - virtual void print(QPainter &p, int width, int height); + virtual void print(TQPainter &p, int width, int height); virtual void readSettingsWidget(); virtual void setSettingsWidget(); virtual void loadConfig(); virtual void saveConfig(); - virtual void setDateRange( const QDate& from, const QDate& to ); + virtual void setDateRange( const TQDate& from, const TQDate& to ); protected: int mYear; diff --git a/korganizer/plugins/projectview/koprojectview.cpp b/korganizer/plugins/projectview/koprojectview.cpp index 0f260195..6c448b37 100644 --- a/korganizer/plugins/projectview/koprojectview.cpp +++ b/korganizer/plugins/projectview/koprojectview.cpp @@ -17,16 +17,16 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qlayout.h> -#include <qheader.h> -#include <qpushbutton.h> -#include <qfont.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qlistbox.h> -#include <qpopupmenu.h> -#include <qstrlist.h> -#include <qlistview.h> +#include <tqlayout.h> +#include <tqheader.h> +#include <tqpushbutton.h> +#include <tqfont.h> +#include <tqlabel.h> +#include <tqlineedit.h> +#include <tqlistbox.h> +#include <tqpopupmenu.h> +#include <tqstrlist.h> +#include <tqlistview.h> #include <kapplication.h> #include <kdebug.h> @@ -46,9 +46,9 @@ using namespace KOrg; KOProjectViewItem::KOProjectViewItem(Todo *event,KGanttItem* parentTask, - const QString& text, - const QDateTime& start, - const QDateTime& end) : + const TQString& text, + const TQDateTime& start, + const TQDateTime& end) : KGanttItem(parentTask,text,start,end) { mEvent = event; @@ -64,30 +64,30 @@ Todo *KOProjectViewItem::event() } -KOProjectView::KOProjectView(Calendar *calendar,QWidget* parent, +KOProjectView::KOProjectView(Calendar *calendar,TQWidget* parent, const char* name) : KOrg::BaseView(calendar,parent,name) { - QBoxLayout *topLayout = new QVBoxLayout(this); + TQBoxLayout *topLayout = new TQVBoxLayout(this); - QBoxLayout *topBar = new QHBoxLayout; + TQBoxLayout *topBar = new QHBoxLayout; topLayout->addLayout(topBar); - QLabel *title = new QLabel(i18n("Project View"),this); - title->setFrameStyle(QFrame::Panel|QFrame::Raised); + TQLabel *title = new TQLabel(i18n("Project View"),this); + title->setFrameStyle(TQFrame::Panel|TQFrame::Raised); topBar->addWidget(title,1); - QPushButton *zoomIn = new QPushButton(i18n("Zoom In"),this); + TQPushButton *zoomIn = new TQPushButton(i18n("Zoom In"),this); topBar->addWidget(zoomIn,0); - connect(zoomIn,SIGNAL(clicked()),SLOT(zoomIn())); + connect(zoomIn,TQT_SIGNAL(clicked()),TQT_SLOT(zoomIn())); - QPushButton *zoomOut = new QPushButton(i18n("Zoom Out"),this); + TQPushButton *zoomOut = new TQPushButton(i18n("Zoom Out"),this); topBar->addWidget(zoomOut,0); - connect(zoomOut,SIGNAL(clicked()),SLOT(zoomOut())); + connect(zoomOut,TQT_SIGNAL(clicked()),TQT_SLOT(zoomOut())); - QPushButton *menuButton = new QPushButton(i18n("Select Mode"),this); + TQPushButton *menuButton = new TQPushButton(i18n("Select Mode"),this); topBar->addWidget(menuButton,0); - connect(menuButton,SIGNAL(clicked()),SLOT(showModeMenu())); + connect(menuButton,TQT_SIGNAL(clicked()),TQT_SLOT(showModeMenu())); createMainTask(); @@ -107,8 +107,8 @@ KOProjectView::KOProjectView(Calendar *calendar,QWidget* parent, void KOProjectView::createMainTask() { mMainTask = new KGanttItem(0,i18n("main task"), - QDateTime::currentDateTime(), - QDateTime::currentDateTime()); + TQDateTime::currentDateTime(), + TQDateTime::currentDateTime()); mMainTask->setMode(KGanttItem::Rubberband); mMainTask->setStyle(KGanttItem::DrawBorder | KGanttItem::DrawText | KGanttItem::DrawHandle); @@ -122,7 +122,7 @@ void KOProjectView::readSettings() KConfig config( "korganizerrc", true, false); // Open read-only, no kdeglobals config.setGroup("Views"); - QValueList<int> sizes = config.readIntListEntry("Separator ProjectView"); + TQValueList<int> sizes = config.readIntListEntry("Separator ProjectView"); if (sizes.count() == 2) { mGantt->splitter()->setSizes(sizes); } @@ -134,7 +134,7 @@ void KOProjectView::writeSettings(KConfig *config) config->setGroup("Views"); - QValueList<int> list = mGantt->splitter()->sizes(); + TQValueList<int> list = mGantt->splitter()->sizes(); config->writeEntry("Separator ProjectView",list); } @@ -144,7 +144,7 @@ void KOProjectView::updateView() kdDebug(5850) << "KOProjectView::updateView()" << endl; // Clear Gantt view - QPtrList<KGanttItem> subs = mMainTask->getSubItems(); + TQPtrList<KGanttItem> subs = mMainTask->getSubItems(); KGanttItem *t=subs.first(); while(t) { KGanttItem *nt=subs.next(); @@ -154,12 +154,12 @@ void KOProjectView::updateView() #if 0 KGanttItem* t1 = new KGanttItem(mGantt->getMainTask(), "task 1, no subtasks", - QDateTime::currentDateTime().addDays(10), - QDateTime::currentDateTime().addDays(20) ); + TQDateTime::currentDateTime().addDays(10), + TQDateTime::currentDateTime().addDays(20) ); KGanttItem* t2 = new KGanttItem(mGantt->getMainTask(), "task 2, subtasks, no rubberband", - QDateTime(QDate(2000,10,1)), - QDateTime(QDate(2000,10,31)) ); + TQDateTime(TQDate(2000,10,1)), + TQDateTime(TQDate(2000,10,31)) ); #endif Todo::List todoList = calendar()->todos(); @@ -174,7 +174,7 @@ void KOProjectView::updateView() kdDebug(5850) << " (related to " << t->getRelatedTo()->getSummary() << ")" << endl; } - QPtrList<Event> l = t->getRelations(); + TQPtrList<Event> l = t->getRelations(); Event *c; for(c=l.first();c;c=l.next()) { kdDebug(5850) << " - relation: " << c->getSummary() << endl; @@ -194,14 +194,14 @@ void KOProjectView::updateView() } } -QMap<Todo *,KGanttItem *>::ConstIterator +TQMap<Todo *,KGanttItem *>::ConstIterator KOProjectView::insertTodoItem(Todo *todo) { // kdDebug(5850) << "KOProjectView::insertTodoItem(): " << todo->getSummary() << endl; Todo *relatedTodo = dynamic_cast<Todo *>(todo->relatedTo()); if (relatedTodo) { // kdDebug(5850) << " has Related" << endl; - QMap<Todo *,KGanttItem *>::ConstIterator itemIterator; + TQMap<Todo *,KGanttItem *>::ConstIterator itemIterator; itemIterator = mTodoMap.find(relatedTodo); if (itemIterator == mTodoMap.end()) { // kdDebug(5850) << " related not yet in list" << endl; @@ -218,20 +218,20 @@ QMap<Todo *,KGanttItem *>::ConstIterator KGanttItem *KOProjectView::createTask(KGanttItem *parent,Todo *todo) { - QDateTime startDt; - QDateTime endDt; + TQDateTime startDt; + TQDateTime endDt; if (todo->hasStartDate() && !todo->hasDueDate()) { // start date but no due date startDt = todo->dtStart(); - endDt = QDateTime::currentDateTime(); + endDt = TQDateTime::currentDateTime(); } else if (!todo->hasStartDate() && todo->hasDueDate()) { // due date but no start date startDt = todo->dtDue(); endDt = todo->dtDue(); } else if (!todo->hasStartDate() || !todo->hasDueDate()) { - startDt = QDateTime::currentDateTime(); - endDt = QDateTime::currentDateTime(); + startDt = TQDateTime::currentDateTime(); + endDt = TQDateTime::currentDateTime(); } else { startDt = todo->dtStart(); endDt = todo->dtDue(); @@ -239,10 +239,10 @@ KGanttItem *KOProjectView::createTask(KGanttItem *parent,Todo *todo) KGanttItem *task = new KOProjectViewItem(todo,parent,todo->summary(),startDt, endDt); - connect(task,SIGNAL(changed(KGanttItem*, KGanttItem::Change)), - SLOT(taskChanged(KGanttItem*,KGanttItem::Change))); + connect(task,TQT_SIGNAL(changed(KGanttItem*, KGanttItem::Change)), + TQT_SLOT(taskChanged(KGanttItem*,KGanttItem::Change))); if (todo->relations().count() > 0) { - task->setBrush(QBrush(QColor(240,240,240), QBrush::Dense4Pattern)); + task->setBrush(TQBrush(TQColor(240,240,240), TQBrush::Dense4Pattern)); } return task; @@ -276,7 +276,7 @@ void KOProjectView::changeIncidenceDisplay(Incidence *, int) updateView(); } -void KOProjectView::showDates(const QDate &, const QDate &) +void KOProjectView::showDates(const TQDate &, const TQDate &) { updateView(); } @@ -287,21 +287,21 @@ void KOProjectView::showIncidences( const Incidence::List & ) } #if 0 -void KOProjectView::editItem(QListViewItem *item) +void KOProjectView::editItem(TQListViewItem *item) { emit editIncidenceSignal(((KOProjectViewItem *)item)->event()); } -void KOProjectView::showItem(QListViewItem *item) +void KOProjectView::showItem(TQListViewItem *item) { emit showIncidenceSignal(((KOProjectViewItem *)item)->event()); } -void KOProjectView::popupMenu(QListViewItem *item,const QPoint &,int) +void KOProjectView::popupMenu(TQListViewItem *item,const TQPoint &,int) { mActiveItem = (KOProjectViewItem *)item; - if (item) mItemPopupMenu->popup(QCursor::pos()); - else mPopupMenu->popup(QCursor::pos()); + if (item) mItemPopupMenu->popup(TQCursor::pos()); + else mPopupMenu->popup(TQCursor::pos()); } void KOProjectView::newTodo() @@ -316,7 +316,7 @@ void KOProjectView::newSubTodo() } } -void KOProjectView::itemClicked(QListViewItem *item) +void KOProjectView::itemClicked(TQListViewItem *item) { if (!item) return; @@ -337,7 +337,7 @@ void KOProjectView::itemClicked(QListViewItem *item) void KOProjectView::showModeMenu() { - mGantt->menu()->popup(QCursor::pos()); + mGantt->menu()->popup(TQCursor::pos()); } void KOProjectView::taskChanged(KGanttItem *task,KGanttItem::Change change) diff --git a/korganizer/plugins/projectview/koprojectview.h b/korganizer/plugins/projectview/koprojectview.h index a356fe02..4d2d8226 100644 --- a/korganizer/plugins/projectview/koprojectview.h +++ b/korganizer/plugins/projectview/koprojectview.h @@ -20,10 +20,10 @@ #define KOPROJECTVIEW_H /* $Id$ */ -#include <qptrlist.h> -#include <qfontmetrics.h> +#include <tqptrlist.h> +#include <tqfontmetrics.h> -#include <qmap.h> +#include <tqmap.h> #include <libkcal/calendar.h> #include <libkcal/event.h> @@ -46,8 +46,8 @@ class QListView; */ class KOProjectViewItem : public KGanttItem { public: - KOProjectViewItem(Todo *,KGanttItem* parentTask, const QString& text, - const QDateTime& start, const QDateTime& end); + KOProjectViewItem(Todo *,KGanttItem* parentTask, const TQString& text, + const TQDateTime& start, const TQDateTime& end); ~KOProjectViewItem(); Todo *event(); @@ -67,7 +67,7 @@ class KOProjectView : public KOrg::BaseView { Q_OBJECT public: - KOProjectView(Calendar *, QWidget* parent=0, const char* name=0 ); + KOProjectView(Calendar *, TQWidget* parent=0, const char* name=0 ); ~KOProjectView() {} Incidence::List selectedIncidences(); @@ -85,16 +85,16 @@ class KOProjectView : public KOrg::BaseView void changeIncidenceDisplay(Incidence *, int); - void showDates(const QDate &start, const QDate &end); + void showDates(const TQDate &start, const TQDate &end); void showIncidences( const Incidence::List &incidenceList ); /* - void editItem(QListViewItem *item); - void showItem(QListViewItem *item); - void popupMenu(QListViewItem *item,const QPoint &,int); + void editItem(TQListViewItem *item); + void showItem(TQListViewItem *item); + void popupMenu(TQListViewItem *item,const TQPoint &,int); void newTodo(); void newSubTodo(); - void itemClicked(QListViewItem *); + void itemClicked(TQListViewItem *); */ protected slots: @@ -110,9 +110,9 @@ class KOProjectView : public KOrg::BaseView KGantt *mGantt; KGanttItem *mMainTask; - QMap<Todo *,KGanttItem *>::ConstIterator insertTodoItem(Todo *todo); + TQMap<Todo *,KGanttItem *>::ConstIterator insertTodoItem(Todo *todo); - QMap<Todo *,KGanttItem *> mTodoMap; + TQMap<Todo *,KGanttItem *> mTodoMap; }; #endif diff --git a/korganizer/plugins/projectview/projectview.cpp b/korganizer/plugins/projectview/projectview.cpp index 3fdf84b4..2e7b3dc6 100644 --- a/korganizer/plugins/projectview/projectview.cpp +++ b/korganizer/plugins/projectview/projectview.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qfile.h> +#include <tqfile.h> #include <kapplication.h> #include <kconfig.h> @@ -52,7 +52,7 @@ ProjectView::ProjectView(KOrg::MainWindow *parent, const char *name) : setXMLFile("plugins/projectviewui.rc"); - new KAction(i18n("&Project"), "project", 0, this, SLOT(showView()), + new KAction(i18n("&Project"), "project", 0, this, TQT_SLOT(showView()), actionCollection(), "view_project"); } @@ -60,12 +60,12 @@ ProjectView::~ProjectView() { } -QString ProjectView::info() +TQString ProjectView::info() { return i18n("This plugin provides a Gantt diagram as project view."); } -QString ProjectView::shortInfo() +TQString ProjectView::shortInfo() { return i18n("Project View Plugin"); } diff --git a/korganizer/plugins/projectview/projectview.h b/korganizer/plugins/projectview/projectview.h index acc9a604..a3f372a8 100644 --- a/korganizer/plugins/projectview/projectview.h +++ b/korganizer/plugins/projectview/projectview.h @@ -29,8 +29,8 @@ class ProjectView : public KOrg::Part { ProjectView(KOrg::MainWindow *, const char *); ~ProjectView(); - QString info(); - QString shortInfo(); + TQString info(); + TQString shortInfo(); private slots: void showView(); diff --git a/korganizer/plugins/timespanview/kotimespanview.cpp b/korganizer/plugins/timespanview/kotimespanview.cpp index 507438a6..eec3ab46 100644 --- a/korganizer/plugins/timespanview/kotimespanview.cpp +++ b/korganizer/plugins/timespanview/kotimespanview.cpp @@ -22,7 +22,7 @@ without including the source code for Qt in the source distribution. */ -#include <qlayout.h> +#include <tqlayout.h> #include <kconfig.h> #include <kstandarddirs.h> @@ -35,16 +35,16 @@ #include "kotimespanview.h" #include "kotimespanview.moc" -KOTimeSpanView::KOTimeSpanView(Calendar *calendar, QWidget *parent, +KOTimeSpanView::KOTimeSpanView(Calendar *calendar, TQWidget *parent, const char *name) : KOEventView( calendar, parent, name ) { - QBoxLayout *topLayout = new QVBoxLayout( this ); + TQBoxLayout *topLayout = new TQVBoxLayout( this ); mTimeSpanWidget = new TimeSpanWidget( this ); topLayout->addWidget( mTimeSpanWidget ); - connect( mTimeSpanWidget, SIGNAL( dateRangeChanged() ), SLOT( updateView() ) ); + connect( mTimeSpanWidget, TQT_SIGNAL( dateRangeChanged() ), TQT_SLOT( updateView() ) ); } KOTimeSpanView::~KOTimeSpanView() @@ -58,7 +58,7 @@ void KOTimeSpanView::readSettings() KConfig config( "korganizerrc", true, false); // Open read-only, no kdeglobals config.setGroup("Views"); - QValueList<int> sizes = config.readIntListEntry("Separator TimeSpanView"); + TQValueList<int> sizes = config.readIntListEntry("Separator TimeSpanView"); if (sizes.count() == 2) { mTimeSpanWidget->setSplitterSizes(sizes); } @@ -70,7 +70,7 @@ void KOTimeSpanView::writeSettings(KConfig *config) config->setGroup("Views"); - QValueList<int> list = mTimeSpanWidget->splitterSizes(); + TQValueList<int> list = mTimeSpanWidget->splitterSizes(); config->writeEntry("Separator TimeSpanView",list); } @@ -97,15 +97,15 @@ void KOTimeSpanView::updateView() mTimeSpanWidget->endDateTime().date() ); } -void KOTimeSpanView::showDates(const QDate &start, const QDate &end) +void KOTimeSpanView::showDates(const TQDate &start, const TQDate &end) { - QDate s = start.addDays( -2 ); - QDate e = end.addDays( 2 ); + TQDate s = start.addDays( -2 ); + TQDate e = end.addDays( 2 ); insertItems( s, e ); } -void KOTimeSpanView::insertItems(const QDate &start, const QDate &end) +void KOTimeSpanView::insertItems(const TQDate &start, const TQDate &end) { mTimeSpanWidget->clear(); mTimeSpanWidget->setDateRange( start, end ); diff --git a/korganizer/plugins/timespanview/kotimespanview.h b/korganizer/plugins/timespanview/kotimespanview.h index 142ba75f..d115b630 100644 --- a/korganizer/plugins/timespanview/kotimespanview.h +++ b/korganizer/plugins/timespanview/kotimespanview.h @@ -33,7 +33,7 @@ class KOTimeSpanView : public KOEventView { Q_OBJECT public: - KOTimeSpanView( Calendar *calendar, QWidget *parent = 0, + KOTimeSpanView( Calendar *calendar, TQWidget *parent = 0, const char *name = 0 ); ~KOTimeSpanView(); @@ -47,13 +47,13 @@ class KOTimeSpanView : public KOEventView public slots: virtual void updateView(); - 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 changeIncidenceDisplay(Incidence *, int); private: - void insertItems( const QDate &start, const QDate & end ); + void insertItems( const TQDate &start, const TQDate & end ); TimeSpanWidget *mTimeSpanWidget; }; diff --git a/korganizer/plugins/timespanview/lineview.cpp b/korganizer/plugins/timespanview/lineview.cpp index 26779bdb..93a2f0bf 100644 --- a/korganizer/plugins/timespanview/lineview.cpp +++ b/korganizer/plugins/timespanview/lineview.cpp @@ -22,7 +22,7 @@ without including the source code for Qt in the source distribution. */ -#include <qpainter.h> +#include <tqpainter.h> #include <kdebug.h> @@ -31,8 +31,8 @@ #include "lineview.h" #include "lineview.moc" -LineView::LineView( QWidget *parent, const char *name ) : - QScrollView( parent, name ) +LineView::LineView( TQWidget *parent, const char *name ) : + TQScrollView( parent, name ) { mPixelWidth = 1000; @@ -71,7 +71,7 @@ void LineView::clear() update(); } -void LineView::drawContents(QPainter* p, int cx, int cy, int cw, int ch) +void LineView::drawContents(TQPainter* p, int cx, int cy, int cw, int ch) { // kdDebug(5850) << "LineView::drawContents()" << endl; @@ -112,7 +112,7 @@ void LineView::drawContents(QPainter* p, int cx, int cy, int cw, int ch) if ( cbottom > (cy+ch) ) cbottom = cy+ch; // kdDebug(5850) << " drawContents(): ctop: " << ctop << " cbottom: " // << cbottom << " s: " << s << " e: " << e << endl; - p->fillRect( s, ctop, e - s + 1, cbottom - ctop + 1, QBrush("red") ); + p->fillRect( s, ctop, e - s + 1, cbottom - ctop + 1, TQBrush("red") ); } } } diff --git a/korganizer/plugins/timespanview/lineview.h b/korganizer/plugins/timespanview/lineview.h index 0bb1788a..e98d905b 100644 --- a/korganizer/plugins/timespanview/lineview.h +++ b/korganizer/plugins/timespanview/lineview.h @@ -24,14 +24,14 @@ #ifndef LINEVIEW_H #define LINEVIEW_H -#include <qscrollview.h> -#include <qptrlist.h> +#include <tqscrollview.h> +#include <tqptrlist.h> class LineView : public QScrollView { Q_OBJECT public: - LineView( QWidget *parent = 0, const char *name = 0 ); + LineView( TQWidget *parent = 0, const char *name = 0 ); virtual ~LineView(); int pixelWidth(); @@ -41,7 +41,7 @@ class LineView : public QScrollView void clear(); 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); private: struct Line { @@ -51,7 +51,7 @@ class LineView : public QScrollView int end; }; - QPtrList<Line> mLines; + TQPtrList<Line> mLines; int mPixelWidth; }; diff --git a/korganizer/plugins/timespanview/timeline.cpp b/korganizer/plugins/timespanview/timeline.cpp index 0d679e19..19ed7581 100644 --- a/korganizer/plugins/timespanview/timeline.cpp +++ b/korganizer/plugins/timespanview/timeline.cpp @@ -22,15 +22,15 @@ without including the source code for Qt in the source distribution. */ -#include <qpainter.h> +#include <tqpainter.h> #include <kdebug.h> #include "timeline.h" #include "timeline.moc" -TimeLine::TimeLine( QWidget *parent, const char *name ) : - QScrollView( parent, name ) +TimeLine::TimeLine( TQWidget *parent, const char *name ) : + TQScrollView( parent, name ) { mPixelWidth = 1000; @@ -46,7 +46,7 @@ TimeLine::~TimeLine() { } -void TimeLine::drawContents(QPainter* p, int cx, int cy, int cw, int ch) +void TimeLine::drawContents(TQPainter* p, int cx, int cy, int cw, int ch) { int spacingX = mDaySpacing; int offsetX = mDayOffset; @@ -59,14 +59,14 @@ void TimeLine::drawContents(QPainter* p, int cx, int cy, int cw, int ch) while (x < cx + cw) { // kdDebug(5850) << " x: " << x << endl; p->drawLine(x,cy,x,cy+ch); - p->drawText( x + 5, 15, QString::number( mStartDate.addDays( cell + 1 ).date().day() ) ); + p->drawText( x + 5, 15, TQString::number( mStartDate.addDays( cell + 1 ).date().day() ) ); x += spacingX; cell++; } } -void TimeLine::setDateRange( const QDateTime &start, const QDateTime &end ) +void TimeLine::setDateRange( const TQDateTime &start, const TQDateTime &end ) { mStartDate = start; mEndDate = end; @@ -75,7 +75,7 @@ void TimeLine::setDateRange( const QDateTime &start, const QDateTime &end ) mDaySpacing = 60 * 60 * 24 / mSecsPerPixel; - mDayOffset = QDateTime( mStartDate.date() ).secsTo( mStartDate ) / mSecsPerPixel; + mDayOffset = TQDateTime( mStartDate.date() ).secsTo( mStartDate ) / mSecsPerPixel; kdDebug(5850) << "TimeLines::setDateRange(): mDaySpacing: " << mDaySpacing << " mDayOffset: " << mDayOffset << " mSecsPerPixel: " << mSecsPerPixel << endl; @@ -83,5 +83,5 @@ void TimeLine::setDateRange( const QDateTime &start, const QDateTime &end ) void TimeLine::setContentsPos( int pos ) { - QScrollView::setContentsPos ( pos, 0 ); + TQScrollView::setContentsPos ( pos, 0 ); } diff --git a/korganizer/plugins/timespanview/timeline.h b/korganizer/plugins/timespanview/timeline.h index 7c9bd868..031763f7 100644 --- a/korganizer/plugins/timespanview/timeline.h +++ b/korganizer/plugins/timespanview/timeline.h @@ -24,27 +24,27 @@ #ifndef TIMELINE_H #define TIMELINE_H -#include <qscrollview.h> -#include <qdatetime.h> +#include <tqscrollview.h> +#include <tqdatetime.h> class TimeLine : public QScrollView { Q_OBJECT public: - TimeLine( QWidget *parent = 0, const char *name = 0 ); + TimeLine( TQWidget *parent = 0, const char *name = 0 ); virtual ~TimeLine(); - void setDateRange( const QDateTime &start, const QDateTime &end ); + void setDateRange( const TQDateTime &start, const TQDateTime &end ); public slots: void setContentsPos( int pos ); 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); private: - QDateTime mStartDate; - QDateTime mEndDate; + TQDateTime mStartDate; + TQDateTime mEndDate; int mPixelWidth; int mDaySpacing; diff --git a/korganizer/plugins/timespanview/timespanview.cpp b/korganizer/plugins/timespanview/timespanview.cpp index be95a2c8..24a45abb 100644 --- a/korganizer/plugins/timespanview/timespanview.cpp +++ b/korganizer/plugins/timespanview/timespanview.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qfile.h> +#include <tqfile.h> #include <kapplication.h> #include <kconfig.h> @@ -51,7 +51,7 @@ TimespanView::TimespanView(KOrg::MainWindow *parent, const char *name) : setXMLFile( "plugins/timespanviewui.rc" ); - new KAction( i18n("&Timespan"), "timespan", 0, this, SLOT( showView() ), + new KAction( i18n("&Timespan"), "timespan", 0, this, TQT_SLOT( showView() ), actionCollection(), "view_timespan" ); } @@ -59,12 +59,12 @@ TimespanView::~TimespanView() { } -QString TimespanView::info() +TQString TimespanView::info() { return i18n("This plugin provides a Gantt-like Timespan view."); } -QString TimespanView::shortInfo() +TQString TimespanView::shortInfo() { return i18n( "Timespan View Plugin" ); } diff --git a/korganizer/plugins/timespanview/timespanview.h b/korganizer/plugins/timespanview/timespanview.h index e88e140c..cb2d17f7 100644 --- a/korganizer/plugins/timespanview/timespanview.h +++ b/korganizer/plugins/timespanview/timespanview.h @@ -29,8 +29,8 @@ class TimespanView : public KOrg::Part { TimespanView(KOrg::MainWindow *, const char *); ~TimespanView(); - QString info(); - QString shortInfo(); + TQString info(); + TQString shortInfo(); private slots: void showView(); diff --git a/korganizer/plugins/timespanview/timespanwidget.cpp b/korganizer/plugins/timespanview/timespanwidget.cpp index 23d781f4..0e8f0c4b 100644 --- a/korganizer/plugins/timespanview/timespanwidget.cpp +++ b/korganizer/plugins/timespanview/timespanwidget.cpp @@ -22,11 +22,11 @@ without including the source code for Qt in the source distribution. */ -#include <qsplitter.h> -#include <qlistview.h> -#include <qlayout.h> -#include <qheader.h> -#include <qpushbutton.h> +#include <tqsplitter.h> +#include <tqlistview.h> +#include <tqlayout.h> +#include <tqheader.h> +#include <tqpushbutton.h> #include <klocale.h> #include <kdebug.h> @@ -39,19 +39,19 @@ #include "timespanwidget.h" #include "timespanwidget.moc" -TimeSpanWidget::TimeSpanWidget( QWidget *parent, const char *name ) : - QWidget( parent, name ) +TimeSpanWidget::TimeSpanWidget( TQWidget *parent, const char *name ) : + TQWidget( parent, name ) { - QBoxLayout *topLayout = new QVBoxLayout( this ); + TQBoxLayout *topLayout = new TQVBoxLayout( this ); - mSplitter = new QSplitter( this ); + mSplitter = new TQSplitter( this ); topLayout->addWidget( mSplitter ); - mList = new QListView( mSplitter ); + mList = new TQListView( mSplitter ); mList->addColumn( i18n("Summary") ); - QWidget *rightPane = new QWidget( mSplitter ); - QBoxLayout *rightPaneLayout = new QVBoxLayout( rightPane ); + TQWidget *rightPane = new TQWidget( mSplitter ); + TQBoxLayout *rightPaneLayout = new TQVBoxLayout( rightPane ); mTimeLine = new TimeLine( rightPane ); mTimeLine->setFixedHeight( mList->header()->height() ); @@ -60,44 +60,44 @@ TimeSpanWidget::TimeSpanWidget( QWidget *parent, const char *name ) : mLineView = new LineView( rightPane ); rightPaneLayout->addWidget( mLineView ); - QBoxLayout *buttonLayout = new QHBoxLayout( rightPaneLayout ); + TQBoxLayout *buttonLayout = new TQHBoxLayout( rightPaneLayout ); - QPushButton *zoomInButton = new QPushButton( i18n("Zoom In"), rightPane ); - connect( zoomInButton, SIGNAL( clicked() ), SLOT( zoomIn() ) ); + TQPushButton *zoomInButton = new TQPushButton( i18n("Zoom In"), rightPane ); + connect( zoomInButton, TQT_SIGNAL( clicked() ), TQT_SLOT( zoomIn() ) ); buttonLayout->addWidget( zoomInButton ); - QPushButton *zoomOutButton = new QPushButton( i18n("Zoom Out"), rightPane ); - connect( zoomOutButton, SIGNAL( clicked() ), SLOT( zoomOut() ) ); + TQPushButton *zoomOutButton = new TQPushButton( i18n("Zoom Out"), rightPane ); + connect( zoomOutButton, TQT_SIGNAL( clicked() ), TQT_SLOT( zoomOut() ) ); buttonLayout->addWidget( zoomOutButton ); - QPushButton *centerButton = new QPushButton( i18n("Center View"), rightPane ); - connect( centerButton, SIGNAL( clicked() ), SLOT( centerView() ) ); + TQPushButton *centerButton = new TQPushButton( i18n("Center View"), rightPane ); + connect( centerButton, TQT_SIGNAL( clicked() ), TQT_SLOT( centerView() ) ); buttonLayout->addWidget( centerButton ); - connect(mLineView->horizontalScrollBar(),SIGNAL(valueChanged(int)), - mTimeLine,SLOT(setContentsPos(int))); + connect(mLineView->horizontalScrollBar(),TQT_SIGNAL(valueChanged(int)), + mTimeLine,TQT_SLOT(setContentsPos(int))); } TimeSpanWidget::~TimeSpanWidget() { } -QValueList<int> TimeSpanWidget::splitterSizes() +TQValueList<int> TimeSpanWidget::splitterSizes() { return mSplitter->sizes(); } -void TimeSpanWidget::setSplitterSizes( QValueList<int> sizes ) +void TimeSpanWidget::setSplitterSizes( TQValueList<int> sizes ) { mSplitter->setSizes( sizes ); } void TimeSpanWidget::addItem( KCal::Event *event ) { - new QListViewItem( mList, event->summary() ); + new TQListViewItem( mList, event->summary() ); - QDateTime startDt = event->dtStart(); - QDateTime endDt = event->dtEnd(); + TQDateTime startDt = event->dtStart(); + TQDateTime endDt = event->dtEnd(); // kdDebug(5850) << "TimeSpanWidget::addItem(): start: " << startDt.toString() // << " end: " << endDt.toString() << endl; @@ -130,7 +130,7 @@ void TimeSpanWidget::updateView() #endif } -void TimeSpanWidget::setDateRange( const QDateTime &start, const QDateTime &end ) +void TimeSpanWidget::setDateRange( const TQDateTime &start, const TQDateTime &end ) { mStartDate = start; mEndDate = end; @@ -140,12 +140,12 @@ void TimeSpanWidget::setDateRange( const QDateTime &start, const QDateTime &end mSecsPerPixel = mStartDate.secsTo( mEndDate ) / mLineView->pixelWidth(); } -QDateTime TimeSpanWidget::startDateTime() +TQDateTime TimeSpanWidget::startDateTime() { return mStartDate; } -QDateTime TimeSpanWidget::endDateTime() +TQDateTime TimeSpanWidget::endDateTime() { return mEndDate; } @@ -168,7 +168,7 @@ void TimeSpanWidget::zoomOut() void TimeSpanWidget::centerView() { - QScrollBar *scrollBar = mLineView->horizontalScrollBar(); + TQScrollBar *scrollBar = mLineView->horizontalScrollBar(); int min = scrollBar->minValue(); int max = scrollBar->maxValue(); scrollBar->setValue( min + (max-min) / 2 ); diff --git a/korganizer/plugins/timespanview/timespanwidget.h b/korganizer/plugins/timespanview/timespanwidget.h index 31643702..38cdea6c 100644 --- a/korganizer/plugins/timespanview/timespanwidget.h +++ b/korganizer/plugins/timespanview/timespanwidget.h @@ -24,7 +24,7 @@ #ifndef TimeSpanWidget_H #define TimeSpanWidget_H -#include <qwidget.h> +#include <tqwidget.h> namespace KCal { class Event; @@ -39,20 +39,20 @@ class TimeSpanWidget : public QWidget { Q_OBJECT public: - TimeSpanWidget( QWidget *parent=0, const char *name=0 ); + TimeSpanWidget( TQWidget *parent=0, const char *name=0 ); virtual ~TimeSpanWidget(); void addItem( KCal::Event * ); - QValueList<int> splitterSizes(); - void setSplitterSizes( QValueList<int> ); + TQValueList<int> splitterSizes(); + void setSplitterSizes( TQValueList<int> ); void clear(); - void setDateRange( const QDateTime &start, const QDateTime &end ); + void setDateRange( const TQDateTime &start, const TQDateTime &end ); - QDateTime startDateTime(); - QDateTime endDateTime(); + TQDateTime startDateTime(); + TQDateTime endDateTime(); public slots: void updateView(); @@ -65,13 +65,13 @@ class TimeSpanWidget : public QWidget void dateRangeChanged(); private: - QSplitter *mSplitter; - QListView *mList; + TQSplitter *mSplitter; + TQListView *mList; TimeLine *mTimeLine; LineView *mLineView; - QDateTime mStartDate; - QDateTime mEndDate; + TQDateTime mStartDate; + TQDateTime mEndDate; int mSecsPerPixel; }; |