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"
23 class QListWidgetItem;
31 class GuiRefDialog : public QDialog, public Ui::RefUi {
34 GuiRefDialog(GuiRef * form);
39 void changed_adaptor();
41 void refHighlighted(QListWidgetItem *);
42 void selectionChanged();
43 void refSelected(QListWidgetItem *);
44 void sortToggled(bool);
50 void closeEvent(QCloseEvent * e);
58 // full qualification because qt4 has also a ControlRef type
60 : public QController<lyx::frontend::ControlRef, GuiView<GuiRefDialog> >
63 friend class GuiRefDialog;
68 virtual bool isValid();
74 virtual void build_dialog();
76 virtual void update_contents();
78 /// is name allowed for this ?
81 /// is type allowed for this ?
84 /// go to current reference
87 /// set go back button
90 /// set goto ref button
93 /// re-enter references
99 /// sort or not persistent state
102 /// went to a reference ?
105 /// the last reference entered or examined
106 QString last_reference_;
108 /// store the buffer settings
109 int restored_buffer_;
112 std::vector<docstring> refs_;
115 } // namespace frontend