Ignore:
Timestamp:
Feb 25, 2012, 7:41:42 PM (13 years ago)
Author:
chronos
Message:
  • Modified: Reorganized docked forms. Target code is now accessible through main PageControl tab.
  • Added: Store right and bottom panels size.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IDE/Forms/UMainForm.pas

    r38 r39  
    7676    MenuItem7: TMenuItem;
    7777    MenuItem8: TMenuItem;
    78     DockPanel: TPanel;
    7978    MenuItem9: TMenuItem;
    8079    MenuItemOpenRecent: TMenuItem;
    8180    OpenDialog1: TOpenDialog;
     81    PageControlMain: TPageControl;
    8282    PageControlRight: TPageControl;
    8383    PageControlBottom: TPageControl;
     
    8686    Splitter2: TSplitter;
    8787    Splitter3: TSplitter;
    88     TabSheet1: TTabSheet;
    89     TabSheet2: TTabSheet;
    90     TabSheet3: TTabSheet;
    91     TabSheet4: TTabSheet;
     88    TabSheetProject: TTabSheet;
     89    TabSheetCodeTree: TTabSheet;
     90    TabSheetMessages: TTabSheet;
     91    TabSheetBreakpoints: TTabSheet;
     92    TabSheetCompiledProject: TTabSheet;
     93    TabSheetSource: TTabSheet;
     94    TabSheetTarget: TTabSheet;
    9295    ToolBar1: TToolBar;
    9396    ToolButton1: TToolButton;
     
    171174      with TProducer(Producers[I]) do begin
    172175        OpenKey(Key + '\Producers\' + Name, True);
    173         CompilerPAth := ReadStringWithDefault('CompilerPath', CompilerPath);
     176        if ValueExists('CompilerPath') then
     177          CompilerPath := ReadStringWithDefault('CompilerPath', CompilerPath);
    174178      end;
    175179    finally
     
    188192      with TProducer(Producers[I]) do begin
    189193        OpenKey(Key + '\Producers\' + Name, True);
    190         WriteString('CompilerPath', CompilerPath);
     194        if CompilerPath <> '' then WriteString('CompilerPath', CompilerPath)
     195          else DeleteValue('CompilerPath');
    191196      end;
    192197    finally
     
    300305  Container2: TCDConjoinForm;
    301306begin
    302   CodeForm.ManualDock(DockPanel, nil, alClient);
     307  CodeForm.ManualDock(TabSheetSource, nil, alClient);
    303308  CodeForm.Align := alClient;
    304309  CodeForm.Show;
    305   MessagesForm.ManualDock(TabSheet3, nil, alClient);
     310  MessagesForm.ManualDock(TabSheetMessages, nil, alClient);
    306311  MessagesForm.Align := alClient;
    307312  MessagesForm.Show;
    308   ProjectManager.ManualDock(TabSheet1, nil, alClient);
     313  ProjectManager.ManualDock(TabSheetProject, nil, alClient);
    309314  ProjectManager.Align := alClient;
    310315  ProjectManager.Show;
    311   CodeTreeForm.ManualDock(TabSheet2, nil, alClient);
     316  CodeTreeForm.ManualDock(TabSheetCodeTree, nil, alClient);
    312317  CodeTreeForm.Align := alClient;
    313318  CodeTreeForm.Show;
    314   CompiledForm.ManualDock(TabSheet4, nil, alClient);
     319  CompiledForm.ManualDock(TabSheetTarget, nil, alClient);
    315320  CompiledForm.Align := alClient;
    316321  CompiledForm.Show;
    317322  PageControlRight.TabIndex := 0;
    318323  PageControlBottom.TabIndex := 0;
     324  PageControlMain.TabIndex := 0;
    319325
    320326  (*ProjectManager.ManualDock(DockPanel, nil, alLeft);
     
    366372        CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(ReadStringWithDefault('LanguageCode', ''))
    367373        else CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode('');
     374      PageControlRight.Width := ReadIntegerWithDefault('RightPanelWidth', 120);
     375      PageControlBottom.Height := ReadIntegerWithDefault('BottomPanelHeight', 100);
    368376    finally
    369377      Free;
     
    386394        WriteString('LanguageCode', CoolTranslator1.Language.Code)
    387395        else DeleteValue('LanguageCode');
     396      WriteInteger('RightPanelWidth', PageControlRight.Width);
     397      WriteInteger('BottomPanelHeight', PageControlBottom.Height);
    388398    finally
    389399      Free;
Note: See TracChangeset for help on using the changeset viewer.