]> git.lyx.org Git - lyx.git/blobdiff - src/Timeout.C
Fix class switching bug
[lyx.git] / src / Timeout.C
index 4005c83884b8f6b0cc5ed4957818a4001b5ce167..5bce1c404b92863c8cb60473cbec37397619be40 100644 (file)
@@ -1,3 +1,17 @@
+/* This file is part of
+ * ====================================================== 
+ * 
+ *           LyX, The Document Processor
+ *        
+ *           Copyright 1995 Matthias Ettrich
+ *           Copyright 1995-2000 The LyX Team.
+ *
+ * ====================================================== */
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include <config.h>
 
 #include FORMS_H_LOCATION
@@ -22,7 +36,7 @@ Timeout::Timeout()
 {}
 
 
-Timeout::Timeout(int msec, Type t)
+Timeout::Timeout(unsigned int msec, Type t)
        : type(t), timeout_ms(msec), timeout_id(-1)
 {}
 
@@ -67,13 +81,15 @@ void Timeout::emit()
 }
        
 
-void Timeout::setType(Type t)
+Timeout & Timeout::setType(Type t)
 {
        type = t;
+       return *this;
 }
 
 
-void Timeout::setTimeout(int msec)
+Timeout & Timeout::setTimeout(unsigned int msec)
 {
        timeout_ms = msec;
+       return *this;
 }