Skip to content

Commit

Permalink
#20 Bold Merge. Stefan Westners version merged with Attracs Bold. Als…
Browse files Browse the repository at this point in the history
…o removed some

C++ files
  • Loading branch information
bero committed Dec 6, 2024
1 parent ac26a7b commit 9d1bc4a
Show file tree
Hide file tree
Showing 299 changed files with 3,845 additions and 22,811 deletions.
1 change: 0 additions & 1 deletion Bold.dproj
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@
<DCCReference Include="Source\BoldComObj.pas"/>
<DCCReference Include="Source\BoldComPersistenceHandleReg.pas"/>
<DCCReference Include="Source\BoldComReg.pas"/>
<DCCReference Include="Source\BoldComServer.pas"/>
<DCCReference Include="Source\BoldComServerHandles.pas"/>
<DCCReference Include="Source\BoldComThreads.pas"/>
<DCCReference Include="Source\BoldComUtils.pas"/>
Expand Down
15 changes: 11 additions & 4 deletions Source/Bold.inc
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,17 @@ Illegal symbol combination
// Use OXML instead of MSXML for XML operations (faster and can handle larger XML)
{.$DEFINE OXML}

// Faster Display Queue - Simplified handling of (Most)Prioritized and less iteration of Display List
{$DEFINE BoldQueue_Optimization}

// When fetching an object which class list is loaded then search there instead of going to db.
{$DEFINE FetchFromClassList}

// Mechanism to automatically place subscriptions for all derivation code in .inc files
{.$DEFINE NoAutoSubscription}

// Mechanism for efficient fetching
{$DEFINE SpanFetch}
{.$DEFINE SpanFetch}

// Turns off query mechanism
{$DEFINE BOLD_NO_QUERIES}
Expand Down Expand Up @@ -200,9 +203,12 @@ Illegal symbol combination
// IndexColumn creates an extra Index column in MemberMappingTable
{.$DEFINE IndexColumn}

//Adds brJson StringRepresentation via BoldObjectRepresentationJson unit
//Includes BoldJson and BoldObjectRepresentationJson - includes LkJSON v1.07
{$DEFINE BoldJson}

// BoldSystem broadcasts member events - allows getting events from all objects and their members by only placing one subscription on system
{$DEFINE BoldSystemBroadcastMemberEvents}

// NoEnsureEnclosure skips EnsureEnclosure call in UpdateDatabase, use NoEnsureEnclosure if objects passed to UpdateDatabase are already enclosed
{.$DEFINE NoEnsureEnclosure}

Expand All @@ -223,7 +229,7 @@ Illegal symbol combination
{$ENDIF}

// settings for design package

(*
{$IFNDEF Attracs}
{$DEFINE NoAutoSubscription}
{$UNDEF SpanFetch}
Expand All @@ -234,5 +240,6 @@ Illegal symbol combination
{$UNDEF IDServer}
{$UNDEF NoNegativeDates}
{$UNDEF ConvertZeroDateToDateNil}
{$UNDEF BoldSystemBroadcastMemberEvents}
{$ENDIF}

*)
4 changes: 2 additions & 2 deletions Source/BoldAFPDefault.pas
Original file line number Diff line number Diff line change
Expand Up @@ -952,14 +952,14 @@ function TBoldDefaultObjectAutoFormProvider.GetGoodStringRepresentationForSingle
ClassTypeInfo := (MemberRTInfo as TBoldRoleRTInfo).ClassTypeInfoOfOtherEnd;
if ClassTypeInfo.DefaultStringRepresentation = '' then
begin
for i := 0 to ClassTypeInfo.AllMembersCount - 1 do
for i := 0 to ClassTypeInfo.AllMembers.Count - 1 do
if ClassTypeInfo.AllMembers[i].BoldType.ExpressionName = 'String' then // do not localize
begin
Result := ClassTypeInfo.AllMembers[i].ExpressionName;
exit;
end;

for i := 0 to ClassTypeInfo.AllMembersCount - 1 do
for i := 0 to ClassTypeInfo.AllMembers.Count - 1 do
if ClassTypeInfo.AllMembers[i] is TBoldAttributeRTInfo then
begin
Result := ClassTypeInfo.AllMembers[i].ExpressionName;
Expand Down
7 changes: 6 additions & 1 deletion Source/BoldAbout.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object frmAboutBold: TfrmAboutBold
Top = 6
Width = 385
Height = 380
ActivePage = TabAbout
ActivePage = TabSheetRegistration
MultiLine = True
TabOrder = 0
object TabAbout: TTabSheet
Expand Down Expand Up @@ -864,6 +864,7 @@ object frmAboutBold: TfrmAboutBold
SortType = stText
TabOrder = 0
ViewStyle = vsReport
OnDblClick = ListViewRevisionDblClick
end
end
object TabSheetRegistration: TTabSheet
Expand Down Expand Up @@ -3060,6 +3061,7 @@ object frmAboutBold: TfrmAboutBold
StateImages = ImageList2
TabOrder = 1
ViewStyle = vsReport
OnDblClick = btnLicenseDetailsClick
end
object BtnSaveDeploymentKeys: TBitBtn
Left = 196
Expand Down Expand Up @@ -3167,6 +3169,7 @@ object frmAboutBold: TfrmAboutBold
Height = 25
Caption = '&Open License Key...'
TabOrder = 0
OnClick = btnLicenseDetailsClick
end
end
end
Expand Down Expand Up @@ -3477,11 +3480,13 @@ object frmAboutBold: TfrmAboutBold
end
object PopupMenuRevision: TPopupMenu
Images = ImageList1
OnPopup = PopupMenuRevisionPopup
Left = 4
Top = 392
object PopupOpenModule: TMenuItem
Caption = '&Open'
ImageIndex = 0
OnClick = ListViewRevisionDblClick
end
end
object SaveDialogRunLic: TSaveDialog
Expand Down
2 changes: 1 addition & 1 deletion Source/BoldAbstractDequeuer.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


{ Global compiler directives }
{$include bold.inc}
unit BoldAbstractDequeuer;
Expand Down
2 changes: 1 addition & 1 deletion Source/BoldAbstractPartiallyExternalPC.pas
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function TBoldAbstractPartiallyExternalPC.ExternalKeysToInternalSQL(
raise EBold.CreateFmt(sNotSupportedWithNoKeys, [classname, MoldClass.ExpandedExpressionName]);

result := format('%s.%s in (', [
BoldExpandName(ExternalKey.MoldClass.ExternalTableName, ExternalKey.MoldClass.Name, xtSQL, -1, nccFalse),
BoldExpandName(ExternalKey.MoldClass.Tablename, ExternalKey.MoldClass.Name, xtSQL, -1, nccFalse),
BoldExpandName(ExternalKey.ColumnName, ExternalKey.name, xtSQL, -1, nccFalse)]);
Mapping := TypeNameDictionary.MappingForModelName[ExternalKey.BoldType];
KeyIsString := assigned(Mapping) and SameText(Mapping.ExpandedContentsName, BoldContentName_String);
Expand Down
Loading

0 comments on commit 9d1bc4a

Please sign in to comment.