text stringlengths 14 6.51M |
|---|
unit xxmGeckoStreams;
interface
uses nsXPCOM, nsTypes, Classes, xxmGeckoInterfaces;
type
TxxmInputStream=class(TInterfacedObject,
nsIInputStream,
nsISeekableStream)
private
FData:TMemoryStream;
protected
//nsIInputStream
function Available: Cardinal; safecall;
procedure C... |
unit AccessAdapterExceptionUnit;
interface
uses
SysUtils, Dialogs, System.Generics.Collections,
AdaptersUnit,AccessAdapterUnit;
type
AccessAdapterException = class(TInterfacedObject, Adapters)
private
/// <link>aggregation</link>
AccessAdapterSource: AccessAdapter;
public
function getAnswer:T... |
unit FigArrUnit;
interface
uses
MyListUnit, TrapezeUnit;
type
FArr = array of TTrapeze;
TFigArr = class
public
constructor Create;
destructor Destroy;
procedure Fill(coords: TMyList; size: integer);
function GetSquare: real;
function GetCenterX: real;
function GetCen... |
unit Banco;
interface
uses
MVCFramework.Serializer.Commons, ModelBase;
type
[MVCNameCase(ncLowerCase)]
TBanco = class(TModelBase)
private
FId: Integer;
FCodigo: string;
FNome: string;
FUrl: string;
public
procedure ValidarInsercao; override;
procedure ValidarAlteracao; overr... |
{
code : https://pastebin.com/w4X4pHpC
Author: ?
License : MIT ??
}
unit RunElevatedSupport;
{$WARN SYMBOL_PLATFORM OFF}
{$R+}
interface
uses
Windows;
type
TElevatedProc = function(const AParameters: String): Cardinal;
TProcessMessagesMeth = procedure of object;
var
// Warning: this fu... |
(*
@created(2019-12-27)
@author(J.Delauney (BeanzMaster))
Historique : @br
@unorderedList(
@item(27/12/2019 : Creation )
)
--------------------------------------------------------------------------------@br
------------------------------------------------------------------------------
Description : Simulation d... |
unit UnexpectedExceptionsHelper;
{$mode delphi}
interface
uses
{$ifdef darwin}
macport,
{$endif}
{$ifdef windows}
jwawindows, windows,
{$endif}
Classes, SysUtils;
type
TUnexpectedExceptionAction=(ueaIgnore, ueaBreak, ueaBreakIfInRegion);
var
UnexpectedExceptionAction: TUnexpected... |
{*_* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Author: Arno Garrels
Creation: October 30, 2011
Description: Emulates Windows messages on MacOS.
Version: 0.9 Beta
EMail: <arno.garrels@gmx.de>
Support: Use the mailing list twsocket@elists.org
... |
unit mUnit;
{$mode objfpc}{$H+}{$M+}
interface
uses
cmem, ray_header, ray_application, ray_model, ray_rlgl;
type
{ TGame }
TGame = class(TRayApplication)
private
protected
public
Engine3d: TModelEngine;
Cube: TMesh;
skybox: TModel;
constructor Create; override;
procedure Init;... |
unit Manual;
interface
uses
Windows, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls, StdCtrls,
Buttons, Mask, RzEdit, Dialogs, ExtDlgs, ClipBrd, zlib;
type
TManualForm = class(TForm)
DataPanel: TScrollBox;
ImagePanel: TScrollBox;
ToolsPanel: TPanel;
AddImagePanel: TGroupBox... |
unit frmGameScoreBoard;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls
, Rtti
{Spring}
, Spring.Collections
{BowlingGame}
, Core.BaseInterfaces
, Core.Interfaces
, Core.O... |
{*******************************************************************************
Title: T2TiPDV
Description: Visualiza e Exclui Registros de Log de Importação de Dados.
The MIT License
Copyright: Copyright (C) 2012 Albert Eije
Permission is hereby granted, free of charge, to any person
obtaining a copy of this softw... |
//Aziz Vicentini - Brasil
//E-mail: azizvc@yahoo.com.br
//Informações da Corrida
unit RaceInfo;
interface
uses Windows, Classes, SysUtils, Graphics;
type
PRaceInfoRecord = ^TRaceInfoRecord;
TRaceInfoRecord = packed record //16 bytes
ID: Byte;
Nome, Carro: string[100];
Cor: TColor;
... |
type
matrix=array[1..4,1..4] of int64;
const
{lho keren kul parah}
init:matrix = {lho }(( 0, 1, 1, 0 ),
{keren} ( 0, 0, 1, 1 ),
{kul } ( 0, 0, 1, 1 ),
{parah} ( 1, 1, 1, 0 ));
iden:m... |
//------------------------------------------------------------------------------
//
// Voxelizer
// Copyright (C) 2021 by Jim Valavanis
//
// 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;... |
unit VectorOtherTimingTest;
{$mode objfpc}{$H+}
{$CODEALIGN LOCALMIN=16}
interface
uses
Classes, SysUtils, fpcunit, testregistry, BaseTimingTest, BaseTestCase,
native, BZVectorMath, BZProfiler;
type
{ TVectorOtherTimingTest }
TVectorOtherTimingTest = class(TVectorBaseTimingTest)
protected
proced... |
unit
TDoc;
{$MINENUMSIZE 4}
interface
uses
Windows, TClip;
type
HTRACK = Pointer;
HTLDOC = Pointer;
PHCLIP = ^HCLIP;
// 轨道类型定义
type
TrackType =
(
TT_NONE, // 未知类型
TT_VIDEO, // 视频轨道
TT_AUDIO, // 音频轨道
TT_OVERLAP // 叠加轨道
);
//==================================================... |
(*
MIT License
Copyright (c) 2018 Ondrej Kelle
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, ... |
unit TestUnit1;
{
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, FMX.Graphics, FMX.Dialogs, FMX.Ed... |
(*
@abstract(L'unité BZUtils contiens des routines utiles dans différents domaines tel que
les nombres, les chaine de caractères, la manipulation de bits, le calcul de CRC32 etc... @br
Certaines routines ont étés optimisées gràce à l'utilisation de l'assembleur.)
-----------------------------------------------... |
unit huffman;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;
type CharMap = record
c: char;
count: LongInt;
end;
type tCharRepo = array of CharMap;
type PCharRepo = ^tCharRepo;
type
PHuffmanNode = ^HuffmanNode;
HuffmanNode = record
identifier: strin... |
{
Remove frequence variance from sound descriptors.
}
unit UserScript;
function Process(e: IInterface): integer;
begin
SetElementEditValues(e, 'BNAM\% Frequency Variance', '0');
end;
end.
|
unit FrameObject;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, PMBuild, Spin, ExtCtrls, FPSpin;
type
TObjectFrame=class(TFrame)
GroupObject: TGroupBox;
TransformGroup: TGroupBox;
MaterialCombo: TComboBox;
IDEd... |
Unit LOINC;
{
Copyright (c) 2001-2013, Health Intersections Pty Ltd (http://www.healthintersections.com.au)
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 retai... |
unit orm.session;
interface
uses System.SysUtils, System.Variants,
System.Generics.Collections, System.Generics.Defaults,
Data.DB,
orm.engine,
orm.attributes.objects,
orm.where,
sql.consts,
sql.utils,
sql.connection;
type
TSession = Class
Private
FC... |
unit BassWinamp;
interface
uses
Bass, Windows;
const
BASS_CTYPE_STREAM_WINAMP = $10400;
BASS_WINAMP_SYNC_BITRATE = 100;
// BASS_SetConfig, BASS_GetConfig flags
BASS_CONFIG_WINAMP_INPUT_TIMEOUT = $10800; // Set the time to wait until timing out because
// the plugin is ... |
{ License: wtfpl; see /copying or the Internet }
{ Functions to help convert parameter values }
unit stringtypeconverters;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, evaluator;
type
kFloatList = array of extended;
kIntList = array of Int64;
function hasFloats(parameters: k_parameterList): ... |
{*******************************************************}
{ }
{ NTS Aero UI Library }
{ Created by GooD-NTS ( good.nts@gmail.com ) }
{ http://ntscorp.ru/ Copyright(c) 2011 }
{ License: Mozilla Pu... |
{: FMaterialEditorForm<p>
Editor window for a material (with preview).<p>
<b>Historique : </b><font size=-1><ul>
<li>24/03/00 - Egg - Added Blending
<li>06/02/00 - Egg - Creation
</ul></font>
}
unit FMaterialEditorForm;
interface
uses
Windows, Forms, FRMaterialPreview, FRColorEd... |
unit FrameEditSMSimpleDocument;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ActnList, ComCtrls, CheckLst, Material, Employee,Organization;
type
TFrame3 = class(TFrame)
cbbSelectMaterial: TComboBox;
txtSelectMaterial: TStaticText;
chk... |
unit newHeaderControl; //for some reason parentfont does not work
{$mode objfpc}{$H+}
interface
uses
jwawindows, windows, Classes, SysUtils, Controls, StdCtrls, ComCtrls, CommCtrl;
type
TNewHeaderControl=class(THeaderControl)
private
darkmode: boolean;
protected
procedure ChildHandlesCreated; overr... |
unit UBackupScript;
interface
uses Windows, Classes, Messages, SysUtils, ShellAPI, Vcl.Forms;
type
TBackupScript = class
private
FPathDestination: String;
FHostMongoDB: String;
FPort: String;
FPathBINMongoDB: String;
FBaseName: String;
FListaDataBasesMongoDB: TStringList;
FPassword: ... |
{
* PROGRAM : A5X5.PAS
* AUTHOR : László Kővári
* DATE : '93.06.28.
* LAST UPDATE: '93.08.02.
* COPYRIGHT : Copyright (C) 1993 by László Kővári #3647321033
*
* Rekurzio; mikor egy eljárás vagy fügvény közvetlenül vagy közvetetten önmagát hivja, egy adott feltétel teljesüléséig.
*
* Visszalépése... |
unit untStruct;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
const
USER_PAGE_NO: integer = 8;
FINGER_NO: integer = 4;
MAX_PEOPLE: integer = 10000;
CONDITION_NO: integer = 5;
MALE: integer = 1;
FAMALE: integer = 2;
NAME_LENGTH = 32;
type
EnumAction = (ACTION_ENROLL, ACT... |
{ System-independent routines for dealing with tree names.
}
module string_treename;
define string_treename_opts;
define string_treename;
define string_treename_machine;
define string_set_nodename;
%include '(cog)source/string/string2.ins.pas';
%include '(cog)source/file/file.ins.pas';
%include '(cog)source/file/cogs... |
unit Domain.Entity.Endereco;
interface
uses
System.Classes, SysUtils, EF.Mapping.Base, EF.Core.Types,EF.Mapping.Atributes,
Domain.Consts;
type
[Table('Endereco')]
TEndereco = class( TEntityBase )
private
FLogradouro:TString;
FNumero: TInteger;
FMunicipio:TString;
FUF:TString;
F... |
{ Practica 1 Ejercicio 3 }
program p1e3;
uses strings;
procedure intercambio( var a,b: char );
var
aux :char;
begin
aux := a;
a := b;
b := aux;
end;
function Pos_del_Menor( S: string; I: integer ): integer;
var
pos,j: Integer;
begin
pos := i ;
for j:= i+1 to Length(S... |
unit TestufTarefa3;
interface
uses
TestFramework, System.Variants, Data.DB, Datasnap.DBClient, Winapi.Windows,
Vcl.Dialogs, Vcl.Grids, Vcl.Forms, Vcl.ExtCtrls, Vcl.Controls, ufTarefa3,
System.Classes, System.SysUtils, Winapi.Messages, Vcl.DBGrids, MidasLib, Vcl.Graphics,
Vcl.StdCtrls, Vcl.Buttons, DUnitX.Test... |
(*******************************************************************************
Jean-Pierre LESUEUR (@DarkCoderSc)
https://www.phrozen.io/
jplesueur@phrozen.io
License : MIT
*******************************************************************************)
unit UntStdHandlers;
interface
uses Windows, SysUt... |
unit CRSelectPlacementForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, CoreTransfer, SlottingPlacement;
type
TfrmSelectPlacement = class(TForm)
gbxAll: TGroupBox;
lblState: TLabel;
cmbxPlacement: TComboBox;
pnlButtons: ... |
unit Marvin.Desktop.GUI.Lista.Clientes;
interface
uses
{ embarcadero }
System.SysUtils,
System.Types,
System.UITypes,
System.Classes,
System.Variants,
System.Generics.Collections,
{ marvin }
Marvin.Components.Rect,
Marvin.Desktop.Repositorio.AulaMulticamada,
Marvin.AulaMulticamada.Classes.Client... |
{
Copyright (c) 2016, Isaque Pinheiro
All rights reserved.
GNU Lesser General Public License
Versão 3, 29 de junho de 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
A todos é permitido copiar... |
unit Convert;
interface
function UTFToWin(Str: string): string;
function WinToUTF(Str: string): string;
implementation
const
UTF: array[1..66] of string = (
'Р°','Р±','РІ','Рі','Рґ','Рµ','С‘','Р¶','Р·','Рё',
'Р№','Рє','Р»','Рј','РЅ','Рѕ','Рї','С€','С�','С‚',
'Сƒ','С„','С…','С†','С‡','Сˆ','С‰','СŠ','С‹','СŒ',
'С�','... |
unit AllSellers;
{Shows all sellers.}
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def,
FireDAC... |
unit Bott.ForEachElse;
interface
uses
System.Generics.Collections,
System.SysUtils;
type
TForEachElse<TSource> = class
public
class procedure All(obj: TObject; each: TFunc<TSource, boolean>;
_else: TProc);
end;
implementation
uses
System.Rtti;
{ TForEachElse<TSource> }
class procedure TForE... |
(*
@created(2019-12-27)
@author(J.Delauney (BeanzMaster))
Historique : @br
@unorderedList(
@item(27/12/2019 : Creation )
)
--------------------------------------------------------------------------------@br
------------------------------------------------------------------------------
Description : Simulation d... |
unit SatelliteObject;
type
CoordinateRecord = record
public
x,y: Real;
end;
type
Satellite = class
public
_x,_y,_r,_u,_v,_m: Real;
points: array of CoordinateRecord;
constructor create(x,y,u,v,m: Real);
end;
constructor Satellite.create(x,y,u,v,m: Real);
begin
_r:= 4;
_x:= x;... |
unit MapControl;
interface
uses
System.Classes,
Vcl.Controls,
MapTypes,
Renderers,
CommonGeometry;
type
TToolState = set of (mcsZooming, mcsPanning);
TMapControl = class(TCustomControl)
private
{ Private declarations }
FWorkWin: TWorkWindow;
FTool: TToolState;
FWorldPos: TVertex;
... |
unit uPesquisa;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, Buttons, Grids, DBGrids, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf,
FireDAC.DApt.Intf, FireDAC.St... |
{-----------------------------------------------------------------------------
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.... |
//program pilihan menu
program pilihan_menu;
//menggunakan crt
uses crt;
//daftar variabel
var
//list variabel dengan tipe data real
lingkaran, segitiga, kotak, jari, alas, tinggi,sisi : real;
//list variabel dengan const || tidak dapat diubah
pilihan : integer;
//phi dengan 3.14
const phi = 3.14;
//start begin
b... |
unit TFlatTitlebarUnit;
{ *************************************************************** }
{ }
{ TFlatTitlebar }
{ Copyright ©2000 Lloyd Kinsella. }
{ }
{ FlatStyle is Copyright ©1998-2000 Maik Porkert. }
{ }
{ E-Mail: lloydk@iname.com }
{ Web: http://www.flatstyle.de/ }
{ }
{ *************************************... |
{$INCLUDE switches}
unit ClientTools;
interface
uses
Protocol;
const
nOfferedResourceWeights=6;
OfferedResourceWeights: array[0..nOfferedResourceWeights-1] of cardinal=
(rwOff, rwMaxScience, rwForceScience, rwMaxGrowth, rwForceProd, rwMaxProd);
type
TImpOrder=array[0..(nImp+4) div 4 *4 -1] of Shor... |
unit Editora;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, uADStanIntf,
uADStanOption, uADStanParam, uADStanError, uADDatSManager, uADPhysIntf,
uADDAptIntf, uADStanAsync, uADDAp... |
unit FrmAddDevices;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DB, ADODB, StdCtrls, Buttons, DBCtrls, ExtCtrls, RzCmboBx, Mask,
RzEdit, RzButton, FrmBase, RzSpnEdt, uDBFieldData, ActiveX;
type
TAddDevicesForm = class(TBaseForm)
Panel1: TPanel;
l... |
{
Find alternate textures pointing to invalid mesh nodes.
Supports Fallout 3, New Vegas and Skyrim.
}
unit AlternateTextures;
var
slNode: TStringList;
function ListNodes(aMesh: string; sl: TStringList): Boolean;
var
i: integer;
begin
sl.Clear;
aMesh := wbNormalizeResourceName(aMesh, resMesh);
if not Res... |
unit mypanel;
interface
uses e, elib, ExtCtrls, Graphics, Classes, Forms, Controls, Messages, Windows;
procedure DefineMyPanel();
type
TMyPanel = class(TPanel)
public
FWinFormID, FUnitID: Cardinal;
FInDesignMode: EBool;
public
function SaveProperties(): HGLOBAL;
function LoadProperties(Data: P... |
unit VisibleDSA.RandomQueue;
interface
uses
Classes,
SysUtils,
Generics.Collections;
type
TRandomQueue<T> = class(TObject)
private type
TList_T = TList<T>;
private
_list: TList_T;
public
constructor Create;
destructor Destroy; override;
procedure Enqueue(e: T);
function Deq... |
unit ACBrLibNFeDataModule;
{$mode delphi}
interface
uses
Classes, SysUtils, syncobjs,
ACBrNFe, ACBrNFeDANFeRLClass, ACBrMail,
ACBrPosPrinter, ACBrNFeDANFeESCPOS, ACBrDANFCeFortesFr, ACBrLibConfig,
ACBrLibMailImport, ACBrLibPosPrinterImport;
type
{ TLibNFeDM }
TLibNFeDM = class(TDataMod... |
unit Marvin.AulaMulticamada.Controlador.TipoCliente;
interface
uses
{ embarcadero }
Classes,
{ marvin }
uMRVControladorBase,
uMRVClasses,
uMRVClassesServidor,
{ interfaces }
Marvin.AulaMulticamada.Controlador.Intf,
{ exceções }
Marvin.AulaMulticamada.Excecoes.Cliente,
Marvin.AulaMulticamada.Exce... |
{$include kode.inc}
unit kode_voicemanager;
{
todo:
* don't call on_setSampleRate and on_setPitchBendRange to all voices..
a voice knows about the manager, so it can 'ask' about it if it
needs it..
}
//----------
{
handles 4 lists/buffers
FAllVoices - array created at startp, with max voices (polypo... |
{ MIT License
Copyright (c) 2020 Viacheslav Komenda
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... |
{*******************************************************************************
Title: T2Ti ERP
Description: VO relacionado à tabela [ECF_CHEQUE_CLIENTE]
The MIT License ... |
unit BusLine;
interface
uses
Aurelius.Mapping.Attributes;
type
[Entity]
[Automapping]
TBusLine = class
private
FID: Integer;
FDescription: string;
public
property ID: Integer read FID;
property Description: string read FDescription;
end;
implementation
end.
|
unit WMSGeoReference;
interface
uses
Classes, Graphics,
TeraWMSTools, TeraWMSToolsDefs, ShareTools, WMSGeoreferenceConfig, PlanarMathTools;
type
TStringArray = array of string;
TViewArea = class
Width, Height : integer;
MinX, MinY, MaxX, MaxY, PixelSize : Double;
procedure SetSize(aWidth, aHeight : integer... |
unit DCPblowfish;
{$MODE Delphi}
interface
uses
Classes, Sysutils, Crypto;
type
{ TCipherBlowfish }
TCipherBlowfish= class(TCipher)
protected
SBox: array[0..3,0..255] of DWord;
PBox: array[0..17] of DWord;
procedure InitKey(const Key; Size: longword); override;
pu... |
{$H+}
{$I nosale.inc}
{
The ZieglerCollection one (TM)
Version 2,00
Property-editors
This unit is only used at design-time
(C) Copyright 1995,96,97,98,99,2000 By ZieglerSoft, all rights reserved
}
... |
unit Server.Controller.ConsistirFinalizarLigacao;
interface
uses //Winapi.Windows, Winapi.Messages,
System.SysUtils, Server.Models.Cadastros.Clientes,
FireDAC.Comp.Client,
dbebr.factory.interfaces,
dbebr.factory.firedac,
ormbr.container.objectset.interfaces,
ormbr.container.objectset,
// ormbr.container.... |
unit UTemplateMethod;
interface
uses System.Generics.Collections;
type
TItem = class
private
FNome: string;
FValor: Double;
public
property Nome: string read FNome write FNome;
property Valor: Double read FValor write FValor;
constructor Create(_PNome: string; _PValor: Double);
end;
... |
unit unUtils;
interface
uses
Contnrs, System.Classes;
type
TUtils = class(TObjectList)
private
function GetItem(Index: Integer): TUtils;
function Add: TUtils;
public
property Items[Index: Integer]: TUtils read GetItem; default;
function RemoveZerosEsp(S: string): string;
end;... |
{
Demo Name: SMTP Relay
Created By: Andy Neillans
On: 31/12/2004
Notes:
Demonstrates sending an email without the use of a local SMTP server
Version History:
31st December 2004: Andy Neillans
Demo Created.
Tested:
}
unit fMain;
interface
uses
... |
{$MODE OBJFPC} { -*- delphi -*- }
{$INCLUDE settings.inc}
program test;
{$IFDEF DEBUG} {$DEFINE PARSEERROR} {$ENDIF}
uses
{$IFDEF DEBUG} debug, {$ENDIF} json, dom, webdom, htmlparser, utf8, exceptions, sysutils, fileutils, stringutils, math, {$IFDEF PARSEERROR} plasticarrays, {$ENDIF} canonicalstrings, ropes;
con... |
unit uCMDWrapper;
interface
uses
Winapi.Windows, uForm, DosCommand, Vcl.StdCtrls, Vcl.Buttons, PngBitBtn,
Vcl.Controls, System.Classes, ICSLanguages, Forms;
type
TfrmCMDWrapper = class(TfrmForm)
MemoLog: TMemo;
DosCommand: TDosCommand;
btnClose: TPngBitBtn;
procedure FormClose(Sender: TObject; ... |
{==============================================================================|
| MicroCoin |
| Copyright (c) 2018 MicroCoin Developers |
|=========================================================================... |
program PieChart;
{ Программа строит диаграмму, состоящую из процентного соотношения 25% + 60% + 15% }
uses Graph;
const
Radius = 80;
p1 = 0.25; { Примечание: проценты в сумме должны давать 1.0 (100%) }
p2 = 0.6;
p3 = 0.15;
var
x, y,
_From,
_To : integer;
Gd, Gm: Integer;
procedure... |
unit Frame.Second;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Grids, Vcl.ExtCtrls;
type
TSecondFrame = class(TFrame)
StringGrid1: TStringGrid;
tmrReady: TTimer;
procedure tmrReadyTimer(S... |
unit CharTestForm;
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.Layouts, FMX.Memo, FMX.Controls.Presentation, FMX.ScrollBox,
FMX.Memo.Types;
type
TForm1 = class(TFor... |
unit ZLibConst;
interface
resourcestring
sTargetBufferTooSmall = 'ZLib error: target buffer may be too small';
sInvalidStreamOp = 'Invalid stream operation';
implementation
end.
|
unit USplash;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes,
System.Variants, System.Threading, System.JSON,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Objects,
FMX.Layouts, FMX.Controls.Presentation, FMX.TabControl,
System.Math, System.Actions... |
unit OptionsSchemaBrowser;
interface
uses
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, BCControls.ComboBox, Vcl.ExtCtrls,
BCControls.Edit, BCControls.CheckBox, BCCommon.OptionsContainer, BCFrames.OptionsFrame, JvExStdCtrls, JvCheckBox;
type
TOptionsSchemaBrowserFra... |
unit FreeOTFESettings;
// Description:
// By Sarah Dean
// Email: sdean12@sdean12.org
// WWW: http://www.FreeOTFE.org/
//
// -----------------------------------------------------------------------------
//
interface
uses
Classes, // Required for TShortCut
IniFiles,
CommonSettings,
OTFEFree... |
{
Replace one type of map marker with the other one
}
unit ReplaceMapMarker;
const
// map marker types as seen in xEdit
sMapReplaceWhat = 'Farm';
sMapReplaceWith = 'Fort';
function Process(e: IInterface): Integer;
begin
// map markers are references
if Signature(e) <> 'REFR' then
Exit;
// referen... |
unit USettings;
interface
uses
Classes, UFastKeysSS;
type
TSettings = class
private
FFontName: string;
FDirs: TFastKeyValuesSS;
FAppDataDir: string;
FMyDocDir: string;
FFTPPassword: string;
FFTPUserName: string;
FMRUs: TStringList;
protected
FSpeakers: TStringList;
FCollec... |
unit sdlaudiomixer;
{******************************************************************************}
{
$Id: sdlaudiomixer.pas,v 1.1 2005/05/25 23:15:42 savage Exp $
}
{ }
{ Borland Delphi SDL_Mixer - Simple DirectMedia Layer Mixer L... |
{
Output meshes used in selected records
}
unit UserScript;
var
sl: TStringList;
function Initialize: integer;
begin
sl := TStringList.Create;
end;
function Process(e: IInterface): integer;
var
sig, s, ext: string;
i: integer;
begin
sig := Signature(e);
// those records don't use assets
if Element... |
{*******************************************************}
{ }
{ NTS Aero UI Library }
{ Created by GooD-NTS ( good.nts@gmail.com ) }
{ http://ntscorp.ru/ Copyright(c) 2011 }
{ License: Mozilla Pu... |
{
New script template, only shows processed records
Assigning any nonzero value to Result will terminate script
}
unit userscript;
// Called before processing
// You can remove it if script doesn't require initialization code
function Initialize: integer;
begin
Result := 0;
end;
// called for every record selec... |
unit Unit2;
interface
uses
System.Generics.Collections;
type
TItem = class
private
FNome: string;
FValor: Double;
public
property Nome: string read FNome write FNome;
property Valor: Double read FValor write FValor;
constructor Create(_PNome: string; _PValor: Double);
end;
TOrcament... |
{
YUYV to BGRA conversion routines
Copyright (C) 2013 Yuriy Pilgun
This program is provided under the terms of the MIT License.
}
unit YUV2RGB;
{$mode objfpc}{$H+}
interface
{
Conversion coefficients kRV, kGU, kGV, kBU are guessed without deep investigation.
Values of YUV components assumed to extend ... |
unit WinbooksExport;
interface
uses DBClient, DB, Qexport4, Qexport4DBFPATCH, sysutils, clientDMUnit, Dialogs,
Controls, DateUtils, GlobalsUnit;
type
TCSFDB = class
CSFDS: TclientDataset;
private
aRemoteDB: TRemoteDB;
public
constructor Create(RemoteDB: TRemoteDB);
procedure SaveToDbf;
pr... |
{ Subroutine STRING_FNAM_EXTEND (INNAM,EXTENSION,OFNAM)
*
* Make extended file name. INNAM contains a file name that may have
* an extension on it. EXTENSION is a PASCAL STRING with the
* name of one extension. OFNAM is returned as the file name
* in INNAM guaranteed to have the extension on it.
}
module s... |
unit SubdivisionReports;
interface
uses SDReport, Classes, BaseObjects, Well;
type
TQueryTemplateBuilder = class
private
FConstantFromPart: string;
FConstantWherePart: string;
FVariableSelectPart: string;
FConstantJoinPart: string;
FVariableJoinPart: string;
FConstantSelectPart:... |
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Author: François PIETTE
Creation: Jul 23, 2004
Description: SHA1 test drive (Adapted from C-code shown in RFC-3174)
Version: 1.00
EMail: francois.piette@overbyte.be francois.piette@rtfm.be
http:/... |
(* Ж) *)
function IsLetter(c : char): boolean;
begin
IsLetter := false;
if (c in ['A'..'Z']) or (c in ['a'..'z']) then
IsLetter := true;
end;
procedure WordList(const s : string);
var
isWord : boolean;
w : string;
i, len : word;
begin
isWord := false;
w := '';
len := Length(s);
for i:=1 to len do begin
... |
Unit PascalCoin.RPC.API.Explorer;
Interface
Uses
System.JSON,
System.Generics.Collections,
PascalCoin.RPC.Interfaces,
PascalCoin.RPC.API.Base;
Type
TPascalCoinExplorerAPI = Class(TPascalCoinAPIBase, IPascalCoinExplorerAPI)
Private
Protected
Function GetAccount(Const AAccountNumber: Cardinal): IPas... |
program P3;
const
filename = 'presidents.txt'; //Const of file name
MAX_LENGTH = 12; //Character limit for name
space = ' ';
type
namestring = PACKED ARRAY [1..MAX_LENGTH] of char;
PresidentInfo = record // President Info Record that has Start & End Year F and L name and Middle Initials... |
unit dao.Pedido;
interface
uses
UConstantes,
classes.ScriptDDL,
model.Pedido,
System.StrUtils,
System.Math,
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FireDAC.Comp.Client, FireDAC.Comp.DataSet;
type
TPedidoDao = class(TObject)
strict private... |
{*******************************************************************************
Title: T2Ti ERP
Description: VO relacionado à tabela [CONTABIL_TERMO]
The MIT License ... |
unit rect;
{-------}
interface
{-------}
type
tpoint=object
x,y:integer;
end;
trect=object
a,b:tpoint;
procedure assign(ax,ay,bx,by:integer);
procedure copy(r:trect);
procedure move(dx,dy:integer);
procedure grow(dx,dy:integer);
procedure inter(r:trect);
procedure ... |
unit Entidade.Pessoa;
interface
type
TEntidadePessoa = class;
iEntidadePessoa = interface
function Informacao : String;
function _this : TEntidadePessoa;
end;
TEntidadePessoa = class(TInterfacedObject, iEntidadePessoa)
private
Fidade: integer;
Fnome: string;
procedure Setidade(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.