3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
15 // to connect apply() and hide()
16 #include "FormCitation.h"
24 #include <qlineedit.h>
25 #include <qmultilinedit.h>
26 #include <qpushbutton.h>
28 class CitationDialog : public QDialog {
31 CitationDialog(FormCitation *form, QWidget *parent=0, char const * name=0,
32 bool modal=false, WFlags f=0);
42 QMultiLineEdit * entry;
49 QPushButton * buttonOk;
50 QPushButton * buttonCancel;
53 void closeEvent(QCloseEvent * e);
60 QHBoxLayout * topLayout;
62 QHBoxLayout * browserLayout;
63 QVBoxLayout * chosenLayout;
64 QVBoxLayout * iconLayout;
65 QVBoxLayout * keysLayout;
66 QVBoxLayout * entryLayout;
67 QHBoxLayout * afterLayout;
68 QHBoxLayout * buttonLayout;
71 void apply_adaptor(void) {
75 void close_adaptor(void) {
76 form_->CancelButton();
79 void add_adaptor(void) {
80 form_->bc().valid(form_->add());
83 void up_adaptor(void) {
84 form_->bc().valid(form_->up());
87 void down_adaptor(void) {
88 form_->bc().valid(form_->down());
91 void remove_adaptor(void) {
92 form_->bc().valid(form_->remove());
95 void select_key_adaptor(const char * key) {
96 form_->bc().valid(form_->select_key(key));
99 void highlight_key_adaptor(const char * key) {
100 form_->highlight_key(key);
103 void highlight_chosen_adaptor(const char * key) {
104 form_->highlight_chosen(key);
108 #endif // CITATIONDLG_H