1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/as_const.h Fri Nov 28 11:21:08 2008 +0100 1.3 @@ -0,0 +1,286 @@ 1.4 +// 1.5 +// OSSP asgui - Accounting system graphical user interface 1.6 +// Copyright (c) 2002-2004 The OSSP Project (http://www.ossp.org/) 1.7 +// Copyright (c) 2002-2004 Ralf S. Engelschall <rse@engelschall.com> 1.8 +// Copyright (c) 2002-2004 Michael Schloh von Bennewitz <michael@schloh.com> 1.9 +// Copyright (c) 2002-2004 Cable & Wireless Telecommunications Services GmbH 1.10 +// 1.11 +// This file is part of OSSP asgui, an accounting system graphical user 1.12 +// interface which can be found at http://www.ossp.org/pkg/tool/asgui/. 1.13 +// 1.14 +// Permission to use, copy, modify, and distribute this software for 1.15 +// any purpose with or without fee is hereby granted, provided that 1.16 +// the above copyright notice and this permission notice appear in all 1.17 +// copies. 1.18 +// 1.19 +// THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 1.20 +// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 1.21 +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1.22 +// IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 1.23 +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1.24 +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1.25 +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 1.26 +// USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 1.27 +// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 1.28 +// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 1.29 +// OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1.30 +// SUCH DAMAGE. 1.31 +// 1.32 +// as_const.h: ISO C++ interface 1.33 +// 1.34 + 1.35 +#ifndef TITCONST_H 1.36 +#define TITCONST_H 1.37 + 1.38 + 1.39 +// General preferences 1.40 +#define TITRAQ_PREFNAME ".asgui" 1.41 +#define TITRAQ_APPTITLE "AS Accounting System" 1.42 +#define TITRAQ_STR_ID "OSSPASGUI" /* APPID */ 1.43 +#define TITRAQ_UID_ID 0x84fae747e1a64016bf049e98bbc4bd96 /* UUID */ 1.44 +#define TITRAQ_PREFVER "0.6" 1.45 +#define TITRAQ_PREFHOME "homedir" 1.46 +#define TITRAQ_DEFHOME "." 1.47 +#define TITRAQ_PREFUSER "user" 1.48 +#define TITRAQ_DEFUSER "username" 1.49 +#define TITRAQ_PREFASDIR "asdir" 1.50 +#define TITRAQ_DEFASDIR "~/.as/" 1.51 +#define TITRAQ_PREFACCOUNTS "accounts" 1.52 +#define TITRAQ_DEFACCOUNTS "~/.as/accounts" 1.53 +#define TITRAQ_PREFSTYLE "uistyle" 1.54 +#define TITRAQ_PREFVIEW "view" 1.55 +#define TITRAQ_DEFVIEW "normal" 1.56 +#define TITRAQ_PREFREMOTELOG "logremote" 1.57 +#define TITRAQ_DEFREMOTELOG "no" 1.58 +#define TITRAQ_PREFLOCALLOG "loglocal" 1.59 +#define TITRAQ_DEFLOCALLOG "no" 1.60 +#define TITRAQ_PREFCORBHOST "corbahost" 1.61 +#define TITRAQ_DEFCORBHOST "localhost:8914" 1.62 +#define TITRAQ_PREFSOAPHOST "soaphost" 1.63 +#define TITRAQ_DEFSOAPHOST "localhost/cgi-bin/asdbserv" 1.64 +#define TITRAQ_PREFCORBON "corbaenable" 1.65 +#define TITRAQ_DEFCORBON 0 1.66 +#define TITRAQ_PREFSOAPON "soapenable" 1.67 +#define TITRAQ_DEFSOAPON 0 1.68 +#define TITRAQ_PREFBAKON "autobackup" 1.69 +#define TITRAQ_DEFBAKON 1 1.70 +#define TITRAQ_PREFEXTENDON "filextension" 1.71 +#define TITRAQ_DEFEXTENDON 1 1.72 +#define TITRAQ_PREFDETAILON "detailisting" 1.73 +#define TITRAQ_DEFDETAILON 0 1.74 +#define TITRAQ_PREFSIGNATON "signatureline" 1.75 +#define TITRAQ_DEFSIGNATON 0 1.76 +#define TITRAQ_PREFREPORTYPE "reportperiod" 1.77 +#define TITRAQ_DEFREPORTYPE TITRAQ_REPORTWEEK 1.78 +#define TITRAQ_PREFREPORTWEEKS "reportweeks" 1.79 +#define TITRAQ_DEFREPORTWEEKS 1 1.80 +#define TITRAQ_PREFREPORTMONTHS "reportmonths" 1.81 +#define TITRAQ_DEFREPORTMONTHS 1 1.82 +#define TITRAQ_PREFLIGHTRED "lightred" 1.83 +#define TITRAQ_DEFLIGHTRED 248 1.84 +#define TITRAQ_PREFLIGHTGREEN "lightgreen" 1.85 +#define TITRAQ_DEFLIGHTGREEN 248 1.86 +#define TITRAQ_PREFLIGHTBLUE "lightblue" 1.87 +#define TITRAQ_DEFLIGHTBLUE 240 1.88 +#define TITRAQ_PREFDARKRED "darkred" 1.89 +#define TITRAQ_DEFDARKRED 224 1.90 +#define TITRAQ_PREFDARKGREEN "darkgreen" 1.91 +#define TITRAQ_DEFDARKGREEN 224 1.92 +#define TITRAQ_PREFDARKBLUE "darkblue" 1.93 +#define TITRAQ_DEFDARKBLUE 216 1.94 +#define TITRAQ_PREFLTALTRED "lightred" 1.95 +#define TITRAQ_DEFLTALTRED 240 1.96 +#define TITRAQ_PREFLTALTGREEN "lightgreen" 1.97 +#define TITRAQ_DEFLTALTGREEN 240 1.98 +#define TITRAQ_PREFLTALTBLUE "lightblue" 1.99 +#define TITRAQ_DEFLTALTBLUE 212 1.100 +#define TITRAQ_PREFDKALTRED "darkred" 1.101 +#define TITRAQ_DEFDKALTRED 214 1.102 +#define TITRAQ_PREFDKALTGREEN "darkgreen" 1.103 +#define TITRAQ_DEFDKALTGREEN 210 1.104 +#define TITRAQ_PREFDKALTBLUE "darkblue" 1.105 +#define TITRAQ_DEFDKALTBLUE 160 1.106 + 1.107 +// Column show preferences 1.108 +#define TITRAQ_PREFSTATCOLON "statcolshow" 1.109 +#define TITRAQ_DEFSTATCOLON true 1.110 +#define TITRAQ_PREFLCOLON "linecolshow" 1.111 +#define TITRAQ_DEFLCOLON false 1.112 +#define TITRAQ_PREFUCOLON "usercolshow" 1.113 +#define TITRAQ_DEFUCOLON false 1.114 +#define TITRAQ_PREFGCOLON "guidcolshow" 1.115 +#define TITRAQ_DEFGCOLON false 1.116 +#define TITRAQ_PREFCCOLON "crccolshow" 1.117 +#define TITRAQ_DEFCCOLON false 1.118 +#define TITRAQ_PREFREVCOLON "revcolshow" 1.119 +#define TITRAQ_DEFREVCOLON false 1.120 +#define TITRAQ_PREFDCOLON "datecolshow" 1.121 +#define TITRAQ_DEFDCOLON true 1.122 +#define TITRAQ_PREFSTARTCOLON "startcolshow" 1.123 +#define TITRAQ_DEFSTARTCOLON false 1.124 +#define TITRAQ_PREFFCOLON "finishcolshow" 1.125 +#define TITRAQ_DEFFCOLON false 1.126 +#define TITRAQ_PREFACOLON "amountcolshow" 1.127 +#define TITRAQ_DEFACOLON true 1.128 +#define TITRAQ_PREFTCOLON "taskcolshow" 1.129 +#define TITRAQ_DEFTCOLON true 1.130 +#define TITRAQ_PREFREMCOLON "remarkcolshow" 1.131 +#define TITRAQ_DEFREMCOLON true 1.132 + 1.133 +// Frame geometry preferences 1.134 +#define TITRAQ_PREFFRAMELAY "framelayout" 1.135 +#define TITRAQ_PREFFRAMEWIDTH "framewidth" 1.136 +#define TITRAQ_DEFFRAMEWIDTH 640 1.137 +#define TITRAQ_PREFFRAMEHEIGHT "frameheight" 1.138 +#define TITRAQ_DEFFRAMEHEIGHT 400 1.139 + 1.140 +// Column width preferences 1.141 +#define TITRAQ_PREFSTATCOLWIDTH "statcolwidth" 1.142 +#define TITRAQ_DEFSTATCOLWIDTH 24 1.143 +#define TITRAQ_PREFLCOLWIDTH "linecolwidth" 1.144 +#define TITRAQ_DEFLCOLWIDTH 32 1.145 +#define TITRAQ_PREFUCOLWIDTH "usercolwidth" 1.146 +#define TITRAQ_DEFUCOLWIDTH 32 1.147 +#define TITRAQ_PREFGCOLWIDTH "guidcolwidth" 1.148 +#define TITRAQ_DEFGCOLWIDTH 254 1.149 +#define TITRAQ_PREFCCOLWIDTH "crccolwidth" 1.150 +#define TITRAQ_DEFCCOLWIDTH 84 1.151 +#define TITRAQ_PREFREVCOLWIDTH "revcolwidth" 1.152 +#define TITRAQ_DEFREVCOLWIDTH 32 1.153 +#define TITRAQ_PREFDCOLWIDTH "datecolwidth" 1.154 +#define TITRAQ_DEFDCOLWIDTH 98 1.155 +#define TITRAQ_PREFSTARTCOLWIDTH "startcolwidth" 1.156 +#define TITRAQ_DEFSTARTCOLWIDTH 60 1.157 +#define TITRAQ_PREFFCOLWIDTH "finishcolwidth" 1.158 +#define TITRAQ_DEFFCOLWIDTH 60 1.159 +#define TITRAQ_PREFACOLWIDTH "amountcolwidth" 1.160 +#define TITRAQ_DEFACOLWIDTH 60 1.161 +#define TITRAQ_PREFTCOLWIDTH "taskcolwidth" 1.162 +#define TITRAQ_DEFTCOLWIDTH 148 1.163 +#define TITRAQ_PREFREMCOLWIDTH "remarkcolwidth" 1.164 +#define TITRAQ_DEFREMCOLWIDTH 120 1.165 + 1.166 +// Column appearance preferences 1.167 +#define TITRAQ_PREFFILEBAR "filetoolbar" 1.168 +#define TITRAQ_DEFFILEBAR true 1.169 +#define TITRAQ_PREFEDITBAR "edittoolbar" 1.170 +#define TITRAQ_DEFEDITBAR true 1.171 +#define TITRAQ_PREFVIEWBAR "viewtoolbar" 1.172 +#define TITRAQ_DEFVIEWBAR true 1.173 +#define TITRAQ_PREFPREFBAR "preftoolbar" 1.174 +#define TITRAQ_DEFPREFBAR true 1.175 +#define TITRAQ_PREFWHATBAR "whattoolbar" 1.176 +#define TITRAQ_DEFWHATBAR true 1.177 + 1.178 +// Other value preferences 1.179 +#define TITRAQ_PREFSORTCOL "sortordering" 1.180 +#define TITRAQ_DEFSORTCOL TITRAQ_IDXDATE 1.181 +#define TITRAQ_PREFSORTDIR "sortascending" 1.182 +#define TITRAQ_DEFSORTDIR true 1.183 + 1.184 +// Other value constants 1.185 +#define TITRAQ_DATAVERSIONMAJ 0 1.186 +#define TITRAQ_DATAVERSIONMIN 6 1.187 + 1.188 +// Environment string constants 1.189 +#define TITRAQ_ENVUSERNAME "USER" 1.190 +#define TITRAQ_ENVHOMEDIR "HOME" 1.191 + 1.192 +// Falsified incoming ORB initilization arguments 1.193 +#define TITRAQ_ORBINIT "-ORBGIOPVersion 1.2 -ORBIIOPVersion 1.2 -ORBInitRef" 1.194 +#define TITRAQ_COSSPART1 "NameService=corbaloc::" 1.195 +#define TITRAQ_COSSPART2 "/NameService" 1.196 +#define TITRAQ_SOAPSPACE "http://soap.europalab.com/asdb" 1.197 +#define TITRAQ_PREFIXHTTP "http://" 1.198 + 1.199 +// Style string constants 1.200 +#define TITRAQ_STRCDE "CDE" 1.201 +#define TITRAQ_STRSGI "SGI" 1.202 +#define TITRAQ_STRMOTIF "Motif" 1.203 +#define TITRAQ_STRMPLUS "MotifPlus" 1.204 +#define TITRAQ_STRPLAT "Platinum" 1.205 +#define TITRAQ_STRMSOFT "Windows" 1.206 + 1.207 +// Other string constants 1.208 +#define TITRAQ_SEPARATORTOK " " 1.209 +#define TITRAQ_HOMEDIRTOK "~/" 1.210 +#define TITRAQ_FEXTENSION ".as" 1.211 +#define TITRAQ_REFHELP "as-gui.html" 1.212 +#define TITRAQ_DATAPATTERN "%!AS-EVENTS-" 1.213 +#define TITRAQ_SAVEFIRST "The timesheet contains unsaved changes.\nDo you want to save the changes or discard them?" 1.214 +#define TITRAQ_OVERWRITE "A file already exists with the chosen name.\nDo you want to overwrite it with new data?" 1.215 +#define TITRAQ_NOPATTERNFOUND "This data file appears to be invalid,\nbecause the AS data symbol\n " 1.216 +#define TITRAQ_WASNOTFOUNDIN "\nwas not found inside of it." 1.217 +#define TITRAQ_BADVERSIONMAJ "Incompatible data format. Please\neither upgrade this application or\nthe data you are using with it." 1.218 +#define TITRAQ_BADVERSIONMIN "Incompatible data format. Please either\nupgrade this application or downgrade\nthe data you are using with it." 1.219 +#define TITRAQ_INCOMPATDATA "Error: incompatible data format." 1.220 +#define TITRAQ_INVALIDDATA "Error: invalid data format." 1.221 +#define TITRAQ_SAVECANCELLED "Warning: save operation failed, because the user cancelled." 1.222 +#define TITRAQ_READPFILFAIL "Could not open personal data file for reading." 1.223 +#define TITRAQ_READAFILFAIL "Could not open account file at %1 for reading." 1.224 + 1.225 +// Indexes of table columns 1.226 +#define TITRAQ_IDXALLCTRLS -1 1.227 +#define TITRAQ_IDXSTATUS 0 1.228 +#define TITRAQ_IDXLINE 1 1.229 +#define TITRAQ_IDXUSER 2 1.230 +#define TITRAQ_IDXGUID 3 1.231 +#define TITRAQ_IDXCRC 4 1.232 +#define TITRAQ_IDXREV 5 1.233 +#define TITRAQ_IDXDATE 6 1.234 +#define TITRAQ_IDXSTART 7 1.235 +#define TITRAQ_IDXFINISH 8 1.236 +#define TITRAQ_IDXAMOUNT 9 1.237 +#define TITRAQ_IDXTASK 10 1.238 +#define TITRAQ_IDXREMARK 11 1.239 +#define TITRAQ_IDXTAIL 12 1.240 + 1.241 +// Indexes of col popup menu items 1.242 +#define TITRAQ_IDXSTATCOL 1 1.243 +#define TITRAQ_IDXLCOL 2 1.244 +#define TITRAQ_IDXUCOL 3 1.245 +#define TITRAQ_IDXGCOL 4 1.246 +#define TITRAQ_IDXCCOL 5 1.247 +#define TITRAQ_IDXREVCOL 6 1.248 +#define TITRAQ_IDXDCOL 7 1.249 +#define TITRAQ_IDXSTARTCOL 8 1.250 +#define TITRAQ_IDXFCOL 9 1.251 +#define TITRAQ_IDXACOL 10 1.252 +#define TITRAQ_IDXTCOL 11 1.253 +#define TITRAQ_IDXREMCOL 12 1.254 + 1.255 +// Indexes of popup menu submenus 1.256 +#define TITRAQ_IDXFILEBAR 1 1.257 +#define TITRAQ_IDXEDITBAR 2 1.258 +#define TITRAQ_IDXVIEWBAR 3 1.259 +#define TITRAQ_IDXPREFBAR 4 1.260 +#define TITRAQ_IDXWHATBAR 5 1.261 + 1.262 +// Indexes of character tokens in strings 1.263 +#define TITRAQ_IDXSTATERROR 0 1.264 +#define TITRAQ_IDXSTATCOLOR 1 1.265 + 1.266 +// Offsets 1.267 +#define TITRAQ_OFFSETYEAR 4 1.268 +#define TITRAQ_OFFSETMONTH 7 1.269 +#define TITRAQ_OFFSETHOUR 2 1.270 + 1.271 +// Report periods 1.272 +#define TITRAQ_REPORTWEEK 0 1.273 +#define TITRAQ_REPORTMONTH 1 1.274 +#define TITRAQ_POPUPMSECS 200 1.275 + 1.276 +// Values 1.277 +#define TITRAQ_MARGIN 10 // Default layout margin 1.278 +#define TITRAQ_SPACING 6 // Default layout spacing 1.279 +#define TITRAQ_NUMBLOCKS 32 // Block size of a timesheet 1.280 +#define TITRAQ_MAXAMOUNT 960 // Maximum valid amount 1.281 +#define TITRAQ_MINAMOUNT 0 // Minimum valid amount 1.282 +#define TITRAQ_STEPAMOUNT 15 // Line step interval 1.283 +#define TITRAQ_MINSINHOUR 60 // Only idiots don't know this 1.284 +#define TITRAQ_BRIGHT 'H' // For coloring rows 1.285 +#define TITRAQ_DARK 'D' // For coloring rows 1.286 +#define TITRAQ_BIGMAGIC 700000 // For unreasonably large numbers 1.287 +#define TITRAQ_ACCTBOXHEIGHT 24 // Number rows in account combobox 1.288 + 1.289 +#endif // TITCONST_H