mORMot and Open Source friends
Check-in [bd32887c36]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:{5204} fixed Delphi compilation
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: bd32887c364adffcb1dbf81f86d65fc548698bed
User & Date: ab 2019-04-29 09:11:11
Context
2019-04-29
11:19
{5205} include https://github.com/synopse/mORMot/pull/192 check-in: 1676a3f1e0 user: ab tags: trunk
09:11
{5204} fixed Delphi compilation check-in: bd32887c36 user: ab tags: trunk
2019-04-26
13:03
{5203} another refactoring of GetExtended() check-in: bd19dafd92 user: ab tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to SQLite3/mORMotUIEdit.pas.

144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
    /// this event is used to customize the input components after creation
    // - triggered when the component has been created
    // - can be used to disabled the component if user don't have the right
    // to modify its value; but he/she will still be able to view it
    OnComponentCreated: TOnComponentCreated;
  end;

  {{ Record edition dialog, used to edit record content on the screen
   - the window content is taken from the RTTI of the supplied record;
     all the User Interface (fields, etc...) is created from the class definition
     using RTTI: published properties are displayed as editing components
   - caller must initialize some events, OnComponentCreate at least,
    in order to supply the objects to be added on the form
   - components creation is fully customizable by some events }
  TRecordEditForm = class(TRTTIForm)
    BottomPanel: TPanel;
    Scroll: TScrollBox;
    procedure FormShow(Sender: TObject);
    procedure BtnSaveClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  protected






|
|
|
|
|
|
|







144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
    /// this event is used to customize the input components after creation
    // - triggered when the component has been created
    // - can be used to disabled the component if user don't have the right
    // to modify its value; but he/she will still be able to view it
    OnComponentCreated: TOnComponentCreated;
  end;

  /// Record edition dialog, used to edit record content on the screen
  // - the window content is taken from the RTTI of the supplied record;
  //   all the User Interface (fields, etc...) is created from the class definition
  //   using RTTI: published properties are displayed as editing components
  // - caller must initialize some events, OnComponentCreate at least,
  //  in order to supply the objects to be added on the form
  // - components creation is fully customizable by some events
  TRecordEditForm = class(TRTTIForm)
    BottomPanel: TPanel;
    Scroll: TScrollBox;
    procedure FormShow(Sender: TObject);
    procedure BtnSaveClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  protected

Changes to SQLite3/mORMoti18n.pas.

2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
  /// number of items in CB_EnumStrings[]
  CB_EnumStringsCount: integer;
  // store the curently identified Hash32() of each english text
  CB_Enum: TDynArrayHashed;

function Hash32Str(crc: cardinal; buf: PAnsiChar; len: cardinal): cardinal;
begin
  result := Hash32(buf,len);
end;

function AddOnceDynArray(const S: WinAnsiString): integer;
var added: boolean;
begin
  if (S='') or (S[1] in ['_','@']) then
    // ignore text beginning with '_' or '@'






|







2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
  /// number of items in CB_EnumStrings[]
  CB_EnumStringsCount: integer;
  // store the curently identified Hash32() of each english text
  CB_Enum: TDynArrayHashed;

function Hash32Str(crc: cardinal; buf: PAnsiChar; len: cardinal): cardinal;
begin
  result := Hash32(pointer(buf),len);
end;

function AddOnceDynArray(const S: WinAnsiString): integer;
var added: boolean;
begin
  if (S='') or (S[1] in ['_','@']) then
    // ignore text beginning with '_' or '@'

Changes to SynopseCommit.inc.

1
'1.18.5203'
|
1
'1.18.5204'