]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/InsetParamsDialog.h
Avoid extra space in tooltips
[lyx.git] / src / frontends / qt4 / InsetParamsDialog.h
1 // -*- C++ -*-
2 /**
3  * \file InsetParamsDialog.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Abdelrazak Younes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef INSET_PARAMS_DIALOG_H
13 #define INSET_PARAMS_DIALOG_H
14
15 #include "DialogView.h"
16 #include "ui_InsetParamsUi.h"
17
18 namespace lyx {
19
20 class Inset;
21
22 namespace frontend {
23
24 class InsetParamsWidget;
25
26 class InsetParamsDialog : public DialogView, public Ui::InsetParamsUi
27 {
28         Q_OBJECT
29 public:
30         InsetParamsDialog(GuiView & lv, InsetParamsWidget * widget);
31         ~InsetParamsDialog();
32
33         ///
34         void setInsetParamsWidget(InsetParamsWidget * widget);
35
36 protected Q_SLOTS:
37         void onWidget_changed();
38         void applyView();
39         void on_restorePB_clicked();
40         void on_newPB_clicked();
41         void on_okPB_clicked();
42         void on_applyPB_clicked();
43         void on_closePB_clicked();
44         void on_immediateApplyCB_stateChanged(int state);
45         void on_synchronizedCB_stateChanged(int state);
46
47 private:
48         /// \name DialogView inherited methods
49         //@{
50         void updateView();
51         void dispatchParams() {}
52         bool isBufferDependent() const { return true; }
53         bool canApply() const { return true; }
54         bool initialiseParams(std::string const &);
55         //@}
56         ///
57         void newInset();
58         ///
59         void updateView(bool update_widget);
60         ///
61         docstring checkWidgets(bool immediate);
62         /// pimpl
63         struct Private;
64         Private * d;
65 };
66
67 } // namespace frontend
68 } // namespace lyx
69
70 #endif // INSET_PARAMS_DIALOG_H