]> git.lyx.org Git - lyx.git/blobdiff - src/WorkArea.h
citation patch from Angus
[lyx.git] / src / WorkArea.h
index 651b2a033c96c45d7a8e9620e019845083d80bfa..18b10611c796ce68e1040099a1ff1c84da88df22 100644 (file)
 
 #include <utility>
 
-//#include <sigc++/signal_system.h>
+#include <sigc++/signal_system.h>
 
 #include FORMS_H_LOCATION
 #include "Painter.h"
 
-//#ifdef SIGC_CXX_NAMESPACES
-//using SigC::Signal0;
-//using SigC::Signal3;
-//#endif
+#ifdef SIGC_CXX_NAMESPACES
+using SigC::Signal0;
+using SigC::Signal2;
+using SigC::Signal3;
+#endif
 
 class BufferView;
 
-
+///
 class WorkArea {
 public:
        ///
@@ -107,25 +108,27 @@ public:
 
        // Signals
        ///
-       //Signal0<void> workAreaExpose;
+       Signal0<void> workAreaExpose;
+       ///
+       Signal2<void, KeySym, unsigned int> workAreaKeyPress;
        ///
-       //Signal3<void, int, int, unsigned int> workAreaButtonPress;
+       Signal3<void, int, int, unsigned int> workAreaButtonPress;
        ///
-       //Signal3<void, int, int, unsigned int> workAreaButtonRelease;
+       Signal3<void, int, int, unsigned int> workAreaButtonRelease;
        ///
-       //Signal3<void, int, int, unsigned int> workAreaMotionNotify;
+       Signal3<void, int, int, unsigned int> workAreaMotionNotify;
        ///
-       //Signal0<void> workAreaFocus;
+       Signal0<void> workAreaFocus;
        ///
-       //Signal0<void> workAreaUnfocus;
+       Signal0<void> workAreaUnfocus;
        ///
-       //Signal0<void> workAreaEnter;
+       Signal0<void> workAreaEnter;
        ///
-       //Signal0<void> workAreaLeave;
+       Signal0<void> workAreaLeave;
        ///
-       //Signal3<void, int, int, unsigned int> workAreaDoubleClick;
+       Signal3<void, int, int, unsigned int> workAreaDoubleClick;
        ///
-       //Signal3<void, int, int, unsigned int> workAreaTripleClick;
+       Signal3<void, int, int, unsigned int> workAreaTripleClick;
 private:
        ///
        void createPixmap(int, int);
@@ -143,5 +146,7 @@ private:
        Painter painter_;
        ///
        FL_OBJECT * figinset_canvas;
+       /// if we call redraw with true needed for locking-insets
+       bool screen_cleared;
 };
 #endif