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);
46 bool initialiseParams(std::string const & data);
50 void dispatchParams();
52 bool isBufferDependent() const { return true; }
54 /** disconnect from the inset when the Apply button is pressed.
55 Allows easy insertion of multiple references. */
56 bool disconnectOnApply() const { return true; }
58 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 /// sort or not persistent state
88 /// went to a reference ?
90 /// the last reference entered or examined
91 QString last_reference_;
92 /// store the buffer settings
95 std::vector<docstring> refs_;
98 InsetCommandParams params_;
101 } // namespace frontend