]> git.lyx.org Git - lyx.git/blobdiff - src/debug.h
LFUN_UNICODE_INSERT - unicode-insert
[lyx.git] / src / debug.h
index d19d350913459d34002507b0a4da630d1e9d8f58..5e7d9a1d39514124a4ab3ecd870f529cca2b3c6e 100644 (file)
 #define LYXDEBUG_H
 
 #include "support/debugstream.h"
+#include "support/docstring.h"
+
+
+namespace lyx {
 
 /** Ideally this should have been a namespace, but since we try to be
-    compilable on older C++ compilators too, we use a struct instead.
-    This is all the different debug levels that we have.
-*/
-struct lyx_debug_trait {
+ *  compilable on older C++ compilators too, we use a struct instead.
+ *  This is all the different debug levels that we have.
+ */
+class lyx_debug_trait {
+public:
        ///
        enum type {
                ///
@@ -73,7 +78,11 @@ struct lyx_debug_trait {
                ///
                EXTERNAL   = (1 << 23),
                ///
-               ANY = 0xffffff
+               PAINTING   = (1 << 24),
+               ///
+               DEBUG      = (1 << 31),
+               ///
+               ANY = 0xffffffff
        };
 
        static bool match(type a, type b) {
@@ -111,4 +120,7 @@ typedef LyXErr::debug Debug;
 
 extern LyXErr lyxerr;
 
+
+} // namespace lyx
+
 #endif