/***************************************************************************************
 *
 *  WRITEPAD(r): Handwriting Recognition Engine (HWRE) and components.
 *  Copyright (c) 2001-2016 PhatWare (r) Corp. All rights reserved.
 *
 *  Licensing and other inquires: <developer@phatware.com>
 *  Developer: Stan Miasnikov, et al. (c) PhatWare Corp. <http://www.phatware.com>
 *
 *  WRITEPAD HWRE is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
 *  AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
 *  INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
 *  FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL PHATWARE CORP.
 *  BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT, SPECIAL, INCIDENTAL,
 *  INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER,
 *  INCLUDING WITHOUT LIMITATION, LOSS OF PROFIT, LOSS OF USE, SAVINGS
 *  OR REVENUE, OR THE CLAIMS OF THIRD PARTIES, WHETHER OR NOT PHATWARE CORP.
 *  HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
 *  ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
 *  POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
 *  See the GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with WritePad.  If not, see <http://www.gnu.org/licenses/>.
 *
 **************************************************************************************/

#ifndef _DEF_H_
#define _DEF_H_

#define           COLORSMALLGAM       3         /* Small gammas colour */
/*                     */
#define           COLORGAM            2         /* Gammas colour.      */
/*                     */
#define           COLORCIRCLE         7         /* Circles colour.     */
/*                     */
#define           COLORMAX            9         /* Maximums colour .   */
/*                     */
#define           COLORMAXN           3         /* Maximums colour .   */
/*                     */
#define           COLORMIN           13         /* Minimums colour.    */
/*                     */
#define           COLORMINN           5         /* Minimums colour.    */
/*                     */
#define           COLORC             12         /* Intersections colour*/
/*                     */
#define           COLOR              15         /* Main colour .       */
/*                     */
#define           COLORSH            10         /* Shelves colour .    */
/*                     */
#define           COLORT             14         /* Strokes colour .    */
/*                     */
#define           COLORP             11         /* Strokes colour .    */
/*                     */
#define           COLORAN             2         /* Angles colour .     */

#define           COLORB              9         /* It's necessary...   */

/*                     */
#define  COLOR_FON         2                    /* background colour   */
#define  COLOR_UP          0                    /* upper screen colour */
#define  COLOR_LABEL      14                    /* label colour        */
#define  COLOR_FRAME      10                    /* common frame colour */
#define  COLOR_FRAME_UP   13                    /*                     */
#define  COLOR_FRAME_TEXT 12                    /* text frame colour   */
#define  COLOR_TEXT_BACK   0                    /* text screen colour  */
#define  COLOR_TEXT        0                    /* text colour         */
#define  COLOR_MSG        14                    /* message colour      */
#define  COLOR_PENCIL     12                    /* pencil colour       */
#define  COLLIN           11                    /* line colour        .*/
/*                     */
#define  SCR_MAXX        640                    /* horizontal screen   */
#define  SCR_MAXY        350                    /* vertical screen     */

#ifdef  FORMULA
#define  TABLET_MAXX    8000                    /*                     */
#define  TABLET_MAXY    6000                    /*                     */
#else
#define  TABLET_MAXX    10000                   /*                     */
#define  TABLET_MAXY     8000                   /*                     */
#endif  /*FORMULA*/

#define  SHIFT_Y_TRANS 10000                    /* shift along y axis  */
/* while setting scale */
#define  L_TOPX           13                    /* left                */
#define  L_TOPY           41                    /*   drawing           */
#define  L_BOTX          313                    /*      window         */
#define  L_BOTY          308                    /*        coordinates  */
#define  R_TOPX          326                    /* right               */
#define  R_TOPY           41                    /*   drawing           */
#define  R_BOTX          626                    /*     window          */
#define  R_BOTY          308                    /*        coordinates  */
#define  T_TOPX            1                    /* text                */
#define  T_BOTX           78                    /*    window           */
#define  T_BOTY           24                    /*       coordinates   */
#define  MSG_TOPX         17                    /* x coord. of message line */
#define  MSG_TOPY        325                    /* y coord. of message line */
#define  MSG_BOTX        628                    /* x coord. of message line */
#define  MSG_BOTY        341                    /* y coord. of message line */
#define  DLT               6                    /* distance between screen */
/* and frame               */
#define  LIN_UP         ( 54 +SHIFT_Y_TRANS)    /* y coord. of superupper line */
#define  STR_UP         (134 +SHIFT_Y_TRANS)    /* y coord. of upper line     */
#define  STR_DOWN       (214 +SHIFT_Y_TRANS)    /* y coord. of lower line*/
#define  LIN_DOWN       (294 +SHIFT_Y_TRANS)    /* y coord. of superlower line*/
#define  DY_STR         ((_SHORT)(STR_DOWN-STR_UP))
/*                     */
#define    DW            1                      /*                     */
/*                     */
#define    MX            3         /*  x coordinate scale exponent     */
/*     .   ( M = 2**MX )            */
#define    MY            4         /*  y coordinate scale exponent     */
/*  Y .   ( M = 2**MY )             */
#define    WTBX0          0        /*  Coordinates of the beginning of */
#define    WTBY0          0        /*  a window on a tablet            */
#define    WTTX0         4640      /*  Coordinates of the end of the   */
#define    WTTY0         3020      /*  a window on a tablet .          */
#define    WTX0          0         /*  Coordinates of the beginning of */
#define    WTY0          0         /*  a window in a screen            */
#define    WBX0          639       /*  Coordibates of the end of       */
#define    WBY0          349       /*  a window in a screen .          */
#define    STBX0         0         /*  Coordinates of the beginning of */
#define    STBY0         0         /*  a window on a tablet            */
#define    STTX0         5850      /*  Coordinates of the end of       */
#define    STTY0         5850      /*  a window on a tablet.           */
#define    SSTX0         L_TOPX    /*  Coordinates of the beginning of */
#define    SSTY0         L_TOPY    /*  a window in a screen.           */
#define    SSBX0         R_BOTX    /*  Coordinates of the end of       */
#define    SSBY0         R_BOTY    /*  window in a screen              */
#define    SDX           30        /*  Coordinates of the window       */
#define    SDY           80        /*  shift in the screen .           */


#endif // _DEF_H_

