Ignore:
Timestamp:
Oct 15, 2010, 7:09:49 AM (14 years ago)
Author:
george
Message:
  • Added: Windows for Code tree and compiled code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Transpascal/Forms/UMainForm.pas

    r61 r62  
    99  Dialogs, StdCtrls, UCompiler, UProducerAsm8051,
    1010  UProducerC, ComCtrls, ExtCtrls, SynEdit, SynHighlighterPas, UProducerTreeView,
    11   UProducerPascal, Contnrs, UProject, FileUtil, Menus, ActnList, UCoolDocking;
     11  UProducerPascal, Contnrs, UProject, FileUtil, Menus, ActnList, UCoolDocking,
     12  UCompiledForm, UCodeTreeForm;
    1213
    1314const
     
    5152    procedure Splitter2CanResize(Sender: TObject; var NewSize: Integer;
    5253      var Accept: Boolean);
    53     procedure TreeViewProjectChange(Sender: TObject; Node: TTreeNode);
    5454  private
    5555    procedure LoadErrorMessages;
    5656    procedure UpdateProjectTree;
    5757    procedure UpdateProjectGroup(Node: TTreeNode; Group: TProjectGroup);
    58     function GetSource(Name: string; Source: TStringList): Boolean;
    5958    procedure DockInit;
    6059  public
    6160    Project: TProject;
    62     ProducerControl: TControl;
    6361    Compiler: TCompiler;
     62    function GetSource(Name: string; Source: TStringList): Boolean;
    6463  end;
    6564
     
    8079  I: Integer;
    8180begin
    82   ProducerControl.Free;
    8381  if ComboBox1.ItemIndex = 0 then begin
    8482    Compiler.Producer.Free;
     
    9694    Compiler.Producer.Free;
    9795    Compiler.Producer := TProducerTreeView.Create;
    98     ProducerControl := TTreeView.Create(Self);
    99     ProducerControl.Parent := DockPanel;
    100     ProducerControl.Align := alClient;
    101 //    TProducerTreeView(Compiler.Producer).TreeView := TTreeView(ProducerControl);
    10296  end;
    10397
     
    107101  with TProjectFile(Project.Items[0]) do begin
    108102    Compiler.Compile(Parent.GetDir + Name, Source);
    109   end;
    110 
    111   if ComboBox1.ItemIndex = 0 then begin
    112     ProducerControl := TMemo.Create(Self);
    113     ProducerControl.Parent := DockPanel;
    114     ProducerControl.Align := alClient;
    115     ProducerControl.Font.Name := 'Courier New';
    116     TMemo(ProducerControl).ScrollBars := ssAutoBoth;
    117   end else
    118   if ComboBox1.ItemIndex = 1 then begin
    119     ProducerControl := TMemo.Create(Self);
    120     ProducerControl.Parent := DockPanel;
    121     ProducerControl.Align := alClient;
    122     ProducerControl.Font.Name := 'Courier New';
    123     TMemo(ProducerControl).ScrollBars := ssAutoBoth;
    124   end else
    125   if ComboBox1.ItemIndex = 2 then begin
    126     ProducerControl := TMemo.Create(Self);
    127     ProducerControl.Parent := DockPanel;
    128     ProducerControl.Align := alClient;
    129     ProducerControl.Font.Name := 'Courier New';
    130     TMemo(ProducerControl).ScrollBars := ssAutoBoth;
    131   end else
    132   if ComboBox1.ItemIndex = 3 then begin
    133103  end;
    134104
     
    219189var
    220190  Container1: TCoolDockConjoinForm;
     191  Container2: TCoolDockConjoinForm;
    221192begin
    222193  ProjectManager.ManualDock(DockPanel, nil, alLeft);
     
    228199  Container1.ManualDock(DockPanel, nil, alRight);
    229200
    230   CodeForm.ManualDock(Container1.Panel, nil, alTop);
    231   CodeForm.Show;
     201  CodeTreeForm.ManualDock(DockPanel, nil, alLeft);
     202  CodeTreeForm.Show;
     203  Container1.Parent.Parent.Width := MainForm.Width;
     204
     205  Container2 := TCoolDockManager(DockPanel.DockManager).CreateContainer(alRight);
     206  Container2.Caption := 'Panel';
     207  Container2.Name := 'Tools2';
     208  Container2.ManualDock(Container1.Panel, nil, alRight);
     209
    232210  MessagesForm.ManualDock(Container1.Panel, nil, alBottom);
    233211  MessagesForm.Show;
    234212
     213  CodeForm.ManualDock(Container2.Panel, nil, alTop);
     214  CodeForm.Show;
     215
     216  CompiledForm.ManualDock(Container2.Panel, nil, alTop);
     217  CompiledForm.Show;
     218
     219  TCoolDockManager(Container2.Panel.DockManager).DockStyle := dsTabs;
     220
    235221  ProjectManager.Parent.Parent.Width := 200;
    236   CodeForm.Parent.Parent.Height := MainForm.Height;
     222  Container2.Parent.Parent.Height := MainForm.Height;
    237223end;
    238224
Note: See TracChangeset for help on using the changeset viewer.