summaryrefslogtreecommitdiffstats
path: root/korganizer/actionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/actionmanager.cpp')
-rw-r--r--korganizer/actionmanager.cpp174
1 files changed, 87 insertions, 87 deletions
diff --git a/korganizer/actionmanager.cpp b/korganizer/actionmanager.cpp
index 09b5c6f45..ad6c7e36f 100644
--- a/korganizer/actionmanager.cpp
+++ b/korganizer/actionmanager.cpp
@@ -127,7 +127,7 @@ void ActionManager::init()
mWindowList = new KOWindowList;
// Show tip of the day, when the first calendar is shown.
if ( !mIsPart )
- TQTimer::singleShot( 0, this, TQT_SLOT( showTipOnStart() ) );
+ TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT( showTipOnStart() ) );
}
// Note: We need this ActionManager to be fully constructed, and
// tqparent() to have a valid reference to it before the following
@@ -156,9 +156,9 @@ void ActionManager::init()
connect( mCalendarView, TQT_SIGNAL( configChanged() ), TQT_SLOT( updateConfig() ) );
connect( mCalendarView, TQT_SIGNAL( incidenceSelected( Incidence *,const TQDate & ) ),
- this, TQT_SLOT( processIncidenceSelection( Incidence *,const TQDate & ) ) );
+ TQT_TQOBJECT(this), TQT_SLOT( processIncidenceSelection( Incidence *,const TQDate & ) ) );
connect( mCalendarView, TQT_SIGNAL( exportHTML( HTMLExportSettings * ) ),
- this, TQT_SLOT( exportHTML( HTMLExportSettings * ) ) );
+ TQT_TQOBJECT(this), TQT_SLOT( exportHTML( HTMLExportSettings * ) ) );
processIncidenceSelection( 0, TQDate() );
@@ -227,58 +227,58 @@ void ActionManager::initActions()
//~~~~~~~~~~~~~~~~~~~~~~~ LOADING / SAVING ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if ( mIsPart ) {
if ( mMainWindow->hasDocument() ) {
- KStdAction::openNew( this, TQT_SLOT(file_new()), mACollection, "korganizer_openNew" );
- KStdAction::open( this, TQT_SLOT( file_open() ), mACollection, "korganizer_open" );
- mRecent = KStdAction::openRecent( this, TQT_SLOT( file_open( const KURL& ) ),
+ KStdAction::openNew( TQT_TQOBJECT(this), TQT_SLOT(file_new()), mACollection, "korganizer_openNew" );
+ KStdAction::open( TQT_TQOBJECT(this), TQT_SLOT( file_open() ), mACollection, "korganizer_open" );
+ mRecent = KStdAction::openRecent( TQT_TQOBJECT(this), TQT_SLOT( file_open( const KURL& ) ),
mACollection, "korganizer_openRecent" );
KStdAction::revert( this,TQT_SLOT( file_revert() ), mACollection, "korganizer_revert" );
- KStdAction::saveAs( this, TQT_SLOT( file_saveas() ), mACollection,
+ KStdAction::saveAs( TQT_TQOBJECT(this), TQT_SLOT( file_saveas() ), mACollection,
"korganizer_saveAs" );
- KStdAction::save( this, TQT_SLOT( file_save() ), mACollection, "korganizer_save" );
+ KStdAction::save( TQT_TQOBJECT(this), TQT_SLOT( file_save() ), mACollection, "korganizer_save" );
}
- KStdAction::print( mCalendarView, TQT_SLOT( print() ), mACollection, "korganizer_print" );
+ KStdAction::print( TQT_TQOBJECT(mCalendarView), TQT_SLOT( print() ), mACollection, "korganizer_print" );
} else {
- KStdAction::openNew( this, TQT_SLOT( file_new() ), mACollection );
- KStdAction::open( this, TQT_SLOT( file_open() ), mACollection );
- mRecent = KStdAction::openRecent( this, TQT_SLOT( file_open( const KURL& ) ),
+ KStdAction::openNew( TQT_TQOBJECT(this), TQT_SLOT( file_new() ), mACollection );
+ KStdAction::open( TQT_TQOBJECT(this), TQT_SLOT( file_open() ), mACollection );
+ mRecent = KStdAction::openRecent( TQT_TQOBJECT(this), TQT_SLOT( file_open( const KURL& ) ),
mACollection );
if ( mMainWindow->hasDocument() ) {
KStdAction::revert( this,TQT_SLOT( file_revert() ), mACollection );
- KStdAction::save( this, TQT_SLOT( file_save() ), mACollection );
- KStdAction::saveAs( this, TQT_SLOT( file_saveas() ), mACollection );
+ KStdAction::save( TQT_TQOBJECT(this), TQT_SLOT( file_save() ), mACollection );
+ KStdAction::saveAs( TQT_TQOBJECT(this), TQT_SLOT( file_saveas() ), mACollection );
}
- KStdAction::print( mCalendarView, TQT_SLOT( print() ), mACollection );
+ KStdAction::print( TQT_TQOBJECT(mCalendarView), TQT_SLOT( print() ), mACollection );
}
//~~~~~~~~~~~~~~~~~~~~~~~~ IMPORT / EXPORT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- new KAction( i18n("Import &Event/Calendar (ICS-/VCS-File)..."), 0, this, TQT_SLOT( file_merge() ),
+ new KAction( i18n("Import &Event/Calendar (ICS-/VCS-File)..."), 0, TQT_TQOBJECT(this), TQT_SLOT( file_merge() ),
mACollection, "import_icalendar" );
- new KAction( i18n("&Import From UNIX Ical tool (.calendar-File)"), 0, this, TQT_SLOT( file_icalimport() ),
+ new KAction( i18n("&Import From UNIX Ical tool (.calendar-File)"), 0, TQT_TQOBJECT(this), TQT_SLOT( file_icalimport() ),
mACollection, "import_ical" );
new KAction( i18n("Get &Hot New Stuff..."), 0, this,
TQT_SLOT( downloadNewStuff() ), mACollection,
"downloadnewstuff" );
new KAction( i18n("Export &Web Page..."), "webexport", 0,
- mCalendarView, TQT_SLOT( exportWeb() ),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT( exportWeb() ),
mACollection, "export_web" );
new KAction( i18n("&iCalendar..."), 0,
- mCalendarView, TQT_SLOT( exportICalendar() ),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT( exportICalendar() ),
mACollection, "export_icalendar" );
new KAction( i18n("&vCalendar..."), 0,
- mCalendarView, TQT_SLOT( exportVCalendar() ),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT( exportVCalendar() ),
mACollection, "export_vcalendar" );
- new KAction( i18n("Upload &Hot New Stuff..."), 0, this,
+ new KAction( i18n("Upload &Hot New Stuff..."), 0, TQT_TQOBJECT(this),
TQT_SLOT( uploadNewStuff() ), mACollection,
"uploadnewstuff" );
- new KAction( i18n("Archive O&ld Entries..."), 0, this, TQT_SLOT( file_archive() ),
+ new KAction( i18n("Archive O&ld Entries..."), 0, TQT_TQOBJECT(this), TQT_SLOT( file_archive() ),
mACollection, "file_archive" );
new KAction( i18n("delete completed to-dos", "Pur&ge Completed To-dos"), 0,
- mCalendarView, TQT_SLOT( purgeCompleted() ), mACollection,
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT( purgeCompleted() ), mACollection,
"purge_completed" );
@@ -289,34 +289,34 @@ void ActionManager::initActions()
KOrg::History *h = mCalendarView->history();
if ( mIsPart ) {
// edit menu
- mCutAction = KStdAction::cut( mCalendarView, TQT_SLOT( edit_cut() ),
+ mCutAction = KStdAction::cut( TQT_TQOBJECT(mCalendarView), TQT_SLOT( edit_cut() ),
mACollection, "korganizer_cut" );
- mCopyAction = KStdAction::copy( mCalendarView, TQT_SLOT( edit_copy() ),
+ mCopyAction = KStdAction::copy( TQT_TQOBJECT(mCalendarView), TQT_SLOT( edit_copy() ),
mACollection, "korganizer_copy" );
- pasteAction = KStdAction::paste( mCalendarView, TQT_SLOT( edit_paste() ),
+ pasteAction = KStdAction::paste( TQT_TQOBJECT(mCalendarView), TQT_SLOT( edit_paste() ),
mACollection, "korganizer_paste" );
mUndoAction = KStdAction::undo( h, TQT_SLOT( undo() ),
mACollection, "korganizer_undo" );
mRedoAction = KStdAction::redo( h, TQT_SLOT( redo() ),
mACollection, "korganizer_redo" );
} else {
- mCutAction = KStdAction::cut( mCalendarView,TQT_SLOT( edit_cut() ),
+ mCutAction = KStdAction::cut( TQT_TQOBJECT(mCalendarView),TQT_SLOT( edit_cut() ),
mACollection );
- mCopyAction = KStdAction::copy( mCalendarView,TQT_SLOT( edit_copy() ),
+ mCopyAction = KStdAction::copy( TQT_TQOBJECT(mCalendarView),TQT_SLOT( edit_copy() ),
mACollection );
- pasteAction = KStdAction::paste( mCalendarView,TQT_SLOT( edit_paste() ),
+ pasteAction = KStdAction::paste( TQT_TQOBJECT(mCalendarView),TQT_SLOT( edit_paste() ),
mACollection );
- mUndoAction = KStdAction::undo( h, TQT_SLOT( undo() ), mACollection );
- mRedoAction = KStdAction::redo( h, TQT_SLOT( redo() ), mACollection );
+ mUndoAction = KStdAction::undo( TQT_TQOBJECT(h), TQT_SLOT( undo() ), mACollection );
+ mRedoAction = KStdAction::redo( TQT_TQOBJECT(h), TQT_SLOT( redo() ), mACollection );
}
mDeleteAction = new KAction( i18n("&Delete"), "editdelete", 0,
- mCalendarView, TQT_SLOT( appointment_delete() ),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT( appointment_delete() ),
mACollection, "edit_delete" );
if ( mIsPart ) {
- KStdAction::tqfind( mCalendarView->dialogManager(), TQT_SLOT( showSearchDialog() ),
+ KStdAction::find( mCalendarView->dialogManager(), TQT_SLOT( showSearchDialog() ),
mACollection, "korganizer_tqfind" );
} else {
- KStdAction::tqfind( mCalendarView->dialogManager(), TQT_SLOT( showSearchDialog() ),
+ KStdAction::find( mCalendarView->dialogManager(), TQT_SLOT( showSearchDialog() ),
mACollection );
}
pasteAction->setEnabled( false );
@@ -381,7 +381,7 @@ void ActionManager::initActions()
//~~~~~~~~~~~~~~~~~~~~~~~~~~~ FILTERS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
new KAction( i18n("&Refresh"), 0,
- mCalendarView, TQT_SLOT( updateView() ),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT( updateView() ),
mACollection, "update" );
// TODO:
// new KAction( i18n("Hide &Completed To-dos"), 0,
@@ -398,7 +398,7 @@ void ActionManager::initActions()
connect( mCalendarView, TQT_SIGNAL( selectFilterSignal( int ) ),
mFilterAction, TQT_SLOT( setCurrentItem( int ) ) );
connect( mCalendarView, TQT_SIGNAL( filterChanged() ),
- this, TQT_SLOT( setTitle() ) );
+ TQT_TQOBJECT(this), TQT_SLOT( setTitle() ) );
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ZOOM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -422,11 +422,11 @@ void ActionManager::initActions()
//************************** Actions MENU *********************************
new KAction( i18n("Go to &Today"), "today", 0,
- mCalendarView,TQT_SLOT( goToday() ),
+ TQT_TQOBJECT(mCalendarView),TQT_SLOT( goToday() ),
mACollection, "go_today" );
bool isRTL = TQApplication::reverseLayout();
action = new KAction( i18n("Go &Backward"), isRTL ? "forward" : "back", 0,
- mCalendarView,TQT_SLOT( goPrevious() ),
+ TQT_TQOBJECT(mCalendarView),TQT_SLOT( goPrevious() ),
mACollection, "go_previous" );
// Changing the action text by setText makes the toolbar button disappear.
@@ -435,10 +435,10 @@ void ActionManager::initActions()
connect( mCalendarView, TQT_SIGNAL( changeNavStringPrev( const TQString & ) ),
action, TQT_SLOT( setText( const TQString & ) ) );
connect( mCalendarView, TQT_SIGNAL( changeNavStringPrev( const TQString & ) ),
- this, TQT_SLOT( dumpText( const TQString & ) ) );*/
+ TQT_TQOBJECT(this), TQT_SLOT( dumpText( const TQString & ) ) );*/
action = new KAction( i18n("Go &Forward"), isRTL ? "back" : "forward", 0,
- mCalendarView,TQT_SLOT( goNext() ),
+ TQT_TQOBJECT(mCalendarView),TQT_SLOT( goNext() ),
mACollection, "go_next" );
/*
connect( mCalendarView,TQT_SIGNAL( changeNavStringNext( const TQString & ) ),
@@ -449,35 +449,35 @@ void ActionManager::initActions()
//************************** Actions MENU *********************************
new KAction( i18n("New E&vent..."),
KOGlobals::self()->smallIcon( "newappointment" ), 0,
- mCalendarView, TQT_SLOT(newEvent()),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT(newEvent()),
mACollection, "new_event" );
new KAction( i18n("New &To-do..."),
KOGlobals::self()->smallIcon( "newtodo" ), 0,
- mCalendarView, TQT_SLOT(newTodo()),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT(newTodo()),
mACollection, "new_todo" );
action = new KAction( i18n("New Su&b-to-do..."), 0,
- mCalendarView,TQT_SLOT( newSubTodo() ),
+ TQT_TQOBJECT(mCalendarView),TQT_SLOT( newSubTodo() ),
mACollection, "new_subtodo" );
action->setEnabled( false );
connect( mCalendarView,TQT_SIGNAL( todoSelected( bool ) ),
action,TQT_SLOT( setEnabled( bool ) ) );
new KAction( i18n("New &Journal..."),
KOGlobals::self()->smallIcon( "newjournal" ), 0,
- mCalendarView, TQT_SLOT(newJournal()),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT(newJournal()),
mACollection, "new_journal" );
mShowIncidenceAction = new KAction( i18n("&Show"), 0,
- mCalendarView,TQT_SLOT( showIncidence() ),
+ TQT_TQOBJECT(mCalendarView),TQT_SLOT( showIncidence() ),
mACollection, "show_incidence" );
mEditIncidenceAction = new KAction( i18n("&Edit..."), 0,
- mCalendarView,TQT_SLOT( editIncidence() ),
+ TQT_TQOBJECT(mCalendarView),TQT_SLOT( editIncidence() ),
mACollection, "edit_incidence" );
mDeleteIncidenceAction = new KAction( i18n("&Delete"), Key_Delete,
- mCalendarView,TQT_SLOT( deleteIncidence()),
+ TQT_TQOBJECT(mCalendarView),TQT_SLOT( deleteIncidence()),
mACollection, "delete_incidence" );
action = new KAction( i18n("&Make Sub-to-do Independent"), 0,
- mCalendarView,TQT_SLOT( todo_unsub() ),
+ TQT_TQOBJECT(mCalendarView),TQT_SLOT( todo_unsub() ),
mACollection, "unsub_todo" );
action->setEnabled( false );
connect( mCalendarView,TQT_SIGNAL( subtodoSelected( bool ) ),
@@ -496,27 +496,27 @@ void ActionManager::initActions()
//************************** SCHEDULE MENU ********************************
mPublishEvent = new KAction( i18n("&Publish Item Information..."), "mail_send", 0,
- mCalendarView, TQT_SLOT( schedule_publish() ),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT( schedule_publish() ),
mACollection, "schedule_publish" );
mPublishEvent->setEnabled( false );
mSendInvitation = new KAction( i18n( "Send &Invitation to Attendees" ),
"mail_generic", 0,
- mCalendarView, TQT_SLOT(schedule_request()),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT(schedule_request()),
mACollection, "schedule_request" );
mSendInvitation->setEnabled( false );
connect( mCalendarView, TQT_SIGNAL(organizerEventsSelected(bool)),
mSendInvitation, TQT_SLOT(setEnabled(bool)) );
mRequestUpdate = new KAction( i18n( "Re&quest Update" ), 0,
- mCalendarView, TQT_SLOT(schedule_refresh()),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT(schedule_refresh()),
mACollection, "schedule_refresh" );
mRequestUpdate->setEnabled( false );
connect( mCalendarView, TQT_SIGNAL(groupEventsSelected(bool)),
mRequestUpdate, TQT_SLOT(setEnabled(bool)) );
mSendCancel = new KAction( i18n( "Send &Cancelation to Attendees" ), 0,
- mCalendarView, TQT_SLOT(schedule_cancel()),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT(schedule_cancel()),
mACollection, "schedule_cancel" );
mSendCancel->setEnabled( false );
connect( mCalendarView, TQT_SIGNAL(organizerEventsSelected(bool)),
@@ -524,37 +524,37 @@ void ActionManager::initActions()
mSendStatusUpdate = new KAction( i18n( "Send tqStatus &Update" ),
"mail_reply", 0,
- mCalendarView,TQT_SLOT(schedule_reply()),
+ TQT_TQOBJECT(mCalendarView),TQT_SLOT(schedule_reply()),
mACollection, "schedule_reply" );
mSendStatusUpdate->setEnabled( false );
connect( mCalendarView, TQT_SIGNAL(groupEventsSelected(bool)),
mSendStatusUpdate, TQT_SLOT(setEnabled(bool)) );
mRequestChange = new KAction( i18n( "counter proposal", "Request Chan&ge" ), 0,
- mCalendarView, TQT_SLOT(schedule_counter()),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT(schedule_counter()),
mACollection, "schedule_counter" );
mRequestChange->setEnabled( false );
connect( mCalendarView, TQT_SIGNAL(groupEventsSelected(bool)),
mRequestChange, TQT_SLOT(setEnabled(bool)) );
mForwardEvent = new KAction( i18n("&Send as iCalendar..."), "mail_forward", 0,
- mCalendarView, TQT_SLOT(schedule_forward()),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT(schedule_forward()),
mACollection, "schedule_forward" );
mForwardEvent->setEnabled( false );
action = new KAction( i18n("&Mail Free Busy Information..."), 0,
- mCalendarView, TQT_SLOT( mailFreeBusy() ),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT( mailFreeBusy() ),
mACollection, "mail_freebusy" );
action->setEnabled( true );
action = new KAction( i18n("&Upload Free Busy Information"), 0,
- mCalendarView, TQT_SLOT( uploadFreeBusy() ),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT( uploadFreeBusy() ),
mACollection, "upload_freebusy" );
action->setEnabled( true );
if ( !mIsPart ) {
action = new KAction( i18n("&Addressbook"),"contents",0,
- mCalendarView,TQT_SLOT( openAddressbook() ),
+ TQT_TQOBJECT(mCalendarView),TQT_SLOT( openAddressbook() ),
mACollection,"addressbook" );
}
@@ -565,13 +565,13 @@ void ActionManager::initActions()
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SIDEBAR ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mDateNavigatorShowAction = new KToggleAction( i18n("Show Date Navigator"), 0,
- this, TQT_SLOT( toggleDateNavigator() ),
+ TQT_TQOBJECT(this), TQT_SLOT( toggleDateNavigator() ),
mACollection, "show_datenavigator" );
mTodoViewShowAction = new KToggleAction ( i18n("Show To-do View"), 0,
- this, TQT_SLOT( toggleTodoView() ),
+ TQT_TQOBJECT(this), TQT_SLOT( toggleTodoView() ),
mACollection, "show_todoview" );
mEventViewerShowAction = new KToggleAction ( i18n("Show Item Viewer"), 0,
- this, TQT_SLOT( toggleEventViewer() ),
+ TQT_TQOBJECT(this), TQT_SLOT( toggleEventViewer() ),
mACollection, "show_eventviewer" );
KConfig *config = KOGlobals::self()->config();
config->setGroup( "Settings" );
@@ -590,10 +590,10 @@ void ActionManager::initActions()
if ( !mMainWindow->hasDocument() ) {
mResourceViewShowAction = new KToggleAction ( i18n("Show Resource View"), 0,
- this, TQT_SLOT( toggleResourceView() ),
+ TQT_TQOBJECT(this), TQT_SLOT( toggleResourceView() ),
mACollection, "show_resourceview" );
mResourceButtonsAction = new KToggleAction( i18n("Show &Resource Buttons"), 0,
- this, TQT_SLOT( toggleResourceButtons() ),
+ TQT_TQOBJECT(this), TQT_SLOT( toggleResourceButtons() ),
mACollection, "show_resourcebuttons" );
mResourceViewShowAction->setChecked(
config->readBoolEntry( "ResourceViewVisible", true ) );
@@ -608,35 +608,35 @@ void ActionManager::initActions()
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SIDEBAR ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
new KAction( i18n("Configure &Date && Time..."), 0,
- this, TQT_SLOT( configureDateTime() ),
+ TQT_TQOBJECT(this), TQT_SLOT( configureDateTime() ),
mACollection, "conf_datetime" );
// TODO: Add an item to show the resource management dlg
// new KAction( i18n("Manage &Resources..."), 0,
-// this, TQT_SLOT( manageResources() ),
+// TQT_TQOBJECT(this), TQT_SLOT( manageResources() ),
// mACollection, "conf_resources" );
new KAction( i18n("Manage View &Filters..."), "configure", 0,
- mCalendarView, TQT_SLOT( editFilters() ),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT( editFilters() ),
mACollection, "edit_filters" );
new KAction( i18n("Manage C&ategories..."), 0,
- mCalendarView->dialogManager(), TQT_SLOT( showCategoryEditDialog() ),
+ TQT_TQOBJECT(mCalendarView->dialogManager()), TQT_SLOT( showCategoryEditDialog() ),
mACollection, "edit_categories" );
if ( mIsPart ) {
new KAction( i18n("&Configure Calendar..."), "configure", 0,
- mCalendarView, TQT_SLOT( edit_options() ),
+ TQT_TQOBJECT(mCalendarView), TQT_SLOT( edit_options() ),
mACollection, "korganizer_configure" );
- KStdAction::keyBindings( this, TQT_SLOT( keyBindings() ),
+ KStdAction::keyBindings( TQT_TQOBJECT(this), TQT_SLOT( keyBindings() ),
mACollection, "korganizer_configure_shortcuts" );
} else {
- KStdAction::preferences( mCalendarView, TQT_SLOT( edit_options() ),
+ KStdAction::preferences( TQT_TQOBJECT(mCalendarView), TQT_SLOT( edit_options() ),
mACollection );
- KStdAction::keyBindings( this, TQT_SLOT( keyBindings() ), mACollection );
+ KStdAction::keyBindings( TQT_TQOBJECT(this), TQT_SLOT( keyBindings() ), mACollection );
}
//**************************** HELP MENU **********************************
- KStdAction::tipOfDay( this, TQT_SLOT( showTip() ), mACollection,
+ KStdAction::tipOfDay( TQT_TQOBJECT(this), TQT_SLOT( showTip() ), mACollection,
"help_tipofday" );
// new KAction( i18n("Show Intro Page"), 0,
// mCalendarView,TQT_SLOT( showIntro() ),
@@ -872,7 +872,7 @@ bool ActionManager::openURL( const KURL &url,bool merge )
mFile = url.path();
if ( !KStandardDirs::exists( mFile ) ) {
mMainWindow->showStatusMessage( i18n("New calendar '%1'.")
- .arg( url.prettyURL() ) );
+ .tqarg( url.prettyURL() ) );
mCalendarView->setModified();
} else {
bool success = mCalendarView->openCalendar( mFile, merge );
@@ -906,7 +906,7 @@ bool ActionManager::openURL( const KURL &url,bool merge )
return success;
} else {
TQString msg;
- msg = i18n("Cannot download calendar from '%1'.").arg( url.prettyURL() );
+ msg = i18n("Cannot download calendar from '%1'.").tqarg( url.prettyURL() );
KMessageBox::error( dialogParent(), msg );
return false;
}
@@ -945,7 +945,7 @@ bool ActionManager::addResource( const KURL &mUrl )
resource->setResourceName( name );
manager->add( resource );
mMainWindow->showStatusMessage( i18n( "Added calendar resource for URL '%1'." )
- .arg( name ) );
+ .tqarg( name ) );
// we have to call resourceAdded manually, because for in-process changes
// the dcop signals are not connected, so the resource's signals would not
// be connected otherwise
@@ -953,7 +953,7 @@ bool ActionManager::addResource( const KURL &mUrl )
mCalendarResources->resourceAdded( resource );
} else {
TQString msg = i18n("Unable to create calendar resource '%1'.")
- .arg( name );
+ .tqarg( name );
KMessageBox::error( dialogParent(), msg );
}
return true;
@@ -964,10 +964,10 @@ void ActionManager::showStatusMessageOpen( const KURL &url, bool merge )
{
if ( merge ) {
mMainWindow->showStatusMessage( i18n("Merged calendar '%1'.")
- .arg( url.prettyURL() ) );
+ .tqarg( url.prettyURL() ) );
} else {
mMainWindow->showStatusMessage( i18n("Opened calendar '%1'.")
- .arg( url.prettyURL() ) );
+ .tqarg( url.prettyURL() ) );
}
}
@@ -1018,7 +1018,7 @@ bool ActionManager::saveURL()
if ( !mURL.isLocalFile() ) {
if ( !KIO::NetAccess::upload( mFile, mURL, view() ) ) {
TQString msg = i18n("Cannot upload calendar to '%1'")
- .arg( mURL.prettyURL() );
+ .tqarg( mURL.prettyURL() );
KMessageBox::error( dialogParent() ,msg );
return false;
}
@@ -1030,7 +1030,7 @@ bool ActionManager::saveURL()
mAutoSaveTimer->start( 1000*60*KOPrefs::instance()->mAutoSaveInterval );
}
- mMainWindow->showStatusMessage( i18n("Saved calendar '%1'.").arg( mURL.prettyURL() ) );
+ mMainWindow->showStatusMessage( i18n("Saved calendar '%1'.").tqarg( mURL.prettyURL() ) );
return true;
}
@@ -1061,7 +1061,7 @@ void ActionManager::exportHTML( HTMLExportSettings *settings )
return;
kdDebug()<<" settings->outputFile() :"<<settings->outputFile()<<endl;
if ( TQFileInfo( settings->outputFile() ).exists() ) {
- if(KMessageBox::questionYesNo( dialogParent(), i18n("Do you want to overwrite file \"%1\"").arg( settings->outputFile()) ) == KMessageBox::No)
+ if(KMessageBox::questionYesNo( dialogParent(), i18n("Do you want to overwrite file \"%1\"").tqarg( settings->outputFile()) ) == KMessageBox::No)
return;
}
settings->setEMail( KOPrefs::instance()->email() );
@@ -1136,7 +1136,7 @@ bool ActionManager::saveAsURL( const KURL &url )
setTitle();
if ( mRecent ) mRecent->addURL( mURL );
} else {
- KMessageBox::sorry( dialogParent(), i18n("Unable to save calendar to the file %1.").arg( mFile ), i18n("Error") );
+ KMessageBox::sorry( dialogParent(), i18n("Unable to save calendar to the file %1.").tqarg( mFile ), i18n("Error") );
kdDebug(5850) << "ActionManager::saveAsURL() failed" << endl;
mURL = URLOrig;
mFile = fileOrig;
@@ -1558,7 +1558,7 @@ TQPair<ResourceCalendar *, TQString> ActionManager::viewSubResourceCalendar()
cV = mCalendarView->viewManager()->multiAgendaView()->selectedAgendaView();
}
if ( cV ) {
- p = qMakePair( cV->resourceCalendar(), cV->subResourceCalendar() );
+ p = tqMakePair( cV->resourceCalendar(), cV->subResourceCalendar() );
}
return p;
}
@@ -1892,7 +1892,7 @@ void ActionManager::updateUndoAction( const TQString &text )
} else {
mUndoAction->setEnabled( true );
if ( text.isEmpty() ) mUndoAction->setText( i18n("Undo") );
- else mUndoAction->setText( i18n("Undo (%1)").arg( text ) );
+ else mUndoAction->setText( i18n("Undo (%1)").tqarg( text ) );
}
}
@@ -1904,7 +1904,7 @@ void ActionManager::updateRedoAction( const TQString &text )
} else {
mRedoAction->setEnabled( true );
if ( text.isEmpty() ) mRedoAction->setText( i18n("Redo") );
- else mRedoAction->setText( i18n( "Redo (%1)" ).arg( text ) );
+ else mRedoAction->setText( i18n( "Redo (%1)" ).tqarg( text ) );
}
}
@@ -1983,7 +1983,7 @@ bool ActionManager::saveResourceCalendar()
int result = KMessageBox::warningContinueCancel( view(),
i18n( "Saving of '%1' failed. Check that the resource is "
"properly configured.\nIgnore problem and continue without "
- "saving or cancel save?" ).arg( (*it)->resourceName() ),
+ "saving or cancel save?" ).tqarg( (*it)->resourceName() ),
i18n("Save Error"), KStdGuiItem::dontSave() );
if ( result == KMessageBox::Cancel ) return false;
}
@@ -2006,7 +2006,7 @@ void ActionManager::importCalendar( const KURL &url )
{
if ( !url.isValid() ) {
KMessageBox::error( dialogParent(),
- i18n("URL '%1' is invalid.").arg( url.prettyURL() ) );
+ i18n("URL '%1' is invalid.").tqarg( url.prettyURL() ) );
return;
}