kitchensync

mainwindow.cpp
1/*
2 This file is part of KitchenSync.
3
4 Copyright (c) 2005 Tobias Koenig <tokoe@kde.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19*/
20
21#include <tdeaction.h>
22#include <tdelocale.h>
23#include <kstdaction.h>
24#include <tdetoolbar.h>
25
26#include "mainwidget.h"
27
28#include "mainwindow.h"
29
30MainWindow::MainWindow()
31 : TDEMainWindow( 0 )
32{
33 setWFlags( getWFlags() | WGroupLeader );
34
35 setCaption( i18n( "PIM Synchronization" ) );
36
37 mWidget = new MainWidget( this, this, "MainWidget" );
38
39 setCentralWidget( mWidget );
40
41 initActions();
42
43 createGUI( "kitchensyncui.rc", false );
44 createGUI( 0 );
45
46 toolBar()->setIconText( TDEToolBar::IconTextBottom );
47
48 resize( 760, 530 ); // initial size
49 setAutoSaveSettings();
50}
51
52MainWindow::~MainWindow()
53{
54}
55
56void MainWindow::initActions()
57{
58 KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection() );
59}
60
61#include "mainwindow.moc"