Packager: Put Description first in info box of Install/Uninstall Packages. Improve anchors and size. Issue #36107.

git-svn-id: trunk@62640 -
This commit is contained in:
juha 2020-02-17 12:23:51 +00:00
parent 0961a5797a
commit b70c8ac8e7
2 changed files with 69 additions and 69 deletions

View File

@ -1,12 +1,12 @@
object InstallPkgSetDialog: TInstallPkgSetDialog object InstallPkgSetDialog: TInstallPkgSetDialog
Left = 378 Left = 378
Height = 578 Height = 638
Top = 219 Top = 219
Width = 607 Width = 607
ActiveControl = AvailableFilterEdit ActiveControl = AvailableFilterEdit
BorderStyle = bsSizeToolWin BorderStyle = bsSizeToolWin
Caption = 'InstallPkgSetDialog' Caption = 'InstallPkgSetDialog'
ClientHeight = 578 ClientHeight = 638
ClientWidth = 607 ClientWidth = 607
Constraints.MinHeight = 400 Constraints.MinHeight = 400
Constraints.MinWidth = 450 Constraints.MinWidth = 450
@ -20,23 +20,23 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
object PkgInfoGroupBox: TGroupBox object PkgInfoGroupBox: TGroupBox
AnchorSideBottom.Control = BtnPanel AnchorSideBottom.Control = BtnPanel
Left = 6 Left = 6
Height = 135 Height = 160
Top = 405 Top = 437
Width = 595 Width = 595
Align = alBottom Align = alBottom
BorderSpacing.Left = 6 BorderSpacing.Left = 6
BorderSpacing.Right = 6 BorderSpacing.Right = 6
Caption = 'PkgInfoGroupBox' Caption = 'PkgInfoGroupBox'
ClientHeight = 115 ClientHeight = 130
ClientWidth = 591 ClientWidth = 591
Constraints.MinHeight = 70 Constraints.MinHeight = 70
TabOrder = 0 TabOrder = 0
object PkgInfoMemo: TMemo object PkgInfoMemo: TMemo
Left = 6 Left = 6
Height = 65 Height = 80
Top = 6 Top = 6
Width = 579 Width = 579
Align = alTop Align = alClient
BorderSpacing.Left = 6 BorderSpacing.Left = 6
BorderSpacing.Top = 6 BorderSpacing.Top = 6
BorderSpacing.Right = 6 BorderSpacing.Right = 6
@ -49,19 +49,19 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
Cursor = crVSplit Cursor = crVSplit
Left = 0 Left = 0
Height = 5 Height = 5
Top = 72 Top = 87
Width = 591 Width = 591
Align = alTop Align = alBottom
Constraints.MinHeight = 3 Constraints.MinHeight = 3
MinSize = 20 MinSize = 20
ResizeAnchor = akTop ResizeAnchor = akBottom
end end
object PkgInfoMemoLicense: TMemo object PkgInfoMemoLicense: TMemo
Left = 6 Left = 6
Height = 31 Height = 31
Top = 78 Top = 93
Width = 579 Width = 579
Align = alClient Align = alBottom
BorderSpacing.Left = 6 BorderSpacing.Left = 6
BorderSpacing.Top = 1 BorderSpacing.Top = 1
BorderSpacing.Right = 6 BorderSpacing.Right = 6
@ -73,18 +73,18 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
end end
object BtnPanel: TPanel object BtnPanel: TPanel
Left = 0 Left = 0
Height = 38 Height = 41
Top = 540 Top = 597
Width = 607 Width = 607
Align = alBottom Align = alBottom
AutoSize = True AutoSize = True
BevelOuter = bvNone BevelOuter = bvNone
ClientHeight = 38 ClientHeight = 41
ClientWidth = 607 ClientWidth = 607
TabOrder = 1 TabOrder = 1
object HelpButton: TBitBtn object HelpButton: TBitBtn
Left = 6 Left = 6
Height = 26 Height = 29
Top = 6 Top = 6
Width = 75 Width = 75
Align = alLeft Align = alLeft
@ -97,10 +97,10 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
TabOrder = 0 TabOrder = 0
end end
object CancelButton: TBitBtn object CancelButton: TBitBtn
Left = 192 Left = 164
Height = 26 Height = 29
Top = 6 Top = 6
Width = 82 Width = 83
Align = alRight Align = alRight
AutoSize = True AutoSize = True
BorderSpacing.Around = 6 BorderSpacing.Around = 6
@ -112,10 +112,10 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
TabOrder = 1 TabOrder = 1
end end
object SaveAndExitButton: TBitBtn object SaveAndExitButton: TBitBtn
Left = 454 Left = 442
Height = 26 Height = 29
Top = 6 Top = 6
Width = 147 Width = 159
Align = alRight Align = alRight
AutoSize = True AutoSize = True
BorderSpacing.Around = 6 BorderSpacing.Around = 6
@ -161,10 +161,10 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
TabOrder = 3 TabOrder = 3
end end
object SaveAndRebuildButton: TBitBtn object SaveAndRebuildButton: TBitBtn
Left = 280 Left = 253
Height = 26 Height = 29
Top = 6 Top = 6
Width = 168 Width = 183
Align = alRight Align = alRight
AutoSize = True AutoSize = True
BorderSpacing.Around = 6 BorderSpacing.Around = 6
@ -214,7 +214,7 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
Cursor = crVSplit Cursor = crVSplit
Left = 0 Left = 0
Height = 5 Height = 5
Top = 400 Top = 432
Width = 607 Width = 607
Align = alBottom Align = alBottom
Constraints.MinHeight = 3 Constraints.MinHeight = 3
@ -222,7 +222,7 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
end end
object Panel1: TPanel object Panel1: TPanel
Left = 6 Left = 6
Height = 390 Height = 422
Top = 6 Top = 6
Width = 595 Width = 595
Align = alClient Align = alClient
@ -231,13 +231,13 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
BorderSpacing.Right = 6 BorderSpacing.Right = 6
BorderSpacing.Bottom = 4 BorderSpacing.Bottom = 4
BevelOuter = bvNone BevelOuter = bvNone
ClientHeight = 390 ClientHeight = 422
ClientWidth = 595 ClientWidth = 595
Constraints.MinHeight = 210 Constraints.MinHeight = 210
TabOrder = 3 TabOrder = 3
object NoteLabel: TLabel object NoteLabel: TLabel
Left = 0 Left = 0
Height = 15 Height = 18
Top = 0 Top = 0
Width = 595 Width = 595
Align = alTop Align = alTop
@ -252,7 +252,7 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
AnchorSideTop.Side = asrCenter AnchorSideTop.Side = asrCenter
Left = 294 Left = 294
Height = 100 Height = 100
Top = 145 Top = 161
Width = 6 Width = 6
Shape = bsSpacer Shape = bsSpacer
end end
@ -264,13 +264,13 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
AnchorSideBottom.Control = Panel1 AnchorSideBottom.Control = Panel1
AnchorSideBottom.Side = asrBottom AnchorSideBottom.Side = asrBottom
Left = 0 Left = 0
Height = 369 Height = 398
Top = 21 Top = 24
Width = 294 Width = 294
Anchors = [akTop, akLeft, akRight, akBottom] Anchors = [akTop, akLeft, akRight, akBottom]
AutoSize = True AutoSize = True
Caption = 'InstallPkgGroupBox' Caption = 'InstallPkgGroupBox'
ClientHeight = 349 ClientHeight = 368
ClientWidth = 290 ClientWidth = 290
Constraints.MinWidth = 200 Constraints.MinWidth = 200
TabOrder = 0 TabOrder = 0
@ -282,8 +282,8 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = UninstallButton AnchorSideBottom.Control = UninstallButton
Left = 6 Left = 6
Height = 250 Height = 247
Top = 31 Top = 40
Width = 278 Width = 278
Anchors = [akTop, akLeft, akRight, akBottom] Anchors = [akTop, akLeft, akRight, akBottom]
MultiSelect = True MultiSelect = True
@ -302,10 +302,10 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
AnchorSideLeft.Control = InstallTreeView AnchorSideLeft.Control = InstallTreeView
AnchorSideLeft.Side = asrCenter AnchorSideLeft.Side = asrCenter
AnchorSideBottom.Control = Panel2 AnchorSideBottom.Control = Panel2
Left = 91 Left = 90
Height = 25 Height = 29
Top = 287 Top = 293
Width = 108 Width = 110
Anchors = [akLeft, akBottom] Anchors = [akLeft, akBottom]
AutoSize = True AutoSize = True
BorderSpacing.Top = 6 BorderSpacing.Top = 6
@ -321,7 +321,7 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
AnchorSideRight.Control = InstallPkgGroupBox AnchorSideRight.Control = InstallPkgGroupBox
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
Left = 6 Left = 6
Height = 23 Height = 32
Top = 2 Top = 2
Width = 278 Width = 278
ButtonWidth = 23 ButtonWidth = 23
@ -345,8 +345,8 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
AnchorSideBottom.Control = InstallPkgGroupBox AnchorSideBottom.Control = InstallPkgGroupBox
AnchorSideBottom.Side = asrBottom AnchorSideBottom.Side = asrBottom
Left = 0 Left = 0
Height = 25 Height = 34
Top = 318 Top = 328
Width = 290 Width = 290
Anchors = [akLeft, akRight, akBottom] Anchors = [akLeft, akRight, akBottom]
AutoSize = True AutoSize = True
@ -359,15 +359,15 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
ChildSizing.ShrinkHorizontal = crsHomogenousChildResize ChildSizing.ShrinkHorizontal = crsHomogenousChildResize
ChildSizing.Layout = cclLeftToRightThenTopToBottom ChildSizing.Layout = cclLeftToRightThenTopToBottom
ChildSizing.ControlsPerLine = 2 ChildSizing.ControlsPerLine = 2
ClientHeight = 25 ClientHeight = 34
ClientWidth = 290 ClientWidth = 290
TabOrder = 3 TabOrder = 3
object ImportButton: TButton object ImportButton: TButton
AnchorSideLeft.Side = asrCenter AnchorSideLeft.Side = asrCenter
Left = 32 Left = 31
Height = 25 Height = 34
Top = 0 Top = 0
Width = 98 Width = 101
Caption = 'ImportButton' Caption = 'ImportButton'
OnClick = ImportButtonClick OnClick = ImportButtonClick
TabOrder = 0 TabOrder = 0
@ -375,10 +375,10 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
object ExportButton: TButton object ExportButton: TButton
AnchorSideLeft.Side = asrCenter AnchorSideLeft.Side = asrCenter
AnchorSideBottom.Side = asrBottom AnchorSideBottom.Side = asrBottom
Left = 162 Left = 163
Height = 25 Height = 34
Top = 0 Top = 0
Width = 96 Width = 98
Caption = 'ExportButton' Caption = 'ExportButton'
OnClick = ExportButtonClick OnClick = ExportButtonClick
TabOrder = 1 TabOrder = 1
@ -395,12 +395,12 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
AnchorSideBottom.Control = Panel1 AnchorSideBottom.Control = Panel1
AnchorSideBottom.Side = asrBottom AnchorSideBottom.Side = asrBottom
Left = 300 Left = 300
Height = 369 Height = 398
Top = 21 Top = 24
Width = 295 Width = 295
Anchors = [akTop, akLeft, akRight, akBottom] Anchors = [akTop, akLeft, akRight, akBottom]
Caption = 'AvailablePkgGroupBox' Caption = 'AvailablePkgGroupBox'
ClientHeight = 349 ClientHeight = 368
ClientWidth = 291 ClientWidth = 291
TabOrder = 1 TabOrder = 1
object AvailableTreeView: TTreeView object AvailableTreeView: TTreeView
@ -411,8 +411,8 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = AddToInstallButton AnchorSideBottom.Control = AddToInstallButton
Left = 6 Left = 6
Height = 281 Height = 287
Top = 31 Top = 40
Width = 279 Width = 279
Anchors = [akTop, akLeft, akRight, akBottom] Anchors = [akTop, akLeft, akRight, akBottom]
MultiSelect = True MultiSelect = True
@ -432,10 +432,10 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
AnchorSideLeft.Side = asrCenter AnchorSideLeft.Side = asrCenter
AnchorSideBottom.Control = AvailablePkgGroupBox AnchorSideBottom.Control = AvailablePkgGroupBox
AnchorSideBottom.Side = asrBottom AnchorSideBottom.Side = asrBottom
Left = 81 Left = 79
Height = 25 Height = 29
Top = 318 Top = 333
Width = 128 Width = 132
Anchors = [akLeft, akBottom] Anchors = [akLeft, akBottom]
AutoSize = True AutoSize = True
BorderSpacing.Top = 6 BorderSpacing.Top = 6
@ -450,7 +450,7 @@ object InstallPkgSetDialog: TInstallPkgSetDialog
AnchorSideRight.Control = AvailablePkgGroupBox AnchorSideRight.Control = AvailablePkgGroupBox
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
Left = 6 Left = 6
Height = 23 Height = 32
Top = 2 Top = 2
Width = 279 Width = 279
ButtonWidth = 23 ButtonWidth = 23

View File

@ -807,25 +807,25 @@ begin
if PackageLink = nil then if PackageLink = nil then
begin begin
Author := Info.Author; Author := Info.Author;
Description := Info.Description; Description := Trim(Info.Description);
License := Info.License; License := Info.License;
end end
else else
begin begin
Author := PackageLink.Author; Author := PackageLink.Author;
Description := PackageLink.Description; Description := Trim(PackageLink.Description);
License := PackageLink.License; License := PackageLink.License;
end; end;
if Author<>'' then if Description<>'' then // Description is the most interesting piece.
PkgInfoMemo.Lines.Add(lisPckOptsAuthor + ': ' + Author); PkgInfoMemo.Lines.Add(Description); // Put it first.
if Description<>'' then
PkgInfoMemo.Lines.Add(lisPckOptsDescriptionAbstract + ': ' + Description);
if License<>'' then
PkgInfoMemoLicense.Lines.Add(lisPckOptsLicense + ': ' + License);
PkgInfoMemo.Lines.Add(''); PkgInfoMemo.Lines.Add('');
PkgInfoMemo.Lines.Add(Format(lisOIPFilename, [Info.LPKFilename])); if Author<>'' then
PkgInfoMemo.Lines.Add(lisPckOptsAuthor + ': ' + Author); // Author
PkgInfoMemo.Lines.Add(Format(lisOIPFilename, [Info.LPKFilename])); // Pkg name
if License<>'' then // License has its own memo.
PkgInfoMemoLicense.Lines.Add(lisPckOptsLicense + ': ' + License);
InfoStr:=lisCurrentState; InfoStr:=lisCurrentState;
if Info.Installed<>pitNope then if Info.Installed<>pitNope then