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