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
*);
41 void caseSensitiveToggled();
44 void dialog_rejected();
48 bool isBufferDependent() const { return true; }
49 /** disconnect from the inset when the Apply button is pressed.
50 Allows easy insertion of multiple references. */
51 bool disconnectOnApply() const { return true; }
53 void gotoRef(std::string
const &);
57 void closeEvent(QCloseEvent
* e
);
63 void updateContents();
65 /// is name allowed for this ?
67 /// is type allowed for this ?
69 /// go to current reference
71 /// set go back button
73 /// set goto ref button
75 /// re-enter references
80 bool initialiseParams(std::string
const & data
);
82 void clearParams() { params_
.clear(); }
84 void dispatchParams();
88 InsetCommandParams params_
;
90 /// went to a reference ?
92 /// the last reference entered or examined
93 QString last_reference_
;
94 /// store the buffer settings
96 /// store the last active buffer
99 std::vector
<docstring
> refs_
;
102 } // namespace frontend