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 ***************************************************************************/
22 // to connect apply() and hide()
23 #include "FormCitation.h"
29 #include <qlineedit.h>
30 #include <qmultilinedit.h>
31 #include <qpushbutton.h>
33 class CitationDialog : public QWidget {
36 CitationDialog(FormCitation *form, QWidget *parent=0, const char *name=0,
37 bool modal=false, WFlags f=0);
47 QMultiLineEdit *entry;
54 QPushButton *buttonOk;
55 QPushButton *buttonCancel;
58 void closeEvent(QCloseEvent *e);
65 QHBoxLayout *topLayout;
67 QHBoxLayout *browserLayout;
68 QVBoxLayout *chosenLayout;
69 QVBoxLayout *iconLayout;
70 QVBoxLayout *keysLayout;
71 QVBoxLayout *entryLayout;
72 QHBoxLayout *afterLayout;
73 QHBoxLayout *buttonLayout;
76 void apply_adaptor(void) {
82 void close_adaptor(void) {
87 void add_adaptor(void) {
91 void up_adaptor(void) {
95 void down_adaptor(void) {
99 void remove_adaptor(void) {
103 void select_key_adaptor(const char *key) {
104 form_->select_key(key);
107 void highlight_key_adaptor(const char *key) {
108 form_->highlight_key(key);
111 void highlight_chosen_adaptor(const char *key) {
112 form_->highlight_chosen(key);