Skip to content

Commit

Permalink
Fix builds on newer Lazarus version
Browse files Browse the repository at this point in the history
  • Loading branch information
varianus committed Jan 3, 2024
1 parent d9e651f commit dc74e7f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 25 deletions.
7 changes: 4 additions & 3 deletions src/uequalizer.lfm
Expand Up @@ -8,6 +8,7 @@ object fEqualizer: TfEqualizer
ClientHeight = 467
ClientWidth = 736
Font.Height = -12
LCLVersion = '3.99.0.0'
OnCreate = FormCreate
OnDestroy = FormDestroy
object ButtonPanel1: TButtonPanel
Expand Down Expand Up @@ -41,8 +42,8 @@ object fEqualizer: TfEqualizer
Top = 40
Width = 117
Caption = 'Enable equalizer'
OnClick = cbEnableEqClick
TabOrder = 1
OnClick = cbEnableEqClick
end
object StaticText1: TStaticText
Left = 8
Expand All @@ -59,9 +60,9 @@ object fEqualizer: TfEqualizer
Top = 8
Width = 554
ItemHeight = 0
TabOrder = 0
OnChange = cbPresetChange
OnKeyPress = cbPresetKeyPress
TabOrder = 0
end
object bSavePreset: TSpeedButton
Left = 662
Expand All @@ -70,8 +71,8 @@ object fEqualizer: TfEqualizer
Width = 26
Caption = '+'
Font.Height = -21
OnClick = bSavePresetClick
ParentFont = False
OnClick = bSavePresetClick
end
object bRemovePreset: TSpeedButton
Left = 696
Expand Down
2 changes: 1 addition & 1 deletion src/uequalizer.pas
Expand Up @@ -25,7 +25,7 @@ interface

uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ButtonPanel,
ExtCtrls, StdCtrls, Buttons, equalizerband, AudioEngine, Equalizer, UITypes, Generics.Collections;
ExtCtrls, StdCtrls, Buttons, equalizerband, AudioEngine, Equalizer, Generics.Collections;

type

Expand Down
36 changes: 17 additions & 19 deletions src/umain.lfm
Expand Up @@ -12,15 +12,16 @@ object fMainForm: TfMainForm
Constraints.MinWidth = 505
Font.Height = -12
Menu = MainMenu
Position = poMainFormCenter
ShowHint = True
LCLVersion = '3.99.0.0'
OnClose = FormClose
OnCreate = FormCreate
OnDestroy = FormDestroy
OnDropFiles = FormDropFiles
OnHide = FormHide
OnResize = FormResize
OnShow = FormShow
Position = poMainFormCenter
ShowHint = True
object pnlleft: TPanel
Left = 0
Height = 547
Expand All @@ -39,11 +40,11 @@ object fMainForm: TfMainForm
ActivePage = tsCollection
Align = alClient
MultiLine = True
Options = [nboMultiLine, nboHidePageListPopup]
TabIndex = 0
TabOrder = 0
TabPosition = tpBottom
OnChange = pcMainChange
Options = [nboMultiLine, nboHidePageListPopup]
object tsCollection: TTabSheet
Caption = 'Collection'
ClientHeight = 409
Expand Down Expand Up @@ -73,10 +74,10 @@ object fMainForm: TfMainForm
'Year / Album'
'Genre / Album'
)
OnChange = cbGroupByChange
Style = csDropDownList
TabOrder = 0
Text = 'AlbumArtist / Album'
OnChange = cbGroupByChange
end
object edtFilter: TLabeledEdit
Left = 40
Expand Down Expand Up @@ -141,8 +142,8 @@ object fMainForm: TfMainForm
}
Images = DM.ilButtons
ImageIndex = 20
OnClick = btnFilterCancelClick
ShowCaption = False
OnClick = btnFilterCancelClick
end
end
object tvCollection: TTreeView
Expand All @@ -162,12 +163,11 @@ object fMainForm: TfMainForm
RowSelect = True
ScrollBars = ssAutoBoth
ShowHint = True
ShowSeparators = False
TabOrder = 1
Options = [tvoAllowMultiselect, tvoAutoItemHeight, tvoHideSelection, tvoKeepCollapsedNodes, tvoReadOnly, tvoRightClickSelect, tvoRowSelect, tvoShowButtons, tvoShowLines, tvoShowRoot, tvoToolTips, tvoThemedDraw]
OnCreateNodeClass = tvCollectionCreateNodeClass
OnDblClick = tvCollectionDblClick
OnGetImageIndex = tvCollectionGetImageIndex
Options = [tvoAllowMultiselect, tvoAutoItemHeight, tvoHideSelection, tvoKeepCollapsedNodes, tvoReadOnly, tvoRightClickSelect, tvoRowSelect, tvoShowButtons, tvoShowLines, tvoShowRoot, tvoToolTips, tvoThemedDraw]
end
end
object tsDirectory: TTabSheet
Expand Down Expand Up @@ -240,14 +240,13 @@ object fMainForm: TfMainForm
RightClickSelect = True
RowSelect = True
ScrollBars = ssAutoBoth
ShowSeparators = False
TabOrder = 1
Options = [tvoAllowMultiselect, tvoAutoItemHeight, tvoKeepCollapsedNodes, tvoReadOnly, tvoRightClickSelect, tvoRowSelect, tvoShowButtons, tvoShowLines, tvoShowRoot, tvoToolTips, tvoThemedDraw]
OnCreateNodeClass = FilesTreeCreateNodeClass
OnDblClick = FilesTreeDblClick
OnGetImageIndex = FilesTreeGetImageIndex
OnGetSelectedIndex = FilesTreeGetSelectedIndex
OnKeyDown = FilesTreeKeyDown
Options = [tvoAllowMultiselect, tvoAutoItemHeight, tvoKeepCollapsedNodes, tvoReadOnly, tvoRightClickSelect, tvoRowSelect, tvoShowButtons, tvoShowLines, tvoShowRoot, tvoToolTips, tvoThemedDraw]
end
end
object tsPlayList: TTabSheet
Expand All @@ -266,16 +265,15 @@ object fMainForm: TfMainForm
RightClickSelect = True
RowSelect = True
ScrollBars = ssAutoBoth
ShowSeparators = False
TabOrder = 0
OnCreateNodeClass = PlaylistTreeCreateNodeClass
OnDblClick = PlaylistTreeDblClick
Options = [tvoAutoItemHeight, tvoHideSelection, tvoKeepCollapsedNodes, tvoReadOnly, tvoRightClickSelect, tvoRowSelect, tvoShowButtons, tvoShowLines, tvoShowRoot, tvoToolTips, tvoThemedDraw]
Items.Data = {
F9FFFFFF020001000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF010000000000
000001130000004175746F6D6174696320706C61796C69737473FFFFFFFFFFFF
FFFF63000000FFFFFFFF000000000000000000010000002D
}
OnCreateNodeClass = PlaylistTreeCreateNodeClass
OnDblClick = PlaylistTreeDblClick
end
end
end
Expand Down Expand Up @@ -338,8 +336,8 @@ object fMainForm: TfMainForm
}
Images = DM.ilSmall
ImageIndex = 16
OnClick = btnCloseCollectionStatClick
ShowCaption = False
OnClick = btnCloseCollectionStatClick
end
object sgStats: TStringGrid
Left = 0
Expand Down Expand Up @@ -417,10 +415,10 @@ object fMainForm: TfMainForm
Height = 101
Top = 4
Width = 101
OnDblClick = imgCoverDblClick
ParentShowHint = False
ShowHint = True
Stretch = True
OnDblClick = imgCoverDblClick
end
object Title: TLabel
Left = 110
Expand Down Expand Up @@ -689,13 +687,13 @@ object fMainForm: TfMainForm
end
object ToolButton8: TToolButton
Left = 87
Height = 23
Height = 8
Top = 0
Style = tbsSeparator
end
object ToolButton9: TToolButton
Left = 53
Height = 23
Height = 8
Top = 0
Style = tbsSeparator
end
Expand All @@ -711,8 +709,8 @@ object fMainForm: TfMainForm
DropdownMenu = RepeatMenu
Grouped = True
ImageIndex = 10
OnClick = tbRepeatClick
Style = tbsDropDown
OnClick = tbRepeatClick
end
object ToolButton16: TToolButton
Left = 305
Expand All @@ -726,15 +724,15 @@ object fMainForm: TfMainForm
end
object ToolButton18: TToolButton
Left = 199
Height = 23
Height = 8
Top = 0
AutoSize = True
Enabled = False
Style = tbsSeparator
end
object ToolButton12: TToolButton
Left = 271
Height = 23
Height = 8
Top = 0
Style = tbsSeparator
end
Expand Down
4 changes: 2 additions & 2 deletions src/umain.pas
Expand Up @@ -39,7 +39,7 @@ interface
{$IFDEF MULTIMEDIA_KEYS}MultimediaKeys, {$ENDIF}
{$IFDEF SCREEN_LOCK}screenlock,{$ENDIF}
ucover, ucustomplaylist, playlistbuilder, netprotocol,
GuiConfig, uequalizer, uscanresult, ThemedSlider, LCLType, UITypes;
GuiConfig, uequalizer, uscanresult, ThemedSlider, LCLType;

type
TSortFields = record
Expand Down Expand Up @@ -2414,7 +2414,7 @@ procedure TfMainForm.sgPlayListDrawCell(Sender: TObject; aCol, aRow: integer; aR
trunc(RatingBack.Width * (CurrRating / 10)) - 1,
RatingBack.Height);
r2 := r1;
OffsetRect(R2, aRect.Left, aRect.top);
Types.OffsetRect(R2, aRect.Left, aRect.top);
sgPlayList.Canvas.CopyRect(r2, RatingFront.Canvas, r1);
end;

Expand Down

0 comments on commit dc74e7f

Please sign in to comment.