text stringlengths 14 6.51M |
|---|
unit StrSub;
(* 文字列サブルーチン *)
(* Copyright (c) 2001,2002 Twiddle <hetareprog@hotmail.com> *)
(* version 1.6, 2004/04/01 14:25:18 *)
interface
uses
SysUtils, StrUtils, Classes, Windows, WinInet;
type
(*-------------------------------------------------------*)
TPSStream = class(TStringStream)
publi... |
unit unitScale;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, GraphMath;
procedure Scaling(AWidth, AHeight: integer; OldZoom: Double);
function WorldToScreen(P: TFloatPoint): TPoint;
function ScreenToWorld(P: TPoint): TFloatPoint;
var
Zoom : integer = 100;
Offset: TPoint;
implementation
proce... |
unit ConverterTests;
interface
uses
DUnitX.TestFramework, DelphiJSON, System.JSON;
type
TUpperConv = class(DJConverterAttribute<String>)
public
function ToJSON(value: String): TJSONValue; override;
function FromJSON(value: TJSONValue): String; override;
end;
[DJSerializableAttribute]
TTest = cla... |
//Only compile for the OS X platform.
{$IF ( (NOT Defined(MACOS)) OR (Defined(IOS)) )}
{$MESSAGE Fatal 'AT.MacOS.Images.pas only compiles for the OS X platform.'}
{$ENDIF}
// ******************************************************************
//
// Program Name : Angelic Tech Mac OS X Library
// Program Version: 20... |
unit ChoosingRelatedProduct;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, AncestorDialog, Vcl.ActnList, dsdAction, System.DateUtils,
cxClasses, cxPropertiesStore, dsdAddOn, cxGraphics, cxControls,
cxLookAn... |
program Pointy;
uses Crt, Graph, GrafBits;
const
Max = 15000;
type
PointyType = record
X, Y: integer;
end;
var
I,
Gd, Gm: integer;
Colour: word;
Point: array[1..Max] of PointyType;
procedure GetPoints;
begin
Colour:= Random(15) + 1;
For I:= Max downto 1 do
begin
With Po... |
unit Module.Cleaner;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Vcl.ImgList,
Dialogs, ExtCtrls, ComCtrls, System.Win.Registry, ShellAPI, Vcl.StdCtrls, IniFiles,
//Свои модули
CMW.Utils, CMW.OSInfo, CMW.ModuleStruct;
//
type
TScanElements = class;
TCleane... |
unit AqDrop.DB.MySQL;
interface
uses
AqDrop.DB.Adapter,
AqDrop.DB.SQL.Intf;
type
TAqDBMySQLSQLSolver = class(TAqDBSQLSolver)
strict protected
function SolveLimit(pSelect: IAqDBSQLSelect): string; override;
function SolveOffset(pSelect: IAqDBSQLSelect): string; override;
function Solv... |
unit FH.DeckLink.VirtualDevice;
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.DisplayMode, FH.DeckLink.InputFrame, FH.DeckLink.Device;
const
WM... |
unit poputils;
interface
uses Windows, sha1, sysutils, registry;
const // sha1 checksum
SUM_WEANETR_DLL: array [0..SHA1_DIGEST_LENGTH-1] of BYTE = (
$D6, $32, $EF, $FB, $DC,
$08, $9B, $E9, $43, $6C,
$28, $3F, $BB, $5E, $13,
$CC, $FB, $6C, $7A, $02
);
SUM_POPTB_EXE: array [0..SHA1_DIGEST_L... |
unit ExportTabularOTFT;
uses ExportCore,
ExportTabularCore,
ExportJson;
var ExportTabularOTFT_outputLines: TStringList;
function initialize(): Integer;
begin
ExportTabularOTFT_outputLines := TStringList.create();
ExportTabularOTFT_outputLines.add(
'"File"' // Name of the origina... |
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://localhost:9999/wsdl/IObservationsWS
// Encoding : utf-8
// Version : 1.0
// (4/12/2011 11:30:28 PM - 1.33.2.5... |
{******************************************************************************}
{ }
{ Indy (Internet Direct) - Internet Protocols Simplified }
{ ... |
namespace com.remobjects.everwood.beta;
interface
uses
java.util,
android.content,
android.graphics,
android.graphics.drawable,
android.util,
android.view,
android.widget;
type
ProductsListAdapter = public class(BaseAdapter)
private
const TAG = "ProductsListAdapter";
var fCont... |
unit Test;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
const
GallonPrice = 6.5;
function GetKilometers(Payment, Consumption: integer): single;
implementation
function GetKilometers(Payment, Consumption: integer): single;
begin
Result := (Payment / GallonPrice) * Consumption;
en... |
unit TripServiceInterface;
interface
uses
System.Generics.Collections,
uDelivery,
uDrone;
type
TEventMsg = procedure(AValue: string) of object;
ITripService = interface
['{061687F9-463B-42DD-AD52-F49651EE967C}']
function Trip(const ADrone: TObjectList<TDrone>;
const ADelivery: TOb... |
unit BuilderPizzaExample.Domain.ValueObject.IngredientsType;
interface
type
TIngredientsType = (Pepperoni = 1, Catupiry = 2, Cheddar = 4, Onion = 8,
Olive = 16, Salami = 32, Tomato = 64, Pepper = 128, Basil = 256,
Garlic = 512, Mozzarella = 1024, Provolone = 2048);
implementation
end.
|
{***************************************************************************}
{ }
{ Spring Framework for Delphi }
{ }
{ ... |
unit common_schema_reader;
{$ifdef FPC}
{$MODE DELPHI}
{$ENDIF}
interface
uses
Classes, SysUtils, Variants, tiUtils, mapper
{$IFDEF FPC}
,DOM
,XMLRead
,XMLWrite
{$ELSE}
,OmniXML
,OmniXMLUtils
{$ENDIF};
type
{$IFDEF FPC}
_XMLDocType = TXMLDocument;
_XMLNodeType = TDOMNode;
_XMLElementType =... |
Program Animals;
Uses Crt, Graph, GrafBits;
Const
OT : array[0..4] of shortint = (0, 1, -1, 2, -2);
Bits = 100;
type
TAnimal = object
XSize, YSize,
XPos , YPos : integer;
Pic : Pointer;
procedure ReadFrom(FString: string; XS, YS: integer);
procedure MoveTo(X, Y : integer);
pr... |
unit FrameObservations;
interface
uses
Windows, SysUtils, Forms,
Rda_TLB, Menus, ImgList, StdCtrls, ExtCtrls, ComCtrls, Controls, Classes,
Dialogs;
type
TFrame_Observations = class(TFrame)
ListView1: TListView;
Panel1: TPanel;
Button1: TButton;
ImageList1: TImageList;
Popu... |
unit ClasseEmpresa;
interface
type
TEmpresa = class
private
FIdEmpresa: integer;
FNomeEmpresa: String;
FPorcentagemImposto: double;
FRazaoSocial: String;
procedure setIdEmpresa(const Value: integer);
procedure setNomeEmpresa(const Value: String);
procedure setPorcentagemImposto(cons... |
unit Composite.Main;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls;
type
TfrmMain = class(TForm)
mmResult: TMemo;
pnlTop: TPanel;
btnGetResult: TButton;
procedure... |
{
Description: vPlot driver-thread class.
Copyright (C) 2017-2019 Melchiorre Caruso <melchiorrecaruso@gmail.com>
This source 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 Lice... |
unit AT.ShortName.DM.Images;
interface
uses
System.SysUtils, System.Classes, System.ImageList, FMX.ImgList;
type
TdmImages = class(TDataModule)
ilstDocTypeLg: TImageList;
ilstDocTypeSm: TImageList;
ilstLarge: TImageList;
ilstSmall: TImageList;
strict protected
function GetDocTypeLarge: TIma... |
{
TMemStream
TMemoryStream replacement with some improvements
MEM_DEFAULT mode - same as TMemoryStream
MEM_GLOBAL mode - can allocate memory outside default 2 Gb (for 32 bit)
MEM_MSVCRT mode - use msvcrt.dll, with latest updates and fixes
MEM_STRING mode - use AnsiString for memory buffer
In MEM_... |
{$ifdef license}
(*
Copyright 2020 ChapmanWorld LLC ( https://chapmanworld.com )
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this li... |
{ ===========================================================================
Program utama dari Tugas Besar mata kuliah 'Dasar Pemrograman' (IF1210)
Sekolah Teknik Elektro dan Informatika tahun 2019, versi dikerjakan sendiri
=========================================================================== }
program Ma... |
unit SampleBufferUnit;
{$mode objfpc}{$H+}
{ Unit to handle / setup the buffer(s) for the data samples}
interface
uses
//DAQ_development,
Classes,
SysUtils,
DAQ_Globals;
{const
SAMPLE_COUNT = 50000; // number of samples one buffer can hold
N_BUFFER = 10; // number of buffers to cycle ... |
unit Vars_Const;
interface
uses
Commdrv,forms,Grids,stdctrls,extctrls,menus,comctrls;
type
MRecord=Record
Micro:string;
Code:string;
Page_size:word;
PS:longword;
ES:word;
EP_Pge_size:word;
LB:String;
Fb3:string;
Fb2:... |
{
Sobre o autor:
Guinther Pauli
Delphi Certified Professional - 3,5,6,7,2005,2006,Delphi Web,Kylix,XE
Microsoft Certified Professional - MCP,MCAD,MCSD.NET,MCTS,MCPD (C#, ASP.NET, Arquitetura)
Colaborador Editorial Revistas .net Magazine e ClubeDelphi
MVP (Most Valuable Professional) - Embarcadero Technologies - U... |
unit Unit_IntegerList;
//
// Created by: Alexander Oster - tensor@ultima-iris.de
//
(*****
*
* 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
... |
unit DAC_Const;
interface
const
// Setup particular value IRQ
DAC_SETUP_IRQ_MESSAGE = $80000000;
// m_nStartOf values
DACPARAM_START_PROGRAMM = 1;
DACPARAM_START_TIMER = 2;
DACPARAM_START_EXT = 4;
DACPARAM_START_QUARTZ ... |
// ******************************************************************
//
// Program Name : $ProgramName$
// Platform(s) : $Platforms$
// Framework : VCL
//
// Filename : AT.$ShortName$.DM.Images.pas/.dfm
// File Version : 1.00
// Date Created : $CreateDate$
// Author : Matthew Vesperman
//
/... |
unit PromoCodeDialog;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, AncestorDialog, Vcl.ActnList, dsdAction,
cxClasses, cxPropertiesStore, dsdAddOn, cxGraphics, cxControls,
cxLookAndFeels, cxLookAndFeelPain... |
unit Observer.Interfaces.Concretes.ConcreteObserverA;
interface
uses
Observer.Interfaces.ObserverSubject;
// Concrete Observers react to the updates issued by the Subject they had
// been attached to.
// Os Observers Concretos reagem às atualizações emitidas pelo Subject nos quais
// eles foram anexados
type
T... |
unit uCadastro_Funcionario;
interface
uses
Windows,
Messages,
SysUtils,
Variants,
Classes,
Graphics,
Controls,
Forms,
Dialogs,
StdCtrls,
Buttons,
ComCtrls,
ExtCtrls,
Menus,
DB,
ADODB,
DBGrids,
uDataModule,
Mask,
Focus,
uManipulacaoDados,
uUtils,
... |
unit uLancamento;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls,
Vcl.ExtCtrls, Vcl.Buttons,
uProduto, uProdutoDao, generics.defaults, generics.collections,
System.Classes, Data.DB, Vcl.Grids,... |
{
Gerar automaticamente (sem ler do usuário) uma matriz
5x5 cujos elementos são:
01 02 03 04 05
06 07 08 09 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
A seguir calcule e imprima a soma dos elementos de cada
linha da matriz e também gere e imprima um vetor com os
elementos da diagonal principal d... |
unit IPGeoLocation.Providers.IP2Location;
interface
uses
IPGeoLocation.Interfaces, IPGeoLocation.Core, System.Net.HttpClient;
type
{$REGION 'TIPGeoLocationProviderIP2Location'}
TIPGeoLocationProviderIP2Location = class sealed(TIPGeoLocationProviderCustom)
private
{ private declarations }
protected
... |
unit SynEditMarkupFoldColoring;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils,Graphics, SynEditMarkup, SynEditMiscClasses, Controls,
LCLProc, SynEditHighlighter, SynEditHighlighterFoldBase;
type
PMarkupFoldColorInfo = ^TMarkupFoldColorInfo;
TMarkupFoldColorInfo = record
Y, X, X2: I... |
unit AddBook;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Samples.Spin, Book,
Vcl.Menus;
type
TAddBookForm = class(TForm)
NameBookEdit: TEdit;
AuthorBookEdi... |
unit PortSIPLib;
interface
uses SysUtils, Windows;
type
// Audio and video callback function prototype
TAudioRawCallback = function(obj: Pointer;
sessionId: NativeInt;
_type: integer;
data:PByte;
data... |
unit scanthread;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, miscfunc;
type
TWordMode = (wrmNone, wrmWholeWords, wrmExactMatch);
TScanResult = record
FileName: String;
LineNumber: Integer;
MatchedText: String;
LineText: String;
end;
TScanOptions = record
Sea... |
unit uFramework;
interface
type
// Strategy
TAutenticacao = class abstract
procedure Autenticar(Usario,Senha: string); virtual; abstract;
end;
// Concrete Strategy
TAutenticacaoLocal = class(TAutenticacao)
procedure Autenticar(Usario,Senha: string); override;
end;
// Concrete ... |
unit ProgressDlgs;
interface
uses
Windows, Messages, SysUtils, Classes, Controls, Forms,
StdCtrls,ProgReptDlg;
type
// return whether continue
TExecuteMethod = function : boolean of object;
TSimpleMethod = procedure of object;
TProgrssWithReport = class(TComponent)
private
dlgProgress : TdlgProgre... |
unit TNsRemotePublish.Application.DefaultController;
interface
uses
TNsRestFramework.Infrastructure.HTTPControllerFactory,
TNsRestFramework.Infrastructure.HTTPRestRequest,
TNsRestFramework.Infrastructure.HTTPRouting,
TNsRestFramework.Infrastructure.HTTPController;
type
THTTPDefaultController = class(THTTPC... |
unit ParametrosNFCe;
interface
uses
TipoFormaEmissao,
TipoVersaoDF,
Token,
CertificadoNFCE,
ParametrosDANFE;
type
TParametrosNFCe = class
private
FFormaEmissao: Integer;
FIntervaloTentativas: Integer;
FTentativas: Integer;
FVersaoDF: Integer;
FID_Token: String;
FToken: String;
... |
unit View.ProdutoList;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
View.TemplateList, Data.DB, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.In... |
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://localhost:9999/wsdl/IConfigurationWS
// Encoding : utf-8
// Version : 1.0
// (5/5/2011 2:55:22 PM - 1.33.2.5)... |
unit BomD2Reader;
interface
uses
Classes, SysUtils, ComObj, CommUtils, ProjNameReader;
type
TBomD2Item = packed record
snumber: string;
sname: string;
snumber_child: string;
sname_child: string;
snumber_p: string;
dusage: Double;
sabc: string;
sptype: string;
slt: D... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
type
TSyntaxNodeType = (ntAddr,ntDeref);
SyntaxNodeNames = record //<<-------- fails
//change record to class and it works.
... |
{$MODESWITCH RESULT+}
{$GOTO ON}
(*************************************************************************
Copyright (c) 2005-2007, Sergey Bochkanov (ALGLIB project).
>>> SOURCE LICENSE >>>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License... |
// ******************************************************************
//
// Program Name : $ProgramName$
// Platform(s) : $Platforms$
// Framework : VCL
//
// Filename : AT.$ShortName$.Intf.pas
// File Version : 1.00
// Date Created : $CreateDate$
// Author : Matthew Vesperman
//
// Descript... |
unit Sugar;
{$MODE OBJFPC}{$H+}
// ---------------------------------------------------------------------------
// Edit Date $ Entry
// ---------------------------------------------------------------------------
// 2015-08-27 $ configurable enter/leave debug, initialization with
// environment varia... |
unit Ai14;
{
ULAI14.DPR================================================================
File: AI14.PAS
Library Call Demonstrated: cbSetTrigger()
Purpose: Selects the trigger source. This trigger is
used to initiate A/D convers... |
unit UCopyChildren;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, ExtCtrls, CheckLst;
type
TdlgCopyChildren = class(TForm)
lsCtrls: TCheckListBox;
Panel1: TPanel;
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
private
{ Private declaratio... |
unit Ti02;
{
ULTI02.DPR ================================================================
File: TI02.PAS
Library Call Demonstrated: cbTInScan()
Purpose: Scans multiplexer input channels.
Demonstration: Displays the temperature inputs on a range... |
unit uDM;
interface
uses
System.SysUtils, System.Classes, System.Actions,
FMX.ActnList, FMX.StdActns;
type
TFileData = record
FullFilename: string;
Filename: string;
DateModified: TDateTime;
Filetype: string;
Size: Int64;
const
NoSizeInfo = -1;
procedure ObtainInfo(const AFull... |
unit Aspect4D.UnitTest;
interface
uses
TestFramework,
System.Classes,
System.SysUtils,
Aspect4D,
Aspect4D.Impl,
Aspect4D.UnitTest.Security,
Aspect4D.UnitTest.Logging,
Aspect4D.UnitTest.Entity;
type
TTestAspect4D = class(TTestCase)
private
fAspectContext: IAspectContext;
fCarEntity: TCarE... |
unit UMainFrm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, GMLib.Classes, GMLib.Map, GMLib.Map.Vcl,
Vcl.ExtCtrls, uCEFChromiumCore, uCEFChromium, uCEFWinControl, uCEFWindowParent,
Vcl.StdCtrls, Vcl.Sample... |
function RekeningnummerKlopt(nummer: int64): boolean;
// declare your variables here
begin
var eersteTienCijfers: int64;
var laatsteTweeCijfers, restNaDelingDoor97: integer;
var stringRepresentatie: string;
laatsteTweeCijfers := nummer MOD 100;
eersteTienCijfers := nummer DIV 100;
restNaDelingDoor97 := ee... |
PROGRAM ArithmeticMean;
VAR
number: INTEGER;
sum, count: INTEGER;
result: REAL;
input: STRING;
BEGIN
sum := 0;
count := 0;
Write('Please enter an integer number greater or equal to 0: ');
ReadLn(number);
WHILE number > 0 DO BEGIN
sum := sum + number;
count := count + 1;
... |
(*
Copyright (c) 2011-2012, Stefan Glienke
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 conditions ... |
{
TCDRomDriveInfo Component Version 1.1 - Suite GLib
Copyright (©) 2009, by Germán Estévez (Neftalí)
Representa las unidades de CD-ROM instaladas en el ordenador
Utilización/Usage:
Basta con "soltar" el componente y activarlo.
Place the component in the form and active it.
MSDN Info:
... |
// 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 ... |
{$I ..\Definition.Inc}
unit WrapFmxComCtrls;
interface
uses
FMX.Controls.Presentation, FMX.MultiView, FMX.TabControl, WrapFmxControls;
type
TPyDelphiTabControl = class(TPyDelphiStyledControl)
private
function GetDelphiObject: TTabControl;
procedure SetDelphiObject(const Value: TTabControl);
public
... |
unit jImageListEditDlg;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs,
StdCtrls, ExtCtrls, ButtonPanel, Grids, ActnList, FPimage, ImgCache;
type
{ TjImagesEditorDlg }
TjImagesEditorDlg = class(TForm)
acMoveUp: TAction;
acMoveDown: TAction;... |
unit bcm_systimer;
interface
function GetUSTick: longword;
procedure BusyWait(ADelayUS: longint);
function HasMatch: boolean; inline;
procedure ClearMatch(AChannel: longint); inline;
function GetCurrentMatch(AChannel: longword): longword;
procedure SetRelativeInterrupt(AChannel, AOffsetUS: longword);
procedure SetN... |
program Talk2boopsi;
{$IFNDEF HASAMIGA}
{$FATAL This source is compatible with Amiga, AROS and MorphOS only !}
{$ENDIF}
{
Project : Talk2boopsi
Source : RKRM
}
{*
** This example creates a Boopsi prop gadget and integer string gadget,
** connecting them so they update each other when the user changes th... |
UNIT tDOS;
INTERFACE
Uses DOS;
function CopyFile( SourcePath, DestinationPath : String;
BlockSize : Word ) : Boolean;
{ Функция копирует файл из SourcePath в DestinationPath }
{ Копирование производится блокам по BlockSize байт ... |
unit pGWInvoiceOperations_TLB;
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this ty... |
{******************************************************************************}
{ }
{ Delphi OPENSSL Library }
{ Copyright (c) 2016 Luca Minuti ... |
unit AqDrop.DB.ORM.Attributes;
interface
uses
AqDrop.Core.Collections.Intf,
AqDrop.Core.Attributes;
type
TAqDBTableMappingProperty = (tmpAutoMapFields, tmpAutoMapProperties, tmpInheritPKs);
TAqDBTableMappingProperties = set of TAqDBTableMappingProperty;
TAqDBAttribute = class(TAqAttribute);
... |
{******************************************************************************}
{ }
{ Icon Fonts ImageList: An extended ImageList for Delphi/VCL }
{ to simplify use of Icons (resize, colors and more...) ... |
unit UAMC_SelectForms;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. }
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
... |
unit qCKDtags;
interface
type
// класс контейнера коэффициентов
TCoefficientReplacingEvent=procedure(Sender:TObject; cOld,cNew:TCoefficient) of object;
TCoefficients=class // !!! владелец коэффициентов - удаляет коэффициенты сам!!!
private
fOnReplacing:TCoefficientReplacingEvent;
procedure SetCoefficien... |
unit CLI;
interface
uses UnitLog;
const C_EXIT = 1;
const C_SAVE = 2;
const C_SEARCH = 3;
const C_HELP = 4;
const C_TESTDATA = 5;
const C_REMOVE = 6;
const C_TEST = 7;
const C_SEARCH_AMPLUA = 8;
const C_OPEN = 9;
type
TCommandArgs = array[0..100] of string;
TCommand = integ... |
unit zStream;
{
Адаптер zlib для работы с потоками. Сделан на основе кодов
freeware библиотеки, предназначенной для работы с файлами
Delphi Zip v.1.6L By Eric W. Engler, Chris Vleghert(cvleghrt@worldonline.nl).
Код в данном файле "соответствует" методам компоненты TGzip из DelphiGzip.
Made by Ivan Ravin (iva... |
(*
Copyright (c) 2012-2014, Stefan Glienke
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 conditions ... |
unit BaseModalForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, RzPanel, RzButton,
RzEdit, Vcl.StdCtrls, Vcl.Mask, RzLabel;
type
TfmBaseModalForm = class(TForm)
RzPanel1: TRz... |
{**********************************************************************}
{ }
{ "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 comp... |
unit TestCaptureCollection;
interface
uses
TestFramework,
RegularExpressions;
type
TTestCaptureCollection = class(TTestCase)
private
FColl: ICaptureCollection;
protected
procedure SetUp; override;
published
procedure TestCaptureCollection;
end;
implementation
uses
SysUtils;
{ TTestCapt... |
{$mode objfpc}
{$modeswitch objectivec1}
unit AppDelegate;
interface
uses
GL, OpenGLView, MacOSAll, CocoaAll;
type
TAppDelegate = objcclass(NSObject, NSApplicationDelegateProtocol)
private
window: NSWindow;
public
procedure applicationDidFinishLaunching(notification: NSNotification); message 'appli... |
unit RESTRequest4D.Request.Contract;
{$IFDEF FPC}
{$mode delphi}
{$ENDIF}
interface
uses RESTRequest4D.Response.Contract, RESTRequest4D.Request.Adapter.Contract,
{$IF NOT (DEFINED(RR4D_INDY) or DEFINED(FPC) or DEFINED(RR4D_NETHTTP))}
REST.Types,
{$ENDIF}
{$IFDEF RR4D_INDY}
IdHTTP,
{$ENDIF}
{$IFDE... |
{***************************************************************}
{ Copyright (c) 2013 год . }
{ Тетенев Леонид Петрович, ltetenev@yandex.ru }
{ }
{*******************************************************... |
unit ArrayTests;
interface
uses
DUnitX.TestFramework, DelphiJSON;
type
[TestFixture]
TArrayTests = class(TObject)
public
[Test]
procedure TestSerDynArr;
[Test]
procedure TestDerDynArr;
[Test]
procedure TestSerFixedArr;
[Test]
procedure TestDerFixedArr;
end;
TFixedArray... |
unit FieldGraph;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
TeEngine, Series, ExtCtrls, TeeProcs, Chart, Func1D, Menus;
type
TfrmFieldGraph = class(TForm)
Chart1: TChart;
RetrIntensity: TFastLineSeries;
RetrPhase: TFastLineSeries;
PrintDialog1: TPri... |
unit IdTestFtpServer;
interface
uses
IdSys,
IdTest,
IdTcpClient,
IdFtp,
IdFtpServer;
type
TIdTestFtpServer = class(TIdTest)
published
procedure TestBasic;
end;
implementation
procedure TIdTestFtpServer.TestBasic;
var
s:TIdFTPServer;
c:TIdTCPClient;
aStr:string;
cons... |
unit uDataModule;
interface
uses
System.SysUtils, System.Classes, IPPeerClient, REST.Client, REST.Types,
Data.Bind.Components,
System.ImageList,
Vcl.ImgList,
Vcl.Controls,
uContent,
frxClass, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error,
FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.D... |
unit uTurma_Aluno;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, db, sqldb, FileUtil, Forms, Controls, Graphics, Dialogs,
ExtCtrls, Buttons, DbCtrls, StdCtrls, uCadastroPadrao;
type
{ TfrmGerenciarTurma }
TfrmGerenciarTurma = class(TfrmCadastroPadrao)
DBLookupComboBoxAluno: TDBLookupComboBox;
... |
unit uImages;
interface
uses
SysUtils;
function IsImage(AStr: string): Boolean;
implementation
function IsImage(AStr: string): Boolean;
var
ext: string;
begin
ext := LowerCase(ExtractFileExt(AStr));
Result := (ext = '.bmp') or (ext = '.jpeg') or
(ext = '.jpg') or (ext = '.gif') or
... |
{ TPH unit for the Interrupt List -> .TPH compiler. }
{ The software included, data formats and basic algorithms are }
{ copyright (C) 1996 by Slava Gostrenko. All rights reserved. }
{$X+}
unit
TPH;
interface
uses
Objects;
const
HexChars = ['0'..'9', 'A'..'F', 'a'..'f'];
TPFileS... |
unit uControllerPool;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, WinSock2,
uBase, uModbus;
type
TTsControllersSpec = specialize TThreadSafeWrapper<TControllers>;
{ TTsControllers }
TTsControllers = class(TTsControllersSpec)
public
constructor Create; reintroduce;
destructor Destroy;... |
{ ----------------------------------------------
GDBMiServerDebuggerLAMW.pas - Debugger class for gdbserver
----------------------------------------------
This unit contains the debugger class for the GDB/MI debugger for LAMW project
************************************... |
// ******************************************************************
//
// Program Name : AT Software_DNA Library
// Program Version: 1.00
// Platform(s) : OS X, Win32, Win64
// Framework : FireMonkey
//
// Filenames : AT.DNA.FMX.Dlg.ValidationWarning.pas/.fmx
// File Version : 1.20
// Date Created ... |
program lovedist;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes, SysUtils, CustApp, zipper, ShellApi, shellit
{ you can add units after this };
type
{ TMyApplication }
TMyApplication = class(TCustomApplication)
protected
procedure... |
Program SGPNoScorev3GawlerTZ;
var
// Day variables
TsPos : Integer; // position of Ts in DayTag
Ts : Double; // The Regatta Start Time of the day
DebugPos : Integer; // position of DEBUG in DayTag
// Competitor variables
T : Double; // Finishers Marking Time= Pilots[i].finish - Ts + penalty
SSta... |
PROGRAM ArithmeticMean;
VAR
i: INTEGER;
number: INTEGER;
sum, count: INTEGER;
result: REAL;
number_quantity: INTEGER;
BEGIN
sum := 0;
count := 0;
Write
('How many numbers do you want to enter? >');
ReadLn(number_quantity);
IF number_quantity > 0 THEN BEGIN
FOR i := 1 TO... |
unit unit_const;
interface
const
sqrtpi = 1.25331;
_4ln2 = 2.772588722;
type
TFitMode = (fmGauss, fmGLCross);
TDataPoint = record
x, y: single;
end;
TDataArray = array of TDataPoint;
TResults = array of TDataArray;
TVariable =record
Last : Single;
d : ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.