text
stringlengths
14
6.51M
unit Vector2fTimingTest; {$mode objfpc}{$H+} {$CODEALIGN LOCALMIN=16} {$CODEALIGN CONSTMIN=16} interface uses Classes, SysUtils, fpcunit, testregistry, BaseTestCase, BaseTimingTest, native, BZVectorMath, BZProfiler; {$I config.inc} type { TVector2OperatorsTimingTest } TVector2OperatorsTimingTest = class(TV...
unit MBRTUMasterDispatcherTypes; {$mode objfpc}{$H+} interface uses Classes, SysUtils, COMPortParamTypes; type TMBPacket = array of Byte; PMBPacket = ^TMBPacket; TMBWordPacket = array of Word; PMBWordPacket = ^TMBWordPacket; TMBDispPortParam = record PortNum : Byte; PortPrefix : S...
unit CatSynEdit; { Catarinka TCatSynEdit - Enhanced SynEdit with popup menu Copyright (c) 2013-2014 Felipe Daragon Based on uSynEditPopupEdit.pas by Rodrigo Ruz V License: MIT (http://opensource.org/licenses/mit-license.php) Same license as the original code. } interface {$I Catarinka.inc} uses {$IFDEF D...
unit Pkg.Json.JsonValueHelper; interface uses System.Json; type TJsonType = (jtUnknown, jtObject, jtArray, jtString, jtTrue, jtFalse, jtNumber, jtDateTime, jtBytes, jtInteger, jtInteger64); TJsonValueHelper = class public class function GetJsonType(aJsonValue: TJsonValue): TJsonType; end; implementatio...
unit PhisicsControllerUnit; interface uses SysUtils, Dialogs, Test1Unit, TestsUnit, MenuUnit, MainUnit, ControllersUnit, System.Generics.Collections, stdCtrls, CodeSiteLogging; type EPhisicsControllerError = class(Exception); PhisicsController = class(TInterfacedObject, Controllers) private Test: ...
{*********************************************************************} {* R T C *} {*-------------------------------------------------------------------*} {* Task : utility to get/set date & time on spaark2k06 *} {* RTC ISA 8 ...
PROGRAM RainPas; USES ptcGraph, ptcCrt; CONST NBLOBS = 20; MIN_SIZE_OF_BLOB = 10; MAX_SIZE_OF_BLOB = 200; MIN_COLOR = 5; MAX_COLOR = 35; TYPE Blob = RECORD X: Integer; Y: Integer; Radius: Integer; Max_radius: Integer; Color: Integer; Tick: LongInt; END; VAR gd, gm : SmallInt; blobs: arr...
{ ******************************************************* Copyright (c) 2001-2015 by Alex A. Lagodny ******************************************************* } unit aOPCLabel; interface uses Forms, Windows, SysUtils, Classes, Controls, StdCtrls, Messages, Types, Themes, Graphics, aOPCUtils, aCustomOPCSource,...
(* В) Процедура печати Writeln не способна распечатать название месяца, представленного в перечислении. Напишите для этого свою собственную процедуру (объявите тип TMonth и воспользуйтесь оператором CASE). *) type tmonth = (Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dcb); var m: tmonth; procedure PrintMonth(m: tmo...
{------------------------------------ 功能说明:实现权限控制服务接口 创建日期:2010/05/11 作者:wzw 版权:wzw -------------------------------------} unit ImpAuthoritySvrIntf; interface uses sysUtils, Classes, SysFactory, SvcInfoIntf, AuthoritySvrIntf, Contnrs, DB, DBClient; type TItem = class public Key: stri...
{ ID: ndchiph1 PROG: fence4 LANG: PASCAL } uses math; const maxN = 210; type point = record x,y: longint; end; segment = record p1,p2: point; end; var fi,fo: text; n,cnt: longint; po: point; seg: segment; valid: boolean; d,c: array[1..maxN] of longint; p: array[0..maxN...
(* @abstract(Prise en charge des Images au format GIF en lecture. Version 87a et 89a) Spécifications : @unorderedList( @item(Méthode de compression : LZW @item(Nombre de couleurs : 8 bits, 16 bits format BGR 555, 24 bits ou 32 bits BGR(A) @item(Supporte plusieurs images : Oui @item(Fo...
program Project1; uses SysUtils;// For sleep() type matrix = array of array of integer; procedure display(Arr: matrix); var i, j: integer; ch: char; begin for i := Low(Arr) to High(Arr) do begin for j := Low(Arr[i]) to High(Arr[i]) do begin if Arr[i][j] = 1 then ...
unit Utils; {$mode objfpc}{$H+} interface uses Classes, SysUtils, msgpack, StdCtrls, SpinEx, Controls, TarantoolTypes; type TMsgPackValueEditor=class private //Config BaseType:TTType; //Components &Label:TLabel; IsNil:TCheckBox; Input:TWinControl; procedure ...
unit HibernateTests; interface uses InfraHibernateIntf, ZDbcInterbase6, TestFramework; type THibernateTests = class(TTestCase) private FConfiguration: IConfiguration; FSessionFactory: ISessionFactory; protected procedure SetUp; override; procedure TearDown; override; pu...
{binary heap priority queue code contributed by Rassim Eminli} {$INCLUDE switches.pas} unit IPQ; interface type TIntegerArray = array[0..$40000000 div sizeof(integer)] of integer; PIntegerArray = ^TIntegerArray; TheapItem = record Item: integer; Value: integer; end; TItemArray = array[0..$40...
unit dm_entrance; interface uses SysUtils, Classes, dm_mikkoads, DB, adsdata, adsfunc, adstable, DbClient, doc.variablelist, FasApi, DateVk, forms, RtcInfo, SuperObject, RtcLog; const ID_PRIZNAK_ENTRANCE = 1307; KODREG_PROHOD = 162; PRIZNAK_PROHOD_MIKKO = 1307; PRIZNAK_PROHOD_BELGOROD = 1792; PRIZNAK_N...
unit DTT_Explosion; interface uses OpenGL12, TNT_ParticleSystem, TNT_Vector, TNT_Texture, TNT_Timer, DTT_Sound; type TExplosion = class(TParticle) private Position: TVector; Frame: Cardinal; Timer: TTime; ExpTexture: TTexture; public constructor Create(Owner: TParticleSyste...
unit PhysDisk; {$WARN SYMBOL_PLATFORM OFF} interface uses Windows, ActiveX, Classes, ComObj, Phys_TLB, StdVcl, Math; type TPhysDisk = class(TTypedComObject, IPhysDisk) private fWeight: Single; fRadius: Single; fInertia: Single; procedure UpdateInertia(); protected func...
unit uMensajes; interface uses uFuncionesGenerales, JSON; function GenerarMensaje(pKind: TKindMessage; pMessage: String): String; overload; function GenerarMensaje(pKey, pMessage: String): String; overload; implementation function GenerarMensaje(pKind: TKindMessage; pMessage: String): String; var js: TJSONObject...
unit CatTasks; { Catarinka - Task Management library Copyright (c) 2003-2014 Felipe Daragon License: 3-clause BSD See https://github.com/felipedaragon/catarinka/ for details Portions based on code from Guido Geurt's ggProcessViewer.pas } interface {$I Catarinka.inc} uses {$IFDEF DXE2_OR_UP} Winapi.Wind...
unit UxlComboBox; interface uses Windows, UxlClasses, UxlWinControl, UxlList; type TListItems = class (TxlCollection) private FOwner: TxlWinControl; FOnSelChange: TNotifyEvent; function f_getcursel (): integer; public constructor Create (AOwner: TxlWinControl); function...
unit Main; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls, FMX.Controls.Presentation, FMX.Edit, FMX.Platform, System.Messaging, FMX.MediaLibrary, FMX.Objects; type TForm1 =...
unit TestClasseCalculos; { 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, Classes.Calculos; type...
{******************************************************************************* 作者: dmzn@163.com 2015-06-26 描述: 添加收衣项 *******************************************************************************} unit UFormWashItem; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, ...
unit ResDisplayForm; { Copyright (c) 2011+, HL7 and Health Intersections Pty Ltd (http://www.healthintersections.com.au) 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 cod...
unit FArticleLocU; interface uses ArticleLocDTOU, System.SysUtils, System.Types, System.UITypes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, System.Rtti, FMX.Grid.Style, IPPeerClient, REST.Client, Data.Bind.Components, Data.Bind.ObjectScope, FMX.Grid, FMX.Scro...
unit Maze.Grid; interface uses Maze.Cell, FMX.Graphics, Spring.Collections, System.SysUtils; type IGrid = interface; TMazeCreationProc = procedure(const Grid : IGrid; StepProc : TProc); // Keep in sync with the combo box TCellPainting = (cdNone, cdCandidates, cdDistance, cdColour, cdSolution); IGrid = ...
unit RRManagerVersionsFrame; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, ToolWin, ImgList, ActnList, RRManagerObjects, ClientCommon, RRManagerBaseGUI, RRManagerBaseObjects; type TfrmVersions = class(TFrame) actnLst: TActionList; ...
unit Users; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, MlekoForm, Dialogs, ExtCtrls, Grids, DBGrids, RXDBCtrl, StdCtrls, Buttons, Db, DBAccess, MsAccess, MemDS, ActnList; type TfmUsers = class(TMlekoForm) RxDBGrid1: TRxDBGrid; Panel1: TPanel; bbExit: TBitBtn;...
{******************************************************************************* CenaLite - Main Library File: MainFormU.pas Created By: Martian Modification Date: 2011-1-17 Copyright (c) 2010-2011 Project-Cena2 Project-Cena2 is fr...
{ Subroutine STRING_TKPICKM (TOKEN,TLIST,TNUM); * * Pick a token from a list of tokens. TOKEN is the token * against which the tokens in the list are matched. TLIST * contains a list of tokens, separated by spaces. TNUM is * returned as the number of the token in TLIST that TOKEN * did match. The first ...
unit List_InjectedItem; interface {$I InfraCommon.Inc} uses {$IFDEF USE_GXDEBUG}DBugIntf, {$ENDIF} Classes, InfraCommon, InfraCommonIntf; type TInjectedList = class(TBaseElement, IInjectedList) private FItems: IInterfaceList; FOwner: IBaseElement; function Add(const ID: TGUID; con...
program testcalc; uses calculus; var answer : real; {$F+} { WARNING! YOU NEED "FAR" FUNCTIONS! } function y(x : real) : real; begin y := 4 * sqrt(1 - x * x); end; begin writeln('Function: y = (1 - x^2)^(1/2) (i.e., top half of a circle)'); writeln; { Calc operations here are: } { Integrate function...
unit Printgra; { ======================================================= Updates printer page settings in Settings.Plot =======================================================} // 11.05.09 Printer can now be selected interface uses SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls, Forms, Di...
{ Subroutine STRING_CMLINE_SET (ARGC, ARGV, PGNAME) * * This routine is used to register information about the call arguments that * is passed to top level programs. The call to this routine is automatically * inserted at the start of every top level program by SST. It must not be * declared in any inlude f...
program AlgLista4Ex3; //Exercicio 3 da Lista 4 de algoritmos. Autor: Henrique Colodetti Escanferla. type vetor=array[1..100]of integer; // Criação do tipo de variavel vetor. var v:vetor; // Variaveis globais: v=> guardará nºs do triangulo de pascal. n,i,x,aux,aux2,aux3:integer; // n=> receberá a ordem pedida do trian...
unit BeaconController; interface uses BeaconItem, Generics.Collections, Aurelius.Engine.ObjectManager, ControllerInterfaces; type TBeaconController = class(TInterfacedObject, IController<TBeaconItem>) private FManager: TObjectManager; public constructor Create; destructor Destroy; ...
{ ORM Brasil é um ORM simples e descomplicado para quem utiliza Delphi Copyright (c) 2016, Isaque Pinheiro All rights reserved. GNU Lesser General Public License Versão 3, 29 de junho de 2007 Copyright (C) 2007 Free S...
{$include kode.inc} unit kode_plugin_vst; { vst } // union, so that we do just integer compares in editidle process { queue -> if full, signal a full compare/reset? } {$define KODE_MAX_PARAMETERS := 256} {$define KODE_MAXMIDISEND := 256} { !!! saving/restoring editor state is untested !!! pause (reaper)...
unit DW.IOUtils.Helpers.Mac; {*******************************************************} { } { Kastri } { } { Delphi Worlds Cross-Platform Library ...
unit GenesisConsts; interface type TAnsiCharSet = set of AnsiChar; TMessageLevel = (mlNormal, mlSuccess, mlWarning, mlError); TAccessLevel = (alPrivate, alProtected, alPublic); const GenesisPrefix = 'Genesis'; COverridePrefix = 'zzOverriden'; CWordDelimiters: TAnsiCharSet = [#0..#255] - ['a'.....
unit uMainForm; {$mode objfpc}{$H+} { GAME JAM DVP 2019 : Concept 2 game play 2 jeux en 1. Une facon de jouer, 2 concepts } { V.Break and H.Pong : Ce joue à 2 contre un autre adversaire humain. Le joueur A voit : en Vertical "partiellement" des briques ou autres a l'horizontal a gauche ou à droite j...
unit model.Versao; interface uses System.SysUtils, System.StrUtils, System.Types, System.UITypes, System.Classes, System.Variants; type TVersao = class(TObject) strict private aCodigo : Integer; aDescricao : String; aData : TDateTime; constructor Create(); ...
unit qdac_fmx_virtualtree; { FMX VirtualTree 是一个基于 FMX 设计优化的一种树形结构显示控件,它可以被用来当做 普通的表格或者是树形结构使用。 } interface uses System.Classes, System.Sysutils, System.Types, System.UITypes, System.Math.Vectors, System.Generics.Collections, System.RTLConsts, System.Messaging, Math, FMX.TextLayout, FMX.Layouts, FMX.StdCtrls...
unit CustomerManagement; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ADODB, DB, Grids, DBGrids, StdCtrls, Buttons, ExtCtrls, Menus, jpeg; type TFRMCustomerManagement = class(TForm) BTNDeleteCustomer: TButton; DSCustomer: TDataSource; ADOTCust...
{Ä Fido Pascal Conference ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PASCAL Ä Msg : 415 of 535 From : Bob Swart 2:281/256.12 18 Apr 93 16:14 To : Travis Griggs 1:3807/8.0 Subj : Find Dupes ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ...
unit GBJSON.Helper; interface uses System.SysUtils, System.Classes, System.JSON, {$IF CompilerVersion <= 32.0} REST.Json, {$ENDIF} GBJSON.Interfaces; type TGBJSONObjectHelper = class helper for TJSONObject public {$IF CompilerVersion <= 32.0} function Format: string; overload; {$ENDIF}...
{******************************************************************************* Title: T2Ti ERP Description: VO relacionado à tabela [ORCAMENTO_DETALHE] The MIT License ...
{$MODE OBJFPC} { -*- delphi -*- } {$INCLUDE settings.inc} unit unicode; interface const kEOF = -1; {$IFOPT C+} kNone = -2; {$ENDIF} type TUnicodeCodepointRange = type {$IFOPT C+} -2 {$ELSE} -1 {$ENDIF} ..$10FFFF; TUnicodeCodepoint = record private FValue: TUnicodeCodepointRange; public ...
unit CatCEFCache; { Catarinka - Chromium Cache Reader functions Copyright (c) 2013-2014 Syhunt Informatica License: 3-clause BSD See https://github.com/felipedaragon/catarinka/ for details } interface {$I Catarinka.inc} uses {$IFDEF DXE2_OR_UP} Winapi.Windows, System.Classes, System.SysUtils, Vcl.Dialogs;...
unit LuaRipRelativeScanner; {$mode delphi} interface uses Classes, SysUtils, RipRelativeScanner; procedure initializeLuaRipRelativeScanner; implementation uses lua, LuaClass, LuaObject, LuaHandler; function CreateRipRelativeScanner(L:PLua_State): integer; cdecl; var modulename: string; begi...
UNIT ConstVar; INTERFACE USES Crt,Dos,Graph,Cursor,RT_Watch; CONST MaxReadFile = 1000; NULL = Chr(00); TAB = Chr(09); ENTER = Chr(13); ESC = Chr(27); SPACE = Chr(32); ARUP = 'H'; ARDN = 'P'; ARLF = 'K'; ARRT = 'M'; PGUP = 'I'; PGDN = 'Q'; POS1 = 'G'; END1 ...
{ this file is part of Ares Aresgalaxy ( http://aresgalaxy.sourceforge.net ) 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 v...
(* @file Tetris.pas * @author Willi Schinmeyer * @date 2011-10-26 * * Tetris Program * * Contains the "main function" of the Tetris game. Which is a simple * console based Tetris. * * @note I could've used crt.window a couple of times, which effectively * makes me draw only to a certain part of the con...
unit Visao.FormInicial; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Menus, Bd.Gerenciador, Visao.FormPadrao, RLReport; type TFrmInicial = class(TForm) MainMenu1: TMainMenu; MnCadastro: TMenu...
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DirectShow9, StdCtrls, ExtCtrls, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP, idMultipartFormData, IdExplicitTLSClientServerBase, IdFTP; type TForm1 = class(TForm) Panel...
{$include kode.inc} unit kode_bitmap; // 32 bit, rgba bitmap //---------------------------------------------------------------------- interface //---------------------------------------------------------------------- uses kode_rect; type KBitmap = class private FWidth : LongInt; FHeight : LongInt; ...
{******************************************************************************* Title: T2Ti ERP Description: VO relacionado à tabela [COLABORADOR] The MIT License Copyri...
unit UFrmFolioMaterial; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, dxSkinsCore, dxSkinBlack, dxSkinBlue, dxSkinBlueprint, dxSkinCaramel, dxSkinCoffee, dxSkinDarkRoom, dxS...
{Ej3. Se tiene un archivo que contiene una cadena de caracteres en cada línea formada por letras y dígitos (ambos) finalizada con un punto. Se pide leerlo y generar dos vectores paralelos, uno contendrá las cadenas formada por las letras y el otro las cadenas formadas por los números. } program Vectores_Ej3; type st1...
unit modules.datamodule; interface uses System.SysUtils, System.Classes, JS, Web, WEBLib.Modules, WEBLib.REST, interfaces.callbacks, classes.gamedata; type TmainDataModule = class(TWebDataModule) httpGetGames: TWebHttpRequest; BasicRequest: TWebHttpRequest; httpCreateGame: TWebHttpRequest; proc...
unit unit_pas2c64_constants; {$MODE Delphi} interface const // standard colours cColor_Black = $00; cColor_White = $01; cColor_Red = $02; cColor_Cyan = $03; cColor_Purple = $04; cColor_Green = $05; cColor_Blue = $06; cColor_Yellow = $07; cCo...
{ Attach a script to the selected forms. Created by DavidJCobb. } Unit CobbSingleAttachScript; Uses 'Skyrim - Papyrus Resource Library'; Uses 'CobbTES5EditUtil'; Var gsScriptToAdd: String; gbRedundantAdd: Boolean; // Add redundant scripts to all objects? Function Initialize: integer; Var...
unit frmParallelForDemo; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, System.Threading; type TParallelForDemoForm = class(TForm) Memo1: TMemo; Button1: TButton; Button2: TButton; ...
unit DevApp.Config.Impl; interface Uses Spring.Container, System.JSON; Type TDevAppConfig = class private FContainer: TContainer; FConfigFile: String; FConfigData: TJSONObject; function GetContainer: TContainer; function GetServers: TJSONArray; function GetConfigFolder: String; protected pub...
unit Facade; interface uses BaseFacades, Registrator, Classes, DBGate, SDFacade, Well, ResearchGroup, Material, BaseObjects; type TMainFacade = class (TSDFacade) private FRegistrator: TRegistrator; FSelectedWells: TSimpleWells; FOnAfterDownload: TNotifyEvent; FOnBeforeDownload: TNotifyEvent; ...
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; Memo1: TMemo; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } ...
(****************************************************************************** * * * Usermanager * * WaitDlg -- WaitDialog * ...
(****************************************************************************** * PasVulkan * ****************************************************************************** * Version see PasVulkan.Framework.pas ...
unit TelaPedido; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, Vcl.StdCtrls, Vcl.DBCtrls, Vcl.Grids, Vcl.DBGrids, Vcl.ComCtrls, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, F...
unit htmlrout; interface uses sysutils,UseFastStrings,dhStrUtils; const c_op='<'; c_cl='>'; c_end='/';// </..> space=' '; const valfirst=['a'..'z','A'..'Z','0'..'9']; const noValidFilenameChars=['\','/',':','*','?','"','<','>','|'{,' '}{space nich in url erlaubt}]; func...
(* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distr...
namespace Moshine.Web.Helpers; interface uses System.Collections.Generic, System.Linq, System.Runtime.Serialization, System.Text; type [DataContract] Row = public class private _cell:List<String> := new List<String>; public [DataMember] property id:String; [DataMember] propert...
namespace Sugar.Test; interface uses Sugar, Sugar.Collections, Sugar.TestFramework; type HashSetTest = public class (Testcase) private Data: HashSet<String>; public method Setup; override; method &Add; method Clear; method Contains; method &Remove; method...
unit FDetailUnit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, StorageUnit, ExtCtrls; type TDetailFormClass = class of TFDetailForm; TFDetailForm = class(TForm) TopPanel: TPanel; btnClosePlan: TBitBtn; btnShowAsForm: TBitBt...
unit TextManager; interface uses System.JSON, System.Generics.Collections, ResourcesManager; type fillProc<T> = procedure(const v:TJSONValue; var item: T) of object; TFormText = class protected sender: string; SubNames: TArray<string>; SubLogos: TArray<byte>; SubTexts: TArray<string>; ...
// Copyright 2018 by John Kouraklis and Contributors. All Rights Reserved. // // 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 // // Unle...
{$include kode.inc} unit kode_timeline; //---------------------------------------------------------------------- interface //---------------------------------------------------------------------- uses kode_list; //---------- type KTimeline_Segment = class(KListNode) private FName : PChar; FStar...
unit utRegis; (* Permission is hereby granted, on 1-Nov-2003, free of charge, to any person obtaining a copy of this file (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the S...
unit uApache; interface uses GnuGettext, uBaseModule, SysUtils, Classes, Windows, ExtCtrls, StdCtrls, Buttons, uNetstatTable, uTools, uProcesses, Messages, uServices; type tApacheLogType = (altAccess, altError); tApache = class(tBaseModule) OldPIDs, OldPorts: string; procedure ServiceInstall; override...
unit UMyBackupInfo; interface uses SyncObjs, Generics.Collections, UFileBaseInfo, UMyUtil, SysUtils, Classes, UChangeInfo, UModelUtil, Math, UBackupInfoFace, DateUtils; type /////////// 数据结构 ////////// {$Region ' 副本信息 '} TCopyInfo = class public CopyOwner : string; // 副本的拥有者 CopyStatus : string...
(****************************************************************************** * PasVulkan * ****************************************************************************** * Version see PasVulkan.Framework.pas ...
unit ObligationToolsFrame; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, ImgList, ActnList, ToolWin, GRRObligation, Menus, Version; type TfrmObligationTools = class(TFrame) tlbr1: TToolBar; actnLst: TActionList; actnAddObligation: TActi...
unit SRChkBox; { TSRCheckBox (C)opyright 2000 Version 1.02 Autor : Simon Reinhardt eMail : reinhardt@picsoft.de Internet : http://www.picsoft.de Die Komponente TSRCheckBox ist eine Checkbox-Komponente mit Autosize-, Transparent- und WordWrap-Eigenschaften. Außerdem wird kein OnClick-Ereignis abge...
program Tetris; uses GraphWin; {System} { The constant below is the current version of the game, see the history below in the comments. } const Version = '1.41 (22/04/1998)'; { INSTRUCTIONS ------------ INTRODUCTION This is an implementation of the game Tetris, written in Turbo Pascal. It ...
unit uWeb; interface uses System.SysUtils, System.Classes, Web.HTTPApp; type TWebModule1 = class(TWebModule) procedure WebModule1DefaultHandlerAction(Sender: TObject; Request: TWebRequest; Response: TWebResponse; var Handled: Boolean); procedure WebModule1waGetLastReleaseAction(Sender: T...
unit UFormSearchOwnerDecrypt; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls, UMyUtil, siComp, UMainForm; type TfrmIvDecrypt = class(TForm) lbPassword: TLabel; edtPassword: TEdit; btnOK: TButton; btnCancel: TButton...
unit UFrame1; 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, FrameStand, UFrame2, MainFrU, EventBus, FMX.Objects; type TFrame1 = c...
program hello; uses Windows, Messages; function WindowProc(hWindow:HWnd; message:Cardinal; wParam:Word; lParam:Longint):LongWord; stdcall; var hdc: THandle; ps: TPaintStruct; const strMessage = 'Hello, Win32 GUI(Pascal) World!'; begin case message of WM_PAINT: be...
unit EqualizerControl; interface uses Forms, Windows, Messages, SysUtils, Classes, Controls, Graphics, Math,Dialogs; type {>>TGaugeBar} TGaugeBar = class(TCustomControl) private fMin:Integer; fMax:Integer; fParams : array[0..3] of Integer; fStickColor:TColor; fBackGround...
unit Game.Interfaces; interface const cPasswordLen = 9; cMinUserCount = 3; cMaxUserCount = 10; cStartPasswordChar = 48; cPasswordCharRange = 42; cGameRounds = 5; cCardsPerHand = 6; const cNullString = ''; cGeneratePasswordFlag = 'Generate'; type IGameDataObject = inte...
program review_record; uses crt; const max=10; type rec_brg=record kd_barang,nama:string; harga:longint; quantiti:Real; end;//syntax deklasrasi record larik_brg=array[1..max] of rec_brg;//syntax deklarasi larik record var my_barang,Y:larik_brg;//deklarasi variabel i,j,n,pil:Byte; procedure tamb...
unit UOverview; interface uses UProject, USlide; type TOverview = class private FProject: TProject; protected function BuildMain(iCurrentSlide: integer; slideOverview: TSlide; out iFontSizeNeeded: integer): string; function BuildSUBS(iCurrentSlide: integer; slideOverview: TSlide; out ...
unit sCheckListBox; {$I sDefs.inc} {$T-,H+,X+} interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, CheckLst, sListBox, sConst; type TsCheckListBox = class(TsListBox) {$IFNDEF NOTFORHELP} private FAllowGrayed: Boolean; FOnClickCheck: TNotifyEvent; FS...
unit ULine; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, UEmbedForm, StdCtrls, ExtCtrls, tc, Grids; type TFLine = class(TEmbedForm) Panel4: TPanel; Label1: TLabel; Panel1: TPanel; Label5: TLabel; MaterialBox: TComboBox; Panel...
unit NetTestCase; interface uses System.SysUtils, TestFramework, AsyncIOTestCase, AsyncIO.Net.IP; type TNetTestCase = class(TAsyncIOTestCase) protected function GenerateData(const Length: integer): TBytes; public procedure CheckEquals(expected, actual: IPv4Address; msg: string = ''); overload; virtua...
unit ExceptionsTypes; {$mode objfpc}{$H+} interface uses SysUtils; const ERR_BASE_PORT_ERROR = 50000; ERR_UNKNOWN = 59999; ERR_PORT_NOT_ASSIGNED = 50001; ERR_REQUEST_NOT_ASSIGNED = 50002; ERR_PORT_PARAM_NOT_ASSIGN...
{ DBE Brasil é um Engine de Conexão simples e descomplicado for Delphi/Lazarus Copyright (c) 2016, Isaque Pinheiro All rights reserved. GNU Lesser General Public License Versão 3, 29 de junho de 2007 Copyright (C) 2007 Fr...
(* * Renvoie le nombre de cellules vivantes autours de la case situ‚e dans le coin en haut … gauche. * Les cellules adjacentes en dehors des limites du tableau sont ignor‚s. *) Function nbChildTopLeft(var tab : arr; y, x: Integer) : Integer; Begin nbChildTopLeft := tab[y, x + 1] + tab[y + 1, x] + tab[y + 1, x + 1...