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