Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
scribusapp.h
1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
/***************************************************************************
8
begin : May 2005
9
copyright : (C) 2005 by Craig Bradney
10
email : cbradney@zip.com.au
11
***************************************************************************/
12
13
/***************************************************************************
14
* *
15
* ScMW program is free software; you can redistribute it and/or modify *
16
* it under the terms of the GNU General Public License as published by *
17
* the Free Software Foundation; either version 2 of the License, or *
18
* (at your option) any later version. *
19
* *
20
***************************************************************************/
21
22
#ifndef SCRIBUSAPP_H
23
#define SCRIBUSAPP_H
24
#include <QApplication>
25
#include <QString>
26
#include <QStringList>
27
28
#include "scribusapi.h"
29
30
class
ScribusCore
;
31
class
ScribusMainWindow
;
32
class
ScDLManager
;
33
34
class
SCRIBUS_API
ScribusQApp
:
public
QApplication
35
{
36
Q_OBJECT
37
38
public
:
39
ScribusQApp
(
int
& argc,
char
** argv );
40
~
ScribusQApp
();
41
int
init();
42
void
initLang();
43
void
initDLMgr();
44
void
parseCommandLine();
45
void
changeGUILanguage(
const
QString & lang);
58
QStringList getLang(QString lang);
66
void
installTranslators(
const
QStringList & langs);
67
68
const
ScribusCore
* core() {
return
m_ScCore;}
69
static
bool
useGUI;
70
void
neverSplash(
bool
splashOff);
71
bool
neverSplashExists();
72
const
QString& currGUILanguage() {
return
GUILang; }
73
ScDLManager
* dlManager() {
return
m_scDLMgr; }
74
QString pythonScript;
// script to be run in python from CLI
75
QStringList pythonScriptArgs;
// command line arguments and flags for script from CLI
76
77
private
:
78
ScribusCore
* m_ScCore;
79
void
showHeader();
80
void
showError(QString arg);
81
void
showVersion();
88
void
showUsage();
94
void
showAvailLangs();
95
96
QString lang;
97
QString GUILang;
98
bool
showSplash;
99
bool
showFontInfo;
100
bool
showProfileInfo;
102
QString prefsUserFile;
103
QList<QString> filesToLoad;
104
QString fileName;
105
ScDLManager
*m_scDLMgr;
106
107
protected
:
108
virtual
bool
event(QEvent *event);
109
110
protected
slots:
111
void
downloadComplete(
const
QString& t);
112
113
signals:
114
void
appStarted();
115
};
116
117
#endif
ScribusMainWindow
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition:
scribus.h:123
ScDLManager
Definition:
scdlmgr.h:18
ScribusQApp
Definition:
scribusapp.h:34
ScribusCore
The core functions moved from the old ScribusMainWindow class NO WINDOWS NO VIEWS NO DOCS NO PAGEITEM...
Definition:
scribuscore.h:52
scribus
scribusapp.h
Generated on Tue Sep 29 2015 09:15:11 for Scribus by
1.8.9.1