"Fossies" - the Fresh Open Source Software Archive

Member "teapot-2.3.0/main.h" (6 Feb 2012, 1842 Bytes) of package /linux/privat/old/teapot-2.3.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "main.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef MAIN_H
    2 #define MAIN_H
    3 
    4 #include "config.h"
    5 
    6 #define _(x) (x)
    7 
    8 #include "sheet.h"
    9 
   10 #ifdef __cplusplus
   11 extern "C" {
   12 #endif
   13 
   14 extern int batch;
   15 extern int def_precision;
   16 extern int quote;
   17 extern int header;
   18 extern unsigned int batchln;
   19 
   20 /* A variable of type Key is either a special symbol from this enum, representing
   21    actions the user has triggered (by whatever means available), or a Unicode
   22    character that was entered
   23 */
   24 typedef enum {
   25   K_NONE = 0,
   26   K_INVALID = -1,
   27   K_BACKSPACE = -2,
   28   K_BPAGE = -3,
   29   K_CLOCK = -4,
   30   K_COPY = -5,
   31   K_DC = -6,
   32   K_DOWN = -7,
   33   K_END = -8,
   34   K_ENTER = -9,
   35   K_FIRSTL = -10,
   36   K_FPAGE = -11,
   37   K_FSHEET = -12,
   38   K_HOME = -13,
   39   K_LASTL = -14,
   40   K_LEFT = -15,
   41   K_LOAD = -16,
   42   K_LOADMENU = -17,
   43   K_LSHEET = -18,
   44   K_MARK = -19,
   45   K_MENTER = -20,
   46   K_NPAGE = -21,
   47   K_NSHEET = -22,
   48   K_PPAGE = -23,
   49   K_PSHEET = -24,
   50   K_QUIT = -25,
   51   K_RECALC = -26,
   52   K_RIGHT = -27,
   53   K_SAVE = -28,
   54   K_SAVEMENU = -29,
   55   K_SAVEQUIT = -30,
   56   K_UP = -31,
   57   K_GOTO = -32,
   58   K_NAME = -33,
   59   ADJUST_LEFT = -34,
   60   ADJUST_RIGHT = -35,
   61   ADJUST_CENTER = -36,
   62   ADJUST_SCIENTIFIC = -37,
   63   ADJUST_BOLD = -38,
   64   ADJUST_PRECISION = -39,
   65   ADJUST_SHADOW = -40,
   66   ADJUST_TRANSPARENT = -41,
   67   ADJUST_LABEL = -42,
   68   ADJUST_LOCK = -43,
   69   ADJUST_IGNORE = -44,
   70   K_COLWIDTH = -45,
   71   BLOCK_CLEAR = -46,
   72   BLOCK_INSERT = -47,
   73   BLOCK_DELETE = -48,
   74   BLOCK_MOVE = -49,
   75   BLOCK_COPY = -50,
   76   BLOCK_FILL = -51,
   77   BLOCK_SORT = -52,
   78   BLOCK_MIRROR = -53,
   79   K_ABOUT = -54,
   80   K_HELP = -55,
   81   ADJUST_UNDERLINE = -56
   82 } Key;
   83 
   84 extern int do_sheetcmd(Sheet *cursheet, Key c, int moveonly);
   85 extern int doanyway(Sheet *sheet, const char *msg);
   86 extern void moveto(Sheet *sheet, int x, int y, int z);
   87 extern void relmoveto(Sheet *sheet, int x, int y, int z);
   88 extern void do_mark(Sheet *cursheet, int force);
   89 
   90 #ifdef __cplusplus
   91 }
   92 #endif
   93 
   94 #endif