]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/XFormsView.h
Really dull and boring header shit
[lyx.git] / src / frontends / xforms / XFormsView.h
1 // -*- C++ -*-
2 /**
3  * \file XFormsView.h
4  * Read the file COPYING
5  *
6  * \author unknown
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef LyXView_H
12 #define LyXView_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "forms_fwd.h"
19
20 #include "frontends/LyXView.h"
21
22 class XMiniBuffer;
23
24 /**
25  * XFormsView - xforms implementation of LyXView
26  *
27  * xforms-private implementation of the main LyX window.
28  */
29 class XFormsView : public LyXView {
30 public:
31         /// create a main window of the given dimensions
32         XFormsView(int w, int h);
33
34         ~XFormsView();
35
36         /**
37          * show - display the top-level window
38          * @param xpos requested x position (or 0)
39          * @param xpos requested y position (or 0)
40          * @param title window title
41          */
42         void show(int xpos, int ypos, string const & t = string("LyX"));
43
44         /// get the xforms main form
45         FL_FORM * getForm() const;
46         /// redraw the main form.
47         virtual void redraw();
48         ///
49         virtual void prohibitInput() const;
50         ///
51         virtual void allowInput() const;
52
53         /// callback for close event from window manager
54         static int atCloseMainFormCB(FL_FORM *, void *);
55
56         /// display a status message
57         virtual void message(string const & str);
58
59 private:
60         /**
61          * setWindowTitle - set title of window
62          * @param t main window title
63          * @param it iconified (short) title
64          */
65         virtual void setWindowTitle(string const & t, string const & it);
66
67         /// update the minibuffer state message
68         void show_view_state();
69
70         /// makes the main form.
71         void create_form_form_main(int width, int height);
72         /// the minibuffer
73         boost::scoped_ptr<XMiniBuffer> minibuffer_;
74         ///
75         boost::signals::connection view_state_con;
76         ///
77         boost::signals::connection focus_con;
78         ///
79         boost::signals::connection redraw_con;
80
81         /// the main form.
82         FL_FORM * form_;
83 };
84 #endif