]> git.lyx.org Git - lyx.git/blobdiff - src/WorkArea.h
citation patch from Angus
[lyx.git] / src / WorkArea.h
index b57f3e713dc218ae9d37844dabe291c94f8489ce..18b10611c796ce68e1040099a1ff1c84da88df22 100644 (file)
 
 #include <utility>
 
+#include <sigc++/signal_system.h>
+
 #include FORMS_H_LOCATION
 #include "Painter.h"
 
-class BufferView;
+#ifdef SIGC_CXX_NAMESPACES
+using SigC::Signal0;
+using SigC::Signal2;
+using SigC::Signal3;
+#endif
 
+class BufferView;
 
+///
 class WorkArea {
 public:
        ///
@@ -98,6 +106,29 @@ public:
        ///
        BufferView * owner() const { return owner_; }
 
+       // Signals
+       ///
+       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);
@@ -115,5 +146,7 @@ private:
        Painter painter_;
        ///
        FL_OBJECT * figinset_canvas;
+       /// if we call redraw with true needed for locking-insets
+       bool screen_cleared;
 };
 #endif