text
stringlengths
14
6.51M
unit ccCodeMain; interface uses Windows, Classes, SysUtils, Math, StrUtils, Dialogs; type TIfData = class(TObject) iEnd,iJump,iStart:Integer; end; TScript = class; TParams = record Data: array of String; end; TsFunction = class(TObject) Name:String; Params:String; ParamNames:TParams; ...
(* PART A. This file contains sorting routines each of which expects to sort an array of A[0..SORTLIM] of RecordType from position first to positon last, according to a field of the record RecordType called key, which is of type ET. In other words, each of these subprograms sorts the elements of A b...
{*******************************************************} { } { GridEH Editor } { } { 版权所有 (C) 2005 金杰科技 } { ...
{$IFDEF FREEPASCAL} {$MODE DELPHI} {$ENDIF} unit dll_user32_dc; interface uses atmcmbaseconst, winconst, wintype; const { 3D border styles } BDR_RAISEDOUTER = 1; BDR_SUNKENOUTER = 2; BDR_RAISEDINNER = 4; BDR_SUNKENINNER = 8; BDR_OUTER = 3; BDR_INNER = 12; BDR_RAISED = 5; ...
unit FileInfoDetails; interface uses Windows; type TFileInfoDetails = class private b_valid: boolean; c_len, c_handle: cardinal; p_fi: PVSFixedFileInfo; s_fipath: string; protected p_buf: pointer; protected procedure FreeBuf(); function FileInfoString(const skey: string): strin...
{*********************************************************************************** ** SISTEMA...............: Vida Nova Gestão de Vendas 2019 ** ** PARA EMPRESAS.........: Micro e Pequena Empresa ** ** LINGUAGEM/DB..........: Delphi 10.3 Rio / Firebird 2.5 ...
unit SystemAdministrationPrivilegeSetHolder; interface uses SectionSetHolder, SysUtils, Classes; type TSystemAdministrationPrivilegeSetFieldDefs = class (TSectionSetFieldDefs) private function GetPrivilegeIdFieldName: String; function GetPrivilegeNameFieldName: String; function GetT...
unit AdminReports; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, cxGridLevel, cxGridCustomTableView, cxGridTableView, cxGridDBTableView, cxClasses, cxControls, cxGridCustomView, cxGrid, dxBar, DB, FIBDataSet, pFIBDataSet, FIBDatabase, pFIBDatabase, ...
program crearArchivo; const corte = -1; tam = 4; type registroMaestro = record codigo: integer; nombre: string[15]; desc: string[20]; stockD: integer; stockM: integer; precio: real; end; rango = 1..tam; registroDetalle = record cod: integer; cantV: integer; end; maestro = file...
unit Report_Liquidity; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, AncestorReport, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxPCdxBarPopupMenu, cxStyles, cxCustomData, cxFilter, cxDa...
// ****************************************************************** // // Program Name : AT Library // Platform(s) : Android, iOS, Linux, MacOS, Windows // Framework : Console, FMX, VCL // // Filename : AT.Strings.pas // Date Created : 11-Apr-2017 // Author : Matthew Vesperman // // Descript...
unit EspecificacaoItensDoLoteValidade; interface uses Especificacao, LoteValidade; type TEspecificacaoItensDoLoteValidade = class(TEspecificacao) private FCodigoLote :Integer; public constructor Create(Lote :TLoteValidade); public function SatisfeitoPor(Objeto :TObject): Boolean; override;...
unit fmFormPatterns; interface uses KrUtil, Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TfrmFormPatterns = class(TForm) procedure FormKeyPress(Sender: TObject; var Key: Char); procedure FormCreate(Sender: TObject); private function DelC...
(* Copyright (c) 2011, Stefan Glienke 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 and t...
unit frmRegisterObject; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, scControls, scGPExtControls, uFunction, uConst, scGPControls, Vcl.StdCtrls, Vcl.Mask, Vcl.ExtCtrls, scColorDialog, System.IniFiles, AdvD...
unit BuilderPizzaExample.Builder.Base.PizzaBuilder; interface uses BuilderPizzaExample.Domain.Pizza, BuilderPizzaExample.Domain.Edge, BuilderPizzaExample.Domain.ValueObject.PizzaSize; type IPizzaBuilder = interface ['{574F43BD-88D3-44F2-9D8E-6228E3DD73AE}'] procedure PrepareEdge(AEdge: TEdge); proc...
unit UFORM; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) CloseBtn: TButton; MouseLbl: TLabel; procedure CloseBtnClick(Sender: TObject); procedure FormClick(Sender: TObject); procedure FormMouseMove(Se...
unit ufrmPeriodo; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Mask, Buttons, JvExMask, JvToolEdit, JvMaskEdit, JvCheckedMaskEdit, JvDatePickerEdit; type TfrmPeriodo = class(TFrame) Label1: TLabel; Label2: TLabel; meDtIni: TJvDatePi...
unit uAspectos; interface uses System.Generics.Collections, System.Rtti, System.SysUtils; type TControlePermissao = class(TCustomAttribute) end; TControleTransacional = class(TCustomAttribute) end; TVerificadorAspector = class strict private class var FVMIs: TObjectDictionary<stri...
unit XFaceProbabilityBuffer; (* * 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 gmIntercept_GR32_Image; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, ImgList, ActiveX, StdCtrls, Menus, Printers, CommCtrl, // image lists, common controls tree structures GR32, GR32_Image; const // Instead using a TTimer class for each of the various ev...
unit lfm_main; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, LCLType, ComCtrls, bc_guardian, bc_mtlinklist, bc_observer; type {------------------------------------------------------------} { TbcObservedStack } TbcObservedStack = class(TbcStack) private ...
unit Sample6.Main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TMainForm = class(TForm) Memo1: TMemo; Button1: TButton; Button2: TButton; Button3: TButton; Button4: TButton; procedure FormCreate(Sender: TObject); ...
unit classprop_edit_ctrl; interface uses Classes ,SysUtils ,tiObject ,mapper ,mvc_base ,widget_controllers ,app_mdl ,classprop_edit_view ; type // ----------------------------------------------------------------- // Class Objects // ------------------------------------------------------------...
unit ctoytimerservice; {$mode delphi} interface uses Classes, SysUtils, And_jni, {And_jni_Bridge,} AndroidWidget; type TOnToyTimerServicePullElapsedTime=procedure(Sender:TObject;elapsedTime:int64) of object; {Draft Component code by "LAMW: Lazarus Android Module Wizard" [11/11/2020 15:48:12]} {https://github.co...
unit Nathan.Tuple.ToCheckOut; interface uses System.SysUtils, System.IOUtils, System.Rtti, System.Types, System.TypInfo, System.Generics.Collections, DUnitX.TestFramework; type // This was an experiment with open arguments, comes from: // https://stackoverflow.com/questions/298373/...
{******************************************************************************} { } { MaterialFontConvert for } { Icon Fonts ImageList: An extended ImageList for Delphi ...
unit mnForm; interface uses Forms, Controls, Windows, Messages; type {-------------------------------- 一种特殊的窗体:前端窗体。可被继承。 前端窗体永远显示在所有窗体的最前方(即最顶层),在前端窗体显示时,用户无法操作其它窗体。这两点和模态窗体类似。 但是和模态窗体不同的是,它在显示时不会暂停应用程序的主线程。 也就是说,应用程序在调用ShowFrontal显示前端窗体后,仍可继续执行代码进行其它操作,包括改变前端窗体的界面。 用户在前端窗体进行正常操作(如点击关闭按钮)可关闭前端窗体,应用程序也可调用C...
unit MtxDownloader; interface uses Serial3, Classes, Controls, RS232, CommBase, TextMessage; type EBootState = ( BS_UNKNOWN, BS_MTLBL_ONLY, //only Motorola S-Record Loader exists on the board (virginal board) BS_MTLBL_UPD, //Motorola S-Record Loader + Metronix BL_Up...
unit SimThyrTypes; { SimThyr Project } { (c) J. W. Dietrich, 1994 - 2012 } { (c) Ludwig Maximilian University of Munich 1995 - 2002 } { (c) Ruhr University of Bochum 2005 - 2012 } { This unit provides types and global variables for other SimThyr units } { Source code released under the BSD License } {$mode objfpc} ...
unit uFuncList; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, JvDockControlForm, JvComponent, JvDockVCStyle, StdCtrls, JvTabBar, JvDockVSNetStyle, JvDockVIDStyle, JvComponentBase, TB2Item, TBX, ActnList, TB2Dock, TB2Toolbar, ComCtrls, uDocuments, Im...
unit ExternalLoadTest; interface uses TestFramework; type TExternalLoadTest = class (TTestCase) private protected // подготавливаем данные для тестирования procedure SetUp; override; published procedure LoadMMOTest; procedure LoadPriceListTest; end; implementation uses Storage, Authent...
program hooks1; {$IFNDEF HASAMIGA} {$FATAL This source is compatible with Amiga, AROS and MorphOS only !} {$ENDIF} { Project : hooks1 Source : RKRM } {$MODE OBJFPC}{$H+} {$UNITPATH ../../../Base/Trinity} Uses Exec, Intuition, Utility, {$IFDEF AMIGA} SystemVarTags, {$ENDIF} Trinity; Type PVOI...
unit Worker; interface uses System.Classes, System.SyncObjs, System.SysUtils, System.IOUtils, VCL.Forms, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.Stan.Param, FireDAC.Da...
unit MsgSource.Syslog; interface uses SysUtils, Classes, DataServices, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.Phys.MSSQL, FireDAC.Comp.Client, FireDAC.Stan.Param, FireDAC.DatS, FireDAC.DApt.Intf, FireDAC.D...
(** * Framework of functions for exporting location data of records. * * This file does not actually produce dumps, but is used by several other files to help create location dumps. *) unit ExportTabularLOC; (** * Initializes a line buffer for locations data. * * @return a line buffer for locations *) functio...
{******************************************************************************* The TAlGSMComm component implements SMS text messaging through the text-mode interface defined in the GSM Technical Specification 07.05, version 5.1.0, dated December 1996. There are several variations of this spec, used throughout No...
unit IdTestBuffer; interface uses IdTest, IdObjs, IdSys, IdGlobal, IdBuffer; type TIdTestBuffer = class(TIdTest) published procedure TestBufferToStream; procedure TestStreamToBuffer; procedure TestTypes; end; implementation const cString='12345'; procedure TI...
unit Turtle; interface {$gendoc true} {$reference 'SmallBasicLibrary.dll'} ///Перемещает черепашку на заданное расстояние. Если перо включено, будет нарисована линия по пути движения черепашки. function Move(x: integer): integer; ///Поворачивает черепашку на 90 градусов вправо. function TurnRight(): integer; ///По...
PROGRAM Expressions; (* * Expression = Term { ("+" | "-") Term } * Term = Fact { "*" | "/" Fact } * Fact = Operand {Operation Operand} * Fact = ident | number | "(" Expression ")" * ident = Constant | Variable * * example: * 3 + 5 * 4; * Term "+" Term * Fact "*" Fact * number number...
program FileCopyingExample; {$mode objfpc}{$H+} uses {$IFDEF UNIX} {$IFDEF UseCThreads} cthreads, {$ENDIF} {$ENDIF} Classes, SysUtils { you can add units after this }; { Depend on your file size that program will choose the best algorithm to copy like: file of Byte, file of Word, ... if you want to...
unit uPesquisaSimples; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uPadrao, StdCtrls, Buttons, ExtCtrls, Grids, DBGrids, DBGridCBN, Provider, DB, DBClient, ImgList, pngimage; type TfrmPesquisaSimples = class(TfrmPadrao) Panel1: TPanel; btnSelecio...
unit JConfig; (* Jane2ch のコンフィグレーション情報 *) (* Copyright (c) 2001,2002 Twiddle <hetareprog@hotmail.com> *) (* version 1.80, 2004/09/23 05:47:00 *) interface uses SysUtils, Forms, Classes, IniFiles, Windows, Graphics, UDoLib, UCryptAuto, USynchro, HogeTextView, StrSub, UBase64; type TGe...
unit FormSelectFitNew; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, ComCtrls, FrameButtons{, OlegApprox}; const ImgHeightNew=500; ImgWidthNew=500; type TFormSFNew = class(TForm) TVFormSF: TTreeView; LFormSF: TLabel; Im...
unit uLoadValue; interface uses Forms, SysUtils, Dialogs, Classes, IniFiles, Controls, windows; type TConfigValue = class private ini: TiniFile; //DB 정보======================================= FDbCon: Boolean; configFile: string; ...
unit ScriptDataCacheVertical; interface uses SysUtils, Classes, IBSQL, Controls, Contnrs, Windows, dmThreadDataModule, ScriptDataCache; type TArrayCurrency = array of currency; PArrayCurrency = ^TArrayCurrency; TArrayInteger = array of integer; PArrayInteger = ^TArrayInteger; TArraySingle = array of Si...
unit FInterfaceUtils; interface uses Windows, SysUtils, FXMLLoader, FFonts, FLogs, FData, FUnit, FLua; procedure SetPosition(Compo : PComponent); procedure FillPointType(var p : pointType; s : string); function FindRecordComponentByName(var c : RecordComponent; const name : string) : bo...
unit AqDrop.Core.InterfacedObject; interface type /// ------------------------------------------------------------------------------------------------------------------ /// <summary> /// EN-US: /// Base class for objects that must implememnt IInterface. /// PT-BR: /// Classe base par...
unit UWriteWait; /////////////////////////////////////////////////////////////////////////////// // //function IsThisHost(const ADomainName: String): Boolean; // DomainName(ex7.2ch.netなど)がWriteWait中かどうか //procedure Start(const ADomainName: String; ATimeForWait: Cardinal); // DomainName(ex7.2ch.netなど)に対してATime...
program project1; {$mode delphi}{$H+} { Raspberry Pi 3 Application } { Add your program code below, add additional units to the "uses" section if } { required and create new units by selecting File, New Unit from the menu. } { ...
unit GraficoDataHintLayer; interface uses GR32_Layers, GraficoPositionLayer, Grafico, JvBalloonHint, Classes; type TGraficoDataHintLayer = class(TGraficoDatosLayer) private PositionLayer: TGraficoPositionLayer; MousePosition: array of integer; Hint: TJvBalloonHint; procedure CreateMouseMap(const ...
unit UEvSwapBuffer; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, IniFiles, UCommon, UMyEvents; Type TEvSwapBuffer = Class(TObject) public TypeTL: TTypeTimeline; Count: integer; Events: array of TMyEvent; procedure Clea...
{$mode objfpc} {$modeswitch objectivec1} unit AppDelegate; interface uses Classes, CocoaAll; type TAppDelegate = objcclass(NSObject, NSApplicationDelegateProtocol, NSOutlineViewDataSourceProtocol, NSOutlineViewDelegateProtocol) private window: NSWindow; panelView: NSOutlineView; panelContainer...
unit UCustomHayes; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,ComCtrls,IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdFTPCommon, IdFTP, IdExplicitTLSClientServerBase, UContainer, UForms; type TCustomHayes = class(TAdvancedForm)...
unit TestHighlightPas; {$mode objfpc}{$H+} interface uses Classes, SysUtils, testregistry, TestBase, Forms, LCLProc, TestHighlightFoldBase, SynEdit, SynEditTypes, SynHighlighterPas, SynEditHighlighterFoldBase; type // used by Fold / MarkupWord { TTestBaseHighlighterPas } TTestBaseHighli...
unit AqDrop.DB.FD.PG; {$I '..\Core\AqDrop.Core.Defines.Inc'} interface uses {$IFNDEF AQMOBILE} {$IF CompilerVersion >= 26} FireDAC.Phys.PG, {$ELSE} uADPhysPG, {$ENDIF} {$ENDIF} AqDrop.DB.Adapter, AqDrop.DB.FD; type TAqFDPGAdapter = class(TAqFDAdapter) strict protected class funct...
unit scheduler; interface uses threads, spinlock; var CurrentThread: PThread; procedure DisableScheduling; procedure EnableScheduling; function ScheduleLevel: sizeint; procedure AddThread(var T: TThread); procedure RemoveThread(var T: TThread); function Schedule(s: pointer): pointer; function GetCurrentThread: P...
// 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 ...
unit MolHero.DMMain; interface uses System.SysUtils, System.Classes, FMX.Controls3D, MolHero.MoleculeModel, MolHero.Materials; type TDMMain = class(TDataModule) private FMolecule: TMolecule; FAtomMaterials: TAtomMaterials; procedure LoadMolecule(const ctr: TControl3D; const mol: TMol...
unit jclass_stack_map_frame; {$mode objfpc}{$H+} interface uses Classes, SysUtils, jclass_common, jclass_types; type { TJClassStackMapFrame } TJClassStackMapFrame = class(TJClassLoadable) private FFrameType: UInt8; FOffsetDelta: UInt16; FStack: TVerificationTypeInfoArray; FLocals: TV...
unit Naturals; interface type (* * Натуральное число (или ноль), хранимые в системе счисления с * основанием 2^32 * Младшие разряды хранятся в ячейках с младшими номерами * ВНИМАНИЕ: Ячейки нумеруются с нуля *) TNaturalNumber = array of Word; (* * Знак числа *) TNumberS...
unit PrintStrings; interface uses Classes, Graphics, GdiHandles; // ***************************************************** // TStringsPrinter OUTPUTS A TStrings TO PRINTER // ***************************************************** // Uses a fixed pitch font. type TStringsPrinter = class protecte...
Program FloatingMean; VAR floatingMeanCount: SMALLINT; floatingMeanSum: LONGINT; FUNCTION MeanA(value: SMALLINT): REAL; BEGIN floatingMeanSum := floatingMeanSum + value; Inc(floatingMeanCount); MeanA := floatingMeanSum / floatingMeanCount; END; FUNCTION MeanStateMachine(value: SMALLINT): REAL; BEGIN (* a = f(e...
unit UnitConfiguration.Model; interface uses System.Json; type TConfiguration = class private FDriver: string; FpathBD: string; published property Driver: string read FDriver write FDriver; property pathBD: string read FpathBD write FpathBD; class function fromJson: TConfiguration; fun...
{*------------------------------------------------------------------------------ テキストボックス系操作ユニット @Author $Author$ @Version $Id$ -------------------------------------------------------------------------------} unit TextBoxUtils; interface uses Windows, Messages; procedure SetTexLimitMax...
//--------------------------------------------------------------------------- // This software is Copyright (c) 2015 Embarcadero Technologies, Inc. // You may only use this software if you are an authorized licensee // of an Embarcadero developer tools product. // This software is considered a Redistributable as ...
unit uSQLUtils; interface uses Classes, ADODB, IOUtils, uDatabase, System.SysUtils; type TSQLHelper = class(TAdoQuery) public constructor Create(aDatabaseName: string); destructor Destroy; override; procedure Open(aSql: string); overload; function SaveToExcel(IncludeHeader: Boolean): string;...
unit OAuth2.Entity.Client; interface uses OAuth2.Contract.Entity.Client; type TOAuth2ClientEntity = class(TInterfacedObject, IOAuth2ClientEntity) private { private declarations } FIdentifier: string; FName: string; FRedirectUri: TArray<string>; FIsConfidential: Boolean; protected { p...
program LANDPRT; uses Printer,Crt; var C : string[1]; Procedure Frame(x1,y1,x2,y2: byte); Var I: Integer; begin GoToXY(x1,y1); Write(chr(218)); For I := x1+1 to x2-1 do Write(chr(196)); Write(chr(191)); For I := y1+1 to y2-1 do begin ...
PROGRAM Test(INPUT, OUTPUT); VAR I, Sum, D, Num, Len: INTEGER; Ch: CHAR; Str: STRING[255]; PROCEDURE IsDigit(VAR Ch: CHAR; VAR D: INTEGER); BEGIN IF Ch = '0' THEN D := 0 ELSE IF Ch = '1' THEN D := 1 ELSE IF Ch = '2' THEN D := 2 ELSE IF Ch = '3' THEN D := 3 ELSE IF Ch = '4' THEN D := 4 ELSE IF Ch = '5'...
unit CFDContabilizacion_; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Buttons, ActnList, StdCtrls, Db, DBTables, ComCtrls, BEdit, BSpeedButton, ExtCtrls, nbLabels, Math, BGridButton, BCalendarButton, BCalendario, Grids, DBGrids, BGrid, IdMessage, IdBaseComponent, ...
unit untFrm; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.TabControl, FMX.StdCtrls, FMX.Gestures, FMX.Controls.Presentation, FMX.Edit; type TFrmMain = class(TForm) HeaderToolBar: TToolBar;...
unit Facebook.Aniversario.View; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Grids, Vcl.DBGrids, Vcl.ComCtrls, Vcl.StdCtrls, Vcl.ExtCtrls, Data.DB, Vcl.DBCtrls; type TfView =...
//--------------------------------------------------------------------------- // This software is Copyright (c) 2015 Embarcadero Technologies, Inc. // You may only use this software if you are an authorized licensee // of an Embarcadero developer tools product. // This software is considered a Redistributable as ...
unit EspecificacaoFiltraNFCe; interface uses Especificacao; type TEspecificacaoFiltraNFCe = class(TEspecificacao) private FDtInicio :TDateTime; FDtFim :TDateTime; FNr_nota :integer; public constructor Create(DtInicio, DtFim :TDateTime; const nr_nota :integer = 0); public function...
unit IdTestCmdTCPClient; interface uses IdTest, IdGlobal, IdCmdTCPClient, IdCmdTCPServer, IdSys; type TIdSafeCmdTCPClient = class(TIdCmdTCPClient) public AllowFree:Boolean; destructor Destroy; override; end; TIdTestCmdTCPClient = class(TIdTest) published procedu...
unit UShape; interface uses Classes,Windows,Graphics,TetrixConst,ContNrs,UBrick; type TFindType = (ftXMin,ftYMin,ftMaxAll,ftXMax,ftYMax); TShapeStatus = (ssMoving,ssStanding); type TBaseShape = class private BrickList:TObjectList; FBoardPoint: TPoint; FShapeStatus: TShapeStatus; ...
unit RichTextView; (* version 1.6 mod *) (* version 0.0.5 *) (* Copyright (C) 2002 Twiddle <hetareprog@hotmail.com> *) (* This software is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software. Permission is ...
inherited AMC_BuildPDF: TAMC_BuildPDF Width = 658 Height = 387 ParentFont = False DesignSize = ( 658 387) object cbxSavePDFCopy: TCheckBox Left = 27 Top = 68 Width = 324 Height = 17 Caption = 'Save a copy of the PDF file in this directory:' Checked = True State = cbChecked ...
unit ManagerDRX; interface uses DRX_WS, DRX_AFC_WS, DRX_Configuration_WS, DRX_Sync_WS, SysUtils, DRX_DataReceiver, SyncObjs; type TDRX_Exception = class(Exception) end; TDRX_Manager = class private fDRX_WS : IDRX_WS; fAFC_WS : IDRX_AFC_WS; fConfig_WS : IDRX_Configuration_WS; ...
unit QCore.Input; interface uses Strope.Math; const KEYBOARD_KEYS = 255; KB_BACKSPACE = 8; KB_TAB = 9; KB_ENTER = 13; KB_SHIFT = 16; KB_ALT = 18; KB_ESC = 27; KB_SPACE = 32; KB_PAGEUP = 33; KB_PAGEDOWN = 34; KB_LEFT = 37; KB_UP = 38; KB_RIGHT = 39; KB_DOWN = 40; KB_A = 65; KB_B = 66...
{*! * 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 BaseSimpleFastCGIAppImpl; interface {$MODE OBJFPC} uses Daem...
{ Description: vPlot main form. Copyright (C) 2017-2018 Melchiorre Caruso <melchiorrecaruso@gmail.com> 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 of the License, or (a...
unit Controller.Pedidos; interface uses FireDAC.Comp.Client, System.SysUtils, Controller.Pedidos.Interfaces, Data.DB, Entidades.Pedidos; type TPEDIDOS = class(TInterfacedObject,iPEDIDOS) private FConnection : TFDConnection; FQuery : TFDQuery; FDatasource : TDataSource; FEntidade :...
unit RepositorioConfiguracaoECF; interface uses DB, Auditoria, Repositorio; type TRepositorioConfiguracaoECF = class(TRepositorio) protected function Get (Dataset :TDataSet) :TObject; overload; override; function GetNomeDaTabela :String; override; function ...
{******************************************************************************* 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 versi...
unit frmAllCommand; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseForm, Vcl.StdCtrls, VGCore_TLB; type TfAllCommand = class(TTBaseForm) btn1: TButton; private { Private declarations } publi...
unit rFdUtils; interface uses System.Classes, Data.DB, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Consts, FireDAC.Stan.Error, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.Stan.ExprFuncs, FireDAC.Comp.Client, FireDAC.Stan.Param, FireDAC.DatS, Fir...
unit Progress; interface uses Windows,sysutils,classes,controls,forms,comctrls, ProgDlg; type TProgress = class; // if process done, return true. TProgressMethod = function (Sender : TProgress; var step : integer):boolean of object; TProgressThread = class(TThread) private { Private declarations } ...
unit roDockJoinWin; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, roDockWin; type TDockJoinWin = class(TForm) procedure FormClose(Sender: TObject; var Action: TCloseAction); procedure FormDockDrop(Sender: TObject; Source: TDragDockObject; X, Y: Integer);...
(* Copyright (c) 2011-2012, Stefan Glienke 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 baseCadastroSimples; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DBCtrls, ActnList, StdCtrls, Buttons, ExtCtrls, DB, DBClient, sSkinManager, dxSkinsCore, dxSkinBlack, dxSkinBlue, dxSkinCaramel, dxSkinCoffee, dxSkinDarkRoom, dxSkinDarkSide, dx...
{$MODESWITCH RESULT+} {$GOTO ON} (************************************************************************* Copyright (c) 2009-2010, 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...
unit uHMAC; interface uses System.SysUtils, EncdDecd, IdHMAC, IdSSLOpenSSL, IdHash, IdGlobal; type THMACUtils<T: TIdHMAC, constructor> = class public class function HMAC(aKey, aMessage: RawByteString): TIdBytes; class function HMAC_HexStr(aKey, aMessage: RawByteString): RawByteString; cla...
(* ============================== *) (* Developer: Neuhold Michael *) (* Date: 10.01.2019 *) (* balncing a binary search tree *) (* ============================== *) PROGRAM BalanceBinaryTrees; USES IO_Modul; TYPE NodePtr = ^Node; Node = RECORD value: INTEGER; left, right: Node...
unit QRTool; interface uses VGCore_TLB, Utils; type TQRTool = class(TObject, IVGToolState) FToolStateAttributes: IVGToolStateAttributes; FApplication: IVGApplication; FIsDrawing: Boolean; constructor Create(application: IVGApplication); procedure OnStartState(const StateAttributes: IVGToolSta...
unit UJA0Score; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, UBasicScore, Grids, StdCtrls, ExtCtrls, Buttons, Math, UzLogConst, UzLogGlobal, UzLogQSO, Vcl.Menus; type TJA0Score = class(TBasicScore) Grid: TStringGrid; procedure FormShow(Sender: TObject); ...
unit AT.FMX.Controls.Dialogs.ATSplashScreenHD; interface uses System.SysUtils, System.Classes, System.UITypes, FMX.Graphics, FMX.TMSBitmapContainer, AT.FMX.Dialogs.SplashHD, FMX.StdCtrls, FMX.Ani, System.UIConsts; type TATSplashScreenHD = class(TComponent) private FSplash: TdlgATSplashHD; FVersion:...
program sim1; var a, i: integer; function fibo(i: integer): integer; begin if i < 3 then fibo := 1 else fibo := fibo(i - 1) + fibo(i - 2); end; begin for i := 1 to 10 do writeln(fibo(i)); end. (* 1 1 2 3 5 8 13 21 34 55 *)
program e4p3; uses crt; const MAX_ELEMENTOS = 10; type tArr = array [1..MAX_ELEMENTOS] of char; puntNodo = ^tNodo; tNodo = record letra:char; sig:puntNodo; end; //////////////////////////////////////////////////////////////////////// procedure eliminarLista(var lista:puntNodo); b...