]> git.lyx.org Git - lyx.git/blobdiff - src/debug.C
Fix small bug in reading \set_color in lyxrc
[lyx.git] / src / debug.C
index b9847d3a7749cf926fea9dc73d02f97139bf7ce9..46b6a39e36c59215e7660f4deedd2e3912081110 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <iomanip>
 
+using std::ostream;
 using std::setw;
 using std::endl;
 
@@ -26,15 +27,15 @@ struct error_item {
 };
 
 static error_item errorTags[] = {
+       { Debug::NONE,          "none",         "No debugging message"},
        { Debug::INFO,          "info",         "General information"},
        { Debug::INIT,          "init",         "Program initialisation"},
        { Debug::KEY,           "key",          "Keyboard events handling"},
-       { Debug::TOOLBAR,       "toolbar",      "Toolbar handling"},
+       { Debug::GUI,           "gui",          "GUI handling"},
        { Debug::PARSER,        "parser",       "Lyxlex grammer parser"},
        { Debug::LYXRC,         "lyxrc",        "Configuration files reading"},
        { Debug::KBMAP,         "kbmap",        "Custom keyboard definition"},
        { Debug::LATEX,         "latex",        "LaTeX generation/execution"},
-       { Debug::DEPEND,        "depend",       "Dependency information"},
        { Debug::MATHED,        "mathed",       "Math editor"},
        { Debug::FONT,          "font",         "Font handling"},
        { Debug::TCLASS,        "tclass",       "Textclass files reading"},
@@ -43,7 +44,8 @@ static error_item errorTags[] = {
        { Debug::ROFF,          "roff",         "Keep *roff temporary files"},
        { Debug::ACTION,        "action",       "User commands"},
        { Debug::LYXLEX,        "lyxlex",       "The LyX Lexxer"},
-       { Debug::NONE,          "none",         "No debugging message"},
+       { Debug::DEPEND,        "depend",       "Dependency information"},
+       { Debug::INSETS,        "insets",       "LyX Insets"},
         { Debug::ANY,          "any",          "All debugging messages"}
 };
 
@@ -92,7 +94,7 @@ void Debug::showLevel(ostream & o, Debug::type level)
 void Debug::showTags(ostream & os) 
 {
        for (int i = 0 ; i < numErrorTags ; ++i)
-               os << setw(5) << errorTags[i].level
+               os << setw(7) << errorTags[i].level
                   << setw(10) << errorTags[i].name
                   << "  " << errorTags[i].desc << '\n';
        os.flush();