]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/XFormsView.h
dispatch changes ...
[lyx.git] / src / frontends / xforms / XFormsView.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1995-2001 The LyX Team.
9  *
10  * ====================================================== */
11
12 #ifndef LyXView_H
13 #define LyXView_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "forms_fwd.h"
20
21 #include "frontends/LyXView.h"
22
23 class Dialogs;
24
25 /**
26  * XFormsView - xforms implementation of LyXView
27  *
28  * xforms-private implementation of the main LyX window.
29  */
30 class XFormsView : public LyXView {
31 public:
32         /// create a main window of the given dimensions
33         XFormsView(int w, int h);
34
35         ~XFormsView();
36
37         /**
38          * show - display the top-level window
39          * @param xpos requested x position (or 0)
40          * @param xpos requested y position (or 0)
41          * @param title window title
42          */
43         void show(int xpos, int ypos, string const & t = string("LyX"));
44
45         /// get the xforms main form
46         FL_FORM * getForm() const;
47         /// redraw the main form.
48         virtual void redraw();
49         ///
50         virtual void prohibitInput() const;
51         ///
52         virtual void allowInput() const;
53
54         /// callback for close event from window manager
55         static int atCloseMainFormCB(FL_FORM *, void *);
56  
57         /// dispatch an action
58         void dispatch(string const & arg);
59  
60 private:
61         /**
62          * setWindowTitle - set title of window
63          * @param t main window title
64          * @param it iconified (short) title
65          */
66         virtual void setWindowTitle(string const & t, string const & it);
67
68         /// update the minibuffer state message
69         void show_view_state();
70
71         /// makes the main form.
72         void create_form_form_main(Dialogs & d, int width, int height);
73         /// the main form.
74         FL_FORM * form_;
75 };
76 #endif