#ifndef QCITATIONDIALOG_H
#define QCITATIONDIALOG_H
+#include "Dialog.h"
+
#include "ui/QCitationUi.h"
#include "ui/QCitationFindUi.h"
#include "controllers/biblio.h"
class QCitation;
class QCitationFind;
-class QCitationDialog : public QDialog, public Ui::QCitationUi {
+class QCitationDialog: public QDialog, public Ui::QCitationUi, public Dialog::View {
Q_OBJECT
public:
- QCitationDialog(QCitation * form);
+ QCitationDialog(Dialog &, QCitation * form );
+
+ //QCitationDialog(QCitation * form);
+
+ virtual ~QCitationDialog();
+
+ virtual void apply();
- ~QCitationDialog();
+ /// Hide the dialog from sight
+ void hide();
- void update(InsetCommandParams const & params);
- void apply(InsetCommandParams & params);
+ /// Redraw the dialog (e.g. if the colors have been remapped).
+ void redraw() {}
+
+ /// Create the dialog if necessary, update it and display it.
+ void show();
+
+ /// Update the display of the dialog whilst it is still visible.
+ void update();
-// virtual bool isValid();
+ /// \return true if the dialog is visible.
+ bool isVisible() const;
protected slots: