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 "GuiDialogView.h"
16 #include "ControlRef.h"
23 class QListWidgetItem;
30 class GuiRefDialog : public QDialog, public Ui::RefUi {
33 GuiRefDialog(GuiRef * form);
38 void changed_adaptor();
40 void refHighlighted(QListWidgetItem *);
41 void selectionChanged();
42 void refSelected(QListWidgetItem *);
43 void sortToggled(bool);
49 void closeEvent(QCloseEvent * e);
55 class GuiRef : public GuiView<GuiRefDialog>
58 friend class GuiRefDialog;
63 ControlRef & controller()
64 { return static_cast<ControlRef &>(this->getController()); }
66 ControlRef const & controller() const
67 { return static_cast<ControlRef const &>(this->getController()); }
69 virtual bool isValid();
75 virtual void build_dialog();
77 virtual void update_contents();
79 /// is name allowed for this ?
81 /// is type allowed for this ?
83 /// go to current reference
85 /// set go back button
87 /// set goto ref button
89 /// re-enter references
94 /// sort or not persistent state
96 /// went to a reference ?
98 /// the last reference entered or examined
99 QString last_reference_;
100 /// store the buffer settings
101 int restored_buffer_;
103 std::vector<docstring> refs_;
106 } // namespace frontend