* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Jürgen Spitzmüller
+ * \author Angus Leeming
+ * \author Martin Vermeer
+ * \author Jürgen Spitzmüller
*
* Full author contact details are available in file CREDITS.
*/
#ifndef GUIBRANCH_H
#define GUIBRANCH_H
-#include "GuiDialog.h"
-#include "ControlBranch.h"
+#include "InsetParamsWidget.h"
#include "ui_BranchUi.h"
namespace lyx {
namespace frontend {
-class GuiBranchDialog : public GuiDialog, public Ui::BranchUi
+class GuiBranch : public InsetParamsWidget, public Ui::BranchUi
{
Q_OBJECT
public:
- GuiBranchDialog(LyXView & lv);
-
-private Q_SLOTS:
- void change_adaptor();
+ GuiBranch(QWidget * parent = 0);
private:
- ///
- void closeEvent(QCloseEvent * e);
- /// parent controller
- ControlBranch & controller();
- /// Apply changes
- void applyView();
- /// Update dialog before showing it
- void updateContents();
+ /// \name DialogView inherited methods
+ //@{
+ InsetCode insetCode() const { return BRANCH_CODE; }
+ FuncCode creationCode() const { return LFUN_BRANCH_INSERT; }
+ void paramsToDialog(Inset const *);
+ docstring dialogToParams() const;
+ //@}
};
-
} // namespace frontend
} // namespace lyx