54 |
|
|
55 |
|
uses SysUtils, Classes, Graphics, Dialogs, Controls, Forms, TypInfo, |
56 |
|
DB, IBTable, IBDatabase, IBEventsEditor, LazarusPackageIntf, |
57 |
< |
IBUpdateSQL, ComponentEditors, PropEdits, DBPropEdits, FieldsEditor, |
57 |
> |
IBUpdateSQL, IBUpdate, ComponentEditors, PropEdits, DBPropEdits, FieldsEditor, |
58 |
|
dbFieldLinkPropEditor, dbFieldListPropEditor, IBDialogs; |
59 |
|
|
60 |
|
type |
389 |
|
IBInsertSQLEditor, IBGeneratorEditor, IBUpdateSQLEditor, IBDataSetEditor, |
390 |
|
IBSQLEditor, ibserviceeditor, LCLVersion, IBDynamicGrid, IBLookupComboEditBox, |
391 |
|
IBTreeView, DBControlGrid, ibxscript, IBLocalDBSupport, IBDSDialogs, |
392 |
< |
IBArrayGrid; |
392 |
> |
IBArrayGrid, IBVersion, IBDataOutput; |
393 |
|
|
394 |
|
const |
395 |
|
IBPalette1 = 'Firebird'; {do not localize} |
397 |
|
IBPalette3 = 'Firebird Data Controls'; {do not localize} |
398 |
|
|
399 |
|
resourcestring |
400 |
< |
SInterbaseExpressVersion = 'Firebird Express for Lazarus 2.0.0'; |
400 |
> |
SInterbaseExpressVersion = 'Firebird Express for Lazarus ' + IBX_VERSION; |
401 |
|
SEditSQL = 'Edit SQL'; |
402 |
|
SIBSQLEditor = 'IBSQL Editor'; |
403 |
|
SIBServiceEditor = 'Edit IB Service'; |
416 |
|
Exit; |
417 |
|
end; |
418 |
|
|
419 |
< |
RegisterNoIcon([TIBStringField, TIBBCDField, TIBMemoField, TIBArrayField]); |
419 |
> |
RegisterNoIcon([TIBStringField, TIBBCDField, TIBMemoField, TIBArrayField, |
420 |
> |
TIBSmallintField, TIBIntegerField, TIBLargeIntField]); |
421 |
|
{$if lcl_fullversion < 01010000} |
422 |
|
{see http://bugs.freepascal.org/view.php?id=19035 } |
423 |
|
RegisterNoIcon([TIntegerField]); |
424 |
|
{$endif} |
425 |
|
RegisterComponents(IBPalette1, [ TIBQuery, TIBDataSet, |
426 |
< |
TIBDatabase, TIBTransaction, TIBUpdateSQL, TIBEvents, |
426 |
> |
TIBDatabase, TIBTransaction, TIBUpdateSQL, TIBUpdate, TIBEvents, |
427 |
|
TIBSQL, TIBDatabaseInfo, TIBSQLMonitor, |
428 |
< |
TIBStoredProc,TIBBatchMove, TIBTable,TIBExtract, TIBXScript, TIBLocalDBSupport]); |
428 |
> |
TIBStoredProc,TIBBatchMove, TIBTable,TIBExtract, TIBXScript, TIBLocalDBSupport, |
429 |
> |
TIBBlockFormatOut,TIBCSVDataOut,TIBInsertStmtsOut]); |
430 |
|
if FirebirdAPI.HasServiceAPI then |
431 |
|
RegisterComponents(IBPalette2, [TIBConfigService, TIBBackupService, |
432 |
|
TIBRestoreService, TIBValidationService, TIBStatisticalService, |
836 |
|
IBSQL: TIBSQL; |
837 |
|
begin |
838 |
|
IBSQL := GetComponent(0) as TIBSQL; |
839 |
< |
if IBSQLEditor.EditIBSQL(IBSQL) then Modified; |
839 |
> |
if IBSQLEditor.EditSQL(IBSQL) then Modified; |
840 |
|
end; |
841 |
|
|
842 |
|
{ TIBUpdateSQLEditor } |
1202 |
|
|
1203 |
|
procedure TIBSQLEditor.ExecuteVerb(Index: Integer); |
1204 |
|
begin |
1205 |
< |
if IBSQLEditor.EditIBSQL(TIBSQL(Component)) then Modified; |
1205 |
> |
if IBSQLEditor.EditSQL(TIBSQL(Component)) then Modified; |
1206 |
|
end; |
1207 |
|
|
1208 |
|
function TIBSQLEditor.GetVerb(Index: Integer): string; |
1225 |
|
IBSQL: TIBSQL; |
1226 |
|
begin |
1227 |
|
IBSQL := GetComponent(0) as TIBSQL; |
1228 |
< |
if IBSQLEditor.EditIBSQL(IBSQL) then Modified; |
1228 |
> |
if IBSQLEditor.EditSQL(IBSQL) then Modified; |
1229 |
|
end; |
1230 |
|
|
1231 |
|
initialization |