text stringlengths 14 6.51M |
|---|
program KnightTour;
{
Program: KnightTour
Synopsis: Move a knight on a (n x n) chess board,
such that it visits each and every square exactly once.
Author: (C)GPL: Mosh@cse.iitb.ernet.in,
Date: 12-Sep-93
}
const maxn = 10;
var bd : array[0..maxn,0..maxn] of integer;
n... |
unit modsimple_lib;
{$mode objfpc}{$H+}
interface
uses
Dialogs, Controls, LazarusPackageIntf, ProjectIntf,
Classes, SysUtils;
resourcestring
rs_Mod_Default_Name = 'Controller Generator - Simple';
rs_Mod_Default_Description = 'Create FastPlaz simple module';
type
{ TFileDescDefaultModule }
TFileDescDe... |
//------------------------------------------------------------------------------
// Name : m_utils
// Purpose : Implementatie van utilities.
// Environment : Free Pascal 2.4.2, Windows XP
// Notes : -
// Author : Vincent Houtgraaf, Bunnik
// Date : aug 2011
// Modified :
//------... |
PROGRAM Encryption(INPUT, OUTPUT);
{Переводит символы из INPUT в код согласно Chiper и печатает новые символы в OUTPUT}
CONST
Len = 20;
TYPE
Str = ARRAY [1 .. Len] OF 'A' .. 'Z';
Chiper = ARRAY ['A' .. 'Z'] OF CHAR;
VAR
Msg: Str;
Code: Chiper;
I: INTEGER;
FCrypt: TEXT;
Space: CHAR;
PROCEDURE Initialize... |
// File: SMenuSecurityEditor.pas
// Version: 1.3
// Author: Spider13
unit SMenuSecurityEditor;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, SMenuSecurity, StdCtrls, ComCtrls, ImgList,
ExtCtrls, Menus, Buttons, System.ImageList;
type
TfSMenuSecurityEditor... |
unit DW.VCL.Buttons;
interface
uses
SysUtils, Classes, db, StrUtils, Controls, DW.VCL.Control, DWTypes,
DW.VCL.Container, DWElementTag;
type
// TDWCustomButton.BSButtonStyle
// Base class for TDWButton and TDWDropDown
TDWCustomButton = class(TDWControl)
private
FBlockLevel: boolean;
FButtonSize:... |
{*********************************************************}
{ }
{ Zeos Database Objects }
{ DBC Layer Proxy Database Connectivity Classes }
{ }
{ Originally ... |
{*******************************************************************************
Title: T2Ti ERP
Description: VO relacionado à tabela [FOLHA_HISTORICO_SALARIAL]
The MIT Li... |
unit utilidades_bd;
{$mode objfpc}{$H+}
interface
uses
Controls, Forms, FileUtil, Classes, SysUtils, DB, sqldb, IniFiles, Dialogs, utilidades_general,
ButtonPanel;
{
var Variable : String;
}
type
TOrder_By = record
Titulo : String;
Memo_OrderBy : String;
end;
Trecord_CN_Conexion = rec... |
(* *****************************************************************************
Copyright (C) 2010-2014 - Bambu Code SA de CV - Ing. Luis Carrasco
Este archivo pertenece al proyecto de codigo abierto de Bambu Code:
http://bambucode.com/codigoabierto
La licencia de este codigo fuente se encuentra en:
http:/... |
unit NotaFiscal.Controller;
interface
uses
System.SysUtils,
System.Generics.Collections,
NotaFiscal.DTO,
NotaFiscal.Entity,
NotaFiscal.Service,
NotaFiscal.Controller.Interfaces,
ConnectionServices.Interfaces,
PubSub.Interfaces,
Redis.Config,
Redis.PubSub.Service,
REST.JSON,
System.JSON;
ty... |
unit waves;
interface
uses SysUtils;
const MaxTenticleWidth=90;
type PRec = record
x,y,
R,G,B: single;
end;
TWaveArray = array[0..720+MaxTenticleWidth] of PRec;
TStar=record
StarPosX,StarPosY, StarPosX_,StarPosY_,
StarCR,StarCG,StarCB,
StarSize: single;
end;
... |
{$REGION 'documentation'}
{
Copyright (c) 2016, Vencejo Software
Distributed under the terms of the Modified BSD License
The full license is distributed with this software
}
{
Command to checks if directory is empty
@created(10/02/2016)
@author Vencejo Software <www.vencejosoft.com>
}
{$ENDREGION}
unit ooFS... |
unit u_notification;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
type
TCardInfo = record
TableTag: Integer;
CardID: Integer;
BTF: TNotifyEvent;
end;
{ TNotification }
TNotification = class(TObject)
private
Subscribers: array of TNotifyEvent;
OpenedCards: array of T... |
unit Main;
// Demonstration project for TVirtualStringTree to generally show how to get started.
// Written by Mike Lischke.
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
VirtualTrees, StdCtrls, ExtCtrls;
type
TMainForm = class(TForm)
VST: TVirtualStringTree;
... |
unit uPhotoItemVO;
interface
uses System.Classes, System.SysUtils;
// 写真バリューオブジェクト
type
TPhotoItemVO = class
private
FPhotoId: Integer;
FPhotoTitle: string;
FPhotoDesc: string;
FCreatedDate: TDateTime;
FPhotoData: TBytes;
procedure SetCreatedDate(const DateTime: TDateTime);
public // コ... |
unit Pas.排序.堆排序;
interface
const
SIZE = 9;
type
TType = Integer;
const
TARRAY: array [0 .. SIZE] of TType = (5, 2, 6, 0, 3, 9, 1, 7, 4, 8);
var
count1: Integer = 0;
count2: Integer = 0;
procedure Running();
implementation
procedure Swap(var a: Integer; var b: Integer);
var
temp: Integer;
begin
tem... |
{
This software is distributed under GPL
in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the warranty of FITNESS FOR A PARTICULAR PURPOSE.
@abstract(Contains definition of TNonConfigurablePointsSet.)
@author(Dmitry Morozov dvmorozov@hotmail.com,
LinkedIn: https://www.linkedin.com/in... |
unit EditSS;
interface
uses Windows,Messages,SysUtils,Variants,Classes,
Graphics,Controls,Forms,Dialogs,StdCtrls,Spin,
ExtCtrls;
type TfrmEditSS = class(TForm)
edtDelay: TSpinEdit;
lblDelay: TLabel;
lblRepeat: TLabel;
edtRepeat: TSpinEdit;
lblSync: TLabel;
edtSync:... |
unit xxmSpoolingCon;
interface
uses Windows, Classes, xxmContext;
type
TXxmSpoolingConnections=class(TThread)
private
FLock:TRTLCriticalSection;
FAddEvent:THandle;
FContexts:array of record
Context:TXxmGeneralContext;
KeptCount:cardinal;
DataLeft:int64;
Buffer:TStream;
B... |
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics,
Dialogs, ExtCtrls, Menus,
dglOpenGL, oglVector, oglMatrix,
oglContext, oglShader;
type
{ TForm1 }
TForm1 = class(TForm)
Timer1: TTimer;
procedure FormCreate(Sender: TObject);
procedure Fo... |
unit shellthread;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, tgtypes, tgsendertypes, process, eventlog, tgshbot
{$IFDEF MSWINDOWS}, Windows{$ENDIF}
;
type
{ TShellThread }
TShellThread=class(TThread)
private
FLogger: TEventLog;
FBot: TTgShBot;
FProc: TProcess;
FTerminated: B... |
unit ValidationFrame;
{
Copyright (c) 2018+, 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 c... |
unit PurchaseProcess.Bus;
interface
uses
System.Classes,
System.Generics.Collections,
System.SysUtils,
PurchaseProcess.Types;
type
TBus = class( TInterfacedPersistent, IBus, IOrderChannel )
private
FMachines : TObjectDictionary<TOrderId, TOrderSM>;
FOrders : TObjectDictionary<TOrd... |
PROGRAM Prime(INPUT, OUTPUT);
CONST
MinNum = 2;
MaxNum = 100;
TYPE
Bunch = SET OF MinNum .. MaxNum;
VAR
BunchOfNumber: Bunch;
CurrentNumber, DelNum: INTEGER;
PROCEDURE WriteBunch(VAR Bun: Bunch);
VAR
CurrNum: INTEGER;
BEGIN {WriteBunch}
CurrNum := 2;
WHILE CurrNum <= MaxNum
DO
BEGIN
IF CurrN... |
{-----------------------------------------------------------------------------
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/MPL-1.1.html... |
program tp3e6ok;
const
valor_alto = -1;
type
registro = record
cod: integer;
desc: string;
color: string;
tipo: string;
stock: integer;
precio: real;
end;
maestro = file of registro;
detalle = file of integer;
procedure leerm(var a: maestro; var r: registro); begin
if (not eof(a))... |
unit DefinesConditionParser;
{$I jvcl.inc}
interface
uses
Classes,
JclSimpleXml,
ConditionParser, GenerateDefines;
type
TDefinesConditionParser = class (TConditionParser)
private
FDefinesList: TDefinesList;
FTargetDefines: TStrings;
protected
procedure MissingRightParenthesis; override;
... |
//
// Dragon
// A game for Windows based on a modified and improved version of the
// DelphiDoom engine
//
// Copyright (C) 1993-1996 by id Software, Inc.
// Copyright (C) 2004-2022 by Jim Valavanis
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Genera... |
{-----------------------------------------------------------------------------
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/MPL-1.1.html... |
unit untBasePCEFrame;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, ComCtrls, Ora, DBCtrls, DB, DBCtrlsEh, ToolCtrlsEh,
ToolWin, untBaseFrame,untBaseButtonsFrame, Mask;
type TFrState = (fstAdd,fstEdt,fstDel,fstRfr,fstC... |
unit uVersion;
interface
procedure VersionRoutine;
const
VERSION_LEGACY: Integer = 20080202;
VERSION_103: Integer = 20080629;
var
SettingFileVersion: Integer;
implementation
uses
UserInterfaces, Classes, SysUtils, GerneralFunc, ADODB;
{***************************************************************... |
unit uExeList;
interface
uses SysUtils, Classes, Contnrs, Controls, Graphics;
type
TQPExeList = class(TObjectList)
protected
_ExeIcons : TImageList;
_FileName : String;
_AllowWrite : Boolean;
_IconThread : TThread;
public
constructor Create(eFile : TFileName; AllowWrite : Boolean);
Des... |
unit AqDrop.Core.Helpers.TArray;
interface
uses
System.SysUtils;
type
TAqArray<T> = class
strict private
class procedure InternalForIn(const pArray: TArray<T>; const pProcessingMethod: TFunc<T, Boolean>;
out pIndex: Int32; const pAscendingProcessing: Boolean = True); overload;
public
... |
unit ReportBillNegative;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DB, MemDS, DBAccess, Ora, ActnList, Grids, DBGrids, CRGrid, StdCtrls,
Buttons, ExtCtrls;
type
TReportBillNegativeForm = class(TForm)
Panel1: TPanel;
lPeriod: TLabel;
lAccoun... |
unit Gradient;
interface
uses
windows, classes,controls,extctrls, graphics;
type TDireccio = (N,S,E,O);
type TGradient = class(TCustomPanel)
private
FColorInicial : TColor;
FColorFinal : TColor;
FDireccio : TDireccio;
protected
function FerGr... |
(*
* part of MPEG searcher project
* (c) 1999 by Alexander Trunov, 2:5069/10, jnc@mail.ru
*)
unit SortType;
interface
{&Use32+}
uses
Objects, Views, App, Dialogs, Sortings;
type
TTwoItemsRec = record
firstFactor, secondFactor: TSepFactor;
end;
POneItemDialog = ^TOneItemDialog;
TOneItemDialog = ... |
unit mungo.intf.filepointer;
{$mode delphi}{$H+}
interface
uses
generics.Collections,
LazFileUtils,
Classes, SysUtils;
type
TFilePointer = class;
// callback is executed if the file on the disk is changed. If do reload is set to True in the callback the file is reloaded afterwards.
TFilePointerOnFileC... |
{**
DelphiPI (Delphi Package Installer)
Author : ibrahim dursun (ibrahimdursun gmail)
License : GNU General Public License 2.0
**}
unit PackageCompiler;
interface
uses JclIDEUtils, PackageInfo, PackageList, SysUtils, Classes, CompilationData, ProgressMonitor;
type
TPackageCompiler = class
priv... |
unit MetaAPI;
{$I Default.inc}
{$MinEnumSize 4}
interface
uses
SDK;
const
META_INTERFACE_VERSION = '5:13';
type
va_args = PAnsiChar;
QBoolean = Integer;
type
TMetaRes = (MRES_UNSET = 0, MRES_IGNORED, MRES_HANDLED, MRES_OVERRIDE, MRES_SUPERCEDE);
PMetaGlobals = ^TMetaGlobals;
TMetaGlobals = record
... |
unit Entities;
interface
uses
System.Classes, Dialogs, SysUtils, EntityBase, EntityTypes, Atributies,CPF, classCLiente;
type
[EntityTable('Endereco')]
TEndereco = class( TEntityBase )
private
FLogradouro: TString;
FPessoaId:TInteger;
public
[EntityField('Logradouro','varchar(50)',true)]
pro... |
unit StCalendarGrid;
{$I stbasis.inc}
interface
uses Windows, Classes, Controls, Grids, PickDate;
type
TStCalendar=class(TRxCalendar)
private
procedure CreateParams(var Params: TCreateParams); override;
function IsCellHoliday(ACol, ARow: Integer): Boolean;
function NextDayIsHoliday(ACol, ARow: Integer): Bo... |
unit MainFormU;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes,
System.Variants, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
System.Rtti,
FMX.Grid.Style, FMX.Controls.Presentation, FMX.ScrollBox, FMX.Grid,
StringExColumn, FMX.Types;
type
TForm5 = class(TForm)
Gri... |
// ###################################################################
// #### This file is part of the mrimageutils project, depends on
// #### the mathematics library project and is
// #### offered under the licence agreement described on
// #### http://www.mrsoft.org/
// ####
// #### Copyright:(c) 2012, Michae... |
unit uclsPagamentoServico;
interface
uses
Classes, SysUtils, StrUtils,
uPagto, mSequence, mException;
type
TcPagamentoServico = class(TComponent)
private
fPagto : TPagto;
protected
class var _instance : TcPagamentoServico;
constructor Create(AOwner : TComponent); override;
public
class fu... |
unit DataSetConverter;
interface
uses
SrcConverter;
type
TDataSetConverter = class(TConverter)
private
function ConvertAddRow(ASrc: string; var ADest: string): Boolean;
function ConvertInsert(ASrc: string; var ADest: string): Boolean;
function ConvertInsertRow(ASrc: string; var ADest: string): Boo... |
unit tileset_dialog;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, Buttons, Math, _tileset, Spin;
type
TTilesetDialog = class(TForm)
TilesetImage: TImage;
TilesetScroll: TScrollBar;
TilesetGrid: TCheckBox;
Til... |
unit CCheckDatafileFormUnit;
interface
{$WARN UNIT_PLATFORM OFF}
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, CProgressFormUnit, ImgList, PngImageList, ComCtrls,
CComponents, StdCtrls, Buttons, ExtCtrls, CDatabase, StrUtils;
type
TCCheckDatafileForm = class(TCProg... |
Unit ButtonClass;
Interface
Uses WinGraph,WinMouse;
Type
tButton = object
public
constructor init(x,y:integer; name:string);
constructor init(x,y,xText,yText:integer; name:string);
function getX():integer;
function getY():integer;
function getWidth():integer;
function getHeight():integer;
... |
unit Unit1;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param,
FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf,
FMX.Ta... |
{ *******************************************************************************
Title: T2Ti ERP
Description: Janela de DRE para o módulo Contabilidade
The MIT License
Copyright: Copyright (C) 2010 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and... |
unit PartyList;
{Titulo: Programming II Labs
Subtitulo: Practica 2
Autor 1: Oscar Perez Sanchez Login 1: oscar.perez.sanchez
Autor 2: David Bermudez Lopez Login 2: david.bermudez
Grupo: 2.1
Fecha: 03/05/2019}
interface
CONST
NULL = nil;
BLANKVOTE = 'B';
NULLVOTE = 'N';
TYPE
tPartyName= string;
tNu... |
Program CalculoDePotencia;
Function Potencia (base,exponente:integer):LongInt;
begin
if(exponente=0) then
potencia:=1
else
potencia:= Base*Potencia(base,exponente-1);
end;
var
base, exponente:integer;
begin
Write('Ingrese el numero base: ');
readln(base);
writeln;
write('Ingrese el numero expone... |
{
ViewItem에서 제공하는 이벤트 정의
}
unit DevMax.Event.ViewItem;
interface
uses
DevMax.Types,
System.Classes, System.Types, System.SysUtils,System.Generics.Collections,
System.Rtti,
FMX.Types, FMX.ListView, FMX.ListView.Appearances;
type
ENotFoundViewItemEventClassExcept = class(Exception);
TViewItemEventClass... |
unit frame.D.GetMotors;
interface
uses
frame.master,
dmCommon,
neato.D.GetMotors, fmx.objects,
fmx.TabControl,
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... |
unit LancamentoFinanceiroParcelasEntidade;
interface
type
TLancamentoFinanceiroParcelasEntidade = class
private
FCodigo: integer;
FCodigo_Lancamento_Financeiro: integer;
FN_Documento: integer;
FData_Vencimento: TDateTime;
FData_Pagamento: TDateTime;
FParcela: integer;
FS... |
{-----------------------------------------------------------------------------
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/MPL-1.1.html... |
{-----------------------------------------------------------------------------
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/MPL-1.1.html... |
{******************************************************************
JEDI-VCL Demo
Copyright (C) 2002 Project JEDI
Original author:
Contributor(s):
You may retrieve the latest version of this file at the JEDI-JVCL
home page, located at http://jvcl.delphi-jedi.org
The contents of this f... |
//////
////// Registers for the floppy drive controller
//////
const
SIO_FDC = $AF13F0;
SIO_FDC_SRA = $AF13F0; // Read Only - Status Register A (not used in AT mode)
SIO_FDC_SRB = $AF13F1; // Read Only - Status Register B (not used in AT mode)
SIO_FDC_DOR = $AF13F2; // Read/Write - Digital Output Registe... |
(*
*
* CNS: Sony Camera Network System - A network system consisting of Sony Cameras (Sony CCUs)
* and Sony Control Panels, connected to each other via TCP/IP.
* SPP: Sony Proprietary Protocol - A communication protocol used by CNS
*
* CNS MODE LEGACY/BRIDGE/MCS - Sets camera network system connection mode
... |
unit SafraEntidade;
interface
type
TSafraEntidade = class
private
FCodigo: integer;
FCodigo_Propriedade: integer;
FCodigo_Usuario: integer;
FDescricao: AnsiString;
FDataCadastro: TDate;
procedure SetCodigo(const Value: integer);
procedure SetDataCadastro(const Value... |
(***************************************************************************)
(* *)
(* xGreed - Source port of the game "In Pursuit of Greed" *)
(* Copyright (C) 2020 by Jim Valavanis *)
(* ... |
unit Product;
interface
uses
DatabaseForm, DataAccess, Error, SysUtils, Data.DB, Messages, FMX.Dialogs;
type
TProduct = class
public
constructor Create(id: Integer; Name, Description: String; Price: Currency); overload;
constructor Create(id: String); overload;
procedure SetId(id: Integer);
pro... |
unit RTORM.Sql;
interface
uses
SysUtils, Data.DB;
type
ISqlStatement = interface
['{F242493E-B779-409E-9C45-91DE23CBB96E}']
procedure AddParameter; overload;
procedure AddParameter(ParamValue: TObject; ParamType: TFieldType); overload;
function Copy: ISqlStatement;
procedure AddSqlClause(SqlC... |
{************************************************************************}
{ }
{ Skia4Delphi }
{ }
{ Copyright (c) 2011... |
(*
Origian : Turbocash 4.0.1.0
changed for osFinacials fork 2006/06/12 Pieter Valentijn
Released under the GNU General Public License
*)
unit PosEntry;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Con... |
{
File: QD/QuickdrawTypes.h
Contains: Type definitions from the former Quickdraw.i
Version: Quickdraw-262~1
Copyright: © 2005-2008 by Apple Inc. all rights reserved.
Bugs?: For bug reports, consult the following page on
the World Wide Web:
... |
program ExampleSimple;
{$ifdef MSWINDOWS}{$apptype CONSOLE}{$endif}
{$ifdef FPC}{$mode OBJFPC}{$H+}{$endif}
uses
SysUtils, IPConnection, BrickIMUV2;
type
TExample = class
private
oIPConnection: TIPConnection;
oBrick: TBrickIMUV2;
public
procedure Execute;
end;
const
HOST = 'localhost';
POR... |
unit stratoFn;
interface
{$D-}
{$L-}
uses stratoDecl, stratoSphere, stratoParseDecl, stratoParseLogic;
function StratoFnAdd(Parser:TStratoParserDecl;MethodType:xKey;
Member,Signature:xNode;SrcPos:xSrcPos):xNode;
procedure StratoFnCallBySignature(Parser:TStratoParserLogic;
MethodType:xKey;Subject,Arg... |
PROGRAM Last(INPUT, OUTPUT);
VAR
Ch: CHAR;
BEGIN
WHILE NOT EOLN(INPUT)
DO
BEGIN
READ(Ch);
IF EOLN(INPUT)
THEN
WRITELN(Ch);
END;
END.
|
unit MbankExtFFFormUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, jpeg, ExtCtrls, StdCtrls, Buttons, MsHtml, ActiveX, Types, StrUtils;
type
TExtractionType = (etCreditCard, etMonthExtraction, etPeriodExtraction);
TMbankExtFFForm = class(TForm)
Im... |
unit MyPaintBox;
interface
uses
System.SysUtils,FMX.Surfaces,FMX.Colors,System.UITypes,System.Types, System.Classes,FMX.Controls,FMX.Graphics, FMX.Types, FMX.Objects, FMX.Platform;
type
TFunctionDraw=(fdNone,fdPen,fdLine,fdRectangle,fdEllipse,fdFillBgr,fdBitmapStamp,fdPolyLine);
TMyPaintBox = class(TPaintBox)
... |
{ -*- mode: fvm -*- }
{
* This module maintains a sequence number that is incremented when the service starts.
* It is intended to be loaded at startup and never unloaded.
* Subscribers to the StateSeqMsg dmb message are informed when this service has restarted.
}
Program StateSeq(0,0,Init,GetStateSeq);
Begin
... |
unit FPHTTPStatus;
{$mode objfpc}{$H+}
interface
uses
SysUtils, fphttpserver, HTTPDefs;
(* construct and return the default error message for a given
* HTTP defined error code
*)
function http_error_response(status: integer; ARequest: TFPHTTPConnectionRequest): string;
implementation
function error_string(sta... |
unit TSTs_inkLIFO_BASE;
(*$define testCase -- пометка для gitExtensions-Statickics что это файл ТЕСТ
[Test
*)
{$mode objfpc}{$H+}
interface
uses testregistry, uTST_CORE_inkLIFO,
inkLIFO;
type
tTests_inkLIFO_BASE=class(tTSTCTC_CORE_inkLIFO)
published
procedure Init_from_NIL;
procedure Init_from_Self... |
unit Cartof;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, GfxUtils, CoreUtils;
const
NICE_YELLOW = 10351863; // 9D F4 F7
NICE_GREEN = 5959770; // 5A F0 5A
type
TCartof = class(TPart)
procedure InitMesh; override;
function GetBoundingBox: PBoundingBox; override;
private
m_bbox: TBound... |
program p3e1;
uses crt;
const
valorAlto = 999;
type
producto = record
cod : Integer;
nom : string[64];
cact: integer;
cmin: integer;
cmax: integer;
prec: real;
end;
tipoArchivoProducto = file of producto;
procedure leer(var maestro: tipoArchivoProducto; var reg: producto);
begin
if... |
unit DefaultModel;
interface
uses
// This
PrinterTypes, DriverTypes, PrinterModel, TableParameter, ParameterValue;
const
DefaultModelID = -1;
PrinterModelDefault: TPrinterModelRec = (
ID: DefaultModelID;
Name: 'Default model';
CapShortEcrStatus: False;
CapCoverSensor: True;
CapJrnPresent... |
unit UntArduinoCommunication;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.SyncObjs,
System.Generics.Collections,
IdHTTP, IdGlobal,
IntfMessageParser,
IntfCommandHandler,
CommunicationTypes,
CommunicationConst,
UntCommandParameter,
UntCommand, UntCmdConnect,
... |
unit FiscalPrinterState;
interface
uses
// VCL
Classes, SysUtils,
// This
OPOSException, OposFptr, WException, gnugettext;
type
{ TFiscalPrinterState }
TFiscalPrinterState = class
private
FState: Integer;
public
class procedure CheckValidState(AState: Integer);
class function GetStateTex... |
unit uDBSQLite;
//{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, SQLiteWrap;
procedure CheckDataBase(FileName:string);
function Login(FileName:string; aUserName, aPass:string):Integer;
procedure Connect(FileName:string; aUserName:String; ip:string; port:Integer; local_ip, remote_ip:string);
procedure Disco... |
(********************************************************************************)
(* UNIFIED INTERBASE (UIB) *)
(* *)
(* The contents of this file are subject to the Mozilla Public Licen... |
{-----------------------------------------------------------------------------
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/MPL-1.1.html... |
unit zgl_CLineWindowTitle;
{$mode objfpc}{$H+}
interface
uses
Classes,
SysUtils,
zgl_CLineWidget,
zgl_CLineStyle,
zgl_primitives_2d,
zgl_math_2d,
zgl_font,
zgl_text;
type
{ TWindowTitle }
TWindowTitle = class(TWidget)
public
constructor Create(const aOwner: TComponent);
procedure Loa... |
unit ServerMethodsUnit;
interface
uses System.SysUtils,
System.Classes,
Datasnap.DSServer,
Datasnap.DSAuth,
dorm,
dorm.Configuration,
BusinessObjects,
Generics.Collections;
type
{$METHODINFO ON}
TdormServerSample = class(TDataModule)
procedure DataModuleCreate(Sender: TObject);
... |
unit ChessTypes;
interface
const
WHITEPAWN = 1;
BLACKPAWN = -1;
WHITEKNIGHT = 2;
WHITEBISHOP = 3;
WHITEROOK = 4;
WHITEQUEEN = 5;
WHITEKING = 6;
BLACKKNIGHT = -2;
BLACKBISHOP = -3;
BLACKROOK = -4;
BLACKQUEEN = -5;
BLACKKING = -6;
type TEasyMove = record
FromX: Byte... |
{
Fast Memory Manager: Messages
Simplified Chinese translation by JiYuan Xie.
}
unit FastMM4Messages;
interface
{$Include FastMM4Options.inc}
const
{The name of the debug info support DLL}
FullDebugModeLibraryName32Bit = 'FastMM_FullDebugMode.dll';
FullDebugModeLibraryName64Bit = 'FastMM_FullDebugMode64.dl... |
//
// Dragon
// A game for Windows based on a modified and improved version of the
// DelphiDoom engine
//
// Copyright (C) 1993-1996 by id Software, Inc.
// Copyright (C) 2004-2022 by Jim Valavanis
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Genera... |
unit fmuFptrDirectIO;
interface
uses
// VCL
ComCtrls, StdCtrls, Controls, Classes,
// Tnt
TntClasses, TntStdCtrls, TntRegistry,
// This
FiscalPrinterDevice, FptrTypes, Spin;
type
{ TfmFptrDirectIO }
TfmFptrDirectIO = class(TFptrPage)
chbIgnoreDirectIOErrors: TTntCheckBox;
procedure PageChang... |
{-----------------------------------------------------------------------------
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/MPL-1.1.html... |
{
This file is part of the Free Pascal run time library.
A file in Amiga system run time library.
Copyright (c) 2001-2003 by Nils Sjoholm
member of the Amiga RTL development team.
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is dis... |
unit WinCash.Business.Desconto.AliquotaGeral;
interface
uses
Gsoft.Model.AliquotaDesconto,
Gsoft.Model.ValorMonetario;
type
TDescontoAliquotaGeral = class
private
FAliquotaDescontoMaximo : TAliquotaDesconto;
public
property aliquotaDescontoMaximo: TAliquotaDesconto read FAliquotaDescontoMaximo;
... |
unit ucCadBandeira;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ucPadrao, StdCtrls, Buttons, ExtCtrls, Mask,
Grids, DBGrids, DB, DBClient, pFIBClientDataSet, Provider,
FIBDataSet, pFIBDataSet, FIBDatabase, pFIBDatabase, rtBandeira, rxToolEdit,
rxCurrEdi... |
program WordLengthsHist;
uses
{ Matrix2D, }
Strings;
type
Point = record
Len: integer;
Freq: real;
end;
Graph = array of Point;
var
// S: string = 'We will not get into mouse input in detail, because that syntax differs from machine to machine.';
S: string = 'aa bb ccc e qqqq';
{ S: string = 'abc ab cd';... |
unit uTThreadSamkoonModbus;
interface
uses
Classes, SysUtils, Windows, SocketComPort, Generics.Collections, uPojoMaterials, IdModBusClient, IdIcmpClient,
IdAntiFreeze;
type
TNotifyPacket = procedure(Sender: TObject; const Buff: array of integer) of object;
TThreadSamkoonModbus = class(TThread)
private
... |
unit RefPhoneBlocks;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, TemplateFrm, DB, Ora, ActnList, Menus, MemDS, DBAccess, Grids,
DBGrids, CRGrid, ComCtrls, ToolWin, ExtCtrls;
type
TRefPhoneBlocksForm = class(TTemplateForm)
qMainPHONE_BLOCK_ID: TFloatF... |
program Ball;
uses Dos, Crt;
const
Points = 130;
XStep = 15; YStep = 1;
BallX = 160; BallY = 100;
BallRadius = 50;
LastSine = 255; SineSize = 100;
VGA256Mode = $13; VGASegment = $A000;
type
SineTabType = array[0..LastSine] of Integer;
PointType = record
X, Y... |
unit View.SVG;
interface
uses
{ Delphi }
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
System.Types,
System.UITypes,
System.Math,
System.IOUtils,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.Imaging.pngimage,
Vcl.ExtCtrls,
Vcl.Buttons,
... |
unit FireFunction;
interface
uses
shellapi, System.Classes, System.JSON, Idhttp, Vcl.Dialogs, System.UITypes,
System.SysUtils, System.StrUtils, Data.DB, System.TypInfo, System.DateUtils,
Winapi.Windows, Vcl.Forms;
function YesNoMsg(Qmsg: string; QType: Integer = 0): Boolean;
procedure OkMsg(Qmsg: string);
fu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.