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 ***************************************************************************/
16 #ifndef FORMCITATIONDIALOG_H
17 #define FORMCITATIONDIALOG_H
22 // to connect apply() and hide()
23 #include "FormCitation.h"
30 #include <qlineedit.h>
31 #include <qmultilinedit.h>
32 #include <qpushbutton.h>
34 class FormCitationDialog : public QDialog {
37 FormCitationDialog(FormCitation *form, QWidget *parent=0, const char *name=0,
38 bool modal=false, WFlags f=0);
39 ~FormCitationDialog();
48 QMultiLineEdit *entry;
55 QPushButton *buttonOk;
56 QPushButton *buttonCancel;
59 void closeEvent(QCloseEvent *e);
66 QHBoxLayout *topLayout;
68 QHBoxLayout *browserLayout;
69 QVBoxLayout *chosenLayout;
70 QVBoxLayout *iconLayout;
71 QVBoxLayout *keysLayout;
72 QVBoxLayout *entryLayout;
73 QHBoxLayout *afterLayout;
74 QHBoxLayout *buttonLayout;
77 void apply_adaptor(void) {
83 void close_adaptor(void) {
88 void add_adaptor(void) {
92 void up_adaptor(void) {
96 void down_adaptor(void) {
100 void remove_adaptor(void) {
104 void select_key_adaptor(const char *key) {
105 form_->select_key(key);
108 void highlight_key_adaptor(const char *key) {
109 form_->highlight_key(key);
112 void highlight_chosen_adaptor(const char *key) {
113 form_->highlight_chosen(key);