From 786612c0c5a0e4876364b027655017362afd8c67 Mon Sep 17 00:00:00 2001 From: drw Date: Sun, 29 Dec 2002 21:11:47 +0000 Subject: More updates to edit task dialog. Rearranged info on 1st 2 tabs so it is grouped a little more logically, and also renamed these tabs. --- (limited to 'core/pim/todo/otaskeditor.cpp') diff --git a/core/pim/todo/otaskeditor.cpp b/core/pim/todo/otaskeditor.cpp index bde25ef..68b315d 100644 --- a/core/pim/todo/otaskeditor.cpp +++ b/core/pim/todo/otaskeditor.cpp @@ -1,23 +1,23 @@ #include -#include #include +#include #include #include #include "taskeditoroverview.h" -#include "taskeditoradvanced.h" +#include "taskeditorstatus.h" #include "taskeditoralarms.h" #include "otaskeditor.h" OTaskEditor::OTaskEditor(int cur) - : QDialog(0, 0, TRUE ) { + : QDialog( 0, 0, TRUE, WStyle_ContextHelp ) { init(); init( cur ); } OTaskEditor::OTaskEditor( const OTodo& to) - : QDialog(0, 0, TRUE ) { + : QDialog( 0, 0, TRUE, WStyle_ContextHelp ) { init(); init( to ); } @@ -40,14 +40,14 @@ OTodo OTaskEditor::todo()const{ OTodo to; to.setUid(m_uid ); m_overView->save( to ); - m_adv->save( to ); + m_stat->save( to ); to.setRecurrence( m_rec->recurrence() ); return to; } void OTaskEditor::load(const OTodo& to) { m_overView->load( to ); - m_adv->load( to ); + m_stat->load( to ); m_rec->setRecurrence( to.recurrence(), to.hasDueDate() ? to.dueDate() : QDate::currentDate() ); } void OTaskEditor::init() { @@ -61,10 +61,10 @@ void OTaskEditor::init() { * Add the Widgets */ m_overView = new TaskEditorOverView( m_tab ); - m_tab->addTab( m_overView, "TodoList", tr("Overview") ); + m_tab->addTab( m_overView, "todo/info", tr("Information") ); - m_adv = new TaskEditorAdvanced( m_tab ); - m_tab->addTab( m_adv, "todo/advanced", tr("Advanced") ); + m_stat = new TaskEditorStatus( m_tab ); + m_tab->addTab( m_stat, "TodoList", tr("Status") ); m_alarm = new TaskEditorAlarms( m_tab ); m_tab->addTab( m_alarm, "todo/alarm", tr("Alarms") ); @@ -77,7 +77,7 @@ void OTaskEditor::init() { m_tab->addTab( lbl, "todo/xref", tr("X-Ref") ); m_rec = new ORecurranceWidget( true, QDate::currentDate(), this ); - m_tab->addTab( m_rec, "repeat", tr("Recurrance") ); + m_tab->addTab( m_rec, "repeat", tr("Recurrence") ); /* signal and slots */ @@ -85,7 +85,7 @@ void OTaskEditor::init() { m_rec, SLOT(setEnabled(bool) ) ); /* connect due date changed to the recurrence tab */ - connect(m_overView, SIGNAL(dueDateChanged(const QDate&) ), + connect(m_stat, SIGNAL(dueDateChanged(const QDate&) ), m_rec, SLOT(setStartDate(const QDate& ) ) ); -- cgit v0.9.0.2