text stringlengths 14 6.51M |
|---|
unit uMain;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.TabControl,
FMX.Objects, FMX.Controls.Presentation, FMX.StdCtrls, System.ImageList,
FMX.ImgList, FMX.Layouts;
type
TForm2 = class(TFo... |
unit uGlobal;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Controls, ExtCtrls, Graphics, Forms;
const
LIVE_DATA = './data/live/';
IN_DATA = './data/in/';
OUT_DATA = './data/out/';
type
TImageArray = array of TImage;
TWordList = array of String;
function HexToColor(WebColor: string): TColor;
p... |
unit UnitHelp;
interface
uses
Windows,
Messages,
SysUtils,
Classes,
Graphics,
Controls,
Forms,
Dialogs,
StdCtrls,
DmMemo,
ExtCtrls,
Menus,
clipbrd,
Dmitry.Controls.ImButton,
Dmitry.Graphics.Types,
uMemory,
uThemesUtils,
uTranslate,
Types;
type
TCa... |
//=============================================================================
// sgAudio.pas
//=============================================================================
//
// The Audio unit is responsible for managing SDL audio for music and sound
// effects. This includes initialisation, loading, freeing, playin... |
unit ThJavaScript;
interface
uses
SysUtils, Classes, ThAttributeList, ThComponent;
type
TThJavaScript = class(TThComponent)
private
FScript: TStringList;
protected
function GetScript: TStrings;
procedure SetScript(const Value: TStrings);
public
constructor Create(AOwner: TComponent); over... |
unit Chapter08._05_Solution1;
{$mode objfpc}{$H+}
interface
uses
Classes,
SysUtils,
DeepStar.Utils,
DeepStar.DSA.Linear.ArrayList;
/// 77. Combinations
/// https://leetcode.com/problems/combinations/description/
/// 时间复杂度: O(n^k)
/// 空间复杂度: O(k)
type
TList_TList_int = specialize TArrayList<TList_int>;
... |
unit ZFConst;
{$I ZFVer.Inc}
interface
const
InternalCurrentVersion = 6.50;
// current version of the engine (for visual property)
var
internalCurrentVersionText: string = '';
const
DefaultSearchAttr = 63 + $2000 + $800 + $80;
ZF_MAX_IVECTOR_SIZE = 16;
ZF_MAX_SAVED_IVECTOR_SIZE = 16;
resourcestring
S... |
unit OTFEE4M_U;
// Description: Delphi E4M Component
// By Sarah Dean
// Email: sdean12@sdean12.org
// WWW: http://www.SDean12.org/
//
// -----------------------------------------------------------------------------
//
// TRUE if integer<>0
// FALSE if integer=0
interface
uses
Classe... |
unit MainForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs;
type
TTextItem = class(TCustomControl)
private
procedure WMSetFocus(var Msg: TWMSetFocus); message WM_SETFOCUS;
procedure WMImeChar(var... |
//
// VXScene Component Library, based on GLScene http://glscene.sourceforge.net
//
{
Editor for a vector.
}
unit FVectorEditor;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX... |
{-------------------------------------------------------------------------------
Unit Name: frmGeosimGrid
Author: HochwimmerA
Purpose: Used to enter data for a geothermal simulation grid (e.g. TOUGH)
History:
-------------------------------------------------------------------------------}
unit frmGeosimG... |
unit Chapter06._01_Solution1;
{$mode objfpc}{$H+}
interface
uses
Classes,
SysUtils,
DeepStar.Utils,
DeepStar.UString;
// 20. Valid Parentheses
// https://leetcode.com/problems/valid-parentheses/description/
// 时间复杂度: O(n)
// 空间复杂度: O(n)
type
TSolution = class(TObject)
public
function isValid(s: USt... |
{*******************************************************************************
Title: T2Ti ERP
Description: VO relacionado à tabela [CONTABIL_PARAMETRO]
The MIT License ... |
{
Clever Internet Suite Version 6.2
Copyright (C) 1999 - 2006 Clever Components
www.CleverComponents.com
}
unit clHttpUtils;
interface
{$I clVer.inc}
uses
Classes;
const
cDefaultHttpPort = 80;
cDefaultHttpProxyPort = 8080;
type
TclAuthenticationType = (atBasic, atAutoDetect);
TclHttpVersion = (... |
unit uGeneral;
interface
uses
JsonDataObjects, Ils.Json.Names, Ils.Json.Utils, Geo.Hash.Search, System.SysUtils,
System.Generics.Collections, System.Classes, Ils.Logger, UFiles, System.IniFiles,
AStar64.Files, AStar64.Areas, AStar64.Extra, Geo.Pos, Ils.Redis.Conf,
Redis.Client, Geo.Hash, AStar64.FileStructs, ... |
program ActivateSidekick;
function Sidekick: Boolean;
const
SKactOffset = $012D;
SKverOffset = $012A;
type
RegPack = record
case Integer of
1: (AX,BX,CX,DX,BP,SI,DI,DS,ES,Flags: Integer);
2: (AL,AH,BL,BH,CL,CH,DL,DH : Byte);
en... |
(*
Compute the arithmetic mean of the difference between two matrices using
untyped parameters. Test it on two matrices with random numbers.
XXX: This solution doesn't use untyped parameters because I couldn't make it
work with FPC.
*)
{$ASSERTIONS ON}
type Matrix = array of array of Real;
function matRows(mat: Ma... |
unit FPWinTime;
interface
uses
Global, ArContain;
function SortingTime(Sort: TProc): longint;
implementation
uses
Windows;
{Для точного измерения времени под Windows в Free PASCAL
используется функция QueryPerformanceCounter}
function SortTime(Sort: TProc): longint;
var
start, finish, res: int64;
begin
... |
unit InflatablesList_Item_IO_00000008;
{$INCLUDE '.\InflatablesList_defs.inc'}
interface
uses
Classes, Graphics,
AuxTypes,
InflatablesList_Item_IO;
type
TILItem_IO_00000008 = class(TILItem_IO)
protected
fFNSaveToStreamPlain: procedure(Stream: TStream) of object;
fFNLoadFromStreamPlain: procedur... |
unit DiffuseDebugTextureGeneratorCommand;
interface
uses ControllerDataTypes, ActorActionCommandBase, Actor;
{$INCLUDE source/Global_Conditionals.inc}
type
TDiffuseDebugTextureGeneratorCommand = class (TActorActionCommandBase)
const
C_DEFAULT_SIZE = 1024;
C_DEFAULT_MATERIAL = ... |
{
publish with BSD Licence.
Copyright (c) Terry Lao
}
unit LPCdecode;
{$MODE Delphi}
interface
uses
iLBC_define,
helpfun,
lsf,
constants,C2Delphi_header;
{---------------------------------------------------------------*
* interpolation of lsf coefficients for the decoder
*-----------------------------... |
unit UCnaeVO;
interface
uses Atributos, Classes, Constantes, Generics.Collections, SysUtils, UGenericVO;
type
[TEntity]
[TTable('Cnae')]
TCnaeVO = class(TGenericVO)
private
FidCnae: Integer;
FcodigoCnae : String;
Fdescricao: String;
public
[TId('idCnae')]
[TGeneratedValue(sAuto)]
... |
unit ufrmCreateSO;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ufrmMaster, StdCtrls, ExtCtrls, ufraFooter5Button, Mask, Math,
System.Actions, cxStyles, cxClasses, cxGraphics,
cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxCustomData, cxFilter,
cxD... |
unit htPersistBase;
interface
uses
Classes;
type
ThtPersistBase = class(TPersistent)
private
FOnChange: TNotifyEvent;
protected
procedure Change; virtual;
public
//:$ OnChange event is fired when a style property is changed.
property OnChange: TNotifyEvent read FOnChange write FOnChange;
... |
unit uJSONUtils;
interface
uses
System.JSON, System.JSON.Builders, System.JSON.Types, System.JSON.Writers,
uModApp, System.TypInfo, System.StrUtils, System.SysUtils, System.Rtti,
Data.DB;
type
TJSONUtils = class(TObject)
protected
public
class function JSONToModel(AJSON: TJSONObject; AModAppClass: TM... |
unit ExtGUI.ListBox.Books;
interface
uses
System.Classes, Vcl.StdCtrls, Vcl.Controls, System.Types, Vcl.Graphics,
Winapi.Windows,
System.JSON,
System.Generics.Collections,
DataAccess.Books,
Model.Book,
Model.BookCollection;
type
{ TODO 4: Too many responsibilities. Separate GUI from structures }
... |
unit Xplat.Utils;
interface
uses
System.SysUtils, AnonThread, System.Generics.Collections, System.Classes,
Xplat.Services;
type
EAsyncException = class(Exception);
TAsyncProgress<T> = class
public
class procedure Execute(AFunc: TFunc<T>; AOnFinished: TProc<T>;
AOnError: TProc<Excep... |
{: This form showcases runtime object creation and framerate independant motion.<p>
We start with an almost empty scene. The dummy cube is used as a convenient
way to orient the camera (using its TargetObject property). Planes are
programmatically added to the scene in FormCreate and spinned in the
GLCade... |
unit UMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UBookList, UVisitorList, UBorrowList, Menus, ActnList, ComCtrls,
ExtCtrls, StdCtrls, Buttons;
resourcestring
sCODE = 'Код';
sTITLE = 'Название';
sAUTHOR = 'Автор';
sPUBLISH_YEAR = 'Год издания... |
{*******************************************************************************
* uTableSignCheck *
* *
* Проверка табеля перед подписью (все ли приказы переданы в зарплату) ... |
unit untRequest;
interface
uses
System.Classes;
type
TRequest = class
public
function PostSync(pJson: TStringStream; pUrl: string): string;
end;
implementation
uses
IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP,
IdIOHandler, IdIOHandlerSocket, IdIOHandlerStack, IdSSL, IdSSLOpen... |
unit NewFrontiers.Validation.Vcl;
interface
uses NewFrontiers.Validation, Vcl.StdCtrls, Generics.Collections, Vcl.Controls,
NewFrontiers.GUI.PropertyChanged;
type
/// <summary>
/// Der ValidationManager kann verwendet werden, um mehrere Validator
/// gleichzeitig zu testen und ein Gesamtergebn... |
unit StrTbl;
interface
uses
SysUtils, StrVec, StrIntDictCS;
type
TStrId = type Integer;
TStrIdArray = array of TStrId;
TStringTable = class(TObject)
private
FItems: IStrVector;
FIndex: IStrIntDict;
function GetItem(Id: TStrId): string;
function GetCount: Integer;
procedure AddDefaults;... |
unit fos_locking;
{
(§LIC)
(c) Autor,Copyright Dipl.Ing.- Helmut Hartl
FirmOS Business Solutions GmbH
New Style BSD Licence (OSI)
Copyright (c) 2001-2009, FirmOS Business Solutions GmbH
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are per... |
unit Core.Articles.Gen;
interface
uses
System.SysUtils, System.Classes, Data.API.Google;
type
IArticle = interface
['{C81436AF-BC56-45BC-910F-ECCDE35B32E6}']
function GetCaption: String;
function GetText: String;
function GetCategories(const AIndex: Integer): String;
function GetCategoryCount... |
unit uFrmImput;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, SuperEdit, SuperEditCurrency;
type
TFrmImput = class(TForm)
Selecionar: TButton;
edtInput: TEdit;
lbInput: TLabel;
btnAbort: TButton;
edtCurrency: TSuperEditCurrency;... |
{*******************************************************}
{ }
{ Borland Delphi Test Server }
{ }
{ Copyright (c) 2001 Borland Software Corporation }
{ ... |
unit CCriptografiaCutre;
interface
(*******
CLASE: TCriptografiaCutre
Encargada de, dada una cadena, hacer un conjunto de operaciones a nivel de byte y devolver
una cadena de código, que necesita un contracódigo para terminar la autenticación. Si cabe,
el contracódigo es más chorra ... |
//
// Generated by JavaToPas v1.5 20171018 - 171148
////////////////////////////////////////////////////////////////////////////////
unit java.io.WriteAbortedException;
interface
uses
AndroidAPI.JNIBridge,
Androidapi.JNI.JavaTypes;
type
JWriteAbortedException = interface;
JWriteAbortedExceptionClass = inter... |
unit SlistView1;
interface
uses classes,ovcViewR,ovcBordr,
util1;
{ TStringListViewer se comporte comme un mémo en mode ReadOnly.
Son intérêt est d'affecter des couleurs pour chaque ligne de texte.
}
type
TStringListViewer=
class(TovcBaseViewer)
private
list:TstringList;
Colors:Tlist;
... |
EXTERN
{=================================================================}
FUNCTION arctan (x : real) : real;
CONST
half_pi = 1.5707963267948;
sixth_pi = 0.52359877559828;
twelfth_pi = 0.26179938779914;
sqrt3 = 1.7320508075689;
VAR
flag2, flag3, i : integer;
result : real;
sign : char;
{==========... |
unit FHIRValueSetChecker;
interface
uses
SysUtils, Classes,
AdvObjects, AdvStringObjectMatches,
FHIRTypes, FHIRComponents, FHIRResources, FHIRUtilities,
TerminologyServices, TerminologyServerStore;
Type
TValueSetChecker = class (TAdvObject)
private
FStore : TTerminologyServerStore;
FOthers : TAdv... |
{
*****************************************************************************
* *
* See the file COPYING.modifiedLGPL, included in this distribution, *
* for details about the copyright. *
*... |
program test;
function factorial(a: integer): integer;
begin
if a < 0 then
begin
write('Wrong input');
Result := -1;
end
else if a = 0 then
Result := 1
else
Result := a * factorial(a - 1);
end;
begin
write(factorial(-1));
write(factorial(8));
end. |
unit LrComponentIterator;
interface
uses
Classes, Controls,
LrIterator;
type
TLrComponentIterator = class(TLrIterator)
private
FContainer: TComponent;
protected
function GetComponent: TComponent; virtual;
procedure SetContainer(const Value: TComponent); virtual;
public
constructor Creat... |
unit AutoUpdater;
interface
uses Windows, Internet, Classes, xmldom, XMLIntf, msxmldom, XMLDoc, StdCtrls, Dialogs,
SysUtils, ActiveX, ExtCtrls, Forms;
type
TAutoUpdater = class(TThread)
private
FMmReport: TMemo;
FLbFilename: TLabel;
FForceRepair: Boolean;
... |
// ***************************************************************************//
// MODEL ACCESS
// Jeziel Ribeiro Lago - 24/03/2017
// ***************************************************************************//
unit Model.Access;
interface
uses System.Classes, System.Generics.Collections, ZDataSet, Model.Mapper,
... |
unit Menu;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Imaging.pngimage,
Vcl.ExtCtrls, Registry, ShellAPI, Vcl.Buttons;
type
TForm1 = class(TForm)
Theme: TComboBox;
Change: TBut... |
unit Invoice.Controller.DataModule;
interface
uses
System.SysUtils, System.Classes, Data.DB, System.ImageList,
Vcl.ImgList, Vcl.Controls, Vcl.AppEvnts, Invoice.Controller.Interfaces;
type
TDataModuleLocal = class(TDataModule)
ApplicationEvents: TApplicationEvents;
ImageList32_D: TI... |
{******************************************************************************
lazbbscrollcontrols : Label and Button with scrolling caption
Added to lazbbComponents palette
bb - sdtp - january 2023
TbbScrollButton : Speedbutton with scrolling caption
TbbScrollLabel ;: Label with scrolling caption
Scrolli... |
unit uMain;
{*******************************************************************************
* *
* Название модуля : *
* ... |
unit rtti_serializer_uManager;
interface
uses
SysUtils, rtti_broker_iBroker, rtti_broker_uData,
fgl, rtti_serializer_uFactory, rtti_serializer_uSerialObject;
//type
{ TSerialManager }
//TSerialManager = class(TInterfacedObject, ISerialManager)
//private
// const
// cCounterID = 0;
... |
unit Main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Menus, Dialogs, ExtDlgs,
LrProject, ImgList, PngImageList;
type
TMainForm = class(TForm)
TreePopup: TPopupMenu;
NewFolder1: TMenuItem;
AddItem1: TMenuItem;
OpenPictureDialog: TOpenPictureDia... |
//====================================================================================================================//
//======================================= THE COMMON PASCAL AST PARSER CLASS =========================================//
//=========================================================================... |
(*
╔═══════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ This is a custom wrapper for DOM manipulation. This library utilizes most edge and high-performance ║
║ methods for DOM manipulation. You don't need to learn something new, its usage is very simple bec... |
unit UFourier;
(**************************************************************************
************************* UFourier ***************************************
* Purpose: Implements Fast Fourier Transform and InverseFastFourierTrans *
* ... |
namespace com.example.android.jetboy;
{*
* Copyright (C) 2007 The Android Open Source Project
*
* 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/... |
unit uWorkerThread;
interface
uses
Classes,
SysUtils,
Windows,
uHelpers,
IdGlobal,
IdUDPClient,
IdException,
Variants,
ActiveX,
ComObj,
StrUtils,
ThreadUtilities;
type
TWorkerThread = class(TObject) //class(TThread)
strict private
FFormHandle: THandle;
FThreadPool: TThreadPool;
... |
unit UPais;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, UtelaCadastro, Vcl.ComCtrls,
Vcl.StdCtrls, Vcl.Mask, Vcl.Buttons, Vcl.ExtCtrls, Vcl.Grids, Vcl.DBGrids,
UPaisVo, UController, Generics.Collections... |
unit DDMIFinder;
interface
uses
Classes, stdctrls, sysutils;
type
tDDMI = record
nr: integer;
depart_id: variant;
dem_id: variant;
shift_id: variant;
end;
// pointer to structure
pDDMI = ^tDDMI;
TDDMIFinder = class(TObject)
rowList: array of TList;
fRowCount: i... |
unit uBitmap;
interface
uses
system.classes, system.types, vcl.imaging.jpeg, vcl.imaging.pngimage,
vcl.graphics, idhttp, system.sysutils;
type
TBmpHlp = class helper for TBitmap
public
procedure loadImgFromUrl(url:string);
end;
implementation
{ TBmpHlp }
procedure TBmpHlp.loadImgFrom... |
unit AnidbConsts;
interface
//File states
const
STATE_UNKNOWN = 0;
STATE_HDD = 1;
STATE_CD = 2;
STATE_DELETED = 3;
const
// POSITIVE 2XX
LOGIN_ACCEPTED = 200; //a
LOGIN_ACCEPTED_NEW_VER = 201; //a
LOGGED_OUT = 203; //a
RESOURCE = ... |
{*******************************************************}
{ }
{ 软件名称 W.MIS CLIENT MODEL }
{ 版权所有 (C) 2003, 2004 Esquel.IT }
{ 单元名称 frmBase.pas }
{ 创建日期 2004-8-3 9:36:30 ... |
program DarwinDynlibTestExecutable;
{$APPTYPE CONSOLE}
{$mode objfpc}{$H+}
uses
DynLibs,
{$IFDEF UNIX} cthreads, {$ENDIF}
Classes,
SysUtils,
CustApp;
type
{ TMyApplication }
TMyApplication = class(TCustomApplication)
private
procedure Test(AFilename, AFunctionName: string);
protect... |
unit uRepositorySystemPostgreSQL;
interface
uses
Dialogs, uDM_RepositoryPostgreSQL, uiRepoSystem, uCustomers, uUsers, uProducts,
System.SysUtils, System.Classes, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf,
FireDAC.DApt.Intf, FireDAC.Stan.Asy... |
{*******************************************************************************
Title: T2TiPDV
Description: Lista as NFC-e.
The MIT License
Copyright: Copyright (C) 2015 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "So... |
unit Rows.Title.Config;
interface
uses
Interfaces, Injection;
Type
TModelHTMLRowsTitleConfig = class(TInterfacedObject,
IModelRowsTitleConfig)
private
FParent : iModelHTMLRowsTitle;
FH1 : String;
FH2 : String;
FH3 : String;
FH4 : String;
FH5 : String;
public
constructor Create... |
(*
Category: SWAG Title: ANYTHING NOT OTHERWISE CLASSIFIED
Original name: 0021.PAS
Description: A source code mangler
Author: SWAG SUPPORT TEAM
Date: 07-16-93 06:11
*)
{
Here is a VERY simple source-code mangler that I just made. It simply:
1) Removes whitespace,
2) Removes comments (but not Compiler-direc... |
//
// VXScene Component Library, based on GLScene http://glscene.sourceforge.net
//
{
Components and functions that abstract file I/O access for an application.
Allows re-routing file reads to reads from a single archive file f.i.
}
unit VXS.ApplicationFileIO;
interface
{$I VXScene.inc}
uses
... |
unit ibSHTool;
interface
uses
SysUtils, Classes,
SHDesignIntf, SHOptionsIntf,
ibSHDesignIntf, ibSHConsts, ibSHComponent;
type
TibBTTool = class(TibBTComponent, IibSHTool)
private
protected
FBTCLServerIntf: IibSHServer;
FBTCLDatabaseIntf: IibSHDatabase;
function QueryInterface(c... |
//
// VXScene Component Library, based on GLScene http://glscene.sourceforge.net
//
{
Time based events mannager using the Cadencer
can be useful to make animations
}
unit VXS.TimeEventsMgr;
interface
uses
System.Classes,
System.SysUtils,
VXS.Cadencer,
VXS.BaseClasses;
type
TV... |
unit Dmitry.Graphics.BitmapCache;
interface
uses
Generics.Collections,
System.Classes,
System.SysUtils,
Vcl.Graphics,
Dmitry.Memory;
type
TGraphicCachedObject = class(TObject)
protected
procedure SaveToCache; virtual; abstract;
procedure LoadFromCache; virtual; abstract;
end;
... |
unit LA.LinearSystem;
interface
uses
System.SysUtils,
LA.Matrix,
LA.Vector,
LA.ArrayList,
LA.Globals;
type
TLinearSystem = class(TObject)
type
TVectorArr = TArray<TVector>;
TList = TArrayList<integer>;
private
__row, __col: integer;
procedure __forward;
procedure __backward;
... |
unit UMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, System.Generics.Collections,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Control1, Vcl.ExtCtrls,
UList, UListItem, UnitNewItem, Math;
type
TForm1 = class(TForm)
Panel1: TP... |
function ArredontaFloat(x : Real): Real;
{Arredonda um número float para convertê-lo em String}
Begin
if x > 0 Then
begin
if Frac(x) > 0.5 Then
begin
x := x + 1 - Frac(x);
end
else
begin
x := x - Frac(x);
end;
end
else
begin
x := x - Frac... |
unit API_DBases;
interface
uses
System.Classes
,FireDAC.Stan.Def
,FireDAC.Stan.Async
,FireDAC.Phys.MySQL
,FireDAC.Comp.Client
,FireDAC.DApt
,FireDAC.VCLUI.Wait
,API_Files;
type
TDBEngine = class abstract
private
FDConnection: TFDConnection;
FConnectParams: TStringList;
procedure SetC... |
unit TestThCanvasZoom;
{
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, BaseTestUnit,
System.Ty... |
program HowToDetectShapeCollision;
uses
SwinGame, sgTypes;
procedure BouncingCircle(var cPoint : Point2D; c : Circle; l : LinesArray);
var
random : Integer;
begin
random := Rnd(8);
if CircleLinesCollision(c, l) = false then
begin
case random of
0: begin // Top
cPoin... |
unit uAddModifAdr3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uAddModifForm, uInvisControl, uSpravControl, uFormControl,
StdCtrls, Buttons, uFControl, uLabeledFControl, uCharControl, DB,
FIBDataSet, pFIBDataSet, uAdr_DataModule;
type
TAddModifAdrForm... |
unit Memory_Editor;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics,
Dialogs, ComCtrls, StdCtrls, Grids, MaskEdit, Types;
type
{ TMemoryEditor }
TMemoryEditor = class(TForm)
editMemoryCell: TEdit;
gridSystemMemory: TDrawGrid;
status... |
{ 6.11.2002 10:53:07 (GMT+1:00) > [shmia on SHMIA01] checked in }
{---------------------------------------------------}
{ Copyright (c)2000 by Przemyslaw Jankowski }
{ e-mail: pjank@pjank.pl }
{---------------------------------------------------}
{ ... |
(*
Category: SWAG Title: BITWISE TRANSLATIONS ROUTINES
Original name: 0001.PAS
Description: BITS1.PAS
Author: SWAG SUPPORT TEAM
Date: 05-28-93 13:53
*)
{
Sean Palmer
> What if I want to just access a bit? Say I have a Byte, to store
> Various access levels (if it does/doesn't have this, that, or the
> ot... |
unit ConfigurationUnit;
interface
Uses
SysUtils,Classes,Windows;
Type
TStringArray = Array Of String;
Type
TConfiguration = Class
RootPath : String;
QuarantinePathes : TStringArray;
DeniedExt : TStringArray;
Procedure ImportSetting(_Setting:String);
Function ExportSetting() : String;
... |
unit ibSHPSQLDebugger;
interface
uses
SysUtils, Classes, StrUtils,
SHDesignIntf, SHEvents, SHOptionsIntf,
ibSHDesignIntf, ibSHDriverIntf, ibSHComponent, ibSHTool, ibSHConsts,
ibSHDebuggerIntf;
type
TibSHPSQLDebugger = class(TibBTTool, IibSHPSQLDebugger, IibSHDDLInfo, IibSHBranch, IfbSHBranch)
... |
unit ideSHMegaEditor;
interface
uses
Windows, Messages, SysUtils, Classes, Controls, Graphics, ComCtrls, CommCtrl,
ExtCtrls, Types, Menus, Contnrs, Dialogs,
SHDesignIntf, SHEvents, ideSHDesignIntf;
type
TideBTMegaEditor = class(TComponent, IideBTMegaEditor)
private
FActive: Boolean;
FM... |
{
SuperMaximo GameLibrary : Shader class unit
by Max Foster
License : http://creativecommons.org/licenses/by/3.0/
}
unit ShaderClass;
{$mode objfpc}{$H+}
interface
uses dglOpenGL;
const
//Shader attribute constants
VERTEX_ATTRIBUTE = 0;
NORMAL_ATTRIBUTE = 1;
COLOR0_ATTRIBUTE = 2;
COLOR1_ATTRIBUTE = 3;
C... |
unit SDUEndianIntegers;
interface
uses
Windows; // Required for DWORD;
type
// 32 bit big endian numbers
TSDUBigEndian32 = array [0..(4-1)] of byte;
// 32 bit big endian numbers
TSDULittleEndian32 = array [0..(4-1)] of byte;
function SDUBigEndian32ToDWORD(number: TSDUBigEndian32): DWORD;
... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls, Vcl.Grids, UR_K_method;
type
TForm1 = class(TForm)
Label1: TLabel;
Panel1: TPanel;
Label2: TLabel;
Label3... |
unit uMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, System.Sensors,
System.Sensors.Components, Vcl.ExtCtrls;
type
TForm5 = class(TForm)
GroupBox1: TGroupBox;
GroupBo... |
unit uDMImportPet;
interface
uses
SysUtils, Classes, variants, ADODB, uPetClasses, uContentClasses,
uObjectServices;
type
TDMImportPet = class(TDataModule)
procedure DataModuleCreate(Sender: TObject);
procedure DataModuleDestroy(Sender: TObject);
private
FSQLConnection: TADOConnection;
FLog: ... |
{ *********************************************************************** }
{ }
{ GUI Hangman }
{ Version 1.0 - First release of program }
{ Last Revi... |
unit uDBManager;
interface
{$WARN SYMBOL_PLATFORM OFF}
uses
Generics.Defaults,
Generics.Collections,
Winapi.Windows,
Winapi.CommCtrl,
System.Classes,
System.SyncObjs,
System.SysUtils,
Data.DB,
Vcl.Forms,
Vcl.Controls,
Vcl.ImgList,
Vcl.Imaging.Jpeg,
UnitDBDeclare,
Uni... |
{ ***************************************************************************
Copyright (c) 2016-2019 Kike Pérez
Unit : Quick.Logger.ExceptionHook
Description : Log raised Exceptions
Author : Kike Pérez
Version : 1.20
Created : 12/10/2017
Modified : 28/03/2019
This file is part... |
unit Sort.StringList;
interface
uses
Classes;
type
TStringListSort = record
private
class var
FCaseSensitive: Boolean;
FAsc: Boolean;
class function CompareStrings(List: TStringList; Index1, Index2: Integer): Integer; static;
public
class procedure Sort( AStringList: TStringList; ACas... |
unit HashAlgSHA512_U;
// Description: SHA-512 Hash (Wrapper for the SHA-512 Hashing Engine)
// By Sarah Dean
// Email: sdean12@sdean12.org
// WWW: http://www.SDean12.org/
//
// -----------------------------------------------------------------------------
//
interface
uses
Classes,
HashAlg_U,
H... |
{$mode objfpc}
{$include pyopts.inc} //for define PYTHON_DYNAMIC
{$assertions on}
{$ifdef win32}
{$define cpux86}
{$endif}
{$ifdef fpc}
{$ifdef cpu64}
{$define cpux64}
{$endif cpu64}
{$ifdef cpu32}
{$define cpux86}
{$endif cpu32}
{$ifdef darwin}
{$define macos}
{$define align_stack}
... |
unit Common;
interface
type
//代理的结构
TDLUserInfo = record //返回给客户端的
sAccount: string[12];//账号
sUserQQ: string[20]; //QQ
sName: string[20]; //真实姓名
CurYuE: Currency; //帐户余额
CurXiaoShouE: Currency; //帐户销售额
SAddrs: string[50]; //上次登陆地址
dTimer: TDateTime; //上次登陆时间
end;
pTDLUserInfo = ^T... |
unit feli_validation;
{$mode objfpc}
interface
type
FeliValidation = class(TObject)
private
public
class function emailCheck(email: ansiString): boolean; static;
class function fixedValueCheck(targetString: ansiString; const checkStrings: array of ansiString): boolean; static;
cl... |
unit nsProjectFrm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, StdCtrls, ExtCtrls, nsTypes, nsGlobals, DateUtils, System.UITypes,
tsTaskman, tsSettings, StrUtils, ImgList, Spin, System.ImageList;
type
TfrmProjectProperties = class(T... |
unit MVVM.CommandFactory;
interface
uses
System.Rtti,
System.Classes,
Spring.Collections,
MVVM.Rtti,
MVVM.Interfaces,
MVVM.Types;
type
TCommandsFactory = class
{$REGION 'Internal Declarations'}
private
FRegisteredActionMembers: IDictionary<String, RActionMember>;
FRegisteredCommands: IList<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.