home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 May
/
VPR9705A.ISO
/
VPR_DATA
/
PROGRAM
/
CBTRIAL
/
SETUP
/
DATA.Z
/
BTSCONST.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1997-02-14
|
13KB
|
348 lines
//---------------------------------------------------------------------------
// Borland C++Builder
// Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
//---------------------------------------------------------------------------
// Btsconst.pas
//
// VCL Class Browser
//---------------------------------------------------------------------------
unit BtsConst;
interface
const
{ Version }
BtsVersion = '3.0';
{ File Names }
fnConfig = 'BTS.INI';
fnBtsBmp = 'BTS.BMP';
fnStatLook = 'STATLOOK.INI';
fnUserList = 'USERLIST.INI';
fnBtsDown = 'BTSDOWN.TXT';
fnBugData = 'BUGDATA.DB';
fnAdminLib = 'BTSADMIN.DLL';
{ Table & Lookup Section Names }
tnBugData = 'BUGDATA';
tnAudit = 'AUDIT';
tnStatus = 'STATUS';
tnCategory = 'CATEGORY';
tnPriority = 'PRIORITY';
tnUser = 'USER';
tnProduct = 'PRODUCT';
tnOutline = 'OUTLINE';
tnPrgrmrs = 'PRGRMRS';
tnGroup = 'GROUP';
tnFieldMap = 'FIELDMAP';
tnEspBugs = 'ESPBUGS';
tnDeleted = 'DLTDBUGS';
tnHowFound = 'HOWFOUND';
tnResolve = 'RESOLVE';
tnVerify = 'VERIFY';
tnCouncil = 'COUNCIL';
tnBugList = 'BUGLIST';
tnDBList = 'DBLIST';
tnBugDatBase = 'BUGDAT%2.2d';
tnAuditBase = 'AUDIT%2.2d';
tnDescKeys = 'DESCKEYS.DB';
pnTables = 'TABLES\';
{ Config & Lookup Sections }
csConfig = 'Config';
csBldSect = 'Build Number';
csVerSect = 'Version';
csFoundBy = 'Found By';
csSubBy = 'Submitted By';
csProgrammer = 'Programmer';
csResStatMap = 'Res_Status_Map';
csVerStatMap = 'Ver_Status_Map';
csDefaults = 'Defaults';
csCurrUsers = 'Current Users';
csUserHist = 'User History';
csDBNames = 'Databases';
csPrinting = 'Printing';
csStatLookMap = 'StatLookMappings';
{ Config Keys }
ckVerLabel = 'VersionLabel';
ckFontName = 'FontName';
ckFontSize = 'FontSize';
ckFontStyle = 'FontStyle';
ckFormTop = 'FormTop';
ckFormLeft = 'FormLeft';
ckConfirm = 'Confirmation';
ckAutoSave = 'AutoSave';
ckNoQueryType = 'NoQueryTypeAssist';
ckSuperAdmin = 'SuperAdmin';
ckBugHunt = 'Bughunt';
ckAuxTab = 'AuxTab';
ckAuxTabDesc = 'AuxTabDesc';
ckCount = 'Count';
ckPrivDir = 'PrivDir';
ckBtsDir = 'BtsDir';
ckBtsName = 'BtsName';
ckUserName = 'UserName';
ckNetControlDir = 'NetControlDir';
ckNewBugNumber = 'NewBugNumber';
ckDefaultRights = 'DefaultRights';
ckAttachDir = 'AttachDir';
ckAdmin = 'Admin';
ckIndOpen = 'indOpen';
ckIndInEntry = 'indInEntry';
ckIndNeedsRev = 'indReview';
ckIndFromEsp = 'indFromEsp';
ckIndRejected = 'indRejected';
ckIndResolved = 'indResolved';
ckIndFixed = 'indFixed';
ckTablePW = 'FormPos';
ckLocalTestDir = 'LocalTestDir';
ckRequireLeaf = 'RequireLeafNode';
ckDisplayOtl = 'DisplayOutline';
ckAssignTester = 'AssignTester';
ckDefQA = 'DefaultQA';
ckDefRD = 'DefaultR&D';
ckFieldSize = 'Fieldsize';
ckUsePlusBuild = 'UsePlusBuild';
{ Dialog Strings (mostly) }
SInitIdapi = 'Initializing BDE';
SOpenTables = 'Opening Tables';
SLoadingForm = 'Loading forms';
SDeletingBug = 'Deleting Bug';
SAllBugs = 'All Bugs';
SNoFileName = 'No Filename specified';
SNewBugInit = 'Initializing new bug';
SNetName = 'NetName';
SResIn = 'Resolved in ';
SResolution = 'Resolution';
SBugSave = 'Saving bug';
SUpdating = 'Updating...';
SLocked = 'Locked';
SSelectPri = 'Select Priority';
SSelectCat = 'Select Category';
SSelectArea = 'Select Area';
SSelectRes = 'Select Resolution';
SSelectProd = 'Select Product';
SViewAtPri = 'View bugs at or above priority';
SViewAtCat = 'View bugs at or above category';
SViewArea = 'View bugs in program area';
SViewRes = 'View bugs with Resolution';
SViewProd = 'View bugs of Product type';
SResComCap = ' Comments';
SPrinting = 'Printing';
SDelNewQuery = 'Delete unfinished bug?';
SDeleteQuery = 'Delete this bug?';
SCancelQuery = 'Cancel Changes?';
SRebuildQuery = 'Rebuild word index?';
SSaveQuery = 'Record has been changed. Save changes?';
SFinishBug = 'Finish this new bug before starting another.';
SGotoBug = 'Goto Bug';
SBugNumLbl = 'Bug Number:';
SGotoRec = 'Goto Record';
SRecNoLbl = 'Record Number:';
SLocateValue = 'Locate Value';
SLocateField = '"%s" Value:';
SLocateNoMatch = '"%s" not found';
SRecNotFound = 'Record not found';
SResPage = '&Resolve';
SESPPage = 'E&SP';
SFromESPCap = 'Bugs from ESP';
SNoResInfo = 'No resolution info.';
SBlankQuery = 'Query is blank';
SShellExecErr = 'ShellExec Error: ';
SFileNotFound = 'File not found: ';
SNoAssocApp = 'No application associated with this file extension';
SBuildIndex = 'Building word index';
SQuery = 'Query';
SMessage = 'Message';
SQuerySect = 'Queries';
SUntitledQuery = 'Untitled Query';
SQueryName = 'Query Name:';
SQNameQueryCap = 'Enter Query Name';
SEnterFileName = 'Enter FileName';
SUpdateTabPath = 'Path to table with list of bug numbers:';
SEditComment = 'Edit Comment';
SViewComment = 'View Comment';
SNoQueryName = 'Query must have a name';
SRunningQuery = 'Running Query';
SNoQryAutoSave = 'NoQueryAutoSave';
SEspSetup = 'Setting up ESP Review form';
SSystemDownCap = 'System Down Message';
SSelectDBCap = 'Select a Database';
SDestDBPrompt = 'Destination Database:';
SXferMessage = 'Transfering Record(s)';
SInvFldName = 'Invalid field name';
SNoQryLocate = 'Locate not supported on a query result';
SNoNewValue = 'New value not specified';
SChgAllConfirm = 'Blank old value will change all records, is this OK?';
SSystemDisabled = 'System is now disabled'#13#10'Delete BTSDOWN.TXT to re-enable';
SFileHandlesLow = 'Ran out of file handles creating this form, '+
'Add "File Handles = 100" to NET.CFG to avoid problems';
SXferAgainErr = 'Use ''Transfer Current'' first to select a target Database';
SGuestMsg = 'As a guest of this BTS system, you can view bug'+
'reports but you cannot modify or enter bug reports.';
SCurrBugInvalid = 'Current record is no longer valid.'#13#10+
'Now viewing all bugs';
STransferMsg = 'This command will transfer all the records in the current '+
'working set to another database. Do you want to do this?';
SBatUpateMsg = 'Proceed with batch update?';
{ Misc. String Constants }
const
CR = #13;
LF = #10;
ESC = #27;
CRLF = CR+LF;
MinAudRecNo = Low(Smallint) + 1;
MaxAudRecNo = High(Smallint);
SDash = ' - ';
SSpace = ' ';
SUnderbar = '_';
SDots = '..';
SEmptyStr = '';
exBugNo = '_BN';
exCurRes = '_CR';
exCurVer = '_CV';
SNone = 'None';
STrue = 'TRUE';
SYes = 'YES';
SOldValue = 'Old Value:'#13#10;
SNewValue = #13#10'New Value:'#13#10;
SSeeComment = 'See Comment';
SSeeField = 'See Field';
SConfigFile = 'ConfigFile';
SIndex = 'Index';
SSubjectID = 'SubjectID';
SSubject = 'Subject';
SRoot = 'Root';
SBatPath = 'BatPath';
SBlank = 'BLANK';
SNotBlank = 'NOT BLANK';
SGroup = 'Group';
SNotResolved = 'Not Resolved';
SReserveHandles = 'ReserveFileHandles';
SRequireNetID = 'RequireNetID';
SLogin = 'Login: %s %s';
SLogout = '%s Logout: %s %s';
SMaxWinVer = 'MaxWinVer';
SLocalTestDir = 'Local Test Directory';
SCopyAttach = 'Copy Attachment';
SFileName = 'File Name';
SCurrentUsers = 'Current Users';
SDBLongDesc = '&%d) Database Description';
SDBShortDesc = 'DBDESC%d';
SPlaceHolder = 'Place Holder';
{ Range Strings }
SBugs = '%s bugs';
SOpen = 'Open';
SPriGTCap = ', Priority >= ';
SCatGTCap = ', Category >= ';
SOpenPriCap = 'Open'+SPriGTCap+' %s';
SOpenCatCap = 'Open'+SCatGTCap+' %s';
SOpenAsgnArea = 'Assigned Bugs in Area - %s';
SOpenArea = 'Open Bugs in Area - %s';
SByAreaCap = 'All Bugs in Area - %s';
SResByArea = 'Resolved Bugs in Area - %s';
SAsgnCap = 'Open, Assigned to %s';
SSubBy = 'All bugs submitted by %s';
SOpenProdCap = 'Open, Product = %s';
SResWithRes = 'Resolved Bugs with Resolution = %s';
SResSubByCap = 'Resolved bugs submitted by %s';
SReOpened = 'Re-Opened Bugs assigned to %s';
{ Error Strings }
SCopyError = 'Error copying file (%d)';
SUnknownUser = 'Cannot determine network name';
SBadSysCfgFile = 'Bad or missing system config file: ';
SRecNotLocked = 'Record not locked';
SInvalidBugSave = 'Saved bug information is invalid, updates not written';
SResComSave = 'Invalid resolution link';
SAuditWriteErr = 'Error updating audit trail, changes not saved';
SStatLookErr = 'Error reading static lookup section: [%s]';
SNoStatMapping = 'Could not determine new status from resolution';
SNoRecords = 'No matching records';
SVerNotBlank = 'Cannot blank resolution, verification already entered';
SNoResolution = 'Bug has not been Resolved';
SCantGetBugNo = 'Error getting next bug number';
SBadOutline = 'Could not read outline table';
SInitNewBug = 'Could not initialize new bug';
SMissingConfig = 'Cannot find config file: ';
SSystemDown = 'System is down for maintenance';
SPasteError = 'Bug Paste only allowed on a new bug';
SNoDeletedTab = 'Deleted bug table is missing';
SNotNeedReview = 'Bug is not set to "Needs Review"';
SInvalidField = 'Invalid %s value: %s';
SCantFindTables = 'Cannot find BTS Tables in ';
SInvalidBtsDir = 'Invalid BTS Directory: ';
SCantBeBlank = '%s cannot be blank';
SMissingAttach = 'Missing Attachment: %s';
SRights1 = 'Insufficient Rights:'#10#13'You do not have the "';
SRights2 = '" rights that are required to perform this operation';
SConfigInit = 'Config file not initialized';
SMustAddComment = 'Must add a comment before rejecting bug';
SNoEspBugRec = 'No linked record in ESPBUGS';
SNeedEspReview = 'Bug must first be processed through ESP Review';
SHandleErr = 'Insufficient file handles to run safely.'#13#10+
'Required: %d, Available %d'#13#10+
'Add FILE HANDLES = 100 to your NET.CFG file';
SClipFormat = 'PasteBug called with wrong clipboard format';
SOpSysVer = 'Unsupported Operating System Version: %f';
SInvChgList = 'Invalid Changelist state';
SStatUpdErr = 'Error updating [%s] section of STATLOOK.INI from %s table.'#13#10'Message: %s';
SAlreadyExists = '%s already exists';
SInvalidDBDesc = 'Invalid DB Description: %s';
SXferKeyViol = 'Bug# %d already exists in destination database';
SXferAborted = 'Batch transfer aborted';
SUpdateFailed = 'One or more records could not be updated';
SLeafNodeReq = 'Must select leaf node from outline';
SNotSupported = 'Not Supported';
SLoadError = 'Error loading %s [%d]';
SBatchRange = 'Cannot update a range based working set';
{ Query Stuff }
type
TQueryDataType = (qdBugData, qdResolution, qdVerification, qdAudit, qdLookup);
TQueryFlags = set of TQueryDataType;
{ User Rights }
type
TUserRightsElement = (
urEntry, {"E"}
urDirectEntry, {"D"}
urResolve, {"R"}
urVerify, {"V"}
urAssign, {"G"}
urEdit, {"I"}
urAdmin, {"A"}
urReview); {"W"}
TUserRights = set of TUserRightsElement;
const
urAllRights = [urEntry..urReview];
SRightsChars = 'EDRVGIAW'; { order must match enums }
SRights : array [urEntry..urReview] of PChar = (
'Bug Entry','Direct Entry','Resolve','Verify',
'Assign','Edit','Admin','Review');
UserSects: array[1..3] of PChar = (csFoundBy, csSubBy, csProgrammer);
UserCnts: array[1..3] of Integer = (0, 0, 0);
RightChars: array[1..3] of Char = ('E', 'V', 'R');
implementation
end.