]> git.lyx.org Git - lyx.git/blob - src/frontends/DialogBase.h
- Applied the thesaurus patch.
[lyx.git] / src / frontends / DialogBase.h
1 // -*- C++ -*-
2 /* DialogBase.h
3  * Abstract base class of all dialogs.
4  * Author: Allan Rae <rae@lyx.org>
5  * This file is part of
6  * ====================================================== 
7  *
8  *           LyX, The Document Processor
9  *
10  *           Copyright 1995 Matthias Ettrich
11  *           Copyright 1995-2001 The LyX Team.
12  *
13  *           This file Copyright 2000
14  *           Allan Rae
15  * ======================================================
16  */
17 #ifndef DIALOGBASE_H
18 #define DIALOGBASE_H
19
20 #include <sigc++/signal_system.h>
21 #include <boost/utility.hpp>
22
23 /** Abstract base class of all dialogs.
24     The outside world only needs some way to tell a dialog when to show, hide
25     or update itself.  A dialog then takes whatever steps are necessary to
26     satisfy that request.  Thus a dialog will have to "pull" the necessary
27     details from the core of the program.
28  */
29 class DialogBase : public SigC::Object, boost::noncopyable
30 {
31 public:
32         /**@name Constructors and Deconstructors */
33         //@{
34         /// Virtual base destructor
35         virtual ~DialogBase() {}
36         //@}
37
38         /**@name Signal Targets */
39         //@{
40         ///
41         //virtual void show() = 0;
42         ///
43         virtual void hide() = 0;
44         ///
45         virtual void update() {};
46         ///
47         virtual void close() {};
48         //@}
49 };
50
51 #endif // DIALOGBASE_H