]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GError.h
get rid of broken_header.h and some unneeded tests
[lyx.git] / src / frontends / gnome / GError.h
1 // -*- C++ -*-
2 /**
3  * \file GError.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Michael Koziarski
8  * \author Baruch Even
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GERROR_H
14 #define GERROR_H
15
16
17 #include "ControlError.h"
18 #include "GView.h"
19
20 namespace Gtk {
21
22 class Button;
23 class TextView;
24
25 }
26
27 /**
28  * This class implements the dialog to show error messages.
29  */
30 class GErrorDialog : public GControlledView<ControlError> {
31 public:
32         ///
33         GErrorDialog();
34         ///
35         ~GErrorDialog() {}
36         ///
37         void apply() {}
38         ///
39         void update();
40
41 private:
42         /// Build the dialog
43         void build();
44
45         /// Returns true if the dialog input is in a valid state.
46         bool validate() const { return true; }
47
48         ///
49         void CloseClicked() { CancelClicked(); }
50
51         /// generated by accessors.py
52         Gtk::Button * button_close() const;
53         /// generated by accessors.py
54         Gtk::TextView * textarea() const;
55 };
56
57 #endif