You've already forked lazarus-ccr
tvplanit: Cleaning up unit VpBase
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6433 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -389,6 +389,7 @@ uses
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
VpMisc;
|
VpMisc;
|
||||||
|
|
||||||
|
|
||||||
{ EAdStreamError }
|
{ EAdStreamError }
|
||||||
|
|
||||||
constructor EVpStreamError.CreateError(const FilePos: Integer;
|
constructor EVpStreamError.CreateError(const FilePos: Integer;
|
||||||
@ -411,6 +412,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
|
|
||||||
{ EAdFilterError }
|
{ EAdFilterError }
|
||||||
|
|
||||||
constructor EVpFilterError.CreateError(const FilePos, Line, LinePos: Integer;
|
constructor EVpFilterError.CreateError(const FilePos, Line, LinePos: Integer;
|
||||||
@ -433,6 +435,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
|
|
||||||
{ EAdParserError }
|
{ EAdParserError }
|
||||||
|
|
||||||
constructor EVpParserError.CreateError(Line, LinePos: Integer;
|
constructor EVpParserError.CreateError(Line, LinePos: Integer;
|
||||||
@ -449,6 +452,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
|
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{ TVpCustomControl }
|
{ TVpCustomControl }
|
||||||
|
|
||||||
@ -457,7 +461,6 @@ begin
|
|||||||
inherited Create (AOwner);
|
inherited Create (AOwner);
|
||||||
TabStop := True;
|
TabStop := True;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpCustomControl.CMVisibleChanged(var Msg: {$IFDEF DELPHI}TMessage{$ELSE}TLMessage{$ENDIF});
|
procedure TVpCustomControl.CMVisibleChanged(var Msg: {$IFDEF DELPHI}TMessage{$ELSE}TLMessage{$ENDIF});
|
||||||
begin
|
begin
|
||||||
@ -465,26 +468,22 @@ begin
|
|||||||
if csLoading in ComponentState then
|
if csLoading in ComponentState then
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpCustomControl.CreateWnd;
|
procedure TVpCustomControl.CreateWnd;
|
||||||
begin
|
begin
|
||||||
inherited CreateWnd;
|
inherited CreateWnd;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
function TVpCustomControl.GetVersion: string;
|
function TVpCustomControl.GetVersion: string;
|
||||||
begin
|
begin
|
||||||
Result := VpVersionStr;
|
Result := VpVersionStr;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpCustomControl.SetVersion(const Value: string);
|
procedure TVpCustomControl.SetVersion(const Value: string);
|
||||||
begin
|
begin
|
||||||
// This method left intentionally blank.
|
// This method left intentionally blank.
|
||||||
Unused(Value);
|
Unused(Value);
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
{$IFDEF DELPHI}
|
{$IFDEF DELPHI}
|
||||||
procedure TVpCustomControl.WMMouseWheel(var Msg: TMessage);
|
procedure TVpCustomControl.WMMouseWheel(var Msg: TMessage);
|
||||||
@ -504,9 +503,8 @@ begin
|
|||||||
if Assigned(FOnMouseWheel) then
|
if Assigned(FOnMouseWheel) then
|
||||||
FOnMouseWheel(Self, Shift, Delta, XPos, YPos);
|
FOnMouseWheel(Self, Shift, Delta, XPos, YPos);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{=====}
|
|
||||||
|
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{ TVpCollection }
|
{ TVpCollection }
|
||||||
@ -516,7 +514,6 @@ begin
|
|||||||
FOwner := AOwner;
|
FOwner := AOwner;
|
||||||
Inherited Create(ItemClass);
|
Inherited Create(ItemClass);
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
destructor TVpCollection.Destroy;
|
destructor TVpCollection.Destroy;
|
||||||
begin
|
begin
|
||||||
@ -524,20 +521,17 @@ begin
|
|||||||
Clear;
|
Clear;
|
||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpCollection.DoOnItemSelected(Index: Integer);
|
procedure TVpCollection.DoOnItemSelected(Index: Integer);
|
||||||
begin
|
begin
|
||||||
if Assigned(FOnItemSelected) then
|
if Assigned(FOnItemSelected) then
|
||||||
FOnItemSelected(Self, Index);
|
FOnItemSelected(Self, Index);
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
function TVpCollection.GetCount: Integer;
|
function TVpCollection.GetCount: Integer;
|
||||||
begin
|
begin
|
||||||
Result := inherited Count;
|
Result := inherited Count;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
function TVpCollection.GetEditorCaption: string;
|
function TVpCollection.GetEditorCaption: string;
|
||||||
begin
|
begin
|
||||||
@ -545,7 +539,6 @@ begin
|
|||||||
if Assigned(FOnGetEditorCaption) then
|
if Assigned(FOnGetEditorCaption) then
|
||||||
FOnGetEditorCaption(Result);
|
FOnGetEditorCaption(Result);
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
function TVpCollection.Add: TVpCollectionItem;
|
function TVpCollection.Add: TVpCollectionItem;
|
||||||
begin
|
begin
|
||||||
@ -553,7 +546,6 @@ begin
|
|||||||
if ItemEditor <> nil then
|
if ItemEditor <> nil then
|
||||||
//TODO: SendMessage(ItemEditor.Handle, Vp_PROPCHANGE, 0, 0);
|
//TODO: SendMessage(ItemEditor.Handle, Vp_PROPCHANGE, 0, 0);
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
{$IFNDEF VERSION4}
|
{$IFNDEF VERSION4}
|
||||||
function TVpCollection.Insert(Index: Integer): TVpCollectionItem;
|
function TVpCollection.Insert(Index: Integer): TVpCollectionItem;
|
||||||
@ -565,7 +557,6 @@ begin
|
|||||||
Items[I].Index := I + 1;
|
Items[I].Index := I + 1;
|
||||||
Items[Count - 1].Index := Index;
|
Items[Count - 1].Index := Index;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
function TVpCollection.GetItem(Index: Integer): TVpCollectionItem;
|
function TVpCollection.GetItem(Index: Integer): TVpCollectionItem;
|
||||||
@ -577,13 +568,11 @@ function TVpCollection.GetOwner: TPersistent;
|
|||||||
begin
|
begin
|
||||||
result := FOwner;
|
result := FOwner;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpCollection.SetItem(Index: Integer; Value: TVpCollectionItem);
|
procedure TVpCollection.SetItem(Index: Integer; Value: TVpCollectionItem);
|
||||||
begin
|
begin
|
||||||
inherited SetItem(Index, Value);
|
inherited SetItem(Index, Value);
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
function TVpCollection.ItemByName(const Name: string): TVpCollectionItem;
|
function TVpCollection.ItemByName(const Name: string): TVpCollectionItem;
|
||||||
var
|
var
|
||||||
@ -596,7 +585,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
Result := nil;
|
Result := nil;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpCollection.Loaded;
|
procedure TVpCollection.Loaded;
|
||||||
begin
|
begin
|
||||||
@ -608,7 +596,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
IsLoaded := True;
|
IsLoaded := True;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
function TVpCollection.ParentForm : TForm;
|
function TVpCollection.ParentForm : TForm;
|
||||||
var
|
var
|
||||||
@ -619,7 +606,6 @@ begin
|
|||||||
Temp := TComponent(Temp).Owner;
|
Temp := TComponent(Temp).Owner;
|
||||||
Result := TForm(Temp);
|
Result := TForm(Temp);
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
|
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
@ -629,19 +615,17 @@ function TVpCollectionItem.GetVersion: String;
|
|||||||
begin
|
begin
|
||||||
Result := VpVersionStr;
|
Result := VpVersionStr;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpCollectionItem.SetVersion(const Value: String);
|
procedure TVpCollectionItem.SetVersion(const Value: String);
|
||||||
begin
|
begin
|
||||||
Unused(Value);
|
Unused(Value);
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpCollectionItem.SetName(Value: String);
|
procedure TVpCollectionItem.SetName(Value: String);
|
||||||
begin
|
begin
|
||||||
FName := Value;
|
FName := Value;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{ TO32ContainerList }
|
{ TO32ContainerList }
|
||||||
@ -651,7 +635,6 @@ begin
|
|||||||
inherited Create;
|
inherited Create;
|
||||||
FOwner := TComponent(AOwner);
|
FOwner := TComponent(AOwner);
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
destructor TVpContainerList.Destroy;
|
destructor TVpContainerList.Destroy;
|
||||||
var
|
var
|
||||||
@ -661,7 +644,7 @@ begin
|
|||||||
TPanel(Items[I]).Free;
|
TPanel(Items[I]).Free;
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{ TVpComponent }
|
{ TVpComponent }
|
||||||
@ -670,20 +653,18 @@ constructor TVpComponent.Create(AOwner: TComponent);
|
|||||||
begin
|
begin
|
||||||
inherited Create(AOwner);
|
inherited Create(AOwner);
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
function TVpComponent.GetVersion: string;
|
function TVpComponent.GetVersion: string;
|
||||||
begin
|
begin
|
||||||
Result := VpVersionStr;
|
Result := VpVersionStr;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpComponent.SetVersion(const Value: string);
|
procedure TVpComponent.SetVersion(const Value: string);
|
||||||
begin
|
begin
|
||||||
// This method left intentionally blank.
|
// This method left intentionally blank.
|
||||||
Unused(Value);
|
Unused(Value);
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{ VpFont }
|
{ VpFont }
|
||||||
@ -700,14 +681,13 @@ begin
|
|||||||
else if FOwner is TVpPersistent then
|
else if FOwner is TVpPersistent then
|
||||||
TVpPersistent(FOwner).Invalidate;
|
TVpPersistent(FOwner).Invalidate;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
constructor TVpFont.Create(AOwner: TObject);
|
constructor TVpFont.Create(AOwner: TObject);
|
||||||
begin
|
begin
|
||||||
inherited Create;
|
inherited Create;
|
||||||
FOwner := AOwner;
|
FOwner := AOwner;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{ TVpCategoryColorMap }
|
{ TVpCategoryColorMap }
|
||||||
@ -728,71 +708,15 @@ begin
|
|||||||
FCat[i].Color := CAT_COLORS[i];
|
FCat[i].Color := CAT_COLORS[i];
|
||||||
FCat[i].Description := Format(RSCategoryDesc, [i]);
|
FCat[i].Description := Format(RSCategoryDesc, [i]);
|
||||||
end;
|
end;
|
||||||
{
|
|
||||||
FCat0 := TVpCategoryInfo.Create;
|
|
||||||
FCat0.Color := clNavy;
|
|
||||||
FCat0.Description := RSCategoryDesc0;
|
|
||||||
FCat0.FIndex := 0;
|
|
||||||
FCat1 := TVpCategoryInfo.Create;
|
|
||||||
FCat1.Color := clRed;
|
|
||||||
FCat1.Description := RSCategoryDesc1;
|
|
||||||
FCat1.FIndex := 1;
|
|
||||||
FCat2 := TVpCategoryInfo.Create;
|
|
||||||
FCat2.Color := clYellow;
|
|
||||||
FCat2.Description := RSCategoryDesc2;
|
|
||||||
FCat2.FIndex := 2;
|
|
||||||
FCat3 := TVpCategoryInfo.Create;
|
|
||||||
FCat3.Color := clLime;
|
|
||||||
FCat3.Description := RSCategoryDesc3;
|
|
||||||
FCat3.FIndex := 3;
|
|
||||||
FCat4 := TVpCategoryInfo.Create;
|
|
||||||
FCat4.Color := clPurple;
|
|
||||||
FCat4.Description := RSCategoryDesc4;
|
|
||||||
FCat4.FIndex := 4;
|
|
||||||
FCat5 := TVpCategoryInfo.Create;
|
|
||||||
FCat5.Color := clTeal;
|
|
||||||
FCat5.Description := RSCategoryDesc5;
|
|
||||||
FCat5.FIndex := 5;
|
|
||||||
FCat6 := TVpCategoryInfo.Create;
|
|
||||||
FCat6.Color := clFuchsia;
|
|
||||||
FCat6.Description := RSCategoryDesc6;
|
|
||||||
FCat6.FIndex := 6;
|
|
||||||
FCat7 := TVpCategoryInfo.Create;
|
|
||||||
FCat7.Color := clOlive;
|
|
||||||
FCat7.Description := RSCategoryDesc7;
|
|
||||||
FCat7.FIndex := 7;
|
|
||||||
FCat8 := TVpCategoryInfo.Create;
|
|
||||||
FCat8.Color := clAqua;
|
|
||||||
FCat8.Description := RSCategoryDesc8;
|
|
||||||
FCat8.FIndex := 8;
|
|
||||||
FCat9 := TVpCategoryInfo.Create;
|
|
||||||
FCat9.Color := clMaroon;
|
|
||||||
FCat9.Description := RSCategoryDesc9;
|
|
||||||
FCat9.FIndex := 9;
|
|
||||||
}
|
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
destructor TVpCategoryColorMap.Destroy;
|
destructor TVpCategoryColorMap.Destroy;
|
||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
for i:=0 to High(FCat) do FCat[i].Free;
|
for i:=0 to High(FCat) do FCat[i].Free;
|
||||||
{
|
|
||||||
FCat0.Free;
|
|
||||||
FCat1.Free;
|
|
||||||
FCat2.Free;
|
|
||||||
FCat3.Free;
|
|
||||||
FCat4.Free;
|
|
||||||
FCat5.Free;
|
|
||||||
FCat6.Free;
|
|
||||||
FCat7.Free;
|
|
||||||
FCat8.Free;
|
|
||||||
FCat9.Free;
|
|
||||||
}
|
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
function TVpCategoryColorMap.GetCategory(AIndex: Integer): TVpCategoryInfo;
|
function TVpCategoryColorMap.GetCategory(AIndex: Integer): TVpCategoryInfo;
|
||||||
begin
|
begin
|
||||||
@ -805,24 +729,7 @@ begin
|
|||||||
Result := FCat[Index].Color
|
Result := FCat[Index].Color
|
||||||
else
|
else
|
||||||
Result := clBlack;
|
Result := clBlack;
|
||||||
{
|
|
||||||
case Index of
|
|
||||||
0 : result := FCat0.Color;
|
|
||||||
1 : result := FCat1.Color;
|
|
||||||
2 : result := FCat2.Color;
|
|
||||||
3 : result := FCat3.Color;
|
|
||||||
4 : result := FCat4.Color;
|
|
||||||
5 : result := FCat5.Color;
|
|
||||||
6 : result := FCat6.Color;
|
|
||||||
7 : result := FCat7.Color;
|
|
||||||
8 : result := FCat8.Color;
|
|
||||||
9 : result := FCat9.Color;
|
|
||||||
else
|
|
||||||
result := clBlack;
|
|
||||||
end;
|
|
||||||
}
|
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
function TVpCategoryColorMap.GetName(Index: Integer): string;
|
function TVpCategoryColorMap.GetName(Index: Integer): string;
|
||||||
begin
|
begin
|
||||||
@ -830,30 +737,14 @@ begin
|
|||||||
Result := FCat[Index].Description
|
Result := FCat[Index].Description
|
||||||
else
|
else
|
||||||
Result := '';
|
Result := '';
|
||||||
{
|
|
||||||
case Index of
|
|
||||||
0 : result := FCat0.Description;
|
|
||||||
1 : result := FCat1.Description;
|
|
||||||
2 : result := FCat2.Description;
|
|
||||||
3 : result := FCat3.Description;
|
|
||||||
4 : result := FCat4.Description;
|
|
||||||
5 : result := FCat5.Description;
|
|
||||||
6 : result := FCat6.Description;
|
|
||||||
7 : result := FCat7.Description;
|
|
||||||
8 : result := FCat8.Description;
|
|
||||||
9 : result := FCat9.Description;
|
|
||||||
else
|
|
||||||
result := '';
|
|
||||||
end;
|
|
||||||
}
|
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpCategoryColorMap.SetCat(AIndex: Integer; AValue: TVpCategoryInfo);
|
procedure TVpCategoryColorMap.SetCat(AIndex: Integer; AValue: TVpCategoryInfo);
|
||||||
begin
|
begin
|
||||||
FCat[AIndex] := AValue;
|
FCat[AIndex] := AValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
{ TVpCategoryInfo }
|
{ TVpCategoryInfo }
|
||||||
|
|
||||||
@ -886,15 +777,12 @@ begin
|
|||||||
if Value <> FColor then
|
if Value <> FColor then
|
||||||
FColor := Value;
|
FColor := Value;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpCategoryInfo.SetDescription(Value: string);
|
procedure TVpCategoryInfo.SetDescription(Value: string);
|
||||||
begin
|
begin
|
||||||
if Value <> FDescription then
|
if Value <> FDescription then
|
||||||
FDescription := Value;
|
FDescription := Value;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{ TVpTimeRange }
|
{ TVpTimeRange }
|
||||||
@ -920,7 +808,6 @@ begin
|
|||||||
FRangeBegin := Value;
|
FRangeBegin := Value;
|
||||||
SetStartTime((Ord(Value) * 60) / MinutesInDay);
|
SetStartTime((Ord(Value) * 60) / MinutesInDay);
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpTimeRange.SetRangeEnd(const Value: TVpHours);
|
procedure TVpTimeRange.SetRangeEnd(const Value: TVpHours);
|
||||||
begin
|
begin
|
||||||
@ -931,7 +818,6 @@ begin
|
|||||||
FRangeEnd := Value;
|
FRangeEnd := Value;
|
||||||
SetEndTime((Ord(Value) * 60) / MinutesInDay);
|
SetEndTime((Ord(Value) * 60) / MinutesInDay);
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpTimeRange.SetEndTime(const Value: TDateTime);
|
procedure TVpTimeRange.SetEndTime(const Value: TDateTime);
|
||||||
begin
|
begin
|
||||||
@ -941,7 +827,6 @@ begin
|
|||||||
if FOwner is TVpTimeSlotColor then
|
if FOwner is TVpTimeSlotColor then
|
||||||
(FOwner as TVpTimeSlotColor).Changed;
|
(FOwner as TVpTimeSlotColor).Changed;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpTimeRange.SetStartTime(const Value: TDateTime);
|
procedure TVpTimeRange.SetStartTime(const Value: TDateTime);
|
||||||
begin
|
begin
|
||||||
@ -951,7 +836,6 @@ begin
|
|||||||
if FOwner is TVpTimeSlotColor then
|
if FOwner is TVpTimeSlotColor then
|
||||||
(FOwner as TVpTimeSlotColor).Changed;
|
(FOwner as TVpTimeSlotColor).Changed;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
|
|
||||||
(*****************************************************************************)
|
(*****************************************************************************)
|
||||||
@ -968,20 +852,17 @@ begin
|
|||||||
FActive := clWhite;
|
FActive := clWhite;
|
||||||
FWeekday := WEEKDAY_COLOR; //clWhite;
|
FWeekday := WEEKDAY_COLOR; //clWhite;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
destructor TVpTimeSlotColor.Destroy;
|
destructor TVpTimeSlotColor.Destroy;
|
||||||
begin
|
begin
|
||||||
FActiveRange.Free;
|
FActiveRange.Free;
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpTimeSlotColor.Changed;
|
procedure TVpTimeSlotColor.Changed;
|
||||||
begin
|
begin
|
||||||
FOwner.Invalidate;
|
FOwner.Invalidate;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpTimeSlotColor.SetActive(const Value: TColor);
|
procedure TVpTimeSlotColor.SetActive(const Value: TColor);
|
||||||
begin
|
begin
|
||||||
@ -990,7 +871,6 @@ begin
|
|||||||
Changed;
|
Changed;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpTimeSlotColor.SetHoliday(const Value: TColor);
|
procedure TVpTimeSlotColor.SetHoliday(const Value: TColor);
|
||||||
begin
|
begin
|
||||||
@ -999,7 +879,6 @@ begin
|
|||||||
Changed;
|
Changed;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpTimeSlotColor.SetInactive(const Value: TColor);
|
procedure TVpTimeSlotColor.SetInactive(const Value: TColor);
|
||||||
begin
|
begin
|
||||||
@ -1008,7 +887,6 @@ begin
|
|||||||
Changed;
|
Changed;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpTimeSlotColor.SetWeekday(const Value: TColor);
|
procedure TVpTimeSlotColor.SetWeekday(const Value: TColor);
|
||||||
begin
|
begin
|
||||||
@ -1017,7 +895,6 @@ begin
|
|||||||
Changed;
|
Changed;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
|
||||||
procedure TVpTimeSlotColor.SetWeekend(const Value: TColor);
|
procedure TVpTimeSlotColor.SetWeekend(const Value: TColor);
|
||||||
begin
|
begin
|
||||||
|
Reference in New Issue
Block a user