text stringlengths 14 6.51M |
|---|
unit TTextEditorDemo.Form.Main;
interface
uses
Winapi.Messages, Winapi.Windows, System.Classes, System.ImageList, System.SysUtils, System.Variants, Vcl.Controls,
Vcl.Dialogs, Vcl.ExtCtrls, Vcl.Forms, Vcl.Graphics, Vcl.ImgList, Vcl.StdCtrls, TextEditor;
type
TMainForm = class(TForm)
Editor: TTextEditor;
... |
unit uCriticalSectionLocker;
interface
uses
System.SyncObjs
, uLockableIntf
;
type
TCriticalSectionLocker = class(TInterfacedObject, ILockable)
private
FCS: TCriticalSection;
FCurrentlyInside: Boolean;
public
constructor Create;
destructor Destroy; override;
procedure Lock;
... |
unit rcRedmineUser;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, rcObject, rcUserProfile, rcUserRole, rcArrayManager;
type
{ TRedmineUser }
TRedmineUser = class(TRCObject)
private
Info1: TUserProfile;
public
property Info: TUserProfile read Info1;
constructor Create(AName: string; A... |
unit MasterUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, MaximizedUnit, ComCtrls, DateTimeUnit, StdCtrls, ExtCtrls,
ToolWin, ImgList, DbGridUnit, StorageUnit, DetailFrameUnit, Grids, Menus;
type
{ TDetailSheet }
TDetailSheet = class(TTabSheet)
pri... |
unit Vector4iTimingTest;
{$mode objfpc}{$H+}
{$CODEALIGN LOCALMIN=16}
interface
uses
Classes, SysUtils, fpcunit, testregistry, BaseTimingTest, BaseTestCase,
native, BZVectorMath, BZProfiler;
type
{ TVector4iTimingTest }
TVector4iTimingTest = class(TVectorBaseTimingTest)
protected
{$CODEALIGN REC... |
unit OptionsForm;
{$IFDEF FPC}
{$MODE DELPHI}
{$ENDIF}
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, MainForm;
type
TfrmOptions = class(TForm)
grbGeneral: TGroupBox;
cbxSmartAdd: TCheckBox;
cbxIcons: TCheckBox;
grbPaths... |
{*******************************************************************************
作者: dmzn dmzn@163.com 2006-07-07
描述: 对数据提供基本的16位32位CRC校验计算
声明: 本单元公开源码,个人/商业可免费使用,不过请保留此处的说明文字.如果你
对本单元作了合理修改,请邮件通知我,谢谢!
*******************************************************************************}
unit ZnCRC;
interf... |
unit sslClient9Main;
interface
{ SIMPLE INDY 9 SSL CLIENT
Written by Ralph Sickinger, Best Manufacturing Practices Center of Excellence (BMPCOE)
e-mail: ralph@bmpcoe.org
This program is a simply TCP Client that makes an SSL connection on port 3000. To connect
to a server, enter the IP address o... |
(* Last edit: 18-Feb-2012
Author : Nick Korasidis
Generator of maximal conflict-free strings.
Input : d = number of avalable distinct characters. 1 <= d <= 26
Output: A maximal conflict-free string with d distinct characters.
Time complexity : O(d * 2^d).
Space complexity: O(2^d).
*)
program cf... |
unit EmployeeController;
interface
uses
// Delphi
System.SysUtils,
System.StrUtils,
System.JSON,
Data.DB,
// Rest WD
uDWJSONObject,
uDWConstsCharset,
uDWConsts,
// FireDAC
FireDAC.Comp.Client;
type
TEmployeeController = class
private
protected
public
class function Consult... |
unit rt_Lights;
INTERFACE
uses rt_types,rt_Lists,rt_math;
type
rt_light_p=^rt_light;
rt_llist = object (rt_list)
function get_light:rt_light_p;
procedure insert(insnode:rt_light_p);
end;
RT_light = object(rt_obase)
... |
unit upacketadd;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, uclassupdate;
type
{ TForm4 }
TForm4 = class(TForm)
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Button5: TButton;
CheckBoxNewAttr... |
unit TNSNamesEditor;
interface
uses
Winapi.Windows, Winapi.CommDlg, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, SynEdit,
Vcl.ExtCtrls, VirtualTrees, Vcl.ComCtrls, Vcl.ToolWin, BCControls.ToolBar, Vcl.ImgList, BCControls.ImageList,
Vcl.ActnList, Vcl.StdCtrls, BCControls.Edit, V... |
unit SynchroThread;
{$mode objfpc}{$H+}
{$interfaces CORBA}
interface
uses
Classes,
SysUtils,
SyncObjs,
BatchProcessing,
NiceExceptions;
type
ISynchroJob = interface
procedure Execute;
procedure Free;
end;
{ TSynchroThread }
TSynchroThread = class(TComponent)
public
constructor C... |
unit Module.Data.Reception;
interface
uses
System.SysUtils, System.Classes, Data.DB, Datasnap.DBClient,
Datasnap.DSConnect, Core.Data.Master, frxClass, frxDBSet, frxExportXLS,
frxExportPDF;
type
TdmReception = class(TdmMaster)
cdsMasterIDRECEPTION: TStringField;
cdsMasterFECHA: TSQLTimeSt... |
unit parser;
interface
type
pointer_to_list_element = ^list_element;
list_element = record
string_number:longint; {USER NUMBER FOR Debugging }
code:ShortString;
next:pointer_to_list_element;
end;
function parse_file(file_name:ShortString):pointer_to_list_element;
implementation
uses strutils;
procedure ... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ Copyright(c) 2016-2017 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
unit unUpdateNTService;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics
,Vcl.Controls, Vcl.SvcMgr, Vcl.Dialogs, IdHTTPWebBrokerBridge, IdContext,
dmADO;
type
TUpdateServerService = class(TService)
procedure ServiceAfterInstall(Sender: TService);
... |
unit aOPCShape;
interface
uses
SysUtils, Classes, Controls, ExtCtrls;
type
TOPCShapeType = (ostNone, ostCross, ostDiagCross);
TaOPCShape = class(TShape)
private
OriginalLeft,OriginalTop,OriginalWidth,OriginalHeight: integer;
FOPCShape: TOPCShapeType;
procedure SetOPCShape(const Value: TOPCShapeT... |
unit uJxdOnlineUserManage;
interface
uses
Windows, Classes, SysUtils, uJxdDataStruct, uJxdMemoryManage, uJxdThread, uJxdDataStream,
uJxdUdpDefine;
type
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// TServerHashList... |
unit UProductCatalog;
interface
uses
System.Generics.Collections, UItemID, UProductDescription, UMoney;
type
IProductCatalog = interface
function getProductDescription(id: integer): IProductDescription;
end;
TProductCatalog = class(TInterfacedObject, IProductCatalog)
private
Map: TDi... |
{$include kode.inc}
unit syn_s2_master;
//----------------------------------------------------------------------
interface
//----------------------------------------------------------------------
uses
kode_const,
kode_debug,
kode_control,
kode_editor,
kode_plugin,
//kode_voice,
kode_voicemanager,
kode... |
unit SQLConverterKlient;
interface
uses
Classes, SysUtils,
DatabaseDefinition, SQLConverter, SQLProducer,
RT_BaseTypes, RT_Klient;
type
TSQLConverterKlient = class (TInterfacedObject, ISQLConverter)
private
FTable: TTable;
FSQLProducer: TSQLProducer;
property
SQLProducer: TSQLP... |
{*******************************************************}
{ }
{ Работа со строками }
{ Copyright (c) 2001-2019 by Alex A. Lagodny }
{ }
{*****************************... |
unit ufrmBarcodeRequest;
interface
uses
SysUtils, Classes, Controls, Forms, ufrmMasterBrowse, StdCtrls, ExtCtrls,
ActnList, cxGraphics, cxControls,
cxLookAndFeels, cxLookAndFeelPainters, dxBarBuiltInMenu, cxStyles,
cxCustomData, cxFilter, cxData, cxDataStorage, cxEdit, cxNavigator, Data.DB,
cxDBData, cxCont... |
unit hcDeployment;
interface
uses
hcObject
,hcObjectList
,hcParentedObjectList
,hcAttribute
,hcTypes
;
const
vchar_max = 2048;
type
TVersionRec = record
Major,
Minor,
Release,
Build :SmallInt;
end;
{
Persisted to XML manifest file.
}
ThcDeploymentI... |
unit Demo2_1;
interface
uses
Classes, SysUtils;
type
// this is Message Data
TMailSenderMessage = class
public const
MB_MAILSENDER = '{5ACDE5DB-2BD6-497E-9B65-BB2A3FEE2D38}';
public type
TMailSenderFilter = (msfOne, msfTwo);
private
fFilter: TMailSenderFilter;
... |
{*******************************************************************************
Title: T2Ti ERP
Description: VO relacionado à tabela [ECF_E3]
The MIT License
Copyright: Copyright (C) 2010 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated document... |
unit gcHTTPClientThread;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fphttpclient, HTTPDefs, DateUtils;
type
TSyncRequestParamsEvent = procedure(var request: string; var refresh: integer; var user, pass: string) of object;
TSyncResponseDataEvent = procedure(response: string) of object;
TW... |
// Copyright (c) 2016, Jordi Corbilla
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// - Redistributions of source code must retain the above copyright notice,
// this list of conditions ... |
unit AltitudePoster;
interface
uses PersistentObjects, DBGate, BaseObjects, DB, Altitude;
type
TMeasureSystemTypeDataPoster = class(TImplementedDataPoster)
public
function GetFromDB(AFilter: string; AObjects: TIdObjects): integer; override;
function PostToDB(AObject: TIDObject; ACollection: TIDObjects): ... |
unit FileTypes;
// file types used by GTA Map Viewer
// © 2005 by Steve M.
interface
uses
Windows, OpenGL12, Geometry, Misc, RequiredTypes, TextureStuff;
const
VERT_SCALE = 1/128;
VERT_SCALE_CAR = 1/1024;
UV_SCALE = 1/4096;
NORM_SCALE = 1/8192;
type
TArchive = class
private
... |
unit TextEditor.Print.HeaderFooter;
interface
uses
Winapi.Windows, System.Classes, System.SysUtils, System.UITypes, Vcl.Graphics, TextEditor.Print.Margins,
TextEditor.Types, TextEditor.Utils;
type
TTextEditorSectionItem = class
strict private
FAlignment: TAlignment;
FFont: TFont;
FIndex: Integer... |
unit VkApi;
interface
uses
System.SysUtils, IPPeerServer, IPPeerClient, REST.Authenticator.OAuth,
REST.Client, REST.Types, REST.Utils, System.Math, System.Types,
System.StrUtils, System.JSON, System.Variants, SynCommons, VkApi.Photo,
System.DateUtils, VkApi.Utils, VkApi.Authenticator, VkApi.Types,
... |
unit Grijjy.TextToSpeech.Android;
{< Text To Speech engine implementation for Android }
interface
uses
Androidapi.JNIBridge,
Androidapi.JNI.JavaTypes,
{$IF RTLVersion >= 31}
Androidapi.JNI.Speech,
{$ELSE}
Androidapi.JNI.GraphicsContentViewText,
{$ENDIF}
Grijjy.TextToSpeech.Base;
{$IF RTLVersion < 31}... |
unit UBackupFirebird;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls,
Vcl.ExtCtrls, Vcl.ImgList, System.ImageList, Registry;
type
TfrmBackupFirebird = class(TForm)
btnBackup: ... |
unit BusinessObjectsU;
interface
uses
MVCFramework.Serializer.Commons;
type
[MVCNameCase(ncLowerCase)]
TPerson = class
private
FLastName: String;
FDOB: TDate;
FFirstName: String;
FMarried: boolean;
procedure SetDOB(const Value: TDate);
procedure SetFirstName(const Value: String);
... |
unit UFormSetup;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, ActnList, Spin;
type
TfrmSetup = class(TForm)
cbInterval: TComboBox;
Label1: TLabel;
Panel1: TPanel;
Button1: TButton;
cbTrayOnMinimize: TCheckBox;
cbA... |
{$include kode.inc}
unit syn_s2_env;
{
todo: decay times based on time & samplerate
- use 'proper' rc filters..
}
//----------------------------------------------------------------------
interface
//----------------------------------------------------------------------
uses
kode_control,
kode_editor,
kode_... |
unit SelSessionFrm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons;
const
WM_OPENSESSION = WM_USER + 202;
type
PScriptSession = ^TScriptSession;
TScriptSession = record
FileName: string;
end;
TSelSessionForm = class(TFor... |
unit Thead.PopulaExtratoExpressa;
interface
uses
System.Classes, Model.ExtratosExpressas, Generics.Collections, DAO.ExtratosExpressas, Model.Entregadores, DAO.Entregadores, clAgentes, Forms, Windows, System.SysUtils;
type
Thead_PopulaExtratoExpressa = class(TThread)
private
{ Private declarations }
FdP... |
{ History:
2015-12-10 V0.1 First try to read telemetry, GUI created, import and data
consistence check.
2015-12-21 V1.0 KML or KMZ file creation, Elevation histogram added
2015-12-23 V1.1 Voltage curve as underlay in Elevation histogram
2015-12-25 V1.2 Distance to start place added, hist... |
** Delphi Declarations for CRPE(32).DLL
** ====================================
**
** File : CRDELPHI.PAS
** Authors : James Anderson, Andre Couturier, Frank Zimmerman
** Date : 14 Oct 1999
** Purpose : This file presents the API to the Crystal Reports
** Print Engine DLL. This file will co... |
unit uMainForm;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls,
BZColors, BZGraphic, BZBitmap;
Const
{ Nombre aléatoire premier pour l'axe des X }
cX_PRIME = 1619;
{ Nombre aléatoire premier pour l'axe des Y }
cY_PRIME = 31337;
{ Nombre alé... |
unit Aria2;
//TODO: option groups (input/global/cli/etc)
//TODO: Check parameters, especially in AddTorrent/AddMetalink
interface
uses
Windows, AvL, avlSyncObjs, avlUtils, avlJSON, Base64;
type
TOnRPCRequest = function(Sender: TObject; const Request: string): string of object;
TRequestID = Cardina... |
{$INCLUDE switches.pas}
unit Barbarina;
interface
uses
{$IFDEF DEBUG}SysUtils,{$ENDIF} // necessary for debug exceptions
{$IFDEF DEBUG}Names,{$ENDIF}
Protocol, ToolAI, CustomAI;
const
nModelCategory=4;
ctGroundSlow=0; ctGroundFast=1; ctSeaTrans=2; ctSeaArt=3;
maxCOD=256;
maxModern=16;
// maxim... |
{$IFDEF DELPHI_2005_UP}{$REGION 'Класс TCWindowThread является потомком TComponent, содержит TThreadWindow и может использоваться в визуальной среде разработк...'}{$ENDIF}
/// <summary>Класс TCWindowThread является потомком TComponent, содержит TThreadWindow и может использоваться в визуальной
/// среде разработки. Это... |
unit Aurelius.Sql.AbsoluteDB;
{$I Aurelius.inc}
interface
uses
DB,
Aurelius.Sql.AnsiSqlGenerator,
Aurelius.Sql.BaseTypes,
Aurelius.Sql.Commands,
Aurelius.Sql.Interfaces,
Aurelius.Sql.Metadata,
Aurelius.Sql.Register,
Aurelius.Global.Utils,
Variants,
SysUtils,
Generics.Collection... |
Unit csCSV;
//https://www.delphipraxis.net/174012-csv-dateien-einlesen.html
//war wegen Unicode nicht brauchbar. Habe alle Char und PChar durch AnsiChar und PAnsiChar ersetzt
(******************************************************************************
* CSV Reader Klasse ... |
unit VisibleDSA.AlgoVisualizer;
{$mode objfpc}{$H+}
interface
uses
Classes,
SysUtils,
Graphics,
Forms,
BGRACanvas2D,
VisibleDSA.AlgoVisHelper,
VisibleDSA.MazeData,
VisibleDSA.Position;
type
TAlgoVisualizer = class(TObject)
const
D: TArr2D_int = ((-1, 0), (0, 1), (1, 0), (0, -1));
private... |
{
wzsTools components
(c) Protasov Serg
wzonnet.blogspot.com
wzff.livejournal.com
wzonnet@kemcity.ru
}
unit u_wzsDBLookupCheckBox;
interface
uses
SysUtils, Classes, Controls, Forms, StdCtrls, CheckLst,
Messages, DB, DBCtrls, Dialogs,
u_wzsToolsCommon, u_wzsComponentsCommon {$ifdef ver150}, Var... |
unit P16r16; { p16r16.dll interface unit }
interface
const
TYPE_P16R16 =0;
TYPE_P8R8 =1;
// TYPE_TMC12 =2;
// TYPE_DA16 =3;
// TYPE_DA8 =4;
function PCI_ShortSub2(nA : smallint; nB : smallint) : smallint; StdCall;
function PCI_FloatSub2(fA : single; fB : single) : single; StdCall;
fu... |
unit BZRenderContextInfo;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils,
BZClasses, BZVectorMath;
Type
TBZViewportSize = Record
width : Longint;
Height : Longint;
end;
TBZRenderState = (dsRendering, dsPicking, dsPrinting);
{ TBZCameraType : Pour definir le type de camera 2D ou 3D }
T... |
PROGRAM WorkWithQueryString(INPUT, OUTPUT);
USES
Dos;
FUNCTION GetQueryStringParameter(Key: STRING): STRING;
VAR
Value, QueryString: STRING;
KeyLength, KeyIndex, ValueLength: INTEGER;
BEGIN
QueryString := GetEnv('QUERY_STRING');
IF (POS(Key, QueryString) > 0)
THEN
BEGIN
KeyLength := LENGTH(Key);
... |
unit StrContainer;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TStrContainer = class(TComponent)
private
{ Private declarations }
FLines : TStrings;
protected
{ Protected declarations }
procedure SetLines ( Value : TStrings );
//procedure ... |
unit UItemPedido;
interface
type TItemPedido = class
private
// atributos e métodos privados
FNUM_PEDIDO :Integer;
FCODIGO_PRODUTO :Integer;
FQUANTIDADE : Integer;
FVLR_UNITARIO: Currency;
FVLR_TOTAL: Currency;
protected
// atributos e métodos protegidos
Public
// atibutos e métodos públicos
property NU... |
unit iaRTL.SyncBucket.Config;
interface
uses
iaRTL.API.Keys;
type
TSyncBucketConfig = record
private const
defBaseName = 'SyncBucket';
defDatabaseName = defBaseName + '.db3';
defINIFileName = defBaseName + '.ini';
INISection = defBaseName + 'Config';
private
AppPath:strin... |
unit Minerva.Treinamento.Proxy.ExecutorMetodoServidor;
interface
uses
System.Generics.Collections, System.Rtti, System.Classes, vcl.Dialogs;
type
IExecutorMetodoServidor = interface
['{09B34189-ECE6-45A1-8302-EAC62794C13B}']
function GetParametro(const pNome: string): TValue;
procedure SetParametro(con... |
unit AsmParserInstruction;
interface
uses
System.TypInfo,
cstring,
ctype,
stdlib,
AsmInstruction;
function AsmParseString(Instruction: TAsmInstructionPtr): Boolean;
implementation
uses
hash,
global;
type
TAsmParserTokensPtr = ^TAsmParserTokens;
TAsmParserTokens = array[0..7] of array[0..63] of A... |
(*======================================================================*
| unitStreamTextReader |
| |
| Various classes for reading (and writing) text from streams: |
| ... |
unit Sound;
interface
uses
Windows,Messages,SysUtils,Classes,Graphics,Controls,Forms,MMSystem;
function PrepareSound(FileName: string): integer;
procedure PlaySound(FileName: string);
type
TSoundPlayer = class(TForm)
private
procedure OnMCI(var m:TMessage); message MM_MCINOTIFY;
end;
impl... |
unit UnitScreenPhysics2D;
{$ifdef fpc}
{$mode delphi}
{$ifdef cpu386}
{$asmmode intel}
{$endif}
{$ifdef cpuamd64}
{$asmmode intel}
{$endif}
{$else}
{$ifdef conditionalexpressions}
{$if CompilerVersion>=24.0}
{$legacyifend on}
{$ifend}
{$endif}
{$endif}
{$if defined(Win32) or defined(Wi... |
unit View.OcorrenciasJornal;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, dxSkinsCore, dxSkinBlack,
dxSkinBlue, dxSkinBlueprint, dxSkinCaramel, ... |
unit RT_Ulica;
interface
uses
Classes, SysUtils,
RT_Base, RT_BaseTypes;
type
TRT_Ulica = class (TRT_DataObject)
private
function GetData: PRTUlicaRec;
protected
function GetDataSize: Word; override;
public
constructor Create;
property D: PRTUlicaRec read GetData;
end;
... |
unit sspi;
interface
uses Windows, SysUtils;
const
SEC_WINNT_AUTH_IDENTITY_ANSI = $01;
SEC_WINNT_AUTH_IDENTITY_UNICODE = $02;
SECPKG_ATTR_SIZES = 0;
SECPKG_ATTR_NAMES = 1;
SECPKG_ATTR_LIFESPAN = 2;
SECPKG_ATTR_DCE_INFO = 3;
SECPKG_ATTR_STREA... |
unit uMainForm;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes,
System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
FMX.ListView.Types, FMX.ListView.Appearances, FMX.ListView.Adapters.Base,
FMX.ListView, FMX.TabControl, FMX.StdCtrls, FMX.Controls.Pre... |
unit unPromissoria;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, unSimplePadrao, StdCtrls, Buttons, ExtCtrls, uniGUIBaseClasses,
uniGUIClasses, uniButton, uniBitBtn, uniEdit, uniPanel;
type
TfrmPromissoria = class(TfrmSimplePadrao)
btnCliente: TUniBit... |
Unit AdvTimeControllers;
{
Copyright (c) 2001-2013, Kestral Computing Pty Ltd (http://www.kestral.com.au)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain ... |
unit uOverNightMgr;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters,
cxContainer, cxEdit, dxSkinsCore, dxSkinCaramel, cxStyles,
cxCustomData, cxFilter, cxData, cxDataStorage, DB,
cxDBData, cxLabe... |
unit uWinSock;
interface
uses System.SysUtils,System.classes, Winapi.Windows, WinSock;
type
TWinSockLib = class(TObject)
public
function GetIP(): TStrings;
end;
implementation
{ TWinSockLib }
{ function TWinSockLib.GetIP: String;
var
wData: WSADATA;
HostName: String;
pHostInfo: pHostEnt;
begin... |
unit systemconsts;
interface
uses classes, vkvariable;
const
ATTRIBUTES_OKU = 1;
ATTRIBUTES_OAU = 2;
const
// Access
//*******************************************************************************
//* Права доступа. Константы, возвращаемые функцией GetAccessRights *
//*****************************... |
unit LiteCCompiler;
interface
uses
Classes, Types, Windows, SysUtils, ShellApi, Registry;
procedure CompileLiteC(AFile, AOptions: string; AErrors: TStrings);
function GetAcknexPath(): string;
implementation
uses
LLCErrorConverter, ExecuteLib;
procedure RemoveNonErrorLines(AList: TStrings);
var... |
{
ORM Brasil é um ORM simples e descomplicado para quem utiliza Delphi
Copyright (c) 2016, Isaque Pinheiro
All rights reserved.
GNU Lesser General Public License
Versão 3, 29 de junho de 2007
Copyright (C) 2007 Free S... |
{ *******************************************************************************
Title: T2Ti ERP
Description: VO relacionado à tabela [CLIENTE]
The MIT License
Copyright: Copyright (C) 2015 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and assoc... |
{unit FindSort
Author: Wellington Lima dos Santos
Contact: wlsantos@alunos.ufv.br or santoswl@yahoo.com.br
Purposes:
1. Sort a Generic Array (CustomArray) by QuickSort algorithm, where
CustomArray is a var of type: array[LowIndex..HighIndex] of YourType;
2. Find an item by binary search algorithm
Y... |
unit uQuery;
interface
uses
FireDAC.Comp.Client, Classes, Datasnap.DBClient, Data.DB;
type
[ComponentPlatformsAttribute(pidWin32 or pidWin64 or pidOSX32 or pidiOSSimulator or pidiOSDevice or pidAndroid)]
TRFQuery = class(TFDQuery)
public
function fpuCopiarToClientDataSet: TClientDataSet;
function fpu... |
unit EditMarkers;
// -------------------------------------
// CHART - Edit chart markers dialog box
// -------------------------------------
// 20.05.03
// 14.11.05 Table of markers can now be edited
// 10.08.06 Error when all markers deleted fixed
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Grap... |
{ *******************************************************************************
Title: T2Ti ERP
Description: Janela para edição de documentos Word
The MIT License
Copyright: Copyright (C) 2016 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated docu... |
unit ConverteInvertido;
interface
uses ConverteTexto, SysUtils, StrUtils;
type
TConverteInvertido = class(TConverteTexto)
private
public
function Converter: String; override;
end;
implementation
{ TConverteInvertido }
function TConverteInvertido.Converter: String;
begin
Result := ReverseString(Texto)... |
unit uMain;
{
Catarinka Lua Extension Library
Copyright (c) 2013-2016 Felipe Daragon
License: 3-clause BSD
See https://github.com/felipedaragon/catarinka/ for details
}
interface
{$I Catarinka.inc}
uses
{$IFDEF DXE2_OR_UP}
Winapi.Windows, System.Classes, System.SysUtils, Winapi.ShellAPI,
System.TypInfo,... |
unit ulexer;
{$mode objfpc}{$H+}
interface
uses
SysUtils;
const MAX_ID_LEN = 7;
type
TTokenType = (tNone, tNum, tId, tFunc, tPlus, tMinus, tMultiply, tDivide, tMod, tPower,
tUnarMinus, tOpParenthes, tClParenthes, tAssign, tVectorBegin, tVectorEnd,
tComma, tInstructionEnd,... |
{
视频合成的处理参数
}
unit VideoSlideParams;
interface
uses
Windows, DecoderParam, CodecDefine;
type
WatermarkParam = record
hModule : HMODULE;
szID : array [0..511] of WideChar; // 水印资源ID
Rect : TRect; // 相对于剪裁后的图像分辨率中的位置
nOpacity : Integer; ... |
unit HJYDataRecords;
interface
uses SysUtils, Classes, Variants, DB;
type
THJYDataItem = class(TObject)
private
FData: Variant;
public
property Data: Variant read FData write FData;
function AsString: string;
function AsInteger: Integer;
function AsBoolean: Boolean;
function AsCurrency:... |
unit SettingsUnit;
// ------------------------------------
// MesoScan - Scan Settings dialog box
// ------------------------------------
// 1-6-12 MinPixelDwellTimeAdded
// 17.03.15 Scan now only set to full field when full field with changed.
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System... |
unit semaphores;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Windows;
type
TSemaphore = class
private
Handle: HANDLE;
public
CurrentValue: Cardinal;
constructor Create();
constructor Create(StartingStatus, MaximumStatus: Cardinal);
destructor Dest... |
unit datBase;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, sqldb, db, FileUtil,datGeneral, ZDataset, ZStoredProcedure, ZAbstractConnection;
type
{ TDmBase }
TDmBase = class(TDataModule)
private
{ private declarations }
public
{ public declarations }
function NuevoID(Connection: TZAb... |
unit VSESysInfo;
interface
uses
Windows, AvL, avlUtils, OpenGL, oglExtensions, VSELog, VSECore;
type
TSystemInfo = class(TModule)
private
procedure LogSysInfo;
procedure LogGLCaps;
{$IFDEF VSE_DEBUG}procedure LogUnits;{$ENDIF}
public
class function Name: string; override;
p... |
{ Routines that parse tokens and return floating point numbers. All
* the routines here are the same execpt for the type of floating point
* number they return.
*
* Subroutine STRING_TOKEN_FPx (S, P, FP, STAT)
*
* Parse the next token from the string S and convert it to a
* floating point number in FP. P ... |
unit BitmapUtils;
interface
uses
Winapi.Windows, Vcl.Graphics, Vcl.Forms, Vcl.Controls, System.Classes,
System.Math, Vcl.Imaging.jpeg;
const
CAPTUREBLT = $40000000;
type
TBitmapCompareResult = record
Bitmap: TBitmap;
Count: Integer;
end;
function BitmapCrop(aBitmap: TBitmap; const aRect: TRect): ... |
{-------------------------------------------------------------------------------
$File$, (C) 2006 by Bernd Gabriel. All rights reserved.
--------------------------------------------------------------------------------
Author : $Author: Bernd $
Last CheckIn : $Date: 2007/09/02 21:06:55 $
Revision : $Revision: ... |
unit DomCore;
{
This unit represents in implementation of the core DOM classes.
https://www.w3.org/TR/DOM-Level-3-Core/core.html
History
=======
1/7/2021
- Removed TEntityReference (per HTML5)
12/22/2021
- Removed TDocumentType.Entities, Notations, and InternalSubset (per HTML5)
- Removed TNode.IsSup... |
program Hello;
procedure greet();
begin
writeln ('Hello, world.');
end;
begin
greet();
readln
end. |
unit sFileCtrl;
{$I sDefs.inc}
{$R-,T-,H+,X+}
interface
uses Windows, Messages, SysUtils, Classes, Controls, Graphics, Forms,
Menus, StdCtrls, Buttons, sComboBox, sComboBoxes, ShlObj, ActiveX;
type
TsFilterComboBox = class(TsCustomComboBox)
{$IFNDEF NOTFORHELP}
private
FFilter: string;
function IsFilte... |
(* ***************************************************************************
This example program reads and displays basic info of a bitmap file specified
by the user via command line.
You can run it like this: ./info <file>
*************************************************************************** *)... |
unit UdmMonitor;
interface
uses
System.SysUtils, System.Classes, UMessage, System.SyncObjs, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf,
Data.DB, FireDAC.Comp.DataSet, FireDAC.Comp.Client;
type
TdmMonitor = class(TDataModule... |
Unit Menu;
Interface
Type
aChoiceArray = Array [ 1..11 ] of String; {Menucito para usar el teclado hecho por mi!}
Function aChoice ( VAR aNames : aChoiceArray; iMax : Integer; X,Y : Byte ) : Integer;
Implementation
Uses Crt;
{FUNCION aCHoice
Crea un menu en pantalla con los datos de un array con las opciones
y dev... |
program algoritmoEstoque;
{algoritmo para guardar movimentação de um estoque; data: 1/11/16; responsável: Paulo Henrique Caetano}
uses
crt;
type
tControleEstoque= record
codigo:integer;
qtd:real;
ES: char;
end;
tMatEstoque= array [1001..9999] of tControleEstoque;
tArqEstoque= file of tControleEstoque;
fu... |
unit VectorNumericsTestCase;
{$mode objfpc}{$H+}
{$CODEALIGN LOCALMIN=16}
interface
uses
Classes, SysUtils, fpcunit, testregistry, BaseTestCase,
native, BZVectorMath;
type
{ TVectorNumericsTestCase }
TVectorNumericsTestCase = class(TVectorBaseTestCase)
published
procedure TestCompare; // these t... |
unit SuperClasses;
{*******************************************************************************
Generated By : JsonToDelphiClass - 0.65
Project link : https://github.com/PKGeorgiev/Delphi-JsonToDelphiClass
Generated On : 2019-03-08 13:39:22
Created By : Petar Georgiev - (http://pg... |
unit Lbsqlcmb;
interface
Uses SysUtils,StdCtrls,Classes,Buttons,Controls,ExtCtrls,Menus,
Messages,SQLCombo,SQLCtrls,DBTables;
Type TLabelSQLComboBox=class(TSQLControl)
protected
BackUp:Integer;
procedure WriteCaption(s:string);
Function ReadCaption:String;
procedure WriteDSN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.