text
stringlengths
14
6.51M
unit upathdlg; interface uses forms, windows, shlobj, activex; // from a usenet post by Mike Lischke <public@lischke-online.de> function SelectPath(const Caption, InitialDir: string; const Root: WideString; ShowStatus: Boolean; out Directory: string): Boolean; implementation function BrowseCallb...
unit PhysicsMillingtonSolver; interface Uses PhysicsArifm, PhysicsRigidBody, Windows; Type TContact = class public Bodies: array [0..1] of TRigidBody; Friction, PullBack: Float; Point: TBodyVertex; Normal: TVector3; Penetration: Float; protected LocalToWorld: TMatrix3x3; ...
{*******************************************************} { } { Delphi DataSnap Framework } { } { Copyright(c) 2004-2014 Embarcadero Technologies, Inc. } { ...
unit AqDrop.DB.DBX.SQLite; interface uses System.SysUtils, Data.FmtBcd, Data.DBXCommon, Data.DbxSqlite, AqDrop.DB.Adapter, AqDrop.DB.DBX; type TAqDBXSQLiteDataConverter = class(TAqDBXDataConverter) public procedure BCDToParameter(const pParameter: TDBXParameter; const pValue: TBcd)...
unit UscanGDdir; interface uses Classes, FireDAC.Comp.Client; const IDENTCHAR = ' '; IDENTSTEP = 8; procedure ScanGoogleDriveDir(Connect:TFDConnection; StartName: string; Ext: string; sIdent: byte; DList: TStrings); implementation uses System.SysUtils, FireDAC.Stan.Option, FireDAC.Stan....
unit Delphi.Mocks.AutoMock; interface uses System.TypInfo, System.Generics.Collections, Delphi.Mocks, Delphi.Mocks.WeakReference; type TAutoMock = class(TWeakReferencedObject, IAutoMock) private FMocks : TList<IProxy>; public function Mock(const ATypeInfo : PTypeInfo) : IProxy; procedure Ad...
unit zIPPorts; interface uses Windows, Classes, NetInfo, IPHelperDef, Winsock, SystemMonitor, ntdll, zAntivirus, zStringCompressor; type // Информация по порту или соединению TIPConnection = record LocalHost : string; LocalPort : word; RemoteHost : string; RemotePort : word; S...
{******************************************************************************} { } { WiRL: RESTful Library for Delphi } { ...
{=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=] Copyright (c) 2013, Jarl K. <Slacky> Holta || http://github.com/WarPie All rights reserved. [=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=} function HexStr(x:PtrUInt; Size:SizeInt=SizeOf(PtrUInt)): String; ...
unit UScriptTests; {$I ..\Source\dws.inc} interface uses Classes, SysUtils, dwsXPlatformTests, dwsComp, dwsCompiler, dwsExprs, dwsUtils, dwsXPlatform, dwsSymbols, dwsErrors; type TScriptTests = class (TTestCase) private FTests : TStringList; FFailures : TStringList; ...
unit ServerMethodsUnit1; interface uses System.SysUtils, System.Classes, Datasnap.DSServer, Datasnap.DSAuth; type TServerMethods1 = class(TDSServerModule) public { Public declarations } function EchoString(Value: string): string; function ReverseString(Value: string): string; procedur...
// ************************************************************************ // // The types declared in this file were generated from data read from the // WSDL File described below: // WSDL : http://127.0.0.1/iaf/IAFServer.dll/wsdl/IServerManager // Version : 1.0 // (21/11/2011 01:22:53 - - $Rev: 34800 $) /...
unit AqDrop.Core.WeakInterfaceReference; interface uses AqDrop.Core.InterfacedObject; type IAqWeakReference<I: IInterface> = interface ['{D568C8D0-05F1-44A2-86FF-F248A57F7510}'] function GetValue: I; property Value: I read GetValue; end {$IF CompilerVersion >= 31} deprecated 'Use weak...
unit UCL.TUCheckBox; interface uses UCL.Classes, UCL.TUThemeManager, System.Classes, System.Types, Winapi.Messages, Winapi.Windows, VCL.Controls, VCL.Graphics; type TUCheckBoxState = (cbsChecked, cbsUnchecked, cbsGrayed); TUCustomCheckBox = class(TGraphicControl, IUThemeControl) priva...
unit Modflow6ObsUnit; interface uses System.Classes, GoPhastTypes, System.SysUtils, ModflowMawUnit, ModflowSfr6Unit, ModflowLakMf6Unit, ModflowUzfMf6Unit; type TGwFlowOb = (gfoNearestNeighbor, gfoAllNeighbors, gfoAbove, gfoBelow); TGwFlowObs = set of TGwFlowOb; TModflow6Obs = class(TGoPhastPersistent) p...
unit uTickService; interface uses Classes, SyncObjs, BusCommunication, uServices; const DEFAULT_FLASH_INTERVAL: integer = 1000; type MessageTick = class(TBusMessage); MessageTick2 = class(TBusMessage); TTickService = class(TService) private tick2: boolean; FSleepEvent: TEvent; FInterval: inte...
unit AlxFileMerge64; interface uses SysUtils, Classes, AlxCommon, Math; Const Alx64 = 945310785; type TAlxFileMerge64 = class(TObject) private FFileName: String; //Имя файла соединенного FFileCount: Int64; //Кол-во файлов в файле FArrCount: Int64; //Кол-во заполненых элементов в массиве Curr...
{******************************************************************************} { } { WiRL: RESTful Library for Delphi } { ...
unit ComIdentMain; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ImgList, Vcl.ComCtrls, Serial3, RS232, TextMessage, Vcl.ExtCtrls, Vcl.StdCtrls; type TForm3 = class(TForm) ltvCom: TListView; ls...
unit frmSnapshot; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.AppEvnts, scControls, scModernControls, scGPControls, MRVCamView, jpeg, acImage, uFunction, ieview, imageenview, Vcl.StdCtrls,...
unit Service.Register; interface uses System.SysUtils, System.StrUtils, System.Classes, System.Threading, System.JSON, System.UITypes, USharedConsts, UAppSharedUtils, REST.Backend.ServiceTypes, REST.Client, Data.Bind.Components, Data.Bind.ObjectScope, REST.Backend.EndPoint, UDM, FMX.Dial...
unit OAuth2.CryptKey; interface uses System.RegularExpressions, System.SysUtils; type TOAuth2CryptKey = class private { private declarations } const RSA_KEY_PATTERN = '^(-----BEGIN (RSA )?(PUBLIC|PRIVATE) KEY-----)*([a-z0-9+/=]+)*(-----END (RSA )?(PUBLIC|PRIVATE) KEY-----)?$'; private { priv...
(*Output: Map of bool variables: {} Map of real variables: {a=null, b=null, c=null} Map of bool variables: {} Map of real variables: {a=null, b=null, c=null, d=10.0} Map of bool variables: {flag=null} Map of real variables: {a=null, b=null, c=null, d=10.0} Map of bool variables: {flag=null} Map of real variables: {a...
unit FormUnit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, Buttons, ClrBandInterface, ComCtrls ,Spring.Collections ,StrUtils ; type TForm1 = class(TForm, IBandFill) Panel1: TPanel; BitBtn1: TBitBtn; ...
unit meta_behaviour_tree; { based on Bjoern Knafla's article: http://www.altdevblogaday.com/2011/02/24/introduction-to-behavior-trees/ } interface uses Classes, SysUtils, system.Generics.collections, generics.defaults, system.types; type nodeStates = ( nsFailed, nsReady,//reqdy for query // ...
{******************************************************************************} { } { WiRL: RESTful Library for Delphi } { ...
unit frameBuscaProduto; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, System.StrUtils, Dialogs, StdCtrls, Buttons, Mask, RXToolEdit, RXCurrEdit, Produto, Estoque; type TBuscaProduto = class(TFrame) StaticText1: TStaticText; StaticText2: TStaticText; btnBu...
(************************************ * a brainfuck interpreter in pascal * * (c)2015 by ir. Marc Dendooven * * **********************************) program brainfuck; uses math; const dataSize=30000; var data: array[0..datasize] of char; p: 0..datasize; f: file of char; ch: char; procedure bf_sequence; va...
UNIT Graphics; (*< Grphics stuff. *) (* Copyright (c) 2019 Guillermo Martínez J. 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...
unit USessionsManager; interface uses Classes , KRK.Lib.Rtl.Common.Classes; type TSessionItem = class(TCollectionItem) private FSessionID: String; FSessionData: String; FSessionLastModified: TDateTime; published property SessionID: String read FSessionID write FSessionID; ...
unit Pessoa; interface type TPessoa = class private id : Integer; nome : String; function getId: Integer; function getNome: String; procedure setID(const Value: Integer); procedure setNome(const Value: String); public property FId : Integer read getId write setID; property FNome :...
unit EV03; {ULEV03.DPR================================================================ File: ULEV03.PAS Library Call Demonstrated: cbEnableEvent - ON_SCAN_ERROR - ON_PRETRIGGER - ON_END_OF_...
//Copyright 2015 Andrey S. Ionisyan // //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agre...
unit frLoginServer; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, dmLoginServer, jpeg, ExtCtrls, frLogin; type TfLoginServer = class(TframeLogin) cbRecordar: TCheckBox; procedure bIdentificarClick(Sender: TObject); procedure cbRecordar...
unit Delphi.Mocks.Tests.Utils; interface uses DUnitX.TestFramework, Rtti, Delphi.Mocks.Helpers; type //Testing TValue helper methods in TValueHelper {$M+} [TestFixture] TTestTValue = class published procedure Test_TValue_Equals_Interfaces; procedure Test_TValue_NotEquals_Interfaces; proced...
unit Lib.Data.Helpers; interface uses Data.DB, System.JSON; type TDataset2JSONHelper = class helper for TDataset public function CurrentRowAsJSON: TJSONObject; function AllRowsAsJSONArray: TJSONArray; end; implementation { TDataset2JSONHelper } function TDataset2JSONHelper.CurrentRowAsJSO...
object frmOverWrite: TfrmOverWrite Left = 236 Top = 185 BorderStyle = bsDialog Caption = 'Datei überschreiben ...' ClientHeight = 101 ClientWidth = 328 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'MS Sans Serif' Font.Style = [] OldCr...
// ************************************************************************ // // The types declared in this file were generated from data read from the // WSDL File described below: // WSDL : https://www.appraiserworx.ca/webservice/OrderServices.asmx // Encoding : utf-8 // Version : 1.0 // (2/14/2011 9:52:36 AM -...
{*! * Fano Web Framework (https://fanoframework.github.io) * * @link https://github.com/fanoframework/fano * @copyright Copyright (c) 2018 Zamrony P. Juhara * @license https://github.com/fanoframework/fano/blob/master/LICENSE (MIT) *} unit MiddlewareStackImpl; interface {$MODE OBJFPC} uses Classes...
unit DBAppProjetosArq; interface uses Winapi.Windows, System.SysUtils, System.Variants, System.Classes, IOUtils, XMLDoc, XMLIntf, XMLDom, DBAppBaseArq; type TDBAppProjetoRec = record Nome : string; Cadastro : TDateTime; Alteracao : TDateTime end; TDBAppProjetosArq = class(TDBAppBaseA...
unit UImageViewCacheListForm; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, UHttpManage, UImageViewConfig, UImageViewer, ApiBmp, PNGImage, SPIs, SPIbmp, Dialogs, ExtCtrls, StdCtrls, ComCtrls, UAnimatedPaintBox, Menus, JLXPComCtrls, GIFImage; type TLoad...
{******************************************************************************} { } { Indy (Internet Direct) - Internet Protocols Simplified } { ...
(* * Библиотека Modbus * Реализует взаимодействие с устройством по протоколу Modbus * * Фабрика запросов modbus создает ReadInput, ReadHolding, WriteMultiple и т.д. * Запрос помещается в очередь контроллера. * Результат выполнения можно узнать с помощью функции 'Responded'. * Строитель создает определенный стек...
{ ****************************************************************************** } { * AI Common define * } { * by QQ 600585@qq.com * } { *********************************************************************...
PROGRAM AverageScore(INPUT, OUTPUT); CONST Min = 0; Max = 100; NumberOfScores = 4; ClassSize = 4; TYPE Score = 0 .. 100; VAR WhichScore: 0 .. NumberOfScores; Student: 0 .. ClassSize; NextScore: Score; Ave, TotalScore, ClassTotal: INTEGER; Counting, Overflow: BOOLEAN; PROCEDURE CopyWord(VAR Fin, Fout...
{*******************************************************} { } { Delphi Visual Component Library } { ClientDataSet Standard Reconcile Error Dialog } { } { Copyright(c) 1995-2010 ...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC MySQL wrapper classes } { } { Copyright(c) 2004-2013 Embar...
unit DataPairsUnit; interface type TIntegerPairRec = record First: integer; Second: integer; end; TIntegerPair = class strict private FFirst: integer; FSecond: integer; public constructor Create(First, Second: integer); property First: integer...
unit DefaultsTest; interface uses dbTest, dsdDB; type TDefaults = class (TdbTest) private FStoredProc: TdsdStoredProc; protected // подготавливаем данные для тестирования procedure SetUp; override; // возвращаем данные для тестирования procedure TearDown; override; published procedur...
{ $Project$ $Workfile$ $Revision$ $DateUTC$ $Id$ This file is part of the Indy (Internet Direct) project, and is offered under the dual-licensing agreement described on the Indy website. (http://www.indyproject.org/) Copyright: (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All r...
unit TipoOrigemMercadoria; interface type TTipoOrigemMercadoria = (tomNacional=0, tomEstrangeiraImportacaoDireta=1, tomEstrangeiraAdquiridaMercadoInterno=2); type TTipoOrigemMercadoriaUtilitario = class public class function DeEnumeradoParaInteger(...
unit LoggerAccessor; interface uses SysUtils, Classes, Logger; type TLoggerAccessor = class private class var FCurrentLogger: ILogger; class function GetCurrentLogger: ILogger; static; class procedure SetCurrentLogger(const Value: ILogger); static; public class pr...
unit ui_list_of_actors; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, Grids, Buttons, core_orders , core_orders_manager, core_types, core_logic, core_behaviour_tree, core_main; type { TactorsListForm } TactorsListForm = class(TForm) gri...
unit RESTRequest4D.Response.FPHTTPClient; {$IFDEF FPC} {$mode delphi} {$ENDIF} interface uses Classes, SysUtils, RESTRequest4D.Response.Contract, FPHTTPClient, openssl, fpjson, jsonparser; type TResponseFPHTTPClient = class(TInterfacedObject, IResponse) private FJSONValue: TJSONData; FFPHTTPClient: TF...
unit TarFTPTests; interface uses TestFramework, Windows, Dialogs, Forms, fMainForm, Controls, Classes, SysUtils, Variants, Graphics, Messages, TarFTP.Interfaces, TarFTP.MVC, TarFTP.MocksAndStubs, IdAntiFreezeBase ; type TTarArchiverTest = class(TTestCase) private FArchiver : IArchiver; protected ...
unit DBDataTableFormPropertiesIniFile; interface uses DBDataTableFormPropertiesStorage, DBDataTableFilterFormStatePropertiesStorage, DBDataTableFormUnit, TableViewFilterFormUnit, PropertiesIniFileUnit, cxGrid, cxGridCustomTableView, cxGridDBTableView, SysUtils, Classes; const LAST_FOCUSED_REC...
unit oOscilloscopeFrame; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, ExtCtrls, StdCtrls, Spin, Buttons, TAGraph, TASeries, TACustomSource, TASources, TATransformations, TATools, uESelector, uEKnob, oGlobal, oBaseFrame; type { TOscilloscopeFrame } TOscilloscopeFra...
unit Unit5; interface uses Windows, SysUtils, Forms, Dialogs, ShellApi, Unit3, Classes, Controls, ExtCtrls, ComCtrls, StdCtrls; type TForm5 = class(TForm) Timer1: TTimer; ButtonAnnuler: TButton; ProgressBar1: TProgressBar; ProgressBar2: TProgressBar; Label1: TLabel; L...
{******************************************************************************} { } { Indy (Internet Direct) - Internet Protocols Simplified } { ...
unit ServerMethodsUnit; interface uses System.SysUtils, System.Classes, Datasnap.DSServer, Datasnap.DSAuth; type TServerMethods = class(TDSServerModule) private { Private declarations } public { Public declarations } function EchoString(Value: string): string; function ReverseStrin...
unit Launch; {$mode objfpc}{$H+} interface uses Classes, SysUtils, LaunchCore, LaunchLinks, LaunchFairings, LaunchFailure, DatePrecision, BaseModel, JSON_Helper; type IBaseLaunch = interface(IBaseModel) ['{F5B330BA-09F7-4B0B-8164-FF319A07F28A}'] function GetAutoUpdate: Boolean; function GetCapsulesId...
program questao83; uses tadpilha; var pilha:Tpilha; n:integer; break:boolean; begin read(n); break:=false; while (n <> 0) and (not break)do begin if (n > 0) then push(pilha,n) else if (n + pop(pilha) = 0) then n:=pop(pilha) else if (n + pop(pilha) <> 0) then break:=true; read(n); end; if ...
unit Unit2; interface type TSession = class private SessionState : Boolean; RecvCallState : Boolean; HoldState : Boolean; SessionID : NativeInt; ReferCall : Boolean; OriginSessionId : NativeInt; ExistsEarlyMedia : Boolean; public function GetSessionID: NativeInt; function ...
{******************************************************************************} { } { Indy (Internet Direct) - Internet Protocols Simplified } { ...
unit Menus.Controller.ListBox.Interfaces; interface Uses System.Classes, FMX.Types; type iControllerListBoxItensDefault = interface; iControllerListBoxDefault = interface; iControllerListBoxItemForm = interface ['{1C16B3BE-45FB-40AB-9F04-74FDBCBBDCD5}'] function Show : TFmxObject; end; iControll...
{$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...
{******************************************************************************} { } { WiRL: RESTful Library for Delphi } { ...
unit UpresLayerUnit; {Neural Network library, by Eric C. Joyce An upres layer serves to prepare input for (transposed) convolution. s = stride p = padding input mat(X) output for s = 1, p = 0 output for s = 1, p = 1 [ x11 x12 x13 x14 ] [ x11 0 x12 0 x13 0 x14 ] [ 0 0 0 0 0 0 0 0...
unit UToolUtils; interface uses classes, Contnrs; type TApexSketchResults = class(TObject) public FTitle: String; FDataKind: String; FDataStream: TMemoryStream; FSketches: TObjectList; FArea: Array of Double; constructor Create; destructor Destroy; override; end; const ...
{ @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 LaunchFairings; {$mode objfpc}{$H+} interface uses Classes, SysUtils, BaseModel, JSON_Helper; type IBaseLaunchFairings = interface(IBaseModel) ['{C2C2C1EB-1AA0-4578-9348-C7E1197767E0}'] function GetRecovered: Boolean; function GetRecoveryAttempt: Boolean; function GetReused: Boolean; funct...
unit Alcinoe.AndroidApi.InstallReferrer; interface uses Androidapi.JNI.GraphicsContentViewText, Androidapi.JNIBridge, Androidapi.JNI.JavaTypes; type {*************************************} JALInstallReferrerListener = interface; JALInstallReferrer = interface; {************************...
{******************************************************************************} { } { WiRL: RESTful Library for Delphi } { ...
unit FNetwork; interface uses sysutils, winsock, FInterfaceDraw, FNetworkTypes ; type TNetwork = class public constructor connect(); function receiveFrom(buffer : pointer ; var senderIP : string255) : integer; procedure sendToIp(ip: PAnsiChar; buffer: pointer ; l: integer); ...
// HTTPThreadPool is a ready to use thread pool for any amount of HTTP requests // // By the way, it is a example for a implementation of a specialized thread pool through deriving // from classes served by ThreadPool. // // HTTPThreadPool is licensed under the same conditions as the unit ThreadPool.pas // // ...
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); procedure FormShow(Sender: TObject); private { Private declarations } public { P...
unit Aspect4D.UnitTest.Entity; interface uses System.SysUtils, Aspect4D.UnitTest.Security, Aspect4D.UnitTest.Logging; type TCarEntity = class private fAction: string; protected { protected declarations } public [Security('123')] procedure Insert; virtual; [Logging] [Security('...
unit MyMovie; { have bug, not complete. } interface uses Windows,Messages,classes,AMovie_TLB,ComWriUtils; type TMyMovie = class(TComponent) private FPainted : boolean; FActiveMovie: TActiveMovie; //FSafeCall : TSafeProcCaller; procedure SetFileName(const Value: string); procedure AfterFirstPai...
unit QueryExecutor; interface uses IGetSelfUnit, DataReader, VariantListUnit, SysUtils, Classes; type TQueryParam = class public ParamName: String; ParamValue: Variant; constructor Create; constructor CreateFrom( const ParamName: String; const ParamValue: ...
unit JuridicalGroupTest; interface uses dbTest, dbObjectTest, TestFramework, ObjectTest; type TJuridicalGroupTest = class (TdbObjectTestNew) published procedure ProcedureLoad; override; procedure Test; override; end; TJuridicalGroup = class(TObjectTest) private function InsertDefault: integer; ...
{$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...
unit PrinterFactory; interface uses PrinterInterface; type TPrinterFactory = class class function GetPrinter(PrinterType: string): IPrinter; end; implementation uses Printer_FP3530T_NEW, Printer_Emulation, SysUtils; { TCashFactory } class function TPrinterFactory.GetPrinter(PrinterType: string): IPrinter;...
unit Sample5.Main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Sample5.Contact, DSharp.Collections.ObservableCollection, Spring.Collections, ExtCtrls, StdCtrls, ComCtrls, Grids, DSharp.Bindings.VCLControls, DSharp.Bindings; type TMainForm = class(TForm...
{ Автор: Гудулин Александр Олегович Группа: 141 Дата: 30.11.2011 Задача ставится на тему "Ходы КОНЯ". После запуска программы на форме, на квадратном элементе Image1, появляется шахматная доска размера 8x8. Щелчком мыши по какому-то из полей доски мы показываем место, откуда КОНЬ до...
unit DialogNumberValue; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, AncestorDialogScale, StdCtrls, Mask, Buttons, ExtCtrls, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters, Vcl.Menus, dxSkinsCore, dxSkinsDefaultPainters, cxControls, cxContainer, cxEdit,...
unit IdTestCoderMIME; interface uses IdCoderMIME, IdSys, IdTest; type TIdTestCoderMIME = class(TIdTest) published procedure TestDecodeLineByLine; procedure TestDecodeMIME; end; implementation const cEnc1:string='TWFya3RlaW5m/GhydW5nIGVpbmVzIHb2bGxpZyBuZXVlbiBLb256ZXB0cw=='...
unit core_renderable; {$mode objfpc}{$H+} interface uses Classes, SysUtils,VectorGeometry,dglOpenGL, fgl, core_types; type //base class for renderable objects that have their own render { TRenderable } TRenderable = class protected fvisible:boolean; procedure setVisible(AValue: boolean); public ...
unit UFileCopy; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ShellUtils, StdCtrls; type TForm1 = class(TForm) Label1: TLabel; edFrom: TEdit; Label2: TLabel; edTo: TEdit; btnBrowse: TButton; btnCopy: TButton; OpenDialog1: TOpenDialog; F...
{*******************************************************} { } { Delphi FireMonkey Platform } { Copyright(c) 2012-2013 Embarcadero Technologies, Inc. } { } {*****************************...
unit VclEx.Form; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, Vcl.Controls, Vcl.Forms; type TFormEx = class abstract (TForm) private const idOnTop = 10001; procedure WMSysCommand(var Message: TWMSysCommand); message WM_SYSCOMMAND; procedure WMInitMenuPopup(var Message: TWMInitMe...
unit QueueMobileClientUnit; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, IPPeerClient, Data.Cloud.CloudAPI, Data.Cloud.AmazonAPI, FMX.Objects, FMX.Controls.Presentation, FMX.StdCtrls, FMX.L...
unit Helpers; interface uses SysUtils, Variants, RTTI, Dialogs; resourcestring my_key = '33189'; type TDCStringHelper = record helper for string function SquareBracket():string; function Bracket():string; function Surround(SurChar:Char):string; function Quotes:string; function AddSt...
{$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...
{$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...
Unit XLbProps; Interface Uses Windows, Classes, DsgnIntf, Menus, DBReg; Type { TFormControlProperty } TFormControlProperty = class(TComponentProperty) public procedure GetValues(Proc: TGetStrProc); override; end; { TMenuItemCaptionProperty } TMenuItemCaptionProperty = class(TStri...
unit rpi; {$mode objfpc}{$H+} interface uses Classes, SysUtils; const LED_PIN: integer = 17; type TGPIODirection = (dirINPUT, dirOUTPUT); { TRaspberryPI } TRaspberryPI = class private FExportedPINs: array of integer; FSetupDelay: word; procedure SetSetupDelay(AValue: word); protected ...
unit DataSetOperationThreadUnit; interface uses Windows, SysUtils, Classes, DB, StrUtils, ZAbstractDataset, ZAbstractRODataset, CancellationThreadUnit; const PG_QUERY_CANCELLED_ERROR_CODE = '57014'; type TDataOperationType = (opSelectData, opChangeData); TOnDataOperationErrorOccurredEven...
unit Menus.Controller.Entity.Facade; interface uses Menus.Controller.Entity.Interfaces, Menus.Controller.Entity.Factory; type TControllerEntityFacade = class(TInterfacedObject, iControllerEntityFacade) private FEntity : iControllerEntityFactory; public constructor Create; ...
unit Proxy.Books; interface uses Data.DB, Data.DataProxy, System.SysUtils, System.Classes, // ---- Stage 2 code: System.DateUtils, System.StrUtils, System.Generics.Collections, // ---- FireDAC.Comp.Client, // ---- Stage 2 code: Procesor.Currency.Intf, Model.Books; // ---- type TBooksPr...
{******************************************************************************} { } { WiRL: RESTful Library for Delphi } { ...