text
stringlengths
14
6.51M
{**************************************************************************************************} { } { Project JEDI Code Library (JCL) } { ...
{*******************************************************} { } { Borland Delphi Visual Component Library } { XDR Translator for XML Schema } { } { Copyright (c) 2001-2002 Bor...
unit ProgressBarForm2; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, RootForm, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, dxSkinsCore, dxSkinBlack, dxSkinBlue, dxS...
unit SHL_ProcessStream; // SemVersion: 0.2.0 // Contains TProcessStream class for creating processes and piping data // Currently only for windows, this is quick&dirty approach... // Changelog: // 0.1.0 - test version // 0.2.0 - priority // TODO: // - follow Lazarus's TProcess? // - more control // - err...
unit BLog4D; interface uses Log4D,Classes, Windows, SysUtils, BDebug; type TBLog4DInfo = record FLoggerName: string; FUnitName : string; FMethodName: string; end; procedure BLog4DConfigure(APropertyFileName: String); // Main Logging Methods procedure LogFatal(ALogMessage: string; const ALoggerName : strin...
unit Optimizer.SystemRestore; interface uses SysUtils, OS.EnvironmentVariable, Optimizer.Template, Global.LanguageString, OS.ProcessOpener, Registry.Helper; type TSystemRestoreOptimizer = class(TOptimizationUnit) public function IsOptional: Boolean; override; function IsCompatible: Boolean; overrid...
{*********************************************************************************************************************** * * TERRA Game Engine * ========================================== * * Copyright (C) 2003, 2014 by SÚrgio Flores (relfos@gmail.com) * ***************************************************...
unit ncaWebBotao; interface uses classes, sysutils, dxBar, Windows, idHttp, cxStyles, dxGDIPlusClasses, Graphics, cxPC, ncaFrmWebTab; type TncaWebBotoes = class; TncaDownloadBotaoThread = class ( TThread ) private FDownOk : Boolean; FImg : String; protected procedure Execute; override; ...
unit ServerMain; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Corba, CosNaming, Bank_I, Bank_C, Bank_S, Bank_Impl; type TForm1 = class(TForm) Label1: TLabel; Edit1: TEdit; procedure FormCreate(Sender: TObject); procedure FormDestroy(Sender: ...
{*******************************************************} { } { FMX UI Dialog 通用对话框 } { } { 版权所有 (C) 2016 YangYxd } { ...
UNIT bigint; INTERFACE USES sysutils, math, myGenerics, serializationUtil; TYPE DigitType=dword; CarryType=qword; DigitTypeArray=array of DigitType; CONST BITS_PER_DIGIT=32; DIGIT_MAX_VALUE:int64=(1 shl BITS_PER_DIGIT)-1; UPPER_DIGIT_BIT=1 shl (BITS_PER_DIGIT-1); WORD_BIT:arra...
Unit APSelectionForm; Interface Uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, wlanNetwork, wlanBssEntry, wlanAPI, Vcl.ExtCtrls, Vcl.StdCtrls; type TForm2 = Class (TForm) ListView1: TListView; P...
{ *************************************************************************** } { } { Delphi and Kylix Cross-Platform Visual Component Library } { } ...
unit UnitCennik; interface const FIELDS_MAX = 4; OLD_CENNIK_EXT = '.old'; NEW_CENNIK_EXT = '.new'; type PCennikServer = ^TCennikServer; PData = ^TData; TCennikServer = record Host : string; Port : integer; User : string; Password : string; ...
unit calculate; interface type TCalculate = class public function Add( A, B: uint32 ): uint32; end; implementation { TCalculate } function TCalculate.Add(A, B: uint32): uint32; begin Result := A + B; end; end.
{(*} (*------------------------------------------------------------------------------ Delphi Code formatter source code The Original Code is frCapsSettings.pas, released April 2000. The Initial Developer of the Original Code is Anthony Steele. Portions created by Anthony Steele are Copyright (C) 1999-2008 Ant...
unit ReportsDrawer; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseForm, Vcl.ComCtrls, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, dxSkinsCore, dxSkinBlack, dxSkinBlue, dxSkinBlueprint...
{*******************************************************} { } { Delphi DataSnap Framework } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
{ multiply two matrices, store results in third matrix, and print results } program matrix_mul ; const SIZE = 9 ; { (size of matrices)-1 } type matrix = array[0..SIZE, 0..SIZE] of real; integer = longint; var a : matrix ; { first array } b : matrix ; { second array } c : matrix ; { resul...
unit UMinecraftVersionsLoader; interface uses SuperObject, Classes, Generics.Collections, VCL.dialogs; type TMinecraftVersion = class public id, time, releaseTime, mtype:string; end; TMinecraftVersionsLoader = class private JSON:string; jso:ISuperObject; public Snapshot, Release : string;...
unit U.Methods; interface uses System.Bindings.EvalProtocol; procedure PrintFactoryMethodList; procedure RegisterCapitalizeMethodOnFactory; function GetPutStarsMethodScope: IScope; implementation uses U.Utilities, System.Bindings.Methods, System.Bindings.Helper; // PrintFactoryMethodList procedure Print...
{*******************************************************} { } { Delphi FireMonkey Platform } { } { Copyright(c) 2011 Embarcadero Technologies, Inc. } { ...
{*******************************************************} { } { Borland Delphi Visual Component Library } { } { Copyright (c) 1997, 1998 Inprise Corporation } { ...
procedure initLexer(); begin ch := input^; get(input); peek := input^; end; procedure getChar(); begin get(input); ch := peek; peek := input^; end; procedure getToken(); type tstate = (start, readingid, readingstring, skip, finished, failed); var done : boolean; i : integer; state : ...
{**********************************************************************} {* Иллюстрация к книге "OpenGL в проектах Delphi" *} {* Краснов М.В. softgl@chat.ru *} {**********************************************************************} unit frmMain; interface u...
unit ObjectMappingTests; interface uses TestFramework, DataBindingResultXML, XMLDataBindingGenerator; type TTestXMLDataBindingGenerator = class(TXMLDataBindingGenerator) protected procedure GenerateDataBinding(); override; end; TObjectMappingTests = class(TAbstractTest, ITest) ...
{*******************************************************} { } { Borland Delphi Visual Component Library } { IBM XML DOM Implementation Wrapper } { } { Copyright (c) 2000 Borlan...
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+} {$M 16384,0,0} { by Behdad Esfahbod Algorithmic Problems Book April '2000 Problem 166 Backtrack Method } program MapFold; uses FoldUnit; type TMove = record L : Byte; D : string[2]; end; TMoves = array [1 .. 10] of TMove; var M, N : Intege...
unit uMain; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, uServer, Vcl.ComCtrls; type TServerForm = class(TForm) labelUniqueName: TLabel; editUniqueName: TEdit; gbServer: TGroupBo...
(************************************************************************* Cephes Math Library Release 2.8: June, 2000 Copyright by Stephen L. Moshier Contributors: * Sergey Bochkanov (ALGLIB project). Translation from C to pseudocode. See subroutines comments for additional copyrights. >>> SOUR...
unit WinTestColors; {$mode objfpc}{$H+} interface uses SysUtils, Forms, Graphics, ColorBox, StdCtrls, ExtCtrls, FpcUnit, TestRegistry; type TTest_Colors = class(TTestCase) published procedure TestColors; end; { TWndTestColors } TWndTestColors = class(TForm) BlendTestButton: TButton; Blend...
{ "RTC Gate Streamer Link" - Copyright 2004-2017 (c) RealThinClient.com (http://www.realthinclient.com) @exclude } unit rtcXGateStream; interface {$include rtcDefs.inc} uses Classes, SysUtils, rtcTypes, rtcConn, rtcGateConst, rtcGateCli, rtcXGateCIDs; type TRtcGMLink...
{*****************************************} { TeeChart Pro } { Copyright (c) 1996-2004 David Berneda } { } { TPyramid Series } {*****************************************} unit TeePyramid; {$I TeeDefs.inc} interface Uses Class...
{ Union-Find Data Structure Operations: Init(N): Initialize list for use with N records Union(X, Y): Merge groups of X and Y Find(X): Return the group of a X Reference: Creative, p80-83 By Ali } program UnionFind; const MaxN = 10000 + 2; var List: array[1 .. MaxN] of record P: Integer; {Paren...
{*******************************************************} { } { Borland Delphi Visual Component Library } { } { Copyright (c) 1995,2002 Borland Software Corporation } { ...
{**********************************************************************} {* Иллюстрация к книге "OpenGL в проектах Delphi" *} {* Краснов М.В. softgl@chat.ru *} {**********************************************************************} {/* * decal.c * Brad Gr...
unit PascalCoin.FMX.Frame.Wallet; 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.Controls.Presentation, FMX.Layouts, System.Rtti, FMX.Grid.Style, FMX.Grid, FMX.ScrollBox, PascalCo...
{ Copyright (c) 2010, Loginov Dmitry Sergeevich All rights reserved. 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 list of conditio...
unit MediaStream.Writer.AVI; interface uses Windows,Classes,SysUtils,VFW,MMSystem,MediaProcessing.Definitions; type //Записывает видеопоток в формате AVI напрямую складывая данные из потока TMediaStreamWriter_AVI = class private FFileName: string; FHeaderWritten: boolean; FVideoEnabled: boolean; ...
unit uImagesScrollBox; interface uses Windows, SysUtils, ExtCtrls, classes, controls, StdCtrls, graphics, forms, uImagem, uPrintManBaseClasses, Messages, Int64List, SyncObjs; type TPageEvent = procedure(Sender: TObject; aPageNum:integer) of object; TBitmapEvent = procedure(Sender: TObject; idx:inte...
unit Getter.VolumeLabel; interface uses Classes, Windows, SysUtils, MeasureUnit.DataSize, OSFile.ForInternal; type TVolumeLabelGetter = class(TOSFileForInternal) private type TNTBSVolumeName = Array[0..MAX_PATH] of Char; private VolumeLabelInNTBS: TNTBSVolumeName; procedure SetVolumeLabel...
unit Extern.SevenZip; interface uses SysUtils, OS.ProcessOpener, Getter.CodesignVerifier; type TSevenZip = class private function BuildCommand (const SzipPath, SrcFile, DestFolder, Password: String): String; function VerifySevenZip(const SzipPath: String): Boolean; public function Extract...
namespace Documents; interface uses AppKit; type [IBObject] FooDocument = public class(NSDocument) method loadDocumentFromURL(url: NSURL): Boolean; method saveDocumentToURL(url: NSURL): Boolean; public property data: FooDocumentData read private write ; // NSDocument implementation co...
unit Unit2; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls, Data.FMTBcd, Data.DB, Data.SqlExpr, Data.DbxSqlite, Vcl.Grids, Vcl.DBGrids, Vcl.Themes; type TForm1 = cla...
Unit SDS_Det; { Sound Deluxe System 5 a Maple Leaf production, 1996-1997 (Maple Leaf is a.k.a. Gruian Radu Bogdan) --------------------------------------------------------------------- Souncards detection and initialization routines ---------------------------------------------------------------...
unit uDynArray; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, System.Character, System.Variants, Generics.Collections, Generics.Defaults, VCL.Forms; type TDynArrayObjectDestroyEvent = procedure( Sender: TObject ); TDynArrayObject< T > = class private FItems: TArr...
{$i deltics.interfacedobjects.inc} unit Deltics.InterfacedObjects.ComInterfacedObject; interface uses Deltics.InterfacedObjects.InterfacedObject, Deltics.InterfacedObjects.ObjectLifecycle; type TComInterfacedObject = class(TInterfacedObject) private fReferenceCount: Integer; prote...
// // This unit is part of the GLScene Project, http://glscene.org // {: GLEParticleMasksManager<p> A pretty particle mask effect manager.<p> <b>History : </b><font size=-1><ul> <li>16/03/11 - Yar - Fixes after emergence of GLMaterialEx <li>24/03/07 - Improved Cross-Platform compatibility (...
{ This simple TreeView component is inherited from TCustomControl } { it does not uses Windows TreeView control from comctl32.dll } { (c) L_G, last modification: Jan 2014 } // To use your custom-modified TUserDumbTreeNode in separate UserDumbTreeNode.pas, // uncomment define in the next ...
unit IdMessageCollection; {* TIdMessageCollection: Contains a collection of IdMessages. 2000-APR-14 Peter Mee: Converted to Indy. 2001-MAY-03 Idan Cohen: Added Create and Destroy of TIdMessage. Originally by Peter Mee. *} interface uses Classes, IdMessage; type TIdMessageItems = class of TIdMessageI...
{Pascal function that tests if a number is prime The function tests if a number is prime by looking for possible divisors between 2 and the square root of the number There is no need to look for divisors bigger than the square root of the number, since if they exist, then there should also exist another divisor, whi...
unit JD.Weather.NWS; interface uses System.Classes, System.SysUtils, System.Generics.Collections, Vcl.Graphics, Vcl.Imaging.Jpeg, Vcl.Imaging.PngImage, Vcl.Imaging.GifImg, JD.Weather, JD.Weather.Intf, SuperObject; type TNWSWeatherThread = class(TJDWeatherThread) public public function GetUrl: String...
unit TestClass; {$mode delphi} interface uses Classes, SysUtils; type { TRect } TRect = class private FHeight: Integer; FWidth: Integer; procedure SetHeight(AValue: Integer); procedure SetWidth(AValue: Integer); public property Width: Integer read FWidth write SetWidth; property ...
unit LoanType; interface type TLoanType = class(TObject) private FId: integer; FName: string; public property Id: integer read FId write FId; property Name: string read FName write FName; constructor Create; overload; constructor Create(const id: integer; const name: string); overload; ...
unit Antlr.Runtime.Collections.Tests; { 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 TestFramewo...
//////////////////////////////////////////////////////////////////////////////// // // // FileName : SUIComboBox.pas // Creator : Shen Min // Date : 2002-09-29 V1-V3 // 2003-06-24 V4 // Comment : // // Copyright (c) 2002-2003 Sunisoft // http://www.sunisoft.com // Email: ...
unit SearchProductDescriptionQuery; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, HandlingQueryUnit, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phy...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Core developers // Copyright (c) 2020-2020 Skybuck Flying // Copyright (c) 2020-2020 The Delphicoin Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-...
unit ufmFormSizedFonts; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ufmFormBase, dxPSGlbl, dxPSUtl, dxPSEngn, dxPrnPg, dxBkgnd, dxWrap, dxPrnDev, dxPSCompsProvider, dxPSFillPatterns, dxPSEdgePatterns, dxPSPDFExportCore, dxPSPDFExport, cxDrawTextUtils, dxP...
unit uLog; interface uses windows,sysutils,uConfig; procedure init(); procedure Log(txt:string); var tf:TextFile; implementation procedure init(); begin if not uConfig.isInit then uConfig.init(); AssignFile(tf,uconfig.logfile); if(not fileexists(uconfig.logfile))then Rewrite(tF) //会覆盖已存在的文件 else App...
unit LoginDetails; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Registry; type TfrmLoginSetup = class(TForm) GroupBox1: TGroupBox; edUserName: TEdit; edPassword: TEdit; Label1: TLabel; Label2: TLabel; Button1: TButton; ...
unit InfoSourceList; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseGridDetail, Data.DB, RzButton, Vcl.StdCtrls, Vcl.Mask, RzEdit, Vcl.Grids, Vcl.DBGrids, RzDBGrid, RzLabel, Vcl.ExtCtrls, RzPanel, RzDBEd...
unit uTiposDeImpressao; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, dxSkinsCore, dxSkinBlack, dxSkinBlue, dxSkinCaramel, dxSkinCoffee, dxSkinDarkRoom, dxSkinDarkSide, dxSkinFoggy, dx...
{********************************************************************* * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Autor: Brovin Y.D. * E-mail: y.brovin...
{----------------------------------------------------------------------------- Author: Roman Fadeyev Purpose: Специальный для экспорта котировок History: -----------------------------------------------------------------------------} unit FC.StockData.Export.MT4Exporter; {$I Compiler.inc} interface uses Wind...
unit testlinminunit; interface uses Math, Sysutils, Ap, linmin; function TestLinMin(Silent : Boolean):Boolean; function testlinminunit_test_silent():Boolean; function testlinminunit_test():Boolean; implementation function TestLinMin(Silent : Boolean):Boolean; var WasErrors : Boolean; begin WasE...
unit uBase; interface uses WinApi.ActiveX, SysUtils, uExceptions, uExceptionCodes; type TBaseObject = class(TInterfacedObject) strict private FGuid: TGuid; function GetGuid: TGuid; function GetGuidAsStr: string; public constructor Create; property ID: TGuid read GetGuid; ...
unit uNexSignAC; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, spdCFeSatType, ActiveX, spdCFeSat, IdContext, IdCustomHTTPServer, IdBaseComponent, IdComponent, IdCustomTCPServer, IdHTTPServer, Vcl.StdCtrl...
unit u_ReaderThread; {$MODE objfpc}{$H+} interface uses Windows,Classes, FileUtil, LCLIntf, u_DevAPI, u_Func, SysUtils,SyncObjs; type TReaderCMD=(RC_None=0,RC_1D_Car=1,RC_UL_Car=2,RC_IC_Driver=3,RC_1D_DriverTargetPlace=4); { TReaderThread } TReaderThread=Class(TThread) private ...
UNIT RandUnit; INTERFACE FUNCTION IntRand: integer; PROCEDURE InitRandSeed(s: integer); FUNCTION RangeRand(n: integer): integer; FUNCTION RealRand: real; IMPLEMENTATION const M = 32768; (* 2^x *) var x: longint; FUNCTION RangeRand(n: INTEGER): INTEGER; VAR z, k: INTEGER; BEGIN //RangeRand2 ...
unit HamUtils; interface uses Windows, Messages, SysUtils, Math, DateUtils; function DateTimeToMJD(DT: TDateTime): double; function Kepler(U0, E: double): Double; function UtToSiderealTime(Ut: TDateTime; Lon: double): TDateTime; //procedure Wait(t: integer); const Pi2: double = 2 * pi; // 2 × P...
unit g_game_objects; interface uses g_class_gameobject, u_math, g_bonuses; type TObjectsEngine = class (TGameObject) Objects : Array of TGameObject; Rendered : Integer; procedure Move; override; procedure Render; override; procedure AddObject(Obj : TGameObject); procedure DeleteObject(Inde...
program Sample; function Func(i :Integer) :Integer; begin WriteLn(i); Func := 'abc'; end; var res : Integer; begin res := Func(1); WriteLn('res: ', res); end.
unit TimeAndDate; interface uses System.SysUtils, WebSite, HtmlDoc; type ETimeAndDateWebSite = class(Exception); ITimeAndDateWebSite = interface ['{F32284C8-1B95-40D8-AEA0-76057587E0CD}'] function IsDaylightSaving(const Area: string; Year: Word): Boolean; function GetDaylightStart(const Area:...
unit UControlExcepciones; interface Uses SysUtils, Forms, Windows, Classes, DB, {ZAbstractConnection,} ZDataset, ZConnection, Variants; Type TmyProcedure = procedure of object; ITCException = class(Exception) protected procedure CargarMensajes(LMensajes: TStringList); public Codigo: Integer; ...
unit mGMV_DateRange; interface type TMDateTime = class(TObject) private FDateTime: TDateTime; function getWDate: TDateTime; function getWTime: TDateTime; procedure setWDate(aDateTime:TDateTime); procedure setWTime(aDateTime:TDateTime); procedure setWDateTime(aDateTime:TDateTime); publi...
unit account_s; {This file was generated on 11 Aug 2000 20:15:27 GMT by version 03.03.03.C1.06} {of the Inprise VisiBroker idl2pas CORBA IDL compiler. } {Please do not edit the contents of this file. You should instead edit and } {recompile the original IDL which was located in the file acco...
{----------------------------------------------------------------------------- Unit Name: uThreads Author: n0mad Version: 1.1.6.63 Creation: 12.10.2002 Purpose: Working with threads History: -----------------------------------------------------------------------------} unit uThreads; interface {$I bugger...
{******************************************************************************} { } { CodeGear Delphi Runtime Library } { ...
//////////////////////////////////////////////////////////////////////////////// // IPADRESS98 // //////////////////////////////////////////////////////////////////////////////// // An implementation of IE4's IPADDRESS Control ...
{ ************************************************************** Package: XWB - Kernel RPCBroker Date Created: Sept 18, 1997 (Version 1.1) Site Name: Oakland, OI Field Office, Dept of Veteran Affairs Developers: Danila Manapsal, Don Craven, Joel Ivey, Herlan Westra Description: Contains TRPCBroker and related comp...
unit Game; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ImgList, ExtCtrls, StdCtrls, dglOpenGL, ShellAPI; type RGun = record ClipTime, ClipSize, sX, sY, pX, pY, Dmg, Interval: Integer; Tip: String[16]; TT, ET: String[8]; end; RmyGun ...
unit UFrmRegistro; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, UFrmCRUD, ExtCtrls, Menus, Buttons, StdCtrls , URegraCRUD , UDM , UProximaVacina , URepositorioProximaVacina , URegraCRUDProximaVacina , UUtilitarios, Mask ; type TFrmRegistro = c...
unit Financas.View.Principal; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Layouts, FMX.Controls.Presentation, FMX.StdCtrls; type TViewPrincipal = class(TForm) LayoutMain: TLayout;...
unit Diagram; {$mode objfpc}{$H+} interface uses Controls, FGL, TAGraph, TASeries, Plots; type TDiagram = class; TDiagramList = specialize TFPGList<TDiagram>; TGraphLines = specialize TFPGMap<Pointer, TLineSeries>; // An intermediate between TPlot and TChart. // It is Controller in MVC-terms, while T...
//////////////////////////////////////////// // Процедуры для работы с деревом //////////////////////////////////////////// unit VT_Utils; interface uses GMGlobals, VirtualTrees, Classes, Types; type TCycleTreeProc = procedure (nd: PVirtualNode; CycleObject: pointer) of object; TCycleTreeProcRef = reference to pr...
(****************************************************************************) (* *) (* REV97.PAS - The Relativity Emag (coded in Turbo Pascal 7.0) *) (* *) (* "...
program dining_philosophers2; {$mode objfpc}{$H+} uses {$IFDEF UNIX} cthreads, {$ENDIF} Classes, SysUtils, SyncObjs; const PHIL_COUNT = 5; LIFESPAN = 7; DELAY_RANGE = 950; DELAY_LOW = 50; PHIL_NAMES: array[1..PHIL_COUNT] of string = ('Aristotle', 'Kant', 'Spinoza', 'Marx', 'Russell'); type ...
// ------------------------------------------------------------------------------- // Escreva um programa Pascal para determinar o módulo de um número. Recordemo-nos de // que // // modulo(X) = // X se X >= 0 // -X se X < 0 // // NB: Não utilize a função pré-definida (embutida) do Turbo Pascal abs(x). // ------------...
unit YxdRBTree; interface {$IF RTLVersion>=24} {$LEGACYIFEND ON} {$IFEND} {$IF defined(FPC) or defined(VER170) or defined(VER180) or defined(VER190) or defined(VER200) or defined(VER210)} {$DEFINE USEINLINE} {$IFEND} uses YxdMemPool, SysUtils, Classes, SyncObjs; type /// <summary>比较函数</sum...
{*******************************************************} { } { Delphi FireDAC Framework } { } { Copyright(c) 2004-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit DTMain; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, BASS; type TForm1 = class(TForm) Button1: TButton; CheckBox1: TCheckBox; CheckBox2: TCheckBox; CheckBox3: TCheckBox; OpenDialog1: TOpenDialog; procedure FormCreate(Sender: TOb...
unit SchoolEntities; {$mode objfpc}{$H+} {$interfaces corba} interface uses Classes, SysUtils; type TEntityType = (seRoot, seUser, seCourse, seLesson, seSlide, seInvitation, seSession, seStudentSpot, seStudent, seTeacher, seUnknown); TUser = class; TCourse = class; TLesson = class; { IORMInterface...
unit while_loop_3; interface var G: Int32; implementation procedure Test; var x, y: Int32; begin G := 0; x := 0; while x < 10 do begin y := 0; while y < 10 do begin y := y + 1; G := G + 1; end; x := x + 1; end; end; initialization Test(); f...
unit DBMain; {$mode objfpc}{$H+} interface uses connection_transaction, Classes, SysUtils, sqldb, DB, IBConnection, FileUtil, SynHighlighterSQL, SynEdit, Forms, Controls, Graphics, Dialogs, DBGrids, StdCtrls, ExtCtrls, Menus, Buttons, DBCtrls, FormConnect, metadata, listview, aboutsdb, time_table, record_car...
unit UnitClassInfoEx; interface uses {$IFDEF VER230} // XE2 {$DEFINE HAS_UNITSCOPE} {$ENDIF} {$IFDEF VER240} // XE3 {$DEFINE HAS_UNITSCOPE} {$ENDIF} {$IFDEF VER250} // XE4 {$DEFINE HAS_UNITSCOPE} {$ENDIF} {$IFDEF HAS_UNITSCOPE} WinAPI.Windows, System.TypInfo; {$ELSE} Windows, TypInfo; {$ENDIF} type PTypeInfos =...
{** * @Author: Du xinming * @Contact: QQ<36511179>; Email<lndxm1979@163.com> * @Version: 0.0 * @Date: 2019.1 * @Brief: * @References: * A PAINLESS GUIDE TO CRC ERROR DETECTION ALGORITHMS * @Remark: * TABLE ALGORITHM: * r = 0; * while (len--) * r = ((r << 8) | *p++) ^ t[(r >> (W - 8)) & 0xFF]; * * DIRECT ...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
{*******************************************************} { } { Delphi Visual Component Library } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
unit ProducersExcelDataModule; interface uses System.SysUtils, System.Classes, ExcelDataModule, Excel2010, Vcl.OleServer, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, Data.DB, FireDAC.Comp.DataSet, FireDAC.Comp.Client, ...