main.cpp File Reference

Implements the application's entry point main(). More...

#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.


Detailed Description

Implements the application's entry point main().


Function Documentation

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"

Parameters:
path Path to a file.
Returns:
File name without path.

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.

Parameters:
argc argument count
argv arguments
Returns:
exit code

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.


Generated on Sun Mar 2 17:12:31 2008 for Shader Maker by  doxygen 1.5.4