]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/QCitationDialog.h
rename LFUN enum values according to their command (as used in th minibuffer/bind...
[lyx.git] / src / frontends / qt4 / QCitationDialog.h
index 0eb96da84ec1532748ce4f711002bb156ec737f4..85eb750da7d836f68ed6d1eb0f561e8606a7f5f6 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef QCITATIONDIALOG_H
 #define QCITATIONDIALOG_H
 
+#include "Dialog.h"
+
 #include "ui/QCitationUi.h"
 #include "ui/QCitationFindUi.h"
 #include "controllers/biblio.h"
@@ -30,18 +32,32 @@ namespace frontend {
 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: