3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
19 #include <qcombobox.h>
20 #include <qcheckbox.h>
24 #include <qlineedit.h>
25 #include <qpushbutton.h>
27 class RefDialog : public QDialog {
30 RefDialog(FormRef * form, QWidget * parent=0, char const * name=0,
31 bool modal=false, WFlags f=0);
39 QLineEdit * reference;
40 QLabel * labelrefname;
41 QLabel * labelreference;
45 QPushButton * buttonGoto;
46 QPushButton * buttonUpdate;
47 QPushButton * buttonOk;
48 QPushButton * buttonCancel;
51 void closeEvent(QCloseEvent * e);
58 QHBoxLayout * topLayout;
60 QHBoxLayout * upperLayout;
61 QVBoxLayout * browserLayout;
62 QVBoxLayout * rightLayout;
63 QHBoxLayout * nameLayout;
64 QHBoxLayout * referenceLayout;
65 QHBoxLayout * buttonLayout;
68 /// adaptor to FormRef::select
69 void select_adaptor(const char * sel) {
73 /// adaptor to FormRef::highlight
74 void highlight_adaptor(const char * sel) {
75 form_->highlight(sel);
78 /// adaptor to FormRef::set_sort
79 void sort_adaptor(bool sort) {
80 form_->set_sort(sort);
83 /// adaptor to FormRef::gotoRef
84 void goto_adaptor(void) {
88 /// adaptor to FormRef::update
89 void update_adaptor(void) {
90 form_->do_ref_update();
93 /// adaptor to FormRef::apply
94 void apply_adaptor(void) {
100 /// adaptor to FormRef::close
101 void close_adaptor(void) {