summaryrefslogtreecommitdiffstats
path: root/korganizer/koviewmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koviewmanager.cpp')
-rw-r--r--korganizer/koviewmanager.cpp156
1 files changed, 78 insertions, 78 deletions
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp
index d7929039..f086e192 100644
--- a/korganizer/koviewmanager.cpp
+++ b/korganizer/koviewmanager.cpp
@@ -23,8 +23,8 @@
without including the source code for Qt in the source distribution.
*/
-#include <qwidgetstack.h>
-#include <qtabwidget.h>
+#include <tqwidgetstack.h>
+#include <tqtabwidget.h>
#include <kconfig.h>
#include <kglobal.h>
@@ -47,7 +47,7 @@
#include "koviewmanager.moc"
KOViewManager::KOViewManager( CalendarView *mainView ) :
- QObject(), mMainView( mainView )
+ TQObject(), mMainView( mainView )
{
mCurrentView = 0;
@@ -77,7 +77,7 @@ KOrg::BaseView *KOViewManager::currentView()
void KOViewManager::readSettings(KConfig *config)
{
config->setGroup("General");
- QString view = config->readEntry("Current View");
+ TQString view = config->readEntry("Current View");
if (view == "WhatsNext") showWhatsNextView();
else if (view == "Month") showMonthView();
@@ -92,7 +92,7 @@ void KOViewManager::writeSettings(KConfig *config)
{
config->setGroup("General");
- QString view;
+ TQString view;
if (mCurrentView == mWhatsNextView) view = "WhatsNext";
else if (mCurrentView == mMonthView) view = "Month";
else if (mCurrentView == mListView) view = "List";
@@ -156,7 +156,7 @@ void KOViewManager::updateView()
if ( mCurrentView ) mCurrentView->updateView();
}
-void KOViewManager::updateView(const QDate &start, const QDate &end)
+void KOViewManager::updateView(const TQDate &start, const TQDate &end)
{
// kdDebug(5850) << "KOViewManager::updateView()" << endl;
@@ -170,58 +170,58 @@ void KOViewManager::connectView(KOrg::BaseView *view)
if (!view) return;
// selecting an incidence
- connect( view, SIGNAL( incidenceSelected( Incidence * ) ),
- mMainView, SLOT( processMainViewSelection( Incidence * ) ) );
+ connect( view, TQT_SIGNAL( incidenceSelected( Incidence * ) ),
+ mMainView, TQT_SLOT( processMainViewSelection( Incidence * ) ) );
// showing/editing/deleting an incidence. The calendar view takes care of the action.
- connect(view, SIGNAL(showIncidenceSignal(Incidence *)),
- mMainView, SLOT(showIncidence(Incidence *)));
- connect(view, SIGNAL(editIncidenceSignal(Incidence *)),
- mMainView, SLOT(editIncidence(Incidence *)));
- connect(view, SIGNAL(deleteIncidenceSignal(Incidence *)),
- mMainView, SLOT(deleteIncidence(Incidence *)));
- connect(view, SIGNAL(copyIncidenceSignal(Incidence *)),
- mMainView, SLOT(copyIncidence(Incidence *)));
- connect(view, SIGNAL(cutIncidenceSignal(Incidence *)),
- mMainView, SLOT(cutIncidence(Incidence *)));
- connect(view, SIGNAL(pasteIncidenceSignal()),
- mMainView, SLOT(pasteIncidence()));
- connect(view, SIGNAL(toggleAlarmSignal(Incidence *)),
- mMainView, SLOT(toggleAlarm(Incidence *)));
- connect(view,SIGNAL(dissociateOccurrenceSignal( Incidence *, const QDate & )),
- mMainView, SLOT(dissociateOccurrence( Incidence *, const QDate & )));
- connect(view,SIGNAL(dissociateFutureOccurrenceSignal( Incidence *, const QDate & )),
- mMainView, SLOT(dissociateFutureOccurrence( Incidence *, const QDate & )));
+ connect(view, TQT_SIGNAL(showIncidenceSignal(Incidence *)),
+ mMainView, TQT_SLOT(showIncidence(Incidence *)));
+ connect(view, TQT_SIGNAL(editIncidenceSignal(Incidence *)),
+ mMainView, TQT_SLOT(editIncidence(Incidence *)));
+ connect(view, TQT_SIGNAL(deleteIncidenceSignal(Incidence *)),
+ mMainView, TQT_SLOT(deleteIncidence(Incidence *)));
+ connect(view, TQT_SIGNAL(copyIncidenceSignal(Incidence *)),
+ mMainView, TQT_SLOT(copyIncidence(Incidence *)));
+ connect(view, TQT_SIGNAL(cutIncidenceSignal(Incidence *)),
+ mMainView, TQT_SLOT(cutIncidence(Incidence *)));
+ connect(view, TQT_SIGNAL(pasteIncidenceSignal()),
+ mMainView, TQT_SLOT(pasteIncidence()));
+ connect(view, TQT_SIGNAL(toggleAlarmSignal(Incidence *)),
+ mMainView, TQT_SLOT(toggleAlarm(Incidence *)));
+ connect(view,TQT_SIGNAL(dissociateOccurrenceSignal( Incidence *, const TQDate & )),
+ mMainView, TQT_SLOT(dissociateOccurrence( Incidence *, const TQDate & )));
+ connect(view,TQT_SIGNAL(dissociateFutureOccurrenceSignal( Incidence *, const TQDate & )),
+ mMainView, TQT_SLOT(dissociateFutureOccurrence( Incidence *, const TQDate & )));
// signals to create new incidences
- connect( view, SIGNAL( newEventSignal() ),
- mMainView, SLOT( newEvent() ) );
- connect( view, SIGNAL( newEventSignal( const QDateTime & ) ),
- mMainView, SLOT( newEvent( const QDateTime & ) ) );
- connect( view, SIGNAL( newEventSignal( const QDateTime &, const QDateTime & ) ),
- mMainView, SLOT( newEvent( const QDateTime &, const QDateTime & ) ) );
- connect( view, SIGNAL( newEventSignal( const QDate & ) ),
- mMainView, SLOT( newEvent( const QDate & ) ) );
- connect( view, SIGNAL( newTodoSignal( const QDate & ) ),
- mMainView, SLOT( newTodo( const QDate & ) ) );
- connect( view, SIGNAL( newSubTodoSignal( Todo * ) ),
- mMainView, SLOT( newSubTodo( Todo *) ) );
- connect( view, SIGNAL( newJournalSignal( const QDate & ) ),
- mMainView, SLOT( newJournal( const QDate & ) ) );
+ connect( view, TQT_SIGNAL( newEventSignal() ),
+ mMainView, TQT_SLOT( newEvent() ) );
+ connect( view, TQT_SIGNAL( newEventSignal( const TQDateTime & ) ),
+ mMainView, TQT_SLOT( newEvent( const TQDateTime & ) ) );
+ connect( view, TQT_SIGNAL( newEventSignal( const TQDateTime &, const TQDateTime & ) ),
+ mMainView, TQT_SLOT( newEvent( const TQDateTime &, const TQDateTime & ) ) );
+ connect( view, TQT_SIGNAL( newEventSignal( const TQDate & ) ),
+ mMainView, TQT_SLOT( newEvent( const TQDate & ) ) );
+ connect( view, TQT_SIGNAL( newTodoSignal( const TQDate & ) ),
+ mMainView, TQT_SLOT( newTodo( const TQDate & ) ) );
+ connect( view, TQT_SIGNAL( newSubTodoSignal( Todo * ) ),
+ mMainView, TQT_SLOT( newSubTodo( Todo *) ) );
+ connect( view, TQT_SIGNAL( newJournalSignal( const TQDate & ) ),
+ mMainView, TQT_SLOT( newJournal( const TQDate & ) ) );
// reload settings
- connect(mMainView, SIGNAL(configChanged()), view, SLOT(updateConfig()));
+ connect(mMainView, TQT_SIGNAL(configChanged()), view, TQT_SLOT(updateConfig()));
// Notifications about added, changed and deleted incidences
- connect( mMainView, SIGNAL( dayPassed( const QDate & ) ),
- view, SLOT( dayPassed( const QDate & ) ) );
- connect( view, SIGNAL( startMultiModify( const QString & ) ),
- mMainView, SLOT( startMultiModify( const QString & ) ) );
- connect( view, SIGNAL( endMultiModify() ),
- mMainView, SLOT( endMultiModify() ) );
-
- connect( mMainView, SIGNAL( newIncidenceChanger( IncidenceChangerBase* ) ),
- view, SLOT( setIncidenceChanger( IncidenceChangerBase * ) ) );
+ connect( mMainView, TQT_SIGNAL( dayPassed( const TQDate & ) ),
+ view, TQT_SLOT( dayPassed( const TQDate & ) ) );
+ connect( view, TQT_SIGNAL( startMultiModify( const TQString & ) ),
+ mMainView, TQT_SLOT( startMultiModify( const TQString & ) ) );
+ connect( view, TQT_SIGNAL( endMultiModify() ),
+ mMainView, TQT_SLOT( endMultiModify() ) );
+
+ connect( mMainView, TQT_SIGNAL( newIncidenceChanger( IncidenceChangerBase* ) ),
+ view, TQT_SLOT( setIncidenceChanger( IncidenceChangerBase * ) ) );
view->setIncidenceChanger( mMainView->incidenceChanger() );
}
@@ -230,12 +230,12 @@ void KOViewManager::connectTodoView( KOTodoView* todoView )
if (!todoView) return;
// SIGNALS/SLOTS FOR TODO VIEW
- connect( todoView, SIGNAL( purgeCompletedSignal() ),
- mMainView, SLOT( purgeCompleted() ) );
- connect( todoView, SIGNAL( unSubTodoSignal() ),
- mMainView, SLOT( todo_unsub() ) );
- connect( todoView, SIGNAL( unAllSubTodoSignal() ),
- mMainView, SLOT( makeSubTodosIndependents() ) );
+ connect( todoView, TQT_SIGNAL( purgeCompletedSignal() ),
+ mMainView, TQT_SLOT( purgeCompleted() ) );
+ connect( todoView, TQT_SIGNAL( unSubTodoSignal() ),
+ mMainView, TQT_SLOT( todo_unsub() ) );
+ connect( todoView, TQT_SIGNAL( unAllSubTodoSignal() ),
+ mMainView, TQT_SLOT( makeSubTodosIndependents() ) );
}
void KOViewManager::zoomInHorizontally()
@@ -290,11 +290,11 @@ void KOViewManager::showAgendaView()
const bool showMerged = showBoth || KOPrefs::instance()->agendaViewCalendarDisplay() == KOPrefs::CalendarsMerged;
const bool showSideBySide = showBoth || KOPrefs::instance()->agendaViewCalendarDisplay() == KOPrefs::CalendarsSideBySide;
- QWidget *parent = mMainView->viewStack();
+ TQWidget *parent = mMainView->viewStack();
if ( !mAgendaViewTabs && showBoth ) {
- mAgendaViewTabs = new QTabWidget( mMainView->viewStack() );
- connect( mAgendaViewTabs, SIGNAL( currentChanged( QWidget* ) ),
- this, SLOT( currentAgendaViewTabChanged( QWidget* ) ) );
+ mAgendaViewTabs = new TQTabWidget( mMainView->viewStack() );
+ connect( mAgendaViewTabs, TQT_SIGNAL( currentChanged( TQWidget* ) ),
+ this, TQT_SLOT( currentAgendaViewTabChanged( TQWidget* ) ) );
parent = mAgendaViewTabs;
}
@@ -303,13 +303,13 @@ void KOViewManager::showAgendaView()
addView(mAgendaView);
- connect(mAgendaView, SIGNAL( toggleExpand() ),
- mMainView, SLOT( toggleExpand() ) );
- connect(mMainView, SIGNAL( calendarViewExpanded( bool ) ),
- mAgendaView, SLOT( setExpandedButton( bool ) ) );
+ connect(mAgendaView, TQT_SIGNAL( toggleExpand() ),
+ mMainView, TQT_SLOT( toggleExpand() ) );
+ connect(mMainView, TQT_SIGNAL( calendarViewExpanded( bool ) ),
+ mAgendaView, TQT_SLOT( setExpandedButton( bool ) ) );
- connect( mAgendaView,SIGNAL( zoomViewHorizontally(const QDate &, int )),
- mMainView->dateNavigator(),SLOT( selectDates( const QDate &, int ) ) );
+ connect( mAgendaView,TQT_SIGNAL( zoomViewHorizontally(const TQDate &, int )),
+ mMainView->dateNavigator(),TQT_SLOT( selectDates( const TQDate &, int ) ) );
mAgendaView->readSettings();
}
@@ -320,13 +320,13 @@ void KOViewManager::showAgendaView()
addView(mAgendaSideBySideView);
-/* connect(mAgendaSideBySideView, SIGNAL( toggleExpand() ),
- mMainView, SLOT( toggleExpand() ) );
- connect(mMainView, SIGNAL( calendarViewExpanded( bool ) ),
- mAgendaSideBySideView, SLOT( setExpandedButton( bool ) ) );
+/* connect(mAgendaSideBySideView, TQT_SIGNAL( toggleExpand() ),
+ mMainView, TQT_SLOT( toggleExpand() ) );
+ connect(mMainView, TQT_SIGNAL( calendarViewExpanded( bool ) ),
+ mAgendaSideBySideView, TQT_SLOT( setExpandedButton( bool ) ) );
- connect( mAgendaSideBySideView,SIGNAL( zoomViewHorizontally(const QDate &, int )),
- mMainView->dateNavigator(),SLOT( selectDates( const QDate &, int ) ) );*/
+ connect( mAgendaSideBySideView,TQT_SIGNAL( zoomViewHorizontally(const TQDate &, int )),
+ mMainView->dateNavigator(),TQT_SLOT( selectDates( const TQDate &, int ) ) );*/
}
if ( showBoth && mAgendaViewTabs ) {
@@ -370,7 +370,7 @@ void KOViewManager::showWeekView()
void KOViewManager::showNextXView()
{
showAgendaView();
- mMainView->dateNavigator()->selectDates( QDate::currentDate(),
+ mMainView->dateNavigator()->selectDates( TQDate::currentDate(),
KOPrefs::instance()->mNextXDays );
}
@@ -437,9 +437,9 @@ Incidence *KOViewManager::currentSelection()
return incidenceList.first();
}
-QDate KOViewManager::currentSelectionDate()
+TQDate KOViewManager::currentSelectionDate()
{
- QDate qd;
+ TQDate qd;
if (mCurrentView) {
DateList qvl = mCurrentView->selectedDates();
if (!qvl.isEmpty()) qd = qvl.first();
@@ -447,13 +447,13 @@ QDate KOViewManager::currentSelectionDate()
return qd;
}
-void KOViewManager::setDocumentId( const QString &id )
+void KOViewManager::setDocumentId( const TQString &id )
{
if (mTodoView) mTodoView->setDocumentId( id );
}
-QWidget* KOViewManager::widgetForView( KOrg::BaseView* view ) const
+TQWidget* KOViewManager::widgetForView( KOrg::BaseView* view ) const
{
const bool showBoth = KOPrefs::instance()->agendaViewCalendarDisplay() == KOPrefs::AllCalendarViews;
if ( (view == mAgendaView || view == mAgendaSideBySideView) && mAgendaViewTabs && showBoth ) {
@@ -463,7 +463,7 @@ QWidget* KOViewManager::widgetForView( KOrg::BaseView* view ) const
}
-void KOViewManager::currentAgendaViewTabChanged( QWidget* widget )
+void KOViewManager::currentAgendaViewTabChanged( TQWidget* widget )
{
showView( static_cast<KOrg::BaseView*>( widget ) );
}