]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QRef.h
Compile fixes. Qt2 should now build (and fail immediately when you start it,
[lyx.git] / src / frontends / qt2 / QRef.h
1 /**
2  * \file QRef.h
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon
7  */
8
9 #ifndef QREF_H
10 #define QREF_H
11
12 #include <config.h>
13 #include <vector>
14 #include "LString.h"
15
16 #include "Qt2Base.h"
17
18 class ControlRef;
19 class QRefDialog;
20 class Dialogs;
21
22 class QRef :
23         public Qt2CB<ControlRef, Qt2DB<QRefDialog> >
24 {
25         friend class QRefDialog;
26
27 public:
28         QRef(ControlRef & c, Dialogs &);
29
30 private:
31         /// apply changes
32         virtual void apply();
33         /// build dialog
34         virtual void build_dialog();
35         /// update dialog
36         virtual void update_contents();
37
38         /// is name allowed for this ?
39         bool nameAllowed();
40
41         /// is type allowed for this ?
42         bool typeAllowed();
43
44         /// go to current reference
45         void gotoRef();
46
47         /// set go back button
48         void setGoBack();
49
50         /// set goto ref button
51         void setGotoRef();
52
53         /// re-enter references
54         void redoRefs();
55
56         /// update references
57         void updateRefs();
58
59         /// sort or not persistent state
60         bool sort_;
61
62         /// at a reference ?
63         bool at_ref_;
64
65         /// the references
66         std::vector<string> refs_;
67 };
68
69 #endif // QREF_H