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
33 /// Dialog inherited methods
35 void enableView(bool enable);
39 void changed_adaptor();
42 void refHighlighted(QTreeWidgetItem *);
43 void selectionChanged();
44 void refSelected(QTreeWidgetItem *);
46 void caseSensitiveToggled();
50 void dialogRejected();
54 bool isBufferDependent() const { return true; }
55 /** disconnect from the inset when the Apply button is pressed.
56 Allows easy insertion of multiple references. */
57 bool disconnectOnApply() const { return true; }
59 void gotoRef(std::string const &);
63 void closeEvent(QCloseEvent * e);
69 void updateContents();
71 /// is name allowed for this ?
73 /// is type allowed for this ?
75 /// go to current reference
77 /// set go back button
79 /// set goto ref button
81 /// re-enter references
86 bool initialiseParams(std::string const & data);
88 void clearParams() { params_.clear(); }
90 void dispatchParams();
94 InsetCommandParams params_;
96 /// went to a reference ?
98 /// the last reference entered or examined
99 QString last_reference_;
100 /// store the buffer settings
101 int restored_buffer_;
102 /// store the last active buffer
105 std::vector<docstring> refs_;
108 } // namespace frontend