Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Defines | Functions | Variables
scribusapp.cpp File Reference
#include <iostream>
#include <cstdlib>
#include <qstring.h>
#include <qfont.h>
#include <qtranslator.h>
#include <qfileinfo.h>
#include <qfile.h>
#include <qdir.h>
#include <qtextcodec.h>
#include "scribusapp.h"
#include "scribusapp.moc"
#include "scribuscore.h"
#include "scpaths.h"
#include "prefsfile.h"
#include "langmgr.h"
#include "prefsmanager.h"
#include "commonstrings.h"
#include "upgradechecker.h"

Go to the source code of this file.

Defines

#define ARG_VERSION   "--version"
#define ARG_HELP   "--help"
#define ARG_LANG   "--lang"
#define ARG_AVAILLANG   "--langs-available"
#define ARG_NOSPLASH   "--no-splash"
#define ARG_NEVERSPLASH   "--never-splash"
#define ARG_NOGUI   "--no-gui"
#define ARG_DISPLAY   "--display"
#define ARG_FONTINFO   "--font-info"
#define ARG_PROFILEINFO   "--profile-info"
#define ARG_SWAPDIABUTTONS   "--swap-buttons"
#define ARG_PREFS   "--prefs"
#define ARG_UPGRADECHECK   "--upgradecheck"
#define ARG_VERSION_SHORT   "-v"
#define ARG_HELP_SHORT   "-h"
#define ARG_LANG_SHORT   "-l"
#define ARG_AVAILLANG_SHORT   "-la"
#define ARG_NOSPLASH_SHORT   "-ns"
#define ARG_NEVERSPLASH_SHORT   "-nns"
#define ARG_NOGUI_SHORT   "-g"
#define ARG_DISPLAY_SHORT   "-d"
#define ARG_FONTINFO_SHORT   "-fi"
#define ARG_PROFILEINFO_SHORT   "-pi"
#define ARG_SWAPDIABUTTONS_SHORT   "-sb"
#define ARG_PREFS_SHORT   "-pr"
#define ARG_UPGRADECHECK_SHORT   "-u"
#define ARG_DISPLAY_QT   "-display"

Functions

static void printArgLine (QTextStream &ts, const char *smallArg, const char *fullArg, const QString desc)
 Format an arguments line for printing Helper procedure.

Variables

const char ARG_CONSOLE [] = "--console"
const char ARG_CONSOLE_SHORT [] = "-cl"
ScribusQApp * ScQApp
ScribusCore * ScCore

Define Documentation

#define ARG_AVAILLANG   "--langs-available"

Definition at line 53 of file scribusapp.cpp.

#define ARG_AVAILLANG_SHORT   "-la"

Definition at line 67 of file scribusapp.cpp.

#define ARG_DISPLAY   "--display"

Definition at line 57 of file scribusapp.cpp.

#define ARG_DISPLAY_QT   "-display"

Definition at line 79 of file scribusapp.cpp.

#define ARG_DISPLAY_SHORT   "-d"

Definition at line 71 of file scribusapp.cpp.

#define ARG_FONTINFO   "--font-info"

Definition at line 58 of file scribusapp.cpp.

#define ARG_FONTINFO_SHORT   "-fi"

Definition at line 72 of file scribusapp.cpp.

#define ARG_HELP   "--help"

Definition at line 51 of file scribusapp.cpp.

#define ARG_HELP_SHORT   "-h"

Definition at line 65 of file scribusapp.cpp.

#define ARG_LANG   "--lang"

Definition at line 52 of file scribusapp.cpp.

#define ARG_LANG_SHORT   "-l"

Definition at line 66 of file scribusapp.cpp.

#define ARG_NEVERSPLASH   "--never-splash"

Definition at line 55 of file scribusapp.cpp.

#define ARG_NEVERSPLASH_SHORT   "-nns"

Definition at line 69 of file scribusapp.cpp.

#define ARG_NOGUI   "--no-gui"

Definition at line 56 of file scribusapp.cpp.

#define ARG_NOGUI_SHORT   "-g"

Definition at line 70 of file scribusapp.cpp.

#define ARG_NOSPLASH   "--no-splash"

Definition at line 54 of file scribusapp.cpp.

#define ARG_NOSPLASH_SHORT   "-ns"

Definition at line 68 of file scribusapp.cpp.

#define ARG_PREFS   "--prefs"

Definition at line 61 of file scribusapp.cpp.

#define ARG_PREFS_SHORT   "-pr"

Definition at line 75 of file scribusapp.cpp.

#define ARG_PROFILEINFO   "--profile-info"

Definition at line 59 of file scribusapp.cpp.

#define ARG_PROFILEINFO_SHORT   "-pi"

Definition at line 73 of file scribusapp.cpp.

#define ARG_SWAPDIABUTTONS   "--swap-buttons"

Definition at line 60 of file scribusapp.cpp.

#define ARG_SWAPDIABUTTONS_SHORT   "-sb"

Definition at line 74 of file scribusapp.cpp.

#define ARG_UPGRADECHECK   "--upgradecheck"

Definition at line 62 of file scribusapp.cpp.

#define ARG_UPGRADECHECK_SHORT   "-u"

Definition at line 76 of file scribusapp.cpp.

#define ARG_VERSION   "--version"

Definition at line 50 of file scribusapp.cpp.

#define ARG_VERSION_SHORT   "-v"

Definition at line 64 of file scribusapp.cpp.


Function Documentation

static void printArgLine ( QTextStream &  ts,
const char *  smallArg,
const char *  fullArg,
const QString  desc 
) [static]

Format an arguments line for printing Helper procedure.

Definition at line 373 of file scribusapp.cpp.

{
       const char* lineformat = "  %1, %2 %3";
       const int saw = 4;   // Short argument width
       const int aw = -18;   // Argument width (negative is left aligned)
       QString line = QString(lineformat)
              .arg(smallArg, saw)
              .arg(fullArg, aw)
              .arg(desc);
       ts << line;
       endl(ts);
}

Variable Documentation

const char ARG_CONSOLE[] = "--console"
const char ARG_CONSOLE_SHORT[] = "-cl"
ScribusCore* ScCore

Definition at line 45 of file main_nix.cpp.

ScribusQApp* ScQApp

Definition at line 47 of file main_nix.cpp.