#include <QtGui/QApplication>
#include <QtGui/QMessageBox>
#include "application.h"
#include "programwindow.h"
Functions | |
static void | setupSignalHandler (void) |
Installs signal handler functions. | |
QString | extractFileNameFromPath (const QString &path) |
Extracts the file name from a path and filename string. | |
int | main (int argc, char *argv[]) |
C style application entry point. |
QString extractFileNameFromPath | ( | const QString & | path | ) |
Extracts the file name from a path and filename string.
This can be used to deal with filenames that do not refer to an exising file.
Examples:
"/etc/fstab" -> "fstab"
"C:\Windows\Explorer.exe" -> "Explorer.exe"
path | Path to a file. |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
C style application entry point.
Creates a QApplication and a CProgramWindow object and runs them. Calls init() and shutdown() on the program window.
argc | argument count | |
argv | arguments |
static void setupSignalHandler | ( | void | ) | [static] |
Installs signal handler functions.
Currently it installs a signal handler for SIGSEGV. All handled signals cause the application to display an error message dialog to the user and then abort the process. This function does nothing in the win32 version.