]> git.lyx.org Git - features.git/blob - src/frontends/qt/GuiCounter.h
#10571 improved handling of WM's signal when switching from or to full-screen window
[features.git] / src / frontends / qt / GuiCounter.h
1 // -*- C++ -*-
2 /**
3  * \file GuiCounter.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Richard Kimberly Heck
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUICOUNTER_H
13 #define GUICOUNTER_H
14
15 #include "InsetParamsWidget.h"
16 #include "ui_CounterUi.h"
17 #include "GuiView.h"
18
19 namespace lyx {
20 class InsetCommandParams;
21
22 namespace frontend {
23
24 class GuiCounter : public InsetParamsWidget, public Ui::CounterUi
25 {
26         Q_OBJECT
27
28 public:
29         ///
30         GuiCounter(GuiView & lv, QWidget * parent = nullptr);
31
32 private:
33         /// \name InsetParamsWidget inherited methods
34         //@{
35         InsetCode insetCode() const { return COUNTER_CODE; }
36         FuncCode creationCode() const { return LFUN_INSET_INSERT; }
37         QString dialogTitle() const { return qt_("Counters"); }
38         void paramsToDialog(Inset const *);
39         docstring dialogToParams() const;
40         bool checkWidgets(bool readonly) const;
41         bool initialiseParams(std::string const & data);
42         //@}
43         void processParams(InsetCommandParams const & icp);
44         ///
45         void fillCombos();
46         ///
47         GuiView & guiview;
48 };
49
50 } // namespace frontend
51 } // namespace lyx
52
53 #endif // GUICOUNTER_H