]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiRef.h
remove unused method
[lyx.git] / src / frontends / qt4 / GuiRef.h
1 // -*- C++ -*-
2 /**
3  * \file GuiRef.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  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUIREF_H
13 #define GUIREF_H
14
15 #include "GuiDialog.h"
16 #include "Dialog.h"
17 #include "ui_RefUi.h"
18 #include "insets/InsetCommandParams.h"
19
20 #include <vector>
21
22 class QListWidgetItem;
23
24 namespace lyx {
25 namespace frontend {
26
27 class GuiRef : public GuiDialog, public Ui::RefUi
28 {
29         Q_OBJECT
30
31 public:
32         GuiRef(LyXView & lv);
33
34 private Q_SLOTS:
35         void changed_adaptor();
36         void gotoClicked();
37         void refHighlighted(QListWidgetItem *);
38         void selectionChanged();
39         void refSelected(QListWidgetItem *);
40         void sortToggled(bool);
41         void updateClicked();
42         void reset_dialog();
43
44 private:
45         ///
46         bool initialiseParams(std::string const & data);
47         /// clean-up on hide.
48         void clearParams();
49         /// clean-up on hide.
50         void dispatchParams();
51         ///
52         bool isBufferDependent() const { return true; }
53
54         /** disconnect from the inset when the Apply button is pressed.
55          Allows easy insertion of multiple references. */
56         bool disconnectOnApply() const { return true; }
57         ///
58         void gotoRef(std::string const &);
59         ///
60         void gotoBookmark();
61
62         ///
63         void closeEvent(QCloseEvent * e);
64         ///
65         bool isValid();
66         /// apply changes
67         void applyView();
68         /// update dialog
69         void updateContents();
70
71         /// is name allowed for this ?
72         bool nameAllowed();
73         /// is type allowed for this ?
74         bool typeAllowed();
75         /// go to current reference
76         void gotoRef();
77         /// set go back button
78         void setGoBack();
79         /// set goto ref button
80         void setGotoRef();
81         /// re-enter references
82         void redoRefs();
83         /// update references
84         void updateRefs();
85
86         /// sort or not persistent state
87         bool sort_;
88         /// went to a reference ?
89         bool at_ref_;
90         /// the last reference entered or examined
91         QString last_reference_;
92         /// store the buffer settings
93         int restored_buffer_;
94         /// the references
95         std::vector<docstring> refs_;
96
97         ///
98         InsetCommandParams params_;
99 };
100
101 } // namespace frontend
102 } // namespace lyx
103
104 #endif // GUIREF_H