mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 05:19:37 +02:00
Debug Inspector: improved localization
git-svn-id: trunk@43925 -
This commit is contained in:
parent
8b68f76335
commit
c5fc4f9807
@ -1,4 +1,4 @@
|
|||||||
inherited IDEInspectDlg: TIDEInspectDlg
|
object IDEInspectDlg: TIDEInspectDlg
|
||||||
Left = 423
|
Left = 423
|
||||||
Height = 406
|
Height = 406
|
||||||
Top = 139
|
Top = 139
|
||||||
@ -13,17 +13,18 @@ inherited IDEInspectDlg: TIDEInspectDlg
|
|||||||
OnClose = FormClose
|
OnClose = FormClose
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnKeyDown = FormKeyDown
|
OnKeyDown = FormKeyDown
|
||||||
object StatusBar1: TStatusBar[0]
|
LCLVersion = '1.3'
|
||||||
|
object StatusBar1: TStatusBar
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 383
|
Top = 383
|
||||||
Width = 295
|
Width = 295
|
||||||
Panels = <>
|
Panels = <>
|
||||||
end
|
end
|
||||||
object PageControl: TPageControl[1]
|
object PageControl: TPageControl
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 334
|
Height = 336
|
||||||
Top = 49
|
Top = 47
|
||||||
Width = 295
|
Width = 295
|
||||||
ActivePage = DataPage
|
ActivePage = DataPage
|
||||||
Align = alClient
|
Align = alClient
|
||||||
@ -41,23 +42,23 @@ inherited IDEInspectDlg: TIDEInspectDlg
|
|||||||
Caption = 'MethodsPage'
|
Caption = 'MethodsPage'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object EdInspect: TComboBox[2]
|
object EdInspect: TComboBox
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 23
|
Height = 21
|
||||||
Top = 0
|
Top = 0
|
||||||
Width = 295
|
Width = 295
|
||||||
Align = alTop
|
Align = alTop
|
||||||
ItemHeight = 15
|
ItemHeight = 13
|
||||||
OnEditingDone = EdInspectEditingDone
|
OnEditingDone = EdInspectEditingDone
|
||||||
OnKeyDown = EdInspectKeyDown
|
OnKeyDown = EdInspectKeyDown
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
Text = '(...)'
|
Text = '(...)'
|
||||||
end
|
end
|
||||||
object ToolBar1: TToolBar[3]
|
object ToolBar1: TToolBar
|
||||||
AnchorSideTop.Control = EdInspect
|
AnchorSideTop.Control = EdInspect
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 26
|
Height = 26
|
||||||
Top = 23
|
Top = 21
|
||||||
Width = 295
|
Width = 295
|
||||||
Caption = 'ToolBar1'
|
Caption = 'ToolBar1'
|
||||||
ShowCaptions = True
|
ShowCaptions = True
|
||||||
@ -69,41 +70,49 @@ inherited IDEInspectDlg: TIDEInspectDlg
|
|||||||
AllowAllUp = True
|
AllowAllUp = True
|
||||||
Caption = 'Instance'
|
Caption = 'Instance'
|
||||||
OnClick = btnUseInstanceClick
|
OnClick = btnUseInstanceClick
|
||||||
|
ParentShowHint = False
|
||||||
|
ShowHint = True
|
||||||
Style = tbsCheck
|
Style = tbsCheck
|
||||||
end
|
end
|
||||||
object ToolButton2: TToolButton
|
object ToolButton2: TToolButton
|
||||||
Left = 106
|
Left = 104
|
||||||
Top = 2
|
Top = 2
|
||||||
Width = 5
|
Width = 5
|
||||||
Caption = 'ToolButton2'
|
Caption = 'ToolButton2'
|
||||||
Style = tbsDivider
|
Style = tbsDivider
|
||||||
end
|
end
|
||||||
object btnColClass: TToolButton
|
object btnColClass: TToolButton
|
||||||
Left = 111
|
Left = 109
|
||||||
Hint = 'Show Class Column'
|
Hint = 'Show Class Column'
|
||||||
Top = 2
|
Top = 2
|
||||||
AllowAllUp = True
|
AllowAllUp = True
|
||||||
Caption = 'C'
|
Caption = 'C'
|
||||||
Down = True
|
Down = True
|
||||||
OnClick = btnColClassClick
|
OnClick = btnColClassClick
|
||||||
|
ParentShowHint = False
|
||||||
|
ShowHint = True
|
||||||
Style = tbsCheck
|
Style = tbsCheck
|
||||||
end
|
end
|
||||||
object btnColType: TToolButton
|
object btnColType: TToolButton
|
||||||
Left = 134
|
Left = 132
|
||||||
Top = 2
|
Top = 2
|
||||||
AllowAllUp = True
|
AllowAllUp = True
|
||||||
Caption = 'T'
|
Caption = 'T'
|
||||||
Down = True
|
Down = True
|
||||||
OnClick = btnColClassClick
|
OnClick = btnColClassClick
|
||||||
|
ParentShowHint = False
|
||||||
|
ShowHint = True
|
||||||
Style = tbsCheck
|
Style = tbsCheck
|
||||||
end
|
end
|
||||||
object btnColVisibility: TToolButton
|
object btnColVisibility: TToolButton
|
||||||
Left = 157
|
Left = 155
|
||||||
Top = 2
|
Top = 2
|
||||||
AllowAllUp = True
|
AllowAllUp = True
|
||||||
Caption = 'V'
|
Caption = 'V'
|
||||||
Down = True
|
Down = True
|
||||||
OnClick = btnColClassClick
|
OnClick = btnColClassClick
|
||||||
|
ParentShowHint = False
|
||||||
|
ShowHint = True
|
||||||
Style = tbsCheck
|
Style = tbsCheck
|
||||||
end
|
end
|
||||||
object btnBackward: TToolButton
|
object btnBackward: TToolButton
|
||||||
|
@ -313,7 +313,8 @@ begin
|
|||||||
|
|
||||||
if not Assigned(FDBGInfo) then exit;
|
if not Assigned(FDBGInfo) then exit;
|
||||||
if not Assigned(FDBGInfo.Fields) then exit;
|
if not Assigned(FDBGInfo.Fields) then exit;
|
||||||
StatusBar1.SimpleText:=FExpression+' : Class '+FDBGInfo.TypeName+' inherits from '+FDBGInfo.Ancestor;
|
StatusBar1.SimpleText:=Format(lisInspectClassInherit, [FExpression, FDBGInfo.
|
||||||
|
TypeName, FDBGInfo.Ancestor]);
|
||||||
GridDataSetup;
|
GridDataSetup;
|
||||||
ShowDataFields;
|
ShowDataFields;
|
||||||
//FGridData.AutoSizeColumn(1);
|
//FGridData.AutoSizeColumn(1);
|
||||||
@ -486,7 +487,8 @@ begin
|
|||||||
GridDataSetup;
|
GridDataSetup;
|
||||||
FGridData.Cells[1,1]:=FExpression;
|
FGridData.Cells[1,1]:=FExpression;
|
||||||
if (FDBGInfo.TypeName <> '') and (FDBGInfo.TypeName[1] = '^')
|
if (FDBGInfo.TypeName <> '') and (FDBGInfo.TypeName[1] = '^')
|
||||||
then FGridData.Cells[2,1]:='Pointer to '+copy(FDBGInfo.TypeName, 2, length(FDBGInfo.TypeName))
|
then FGridData.Cells[2, 1]:=Format(lisInspectPointerTo, [copy(FDBGInfo.
|
||||||
|
TypeName, 2, length(FDBGInfo.TypeName))])
|
||||||
else FGridData.Cells[2,1]:=FDBGInfo.TypeName;
|
else FGridData.Cells[2,1]:=FDBGInfo.TypeName;
|
||||||
{$PUSH}{$RANGECHECKS OFF}
|
{$PUSH}{$RANGECHECKS OFF}
|
||||||
FGridData.Cells[3,1]:=format('$%x',[PtrUInt(FDBGInfo.Value.AsPointer)]);
|
FGridData.Cells[3,1]:=format('$%x',[PtrUInt(FDBGInfo.Value.AsPointer)]);
|
||||||
@ -518,11 +520,11 @@ begin
|
|||||||
//Cols[3].Text:='Value';
|
//Cols[3].Text:='Value';
|
||||||
//Cols[4].Text:='Visibility';
|
//Cols[4].Text:='Visibility';
|
||||||
Color:=clBtnFace;
|
Color:=clBtnFace;
|
||||||
Columns.Add.Title.Caption:='Class';
|
Columns.Add.Title.Caption:=lisColClass;
|
||||||
Columns.Add.Title.Caption:='Name';
|
Columns.Add.Title.Caption:=lisName;
|
||||||
Columns.Add.Title.Caption:='Type';
|
Columns.Add.Title.Caption:=dlgEnvType;
|
||||||
Columns.Add.Title.Caption:='Value';
|
Columns.Add.Title.Caption:=lisValue;
|
||||||
Columns.Add.Title.Caption:='Visibility';
|
Columns.Add.Title.Caption:=lisColVisibility;
|
||||||
end;
|
end;
|
||||||
FGridData.RowCount:=1;
|
FGridData.RowCount:=1;
|
||||||
FGridData.RowCount:=2;
|
FGridData.RowCount:=2;
|
||||||
@ -548,10 +550,10 @@ begin
|
|||||||
FixedRows:=1;
|
FixedRows:=1;
|
||||||
FixedCols:=0;
|
FixedCols:=0;
|
||||||
ColCount:=4;
|
ColCount:=4;
|
||||||
Cols[0].Text:='Name';
|
Cols[0].Text:=lisName;
|
||||||
Cols[1].Text:='Type';
|
Cols[1].Text:=dlgEnvType;
|
||||||
Cols[2].Text:='Returns';
|
Cols[2].Text:=lisColReturns;
|
||||||
Cols[3].Text:='Address';
|
Cols[3].Text:=lisColAddress;
|
||||||
Color:=clBtnFace;
|
Color:=clBtnFace;
|
||||||
end;
|
end;
|
||||||
FGridMethods.RowCount:=1;
|
FGridMethods.RowCount:=1;
|
||||||
@ -875,7 +877,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
FreeAndNil(FDBGInfo);
|
FreeAndNil(FDBGInfo);
|
||||||
Clear;
|
Clear;
|
||||||
StatusBar1.SimpleText:=FExpression + ' : unavailable';
|
StatusBar1.SimpleText:=Format(lisInspectUnavailable, [FExpression]);
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
case FDBGInfo.Kind of
|
case FDBGInfo.Kind of
|
||||||
|
@ -459,6 +459,13 @@ resourcestring
|
|||||||
lisInspectShowColClass = 'Show class column';
|
lisInspectShowColClass = 'Show class column';
|
||||||
lisInspectShowColType = 'Show type column';
|
lisInspectShowColType = 'Show type column';
|
||||||
lisInspectShowColVisibility = 'Show visibility column';
|
lisInspectShowColVisibility = 'Show visibility column';
|
||||||
|
lisInspectClassInherit = '%s : Class %s inherits from %s';
|
||||||
|
lisInspectUnavailable = '%s : unavailable';
|
||||||
|
lisInspectPointerTo = 'Pointer to %s';
|
||||||
|
lisColClass = 'Class';
|
||||||
|
lisColVisibility = 'Visibility';
|
||||||
|
lisColReturns = 'Returns';
|
||||||
|
lisColAddress = 'Address';
|
||||||
|
|
||||||
lisMenuNewPackage = 'New Package ...';
|
lisMenuNewPackage = 'New Package ...';
|
||||||
lisMenuOpenPackage = 'Open Loaded Package ...';
|
lisMenuOpenPackage = 'Open Loaded Package ...';
|
||||||
|
Loading…
Reference in New Issue
Block a user