]> git.lyx.org Git - lyx.git/blobdiff - src/WorkArea.h
citation patch from Angus
[lyx.git] / src / WorkArea.h
index 85c85629c1c6d9211bd926ed2e44ff65bd032022..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;
 
@@ -106,26 +107,28 @@ public:
        BufferView * owner() const { return owner_; }
 
        // Signals
-       //
-       // Signal0<void> workAreaExpose;
-       //
-       // Signal3<void, int, int, unsigned int> workAreaButtonPress;
-       //
-       // Signal3<void, int, int, unsigned int> workAreaButtonRelease;
-       //
-       // Signal3<void, int, int, unsigned int> workAreaMotionNotify;
-       //
-       // Signal0<void> workAreaFocus;
-       //
-       // Signal0<void> workAreaUnfocus;
-       //
-       // Signal0<void> workAreaEnter;
-       //
-       // Signal0<void> workAreaLeave;
-       //
-       // Signal3<void, int, int, unsigned int> workAreaDoubleClick;
-       //
-       // Signal3<void, int, int, unsigned int> workAreaTripleClick;
+       ///
+       Signal0<void> workAreaExpose;
+       ///
+       Signal2<void, KeySym, unsigned int> workAreaKeyPress;
+       ///
+       Signal3<void, int, int, unsigned int> workAreaButtonPress;
+       ///
+       Signal3<void, int, int, unsigned int> workAreaButtonRelease;
+       ///
+       Signal3<void, int, int, unsigned int> workAreaMotionNotify;
+       ///
+       Signal0<void> workAreaFocus;
+       ///
+       Signal0<void> workAreaUnfocus;
+       ///
+       Signal0<void> workAreaEnter;
+       ///
+       Signal0<void> workAreaLeave;
+       ///
+       Signal3<void, int, int, unsigned int> workAreaDoubleClick;
+       ///
+       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