]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GError.h
(John): translate dialog titles.
[lyx.git] / src / frontends / gnome / GError.h
1 // -*- C++ -*-
2 /* This file is part of
3  * =================================================
4  * 
5  *          LyX, The Document Processor
6  *          Copyright 1995 Matthias Ettrich.
7  *          Copyright 1995-2000 The LyX Team.
8  *
9  * ================================================= 
10  *
11  * \author Michael Koziarski
12  * \author Baruch Even
13  * */
14
15 #ifndef GERROR_H
16 #define GERROR_H
17
18 #ifdef __GNUG__
19 #pragma interface
20 #endif
21
22 #include "ControlError.h"
23 #include "GnomeBase.h"
24
25 namespace Gtk {
26
27 class Button;
28 class Text;
29
30 }
31
32 /**
33  * This class implements the dialog to show error messages.
34  */
35 class GError : public FormCB<ControlError> {
36 public:
37         ///
38         GError(ControlError & c);
39         ///
40         ~GError() {}
41         ///
42         void apply() {}
43         ///
44         void update();
45         
46 private:
47         /// Build the dialog
48         void build();
49
50         /// Returns true if the dialog input is in a valid state.
51         bool validate() const { return true; }
52
53         ///
54         void CloseClicked() { CancelButton(); }
55         
56         /// generated by accessors.py
57         Gtk::Button * button_close() const;
58         /// generated by accessors.py
59         Gtk::Text * textarea() const;
60 };
61
62 #endif