]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiMath.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiMath.cpp
index e64243d7f9d98510ea8af30d087496539059a3c9..314b001c078134edb2ff0a24910c2deefb2840aa 100644 (file)
 #include <config.h>
 
 #include "GuiMath.h"
-#include "debug.h"
+
 #include "FuncRequest.h"
 
-using std::string;
-using std::map;
+#include "support/debug.h"
+
+using namespace std;
 
 namespace lyx {
 namespace frontend {
 
-GuiMath::GuiMath(LyXView & lv, std::string const & name)
-       : GuiDialog(lv, name)
+GuiMath::GuiMath(GuiView & lv, QString const & name, QString const & title)
+       : GuiDialog(lv, name, title)
 {
        // FIXME: Ideally, those unicode codepoints would be defined
        // in "lib/symbols". Unfortunately, some of those are already
@@ -55,8 +56,8 @@ GuiMath::GuiMath(LyXView & lv, std::string const & name)
        math_symbols_["vert"] = MathSymbol(0x007C, 106, CMSY_FAMILY);
        math_symbols_["Vert"] = MathSymbol(0x2016, 107, CMSY_FAMILY);
 
-       std::map<string, MathSymbol>::const_iterator it = math_symbols_.begin();
-       std::map<string, MathSymbol>::const_iterator end = math_symbols_.end();
+       map<string, MathSymbol>::const_iterator it = math_symbols_.begin();
+       map<string, MathSymbol>::const_iterator end = math_symbols_.end();
        for (; it != end; ++it)
                tex_names_[it->second.unicode] = it->first;
 }
@@ -137,7 +138,7 @@ MathSymbol const & GuiMath::mathSymbol(string tex_name) const
 }
 
 
-std::string const & GuiMath::texName(char_type math_symbol) const
+string const & GuiMath::texName(char_type math_symbol) const
 {
        map<char_type, string>::const_iterator it =
                tex_names_.find(math_symbol);