Back to index

scribus-ng  1.3.4.dfsg+svn20071115
scribuswin.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 /***************************************************************************
00008                           scribuswin.h  -  description
00009                              -------------------
00010     begin                : Mit Nov 6 2002
00011     copyright            : (C) 2002 by Franz Schmid
00012     email                : Franz.Schmid@altmuehlnet.de
00013  ***************************************************************************/
00014 
00015 /***************************************************************************
00016  *                                                                         *
00017  *   This program is free software; you can redistribute it and/or modify  *
00018  *   it under the terms of the GNU General Public License as published by  *
00019  *   the Free Software Foundation; either version 2 of the License, or     *
00020  *   (at your option) any later version.                                   *
00021  *                                                                         *
00022  ***************************************************************************/
00023 
00024 #ifndef SCRIBUSWIN_H
00025 #define SCRIBUSWIN_H
00026 
00027 #include <qmainwindow.h>
00028 class ScribusDoc;
00029 class ScribusMainWindow;
00030 class ScribusView;
00031 #include "scribusapi.h"
00032 #include "muster.h"
00037 class SCRIBUS_API ScribusWin : public QMainWindow
00038 {
00039        Q_OBJECT
00040 
00041 public: 
00042        ScribusWin(QWidget* parent, ScribusDoc* doc);
00043        ~ScribusWin() {};
00044        void closeEvent(QCloseEvent *ce);
00045        void setView(ScribusView* newView);
00046        void setMainWindow(ScribusMainWindow *);
00047        ScribusView* view() const { return m_View;}
00048        ScribusDoc* doc() const { return m_Doc;}
00049        void setMasterPagesPalette(MasterPagesPalette* newMPP) { m_masterPagesPalette=newMPP; }
00050        MasterPagesPalette* masterPagesPalette() const { return m_masterPagesPalette; }
00051        void setMenuStatus(int index, bool value) { if (index>=0 && index <=6) MenuStat[index]=value;}
00052        bool menuStatus(int index) const { if (index>=0 && index <=6) return MenuStat[index]; else return false; }
00053        void setMasterPagesPaletteShown(bool isShown) const;
00054        
00055 public slots:
00056        void slotAutoSave();
00057        
00058 signals:
00059        void AutoSaved();
00060 
00061 protected:
00062        virtual void windowActivationChange ( bool oldActive );
00063        QString currentDir;
00064        QHBoxLayout* statusFrameLayout;
00065        ScribusMainWindow* m_MainWindow;
00066        ScribusView* m_View;
00067        ScribusDoc* m_Doc;
00068        MasterPagesPalette* m_masterPagesPalette;
00069        QFrame *statusFrame;
00070        bool MenuStat[7];
00071        int winIndex;
00072 };
00073 
00074 #endif