text
stringlengths
14
6.51M
program usaco_power(input,output); const maxpower= 20000; type nodes=record x,y:longint; end; size_balance_tree=object root,tot:longint; s,left,right:array[0..1000000] of longint; key:array[0..1000000] of nodes; procedure clean; procedure left_rotate(var t:longint); procedure right_rotate(var t:longin...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.6.5.2-1, FILE=IMDEFB26,...
unit eePluginSettings; interface {$INCLUDE Defines.inc} type // TProcessBufferType - Controls how the ProcessReplacing audio block is split. // - pbSplit: the buffer is split at midi events. // - pbSingle: the buffer is processed in one block. // - pbMidiOnly: audio isn't processed. Midi is process...
unit frmClosingYear; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, // Auto Generate frmUni, Menus, cxLookAndFeelPainters, cxGraphics, DB, MemDS, DBAccess, Uni, cxControls, cxContainer, cxEdit, cxTextEdit, cxMaskEdit, cxDropDownEdit, StdCtrls...
{ Copyright (c) 2018, Vencejo Software Distributed under the terms of the Modified BSD License The full license is distributed with this software } unit DaySpan_test; interface uses SysUtils, DaySpan, Week, Month, Year, {$IFDEF FPC} fpcunit, testregistry {$ELSE} TestFramework {$ENDIF}; {$IFNDEF FP...
{ A class to add noise to demos... } unit eeDemoNoise; interface uses VamLib.MoreTypes, eeGlobals; type TDemoNoise = class private fSampleRate: single; fSilentPeriod: single; fNoisePeriod: single; fNoiseVolume: single; procedure SetNoisePeriod(const Value: single); ...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.10-7, FILE=DEV255, CLAS...
program FirstSteps; VAR username: String; begin writeln('Hello world!'); writeln('Please tell me your name...'); readln(username); writeln('Hello ', username); readln(); end.
{ * Main form for IStreamWrap Stream Library Demo Program. * * $Rev$ * $Date$ * * Any copyright in this file is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ } unit FmIStreamWrap; {$UNDEF REQUIRES_TYPES_UNIT} {$IFDEF CONDITIONALEXPRESSIONS} {$IF CompilerVersion >= 24.0} ...
unit FontUnit; interface uses OpenGL, OpenGLUnit, Classes; Procedure DecodeFont(src: Pointer; image: Pointer); type T2DCoord = Packed Record X, Y: Real; end; TTexCoord = Array[0..3] of T2DCoord; TMarioFont = class FTexture: Integer; FWidth: Array[Byte] of ShortInt; FCharCoords: Array[Byte] of TTexCo...
{ ****************************************************************** Bisection method for nonlinear equation ****************************************************************** } unit ubisect; interface uses utypes, umachar, uConstants; procedure RootBrack(Func: TFunc; var X, Y, FX, FY: Float); { -...
unit Classes.Conversao.ConverteTexto; interface uses Classes.Conversao; type TConverteTexto = class(TConversao) private FTexto: String; procedure SetTexto(const Value: String); protected function getTextoConvertido: string; virtual; abstract; public property Texto: String read FTexto write Se...
unit Matrices; { René DEVICHI année scolaire 91-92, novembre ou décembre 1991 } { bibliothèque de gestion de matrices par la programmation orientée objet } interface { définition des types et des constantes } const ERRFIC=1; epsilon:real=1E-7; sysversion:word=$0000; type loi_coef=function(li,co:word):real;...
unit NovoInsumoOperacao; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, Mask, ToolEdit, CurrEdit; type TfmNovoInsumoOperacao = class(TForm) lFk_Secoes: TLabel; cbSecoes: TComboBox; lFk_Grupos: TLabel; cbGrupos: ...
unit PlugInPluginTest; interface uses Windows, Messages, SysUtils, Classes, Dialogs, Forms, Controls, JvPlugin, ImgList; type TPluginTest = class(TJvPlugIn) Image_List: TImageList; procedure JvPlugInInitialize(Sender: TObject; var AllowLoad: Boolean); procedure PluginTestCommands0Execut...
(*----------------------------------------------------------------------------- The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/MPL-1.1...
unit Controller; interface uses Controller.Interfaces, Model.Validator.Interfaces, Model.Validator, Model.Services.Interfaces, Model.Services; type TController = class(TInterfacedObject, IController) private FServices: IModelServices; FValidator: IModelValidator; public ...
unit uTaskManager; interface uses SysUtils, IOUtils, Generics.Collections, DB, uBaseThread, uGlobal, uTypes, uCommon, uPassCounter; type TTaskManager = class private FThreadList: TList<TBaseThread>; function LoadKKThreadConfig(KKStatus: string = '1'): TList<TKKThreadConfig>; function LoadDJThread...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { PRETEST 6.4.5-15, FILE=ERR06P,...
unit NodeLstEx; interface uses SysUtils, NodeLst, Classes, TntClasses; type TNodeListEx = class(TNodeList) public procedure LoadFromFile(const FileName: WideString); procedure SaveToFile(const FileName: WideString); procedure LoadFromStream(const Stream: TStream); virtual; abstract; procedure Save...
//Copyright 2016 Andrey S. Ionisyan (anserion@gmail.com) // //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicabl...
unit Prefs; interface uses Classes, SysUtils, IniFiles; type TPrefs = class private fSSLPrivateKeyPassword: String; fPort: Integer; fSSLPrivateKeyFile: String; fSSLCertFile: String; public procedure LoadFromFile(AFileName: String); procedure SaveToFile(AFileName: String); publis...
unit SpTBXCustomizerForm; {============================================================================== The contents of this file are subject to the SpTBXLib License; you may not use or distribute this file except in compliance with the SpTBXLib License. A copy of the SpTBXLib License may be found in SpTBXLib-...
unit Test.Lucidity.SfzOpcodeConversion; interface uses WatchTower, eeGlobals; type TSFZOpcodeConversion = class(TWatchTowerTest) private protected public [Test] procedure BasicTests; end; implementation uses SysUtils, WatchTower.Confirm, Lucidity.SfzOpcodeConversion, SfzParser.SfzOp...
unit Menu.KeyGroupsMenu; interface uses Classes, Menu.CustomPopupMenu, eePlugin, Vcl.Menus; type TGroupsMenu = class(TCustomPopupMenu) private protected CurrentGroup : string; procedure CreateNewKeyGroup(Sender : TObject); procedure DeleteKeyGroup(Sender : TObject); proced...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.4.2.3-4, FILE=CONF046, CLAS...
unit Umenu; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Menus; type TFMenu = class(TForm) MainMenu1: TMainMenu; KASMASUK1: TMenuItem; KASKELUAR1: TMenuItem; LAPORAN1: TMenuItem; LAP...
program ProceduralGeneration; uses SwinGame, sgTypes, Terrain, MapUtils; // Initializes the 2D map grid with the given size and sets the default // values for each tile procedure SetGridLength(var tiles: TileGrid; size: Integer); var column: Integer; x, y: Integer; begin // Set all of the column sizes to the righ...
unit uVendas; interface uses System.Generics.Collections, System.SysUtils, uItemVendas ; type Tvendas = class private FIDVenda: Integer; FData: TDateTime; FListaVendaItem: TObjectList<TVendaItem>; public property IDVenda: Integer read FIDVenda write FIDVenda; property Data : TD...
unit eePluginUtils; interface procedure GetBuildVersion(var V1, V2, V3, V4: word); function GetBuildVersionAsString: string; function GetDLLFilename:string; function GetDLLDirectory:string; function GetHostApplicationFullPath: string; function GetHostApplicationFilename: string; function GetHostApplicatio...
unit UCL.Tooltip; interface uses Classes, Windows, Messages, Controls, Graphics, UCL.Classes, UCL.Utils, UCL.Graphics, UCL.Colors; type TUCustomTooltip = class(THintWindow) private const VERT_SPACE: Byte = 5; HORZ_SPACE: Byte = 7; private var ShowShadow: Boo...
{==============================================================================| | Project : Ararat Synapse | 003.001.002 | |==============================================================================| | Content: FTP client ...
unit SpTBXMDIMRU; {============================================================================== Version 2.5.3 The contents of this file are subject to the SpTBXLib License; you may not use or distribute this file except in compliance with the SpTBXLib License. A copy of the SpTBXLib License may be found in ...
unit unitCodeSoft6; interface uses classes,sysutils,unitCodeSoftSample,unitLog,LabelManager2_TLB,dialogs; type TCodeSoft6=class(TCodeSoftSample) private m_CS6 : TCS_6; protected { 處理visible事宜 } procedure setVisible(f_bVisible : Boolean); override; function getVisible : boolean; override; fu...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.9-3, FILE=IMDEFB42, CLA...
unit UThreadDataset; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, DBTables, Db, adodb; type TThreadDataSet = class(TThread) private procedure WMOpenDataSet(Msg: TMsg); procedure WMExecSQL(Msg: TMsg); protected procedure Execute; override; public ...
(* WordReader: HDO, 03-02-27 *) (* Modified BX, 02.04.21 *) (* ---------- *) (* Reads a text file word (= seq. of characters) by line. *) (* Sepcial Procedures for Replacement cache init...
unit VamLib.CpuOverloadWatcher; interface uses VamLib.Logging; type TCpuOverloadWatcher = class private MaxTime : Int64; // time in milliseconds, StartTime : Int64; ProcessTime : double; // time in milliseconds. ProcessLoad : double; // 0..100% of max load. fWatchName : string; public ...
unit Unit1; interface implementation end. unit Unit2; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TForm2 = class(TForm) private { Private declarations } public { Public declarations } end; var Form2: TForm2; {$OPTIMIZATION ON} {$...
{ Main "playing game" state, where most of the game logic takes place. Feel free to use this code as a starting point for your own projects. (This code is in public domain, unlike most other CGE code which is covered by the LGPL license variant, see the COPYING.txt file.) } unit GameStatePlay; interface uses C...
//-- //-- Nome Artefato/Programa..: SYSHUB //-- Autor(es)...............: Gilvan Costa (gilvancosta [at] csthost.com.br) CSTHost (http://www.csthost.com.br/) //-- Data Inicio ............: 07/10/2013 //-- Data Atualizacao........: 07/10/2013 //-- Versao..................: 0.01 //-- Compilador/Interpretador: Delphi //--...
unit CadRod; {*************************************************************************} {* *} {* Author: Alcindo Schleder *} {* Copyright: © 2003 by Alcindo Schleder. All rights reserved...
unit BeRoGUIDTools; {$ifdef fpc} {$mode delphi} {$ifdef cpui386} {$define cpu386} {$endif} {$ifdef cpu386} {$asmmode intel} {$endif} {$ifdef cpuamd64} {$asmmode intel} {$endif} {$ifdef FPC_LITTLE_ENDIAN} {$define LITTLE_ENDIAN} {$else} {$ifdef FPC_BIG_ENDIAN} {$define BIG_ENDIAN} ...
unit OIDC; interface uses System.Classes, System.Generics.Collections, System.Net.URLClient; type TTokenType = (none, basic, bearer); TTokenTypeHelper = record helper for TTokenType public function ToString: string; end; TAuthorization = record strict private FTokenType: TTokenType; FValu...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.8.1-6, FILE=DEV195, CLA...
unit unitResourceGIF; interface uses Windows, Classes, SysUtils, graphics, gifimage, unitResourceDetails, unitResourceGraphics; type //------------------------------------------------------------------------ // GIF resource details class TGifResourceDetails = class (TGraphicsResourceDetails) protecte...
program aula20; { Autor: Samuel T. C. Santos Data: 08/06/2015 Descricao: Cores - Compilador Free Pascal Crt #TextColor e TextBackground Cores -- codigo Black 0 Blue 1 Green 2 Cyan 3 ... Escuras ... Red 4 Magenta 5 Brown 6 LightGray 7 Dark Gray 8 LightBl...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.6.3.7.1-7, FILE=LEV1F16...
unit MainU; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireD...
unit Model.DaoGeneric; interface uses System.JSON, REST.Json, SimpleInterface, SimpleDAO, SimpleAttributes, SimpleQueryFiredac, Data.DB, DataSetConverter4D, DataSetConverter4D.Impl, DataSetConverter4D.Helper, DataSetConverter4D.Util; type iDAOGeneric<T : Class> = interface...
unit eeSampleFloat; interface uses VamLib.MoreTypes, eeCustomSample, eeSampleIntF; type PSampleFloat = ^TSampleFloat; TSampleFloat = class(TCustomSample, ISample) private fCh1: TArrayOfSingle; fCh2: TArrayOfSingle; fLastErrorMessage: string; fLastError: TSampleError; func...
unit ee3AddOn.ParameterManager.StaticVst; { Static VST Parameter Manager is designed for VST plugins with relatively simple VST parameter setups. Typically this will be suitable for plugins with a limited number of parameters that perform one function. It's a good match for plugins that mimic hardware where ...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.1.3-1, FILE=CONF007, CLASS=...
unit CEAppMain; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Graphics, FMX.Forms, FMX.Dialogs, FMX.TabControl, System.Actions, FMX.ActnList, FMX.Objects, FMX.StdCtrls, FMX.ScrollBox, FMX.Memo, FMX.Controls.Presentation, FMX.Layouts...
PROGRAM PI (input, output); uses crt; {Erick Nave 9:00 ICS 3-30-93 PI asks the user for the number of terms in which he wants 3 different equations that figure the value of PI to be carried out to. Then, the program uses the terms to calculate PI, interrupting it 20 times to print a progress report. Th...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.6.3.4-3, FILE=DEV132, C...
unit Iocp.ThreadPool; {* 利用IOCP实现的线程池,效率远高于普通线程池 根据Synopse中的线程池代码改编 *} interface uses Windows, Classes, SysUtils, Math, System.Generics.Collections, System.SyncObjs, Iocp.ApiFix; const SHUTDOWN_FLAG = ULONG_PTR(-1); type TIocpThreadPool = class; TProcessorThread = class; // 线程池请求类 TIocpThreadRe...
{ ANGc63 活力值系统 精力值系统 背包系统 商铺系统 挂机系统 设置系统 组队系统 行会系统 好友系统 邮件系统 排行系统 祝福油系统 武器升级 摆摊系统 交易系统 } {$I common.pas} function GetMapStrNameById(mapId :integer) : string; begin case mapId of 1 : result := '兽人古墓'; 2 : result := '洞穴'; 3 : result := '沃玛寺庙'; 4 : result := '比奇废矿'; ...
program whileloop; var m,n,a,b,r:integer; begin write("Input m,n:"); read(m,n); a:=m;b:=n;r:=a mod b; while r<>0 do begin a:=b;b:=r; r:=a mod b; end; write("The greatest common divide is : "); write(b); end.
unit uBaseThread; interface uses Classes, ActiveX; type TBaseThread = class(TThread) private FPaused: boolean; FReallyPaused: boolean; procedure Execute; override; protected FSleep: integer; procedure Perform; virtual; abstract; procedure AfterTerminate; virtual; abstract; procedu...
unit dxFrames; interface uses Classes, Forms, SysUtils, dxFrame, Controls; type TdxFrameClass = Class of TFrame; TdxFrameInfo = class private FSystemID: String; FCaption: string; FCustomFrameClass: TdxFrameClass; FFrame: TFrame; FID: Integer; FImageIndex: Integer; FSideBarFirstA...
(***************************************************************************** DIGITAL SIGNAL PROCESSING TOOLS Version 1.03, 2001/06/15 (c) 1999 - Laurent de Soras FFTReal.h Fourier transformation of real number arrays. Portable ISO C++ ----------------------...
unit SuplaDevDrvUnit; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, IdGlobal, IdTCPClient, IdComponent, ExtCtrls, IdSSLOpenSSL, ProgCfgUnit, Supla_proto; const wmBase = wm_User + 200; wmRecData = wmBase + 0; wmDisconnected = wmBase + 1; type TBuf...
unit cxBoldEditConsts; interface resourcestring scxSBoldEditRepositoryTextItem = 'BoldTextEdit|Represents a Bold aware single line text editor'; scxSBoldComboBoxRepositoryTextItem = 'BoldComboBox|Represents a Bold aware combo box editor'; scxSBoldLookupComboBoxRepositoryTextItem = 'BoldLookupCom...
unit TCPTypes; {$IFDEF FPC} {$MODE DELPHI} {$ENDIF} {$H+} interface uses Generics.Collections, Classes; type TMsgData = array of Byte; { TBaseIdentMessage } TBaseIdentMessage = class Ident: TGUID; Data: TMsgData; constructor Create; virtual; function Encode: TMsgData; virtual; ...
{ ****************************************************************** Minimum, maximum, sign and exchange ****************************************************************** } unit uminmax; interface uses utypes, uComplex, uConstants; function DSgn(A, B: Float): Float; { Sgn(B) * |A| } function DSgn...
unit Udm; interface uses System.SysUtils, System.Classes, Data.DB, Data.Win.ADODB; type TDm = class(TDataModule) ADOConnSatu: TADOConnection; ADOConnDua: TADOConnection; procedure DataModuleCreate(Sender: TObject); procedure ADOConnSatuBeforeConnect(Sender: TObject); procedure ADOConnDuaBefor...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.7.2.3-5, FILE=DEV175, C...
unit eeSyncKeeper; interface uses eeSyncEvents, SysUtils, eeMidiEvents; type PSyncKeeper = ^TSyncKeeper; TSyncKeeper = class private fProcessReplacingOffset: integer; fOverSampleFactor: integer; fSyncEvents: TSyncEventController; protected MidiOutput : PeeMidiEventList; ...
unit main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, ExtCtrls, StdCtrls, ksComm, ActnList, ImgList, Menus, ToolWin; type TfrmMain = class(TForm) Panel1: TPanel; Panel2: TPanel; PageControl1: TPageControl; tsText: TTabSheet; ...
unit frmSalesReturnPayment; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DateUtils, // Auto Generate frmUniTransactionEx, Menus, cxLookAndFeelPainters, cxGraphics, cxStyles, cxCustomData, cxFilter, cxData, cxDataStorage, cxEdit, DB, cxDBData, ...
(*************************************************************) (* Programmname : PASCAL.PAS V1.0 *) (* Programmautor : Michael Rippl *) (* Compiler : Turbo Pascal V5.0 *) (* Letzte Žnderung : 05-Mar-1990 ...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.8.3.5-20, FILE=DEV218, ...
unit FileManager.Views.FileControl; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls, FileManager.Providers.Frames.FileUpload, Vcl.ComCtrls, FileManager.Providers.ObserverFile.Intf, Fi...
unit NFRepository; interface uses BasicRepository, Nfc00VO, Nfc01VO, SysUtils, System.Generics.Collections, Nfc02VO, Nfc03VO; type TNFRepository = class(TBasicRepository) class function getNFC00: TNfc00VO; class function getNFCE(idOfVenda: Integer): TNfc01VO; class function getNFEmitir: TObjectList<T...
unit ElektrMeterFrameUnit; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseFrameUnit, Vcl.ExtCtrls, supla_proto, ProgCfgUnit, Vcl.StdCtrls, Vcl.ComCtrls, Vcl.Grids; type TElektrMeterFrame = class(TBaseFr...
// Unit responsible for the whole process of // loading csv into database. unit CsvLoader; interface uses Classes, MySQLAccessor, CsvOpUtils; type TCsvLoader = class private Accessor: TMySQLAccessor; Utils: TCsvOpUtils; procedure PutInputColumns(FilePath: string; Cols: TStringList); procedure PutE...
unit Unit_HoughTransformation; { ******************************************************************************* * * * a PASCAL / DELPHI implementaion of the Hough Image Transformation Algorithm * * * * initial code version : 03.04.2011 by BDLM * * rev 0.01 : this is the first rel...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.1.2-1, FILE=CONF004, CLASS=...
unit Unit1; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, System.Beacon, System.Bluetooth, FMX.StdCtrls, FMX.Layouts, FMX.Controls.Presentation, FMX.ScrollBox, FMX.Memo, System.Beacon.Component...
unit uSpecialItf; interface uses System.SysUtils, Classes, DateUtils, uGlobal, uCommon, uSolr, uDBO, uEntity, uHik, FireDAC.Comp.Client, Generics.Collections; type TSpecialItf = Class private class function GetSolrPassList(params: TStrings): string; static; public class function GetLockVio(ASystemI...
{****************************************************************** * 项目名称: * 单元名称:内功的秘密 * 单元作者: * 摘 要: * 备 注: *******************************************************************} program Mir2; {$I common.pas} //本任务的任务编号,每个任务对应不同的任务编号,这个不可以重复 const CurrentTaskID = 109; //TASK_TYPE_MAIN 任务类型为主线 //TA...
unit frmSalesCategory; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, //Auto Create frmUniMasterEx, Menus, cxLookAndFeelPainters, dxPSGlbl, dxPSUtl, dxPSEngn, dxPrnPg, dxBkgnd, dxWrap, dxPrnDev, dxPSCompsProvider, dxPSFillPatterns, dxPSEdgePa...
function Add(a, b: Integer): Integer begin a + b end let x := Add(1, 2);
unit PlugHost.MultiChannelAudioBuffer; interface uses VamLib.MoreTypes; type TMultiChannelAudioBuffer32 = class private FBuffer: T2dArrayOfSingle; FBufferPointers : array of PSingle; FPPBuffer: PPSingle; protected public constructor Create; virtual; destructor Destroy; override; ...
unit QzClasses; interface uses Classes; type TBitStream = class(TMemoryStream) private FBuf: Byte; FMsk: Byte; FLSB: Boolean; FLst: Byte; protected procedure IncBit; procedure InitMask; public constructor Create(fromLSB: Boolean = False); constructor CreateFrom(src: TStream...
unit UntForeGround; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs,GDIPAPI,GDIPOBJ, pngimage, ExtCtrls, Math; type TApple = record image : TGPImage; x,y,w,h : Integer; visiable : Boolean; drawTimes : Cardinal; Direction : Cardinal; en...
{**************************************************************************************************} { The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); } { you may not use this file except in compliance with the License. You may obtain a copy of the } { License at h...
unit uMdlGrain; interface uses System.SysUtils, FireDAC.Comp.Client, Data.DB, uSrvDatabase, uEntUser, uEntGrain, System.Generics.Collections; type TGrainModel = class(TObject) private FDB: TSrvDatabase; FQry: TFDQuery; FDS: TDataSource; FGrain: TGrain; public constructor Create; de...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.8.3.10-8, FILE=CONF191, CLA...
unit unitCodeSoft5; interface uses classes,sysutils,unitCodeSoftSample,unitLog,LabelManager_TLB,dialogs; type TCodeSoft5=class(TCodeSoftSample) private m_CS5 : TCS_5; m_Document : Document; m_Variables : Variables; m_Parameter : Variable; function getVariable(f_iIndex : integer) : boolean; ...
unit eeSampleFloatFunctions; interface uses eeSampleFloat, eeSampleInt; procedure AssignFrom(Dest:TSampleFloat; Source:TSampleInt); overload; procedure AssignFrom(Dest:TSampleFloat; Source:TSampleFloat); overload; implementation procedure AssignFrom(Dest:TSampleFloat; Source:TSampleInt); const ScaleFactor = 1 ...
Unit CleanReg; interface uses Windows, SysUtils, Classes, Registry, dialogs, ShlObj; Const PATH_DESKTOP = $0000; // Рабочий стол PATH_INTERNET = $0001; PATH_PROGRAMS = $0002; // "Все программы" PATH_CONTROLS = $...
unit MainU; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls, Generics.Collections, Vcl.ExtCtrls, WinEventHook; type TEventClass = class strict private FEventClass: string;...
{ ****************************************************************** Bartlett's test (comparison of several variances) ****************************************************************** } unit ubartlet; interface uses utypes, umachar, uConstants; procedure Bartlett(Ns: Integer; N: TIntVector; S: TV...
unit SoundElement.Test; interface //=========== Public ================ procedure RunTests; //=========== Private ================ procedure TestModulePins; procedure TestModulePinEvents; procedure TestCustomModules; procedure TestModuleController; implementation uses SoundElement.Test.Mocks, SoundElement.Tes...
//*************************************************************** // This source is written by John Kouraklis. // © 2016, John Kouraklis // Email : j_kour@hotmail.com // // The MIT License (MIT) // // Copyright (c) 2016 John Kouraklis // // Permission is hereby granted, free of charge, to any person // obtain...
unit uLucidityPopUpMenu; interface uses eePlugin, Vcl.Menus; type TLucidityPopupMenu = class private protected Plugin : TeePlugin; Menu : TPopUpMenu; public constructor Create; destructor Destroy; override; procedure Initialize(aPlugin : TeePlugin); procedure Po...
UNIT CCTScanner; INTERFACE TYPE Symbol = (noSym, minSym, mSym, cmSym, numberSym, wildcardSym, semicolonSym, coloSym, dotSym, idSym, eofSym ); PROCEDURE InitScanner(var inputFile: TEXT); PROCEDURE GetNextSymbol; FUNCTION CurrentSymb...
program metroParaCentrimetros; { @Author : Samuel T. C. Santos @version 10.11.2011 } var metros, centimetros : real; begin write('Metros ? '); read(metros); centimetros := metros * 100; writeln(centimetros:4:1, ' cm'); end.