]> git.lyx.org Git - features.git/blob - src/frontends/kde/citationdlg.C
renaming, fix citation (still no search though)
[features.git] / src / frontends / kde / citationdlg.C
1 /**
2  * \file citationdlg.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon
7  */
8
9 #include <config.h>
10 #include <gettext.h>
11
12 #include "FormCitation.h"
13 #include "citationdlg.h"
14
15 #include <qtooltip.h>
16
17 CitationDialog::CitationDialog(FormCitation * f, QWidget * p, char const * name)
18         : CitationDialogData(p, name), form_(f)
19 {
20         setCaption(name);
21
22         // tooltips
23
24         QToolTip::add(button_add, _("Add reference to current citation"));
25         QToolTip::add(button_remove, _("Remove reference from current citation"));
26         QToolTip::add(button_up, _("Move reference before"));
27         QToolTip::add(button_down, _("Move reference after"));
28         QToolTip::add(line_after, _("Text to add after references"));
29         QToolTip::add(line_details, _("Reference details"));
30         QToolTip::add(button_search, _("Search through references"));
31         QToolTip::add(list_available, _("Available references"));
32         QToolTip::add(list_chosen, _("Current chosen references"));
33
34         line_details->setMinimumHeight(30);
35  
36         setMinimumSize(200, 65);
37 }
38
39
40 void CitationDialog::clicked_search()
41 {
42         // FIXME 
43 }
44
45  
46 void CitationDialog::closeEvent(QCloseEvent * e)
47 {
48         form_->CancelButton();
49         e->accept();
50 }