3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
15 // to connect apply() and hide()
16 #include "FormCitation.h"
23 #include <qlineedit.h>
24 #include <qmultilinedit.h>
25 #include <qpushbutton.h>
27 class CitationDialog : public QDialog {
30 CitationDialog(FormCitation *form, QWidget *parent=0, char const * name=0,
31 bool modal=false, WFlags f=0);
41 QMultiLineEdit * entry;
48 QPushButton * buttonOk;
49 QPushButton * buttonCancel;
52 void closeEvent(QCloseEvent * e);
59 QHBoxLayout * topLayout;
61 QHBoxLayout * browserLayout;
62 QVBoxLayout * chosenLayout;
63 QVBoxLayout * iconLayout;
64 QVBoxLayout * keysLayout;
65 QVBoxLayout * entryLayout;
66 QHBoxLayout * afterLayout;
67 QHBoxLayout * buttonLayout;
70 void apply_adaptor(void) {
74 void close_adaptor(void) {
75 form_->CancelButton();
78 void add_adaptor(void) {
79 form_->bc().valid(form_->add());
82 void up_adaptor(void) {
83 form_->bc().valid(form_->up());
86 void down_adaptor(void) {
87 form_->bc().valid(form_->down());
90 void remove_adaptor(void) {
91 form_->bc().valid(form_->remove());
94 void select_key_adaptor(const char * key) {
95 form_->bc().valid(form_->select_key(key));
98 void highlight_key_adaptor(const char * key) {
99 form_->highlight_key(key);
102 void highlight_chosen_adaptor(const char * key) {
103 form_->highlight_chosen(key);
107 #endif // CITATIONDLG_H