]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QIndex.h
enable Font cache only for MacOSX and inline width() for other platform.
[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
18 namespace lyx {
19 namespace frontend {
20
21 class ControlCommand;
22 class QIndexDialog;
23
24
25 class QIndex :
26         public QController<ControlCommand, QView<QIndexDialog> >
27 {
28 public:
29         friend class QIndexDialog;
30
31         QIndex(Dialog &, std::string const & title, QString const & label);
32 protected:
33         virtual bool isValid();
34 private:
35         /// Apply changes
36         virtual void apply();
37         /// update
38         virtual void update_contents();
39         /// build the dialog
40         virtual void build_dialog();
41
42         ///
43         QString const label_;
44 };
45
46 } // namespace frontend
47 } // namespace lyx
48
49 #endif // QINDEX_H