]> git.lyx.org Git - features.git/blob - src/frontends/qt/GuiPrintindex.h
Regenerate previews after zoom (#11919)
[features.git] / src / frontends / qt / GuiPrintindex.h
1 // -*- C++ -*-
2 /**
3  * \file GuiPrintindex.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  * \author Martin Vermeer
9  * \author Jürgen Spitzmüller
10  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef GUIPRINTINDEX_H
15 #define GUIPRINTINDEX_H
16
17 #include "GuiDialog.h"
18 #include "ui_PrintindexUi.h"
19 #include "insets/InsetCommandParams.h"
20
21
22 namespace lyx {
23 namespace frontend {
24
25 class GuiPrintindex : public GuiDialog, public Ui::PrintindexUi
26 {
27         Q_OBJECT
28
29 public:
30         GuiPrintindex(GuiView & lv);
31
32 private Q_SLOTS:
33         void change_adaptor();
34
35 private:
36         ///  Apply changes
37         void applyView() override;
38         /// Update dialog before showing it
39         void updateContents() override;
40         ///
41         void paramsToDialog(InsetCommandParams const & icp);
42         ///
43         bool initialiseParams(std::string const & data) override;
44         /// clean-up on hide.
45         void clearParams() override { params_.clear(); }
46         ///
47         void dispatchParams() override;
48         ///
49         bool isBufferDependent() const override { return true; }
50
51         ///
52         InsetCommandParams params_;
53 };
54
55 } // namespace frontend
56 } // namespace lyx
57
58 #endif // GUIPRINTINDEX_H