]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBibitem.h
Fix the tab ordering of GuiDocument components.
[lyx.git] / src / frontends / qt4 / GuiBibitem.h
index e096be582c33ae89a42302c37524784b2a26f49b..a64ba72e88cb29f169015b33414dbff113798a03 100644 (file)
 #ifndef GUIBIBITEM_H
 #define GUIBIBITEM_H
 
-#include "GuiDialog.h"
+#include "InsetParamsWidget.h"
 #include "ui_BibitemUi.h"
 
-#include "frontends/Dialog.h"
-
-#include "insets/InsetCommandParams.h"
 
 namespace lyx {
 namespace frontend {
 
-class GuiBibitem : public GuiDialog, public Ui::BibitemUi, public Controller
+class GuiBibitem : public InsetParamsWidget, public Ui::BibitemUi
 {
        Q_OBJECT
 
 public:
-       GuiBibitem(LyXView & lv);
-
-private Q_SLOTS:
-       void change_adaptor();
-
-private:
-       ///
-       void closeEvent(QCloseEvent * e);
-       /// parent controller
-       Controller & controller() { return *this; }
-
-private:
-       ///
-       bool isValid();
-       /// Apply changes
-       void applyView();
-       /// update
-       void updateContents();
-       ///
-       bool initialiseParams(std::string const & data);
-       /// clean-up on hide.
-       void clearParams() { params_.clear(); }
-       /// clean-up on hide.
-       void dispatchParams();
-       ///
-       bool isBufferDependent() const { return true; }
+       /// Constructor
+       GuiBibitem(QWidget * parent = 0);
 
 private:
-       ///
-       InsetCommandParams params_;
+       /// \name DialogView inherited methods
+       //@{
+       InsetCode insetCode() const { return BIBITEM_CODE; }
+       FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+       void paramsToDialog(Inset const *);
+       docstring dialogToParams() const;
+       bool checkWidgets() const;
+       //@}
 };
 
 } // namespace frontend