You've already forked lazarus-ccr
jvcllaz: Fix JvId3v2 demo for Linux (Replace PageControl by NoteBook because Pagecontrol tabs with TabVisible=false are not shown at all in Linux).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6325 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -13,7 +13,6 @@
|
|||||||
<XPManifest>
|
<XPManifest>
|
||||||
<DpiAware Value="True"/>
|
<DpiAware Value="True"/>
|
||||||
</XPManifest>
|
</XPManifest>
|
||||||
<Icon Value="0"/>
|
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
@ -41,18 +40,16 @@
|
|||||||
<Unit1>
|
<Unit1>
|
||||||
<Filename Value="JvId3v2EditFormU.pas"/>
|
<Filename Value="JvId3v2EditFormU.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<ComponentName Value="JvId3v2EditForm"/>
|
<ComponentName Value="JvID3v2EditForm"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="JvId3v2EditFormU"/>
|
|
||||||
</Unit1>
|
</Unit1>
|
||||||
<Unit2>
|
<Unit2>
|
||||||
<Filename Value="JvId3v2MainFormU.pas"/>
|
<Filename Value="JvId3v2MainFormU.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<ComponentName Value="JvId3v2MainForm"/>
|
<ComponentName Value="JvID3v2MainForm"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="JvId3v2MainFormU"/>
|
|
||||||
</Unit2>
|
</Unit2>
|
||||||
</Units>
|
</Units>
|
||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -37,13 +37,17 @@ uses
|
|||||||
JvID3v2Base, JvId3v2; //, JvComponent, ImgList, ToolWin; //, JvComponentBase;
|
JvID3v2Base, JvId3v2; //, JvComponent, ImgList, ToolWin; //, JvComponentBase;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
{ TJvID3v2EditForm }
|
||||||
|
|
||||||
TJvID3v2EditForm = class(TForm)
|
TJvID3v2EditForm = class(TForm)
|
||||||
PageControl1: TPageControl;
|
Notebook1: TNotebook;
|
||||||
|
PgWinAmpTags: TPage;
|
||||||
|
PgLyrics: TPage;
|
||||||
|
PgPicture: TPage;
|
||||||
|
PgAllFrames: TPage;
|
||||||
lsbNavigator: TListBox;
|
lsbNavigator: TListBox;
|
||||||
ToolBar1: TToolBar;
|
ToolBar1: TToolBar;
|
||||||
tshWinampTags: TTabSheet;
|
|
||||||
tshLyrics: TTabSheet;
|
|
||||||
tshPictures: TTabSheet;
|
|
||||||
lblTitle: TLabel;
|
lblTitle: TLabel;
|
||||||
lblArtist: TLabel;
|
lblArtist: TLabel;
|
||||||
lblAlbum: TLabel;
|
lblAlbum: TLabel;
|
||||||
@ -91,7 +95,6 @@ type
|
|||||||
lblPictureType: TLabel;
|
lblPictureType: TLabel;
|
||||||
edtPictureName: TEdit;
|
edtPictureName: TEdit;
|
||||||
cmbPictureType: TComboBox;
|
cmbPictureType: TComboBox;
|
||||||
tshAllFrames: TTabSheet;
|
|
||||||
lsvAllFrames: TListView;
|
lsvAllFrames: TListView;
|
||||||
btnChange: TButton;
|
btnChange: TButton;
|
||||||
actChangePicture: TAction;
|
actChangePicture: TAction;
|
||||||
@ -108,6 +111,7 @@ type
|
|||||||
procedure actAddPictureExecute(Sender: TObject);
|
procedure actAddPictureExecute(Sender: TObject);
|
||||||
procedure actDeletePictureExecute(Sender: TObject);
|
procedure actDeletePictureExecute(Sender: TObject);
|
||||||
procedure actSavePictureExecute(Sender: TObject);
|
procedure actSavePictureExecute(Sender: TObject);
|
||||||
|
procedure FormShow(Sender: TObject);
|
||||||
procedure lsvPicturesClick(Sender: TObject);
|
procedure lsvPicturesClick(Sender: TObject);
|
||||||
procedure lsbNavigatorClick(Sender: TObject);
|
procedure lsbNavigatorClick(Sender: TObject);
|
||||||
procedure actChangePictureExecute(Sender: TObject);
|
procedure actChangePictureExecute(Sender: TObject);
|
||||||
@ -354,15 +358,11 @@ end;
|
|||||||
procedure TJvID3v2EditForm.Init;
|
procedure TJvID3v2EditForm.Init;
|
||||||
begin
|
begin
|
||||||
Caption := Format('Edit ''%s''', [ExtractFileName(JvID3v21.FileName)]);
|
Caption := Format('Edit ''%s''', [ExtractFileName(JvID3v21.FileName)]);
|
||||||
|
|
||||||
JvID3v21.Open;
|
JvID3v21.Open;
|
||||||
|
|
||||||
TagToCtrls;
|
TagToCtrls;
|
||||||
|
|
||||||
imgPicture.Picture.Assign(nil);
|
imgPicture.Picture.Assign(nil);
|
||||||
|
|
||||||
lsbNavigator.ItemIndex := 0;
|
lsbNavigator.ItemIndex := 0;
|
||||||
PageControl1.ActivePage := tshWinampTags;
|
Notebook1.PageIndex := lsbNavigator.ItemIndex;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function ChangeYear(const ADateTime: TDateTime; const NewYear: Word): TDateTime;
|
function ChangeYear(const ADateTime: TDateTime; const NewYear: Word): TDateTime;
|
||||||
@ -553,6 +553,15 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TJvID3v2EditForm.FormShow(Sender: TObject);
|
||||||
|
var
|
||||||
|
P: TPoint;
|
||||||
|
begin
|
||||||
|
P := Point(0, EdtEncodedBy.Top + EdtEncodedby.Height + EdtEncodedBy.BorderSpacing.Bottom);
|
||||||
|
P := ScreenToClient(EdtEncodedBy.Parent.ClientToScreen(P));
|
||||||
|
Height := P.Y;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TJvID3v2EditForm.lsvPicturesClick(Sender: TObject);
|
procedure TJvID3v2EditForm.lsvPicturesClick(Sender: TObject);
|
||||||
var
|
var
|
||||||
Frame: TJvID3PictureFrame;
|
Frame: TJvID3PictureFrame;
|
||||||
@ -574,12 +583,7 @@ end;
|
|||||||
|
|
||||||
procedure TJvID3v2EditForm.lsbNavigatorClick(Sender: TObject);
|
procedure TJvID3v2EditForm.lsbNavigatorClick(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
case lsbNavigator.ItemIndex of
|
Notebook1.PageIndex := lsbNavigator.ItemIndex;
|
||||||
0: PageControl1.ActivePage := tshWinampTags;
|
|
||||||
1: PageControl1.ActivePage := tshLyrics;
|
|
||||||
2: PageControl1.ActivePage := tshPictures;
|
|
||||||
3: PageControl1.ActivePage := tshAllFrames;
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TJvID3v2EditForm.FillPictureTypes(Strings: TStrings);
|
procedure TJvID3v2EditForm.FillPictureTypes(Strings: TStrings);
|
||||||
|
@ -49,6 +49,7 @@ object JvID3v2MainForm: TJvID3v2MainForm
|
|||||||
end>
|
end>
|
||||||
ReadOnly = True
|
ReadOnly = True
|
||||||
RowSelect = True
|
RowSelect = True
|
||||||
|
SortType = stText
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
ViewStyle = vsReport
|
ViewStyle = vsReport
|
||||||
OnDblClick = ListView1DblClick
|
OnDblClick = ListView1DblClick
|
||||||
@ -68,7 +69,7 @@ object JvID3v2MainForm: TJvID3v2MainForm
|
|||||||
Top = 1
|
Top = 1
|
||||||
Width = 183
|
Width = 183
|
||||||
Align = alClient
|
Align = alClient
|
||||||
FileSortType = fstNone
|
FileSortType = fstAlphabet
|
||||||
Images = ImageList1
|
Images = ImageList1
|
||||||
ReadOnly = True
|
ReadOnly = True
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
|
Reference in New Issue
Block a user