|
@@ -410,7 +410,7 @@ type
|
|
function ToCurrentPPI(const XY: Integer): Integer;
|
|
function ToCurrentPPI(const XY: Integer): Integer;
|
|
procedure ToggleBreakPoint(Line: Integer);
|
|
procedure ToggleBreakPoint(Line: Integer);
|
|
procedure UpdateAllMemosLineMarkers;
|
|
procedure UpdateAllMemosLineMarkers;
|
|
- procedure UpdateBevel1;
|
|
|
|
|
|
+ procedure UpdateBevel1Visibility;
|
|
procedure UpdateCaption;
|
|
procedure UpdateCaption;
|
|
procedure UpdateCaretPosPanel;
|
|
procedure UpdateCaretPosPanel;
|
|
procedure UpdateCompileStatusPanels(const AProgress, AProgressMax: Cardinal;
|
|
procedure UpdateCompileStatusPanels(const AProgress, AProgressMax: Cardinal;
|
|
@@ -418,6 +418,7 @@ type
|
|
procedure UpdateEditModePanel;
|
|
procedure UpdateEditModePanel;
|
|
procedure UpdateIncludedFilesMemos;
|
|
procedure UpdateIncludedFilesMemos;
|
|
procedure UpdateLineMarkers(const AMemo: TCompScintEdit; const Line: Integer);
|
|
procedure UpdateLineMarkers(const AMemo: TCompScintEdit; const Line: Integer);
|
|
|
|
+ procedure UpdateMemosTabSetVisibility;
|
|
procedure UpdateModifiedPanel;
|
|
procedure UpdateModifiedPanel;
|
|
procedure UpdateNewMainFileButtons;
|
|
procedure UpdateNewMainFileButtons;
|
|
procedure UpdateTabSetListsItemHeightAndDebugTimeWidth;
|
|
procedure UpdateTabSetListsItemHeightAndDebugTimeWidth;
|
|
@@ -2571,6 +2572,13 @@ begin
|
|
StatusBar.Panels[spEditMode].Text := InsertText[FActiveMemo.InsertMode];
|
|
StatusBar.Panels[spEditMode].Text := InsertText[FActiveMemo.InsertMode];
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+procedure TCompileForm.UpdateMemosTabSetVisibility;
|
|
|
|
+begin
|
|
|
|
+ MemosTabSet.Visible := FMemos[FirstIncludedFilesMemoIndex].Used;
|
|
|
|
+ if not MemosTabSet.Visible then
|
|
|
|
+ MemosTabSet.TabIndex := 0; { For next time }
|
|
|
|
+end;
|
|
|
|
+
|
|
procedure TCompileForm.UpdateModifiedPanel;
|
|
procedure TCompileForm.UpdateModifiedPanel;
|
|
begin
|
|
begin
|
|
if FActiveMemo.Modified then
|
|
if FActiveMemo.Modified then
|
|
@@ -2648,22 +2656,18 @@ begin
|
|
NewHints.Free;
|
|
NewHints.Free;
|
|
NewTabs.Free;
|
|
NewTabs.Free;
|
|
end;
|
|
end;
|
|
- MemosTabSet.Visible := True;
|
|
|
|
end else begin
|
|
end else begin
|
|
- if MemosTabSet.Visible then begin
|
|
|
|
- for I := FirstIncludedFilesMemoIndex to FMemos.Count-1 do begin
|
|
|
|
- FMemos[I].BreakPoints.Clear;
|
|
|
|
- FMemos[I].Used := False;
|
|
|
|
- FMemos[I].Visible := False;
|
|
|
|
- end;
|
|
|
|
- for IncludedFile in FIncludedFiles do
|
|
|
|
- IncludedFile.Memo := nil;
|
|
|
|
- MemosTabSet.Visible := False;
|
|
|
|
- MemosTabSet.TabIndex := 0; { For next time }
|
|
|
|
|
|
+ for I := FirstIncludedFilesMemoIndex to FMemos.Count-1 do begin
|
|
|
|
+ FMemos[I].BreakPoints.Clear;
|
|
|
|
+ FMemos[I].Used := False;
|
|
|
|
+ FMemos[I].Visible := False;
|
|
end;
|
|
end;
|
|
|
|
+ for IncludedFile in FIncludedFiles do
|
|
|
|
+ IncludedFile.Memo := nil;
|
|
end;
|
|
end;
|
|
-
|
|
|
|
- UpdateBevel1;
|
|
|
|
|
|
+
|
|
|
|
+ UpdateMemosTabSetVisibility;
|
|
|
|
+ UpdateBevel1Visibility;
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure TCompileForm.MemoUpdateUI(Sender: TObject);
|
|
procedure TCompileForm.MemoUpdateUI(Sender: TObject);
|
|
@@ -3604,7 +3608,7 @@ begin
|
|
ToolBarVirtualImageList.ImageCollection := DarkToolBarImageCollection
|
|
ToolBarVirtualImageList.ImageCollection := DarkToolBarImageCollection
|
|
else
|
|
else
|
|
ToolBarVirtualImageList.ImageCollection := LightToolBarImageCollection;
|
|
ToolBarVirtualImageList.ImageCollection := LightToolBarImageCollection;
|
|
- UpdateBevel1;
|
|
|
|
|
|
+ UpdateBevel1Visibility;
|
|
SplitPanel.ParentBackground := False;
|
|
SplitPanel.ParentBackground := False;
|
|
SplitPanel.Color := FTheme.Colors[tcSplitterBack];
|
|
SplitPanel.Color := FTheme.Colors[tcSplitterBack];
|
|
if FTheme.Dark then begin
|
|
if FTheme.Dark then begin
|
|
@@ -4436,7 +4440,7 @@ begin
|
|
UpdateLineMarkers(Memo, Line);
|
|
UpdateLineMarkers(Memo, Line);
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure TCompileForm.UpdateBevel1;
|
|
|
|
|
|
+procedure TCompileForm.UpdateBevel1Visibility;
|
|
begin
|
|
begin
|
|
Bevel1.Visible := (FTheme.Colors[tcMarginBack] = ToolBarPanel.Color) and not MemosTabSet.Visible;
|
|
Bevel1.Visible := (FTheme.Colors[tcMarginBack] = ToolBarPanel.Color) and not MemosTabSet.Visible;
|
|
end;
|
|
end;
|