text stringlengths 14 6.51M |
|---|
unit DispatcherEntry;
interface
uses
ObjectsMappers, System.Generics.Collections, Attachment, System.JSON;
type
/// Represent a request that the dispatcher is able to handle.
[MapperJSONNaming(JSONNameLowerCase)]
TDispatcherEntry = class(TObject)
strict private
const
ORIGIN_KEY = 'origin';
ACTIO... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.2.4-4, FILE=DEV061, C... |
unit mSysCosts;
{*************************************************************************}
{* *}
{* Author: CSD Informatica Ltda. *}
{* Copyright: © 2003 by CSD Informatica Ltda. All rights reserved. ... |
// TSamplePhaseCounter encapsulates a phase counter for reading though
// sample data arrays. The class uses integers internally for sample index accuracy.
// (Floats will eventually loose accuracy as the sample index grows larger).
// Using integers also allows for some optimization.
unit eeSamplePhaseCounter;
... |
unit Lucidity.Filter;
interface
{$INCLUDE Defines.inc}
uses
VamLib.Utils,
VamLib.MoreTypes,
B2.DelayLine.StereoDelayBuffer,
uConstants,
Lucidity.Enums,
Math,
Lucidity.Types,
eeVirtualCV,
AudioEffect.Lofi,
FilterCore.SimperSVF,
soFilter.Test,
soFilter.MoogLadder,
soFilter.... |
unit Log.TxtLog;
interface
uses Log.ILog,
Log.TTipoLog,
System.Classes,
{$IF Defined(MSWINDOWS)}
Winapi.Windows,
{$ENDIF}
System.SysUtils,
System.Generics.Collections,
System.Variants;
type
TLogTXT = class(TInterfacedObject, ILog)
private
class var FInstancia: ILog;
private
FDiretorio: str... |
unit Lucidity.ProgramFileUtils;
interface
uses
Windows,
Types,
Classes,
VamLib.MoreTypes;
function GetProgramFileFormatVersion(const ProgramFileName : string):integer;
// Takes a sample file path and a program file name and attempts to figure out the absolute sample path.
// The sample filename may hav... |
unit AggBezierArc;
////////////////////////////////////////////////////////////////////////////////
// //
// Anti-Grain Geometry (modernized Pascal fork, aka 'AggPasMod') //
// Maintained by Christian-W. Budde (Christian@saviour... |
unit Test.VamLib.ArrayUtils;
interface
uses
WatchTower,
VamLib.ArrayUtils;
type
TArrayUtilTest = class(TWatchTowerTest)
public
procedure Setup; override;
procedure TearDown; override;
end;
implementation
uses
VamLib.UniqueID,
WatchTower.Confirm;
{ TArrayUtilTest }
procedure TArrayUtilTest.S... |
unit Unit1;
interface
uses SysUtils, Windows;
function TryStrToInt(const S: string; Default: Integer): Integer;
function TryStrToFloat(const S: string; Default: Real): Real;
procedure ClearScreen;
implementation
function TryStrToInt(const S: string; Default: Integer): Integer;
begin
try
Result :... |
unit AppUtils3;
{$I ERPVersion.Inc}
interface
uses
Classes, SysUtils, Variants, ApConst, uBaseIntf, DBClient,
DSConnect, SqlExpr, Forms, Windows, ExtCtrls, DB, Dialogs,
SOUtils3, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient,
IdHTTP, Controls, ZjhCtrls, ADODB, AppDB3;
type
//专用于单据前后台数据传递
IHt... |
unit ConcreteObserver;
interface
uses
Observer, WeatherCentral, Subject, System.SysUtils;
type
TConcreteObserver = class(TInterfacedObject, IObserver)
public
FTemperature: double;
FHumidity: double;
FPressure: double;
FWeatherCentral: ISubject;
public
procedure Update(Temp, Hum, Press: do... |
{**************************************************************************}
{ TAdvMultiButtonEdit component }
{ for Delphi & C++Builder }
{ }
{ Copyright ... |
unit Unit1;
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.Notification, FMX.ListView.Types, IPPeerClient, REST.OpenSSL,
REST.Backend.PushTypes, System.JSON, REST.Backend.KinveyPush... |
(*************************************************************************
DESCRIPTION : Utility procedures for hex dump and memory compare
REQUIREMENTS : TP5-7, D1-D6, FPC, VP
EXTERNAL DATA : ---
MEMORY USAGE : ---
DISPLAY MODE : ---
REFERENCES : RFC 3548 - The Base16, Base32, and... |
unit Cayan.MWv4.Intf;
interface
uses
System.Classes, System.SysUtils,
Cayan.Common;
type
IMerchantWare = interface;
//MerchantWare 4 Endpoints
IMWTransactionBase = interface;
IMWCreditTransactions = interface;
IMWVaultTransactions = interface;
IMWEbtTransactions = interface;
IMWGiftCardTransactions... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.3.3-4, FILE=DEV129, C... |
unit TestUtilsArarray;
{
Delphi DUnit Test Case
----------------------
This unit contains a skeleton test case class generated by the Test Case Wizard.
Modify the generated code to correctly setup and call the methods from the unit
being tested.
}
interface
uses
TestFramework, Utils.ArrayUtil;
type
/... |
unit uFrmUser;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.Grids, Vcl.DBGrids, Vcl.Buttons, Vcl.StdCtrls, Vcl.ComCtrls,
uMdlUser, uUtlForm, uUtlAlert, uEntUser;
type
TFrmUser = class(TG... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.1-11, FILE=IMPDEP04, ... |
unit Config;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Graphics;
type
{ TAppConfig }
TAppConfig = class(TComponent)
private
FHasChanged: Boolean;
FHeight: Integer;
FLeft: Integer;
FLicenseAgreement: Boolean;
FTop: Integer;
FWidth: Integer;
function GetDir: string;
... |
{
* FmFrameDemo.pas
*
* Main form file for demo program that demonstrates use of Drop Files
* Components with frames.
*
* $Rev$
* $Date$
*
* Any copyright in this file is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
}
unit FmFrameDemo;
interface
{$UNDEF DELPHIXE2ANDU... |
{
ICMP Service
}
unit svcicmp;
interface
uses
servers, ipfuncs,
Messages, Windows, Classes;
type
TICMPService = class(TService)
Handle : THandle;
constructor Create;override;
destructor Destroy;override;
class function SupportsPort:boolean;override;
function GetServiceName:string;overr... |
(*
* Copyright (c) 2012, Linas Naginionis
* Contacts: lnaginionis@gmail.com or support@soundvibe.net
* 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 ... |
unit GameScore;
uses w3system, w3storage;
const
cMaxHighScores = 10;
type
THighScore = record
Name : String;
Score : Integer;
end;
type
THighScores = array of THighscore;
type
TGameScore = class
private
FName : String;
FStorage : TW3LocalStor... |
unit eeSaveLoadFunctions;
interface
uses
VamLib.MoreTypes,
NativeXml;
{
procedure SaveMidiMapToXML(const MidiAutomation:TMidiAutomation; var XML:TNativeXML);
procedure LoadMidiMapFromXML(var MidiAutomation:TMidiAutomation; const XML:TNativeXML);
}
procedure SaveObjectToXML(const obj:TObject; var Xm... |
unit unitCharsetMap;
interface
uses Windows, Classes, SysUtils, Graphics, MultiLanguage_TLB, richedit;
var
CP_USASCII : Integer = 0;
DefaultCodePage : Integer = 0;
function MIMECharsetNameToCodepage (const MIMECharsetName : string) : Integer;
function CharsetNameToCodepage (const CharsetName : string... |
unit LLVM.Imports.OrcBindings;
interface
//based on OrcBindings.h
uses
LLVM.Imports,
LLVM.Imports.Types,
LLVM.Imports.TargetMachine;
type
TLLVMSharedModuleRef = type TLLVMRef;
TLLVMSharedObjectBufferRef = type TLLVMRef;
TLLVMOrcJITStackRef = type TLLVMRef;
TLLVMOrcModuleHandle = type Integer;
TLLVMO... |
unit LayoutViewer;
{$mode objfpc}{$H+}
interface
uses
Classes, Controls, Graphics, ExtCtrls, ViewTypes, Animators, OpenGLContext,
LMessages;
type
TMouseState = (msNone, msDown, msDragging);
TZOrderAnimator = class;
TActiveViewChangedEvent = procedure(NewView: TView) of object;
TActiveBranchChangedEve... |
Unit uGraphics;
(* ******************************************************************************
* Graphics Objects for ROI treatment *
* Author : Alex Vergara Gil *
* Version : 0.1 ... |
unit JumpingUnit;
interface
uses
Winapi.Windows, System.SysUtils, System.Variants, System.Classes ;
type
TJumping = Class
private
FListofString : TStringList;
FJumpings : integer;
procedure split(sDelim: Char; sSplitStr: String; ListofString :TStrings);
protected
function Jumpin... |
unit Form1;
interface
uses
w3system, w3graphics, w3ctrls, w3components, w3forms, w3fonts, w3borders,
w3application, w3sprite3d, w3time;
type
TForm1=class(TW3form)
private
{ Private methods }
{$I 'Form1:intf'}
FSprites: Array of TW3Sprite;
FTimer: TW3Timer;
FSun: TW3Sprite... |
unit MainForm;
{Задан набор записей следующей структуры: название кинофильма, режиссёр, список актёров,
краткое содержание. По заданному названию фильма найти остальные сведения.}
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, UMovie, UHashT... |
unit soStepOutFilter;
interface
type
TStepOutFilter = class
private
RC1 : double;
Oldx1, Oldx2 : single;
Changex1, Changex2 : single;
WorkingChangex1, WorkingChangeX2 : double;
OffsetX1, OffsetX2 : double;
fSampleRate: integer;
fDecayTime: double;
procedure SetDecay... |
unit uUtlInputFields;
interface
uses
Vcl.StdCtrls, Vcl.Forms, Winapi.Windows, System.Classes, System.Generics.Collections,
System.SysUtils, uEntProducer, uEntGrain, uEntUser, uMdlGrain, uMdlProducer, uMdlStorage, uMdlUser, uEntStorage;
function iif(ACondition: Boolean; AValue1: Variant; AValue2: Variant): Varian... |
unit new_litedb_blob;
{$mode objfpc}{$H+}
{$define new_blob_code} { 26.04.2020 /bc refactored code }
interface
uses
Classes, SysUtils, db, sqldb, sqlite3conn,lists;
const
{$ifdef new_blob_code}
UnitVersion = '02.26.04.2020';
SLiteDbGUID = '{D62946BD-B561-43B3-983C-51A7EA8F757C}';
{ lasterror constants ... |
PROGRAM VectorADSTest;
USES
VectorADS, sysutils;
VAR
value: INTEGER;
PROCEDURE AssertEquals(expected: INTEGER; actual: INTEGER);
BEGIN
IF expected <> actual THEN
Writeln('Assert failed! Expected: (', IntToStr(expected), '), Actual: (', IntToStr(actual),')');
END;
BEGIN
Writeln('Starting test... |
{
https://github.com/davidberneda/Diverse-Collection-Items
}
unit Tee.Collection;
{
Enable design-time persistence of TCollection properties with
different TCollectionItem classes.
}
interface
uses
Classes;
type
TPersistCollection=record
public
class procedure Read(const ACollectio... |
unit Controllers.Users;
interface
uses
MVCFramework, MVCFramework.Commons, MVCFramework.Logger, Web.HTTPApp, Data.DBXJSON, System.SysUtils, System.Classes,
Controllers.MemoryWebSession, MVCFramework.Swagger.Commons;
type
[MVCPath('/api/users')]
[MVCSwagAuthentication(atJsonWebToken)]
TUsersController = cla... |
unit svu<%= appname %>;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, SvcMgr,
mxuConnectionServer;
type
Tsv<%= appname %> = class(TService)
procedure ServiceStart(Sender: TService; var Started: Boolean);
procedure ServiceBeforeInstall(Sender: TService);
procedure ServiceC... |
(**************************************************************
* *
* Este programa calcula la sumatoria de los N primeros *
* terminos *
* Autor: Jose Pena *
* Ulfima Fecha de edicion: 15/02/2013 *
* *
*********************************************************... |
unit unt_SortBitmap;
interface
uses
unt_const,
Windows;
type
TSortBitmap = class(TObject)
private
F_Width: Integer;
F_Height: Integer;
F_Handle: HBITMAP;
F_SortBy: TSortBy;
protected
procedure SetSortBy(Value: TSortBy);
public
constructor Create;
destructor Destroy; overrid... |
Unit uMagnifier;
Interface
Uses windows, classes, graphics, extctrls, utypes, uConstants;
Type
TMagnifier = Class
Private
MagRect : TRect;
FMagnifierRatio: integer;
FBackupBitmap : TBitmap;
FImage : TImage;
Public
Constructor Create(Image: TImage; MagnifierRa... |
unit uGooglePlacesDetails;
// *************************************************
// Generated By: JsonToDelphiClass - 0.65
// Project link: https://github.com/PKGeorgiev/Delphi-JsonToDelphiClass
// Generated On: 2016-11-11 12:04:06
// *************************************************
// Created By ... |
unit UList;
interface
uses
UData, Grids;
type
TPtr=^TNode;
TNode=record
Info:TInfo;
Next:TPtr;
end;
TList=class
private
FHead:TPtr;
public
Function FindNode(K:TKey; var Pred:TPtr):boolean;
Constructor Create;
D... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.3.4-11, FILE=CONF065, CLA... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.5.2-19, FILE=DEV143, ... |
unit uNumProc;
interface
uses utypes, uConstants, unlfit;
function Gaussians(X: Float; A: TVector; var dyda: TVector; na: Integer): Float;
function _Flat(X: Float; A: TVector; var dyda: TVector; na: Integer): Float;
function _Linear(X: Float; A: TVector; var dyda: TVector; na: Integer): Float;
function _Pol... |
{
MIT License
Copyright (c) 2017-2018 Marcos Douglas B. Santos
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, cop... |
unit parser;
{$ifdef FPC}
{$mode delphi}
{$endif}
interface
uses
Classes, SysUtils, Generics.Collections,
expression, statement, token;
type
// TO DO !
TParseError = class(Exception);
{ TParser }
{ TO DO implement break statement }
{ TO DO implement pow operator ^ }
TParser = class(TObject)
pri... |
unit ClientRequest;
interface
uses
ObjectsMappers;
type
/// <summary>Represents a textual request that arrives from the client.
/// This request does not include any attachments. </summary>
[MapperJSONNaming(JSONNameLowerCase)]
TClientRequest = class
private
FHtml: String;
FText: String;
FTo... |
unit glcube;
//openGL cube
{$mode objfpc}{$H+}
interface
{$include opts.inc} //<- defines CORE OpenGL >=3.3, else uses LEGACY OpenGL 2.1
uses
{$IFDEF COREGL}glcorearb, gl_core_utils, gl_core_matrix, {$ELSE}gl, glext, {$ENDIF}
Classes, SysUtils, Graphics, OpenGLContext, math, dialogs;
type
TGLCube = class
pr... |
unit Lucidity.Osc.FadeOutSampler;
interface
{$INCLUDE Defines.inc}
uses
Lucidity.Interfaces,
VamLib.MoreTypes, B2.Filter.CriticallyDampedLowpass,
Lucidity.SampleMap, soGateEnvelope,
uConstants, eeSampleFloat,
eeDsp,
eeCounter,
Math, SampleOscUtils;
type
TFadeOutSampler = class
pri... |
unit DelphiCode_Generator;
interface
uses
SysUtils, Classes, Forms, DBCode_Generator, ComCtrls, RzEdit, Mask, StrUtils, RzLabel,
RzCommon, RzButton, RzRadChk, RzDTP, Controls, RzDlgBtn, ActnList, Dialogs, RzPanel,
Grids, BaseGrid, AdvGrid, RzCmboBx, Graphics, Math, frxClass, RzPopups;
type
TDelphiC... |
unit uYtBatchCutter;
interface
uses
System.SysUtils,
Classes,
System.Generics.Collections,
JclStringLists,
uIPCUtils;
procedure Run;
type
TVideoPart = record
private
FInPoint: string;
FOutPoint: string;
procedure SetInPoint(const Value: string);
procedure SetOutPoint(const Value: stri... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.3-8, FILE=DEV051, CLASS... |
{$i AlwaysInclude.inc}
unit NLConsts;
{$T-} //##jpl: tijdelijk totdat we de code hebben opgeschoond
interface
implementation
uses
Consts, ResourceUtils;
resourcestring
SCantWriteResourceStreamError = 'Kan niet naar een alleen-lezen resource stream schrijven';
SDuplicateReference = 'WriteObjec... |
unit CTPasuser;
interface
uses
SysUtils,Classes,Windows;
const
WTS_CURRENT_SERVER_HANDLE: THANDLE = 0;
type
{$REGION 'WTS_INFO_CLASS'}
WTS_INFO_CLASS = (
WTSInitialProgram,
WTSApplicationName,
WTSWorkingDirectory,
WTSOEMId,
WTSSessionId,
WTSUserName,
WTSWinStationName,
... |
program GameMain;
uses SplashKit, sysUtils;
procedure Main();
begin
OpenWindow('Cave Escape', 432, 768);
repeat // The game loop...
ProcessEvents();
ClearScreen(ColorWhite);
RefreshScreen(60);
until WindowCloseRequested('Cave Escape');
end;
begin
Main();
end.
|
unit Classes.Conversao.ConverteTextoFactory;
interface
uses Classes.Conversao.ConverteTexto;
type
TTipoConversao = (tcInvertido, tcPrimeiraMaiuscula, tcOrdemAlfabetica);
TConversaoFactory = class
class function getConverteTexto(TipoConversao: TTipoConversao):TConverteTexto;
end;
implementation
uses Sys... |
{*********************************************************************}
{ TAdvFilenameEdit }
{ for Delphi & C++Builder }
{ }
{ written by ... |
unit Menu.StepSequenceMenu;
interface
uses
Classes,
VamGuiControlInterfaces,
Menu.CustomPopupMenu, eePlugin, Vcl.Menus;
type
TStepSequenceMenu = class(TCustomPopupMenu)
private
protected
SequenceIndex : integer;
procedure EventHandle_ResetSteps(Sender : TObject);
procedure Ev... |
uses System;
type I = interface
function First(a: Self; b: Integer);
function Second(a: Integer; b: Self);
function Both(a, b: Self);
end;
type C = class
end;
function I.First(a: C; b: Integer)
begin
WriteLn('first');
end;
function I.Second(a: Integer; b: C)
begin
WriteLn('second');
end;
functi... |
unit uRANECU;
// RANECU Random Engine - algorithm originally written in FORTRAN77
// as part of the MATHLIB HEP library.
interface
uses uConstants, urandom;
type
TRanECU = class(TBaseRandomGen)
const
ecuyer_a = 40014;
ecuyer_b = 53668;
ecuyer_c = 12211;
ecuyer_d = 40692;
ecuy... |
//############################################################################//
//Made by Artyom Litvinovich in 2003-2010
//MaxGold core Units handling functions
//############################################################################//
unit mgl_upgcalc;
interface
uses math,mgrecs,mgl_common;
//#################... |
unit soFilter.MoogLadder;
interface
uses
FilterCore.MoogLadder,
eeDsp,
eeFastCode;
type
TMoogLadder = class
private
fSampleRate: single;
fFreq: single;
fQ: single;
CoreA, CoreB : TMoogLadderFilterCore;
fInputGain: single;
procedure SetFreq(const Value: single);
procedure SetQ(c... |
unit Test.Model.Item;
interface
uses
System.SysUtils, Model.ModelBase, Utils.Funcoes, Exceptions, Model.Atributos, Model.Atributos.Tipos;
type
[Tabela('ITEMPEDIDO')]
TItemPedido = class(TModelBase)
private
FSEQ: INTEGER;
FIDPEDIDO: INTEGER;
FCODPRODUTO: string;
FDESCRICAO: string;
FUND: ... |
unit VamLib.PerformanceTuning;
interface
uses
SysUtils;
type
TPerformanceTimer = record
strict private
InitialTime : Int64;
fLastResult : single;
public
procedure Start;
function Stop:single;
function LastResult : single;
end;
function StartTimer:integer;
function StopTimer(StartTime... |
unit uMdlContract;
interface
uses
System.SysUtils, FireDAC.Comp.Client, Data.DB, uSrvDatabase, uEntUser, uEntContract,
System.Generics.Collections;
type
TContractModel = class
private
FDB: TSrvDatabase;
FQry: TFDQuery;
FDS: TDataSource;
FContract: TContract;
public
constructor Create;
... |
unit WatchTower.TestCollection;
interface
uses
WatchTower,
Classes;
type
PTestInfo = ^TTestInfo;
TTestInfo = record
TestClass : TWatchTowerTestClass;
end;
PTestCollection = ^TTestCollection;
TTestCollection = class
private
function GetCount: integer;
protected
fTestList : TList;
... |
{
MIT License
Copyright (c) 2017 Jamie Geddes
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, copy, modify, merge, publish, di... |
unit Lucidity.GuiStandard;
interface
uses
Classes,
Contnrs,
VamLib.ZeroObject,
eePlugin,
LucidityGui.MenuButtonHandler,
LucidityGui.KnobHandler,
LucidityGUI.XYPadHandler;
type
TGuiStandard = class(TZeroObject)
private
fKnobHandler: TKnobHandler;
fMenuHandler: TMenuButtonHandler;
fXyPadH... |
unit Menu.XYPadContextMenu;
interface
uses
Vcl.Menus,
Menu.CustomPopupMenu,
VamLib.UniqueID,
Contnrs,
Controls,
Classes,
eePlugin,
VamLib.ZeroObject,
eeMidiAutomationV2;
type
TXYPadContextMenu = class(TCustomPopupMenu)
private
fTargetXYPadIndex: integer;
fPlugin: TeePlugin;
protected
... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.3.6-5, FILE=DEV140, C... |
{<pre>}
program p;
{
Wire Position Sensor Calibration Fitting Program
Copyright (C) 2009 Kevan Hashemi, Open Source Instruments 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 vers... |
unit LoadColumns;
interface
uses
LoadColumn, System.Classes;
type TLoadColumns = class
protected
procedure SetUpLoadColumns; virtual; abstract;
public
constructor Create;
procedure GetHeader(var Header: TStrings);
function GetLoadColumn(HeaderName: string): TLoadColumn;
end;
implementation
uses
... |
unit VamSampleDisplayBackBuffer;
interface
uses
System.Classes, System.Types, Graphics,
RedFox, RedFoxColor,
RedFoxImageBuffer,
VamSamplePeakBuffer;
type
TSampleImageBuffer = class;
ISampleImageBuffer = interface
['{16E34EBA-9613-49CB-B324-BF910A37FFC3}']
function GetObject:TSampleImageBuffer;
... |
// TODO:HIGH. this unit should be deprecated and removed from all projects.
unit VamAudio.R8BrainWrapper.v2;
interface
uses
VamLib.MoreTypes, r8bsrc, r8bsrcEx;
type
// MaxInLen = Maximum length of input buffer.
// ReqTransBand = Required Transition Band. Units in percentage (%).
// Range:
// - 0.5-... |
unit MissileCommand;
interface
uses
w3system, w3touch, w3ctrls, w3components, w3application, w3game, w3gameapp,
w3graphics, GameLogic, GameMenu, GameScore, GameScoreDialog;
type
TApplication = class(TW3CustomGameApplication)
private
{ Private methods }
FGameLogic : TGameLogic;
F... |
unit LUX.Brep.Face.TriFlip.D3;
interface //#################################################################### ■
uses System.RegularExpressions,
LUX, LUX.D3, LUX.Geometry.D3, LUX.Brep.Face.TriFlip;
type //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【型】
TTriPoin3D = class;
... |
{Unit for high resolution timing (1 microsecond resolution)
Original TPTimer unit was programmed by TurboPower Software and released to the public domain via the SWAG Pascal archive.
Modified by Jan Knipperts for the VGA Benchmark program}
{$S-,R-,I-,V-,B-}
Unit TPTimer;
Interface
Const
TimerResolution... |
//******************************************************************************
// CubicExplorer
// Version: 0.90
//
// The Original Code is fC... |
unit eeWinEx;
interface
uses
SysUtils, Windows, ShellApi, ShlObj, ActiveX;
//TODO:MED these functions could be moved to VamLib.WinUtils
function WindowsMessageIdToStr(MsgId:Cardinal):string;
// GetLinkTarget() finds the target of Windows links/shortcuts.
function GetLinkTarget(const LinkFileName : s... |
unit uHumanFace;
interface
uses
System.Classes, Generics.Collections, IdHTTP, SysUtils, uGlobal, uCommon,
DateUtils, ActiveX, uEntity, Windows, QJson;
type
THumanFace = class
private
public
class function GetHumanFaceCompare(AParams: TStrings;
var AMsg: String): String;
class function GetAlg... |
unit UCL.SystemSettings;
interface
uses
Registry,
Windows,
Graphics;
function GetAccentColor: TColor;
function IsColorOnBorderEnabled: Boolean;
function IsColorOnSurfaceEnabled: Boolean;
function IsAppsUseDarkTheme: Boolean;
function IsSystemUseDarkTheme: Boolean;
function IsTransparencyEnabled: ... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.9.3-1, FILE=CONF198, CLASS=... |
program loader;
//http://index-of.es/Windows/dbgk-1.pdf
//https://processhacker.sourceforge.io/doc/ntdbg_8h.html
uses windows,sysutils,jwapsapi;
function DebugActiveProcessStop(pid: dword):boolean; stdcall;external 'kernel32.dll';
//function DebugBreakProcess (processhandle:THandle):boolean; stdcall;external 'kernel... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.5.3-2, FILE=CONF123, CLAS... |
unit uExport;
interface
uses
RTTI, SysUtils, generics.collections, Classes, System.IOUtils, SimpleRTTIHelper,
SimpleAttributes;
type
TExport = class
public
class procedure TextReport<T: class, constructor>(Lista: TObjectList<T>);
end;
implementation
uses
System.TypInfo;
{ TExport }
class procedur... |
{**************************************************************************************************}
{ 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 UPerson;
interface
type
TPerson = class
PersonnelNumber: Integer;
FIO : string[20];
salary : Integer;
constructor Create(); overload;
constructor Create(PersonnelNumber: Integer; FIO: string; salary : Integer); overload;
end;
implementation
constructor TPerson.Create();
begin
Sel... |
unit uHarmonicWaveTableGen;
interface
uses
VamLib.MoreTypes;
type
THarmonic = record
Magnitude : single; //Range 0..1
Phase : single; //range 0..1
end;
TArrayOfHarmonic = array of THarmonic;
THarmonicMap = class
private
fCount: integer;
fHarmonics: TArrayOfHarmonic... |
{******************************************************************
* 项目名称:
* 单元名称:成长之路
* 单元作者:
* 摘 要:
* 备 注:
*******************************************************************}
program Mir2;
{$I common.pas}
//本任务的任务编号,每个任务对应不同的任务编号,这个不可以重复
const CurrentTaskID = 1035;
//TASK_TYPE_MAIN 任务类型为主线
//TASK_... |
unit Menu.FileTreeMenu;
interface
{$INCLUDE Defines.inc}
{$WARN SYMBOL_PLATFORM OFF}
uses
Classes,
eeWinEx,
VamTreeView, eeFileBrowserAddon,
eePlugin, Vcl.Menus;
type
// MainContextMenu shows when the tree view background is context clicked.
TFileTreeViewMainContextMenu = class
priva... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.2.2-12, FILE=ERR66T, ... |
unit SDModifiedTokens;
interface
uses
// JwaWindows,
Windows;
function SDAddSecureViewerProcessGroup: Boolean;
function SDRemoveSecureViewerProcessGroup: Boolean;
function SDGetSecureViewerProcessGroupName: string;
function SDGetSecureViewerProcessGroupSID: PSID;
function SDCreateSecureDesktop(const... |
unit UCL.CaptionBar;
interface
uses
SysUtils,
Classes,
Windows,
Messages,
Controls,
Forms,
Graphics,
Menus,
UCL.Classes,
UCL.Colors,
UCL.Utils,
UCL.MenuAnyWhere;
type
TUCaptionBar = class(TUCustomPanel)
private var
BackColor, TextColor: TColor;
FOldWidth: Int... |
unit U_FormPrincipal;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtDlgs, FileCtrl,
ShellApi,
TLHelp32, PsAPI, Registry, Vcl.ExtCtrls;
type
TFormPrincipal = class(TForm)
Btn_Cr... |
unit UnitMakeAMove;
interface
uses
System.SysUtils, UnitCreatingFigures, UnitSetupBoard, Vcl.ExtCtrls, Types,
Winapi.Windows, Vcl.Forms;
procedure MakeAMove(Figure: TFigure;
NextPosOnBoardX, NextPosOnBoardY: Byte);
procedure MoveFigureToCell(var Board: TBoard; Figure: TFigure;
PosX, PosY: Byte; FigureIsR... |
unit creatures;
{$INCLUDE defines.inc}
interface
uses Enums, Entities;
Type
TCreatureStats = record
W, H : uInt;
MaxHP, Speed : Double;
Collect: sInt;
Build : Boolean;
Cost : Array[TResourceType] of Double
end;
Const
CreatureStats : Array[TCreatureType] of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.