Ignore:
Timestamp:
02/16/13 10:13:44 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The font size is now taken into account and the maximal message length is considered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/plugin/src/xplra/MessageWindow.h

    r49 r50  
    7979    static const int resizeArea = 50;
    8080
     81    /**
     82     * The size of the margins at each side of the window.
     83     */
     84    static const int horizontalMarginSize = 25;
     85
     86    /**
     87     * The size of the margins at the top and the bottom of the window.
     88     */
     89    static const int verticalMarginSize = 5;
     90
     91    /**
     92     * The size for the baseline above the bottom of the letters.
     93     */
     94    static const int baseLineSize = 2;
     95
    8196private:
    8297    /**
     
    91106
    92107    /**
     108     * The width of one character of the font.
     109     */
     110    int fontWidth;
     111
     112    /**
     113     * The height of one character of the font.
     114     */
     115    int fontHeight;
     116
     117    /**
    93118     * The window ID.
    94119     */
     
    114139     */
    115140    int bottom;
     141
     142    /**
     143     * The maximal message length.
     144     */
     145    int maxMessageLength;
    116146
    117147    /**
     
    257287     */
    258288    void resetLocation();
     289
     290    /**
     291     * Recalculate the maximal message length.
     292     */
     293    void recalculateMaxMessageLength();
    259294
    260295    friend class MessageRequest;
Note: See TracChangeset for help on using the changeset viewer.