summaryrefslogtreecommitdiff
authordrw <drw>2005-02-02 18:37:52 (UTC)
committer drw <drw>2005-02-02 18:37:52 (UTC)
commitc024777b6760a4e950e6df04a6e1e5894b0e3659 (patch) (side-by-side diff)
treebe77bb8f1bc3bfe7ab961cfe0525979c8145139a
parent5b2a4d83b6b60cc9ca634aeb481cf15d70fc9b2f (diff)
downloadopie-c024777b6760a4e950e6df04a6e1e5894b0e3659.zip
opie-c024777b6760a4e950e6df04a6e1e5894b0e3659.tar.gz
opie-c024777b6760a4e950e6df04a6e1e5894b0e3659.tar.bz2
Minor update to work with new OPimMainWindow
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index 75da27c..9013522 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -24,99 +24,100 @@ _;:, .> :=|. This program is free software; you can
Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#include <unistd.h>
#include <opie2/odebug.h>
#include <opie2/opimrecurrence.h>
#include <opie2/opimnotifymanager.h>
#include <opie2/otodoaccessvcal.h>
#include <opie2/oapplicationfactory.h>
#include <qpe/applnk.h>
#include <qpe/config.h>
#include <qpe/ir.h>
#include <qpe/resource.h>
#include <qpe/qpemessagebox.h>
#include <qpe/alarmserver.h>
#include <qpe/qpeapplication.h>
#include <qaction.h>
#include <qlayout.h>
#include <qmenubar.h>
#include <qmessagebox.h>
#include <qpushbutton.h>
#include <qstringlist.h>
#include <qtimer.h>
#include <qwhatsthis.h>
#include "quickeditimpl.h"
#include "todotemplatemanager.h"
#include "templatedialogimpl.h"
#include "tableview.h"
#include "textviewshow.h"
#include "todoeditor.h"
#include "newtaskdlg.h"
#include "mainwindow.h"
using Opie::Core::OApplicationFactory;
OPIE_EXPORT_APP( OApplicationFactory<Todo::MainWindow> )
using namespace Opie;
using namespace Todo;
MainWindow::MainWindow( QWidget* parent,
const char* name, WFlags )
- : Opie::OPimMainWindow( "Todolist", tr( "Todo List" ), "Todo List", tr( "Task" ), "todo",
+ : Opie::OPimMainWindow( "Todolist", "Todo List", tr( "Task" ), "todo",
parent, name, WType_TopLevel | WStyle_ContextHelp )
{
+ setCaption( tr( "Todo List" ) );
if (!name)
setName("todo window");
m_syncing = false;
m_showing = false;
m_counter = 0;
m_tempManager = new TemplateManager();
m_tempManager->load();
initConfig();
initUI();
initViews();
initActions();
initEditor();
initShow();
raiseCurrentView();
QTimer::singleShot( 0, this, SLOT(initStuff()) );
}
void MainWindow::initStuff() {
m_todoMgr.load();
setViewCategory( m_curCat );
setCategory( m_curCat );
}
void MainWindow::initActions() {
// Insert Task menu items
QActionGroup *items = new QActionGroup( this, QString::null, false );
m_deleteCompleteAction = new QAction( QString::null, QWidget::tr( "Delete completed" ),
0, items, 0 );
connect( m_deleteCompleteAction, SIGNAL(activated()), this, SLOT(slotDeleteCompleted()) );
insertItemMenuItems( items );
// Insert View menu items
items = new QActionGroup( this, QString::null, false );
m_completedAction = new QAction( QString::null, QWidget::tr("Show completed tasks"),
0, items, 0, true );
m_completedAction->setOn( showCompleted() );
connect( m_completedAction, SIGNAL(toggled(bool)), this, SLOT(slotShowCompleted(bool)) );
QAction *a = new QAction( QString::null, QWidget::tr("Show only over-due tasks"),
0, items, 0, true );
a->setOn( showOverDue() );
connect( a, SIGNAL(toggled(bool)), this, SLOT(slotShowDue(bool)) );
m_showDeadLineAction = new QAction( QString::null, QWidget::tr("Show task deadlines"),