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();
38 void refHighlighted(QTreeWidgetItem *);
39 void selectionChanged();
40 void refSelected(QTreeWidgetItem *);
42 void caseSensitiveToggled();
46 void dialogRejected();
50 bool isBufferDependent() const { return true; }
51 /** disconnect from the inset when the Apply button is pressed.
52 Allows easy insertion of multiple references. */
53 bool disconnectOnApply() const { return true; }
55 void gotoRef(std::string const &);
59 void closeEvent(QCloseEvent * e);
65 void updateContents();
67 /// is name allowed for this ?
69 /// is type allowed for this ?
71 /// go to current reference
73 /// set go back button
75 /// set goto ref button
77 /// re-enter references
82 bool initialiseParams(std::string const & data);
84 void clearParams() { params_.clear(); }
86 void dispatchParams();
90 InsetCommandParams params_;
92 /// went to a reference ?
94 /// the last reference entered or examined
95 QString last_reference_;
96 /// store the buffer settings
98 /// store the last active buffer
101 std::vector<docstring> refs_;
104 } // namespace frontend