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 // FIXME This could, and therefore, should inherit from
28 // GuiCommand. Note, e.g., that the definitions of the first
29 // three private functions all just replicate what's there.
30 class GuiRef : public GuiDialog, public Ui::RefUi
38 void changed_adaptor();
40 void refHighlighted(QListWidgetItem *);
41 void selectionChanged();
42 void refSelected(QListWidgetItem *);
43 void sortToggled(bool);
49 bool initialiseParams(std::string const & data);
53 void dispatchParams();
55 bool isBufferDependent() const { return true; }
57 /** disconnect from the inset when the Apply button is pressed.
58 Allows easy insertion of multiple references. */
59 bool disconnectOnApply() const { return true; }
61 void gotoRef(std::string const &);
66 void closeEvent(QCloseEvent * e);
72 void updateContents();
74 /// is name allowed for this ?
76 /// is type allowed for this ?
78 /// go to current reference
80 /// set go back button
82 /// set goto ref button
84 /// re-enter references
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
98 std::vector<docstring> refs_;
101 InsetCommandParams params_;
104 } // namespace frontend