OGS
|
Manages error messages via message boxes.
Definition at line 22 of file OGSError.h.
#include <OGSError.h>
Static Public Member Functions | |
static void | box (const QString &e) |
static void | box (const QString &e, const QString &t) |
static bool | question (const QString &e, const QString &t) |
Protected Member Functions | |
OGSError () | |
~OGSError () | |
|
protecteddefault |
|
protecteddefault |
|
static |
Displays an error in a QMessageBox
e | The error message. |
Definition at line 23 of file OGSError.cpp.
References box().
Referenced by MeshElementRemovalDialog::MeshElementRemovalDialog(), AddFaultsToVoxelGridDialog::accept(), AddLayerToMeshDialog::accept(), CondFromRasterDialog::accept(), CreateStructuredGridDialog::accept(), DiagramPrefsDialog::accept(), FileListDialog::accept(), GeoOnMeshMappingDialog::accept(), GMSHPrefsDialog::accept(), Layers2GridDialog::accept(), LineEditDialog::accept(), MergeGeometriesDialog::accept(), MeshElementRemovalDialog::accept(), MeshFromRasterDialog::accept(), MeshLayerEditDialog::accept(), MeshMapping2DDialog::accept(), MeshQualitySelectionDialog::accept(), MeshValueEditDialog::accept(), RasterDataToMeshDialog::accept(), SaveMeshDialog::accept(), SHPImportDialog::accept(), TranslateDataDialog::accept(), Vtu2GridDialog::accept(), GeoTreeModel::appendPolylines(), GeoTreeModel::appendSurfaces(), box(), MainWindow::callGMSH(), GEOModels::connectPolylineSegments(), OGSFileConverter::convertGLI2GML(), OGSFileConverter::convertGML2GLI(), OGSFileConverter::convertMSH2VTU(), MainWindow::convertPointsToStations(), OGSFileConverter::convertVTU2MSH(), MeshView::exportToShapefile(), MeshView::extractSurfaceMesh(), CreateStructuredGridDialog::inputIsEmpty(), DiagramPrefsDialog::loadFile(), MainWindow::loadFile(), MainWindow::mapGeometry(), TranslateDataDialog::moveGeometry(), TranslateDataDialog::moveMesh(), MeshLayerEditDialog::nextButtonPressed(), MeshElementRemovalDialog::on_scalarArrayCheckBox_toggled(), MeshView::openAddLayerDialog(), MeshView::openMap2dMeshDialog(), MeshView::openRasterDataToMeshDialog(), FileIO::XmlPrjInterface::readFile(), GeoTreeView::removeGeometry(), MeshView::removeMesh(), StationTreeView::removeStationList(), MainWindow::save(), SHPImportDialog::setupDialog(), MainWindow::showAddFaultsToVoxelGridDialog(), MainWindow::showDiagramPrefsDialog(), VtkVisPipelineView::showImageToMeshConversionDialog(), MainWindow::showLayers2GridDialog(), MainWindow::showMergeGeometriesDialog(), MainWindow::showVtu2GridDialog(), VtkVisImageItem::writeAsRaster(), GeoTreeView::writeToFile(), MeshView::writeToFile(), and StationTreeView::writeToFile().
|
static |
Displays an error in a QMessageBox
e | The error message. |
t | The title of the message box |
Definition at line 28 of file OGSError.cpp.
|
static |
Displays a question in a QMessageBox (offering Ok | Cancel options) Default value is 'Cancel' so that no bad things happen if the user presses enter without reading the text (e.g. when overwriting files)
e | The error message. |
t | The title of the message box |
Definition at line 36 of file OGSError.cpp.
Referenced by OGSFileConverter::fileExists().