Changeset 189 for Docking/CoolDocking/Demo/IDE/UMainForm.pas
- Timestamp:
- Mar 11, 2011, 9:18:59 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/IDE/UMainForm.pas
r188 r189 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, 9 ActnList, ExtCtrls, ComCtrls, StdCtrls, UC oolDockClient, UCoolDockLayout,9 ActnList, ExtCtrls, ComCtrls, StdCtrls, UCDClient, UCDLayout, 10 10 UToolPaletteForm, UObjectInspectorForm, UProjectManagerForm, UStructureForm, 11 11 UMessagesForm, UCallStackForm, ULocalVariablesForm, UToDoListForm, 12 UWatchListForm, UThreadStatusForm, USourceEditorForm, UC oolDockWindowList,13 UC oolDockCustomize, UComponentTree, UCoolDockConjoinForm, UCoolDockManager,14 UC oolDockMaster;12 UWatchListForm, UThreadStatusForm, USourceEditorForm, UCDWindowList, 13 UCDCustomize, UComponentTree, UCDConjoinForm, UCDManager, 14 UCDMaster; 15 15 16 16 const … … 40 40 AViewWindowList: TAction; 41 41 ComboBox1: TComboBox; 42 CoolDockClient1: TC oolDockClient;43 CoolDockCustomize1: TC oolDockCustomize;44 CoolDockLayoutList1: TC oolDockLayoutList;45 CoolDockMaster1: TC oolDockMaster;46 CoolDockWindowList1: TC oolDockWindowList;42 CoolDockClient1: TCDClient; 43 CoolDockCustomize1: TCDCustomize; 44 CoolDockLayoutList1: TCDLayoutList; 45 CoolDockMaster1: TCDMaster; 46 CoolDockWindowList1: TCDWindowList; 47 47 ImageList1: TImageList; 48 48 Label1: TLabel; … … 129 129 begin 130 130 if (ComboBox1.ItemIndex <> - 1) and (ComboBox1.ItemIndex < CoolDockLayoutList1.Items.Count) then 131 TC oolDockLayout(CoolDockLayoutList1.Items[ComboBox1.ItemIndex]).Restore;131 TCDLayout(CoolDockLayoutList1.Items[ComboBox1.ItemIndex]).Restore; 132 132 end; 133 133 … … 151 151 DefaultLayoutName = 'Default Layout'; 152 152 var 153 NewContainer1: TC oolDockConjoinForm;154 NewContainer2: TC oolDockConjoinForm;155 DefaultLayout: TC oolDockLayout;153 NewContainer1: TCDConjoinForm; 154 NewContainer2: TCDConjoinForm; 155 DefaultLayout: TCDLayout; 156 156 begin 157 157 DefaultLayout := CoolDockLayoutList1.FindByName(DefaultLayoutName); 158 158 if not Assigned(DefaultLayout) then begin 159 NewContainer1 := TC oolDockManager(DockPanel.DockManager).CreateContainer(alRight);159 NewContainer1 := TCDManager(DockPanel.DockManager).CreateContainer(alRight); 160 160 NewContainer1.Show; 161 161 … … 165 165 ObjectInspectorForm.Show; 166 166 167 NewContainer2 := TC oolDockManager(DockPanel.DockManager).CreateContainer(alRight);167 NewContainer2 := TCDManager(DockPanel.DockManager).CreateContainer(alRight); 168 168 NewContainer2.Show; 169 169 ProjectManagerForm.ManualDock(NewContainer2, nil, alTop); … … 177 177 NewContainer2.ManualDock(DockPanel); 178 178 179 DefaultLayout := TC oolDockLayout.Create;179 DefaultLayout := TCDLayout.Create; 180 180 DefaultLayout.Name := DefaultLayoutName; 181 181 CoolDockLayoutList1.Items.Add(DefaultLayout); … … 216 216 procedure TMainForm.ADesktopSaveExecute(Sender: TObject); 217 217 var 218 NewLayout: TC oolDockLayout;218 NewLayout: TCDLayout; 219 219 begin 220 220 if ComboBox1.Text <> '' then begin 221 221 if ComboBox1.Items.IndexOf(ComboBox1.Text) = -1 then begin 222 NewLayout := TC oolDockLayout.Create;222 NewLayout := TCDLayout.Create; 223 223 NewLayout.Name := ComboBox1.Text; 224 224 NewLayout.Store; 225 225 CoolDockLayoutList1.Items.Add(NewLayout); 226 226 end else 227 TC oolDockLayout(CoolDockLayoutList1.Items[ComboBox1.Items.IndexOf(ComboBox1.Text)]).Store;227 TCDLayout(CoolDockLayoutList1.Items[ComboBox1.Items.IndexOf(ComboBox1.Text)]).Store; 228 228 CoolDockLayoutList1.SaveToFile(DockLayoutFileName); 229 229 CoolDockLayoutList1.PopulateStringList(ComboBox1.Items);
Note:
See TracChangeset
for help on using the changeset viewer.