Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

QtFrontend Class Reference

#include <qtfrontend.h>

Inheritance diagram for QtFrontend:

Frontend List of all members.

Public Member Functions

 QtFrontend (int argc, char **argv)
virtual ~QtFrontend ()
int run (int argc, char **argv)
void showProgress (const char *infoText, unsigned int numOperations=0)
void hideProgress ()
void updateProgress (int numOperationsDone)
void setProgressInfo (const char *infoText)
bool isOperationAborted ()
void processEvents ()
void reportError (const char *message, int id)
int askQuestion (const char *question)

Protected Slots

void updateProgressBar ()

Detailed Description

Frontend for using the program through a GUI developed with the QT library.

Author:
Bjoern Erik Nilsen & Fredrik Berg Kjoelstad


Constructor & Destructor Documentation

QtFrontend::QtFrontend int  argc,
char **  argv
 

Initializing the frontend.

Parameters:
argc the argc argument from the environment through main
argv argv the argv arguments from the environment through main

QtFrontend::~QtFrontend  )  [virtual]
 

Deallocates allocated memory and sets the pointers to NULL.


Member Function Documentation

int QtFrontend::askQuestion const char *  question  )  [virtual]
 

Function for asking the user a yes/no question.

Parameters:
question the question to ask
Returns:
0 if the user answer yes, 1 if no

Implements Frontend.

void QtFrontend::hideProgress  )  [virtual]
 

Function for hiding the progress info.

Implements Frontend.

bool QtFrontend::isOperationAborted  )  [virtual]
 

Function for checking if the user has aborted the operation (eg pressed cancel)

Returns:
true if the the operation is aborted, false otherwise

Implements Frontend.

void QtFrontend::processEvents  )  [virtual]
 

Function for processing Qt events. This is useful on timeconsuming operations which aren't running in separate processes or threads.

Implements Frontend.

void QtFrontend::reportError const char *  message,
int  id
[virtual]
 

Function for reporting an error to the user. It has two categories of errors; warning and critical.

Parameters:
message the error message to display to the user
id kind of error; 0 for warning, 1 for critical

Implements Frontend.

int QtFrontend::run int  argc,
char **  argv
[virtual]
 

The run function for starting the application.

Parameters:
argc the argc argument from the environment through main.
argv the argv arguments from the environment through main.
Returns:
the return status on exit

Implements Frontend.

void QtFrontend::setProgressInfo const char *  infoText  )  [virtual]
 

Function for changing the information to display to the user

Parameters:
infoText the text to display to the user

Implements Frontend.

void QtFrontend::showProgress const char *  infoText,
unsigned int  numOperations = 0
[virtual]
 

Function for displaying progress on timeconsuming operations.

Parameters:
infoText the text to display to the user
numOperations the number of calculated operations to do

Implements Frontend.

void QtFrontend::updateProgress int  numOperationsDone  )  [virtual]
 

Function for updating the progress.

Parameters:
numOperationsDone the number of operations done

Implements Frontend.


The documentation for this class was generated from the following files:
Generated on Thu May 19 01:51:22 2005 for stopmotion.kdevelop by  doxygen 1.4.2