text stringlengths 14 6.51M |
|---|
unit uidraw_stretch;
interface
uses
ui.color, ui.bitmap, ui.space, uidraw.resampler;
procedure Bitmap32Stretch(ADstBitmap32: PBitmap32; ADstRect: TUIRect; ASrc: PBitmap32; ASrcRect: TUIRect; AResampler: PBaseResampler);
implementation
uses
Math,
BaseType,
uidraw_stretch_nearest,
ui... |
unit SystemAdministrationFormViewModelMapper;
interface
uses
SystemAdministrationFormViewModelMapperInterface,
SystemAdministrationFormViewModel,
SystemAdministrationPrivilegeSetHolder,
SystemAdministrationPrivileges,
SystemAdministrationPrivilegeViewModel,
DB,
SysUtils,
Classes;
type
TSystemAdmi... |
unit untDesenhaFacil;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TForm1 = class(TForm)
pbxEx: TPaintBox;
btnDraw: TButton;
procedure btnDrawClick(Sender: TObject);
private
{ Private declarations }
... |
unit main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
ExtCtrls, sdpoZMQ, BGRABitmap, BGRABitmapTypes, math;
type
TRemoteImage = packed record
id, Number, size, NumPackets, ActPacket: integer;
data: array[0..511] of byte;
end;
{ TF... |
unit AssetGroupTest;
interface
uses dbTest, dbObjectTest, TestFramework, ObjectTest;
type
TAssetGroupTest = class(TdbObjectTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
end;
TAssetGroup = class(TObjectTest)
private
function InsertDefault: integer; override;
... |
object GlbTrans: TGlbTrans
Left = 901
Top = 403
BorderStyle = bsToolWindow
Caption = 'Global Transposition'
ClientHeight = 150
ClientWidth = 324
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
FormStyle = ... |
unit formPharmacyController;
interface
uses
System.SysUtils, System.Classes, formPharmacy, dmLocalData, System.Actions,
Vcl.ActnList, dmDelta;
type
TdmPharmacyController = class(TDataModule)
ActionList: TActionList;
actAddOrder: TAction;
actFetchDeltas: TAction;
actPostDeltas: TAct... |
unit ThreadObjectList;
interface
uses SysUtils, Classes, Contnrs, Windows, IniFiles, SyncObjs;
type
{ TThreadObjectList class }
TThreadObjectList = class
private
FList: TObjectList;
FLock: TRTLCriticalSection;
FDuplicates: TDuplicates;
function GetItems(Index: Integer): TObject... |
unit uFrmSetting;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, FireDAC.VCLUI.Memo;
type
TfrmSetting = class(TForm)
Button1: TButton;
GroupBox1: TGroupBox;
Label9: TLabel;
Label... |
program main;
{$mode objfpc}{$H+}
{ Blink IP-Address }
{ }
{ This example uses the Activity LED to show the last octet of the IP-address.}
{ See comment in unit BlinkIP. ... |
unit guiScrb;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error,
FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDA... |
unit ExternalData;
interface
uses DB;
type
TExternalData = class
protected
FActive: boolean;
FDataSet: TDataSet;
FOEM: boolean;
// Установка на первую запись
procedure First; virtual; abstract;
public
constructor Create; virtual;
destructor Destroy; override;
function EOF: boole... |
unit nosonet_main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, DefaultTranslator,
ComCtrls, StdCtrls, Menus, Grids, LCLTranslator, ExtCtrls, NosoNet_Language,
NosoNet_Functions, LCLType, nosonet_file ;
type
{ TForm1 }
NodeData = Packed Record
ip: strin... |
program DocVariantTest;
//{$mode objfpc}{$H+}
{$I Synopse.inc}
uses
{$I SynDprUses.inc}
{$IFDEF UNIX} {$IFDEF UseCThreads}cthreads, {$ENDIF} {$ENDIF}
Classes,
SysUtils,
TypInfo,
CustApp,
Variants,
VarUtils,
ComObj,
SynCommons,
uDocVariantTest,
ParseNumberTest,
main,
fpht... |
unit dmDataSetSelector;
interface
uses
SysUtils, Classes, DBGrids, DB, dmThreadDataModule;
type
TDataSetSelector = class(TThreadDataModule)
private
FDefaultField: TBooleanField;
public
procedure SeleccionarTodos(const filas: TBookmarkList = nil; Field: TBooleanField = nil);
procedure SeleccionarN... |
{******************************************************************************}
{ }
{ WiRL: RESTful Library for Delphi }
{ ... |
unit Download.Controller.Interfaces;
interface
uses Download.Download.Tipos, Data.DB;
type
iDownloadObserver = interface;
iControllerIdHTTP = interface
['{644AE485-0761-4EE7-8B13-CA82C6D44288}']
procedure FazerDownloadDoArquivo(strUrl, strDestino: String);
procedure PararDownload;
procedure Adi... |
unit TipoJuros;
interface
type
TTipoJuros = class
private
codigo : integer;
descricao: string;
public
constructor Create();
procedure setCodigo(cod: integer);
procedure setDescricao (desc: String);
function getCodigo(): Integer;
function getDescricao(): String;
... |
namespace BetaServer;
interface
uses
System.IO,
BetaServer.Properties;
type
Log = public class
private
class var fCount: Int32 := 0;
class var fFilename: String;
const MAX_LOGFILE_SIZE = 1*1024*1024; { 1MB }
protected
class constructor;
public
class method Log(aMess... |
(* *****************************************************************************
Copyright (C) 2010-2014 - Bambu Code SA de CV - Ing. Luis Carrasco
Este archivo pertenece al proyecto de codigo abierto de Bambu Code:
http://bambucode.com/codigoabierto
La licencia de este codigo fuente se encuentra en:
http:/... |
unit G_Music;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, fmod, fmodtypes;
var
MusicLoaded:Boolean;
GMIDI: PFMusicModule;
GSTRM: PFSoundStream;
MusicFileName:String;
Procedure GFEMInit(Handle:THandle);
Procedure GFEMLoad(Handle:THandle;FileName:St... |
unit IdHTTPDAV;
interface
uses classes, idHTTP, IdGlobal;
const
Id_HTTPMethodPropFind = 'FIND';
Id_HTTPMethodPropPatch = 'PROPPATCH';
Id_HTTPMethodOrderPatch = 'ORDERPATCH';
Id_HTTPMethodSearch = 'SEARCH';
Id_HTTPMethodMove = 'MOVE';
Id_HTTPMethodCopy = 'COPY';
Id_HTTPMethodCheckIn = 'CHEC... |
unit fileUtilities;
{$mode objfpc}{$H+}
interface
uses
Classes,
SysUtils,
fpjson,
arrayUtils;
function readStream(fnam: string): string;
procedure writeStream(fnam: string; txt: string);
function openFileAsArray(fnam: string; separator: char;removeBlankLines:Boolean=true): TStringArray;
function getUserDir:... |
unit UFileConvert;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. }
{$WARN SYMBOL_PLATFORM OFF}
{$WARN UNIT_PLATFORM OFF}
interface
Uses
SysUtils,ComCtrls,Classes,... |
{-----------------------------------------------------------------------------
Unit Name: DUGraph
Author: Sebastian Hütter
Date: 2006-08-01
Purpose: Simple graphic routines
History: 2006-08-01 initial release
-----------------------------------------------------------------------------}
unit DUGraph;
... |
{IOMOD.PAS: provides a context in which to run a program using
Software Tools in Pascal by Kernighan & Plauger (p322)}
{maintainers of STIP use UMB$DISK2:[MATH.STIP.MODULAR]MAKEIOMOD.COM to
compile this module everytime a global definition, primitive, or
utility is changed}
... |
object SearchInFiles: TSearchInFiles
Left = 194
Top = 119
BorderStyle = bsDialog
Caption = 'Search in files...'
ClientHeight = 353
ClientWidth = 553
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'Tahoma'
Font.Style = []
Fo... |
unit OAuth2.Entity.User;
interface
uses
OAuth2.Contract.Entity.User;
type
TOAuth2UserEntity = class(TInterfacedObject, IOAuth2UserEntity)
private
{ private declarations }
FIdentifier: string;
protected
{ protected declarations }
public
{ public declarations }
constructor Create(AIdenti... |
unit SOPReaderUnit;
interface
uses
Windows, Classes, SysUtils, ComObj, Variants, CommUtils;
type
TSOPProj = class;
TSOPCol = class;
TSOPLine = class;
TSOPReader = class
private
FFile: string;
ExcelApp, WorkBook: Variant;
procedure Open;
procedure Log(const str: string);
public ... |
unit MySnake;
interface
uses MyQueue;
type
Snake = class
queue: MyQueue.Queue;
direction: string := 'up';
snakeGrow: boolean := false;
constructor Create(x: integer; y: integer);
procedure MoveUp();
procedure MoveDown();
procedure MoveRight();
procedure MoveLeft();
procedu... |
unit OAuth2.Contract.Repository.AuthCode;
interface
uses
OAuth2.Contract.Entity.AuthCode;
type
IOAuth2AuthCodeRepository = interface
['{0B0200DB-6AD7-4BAF-BCDF-F6F693517E98}']
function GetNewAuthCode: IOAuth2AuthCodeEntity;
procedure PersistNewAuthCode(AAuthCodeEntity: IOAuth2AuthCodeEntity);
pr... |
unit OAuth2.ResponseType.Abstract;
interface
uses
Web.HTTPApp,
OAuth2.Contract.ResponseType,
OAuth2.Contract.Entity.AccessToken,
OAuth2.Contract.Entity.RefreshToken,
OAuth2.CryptKey;
type
TOAuth2AbstractResponseType = class abstract(TInterfacedObject, IOAuth2ResponseType)
private
{ private declara... |
unit AT.Fmx.Actions.MediaLibrary;
interface
uses
System.Classes, System.UITypes, AT.Fmx.Actions.Consts, FMX.Media,
FMX.MediaLibrary.Actions;
type
[ComponentPlatformsAttribute(pidATActionsPlatforms)]
TATMediaPlayerCurrentTime = class(TMediaPlayerCurrentTime)
strict private
FAndroidText: String;
FiOS... |
unit GoodsPropertyValueTest;
interface
uses dbTest, dbObjectTest, TestFramework, ObjectTest;
type
TGoodsPropertyValueTest = class (TdbObjectTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
end;
TGoodsPropertyValue = class(TObjectTest)
private
function InsertD... |
{ ==============================================================================|
|Проект: Google API в Delphi |
|==============================================================================|
|unit: GTranslate ... |
unit Delphi.Mocks.Tests.Base;
interface
uses
Rtti,
SysUtils,
DUnitX.TestFramework,
Delphi.Mocks;
type
//With RTTI--
{$M+}
IInterfaceOne = interface
['{CB03941B-5A46-440A-BBBE-99C5C206C4F6}']
procedure Method;
end;
IInterfaceTwo = interface
['{7AB79C05-302A-4627-B680-159F04FDB3EC}']
... |
unit subject;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
type
IObserver = interface
['{a4350679-517f-4c72-b3f8-5cf7abfdf2be}']
procedure Update(Subject: IInterface);
end;
ISubject = interface
['{18dbf567-b454-418e-b3dd-d076eb395837}']
procedure Attach(Observer: IObserver);
... |
unit LogFile;
{**********************************************
Kingstar Delphi Library
Copyright (C) Kingstar Corporation
<Unit> LogFile
<What> 实现日志文件(一定要设置debug条件)
<Written By> Huang YanLai
<History>
**********************************************}
{
you must use the unit before writelog
}
i... |
unit UCL.TUPopupBox;
interface
uses
UCL.Classes, UCL.TUThemeManager, UCL.Utils, UCL.IntAnimation,
System.Classes, System.SysUtils, System.Types,
Winapi.Messages, Winapi.Windows,
VCL.Controls, VCL.ExtCtrls, VCL.Forms, VCL.Graphics;
type
TUPopupKind = (pkDown, pkUp);
TUPopupBox = class(TCusto... |
unit uEvent;
interface
uses System.SysUtils, System.Variants, System.Classes, System.DateUtils,
System.Generics.Collections, TypInfo;
const
TAGS_LENGTH = 10;
MODULE_LENGTH = 10;
type
ELevel = (FATAL, ERROR, WARNING, INFO, DEBUG);
type
BaseEvent = class(TObject)
event_id: string;
event_message: st... |
unit PortSipConsts;
interface
uses
classes,SysUtils;
const
LINE_BASE = 1;
MAXLINE = 8;
// DTMF_NUM
nDTMF_0 = 0;
nDTMF_1 = 1;
nDTMF_2 = 2;
nDTMF_3 = 3;
nDTMF_4 = 4;
nDTMF_5 = 5;
nDTMF_6 = 6;
nDTMF_7 = 7;
nDTMF_8 = 8;
nDTMF_9 = 9;
nDTMF_STAR = 10;
nDTMF_POUND = 11;
nDTMF_A = 12;
nDT... |
program clipFTXT;
{$IFNDEF HASAMIGA}
{$FATAL This source is compatible with Amiga, AROS and MorphOS only !}
{$ENDIF}
{
Project : clipFTXT
Source : RKRM
}
{
*
* ClipFTXT.c demonstrates reading (and optional writing) of clipboard
* device FTXT. This example may be used as the basis for supporting
* Relea... |
unit oWav;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
type
// http://soundfile.sapp.org/doc/WaveFormat/
TWavRiffHeader = packed record
ID: array[0..3] of ansichar; // "RIFF" for little-endian, "RIFX" for big-endian
ChunkSize: LongInt; // Filesize - 8
RiffType: ar... |
{
TBootConfigurationInfo Component Version 2.0b - Suite GLibWMI
Copyright (©) 2009-2013, by Germán Estévez (Neftalí)
La clase WMI Win32_BootConfiguration representa la configuración de arranque de un ordenador con Windows.
Utilización/Usage:
Basta con "soltar" el componente y activarlo.
Plac... |
// ******************************************************************
//
// Program Name : $ProgramName$
// Platform(s) : $Platforms$
// Framework : VCL
//
// Filename : AT.$ShortName$.DM.Actions.pas/.dfm
// File Version : 1.00
// Date Created : $CreateDate$
// Author : Matthew Vesperman
//
... |
unit GeraChave;
interface
uses
Classes, sysUtils, math, dialogs, clipbrd;
type
TInfoRegistro = class(TComponent)
private
FContato: String;
FTelefone2: String;
FRazaoSocial: String;
FTelefone1: String;
FNomeFantasia: String;
FEndereco: String;
FCidade: String;
FC... |
program gadtoolsexample;
{$IFNDEF HASAMIGA}
{$FATAL This source is compatible with Amiga, AROS and MorphOS only !}
{$ENDIF}
{
Project : simplegad
Topic : Simple example of a GadTools gadget.
Source : RKRM
}
{*
** The example listed here shows how to use the NewGadget structure and
** the GadTools l... |
unit AqDrop.Core.Observers.Intf;
interface
uses
System.SysUtils,
AqDrop.Core.Types;
type
IAqObserver<T> = interface;
IAqCustomObservable<T> = interface
['{743B970B-D83B-4085-8A4E-57637470F189}']
function RegisterObserver(pObserver: IAqObserver<T>): TAqID;
procedure Notify(pMess... |
// =============================================================================
// Module name : $RCSfile: GenType.pas,v $
// description : This unit defines global constants, enumerations and some other
// required type.
// Compiler : Delphi 2007
// Author : 2015-12-18 /bsu/
// History ... |
// ******************************************************************
//
// Program Name : Angelic Tech Mac OS X Library
// Program Version: 2017
// Platform(s) : OS X
// Framework : FireMonkey
//
// Filename : AT.MacOS.SheetDelegate.pas
// File Version : 2017.04
// Date Created : 13-Apr-2017
// Aut... |
unit KnowledgeJS;
{
Copyright (c) 2011 Peter Hearnshaw
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License, as described at
http://www.apache.org/licenses/ and http://www.pp4s.co.uk/licenses/
Converted to run in Sm... |
unit MainDM;
interface
uses
System.SysUtils, System.Classes, JvComponentBase, JvAppStorage,
JvTranslateString, JvAppIniStorage, JvAppXMLStorage,
Spring,
Spring.Persistence.Core.Session,
Model.IMyConnection, JvFormPlacement,
Model.Interfaces,
Model.Declarations,
Model.Company,
//JvString... |
unit WheelBuilder;
interface
uses ConcreteBuilderCrown, ConcreteBuilderHub, ConcreteBuilderDisk, SysUtils,
SldWorks_TLB, CommonProcUnit;
type
// Product
TCylindricalWheel = class(TObject)
strict private
FHub, FDisk, FCrown: string;
public
property Hub: string write FHub;
property D... |
{* *****************************************************************************
PROYECTO FACTURACION ELECTRONICA
Copyright (C) 2010-2014 - Bambu Code SA de CV
Esta clase representa un Comprobante Fiscal Digital en su Version 2.0 asi como
los metodos para generarla.
Este archivo pertenece al proyecto de cod... |
unit VestaDispatch;
interface
uses
ComObj;
type
TVestaAutoObject = class(TAutoObject, IDispatch)
private
FAutoFactory: TAutoObjectFactory;
protected
{ IDispatch }
function GetIDsOfNames(const IID: TGUID; Names: Pointer;
NameCount, LocaleID: Integer; DispIDs: Pointer): HResult;... |
unit Booster;
{
Definice a obsluha technologie zesilovace (napr. SPAX).
}
interface
uses IniFiles, TechnologieRCS, SysUtils;
type
TBoosterSignal = (undef = -1, error = 0, ok = 1);
TBoosterClass = (undefinned = -1, default = 0, SPAX = 1);
TBoosterChangeEvent = procedure (Sender:TObject; state:TBoosterSignal) ... |
unit ParseCsv;
interface
function ParseCsvValue( const CSVString : string; var Value : string;
var Index : integer; Separator : char = ',' ) : boolean;
implementation
// function parses comma-separated values
// Call first time with index = 0 => returns Value = text before 1st comma and
// moves ... |
program console_logger;
{$mode objfpc}{$H+}
uses
Classes,
SysUtils,
CustApp,
tlogger;
type
TMyLogger = class(TCustomApplication)
protected
procedure DoRun; override;
public
constructor Create(TheOwner: TComponent); override;
destructor Destroy; override;
end;
procedu... |
{
Serial communication port (UART). In Windows it COM-port, real or virtual.
In Linux it /dev/ttyS or /dev/ttyUSB. Also, Linux use file /var/lock/LCK..ttyS for port locking
Sergey Bodrov, 2012-2016
Properties:
Port - port name (COM1, /dev/ttyS01)
BaudRate - data excange speed
MinDataBytes - minimal byt... |
unit UMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,UBoard, ExtCtrls, StdCtrls, Tilebmp, jpeg;
type
TFormMain = class(TForm)
Memo1: TMemo;
Image: TImage;
ShapeMain: TShape;
Tiles: TTileBmp;
ShapeFade: TShape;
MainI... |
unit UGateway;
interface
uses
System.Classes,
System.SysUtils,
UData;
type
TThreadHelper = class helper for TThread
public
function WaitFor(ATimeout: Cardinal): LongWord;
end;
TImporterThread = class(TWorkerThread)
protected
procedure Execute; override;
end;
TExporterThread = class(TWor... |
//
// Created by the DataSnap proxy generator.
// 20/10/2018 08:59:50
//
unit U_Proxy;
interface
uses System.JSON, Datasnap.DSProxyRest, Datasnap.DSClientRest, Data.DBXCommon, Data.DBXClient, Data.DBXDataSnap, Data.DBXJSON, Datasnap.DSProxy, System.Classes, System.SysUtils, Data.DB, Data.SqlExpr, Data.DBXDB... |
unit RepositorioEmpresa;
interface
uses DB, Auditoria, Repositorio, RepositorioPessoa;
type
TRepositorioEmpresa = class(TRepositorioPessoa)
protected
function Get (Dataset :TDataSet) :TObject; overload; override;
function GetNomeDaTabela :String; override;
... |
unit DroneControllerInterface;
interface
uses
uDrone,
System.Generics.Collections;
type
IDroneController = interface
['{D190686F-03C9-492E-ADB0-2FD4EE4A2F92}']
function Save(const ADrone: TDrone) : IDroneController;
function GetDroneList: TObjectList<TDrone>;
end;
implementation
end.
|
unit Alcinoe.FMX.Memo;
interface
{$I Alcinoe.inc}
uses
System.Types,
system.Classes,
System.UITypes,
{$IF defined(ANDROID)}
Alcinoe.AndroidApi.Common,
{$ELSEIF defined(IOS)}
System.TypInfo,
iOSapi.Foundation,
iOSapi.UIKit,
Macapi.ObjectiveC,
Macapi.ObjCRuntime,
Alcinoe.FMX.N... |
unit LDB.Cliente;
interface
uses SysUtils, FireDAC.Stan.Param;
type
TCliente = class
private
FSobrenome: string;
FTitulo: string;
FCEP: string;
FNumero: string;
FComplemento: string;
FIdCliente: integer;
FNome: string;
FCidade: string;
FEndereco: string;
FTelefone: string;
... |
{ This program generatesa multi-page PDF document and tests various
functionality on each of the 5 pages. }
{$mode objfpc}
{$H+}
program testfppdf;
uses
classes, sysutils, fpimage, fpreadjpeg, freetype, fppdf;
Function SetUpDocument : TPDFDocument;
Var
P : TPDFPage;
S : TPDFSection;
i: integer;
begin
Resu... |
unit FH.DeckLink.DisplayMode;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, System.SyncObjs, System.Generics.Collections,
Winapi.ActiveX, Winapi.DirectShow9, DeckLinkAPI_TLB_10_5, FH.DeckLink.Utils;
Type
TDeckLinkDisplayMode = class(TInterfacedObject, IDeckLi... |
unit dwsCryptoLibModule;
interface
uses
SysUtils, Classes,
dwsComp, dwsExprs, dwsUtils;
type
TdwsCryptoLib = class(TDataModule)
dwsCrypto: TdwsUnit;
procedure dwsCryptoClassesSHA256MethodsHashDataEval(Info: TProgramInfo;
ExtObject: TObject);
procedure dwsCryptoClassesSHA1Method... |
unit DrawUtils;
{**********************************************
Kingstar Delphi Library
Copyright (C) Kingstar Corporation
<Unit> DrawUtils
<What> 画图工具
<Written By> Huang YanLai
<History>
**********************************************}
interface
uses Windows, Sysutils,Classes, Graphics, Forms... |
// Fit4Delphi Copyright (C) 2008. Sabre Inc.
// This program is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software Foundation;
// either version 2 of the License, or (at your option) any later version.
//
// This program is... |
unit FrmeDirectoryEdit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
{$WARNINGS OFF}
FileCtrl,
{$WARNINGS ON}
Dialogs, StdCtrls, Buttons, ConfigOptions;
type
TFrameDirectoryEdit = class(TFrame)
edtDirectory: TEdit;
btnBrowse: TBitBtn;
... |
unit wel;
interface
uses
SysUtils, Classes, Math, Windows, Messages, Graphics, Controls, Forms, Dialogs, ExtCtrls;
type
TStack = class
fData: TStringList;
private
function GetResult: string;
function GetCount: Integer;
public
constructor Create();
destructor Free;
procedure Push(Val... |
unit InsulatedTests;
// 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/
//
// Software distributed under the License is d... |
unit MainFormU;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, System.NetEncoding, Vcl.StdCtrls,
Vcl.ExtCtrls;
type
TMainForm = class(TForm)
GroupBox1: TGroupBox;
btnGetPhoto: TButton;
Image1:... |
unit CmdParse;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fpexprpars, Dialogs, Forms, FuncParse;
type
TCmdParse = Class
public
Expression: string;
procedure NewValue(Variable:string; Value: Double);
procedure AddVariable(Variable: string; Value: Double);
procedure AddString( Variabl... |
unit UISO_Draw;
interface
uses windows,pngimage,Graphics;
type TISO_Draw=class
private
c_w,
c_h:real;
sprite_w:word;
public
rx,
ry:integer;
ix,
iy,
iz:Word;
procedure Get_ISO(mx,my,y:word);
procedure Set_ISO(x,y,z:Word);
procedure Draw(P:TPNGImage;C:TCanvas);
const... |
unit TNsRemotePublish.Infrastructure.Models.Config;
interface
uses
Quick.Logger;
type
TRedisLogConfig = record
Host : string;
Port : Integer;
LogLevel : TLogLevel;
LogKey : string;
DataBase : Integer;
Enabled : Boolean;
end;
TLoggerConfig = record
RedisLog : TRedisLogConfig;
e... |
{
* This source code accompanies the article "How to load and save documents in
* TWebBrowser in a Delphi-like way" which can be found at
* http://www.delphidabbler.com/articles?article=14.
*
* The code is merely a proof of concept and is intended only to illustrate the
* article. It is not designed for use in it... |
// =============================================================================
// Module name : $RCSfile: RS232.pas,v $
// description : This unit defines a class, which implements methodes and
// properties for general communication with RS232.
// Compiler : Delphi 2007
// Author : 2015-09... |
unit dll_wininet_http;
interface
uses
atmcmbaseconst, winconst, wintype, dll_wininet;
const
{ the default major/minor HTTP version numbers }
HTTP_MAJOR_VERSION = 1;
HTTP_MINOR_VERSION = 0;
HTTP_VERSION_10 = 'HTTP/1.0';
HTTP_VERSION_11 = 'HTTP/1.1';
{ HttpQueryInfo info level... |
unit uAutoUpdateSetup;
// ******************* настройка апдейтера баз ***********************
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, Buttons, INIFiles, zAutoUpdate;
type
TAutoUpdateSetup = class(TForm)
rgMode: TRadioGr... |
unit Pospolite.View.CSS.Basics;
{
+-------------------------+
| Package: Pospolite View |
| Author: Matek0611 |
| Email: matiowo@wp.pl |
| Version: 1.0p |
+-------------------------+
Comments:
...
}
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Pospol... |
{$mode objfpc}
{$modeswitch advancedrecords}
// http://wiki.freepascal.org/management_operators
program DynArray;
uses
UDynArray, UDynDictionary,
SysUtils;
type
TIntArray = specialize TDynArray<Integer>;
TStringArray = specialize TDynArray<String>;
TIntArrayPtr = ^TIntArray;
procedure DynArrayPush(d: TIntArray... |
unit rallylogserialmanager;
{$mode objfpc}{$H+}
interface
uses
ConnectedDevice, firmata, SdpoSerial,rallylogevents, Classes, SysUtils;
type
TCommunicationManager = class(TRallyLogEventDispatcher)
private
fDevice: TConnectedDevice;
fComPort: TSdpoSerial;
fConnected: boolean;... |
{******************************************************************************}
{ }
{ IPGeoLocation.Providers }
{ ... |
unit KM_GUIMapEdMission;
{$I KaM_Remake.inc}
interface
uses
Classes, Controls, Math, SysUtils,
KM_Controls, KM_Defaults, KM_Pics,
KM_GUIMapEdMissionMode,
KM_GUIMapEdMissionAlliances,
KM_GUIMapEdMissionPlayers;
type
TKMMissionTab = (mtMode, mtAlliances, mtPlayers);
TKMMapEdMission = class
private
... |
unit ssjson;
(*
Copyright 2015 Zesage
Home: https://github.com/zesage
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 re... |
(*============================================================================
-----BEGIN PGP SIGNED MESSAGE-----
This code (c) 1994, 1997 Graham THE Ollis
GENERAL NOTES
=============
This is 16bit DOS TURBO PASCAL source code. It has been tested using
TURBO PASCAL 7.0. You will need AT LEAST version 5.0 ... |
unit Pedido;
interface
uses Cliente, Item, Generics.Collections;
type
TPedido = class
private
FId: Integer;
FCliente: TCliente;
FDataPedido: TDate;
FDataEntrega: TDate;
FFormaPagto: Integer;
FValorTotal: Double;
FItems: TList<TItem>;
protected
function GetId: Integer;
proced... |
unit UMessages;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. }
{$WARN SYMBOL_PLATFORM OFF}
{$WARN UNIT_PLATFORM OFF}
interface
uses
Messages;
// -- Messaging I... |
unit Command.Interfaces.Invoker;
interface
uses
Command.Interfaces.ICommand;
type
IInvoker = interface
function SetOnStart(ACommand: ICommand): IInvoker;
function SetOnFinish(ACommand: ICommand): IInvoker;
function DoSomethingImportant: IInvoker;
end;
implementation
end.
|
unit View.PermissionEdit;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, View.TemplateEdit, JvExControls,
JvDBLookupTreeView, Vcl.StdCtrls, Vcl.Mask, Vcl.DBCtrls, Data.DB,
JvComponentBase, JvFormPlacement, V... |
unit DataSourceAmcc;
interface
uses
Customers, Winapi.Windows, Settings, ImportDialogs,
System.SysUtils, System.Classes, DataSourceIntf, ZAbstractConnection, ZConnection, ZDataset;
type
TSourceAmcc = class(TDataModule, IImportDataSource)
Connection: TZConnection;
procedure ConnectionBeforeConnect(Sende... |
unit uSellyAPI;
interface
uses
System.Types, System.Classes, System.SysUtils, System.Generics.Collections,
IdHttp, IdSSLOpenSSL, IdHeaderList, IdCompressorZLib;
type
TSellyData = record
AsJson: string;
Headers: TStringList;
RateLimitRemaining: Integer;
TotalPages: Integer;
end;
... |
program Sift;
{$IFNDEF HASAMIGA}
{$FATAL This source is compatible with Amiga, AROS and MorphOS only !}
{$ENDIF}
{
Project : Sift
Title : Takes any IFF file and tells you what's in it.
(Verifies syntax and all that cool stuff)
Source : RKRM
}
{
* Sift.c lists the type and size of every... |
Program asl_asl;
{$IFNDEF HASAMIGA}
{$FATAL This source is compatible with Amiga, AROS and MorphOS only !}
{$ENDIF}
{$MODE OBJFPC}{$H+}{$HINTS ON}
{$UNITPATH ../../../Base/CHelpers}
{$UNITPATH ../../../Base/Trinity}
{
===========================================================================
Project : asl_asl... |
unit FrameCommands;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
FrameSynchro, FrameAntenna, ExtCtrls, FrameRadar,
Rda_TLB;
type
TFrame_Commands = class(TFrame)
Splitter1: TSplitter;
Frame_Antenna: TFrame_Antenna;
Splitter2: TSplitter;
... |
unit AqDrop.Core.ExecutionQueue;
interface
uses
System.SysUtils,
System.Classes,
AqDrop.Core.Types,
AqDrop.Core.Collections.Intf;
type
TAqTaskStatus = (tksWaiting, tksExecuting, tksDone, tksError);
TAqExecutionQueueStatus = (eqsWaiting, eqsExecuting, eqsDone, eqsFinishing, eqsFinished);
... |
unit FormInTabs.Mobile.View.Config.FormLogin;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls,
FormInTabs.Mobile.View.FormModel, FMX.Layouts, FMX.Objects,
FMX.Controls.Presentation, FMX.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.