RigsofRods
Soft-body Physics Simulation
source
main
utils
ErrorUtils.h
Go to the documentation of this file.
1
/*
2
This source file is part of Rigs of Rods
3
Copyright 2005-2012 Pierre-Michel Ricordel
4
Copyright 2007-2012 Thomas Fischer
5
Copyright 2013-2014 Petr Ohlidal
6
7
For more information, see http://www.rigsofrods.org/
8
9
Rigs of Rods is free software: you can redistribute it and/or modify
10
it under the terms of the GNU General Public License version 3, as
11
published by the Free Software Foundation.
12
13
Rigs of Rods is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
28
#pragma once
29
30
#include "
Application.h
"
31
34
35
struct
ErrorUtils
36
{
41
static
int
ShowError
(
const
std::string& title,
const
std::string& message);
42
47
static
int
ShowInfo
(
const
std::string& title,
const
std::string& message);
48
54
static
int
ShowMsgBox
(
const
std::string& title,
const
std::string& err,
int
type);
55
};
56
ErrorUtils::ShowError
static int ShowError(const std::string &title, const std::string &message)
shows a simple error message box
Definition:
ErrorUtils.cpp:46
ErrorUtils::ShowMsgBox
static int ShowMsgBox(const std::string &title, const std::string &err, int type)
shows a generic message box
Definition:
ErrorUtils.cpp:58
ErrorUtils::ShowInfo
static int ShowInfo(const std::string &title, const std::string &message)
shows a simple info message box
Definition:
ErrorUtils.cpp:53
Application.h
Central state/object manager and communications hub.
ErrorUtils
Definition:
ErrorUtils.h:35
Generated by
1.8.17