summaryrefslogtreecommitdiffstats
path: root/korganizer/koincidenceeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koincidenceeditor.cpp')
-rw-r--r--korganizer/koincidenceeditor.cpp116
1 files changed, 58 insertions, 58 deletions
diff --git a/korganizer/koincidenceeditor.cpp b/korganizer/koincidenceeditor.cpp
index b854ea519..3eb4920f8 100644
--- a/korganizer/koincidenceeditor.cpp
+++ b/korganizer/koincidenceeditor.cpp
@@ -22,14 +22,14 @@
without including the source code for Qt in the source distribution.
*/
-#include <qtooltip.h>
-#include <qframe.h>
-#include <qguardedptr.h>
-#include <qpixmap.h>
-#include <qlayout.h>
-#include <qwidgetstack.h>
-#include <qdatetime.h>
-#include <qwhatsthis.h>
+#include <tqtooltip.h>
+#include <tqframe.h>
+#include <tqguardedptr.h>
+#include <tqpixmap.h>
+#include <tqlayout.h>
+#include <tqwidgetstack.h>
+#include <tqdatetime.h>
+#include <tqwhatsthis.h>
#include <kdebug.h>
#include <klocale.h>
@@ -54,8 +54,8 @@
#include "koincidenceeditor.h"
#include "templatemanagementdialog.h"
-KOIncidenceEditor::KOIncidenceEditor( const QString &caption,
- Calendar *calendar, QWidget *parent )
+KOIncidenceEditor::KOIncidenceEditor( const TQString &caption,
+ Calendar *calendar, TQWidget *parent )
: KDialogBase( Tabbed, caption, Ok | Apply | Cancel | Default, Ok,
parent, 0, false, false ),
mAttendeeEditor( 0 ), mIsCounter( false )
@@ -73,8 +73,8 @@ KOIncidenceEditor::KOIncidenceEditor( const QString &caption,
setButtonText( Default, i18n("&Templates...") );
}
- connect( this, SIGNAL( defaultClicked() ), SLOT( slotManageTemplates() ) );
- connect( this, SIGNAL( finished() ), SLOT( delayedDestruct() ) );
+ connect( this, TQT_SIGNAL( defaultClicked() ), TQT_SLOT( slotManageTemplates() ) );
+ connect( this, TQT_SIGNAL( finished() ), TQT_SLOT( delayedDestruct() ) );
}
KOIncidenceEditor::~KOIncidenceEditor()
@@ -83,12 +83,12 @@ KOIncidenceEditor::~KOIncidenceEditor()
void KOIncidenceEditor::setupAttendeesTab()
{
- QFrame *topFrame = addPage( i18n("Atte&ndees") );
- QWhatsThis::add( topFrame,
+ TQFrame *topFrame = addPage( i18n("Atte&ndees") );
+ TQWhatsThis::add( topFrame,
i18n("The Attendees tab allows you to Add or Remove "
"Attendees to/from this event or to-do.") );
- QBoxLayout *topLayout = new QVBoxLayout( topFrame );
+ TQBoxLayout *topLayout = new TQVBoxLayout( topFrame );
mAttendeeEditor = mDetails = new KOEditorDetails( spacingHint(), topFrame );
topLayout->addWidget( mDetails );
@@ -104,7 +104,7 @@ void KOIncidenceEditor::slotOk()
// "this" can be deleted before processInput() returns (processInput() opens
// a non-modal dialog when Kolab is used). So accept should only be executed
// when "this" is still valid
- QGuardedPtr<QWidget> ptr( this );
+ TQGuardedPtr<TQWidget> ptr( this );
if ( processInput() && ptr ) accept();
}
@@ -137,22 +137,22 @@ void KOIncidenceEditor::slotManageTemplates()
kdDebug(5850) << "KOIncidenceEditor::manageTemplates()" << endl;
TemplateManagementDialog * const d = new TemplateManagementDialog( this, templates() );
- connect( d, SIGNAL( loadTemplate( const QString& ) ),
- this, SLOT( slotLoadTemplate( const QString& ) ) );
- connect( d, SIGNAL( templatesChanged( const QStringList& ) ),
- this, SLOT( slotTemplatesChanged( const QStringList& ) ) );
- connect( d, SIGNAL( saveTemplate( const QString& ) ),
- this, SLOT( slotSaveTemplate( const QString& ) ) );
+ connect( d, TQT_SIGNAL( loadTemplate( const TQString& ) ),
+ this, TQT_SLOT( slotLoadTemplate( const TQString& ) ) );
+ connect( d, TQT_SIGNAL( templatesChanged( const TQStringList& ) ),
+ this, TQT_SLOT( slotTemplatesChanged( const TQStringList& ) ) );
+ connect( d, TQT_SIGNAL( saveTemplate( const TQString& ) ),
+ this, TQT_SLOT( slotSaveTemplate( const TQString& ) ) );
d->exec();
return;
}
void KOIncidenceEditor::saveAsTemplate( Incidence *incidence,
- const QString &templateName )
+ const TQString &templateName )
{
if ( !incidence || templateName.isEmpty() ) return;
- QString fileName = "templates/" + incidence->type();
+ TQString fileName = "templates/" + incidence->type();
fileName.append( "/" + templateName );
fileName = locateLocal( "data", "korganizer/" + fileName );
@@ -162,10 +162,10 @@ void KOIncidenceEditor::saveAsTemplate( Incidence *incidence,
format.save( &cal, fileName );
}
-void KOIncidenceEditor::slotLoadTemplate( const QString& templateName )
+void KOIncidenceEditor::slotLoadTemplate( const TQString& templateName )
{
CalendarLocal cal( KOPrefs::instance()->mTimeZoneId );
- QString fileName = locateLocal( "data", "korganizer/templates/" + type() + "/" +
+ TQString fileName = locateLocal( "data", "korganizer/templates/" + type() + "/" +
templateName );
if ( fileName.isEmpty() ) {
@@ -182,37 +182,37 @@ void KOIncidenceEditor::slotLoadTemplate( const QString& templateName )
loadTemplate( cal );
}
-void KOIncidenceEditor::slotTemplatesChanged( const QStringList& newTemplates )
+void KOIncidenceEditor::slotTemplatesChanged( const TQStringList& newTemplates )
{
templates() = newTemplates;
}
-void KOIncidenceEditor::setupDesignerTabs( const QString &type )
+void KOIncidenceEditor::setupDesignerTabs( const TQString &type )
{
- QStringList activePages = KOPrefs::instance()->activeDesignerFields();
+ TQStringList activePages = KOPrefs::instance()->activeDesignerFields();
- QStringList list = KGlobal::dirs()->findAllResources( "data",
+ TQStringList list = KGlobal::dirs()->findAllResources( "data",
"korganizer/designer/" + type + "/*.ui", true, true );
- for ( QStringList::iterator it = list.begin(); it != list.end(); ++it ) {
- const QString &fn = (*it).mid( (*it).findRev('/') + 1 );
+ for ( TQStringList::iterator it = list.begin(); it != list.end(); ++it ) {
+ const TQString &fn = (*it).mid( (*it).findRev('/') + 1 );
if ( activePages.find( fn ) != activePages.end() ) {
addDesignerTab( *it );
}
}
}
-QWidget *KOIncidenceEditor::addDesignerTab( const QString &uifile )
+TQWidget *KOIncidenceEditor::addDesignerTab( const TQString &uifile )
{
kdDebug(5850) << "Designer tab: " << uifile << endl;
KPIM::DesignerFields *wid = new KPIM::DesignerFields( uifile, 0 );
mDesignerFields.append( wid );
- QFrame *topFrame = addPage( wid->title() );
+ TQFrame *topFrame = addPage( wid->title() );
- QBoxLayout *topLayout = new QVBoxLayout( topFrame );
+ TQBoxLayout *topLayout = new TQVBoxLayout( topFrame );
- wid->reparent( topFrame, 0, QPoint() );
+ wid->reparent( topFrame, 0, TQPoint() );
topLayout->addWidget( wid );
mDesignerFieldForWidget[ topFrame ] = wid;
@@ -227,15 +227,15 @@ class KCalStorage : public KPIM::DesignerFields::Storage
{
}
- QStringList keys()
+ TQStringList keys()
{
- QStringList keys;
+ TQStringList keys;
- QMap<QCString, QString> props = mIncidence->customProperties();
- QMap<QCString, QString>::ConstIterator it;
+ TQMap<TQCString, TQString> props = mIncidence->customProperties();
+ TQMap<TQCString, TQString>::ConstIterator it;
for( it = props.begin(); it != props.end(); ++it ) {
- QString customKey = it.key();
- QStringList parts = QStringList::split( "-", customKey );
+ TQString customKey = it.key();
+ TQStringList parts = TQStringList::split( "-", customKey );
if ( parts.count() != 4 ) continue;
if ( parts[ 2 ] != "KORGANIZER" ) continue;
keys.append( parts[ 3 ] );
@@ -244,12 +244,12 @@ class KCalStorage : public KPIM::DesignerFields::Storage
return keys;
}
- QString read( const QString &key )
+ TQString read( const TQString &key )
{
return mIncidence->customProperty( "KORGANIZER", key.utf8() );
}
- void write( const QString &key, const QString &value )
+ void write( const TQString &key, const TQString &value )
{
mIncidence->setCustomProperty( "KORGANIZER", key.utf8(), value );
}
@@ -282,20 +282,20 @@ void KOIncidenceEditor::writeDesignerFields( Incidence *i )
}
-void KOIncidenceEditor::setupEmbeddedURLPage( const QString &label,
- const QString &url, const QString &mimetype )
+void KOIncidenceEditor::setupEmbeddedURLPage( const TQString &label,
+ const TQString &url, const TQString &mimetype )
{
kdDebug(5850) << "KOIncidenceEditor::setupEmbeddedURLPage()" << endl;
kdDebug(5850) << "label=" << label << ", url=" << url << ", mimetype=" << mimetype << endl;
- QFrame *topFrame = addPage( label );
- QBoxLayout *topLayout = new QVBoxLayout( topFrame );
+ TQFrame *topFrame = addPage( label );
+ TQBoxLayout *topLayout = new TQVBoxLayout( topFrame );
KPIM::EmbeddedURLPage *wid = new KPIM::EmbeddedURLPage( url, mimetype,
topFrame );
topLayout->addWidget( wid );
mEmbeddedURLPages.append( topFrame );
- connect( wid, SIGNAL( openURL( const KURL & ) ) ,
- this, SLOT( openURL( const KURL & ) ) );
+ connect( wid, TQT_SIGNAL( openURL( const KURL & ) ) ,
+ this, TQT_SLOT( openURL( const KURL & ) ) );
// TODO: Call this method only when the tab is actually activated!
wid->loadContents();
}
@@ -312,7 +312,7 @@ void KOIncidenceEditor::createEmbeddedURLPages( Incidence *i )
mEmbeddedURLPages.setAutoDelete( false );
}
if ( !mAttachedDesignerFields.isEmpty() ) {
- for ( QPtrList<QWidget>::Iterator it = mAttachedDesignerFields.begin();
+ for ( TQPtrList<TQWidget>::Iterator it = mAttachedDesignerFields.begin();
it != mAttachedDesignerFields.end(); ++it ) {
if ( mDesignerFieldForWidget.contains( *it ) ) {
mDesignerFields.remove( mDesignerFieldForWidget[ *it ] );
@@ -331,7 +331,7 @@ void KOIncidenceEditor::createEmbeddedURLPages( Incidence *i )
if ( a && a->showInline() && a->isUri() ) {
// TODO: Allow more mime-types, but add security checks!
/* if ( a->mimeType() == "application/x-designer" ) {
- QString tmpFile;
+ TQString tmpFile;
if ( KIO::NetAccess::download( a->uri(), tmpFile, this ) ) {
mAttachedDesignerFields.append( addDesignerTab( tmpFile ) );
KIO::NetAccess::removeTempFile( tmpFile );
@@ -348,22 +348,22 @@ void KOIncidenceEditor::createEmbeddedURLPages( Incidence *i )
void KOIncidenceEditor::openURL( const KURL &url )
{
- QString uri = url.url();
+ TQString uri = url.url();
UriHandler::process( uri );
}
-void KOIncidenceEditor::addAttachments( const QStringList &attachments,
- const QStringList &mimeTypes,
+void KOIncidenceEditor::addAttachments( const TQStringList &attachments,
+ const TQStringList &mimeTypes,
bool inlineAttachments )
{
emit signalAddAttachments( attachments, mimeTypes, inlineAttachments );
}
-void KOIncidenceEditor::addAttendees( const QStringList &attendees )
+void KOIncidenceEditor::addAttendees( const TQStringList &attendees )
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = attendees.begin(); it != attendees.end(); ++it ) {
- QString name, email;
+ TQString name, email;
KABC::Addressee::parseEmailAddress( *it, name, email );
mAttendeeEditor->insertAttendee( new Attendee( name, email ) );
}