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