*
* \author Angus Leeming
* \author Martin Vermeer
- * \author Jürgen Spitzmüller
+ * \author Jürgen Spitzmüller
*
* Full author contact details are available in file CREDITS.
*/
#include "GuiBranch.h"
#include "qt_helpers.h"
-#include "BranchList.h"
#include "Buffer.h"
#include "BufferParams.h"
#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();
int id = 0;
int count = 0;
for (const_iterator it = begin; it != end; ++it, ++count) {
- docstring const & branch = it->getBranch();
+ docstring const & branch = it->branch();
branchCO->addItem(toqstr(branch));
if (cur_branch == branch)
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
} // namespace lyx
-#include "GuiBranch_moc.cpp"
+#include "moc_GuiBranch.cpp"