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.

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

mercurial