Ignore:
Timestamp:
Mar 11, 2011, 10:44:06 AM (13 years ago)
Author:
george
Message:
  • Moved: Derive dock manager units moved to Managers subdirectory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCDManager.pas

    r191 r192  
    2626    FDockPanels: TCDPanels;
    2727    function GetDockSite: TWinControl;
    28     function GetDockStyle: TCDStyleType;
    2928    function GetHeaderPos: THeaderPos;
    3029    function GetMoveDuration: Integer;
    31     procedure InsertControlPanel(Control: TControl; InsertAt: TAlign;
    32       DropCtl: TControl);
    3330    procedure SetDockStyle(const AValue: TCDStyleType);
    3431    procedure SetHeaderPos(const AValue: THeaderPos);
     
    4340    procedure ChangeVisible(Control: TWinControl; Visible: Boolean); virtual;
    4441    procedure Assign(Source: TCDManager); virtual;
     42    procedure InsertControlPanel(Control: TControl; InsertAt: TAlign;
     43      DropCtl: TControl); virtual;
    4544
    4645    // Inherited from TDockManager
     
    6867    function CreateContainer(InsertAt: TAlign): TCDConjoinForm;
    6968    property DockPanels: TCDPanels read FDockPanels write FDockPanels;
    70     property DockStyle: TCDStyleType read GetDockStyle write SetDockStyle;
     69    property DockStyle: TCDStyleType read FDockStyle write SetDockStyle;
    7170    property MoveDuration: Integer read GetMoveDuration write SetMoveDuration;
    7271    property DockSite: TWinControl read GetDockSite;
     
    7978
    8079uses
    81   UCDStyleRegions, UCDStyleTabs, UCDStylePopupRegions, UCDStylePopupTabs;
     80  UCDManagerRegions, UCDManagerTabs, UCDManagerRegionsPopup, UCDManagerTabsPopup;
    8281
    8382{ TCDManager }
     
    10099end;
    101100
    102 function TCDManager.GetDockStyle: TCDStyleType;
    103 begin
    104   if Self is TCDStyleRegions then Result := dsList
    105   else if Self is TCDStyleTabs then Result := dsTabs
    106   else if Self is TCDStylePopupRegions then Result := dsPopupList
    107   else if Self is TCDStylePopupTabs then Result := dsPopupTabs;
    108 end;
    109 
    110101function TCDManager.GetHeaderPos: THeaderPos;
    111102begin
     
    124115begin
    125116  inherited Create(ADockSite);
     117
    126118  FDockSite := ADockSite;
    127119  FDockPanels := TCDPanels.Create;
    128120
    129   FDockStyle := dsTabs; // To initialize style value have to be different
    130   DockStyle := dsList;
     121  FDockStyle := dsList; // dsNone
    131122  PopupMenu := TCDPopupMenu.Create(Self);
    132123  PopupMenu.Parent := ADockSite;
     
    168159  DropCtl: TControl);
    169160begin
    170   //DockStyleHandler.InsertControl(Control, InsertAt);
    171161end;
    172162
     
    325315    FDockStyle := AValue;
    326316    if AValue = dsTabs then begin
    327       NewManager := TCDStyleTabs.Create(Self);
     317      NewManager := TCDStyleTabs.Create(FDockSite);
    328318      TCDStyleTabs(Self).TabControlChange(Self);
    329319    end else
    330320    if AValue = dsList then begin
    331       NewManager := TCDStyleRegions.Create(Self);
     321      NewManager := TCDStyleRegions.Create(FDockSite);
    332322    end else
    333323    if AValue = dsPopupList then begin
    334       NewManager := TCDStylePopupRegions.Create(Self);
     324      NewManager := TCDStylePopupRegions.Create(FDockSite);
    335325    end else
    336326    if AValue = dsPopupTabs then begin
    337       NewManager := TCDStylePopupTabs.Create(Self);
     327      NewManager := TCDStylePopupTabs.Create(FDockSite);
    338328    end;
    339329    if DockSite.DockManager is TCDManager then
     
    364354procedure TCDManager.UpdateClientSize;
    365355begin
    366 //  DockStyleHandler.UpdateClientSize;
    367356end;
    368357
Note: See TracChangeset for help on using the changeset viewer.