text
stringlengths
14
6.51M
unit IdTestIOHandler; interface uses IdTest, IdIOHandler, IdObjs, IdStream, IdGlobal, IdSys; type //reads and writes to its own inputbuffer, makes easy to test TIdLoopbackIOHandler = class(TIdIOHandler) public procedure CheckForDataOnSource(ATimeout:Integer); override; pr...
unit unitMain; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, ExtCtrls, StdCtrls, Buttons, Spin, unitAbout, unitFigures, unitTools, UnitScale, Types; type { TFormMain } TFormMain = class(TForm) MainMenu: TMainMenu; Menu...
unit RunScript; interface type TRunScript = class private class function CallMethod(Instance: TObject; ClassType: TClass; const MethodName: String; var Params: Variant): Variant; class procedure SetProperty(Obj: TObject; PropertyName: string; Value: Variant); public class proc...
unit ParametersForm; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Controls.Presentation, FMX.ScrollBox, FMX.Memo, FMX.StdCtrls; type TForm1 = class(TForm) Memo1: TMemo; Button1: TButto...
unit AT.DX.Ribbon; interface uses dxRibbon; type TATdxRibbonHeightEvent = procedure (Sender: TdxCustomRibbon) of object; TATdxRibbon = class(TdxRibbon) strict private FOnRibbonHeightChanged: TATdxRibbonHeightEvent; strict protected procedure DoRibbonHeightChangedEvent(Sender: TdxCustomRibbon); vir...
{* Name: functions.pas Programmers: Kevin Masterson (k.m.masterson@gmail.com), Rob Close (rob0229@gmail.com) *} unit functions; interface uses sysutils, types; procedure printStack(numprint: integer); function createFunction(): function_info ; procedure callFunction(); procedure functionReturn(); function calculateA...
unit xml; interface uses SysUtils, Classes; function XmlPosUnescape( const data: string; pos, len: integer ): string; stdcall; function XmlUnescape(const data: string): string; stdcall; function XmlEscape(const data: string): string; stdcall; function XmlPosGetTag( const data, tagname: string; pos, len...
/// /// DelphiJSON Library - Copyright (c) 2020 Corbinian Gruber /// /// Version: 1.0.0 /// /// This library is licensed under the MIT License. /// https://github.com/gruco0002/DelphiJSON /// unit DelphiJSON; interface uses System.SysUtils, System.JSON, System.RTTI, System.Generics.Collections; type /// <summa...
unit SqlQueryBuilder; interface uses SysUtils, SqlWhereClauseBuilder; type TInsertBuilder = class(TObject) private Columns: String; Values: String; QueryTable: String; procedure addValue(column, value: String); public function Into(table: String): TInsertBuilder; function Value(colu...
unit Unit9; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Design, StdCtrls, ExtCtrls, Buttons,ComCtrls; type TForm1 = class(TForm) Panel1: TPanel; Designer1: TDesigner; Label1: TLabel; lbCtrl: TLabel; btnNormal: TSpeedButton; btnLabel: TSpeedBu...
unit dmFS; interface uses SysUtils, Classes, DB, IBCustomDataSet, IBQuery, Controls, dmThreadDataModule; type TFSType = (fstDirectory, fstFile); TFS = class(TThreadDataModule) qFS: TIBQuery; qFSOID_FS: TIntegerField; qFSOR_PADRE: TIntegerField; qFSTIPO: TIBStringField; qFSNOMBRE: TIBStr...
{*****************************************************************************} { BindAPI } { Copyright (C) 2020 Paolo Morandotti } { Unit plBindAPI.Types } ...
unit XFaceTransferInGraphic; (* * Compface - 48x48x1 image compression and decompression * * Copyright (c) James Ashton - Sydney University - June 1990. * * Written 11th November 1989. * * Delphi conversion Copyright (c) Nicholas Ring February 2012 * * Permission is given to distribute these sources, as...
unit UCopyPlugins; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, UPlugin, ImgList, ActnList; type TRDSCopyPlugIns = class(TRDSPlugIn) ImageList: TImageList; acEditCopy: TAction; acEditPaste: TAction; procedure acEditCopyExecute(Sender: TObject); ...
unit SG_BlobFieldsManager; interface { -------------------------------------------------------------------------------- example of usage (TMyBlobFieldsManager inherit from TSG_BlobFieldsManager and implements the methods readFields and saveFields): // save files to fields. myBlobFieldsManager:=TMyBlobFieldsManag...
unit Mm01; { ULMM01.DPR================================================================ File: MM01.PAS Library Call Demonstrated: cbAPretrig() with EXTMEMORY option and cbReadPretrigData() Purpose: Collect pre-trig data from A/D t...
(*============================================================================ -----BEGIN PGP SIGNED MESSAGE----- This code (c) 1994, 1997 Graham THE Ollis GENERAL NOTES ============= This is 16bit DOS TURBO PASCAL source code. It has been tested using TURBO PASCAL 7.0. You will need AT LEAST version 5.0 ...
unit AsphyreMD5; interface uses SysUtils; procedure MD5Checksum(Source: Pointer; Size: Integer; Checksum: Pointer); implementation {$R-} {$Q-} type MD5Block = array[0..15] of Longword; MD5CBits = array[0..7] of Byte; TMD5State = array[0..3] of Longword; TMD5Digest = array[0..15] of Byte; TMD5Buffer =...
unit Unit_SaveDialog; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Buttons, StdCtrls, ExtCtrls, FileCtrl, MPIDeclaration; type TfrmSaveDialog = class(TForm) ListBox1: TListBox; Label1: TLabel; BitBtn1: TBitBtn; Label2: TLabel; Bev...
{ Модуль узла OPC сервера ВНИМАНИЕ! Для удаленного использования на компьютере с OPC сервером необходимо разрешить удаленный доступ к COM серверам (для Windows 7): Панель управления -> Администрирование -> Службы компонентов -> Компьютеры -> Мой компьютер -> Контекстное меню -> Свойства -> Безопасность COM -> Для секц...
{******************************************************************************} { } { WiRL: RESTful Library for Delphi } { ...
{ SdpoSerial v0.1.4 CopyRight (C) 2006-2010 Paulo Costa This library is Free software; you can rediStribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later versio...
// // Created by the DataSnap proxy generator. // 2011-07-07 ¿ÀÀü 8:26:25 // unit ClientClassesUnit1; interface uses DBXCommon, DBXClient, DBXJSON, DSProxy, Classes, SysUtils, DB, SqlExpr, DBXDBReaders, DBXJSONReflect; type TServerMethods1Client = class(TDSAdminClient) private Fget_deptCommand: TDBXComman...
unit preferences; {$mode delphi} interface uses Classes, SysUtils, And_jni, AndroidWidget; type {Draft Component code by "Lazarus Android Module Wizard" [8/13/2014 2:20:51]} {https://github.com/jmpessoa/lazandroidmodulewizard} {jControl template} jPreferences = class(jControl) private FIsShared: boolean; ...
unit RepositorioIpiTrib; interface uses DB, Repositorio; type TRepositorioIpiTrib = class(TRepositorio) protected function Get (Dataset :TDataSet) :TObject; overload; override; function GetNomeDaTabela :String; override; function GetIdentificador(Objeto...
unit NewtRaphInterval; interface uses uTExtendedX87, System.SysUtils, System.Classes, Windows, System.Math, IntervalArithmetic32and64; type Extended = TExtendedX87; type fx = function (x : interval) : interval; function NewtonRaphsonInterval (var x : interval; f,df,d2f : fx;...
unit UMZEmployeeUnit; interface uses DomainObjectUnit, UMZDepartmentUnit; type TUMZEmployee = class(TDomainObject) protected FPersonnelNumber: String; FName: String; FFamily: String; FPatronymic: String; FBirthDate: TDateTime; FBirthPlace: String; FJob: String; ...
/////////////////////////////////////////////////////////////////////////////// // // // NEWGCENT par Kinzinger René // // & Geyer Gilbert ...
{****************************************************************************} { } { XML Data Binding } { }...
unit UGlobals; { Copyright (c) 2014 George Wright Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License, as described at http://www.apache.org/licenses/ and http://www.pp4s.co.uk/licenses/ } //Variables of user made types...
unit UpdaterThread; interface uses Classes, SyncObjs, Contnrs, Constants; const MaxUpdatePackageCount = 100; RefreshTime = 500; type TUpdaterThread = class(TThread) private packages : TQueue; lock : TCriticalSection; package : TDataPackage; rt_timer : cardinal; private ...
unit selectdirectorydialog; {$mode delphi} interface uses Classes, SysUtils, And_jni, {And_jni_Bridge,} AndroidWidget; type TOnDirectorySelected=procedure(Sender:TObject;path:string) of object; {Draft Component code by "LAMW: Lazarus Android Module Wizard" [12/12/2019 20:49:18]} {https://github.com/jmpessoa/laz...
unit uAcoes; interface uses Classes, SysUtils, uILogavel, uCadastro, XmlDoc, XMLIntf, IdSMTP, IdMessage, IdAttachmentFile, IdText; type TAcoes = class private FOwner: TComponent; FLogavel: ILogavel; FCadastro: TCadastro; function CriaMensagem(de, para, assunto, arq: string): T...
unit tmbToolcdsExportar; interface uses SysUtils, Classes, Controls, ExtCtrls, DB, dbWeb, StdCtrls, Windows, ComObj, XMLDoc, XMLIntf, Variants, ShellAPI, Dialogs; type TExportarTbl = class(TComponent) private FTtmbExportDoc: boolean; FTtmbExportExcel: boolean; FPathExcel: String; FPathDoc: ...
unit RepositorioItemNotaFiscal; interface uses DB, Repositorio; type TRepositorioItemNotaFiscal = class(TRepositorio) protected function Get (Dataset :TDataSet) :TObject; overload; override; function GetNomeDaTabela :String; override; function GetIden...
{ Sobre o autor: Guinther Pauli Delphi Certified Professional - 3,5,6,7,2005,2006,Delphi Web,Kylix,XE Microsoft Certified Professional - MCP,MCAD,MCSD.NET,MCTS,MCPD (C#, ASP.NET, Arquitetura) Colaborador Editorial Revistas .net Magazine e ClubeDelphi MVP (Most Valuable Professional) - Embarcadero Technologies - U...
unit Neurons; interface uses System.IniFiles, System.SysUtils; type TNeuron = class(TObject) private fSummInputs :double; fSummInputsChanged :boolean; Function CalcSummInputs: double; Function GetSummInputs :double; inline; public NumInputs: integer; //количесвто входов Error: double;...
(* License: Apache 2.0. See LICENSE file in root directory. Copyright(c) 2015 Intel Corporation. All Rights Reserved. *) unit rsutil; {$MODE delphi} {$INCLUDE 'librealsense2.inc'} interface uses librealsense2, SysUtils, Math; type Prs2_pixelf = ^Trs2_pixelf; Trs2_pixelf = Array [0..1] of Single; ...
unit RPDBCB; {********************************************** Kingstar Delphi Library Copyright (C) Kingstar Corporation <Unit>RPDBCB <What>实现报表需要的数据集的回调函数声明 <Written By> Huang YanLai (黄燕来) <History> **********************************************} interface const // 定义字段数据类型 cdtInteger=0; /...
unit StringRefUnit; interface type TStringRef = class strict private FString: String; public constructor Create(Source: String); property StoredString: String read FString write FString; end; implementation { TStringRef } constructor TStringRef.Create(Source: String); begin F...
unit bcm_gpio; interface type TDirection = (dIn, dOut); procedure SetDirection(APin: longint; ADir: TDirection); function GetInput(APin: longint): boolean; procedure WriteOutput(APin: longint; AValue: boolean); procedure SetOutput(APin: longint); procedure ClearOutput(APin: longint); procedure ToggleOutput(APin: ...
unit FieldsEqualityImplementationUnit; interface uses SysUtils, Classes, EquatableUnit; type {$M+} TFieldsEqualityImplementation = class (TObject) public constructor Create; function Equals(Equatable: TObject): Boolean; virtual; end; {$M-} implementation uses TypInfo, Windows; { TFiel...
{ $Project$ $Workfile$ $Revision$ $DateUTC$ $Id$ This file is part of the Indy (Internet Direct) project, and is offered under the dual-licensing agreement described on the Indy website. (http://www.indyproject.org/) Copyright: (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All r...
unit AqDrop.DB.FD.MySQL; {$I '..\Core\AqDrop.Core.Defines.Inc'} interface uses Data.DB, {$IFNDEF AQMOBILE} {$IF CompilerVersion >= 26} FireDAC.Phys.MySQL, {$ELSE} uADPhysMySQL, {$ENDIF} {$ENDIF} AqDrop.Core.Types, AqDrop.DB.Adapter, AqDrop.DB.FD, AqDrop.DB.FD.TypeMapping; type T...
unit UBank; interface uses USimulation; type // Класс TClient - процесс, моделирующий клиента банка TClient = class(TLink) public StartingTime : Double; end; // Класс TClientGenerator - процесс, порождающий клиентов банка TClientGenerator = class(TProcess) protected procedure RunProcess; overri...
{******************************************************************************* * * * TksSpeedButton - TSpeedButton with iOS style badge * * ...
program fodP2E2_txt; const corte = -1; type registroMaestro = record codigo: integer; apellido: string[10]; nombre: string[10]; cantMateriasCursadas: integer; cantAprobadas: integer; end; registroDetalle = record cod: integer; info: string; end; procedure leerM(var m: registroMaestro); b...
unit FormMain; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP, IdException, IdExceptionCore, Vcl.ExtCtrls; type TForm1 = cl...
unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, TextTags; type TForm1 = class(TForm) btnTest: TButton; lsNodes: TListBox; mmText: TMemo; OpenDialog: TOpenDialog; mmSource: TMemo; procedure btnTestClick(Sender: TObject); ...
unit unCardForm; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DialogFormUnit, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters, Menus, StdCtrls, cxButtons, CardFormViewModel, Disposable; type TOnCardChangesApplyingRequestedEventHandler = procedure (...
unit MovingBallParticles; { Copyright (c) 2014 George Wright Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License, as described at http://www.apache.org/licenses/ and http://www.pp4s.co.uk/licenses/ } interface uses...
program Registros; type str20=string[20]; alumno=record codigo:integer; nombre:str20; promedio:real; end; procedure leer(var alu:alumno); begin writeln('Ingrese el codigo del alumno'); readln(alu.codigo); if(alu.codigo<>0)then begin writeln('Ingrese el nombre del alumno'); readln(alu.nom...
unit ViewModel.Main; interface uses Model.Main, Model.Declarations, Model.FormDeclarations, Model.Interfaces; function CreateMainViewModelClass: IMainViewModelInterface; implementation { TMainViewMode } uses System.SysUtils; type TMainViewModel = class (TInterfacedObject, IMainViewModelInterface) private fM...
{******************************************************************************* * * * TksFormTransition - Animated Form Transition Component * * ...
unit uClasseCalculaNotas; interface uses classes, sysutils, consttipos, uClasseCriterio, funcoesGeral, Math, windows,uDMPrincipal; type ECalculoNotas = class(Exception); TCalculaNotas = class private procedure CarregaValores; procedure CalcularMedias; function GetFrequencia(Pe...
{ @abstract(This file is part of the KControls component suite for Delphi and Lazarus.) @author(Tomas Krysl) Copyright (c) 2020 Tomas Krysl<BR><BR> <B>License:</B><BR> This code is licensed under BSD 3-Clause Clear License, see file License.txt or https://spdx.org/licenses/BSD-3-Clause-Clear.html. } ...
unit AdcTools; interface uses Windows, SysUtils, Classes, DllClient, VT_Drivers, IFactory, ADC_Const, IADCDevice; type T64IntArray = array [0..63] of Integer; P64IntArray = ^T64IntArray; T64SngArray = array [0..63] of Single; P64SngArray = ^T64SngArray; type TEventType = (etEvent, etMessage)...
{==============================================================================* * Copyright © 2020, Pukhkiy Igor * * All rights reserved. * *============================================================================...
namespace Beta; interface uses UIKit; type [IBObject] LoginViewController = public class(UIViewController, IUITextFieldDelegate) public method init: id; override; method viewDidLoad; override; method textFieldShouldReturn(textField: UITextField): Boolean; [IBOutlet] prope...
unit UTable; interface uses UList, UInfo, Grids, SysUtils; const N=101; type TIndex = 0..N-1; TCell = TInfoList; TTable = array [TIndex] of TCell; THashTable = class private FTable:TTable; FCount:Integer; protected function Hash_F(key:TKey):TIndex; public constructor Create; destruc...
unit main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs,QExp, StdCtrls, ExtCtrls; type TForm1 = class(TForm) Panel1: TPanel; Panel2: TPanel; btnCreateButton: TButton; btnFuncAssign: TButton; btnJSFuncAssign: TButton; btnBlockAssign: T...
unit HandlePreferences; { SimThyr Project } { A numerical simulator of thyrotropic feedback control } { Version 3.3.3 (Gaia) } { (c) J. W. Dietrich, 1994 - 2014 } { (c) Ludwig Maximilian University of Munich 1995 - 2002 } { (c) Ruhr University of Bochum 2005 - 2013 } { This unit handles global application preferenc...
unit Helper; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Objects, FMX.Platform, FMX.StdCtrls, FMX.Controls.Presentation, FMX.Layouts, FMX.Colors, FMX.Ani, FMX.Edit, REST.Json, System.JSON,...
unit IdTestHTTP; { http://www.schroepl.net/cgi-bin/http_trace.pl useful to test exactly what headers a web server is receiving from the http client allows you to check that the headers that http client writes are actually received by the server, ie not modified by a proxy/firewall after they leave your pc } ...
unit YOTM.DB.LabelTypes; interface uses SQLite3, SQLLang, SQLiteTable3, System.Generics.Collections, HGM.Controls.VirtualTable, YOTM.DB, Vcl.Graphics; type //Метки TLabelType = class; TLabelTypes = class; TLabelType = class(TObject) private FOwner:TLabelTypes; FID:Integer; F...
unit uSearchImage; interface uses System.SysUtils,IdComponent, IdTCPConnection, IdTCPClient, IdHTTP,IdSSL, IdSSLOpenSSL, NetEncoding, xSuperObject; const CSE_API_KEY = '007439388879951561867:3ragl0fkhpm'; CSE_ID = 'AIzaSyB_bfo21im9wVOPM93Rcx9Vbbh7NFiKHnw'; GS_STARTINDEX = 'startIndex'; GS_COUNT =...
unit fOpenDialog; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, StdCtrls, FileCtrl, Dialogs; type TfrmOpenDialog = class(TForm) DriveComboBox: TDriveComboBox; DirectoryListBox: TDirectoryListBox; FileListBox: TFileListBox; FilterComboBox: TFilterCombo...
unit rfReservListForm_Unit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, BaseFrontForm_Unit, FrontData_Unit, Front_DataBase_Unit, ExtCtrls, AdvPanel, Grids, AdvObj, BaseGrid, AdvGrid, DBAdvGrid, DB, kbmMemTable, AdvSmoothButton, ActnList, TouchMess...
unit DIOTA.Model.Inputs; interface uses Generics.Collections, DIOTA.Model.Input; type TInputs = class private FTotalBalance: Int64; FInputsList: TList<IInput>; public constructor Create(AInputsList: TList<IInput>; ATotalBalance: Int64); virtual; property InputsList: TList<IInput> read FInpu...
unit DIOTA.Dto.Request.GetBalancesRequest; interface uses REST.Client, System.JSON.Builders, DIOTA.IotaAPIClasses; type TGetBalancesRequest = class(TIotaAPIRequest) private FThreshold: Integer; FAddresses: TArray<String>; FTips: TArray<String>; protected function GetCommand: String; overr...
unit ShowAboutModel; { SimThyr Project } { A numerical simulator of thyrotropic feedback control } { Version 4.0.0 (Merlion) } { (c) J. W. Dietrich, 1994 - 2017 } { (c) Ludwig Maximilian University of Munich 1995 - 2002 } { (c) Ruhr University of Bochum 2005 - 2017 } { This unit draws a window with addit...
unit UFrmConfigServer; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons,iniFiles, Vcl.Imaging.jpeg, Vcl.ExtCtrls, Vcl.Imaging.pngimage; type TfrmConfigServer = class(TForm) Group...
unit uP1_tipeBentukan; interface const NMax = 100;{usahakan jangan terlalu besar NMax-nya, laptopku ngga kuat :p -oksi (stack overflow)} type tanggal = record hari : integer; bulan : integer; tahun : integer; end; type bahanMentah = record nama : string; hargaBeli : integer; durasiKadaluarsa...
program Practice_4_2; var a, a1 : array of Integer; n,arrayLen: Integer; i, nn, max : Integer; begin WriteLn('2. Задайте массив из n элементов. Элементы, большие 55, заменить на максимальный. Выведите на экран исходный и полученный массив.'); Write('Введите длину массива: '); ReadLn(arrayLen); Set...
unit WiRL.Wizards.Utils; interface uses ToolsAPI; /// <summary> /// These funcions are all by David Hoyle's, and you can find them all in his book: /// The Delphi Open Tools API book at: /// </summary> /// <summary> /// Returns the current Project Group opened in the IDE /// If there is no Proje...
unit UMapFrame; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.CheckLst, Vcl.ExtCtrls, Vcl.Samples.Spin, Vcl.ComCtrls, GMLib.Map.Vcl; type TMapFrame = class(TFrame) cbActive: TCheck...
unit ClipbrdController; interface uses DemoInterfaces; type TClipboardController = class(TInterfacedObject, IClipboardController) private FProvider : IClipboardProvider; protected procedure SetProvider(const value: IClipboardProvider); procedure UnsetProvider(const value : IClipboardProvider); ...
unit RESTRequest4D.Response.Indy; {$IFDEF FPC} {$mode delphi} {$ENDIF} interface uses RESTRequest4D.Response.Contract, IdHTTP, {$IFDEF FPC} SysUtils, fpjson, Classes, jsonparser; {$ELSE} System.SysUtils, System.JSON, System.Classes; {$ENDIF} type TResponseIndy = class(TInterfacedObject, IResponse)...
unit ubox; interface uses udrawbox,Graphics,types, sysutils, windows,ueobject,mathutils; type TBox = class (TEObject) protected bounds:TRect; FHolded:Boolean; public constructor Create(parent:TDrawBox); overload; constructor Create(parent:TDrawBox; bounds:TRect); overload; function PerformAction(action :TAction; ...
unit uCommon; interface uses mORMot, SynCommons, SynSQLite3, System.Classes, System.SysUtils, System.Types, System.IOUtils, System.Variants, System.Generics.Collections; type TInt64DyadicArray = array of TInt64DynArray; TWordDyadicArray = array of System.Types.TWordDynArray; TInt64Helper = r...
unit ce_dubproject; {$I ce_defines.inc} interface uses Classes, SysUtils, fpjson, jsonparser, jsonscanner, process, strutils, LazFileUtils, RegExpr, ce_common, ce_interfaces, ce_observer, ce_dialogs, ce_processes, ce_writableComponent, ce_compilers; type TDubLinkMode = (dlmSeparate, dlmAllAtOnce, dlmSing...
unit UServerManagerImpl; interface uses InvokeRegistry, Types, XSBuiltIns, Classes, UServerManagerIntf, CRAccess , DASQLMonitor; type TServerManager = class(TInvokableClass, IServerManager) public procedure SetCheckSessions(const aPassword: string; const aValue: Boolean); stdcall; function ...
unit Unit_connectMYSQL; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls, FMX.Controls.Presentation, FMX.ScrollBox, FMX.Memo, IdBaseComponent, IdComponent, IdUDPBase, IdUDPClien...
unit TSTOBsv.IO; interface Uses Windows, ExtCtrls, ImagingRGB, HsStreamEx, TSTOBsvIntf, TSTORgb; Type IBsvImageIO = Interface(IBsvImage) ['{4B61686E-29A0-2112-90E4-70C55344243D}'] Function GetRect() : TRect; Property Rect : TRect Read GetRect; End; IBsvImagesIO = Interface(IBsvImages) ['{4B...
unit Cash_FP3530T; interface uses Windows, CashInterface, DBClient, StrUtils; type TCashFP3530T = class(TInterfacedObject, ICash) private Table: TClientDataSet; FAlwaysSold: boolean; FisFiscal: boolean; FLengNoFiscalText : integer; procedure SetAlwaysSold(Value: boolean); function GetAlways...
unit vector; {$mode objfpc}{$H+} interface uses Classes, SysUtils, props; type TVector = class private _x, _y, _z: single; public constructor Create; overload; constructor Create(ax, ay, az: single); overload; destructor Destroy; override; class function GetDescription(vector: TVector):...
unit comparer; {$mode objfpc}{$H+} interface uses Classes, SysUtils, comparable; type //a base class that any comparer will be a child of { TComparer } TComparer = class(TInterfacedObject, IComparable) public function CompareAsc(const d1,d2): integer; virtual abstract; function CompareDesc(const d1,d2):i...
unit ChunkProviderTest_u; interface uses generation, NoiseGeneratorOctaves_u, RandomMCT; type ChunkProviderTest=class(TObject) private densities,field_40387_c,field_40384_d,field_40385_e,field_40382_f,field_40383_g:ar_double; field_40393_j,field_40394_k,field_40391_l,field_40388_a,field_4...
unit fmLogin; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, fmBase, frUsuario, frLoginServer, dmLoginServer, frLogin; type TfLogin = class(TfBase) fLoginServer: TfLoginServer; fUsuario: TfUsuario; private FCloseOnLogged: boolean; function G...
// Fit4Delphi Copyright (C) 2008. Sabre Inc. // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software Foundation; // either version 2 of the License, or (at your option) any later version. // // This program is...
unit ui.space; interface uses Types, BaseType; type TUIPoint = Types.TPoint; PUIPoint = ^TUIPoint; PUIPoints = ^TUIPoints; TUIPoints = array [0..0] of TUIPoint; PUIFloatPoint = ^TUIFloatPoint; TUIFloatPoint = record X : TFloat; Y ...
unit UserSessionUnit; { This is a DataModule where you can add components or declare fields that are specific to ONE user. Instead of creating global variables, it is better to use this datamodule. You can then access the it using UserSession. } interface uses IWUserSessionBase, SysUtils, Classes, ...
{***************************************************************************} { } { DelphiUIAutomation } { } { ...
unit zHTMLTemplate; // Параметры HTML форматирования для генераторов протоколов interface uses Windows, Messages, SysUtils, Variants, Classes, Dialogs, ShellApi, Controls; type TScriptCmdDescr = record Name : string; // название CmdText : string; // Скрипт AddMode : integer; // Режим добавления en...
{******************************************************************************} { } { Icon Fonts ImageList: An extended ImageList for Delphi/VLC+FMX } { to simplify use of Icons (resize, colors and more...) ...
unit SheetWorkTimeMovementItemTest; interface uses dbMovementItemTest, dbTest, ObjectTest; type TSheetWorkTimeMovementItemTest = class(TdbTest) protected procedure SetUp; override; published // загрузка процедура из определенной директории procedure ProcedureLoad; virtual; procedure Test; virt...
unit testlib_callee_impl; {$mode delphi} interface uses Classes, SysUtils, testlib_callee, testlib_intf; type // Forward declarations: TProjectGroup = class; TProject = class; // Name: ProjectGroup // GUID: 7C12BB43-A6AB-4A52-8B1D-EDD5D94B344B // Description: ProjectGroup Object ...
unit aIni; interface uses System.SysUtils, System.IniFiles, System.IOUtils, System.Classes; const DEFAULT_SECTION_NAME = 'CFG'; STR_NAMES : array[1..2] of string = ('Nome', 'Conta'); STR_DEF : array[1..2] of string = ('', ''); INT_NAMES : array[1..1] of string = (''); INT_DEFAULTS : arr...
unit KSActions; interface uses Windows, Messages, SysUtils, Classes, Controls, Forms, ActnList, StdCtrls; type TKSListAction = class(TAction) private FListBox: TCustomListBox; function GetControl(Target: TObject): TCustomListBox; virtual; procedure SetListBox(const Value: TCustomListBox); pr...
unit core_matrixStack; {$mode objfpc}{$H+} interface uses Classes, SysUtils,dglOpenGL,VectorGeometry,core_types; type { TMatrixStack } TMatrixStack = class top:PGLFloat; procedure pop; procedure push(m:PMatrix); constructor create; private data:array of TMatrix; index:integer; co...