MiKTeX 26.5-next
A scalable TeX distribution
Loading...
Searching...
No Matches
ErrorDialog.h
1/* miktex/UI/Qt/ErrorDialog.h: -*- C++ -*-
2
3 Copyright (C) 2008-2018 Christian Schenk
4
5 This file is part of the MiKTeX UI Library.
6
7 The MiKTeX UI Library is free software; you can redistribute it
8 and/or modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2, or
10 (at your option) any later version.
11
12 The MiKTeX UI Library is distributed in the hope that it will be
13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
14 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with the MiKTeX UI Library; if not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 02111-1307, USA. */
21
22#pragma once
23
24#if !defined(EBA4CBBFF14748B78ED09743FADFD8F9)
25#define EBA4CBBFF14748B78ED09743FADFD8F9
26
27#include "Prototypes"
28
29#include <exception>
30
31#include <miktex/Core/Exceptions>
32
33class QWidget;
34
35MIKTEX_UI_QT_BEGIN_NAMESPACE;
36
37class MIKTEXNOVTABLE ErrorDialog
38{
39public:
40 ErrorDialog() = delete;
41
42public:
43 ErrorDialog(const ErrorDialog& other) = delete;
44
45public:
46 ErrorDialog& operator=(const ErrorDialog& other) = delete;
47
48public:
49 ErrorDialog(ErrorDialog&& other) = delete;
50
51public:
52 ErrorDialog& operator=(ErrorDialog&& other) = delete;
53
54public:
55 ~ErrorDialog() = delete;
56
57public:
58 static MIKTEXUIQTCEEAPI(int) DoModal(QWidget* parent, const MiKTeX::Core::MiKTeXException& e);
59
60public:
61 static MIKTEXUIQTCEEAPI(int) DoModal(QWidget* parent, const std::exception& e);
62};
63
64MIKTEX_UI_QT_END_NAMESPACE;
65
66#endif