]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QCharacterDialog.h
The big renaming. Yowser.
[lyx.git] / src / frontends / qt2 / QCharacterDialog.h
1 /**
2  * \file QCharacterDialog.h
3  * Copyright 2001 the LyX Team
4  * see the file COPYING
5  *
6  * \author Edwin Leuven
7  */
8
9 #ifndef QCHARACTERDIALOG_H
10 #define QCHARACTERDIALOG_H
11
12 #include <config.h>
13
14 #include "ui/QCharacterDialogBase.h"
15 #include "QCharacter.h"
16
17 #include <qevent.h>
18 #include <qcheckbox.h>
19 #include <qcombobox.h>
20
21 class LyXFont;
22  
23 class QCharacterDialog : public QCharacterDialogBase
24 { Q_OBJECT
25
26 public:
27         QCharacterDialog(QCharacter * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
28         ~QCharacterDialog();
29         
30         /// FIXME
31         LyXFont getChar();
32         
33         /// return the currently selected language item
34         int langItem() {
35                 return lang->currentItem();
36         };
37         
38         /// return true if toggle all is selected
39         bool toggleAll() {
40                 return toggleall->isChecked();
41         };
42         
43         /// set dialog read only
44         void setReadOnly(bool);
45         
46 protected:
47         void closeEvent(QCloseEvent * e);
48
49 private:
50         QCharacter * form_;
51
52 protected slots:
53         
54         void apply_adaptor() {
55                 form_->apply();
56         }
57         
58         void cancel_adaptor() {
59                 form_->close();
60                 hide();
61         }
62         
63         void close_adaptor() {
64                 form_->apply();
65                 form_->close();
66                 hide();
67         }
68
69 };
70
71 #endif // QCHARACTERDIALOG_H