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 GuiCommand, public Ui::RefUi
35 void changed_adaptor();
37 void refHighlighted(QListWidgetItem *);
38 void selectionChanged();
39 void refSelected(QListWidgetItem *);
40 void sortToggled(bool);
46 bool isBufferDependent() const { return true; }
47 /** disconnect from the inset when the Apply button is pressed.
48 Allows easy insertion of multiple references. */
49 bool disconnectOnApply() const { return true; }
51 void gotoRef(std::string const &);
55 void closeEvent(QCloseEvent * e);
61 void updateContents();
63 /// is name allowed for this ?
65 /// is type allowed for this ?
67 /// go to current reference
69 /// set go back button
71 /// set goto ref button
73 /// re-enter references
78 /// sort or not persistent state
80 /// went to a reference ?
82 /// the last reference entered or examined
83 QString last_reference_;
84 /// store the buffer settings
87 std::vector<docstring> refs_;
90 } // namespace frontend