From 9a4c9544a59f8395f2ec5e7c99028570f8bd8bd1 Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 12 May 2003 13:21:59 +0000 Subject: Hospital Hacking Session make more translatable fix up GUI for Opie1.0 in regards what is implemnted implement setting and removing of Alarms!!!! Show Alarms once they got fired... --- (limited to 'core/pim/todo/otaskeditor.cpp') diff --git a/core/pim/todo/otaskeditor.cpp b/core/pim/todo/otaskeditor.cpp index e26d5e4..84f854f 100644 --- a/core/pim/todo/otaskeditor.cpp +++ b/core/pim/todo/otaskeditor.cpp @@ -42,6 +42,7 @@ OTodo OTaskEditor::todo()const{ m_overView->save( to ); m_stat->save( to ); to.setRecurrence( m_rec->recurrence() ); + m_alarm->save( to ); return to; } @@ -49,6 +50,8 @@ void OTaskEditor::load(const OTodo& to) { m_overView->load( to ); m_stat->load( to ); m_rec->setRecurrence( to.recurrence(), to.hasDueDate() ? to.dueDate() : QDate::currentDate() ); + m_alarm->setEnabled( !to.hasRecurrence() ); + m_alarm->load( to ); } void OTaskEditor::init() { setCaption("Task Editor"); @@ -69,12 +72,12 @@ void OTaskEditor::init() { m_alarm = new TaskEditorAlarms( m_tab ); m_tab->addTab( m_alarm, "todo/alarm", tr("Alarms") ); - m_remind = new TaskEditorAlarms( m_tab ); - m_tab->addTab( m_remind, "todo/reminder", tr("Reminders") ); +// m_remind = new TaskEditorAlarms( m_tab ); +// m_tab->addTab( m_remind, "todo/reminder", tr("Reminders") ); - QLabel* lbl = new QLabel( m_tab ); - lbl->setText( tr("X-Ref") ); - m_tab->addTab( lbl, "todo/xref", tr("X-Ref") ); +// QLabel* lbl = new QLabel( m_tab ); +// lbl->setText( tr("X-Ref") ); +// m_tab->addTab( lbl, "todo/xref", tr("X-Ref") ); m_rec = new ORecurranceWidget( true, QDate::currentDate(), this ); m_tab->addTab( m_rec, "repeat", tr("Recurrence") ); -- cgit v0.9.0.2