text stringlengths 14 6.51M |
|---|
unit TSTOScriptTemplate.IO;
interface
Uses Classes, HsStreamEx, TSTORgbProgress,
TSTOScriptTemplateIntf, TSTOHackMasterList.IO;
Type
ITSTOScriptTemplateSettingsIO = Interface(ITSTOScriptTemplateSettings)
['{4B61686E-29A0-2112-AD91-A65A03B1F196}']
Function GetOnChanged() : TNotifyEvent;
Procedure Set... |
unit uConfigIniPersist;
// MIT License
//
// Copyright (c) 2009 - Robert Love
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the right... |
// Component to detect when usb devices are connected or disconnected
// using RegisterDeviceNotification
// Example - \\?\USB#Vid_febe&Pid_fb01#0000000000002A31#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
unit Detect_Usb;
interface
uses
Windows, Messages, SysUtils, Classes, Forms;
const
GUID_DEVINTERFAC... |
unit QueueServerUnit;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, IPPeerClient, Data.Cloud.CloudAPI,
Data.Cloud.AmazonAPI, Vcl.StdCtrls, Vcl.ExtCtrls;
type
TQueueServerForm = class(TForm)
... |
UNIT EntityUnit;
{ unit for entity, in our case is tree }
INTERFACE
USES ConstsUnit;
PROCEDURE InsertIntoTree(VAR Ptr: Tree; Data: Str50; VAR CountLeafs: INTEGER); { insert data into tree, with sort }
PROCEDURE PrintTree(VAR Ptr: Tree; VAR FOut: TEXT); { print sort tree into OutputFile }
IMPLEMENT... |
(*
ENUNCIADO
Fazer um programa em Free Pascal que leia do teclado um número real C representando uma
temperatura na escala Celsius e imprima na tela a correspondente temperatura na escala
Farenheit (F) calculada segundo a fórmula: C = 5*(F-32)/9.
Veja um exemplo de execução incluindo entrada e saída:
Exemplo de ent... |
program pila;
// Declaración de constantes
const MaxTam = 1000;
// Declaración de tipos
type
TipoClave = integer;
Apuntador = integer;
TipoItem = record
Clave: TipoClave;
end;
TipoPila = record
Item: array[1..MaxTam] of TipoItem;
Cima: Apuntador;
end;
// Procedimientos y funciones
procedure C... |
unit oOpcBars; { rappresentazione delle barre su PLC main
}
interface uses dOPCDA;
type
TOpcBar = class
_Position
, _Recipe
, _BaDT
, _Empty
, _Available
, _InTreatment
, _RecipeSecs
, _TankSecs: TdOPCItem;
cachePosition
, cacheRecipe
, cacheRecipeSecs
, cacheTankSecs: integer;
cach... |
unit uAccionesEscenarios;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uAcciones, ActnList, ImgList, EscenarioController, TB2Item,
SpTBXItem, TB2Dock, TB2Toolbar, GraficoEscenario;
type
TAccionesEscenarios = class(TAcciones)
NuevoEscenario: TAction;
... |
unit DataSetDataReader;
interface
uses
AbstractDataReader,
SysUtils,
Classes,
ZDataset,
ZConnection,
DB,
AuxZeosFunctions;
type
TDataSetDataReader = class (TAbstractDataReader)
protected
FDataSet: TDataSet;
FIsFirstRecordPositionedEarlier: Boolean;
procedure SetDataSet(Valu... |
program single_linked_list_with_insertion_sort_by_pointers;
type
{ Single Linked List }
PTList = ^TList;
TList = record
key : Integer;
next : PTList;
end;
procedure List_Initialization(var head: PTList);
begin
New(head); { Not empty head }
end;
procedure List_... |
program ejercicio_6;
const
dimF=500;
type
cadena=string[50];
vector=array[1..dimF] of cadena;
procedure cargarVector(var vec:vector;var dimL:integer);
var
nombre:cadena;
begin
dimL:=0;
writeln('A continuacion ingrese nombres de alumnos (ZZZ para finalizar)');
readln(nombre);
while(dimL<dimF) and (nombr... |
unit IPGeoLocation.Providers.IPLabstack;
interface
uses
IPGeoLocation.Interfaces, IPGeoLocation.Core, System.Net.HttpClient,
System.Classes;
type
{$REGION 'TIPGeoLocationProviderIPLabstack'}
TIPGeoLocationProviderIPLabstack = class sealed(TIPGeoLocationProviderCustom)
private
{ private declarations }
... |
unit FireSpriteAtlas;
interface
uses
W3C.Console, W3C.HTML5, W3C.DOM, ECMA.JSON;
type
TFireSpriteAtlas = class
private
srcArray: variant;
spriteSheetLocation: variant;
SpriteSheet: JHTMLImageElement;
protected
public
constructor Create(jsonArray: variant); virtual;
publis... |
unit editProduct;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, Spin, StdCtrls, DB, pngimage, ExtCtrls;
type
TfrmEditProduct = class(TForm)
Label1: TLabel;
Label5: TLabel;
Label2: TLabel;
Button1: TButton;
Label4: T... |
program pubscreenbeep;
{$IFNDEF HASAMIGA}
{$FATAL This source is compatible with Amiga, AROS and MorphOS only !}
{$ENDIF}
{
Project : pubscreenbeep
Source : RKRM
}
{$MODE OBJFPC}{$H+}{$HINTS ON}
{$UNITPATH ../../../Base/CHelpers}
{$UNITPATH ../../../Base/Trinity}
{$IFDEF AMIGA} {$UNITPATH ../../../Sys/A... |
{$optimize 7}
{---------------------------------------------------------------}
{ }
{ Asm }
{ }
{ This unit implements the built-in assem... |
// 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 ... |
unit DataFileHandlingUnit;
{This Unit contains all procedures and functions to deal with the data files where the samples
are saved into}
{$mode objfpc}{$H+}
interface
uses
Classes,
Console,
GlobalTypes,
GlobalConfig,
DAQ_Globals,
DWCOTG,
FATFS,
NTFS,
FileSystem,
//SampleBufferUnit, {Handles the... |
unit cbillingclient;
{$mode delphi}
{
THINGS YET TO DO:
* Handle subscription price changes notifications and messages. See here:
https://developer.android.com/google/play/billing/billing_subscriptions#change-price-sub
* Subscription switch testing
(If everything else works, this should work too, just supply t... |
unit WebMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics,
Controls, Forms, uniGUITypes, uniGUIAbstractClasses,
uniGUIClasses, uniGUIRegClasses, uniGUIForm, uniLabel, uniGUIBaseClasses,
uniPanel, uniGUIFrame, Vcl.Imaging.pngimage, uniImage;
type
TWebFrames = (frEmployeeDrawer,fr... |
unit CMW.ModuleProp;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, CMW.ModuleStruct;
type
PSystemUnit = ^TSystemUnit;
TFormUnitProperties = class(TForm)
LabelUnit: TLabel;
... |
namespace com.remobjects.everwood.beta;
interface
uses
java.util,
java.util.concurrent,
android.app,
android.content,
android.os,
android.util,
android.view,
android.widget,
com.google.android.gcm;
type
MainActivity = public class(Activity)
{$region Constants}
public
con... |
{******************************************************************************}
{ }
{ WiRL: RESTful Library for Delphi }
{ ... |
unit fFileCompression;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, StdCtrls, TarFTP.MVC, ExtCtrls, Diagnostics;
type
TfrmFileCompression = class(TForm, IView, IFileCompressionView)
ProgressBar1: TProgressBar;
Label1: TLabel;
lblFilesP... |
unit unitFigures;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus,
ExtCtrls, StdCtrls, Buttons, unitScale, GraphMath;
type
TFigureClass = class of TFigure;
TFigure = class
StartPoint, NextPoint: TPoint;
StartPointW2S, NextPointW2S: TPoint;... |
unit ServiceInfo;
interface
type
TServiceInfo = class
end;
TServiceInfoClass = class of TServiceInfo;
THostProcessInfo = class (TServiceInfo)
public
Host: String;
Port: Integer;
end;
TDatabaseServerInfo = class (THostProcessInfo)
public
Database: String;
end;... |
unit SpCalculatorUnit;
interface
const
BATT_VOLTAGE = 12;
BATT_DEF_CAPACITY = 50;
BATT_EFF_RATIO = 0.9;
SOLAR_PANEL_POWER = 250;
SOLAR_PANEL_SQUARE = 2;
type
TCalculationResults = record
PanelsAmount : byte;
BatteriesAmount : byte;
RoofSpaceNeeded : byte;
end;
... |
unit KM_ResFontsEdit;
{$I KaM_Remake.inc}
interface
uses
Windows,
{$IFDEF FPC} lconvencoding, {$ENDIF}
Classes, Graphics, Math, SysUtils, Types,
KM_CommonTypes, KM_ResFonts
{$IFDEF FPC}, zstream {$ENDIF}
{$IFDEF WDC}, ZLib {$ENDIF};
type
TWideCharArray = array of WideChar;
//Child class that has the ... |
unit main;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
Vcl.StdCtrls, wclBluetooth, wclWeDoWatcher, wclWeDoHub;
type
TfmMain = class(TForm)
laStatus: TLabel;
laIoState: TLabel;
btConnect: TBut... |
unit Command.Invokers.Invoker;
interface
uses
Command.Interfaces.ICommand, Command.Interfaces.Invoker;
type
TInvoker = class(TInterfacedObject, IInvoker)
private
FOnStart: ICommand;
FOnFinish: ICommand;
public
// Initialize commands.
// Inicializa comandos.
function SetOnStart(ACommand:... |
unit data;
interface
uses
System.SysUtils, System.Classes, Data.DB, Data.Win.ADODB;
type
TDatabase = class(TDataModule)
ADOConnection1: TADOConnection;
tbPlayer: TADOTable;
tbTeam: TADOTable;
tbPlayerPNum: TAutoIncField;
tbPlayerNames: TWideStringField;
tbPlayerSurname: TWid... |
unit dsdOlap;
interface
uses Classes, DB;
type
TSummaryType = (stNone, stSum, stMin, stMax, stCount, stAverage, stUniqueCount, stPercent);
TAreaType = (atFilter, atVertical, atHorisontal, atData);
TShowDate = (sdYear, sdMonth, sdDay, sdWeek, sdDayOfWeek);
TShowDateSet = set of TShowDate;
TDate... |
unit ThrustInfo;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, BaseModel;
type
IBaseThrustInfo = interface(IBaseModel) ['{01321C1D-0807-4991-93C7-B089343DB671}']
function GetKilonewtons: Double;
function GetPoundForce: Double;
procedure SetKilonewtons(AValue: Double);
procedure SetPoun... |
unit zBHO;
// Класс для оперирования BHO
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, RxVerInf,
Registry, zSharedFunctions, zAVKernel, zAVZKernel;
type
// Информация о BHO
TBHOInfo = record
RegKey : string; // Ключ реестра
CLSID : string; //... |
/// Conference Repository implementation
unit InfraConferenceRepository;
interface
uses
SysUtils,
Classes,
SynCommons,
mORMot,
DomConferenceTypes,
DomConferenceDepend;
type
/// defines the table in the DB
// - ID primary key is the TAttendeeRegistrationNumber
TSQLBooking = class(TSQLRecord)
priva... |
{$mode objfpc}
{$modeswitch objectivec1}
unit AppDelegate;
interface
uses
CocoaAll;
type
TCustomDocument = objcclass (NSDocument, NSTextViewDelegateProtocol)
public
function initWithType_error (typeName: NSString; outError: NSErrorPtr): id; override;
function writeToURL_ofType_error (url: NSURL; ty... |
unit uHostsManager;
// ****************** Менеджер файла Hosts **********************
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, Grids, RXGrids, zHostsFile,
zHTMLTemplate, zSharedFunctions;
type
THostsManager = clas... |
unit UnitQueryRunner.Model;
interface
uses
UnitMigration4D.Interfaces;
type
TQueryRunner = class(TInterfacedObject, iQueryRunner)
private
FDriver: iDriver;
function Driver: iDriver;
public
constructor Create(Driver: iDriver);
destructor Destroy; override;
class function New(Driver: iDrive... |
unit OLEExcelTableData;
interface
uses
TableData,
ComObj,
SysUtils,
Classes;
type
TOLEExcelTableData = class (TInterfacedObject, ITableData)
private
const
xlCellTypeLastCell = $0000000B;
private
FExcelFile: OleVariant;
FSheetNumber: Integer;
FCe... |
unit VchasnoKasaAPI;
interface
uses
Windows, System.SysUtils, System.Variants, System.Classes, System.JSON,
Vcl.Dialogs, REST.Types, REST.Client, REST.Response.Adapter,
Vcl.Forms, ShellApi, IdHTTP, IdSSLOpenSSL, Math;
type
TVchasnoKasaAPI = class(TObject)
private
FRESTResponse: TRESTResponse;
FRES... |
unit VendasForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
System.UITypes, System.Contnrs, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
Vcl.ComCtrls, Vcl.WinXPickers, Vcl.StdCtrls, PedidoMVPIntf, Pedido, ProdutoMVPIntf,
ProdutoIntf, Produto, Utils... |
// ******************************************************************
//
// Program Name : AT Library
// Platform(s) : Android, iOS, Linux, MacOS, Windows
// Framework : Console, FMX, VCL
//
// Filename : AT.Automate.pas
// Date Created : 22-Nov-2020
// Author : Matthew Vesperman
//
// Descrip... |
unit rxStrUtilsE;
interface
uses
System.SysUtils;
function WordCount(const S: string; const WordDelims: TSysCharSet): Integer;
{ WordCount given a set of word delimiters, returns number of words in S. }
function WordPosition(const N: Integer; const S: string;
const WordDelims: TSysCharSet): Integer;
{ Given a s... |
unit UnitDisplay;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, GDIPAPI, GDIPOBJ, GDIPUTIL, LXImage;
const
WM_START_SHOW = WM_USER + 251;
type
TFormDisplay = class(TForm)
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject... |
unit Pole_Display_Unit;
interface
uses
Base_Display_unit, Windows, SysUtils;
type
{Posiflex PD2200}
TPoleDisplay = class(TBaseDisplay)
private
procedure WriteSingleByte(const Param: Byte);
procedure WriteString(const S: String);
public
destructor Destroy; override;
proced... |
unit NetReaderOrcadPCB2;
interface
uses NetReader, ExceptSafe;
// Low level access to Orcad PCB2 Netlist files.
type ESafeOrcadPCB2Reader = class( ESafe );
type TrcParseState = ( psInitial, psEnter, psComponent, psEnd );
type TrcParseResult = ( prComponent, prNet, prEnd );
type TOrcadPCB2NetReader = ... |
program a_3_3;
uses crt;
var x,a,b,c,d : real;
begin
writeln('second-degree equation');
writeln(' write numbers for a,b and c');
readln(a);
writeln ('a= ',a);
readln(b);
writeln('b= ',b);
readln(c);
writeln('c= ',c);
writeln ('finding roots of : ',a,'x^2+',b,'+x+',c,' =0');
d:=(sqr(b))-(4*a*c);
writeln ('d=... |
unit JsonStorage;
{ Author: Sergey Bodrov (serbod@gmail.com) 2016 }
{$ifdef FPC}
{$mode objfpc}{$H+}
{$endif}
interface
uses DataStorage, SysUtils;
type
{ TDataSerializerJson }
(*
JSON serializer
integers: string [-0123456789]
0 123 -123
numbers: string [-0123456789.E]
0.0 123... |
unit TelegAPI.Logger;
interface
uses
TelegAPI.Base,
System.SysUtils;
type
TLogLevel = (Unknown, Trace, Debug, Text, Info, Warn, Error, Fatal);
TLogItem = record
Level: TLogLevel;
Message: string;
end;
{$REGION 'ILogger'}
ILogger = interface
['{0FAACA17-5BE8-4676-BD21-C010208C48D5}']
{$REGI... |
{ @abstract(This file is part of the KControls component suite for Delphi and Lazarus.)
@author(Tomas Krysl)
Copyright (c) 2020 Tomas Krysl<BR><BR>
<B>License:</B><BR>
This code is licensed under BSD 3-Clause Clear License, see file License.txt or https://spdx.org/licenses/BSD-3-Clause-Clear.html.
}
... |
unit AttributesU;
interface
uses
ValidatorU;
type
ValidationAttribute = class abstract(TCustomAttribute)
protected
FErrorMessage: string;
function DoValidate(AValue: string): Boolean; virtual; abstract;
public
constructor Create(AErrorMessage: string);
function Validate(AValue: string): TVal... |
unit CompGroup;
// %CompGroup : 包含各种“组件集合”
(***** Code Written By Huang YanLai *****)
interface
uses messages,classes,SysUtils,controls,extctrls,compItems,
typUtils,graphics,dialogs, ComWriUtils;
type
// %TCustomComponentGroup : 组件集合基类
TCustomComponentGroup = class(TComponent)
private
FComponents :... |
unit Movimento;
interface
uses
SysUtils,
Contnrs, Pedido;
type
TMovimento = class
private
Fcodigo_caixa: integer;
Fcodigo: integer;
Ftipo_moeda: integer;
Fcodigo_pedido: integer;
Fdata: TDateTime;
FPedido :TPedido;
FValor_PAgo :Real;
function GetPedido: TPedido;
public
... |
unit Model.Town;
interface
uses
Forms,
Model.Interfaces,
Model.IMyConnection,
System.Generics.Collections,
Spring.Collections,
Spring.Data.ObjectDataset,
Spring.Persistence.Criteria.Interfaces,
Spring.Persistence.Criteria.Restrictions,
Spring.Persistence.Criteria.OrderBy,
MainDM;
function CreateTo... |
// SPDX-License-Identifier: LGPL-3.0-linking-exception
unit BGRANoGUIBitmap;
{$mode objfpc}{$H+}
interface
uses
SysUtils, BGRAClasses, BGRAGraphics, BGRABitmapTypes, BGRADefaultBitmap,
BGRAFreeType,
{$IF not Defined (ANDROID)} // Workaround fix for Android compilation
EasyLazFreeType,
LazFreeTypeFontCol... |
unit Read;
interface
uses Rotations;
type TFloatPoint = record
x : single;
y : single;
end;
type TPin = record
Name : string;
Number : string;
// location of
Position : TFloatPoint;
Rotation : TRotation;
Part : integer;
Length : single;
end;
type TPolygon = ... |
unit oMain;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, //lazlogger,
Graphics, Dialogs, ExtCtrls, StdCtrls, EditBtn, ComCtrls, Buttons, Spin,
uEKnob, uESelector, ueled,
oGlobal, oDataCollector, oBaseFrame;
type
{ TMainForm }
TMainForm = class(TForm)
Bevel1: TB... |
unit DialogProcessorU;
interface
uses Graphics, Types, DisplayProcessorU, ShapesU, NewRectU, Contnrs, GroupShapeU,UnGroupShapeU ;
type
/// Класът, който ще бъде използван при управляване на диалога.
TDialogProcessor = class(TDisplayProcessor)
protected
fSelection: TObjectList;
fIsDragging: B... |
unit LossTest;
interface
uses dbTest, dbMovementTest, ObjectTest;
type
TLossTest = class (TdbMovementTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
end;
TLoss = class(TMovementTest)
private
function InsertDefault: integer; override;
public
function Inser... |
unit TelegAPI.Bot;
interface
uses
TelegAPI.Types,
TelegAPI.Types.Enums,
TelegAPI.Types.InlineQueryResults,
TelegAPI.Types.ReplyMarkups,
TelegAPI.Types.Impl,
TelegAPI.Logger,
CrossUrl.HttpClient;
type
ITelegramBot = interface
['{12FA5CF8-3723-4ED1-BC1F-F1643B4FA361}']
// private
function ... |
program zyklisch (input, output) ;
const
LAST = 7;
type
tFeld = array[1..LAST] of integer;
var
myFeld : tFeld;
i , Zahl :integer;
procedure VerschiebeZyklisch (var ioFeld : tFeld);
{ verschiebt die Werte innerhalb eines Feldes eine Position
nach rechts; der Wert ioFeld[MAX] wird nach ioFeld[1]... |
unit xxmSock;
interface
uses SysUtils, Classes;
{$D-}
{$L-}
type
PSocketAddress=^TSocketAddress;
TSocketAddress=record
family: word;
port: word;
data: array[0..11] of word;
end;
THostEntry=record
h_name:PAnsiChar;
h_aliases:^PAnsiChar;
h_addrtype:word;
h_len... |
unit Lookup;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls,Buttons, DBGrids, Grids, DBCtrls;
type
TLookupComboStyle = (csDropDown, csDropDownList);
TLookupListOption = (loColLines, loRowLines, loTitles);
TLookupListOptions = set of TLookupListOption;
{... |
unit aIni;
interface
uses System.SysUtils, System.IniFiles, System.IOUtils, System.Classes;
const
DEFAULT_SECTION_NAME = 'CFG';
//AF=Afastamento; AP=Aproximação
MODE_AFASTAMENTO = 'AF';
MODE_APROXIMACAO = 'AP';
STR_NAMES : array[1..3] of string = ('BeaconGUID', 'Mode', 'Avisar');
STR_DEF : ... |
unit NetReaderCrododilePhysics;
interface
uses NetReader, Classes;
// Low level access to Protel Netlist files.
type TCrododilePhysicsNetReader = class( TveNetReader )
protected
ComponentNames : TStringlist;
{
CurrentNet : string;
HaveNet : boolean;
}
function GetNetlistDescriptor... |
PROGRAM EX24;
USES CRT;
VAR hora, h,m, conversao: REAL;
BEGIN
{Limpa a tela}
CLRSCR;
{Mostra mensagem antes da leitura da hora e dos minutos como um número real}
WRITE('Digite a hora HH.MM: ');
{Receba a hora e os minutos}
READLN(hora);
{Pega a parte inteira do número digitado que representa a hora}
h := tru... |
{==============================================================================
Iris Model Editor - Copyright by Alexander Oster, tensor@ultima-iris.de
The contents of this file are used with permission, subject to
the Mozilla Public License Version 1.1 (the "License"); you may
not use this file except in ... |
unit RESTRequest4D.Request.FPHTTPClient;
{$IFDEF FPC}
{$mode delphi}
{$ENDIF}
interface
uses Classes, SysUtils, DB, RESTRequest4D.Request.Contract, RESTRequest4D.Response.Contract,
RESTRequest4D.Utils, FPHTTPClient, openssl, opensslsockets, fpjson, fpjsonrtti,
RESTRequest4D.Request.Adapter.Contract, Generics.C... |
{ALGORITHME Jeu_de_l_oie
BUT : Jeu de l'oie : le jeu se joue seul. Le joueur est caractérisé par un nombre : place
(variable), avec des cases comprises entre 0 et 66, qui situe sa position sur le plateau.
Après un jet des 2 dés, on applique règles suivantes :
- On avance du nombre de cases indiquées par la somme des ... |
unit UFileTmpSelect;
{$WARN SYMBOL_PLATFORM OFF}
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2008 by Bradford Technologies, Inc. }
{ This unit is used to select the Template files used }
{ in Fil... |
unit SystemMonitor;
interface
uses
SysUtils, Classes, DataServices, FireDAC.Stan.Error, FireDAC.UI.Intf,
FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Async,
FireDAC.Phys, FireDAC.Phys.MSSQL, FireDAC.Comp.Client, FireDAC.Stan.Param,
FireDAC.DatS, FireDAC.DApt.Intf, FireDAC.DApt... |
unit JSON_Helper;
{$mode ObjFPC}{$H+}
interface
uses
Classes, SysUtils;
type
{ IJSONData }
IJSONData = interface(IInterface) ['{E0C90586-5A87-4248-82C1-F371951A603B}']
function Count: Integer;
function GetItem(Index: Integer): IJSONData;
function GetJSONData: string;
function GetPath(c... |
unit Model.ProSu.Interfaces;
interface
type
INotificationClass = interface
['{2BB04DBB-6D61-4E4F-8C70-8BCC8E36FDE4}']
end;
TUpdateSubscriberMethod = procedure (const notifyClass: INotificationClass) of object;
ISubscriberInterface = interface
['{955BF992-F4FA-4141-9C0F-04600C582C00}']
procedure ... |
unit win.service;
interface
uses
Types,
Windows,
WinSvc,
Messages,
win.app;
type
TServiceType = (stWin32, stDevice, stFileSystem);
TStartType = (stBoot, stSystem, stAuto, stManual, stDisabled);
TErrorSeverity = (esIgnore, esNormal, esSevere, esCritical);
... |
unit ZapMQ.Threads;
interface
uses
System.classes, ZapMQ.Message, ZapMQ.Core, ZapMQ.Queue;
type
TZapMQCleanerThread = class(TThread)
private
FStatusMessage : TZapMessageStatus;
FContext : TZapCore;
public
procedure Execute; override;
constructor Create(const pStatusMessage : TZa... |
unit NavigationViewModel;
interface
uses
DSharp.Collections,
DSharp.PresentationModel.ViewModelBase,
Interfaces;
type
TNavigationViewModel = class(TViewModelBase, INavigationViewModel)
private
FElements: IList<IWorkingAreaViewModel>;
FSelectedElement: IWorkingAreaViewModel;
function GetSelected... |
unit NtUtils.Files.Control;
{
This module provides functions for issuing FSCTL and IOCTL requests.
}
interface
uses
NtUtils, DelphiUtils.Async;
// Send an FSCTL to a filesystem
function NtxFsControlFile(
hFile: THandle;
FsControlCode: Cardinal;
[in, opt] InputBuffer: Pointer = nil;
InputBufferLength: Ca... |
{*******************************************************}
{ }
{ Turbo Pascal Version 7.0 }
{ Turbo Vision Unit }
{ }
{ Copyright (c) 1... |
unit ProcurarForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons, Vcl.ComCtrls,
System.Contnrs, Utils;
type
TFormProcurar = class(TForm)
lbProcurarPor: TLabel;
edProcurarP... |
unit Model.User;
interface
uses
Model.Interfaces,
Model.IMyConnection,
System.Generics.Collections,
Spring.Collections,
Spring.Data.ObjectDataset,
MainDM;
function CreateUserModelClass: IUserModelInterface;
implementation
uses
System.SysUtils, Model.Declarations, Model.FormDeclarations,
Spring.Persis... |
{***************************************************************************}
{ }
{ DUnitX }
{ }
{ ... |
unit kRPC_Types;
interface
uses
System.SysUtils,
Grijjy.ProtocolBuffers;//, Grijjy.SysUtils;
type
TkrpcMsg = (kmsgNONE, kmsgCONNECT_REQUEST, kmsgREQUEST);
TkrpcMsg_ConnectionRequest = record
public
[Serialize(1)] msg_type: Integer;
[Serialize(2)] client_name: string;
[... |
unit DW.Firebase.Default;
{*******************************************************}
{ }
{ Kastri Free }
{ }
{ DelphiWorlds Cross-Platform Library }
{ ... |
//---------------------------------------------------------------------------
// This software is Copyright (c) 2015 Embarcadero Technologies, Inc.
// You may only use this software if you are an authorized licensee
// of an Embarcadero developer tools product.
// This software is considered a Redistributable as ... |
{
Author: Wayne Buchner
Student ID: 6643140
Date: 03/04/2011
Program: Median.pas
Description: Calculate the Median value from an array
}
program Median;
function Median (const data: array of Integer):Double;
var
startIdx, endIdx : Integer;
begin
startIdx := Low(data);
endIdx := High(data);
while (startIdx <> e... |
unit Model.RelationshipType;
interface
uses
Model.Interfaces,
Model.IMyConnection,
System.Generics.Collections,
Spring.Collections,
Spring.Data.ObjectDataset,
Spring.Persistence.Criteria.Interfaces,
Spring.Persistence.Criteria.Restrictions,
Spring.Persistence.Criteria.OrderBy,
MainDM;
function Crea... |
// =============================================================================
// Module name : $RCSfile: DllLoader.pas,v $
// Description : This unit defines a class to load a dll-file under Windows.
// Three functions(LoadLibrary, FreeLibrary, GetProcAddress and
// SetDllDirectory)ar... |
unit TelaDadosCliente;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, Buttons, ConerBtn, RXCtrls, Mask;
type
TFormTelaDadosCliente = class(TForm)
BtnOK: TConerBtn;
BtnCancelar: TConerBtn;
Label7: TLabel;
Obs: TEdit;
Lab... |
{
Purpose:
Allow the load from file, edit, run, save to file of an adhoc query
Classes:
TFormAdHocQuery - the form
}
unit FMainSQLEditor;
{$I tiDefines.inc}
interface
uses
Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ImgList, ActnList, Menus, ComCtrls, ToolWin, tiButtons, StdC... |
(*
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 ... |
{ Routines for editing a display list.
}
module displ_edit;
define displ_edit_init;
define displ_edit_next;
define displ_edit_prev;
define displ_edit_del;
%include displ2.ins.pas;
{
********************************************************************************
*
* Subroutine DISPL_EDIT_INIT (EDIT, LIST)
*
* Ini... |
unit UCL.TUProgressBar;
interface
uses
UCL.Classes,
UCL.SystemSettings, UCL.TUThemeManager,
System.SysUtils, System.Classes, System.Types,
VCL.Controls, VCL.ExtCtrls, VCL.Graphics,
UCL.IntAnimation;
type
TUCustomProgressBar = class(TGraphicControl, IUThemeControl)
private
FThemeMa... |
{
WARNING:
7z files must be compressed with LZMA method and without filters!
no filters parameter:
f=off
}
unit sevenzip;
interface
uses Windows, SysUtils, Classes;
type
SZSizeT = LongWord;
SZFileSize = LongWord;
PSZFileSize = ^PSZFileSize;
// #define SZ_RESULT int
type
SZ_RESULT = integer;
// #d... |
unit mbColorPickerControl;
interface
{$I mxs.inc}
uses
Windows, Messages, SysUtils, Classes, Controls, Graphics, Forms,
{ $IFDEF DELPHI_7_UP} Themes, { $ENDIF} RGBHSLUtils, RGBHSVUtils, RGBCMYKUtils,
RGBCIEUtils, HTMLColors;
type
TMarkerStyle = (msCircle, msSquare, msCross, msCrossCirc);
TmbCust... |
unit WorldGenMinable_u;
interface
uses WorldGenerator_u, generation_obsh, RandomMCT;
type WorldGenMinable=class(WorldGenerator)
private
minableBlockId,numberOfBlocks:integer;
public
constructor Create(i,j:integer); reintroduce;
function generate(map:region; xreg,yreg... |
unit Firebird.Tools;
interface
uses System.SysUtils, System.Classes;
type
/// <summary>
/// Статический класс, предоставляющий API для получения служебной
/// информации об установленном в системе сервере/клиенте Firebird
/// </summary>
TFirebird = record
private
class function GetIn... |
unit Ai07;
{
ULAI07.DPR****************************************************************
File: AI07.PAS
Library Call Demonstrated: cbATrig()
Purpose: Waits for a specified analog input channel
go above or below a specified value.
... |
unit rfReservForm_Unit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, BaseFrontForm_Unit, FrontData_Unit, Front_DataBase_Unit, ExtCtrls,
AdvPanel, AdvSmoothButton, AdvSmoothTouchKeyBoard, StdCtrls, Mask, DBCtrls,
DB, kbmMemTable, ActnList, ComCtrls,... |
unit UShopMultiVis;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, Grids, ComCtrls, StdCtrls;
type
TfrShopMultiVis = class(TForm)
Label1: TLabel;
edSimulationTime: TEdit;
Label2: TLabel;
edRunsCount: TEdit;
btStart: TButton;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.