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 QListWidgetItem;
27 class GuiRef : public GuiDialog, public Ui::RefUi
35 void changed_adaptor();
37 void refHighlighted(QListWidgetItem *);
38 void selectionChanged();
39 void refSelected(QListWidgetItem *);
40 void sortToggled(bool);
43 void dialog_rejected();
47 bool isBufferDependent() const { return true; }
48 /** disconnect from the inset when the Apply button is pressed.
49 Allows easy insertion of multiple references. */
50 bool disconnectOnApply() const { return true; }
52 void gotoRef(std::string const &);
56 void closeEvent(QCloseEvent * e);
62 void updateContents();
64 /// is name allowed for this ?
66 /// is type allowed for this ?
68 /// go to current reference
70 /// set go back button
72 /// set goto ref button
74 /// re-enter references
79 bool initialiseParams(std::string const & data);
81 void clearParams() { params_.clear(); }
83 void dispatchParams();
87 InsetCommandParams params_;
89 /// sort or not persistent state
91 /// went to a reference ?
93 /// the last reference entered or examined
94 QString last_reference_;
95 /// store the buffer settings
97 /// store the last active buffer
100 std::vector<docstring> refs_;
103 } // namespace frontend