4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "GuiDialog.h"
17 #include "FancyLineEdit.h"
19 #include "insets/InsetCommandParams.h"
23 class QTreeWidgetItem;
28 class GuiRef : public GuiDialog, public Ui::RefUi
34 /// Dialog inherited methods
36 void enableView(bool enable);
40 void changed_adaptor();
44 void refHighlighted(QTreeWidgetItem *);
45 void selectionChanged();
46 void refTextChanged(QString const &);
47 void refSelected(QTreeWidgetItem *);
52 void dialogRejected();
56 bool isBufferDependent() const { return true; }
57 /** disconnect from the inset when the Apply button is pressed.
58 Allows easy insertion of multiple references. */
59 bool disconnectOnApply() const { return true; }
61 void gotoRef(std::string const &);
65 void closeEvent(QCloseEvent * e);
71 void updateContents();
73 /// is name allowed for this ?
75 /// is type allowed for this ?
77 /// go to current reference
79 /// set go back button
81 /// set goto ref button
83 /// re-enter references
88 bool initialiseParams(std::string const & data);
90 void clearParams() { params_.clear(); }
92 void dispatchParams();
96 InsetCommandParams params_;
98 /// contains the search box
99 FancyLineEdit * filter_;
101 /// went to a reference ?
103 /// the last reference entered or examined
104 QString last_reference_;
105 /// store the buffer settings
106 int restored_buffer_;
107 /// store the last active buffer
110 std::vector<docstring> refs_;
113 } // namespace frontend