text
stringlengths
14
6.51M
unit Model.ProSu.InterfaceActions; interface uses Model.ProSu.Interfaces; type TInterfaceAction = (actInvoiceItemsChanged, actPrintingStart, actPrintingFinish); TInterfaceActions = set of TInterfaceAction; TInterfaceError = (errInvoiceItemEmpty, errInvoiceItemQuantityEmpty, ...
{******************************************************************************* Copyright (C) Christian Ulrich info@cu-tec.de This source 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 ...
unit CustomOutlineEditorForm; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, ToolWin, CustomOutlineEditor, CustomOutlines, ImgList, ExtCtrls; type TveCustomOutlineEditorForm = class(TForm) ToolBar1: TToolBar; SelectTToolButton: TToolButton;...
unit DIOTA.Dto.Response.GetTrytesResponse; interface uses DIOTA.IotaAPIClasses; type TGetTrytesResponse = class(TIotaAPIResponse) private FTrytes: TArray<String>; function GetTrytes(Index: Integer): String; function GetTrytesCount: Integer; public constructor Create(ATrytes: TArray<String>); ...
unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls,WinInet,inifiles, ComCtrls, StdCtrls, Menus, RzTray; type TForm1 = class(TForm) Timer1: TTimer; StatusBar1: TStatusBar; Button1: TButton; RzTrayIcon1: TRzTrayIcon; PopupMenu1: TPopu...
{***********************************************************} { Exemplo de lanšamento de nota fiscal orientado a objetos, } { com banco de dados Oracle } { Reinaldo Silveira - reinaldopsilveira@gmail.com } { Franca/SP - set/2019 } {*********...
unit ETL.Component.Transform; interface uses ETL.Component, ETL.Form.Edit.Transform, ETL.FileProject.Interfaces; type TCompTransform = class(TComponentETL, IComponentTransform) strict protected FFormEdit: TFoEditTransform; public procedure setTitle(const ATitle: string); override; ...
unit Model.SQLiteConnection; interface uses System.Classes, System.SysUtils, Model.IMyConnection; {.$DEFINE MoDebug} const sqliteDBFilename = 'BRDM.sq3'; function CreateMySQLiteConnection : IMyConnection; implementation uses Spring.Collections, Spring.Persistence.Core.Session, Spring.Persistence.Core.Co...
{*! * Fano Web Framework (https://fanoframework.github.io) * * @link https://github.com/fanoframework/fano * @copyright Copyright (c) 2018 Zamrony P. Juhara * @license https://github.com/fanoframework/fano/blob/master/LICENSE (MIT) *} unit SimpleAppImpl; interface {$MODE OBJFPC} uses AppImpl, De...
{******************************************************************************* 作者: dmzn@163.com 2012-02-03 描述: 业务常量定义 备注: *.所有In/Out数据,最好带有TBWDataBase基数据,且位于第一个元素. *******************************************************************************} unit UBusinessConst; interface uses Classes, Sys...
unit OVRVideoWindow; interface uses // Delphi Windows, DirectShow9, // 3rd party dglOpenGL; function CreateVideoWindow(AMediaType : PAMMediaType) : Boolean; procedure ReleaseVideoWindow; function ShowVideoWindow : Boolean; function HideVideoWindow : Boolean; function CreateOpenGL : Boolean...
program UnitExample; {$mode objfpc}{$H+} uses {$IFDEF UNIX} {$IFDEF UseCThreads} cthreads, {$ENDIF} {$ENDIF} Classes, SysUtils, Test, HejriUtils { you can add units after this }; {var Payment: integer; Consumption: integer; Kilos: single; begin Write('How much did you pay for your c...
Program intuition_appscreen; {$IFNDEF HASAMIGA} {$FATAL This source is compatible with Amiga, AROS and MorphOS only !} {$ENDIF} {$MODE OBJFPC}{$H+}{$HINTS ON} {$UNITPATH ../../../Base/CHelpers} {$UNITPATH ../../../Base/Trinity} { =========================================================================== Proje...
unit uAutoScan; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Windows, Forms, VirtualTrees, uModbus, uLibrary; type { TAutoScan } TAutoScan = class private fModbusData: TObject; fScanning: Integer; fThreadId: TThreadId; public constructor Create(const aModbusData: TObje...
unit houkEvent; { Trida THoukEv reprezentuje jednu houkaci udalost. Definicni string: "udalost;typ_funkce;zvuk;" } interface uses rrEvent, Classes, SysUtils, ExtCtrls; type THoukFuncType = ( hftNothihg = 0, // udalost nema zadny efekt, je jen prerekvizitou pro dalsi udalost hftToggle = 1, // ...
unit UnitMigration4D.Commands.Types; interface uses Rtti, UnitMigration4D.Interfaces, System.SysUtils; type TMigrationCommandsTypes = (Init, Create, Run, Revert); THelperForMigrationCommandsTypes = record helper for TMigrationCommandsTypes function toString: string; end; TMigrationCommands = clas...
unit WrapDelphiVCL; { Helper unit that will register all the wrappers for the VCL. Instead of including WrapDelphiClasses, WrapDelphiControls... into your uses clause, simply add WrapDelphiVCL. } interface implementation uses WrapDelphiTypes, WrapDelphiClasses, WrapDelphiWindows, WrapVcl...
unit ufrm_form_default; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, System.Actions, System.ImageList, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ToolWin, Vcl.ComCtrls, Vcl.ActnList, Vcl.ImgList, Vcl.Grids, Vcl.DBGri...
{*******************************************************} { } { QJSON与数据集互转 } { } { 版权所有 (C) 2014 碧水航工作室 } { 作者:恢弘 QQ11241450 ...
unit LaunchEndpoint; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Launch; type ILaunchEndpoint = interface(IInterface) ['{E8332819-B2FC-478D-B818-32F7B13516CA}'] function All: ILaunchList; function Latest: ILaunch; function Next: ILaunch; function One(const Id: string): ILaunch; fun...
// ************************************************************************ // // The types declared in this file were generated from data read from the // WSDL File described below: // WSDL : http://www.webservicex.com/globalweather.asmx?wsdl // >Import : http://www.webservicex.com/globalweather.asmx?wsdl>0 ...
unit ReportsModule; interface uses SysUtils, Classes, frxExportMail, frxExportTXT, frxExportCSV, frxExportText, frxExportImage, frxExportRTF, frxClass, frxGZip, frxExportXML, frxExportXLS, frxExportHTML, frxExportPDF, frxBarcode, frxRich, frxDMPExport, frxCross, frxDCtrl, frxOLE, frxChBox, frxADOCo...
unit fmMain; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TForm3 = class(TForm) Button1: TButton; Memo1: TMemo; Button2: TButton; Button3: TButton; Button4: TButton; ...
unit frm_Resultados_LstWeb; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIForm, Data.DB, uniGUIBaseClasses, uniBasicGrid, uniDBGrid, uniToolBar, frm_Listados_Personalizados_Editor, FireDAC.Stan.Intf, ...
unit matrix; {$mode objfpc}{$H+} interface uses Classes, SysUtils; type { TMatrix } generic TMatrix<T> = class private protected _data: array [0..3, 0..3] of T; function GetData(x, y: integer): T; procedure SetData(x, y: integer; AValue: T); public constructor Create; class functio...
unit uFibonacci; interface type TFibonacci = class public class function GetEnesimoNumero(const pN: Word): Cardinal; end; implementation { TFibonacci } class function TFibonacci.GetEnesimoNumero(const pN: Word): Cardinal; begin case pN of 0: Result := 0; 1: Resul...
program e7p1; uses crt; const MAX_MATERIAS = 5; MAX_ALUMNOS = 6; type notasAlumno = array [1..MAX_MATERIAS] of integer; tNotas = file of notasAlumno; //////////////////////////////////////////////////////////////////////// procedure verificarExisteArchivo(var archNotas:tNotas; var error:b...
unit uProcesses_new; interface uses GnuGettext, Classes, SysUtils, Windows, uTools, PsAPI, JCLSysInfo, Variants; type TQueryFullProcessImageName = function(hProcess: Thandle; dwFlags: DWORD; lpExeName: PChar; nSize: PDWORD): BOOL; stdcall; tProcesses = class public ProcessList2: TStrings; fu...
unit DragonHeatshield; {$mode objfpc}{$H+} interface uses Classes, SysUtils, BaseModel; type IBaseDragonHeatShield = interface(IBaseModel) ['{7C494FB6-2264-494F-942A-DA84F2243A72}'] function GetDevPartner: string; function GetMaterial: string; function GetSizeMeters: Double; function GetTempera...
unit Project87.BaseEnemy; interface uses QGame.Scene, Strope.Math, Project87.BaseUnit, Project87.Types.StarMap, Project87.Types.Weapon, Project87.Types.GameObject; const MAX_LIFE = 100; FLY_TO_HERO_DISTANCE = 250 * 250; DISTANCE_TO_FIRE = 450 * 450; MAX_BASE_UNIT_SPEED = 850; DEFAULT_ACTION_TIM...
{****************************************************************************** } { Класс для основного объекта приложения, выполняющего итоговые вычисления } { Создает объекты Source = class (TThread), передавая в его конструктор параметы} { и указатель на метод SetSourceResult. ...
unit Styles; interface uses Classes, Editor; // ** Display settings storage and retrieval for VeeCAD ** // Class is not general purpose: it is built only to access the Styles.txt // file stored in a predetermined folder. type TveStyles = class protected Folder : string; FData : TStringList;...
unit uF6_OlahBahan; interface uses uP1_tipeBentukan, uP3_Umum; procedure mainOlahBahan(ID : integer; //hapus parameter yang tidak perlu var dataBahanMentah : tabelBahanMentah; var dataBahanOlahan : tabelBahanOlahan; var dataSimulasi : tabelSimulasi; var inventoriBahanOlahan : ...
unit HardwareEdit; interface uses Winapi.Windows, DataModul, AncestorEditDialog, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters, Vcl.Menus, cxControls, cxPCdxBarPopupMenu, cxContainer, cxEdit, cxCheckBox, cxCurrencyEdit, cxLabel, cxTextEdit, cxPC, Vcl.Controls, dsdDB, dsdAction, System.Classes, Vcl.ActnLis...
UNIT FloatingMeanLib; INTERFACE FUNCTION Mean(value: SMALLINT): REAL; IMPLEMENTATION VAR count: SMALLINT; sum: LONGINT; FUNCTION Mean(value: SMALLINT): REAL; BEGIN Inc(count); sum := sum + value; Mean := sum / count; END; BEGIN sum := 0; count := 0; END.
unit IdTestObjs; interface uses IdSys, IdTest, IdStream, IdGlobal, IdObjs; type TIdTestNativeComponent = class(TIdTest) published procedure TestOwner; end; TIdTestStringList = class(TIdTest) published procedure TestBasic; end; TIdTestStringStream = class(TIdT...
unit ComPortUnit; interface uses Windows, Forms, SysUtils, Classes, MainUnit, Dialogs, Registry; // RusErrorStr, type // определим тип TComThread - наследника класса TThread TCommThread = class(TThread) private { Private declarations } // процедура, занимающаяся опросом порта Proc...
unit AbstractQueryExecutorFactory; interface uses ConnectionInfo, QueryExecutor, ConnectionFactory, QueryExecutorFactory, SysUtils; type TAbstractQueryExecutorFactory = class abstract (TInterfacedObject, IQueryExecutorFactory) protected FConnectionFactory: IConnectionFactory; ...
{************************************************ TALIntegerList or TALDoubleList that work exactly like TstringList but with integer or Double. ************************************************} unit Alcinoe.QuickSortList; interface Uses System.Classes; Type {---------------------------------------...
unit SaleTest; interface uses dbTest, dbMovementTest, ObjectTest; type TSaleTest = class (TdbMovementTestNew) published procedure ProcedureLoad; override; procedure Test; override; end; TSale = class(TMovementTest) private protected function InsertDefault: integer; override; public fu...
unit SynchedThreads; {$MODE Delphi} { Copyright © 1998 by Jon Shemitz, all rights reserved. Permission is hereby granted to freely use, modify, and distribute this source code PROVIDED that all six lines of this copyright and contact notice are included without any changes. Questions? Comments? Offers...
program final57; uses crt; type puntCiudades = ^tPuntCiudades; tPuntCiudades = record ciudad:string; provincia:string; cantidadHabitantes:integer; menores:puntCiudades; mayores:puntCiudades; end; puntPoblacion = ^tPuntPoblacion; tPuntPoblacion = record provincia:string; cantida...
unit unit_Chamada; interface {$REGION 'Uses do Sistema'} uses System.SysUtils , System.Types , System.UITypes , System.Classes , System.Variants , FMX.Types , FMX.Controls , FMX.Forms , FMX.Graphics , FMX.Dialogs , System.Rtti , FMX.Grid.Style , FMX.StdCtrls , FMX.ListBox , F...
PROGRAM MultiplosDe3 (INPUT, OUTPUT); VAR Numero, Cnt: INTEGER; BEGIN Cnt := 0; Write ('Entra el primer número de la serie: '); ReadLn (Numero); WHILE Numero <> 0 DO BEGIN IF (Numero MOD 3) = 0 THEN INC (Cnt); Write ('Dame otro numero (0 para terminar): '); ReadLn (Numero); END; WriteLn (...
unit uformsettingspaths; {$mode objfpc}{$H+} interface uses inifiles, Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, Buttons, ExtCtrls, ComCtrls, LazIDEIntf, PackageIntf {, process, math}; type { TFormSettingsPaths } TFormSettingsPaths = class(TForm) BevelJDKAntAndSDKNDK: ...
unit AT.Vcl.DX.NativeFileSelector.Frame; interface uses Winapi.Windows, Winapi.Messages, Winapi.ShlObj, System.SysUtils, System.Variants, System.Classes, System.Actions, System.UITypes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.Menus, Vcl.StdCtrls, Vcl.ActnList, Vcl.ImgList, cx...
unit UpdateQueryTests; interface uses TestFrameWork, SqlQueryBuilder; type TUpdateQueryTests = class(TTestCase) private queryBuilder: TSqlQueryBuilder; protected procedure SetUp; override; procedure TearDown; override; published procedure TestThatUpdateQueryTakesATable; procedure Test...
unit BiomeCacheBlock_u; interface uses BiomeGenBase_u, generation; type BiomeCacheBlock=class(TObject) public temperatureValues,rainfallValues:ar_double; biomes:ar_BiomeGenBase; xPosition,zPosition:integer; lastAccessTime:int64; constructor Create(cache:TObject; i,...
unit unit_CadTurma; interface {$REGION 'Uses do Sistema'} uses System.SysUtils , System.Types , System.UITypes , System.Classes , System.Variants , FMX.Types , FMX.Controls , FMX.Forms , FMX.Graphics , FMX.Dialogs , FMX.EditBox , FMX.SpinBox , FMX.DateTimeCtrls , FMX.StdCtrls ...
{ $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...
{******************************************************************************} { } { Indy (Internet Direct) - Internet Protocols Simplified } { ...
unit AqDrop.Core.Collections.Intf; interface uses System.SysUtils, System.Generics.Defaults, System.Generics.Collections, AqDrop.Core.Types; type TAqLockerType = (lktNone, lktCriticalSection, lktMultiReaderExclusiveWriter); IAqKeyValuePair<K, V> = interface ['{FF1F3ECB-DE5B-47E5-AB59-B...
unit UPrincipal; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, UrlMon, Vcl.StdCtrls; type TForm1 = class(TForm) Button1: TButton; Edit1: TEdit; Label1: TLabel; Button2: TButton; Button3: ...
unit TSTOSbtp.IO; interface Uses Classes, HsXmlDocEx, HsInterfaceEx, HsStreamEx, TSTOSbtpIntf; Type ISbtpSubVariableIO = Interface(ISbtpSubVariable) ['{4B61686E-29A0-2112-B781-30B4271D1B0B}'] Function GetOnChange() : TNotifyEvent; Procedure SetOnChange(AOnChange : TNotifyEvent); Property OnChange...
UNIT fct; INTERFACE {$mode objfpc}{$H+} {$codepage UTF8} {$I-} (* Déclaration des librairies utilisées *) USES Crt; CONST nombreLettreAlphabet = 43; alphabet: WideString = 'abcdefghijklmnopqrstuvwxyzàâéèêëîïôùûüÿæœç-'; TYPE tab = ARRAY[1..nombreLettreAlphabet] OF Extended; tab2 = ARRAY[1..nombreLettreAlphabet]...
{ ClickForms (C) Copyright 1998 - 2010, Bradford Technologies, Inc. All Rights Reserved. } unit UStreams; interface uses Classes, UInterfaces; type TDataReceivedEvent = procedure(const Stream: TStream; const Count: Longint) of object; THttpFileStream = class(TFileStream, IAbortable) private ...
unit UDMClient; interface uses System.Classes, DzSocket; type TDMClient = class(TDataModule) C: TDzTCPClient; procedure CRead(Sender: TObject; Socket: TDzSocket; const Cmd: Char; const A: string); procedure CDisconnect(Sender: TObject; Socket: TDzSocket; const WasConnected: Boolean); ...
unit OsuTrackSpy; interface uses shellapi, Windows, tlhelp32, SysUtils; type TOsuTrackSpy = class private FConnected: Boolean; FFilePath: string; mutex: THandle; fileMap: THandle; mapmemory: Pointer; FHProcess: THandle; function GetFilePath: string; publi...
unit MQTTReadThread; interface uses Classes, SysUtils, Generics.Collections, SyncObjs, {$IFDEF MSWINDOWS} Windows, {$ENDIF} IdTCPClient, IdGlobal, MQTTHeaders; type TMQTTRecvUtilities = class public class function MSBLSBToInt(ALengthBytes: TBytes): integer; class function RLBytesToInt(ARlByte...
program metod_pol_dilennia; uses crt; var x,eps,a,b,y:real; c:integer; function fun(x:real):real; begin fun:=x*x+exp(x)+x*x*x+x-62.8; end; procedure mpd(a,b,eps:real; var x:real); begin while abs(b-a)>eps do begin x:=(b+a)/2; if fun(a)*fun(x)<=0 then b:=x ...
unit TSTOZero.Bin; Interface Uses Windows, HsInterfaceEx, HsStreamEx, TSTOZeroIntf; Type IBinArchivedFileData = Interface(IArchivedFileData) ['{4B61686E-29A0-2112-BB3E-489428B09AA2}'] Function GetAsString() : String; Function GetDataAsString(Const AIndent : Integer = 0) : String; Function GetDa...
UNIT Messwerte; INTERFACE FUNCTION TempPlausible(temp: REAL; hour,minute: INTEGER; VAR first: BOOLEAN): BOOLEAN; IMPLEMENTATION CONST min = 935.5; max = 1345.6; range = 11.54; minutesPerhour = 60; TYPE Holder = RECORD lastTemp: REAL; hour: 0..23; minute: 0..59; END; ...
unit LoginFormInh; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, LoginForm, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, Vcl.Menus, cxPropertiesStore, Vcl.StdCtrls, ...
unit stablayout; {$mode delphi} interface uses Classes, SysUtils, And_jni, AndroidWidget, systryparent; type TOnTabSelected = procedure(Sender: TObject; position: integer; title: string) of object; TTabGravity = (tgFill, tgCenter); // GRAVITY_FILL GRAVITY_CENTER //MODE_FIXED MODE_SCROLLABLE TTabMode = (tmFix...
PROGRAM DataTypes; CONST MAX_SIZE = 16; MAX_STUDENTS = 22; TYPE TrafficLightColour = ( red, yellow, green ); TYPE DemoString = STRING[10]; TYPE MyString = ARRAY[0..10] OF CHAR; TYPE MySmallField = ARRAY[1..10] OF BYTE; TYPE MyIntField = ARRAY[1..MAX_SIZE] OF SMALLINT; TYPE StudentScore = ARRAY[1..MAX_STUD...
unit GenProj; interface uses Strategy, FrogObj, SignalField, Func1D, NLO, FrogTrace, Numerics, Shortcut; type TGeneralizedProjectionBasedStrategy = class(TStrategy) protected mNumerics: TNumerics; mNLO: TNLOInteraction; mEsig: TSignalField; mFrogI: TFrogTrace; mShortcut: TShortcut...
unit Connection.Utils; interface uses Winapi.ShellAPI, Winapi.Windows, System.SysUtils, Data.SqlExpr, Common.Types, Common.Consts, Common.Utils, Connection.Types; function SetSQLConParm(const DbParm: TDbParm; const ZebedeeParm: TZebedeeParm; SQLCon: TSQLConnection): TFunctionResult; implementation functi...
(* * "THE BEER-WARE LICENSE" (Revision 42): * d0p1 <d0p1@yahoo.com> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can buy me a beer in return. *) UNIT TestChecksum; {$mode objfpc}{$H+} INTERFACE...
// ****************************************************************** // // Program Name : AT Library // Platform(s) : Android, iOS, Linux, MacOS, Windows // Framework : Console, FMX, VCL // // Filename : AT.Strings.Replace.pas // Date Created : 11-Apr-2017 // Author : Matthew Vesperman // // ...
{******************************************************************************} { Projeto: Componentes ACBr } { Biblioteca multiplataforma de componentes Delphi para interação com equipa- } { mentos de Automação Comercial utilizados no Brasil ...
unit SGProScan; { The MIT License (MIT) Copyright (c) 2004 Sam Gorman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
unit CadastroConfiguracoes; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.ToolWin, Vcl.StdCtrls; type TFormCadastroConfiguracoes = class(TForm) ToolBar: TToolBar; ToolButtonSalvar: ...
unit dmLoginServer; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, dmInternalServer, UserServerCalls, SOAPHTTPTrans, auHTTP; type TLoginState = record stateless: boolean; clave: string; Cookies: TStringList; end; TLoginResult = UserServerCall...
unit uiwindow_wndproc_uispace; interface uses Windows, Messages, uiwindow; function UIWndProcW_UISpace(AUIWindow: PUIWindow; AMsg: UINT; wParam: WPARAM; lParam: LPARAM; var AWndProcResult: LRESULT): Boolean; implementation function WndProcW_WMNCCALCSIZE(AUIWindow: PUIWin...
{***************************************** TALWinHTTPWebSocketClient is a easy to use WinHTTP-based Web Socket client component *****************************************} unit Alcinoe.WebSocket.Client.WinHTTP; interface {$I Alcinoe.inc} uses System.Generics.Collections, Winapi.Windows, Winapi.WinH...
unit Model.Base; interface uses Spring.Collections, System.Generics.Collections, Spring.Persistence.Mapping.Attributes, DB; type IRepository<T> = interface ['{01B1C8AF-F0E5-4731-9657-A9347932AAD7}'] function GetList : IList<T>; function AddEntity(entity : T) : boolean; function EditEntity(entit...
unit SangriaReforco; interface uses SysUtils, Contnrs, Usuario; type TSangriaReforco = class private Fcodigo :Integer; Fcodigo_caixa :Integer; Fcodigo_usuario :Integer; Ftipo :String; Fvalor :Real; Fdescricao :String; FTipo_moeda :SmallInt...
unit dlgCommandLine; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.ExtCtrls, Vcl.Forms, Vcl.Buttons, Vcl.Menus, Vcl.StdCtrls, SynEdit, TB2Item, SpTBXControls, SpTBXItem, SpTBXMDIM...
unit DIOTA.Dto.Response.GetInclusionStatesResponse; interface uses DIOTA.IotaAPIClasses; type TGetInclusionStatesResponse = class(TIotaAPIResponse) private FStates: TArray<Boolean>; function GetStates(Index: Integer): Boolean; function GetStatesCount: Integer; public constructor Create(AState...
program ejercicio_17; const precio_soja=320; function calcular(hectareas:double; tipo_zona:integer;precio:double):double; begin if(tipo_zona=1)then calcular:=(hectareas*6)*precio else if(tipo_zona=2)then calcular:=(hectareas*2.6)*precio else if(tipo_zona=3)then calcular:=(hectarea...
// 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 TabbedFormwithNavigation; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Graphics, FMX.Forms, FMX.Dialogs, FMX.TabControl, FMX.StdCtrls, System.Actions, FMX.ActnList, FMX.Gestures; type TTabbedwithNavigationForm = cla...
unit uThreads; interface uses Classes, uni, uConfig, SQLServerUniProvider, Activex; const // Sleep period between queries THREAD_SLEEP = 2000; type // Thread class for running and timing queries TQueryThread = class(TThread) private // internal number for indentifying thread fId: integer; // ...
unit DW.OSDevice.Linux; {*******************************************************} { } { Kastri Free } { } { DelphiWorlds Cross-Platform Library } { ...
unit uUtil; {$IFDEF FPC} {$mode objfpc} {$H+} //{$modeswitch typehelpers} {$ENDIF} interface uses {$IFDEF DARWIN} {$IFDEF UseCThreads} cthreads, {$ENDIF} {$ENDIF} {$IFDEF DARWIN} cwstring, {$ENDIF} SysUtils, Classes, fgl, DOM; type TNodeVisitor = function(var ANode: TDOMNode): Bo...
unit TestExtendedDatabaseAuthentificationFormController; interface uses ExtendedDatabaseAuthentificationFormController, ExtendedDatabaseAuthentificationFormViewModelPropertiesINIFile, SimpleEventBus, DatabaseServerRoleAuthentificationService, SysUtils, Classes; type TTestExtendedDatabaseAuthentificat...
unit ChangeIncomePaymentTest; interface uses dbTest, dbMovementTest, ObjectTest; type TChangeIncomePaymentTest = class (TdbMovementTestNew) published procedure ProcedureLoad; override; procedure Test; override; end; TChangeIncomePayment = class(TMovementTest) private function InsertDefault: in...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC Oracle Call Interface } { } { Copyright(c) 2004-2013 Embar...
unit gBots; interface uses Classes, SysUtils, gWorld, gTypes, gBullets, gUnits, UPhysics2D, UPhysics2DTypes, B2Utils, mutils, SpineH, intfUtils; const DEF_DROP_CHANCE = 2; type TBotTank = class(TTowerTank) private FPlayer: IWeakRef; function GetPlayer: TUnit; procedure SetPlayer(cons...
{******************************************************************************} { } { Icon Fonts Image: useful to show an Icon Font as an Image } { ...
unit uPessoaService; interface uses Generics.Collections, SysUtils, Dialogs, uPessoaDAO, uModelPessoa; type TPessoaService = class private FPessoaDao : TPessoaDAO; FPessoa: TPessoa; public procedure SalvarCliente; procedure ValidarDados; function Consultar(pPessoa : TPessoa; pExibirMsgReg...
{$MODESWITCH RESULT+} {$GOTO ON} (************************************************************************* Copyright (c) 2007-2008, Sergey Bochkanov (ALGLIB project). >>> SOURCE LICENSE >>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License...
type TIntArray = Array of Int; function Swap(ref x,y:Int); begin var tmp := x; x := y; y := tmp; end; function InsSort(ref Arr:TIntArray; left,right:Int); begin for var i:=left+1 to right do begin var j := i-1; var Tmp := arr[i]; while (j >= left) and (Arr[j] > Tmp) do begin Ar...
unit PDateEdit; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Mask, ToolEdit,DateInput,dsgnintf,base_delphi_utils; type TPDateEditDatePropertyEdit = Class (TComponentProperty) DateValue: TDateTime; procedure Edit; override; funct...
unit ExceptLog; // Delphi Exception Logger // http://www.jirihajek.net/delphi/ExceptLog.htm // (c) Jiri Hajek 2003-2005 // E-mail: jh@jirihajek.net // Created for MediaMonkey (http://www.mediamonkey.com), a free mp3 jukebox player and music library organizer // Purpose: When you include this unit in your project, all...
unit Item; interface uses SysUtils, Contnrs, Produto, Usuario; type TItem = class private Fcodigo_pedido: integer; Fcodigo: integer; Fcodigo_produto: integer; Fhora: TDateTime; Fvalor: Real; FProduto :TProduto; Fquantidade: Real; FAdicionais :TObjectList; Fimpresso :Str...
unit uRavenConnection; interface uses System.SysUtils, System.Variants, System.Classes, System.DateUtils, IdBaseComponent, Generics.Collections, Generics.Defaults, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP, IdSSLOpenSSL, uEvent, System.Threading; { TODO : 커넥션과 Client 를 분리 한다. } const SENTRY_CLIENT ...
{ Invokable implementation File for TVideoWS which implements IVideoWS } unit VideoWSImpl; interface uses InvokeRegistry, Types, XSBuiltIns, VideoWSIntf, CommunicationObj, Constants; type { TVideoWS } TVideoWS = class(TCommObj, IVideoWS) public // IVideo procedure StartAcquiring(ch1: WordBo...
unit OAuth2.ResourceServer; interface uses Web.HTTPApp, OAuth2.Contract.Repository.AccessToken, OAuth2.Contract.AuthorizationValidator, OAuth2.CryptKey; type TOAuth2ResourceServer = class private { private declarations } FAccessTokenRepository: IOAuth2AccessTokenRepository; FPublicKey: TOAut...
unit Unit_TileDataLoader; // // Created by: Alexander Oster - tensor@ultima-iris.de // (***** * * 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...