Isis 3 Programmer Reference
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

2012-03-22 Steven Lambright - Added the Url handler for http:// links. Currently using QWebView - we may want options later.

Definition at line 36 of file QIsisApplication.h.

Constructor & Destructor Documentation

◆ QIsisApplication()

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

Constructor.

Parameters
argcPass this in from main(argc, argv)
argvPass this in from main(argc, argv)
History
2017-10-06 Adam Goins - QIsisApplication now checks for a "-pref" flag in the command-line arguments and loads the following preference file if it exists. Fixes # 814

Definition at line 28 of file QIsisApplication.cpp.

Member Function Documentation

◆ notify()

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 74 of file QIsisApplication.cpp.

◆ openUrl

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

Open a URL in the browser specified by Isis.

Definition at line 88 of file QIsisApplication.cpp.


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