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 &);
62 int bufferNum() const;
65 void closeEvent(QCloseEvent * e);
71 void updateContents();
73 /// is name allowed for this ?
75 /// is type allowed for this ?
77 /// go to current reference
79 /// set go back button
81 /// set goto ref button
83 /// re-enter references
88 /// sort or not persistent state
90 /// went to a reference ?
92 /// the last reference entered or examined
93 QString last_reference_;
94 /// store the buffer settings
97 std::vector<docstring> refs_;
100 InsetCommandParams params_;
103 } // namespace frontend