]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QIndex.h
Fix unreported bug related to 3246 by Richard Heck:
[lyx.git] / src / frontends / qt4 / QIndex.h
1 // -*- C++ -*-
2 /**
3  * \file QIndex.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 QINDEX_H
14 #define QINDEX_H
15
16 #include "QDialogView.h"
17 #include "QIndexDialog.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 class ControlCommand;
23
24 class QIndex :
25         public QController<ControlCommand, QView<QIndexDialog> >
26 {
27 public:
28         friend class QIndexDialog;
29
30         QIndex(Dialog &, lyx::docstring const & title, QString const & label);
31 protected:
32         virtual bool isValid();
33 private:
34         /// Apply changes
35         virtual void apply();
36         /// update
37         virtual void update_contents();
38         /// build the dialog
39         virtual void build_dialog();
40
41         ///
42         QString const label_;
43 };
44
45 } // namespace frontend
46 } // namespace lyx
47
48 #endif // QINDEX_H