Changeset 244 for oup


Ignore:
Timestamp:
Aug 17, 2007, 11:09:51 PM (17 years ago)
Author:
alloc
Message:
 
Location:
oup/current
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • oup/current/FileClasses/_Extensions.pas

    r241 r244  
    2626      function GetChild(ID: Integer): TTreeElement; override;
    2727      function GetCaption: String; override;
     28      function GetType: String; override;
    2829    private
    2930      FExtensions: array of TExtension;
     
    103104function TExtensions.GetCaption: String;
    104105begin
    105   Result := '';
     106  Result := 'Extensions';
    106107end;
    107108
     
    157158end;
    158159
     160function TExtensions.GetType: String;
     161begin
     162  Result := '';
     163end;
     164
    159165procedure TExtensions.AddExt(Ext: String);
    160166var
  • oup/current/Global/OniImgClass.pas

    r204 r244  
    414414    images[i] := TOniImage.Create;
    415415    images[i].LoadFromTXMP(ConnectionID, link);
    416     SetLength(FImages, 1);
    417     NewImage(width, height, ifA1R5G5B5, FImages[0]);
    418   end;
     416  end;
     417  SetLength(FImages, 1);
     418  NewImage(width, height, images[0].Format {ifA1R5G5B5}, FImages[0]);
    419419  for y := 0 to rows - 1 do
    420420  begin
     
    426426      for i := 0 to x do
    427427        if i < x then
    428           x_start := x_start + images[i].Image[0].Width;
     428          x_start := x_start + images[i].Image[1].Width;
    429429      for i := 0 to y do
    430430        if i < y then
    431           y_start := y_start + images[i].Image[0].Height;
    432       CopyRect(images[imgid].Image[0], 0, 0, images[imgid].Image[0].Width,
    433           images[imgid].Image[0].Height, FImages[0], x_start, y_start);
     431          y_start := y_start + images[i].Image[1].Height;
     432      CopyRect(images[imgid].Image[1], 0, 0, images[imgid].Image[1].Width,
     433          images[imgid].Image[1].Height, FImages[0], x_start, y_start);
    434434    end;
    435435  end;
  • oup/current/Tools/MetaEditor.dfm

    r243 r244  
    8585      object tab_hex: TTabSheet
    8686        Caption = 'Binary Edit'
    87         ExplicitLeft = 0
    88         ExplicitTop = 0
    89         ExplicitWidth = 0
    90         ExplicitHeight = 0
    9187        object splitter_hex_1: TSplitter
    9288          Left = 0
  • oup/current/Tools/MetaEditor.pas

    r243 r244  
    101101  data: TNodeData;
    102102  node: PVirtualNode;
     103  basenode: PVirtualNode;
    103104begin
    104105  if FConnectionID <> TreeElem.ConnectionID then
     
    107108  VST.Clear;
    108109  VST.BeginUpdate;
     110  data.Field := root;
     111  basenode := AddVSTEntry(VST, nil, data);
    109112  for i := 0 to root.ChildCount - 1 do
    110113  begin
    111114    data.Field := root.Child[i];
    112     node := AddVSTEntry(VST, nil, data);
     115    node := AddVSTEntry(VST, basenode, data);
    113116    if data.Field.ChildCount > 0 then
    114117      VST.HasChildren[node] := True;
  • oup/current/Tools/Preview.dfm

    r220 r244  
    4747        Visible = False
    4848        OnResize = panel_buttonsResize
    49         ExplicitWidth = 283
    5049        object btn_dec: TButton
    5150          Left = 0
  • oup/current/Tools/Preview.pas

    r220 r244  
    66  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
    77  Dialogs, _TemplateFileList, Menus, StdCtrls, ExtCtrls, Buttons,
    8   TypeDefs, OniImgClass;
     8  TypeDefs, OniImgClass, VirtualTrees, ComCtrls;
    99
    1010type
Note: See TracChangeset for help on using the changeset viewer.