as_const.h

Wed, 07 Jan 2009 18:49:25 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 07 Jan 2009 18:49:25 +0100
changeset 12
ceb4ba3d2d00
parent 3
c1941114ca88
permissions
-rw-r--r--

Bump copyright year number.

     1 //
     2 //  OSSP asgui - Accounting system graphical user interface
     3 //  Copyright (c) 2002-2009 The OSSP Project (http://www.ossp.org/)
     4 //  Copyright (c) 2002-2009 Ralf S. Engelschall <rse@engelschall.com>
     5 //  Copyright (c) 2002-2009 Michael Schloh von Bennewitz <michael@schloh.com>
     6 //  Copyright (c) 2002-2009 Cable & Wireless Telecommunications Services GmbH
     7 //
     8 //  This file is part of OSSP asgui, an accounting system graphical user
     9 //  interface which can be found at http://asgui.europalab.com/.
    10 //
    11 //  Permission to use, copy, modify, and distribute this software for
    12 //  any purpose with or without fee is hereby granted, provided that
    13 //  the above copyright notice and this permission notice appear in all
    14 //  copies.
    15 //
    16 //  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    17 //  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    18 //  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    19 //  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    20 //  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    21 //  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    22 //  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    23 //  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    24 //  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    25 //  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    26 //  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    27 //  SUCH DAMAGE.
    28 //
    29 //  as_const.h: ISO C++ interface
    30 //
    32 #ifndef TITCONST_H
    33 #define TITCONST_H
    36 // General preferences
    37 #define TITRAQ_PREFNAME         ".asgui"
    38 #define TITRAQ_APPTITLE         "AS Accounting System"
    39 #define TITRAQ_STR_ID           "OSSPASGUI"                         /* APPID */
    40 #define TITRAQ_UID_ID           0x84fae747e1a64016bf049e98bbc4bd96  /* UUID */
    41 #define TITRAQ_PREFVER          "0.6"
    42 #define TITRAQ_PREFHOME         "homedir"
    43 #define TITRAQ_DEFHOME          "."
    44 #define TITRAQ_PREFUSER         "user"
    45 #define TITRAQ_DEFUSER          "username"
    46 #define TITRAQ_PREFASDIR        "asdir"
    47 #define TITRAQ_DEFASDIR         "~/.as/"
    48 #define TITRAQ_PREFACCOUNTS     "accounts"
    49 #define TITRAQ_DEFACCOUNTS      "~/.as/accounts"
    50 #define TITRAQ_PREFSTYLE        "uistyle"
    51 #define TITRAQ_PREFVIEW         "view"
    52 #define TITRAQ_DEFVIEW          "normal"
    53 #define TITRAQ_PREFREMOTELOG    "logremote"
    54 #define TITRAQ_DEFREMOTELOG     "no"
    55 #define TITRAQ_PREFLOCALLOG     "loglocal"
    56 #define TITRAQ_DEFLOCALLOG      "no"
    57 #define TITRAQ_PREFCORBHOST     "corbahost"
    58 #define TITRAQ_DEFCORBHOST      "localhost:8914"
    59 #define TITRAQ_PREFSOAPHOST     "soaphost"
    60 #define TITRAQ_DEFSOAPHOST      "localhost/cgi-bin/asdbserv"
    61 #define TITRAQ_PREFCORBON       "corbaenable"
    62 #define TITRAQ_DEFCORBON        0
    63 #define TITRAQ_PREFSOAPON       "soapenable"
    64 #define TITRAQ_DEFSOAPON        0
    65 #define TITRAQ_PREFBAKON        "autobackup"
    66 #define TITRAQ_DEFBAKON         1
    67 #define TITRAQ_PREFEXTENDON     "filextension"
    68 #define TITRAQ_DEFEXTENDON      1
    69 #define TITRAQ_PREFDETAILON     "detailisting"
    70 #define TITRAQ_DEFDETAILON      0
    71 #define TITRAQ_PREFSIGNATON     "signatureline"
    72 #define TITRAQ_DEFSIGNATON      0
    73 #define TITRAQ_PREFREPORTYPE    "reportperiod"
    74 #define TITRAQ_DEFREPORTYPE     TITRAQ_REPORTWEEK
    75 #define TITRAQ_PREFREPORTWEEKS  "reportweeks"
    76 #define TITRAQ_DEFREPORTWEEKS   1
    77 #define TITRAQ_PREFREPORTMONTHS "reportmonths"
    78 #define TITRAQ_DEFREPORTMONTHS  1
    79 #define TITRAQ_PREFLIGHTRED     "lightred"
    80 #define TITRAQ_DEFLIGHTRED      248
    81 #define TITRAQ_PREFLIGHTGREEN   "lightgreen"
    82 #define TITRAQ_DEFLIGHTGREEN    248
    83 #define TITRAQ_PREFLIGHTBLUE    "lightblue"
    84 #define TITRAQ_DEFLIGHTBLUE     240
    85 #define TITRAQ_PREFDARKRED      "darkred"
    86 #define TITRAQ_DEFDARKRED       224
    87 #define TITRAQ_PREFDARKGREEN    "darkgreen"
    88 #define TITRAQ_DEFDARKGREEN     224
    89 #define TITRAQ_PREFDARKBLUE     "darkblue"
    90 #define TITRAQ_DEFDARKBLUE      216
    91 #define TITRAQ_PREFLTALTRED     "lightred"
    92 #define TITRAQ_DEFLTALTRED      240
    93 #define TITRAQ_PREFLTALTGREEN   "lightgreen"
    94 #define TITRAQ_DEFLTALTGREEN    240
    95 #define TITRAQ_PREFLTALTBLUE    "lightblue"
    96 #define TITRAQ_DEFLTALTBLUE     212
    97 #define TITRAQ_PREFDKALTRED     "darkred"
    98 #define TITRAQ_DEFDKALTRED      214
    99 #define TITRAQ_PREFDKALTGREEN   "darkgreen"
   100 #define TITRAQ_DEFDKALTGREEN    210
   101 #define TITRAQ_PREFDKALTBLUE    "darkblue"
   102 #define TITRAQ_DEFDKALTBLUE     160
   104 // Column show preferences
   105 #define TITRAQ_PREFSTATCOLON    "statcolshow"
   106 #define TITRAQ_DEFSTATCOLON     true
   107 #define TITRAQ_PREFLCOLON       "linecolshow"
   108 #define TITRAQ_DEFLCOLON        false
   109 #define TITRAQ_PREFUCOLON       "usercolshow"
   110 #define TITRAQ_DEFUCOLON        false
   111 #define TITRAQ_PREFGCOLON       "guidcolshow"
   112 #define TITRAQ_DEFGCOLON        false
   113 #define TITRAQ_PREFCCOLON       "crccolshow"
   114 #define TITRAQ_DEFCCOLON        false
   115 #define TITRAQ_PREFREVCOLON     "revcolshow"
   116 #define TITRAQ_DEFREVCOLON      false
   117 #define TITRAQ_PREFDCOLON       "datecolshow"
   118 #define TITRAQ_DEFDCOLON        true
   119 #define TITRAQ_PREFSTARTCOLON   "startcolshow"
   120 #define TITRAQ_DEFSTARTCOLON    false
   121 #define TITRAQ_PREFFCOLON       "finishcolshow"
   122 #define TITRAQ_DEFFCOLON        false
   123 #define TITRAQ_PREFACOLON       "amountcolshow"
   124 #define TITRAQ_DEFACOLON        true
   125 #define TITRAQ_PREFTCOLON       "taskcolshow"
   126 #define TITRAQ_DEFTCOLON        true
   127 #define TITRAQ_PREFREMCOLON     "remarkcolshow"
   128 #define TITRAQ_DEFREMCOLON      true
   130 // Frame geometry preferences
   131 #define TITRAQ_PREFFRAMELAY     "framelayout"
   132 #define TITRAQ_PREFFRAMEWIDTH   "framewidth"
   133 #define TITRAQ_DEFFRAMEWIDTH    640
   134 #define TITRAQ_PREFFRAMEHEIGHT  "frameheight"
   135 #define TITRAQ_DEFFRAMEHEIGHT   400
   137 // Column width preferences
   138 #define TITRAQ_PREFSTATCOLWIDTH   "statcolwidth"
   139 #define TITRAQ_DEFSTATCOLWIDTH    24
   140 #define TITRAQ_PREFLCOLWIDTH      "linecolwidth"
   141 #define TITRAQ_DEFLCOLWIDTH       32
   142 #define TITRAQ_PREFUCOLWIDTH      "usercolwidth"
   143 #define TITRAQ_DEFUCOLWIDTH       32
   144 #define TITRAQ_PREFGCOLWIDTH      "guidcolwidth"
   145 #define TITRAQ_DEFGCOLWIDTH       254
   146 #define TITRAQ_PREFCCOLWIDTH      "crccolwidth"
   147 #define TITRAQ_DEFCCOLWIDTH       84
   148 #define TITRAQ_PREFREVCOLWIDTH    "revcolwidth"
   149 #define TITRAQ_DEFREVCOLWIDTH     32
   150 #define TITRAQ_PREFDCOLWIDTH      "datecolwidth"
   151 #define TITRAQ_DEFDCOLWIDTH       98
   152 #define TITRAQ_PREFSTARTCOLWIDTH  "startcolwidth"
   153 #define TITRAQ_DEFSTARTCOLWIDTH   60
   154 #define TITRAQ_PREFFCOLWIDTH      "finishcolwidth"
   155 #define TITRAQ_DEFFCOLWIDTH       60
   156 #define TITRAQ_PREFACOLWIDTH      "amountcolwidth"
   157 #define TITRAQ_DEFACOLWIDTH       60
   158 #define TITRAQ_PREFTCOLWIDTH      "taskcolwidth"
   159 #define TITRAQ_DEFTCOLWIDTH       148
   160 #define TITRAQ_PREFREMCOLWIDTH    "remarkcolwidth"
   161 #define TITRAQ_DEFREMCOLWIDTH     120
   163 // Column appearance preferences
   164 #define TITRAQ_PREFFILEBAR      "filetoolbar"
   165 #define TITRAQ_DEFFILEBAR       true
   166 #define TITRAQ_PREFEDITBAR      "edittoolbar"
   167 #define TITRAQ_DEFEDITBAR       true
   168 #define TITRAQ_PREFVIEWBAR      "viewtoolbar"
   169 #define TITRAQ_DEFVIEWBAR       true
   170 #define TITRAQ_PREFPREFBAR      "preftoolbar"
   171 #define TITRAQ_DEFPREFBAR       true
   172 #define TITRAQ_PREFWHATBAR      "whattoolbar"
   173 #define TITRAQ_DEFWHATBAR       true
   175 // Other value preferences
   176 #define TITRAQ_PREFSORTCOL      "sortordering"
   177 #define TITRAQ_DEFSORTCOL       TITRAQ_IDXDATE
   178 #define TITRAQ_PREFSORTDIR      "sortascending"
   179 #define TITRAQ_DEFSORTDIR       true
   181 // Other value constants
   182 #define TITRAQ_DATAVERSIONMAJ   0
   183 #define TITRAQ_DATAVERSIONMIN   6
   185 // Environment string constants
   186 #define TITRAQ_ENVUSERNAME      "USER"
   187 #define TITRAQ_ENVHOMEDIR       "HOME"
   189 // Falsified incoming ORB initilization arguments
   190 #define TITRAQ_ORBINIT          "-ORBGIOPVersion 1.2 -ORBIIOPVersion 1.2 -ORBInitRef"
   191 #define TITRAQ_COSSPART1        "NameService=corbaloc::"
   192 #define TITRAQ_COSSPART2        "/NameService"
   193 #define TITRAQ_SOAPSPACE        "http://soap.europalab.com/asdb"
   194 #define TITRAQ_PREFIXHTTP       "http://"
   196 // Style string constants
   197 #define TITRAQ_STRCDE           "CDE"
   198 #define TITRAQ_STRSGI           "SGI"
   199 #define TITRAQ_STRMOTIF         "Motif"
   200 #define TITRAQ_STRMPLUS         "MotifPlus"
   201 #define TITRAQ_STRPLAT          "Platinum"
   202 #define TITRAQ_STRMSOFT         "Windows"
   204 // Other string constants
   205 #define TITRAQ_SEPARATORTOK     " "
   206 #define TITRAQ_HOMEDIRTOK       "~/"
   207 #define TITRAQ_FEXTENSION       ".as"
   208 #define TITRAQ_REFHELP          "as-gui.html"
   209 #define TITRAQ_DATAPATTERN      "%!AS-EVENTS-"
   210 #define TITRAQ_SAVEFIRST        "The timesheet contains unsaved changes.\nDo you want to save the changes or discard them?"
   211 #define TITRAQ_OVERWRITE        "A file already exists with the chosen name.\nDo you want to overwrite it with new data?"
   212 #define TITRAQ_NOPATTERNFOUND   "This data file appears to be invalid,\nbecause the AS data symbol\n        "
   213 #define TITRAQ_WASNOTFOUNDIN    "\nwas not found inside of it."
   214 #define TITRAQ_BADVERSIONMAJ    "Incompatible data format. Please\neither upgrade this application or\nthe data you are using with it."
   215 #define TITRAQ_BADVERSIONMIN    "Incompatible data format. Please either\nupgrade this application or downgrade\nthe data you are using with it."
   216 #define TITRAQ_INCOMPATDATA     "Error: incompatible data format."
   217 #define TITRAQ_INVALIDDATA      "Error: invalid data format."
   218 #define TITRAQ_SAVECANCELLED    "Warning: save operation failed, because the user cancelled."
   219 #define TITRAQ_READPFILFAIL     "Could not open personal data file for reading."
   220 #define TITRAQ_READAFILFAIL     "Could not open account file at %1 for reading."
   222 // Indexes of table columns
   223 #define TITRAQ_IDXALLCTRLS     -1
   224 #define TITRAQ_IDXSTATUS        0
   225 #define TITRAQ_IDXLINE          1
   226 #define TITRAQ_IDXUSER          2
   227 #define TITRAQ_IDXGUID          3
   228 #define TITRAQ_IDXCRC           4
   229 #define TITRAQ_IDXREV           5
   230 #define TITRAQ_IDXDATE          6
   231 #define TITRAQ_IDXSTART         7
   232 #define TITRAQ_IDXFINISH        8
   233 #define TITRAQ_IDXAMOUNT        9
   234 #define TITRAQ_IDXTASK          10
   235 #define TITRAQ_IDXREMARK        11
   236 #define TITRAQ_IDXTAIL          12
   238 // Indexes of col popup menu items
   239 #define TITRAQ_IDXSTATCOL       1
   240 #define TITRAQ_IDXLCOL          2
   241 #define TITRAQ_IDXUCOL          3
   242 #define TITRAQ_IDXGCOL          4
   243 #define TITRAQ_IDXCCOL          5
   244 #define TITRAQ_IDXREVCOL        6
   245 #define TITRAQ_IDXDCOL          7
   246 #define TITRAQ_IDXSTARTCOL      8
   247 #define TITRAQ_IDXFCOL          9
   248 #define TITRAQ_IDXACOL          10
   249 #define TITRAQ_IDXTCOL          11
   250 #define TITRAQ_IDXREMCOL        12
   252 // Indexes of popup menu submenus
   253 #define TITRAQ_IDXFILEBAR       1
   254 #define TITRAQ_IDXEDITBAR       2
   255 #define TITRAQ_IDXVIEWBAR       3
   256 #define TITRAQ_IDXPREFBAR       4
   257 #define TITRAQ_IDXWHATBAR       5
   259 // Indexes of character tokens in strings
   260 #define TITRAQ_IDXSTATERROR     0
   261 #define TITRAQ_IDXSTATCOLOR     1
   263 // Offsets
   264 #define TITRAQ_OFFSETYEAR       4
   265 #define TITRAQ_OFFSETMONTH      7
   266 #define TITRAQ_OFFSETHOUR       2
   268 // Report periods
   269 #define TITRAQ_REPORTWEEK       0
   270 #define TITRAQ_REPORTMONTH      1
   271 #define TITRAQ_POPUPMSECS       200
   273 // Values
   274 #define TITRAQ_MARGIN           10          // Default layout margin
   275 #define TITRAQ_SPACING          6           // Default layout spacing
   276 #define TITRAQ_NUMBLOCKS        32          // Block size of a timesheet
   277 #define TITRAQ_MAXAMOUNT        960         // Maximum valid amount
   278 #define TITRAQ_MINAMOUNT        0           // Minimum valid amount
   279 #define TITRAQ_STEPAMOUNT       15          // Line step interval
   280 #define TITRAQ_MINSINHOUR       60          // Only idiots don't know this
   281 #define TITRAQ_BRIGHT           'H'         // For coloring rows
   282 #define TITRAQ_DARK             'D'         // For coloring rows
   283 #define TITRAQ_BIGMAGIC         700000      // For unreasonably large numbers
   284 #define TITRAQ_ACCTBOXHEIGHT    24          // Number rows in account combobox
   286 #endif // TITCONST_H

mercurial