4 * John Levon, moz@compsoc.man.ac.uk
7 /***************************************************************************
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
14 ***************************************************************************/
25 #include <qcombobox.h>
26 #include <qcheckbox.h>
30 #include <qlineedit.h>
31 #include <qpushbutton.h>
33 class RefDialog : public QWidget {
36 RefDialog(FormRef *form, QWidget *parent=0, const char *name=0,
37 bool modal=false, WFlags f=0);
47 QLabel *labelreference;
51 QPushButton *buttonGoto;
52 QPushButton *buttonUpdate;
53 QPushButton *buttonOk;
54 QPushButton *buttonCancel;
57 void closeEvent(QCloseEvent *e);
64 QHBoxLayout *topLayout;
66 QHBoxLayout *upperLayout;
67 QVBoxLayout *browserLayout;
68 QVBoxLayout *rightLayout;
69 QHBoxLayout *nameLayout;
70 QHBoxLayout *referenceLayout;
71 QHBoxLayout *buttonLayout;
74 /// adaptor to FormRef::select
75 void select_adaptor(const char *sel) {
79 /// adaptor to FormRef::highlight
80 void highlight_adaptor(const char *sel) {
81 form_->highlight(sel);
84 /// adaptor to FormRef::set_sort
85 void sort_adaptor(bool sort) {
86 form_->set_sort(sort);
89 /// adaptor to FormRef::gotoRef
90 void goto_adaptor(void) {
94 /// adaptor to FormRef::update
95 void update_adaptor(void) {
96 form_->do_ref_update();
99 /// adaptor to FormRef::apply
100 void apply_adaptor(void) {
106 /// adaptor to FormRef::close
107 void close_adaptor(void) {