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 | |
---|
1 | unit UCDMaster;
|
---|
2 |
|
---|
3 | {$mode objfpc}{$H+}
|
---|
4 |
|
---|
5 | interface
|
---|
6 |
|
---|
7 | uses
|
---|
8 | Classes, SysUtils, UCDCommon, UCDManager;
|
---|
9 |
|
---|
10 | type
|
---|
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 |
|
---|
37 | procedure Register;
|
---|
38 |
|
---|
39 | implementation
|
---|
40 |
|
---|
41 | procedure Register;
|
---|
42 | begin
|
---|
43 | RegisterComponents('CoolDocking', [TCDMaster]);
|
---|
44 | end;
|
---|
45 |
|
---|
46 | { TCDMaster }
|
---|
47 |
|
---|
48 | procedure TCDMaster.SetTabsEnabled(const AValue: Boolean);
|
---|
49 | begin
|
---|
50 | if FTabsEnabled = AValue then Exit;
|
---|
51 | FTabsEnabled := AValue;
|
---|
52 | end;
|
---|
53 |
|
---|
54 | procedure TCDMaster.SetShowIcons(const AValue: Boolean);
|
---|
55 | begin
|
---|
56 | if FShowIcons = AValue then Exit;
|
---|
57 | FShowIcons := AValue;
|
---|
58 | end;
|
---|
59 |
|
---|
60 | constructor TCDMaster.Create(AOwner: TComponent);
|
---|
61 | begin
|
---|
62 | inherited Create(AOwner);
|
---|
63 | end;
|
---|
64 |
|
---|
65 | destructor TCDMaster.Destroy;
|
---|
66 | var
|
---|
67 | I: Integer;
|
---|
68 | begin
|
---|
69 | // Assigning nil to Client Master property cause unregistring client from list
|
---|
70 | Customize := nil;
|
---|
71 | inherited Destroy;
|
---|
72 | end;
|
---|
73 |
|
---|
74 | end.
|
---|
75 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.