]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiThesaurus.h
some remnaming
[lyx.git] / src / frontends / qt4 / GuiThesaurus.h
1 // -*- C++ -*-
2 /**
3  * \file GuiThesaurus.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUITHESAURUS_H
13 #define GUITHESAURUS_H
14
15 #include "GuiDialog.h"
16 #include "ControlThesaurus.h"
17 #include "ui_ThesaurusUi.h"
18
19 class QTreeWidgetItem;
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiThesaurusDialog : public GuiDialog, public Ui::ThesaurusUi
25 {
26         Q_OBJECT
27
28 public:
29         GuiThesaurusDialog(LyXView & lv);
30
31 private Q_SLOTS:
32         void change_adaptor();
33         void entryChanged();
34         void replaceClicked();
35         void selectionChanged();
36         void selectionClicked(QTreeWidgetItem *, int);
37         void itemClicked(QTreeWidgetItem *, int);
38
39 private:
40         void closeEvent(QCloseEvent * e);
41         /// parent controller
42         ControlThesaurus & controller();
43         /// update
44         void updateContents();
45         ///
46         void updateLists();
47 };
48
49 } // namespace frontend
50 } // namespace lyx
51
52 #endif // GUITHESAURUS_H