Back to index

scribus-ng  1.3.4.dfsg+svn20071115
scribusapp.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        begin                : May 2005
00009        copyright            : (C) 2005 by Craig Bradney
00010        email                : cbradney@zip.com.au
00011 ***************************************************************************/
00012 
00013 /***************************************************************************
00014 *                                                                         *
00015 *   ScMW program is free software; you can redistribute it and/or modify  *
00016 *   it under the terms of the GNU General Public License as published by  *
00017 *   the Free Software Foundation; either version 2 of the License, or     *
00018 *   (at your option) any later version.                                   *
00019 *                                                                         *
00020 ***************************************************************************/
00021 
00022 #ifndef SCRIBUSAPP_H
00023 #define SCRIBUSAPP_H
00024 #include <qapplication.h>
00025 #include <qstring.h>
00026 
00027 #include "scribusapi.h"
00028 class ScribusCore;
00029 class ScribusMainWindow;
00030 
00031 class SCRIBUS_API ScribusQApp : public QApplication
00032 {
00033        Q_OBJECT
00034 
00035        public:
00036               ScribusQApp( int & argc, char ** argv );
00037               ~ScribusQApp();
00038               int init();
00039               void initLang();
00040               void parseCommandLine();
00041               void changeGUILanguage(const QString & lang);
00054               QStringList getLang(QString lang);
00062               void installTranslators(const QStringList & langs);
00063 
00064               const ScribusCore* core() {return m_ScCore;}
00065               static bool useGUI;
00066               void neverSplash(bool splashOff);
00067               bool neverSplashExists();
00068               const QString& currGUILanguage() {return GUILang;};
00069 
00070        private:
00071               ScribusCore* m_ScCore;
00072               void showHeader();
00073               void showVersion();
00080               void showUsage();
00086               void showAvailLangs();
00087 
00088               QString lang;
00089               QString GUILang;
00090               bool showSplash;
00091               bool showFontInfo;
00092               bool showProfileInfo;
00093               bool swapDialogButtonOrder;
00095               QString prefsUserFile;
00096               QString file;
00097 };
00098 
00099 #endif