Changeset 6


Ignore:
Timestamp:
Aug 2, 2012, 4:43:10 PM (12 years ago)
Author:
chronos
Message:
  • Added: Empty application settings form. Modules will register custom settings subforms.
Location:
trunk
Files:
3 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Studio/UCore.pas

    r5 r6  
    5757begin
    5858  TLDStudioAPI(ModuleManager.API).MainForm := FormMain;
    59   TLDStudioAPI(ModuleManager.API).MainMenu := FormMain.MainMenu1;
     59  TLDStudioAPI(ModuleManager.API).MainMenu := FormMain.MainMenu;
    6060  RegisterModules;
    6161end;
  • trunk/StudioPackage/Forms/UFormMain.lfm

    r5 r6  
    77  ClientHeight = 501
    88  ClientWidth = 747
    9   Menu = MainMenu1
     9  Menu = MainMenu
    1010  OnShow = FormShow
    1111  LCLVersion = '1.1'
     
    2323    Width = 747
    2424    Caption = 'ToolBar1'
    25     Images = ImageList1
     25    Images = ImageListMain
    2626    TabOrder = 1
    2727    object ToolButton1: TToolButton
     
    114114    end
    115115  end
    116   object MainMenu1: TMainMenu
    117     Images = ImageList1
    118     left = 48
    119     top = 64
     116  object MainMenu: TMainMenu
     117    Images = ImageListMain
     118    left = 80
     119    top = 48
    120120    object MenuItem1: TMenuItem
    121121      Caption = 'Project'
     
    520520      end
    521521    end
     522    object MenuItem20: TMenuItem
     523      Caption = 'Build'
     524      object MenuItem21: TMenuItem
     525        Action = ABuild
     526      end
     527      object MenuItem22: TMenuItem
     528        Action = ARun
     529      end
     530      object MenuItem23: TMenuItem
     531        Action = AStop
     532      end
     533      object MenuItem24: TMenuItem
     534        Action = ARebuild
     535      end
     536      object MenuItem25: TMenuItem
     537        Action = ABuildClean
     538      end
     539    end
    522540    object MenuItem16: TMenuItem
    523541      Caption = 'Tools'
     542      object MenuItem19: TMenuItem
     543        Action = AViewSettings
     544      end
    524545    end
    525546    object MenuItem17: TMenuItem
     
    533554    end
    534555  end
    535   object ActionList1: TActionList
    536     Images = ImageList1
    537     left = 48
    538     top = 120
     556  object ActionListMain: TActionList
     557    Images = ImageListMain
     558    left = 80
     559    top = 104
    539560    object AProjectNew: TAction
    540561      Category = 'Project'
     
    616637      OnExecute = AViewProjectManagerExecute
    617638    end
     639    object AViewSettings: TAction
     640      Category = 'View'
     641      Caption = 'Settings'
     642      ImageIndex = 10
     643      OnExecute = AViewSettingsExecute
     644    end
     645    object ABuild: TAction
     646      Category = 'Build'
     647      Caption = 'Build'
     648    end
     649    object ARun: TAction
     650      Category = 'Build'
     651      Caption = 'Run'
     652    end
     653    object AStop: TAction
     654      Category = 'Build'
     655      Caption = 'Stop'
     656    end
     657    object ARebuild: TAction
     658      Category = 'Build'
     659      Caption = 'Rebuild'
     660    end
     661    object ABuildClean: TAction
     662      Category = 'Build'
     663      Caption = 'Clean'
     664    end
    618665  end
    619   object ImageList1: TImageList
    620     left = 48
    621     top = 176
     666  object ImageListMain: TImageList
     667    left = 80
     668    top = 160
    622669    Bitmap = {
    623670      4C69160000001000000010000000000000000000000000000000000000000000
  • trunk/StudioPackage/Forms/UFormMain.lrt

    r5 r6  
    88TFORMMAIN.MENUITEM13.CAPTION=-
    99TFORMMAIN.MENUITEM2.CAPTION=Edit
     10TFORMMAIN.MENUITEM20.CAPTION=Build
    1011TFORMMAIN.MENUITEM16.CAPTION=Tools
    1112TFORMMAIN.MENUITEM17.CAPTION=View
     
    3435TFORMMAIN.AEXIT.HINT=Exit application
    3536TFORMMAIN.AVIEWPROJECTMANAGER.CAPTION=Project manager
     37TFORMMAIN.AVIEWSETTINGS.CAPTION=Settings
     38TFORMMAIN.ABUILD.CAPTION=Build
     39TFORMMAIN.ARUN.CAPTION=Run
     40TFORMMAIN.ASTOP.CAPTION=Stop
     41TFORMMAIN.AREBUILD.CAPTION=Rebuild
     42TFORMMAIN.ABUILDCLEAN.CAPTION=Clean
  • trunk/StudioPackage/Forms/UFormMain.pas

    r5 r6  
    1616    AClipboardCopy: TAction;
    1717    AClipboardPaste: TAction;
     18    ABuild: TAction;
     19    ABuildClean: TAction;
     20    ARebuild: TAction;
     21    AStop: TAction;
     22    ARun: TAction;
     23    AViewSettings: TAction;
    1824    AViewProjectManager: TAction;
    1925    AExit: TAction;
     
    2632    AProjectOpen: TAction;
    2733    AProjectNew: TAction;
    28     ActionList1: TActionList;
    29     ImageList1: TImageList;
    30     MainMenu1: TMainMenu;
     34    ActionListMain: TActionList;
     35    ImageListMain: TImageList;
     36    MainMenu: TMainMenu;
    3137    MenuItem1: TMenuItem;
    3238    MenuItem10: TMenuItem;
     
    3945    MenuItem17: TMenuItem;
    4046    MenuItem18: TMenuItem;
     47    MenuItem19: TMenuItem;
    4148    MenuItem2: TMenuItem;
     49    MenuItem20: TMenuItem;
     50    MenuItem21: TMenuItem;
     51    MenuItem22: TMenuItem;
     52    MenuItem23: TMenuItem;
     53    MenuItem24: TMenuItem;
     54    MenuItem25: TMenuItem;
    4255    MenuItem3: TMenuItem;
    4356    MenuItem4: TMenuItem;
     
    6578    procedure AExitExecute(Sender: TObject);
    6679    procedure AViewProjectManagerExecute(Sender: TObject);
     80    procedure AViewSettingsExecute(Sender: TObject);
    6781    procedure FormShow(Sender: TObject);
    6882  private
     
    8094
    8195uses
    82   UFormProject, UFormSourceCode;
     96  UFormProject, UFormSourceCode, UFormSettings;
    8397
    8498{ TFormMain }
     
    92106begin
    93107  FormProject.Show;
     108end;
     109
     110procedure TFormMain.AViewSettingsExecute(Sender: TObject);
     111begin
     112  FormSettings.ShowModal;
    94113end;
    95114
  • trunk/StudioPackage/LibreDevelopStudio.lpk

    r5 r6  
    2323      </Other>
    2424    </CompilerOptions>
    25     <Files Count="5">
     25    <Files Count="6">
    2626      <Item1>
    2727        <Filename Value="Forms\UFormMain.pas"/>
     
    4444        <UnitName Value="UFormSourceCode"/>
    4545      </Item5>
     46      <Item6>
     47        <Filename Value="Forms\UFormSettings.pas"/>
     48        <UnitName Value="UFormSettings"/>
     49      </Item6>
    4650    </Files>
    4751    <i18n>
  • trunk/StudioPackage/LibreDevelopStudio.pas

    r5 r6  
    99uses
    1010  UFormMain, UProject, UDataModule, UFormProject, UFormSourceCode,
    11   LazarusPackageIntf;
     11  UFormSettings, LazarusPackageIntf;
    1212
    1313implementation
  • trunk/StudioPackage/UDataModule.pas

    r4 r6  
    2929
    3030uses
    31   UFormSourceCode, UFormMain, UFormProject;
     31  UFormSourceCode, UFormMain, UFormProject, UFormSettings;
    3232
    3333{ TDataModule1 }
     
    3838  Application.CreateForm(TFormProject, FormProject);
    3939  Application.CreateForm(TFormSourceCode, FormSourceCode);
     40  Application.CreateForm(TFormSettings, FormSettings);
    4041end;
    4142
Note: See TracChangeset for help on using the changeset viewer.