text stringlengths 14 6.51M |
|---|
unit MinimalTrackBar;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs,
Math, DrawUtils, GraphUtil;
type
TTrackButton = (tbNone, tbAuto, tbButton);
TMinimalTrackBar = class(TGraphicControl)
private
FLast: integer;
FOnChange: TNotifyEvent;
F... |
{
ormbr Brasil é um ormbr simples e descomplicado para quem utiliza Delphi
Copyright (c) 2016, Isaque Pinheiro
All rights reserved.
GNU Lesser General Public License
Versão 3, 29 de junho de 2007
Copyright (C) 2007 Fr... |
unit ReportUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls, ExtCtrls, xlReport, xlcClasses, DB,
IBCustomDataSet, IBQuery;
type
{ TReportForm }
TCustomReportProgress = procedure (AutoMax, AutoProgress: Integer; var Max, Progress: Int... |
unit unDadosEmpresa;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, unPadrao, Menus, DB, ActnList, StdCtrls, Buttons,
ExtCtrls, ComCtrls, DBClient, ExtDlgs,
Mask, DBCtrls,
Datasnap.Provider, Data.SqlExpr, FMTBcd, System.Actions, uniLabel, uniButton,
uni... |
unit uFuncoes;
interface
Uses DateUtils, SysUtils, Classes;
Function StrZero(Zeros:string;Quant:integer):String;
function Empty(inString:String): Boolean;
Function Replicate( Caracter:String; Quant:Integer ): String;
Function Alltrim(const Search: string): string;
function RemoveChar(Const Texto:String):String;
func... |
(******************************************************************************
* PasVulkan *
******************************************************************************
* Version see PasVulkan.Framework.pas ... |
program ejer2Registros;
{
Un centro de deportes quiere procesar la información de sus clientes y de los 4 tipos de actividades que ofrece: 1) Musculación,
* 2) Spinning, 3) Cross Fit, 4) Libre.
* Para ello, se debe leer y guardar el precio mensual de cada actividad.
* Además, se debe leer para cada cliente: códi... |
{------------------------------------
功能说明:实现IListFiller接口
创建日期:2010/05/17
作者:wzw
版权:wzw
-------------------------------------}
unit ListFiller;
interface
uses sysUtils, Classes, DB, DBClient, SysFactory, DBIntf, SvcInfoIntf;
type
TListFiller = class(TInterfacedObject, IListFiller, ISvcInfo)
private
p... |
unit UserAcc;
interface
uses sysUtils, dbConn_u;
type
TAccount = class(TObject)
private
EmployeeID : string;
firstName : string;
Surname : string;
Gender : string;
Email : string;
SAID : string;
Password : string;
ACCOUNT_STATUS : Boolean;
DateHired : TDate;
DateFired : TDate;
Admin : boolean;
hW... |
unit LabInterfaceSetup;
// -------------------------------------
// Laboratory Interface Setup Dialog Box
// -------------------------------------
// 15.06.11 New form for laboratory interface setup only
// (previously handled in setupdlg form)
// 20.09.11 A/D voltage range index now acquired from and written ... |
unit xe_SearchWord;
interface
uses
sysutils, Classes, Vcl.Dialogs, cxPC, cxGroupBox, cxCheckBox,
cxRadioGroup, cxLabel, cxGridDBTableView, cxGridBandedTableView, cxDropDownEdit,
Vcl.StdCtrls, xe_gnl, Vcl.Graphics, cxButtons;
function GetParentNameCheck(AName : String; AControl: TComponent): Boolean;
proced... |
unit cmpHyperlinkButton;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ImgList;
type
THyperlinkButton = class(TGraphicControl)
private
fImageIndex: Integer;
fImages: TImageList;
FMouseInControl : Boolean;
FFontColor : TColor;
FFontSty... |
unit OText;
{Драйвер исходного текста}
interface
const
chSpace = ' '; {Пробел }
chTab = chr(9); {Табуляция }
chEOL = chr(10); {Конец строки}
chEOT = chr(0); {Конец текста}
var
Ch : char; {Очередной символ }
Line : integer; {Номер строки }
Pos : integer; ... |
unit ufrmTipoExportacao;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters,
cxContainer, cxEdit, dxSkinsCore, dxSkinBlack, dxSkinBlue,
dxSkinBlueprint, dxSkinCaramel, dxSkinCoffee, dxSkinDarkRoom,
... |
unit uMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Menus, ComCtrls, ToolWin, ImgList;
type
TItemInfo = class
PackageFullName: String;
end;
TfrmMain = class(TForm)
lis_Package: TListBox;
lis_RequirePackage: TListBox;
Tool... |
unit uOPCSetValueFrame;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, StdCtrls, AppEvnts;
type
TFrame1 = class(TFrame)
Label1: TLabel;
eNewValue: TEdit;
cbNewValue: TComboBox;
cbUseDate: TCheckBox;
dtDate: TDateTimePicker;
c... |
unit ray_application;
{$mode objfpc}{$H+}
interface
uses
ray_header;
type
{ TRayApplication }
TRayApplication = class (TObject)
private
FClearBgColor: TColor;
procedure SetCaption(AValue: string);
protected
public
// Create a new application
constructor Create; virtual;
// Free the appl... |
{ *******************************************************************************
Title: T2Ti ERP
Description: Janela Para Entrada de Nota Fiscal
The MIT License
Copyright: Copyright (C) 2016 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documen... |
{
Search Data folder for loose textures without mipmaps
}
unit DDSFindTexturesNoMipMaps;
procedure ScanTextures(aFolder: string);
var
TDirectory: TDirectory; // to access member functions
files: TStringDynArray;
dds: TwbDDSFile;
s: string;
i: integer;
begin
aFolder := IncludeTrailingBackslash(aFolder);
... |
unit PFacturaElectronica_Reglamentaciones;
interface
type
TFEReglamentacion = class
class function ComoMoneda(dMonto: Currency; const aDecimalesDefault: Integer = 2): String;
class function DeFechaHoraISO8601(const aFechaISO8601: String) : TDateTime;
class function ComoFechaComun(Fecha: TDateTime... |
{$MODE OBJFPC} { -*- delphi -*- }
{$INCLUDE settings.inc}
unit plasticarrays;
interface
type
generic PlasticArray <T, Utils> = record
private
type
PPlasticArray = ^PlasticArray;
TArray = array of T;
var
FArray: TArray;
FFilledLength: Cardinal;
function GetItem(const Inde... |
{Ä Fido Pascal Conference ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PASCAL Ä
Msg : 246 of 298
From : David Solly 1:163/215.0 12 Apr 93 10:56
To : Moshe Harel
Subj : Q-Text to Letrix File 1/
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
F... |
{
ORM Brasil é um ORM simples e descomplicado para quem utiliza Delphi
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 S... |
{------------------------------------
功能说明:系统通知服务
创建日期:2011/07/16
作者:wzw
版权:wzw
-------------------------------------}
unit SysNotifyService;
interface
uses SysUtils, Classes, uIntfObj, NotifyServiceIntf, SvcInfoIntf;
type
TNotifyObj = class(TObject)
public
procedure SendNotify(Flags: Integer; Intf:... |
unit FirmaDigitale3;
interface
uses Classes,IInterface,CCypher_TLB,FirmaDigitale;
type
TFirmaCompEd = class(TFirmaDigitale)
private
Digest1: TDigest;
certID: integer;
keyID: integer;
procedure StreamToVariant (Stream : TMemoryStream; var v : OleVariant);
procedure VariantToStream (const v : ... |
unit unPadrao;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, StdCtrls, Menus, Buttons, DBClient, DB, ActnList, DBXCommon,
ComCtrls, Variants, SQLExpr, Funcoes, ConstPadrao, Provider, DBGrids,
System.Actions, udmGeralBase, UniGuiForm, uniGUIBaseClasses, uniG... |
unit MinimalCheckboxGroup;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, LResources, Forms, Controls, ExtCtrls, Graphics,
Dialogs, contnrs, MinimalCheckbox, DrawUtils, Math;
type
TIndexEvent = procedure(Sender: TObject; Index: integer) of object;
TCheckType = MinimalCheckbox.TCheckType;
TBorder... |
{
Hacked on 30 june 1993 by Wolfgang Gross
Email: Gross@aecds.exchi.uni-heidelberg.de
Modified on 8 july 1993 by Rutger van de GeVEL
Email: Rutger@kub.nl
Compiler:
- Turbo/Borland Pascal, Version >= 6.0
- Turbo Vision, Version >= 1.0
Warning: You may need to change the cmStart/StopScreen... |
{*******************************************************************************
作者: dmzn@163.com 2008-08-07
描述: 系统数据库常量定义
备注:
*.自动创建SQL语句,支持变量:$Inc,自增;$Float,浮点;$Integer=sFlag_Integer;
$Decimal=sFlag_Decimal;$Image,二进制流
*******************************************************************************... |
unit InfraValueTypeIntf;
interface
uses
Classes,
InfraCommonIntf;
type
IProperty = interface;
IInfraType = interface(IElement)
['{CC993C1B-321B-49E6-8167-23002B298000}']
function Clone: IInfraType;
function Equals(const Obj: IInfraType): Boolean;
function GetIsDerived: Boolean... |
unit UCdsFunctions;
interface
uses
DBClient, DB, SimpleDS;
type
TCdsFunctions = class
public
class function CreateAggregate(Cds: TClientDataSet; const Expression: string): TAggregate; overload;
class procedure DefineIndex(Cds: TClientDataSet; const IndexName: string; const Fields, DescFields: array of ... |
{ Subroutine STRING_T_INT_MAX_BASE (S, BASE, FLAGS, VAL, STAT)
*
* Convert string S to integer VAL. BASE is the number base of string S.
* It must be in the range of 2 to 36. STAT is the completion status code.
* It is set to BAD_INT if conversion was not possible. FLAGS is a set of
* independent flags. T... |
{+-----------------------------------------------------------------------------+
| Unit: mwLocalStr
| Created: 1999-08
| Version: 0.90
| Last change: 1999-11-18
| Description: put all strings that might need localisation into this unit
+--------------------------------------------------------... |
{
* Copyright 2013 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
{}
unit ssl_buffer;
interface
uses ssl_types;
var
BUF_MEM_new: function: PBUF_MEM; cdecl = nil;
BUF_MEM_free: procedure(a: PBUF_MEM); cdecl = nil;
BUF_MEM_grow: function(str: PBUF_MEM; len: TC_SIZE_T): TC_INT; cdecl = nil;
BUF_MEM_grow_clean: function(str: PBUF_MEM; len: TC_SIZE_T): TC_INT; cdecl = ni... |
(******************************************************************************
* PasVulkan *
******************************************************************************
* Version see PasVulkan.Framework.pas ... |
{*******************************************************************************
Title: T2Ti ERP 3.0
Description: Model relacionado à tabela [COMPRA_PEDIDO_CABECALHO]
The MI... |
unit Principal;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Objects,
FMX.ListBox, FMX.Controls.Presentation, FMX.StdCtrls, FMX.Edit, FMX.ImgList;
type
TResistencia = record
Resistencia: ... |
unit PascalCoin.RPC.Node;
interface
uses System.Generics.Collections,
PascalCoin.RPC.Interfaces, System.JSON;
type
TPascalCoinNetProtocol = class(TInterfacedObject, IPascalCoinNetProtocol)
private
FVer: Integer;
FVer_A: Integer;
protected
function GetVer: Integer;
function GetVer_A: Integer;... |
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Author: François PIETTE @ OverByte
Web: http://www.overbyte.be
http://francois-piette.blogspot.be
Creation: Dec 22, 2013
Description: INI file concept implemented for both Windows and Android.
This so... |
unit ServerWinshoeNNTP;
interface
////////////////////////////////////////////////////////////////////////////////
// Author: Ozz Nixon
// ..
// This layer actually parses the commands, fires the events.
// The implementation of this protocol requires that the
// "server app" actually does the 'writeln' of t... |
{
This software is Copyright (c) 2015 by Doddy Hackman.
This is free software, licensed under:
The Artistic License 2.0
The Artistic License
Preamble
This license establishes the terms under which a given free software Package may be copied, modified, distributed, and/or redistributed. The intent is th... |
unit HotelsPlugin;
interface
uses PluginIntf, ControlPanelElementIntf, DataModuleIntf, Graphics,
PluginManagerIntf;
type
THotelsPlugin = class(TPlugin, IPlugin, IControlPanelElement, IDataModule)
private
FDisplayName: string;
FDescription: String;
FBitmap: TBitmap;
public
constr... |
type
matrix:array of array of integer;
function rows(m: matrix): integer;
begin
exit(length(a));
end;
function cols(m: matrix): integer;
begin
exit(length(s[0]));
end;
function multiply(a,b:matrix): matrix;
var
c:matrix;
m,p,n:integer;
i,j,k:integer;
sum:integer=0;
begin
if col(a) <> rows(b) then
begin
w... |
unit Settings;
interface
uses
Winapi.Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, System.UITypes, Vcl.ComCtrls, System.Win.Registry,
Winapi.ShellAPI;
type
TFormSettings = class(TForm)
ColorPicker: TColorDialog;
ButtonApply: TButt... |
Program FeldMaxTest (input,output);
const
UNTEN = 0; { Array-Untergrenze }
OBEN = 10; { Array-Obergrenze }
type
tIndex = UNTEN..OBEN;
tFeld = array[tIndex] of integer;
var
Feld : tFeld;
function FeldMaxA (
var inFeld : tFeld;
inUnten,
inOben : tIndex) : integer... |
{-------------------------------------------------------------------------------
Copyright 2012 Ethea S.r.l.
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... |
{*******************************************************}
{ }
{ NTS Aero UI Library }
{ Created by GooD-NTS ( good.nts@gmail.com ) }
{ http://ntscorp.ru/ Copyright(c) 2011 }
{ License: Mozilla Pu... |
unit InfraValueType;
interface
{$I InfraTypes.Inc}
uses
{$IFDEF USE_GXDEBUG}DBugIntf, {$ENDIF}
Classes,
Contnrs,
InfraCommonIntf,
InfraCommon,
InfraBasicList,
InfraNotify,
InfraValueTypeIntf;
type
{! Classe base para ValueTypes }
TInfraType = class(TElement, IInfraType, IProper... |
unit InfraGUIBuilderIntf;
interface
uses
InfraCommonIntf, InfraValueTypeIntf, Controls, ExtCtrls, LayoutManager,
GUIAnnotationIntf, Forms;
type
TGUIResult = (grNone, grSave, grCancel);
IGUIControl = interface;
IGUIControlList = interface;
IGUI = interface(IBaseElement)
['{5E2DBC1... |
unit Model.Artista;
interface
uses
Spring,
Spring.Persistence.Mapping.Attributes;
type
[ Entity ]
[ Table('Artist') ]
TArtista = class
private
[ AutoGenerated ]
FArtistId: integer;
FName : string;
procedure SetArtistId(const Value: integer);
procedure SetName(const Value: string)... |
unit Expedicao.Models.uInfracao;
interface
type
TInfracao = class
private
FInfracaoOID: Integer;
FTipoInfracao: string;
FVeiculoOID: Integer;
FData: TDateTime;
FHora: string;
FAutoInfracao: string;
FOrgao: string;
FValor: Currency;
FAutorInfracao: Integer;
... |
{
Copyright 2019 Ideas Awakened Inc.
Part of the "iaLib" shared code library for Delphi
For more detail, see: https://github.com/ideasawakened/iaLib
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... |
unit FailureTest;
interface
uses
System.SysUtils,
DUnitX.TestFramework;
type
[TestFixture]
TFailureTest = class(TObject)
public
[Test] procedure test_bad_callback_flow;
[Test] procedure test_resolving_twice;
end;
implementation
uses
Promise.Proto, ValueHolder
;
{ TFail... |
{ complete copy -- to show one possible implementation }
program copyprog (input, output);
const
ENDFILE = -1;
NEWLINE = 10; { ASCII value }
type
character = -1..127; { ASCII, plus ENDFILE }
{ getc -- get one character from standard input }
function getc (var c : character) : character;
var
ch : c... |
function startsWithAt(s,t:string; start:integer):boolean;
var
i:integer;
begin
if start + length(t)-1 > length(s) then
exit(false);
for i:= 1 to length(t) do begin
if t[i] <> s[start+i-1] then
exit(false);
end;
exit(true);
end;
//replace all occurrences of a with b in c
function replace(c,a,b:string):strin... |
unit aDCCommandHandler;
interface
uses
Classes,
IdComponent, IdCommandHandlers, IdContext;
type
TaDCCommandHandlers = class;
TaDCNoCommandHandlerEvent = function(ASender: TaDCCommandHandlers; const AData: string;
AContext: TIdContext): Boolean of object;
TaDCCommandHandlers = class(TIdComponent)
pr... |
unit Bench;
var
GRed: Word = 0x4000;
procedure Print(AText: string);
var
LVid: Word;
begin
LVid := 0x8000;
while Word(AText)^ > 0 do
begin
LVid^ := GRed + Word(AText)^;
LVid := LVid + 1;
Word(AText) := Word(AText) + 1;
end;
end;
begin
Print('Hello world!');
asm
:halt
set pc, ... |
unit uSpinLockLocker;
interface
uses
uLockableIntf
, System.SyncObjs
, WinAPI.Windows // inline
;
type
TSpinLockLocker = class(TInterfacedObject, ILockable)
private
FSpinLock: TSpinLock;
public
constructor Create;
procedure Lock;
procedure Unlock;
end;
implementation
{ TS... |
program Stat;
uses Objects, SysUtils, Mylib;
type
SWORD = SmallWord;
DWORD = Word;
PAddress = ^TAddress;
TAddress = record
Zone, Net, Node, Point: SWORD;
end; { TAddress }
PEcho = ^TEcho;
TEcho = record
Tag : PString;
Files: Longint;
Bytes: Longint;
end; { TEcho ... |
unit wall;
interface
uses Darstellbares, VE, funktionen, Zeichnen,
graphics;
type Twall = class(Tdarstellbares)
public
pos2 : Tvector;
width : Real;
constructor create(x1, y1, x2, y2, width : Real; color : Tcolor); overload;
constructor create(pos, pos2 : Tvector; width... |
unit MainForm;
interface
uses
Generics.Collections, Winapi.Windows, Winapi.Messages, System.SysUtils,
System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, Aurelius.Bind.Dataset,
atDiagram,
Vcl.Grids, Vcl.DBGrids, Vcl.StdCtrls,
Entities,
Aurelius.Engine.ObjectMana... |
unit D16Assembler;
interface
uses
Classes, Types, SysUtils, Generics.Collections, Lexer, OpCode, LineMapping;
type
TD16Ram = array[0..$FFFE] of Word;
TParameter = class
private
FLabelName: string;
FValue: Word;
FRegCode: Byte;
FHasValue: Boolean;
function GetHasLabel: Boo... |
unit Model.Orders;
interface
uses
System.Generics.Collections,
Plus.Nullable;
type
TOrder = class
private
FShippedDate: Nullable<TDateTime>;
FOrderDate: Nullable<TDateTime>;
FRequiredDate: Nullable<TDateTime>;
FEmployeeID: Nullable<Integer>;
FCustomerID: Nullable<String>;
FShipVia: Nu... |
unit Display;
interface
uses sdl2, sdl2_image, sysutils, Game;
var mainWindow : PSDL_Window;
mainRenderer : PSDL_Renderer;
tileTexture : PSDL_Texture;
procedure ExceptionHandler();
procedure InitializeDisplay();
procedure Update(field : GameField); //Draws a frame.
implementation
procedure ExceptionHandler();... |
unit SCrypt;
(*
Sample Usage
============
//Hash a password
hash := TSCrypt.HashPassword('correct horse battery staple');
//Check if password matches previous hash
isValid := TScrypt.CheckPassword('correct horse battery staple', hash);
//Derive an encryption key from a password
secretKey := TScrypt.G... |
{
Read Books Aloud dynamic patcher.
Hotkey: Ctrl+Shift+B
}
unit ReadBooksAloud;
const
sRBAFileName = 'ReadBooksAloud.esm';
var
pluginRBA, pluginPatch: IInterface;
tplBook, tplSound, tplSoundMarker: IInterface;
bPatchAll, bSkipBooksWithNoAudio: boolean;
slBooks: TStringList;
//=======================... |
unit city_class;
interface
uses Classes, SysUtils, utils;
type forecast = record
day: byte;
month: byte;
year: word;
weekday: byte;
tod: byte;
hour: byte;
cl: byte;
pt: byte;
ts: byte;
altimg: string;
phenomena: byte;
p: word;
t: shortint;
hum: byte;
wd: byte;
ws: byte;
end;
type... |
// ----------------------------------------------------------------------------
// Unit : PxClasses.pas - a part of PxLib
// Author : Matthias Hryniszak
// Date : 2005-07-18
// Version : 1.0
// Description : Base classes definitions
// Changes log : 2005-07-18 - initial version
// ToDo ... |
unit ufrmWebserviceCliente;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, InvokeRegistry, Rio, SOAPHTTPClient;
type
TUtilHTTPRIO = class(TObject)
private
fMemoResponse: TMemo;
fStrRequest: TStringList;
fStrResponse: TString... |
unit use1902;
{ ============================================================
CED 1902 amplifier control module
(c) J. Dempster, University of Strathclyde, 1996-98
23/8/98
8/2/01 Updated to function as proper data module
22/9/02 Communications with CED 1902 via COM port now works under Windows NT/2000
1/10/3... |
unit unitMIMECodec;
interface
uses Windows;
type
TEncoder = class
public
constructor Create; virtual;
procedure Encode (const inb : AnsiString; var outb : AnsiString); virtual; abstract;
end;
TDecoder = class
public
constructor Create; virtual;
procedure Decode (const inb : AnsiString; var out... |
unit THTTPSBrowser.test;
interface
uses
httpsbrowserPlugin,
DUnitX.TestFramework;
type
[TestFixture]
THttpsBrowserTests = class(TObject)
private
FPlugin:THTTPSBrowserPlugin;
public
[Setup]
procedure Setup;
[TearDown]
procedure TearDown;
[Test]
procedure Test1;
// Test wi... |
(******************************************************************************
* PasVulkan *
******************************************************************************
* Version see PasVulkan.Framework.pas ... |
unit VSEConsole;
{$IFNDEF VSE_CONSOLE}{$ERROR Please don't include VSEConsole unit without VSE_CONSOLE defined}{$ENDIF}
interface
uses
Windows, AvL, avlSyncObjs, avlMath, avlUtils, OpenGL, VSEOpenGLExt, VSECore
{$IFDEF VSE_LOG}, VSELog{$ENDIF};
type
TOnConsoleCommand = function(Sender: TObject; Arg... |
{*******************************************************************************
Title: T2Ti ERP
Description: Controller do lado Cliente relacionado à tabela [REQUISICAO_INTERNA_CABECALHO]
... |
{*******************************************************************************
Falcon Sistemas
www.falconsistemas.com.br
suporte@falconsistemas.com.br
Written by Marlon Nardi - ALL RIGHTS RESERVED.
*****************... |
(*
@abstract(Regroupe les classes de base à hériter pour la gestion de shader hardware (OpenGL/Vulkan) ou software.)
--------------------------------------------------------------------------------
@created(2018-07-11)
@author(J.Delauney (BeanzMaster))
Historique : @br
@unorderedList(
@item(07/02/2018... |
unit Grijjy.TextToSpeech.Windows;
{< Text To Speech engine implementation for Windows }
interface
uses
Winapi.Windows,
Winapi.ActiveX,
Grijjy.TextToSpeech.Base;
{ Partial import of sapi.dll type library }
const
CLASS_SpVoice: TGUID = '{96749377-3391-11D2-9EE3-00C04F797396}';
type
SPVISEMES = TOleEnum;
... |
uses math;
type
point=record
x,y:extended;
end;
segment=record
p1,p2:point;
end;
const
ep = 1e-11; eps = ep;
inf = 1.1e4932;
o : point = (x:0; y:0);
operator + (p1,p2:point) res:point;
begin
res.x := p1.x + p2.x;
res.y := p1.y + p2.y;
end;
operator - (p1,p2:point) res:point;
begi... |
unit ZPL2Reg;
interface
uses
Classes;
procedure Register;
implementation
{$R 'ZPL2.dcr'}
uses
ZPL2, ZPL2Barcodes;
procedure Register;
begin
RegisterComponents('ZPL2', [
TZPL2TextField,
TZPL2BarcodeCode128,
... |
unit uJxdSystemFileIcon;
interface
uses
Windows, SysUtils, Classes, Controls, Graphics, ShellAPI;
type
TxdSystemFileIcon = class
public
constructor Create(const ASmallIcon: Boolean);
destructor Destroy; override;
procedure GetSysFileIcon(const AFileName: string; var AIcon: TIcon);
private
FIc... |
unit ManSoy.Encode;
interface
uses
Winapi.Windows, System.Classes, System.SysUtils, Soap.EncdDecd;
{$REGION 'MD5'}
type
TProgressEvent = procedure (aPercent: Integer) of object;
MD5Count = array[0..1] of DWORD;
MD5State = array[0..3] of DWORD;
MD5Block = array[0..15] of DWORD;
MD5CBits = array[0..7] of ... |
unit Imap;
interface
type
HCkEmailBundle = Pointer;
HCkSshKey = Pointer;
HCkSecureString = Pointer;
HCkStringBuilder = Pointer;
HCkSocket = Pointer;
HCkCert = Pointer;
HCkCsp = Pointer;
HCkSsh = Pointer;
HCkBinData = Pointer;
HCkString = Pointer;
HCkXmlCertVault = Pointer;
HCkByteData = Pointer;
HCkMessageSet = Poin... |
{$MODE OBJFPC} { -*- delphi -*- }
{$INCLUDE settings.inc}
unit specutils;
interface
function ASCIILowerCase(const Data: UTF8String): UTF8String;
implementation
function ASCIILowerCase(const Data: UTF8String): UTF8String;
var
Index: Cardinal;
begin
Result := Data;
if (Length(Result) > 0) then
for Inde... |
unit SiteStatsDM;
interface
uses
Classes, DB, DBClient, SOAPConn, PluginManagerIntf, IdIntercept,
IdLogBase, IdLogFile, IdBaseComponent, IdComponent, IdTCPConnection,
IdTCPClient, IdHTTP, xmldom, XMLIntf, msxmldom, XMLDoc,
DataBaseIntf;
type
TDM = class(TDataModule, IDataBase)
stsummary: TC... |
//Create By Terry at 2008-11-24
unit uDShowSub;
interface
uses
Windows, SysUtils, Classes, DirectShow9, DSUtil, ActiveX, MMSystem, Registry;
type
pHardwareFilter = ^THardwareFilter;
THardwareFilter = record
pFilter: IBaseFilter;
FriendlyName: WideString;
end;
pPinInfo = ^TPinInfo;
pFilterHeader =... |
unit UMyBackupRemoveXml;
interface
uses UChangeInfo, xmldom, XMLIntf, msxmldom, XMLDoc, UXmlUtil;
type
{$Region ' 修改 ' }
// 修改
TRemoveBackupNotifyChangeXml = class( TChangeInfo )
public
PcID : string;
public
constructor Create( _PcID : string );
end;
// 修改 指定路径
TRemoveBackupNotifyWriteXm... |
/// <summary>
/// <para>
/// IQSecurityService 是用于实现用户账号及权限管理的服务。 其它依赖于此模块的服务可以通过此服务,
/// 获取当前用户的信息,以及当前用户是否被授权访问指定权限对象信息。
/// </para>
/// <para>
/// IQSecurityService 的注册服务路径为
/// /Services/Security,可以通过该路径或服务ID获取到该服务的管理实例。
/// </para>
/// <para>
/// IQSecurityService 不提供账号的添加、删除账号及角色等服务,要执行该类型的操作,调用 IQSecurityService... |
unit crpMapper;
{written by Charles Richard Peterson, 2007; You can reach me at
www.houseofdexter.com or houseofdexter@gmail.com; The code is released under
Mozilla Public License 1.1 (MPL 1.1); }
interface
uses
Classes, SysUtils, IniFiles, ComCtrls, crpBase, crpRule, crpZeeMapperDefault,
crpKeyValue;
type
... |
procedure TForm1.Button1Click(Sender: TObject);
var
V : Variant; // Переменная, в которой создаётся объект MATLAB
MReal : OleVariant; // При работе с матрицами возвращается
MImage: OleVariant; // комплексный результат
// Здесь мы применяем тип OleVariant для СОМ-ориентированной задачи
i,j :... |
unit teste.dao.pedido;
interface
uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
teste.classes.pedido,
Datasnap.Provider,
Datasnap.DBClient,
FireDAC.Stan.Option,
teste.dao.objects;
type
TdaoPedido = class
private
public
class procedure getPedido(var oclass: Tpedid... |
unit Unit2;
interface
uses Math;
const e = 0.001;
type
Fun = function(x: extended): extended;
TTask = class
Counter: integer;
constructor Create;
function f(x: extended): extended;
function DivF(a1,a2: extended): extended;
function MDP(a1,a2: extended): extended;
end;
implementation
constructor TTask.Crea... |
unit SchemaCompare;
interface
uses
Winapi.Windows, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ImgList,
ComCtrls, JvExComCtrls, JvComCtrls, BCControls.PageControl, Vcl.StdCtrls, Vcl.Buttons, Vcl.ExtCtrls, ToolWin,
BCControls.ComboBox, VirtualTrees, DB, MemDS, ... |
unit CRBoxEditFrame;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, CommonFrame, ComCtrls, StdCtrls, ExtCtrls,
CommonObjectSelectFrame, SlottingPlacement, BaseObjects, CRPartPlacementsEditorForm,
jpeg, UniButtonsFrame, CRBoxPictureFrame;
type
TfrmBoxPrope... |
unit SnowballProgram;
interface
Type
TAmongHandler = Function : Boolean of Object;
Type
TAmong = record
Str : AnsiString; // search string
Index : Integer; // index to longest matching substring
Result : Integer; // result of the lookup
Method : TAmongHandle... |
unit CommonWellSearchForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, CheckLst, ExtCtrls, Menus;
type
TfrmWellSearch = class(TForm)
pnlButtons: TPanel;
btnClose: TButton;
btnResultsToFilter: TButton;
gbxName: TGroupBox;
lblAr... |
program auth_service;
{$mode delphi}{$H+}
uses
SysUtils,
fphttpapp,
config.types,
controller.base,
controller.auth;
const
CONFIG_NAME = 'auth_service_config.json';
var
LConfig : IJSONConfig;
LError: String;
begin
WriteLn('authentication service started...');
//create and load config if one exist... |
unit UMyShareScan;
interface
uses Classes, Generics.Collections, SysUtils, Windows, UMyUtil, SyncObjs;
type
// 共享扫描信息
TFileShareScanInfo = class
public
DesPcID : string;
ShareScanPath : string;
ShareScanType : string;
public
constructor Create( _DesPcID : string );
procedure SetShareSc... |
unit Unit1;
interface
uses
RestServer,
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
ListBox1: TListBox;
Button2: TButton;
procedure Button1Click... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.