text
stringlengths
14
6.51M
unit WVCommands; {********************************************** Kingstar Delphi Library Copyright (C) Kingstar Corporation <Unit>WVCommands <What>命令模型 <Written By> Huang YanLai (黄燕来) <History> **********************************************} interface uses SysUtils, Classes, DataTypes, Contnr...
unit UEnemy; interface uses UPerson, UGameTypes, Messages, Graphics; Type TEnemy = class(TPerson) private procedure SetHealthPoint(const Value: integer);override; protected public Constructor Create;override; end; Var PersonBMP : TBitmap; implementation { TEnemy } constructor TEnemy.Create...
unit dmEstrategiaEstudio; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, dmEstrategiaInterpreterBD, DB, IBCustomDataSet, IBQuery, dmData, dmCuentaEstudio, dmBrokerEstudio, kbmMemTable; type TEstrategiaEstudio = class(TEstrategiaInterpreterBD) qCotizaci...
unit Main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Mask, ToolEdit, StdCtrls, ExtCtrls, Buttons, IniFiles, DB, DBTables, backup; type TFormMain = class(TForm) PanelTop: TPanel; PanelCenter: TPanel; EditVersion: TEdit; LabelVersion: TLa...
{*****************************************************************************} { BindAPI } { Copyright (C) 2020 Paolo Morandotti } { Unit plBindAPI.Attributes } ...
unit Edit1; interface uses System.SysUtils, System.Classes, Vcl.Controls, Vcl.StdCtrls; type TMyInterfacedPersistent = class(TInterfacedPersistent); TMyInterfacedPersistentClass = class of TMyInterfacedPersistent; TEditTeste = class(TEdit) private FMyProp: TMyInterfacedPersistent; FMyPropClass: T...
{********************************************** Kingstar Delphi Library Copyright (C) Kingstar Corporation <Unit>KsChineseSpell <What>获取汉字首字母 <Written By> 曾创能,Huang YanLai (黄燕来) <History> 0.2 黄燕来 [2001.9.4] 0.1 曾创能 [2001.3.29] 注释: 汉字分为一级汉字和二级汉字,一级汉字(常用)是按拼音来编排的, ...
unit UtilsFile; interface uses Windows, win.iobuffer; function GetFileIOBuffer(AFileName: AnsiString): PIOBuffer; implementation uses Sysutils; procedure LoadFile2IOBuffer(AIOBuffer: PIOBuffer; AFileName: AnsiString); overload; var tmpFileHandle: THandle; begin tmpFileHandle := Windows...
{******************************************************************************} { } { Neon: Serialization Library for Delphi } { Copyright (c) 2018-2019 Paolo Rossi ...
unit dll_com_locationapi; interface type PSystemTime = ^TSystemTime; TSystemTime = record wYear: Word; wMonth: Word; wDayOfWeek: Word; wDay: Word; wHour: Word; wMinute: Word; wSecond: Word; wMilliseconds: Word; end; SYSTEMTIME = TSystemTime; // interface ILocation type { ...
{***************************************************************************} { } { DelphiUIAutomation } { } { ...
unit uFormInit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Vcl.ExtCtrls, AdvPanel, Vcl.Grids, AdvObj, BaseGrid, AdvGrid, LMDControl, LMDCustomControl, LMDCustomPanel, LMDCustomBevelPanel, LMDCaptionPanel, IniFiles, Forms, PictureContainer; v...
unit RESTRequest4D.Response.Synapse; {$IFDEF FPC} {$mode delphi} {$ENDIF} interface uses Classes, SysUtils, RESTRequest4D.Response.Contract, httpsend, ssl_openssl, {$IFDEF FPC} fpjson, jsonparser; {$ELSE} System.Json; {$ENDIF} type TResponseSynapse = class(TInterfacedObject, IResponse) private ...
unit CommonScanThread; interface uses Windows, Classes, Extctrls, Graphics, SysUtils, Forms, DataClass, Procs, Config, UsbDeviceUtils, Logger; const ERR_NO_ERROR = 0; ERR_NO_ERROR_MSG = 'Норма'; //внимание! коды ошибок объединяются по AND, поэтому должны быть кратны степени двойки!!! ERR_SEN...
unit uFuncInfo; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, uDocuments, JassUnit, SynEditTypes, SynEditMiscClasses, SynEdit, SynJass, Themes; type TTipForm = class(TForm) procedure FormPaint(Sender: TObject); funct...
unit Profile_Display; interface uses {$IFDEF MSWINDOWS} Windows, Messages, Graphics, Controls, Forms, Dialogs, {$ENDIF} {$IFDEF LINUX} QControls, Types, QGraphics, {$ENDIF} Classes, SysUtils, Measure; type TProfileDisplay = class(TCustomControl) public constructor Create( anOwner : TCompo...
unit BallTraject; { Copyright (c) 2014 Felix Thompson Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License, as described at http://www.apache.org/licenses/ and http://www.pp4s.co.uk/licenses/ } interface uses W3Sys...
(* the original version of this file is written by thomas la cour, http://www.top-house.dk/~nr161/delphi/ This file is a part of Audio Components Suite. All rights reserved. See the license file for more details. Copyright (c) 2002-2009, Andrei Borovsky, anb@symmetrica.net Copyright (c) 2005-2006 ...
{ Copyright (c) 2013 Bruno Barbieri 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 and the foll...
unit Quill; interface type JKey = class external key: String; shortKey: Boolean; // optional end; JSources = String; JSourcesHelper = strict helper for JSources const API = 'api'; const User = 'user'; const Silent = 'silent'; end; JFormats = class external private function GetI...
{******************************************************************************* * * * TksListView - High-Performance Mobile ListView Component * * ...
unit Main; {Small program to compare the performance of ParseExpr with compiled Delphi. Code: Arnulf Sortland} interface uses SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, ComCtrls, ParseExpr; type TMainForm = class(TForm) Button2: TBitBtn; Mem...
{***************************************************************************} { } { DUnitX } { } { ...
//--------------------------------------------------------------------------- // 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 ...
{*******************************************************} { } { Delphi FireMonkey Platform } { } { Copyright(c) 2011-2013 Embarcadero Technologies, Inc. } { ...
unit InMemoryApplicationServiceRegistries; interface uses ApplicationServiceRegistry, ApplicationServiceRegistries, AbstractApplicationServiceRegistries, SysUtils, Classes; type TInMemoryApplicationServiceRegistries = class (TAbstractApplicationServiceRegistries) private type TAppl...
unit F_SysUtils; interface uses Windows, Messages; function StrToInt(S: AnsiString): Integer; function IntToStr(I: Integer): AnsiString; function Format(szString: AnsiString; Params: Array of const): AnsiString; procedure CenterDialogPos(hDialog, hParent: Thandle); implementation {} function StrTo...
unit ubasedescform; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls, EditBtn, VirtualTrees, Windows, uLibraryData, uLibrary; type { TBaseDescForm } TBaseDescForm = class(TEditingForm) FileNameEdit: TFileNameEdit; Image: TIm...
unit PButton; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TPButton = class(TButton) private { Private declarations } FBeforeClick: TNotifyEvent; protected { Protected declarations } procedure Click;override; public { Public d...
// ************************************************************************ // // The types declared in this file were generated from data read from the // WSDL File described below: // WSDL : http://carme/secure/ws/awsi/BingAuthorizationServer.php?wsdl // Encoding : ISO-8859-1 // Version : 1.0 // (10/4/2013 11:11...
(* Copyright (c) 2011-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 ...
(* libao: a cross platform audio library This file is a part of Audio Components Suite. Copyright (C) 2002-2005 Andrei Borovsky. All rights reserved. See the license file for more details. This is the ACS for Linux version of the unit. *) unit acs_aolive; interface {$ifdef LINUX} {$ifdef mswindows}{$m...
unit actionbartab; {$mode delphi} interface uses Classes, SysUtils, And_jni, AndroidWidget; type {Draft Component code by "Lazarus Android Module Wizard" [12/2/2014 22:24:11]} {https://github.com/jmpessoa/lazandroidmodulewizard} {jControl template} jActionBarTab = class(jControl) private FTitles: TStrings...
(********************************************************************** Copyright 1998-2003, Microchip Data Systems / Carl Bunton Under license agreement, this source module may be used only on a single computer. No portion of this module may be reproduced, copied, revised, edited, distributed or transmit...
unit uWaveApiTest; interface uses SysUtils, Dialogs, MMSystem, Math; type TWaveApiTest = class private class function GetAudioData(): TBytes; public class procedure Play(); end; implementation var Finished: Boolean; procedure TestWaveOutProc(wo: HWaveOut; uMsg: NativeUInt; ...
unit DW.Template.CustomPlatform; {*******************************************************} { } { Kastri Free } { } { DelphiWorlds Cross-Platform Library ...
Unit LinkSpeedButton; Interface Uses System.SysUtils, System.Classes, Vcl.Controls, Vcl.Buttons, Winapi.Windows, Winapi.GDIPAPI, Winapi.GDIPOBJ, GraphicsUtils; Type TLinkSpeedButton = Class(TSpeedButton) // TGraphicControl Private { Private declarations } FTitle: String; Protected { Protected declarations...
{******************************************************************************} { } { Indy (Internet Direct) - Internet Protocols Simplified } { ...
procedure add(v: integer; var heap: array of integer; var heapSize: integer); var nextIdx, idx, t: integer; begin heap[heapSize] := v; idx := heapSize; nextIdx := (idx+1) div 2; while (idx > 0) AND (heap[nextIdx] > v) do begin t := heap[idx]; heap[idx] := ...
{***************************************************************************} { } { DUnitX } { } { ...
unit rfMetadata_unit; interface uses Classes, SysUtils, Windows, IBSQL, IBDatabase, IB, IBScript; type TDataBaseCreator = class(TObject) private FDataSQL: String; FMetaDataSQL: String; FDataBaseName: String; FShowMessages: Boolean; public constructor Create; function...
unit UserDb; { Trida TUsrDb udrzuje seznam uzivatelu a resi veskere operace s touto databazi. } interface uses Generics.Collections, User, IniFiles, Classes, SysUtils, Windows, Generics.Defaults, TOblRizeni; type TUsrDb = class private Users: TObjectList<TUser>; ...
{ ID:because3 PROG:rect1 LANG:PASCAL } program rect1; const maxc=2500; var ans:array [1..maxc] of longint; x1,x2,y1,y2,c:array [1..1001] of longint; n:longint; function min(a,b:longint):longint; begin if a>b then exit(b) else exit(a); end; function max(a,b:longint):longint; begin if a>b t...
unit OAuth2.Grant.Implicit; interface uses Web.HTTPApp, OAuth2.Contract.Repository.RefreshToken, OAuth2.Contract.ResponseType, OAuth2.Contract.Grant.GrantType, OAuth2.RequestType.AuthorizationRequest, OAuth2.Grant.AbstractAuthorize; type TOAuth2ImplicitGrant = class(TAbstractAuthorizeGrant) private ...
unit DBComboLists; { %ComboLists : 包含几个下拉框 } (***** Code Written By Huang YanLai *****) interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,LibMessages,ComWriUtils, DB, DBTables, dbctrls, ComboLists; type // %TCustomCodeValues : 包含一系列的Code-Value组(代码表) // %...
(* Copyright (c) 2011, 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 and t...
unit Builder.ProductParts.TripComputer; interface uses Builder.Interfaces.ITripComputer; type TTripComputer = class(TInterfacedObject, ITripComputer) public function GetModel: string; class function New: ITripComputer; end; TTripSUVComputer = class(TInterfacedObject, ITripComputer) public ...
unit rTrayIcon; interface uses Messages, Forms, Graphics; const tiAdd = 1; tiDelete = 2; tiModify = 3; WM_TRAYICON = WM_USER + $1200; procedure ShowTrayIcon(AForm: TForm; AIcon: TIcon; const AIconMode: Integer; const AHintText: string = ''); procedure ShowTrayIcon_MainForm(AForm: TForm;...
unit ToolAPIUtils; {********************************************** Kingstar Delphi Library Copyright (C) Kingstar Corporation <Unit>ToolAPIUtils <What>为使用ToolsAPI的提供辅助的对象和过程 <Written By> Huang YanLai (黄燕来) <History> **********************************************} interface uses Windows, SysU...
unit KM_TerrainDeposits; {$I KaM_Remake.inc} interface uses Classes, Math, SysUtils, KM_Defaults, KM_Points, KM_Terrain, KM_Units; type TRawDeposit = (rdStone, rdCoal, rdIron, rdGold, rdFish); const DEPOSIT_COLORS: array[TRawDeposit] of Cardinal = ( $FFBFBFBF, //rdStone - gray $FF606060, //rdCoal - bla...
UNIT GameManager; (*< Defines the game manager. *) (* 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...
unit uComments; interface Uses RegExpr , SysUtils ; Function ReadDataFromFile ( FileName : string ) : ansistring ; implementation Function GetNumberLeastNumber ( Number1 , Number2 , Number3 , Number4 : integer ) : integer ; //Founds which type of UnnecessaryData we meet first begin If number1 = 0 then Number1 :=...
unit TSTORgb; interface Uses Windows, SysUtils, Graphics, PngImage, HsInterfaceEx, HsStreamEx; Type TFlipAxis = (faNone, faHorizontal, faVertical, faHorzVert); TRgbA4Pixels = Array Of Array Of Word; TRgbA8Pixels = Array Of Array Of DWord; TRgbAPixelRec = Packed Record Red , Green , Blue , ...
program exer47; function soma(n:integer):integer; begin soma:=0; while (n <> 0) do begin soma:=soma + (n mod 10); n:= n div 10; end; end; function amigos(n,m:integer):boolean; var auxn,auxm:integer; begin amigos:=false; auxn:=n*n; auxm:=m*m; auxn:...
unit BiomeCache_u; interface uses WorldChunkManager_u, LongHashMap_u, BiomeCacheBlock_u, BiomeGenBase_u; type BiomeCache=class(TObject) private chunkmanager:WorldChunkManager; lastCleanupTime:int64; cacheMap:LongHashMap; save_cacheblock:ar_BiomeCacheBlock; public ...
unit UUTCDialog; interface uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls, Buttons, ExtCtrls; type TUTCDialog = class(TForm) OKBtn: TButton; Bevel1: TBevel; CheckBox: TCheckBox; private { Private declarations } function GetUseUTC(): Boolean; public { Public dec...
unit MLP.Concret.Matrix; interface uses System.SysUtils, System.Threading, System.SyncObjs; type TMatrixMapCallback = reference to procedure(var AValue: Single; ARow: Integer; ACol: Integer); TMatrixMapValueCallback = reference to procedure(var AValue: Single); TMatrixSingle = record private FData: T...
{******************************************************************************} { } { IPGeoLocation.Types } { ...
{ Validação de número de conta - Crie um algoritmo que peça ao usuário para fornecer um número de conta e determine se esse número é válido. Para ser válido, esse número deve ser igual a um dos listados abaixo: 5658845 4520125 7895122 8777541 8451277 1302850 8080152 4562555 5552012 5050552 7825877 1250255 1005231 65452...
unit DIOTA.Dto.Response.GetTransfersResponse; interface uses DIOTA.IotaAPIClasses, DIOTA.Model.Bundle; type TGetTransfersResponse = class(TIotaAPIResponse) private FTransfers: TArray<IBundle>; function GetTransfers(Index: Integer): IBundle; function GetTransfersCount: Integer; public constr...
{ Invokable implementation File for TELMotorWS which implements IELMotorWS } unit ELMotorWSImpl; interface uses InvokeRegistry, Types, XSBuiltIns, ELMotorWSIntf, CommunicationObj; type { TELMotorWS } TELMotorWS = class(TCommObj, IELMotorWS) public //Status function Get_Posicion: Integer;...
unit VgaEmu; {$MODE Delphi} interface { CyTerm Project. VgaEmu created by Shawn Rapp This is the VCL that does all the DOS graphics. Project wont compile unless you install this component BE VERY CAREFUL OF CHANGING THINGS. } uses LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics,...
unit ChoiceGoodsFromPriceList; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, AncestorEnum, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxPCdxBarPopupMenu, cxStyles, cxCustomData, cxFilter...
unit UToolMapMgr; { ClickForms Application } { Bradford Technologies, Inc. } { All Rights Reserved } { Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. } { This is the common interface unit for creating...
unit rFdSettings; interface uses Controls, FireDAC.Comp.Client; const tnSysSettings = 'ss_settings'; { Проверка существования записи в таблице системных настроек } function fdDbsIsExists(fdDb: TFDConnection; const aId: Integer): Boolean; { Чтение значения из таблицы системных настроек } function fdDbsReadInt...
unit Keyman.System.BuildLanguageSubtagRegistry; interface uses System.Classes; type TBuildLanguageSubtagRegistry = class private FSubtagRegistry: TStrings; public constructor Create(ASubtagRegistryFile: string); destructor Destroy; override; procedure BuildSuppressScriptRegistry(const Destina...
unit NLDOnOffSwitchReg; interface uses Classes, NLDOnOffSwitch; procedure Register; implementation procedure Register; begin RegisterComponents('NLDelphi', [TNLDOnOffSwitch]); end; end.
{ Routines that manipulate current rendering settings. } module displ_rend; define displ_rend_init; define displ_rend_resolve; define displ_rend_default; define displ_rend_set_color; define displ_rend_set_vect; define displ_rend_set_text; %include 'displ2.ins.pas'; { **************************************************...
// ****************************************************************** // // Program Name : AT Library // Platform(s) : Android, iOS, Linux, MacOS, Windows // Framework : Console, FMX, VCL // // Filename : AT.Rtti.pas // Date Created : 11-APR-2017 // Author : Matthew Vesperman // // Description...
unit Script_Broker; interface uses Classes, ScriptObject; type TOnAbrirPosicionMercadoEvent = procedure (const puntos: integer; const largo: boolean; const stop: currency) of object; TOnAbrirPosicionLimitadaEvent = procedure (const puntos: integer; const largo: boolean; const stop: currency; const limite...
namespace BetaServer; interface uses System.Collections, System.Collections.Generic, System.ComponentModel, System.Configuration, System.IO, System.Linq, System.Linq.Expressions, System.Net, System.Reflection.Emit, System.Security.Permissions, System.Xml.Linq, RemObjects.SDK.P...
unit MVCBr.ODataDatasetAdapter; interface uses System.Classes, System.SysUtils, System.JSON, System.Variants, System.Generics.Collections, Data.DB, MVCBr.IdHTTPRestClient, oData.Comp.Client, IdHTTP; type TAdapterResponserType = (pureJSON); TRowSetChangeType = (rctInserted, rctDeleted, rctModified); con...
unit AT.DNA.VCL.Dlg.Deactivate; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, AT.DNA.VCL.Dlg.Base, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters, Vcl.Menus, dxSkinsCore, dxSkinBlueprint, dxSkinCarame...
{$optimize 7} {---------------------------------------------------------------} { } { ORCA Code Generator Interface } { } { This unit serves as the glue code attac...
unit ExportTabularCLAS; uses ExportCore, ExportTabularCore, ExportJson; var ExportTabularCLAS_outputLines: TStringList; function initialize(): Integer; begin ExportTabularCLAS_outputLines := TStringList.create(); ExportTabularCLAS_outputLines.add( '"File"' // Name of the origin...
program clonescreen; {$IFNDEF HASAMIGA} {$FATAL This source is compatible with Amiga, AROS and MorphOS only !} {$ENDIF} { Project : clonescreen Source : RKRM } { ** clone an existing public screen. } {$MODE OBJFPC}{$H+}{$HINTS ON} {$UNITPATH ../../../Base/CHelpers} {$UNITPATH ../../../Base/Trinity} {$I...
unit FactoryMethod.Concretes.ConcreteProduct2; interface uses FactoryMethod.Interfaces.IProduct; type TConcreteProduct2 = class(TInterfacedObject, IProduct) public function Operation: string; end; implementation { TConcreteProduct2 } function TConcreteProduct2.Operation: string; begin Result := '{Co...
unit ClassEditCommands; interface uses SysUtils, Classes, mapper, mvc_base, tiObject, ClassEditViewFrm, ClassEditController, AppCommands; type TClassEditCommand = class(TCmdNotifyEvent) public function Controller: TClassEditController; reintroduce; end; {: Edit Class Property. } TCmdDoEditProperty...
unit TestCases; interface uses SysUtils; type Logger = procedure(s: string); TestEnv = class logger: Logger; assertNum: integer; procedure l(s: string); procedure preTest(); procedure postTest(); procedure preAssert(); procedure postAsser...
unit AqDrop.Register.AboutBox; interface uses Winapi.Windows, Vcl.Graphics, ToolsAPI; type TAqIDEAboutBox = class strict private class var FBitmap: TBitmap; class function GetLogo: HBITMAP; public class procedure Install; class procedure Uninstall; end; procedure Registe...
unit GraficoEscenario; interface uses GraficoLineas, Tipos, GR32, Graphics, Classes, Escenario, frCargando, GraficoZoom, DatosGrafico; type TGraficoEscenario = class(TGraficoLineas) private FPenLastLine: TPen; FPenEscenario: TPen; FColorLastLine: TColor32; cargando: TfCargando; FVerNube: bo...
procedure SchrijfArray(arr: array of integer); var teller: integer; begin for teller := 0 to LENGTH(arr) - 1 do begin write(arr[teller], ' '); end; writeln(); end;
unit AT.FMX.ClockLabel.Dlg; 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, AT.FMX.ClockLabel; type TATFMXClockLabelDlg = class(TForm) txtFormat...
{ Description: vPlot setting class. Copyright (C) 2017-2018 Melchiorre Caruso <melchiorrecaruso@gmail.com> This source 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, o...
unit UScalingInfo; interface uses W3Graphics; procedure ScaleCanvas(newScreenWidth, newScreenHeight : integer); const GAMEWIDTH = 1366; GAMEHEIGHT = 598; PIXELTOPOWERRATIO = 12; var Scale : float; implementation procedure ScaleCanvas(newScreenWidth, newScreenHeight : integer); var gameLength, gameDe...
unit core_weapons; {$mode objfpc}{$H+} interface uses VectorGeometry, core_orders_manager, core_types, core_bullets, core_orders, core_actor_definitions; type eWeaponStates = (wsReloading,wsReady,wsEmpty,wsReloadingBullet); { TWeapon } const instaHitWeapons : set of eWeaponTypes = [wtBlasterPistol]; type...
unit MatrixFrm; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Buttons, ExtCtrls, StdCtrls, ActnList, Grids; type TMatrixForm = class(TForm) spbOpen: TSpeedButton; spdSave: TSpeedButton; edtFileName: TEdit; Label1: TLabel; MatrixOpenDi...
unit STMGpio; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls; type TFormStmGpio = class(TForm) RadioGroupPinMode: TRadioGroup; RadioGroupPinConf0: TRadioGroup; RadioGroupPinConf1: TRadioGroup; ButtonOk: TButton; RadioGro...
unit jsonparse; interface uses Generics.Collections, Sysutils; type EJParse = class( Exception ); // nesting stack records opening, closing of Objects, Arrays type TNesting = ( nsObject, nsArray ); // token describes type of token type TToken = ( tkInitial, tkKey, tkValue, tkObject, tkArray, tkObjectEn...
unit AboutDialog; { SimThyr Project } { (c) J. W. Dietrich, 1994 - 2012 } { (c) Ludwig Maximilian University of Munich 1995 - 2002 } { (c) Ruhr University of Bochum 2005 - 2012 } { This unit implements an about-box } { Source code released under the BSD License } {$mode objfpc} interface uses Classes, SysUtils, ...
// ============================================================================= // Module name : $RCSfile: StringPairs.pas,v $ // description : This unit implements a class, in which name-value pairs are managed. // It is very useful for the configuration from ini-file // Compiler : Delphi 2007 //...
unit editEmployee; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Buttons, StdCtrls, DB, pngimage, ExtCtrls; type TfrmEditEmployee = class(TForm) Button1: TButton; edtCommission: TEdit; edtSalary: TEdit; edtSurname: TEdit; ed...
unit dwsBackgroundWorkersLibModule; interface uses SysUtils, Classes, dwsExprs, dwsComp, dwsUtils, dwsXPlatform, dwsIOCPWorkerThreadPool, dwsWebEnvironment; type TBackgroundWorkEvent = procedure (const request : TWebRequest) of object; TWorkQueues = TSimpleNameObjectHash<TIOCPWorkerThreadPoo...
unit AT.Posix.SystemInfo.Hardware; interface //todo: {$IF ( (NOT Defined(ANDROID)) AND (NOT Defined(LINUX)) )} function AvailCPUCount: Integer; function BusFrequency: Int64; function CacheLineSize: Int64; function CPUCount: Integer; function CPUFrequency: Int64; function DiskNames: String; function DiskStats: String;...
program icon_change; {$IFNDEF HASAMIGA} {$FATAL This source is compatible with Amiga, AROS and MorphOS only !} {$ENDIF} {$MODE OBJFPC}{$H+}{$HINTS ON} {$UNITPATH ../../../Base/CHelpers} {$UNITPATH ../../../Base/Trinity} {$IFDEF AMIGA} {$UNITPATH ../../../Sys/Amiga} {$ENDIF} {$IFDEF AROS} {$UNITPATH ../../../S...
unit ControlListDemoFrm1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ControlList, Vcl.VirtualImage, Vcl.ExtCtrls, Vcl.BaseImageCollection, Vcl.ImageCollection, Generics.Collections, Vcl...
unit Model.FormDeclarations; interface uses Model.ProSu.Interfaces, Model.ProSu.InterfaceActions; type TBrowseFormCommand = (efcmdNext, efcmdPrev, efcmdFirst, efcmdLast, efcmdAdd, efcmdEdit, efcmdDelete, efcmdUndelete, efcmdViewDetail, efcmdPost, efcmdClose, efcmd...
// ****************************************************************** // // Program Name : AT Library // Platform(s) : Android, iOS, Linux, MacOS, Windows // Framework : Console, FMX, VCL // // Filename : AT.Sets.pas // Date Created : 22-Nov-2020 // Author : Matthew Vesperman // // Description...
unit LanguageEdit; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxPropertiesStore, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, Vcl.Menus, Vcl.StdCtrls, cxButtons, cx...
unit RepositorioMateriaPrima; interface uses DB, Auditoria, Repositorio; type TRepositorioMateriaPrima = class(TRepositorio) protected function Get (Dataset :TDataSet) :TObject; overload; override; function GetNomeDaTabela :String; override; function ...