text
stringlengths
14
6.51M
{*******************************************************} { } { Copyright(c) 2003-2021 Oamaru Group , Inc. } { } { Copyright and license exceptions noted in source } { ...
unit uMQTTInterface; interface uses System.Classes, System.StrUtils, System.Math, winapi.Windows, Winapi.Messages, Vcl.StdCtrls, Vcl.WinXCtrls, Vcl.Menus, Vcl.Graphics, uMQTT; type IMQTTClientCustom = interface ['{81A6799E-6BB0-4D6B-ACE6-DB9DCB88F1DD}'] function Enabled : boolean; f...
unit ListEx; interface uses Windows, SysUtils, SortList, Classes; type TLockSortList = class (TSortList) private m_Lock: TRTLCriticalSection; public constructor Create();override; destructor Destroy();override; procedure Lock(); procedure Unlock(); end; TDoubleList = class(TLockS...
unit UFLConfDesenvolvimentoDeClientes; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, UFBasicoLista, cxStyles, DB, ADODB, Menus, ImgList, cxPropertiesStore, ActnList, ComCtrls, ToolWin, cxControls, cxGrid, cxCustomData, cxGraphics, cxFilter, cxData, cxDataSt...
Program Subtraction; { Variables declaration } Var x, y, result :integer; Begin { Get the values by user } writeln('Set the variable X:'); read(x); writeln('Set the variable Y:'); read(y); { Calculates the sum between two numbers } result := x - y; writeln('The subtraction between ', x,...
unit uTabelaPrecoItens; interface uses ZConnection, ZDataset, SysUtils, uConstantes, Classes, uProcedimentosBanco, uExceptions, Variants, Forms, Dialogs, Windows, uTabelaPreco, uProduto; type TTabelaPrecoItens = class public oTabelaPreco: TTabelaPreco; oProduto: TProduto; constructor Create(pzcoCo...
unit DataSet.Model; interface uses System.SysUtils, System.Classes, Data.DB, Datasnap.DBClient, Spring, Spring.Collections, DataSet.Interfaces, MVVM.Interfaces, MVVM.Bindings; type TDataSet_Model = class(TDataModule, IDataSetFile_Model, IModel, INotifyChangedProperty) cdsSource: TClientDataSet; ...
unit TripackPascalDriver; interface uses FastGeo, TripackTypes; procedure TripackDemoPascal; procedure ModifiedTripackDemoPascal; procedure TRMTST (var N: longint; var X,Y: TNmaxSingleArray; var LIST,LPTR: TN6IntArray; var LEND: TNmaxIntArray; var LNEW: longint; var TOL: TFloat; var LUN:longint; var ARMAX: TFlo...
UNIT PoTweak; { DESCRIPTION: Fixing Erm PO command to support maps of any size AUTHOR: Alexander Shostak (aka Berserker aka EtherniDee aka BerSoft) } (***) INTERFACE (***) USES Core, GameExt, Heroes, Stores; CONST FILE_SECTION_NAME = 'EraPO'; TYPE PSquare = ^TSquare; TSquare = INTEGER;...
unit ficha.Configuracoes; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxCheckBox, Vcl.ExtCtrls, System.Actions, Vcl.ActnList, Vcl.PlatformDefaultStyleActnCtrls, Vcl.ActnMan, dxBar, cxBarEditItem, cxClasse...
unit MVVM.Core; interface uses System.SysUtils, Spring, Spring.Container, MVVM.Bindings, MVVM.Interfaces, MVVM.Types; type MVVMCore = record private class var FPlatformServicesClass: TPlatformServicesClass; FContainer: TContainer; FDefaultBindingStrategyName: String; FSynchronizer...
unit Main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ImgList, ExtCtrls, Cosmos.Framework.Interfaces.Root, Cosmos.Framework.Interfaces.Utils, Cosmos.Framework.Interfaces.Dialogs, ComCtrls, Buttons, ActnList, cosmos.core.winshell, cosmos.core.Co...
unit datamatrix; (* @type: unit @author: bocianu <bocianu@gmail.com> @name: Datamatrix library @description: <https://github.com/pfusik/datamatrix6502> adapted into MadPascal by bocianu '2017 *) interface procedure CalculateMatrix:assembler; procedure SetMessage(msg:string; dmData:word); implementation con...
unit A111THread; interface uses SysUtils, Classes, Windows, Dialogs, WinSock, SerialLink; type TDWORD = packed record case Integer of 0: (dw: Cardinal); 1: (w:array[0..1]of Word); 2: (b:array[0..3]of Byte); end; type TA111 =record cmd:Byte; reg:array[0..127]of TDWORD; end; { 0x02...
FUNCTION CompareNumbers (number1, number2: Integer):Boolean; BEGIN CompareNumbers:= (number1 = number2); END; FUNCTION CountReps (list: TypeList; number: Integer): Integer; VAR auxList: TypeList; {Como la lista se pasa por valor, se puede omitir la lista auxiliar y reocrrer la lista directamente con el puntero lista...
object AdjustSongTempoDlg: TAdjustSongTempoDlg Left = 0 Top = 0 BorderIcons = [biSystemMenu] BorderStyle = bsDialog Caption = 'Adjust Song Tempo' ClientHeight = 149 ClientWidth = 311 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Nam...
unit SaveThread; interface uses Windows, Classes; type TSaveThread = class(TThread) private { Private declarations } protected procedure Execute; override; procedure Save; end; implementation uses UnitMain; procedure TSaveThread.Save; begin SaveAll ; end; pro...
//Convert From mongo-c-driver v1.3.5 //Hezihang@ cnblogs.com unit DriverBson; interface type { A value of TBsonType indicates the type of the data associated with a field within a BSON document. } TBsonType = (bsonEOO = 0, bsonDOUBLE = 1, bsonSTRING = 2, bsonOBJECT = 3, bsonARRAY = 4, bsonBINDATA = 5, bsonU...
unit cosmos.common.view.updaterconf; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, GroupHeader, Vcl.ImgList, cosmos.system.messages, Vcl.Buttons, cosmos.framework.forms.pages, Co...
(** This module contains a wizard interface for creating an options page frame within the IDEs main option dialogue. @Author David Hoyle @Version 1.0 @Date 18 Dec 2016 **) Unit DGHIDEAutoSaveIDEOptionsInterface; Interface Uses ToolsAPI, Forms, DGHIDEAutoSaveOptionsFrame; {$INCLUDE CompilerDefi...
unit TBGFirebaseConnection.Interfaces; interface uses System.JSON, Data.DB, System.Classes; type iFirebaseConnect = interface; iFirebasePut = interface; iFirebaseGet = interface; iFirebasePatch = interface; iFirebaseDelete = interface; iFirebaseCloudMessage = interface; iFirebaseCloudMessageRegistratio...
unit StringBuffer; interface uses SysUtils; type EBufferDepleted = class(Exception); EBufferUnderflow = class(Exception); EBufferPosError = class(Exception); TSchStringBuffer = class(TObject) private fStringBuffer: String; function GetStringBuffer: String; virtual; procedure ...
unit TimeMaskFrame; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, InputFrame, StdCtrls, Mask; type Tframe_TimeMask = class(Tframe_Input) MaskEdit: TMaskEdit; procedure MaskEditChange(Sender: TObject); private function GetFieldValue: variant; ov...
unit NtUtils.AntiHooking; { This module introduces user-mode unhooking of ntdll functions via IAT modification. It works for native 32 and 64 bits, as well as under WoW64. Note that not all functions support unhooking, but syscall stubs always do. } interface uses NtUtils, NtUtils.Ldr; type TUnhookableImp...
unit PipeClient; interface uses Windows, SysUtils, Classes; type TNamedPipeClientOnError = procedure (Sender: TObject; var ErrorCode: Integer) of object; TNamedPipeClient = class (TComponent) private FHandle : THandle; FPipeName : string; FActive : Boolean; FTimeOut : DWord; FOnOp...
unit Main; interface //#################################################################### ■ uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, System.Math.Vectors, FMX.Types3D, FMX.Viewport3D, FMX.Controls3D, F...
// CSV Import stuff // // Started: December 20th 2007 // Last Modified: May 11th 2019 // // 287 unit X.Form.CSVProcess; interface uses System.UITypes, Windows, Messages, System.SysUtils, System.Variants, Classes, Graphics, Controls, Forms, ExtCtrls, StdCtrls, Buttons, X.Help, X.Utility, X.CCSVDataFormat...
unit TradesClass; interface uses IdHashMessageDigest, Classes, Generics.Collections; type TBaseTrade = class private FParam : TStringlist; Fapp_secret: string; procedure SetSign(); function GetMD5(Str: string): string; procedure Setapp_secret(const Value: string); function getURL: strin...
unit Lua.GlobalVariable; interface uses LuaLib, Lua.Types; type TLuaGlobalVariable = class(TInterfacedObject, ILuaExtension) protected FName: string; FType: ( TypeNil, TypeBoolean, TypeInteger, TypeDouble, TypeString, TypeData ); FBoolean...
unit UFL_PC_ReceitaBrutaMensal; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, UFBasicoLista, cxStyles, DB, ADODB, Menus, ImgList, cxPropertiesStore, ActnList, ComCtrls, ToolWin, cxControls, cxGrid, cxCustomData, cxGraphics, cxFilter, cxData, cxDataStorage, ...
Program Rectangle; { Variables declaration } Var base, height :real; { Functions } Function fncArea(base, height :real) :real; Begin fncArea := base * height; End; Begin { Get the rectangle base and height by user } writeln('Enter the rectangle base:'); readln(base); writeln('Enter the r...
unit cosmos.secretarias.view.FormEditarParticipantesTiposAti; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, FrameDeleteButtons, cosmos.frames.fkSearch, cosmos.frames.gridsearch, StdCtrls, Mask, DBCtrls, ExtCtrls, GroupHeader, DB, DBClient, cosmos.classes.Serv...
(*Considere a soma S dos termo da série infinita apresentada abaixo, a qual é responsável pelo cálculo do valor do co-seno de 1 (um) radiano: S = 1 - 1/2! + 1/4! - 1/6! + 1/8! - 1/10! + 1/12! - ... Fazer um programa em linguagem Pascal que seja capaz de calcular o valor aproximado da soma (S) dos termos da série até ...
unit MiscTests4; interface uses {$IF (CompilerVersion >= 23)} // Delphi XE2 or newer System.Classes, {$ELSE} Classes, {$ENDIF} TestFramework, Windows, ZMStructs, Controls, ZipMstr, Dialogs, SysUtils, Graphics, ZMXcpt, ZMTest; type // Test methods for class TZipMaster_A TTestZipComment = class(T...
{13. En astrofísica, una galaxia se identifica por su nombre, su tipo (1. elíptica; 2. espiral; 3. lenticular; 4. irregular), su masa (medida en kg) y la distancia en pársecs (pc) medida desde la Tierra. La Unión Astronómica Internacional cuenta con datos correspondientes a las 53 galaxias que componen el Grupo Local...
{==============================================================================| | Project: MontDigital RMI | |==============================================================================| | Content: Process unit ...
unit cosmos.secretarias.view.FormFuncoesCadastrados; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, FrameDeleteButtons, cosmos.frames.fkSearch, StdCtrls, ExtCtrls, GroupHeader, cosmos.frames.gridsearch, cosmos.classes.ServerInterface, DB, DBClient, cosmos.fr...
unit BCEditor.Editor.Utils; interface uses System.Classes, System.SysUtils, BCEditor.Types; function GetTextPosition(const AChar, ALine: Integer): TBCEditorTextPosition; function IsUTF8Buffer(const ABuffer: TBytes; out AWithBOM: Boolean): Boolean; function GetClipboardText: string; procedure SetClipboard...
Unit Timers; (* Обертка для класса System.Timers.Timer (c) Брагилевский В.Н. 2007 Сохранен интерфейс класса Timer из PascalABC за исключением функции Handle. *) interface uses System; type /// Класс таймера Timer = class private _timer: System.Timers.Timer; _procedure: procedure; ...
// 003 u_c_base_socket_4 // 20 may 2005 // -- (C) Felix John COLIBRI 2004 // -- documentation: http://www.felix-colibri.com // -- common to client and server (*$r+*) unit u_c_base_socket_4; interface uses Windows, Messages, WinSock , SysUtils // exception , u_c_basic_object ; ...
unit uPrincipal; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, System.ImageList, Vcl.ImgList, System.Actions, Vcl.ActnList, Vcl.ExtCtrls, Vcl.DBCtrls, Vcl.ComCtrls, Vcl.ToolWin, Vcl.StdCtrls, Vcl...
(* * Delphi Multi-tab Chromium Browser Frame * * Usage allowed under the restrictions of the Lesser GNU General Public License * or alternatively the restrictions of the Mozilla Public License 1.1 * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WAR...
{ fpDebug - A debugger for the Free Pascal Compiler. Copyright (c) 2012 by Graeme Geldenhuys. See the file LICENSE.txt, included in this distribution, for details about redistributing fpDebug. Description: . } unit machoDbgSource; {$mode objfpc}{$H+} interface uses Classes, SysUtils,...
{ 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; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even ...
/// Sergii Sidorov 2013 @ Home/test /// /// Created: 26.02.2013 /// /// /// /// Description: Simple text file search engine. /// /// File scanning put into a TThread and /// whenver it search in new file,find text in file or finished work /// it send messages to the parent form, /// which then updates th...
unit desktop.views.messagebox; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Controls.Presentation, FMX.StdCtrls, FMX.Effects, FMX.Objects, FMX.Layouts; type TMessageBo...
type Recurrent<T> = class first: T; next: Func<T,T>; count: integer; constructor (f: T; n: Func<T,T>; c: integer); begin first := f; next := n; count := c; end; function f(): IEnumerable<T>; begin result := Range(1, count).Select(x -> begin result := firs...
unit Ntapi.UserEnv; { This file defines functions for working with user and AppContainer profiles. } interface {$WARN SYMBOL_PLATFORM OFF} {$MINENUMSIZE 4} uses Ntapi.WinNt, Ntapi.ntseapi, Ntapi.ntregapi, Ntapi.Versions, DelphiApi.Reflection, DelphiApi.DelayLoad; const userenv = 'userenv.dll'; var delay...
unit AndroidTTS; interface uses System.SysUtils, System.Classes, AndroidAPI.JNIBridge, androidapi.JNI.TTS, FMX.Forms; type TAndroidTTS = class(TComponent) private ftts: JTextToSpeech; finit: Boolean; type TttsOnInitListener = class(TJavaLocal, JTextToSpeech_OnInitListener) private ...
{: @abstract(Implementação da base de um driver de protocolo.) @author(Fabio Luis Girardi papelhigienico@gmail.com) } unit ProtocolDriver; {$IFDEF FPC} {$mode delphi} {$ENDIF} interface uses SysUtils, Classes, CommPort, CommTypes, ProtocolTypes, protscanupdate, protscan, CrossEvent, Tag, syncobjs {$IFNDEF FPC}, ...
unit UI.Base.Controlador.ConsultaDesktop; interface uses UI.Base.ConsultaPadrao, Framework.Interfaces.CRUD, Lib.Biblioteca, Framework.Controlador.ConsultaBase, Vcl.Forms, Lib.ResultFilter; type TControladorConsultaDesktop<T: Class> = class(TFrmConsultaPadrao) private FormularioCadastro: TFormClass;...
unit Fraction; {Canboc Software Studio} interface type TFract=object numerator:integer; denominator:integer; {Procedures&Functions} procedure SetValue(const num,den:integer); procedure Reduce; end; function RealtoFract(decimal: double): TFract; implementation uses math; {Procedures&Funct...
{*******************************************************} { } { Chesslink by } { Perpetual Chess LLC } { Copyright (c) 1995-2013 } { ...
UNIT STG_GAME; INTERFACE USES CRT,GRAPH,DOS,MOUSE; CONST HOCH=#72; RUNTER=#80; LINKS=#75; RECHTS=#77; ENTER=#13; ESC=#27; AN=TRUE; AUS=FALSE; CenterX=320; CenterY=240; PROCEDURE cursor(an_aus:boolean); {Cursor an aus schalten im Textmodu...
unit UCyphers; interface uses System.SysUtils, IdCoderMIME, IdCoderQuotedPrintable, LbCipher, LbClass; const C1 = 4512; C2 = 5627; type TCyphers = class private public class function SimpleEncrypt(Text: string; var code: integer): string; class function SimpleDecrypt(Text: string; va...