Ignore:
Timestamp:
Mar 11, 2011, 9:18:59 AM (14 years ago)
Author:
george
Message:
  • Modified: All unit and type names renamed to shorted form. Shortcut "CD" instead of "CoolDock".
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/Demo/IDE/UMainForm.pas

    r188 r189  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus,
    9   ActnList, ExtCtrls, ComCtrls, StdCtrls, UCoolDockClient, UCoolDockLayout,
     9  ActnList, ExtCtrls, ComCtrls, StdCtrls, UCDClient, UCDLayout,
    1010  UToolPaletteForm, UObjectInspectorForm, UProjectManagerForm, UStructureForm,
    1111  UMessagesForm, UCallStackForm, ULocalVariablesForm, UToDoListForm,
    12   UWatchListForm, UThreadStatusForm, USourceEditorForm, UCoolDockWindowList,
    13   UCoolDockCustomize, UComponentTree, UCoolDockConjoinForm, UCoolDockManager,
    14   UCoolDockMaster;
     12  UWatchListForm, UThreadStatusForm, USourceEditorForm, UCDWindowList,
     13  UCDCustomize, UComponentTree, UCDConjoinForm, UCDManager,
     14  UCDMaster;
    1515
    1616const
     
    4040    AViewWindowList: TAction;
    4141    ComboBox1: TComboBox;
    42     CoolDockClient1: TCoolDockClient;
    43     CoolDockCustomize1: TCoolDockCustomize;
    44     CoolDockLayoutList1: TCoolDockLayoutList;
    45     CoolDockMaster1: TCoolDockMaster;
    46     CoolDockWindowList1: TCoolDockWindowList;
     42    CoolDockClient1: TCDClient;
     43    CoolDockCustomize1: TCDCustomize;
     44    CoolDockLayoutList1: TCDLayoutList;
     45    CoolDockMaster1: TCDMaster;
     46    CoolDockWindowList1: TCDWindowList;
    4747    ImageList1: TImageList;
    4848    Label1: TLabel;
     
    129129begin
    130130  if (ComboBox1.ItemIndex <> - 1) and (ComboBox1.ItemIndex < CoolDockLayoutList1.Items.Count) then
    131     TCoolDockLayout(CoolDockLayoutList1.Items[ComboBox1.ItemIndex]).Restore;
     131    TCDLayout(CoolDockLayoutList1.Items[ComboBox1.ItemIndex]).Restore;
    132132end;
    133133
     
    151151  DefaultLayoutName = 'Default Layout';
    152152var
    153   NewContainer1: TCoolDockConjoinForm;
    154   NewContainer2: TCoolDockConjoinForm;
    155   DefaultLayout: TCoolDockLayout;
     153  NewContainer1: TCDConjoinForm;
     154  NewContainer2: TCDConjoinForm;
     155  DefaultLayout: TCDLayout;
    156156begin
    157157  DefaultLayout := CoolDockLayoutList1.FindByName(DefaultLayoutName);
    158158  if not Assigned(DefaultLayout) then begin
    159     NewContainer1 := TCoolDockManager(DockPanel.DockManager).CreateContainer(alRight);
     159    NewContainer1 := TCDManager(DockPanel.DockManager).CreateContainer(alRight);
    160160    NewContainer1.Show;
    161161
     
    165165    ObjectInspectorForm.Show;
    166166
    167     NewContainer2 := TCoolDockManager(DockPanel.DockManager).CreateContainer(alRight);
     167    NewContainer2 := TCDManager(DockPanel.DockManager).CreateContainer(alRight);
    168168    NewContainer2.Show;
    169169    ProjectManagerForm.ManualDock(NewContainer2, nil, alTop);
     
    177177    NewContainer2.ManualDock(DockPanel);
    178178
    179     DefaultLayout := TCoolDockLayout.Create;
     179    DefaultLayout := TCDLayout.Create;
    180180    DefaultLayout.Name := DefaultLayoutName;
    181181    CoolDockLayoutList1.Items.Add(DefaultLayout);
     
    216216procedure TMainForm.ADesktopSaveExecute(Sender: TObject);
    217217var
    218   NewLayout: TCoolDockLayout;
     218  NewLayout: TCDLayout;
    219219begin
    220220  if ComboBox1.Text <> '' then begin
    221221    if ComboBox1.Items.IndexOf(ComboBox1.Text) = -1 then begin
    222       NewLayout := TCoolDockLayout.Create;
     222      NewLayout := TCDLayout.Create;
    223223      NewLayout.Name := ComboBox1.Text;
    224224      NewLayout.Store;
    225225      CoolDockLayoutList1.Items.Add(NewLayout);
    226226    end else
    227       TCoolDockLayout(CoolDockLayoutList1.Items[ComboBox1.Items.IndexOf(ComboBox1.Text)]).Store;
     227      TCDLayout(CoolDockLayoutList1.Items[ComboBox1.Items.IndexOf(ComboBox1.Text)]).Store;
    228228    CoolDockLayoutList1.SaveToFile(DockLayoutFileName);
    229229    CoolDockLayoutList1.PopulateStringList(ComboBox1.Items);
Note: See TracChangeset for help on using the changeset viewer.