]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/FormCharacter.h
John's FormExternal patch, Edwin's Qt2 patch and Baruch's gnome patch.
[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
16 class LyXView;
17 class Dialogs;
18 class CharDlgImpl;
19
20 class FormCharacter : public DialogBase {
21 public:
22    ///
23    FormCharacter(LyXView *, Dialogs *);
24    ///
25    ~FormCharacter();
26    
27    /// Apply changes.
28    void apply();
29    /// Close connections.
30    void close();
31    
32    
33 private:
34         
35    /// Show the dialog.
36    void show();
37    /// Hide the dialog.
38    void hide();
39    /// Update the dialog.
40    void update(bool switched = false);
41         
42    /// Real GUI implementation.
43    CharDlgImpl * dialog_;
44         
45    /// the LyXView we belong to.
46    LyXView * lv_;
47         
48    /** Which Dialogs do we belong to?
49     *  Used so we can get at the signals we have to connect to.
50     */
51    Dialogs * d_;
52         
53    /// is the buffer readonly?
54    bool readonly;
55    
56    /// Hide connection.
57    Connection h_;
58
59    /// Update connection.
60    Connection u_;
61    
62 };
63
64 #endif