]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QToc.h
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / QToc.h
1 // -*- C++ -*-
2 /**
3  * \file QToc.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 QTOC_H
14 #define QTOC_H
15
16 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include "Qt2Base.h"
21 #include "toc.h"
22
23 class ControlToc;
24 class QTocDialog;
25
26 class QToc :
27         public Qt2CB<ControlToc, Qt2DB<QTocDialog> >
28 {
29 public:
30         friend class QTocDialog;
31
32         QToc();
33 private:
34         /// update the listview
35         void updateToc(int newdepth);
36
37         /// update the float types
38         void updateType();
39
40         /// select an entry
41         void select(string const & text);
42
43         /// set the depth
44         void set_depth(int depth);
45
46         virtual void apply() {}
47
48         /// update dialog
49         virtual void update_contents();
50
51         /// build dialog
52         virtual void build_dialog();
53
54         /// the toc list
55         toc::Toc toclist;
56
57         /// depth of list shown
58         int depth_;
59 };
60
61 #endif // QTOC_H