]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/screen.h
fix tooltips in toolbar
[lyx.git] / src / frontends / screen.h
index 47f092d8e563bc673466d4acd03cb3e7f4eec1b1..b0e1a6232eef58e5b2abf10fe004077498721426 100644 (file)
@@ -14,7 +14,7 @@
 #ifdef __GNUG__
 #pragma interface
 #endif
+
 class LyXText;
 class LyXCursor;
 class WorkArea;
@@ -24,7 +24,7 @@ struct Row;
 /**
  * LyXScreen - document rendering management
  *
- * This class is used to manage the on-screen rendering inside the 
+ * This class is used to manage the on-screen rendering inside the
  * work area; it is responsible for deciding which LyXText rows
  * need re-drawing.
  *
@@ -48,15 +48,15 @@ public:
        LyXScreen();
 
        virtual ~LyXScreen();
-        
+
        /**
         * draw the screen from a given position
         * @param y the text position to draw from
         *
-        * Uses as much of the already printed pixmap as possible 
+        * Uses as much of the already printed pixmap as possible
         */
        virtual void draw(LyXText *, BufferView *, unsigned int y) = 0;
+
        /**
         * showManualCursor - display the cursor on the work area
         * @param text the lyx text containing the cursor
@@ -69,10 +69,10 @@ public:
        virtual void showManualCursor(LyXText const *, int x, int y,
                              int asc, int desc,
                              Cursor_Shape shape) = 0;
-       
+
        /// unpaint the cursor painted by showManualCursor()
        virtual void hideCursor() = 0;
+
        /**
         * fit the cursor onto the visible work area, scrolling if necessary
         * @param bv the buffer view
@@ -86,13 +86,13 @@ public:
         */
        bool fitManualCursor(BufferView * bv, LyXText * text,
                int x, int y, int a, int d);
+
        /// redraw the screen, without using existing pixmap
        virtual void redraw(LyXText *, BufferView *);
-   
+
        /// draw the cursor if it's not already shown
        virtual void showCursor(LyXText const *, BufferView const *);
+
        /**
         * topCursorVisible - get a new "top" to make the cursor visible
         * @param c the cursor
@@ -103,17 +103,17 @@ public:
         * within the LyXText is "nicely" visible.
         */
        virtual unsigned int topCursorVisible(LyXCursor const & c, int top_y);
+
        /**
         * fitCursor - fit the cursor onto the work area
         * @param text the text containing the cursor
         * @param bv the bufferview
         * @return true if a change was necessary
         *
-        * Scrolls the screen so that the cursor is visible,
+        * Scrolls the screen so that the cursor is visible
         */
        virtual bool fitCursor(LyXText *, BufferView *);
+
        /// show the cursor if it's not, and vice versa
        virtual void cursorToggle(BufferView *) const;
 
@@ -123,47 +123,47 @@ public:
         * @param bv the bufferview
         * @param xo the x offset into the text
         * @param yo the x offset into the text
-        * 
+        *
         * Updates part of the screen. If text->status is
         * LyXText::NEED_MORE_REFRESH, we update from the
         * point of change and to the end of the screen.
         * If text->status is LyXText::NEED_VERY_LITTLE_REFRESH,
-        * we only update the current row. 
+        * we only update the current row.
         */
        virtual void update(LyXText * text, BufferView * bv, int yo = 0, int xo = 0);
+
        /// FIXME
        virtual void toggleSelection(LyXText *, BufferView *, bool = true,
                             int y_offset = 0, int x_offset = 0);
+
        /// FIXME - at least change the name !!
        virtual void toggleToggle(LyXText *, BufferView *,
                          int y_offset = 0, int x_offset = 0);
-       
+
        /// FIXME
        virtual bool forceClear() const { return force_clear_; }
 
 protected:
-       /// copies specified area of pixmap to screen
-       virtual void expose(int x, int y, int exp_width, int exp_height) = 0;
+       /// cause the display of the given area of the work area
+       virtual void expose(int x, int y, int w, int h) = 0;
 
        /// get the work area
        virtual WorkArea & workarea() const = 0;
+
        /// y1 and y2 are coordinates of the screen
        virtual void drawFromTo(LyXText *, BufferView *, int y1, int y2,
-                       int y_offset = 0, int x_offset = 0, bool internal = false);
+                       int y_offset = 0, int x_offset = 0, bool internal = false);
 
        /// y is a coordinate of the text
        virtual void drawOneRow(LyXText *, BufferView *, Row * row,
                        int y_text, int y_offset = 0, int x_offset = 0);
+
        /// grey out (no buffer)
        void greyOut();
+
        /// FIXME ?
        bool force_clear_;
+
        /// is the blinking cursor currently drawn
        bool cursor_visible_;
 };