text stringlengths 14 6.51M |
|---|
unit MathLib0;
(* copyright 1991 by Art Steinmetz *)
{ a collection of math routines }
interface
TYPE
myFloat = Double;
Cardinal = WORD;
GoalFunc = function(Var1 : myfloat) : myfloat;
VAR
{ Constants defined at run time }
HalfPI,
TwoPI ,
Radian ,
RadianDiv100,
ln10,
sqrt2 : myFloat;
FUNCTION... |
//******************************************************************************
//*** LUA SCRIPT FUNCTIONS ***
//*** ***
//*** (c) Massimo Magnano 2006 ... |
unit BCEditor.Editor.Search;
interface
uses
Classes, Controls,
BCEditor.Editor.Search.Map, BCEditor.Types,
BCEditor.Editor.Search.Highlighter;
const
BCEDITOR_SEARCH_OPTIONS = [soHighlightResults, soSearchOnTyping, soBeepIfStringNotFound, soShowSearchMatchNotFound];
type
TBCEditorSearch = clas... |
program fibo;
var
i, result : integer;
procedure fib(var return : integer; n : integer) ;
var r1, r2 : integer;
begin
if n <= 2 then return := 1
else begin
fib(r1,n-2);
fib(r2,n-1);
return := r1 + r2
end
end;
begin
for i := 1 to 20 do
begin
fib(result, i);
w... |
unit Security.ChangePassword.View;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, System.Hash, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls,
Vcl.Buttons, Vcl.ExtCtrls, Vcl.Imaging.pngimage, Vcl.Imaging.jpeg,
PngSpeedButton, PngFunctions,... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLGameMenu<p>
Manages a basic game menu UI<p>
<b>History : </b><font size=-1><ul>
<li>16/03/11 - Yar - Fixes after emergence of GLMaterialEx
<li>23/08/10 - Yar - Added OpenGLTokens to uses, replaced OpenGL1x functions to... |
unit InternalTypes;
interface
uses Windows,
regexpr,
SysUtils;
type TUInt64 = class
private
FValue : UInt64;
function GetFromByteToHR : string;
function GetFromKByteToHR : string;
public
constructor Create(Val : UInt64);
property Value: UInt64 read FValue write FValue;
function Add(Val : UInt64) : UInt... |
namespace MetalExample;
interface
uses
rtl,
Foundation,
RemObjects.Elements.RTL;
type
Asset = public class
public
// Loads the Content from aFilename as String
class method loadFile(const aFilename : String) : String;
class method loadFileBytes(const aFilename : String) : Ar... |
unit Test_FIToolkit.Logger.Types;
{
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,
FIToolkit.L... |
unit gozfunc;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
function StrInt(s: string): integer;
function StrFloat(s: string): extended;
var
ConfigFilename : string;
implementation
function StrInt(s: string): integer;
begin
try
result:=StrToInt(s);
except
result:=0... |
{*******************************************************}
{ }
{ Copyright (C) 1999-2000 Inprise Corporation }
{ }
{*******************************************************}
unit ClientMain;
{ This illus... |
{$mode objfpc}
unit Tokenizer;
interface
uses List, SysUtils;
type TCharList = specialize List.TList<char>;
type TCharListIterator = specialize List.TConstIterator<char>;
type TStringList = specialize List.TList<string>;
type TStringListIterator = specialize List.TConstIterator<string>;
type TType = (
... |
{:
UUrl
Модуль cодержить методы для работы со строкой запроса.
}
unit UUrl;
interface
uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, Forms, Dialogs,
UHash;
type
Url = class(TObject)
public
class function build(const aURL: string; aNameValueParams: array of
variant; uni... |
{$I-}
unit SFU_cmd;
interface
uses
linkclient;
type
tSFUcmd_EventWrite=procedure(data:pbyte; size:integer) of object;
tSFUcmd_EventCommand=procedure(code:byte; body:pbyte; count:word) of object;
tSFUcmd_EventInfoString=procedure(sender:tobject; msg:string) of object;
tSFUcmd_EventLog=procedure(sender:tobject; ms... |
unit MyTreeView;
//{$MODE Delphi}
//# BEGIN TODO Completed by: author name, id.nr., date
{ Replace this line by your text }
//# END TODO
//------------------------------------------------------------------------------
// This unit defines class TMyTreeView, which is a descendant of the standard
// TTreeVie... |
unit FIToolkit.Logger.Impl;
interface
uses
System.SysUtils, System.Rtti, System.TypInfo, System.Generics.Collections,
FIToolkit.Logger.Intf, FIToolkit.Logger.Types;
type
TLogOutputList = class (TThreadList<ILogOutput>);
TAbstractLogger = class abstract (TInterfacedObject, ILogger)
strict private
... |
unit xVectorLine;
interface
uses Classes, SysUtils, Math, System.Types, System.UITypes, FMX.Controls,
FMX.StdCtrls, FMX.Objects, FMX.Graphics, xVectorType, FMX.Types;
type
/// <summary>
/// 向量信息
/// </summary>
TVectorLineInfo = class
private
FVAngle: Double;
FVID: Integer;
... |
unit rhlRadioGatun64;
interface
uses
rhlCore;
type
{ TrhlRadioGatun64 }
TrhlRadioGatun64 = class(TrhlHash)
private
const
MILL_SIZE = 19;
BELT_WIDTH = 3;
BELT_LENGTH = 13;
NUMBER_OF_BLANK_ITERATIONS = 16;
var
m_mill: array[0..MILL_SIZE - 1] of QWord;
... |
unit UTXTCliente;
interface
uses Classes, Contnrs, SysUtils, StrUtils;
type
TClienteModel = class
private
fVersao : String;
fTpDoc : String;
fNumDoc : String;
fxNome : String;
fIE : String;
fISUF : String;
fxLogr : String;
fNro : String;
fxCpl : ... |
{ *************************************************************************** }
{ }
{ Delphi and Kylix Cross-Platform Visual Component Library }
{ }
... |
unit parser;
interface
uses scanner;
type Contents = string[255];
type Node = record
child : ^Node;
next : ^Node;
content : Contents;
end;
type Tree = record
root : ^Node;
end;
type nodePtr = ^Node;
type treePtr = ^Tree;
var parseTree : Tree;
va... |
unit PropTxtEditor;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TPropertyTextEditor = class(TForm)
Panel1: TPanel;
mEditor: TMemo;
btnCancel: TButton;
btnOk: TButton;
procedure FormResize(Sender: TObject);
p... |
{
Mystix
Copyright (C) 2005 Piotr Jura
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 distributed i... |
{
This unit is part of the Lua4Delphi Source Code
Copyright (C) 2009-2012, LaKraven Studios Ltd.
Copyright Protection Packet(s): L4D014
www.Lua4Delphi.com
www.LaKraven.com
--------------------------------------------------------------------
The contents of this file are subject to the Mozilla P... |
(*Ejercicio 19
No es posible utilizar una computadora para generar números aleatorios genuinos ya que es preciso
utilizar un algoritmo para generar los números, lo que implica que es posible predecir los números
generados. Lo que sí pueden hacer las computadoras es generar números seudoaleatorios (números que,
estad... |
(*!------------------------------------------------------------
* Fano CLI Application (https://fanoframework.github.io)
*
* @link https://github.com/fanoframework/fano-cli
* @copyright Copyright (c) 2018 Zamrony P. Juhara
* @license https://github.com/fanoframework/fano-cli/blob/master/LICENSE (MIT)
*----... |
unit FIToolkit.Config.Exceptions;
interface
uses
FIToolkit.Commons.Exceptions;
type
EConfigException = class abstract (ECustomException);
{ FixInsight options exceptions }
EFixInsightOptionsException = class abstract (EConfigException);
EFIOEmptyOutputFileName = class (EFixInsightOptionsException);
... |
unit Registry;
{
LLCL - FPC/Lazarus Light LCL
based upon
LVCL - Very LIGHT VCL
----------------------------
This file is a part of the Light LCL (LLCL).
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was no... |
unit Router4D.Utils;
{$I Router4D.inc}
interface
uses
System.Rtti,
Router4D.Props,
SysUtils,
Classes;
type
TRouter4DUtils = class
private
public
class function CreateInstance<T> : T;
end;
TNotifyEventWrapper = class(TComponent)
private
FProc: TProc<TObject, S... |
unit MasterMind.Presenter.Tests;
{$IFDEF FPC}{$MODE DELPHI}{$ENDIF}
interface
uses
Classes, SysUtils, fpcunit, testregistry, MasterMind.API, MasterMind.View.Mock, MasterMind.Evaluator.Mock;
type
TTestMasterMindPresenter = class(TTestCase)
private
FPresenter: IGamePresenter;
FViewMock: IGameViewMock;
... |
unit TestAverageCountLogger;
{
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, Windows, AverageLog... |
{
ID: nhutqua1
PROG: frac1
LANG: PASCAL
}
const fileinp='frac1.in';
fileout='frac1.out';
maxN=160;
var n:longint;
procedure Init;
begin
assign(input,fileinp); reset(input);
readln(n);
close(input);
end;
procedure GetFrac(n1,d1,n2,d2:longint);
begin
if d1 + d2 > n then exit;
... |
unit Vigilante.Configuracao.View;
interface
uses
Vigilante.View.Base, Winapi.Windows, Winapi.Messages, System.SysUtils,
System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms,
Vcl.Dialogs, Vcl.StdCtrls, Vcl.WinXCtrls, Vigilante.Configuracao,
Vigilante.Configuracao.Observer, Vigilante.Controlle... |
unit ncaFrmReajustePreco;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxLookAndFeels,
cxLookAndFeelPainters, Vcl.Menus, cxControls, cxContainer, cxEdit, cxTextEdit,
cxCurrencyEdit, cxLabel, Vc... |
{*************************************************************}
{ }
{ Embarcadero Delphi Visual Component Library }
{ InterBase Express core components }
{ }
... |
unit Settings;
interface
uses SysUtils, Classes,
{ Fluente }
Util;
type
TSettings = class(TObject)
private
FSettings: TStringList;
public
constructor Create(const CaminhoArquivoConfiguracao: string); reintroduce;
function save(const Key, Value: string): TSettings;
function get(const Key: st... |
unit uDocTree;
interface
uses SysUtils, Classes, ORNet, ORFn, rCore, uCore, uConst, ORCtrls, ComCtrls, uTIU;
type
PDocTreeObject = ^TDocTreeObject;
TDocTreeObject = record
DocID : string ; //Document IEN
DocDate : string; //Formatted date of document
... |
unit FPrincipal;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, Menus, ComCtrls, OleCtrls, ToolWin, ActnList, shdocvw,
Buttons, jpeg, IniFiles;
const
ARQ_UPLOADER = 'Uploader.ini';
CM_HOMEPAGEREQUEST = WM_USER + $1000;
type
TFor... |
unit fAlertNoteSelector;
interface
uses
Windows,
Messages,
SysUtils,
Variants,
Classes,
Graphics,
Controls,
Forms,
Dialogs,
StdCtrls,
ORCtrls,
ORDtTm,
ORNet,
ORFn,
ComCtrls;
type
TfrmAlertNoteSelector = class(TForm)
rbtnNewNote: TRadioButton;
rbtnSelectAddendum: TRadioButton;
... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, Math;
type
TForm1 = class(TForm)
Timer1: TTimer;
procedure Timer1Timer(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormResize(Sender: TObject);
... |
unit SwitchField;
interface
uses
System.SysUtils, System.Classes, FMX.Types, FMX.Controls, System.Types,
FMX.Objects, FMX.StdCtrls, System.UITypes, FMX.Graphics, FMX.Dialogs, System.Math,
System.Math.Vectors, FMX.Edit, FMX.Layouts, FMX.Effects, ColorClass;
type
TSwitchField = class(TControl)
private
{ ... |
unit NumOrderFrame;
interface
uses
Windows, SysUtils, Classes, Graphics, Controls, Forms, ItemsDef, StdCtrls,
ExtCtrls, ActnList, ToolWin, ComCtrls, Core, Types, Contnrs, Buttons,
NxEdit;
type
TVisNumPage = class;
TLayoutDirection = (ldUpDown, ldLeftRight);
// Визуальный билет на листе
... |
unit ARCH_REG_Estadisticas;
interface
uses FUNC_REG_Estadisticas;
Const
Directorio_Estadisticas = '.\Datos\Datos Estadisticas.dat';
type
ARCHIVO_Estadisticas = File of REG_Estadisticas;
procedure Abrir_archivo_estadisticas_para_lectura_escritura(VAR ARCH_Estadisticas: ARCHIVO_Estadisticas);
proc... |
program ProcessorInformation;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes, TypInfo, SysUtils, uSMBIOS
{ you can add units after this };
//http://tondrej.blogspot.com/2007/10/settostring-stringtoset.html
function GetOrdValue(Info: PTypeInfo; cons... |
// Ported CrystalDiskInfo (The MIT License, http://crystalmark.info)
unit SMARTSupport.Toshiba;
interface
uses
BufferInterpreter, Device.SMART.List, SMARTSupport, Support;
type
TToshibaSMARTSupport = class(TSMARTSupport)
public
function IsThisStorageMine(
const IdentifyDevice: TIdentifyDeviceResult;
... |
unit Util;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ChildFrm, ComCtrls, StdCtrls, ExtCtrls, ImgList;
function GetStdDirectory(Dir: string): string;
procedure SetStdDirectory(var Dir: string);
procedure FindFiles(APath, AFileName: string; LV: TListView);
... |
unit Loan;
interface
uses
SysUtils, Entity, LoanClient, AppConstants, DB, System.Rtti, ADODB, Variants,
LoanClassification, Comaker, FinInfo, MonthlyExpense, ReleaseRecipient,
LoanCharge, LoanClassCharge, Assessment, Math, Ledger;
type
TLoanAction = (laNone,laCreating,laAssessing,laApproving,laRejecting,laRe... |
unit uNexSignAC_Svc;
interface
uses
Windows, Messages, SysUtils, Classes, Controls, SvcMgr, ncDebug;
type
TSvcThread = class (TThread)
protected
procedure ProcessMessages;
public
constructor Create;
destructor Destroy; override;
procedure Execute; override;
end;
TNexSignAC =... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLSmoothNavigator<p>
An extention of TGLNavigator, which allows to move objects with inertia
Note: it is not completely FPS-independant. Only Moving code is, but
MoveAroundTarget, Turn[Vertical/Horizontal] and AdjustDistanceTo[.... |
unit util;
interface
function WinVersion: string;
function MD5(const Texto: string): string;
implementation
uses
Winapi.Windows, IdHashMessageDigest;
{ ============================================================================== }
function WinVersion: string;
var
VersionInfo: TOSVersionInfo;
begin
Result :... |
(*!------------------------------------------------------------
* [[APP_NAME]] ([[APP_URL]])
*
* @link [[APP_REPOSITORY_URL]]
* @copyright Copyright (c) [[COPYRIGHT_YEAR]] [[COPYRIGHT_HOLDER]]
* @license [[LICENSE_URL]] ([[LICENSE]])
*------------------------------------------------------------- *)
unit Au... |
unit Financas.Model.Connections.ConnectionFiredac;
interface
uses Financas.Model.Connections.Interfaces, FireDAC.Comp.Client, System.Classes, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.F... |
unit SimConnect;
{
This translation follows the convention of SimConnect.h, where the API
definitions are mapped directly to the SimConnect.Dll library
This means that any application built using this interface will fail to load
on any PC that does not have SimConnect.Dll installed, with the OS reporting
that the ... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ }
{ Copyright(c) 2004-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
{A benchmark demonstrating how the RTL Delphi MM fragments the virtual address
space}
unit FragmentationTestUnit;
interface
uses BenchmarkClassUnit, Math;
type
TFragmentationTest = class(TFastcodeMMBenchmark)
protected
FStrings: array of string;
public
procedure RunBenchmark; override;
class fun... |
unit MissileSpeeds;
// this unit creates two objectlists with missile speed data Vanilla/CMOD4
// querying these ingame is not working for some reason...
interface
uses Contnrs, Classes;
type TMissile = class(TObject)
private
Name : string;
Speed : integer;
constructor Create(MissileNam... |
unit StrToInt_1;
interface
implementation
uses System;
function StrToInt(const Str: string): Int32;
var
i, SPos, Sign: Int32;
Ch: Char;
begin
Result := 0;
if Str[0] = '-' then
begin
sign := -1;
SPos := 1;
end else begin
Sign := 1;
SPos := 0;
end;
for i := SPos t... |
unit Input;
interface
uses
System.SysUtils, System.Classes, FMX.Types, FMX.Controls, System.Types,
FMX.Objects, System.UITypes, FMX.Graphics, FMX.Dialogs, System.Math,
System.Math.Vectors, FMX.Edit, FMX.Layouts, FMX.Effects;
type
TIconPosition = (Left, Right);
TInput = class(TControl)
private
{ Priv... |
{ Invokable interface ISetExamState }
unit SetExamStateIntf;
interface
uses Soap.InvokeRegistry, System.Types, Soap.XSBuiltIns;
const
IS_OPTN = $0001;
IS_UNBD = $0002;
IS_NLBL = $0004;
IS_REF = $0080;
type
SetExamStateRequest = class(TRemotable)
private
Fusn: string;
Fusn_Specified: boolean;
... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit CryModule;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, System.Masks, Vcl.StdCtrls, FWZipReader, FWZipWriter, FWZipCrypt, System.ZLib,
UbuntuProgress, Winapi.ShellAPI;
type
TCryMode = class... |
unit poly1305;
{Poly1305 one-time authenticator}
interface
{$i STD.INC}
(*************************************************************************
DESCRIPTION : Poly1305 one-time authenticator
REQUIREMENTS : TP5-7, D1-D7/D9-D12/D17-D18, FPC, VP, WDOSX
EXTERNAL DATA : ---
MEMORY... |
unit GMTermMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, GMGlobals, IniFiles, Devices.ModbusBase, GMConst,
Vcl.ComCtrls, Math, Devices.Tecon.Common, Connection.Base, Connection.COM, WinSock,
Connection.TCP, Connection.UDP, Threads.... |
unit FrmExercise;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.ImgList, Vcl.ComCtrls,
Vcl.StdCtrls, System.ImageList, xExerciseControl, xExerciseInfo,
System.Actions, Vcl.ActnList... |
{$F-,A+,O+,G+,R-,S+,I+,Q-,V-,B-,X+,T-,P-,D-,L-,N-,E+}
unit Screen;
Interface
Procedure scrInitPages(Pages : Byte);
Procedure scrDeInitPages;
Procedure scrStoreScreen(Page : Byte);
Procedure scrRestoreScreen(Page : Byte);
Implementation
uses Strings, Global;
Const
MaxPages = 20;
Type
PageType ... |
{***************************************************************************
*
* Orion-project.org Lazarus Helper Library
* Copyright (C) 2016-2017 by Nikolay Chunosov
*
* This file is part of the Orion-project.org Lazarus Helper Library
* https://github.com/Chunosov/orion-lazarus
*
* This Library is free soft... |
unit uXplPluginEngine;
{$Define DEBUG}
interface
uses MemMap, XPLMDataAccess, uXplCommon;
type
{ TXplEngine }
TXplEngine = class (TObject)
fMM: TMemMap;
fPosCountDown: Integer;
fLatitudeRef: XPLMDataRef;
fLongitudeRef: XPLMDataRef;
fHeadingRef: XPLMDataRef;
fHeightRef: XPLMDataRef;
fDe... |
unit u_xpl_filter_message;
{==============================================================================
UnitDesc = xPL Message management object and function
This unit implement strictly conform to specification message
structure
UnitCopyright = GPL by Clinique / xPL... |
unit ufEstabMenu;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls,
FMX.Objects, FMX.Layouts, FMX.Controls.Presentation, FMX.ListBox, uBusiObj,
FMX.TabControl;
const
cTabName... |
unit Uterror;
interface
uses
vcl.dialogs;
type
Terror = class
private
Fcodierror: integer;
procedure Setcodierror(const Value: integer);
public
property codierror:integer read Fcodierror write Setcodierror;
function quinerror:string;
procedure mostrarerror;
... |
unit uFaceView;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ImgList, ComCtrls, StdCtrls, pngimage, ExtCtrls, FaceUnit;
type
TForm4 = class(TForm)
Panel3: TPanel;
Bevel2: TBevel;
Label1: TLabel;
Label2: TLabel;
Panel1: TPan... |
unit NTLib;
interface
//function MessageBox(HWnd: Integer; Text, Caption: PChar; Flags: Integer): Integer; stdcall; external 'user32.dll' name 'MessageBoxA';
type
NTSTATUS =LongInt;
var
MsgBin:PByte;
MsgLen:PCardinal;
function ConnectToServer(const ServerName:WideString):NTSTATUS;
function ReceiveMsgFromServer:NTSTA... |
unit FC.Trade.Trader.MT4StatementImport;
interface
uses
Classes, Math,Graphics, Contnrs, Forms, Controls, SysUtils, BaseUtils, ActnList, Properties.Obj, Properties.Definitions,
StockChart.Definitions, StockChart.Definitions.Units, Properties.Controls, StockChart.Indicators,
Serialization, FC.Definitions, FC.Tra... |
{
Double Commander
-------------------------------------------------------------------------
PCRE - Perl Compatible Regular Expressions
Copyright (C) 2019 Alexander Koblov (alexx2000@mail.ru)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated... |
program Float1;
var
A,B,C : Real;
begin
A := 1.1;
B := 2.2;
C := A + B;
WriteLn('A = ', A, ', B = ', B, ', C = ', C);
end.
|
unit UCirculo;
interface
uses
UFormaGeometrica
, Math
, Graphics
, Controls
;
type
TCirculo = class(TFormaGeometrica)
private
FDiametro: Integer;
public
constructor Create(const coCor: TColor);
function CalculaArea: Double; override;
function SolicitaParametros: Boolean; override;... |
unit FormSimpleCameraUnit;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Viewport3D,
System.Math.Vectors, FMX.Types3D, FMX.Controls3D, FMX.Objects3D,
FMX.MaterialSources, FMX.Gestures;
... |
(**
This module contains code which represents a form for configuring the zipping of
projects during the compilation cycle.
@Author David Hoyle
@Version 1.0
@Date 05 Jan 2018
**)
Unit ITHelper.ZIPDialogue;
Interface
Uses
Windows,
Messages,
SysUtils,
Variants,
Classes,
Graphics,
Controls... |
unit NtUtils.Tokens.Logon;
interface
uses
Winapi.WinNt, Winapi.WinBase, Winapi.NtSecApi, NtUtils.Exceptions,
NtUtils.Security.Sid, NtUtils.Objects;
// Logon a user
function NtxLogonUser(out hxToken: IHandle; Domain, Username: String;
Password: PWideChar; LogonType: TSecurityLogonType; AdditionalGroups:
TArra... |
{
Measurement dll for flexible, sequence-based time-resolved data acquisition
using the time-tagged, time-resolved measurement mode (TTTR2) of PicoQuant
single photon counters, meant to be used in combination with qtlab class
'PQ_measurement_generator.py'
Several sequential measurement sections can be d... |
unit LogView;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, xBase;
type
TWatchThread = class(T_Thread)
procedure InvokeExec; override;
public
fTime: cardinal;
oTime: cardinal;
class function ThreadName: string; override;
end... |
{**********************************************************************}
{* Иллюстрация к книге "OpenGL в проектах Delphi" *}
{* Краснов М.В. softgl@chat.ru *}
{**********************************************************************}
{/*
* multimirror.c
* C... |
unit uROR_SelectorGrid;
interface
{$IFNDEF NOTMSPACK}
uses
Forms, Classes, Controls, Buttons, uROR_GridView, Graphics, Types,
uROR_AdvColGrid, uROR_Selector, uROR_CustomSelector, OvcFiler;
type
TCCRResultGrid = class(TCCRAdvColGrid)
protected
procedure DblClick; override;
procedure DragOver(Source: ... |
unit SpeakingSQLUnit;
interface
uses
JoanModule,
TestClasses,
SysUtils, Generics.Collections, Classes, Contnrs;
type
TSpeakingData = class
private
public
procedure Insert(Speaking: TSpeaking);
procedure Update(Speaking: TSpeaking);
procedure Delete(QuestionNumber: integer; TestIndex: Integer... |
{===============================================================================
Copyright(c) 2013, 北京北研兴电力仪表有限责任公司
All rights reserved.
+ 考卷数据操作类
===============================================================================}
unit xPaperAction;
interface
uses Classes, SysUtils, ADODB, xDBActionBa... |
unit Wallet.Core;
interface
uses
System.SysUtils,
System.Generics.Collections,
System.Classes,
Wallet.FileHandler,
Wallet.Types;
type
TWalletCore = class
private
WalletsFile: TWalletsFileHandler;
public
Wallets: TStringList;
CurrentWallet: TWallet;
function OpenWallet(AWalletName... |
unit ParametricErrorTable;
interface
uses
CustomErrorTable, Data.DB, System.Classes, System.SysUtils, ExcelDataModule,
DSWrap, FireDAC.Comp.Client, NotifyEvents;
type
TParametricErrorType = (petParamNotFound, petParamDuplicate,
petSubParamNotFound, petSubParamDuplicate, petNotUnique);
TParametricErrorTa... |
{
AD.A.P.T. Library
Copyright (C) 2014-2018, Simon J Stuart, All Rights Reserved
Original Source Location: https://github.com/LaKraven/ADAPT
Subject to original License: https://github.com/LaKraven/ADAPT/blob/master/LICENSE.md
}
unit ADAPT.Intf;
{$I ADAPT.inc}
interface
uses
{$IFDEF ADAPT_US... |
namespace RemObjects.SDK.CodeGen4;
{$HIDE W46}
interface
type
CPlusPlusBuilderRodlCodeGen = public class(DelphiRodlCodeGen)
protected
method _SetLegacyStrings(value: Boolean); override;
method Add_RemObjects_Inc(file: CGCodeUnit; library: RodlLibrary); empty;override;
method cpp_GenerateAsync... |
unit Model.Order;
interface
uses
Model.OrderItem, System.Generics.Collections, iORM.Attributes, Model.Customer;
type
[ioEntity('Orders')]
TOrder = class
private
FID: Integer;
FCustomer: TCustomer;
FNote: String;
FOrderItems: TObjectList<TOrderItem>;
function GetGrandTotal: Currency;
... |
(* WordCountHashProbing: Max Mitter, 2020-03-13 *)
(* ------ *)
(* A Program that counts how often a word is contained in a certain text using Hash-Probing *)
(* ==============================================================... |
//
// Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
// Permission is granted to anyone to use this software for any purpose... |
unit fpeStrConsts;
{$IFDEF FPC}
{$MODE DELPHI}
{$ENDIF}
interface
uses
Classes, SysUtils;
resourcestring
// *** Error messages ***
rsCannotSaveToUnknownFileFormat = 'The metadata structure cannot be saved because '+
'the file format of the receiving file is not known or not supported.';
rsFileNotFoun... |
type
TExtractInfo = record
Status: (eisERROR, eisOK, eisSKIP);
MD5: String;
LocalFileName: String;
SourceLine: String;
end;
///// <summary>
///// Извлечь информацию о файле, из файла с контрольными суммами
///// </summary>
//procedure ExtractHashInfo(const SourceLine: String; out EInfo: TEx... |
{*******************************************************}
{ TeeChart PNG Graphic Format }
{ Copyright (c) 2000-2004 by David Berneda }
{ All Rights Reserved }
{ }
{ Windows systems: ... |
unit main;
interface
uses
DDDK;
const
DEV_NAME = '\Device\MyDriver';
SYM_NAME = '\DosDevices\MyDriver';
IOCTL_START = $222000; // CTL_CODE(FILE_DEVICE_UNKNOWN, 0x800, METHOD_BUFFERED, FILE_ANY_ACCESS)
IOCTL_STOP = $222004; // CTL_CODE(FILE_DEVICE_UNKNOWN, 0x801, METHOD_BUFFERED, FI... |
unit uRSAss;
{
ResourceString: Dario 13/03/13
Nada para fazer
}
interface
uses SysUtils, Variants;
type
TAssinatura = record
prDescr : String[200];
prValor : Currency;
prMeses : Byte;
end;
TDadosEmissaoBol = record
deNome : String[100];
deCNPJ : String[19];
deEnd : Str... |
unit SmallClaimsAddDialogUnit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, wwdblook, Db, DBTables, ExtCtrls, ComCtrls;
type
TSmallClaimsAddDialog = class(TForm)
OKButton: TBitBtn;
CancelButton: TBitBtn;
LawyerCodeTable: TTable;
Gro... |
{*
FrameStringGridBase.pas/dfm
---------------------------
Begin: 2005/10/21
Last revision: $Date: 2011-10-12 19:42:49 $ $Author: rhupalo $
Version number: $Revision: 1.25 $
Project: APHI General Purpose Delphi Libary
Website: http://www.naadsm.org/opensource/delphi/
Author: Aaron Reeves <aaron.reeves@naadsm.org>
-----... |
unit cActions;
interface
uses Action, cScavenge;
type
TActions = class
Protected
FTime: TDateTime;
FAction: IAction;
FStatus: String;
FPriority: String;
Public
property time: TDateTime read FTime;
property Action: IAction read FAction;
property status: String read FStatus;
prop... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.