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"
18 #include "insets/InsetCommandParams.h"
22 class QTreeWidgetItem;
27 class GuiRef : public GuiDialog, public Ui::RefUi
35 void changed_adaptor();
37 void on_findLE_textChanged(const QString &);
38 void on_searchPB_clicked();
39 void refHighlighted(QTreeWidgetItem *);
40 void selectionChanged();
41 void refSelected(QTreeWidgetItem *);
43 void caseSensitiveToggled();
47 void dialogRejected();
51 bool isBufferDependent() const { return true; }
52 /** disconnect from the inset when the Apply button is pressed.
53 Allows easy insertion of multiple references. */
54 bool disconnectOnApply() const { return true; }
56 void gotoRef(std::string const &);
60 void closeEvent(QCloseEvent * e);
66 void updateContents();
68 /// is name allowed for this ?
70 /// is type allowed for this ?
72 /// go to current reference
74 /// set go back button
76 /// set goto ref button
78 /// re-enter references
83 bool initialiseParams(std::string const & data);
85 void clearParams() { params_.clear(); }
87 void dispatchParams();
91 InsetCommandParams params_;
93 /// went to a reference ?
95 /// the last reference entered or examined
96 QString last_reference_;
97 /// store the buffer settings
99 /// store the last active buffer
102 std::vector<docstring> refs_;
105 } // namespace frontend