/usr/include/srchiliteqt/SourceHighlightExceptionBox.h is in libsource-highlight-qt4-dev 0.2.2-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | /*
* Copyright (C) 2008-2010 Lorenzo Bettini, http://www.lorenzobettini.it
* License: See COPYING file that comes with this distribution
*/
#ifndef SOURCEHIGHLIGHTEXCEPTIONBOX_H_
#define SOURCEHIGHLIGHTEXCEPTIONBOX_H_
#include <exception>
class QWidget;
namespace srchilite {
class ParserException;
}
namespace srchiliteqt {
/**
* Utility functions to show message boxes related to Source-Highlight
* library thrown exceptions
*
* @since 0.2
*/
class SourceHighlightExceptionBox {
public:
/**
* Shows a message box with the details of the ParserException exception
* (e.g., due to a syntax error in a language definition file)
* @param e the exception
* @param parent the parent of the message box
*/
static void showMessageBox(const srchilite::ParserException &e, QWidget *parent = 0);
/**
* Shows a message box with the details of the std::exception
* @param e the exception
* @param parent the parent of the message box
*/
static void showMessageBox(const std::exception &e, QWidget *parent = 0);
};
}
#endif /* SOURCEHIGHLIGHTEXCEPTIONBOX_H_ */
|