]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/FormCharacter.h
Use same button handling as in XForms frontend
[lyx.git] / src / frontends / qt2 / FormCharacter.h
1 // -*- C++ -*-
2 /**
3  * \file FormCharacter.h
4  * Copyright 2001 The LyX Team.
5  * See the file COPYING.
6  *
7  * \author Edwin Leuven
8  */
9
10 #ifndef FORM_CHARACTER_H
11 #define FORM_CHARACTER_H
12
13 #include "DialogBase.h"
14
15 class LyXView;
16 class Dialogs;
17 class CharDlgImpl;
18
19 class FormCharacter : public DialogBase {
20 public:
21    ///
22    FormCharacter(LyXView *, Dialogs *);
23    ///
24    ~FormCharacter();
25
26    /// Apply changes.
27    void apply();
28    /// Close connections.
29    void close();
30
31
32 private:
33
34    /// Show the dialog.
35    void show();
36    /// Hide the dialog.
37    void hide();
38    /// Update the dialog.
39    void update(bool switched = false);
40
41    /// Real GUI implementation.
42    CharDlgImpl * dialog_;
43
44    /// the LyXView we belong to.
45    LyXView * lv_;
46
47    /** Which Dialogs do we belong to?
48     *  Used so we can get at the signals we have to connect to.
49     */
50    Dialogs * d_;
51
52    /// is the buffer readonly?
53    bool readonly;
54
55    /// Hide connection.
56    SigC::Connection h_;
57
58    /// Update connection.
59    SigC::Connection u_;
60
61 };
62
63 #endif