]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QRefDialog.C
The big renaming. Yowser.
[lyx.git] / src / frontends / qt2 / QRefDialog.C
1 /**
2  * \file QRefDialog.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
7  */
8
9 #include "QRefDialog.h"
10 #include "Dialogs.h"
11 #include "QRef.h"
12
13 QRefDialog::QRefDialog(QRef * form, QWidget * parent, const char * name, bool modal, WFlags fl)
14         : QRefDialogBase(parent, name, modal, fl),
15         form_(form)
16 {
17 }
18
19
20 QRefDialog::~QRefDialog()
21 {
22 }
23
24  
25 void QRefDialog::apply_adaptor()
26 {
27         form_->apply();
28         form_->close();
29         hide();
30 }
31
32
33 void QRefDialog::goto_adaptor()
34 {
35         form_->goto_ref();
36 }
37
38
39 void QRefDialog::highlight_adaptor(const QString & sel)
40 {
41         form_->highlight(sel); 
42 }
43
44
45 void QRefDialog::close_adaptor()
46 {
47         form_->close();
48         hide();
49 }
50
51
52 void QRefDialog::select_adaptor(const QString & sel)
53 {
54         form_->select(sel);
55 }
56
57
58 void QRefDialog::sort_adaptor(bool sort)
59 {
60         form_->set_sort(sort);
61 }
62
63
64 void QRefDialog::update_adaptor()
65 {
66         form_->do_ref_update();
67 }
68
69
70
71 void QRefDialog::closeEvent(QCloseEvent * e)
72 {
73         form_->close();
74         e->accept();
75 }