]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiWrap.h
GuiWrap: make the optional options really optional by checkboxes in the dialog
[lyx.git] / src / frontends / qt4 / GuiWrap.h
1 // -*- C++ -*-
2 /**
3  * \file GuiWrap.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  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUIWRAP_H
13 #define GUIWRAP_H
14
15 #include "GuiDialog.h"
16 #include "ControlWrap.h"
17 #include "ui_WrapUi.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 class GuiWrapDialog : public GuiDialog, public Ui::WrapUi
23 {
24         Q_OBJECT
25
26 public:
27         GuiWrapDialog(LyXView & lv);
28
29 private Q_SLOTS:
30         void change_adaptor();
31         /// overhang checkbox
32         void overhangChecked(int);
33         /// lines checkbox
34         void linesChecked(int);
35
36 private:
37         void closeEvent(QCloseEvent * e);
38         /// parent controller
39         ControlWrap & controller();
40         /// Apply changes
41         void applyView();
42         /// update
43         void updateContents();
44 };
45
46 } // namespace frontend
47 } // namespace lyx
48
49 #endif // GUIWRAP_H