Changeset 54 for trunk/Client/Forms


Ignore:
Timestamp:
Oct 12, 2012, 11:43:43 AM (12 years ago)
Author:
chronos
Message:
  • Added: ChronisAppServer base project.
  • Modified: Changes in client virtual database layer handling.
Location:
trunk/Client/Forms
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Client/Forms/UFormImportStructure.pas

    r49 r54  
    126126
    127127    SQLTables.Clear;
    128     GroupId := Core.System.AddGroup(Database.Database, 0);
     128    GroupId := Core.System.AddMenu(Database.Database, 0);
    129129    Database.Query(DbRows, 'SHOW TABLES');
    130130    for T := 0 to DbRows.Count - 1 do begin
     
    133133      TableName := DbRows[T].Items[0].Value;
    134134      Memo1.Lines.Add('Create object "' + TableName + '"');
    135       NewTable.Table.Add('ObjId', IntToStr(Core.System.AddObject(TableName, TableName, Database.Database, GroupId)));
     135      NewTable.Table.Add('ObjId', IntToStr(Core.System.AddObject(TableName, TableName, Database.Database)));
    136136    end;
    137137
  • trunk/Client/Forms/UFormItemEdit.pas

    r53 r54  
    141141    Proxy.Free;
    142142  end;
    143   if (SelectedObject.Table = ObjectGroupTable) or
    144   (SelectedObject.Table = ObjectTable) then
     143  if (SelectedObject.Table = SystemMenuTable) or
     144  (SelectedObject.Table = SystemObjectTable) then
    145145    FormMenu.LoadTree;
    146146  //MainForm.LoadItemList;
  • trunk/Client/Forms/UFormMain.lfm

    r50 r54  
    66  ActiveControl = PanelMenu
    77  Caption = 'ChronIS'
    8   ClientHeight = 421
     8  ClientHeight = 427
    99  ClientWidth = 640
    1010  Icon.Data = {
     
    153153  object PanelMenu: TPanel
    154154    Left = 0
    155     Height = 374
     155    Height = 381
    156156    Top = 26
    157157    Width = 184
     
    162162  object PanelData: TPanel
    163163    Left = 189
    164     Height = 374
     164    Height = 381
    165165    Top = 26
    166166    Width = 451
     
    171171  object Splitter1: TSplitter
    172172    Left = 184
    173     Height = 374
     173    Height = 381
    174174    Top = 26
    175175    Width = 5
     
    177177  object StatusBar1: TStatusBar
    178178    Left = 0
    179     Height = 21
    180     Top = 400
     179    Height = 20
     180    Top = 407
    181181    Width = 640
    182182    Panels = <   
  • trunk/Client/Forms/UFormMain.pas

    r52 r54  
    150150  if Core.System.Active then
    151151  with Core.System.Client do
    152     StatusBar1.Panels[0].Text := User + '@' + Host + ':' + IntToStr(Port) + '/' + Schema;
     152    StatusBar1.Panels[0].Text := User + '@' + Host + ':' + IntToStr(Port) + '/' + Schema
     153    else StatusBar1.Panels[0].Text := '';
    153154
    154155  for I := 0 to ToolBar1.ButtonCount - 1 do
  • trunk/Client/Forms/UFormMenu.lfm

    r51 r54  
    11object FormMenu: TFormMenu
    2   Left = 333
     2  Left = 335
    33  Height = 487
    4   Top = 70
     4  Top = 108
    55  Width = 262
    66  Caption = 'Navigation'
     
    1010  OnDestroy = FormDestroy
    1111  LCLVersion = '0.9.31'
     12  object TabControl1: TTabControl
     13    Left = 0
     14    Height = 26
     15    Top = 0
     16    Width = 262
     17    TabIndex = 0
     18    Tabs.Strings = (
     19      'All'
     20      'Favorite'
     21      'History'
     22    )
     23    Align = alTop
     24    TabOrder = 0
     25  end
    1226  object TreeViewMenu: TTreeView
    1327    Left = 2
    14     Height = 483
    15     Top = 2
     28    Height = 457
     29    Top = 28
    1630    Width = 258
    1731    Align = alClient
    1832    BorderSpacing.Around = 2
    1933    DefaultItemHeight = 16
    20     Images = MainForm.ImageListActions
    2134    PopupMenu = PopupMenuObjectGroup
    2235    ReadOnly = True
    23     TabOrder = 0
     36    TabOrder = 1
    2437    OnChange = TreeViewMenuChange
    2538    OnDblClick = AObjectGroupShowExecute
  • trunk/Client/Forms/UFormMenu.pas

    r53 r54  
    3131    PopupMenuObject: TPopupMenu;
    3232    PopupMenuObjectGroup: TPopupMenu;
     33    TabControl1: TTabControl;
    3334    TreeViewMenu: TTreeView;
    3435    procedure AObjectEditExecute(Sender: TObject);
     
    141142      Groups := TListProxy.Create;
    142143      Groups.Client := Core.System.Client;
    143       Groups.ObjectName := ObjectGroupTable;
     144      Groups.ObjectName := SystemMenuTable;
    144145      Groups.Path := Core.System.Client.Schema;
    145146      Groups.Load;
     
    153154          Objects := TListProxy.Create;
    154155          Objects.Client := Core.System.Client;
    155           Objects.ObjectName := ObjectTable;
     156          Objects.ObjectName := SystemObjectTable;
    156157          Objects.Path := Core.System.Client.Schema;
    157158          Objects.Condition := '`Group`="' + Obj.Properties.Values['Id'] + '"';
Note: See TracChangeset for help on using the changeset viewer.