source: trunk/Packages/CoolDocking/UCDMaster.pas

Last change on this file was 73, checked in by chronos, 12 years ago
  • Modified: Packages are now stored as uncomporessed and are linked with relative path to project.
File size: 1.7 KB
Line 
1unit UCDMaster;
2
3{$mode objfpc}{$H+}
4
5interface
6
7uses
8 Classes, SysUtils, UCDCommon, UCDManager;
9
10type
11 { TCDMaster }
12
13 TCDMaster = class(TCDMasterBase)
14 private
15 FDefaultHeaderPos: THeaderPos;
16 FDefaultMoveSpeed: Integer;
17 FDefaultTabsPos: THeaderPos;
18 FShowIcons: Boolean;
19 FTabsEnabled: Boolean;
20 procedure SetShowIcons(const AValue: Boolean);
21 procedure SetTabsEnabled(const AValue: Boolean);
22 public
23 constructor Create(AOwner: TComponent); override;
24 destructor Destroy; override;
25 published
26 property TabsEnabled: Boolean read FTabsEnabled write SetTabsEnabled;
27 property DefaultTabsPos: THeaderPos read FDefaultTabsPos
28 write FDefaultTabsPos;
29 property DefaultHeaderPos: THeaderPos read FDefaultHeaderPos
30 write FDefaultHeaderPos;
31 property DefaultMoveSpeed: Integer read FDefaultMoveSpeed
32 write FDefaultMoveSpeed;
33 property ShowIcons: Boolean read FShowIcons
34 write SetShowIcons;
35 end;
36
37procedure Register;
38
39implementation
40
41procedure Register;
42begin
43 RegisterComponents('CoolDocking', [TCDMaster]);
44end;
45
46{ TCDMaster }
47
48procedure TCDMaster.SetTabsEnabled(const AValue: Boolean);
49begin
50 if FTabsEnabled = AValue then Exit;
51 FTabsEnabled := AValue;
52end;
53
54procedure TCDMaster.SetShowIcons(const AValue: Boolean);
55begin
56 if FShowIcons = AValue then Exit;
57 FShowIcons := AValue;
58end;
59
60constructor TCDMaster.Create(AOwner: TComponent);
61begin
62 inherited Create(AOwner);
63end;
64
65destructor TCDMaster.Destroy;
66var
67 I: Integer;
68begin
69 // Assigning nil to Client Master property cause unregistring client from list
70 Customize := nil;
71 inherited Destroy;
72end;
73
74end.
75
Note: See TracBrowser for help on using the repository browser.