USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::QIsisApplication Class Reference

Handles exceptions which the QT event handlers and QApplication do not handle. More...

#include <QIsisApplication.h>

Inheritance diagram for Isis::QIsisApplication:
Inheritance graph
Collaboration diagram for Isis::QIsisApplication:
Collaboration graph

Public Slots

void openUrl (QUrl url)
 Open a URL in the browser specified by Isis.

Public Member Functions

 QIsisApplication (int &argc, char *argv[])
 Constructor.
virtual bool notify (QObject *rec, QEvent *ev)
 notify - this function overrides the QApplication notify as QT event handlers do not handle exceptions.

Detailed Description

Handles exceptions which the QT event handlers and QApplication do not handle.

This class is derived of QApplication and handles the exception on handled by QT event handlers and QApplication. This class overrides QApplication's notify().

Author
2009-11-24 Sharmila Prasad
History:
2010-06-29 Steven Lambright - Added a setlocale to english for numeric values
History:
2012-03-22 Steven Lambright - Added the Url handler for http:// links. Currently using QWebView - we may want options later.

Definition at line 50 of file QIsisApplication.h.

Constructor & Destructor Documentation

Isis::QIsisApplication::QIsisApplication ( int &  argc,
char *  argv[] 
)

Constructor.

Parameters
argcPass this in from main(argc, argv)
argvPass this in from main(argc, argv)

Definition at line 22 of file QIsisApplication.cpp.

Member Function Documentation

bool Isis::QIsisApplication::notify ( QObject rec,
QEvent *  ev 
)
virtual

notify - this function overrides the QApplication notify as QT event handlers do not handle exceptions.

QIsisApplication handles the exception by catching it and displaying the MessageBox Warning.

Author
Sharmila Prasad (11/24/2009)
Parameters
rec- QObject where the exception occured
ev- Event where the exception occured
Returns
bool
History:
2011-03-11 Tracie Sucharski - Create dialog with thrown errors instead of ignoring and clearing.

Definition at line 49 of file QIsisApplication.cpp.

References Isis::IException::what().

void Isis::QIsisApplication::openUrl ( QUrl  url)
slot

Open a URL in the browser specified by Isis.

Definition at line 63 of file QIsisApplication.cpp.


The documentation for this class was generated from the following files: