OGS
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Macros
b
c
g
m
n
o
p
r
s
t
▼
OGS
►
OpenGeoSys 6.5.4-301-gee1fb4d5 source code documentation
►
OGS CTests—Project Files
►
OGS Input File Parameters—Quality Assurance
►
OGS Input File Parameters
BulkMappingDocuPage
Todo List
OGS Input File Parameters—List of incomplete documentation pages
Bibliography
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
Applications
►
ApplicationsLib
►
CLI
▼
DataExplorer
▼
Base
CheckboxDelegate.cpp
►
CheckboxDelegate.h
ColorPickerPushButton.cpp
►
ColorPickerPushButton.h
►
ImportFileTypes.h
►
LastSavedFileDirectory.h
OGSError.cpp
►
OGSError.h
QNonScalableGraphicsTextItem.cpp
►
QNonScalableGraphicsTextItem.h
QValueTooltipSlider.cpp
►
QValueTooltipSlider.h
RecentFiles.cpp
►
RecentFiles.h
►
StrictDoubleValidator.h
►
StrictIntValidator.h
TreeItem.cpp
►
TreeItem.h
TreeModel.cpp
►
TreeModel.h
TreeModelIterator.cpp
►
TreeModelIterator.h
►
Utils.cpp
►
Utils.h
►
DataView
►
VtkVis
►
main.cpp
mainwindow.cpp
►
mainwindow.h
►
DataHolderLib
►
FileIO
►
InSituLib
►
Python
►
Utils
►
BaseLib
►
build
►
ChemistryLib
Documentation
►
GeoLib
►
InfoLib
►
MaterialLib
►
MathLib
►
MeshGeoToolsLib
►
MeshLib
►
MeshToolsLib
►
NumLib
►
ParameterLib
►
ProcessLib
►
File Members
OGSError.cpp
Go to the documentation of this file.
1
14
#include "
Base/OGSError.h
"
15
16
#include <QMessageBox>
17
#include <QString>
18
19
OGSError::OGSError
() =
default
;
20
21
OGSError::~OGSError
() =
default
;
22
23
void
OGSError::box
(
const
QString& e)
24
{
25
box
(e,
"OpenGeoSys"
);
26
}
23
void
OGSError::box
(
const
QString& e) {
…
}
27
28
void
OGSError::box
(
const
QString& e,
const
QString& t)
29
{
30
QMessageBox msgBox;
31
msgBox.setWindowTitle(t);
32
msgBox.setText(e);
33
msgBox.exec();
34
}
28
void
OGSError::box
(
const
QString& e,
const
QString& t) {
…
}
35
36
bool
OGSError::question
(
const
QString& e,
const
QString& t)
37
{
38
QMessageBox msgBox;
39
msgBox.setWindowTitle(t);
40
msgBox.setText(e);
41
msgBox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
42
msgBox.setDefaultButton(QMessageBox::Cancel);
43
44
return
msgBox.exec() == QMessageBox::Ok;
45
}
36
bool
OGSError::question
(
const
QString& e,
const
QString& t) {
…
}
OGSError.h
Definition of the OGSError class.
OGSError::box
static void box(const QString &e)
Definition
OGSError.cpp:23
OGSError::~OGSError
~OGSError()
OGSError::OGSError
OGSError()
OGSError::question
static bool question(const QString &e, const QString &t)
Definition
OGSError.cpp:36
Applications
DataExplorer
Base
OGSError.cpp
Generated by
1.12.0