main_win32.cpp File Reference
#include <iostream>#include <signal.h>#include <stdio.h>#include <fcntl.h>#include <io.h>#include <QApplication>#include <exception>#include "scribusapp.h"#include "scribuscore.h"#include "scribus.h"#include "scconfig.h"#include <wincon.h>#include <windows.h>

Go to the source code of this file.
Defines | |
| #define | BASE_QM "scribus" |
| #define | MAX_LINES 500 |
Functions | |
| int | mainApp (ScribusQApp &app) |
| Launches the Gui. | |
| static LONG | exceptionFilter (DWORD exceptionCode) |
| describe the behavior to be adopted against specific exception | |
| static QString | exceptionDescription (DWORD exceptionCode) |
| return a string describing a specific exception | |
| static void | defaultCrashHandler (DWORD exceptionCode) |
| void | messageHandler (QtMsgType type, const char *msg) |
| bool | consoleOptionEnabled (int argc, char *argv[]) |
| void | redirectIOToConsole (void) |
| int | main (int argc, char *argv[]) |
Variables | |
| const char | ARG_CONSOLE [] |
| const char | ARG_CONSOLE_SHORT [] |
| ScribusCore SCRIBUS_API * | ScCore |
| ScribusMainWindow SCRIBUS_API * | ScMW |
| ScribusQApp SCRIBUS_API * | ScQApp |
| bool | emergencyActivated |
Define Documentation
| #define BASE_QM "scribus" |
Definition at line 43 of file main_win32.cpp.
| #define MAX_LINES 500 |
Function Documentation
| bool consoleOptionEnabled | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 261 of file main_win32.cpp.
References ARG_CONSOLE, ARG_CONSOLE_SHORT, and value.
Referenced by main().
| void defaultCrashHandler | ( | DWORD | exceptionCode | ) | [static] |
Definition at line 217 of file main_win32.cpp.
References ScribusCore::closeSplash(), emergencyActivated, ScribusMainWindow::emergencySave(), exceptionDescription(), ScCore, ScMW, tr(), and ScribusQApp::useGUI.
| static QString exceptionDescription | ( | DWORD | exceptionCode | ) | [static] |
return a string describing a specific exception
- Date:
- Sun Oct 30 14:30:30 CET 2005
- Parameters:
-
DWORD exceptionCode the value returned by GetExceptionCode()
- Return values:
-
string describing the specified exception
Definition at line 177 of file main_win32.cpp.
Referenced by defaultCrashHandler().
| LONG exceptionFilter | ( | DWORD | exceptionCode | ) | [static] |
describe the behavior to be adopted against specific exception
- Date:
- Sun Oct 30 14:30:30 CET 2005
- Parameters:
-
DWORD exceptionCode the value returned by GetExceptionCode()
- Return values:
-
EXCEPTION_EXECUTE_HANDLER if handler is to be executed or EXCEPTION_CONTINUE_EXECUTION if not
Definition at line 135 of file main_win32.cpp.
Referenced by mainApp().
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 76 of file main_win32.cpp.
References consoleOptionEnabled(), emergencyActivated, mainApp(), messageHandler(), and redirectIOToConsole().
| int mainApp | ( | ScribusQApp & | app | ) |
Launches the Gui.
- Date:
- Mon Feb 9 14:07:46 CET 2004
- Parameters:
-
app a Scribus QApplication object
- Return values:
-
int Error code from the execution of Scribus
Definition at line 103 of file main_win32.cpp.
References defaultCrashHandler(), exceptionFilter(), ScribusQApp::init(), ScribusQApp::parseCommandLine(), and ScribusQApp::useGUI.
| void messageHandler | ( | QtMsgType | type, | |
| const char * | msg | |||
| ) |
Definition at line 243 of file main_win32.cpp.
References ScribusCore::closeSplash(), ScribusMainWindow::emergencySave(), ScCore, ScMW, tr(), and ScribusQApp::useGUI.
Referenced by main().
| void redirectIOToConsole | ( | void | ) |
Variable Documentation
| const char ARG_CONSOLE[] |
Referenced by consoleOptionEnabled(), ScribusQApp::parseCommandLine(), and ScribusQApp::showUsage().
| const char ARG_CONSOLE_SHORT[] |
Referenced by consoleOptionEnabled(), ScribusQApp::parseCommandLine(), and ScribusQApp::showUsage().
| bool emergencyActivated |
Definition at line 74 of file main_win32.cpp.
| ScribusCore SCRIBUS_API* ScCore |
Definition at line 71 of file main_win32.cpp.
| ScribusMainWindow SCRIBUS_API* ScMW |
Definition at line 72 of file main_win32.cpp.
| ScribusQApp SCRIBUS_API* ScQApp |
Definition at line 73 of file main_win32.cpp.
