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 ***************************************************************************/
16 #ifndef FORMREFDIALOG_H
17 #define FORMREFDIALOG_H
26 #include <qcombobox.h>
27 #include <qcheckbox.h>
31 #include <qlineedit.h>
32 #include <qpushbutton.h>
34 class FormRefDialog : public QDialog {
37 FormRefDialog(FormRef *form, QWidget *parent=0, const char *name=0,
38 bool modal=false, WFlags f=0);
48 QLabel *labelreference;
52 QPushButton *buttonGoto;
53 QPushButton *buttonUpdate;
54 QPushButton *buttonOk;
55 QPushButton *buttonCancel;
58 void closeEvent(QCloseEvent *e);
65 QHBoxLayout *topLayout;
67 QHBoxLayout *upperLayout;
68 QVBoxLayout *browserLayout;
69 QVBoxLayout *rightLayout;
70 QHBoxLayout *nameLayout;
71 QHBoxLayout *referenceLayout;
72 QHBoxLayout *buttonLayout;
75 /// adaptor to FormRef::select
76 void select_adaptor(const char *sel) {
80 /// adaptor to FormRef::highlight
81 void highlight_adaptor(const char *sel) {
82 form_->highlight(sel);
85 /// adaptor to FormRef::set_sort
86 void sort_adaptor(bool sort) {
87 form_->set_sort(sort);
90 /// adaptor to FormRef::gotoRef
91 void goto_adaptor(void) {
95 /// adaptor to FormRef::update
96 void update_adaptor(void) {
97 form_->do_ref_update();
100 /// adaptor to FormRef::apply
101 void apply_adaptor(void) {
107 /// adaptor to FormRef::close
108 void close_adaptor(void) {