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, public Controller
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);
67 Controller & controller() { return *static_cast<Controller*>(this); }
73 void updateContents();
75 /// is name allowed for this ?
77 /// is type allowed for this ?
79 /// go to current reference
81 /// set go back button
83 /// set goto ref button
85 /// re-enter references
90 /// sort or not persistent state
92 /// went to a reference ?
94 /// the last reference entered or examined
95 QString last_reference_;
96 /// store the buffer settings
99 std::vector<docstring> refs_;
102 InsetCommandParams params_;
105 } // namespace frontend