]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiIndex.h
'using namespace std' instead of 'using std::xxx'
[lyx.git] / src / frontends / qt4 / GuiIndex.h
1 // -*- C++ -*-
2 /**
3  * \file GuiIndex.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Kalle Dalheimer
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUIINDEX_H
14 #define GUIINDEX_H
15
16 #include "GuiDialog.h"
17 #include "ui_IndexUi.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 class GuiIndexDialogBase : public GuiCommand, public Ui::IndexUi
23 {
24         Q_OBJECT
25
26 public:
27         GuiIndexDialogBase(GuiView & lv, docstring const & title,
28                 QString const & label, std::string const & name);
29
30 private Q_SLOTS:
31         void change_adaptor();
32         void reject();
33
34 private:
35         ///
36         void closeEvent(QCloseEvent * e);
37         ///
38         bool isValid();
39         /// Apply changes
40         void applyView();
41         /// update
42         void updateContents();
43
44         ///
45         QString label_;
46 };
47
48
49 class GuiIndex : public GuiIndexDialogBase
50 {
51 public:
52         GuiIndex(GuiView & lv);
53 };
54
55
56 class GuiLabel : public GuiIndexDialogBase
57 {
58 public:
59         GuiLabel(GuiView & lv);
60 };
61
62
63 } // namespace frontend
64 } // namespace lyx
65
66 #endif // GUIINDEX_H