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