Source-highlight Qt Library
SourceHighlightExceptionBox.h
00001 /*
00002  *  Copyright (C) 2008-2010  Lorenzo Bettini, http://www.lorenzobettini.it
00003  *  License: See COPYING file that comes with this distribution
00004  */
00005 
00006 #ifndef SOURCEHIGHLIGHTEXCEPTIONBOX_H_
00007 #define SOURCEHIGHLIGHTEXCEPTIONBOX_H_
00008 
00009 #include <exception>
00010 
00011 class QWidget;
00012 
00013 namespace srchilite {
00014     class ParserException;
00015 }
00016 
00017 namespace srchiliteqt {
00018 
00025 class SourceHighlightExceptionBox {
00026 public:
00033     static void showMessageBox(const srchilite::ParserException &e, QWidget *parent = 0);
00034 
00040     static void showMessageBox(const std::exception &e, QWidget *parent = 0);
00041 };
00042 
00043 }
00044 
00045 #endif /* SOURCEHIGHLIGHTEXCEPTIONBOX_H_ */