/***************************************************************************
 *   Copyright (C) 2006-2008 by Ian Reinhart Geiser                        *
 *   geiseri@yahoo.com                                                     *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU 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 General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#include "ui_mainwindow.h"

class Block;
class MindMap;
class QGraphicsScene;
class QAbstractItemModel;
class QTreeView;
class BlockPropertyModel;
class QSlider;

class MainWindow: public QMainWindow {
Q_OBJECT
public:
    MainWindow(QWidget *parent = 0);

public slots:
	void on_actionNew_activated();
	void on_actionSave_activated();
	void on_actionLoad_activated();
	void on_actionReload_activated();
	void on_actionDocumentOptions_activated();
	void on_actionArrangeChildren_activated();
	void on_actionReparentIdea_activated();
	void on_actionRemoveIdea_activated();
	void on_actionAddIdea_activated();
	void on_actionCut_activated();
	void on_actionCopy_activated();
	void on_actionPaste_activated();
	void on_actionPrint_activated();
	void on_actionImportCreoleWiki_activated();
	void on_actionImportFreemindMindmap_activated();
	void on_actionTextOutline_activated();
	void on_actionExportImage_activated();
	void on_actionExportText_activated();
	void on_actionExportDocbook_activated();
	void on_actionExportPDFSlides_activated();
	void on_actionExportWiki_activated();
	void on_actionQuit_activated();
	void on_actionZoomIn_activated();
	void on_actionZoomOut_activated();
	void on_actionAlignLeftEdges_activated();
	void on_actionAlignRightEdges_activated();
	void on_actionAlignTopEdges_activated();
	void on_actionAlignBottomEdges_activated();
	void on_actionAlignCenterV_activated();
	void on_actionAlignCenterH_activated();
	void on_actionSelectAll_activated();
	void on_actionAbout_activated();
	void on_actionAboutQt_activated();
	void on_actionEditEmblems_activated();
	void on_actionManual_activated();
	void on_actionColorIdea_activated();
	void on_actionChangeFont_activated();
	void on_actionChangeType_activated();
	void on_actionProperties_activated();
	void on_actionCheckSpelling_activated();
	void on_graphicsView_selectionChanged();

	void updateWindowTitle( const QString &fileName );
	void fileLoaded( const QString &fileName );
	void startupScreen( );

protected:
	void closeEvent ( QCloseEvent * event );

private:
	void setupDocks();
	void setupModel();
	void setupMainwindow();

	Ui::MainWindow m_ui;

	QTreeView *m_propertiesView;
	MindMap *m_file;
	QSlider *m_slider;
};

#endif

