]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GError.h
ws changes
[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 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include "ControlError.h"
21 #include "GnomeBase.h"
22
23 namespace Gtk {
24
25 class Button;
26 class TextView;
27
28 }
29
30 /**
31  * This class implements the dialog to show error messages.
32  */
33 class GErrorDialog : public GnomeCB<ControlError> {
34 public:
35         ///
36         GErrorDialog(ControlError & c);
37         ///
38         ~GErrorDialog() {}
39         ///
40         void apply() {}
41         ///
42         void update();
43
44 private:
45         /// Build the dialog
46         void build();
47
48         /// Returns true if the dialog input is in a valid state.
49         bool validate() const { return true; }
50
51         ///
52         void CloseClicked() { CancelButton(); }
53
54         /// generated by accessors.py
55         Gtk::Button * button_close() const;
56         /// generated by accessors.py
57         Gtk::TextView * textarea() const;
58 };
59
60 #endif