#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")
+GuiBranch::GuiBranch(GuiView & lv)
+ : GuiDialog(lv, "branch", qt_("Branch Settings"))
{
setupUi(this);
- 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();
bool GuiBranch::initialiseParams(string const & data)
{
- InsetBranchMailer::string2params(data, params_);
+ InsetBranch::string2params(data, params_);
return true;
}
void GuiBranch::dispatchParams()
{
- dispatch(FuncRequest(getLfun(), InsetBranchMailer::params2string(params_)));
+ dispatch(FuncRequest(getLfun(), InsetBranch::params2string(params_)));
}
-Dialog * createGuiBranch(LyXView & lv) { return new GuiBranch(lv); }
+Dialog * createGuiBranch(GuiView & lv) { return new GuiBranch(lv); }
} // namespace frontend