]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiMath.cpp
Compil fix.
[lyx.git] / src / frontends / qt4 / GuiMath.cpp
index 5929a5923ecb657a0e7ef2c60893587af32b87e7..4f7eb81133a5bce1181a9fbe82d503e7e080c4e3 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(GuiView & 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,14 +56,14 @@ GuiMath::GuiMath(GuiView & 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;
 }
 
 
-void GuiMath::dispatchFunc(kb_action action, string const & arg) const
+void GuiMath::dispatchFunc(FuncCode action, string const & arg) const
 {
        dispatch(FuncRequest(action, arg));
 }
@@ -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);