head 1.65; access; symbols AS_AFTER_RESTRUCTURING:1.8; locks; strict; comment @ * @; 1.65 date 2004.08.20.17.47.07; author ms; state Exp; branches; next 1.64; 1.64 date 2004.05.27.21.48.40; author ms; state Exp; branches; next 1.63; 1.63 date 2004.05.27.21.42.26; author ms; state Exp; branches; next 1.62; 1.62 date 2003.11.20.11.31.20; author ms; state Exp; branches; next 1.61; 1.61 date 2003.03.05.20.27.34; author ms; state Exp; branches; next 1.60; 1.60 date 2003.02.28.17.13.25; author ms; state Exp; branches; next 1.59; 1.59 date 2003.02.25.09.25.21; author ms; state Exp; branches; next 1.58; 1.58 date 2003.02.21.23.42.09; author ms; state Exp; branches; next 1.57; 1.57 date 2003.02.21.10.11.36; author ms; state Exp; branches; next 1.56; 1.56 date 2003.02.20.16.48.00; author ms; state Exp; branches; next 1.55; 1.55 date 2003.02.14.19.27.03; author ms; state Exp; branches; next 1.54; 1.54 date 2003.02.13.21.56.12; author ms; state Exp; branches; next 1.53; 1.53 date 2003.02.13.21.12.36; author ms; state Exp; branches; next 1.52; 1.52 date 2003.02.13.20.41.37; author ms; state Exp; branches; next 1.51; 1.51 date 2003.02.13.18.22.32; author ms; state Exp; branches; next 1.50; 1.50 date 2003.02.12.19.33.05; author ms; state Exp; branches; next 1.49; 1.49 date 2003.02.11.14.19.57; author ms; state Exp; branches; next 1.48; 1.48 date 2003.02.04.19.30.31; author ms; state Exp; branches; next 1.47; 1.47 date 2003.02.04.13.06.12; author ms; state Exp; branches; next 1.46; 1.46 date 2003.02.04.07.52.18; author rse; state Exp; branches; next 1.45; 1.45 date 2003.02.03.14.12.09; author ms; state Exp; branches; next 1.44; 1.44 date 2003.02.03.10.46.13; author ms; state Exp; branches; next 1.43; 1.43 date 2003.01.30.22.07.41; author ms; state Exp; branches; next 1.42; 1.42 date 2003.01.30.22.02.41; author ms; state Exp; branches; next 1.41; 1.41 date 2003.01.30.20.26.03; author ms; state Exp; branches; next 1.40; 1.40 date 2003.01.30.18.18.30; author ms; state Exp; branches; next 1.39; 1.39 date 2003.01.30.16.51.45; author ms; state Exp; branches; next 1.38; 1.38 date 2003.01.30.14.36.01; author ms; state Exp; branches; next 1.37; 1.37 date 2003.01.28.16.44.39; author ms; state Exp; branches; next 1.36; 1.36 date 2003.01.27.14.43.44; author ms; state Exp; branches; next 1.35; 1.35 date 2003.01.27.12.39.18; author ms; state Exp; branches; next 1.34; 1.34 date 2003.01.24.18.22.03; author ms; state Exp; branches; next 1.33; 1.33 date 2002.12.20.17.42.10; author ms; state Exp; branches; next 1.32; 1.32 date 2002.12.18.14.50.58; author ms; state Exp; branches; next 1.31; 1.31 date 2002.12.17.16.47.30; author ms; state Exp; branches; next 1.30; 1.30 date 2002.12.17.14.08.33; author ms; state Exp; branches; next 1.29; 1.29 date 2002.12.16.17.37.39; author ms; state Exp; branches; next 1.28; 1.28 date 2002.12.16.17.13.17; author ms; state Exp; branches; next 1.27; 1.27 date 2002.12.16.16.05.57; author ms; state Exp; branches; next 1.26; 1.26 date 2002.12.16.14.07.59; author ms; state Exp; branches; next 1.25; 1.25 date 2002.12.16.12.11.40; author ms; state Exp; branches; next 1.24; 1.24 date 2002.12.16.09.58.34; author ms; state Exp; branches; next 1.23; 1.23 date 2002.12.12.21.13.29; author ms; state Exp; branches; next 1.22; 1.22 date 2002.12.12.20.52.13; author ms; state Exp; branches; next 1.21; 1.21 date 2002.12.12.12.45.46; author ms; state Exp; branches; next 1.20; 1.20 date 2002.12.12.12.19.48; author ms; state Exp; branches; next 1.19; 1.19 date 2002.12.11.16.00.47; author ms; state Exp; branches; next 1.18; 1.18 date 2002.12.10.13.08.29; author ms; state Exp; branches; next 1.17; 1.17 date 2002.12.10.12.06.56; author ms; state Exp; branches; next 1.16; 1.16 date 2002.12.05.14.51.29; author ms; state Exp; branches; next 1.15; 1.15 date 2002.12.04.18.56.59; author ms; state Exp; branches; next 1.14; 1.14 date 2002.12.04.16.00.48; author ms; state Exp; branches; next 1.13; 1.13 date 2002.12.04.14.50.08; author ms; state Exp; branches; next 1.12; 1.12 date 2002.12.04.11.41.55; author ms; state Exp; branches; next 1.11; 1.11 date 2002.12.03.18.46.25; author ms; state Exp; branches; next 1.10; 1.10 date 2002.12.03.17.05.11; author ms; state Exp; branches; next 1.9; 1.9 date 2002.12.02.13.25.36; author ms; state Exp; branches; next 1.8; 1.8 date 2002.11.28.20.44.36; author ms; state Exp; branches; next 1.7; 1.7 date 2002.11.27.22.44.48; author ms; state Exp; branches; next 1.6; 1.6 date 2002.11.26.20.25.16; author ms; state Exp; branches; next 1.5; 1.5 date 2002.11.26.19.33.37; author ms; state Exp; branches; next 1.4; 1.4 date 2002.11.26.14.10.32; author ms; state Exp; branches; next 1.3; 1.3 date 2002.11.25.15.45.06; author ms; state Exp; branches; next 1.2; 1.2 date 2002.11.24.20.39.32; author ms; state Exp; branches; next 1.1; 1.1 date 2002.11.24.17.55.55; author ms; state Exp; branches; next ; desc @@ 1.65 log @Unload validation of personal data file from load logic, move new validation block to validateData, change all cases of preexisting validateData to new name validateRow, test for valid data from now on before calling loadData, and place read data file error strings in constants header. @ text @// // OSSP asgui - Accounting system graphical user interface // Copyright (c) 2002-2004 The OSSP Project (http://www.ossp.org/) // Copyright (c) 2002-2004 Ralf S. Engelschall // Copyright (c) 2002-2004 Michael Schloh von Bennewitz // Copyright (c) 2002-2004 Cable & Wireless Telecommunications Services GmbH // // This file is part of OSSP asgui, an accounting system graphical user // interface which can be found at http://www.ossp.org/pkg/tool/asgui/. // // Permission to use, copy, modify, and distribute this software for // any purpose with or without fee is hereby granted, provided that // the above copyright notice and this permission notice appear in all // copies. // // THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. // IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF // USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT // OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF // SUCH DAMAGE. // // as_const.h: ISO C++ interface // #ifndef TITCONST_H #define TITCONST_H // General preferences #define TITRAQ_PREFNAME ".asgui" #define TITRAQ_APPTITLE "AS Accounting System" #define TITRAQ_STR_ID "OSSPASGUI" /* APPID */ #define TITRAQ_UID_ID 0x84fae747e1a64016bf049e98bbc4bd96 /* UUID */ #define TITRAQ_PREFVER "0.6" #define TITRAQ_PREFHOME "homedir" #define TITRAQ_DEFHOME "." #define TITRAQ_PREFUSER "user" #define TITRAQ_DEFUSER "username" #define TITRAQ_PREFASDIR "asdir" #define TITRAQ_DEFASDIR "~/.as/" #define TITRAQ_PREFACCOUNTS "accounts" #define TITRAQ_DEFACCOUNTS "~/.as/accounts" #define TITRAQ_PREFSTYLE "uistyle" #define TITRAQ_PREFVIEW "view" #define TITRAQ_DEFVIEW "normal" #define TITRAQ_PREFREMOTELOG "logremote" #define TITRAQ_DEFREMOTELOG "no" #define TITRAQ_PREFLOCALLOG "loglocal" #define TITRAQ_DEFLOCALLOG "no" #define TITRAQ_PREFCORBHOST "corbahost" #define TITRAQ_DEFCORBHOST "localhost:8914" #define TITRAQ_PREFSOAPHOST "soaphost" #define TITRAQ_DEFSOAPHOST "localhost/cgi-bin/asdbserv" #define TITRAQ_PREFCORBON "corbaenable" #define TITRAQ_DEFCORBON 0 #define TITRAQ_PREFSOAPON "soapenable" #define TITRAQ_DEFSOAPON 0 #define TITRAQ_PREFBAKON "autobackup" #define TITRAQ_DEFBAKON 1 #define TITRAQ_PREFEXTENDON "filextension" #define TITRAQ_DEFEXTENDON 1 #define TITRAQ_PREFDETAILON "detailisting" #define TITRAQ_DEFDETAILON 0 #define TITRAQ_PREFSIGNATON "signatureline" #define TITRAQ_DEFSIGNATON 0 #define TITRAQ_PREFREPORTYPE "reportperiod" #define TITRAQ_DEFREPORTYPE TITRAQ_REPORTWEEK #define TITRAQ_PREFREPORTWEEKS "reportweeks" #define TITRAQ_DEFREPORTWEEKS 1 #define TITRAQ_PREFREPORTMONTHS "reportmonths" #define TITRAQ_DEFREPORTMONTHS 1 #define TITRAQ_PREFLIGHTRED "lightred" #define TITRAQ_DEFLIGHTRED 248 #define TITRAQ_PREFLIGHTGREEN "lightgreen" #define TITRAQ_DEFLIGHTGREEN 248 #define TITRAQ_PREFLIGHTBLUE "lightblue" #define TITRAQ_DEFLIGHTBLUE 240 #define TITRAQ_PREFDARKRED "darkred" #define TITRAQ_DEFDARKRED 224 #define TITRAQ_PREFDARKGREEN "darkgreen" #define TITRAQ_DEFDARKGREEN 224 #define TITRAQ_PREFDARKBLUE "darkblue" #define TITRAQ_DEFDARKBLUE 216 #define TITRAQ_PREFLTALTRED "lightred" #define TITRAQ_DEFLTALTRED 240 #define TITRAQ_PREFLTALTGREEN "lightgreen" #define TITRAQ_DEFLTALTGREEN 240 #define TITRAQ_PREFLTALTBLUE "lightblue" #define TITRAQ_DEFLTALTBLUE 212 #define TITRAQ_PREFDKALTRED "darkred" #define TITRAQ_DEFDKALTRED 214 #define TITRAQ_PREFDKALTGREEN "darkgreen" #define TITRAQ_DEFDKALTGREEN 210 #define TITRAQ_PREFDKALTBLUE "darkblue" #define TITRAQ_DEFDKALTBLUE 160 // Column show preferences #define TITRAQ_PREFSTATCOLON "statcolshow" #define TITRAQ_DEFSTATCOLON true #define TITRAQ_PREFLCOLON "linecolshow" #define TITRAQ_DEFLCOLON false #define TITRAQ_PREFUCOLON "usercolshow" #define TITRAQ_DEFUCOLON false #define TITRAQ_PREFGCOLON "guidcolshow" #define TITRAQ_DEFGCOLON false #define TITRAQ_PREFCCOLON "crccolshow" #define TITRAQ_DEFCCOLON false #define TITRAQ_PREFREVCOLON "revcolshow" #define TITRAQ_DEFREVCOLON false #define TITRAQ_PREFDCOLON "datecolshow" #define TITRAQ_DEFDCOLON true #define TITRAQ_PREFSTARTCOLON "startcolshow" #define TITRAQ_DEFSTARTCOLON false #define TITRAQ_PREFFCOLON "finishcolshow" #define TITRAQ_DEFFCOLON false #define TITRAQ_PREFACOLON "amountcolshow" #define TITRAQ_DEFACOLON true #define TITRAQ_PREFTCOLON "taskcolshow" #define TITRAQ_DEFTCOLON true #define TITRAQ_PREFREMCOLON "remarkcolshow" #define TITRAQ_DEFREMCOLON true // Frame geometry preferences #define TITRAQ_PREFFRAMELAY "framelayout" #define TITRAQ_PREFFRAMEWIDTH "framewidth" #define TITRAQ_DEFFRAMEWIDTH 640 #define TITRAQ_PREFFRAMEHEIGHT "frameheight" #define TITRAQ_DEFFRAMEHEIGHT 400 // Column width preferences #define TITRAQ_PREFSTATCOLWIDTH "statcolwidth" #define TITRAQ_DEFSTATCOLWIDTH 24 #define TITRAQ_PREFLCOLWIDTH "linecolwidth" #define TITRAQ_DEFLCOLWIDTH 32 #define TITRAQ_PREFUCOLWIDTH "usercolwidth" #define TITRAQ_DEFUCOLWIDTH 32 #define TITRAQ_PREFGCOLWIDTH "guidcolwidth" #define TITRAQ_DEFGCOLWIDTH 254 #define TITRAQ_PREFCCOLWIDTH "crccolwidth" #define TITRAQ_DEFCCOLWIDTH 84 #define TITRAQ_PREFREVCOLWIDTH "revcolwidth" #define TITRAQ_DEFREVCOLWIDTH 32 #define TITRAQ_PREFDCOLWIDTH "datecolwidth" #define TITRAQ_DEFDCOLWIDTH 98 #define TITRAQ_PREFSTARTCOLWIDTH "startcolwidth" #define TITRAQ_DEFSTARTCOLWIDTH 60 #define TITRAQ_PREFFCOLWIDTH "finishcolwidth" #define TITRAQ_DEFFCOLWIDTH 60 #define TITRAQ_PREFACOLWIDTH "amountcolwidth" #define TITRAQ_DEFACOLWIDTH 60 #define TITRAQ_PREFTCOLWIDTH "taskcolwidth" #define TITRAQ_DEFTCOLWIDTH 148 #define TITRAQ_PREFREMCOLWIDTH "remarkcolwidth" #define TITRAQ_DEFREMCOLWIDTH 120 // Column appearance preferences #define TITRAQ_PREFFILEBAR "filetoolbar" #define TITRAQ_DEFFILEBAR true #define TITRAQ_PREFEDITBAR "edittoolbar" #define TITRAQ_DEFEDITBAR true #define TITRAQ_PREFVIEWBAR "viewtoolbar" #define TITRAQ_DEFVIEWBAR true #define TITRAQ_PREFPREFBAR "preftoolbar" #define TITRAQ_DEFPREFBAR true #define TITRAQ_PREFWHATBAR "whattoolbar" #define TITRAQ_DEFWHATBAR true // Other value preferences #define TITRAQ_PREFSORTCOL "sortordering" #define TITRAQ_DEFSORTCOL TITRAQ_IDXDATE #define TITRAQ_PREFSORTDIR "sortascending" #define TITRAQ_DEFSORTDIR true // Other value constants #define TITRAQ_DATAVERSIONMAJ 0 #define TITRAQ_DATAVERSIONMIN 6 // Environment string constants #define TITRAQ_ENVUSERNAME "USER" #define TITRAQ_ENVHOMEDIR "HOME" // Falsified incoming ORB initilization arguments #define TITRAQ_ORBINIT "-ORBGIOPVersion 1.2 -ORBIIOPVersion 1.2 -ORBInitRef" #define TITRAQ_COSSPART1 "NameService=corbaloc::" #define TITRAQ_COSSPART2 "/NameService" #define TITRAQ_SOAPSPACE "http://soap.europalab.com/asdb" #define TITRAQ_PREFIXHTTP "http://" // Style string constants #define TITRAQ_STRCDE "CDE" #define TITRAQ_STRSGI "SGI" #define TITRAQ_STRMOTIF "Motif" #define TITRAQ_STRMPLUS "MotifPlus" #define TITRAQ_STRPLAT "Platinum" #define TITRAQ_STRMSOFT "Windows" // Other string constants #define TITRAQ_SEPARATORTOK " " #define TITRAQ_HOMEDIRTOK "~/" #define TITRAQ_FEXTENSION ".as" #define TITRAQ_REFHELP "as-gui.html" #define TITRAQ_DATAPATTERN "%!AS-EVENTS-" #define TITRAQ_SAVEFIRST "The timesheet contains unsaved changes.\nDo you want to save the changes or discard them?" #define TITRAQ_OVERWRITE "A file already exists with the chosen name.\nDo you want to overwrite it with new data?" #define TITRAQ_NOPATTERNFOUND "This data file appears to be invalid,\nbecause the AS data symbol\n " #define TITRAQ_WASNOTFOUNDIN "\nwas not found inside of it." #define TITRAQ_BADVERSIONMAJ "Incompatible data format. Please\neither upgrade this application or\nthe data you are using with it." #define TITRAQ_BADVERSIONMIN "Incompatible data format. Please either\nupgrade this application or downgrade\nthe data you are using with it." #define TITRAQ_INCOMPATDATA "Error: incompatible data format." #define TITRAQ_INVALIDDATA "Error: invalid data format." #define TITRAQ_SAVECANCELLED "Warning: save operation failed, because the user cancelled." #define TITRAQ_READPFILFAIL "Could not open personal data file for reading." #define TITRAQ_READAFILFAIL "Could not open account file at %1 for reading." // Indexes of table columns #define TITRAQ_IDXALLCTRLS -1 #define TITRAQ_IDXSTATUS 0 #define TITRAQ_IDXLINE 1 #define TITRAQ_IDXUSER 2 #define TITRAQ_IDXGUID 3 #define TITRAQ_IDXCRC 4 #define TITRAQ_IDXREV 5 #define TITRAQ_IDXDATE 6 #define TITRAQ_IDXSTART 7 #define TITRAQ_IDXFINISH 8 #define TITRAQ_IDXAMOUNT 9 #define TITRAQ_IDXTASK 10 #define TITRAQ_IDXREMARK 11 #define TITRAQ_IDXTAIL 12 // Indexes of col popup menu items #define TITRAQ_IDXSTATCOL 1 #define TITRAQ_IDXLCOL 2 #define TITRAQ_IDXUCOL 3 #define TITRAQ_IDXGCOL 4 #define TITRAQ_IDXCCOL 5 #define TITRAQ_IDXREVCOL 6 #define TITRAQ_IDXDCOL 7 #define TITRAQ_IDXSTARTCOL 8 #define TITRAQ_IDXFCOL 9 #define TITRAQ_IDXACOL 10 #define TITRAQ_IDXTCOL 11 #define TITRAQ_IDXREMCOL 12 // Indexes of popup menu submenus #define TITRAQ_IDXFILEBAR 1 #define TITRAQ_IDXEDITBAR 2 #define TITRAQ_IDXVIEWBAR 3 #define TITRAQ_IDXPREFBAR 4 #define TITRAQ_IDXWHATBAR 5 // Indexes of character tokens in strings #define TITRAQ_IDXSTATERROR 0 #define TITRAQ_IDXSTATCOLOR 1 // Offsets #define TITRAQ_OFFSETYEAR 4 #define TITRAQ_OFFSETMONTH 7 #define TITRAQ_OFFSETHOUR 2 // Report periods #define TITRAQ_REPORTWEEK 0 #define TITRAQ_REPORTMONTH 1 #define TITRAQ_POPUPMSECS 200 // Values #define TITRAQ_MARGIN 10 // Default layout margin #define TITRAQ_SPACING 6 // Default layout spacing #define TITRAQ_NUMBLOCKS 32 // Block size of a timesheet #define TITRAQ_MAXAMOUNT 960 // Maximum valid amount #define TITRAQ_MINAMOUNT 0 // Minimum valid amount #define TITRAQ_STEPAMOUNT 15 // Line step interval #define TITRAQ_MINSINHOUR 60 // Only idiots don't know this #define TITRAQ_BRIGHT 'H' // For coloring rows #define TITRAQ_DARK 'D' // For coloring rows #define TITRAQ_BIGMAGIC 700000 // For unreasonably large numbers #define TITRAQ_ACCTBOXHEIGHT 24 // Number rows in account combobox #endif // TITCONST_H @ 1.64 log @Modernize copyright text in source and graphic headers. @ text @d219 2 @ 1.63 log @Correct file names in source headers. @ text @d3 4 a6 4 // Copyright (c) 2002-2003 The OSSP Project (http://www.ossp.org/) // Copyright (c) 2002-2003 Ralf S. Engelschall // Copyright (c) 2002-2003 Michael Schloh von Bennewitz // Copyright (c) 2002-2003 Cable & Wireless Telecommunications Services GmbH @ 1.62 log @Handle the time consuming bureaucracy of changing a company name. @ text @d29 1 a29 1 // titconst.h: ISO C++ interface @ 1.61 log @Use the new documentation contents in the help panel class to fill the HTML help browser window. @ text @a3 1 // Copyright (c) 2002-2003 Cable & Wireless Deutschland (http://www.cw.com/de/) d6 1 @ 1.60 log @Improved dynamic calculation of fixed accounts combobox frame size. @ text @d208 1 @ 1.59 log @Add alternate color defaults for windows users and remove 'both' button id. @ text @d281 1 @ 1.58 log @Added detailed listing and signature prefs, with linkage to public accessors. @ text @d91 12 a267 1 #define TITRAQ_REPORTBOTH 2 d280 1 @ 1.57 log @Implemented user-defined row shading colours, acessible in preferences panel and elsewhere. @ text @d69 4 @ 1.56 log @Vast report generation improvements and additions. @ text @d75 12 @ 1.55 log @Added logic to include prefs pixmap in both menu and toolbar, removed optional 'this' parameter from all calls to connect(), ripped out more header includes from monolithic interface header, made call of prefs panel an instance of class QAction, changed .bak file message text in class Prefpanel, and renamed default RPC hosts to show what a proper format is. @ text @d69 6 d236 6 @ 1.54 log @Fix screwey typo. @ text @d58 1 a58 1 #define TITRAQ_DEFCORBHOST "localhost" d60 1 a60 1 #define TITRAQ_DEFSOAPHOST "localhost" d136 2 d219 2 a220 1 #define TITRAQ_IDXWHATBAR 4 @ 1.53 log @Remove default event file insert, and instead default to event directory. @ text @d163 1 a163 1 #define TITRAQ_STRMOTIF "Motfi" @ 1.52 log @Modified class Panel accept operation to apply changes immediately, and added logic to activate file extension switch, using preference value from panel. @ text @d46 2 a47 2 #define TITRAQ_PREFASFILE "asfile" #define TITRAQ_DEFASFILE "~/.as/events" @ 1.51 log @Lots of RPC changes including disable and enablement according to compile time transport availability, multi row spanning with SOAP transmission, and solve security problems by making CORBA and SOAP hosts user configurable. @ text @d47 1 a47 1 #define TITRAQ_DEFASFILE "~/.as/events.as" @ 1.50 log @Completed working logic of preferences class Panel. @ text @d153 7 @ 1.49 log @Hard coded left alignment into task table items, made amount control appearance and behaviour consistent with amount table items, and split remote host name and switches out of prefs panel paths page to its own remote page. @ text @d41 1 a41 1 #define TITRAQ_PREFVER "0.5" d57 12 d152 8 @ 1.48 log @Implemented auto field completion for start and finish and auto subtraction for amount, added period for GUID replacement, and added version text to widget labels. @ text @d105 1 a105 1 #define TITRAQ_DEFDCOLWIDTH 96 d107 1 a107 1 #define TITRAQ_DEFSTARTCOLWIDTH 80 d109 1 a109 1 #define TITRAQ_DEFFCOLWIDTH 80 d111 1 a111 1 #define TITRAQ_DEFACOLWIDTH 72 @ 1.47 log @Release version 0.6.10 as an interim revision. @ text @d99 1 a99 1 #define TITRAQ_DEFGCOLWIDTH 36 d101 1 a101 1 #define TITRAQ_DEFCCOLWIDTH 32 @ 1.46 log @we are at version 0.6 to be consistent with as-cui @ text @d41 1 a41 1 #define TITRAQ_PREFVER "0.6" d135 1 a135 1 #define TITRAQ_DATAVERSIONMIN 5 @ 1.45 log @Back out logic to recognize '-', '+', and '=' as separator symbols. @ text @d41 1 a41 1 #define TITRAQ_PREFVER "0.5" @ 1.44 log @Fix tool labels, after finding another left over inconsistency. @ text @d105 1 a105 1 #define TITRAQ_DEFDCOLWIDTH 94 @ 1.43 log @The environment variables for username and homedir don't seem to be standardized, but use $USER and $HOME anyways. @ text @d38 1 a38 1 #define TITRAQ_APPTITLE "AS Gui" @ 1.42 log @Fixed dirty data double check on implicit save ops, fixed close event method, and plugged holes where no exception handling existed for an except condition. @ text @d138 2 a139 2 #define TITRAQ_ENVUSERNAME "LOGNAME" #define TITRAQ_ENVHOMEDIR "HOMEDIR" @ 1.41 log @Implemented writing and testing of a data version symbol. @ text @d154 1 @ 1.40 log @Write a special version symbol when serializing data to files. @ text @d148 6 @ 1.39 log @Use a new aggregate class User to prefer user data from environment to that of underlying system. @ text @a57 4 // Environment strings #define TITRAQ_ENVUSERNAME "LOGNAME" #define TITRAQ_ENVHOMEDIR "HOMEDIR" d133 8 d145 1 @ 1.38 log @Day date section focus is the default value, and happily removed a hackful zero date placeholder. @ text @d58 4 @ 1.37 log @Fix grammar. @ text @a133 1 #define TITRAQ_DATEZERO "0000-00-00" @ 1.36 log @Fixed a subtle bug in a split else block, and added code to append file extension to new saves. @ text @d138 2 a139 2 #define TITRAQ_SAVEFIRST "The timesheet contains unsaved changes\nDo you want to save the changes or discard them?" #define TITRAQ_OVERWRITE "A file already exists with the chosen name\nDo you want to overwrite it with new data?" @ 1.35 log @Change all date and time data entries from ISO format to AS specific. @ text @d137 1 @ 1.34 log @Made file and directory handling more generic. @ text @d180 5 @ 1.33 log @Fixed sorting and added sort direction handling. @ text @d47 1 a47 1 #define TITRAQ_DEFASFILE "/e/dev/as" d49 1 a49 1 #define TITRAQ_DEFACCOUNTS "/e/dev/as/accounts.txt" d111 1 a111 1 #define TITRAQ_DEFACOLWIDTH 98 d113 1 a113 1 #define TITRAQ_DEFTCOLWIDTH 96 d136 1 @ 1.32 log @Fixed row shade logic and moved dirty flag to TiTable class. @ text @d128 4 a131 2 #define TITRAQ_PREFSORT "sortorder" #define TITRAQ_DEFSORT TITRAQ_IDXDATE @ 1.31 log @Implement rudimentary row shading on sort key, and add GUID and APPID. @ text @d173 4 d185 2 @ 1.30 log @Fix some hard to find bad saving problems, add file extension filter, and make file op exception strings more descriptive. @ text @d39 2 @ 1.29 log @Implement Darueberknallen protection. @ text @d87 1 a87 1 #define TITRAQ_DEFFRAMEHEIGHT 480 @ 1.28 log @Preserve user preferred sort order and don't set dirty flag on renumber ops. @ text @d133 1 @ 1.27 log @Implemented joined column sorting. Implemented refreshDisplay, and add action to appropriate edit and view menus. @ text @d115 1 d124 4 @ 1.26 log @Now read preferences from a configuration file in the current user's home directory by default. @ text @d119 2 d162 2 a163 1 #define TITRAQ_IDXWHATBAR 3 @ 1.25 log @Removed hardcoded tasks, implemented dynamic account loading, renamed conf file, corrected comment and empty line handling in load ops. @ text @d40 2 d47 1 a47 1 #define TITRAQ_DEFACCOUNTS "dis.txt" @ 1.24 log @Fine tune before adding conf file location search, and fix a whitespace bug. @ text @d37 1 a37 1 #define TITRAQ_PREFNAME "as_gui.conf" d44 2 @ 1.23 log @Implement persistent frame layout and dock positions. @ text @d56 1 a56 1 #define TITRAQ_DEFLCOLON true @ 1.22 log @Many layout and preference changes to support more flexibility. @ text @d79 1 @ 1.21 log @Implement persistent toolbar preferences. @ text @d52 57 a108 25 // Column view preferences #define TITRAQ_PREFSTATCOL "statcol" #define TITRAQ_DEFSTATCOL true #define TITRAQ_PREFLCOL "linecol" #define TITRAQ_DEFLCOL true #define TITRAQ_PREFUCOL "usercol" #define TITRAQ_DEFUCOL false #define TITRAQ_PREFGCOL "guidcol" #define TITRAQ_DEFGCOL false #define TITRAQ_PREFCCOL "crccol" #define TITRAQ_DEFCCOL false #define TITRAQ_PREFREVCOL "revcol" #define TITRAQ_DEFREVCOL false #define TITRAQ_PREFDCOL "datecol" #define TITRAQ_DEFDCOL true #define TITRAQ_PREFSTARTCOL "startcol" #define TITRAQ_DEFSTARTCOL false #define TITRAQ_PREFFCOL "finishcol" #define TITRAQ_DEFFCOL false #define TITRAQ_PREFACOL "amountcol" #define TITRAQ_DEFACOL true #define TITRAQ_PREFTCOL "taskcol" #define TITRAQ_DEFTCOL true #define TITRAQ_PREFREMCOL "remarkcol" #define TITRAQ_DEFREMCOL true a157 2 #define TITRAQ_MAINWINWIDTH 640 // Default main window width #define TITRAQ_MAINWINHEIGHT 480 // Default main window height @ 1.20 log @Load column view preferences on init, and save them on exit. @ text @d78 7 @ 1.19 log @Add line number and status columns. Make all columns ausblendbar. Activate column menu selectors. @ text @d36 1 a36 1 // Preferences string constants d51 26 a76 1 #define TITRAQ_SAVEFIRST "The timesheet contains unsaved changes\nDo you want to save the changes or discard them?" d81 1 @ 1.18 log @Integrate formal data fields GUID, CRC, and rev to load and save ops. @ text @d59 27 a85 11 #define TITRAQ_IDXUSER 0 #define TITRAQ_IDXGUID 1 #define TITRAQ_IDXCRC 2 #define TITRAQ_IDXREV 3 #define TITRAQ_IDXDATE 4 #define TITRAQ_IDXSTART 5 #define TITRAQ_IDXFINISH 6 #define TITRAQ_IDXAMOUNT 7 #define TITRAQ_IDXTASK 8 #define TITRAQ_IDXREMARK 9 #define TITRAQ_IDXTAIL 10 @ 1.17 log @In order to prepare for missing data format implementations, replace last globals with constants, remove unused constants, and remove incomplete task truncating until a better solution is found. @ text @d59 11 a69 7 #define TITRAQ_IDXDATE 0 #define TITRAQ_IDXSTART 1 #define TITRAQ_IDXFINISH 2 #define TITRAQ_IDXAMOUNT 3 #define TITRAQ_IDXTASK 4 #define TITRAQ_IDXREMARK 5 #define TITRAQ_IDXTAIL 6 @ 1.16 log @Flush dirty state saving changes without considering broken build. @ text @d65 1 a65 1 #define TITRAQ_IDXEND 6 d77 1 a81 3 #define TITRAQ_YES 1 // To signal yes in general #define TITRAQ_NO 0 // To signal no in general #define TITRAQ_CANCEL -1 // To not signal anything @ 1.15 log @Implemented row by row editing, introduced working cut copy and paste methods. @ text @d51 1 d81 3 @ 1.14 log @Correct nonstandard zero date format. @ text @d54 1 @ 1.13 log @Fix row add logic, and automatically fill in date and time values. @ text @d53 1 a53 1 #define TITRAQ_DATEZERO "00.00.00" @ 1.12 log @Correct startup window and widget size defaults. @ text @d52 3 @ 1.11 log @Add windows and unix logic to retreive current user name, and apply it in preferences, loading, and saving data. @ text @d68 2 @ 1.10 log @Added TiTable object to MOC Mapping, added normal view menu again, added ugly edition state member flag, fixed double click table header resize bug, added auto advance in place edit feature. @ text @d40 2 @ 1.9 log @Logic changes to correct the buildconf after CVS restructure. @ text @d58 1 @ 1.8 log @Massive build configuration preparation, added boilerplate header text, and cleaned up whitespace. @ text @d37 2 a38 2 #define TITRAQ_PREFNAME "titraq.conf" #define TITRAQ_APPTITLE "Titraq" @ 1.7 log @Added eventhandler to catch illegal double clicks, minimized layout of edition controls, changes to slot arrangement. @ text @d1 35 d71 2 @ 1.6 log @Toolbar showing and hiding on demand. @ text @d16 1 d30 2 @ 1.5 log @Improved date and time processing and validation, including missing or defaults values. @ text @d16 11 a26 6 #define TITRAQ_INDEXDATE 0 #define TITRAQ_INDEXSTART 1 #define TITRAQ_INDEXFINISH 2 #define TITRAQ_INDEXAMOUNT 3 #define TITRAQ_INDEXTASK 4 #define TITRAQ_INDEXREMARK 5 @ 1.4 log @Add edit toolbar to eventually replace bottom button matrix, and correct edit control update logic to avoid needlessly updating controls from empty fields. @ text @d27 1 @ 1.3 log @Add AmountBox class to introduce missing functionality from QSpinBox, and implement most edit control updates. @ text @d25 1 a25 1 #define TITRAQ_MINAMOUNT -1 // Minimum valid amount @ 1.2 log @Improve new preference object handling. @ text @d14 13 @ 1.1 log @Abstract constant definitions out of code. @ text @d1 1 a7 1 #define TITRAQ_DEFSTYLE "CDE" @