/***************************************************************************
 * mainwindow.h
 * This file is part of the KDE project
 * copyright (C)2006 by Sebastian Sauer (mail@dipe.org)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 * You should have received a copy of the GNU Library General Public License
 * along with this program; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 ***************************************************************************/

#ifndef KROSSTUTORIAL_MAINWINDOW_H
#define KROSSTUTORIAL_MAINWINDOW_H

#include <QObject>
#include <QMenu>
#include <kactionmenu.h>
#include <kparts/mainwindow.h>
#include <kparts/part.h>

class MainWindow : public KParts::MainWindow
{
        Q_OBJECT
    public:
        MainWindow();
        virtual ~MainWindow();
    private slots:
        void slotFileOpen();
        void slotFileReopen(QAction*);
        void slotFileReload();
        void slotFileClose();
    protected:
        virtual void closeEvent(QCloseEvent* event);
        virtual void readProperties(KConfig*);
        virtual void saveProperties(KConfig*);
    private:
        QMenu* m_reopenmenu;
        KParts::ReadWritePart* m_part;
};

#endif
