]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QIndex.h
index dialog, citation fixes, finish about dialog
[lyx.git] / src / frontends / qt2 / QIndex.h
1 // -*- C++ -*-
2 /**
3  * \file QIndex.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author John Levon <moz@compsoc.man.ac.uk>
8  * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
9  */
10
11 #ifndef QINDEX_H
12 #define QINDEX_H
13
14 #include "Qt2Base.h"
15 #include "ControlIndex.h"
16 #include "LString.h"
17 #include "boost/utility.hpp"
18
19 class Dialogs;
20 class LyXView;
21 class QIndexDialog;
22
23 class QIndex :
24         public Qt2CB<ControlIndex, Qt2DB<QIndexDialog> > {
25
26         friend class QIndexDialog;
27  
28 public: 
29         QIndex(ControlIndex &);
30         ~QIndex();
31 private: 
32         /// Apply changes
33         virtual void apply();
34         /// update
35         virtual void update();
36         /// build the dialog
37         virtual void build();
38
39         /// create an Index inset
40         void createIndex(string const &);
41         /// edit an Index  inset
42         void showIndex(InsetCommand * const);
43  
44         /// is the inset we are reading from a readonly buffer ?
45         bool readonly;
46 };
47
48 #endif // QINDEX_H