]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiPrintNomencl.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiPrintNomencl.h
1 // -*- C++ -*-
2 /**
3  * \file GuiPrintNomencl.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jürgen Spitzmüller
8  * \author Uwe Stöhr
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUIPRINTNOMENCL_H
14 #define GUIPRINTNOMENCL_H
15
16 #include "GuiDialog.h"
17 #include "ui_PrintNomenclUi.h"
18
19 #include "insets/InsetCommandParams.h"
20
21
22 namespace lyx {
23 namespace frontend {
24
25 class GuiPrintNomencl : public GuiDialog, public Ui::PrintNomenclUi
26 {
27         Q_OBJECT
28
29 public:
30         GuiPrintNomencl(GuiView & lv);
31
32 private Q_SLOTS:
33         void change_adaptor();
34         void on_setWidthCO_activated(int);
35
36 private:
37         /// Apply changes
38         void applyView();
39         /// Update dialog before showing it
40         void updateContents();
41         ///
42         bool initialiseParams(std::string const & data);
43         ///
44         void paramsToDialog(InsetCommandParams const & icp);
45         ///
46         void clearParams() { params_.clear(); }
47         ///
48         void dispatchParams();
49         ///
50         bool isBufferDependent() const { return true; }
51         ///
52         bool isValid() const;
53
54         ///
55         InsetCommandParams params_;
56 };
57
58 } // namespace frontend
59 } // namespace lyx
60
61 #endif // GUIPRINTNOMENCL_H