]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBibitem.h
QDialogButtonBox for the remaining dialogs.
[lyx.git] / src / frontends / qt4 / GuiBibitem.h
index 671021a130515bf3759268534065ab0e56199a35..d96d7c1fd790845f53cd5cc8d95706f6c657f2f8 100644 (file)
@@ -4,6 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
+ * \author Angus Leeming
  * \author John Levon
  *
  * Full author contact details are available in file CREDITS.
 #ifndef GUIBIBITEM_H
 #define GUIBIBITEM_H
 
-#include "GuiDialog.h"
-#include "ControlCommand.h"
+#include "InsetParamsWidget.h"
 #include "ui_BibitemUi.h"
 
+
 namespace lyx {
 namespace frontend {
 
-class GuiBibitemDialog : public GuiDialog, public Ui::BibitemUi
+class GuiBibitem : public InsetParamsWidget, public Ui::BibitemUi
 {
        Q_OBJECT
 
 public:
-       GuiBibitemDialog(LyXView & lv);
-
-private Q_SLOTS:
-       void change_adaptor();
-
-private:
-       ///
-       void closeEvent(QCloseEvent * e);
-       /// parent controller
-       ControlCommand & controller();
+       /// Constructor
+       GuiBibitem(QWidget * parent = 0);
 
 private:
-       ///
-       bool isValid();
-       /// Apply changes
-       void applyView();
-       /// update
-       void updateContents();
+       /// \name DialogView inherited methods
+       //@{
+       InsetCode insetCode() const { return BIBITEM_CODE; }
+       FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+       QString dialogTitle() const { return qt_("Bibliography Item Settings"); }
+       void paramsToDialog(Inset const *);
+       docstring dialogToParams() const;
+       bool checkWidgets(bool readonly) const;
+       //@}
 };
 
 } // namespace frontend