text stringlengths 14 6.51M |
|---|
unit uSetupDatabaseActions;
interface
{$WARN SYMBOL_PLATFORM OFF}
uses
Windows,
uActions,
SysUtils,
uAssociations,
uInstallScope,
uConstants,
uUserUtils;
const
InstallPoints_StartProgram = 1024 * 1024;
InstallPoints_SetUpDatabaseProgram = 1024 * 1024;
type
TSetupDatabaseActi... |
(* WPSPELL.PAS - Copyright (c) 1995-1996, Eminent Domain Software *)
unit WPSpell;
{-WordPerfect style spell dialog for EDSSpell component}
{$D-}
{$L-}
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons, Menus,
{$IFDEF Win32}
{$IFDEF Ver100}
... |
unit sfBasic;
{Basic common code for special functions (extended/double precision)}
interface
{$i std.inc}
{$ifdef BIT16}
{$N+}
{$endif}
{$ifdef NOBASM}
{$undef BASM}
{$endif}
uses AMath;
(*************************************************************************
DESCRIPTION : Basic... |
{***************************************************************************}
{ }
{ Delphi Package Manager - DPM }
{ }
{ ... |
unit UnitDBDeclare;
interface
uses
Winapi.Windows,
System.Classes,
System.SysUtils,
System.DateUtils,
Vcl.Graphics,
Vcl.Forms,
Vcl.Imaging.JPEG,
Data.DB,
EasyListview,
GraphicCrypt,
Dmitry.CRC32,
Dmitry.Utils.Files,
Dmitry.PathProviders,
uMemory,
uDBBaseTypes,
... |
unit UDLogOnServerAdd;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TCrpeLogOnServerAddDlg = class(TForm)
pnlLogOnServerAdd: TPanel;
lblServerName: TLabel;
lblDatabaseName: TLabel;
lblUserID: TLabel;
lblPassword: TLabel;
... |
(* Stack ADS 19.04.2017 *)
(* ---------- *)
(* implementing the stack as abstract data structure *)
(* ================================================== *)
UNIT StackADS;
INTERFACE
PROCEDURE Init;
PROCEDURE Push(e: INTEGER);
PROCEDURE ... |
object FindInFilesDialog: TFindInFilesDialog
Left = 412
Top = 114
HelpContext = 810
BorderStyle = bsDialog
Caption = 'Find in Files Search'
ClientHeight = 288
ClientWidth = 361
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif... |
unit ClothDemo.Cloth;
{$ifdef FPC}
{$mode Delphi}
{$endif FPC}
interface
uses
UITypes, Types, Contnrs, Controls, Graphics;
type
TMouseState = record
Cut: integer;
Influence: integer;
IsDown: Boolean;
Button: TMouseButton;
Pos: TPoint;
PrevPos: TPoint;
end;
TConstraint = class;
... |
unit FornecedorOperacaoDuplicar.Controller;
interface
uses Fornecedor.Controller.Interf, Fornecedor.Model.Interf, TPAGFORNECEDOR.Entidade.Model;
type
TFornecedorOperacaoDuplicarController = class(TInterfacedObject,
IFornecedorOperacaoDuplicarController)
private
FFornecedorModel: IFornecedorModel;
FN... |
program dynamicArrFill1;
type
MyArrType = array[1..20] of integer;
var
arr1:array of integer;
arr2:MyArrType;
{----------------------------------------}
procedure fillArrValue(arr:array of integer);
var
i:integer;
begin
for i:=low(arr) to high(arr) do
begin
arr[i] := i;
end;
end;
{--... |
unit uInternetProxy;
interface
uses
Winapi.Windows,
System.SysUtils,
System.SyncObjs,
Generics.Collections,
idHTTP,
uMemory,
uSettings;
type
HINTERNET = Pointer;
INTERNET_PORT = Word;
PWinHTTPProxyInfo = ^TWinHTTPProxyInfo;
WINHTTP_PROXY_INFO = record
dwAccessType: DWORD... |
unit uAddPlace;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, {uCharControl, uFControl, uLabeledFControl, uSpravControl,}
StdCtrls, Buttons,{ uFormControl,} uAdr_DataModule,{ uAddModifForm,}
cxLookAndFeelPainters, FIBQuery, pFIBQuery, pFIBStoredProc, DB,
... |
unit Grijjy.Http2;
{ Provides a generic HTTP2 client class based upon the ngHttp2 library }
interface
{$I Grijjy.inc}
uses
Classes,
SysUtils,
StrUtils,
SyncObjs,
IOUtils,
DateUtils,
Grijjy.Uri,
Grijjy.SocketPool.Win,
Nghttp2,
Grijjy.BinaryCoding;
const
{ Timeout for operations }
TIMEOUT_CON... |
unit uMakeSpcPrice;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, Mask, DB, DBTables, DBCtrls, Grids, DBGrids,
ADODB, siComp, siLangRT, PaideForms;
type
TFrmMakeSpcPrice = class(TFrmParentForms)
Panel1: TPanel;
Panel9: TPanel;
Panel3:... |
unit OTFEFreeOTFE_U;
// Description: Delphi FreeOTFE Component
// Description:
// By Sarah Dean
// Email: sdean12@sdean12.org
// WWW: http://www.SDean12.org/
//
// -----------------------------------------------------------------------------
//
{
TOTFEFreeOTFE is a wrapper round the driver and a... |
unit frmWorkerPrize;
{******************************************************************************}
{ }
{ 软件名称 WMS }
{ 版权所有 (C) 2004-2005 ESQUEL GROUP GET/IT ... |
unit DPM.Core.Sources.ServiceIndex;
interface
uses
Spring.Collections,
JsonDataObjects,
DPM.Core.Sources.Interfaces;
type
TServiceIndex = class(TInterfacedObject, IServiceIndex)
private
FItems : IList<IServiceIndexItem>;
protected
function FindItem(const resourceType : string) : IServiceIndexItem... |
unit gateway_protocol.Client;
// This unit was initially generated by: DelphiGrpc "ProtoBufGenerator.exe"
(* -----------------------------------------------------------
PMM 18.05.2020 The following changes where found necessary:
Int64 -> UInt64 (so far used)
function Topology: Has no parameter (was empty re... |
unit Render3;
interface
uses
SysUtils, Types, Graphics,
Style, Layout;
type
TRenderer = class
private
Boxes: TBoxList;
Canvas: TCanvas;
Pen: TPoint;
Width: Integer;
protected
function GetContextRect(inBox: TBox): TRect;
procedure RenderBox(inBox: TBox); virtual;
procedure RenderB... |
unit Dmitry.Controls.Angle;
interface
uses
System.SysUtils,
System.Classes,
System.Math,
Winapi.Windows,
Winapi.Messages,
Vcl.Controls,
Vcl.Graphics,
Vcl.Themes,
Dmitry.Memory,
Dmitry.Controls.Base;
type
TAngle = class(TBaseWinControl)
private
{ Private declarations }
... |
unit StringProcessing;
interface
Uses
System.SysUtils, Unit1;
const
ENGLISH_ALPHABET_SIZE = 26;
RUSSIAN_ALPHABET_SIZE = 33;
ENGLISH_ALPHABET_SHIFT = 65;
RUSSIAN_ALPHABET_SHIFT = 128;
var
alphabetSize : integer;
function chrExt(const num : integer) : char;
function GetAlphabetSize : integer;
function De... |
unit E_UtilsFiles;
//------------------------------------------------------------------------------
// Модуль подпрограмм манипуляций с файловыми именами
//------------------------------------------------------------------------------
// Содержит утилиты по выделению отдельных частей ФС
// Работает только с путями Win... |
unit AbstractDataSet;
interface
type
TAbstractDataSet = class
private
FData : array of pointer;
protected
// Gets
function GetData(_pos: integer): pointer; virtual;
function GetDataLength: integer; virtual;
function GetLength: integer; virtual;
... |
unit uSprItemDlg;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls, DB, UtilsBase, TypInfo;
type
TSprItemDlg = class;
TItemDlgClass = class of TSprItemDlg;
TItemDlgState = (idsBrowse, idsEdit);
TCtrlMapItem = class(TCollectionItem)
private
FControl: ... |
unit Pospolite.View.Drawing.NativeDrawer;
{
+-------------------------+
| Package: Pospolite View |
| Author: Matek0611 |
| Email: matiowo@wp.pl |
| Version: 1.0p |
+-------------------------+
Comments:
...
}
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Graphics, Pospo... |
program simd;
//Example of how to insert C code into FPC project
// in this example, the C code uses SIMD intrinsics to generate SSE or Neon code
//you must compile scale2uint8.cpp first!
// fpc -O3 simd.pas; ./simd
{$mode objfpc}{$H+}
//{$mode delphi}{$H+}
uses Math, SysUtils,DateUtils;
{$L scale2uint8.o}
{$IFDEF D... |
unit APIWindow;
interface
uses
Windows,
Messages,
UtilFunc,
UtilClass;
type
TCreateParamsEx = record
dwExStyle: DWORD;
lpClassName: PChar;
lpWindowName: PChar;
dwStyle: DWORD;
X, Y, nWidth, nHeight: Integer;
hWndParent: HWND;
hMenu: HMENU;
hInstance: HINST;
lpParam: Pointer;
end;
//-------... |
{*****************************************
* *
* Step by step from tightly coupled code *
* to dependency injection *
* *
******************************************}
unit ProcessOrder;
interface
type
TOrder = class
end;... |
//------------------------------------------------------------------------------
//HeliosOptions UNIT
//------------------------------------------------------------------------------
// What it does-
// This unit is used to gain access to configuration vari... |
unit ThDbData;
interface
uses
Classes, DB, DBCtrls;
type
TThDbData = class(TFieldDataLink)
protected
function GetFieldText: string;
public
procedure Notification(AComponent: TComponent; Operation: TOperation);
public
property FieldText: string read GetFieldText;
end;
implementation
{... |
unit uIImageViewer;
interface
uses
Generics.Collections,
System.Classes,
Vcl.Controls,
Vcl.Graphics,
Vcl.ComCtrls,
Dmitry.Controls.LoadingSign,
Dmitry.Controls.WebLink,
uMemory,
uInterfaces,
uDBEntities,
uFaceDetection,
uExifInfo,
uThreadForm;
type
TImageViewerButt... |
namespace com.example.android.lunarlander;
{*
* 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... |
unit FormMainMenu;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TMainMenuForm = class(TForm)
btnNewGame: TButton;
btnLoadGame: TButton;
btnResult: TButton;
btnExit: TButton;
procedure FormClose(Sender: TObject; var Action:... |
unit unCustomPanelButton;
interface
uses
System.SysUtils, System.Classes, Vcl.Controls, Vcl.ExtCtrls, Vcl.Graphics,
Vcl.StdCtrls, Vcl.ImgList;
type
TRedimensionar = (trManual, trAutomatico);
TCustomPanelButton = class(TPanel)
private
FQImage: TPicture;
panelIMG:Tpanel;
panelLabel:Tpanel;
... |
unit LrControls;
interface
uses
Windows, Messages, Classes, Controls;
type
//:$ Enhanced TGraphicControl.
//:: TLrGraphicControl adds auto-sizing and text handling machinery.
TLrGraphicControl = class(TGraphicControl)
protected
FAutoSize: Boolean;
//:$ Property setter for AutoSize.
//:: Turb... |
unit uDM_RepositorySQLServer;
interface
uses
Forms, Dialogs, uiRepositories, uiRepoSystem,
System.SysUtils, System.Classes, 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.Phys.MSSQL,... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Menus, System.ImageList, Vcl.ImgList,
Vcl.ComCtrls, Vcl.ToolWin, Vcl.ActnList, Vcl.StdActns, System.Actions;
type
TForm1 = class(TForm)
Ima... |
unit Sort.StringCompare;
interface
uses
Windows, SysUtils, Classes, ComCtrls;
function NaturalOrderCompareString( const A1, A2: string; ACaseSensitive: Boolean ): Integer;
function StrCmpLogicalW(psz1, psz2: PWideChar): Integer; stdcall; external 'shlwapi.dll';
type
TStringListSortCompare = record
class... |
unit URepositorioFamiliaProduto;
interface
USES
UFamiliaProduto,
UEntidade,
URepositorioDB,
SqlExpr;
type
TRepositorioFAMILIAPRODUTO = class (TRepositorioDB<TFamiliaProduto>)
public
constructor create;
procedure AtribuiDBParaEntidade(const coFamiliaProduto : TFamiliaProduto); override;
procedu... |
// Copyright (c) 2009, ConTEXT Project Ltd
// 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 condition... |
{
publish with BSD Licence.
Copyright (c) Terry Lao
}
unit iCBConstructs;
{$MODE Delphi}
interface
uses iLBC_define,gainquants,getCBvecs,C2Delphi_header;
{----------------------------------------------------------------*
* Convert the codebook indexes to make the search easier
*-----------------------... |
{: FileDXF<p>
DXF file loader<p>
<b>History :</b><font size=-1><ul>
<li>26/01/03 - DA - SaveToStream is now correct
<li>21/01/03 - DA - Supported DXF entities are now stored in an array
<li>07/01/03 - DA - Update the progress bar with a logarithmic scale when reading entities
<li>06/12/02 ... |
unit Form.Main;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
type
TTest1DLL = procedure(aStrValue: string; aInt: Integer); StdCall;
TTestIntDLL = procedure(aZahl: Integer); StdCall;
TTestF... |
{*******************************************************************************
* uBoolFControl *
* *
* Библиотека компонентов для работы с формой редактирования (qFControls) ... |
{* ***** BEGIN LICENSE BLOCK *****
Copyright 2010 Sean B. Durkin
This file is part of TurboPower LockBox 3. TurboPower LockBox 3 is free
software being offered under a dual licensing scheme: LGPL3 or MPL1.1.
The contents of this file are subject to the Mozilla Public License (MPL)
Version 1.1 (the "License"); you may ... |
unit GLDPyramidParamsFrame;
interface
uses
Classes, Controls, Forms, StdCtrls, ComCtrls, GL, GLDTypes, GLDSystem,
GLDPyramid, GLDNameAndColorFrame, GLDUpDown;
type
TGLDPyramidParamsFrame = class(TFrame)
NameAndColor: TGLDNameAndColorFrame;
GB_Params: TGroupBox;
L_Width: TLabel;
L_D... |
unit LanguageStringMapUnit;
interface
uses
gutil,
ghashmap;
type
{ TStringHash }
TStringHash = class
public
class function hash(const s: string; const n: SizeUInt): SizeUInt;
end;
TStringMap = specialize THashmap<string, string, TStringHash>;
implementation
{ TStringHash }... |
unit VH_Voxel;
interface
Uses OpenGl15,SysUtils,Voxel,VH_Global,VH_Types,Math3d,HVA,palette,Windows;
procedure ClearVoxelBoxes(var _VoxelBoxGroup: TVoxelBoxs; var _Num: integer);
procedure UpdateVoxelList;
procedure UpdateVoxelList2(const Vxl : TVoxel; Var VoxelBoxes : TVoxelBoxs; Var VoxelBox_No : Integer; ... |
unit uLoginCS;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxTextEdit, cxControls, cxContainer, cxEdit, cxLabel,
cxLookAndFeelPainters, StdCtrls, cxButtons, ActnList;
type
TFormLoginCS = class(TForm)
cxLabelLogin: TcxLabel;
cxLabelPassword: TcxLa... |
unit Allgemein.RegIni;
interface
uses
IniFiles, SysUtils, Types, Registry, Variants, Windows, Classes;
type
TevRootKey = (HKEY_CLASSES_ROOT_, HKEY_CURRENT_USER_, HKEY_LOCAL_MACHINE_,
HKEY_USERS_, HKEY_PERFORMANCE_DATA_, HKEY_CURRENT_CONFIG_,
HKEY_DYN_DATA_);
function ReadIni(c... |
unit ClassesMOD;
interface
uses
Activex,
Windows,
StreamUnit;
type
ISequentialStream = interface(IUnknown)
['{0c733a30-2a1c-11ce-ade5-00aa0044773d}']
function Read(pv: Pointer; cb: Longint; pcbRead: PLongint): HResult;
stdcall;
function Write(pv: Pointer; cb: Longint; pcbWritten: PLongint):... |
unit Form.Request;
interface
uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Lib.HTTPContent,
Vcl.StdCtrls,
Vcl.ExtCtrls,
Lib.HTTPConsts,
Lib.HTTPUtils,
Lib.HeaderValues;
typ... |
{**************************************************************************************************}
{ }
{ Project JEDI Code Library (JCL) }
{ ... |
unit ULogin;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls;
type
TfrmLogin = class(TForm)
panelPlayerX: TPanel;
panelPlayerO: TPanel;
labelX: TLabel;
labelO: TLabel;
btnPlayerX: TSpeedButton;
btnIIX: TSpeed... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLODECustomColliders<p>
Custom ODE collider implementations.<p>
<b>Credits : </b><font size=-1><ul>
<li>Heightfield collider code originally adapted from Mattias Fagerlund's
DelphiODE terrain collision demo.
Website: h... |
unit CRC;
interface
uses SysUtils,StrUtils;
type vetBytes = array[1..4] of byte;
vetDoisBytes = array[1..2] of byte;
vetDados = array[0..511] of byte;
TCRC=class
private
function byteParaBinario(num: Byte):String;
function dividePolinomio(dividendo:String;divisor:String):String;
... |
unit timez;
interface
type
times = record
bSecond: byte;
bMinute: byte;
bHour: byte;
bDay: byte;
bMonth: byte;
bYear: byte;
end;
function ToTimes(daT: TDateTime): times;
function DeltaTimes2Str(tiT: times; tiS: times): string;
function PopTimes: times;
function T... |
unit uFrmBaseEtypeInput;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uFrmBaseInput, Menus, cxLookAndFeelPainters, ActnList, cxLabel,
cxControls, cxContainer, cxEdit, cxCheckBox, StdCtrls, cxButtons,
ExtCtrls, Mask, cxTextEdit, cxMaskEdit, cxButtonEdit, cx... |
unit ULang;
(*====================================================================
All language dependent strings, except for the strings in the forms
======================================================================*)
interface
const
{$ifdef CZECH}
{QB_CONV4}
lsInconsistencyOfDataInDBase = 'Nekonzistence dat... |
// Simple Pascal FizzBuzz implementation
// Author: @veotani
program FizzBuzz;
var i: integer;
begin
for i:=1 to 100 do
if i mod 15 = 0 then
writeln ('FizzBuzz')
else if i mod 3 = 0 then
writeln('Fizz')
else if i mod 5 = 0 then
writeln('Buzz')
else
writeln(i)
end. |
unit Cons_checker;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, Level, Level_Utils, misc_utils, GlobalVars, Buttons;
type
TConsistency = class(TForm)
Errors: TListBox;
Panel: TPanel;
BNClose: TButton;
BNGoto: TButton;
BNCheck: ... |
unit uPctPetSaleFrm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uParentModalForm, XiButton, ExtCtrls, cxControls, cxContainer,
cxEdit, cxTextEdit, cxMaskEdit, cxDropDownEdit, cxLookupEdit,
cxDBLookupEdit, cxDBLookupComboBox, mrSuperCombo, DB, DBClient,
... |
unit clsInfoCashSale;
interface
type
InfoCashSale = class
private
subTotal: Currency;
itemDiscounts: Currency;
saleDiscount: Currency;
otherCosts: Currency;
tax: Currency;
totalDue: Currency;
totalSaved: Currency;
newTotalDue: Currency;
n... |
unit ProjectView;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, VirtualTrees, Project, ImgList, ActiveX, Menus;
type
TProjectForm = class(TForm)
Tree: TVirtualStringTree;
ImageList1: TImageList;
PopupMenu: TPopupMenu;
NewFolderItem: TMenuIt... |
unit usqlitedao;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, sqldb, sqlite3conn;
type
{ TSQLiteDAO }
TSQLiteDAO = class
private
FConn: TSQLite3Connection;
FTran: TSQLTransaction;
procedure Exec(ASQL: String);
public
constructor Create(ADatabaseName: String);
destructor Dest... |
unit Demo.Trendlines.Sample;
interface
uses
System.Classes, Demo.BaseFrame, cfs.GCharts;
type
TDemo_Trendlines_Sample = class(TDemoBaseFrame)
public
procedure GenerateChart; override;
end;
implementation
procedure TDemo_Trendlines_Sample.GenerateChart;
var
Chart: IcfsGChartProducer; // Defined as TI... |
(*
Category: SWAG Title: FILE HANDLING ROUTINES
Original name: 0067.PAS
Description: Totally Erased files
Author: DAVID DRZYZGA
Date: 11-26-94 05:03
*)
Program Zap;
Procedure ZapIt(FileName : String; Pattern : Char; LastPass : Boolean);
Var
NumRead,
NumWritten : Word;
Buffer : Array[1..4096] O... |
unit SDUSpin64Units;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, SDUFrames, StdCtrls, Spin64,
SDUGeneral;
type
TSDUSpin64Unit = class(TSDUFrame)
se64Value: TSpinEdit64;
cbUnits: TComboBox;
procedure se64ValueChange(Sender: TObjec... |
{..............................................................................}
{ Summary Deleting Schematic Objects and Updating the Undo System }
{ Use of the RobotManager interface to send schematic messages }
{ Copyright (c) 2004 by Altium Limited ... |
PROGRAM bintree;
TYPE
Node = ^NodeRec;
NodeRec = RECORD
value: INTEGER;
left, right: Node;
END;
Tree = Node;
PROCEDURE InitTree (VAR t: Tree);
BEGIN
t:= NIL;
END;
FUNCTION NewNode (value: INTEGER): Node;
VAR
n: Node;
BEGIN
New(n);
n^.value := value;
n^.left := NIL;
n^.right := NIL;
NewNode := n;
END... |
unit uDMClient;
interface
uses
System.SysUtils, System.Classes, IPPeerClient, Datasnap.DSClientRest, uClientClasses,
System.ImageList, Vcl.ImgList, Vcl.Controls, uDBUtils, Data.DB,
Datasnap.DBClient, cxStyles, cxClasses;
type
TDMClient = class(TDataModule)
cxStyle: TcxStyleRepository;
cxStyleBold: Tc... |
unit SIDConvTypes;
{$IFDEF FPC}
{$MODE DELPHI}
{$ENDIF}
interface
uses
Classes, Generics.Collections, SysUtils, SyncObjs;
type
TSIDConvCompFmt = (scfFormat0, scfFormat1, scfDetermine, scfDumpOnly);
TSIDConvCompType = (sctNone, sctDeflate, sctLZMA);
TSIDPlayEndType = (speLoop, speOverlap, speFadeOut);
TSIDPla... |
// ##################################
// ###### IT PAT 2018 #######
// ###### GrowCery #######
// ###### Tiaan van der Riel #######
// ##################################
unit frmAdminHomeScreen_u;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,... |
unit WarodaiXrefs;
{
Матчит различные XRef-ссылки в Вародае.
Общая идея:
Матчим последовательности вида
"см. <a href>ССЫЛКА 1</a> и ССЫЛКА 2"
Затем разбираем на отдельные ссылки. Каждая ссылка либо отмечена <a href>,
либо определённого формата (см. ниже).
}
interface
uses JWBStrings, Warodai, FastArray... |
unit UAvaliador;
interface
uses Generics.Collections, ULeilao, ULance, UUsuario;
type
TAvaliador = class
private
FMaiorValorLance: double;
FUsuarioMaiorLance: TUsuario;
function getMaiorValorLance: double;
procedure setMaiorValorLance(const Value: double);
public
procedure AvaliaLance(aLei... |
PROGRAM Recursion;
FUNCTION GGT(p: INTEGER; q: INTEGER): INTEGER;
BEGIN
IF (p MOD q) = 0 THEN
GGT := q
ELSE
GGT := GGT(q, p MOD q);
END;
FUNCTION GGTIter(p: INTEGER; q: INTEGER): INTEGER;
VAR
x: INTEGER;
BEGIN
WHILE NOT ((p MOD q) = 0) DO BEGIN
x := p;
p := q;
q := x MOD q;
END;
GGTIte... |
object BigImagesSizeForm: TBigImagesSizeForm
Left = 192
Top = 114
BorderStyle = bsToolWindow
Caption = 'BigImagesSizeForm'
ClientHeight = 176
ClientWidth = 158
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style... |
unit ideSHNavigator;
interface
uses
Windows, SysUtils, Classes, Controls, Graphics, Types, Forms, ComCtrls, Menus,
Contnrs, StdCtrls, Buttons, ExtCtrls, ActnList,
SHDesignIntf, SHOptionsIntf, ideSHDesignIntf;
type
TideSHNavigator = class;
TideSHNavBranchController = class
private
FOwne... |
unit Gar_MarkaTopl_Edit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, cxLookAndFeelPainters, cxMaskEdit,
cxDropDownEdit, cxDBEdit, DB, FIBDataSet, pFIBDataSet, StdCtrls,
cxButtons, cxControls, cxContainer, cxEdit, cxTextEdit, gar_Types, z... |
unit Amazon.Storage.Service.Types;
interface
type
{$SCOPEDENUMS ON}
TAmazonProtocol = (http, https);
{$SCOPEDENUMS OFF}
TAmazonProtocollHelper = record helper for TAmazonProtocol
function GetValue: string;
end;
implementation
uses TypInfo;
function TAmazonProtocollHelper.GetValue: string;
begin
Resul... |
program HowToMoveCameraToDifferentPoints;
uses
SwinGame, sgTypes;
procedure Main();
begin
OpenGraphicsWindow('Move Camera To Different Points', 800, 600);
LoadDefaultColors();
repeat // The game loop...
ProcessEvents();
//Move the camera by KeyBoard
if KeyDown(UPKey) the... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLSLDiffuseSpecularShader<p>
This is a collection of GLSL diffuse-specular shaders.<p>
<b>History : </b><font size=-1><ul>
<li>07/01/10 - DaStr - Bugfixed all DoInitialize() calls
(thanks YarUnderoaker) ... |
//------------------------------------------------------------------------------
//CharacterServer UNIT
//------------------------------------------------------------------------------
// What it does-
// The Character Server Class.
// An object type that contains all ... |
unit FormMain;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ShellCtrls,
ComCtrls, ExtCtrls, Menus, process, LazUTF8, FormProgRun, config,
LockedQueue;
const
ICON_NORMAL = 0;
ICON_CHANGED = 1;
ICON_CONFLICT = 2;
MILLISEC = 1 / (24 * 60 * 6... |
unit main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls,
ExtDlgs;
type
Channel = record
R, G, B: Byte;
end;
ChannelDecimal = record
R, G, B: Real;
end;
type
BitmapColor = array [0..400, 0..400] of Channel;
type
BitmapBinary = ... |
unit ImageRGBByteData;
interface
uses Windows, Graphics, BasicDataTypes, Abstract2DImageData, RGBByteDataSet, dglOpenGL;
type
T2DImageRGBByteData = class (TAbstract2DImageData)
private
FDefaultColor: TPixelRGBByteData;
// Gets
function GetData(_x, _y, _c: integer):byte;... |
unit Dsource;
{$MODE Delphi}
{-------------------------------------------------------------------}
{ Unit: Dsource.pas }
{ Project: EPANET2W }
{ Version: 2.0 }
{... |
unit Chapter02._05_Main2;
interface
uses
System.Classes,
System.SysUtils;
procedure Main;
implementation
function f(n: integer): integer;
begin
Assert(n >= 0);
if n = 0 then
Exit(1);
Result := f(n - 1) + f(n - 1);
end;
procedure Main;
begin
writeln(f(10));
end;
end.
|
unit PlugIn;
interface
uses
Windows, Classes, SysUtils, Forms, Grobal2, SDK;
var
PlugHandList: TStringList;
type
TPlugInfo = record
DllName: string;
sDesc: string;
Module: THandle;
end;
pTPlugInfo = ^TPlugInfo;
TPlugInManage = class
PlugList: TStringList;
StartPlugList: TList;
privat... |
unit AnsiEmulVT;
interface
uses
Windows, Messages, SysUtils, Classes, Controls, emulvt;
type
TMouseOp = (moSelection, moDraw, moMoveSelection);
TAnsiEmulVT = class(TEmulVT)
private
{ Private declarations }
FAfterSelection: TNotifyEvent;
SaveLines: array[0..50] of TLine;
FMoveS... |
unit GLDDesignTime;
interface
uses
Classes, Types, DesignIntf, DesignEditors;
type
TGLDColorClassProperty = class(TClassProperty)
private
procedure Change(Sender: TObject);
public
function GetAttributes: TPropertyAttributes; override;
procedure Edit; override;
end;
TGLDVector... |
unit LrCollectionEditorView;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, ToolWin, Menus, ImgList,
DesignIntf, DesignEditors,
LrCollection;
type
TLrCollectionEditorForm = class(TForm)
ItemsView: TListView;
ToolBar1: TToolBar;
Ad... |
unit ufrmDisplayPOSTransaction;
interface
uses
Windows, SysUtils, Classes, Controls, Forms,
ufrmMasterBrowse, StdCtrls, ExtCtrls, Mask,
ActnList, System.Actions, cxGraphics, cxControls, cxLookAndFeels,
cxLookAndFeelPainters, dxBarBuiltInMenu, cxStyles, cxCustomData, cxFilter,
cxData, cxDataStorage, cxEdit, ... |
unit DSA.Tree.BSTSet;
{$mode objfpc}{$H+}
interface
uses
Classes,
SysUtils,
DSA.Interfaces.DataStructure,
DSA.Tree.BST;
type
{ TBSTSet }
generic TBSTSet<T, TComparer> = class(TInterfacedObject, specialize ISet<T>)
private
type
TBST_T = specialize TBST<T, TComparer>;
var
__bst: specia... |
unit StylesMain;
interface
uses
Windows, Messages, Forms, SysUtils, cxStyles, cxCustomData, cxGraphics, cxFilter,
cxEdit, DB, cxDBData, Dialogs, cxGridCustomPopupMenu, cxGridPopupMenu,
Classes, ActnList, ImgList, Controls, Menus, StdCtrls, ExtCtrls,
cxButtons, cxGridLevel, cxGridCustomTableView, cxGridTableVi... |
{***************************************************************************}
{ }
{ Delphi Package Manager - DPM }
{ }
{ ... |
unit ufrmDialogLokasi;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ufrmMasterDialog, ufraFooterDialog2Button, ExtCtrls,
StdCtrls, uRetnoUnit, ufrmLokasi, cxGraphics, cxControls,
cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, cxTextEdit,
cxC... |
// This unit should contain any custom rules used
// by the application. The rule defined here
// is provided as an example.
unit Rules;
interface
uses
Kitto.Rules, KItto.Store;
type
TCheckDuplicateInvitations = class(TKRuleImpl)
public
procedure BeforeAdd(const ARecord: TKRecord); override;
... |
//
// VXScene Component Library, based on GLScene http://glscene.sourceforge.net
//
{
Registration unit for library components, property editors and
IDE experts.
}
unit VXS.SceneRegister;
interface
{$I VXScene.inc}
uses
Winapi.Windows,
System.Classes,
System.SysUtils,
System.TypInf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.