/***************************************************************************
 *   Copyright (C) 2005 by Ian Reinhart Geiser                             *
 *   geiseri@sourcextreme.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 DHWPage;
class DHWWidget;

class MainWindow : public QMainWindow
{
	Q_OBJECT
	public:
		MainWindow();
		~MainWindow();

	public slots:
		void on_loadPage_triggered();
		void on_exitApp_triggered();
		void on_exportPage_triggered();
		void on_exportPDF_triggered();
		void on_printPage_triggered();
		void on_antialias_toggled(bool state);
		void on_mLayer_valueChanged(int newValue );
		void on_mZoom_activated(int newValue );
		void on_helpAbout_triggered();
		void on_helpAboutQt_triggered();
		void on_editCopySelection_triggered();
		void on_editCopyPage_triggered();


		void openFile( const QString &fileName);
		void printToPDF( const QString &exportFile );
		void exportImage( const QString &exportFile );



	protected:
		void closeEvent ( QCloseEvent * e );
		void resizeEvent( QResizeEvent * e );

	private:
		enum Zoom { PageWidth, Page, Selection, TwentyFive, Fifty, SeventyFive, OneHundred };

		DHWPage *mPage;
		DHWWidget *mView;
		QString mCurrentFile;
		Ui::MainWindow ui;

};
#endif

