You've already forked lazarus-ccr
spktoolbar: Define default values for properties. Register GroupBehaviour to be skipped for SpkCheckbox and SpkRadiobox (removes lfm breakage introduced by r6170).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6180 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -75,8 +75,8 @@ type
|
||||
property Rect: T2DIntRect read FRect write SetRect;
|
||||
|
||||
published
|
||||
property Visible: boolean read FVisible write SetVisible;
|
||||
property Enabled: boolean read FEnabled write SetEnabled;
|
||||
property Visible: boolean read FVisible write SetVisible default true;
|
||||
property Enabled: boolean read FEnabled write SetEnabled default true;
|
||||
end;
|
||||
|
||||
TSpkBaseItemClass = class of TSpkBaseItem;
|
||||
|
@ -103,7 +103,7 @@ type
|
||||
procedure SetRect(const Value: T2DIntRect); override;
|
||||
|
||||
property AllowAllUp: Boolean read FAllowAllUp write SetAllowAllUp default false;
|
||||
property ButtonKind: TSpkButtonKind read FButtonKind write SetButtonKind;
|
||||
property ButtonKind: TSpkButtonKind read FButtonKind write SetButtonKind default bkButton;
|
||||
property Checked: Boolean read GetChecked write SetChecked default false;
|
||||
property DropdownMenu: TPopupMenu read FDropdownMenu write SetDropdownMenu;
|
||||
property GroupIndex: Integer read FGroupIndex write SetGroupIndex default 0;
|
||||
@ -146,7 +146,8 @@ type
|
||||
function GetTableBehaviour: TSpkItemTableBehaviour; override;
|
||||
function GetWidth: integer; override;
|
||||
published
|
||||
property LargeImageIndex: TImageIndex read FLargeImageIndex write SetLargeImageIndex default -1;
|
||||
property LargeImageIndex: TImageIndex
|
||||
read FLargeImageIndex write SetLargeImageIndex default -1;
|
||||
property AllowAllUp;
|
||||
property ButtonKind;
|
||||
property Checked;
|
||||
@ -181,11 +182,16 @@ type
|
||||
function GetTableBehaviour: TSpkItemTableBehaviour; override;
|
||||
function GetWidth: integer; override;
|
||||
published
|
||||
property GroupBehaviour: TSpkItemGroupBehaviour read FGroupBehaviour write SetGroupBehaviour;
|
||||
property HideFrameWhenIdle: boolean read FHideFrameWhenIdle write SetHideFrameWhenIdle;
|
||||
property ImageIndex: TImageIndex read FImageIndex write SetImageIndex default -1;
|
||||
property ShowCaption: boolean read FShowCaption write SetShowCaption;
|
||||
property TableBehaviour: TSpkItemTableBehaviour read FTableBehaviour write SetTableBehaviour;
|
||||
property GroupBehaviour: TSpkItemGroupBehaviour
|
||||
read FGroupBehaviour write SetGroupBehaviour default gbSingleItem;
|
||||
property HideFrameWhenIdle: boolean
|
||||
read FHideFrameWhenIdle write SetHideFrameWhenIdle default false;
|
||||
property ImageIndex: TImageIndex
|
||||
read FImageIndex write SetImageIndex default -1;
|
||||
property ShowCaption: boolean
|
||||
read FShowCaption write SetShowCaption default true;
|
||||
property TableBehaviour: TSpkItemTableBehaviour
|
||||
read FTableBehaviour write SetTableBehaviour default tbContinuesRow;
|
||||
property AllowAllUp;
|
||||
property ButtonKind;
|
||||
property Checked;
|
||||
|
@ -34,8 +34,8 @@ type
|
||||
function GetWidth: integer; override;
|
||||
published
|
||||
property Checked;
|
||||
property State: TCheckboxState read FState write SetState;
|
||||
property TableBehaviour: TSpkItemTableBehaviour read FTableBehaviour write SetTableBehaviour;
|
||||
property State: TCheckboxState read FState write SetState default cbUnchecked;
|
||||
property TableBehaviour: TSpkItemTableBehaviour read FTableBehaviour write SetTableBehaviour default tbContinuesRow;
|
||||
end;
|
||||
|
||||
TSpkCheckbox = class(TSpkCustomCheckbox)
|
||||
|
@ -106,7 +106,7 @@ type
|
||||
|
||||
published
|
||||
property Caption: string read FCaption write SetCaption;
|
||||
property Visible: boolean read FVisible write SetVisible;
|
||||
property Visible: boolean read FVisible write SetVisible default true;
|
||||
end;
|
||||
|
||||
TSpkPanes = class(TSpkCollection)
|
||||
|
@ -122,8 +122,8 @@ type
|
||||
published
|
||||
property CustomAppearance: TSpkToolbarAppearance read FCustomAppearance write SetCustomAppearance;
|
||||
property Caption: string read FCaption write SetCaption;
|
||||
property OverrideAppearance: boolean read FOverrideAppearance write SetOverrideAppearance;
|
||||
property Visible: boolean read FVisible write SetVisible;
|
||||
property OverrideAppearance: boolean read FOverrideAppearance write SetOverrideAppearance default false;
|
||||
property Visible: boolean read FVisible write SetVisible default true;
|
||||
property OnClick: TNotifyEvent read FOnClick write FOnClick;
|
||||
end;
|
||||
|
||||
|
@ -2255,9 +2255,6 @@ object Form1: TForm1
|
||||
0000000000000000000000000000000000000000000000000003000000090000
|
||||
0010000000150000001100000006
|
||||
}
|
||||
BitmapAdv = {
|
||||
4C6900000000
|
||||
}
|
||||
end
|
||||
object SmallImages: TImageList
|
||||
left = 456
|
||||
@ -2649,8 +2646,5 @@ object Form1: TForm1
|
||||
0033000000330000003300000033000000330000003300000033000000330000
|
||||
0033000000330000003300000023
|
||||
}
|
||||
BitmapAdv = {
|
||||
4C6900000000
|
||||
}
|
||||
end
|
||||
end
|
||||
|
@ -59,8 +59,20 @@ begin
|
||||
//todo: register Caption Editor
|
||||
end;
|
||||
|
||||
procedure SkipObsoleteProperties;
|
||||
const
|
||||
GROUPBEHAVIOUR_NOTE = 'GroupBehaviour is not needed.';
|
||||
begin
|
||||
RegisterPropertyToSkip(TSpkCheckbox, 'Groupbehaviour', GROUPBEHAVIOUR_NOTE, '');
|
||||
RegisterPropertyToSkip(TSpkRadioButton, 'GroupBehaviour', GROUPBEHAVIOUR_NOTE, '');
|
||||
end;
|
||||
|
||||
|
||||
initialization
|
||||
{$I SpkToolbar.lrs}
|
||||
|
||||
SkipObsoleteProperties;
|
||||
|
||||
end.
|
||||
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
</CompilerOptions>
|
||||
<Description Value="Ribbon-like toolbar"/>
|
||||
<License Value="Modified LGPL (like Lazarus)"/>
|
||||
<Version Minor="1" Release="5"/>
|
||||
<Version Minor="1" Release="6"/>
|
||||
<Files Count="26">
|
||||
<Item1>
|
||||
<Filename Value="SpkToolbar\spkt_Appearance.pas"/>
|
||||
|
Reference in New Issue
Block a user