]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QIndex.h
Get rid of the static_casts.
[lyx.git] / src / frontends / qt2 / 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
17 #include "QDialogView.h"
18
19 class ControlCommand;
20 class QIndexDialog;
21
22
23 class QIndex :
24         public QController<ControlCommand, QView<QIndexDialog> >
25 {
26 public:
27         friend class QIndexDialog;
28
29         QIndex(Dialog &, string const & title, QString const & label);
30 protected:
31         virtual bool isValid();
32 private:
33         /// Apply changes
34         virtual void apply();
35         /// update
36         virtual void update_contents();
37         /// build the dialog
38         virtual void build_dialog();
39
40         ///
41         QString const label_;
42 };
43
44 #endif // QINDEX_H