]> git.lyx.org Git - lyx.git/blobdiff - src/Timeout.h
More fixes to insettabular/text (and some missing features added).
[lyx.git] / src / Timeout.h
index 3233b72e92f014b45ba1bb77c601857a2ff9b912..9cecc49d7a43e8b615f829323d5b783ebf1a1ca5 100644 (file)
 #endif
 
 #include <sigc++/signal_system.h>
-/* ugly hack to prevent Qt's '#define emit ...' from 
- * screwing us up below - jbl 2000/8/10 
- */
-#ifdef KDEGUI
-#undef emit
-#endif
-
 
 #ifdef SIGC_CXX_NAMESPACES
 using SigC::Signal0;
@@ -47,7 +40,7 @@ public:
        ///
        Timeout();
        ///
-       Timeout(int msec, Type = ONETIME);
+       Timeout(unsigned int msec, Type = ONETIME);
        ///
        ~Timeout();
        ///
@@ -61,14 +54,14 @@ public:
        ///
        void emit();
        ///
-       void setType(Type t);
+       Timeout & setType(Type t);
        ///
-       void setTimeout(int msec);
+       Timeout & setTimeout(unsigned int msec);
 private:
        ///
        Type type;
        ///
-       int timeout_ms;
+       unsigned int timeout_ms;
        ///
        int timeout_id;
 };