#ifndef GUIBIBITEM_H
#define GUIBIBITEM_H
-#include "GuiDialog.h"
+#include "InsetParamsWidget.h"
#include "ui_BibitemUi.h"
-#include "insets/InsetCommandParams.h"
namespace lyx {
namespace frontend {
-class GuiBibitem : public GuiCommand, public Ui::BibitemUi
+class GuiBibitem : public InsetParamsWidget, public Ui::BibitemUi
{
Q_OBJECT
public:
- GuiBibitem(GuiView & lv);
-
-private Q_SLOTS:
- void change_adaptor();
-
-private:
- ///
- void closeEvent(QCloseEvent * e);
+ /// 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