]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBranch.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiBranch.cpp
index b7aa73a7cbaa24503a03024a9b8453d286384e56..57484c86f174426fd29c12c7d158339017d265d7 100644 (file)
@@ -5,7 +5,7 @@
  *
  * \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.
  */
@@ -15,7 +15,6 @@
 #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(GuiView & lv)
-       : GuiDialog(lv, "branch")
+       : 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()));
@@ -49,13 +45,6 @@ GuiBranch::GuiBranch(GuiView & lv)
 }
 
 
-void GuiBranch::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiBranch::change_adaptor()
 {
        changed();
@@ -76,7 +65,7 @@ void GuiBranch::updateContents()
        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)
@@ -94,7 +83,7 @@ void GuiBranch::applyView()
 
 bool GuiBranch::initialiseParams(string const & data)
 {
-       InsetBranchMailer::string2params(data, params_);
+       InsetBranch::string2params(data, params_);
        return true;
 }
 
@@ -107,7 +96,7 @@ void GuiBranch::clearParams()
 
 void GuiBranch::dispatchParams()
 {
-       dispatch(FuncRequest(getLfun(), InsetBranchMailer::params2string(params_)));
+       dispatch(FuncRequest(getLfun(), InsetBranch::params2string(params_)));
 }
 
 
@@ -117,4 +106,4 @@ Dialog * createGuiBranch(GuiView & lv) { return new GuiBranch(lv); }
 } // namespace frontend
 } // namespace lyx
 
-#include "GuiBranch_moc.cpp"
+#include "moc_GuiBranch.cpp"