Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
2,679 additions
and
241,741 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,80 @@ | ||
{ * | ||
* Copyright (C) 2011-2015 ozok <ozok26@gmail.com> | ||
* | ||
* This file is part of TEncoder. | ||
* | ||
* TEncoder is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* TEncoder is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with TEncoder. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* } | ||
unit DownloadItemFrame; | ||
|
||
interface | ||
|
||
uses | ||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, | ||
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, sPanel, | ||
sGauge, Vcl.StdCtrls, sComboBox, sLabel, acImage, sButton, sBevel; | ||
|
||
type | ||
TDownloadUIItem = class(TFrame) | ||
LinkLabel: TsLabel; | ||
FileNameLabel: TsLabel; | ||
FormatList: TsComboBox; | ||
SubtitleList: TsComboBox; | ||
ProgressLabel: TsLabel; | ||
ProgressBar: TsGauge; | ||
sPanel1: TsPanel; | ||
DeleteButton: TsButton; | ||
sPanel2: TsPanel; | ||
PrevievImg: TsImage; | ||
sBevel1: TsBevel; | ||
private | ||
{ Private declarations } | ||
public | ||
{ Public declarations } | ||
procedure ResetProgressLabel; | ||
procedure Disable; | ||
procedure Enable; | ||
end; | ||
|
||
implementation | ||
|
||
{$R *.dfm} | ||
{ TDownloadUIItem } | ||
|
||
procedure TDownloadUIItem.Disable; | ||
begin | ||
LinkLabel.Enabled := False; | ||
FileNameLabel.Enabled := False; | ||
FormatList.Enabled := False; | ||
SubtitleList.Enabled := False; | ||
DeleteButton.Enabled := False; | ||
end; | ||
|
||
procedure TDownloadUIItem.Enable; | ||
begin | ||
LinkLabel.Enabled := True; | ||
FileNameLabel.Enabled := True; | ||
FormatList.Enabled := True; | ||
SubtitleList.Enabled := True; | ||
DeleteButton.Enabled := True; | ||
end; | ||
|
||
procedure TDownloadUIItem.ResetProgressLabel; | ||
begin | ||
ProgressLabel.Caption := ''; | ||
ProgressBar.Progress := 0; | ||
end; | ||
|
||
end. | ||
{ * | ||
* Copyright (C) 2011-2016 ozok <ozok26@gmail.com> | ||
* | ||
* This file is part of TEncoder. | ||
* | ||
* TEncoder is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* TEncoder is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with TEncoder. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* } | ||
unit DownloadItemFrame; | ||
|
||
interface | ||
|
||
uses | ||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, | ||
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, | ||
Vcl.StdCtrls, Vcl.Samples.Gauges; | ||
|
||
type | ||
TDownloadUIItem = class(TFrame) | ||
LinkLabel: TLabel; | ||
FileNameLabel: TLabel; | ||
FormatList: TComboBox; | ||
SubtitleList: TComboBox; | ||
ProgressLabel: TLabel; | ||
ProgressBar: TGauge; | ||
sPanel1: TPanel; | ||
DeleteButton: TButton; | ||
sPanel2: TPanel; | ||
PrevievImg: TImage; | ||
sBevel1: TBevel; | ||
private | ||
{ Private declarations } | ||
public | ||
{ Public declarations } | ||
procedure ResetProgressLabel; | ||
procedure Disable; | ||
procedure Enable; | ||
end; | ||
|
||
implementation | ||
|
||
{$R *.dfm} | ||
{ TDownloadUIItem } | ||
|
||
procedure TDownloadUIItem.Disable; | ||
begin | ||
LinkLabel.Enabled := False; | ||
FileNameLabel.Enabled := False; | ||
FormatList.Enabled := False; | ||
SubtitleList.Enabled := False; | ||
DeleteButton.Enabled := False; | ||
end; | ||
|
||
procedure TDownloadUIItem.Enable; | ||
begin | ||
LinkLabel.Enabled := True; | ||
FileNameLabel.Enabled := True; | ||
FormatList.Enabled := True; | ||
SubtitleList.Enabled := True; | ||
DeleteButton.Enabled := True; | ||
end; | ||
|
||
procedure TDownloadUIItem.ResetProgressLabel; | ||
begin | ||
ProgressLabel.Caption := ''; | ||
ProgressBar.Progress := 0; | ||
end; | ||
|
||
end. |
Oops, something went wrong.