#include "insets/InsetBranch.h"
#include <QPushButton>
-#include <QCloseEvent>
-using std::string;
-using std::vector;
+using namespace std;
namespace lyx {
namespace frontend {
-GuiBranch::GuiBranch(LyXView & lv)
- : GuiDialog(lv, "branch"), Controller(this)
+GuiBranch::GuiBranch(GuiView & lv)
+ : GuiDialog(lv, "branch", qt_("Branch Settings"))
{
setupUi(this);
- setController(this, false);
- setViewTitle(_("Branch Settings"));
connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
}
-void GuiBranch::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiBranch::change_adaptor()
{
changed();
}
-Dialog * createGuiBranch(LyXView & lv) { return new GuiBranch(lv); }
+Dialog * createGuiBranch(GuiView & lv) { return new GuiBranch(lv); }
} // namespace frontend