]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/FormError.h
Clean-up of the button controller.
[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 class Button;
26 class Text;
27 }
28
29 /**
30  * This class implements the dialog to show error messages.
31  */
32 class FormError : public FormCB<ControlError> {
33 public:
34         ///
35         FormError(ControlError & c);
36         ///
37         ~FormError() {};
38
39         void apply() {};
40         void update();
41         
42 private:
43         /// Build the dialog
44         void build();
45
46         /// Returns true if the dialog input is in a valid state.
47         bool validate() const {return true;};
48
49
50         void CloseClicked() { CancelButton(); }
51         
52         /// The close button
53         Gtk::Button * close_btn() const;
54         Gtk::Text * textarea() const;
55 };
56
57 #endif