text stringlengths 14 6.51M |
|---|
unit DScript.Lexer;
interface
uses
System.SysUtils,
Winapi.Windows,
System.Generics.Collections;
type
{ Internal type for storing IDs }
THId = Integer;
THIds = array of THId;
THPosition = record
private
FLineNumber: Integer;
FRowNumber: Integer;
FScopeName: String;
pu... |
{ *******************************************************************************
Title: T2Ti ERP
Description: Unit criada pelo DataSnap - Contem os componentes do SA
The MIT License
Copyright: Copyright (C) 2010 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of thi... |
unit Socket;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics,Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls,
XML.XMLDoc, XML.XMLIntf, Vcl.Buttons;
type
TSocketForm = class(TForm)
PasswdEdit: TLabeledEdit;
HostIPEdit: TLa... |
program HelloWorld;
{$mode objfpc}{$H+}
uses
Glib2, Gdk2, Gtk2;
(* This is a callback function. The data arguments are ignored
* in this example. More on callbacks below. *)
procedure hello(Widget: PGtkWidget; Data: gpointer); cdecl;
begin
g_print ('Hello World'#13#10);
end;
function delete_event( Widget: PGt... |
unit uclsRegrafiscalServico;
(* classe servico *)
interface
uses
Classes, SysUtils, StrUtils,
uRegrafiscal;
type
TcRegrafiscalServico = class(TComponent)
private
fRegrafiscal : TRegrafiscal;
protected
class var _instance : TcRegrafiscalServico;
constructor Create(AOwner : TComponent); override... |
{-------------------------------------------------------------------------------
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... |
program Agenda_Com_Registros;
{_________________Criacao de uma constante para facilitar expansao da agenda no futuro_______________________}
const
Lim_Vetor = 2;
{_________________________Criacao de tipos para facilitar a declaracao nos subprogramas e evitar repeticao______________}
type
tagenda = record
... |
unit ftk_editor_js;
{
Copyright (c) 2001-2021, 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... |
{$I ..\Definition.Inc}
unit WrapFmxListBox;
interface
uses
FMX.ListBox, WrapFmxTypes, WrapFmxControls, WrapFmxLayouts, PythonEngine;
type
TPyListBoxItem = class(TPyDelphiTextControl)
private
function GetDelphiObject: TListBoxItem;
procedure SetDelphiObject(const Value: TListBoxItem);
public
class function... |
unit CStartupInfoFrameUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, CBaseFrameUnit, Menus, ImgList, PngImageList, VirtualTrees, CDatabase,
CSchedules, Contnrs, ExtCtrls, GraphUtil, CConfigFormUnit, VTHeaderPopup,
CImageListsUnit, CComponents, CDataObj... |
program Stars;
uses Crt;
const
StarAmount = 300;
StarDelay = 1;
VGASegment = $A000;
VGA320x200 = $13;
TextMode = $3;
type
StarType = record
X, Y, Z,
Delay: Integer;
end;
var
Star: array[1..StarAmount] of StarType;
StarCount,
DelayCount: Integer;
Ch: Char;
pro... |
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://172.16.30.65/WsUniversalTest/Universal.asmx?WSDL
// Encoding : utf-8
// Version : 1.0
// (11/10/2016 10:35:25 a.m. ... |
unit CashBasis;
interface
{$I stbasis.inc}
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
{WinTab,} Db, IBCustomDataSet, IBTable, Grids, DBGrids, ExtCtrls, DBCtrls,
StdCtrls, {Data,} IBQuery, IB,{ Kassa,} inifiles, URBMainGrid;
type
TFCashBasis = class(TfmRBMainGrid)
pro... |
unit RICK.Format;
interface
uses
FMX.Edit,
FMX.Types,
System.SysUtils,
RICK.Librarys,
RICK.Librarys.Interfaces,
RICK.Format.Interfaces;
type
TRICKFormat = class(TInterfacedObject, iRICKFormat)
private
FExtra: string;
FMask: string;
FRICKLibrarys: iRICKLibrarys;
constructor Create;
... |
unit GeneradorSaludosTests;
interface
uses
Classes, DUnitX.TestFramework, SysUtils, StrUtils,
InterfazGeneradorSaludos;
type
[TestFixture]
TestGeneradorSaludos = class(TObject)
private
FGeneradorSaludos : IGeneradorSaludos;
public
[Setup]
procedure Setup;
[Te... |
unit Server.Service;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes,
System.IOUtils, System.Win.Registry, Vcl.SvcMgr, Vcl.Dialogs,
Bcl.Logging,
uServerContainer;
type
TServerWinService = class(TService)
procedure ServiceCreate(Sender: TObject);
procedure ServiceDest... |
unit DW.VCL.CustomForm;
interface
uses Classes, Forms, Controls, DW.HTML.Page, DWRenderStream, DWCallbacks,
DW.VCL.Container;
type
TDWCustomForm = class(TDWModuleContainer)
private
FHTMLPage: TDWHTMLPage;
FCaption: string;
FOnRender: TNotifyEvent;
FOnShow: TNotifyEvent;
proc... |
unit UnitAddUserInfo;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.Grids;
type
TfrmAddUserInfo = class(TForm)
editName: TEdit;
editSurname: TEdit;
... |
unit DTF.Logger;
interface
uses
DTF.Service.Types;
type
TLogLevel = (llTrace, llDebug, llInfo, llWarnig, llError, llFatal);
TLogger = class abstract(TDTFServiceProvider, IDTFLogService)
private
FLogLevel: TLogLevel;
protected
procedure DoWriteLog(const ALog: string); virtual; abstract;
public
... |
unit cmos;
interface
uses iodev,service,config, SysUtils, PIC,DateUtils;
type
tm = record
tm_hour : Byte;
tm_min : Byte;
tm_mon : Byte;
tm_sec : Byte;
tm_wday : Byte; //Day of week (0-6; Sunday = 0)
tm_yday : Integer;
tm_year : integer;
tm_mday : Byte;
tm_isdst: Bo... |
unit SharedPointer;
interface
uses
System.Generics.Collections;
type
TDeallocator = reference to procedure(AObj: TObject);
TShared<T: class> = record
private
FFreeTheValue: IInterface;
public
constructor Create(AValue: T);
procedure Assign(AValue: T);
procedure SetDeallocator(ADealloc: TDe... |
unit uDuplicatedImagesFinder;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, ComCtrls, uPlayer;
type
TfrmDuplicatedImagesFinder = class(TForm)
edtDirectory: TLabeledEdit;
btnVarrer: TSpeedButton;
mmoInfo: TMemo;
pb... |
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, Spin,
ExtCtrls, ComCtrls, Math;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
FloatSpinEdit1: TFloatSpinEdit;
FloatSpinEdit2: TFloatSpinEdit;
FloatSpinEdit3: TFloatSpin... |
{ Simple TRIE implementation.
Copyright (c) 2012 by Inoussa OUEDRAOGO
The source code is distributed under the Library GNU
General Public License with the following modification:
- object files and libraries linked into an application may be
distributed without source code.
If yo... |
unit IdOpenSSLConsts;
interface
{$i IdCompilerDefines.inc}
const
CLibCryptoRaw = 'libcrypto';
CLibSSLRaw = 'libssl';
SSLDLLVers: array [0..1] of string = ('', '.1.1');
{$IFDEF OSX}
CLibCrypto = CLibCryptoRaw+'-1_1.dylib';
CLibSSL = CLibSSLRaw+'-1_1.dylib';
{$ENDIF}
{$IFDEF LINUX}
... |
{
pbotgov2.lpr -- demo of internet's bot
Copyright (C) 2013 Leonardo Valdes Arteaga (eolandro)
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 ... |
unit Main;
(*
Main.pas - main form
TZipMaster VCL by Chris Vleghert and Eric W. Engler
v1.79
Copyright (C) 2005 Russell Peters
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; ... |
unit CursesHTMLUtils;
{
This unit is created from stripped and slightly modified portions of Alcinoe HTML Functions.
Author(s): Stéphane Vander Clock (svanderclock@arkadia.com)
Sponsor(s): Arkadia SA (http://www.arkadia.com)
Most of this originally came directly from ALFcnHTML.pas.
It has been modified to ... |
unit uTabelaDAO;
interface
uses
System.SysUtils, System.Generics.Collections, System.Win.IEInterfaces,
StrUtils, Data.DB, Datasnap.DBClient,
ZAbstractRODataset, ZAbstractDataset, ZDataset, ZAbstractConnection,
ZConnection, ZDbcIntfs, System.Classes, System.Rtti, System.TypInfo,
System.Variants, uCRUD, uTE... |
unit uConst;
interface
resourcestring
rsInstall = 'Install';
rsWorking = 'Working';
rsFinish = 'Finish';
rsOk = 'Ok';
rsAvaria = 'Авария';
rsTimeOut = 'Тайм-аут';
rsIOTimeOut = 'IOerr';
rsNoData = 'Нет данных';
rsConnect = 'Подключение';
rsBrutto = 'Брутто';
rsNetto = 'Нетто';
rsSum = 'Сумма... |
unit JQBasicEntitys;
{$mode objfpc}{$H+}
interface
uses Classes, SysUtils, JQGeometry, JQBasicRender, JQBasicTiles, JQMain, JQObjects, crt,windows;
//Typ des Entitys
//Für MOB könnte man auch Monster benutzen
type JQEntityType = (PLAYER, MOB, PROJECTILE);
{
!!!!!!!!!!!!!!!!
JQEntity
Diese Klasse ste... |
unit IntecExportImport;
interface
type
(*
ITableContentHandler = interface
procedure StartHeader; safecall;
procedure AppendField(const FieldName : WideString); safecall;
procedure EndHeader; safecall;
procedure StartRow; safecall;
procedure EndRow; safecall;
procedure SetFieldValue(FieldNu... |
unit Samples.Main;
interface
uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls;
type
TFrmSamples = class(TForm)
Panel1: TPanel;
Button1: TButton;
Button2: TButton;
Button3: TButton... |
unit uXkPfRecordBrowse;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, GridsEh, DBGridEh, DB, DBClient, StdCtrls, Buttons,
ExtCtrls, pngimage, frxpngimage, Mask, DBCtrlsEh,CnProgressFrm,
DBGridEhGrouping, dxGDIPlusClasses;
type
TXkPfRecordBrows... |
unit JNI_Tool;
{
JNI_Tool
===============================================================
Tools to help use JNI and HanLP.
Written by caowm (remobjects@qq.com)
16 September 2020
}
interface
uses
System.Classes,
System.SysUtils,
System.Generics.Collections,
JNI,
JNIUtils;
typ... |
unit qdac_fmx_modaldlg;
{ FMX.ModalDlg FMX 下 ShowModal 的增强和接口统一
本单元统一了 FMX 和 TForm.ShowModal 的操作接口,原来 Delphi 自带的 ShowModal 的
匿名函数版本传递的只是一个 ModalResult 参数,无法通过局部变量进一步控制。此版本
参数改为窗体的实例,你可以访问其 ModalResult 以及各个相关的成员,以方便进一步控
制。
受平台限制,Android 下并不是实际的ShowModal(不过和 ShowModal 差不多,因为它都是
全屏覆盖的,下层的窗口你也操作不了),而其它平台都是真正的模... |
unit ugar.db.mongo.internals;
interface
{$POINTERMATH ON}
uses
ugar.db.mongo, ugar.db.mongo.Imp,
ugar.db.mongo.Enum, ugar.db.mongo.Query, System.SysUtils, System.JSON,
System.Generics.Collections, ugar.db.mongo.Protocol;
type
TUgarClientHack = class(TUgarClient)
property Protocol;
end;
TUgarDatabas... |
program pedidosOvos;
var
tipoOvo:char;
quantidadeOvoPedido:integer;
aux:real;
const
quantidadeMax_ovoA=50;
quantidadeMax_ovoB=30;
quantidadeMax_ovoC=20;
valorUnidadeOvo=50.00;
valorDolar=3.88;
Begin
write('Esse algoritmo recebe a quantidade de ovos pedidos, e escreve... |
{ Collection of utility routines used for Windows graphics programming.
}
module rend_win_util;
define rend_win_show_message;
%include 'rend_win.ins.pas';
{
*********************************************************************
*
* Subroutine REND_WIN_SHOW_MESSAGE (MSG, WPARAM, LPARAM)
*
* Show the Windows message... |
{
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 interface for creating curve instances.)
@author(Dmitry Morozov dvmorozov@hotmail.com,
LinkedIn: https://www.linkedin.c... |
program ExampleThreshold;
{$ifdef MSWINDOWS}{$apptype CONSOLE}{$endif}
{$ifdef FPC}{$mode OBJFPC}{$H+}{$endif}
uses
SysUtils, IPConnection, BrickletDistanceIR;
type
TExample = class
private
oIPConnection: TIPConnection;
dir: TBrickletDistanceIR;
public
procedure DistanceReachedCB(sender: TBrickle... |
{-----------------------------------------------------------------------------
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 CmdTabSheet;
interface
uses
Windows, Classes, Messages, ComCtrls, ShellAPI, SysUtils, ExtCtrls;
type
TCmdTabSheet = class(TTabSheet)
protected
procedure Resize; override;
procedure DoShow; override;
private
ConsoleHandle: HWND;
ConsolePID: DWORD;
Timer: TTimer;
fFColor, fBColor: ... |
unit Model.Validator;
interface
uses
Vcl.Graphics,
System.Classes,
System.SysUtils,
Vcl.StdCtrls,
System.Generics.Collections,
Model.Validator.Interfaces,
Model.Validator.Text.Constraints;
type
TValidator = Class(TInterfacedObject, IValidator)
private
FOnChanged: TNotifyEvent;
FTextCo... |
unit uInputDiscount;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, NxEdit, ExtCtrls, DB, ffdb;
type
TfrmInputDiscount = class(TForm)
Panel1: TPanel;
Label1: TLabel;
Panel2: TPanel;
pnlAmount: TPanel;
edtAmount: TNxNumbe... |
{-----------------------------------------------------------------------------
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 frame.XV.GetCalInfo;
interface
uses
frame.master,
dmCommon, fmx.objects,
neato.XV.GetCalInfo,
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.Lay... |
{*******************************************************************************
Title: T2Ti ERP
Description: Classe de controle do DAV.
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 associated documentation
fi... |
unit UnitAntivirus; //From XtremeRAT 3.6 source code
interface
uses
Windows, SysUtils, ActiveX, ComObj, Variants;
type
TSecurityCenterInfo = class
displayName: string;
end;
TSecurityCenterProduct = (AntiVirusProduct, AntiSpywareProduct, FirewallProduct);
procedure GetSecInfo(SecurityCenterProduct: TSec... |
unit ubyUtils;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, strutils, Math, graphics,
{$IFDEF MSWINDOWS}
Windows, LConvEncoding, Dialogs, Registry, Fileutil,
{$ENDIF}
LazFileUtils, LazUTF8, //Fileutil,
LCLIntf, Process, UTF8Process;
function myGetFileSizeInt(fn: string): int64;
f... |
unit NovusWin32Debug;
interface
uses Windows, classes, NovusExceptions, NovusWin32DebugBase;
Type
TNovusWin32Debug = class(TNovusWin32DebugBase)
Private
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
end;
procedure Register;
implementation
pro... |
unit ITDBSearch;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Mask, DBCtrls,buttons,ExtCtrls,db;
type
TITDBSearch = class(TDBEdit)
private
{ Private declarations }
FButton: TSpeedButton;
FWinBack: TWinControl;
FCanvas: TControlCanvas;
... |
(*===========================================================================*
| unit ResourceDialogs |
| |
| Version Date By Description |
... |
// MIT License
// Copyright (c) 2019-2021 Wuping Xin.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy... |
unit MainUnit;
interface
uses
(* Delphi *)
WinApi.Windows, WinApi.Messages, System.SysUtils, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls,
Vcl.OleCtrls, ActiveX, SHDocVw,
(* DWS *)
dwsHTTPSysServer, dwsUtils, dwsWebEnvironment, dwsXPlatform,
dwsWebServerHelpers,
(... |
Program ASM_Swapper;
(*-----------------------------------------------------------------*)
(* (C) by TechnoRat "Tool for NextHarrier" 18-Jan-1997y Ver: 1.0 *)
(* 03-Feb-1997y Ver: 1.1 *)
(* 14-Mar-1997y Ver:... |
unit UntSimpleCommand;
interface
uses
CommunicationTypes,
CommunicationConst,
IntfClientConfig,
UntCommand;
type
TSimpleCommand = class (TCommand)
protected
NeedsUserKey : Boolean;
public
constructor Create(Command : string; NeedsUserKey : Boolean);
procedure Init; override;
end;
implem... |
unit unt_bulletinUtils;
interface
uses unt_BbsConfig,classes;
type
IBulletinObserver = interface(IInterface)
procedure refresh(blts:TStrings);
end;
TBulletin = class(TObject)
private
FId:String;
FPublishTime:TDateTime;
FTitle:String;
public
property Id:String read FId write ... |
{******************************************************************************}
{ }
{ Delphi PnHttpSysServer }
{ ... |
{$A-,B-,D-,E-,F-,G+,I-,L-,N-,O-,P-,Q-,R-,S-,T-,V-,X-,Y-}
UNIT GRAPHICS {
Implements a simplistic API for the VGA 320x200 pixel, 216+ color mode.
Actual number of available colors in this mode is 256, but this unit
sets the VGA palette to an RGB array with 6 steps of R, G, B values:
colors from 16 t... |
unit G2Variants;
interface
uses
Classes, G2Types, G2Consts, G2Execute, SysUtils, TypInfo, StrUtils;
type
TG2VCustomString = class(TG2Variant)
private
FData: G2String;
protected
function GetBool: G2Bool; override;
function GetFloat: G2Float; override;
function GetInt: G2Int; override;
proc... |
unit DevMax.Data.BindingData;
interface
uses
DevMax.View.DataControl,
System.Rtti,
Data.Bind.Components, Data.Bind.DBScope;
type
TDxDataBinding = class
public
procedure Mapping(AControl: TViewItemControl); virtual; abstract;
end;
//////////////////////////////////
// ¹ÙÀεù
TSourceDataBinding ... |
unit Texture;
interface
uses SysUtils, Default, SDK;
procedure W_ToUpper(Src, Dst: PLChar);
procedure W_ToLower(Src, Dst: PLChar);
function W_LoadWADFile(Name: PLChar): Int;
function W_GetLumpInfo(Index: UInt; Name: PLChar; Error: Boolean): PWADFileLump;
function W_GetLumpName(Index: UInt; Name: PLChar): Pointer;
f... |
unit PascalPrimer.About;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Types,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
Vcl.Imaging.PngImage, Vcl.ExtCtrls, Vcl.StdCtrls, GR32, GR32_Image;
type
TFormAbout = class(TForm)
LabelTitle: TLabel;
LabelAutho... |
// ###################################################################
// #### 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) 2014, Micha... |
unit xxmEditProject;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Menus, jsonDoc, ComCtrls, StdCtrls, Dialogs, ImgList, ActnList;
type
TEditProjectMainForm = class(TForm)
MainMenu1: TMainMenu;
File1: TMenuItem;
New1: TMenuItem;
Save1: TM... |
{$M+}
unit PanamahSDK.Models.LocalEstoque;
interface
uses
Classes, SysUtils, PanamahSDK.Types, PanamahSDK.Enums, Variants, uLkJSON;
type
IPanamahLocalEstoque = interface(IPanamahModel)
['{081E17C0-7736-11E9-A131-EBAF8D88186A}']
function GetId: string;
function GetLojaId: string;
function GetDe... |
program sftp;
//libssh2 available here https://windows.php.net/downloads/pecl/releases/ssh2/
//openssl here https://indy.fulgan.com/SSL/
//see definition here https://github.com/libssh2/libssh2/blob/master/include/libssh2.h
//see examples here https://github.com/libssh2/libssh2/tree/master/example
{$mode objfpc}{$H+... |
unit TSTs_inkLIFO_11_Count;
(*$define testCase -- пометка для gitExtensions-Statickics что это файл ТЕСТ
[Test
*)
{$mode objfpc}{$H+}
interface
uses testregistry, uTST_CORE_inkLIFO,
inkLIFO;
type
tTests_inkLIFO_11_Count=class(tTSTCTC_CORE_inkLIFO)
published
procedure Count_NIL;
procedure Count_One;... |
{*******************************************************************************
Title: T2Ti ERP
Description: Controller do lado Servidor relacionado à tabela [CBO]
The MIT ... |
program tester;
uses si32ops, stringops;
const
SrcSi32: array[0..7] of si32ops.TElement = (0,1,2,3,4,5,6,7);
procedure test0();
var
src: si32ops.TElements;
cpy: si32ops.TElements;
begin
src := SrcSi32;
cpy := si32ops.Dup(src);
assert(Length(cpy) = Length(src));
assert(CompareByte(cpy[0], src[0], Lengt... |
unit zgl_CLineWindow;
{$mode objfpc}{$H+}
interface
uses
Types,
Classes,
SysUtils,
zgl_main,
zgl_screen,
zgl_window,
zgl_keyboard,
zgl_render_2d,
zgl_fx,
zgl_primitives_2d,
zgl_textures,
zgl_font,
zgl_text,
zgl_math_2d,
zgl_CLineWidget,
zgl_CLineWindowTitle,
zgl_CLineStyle
;
type
... |
{-----------------------------------------------------------------------------
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 UnitFunctions;
interface
uses
Windows, WinInet;
const
MAXSTRINGCOUNT = 1000;
type
TStringArray = array[0..MAXSTRINGCOUNT] of string;
TArray = array[0..MAX_PATH] of Char;
function IntToStr(const i: Integer): string;
function StrToInt(const s: string): Integer;
function ExtractFileName(const Path: str... |
unit TBGElasticSearch.Term;
interface
uses
TBGElasticSearch.Search.Interfaces,
System.RTTI,
System.JSON;
type
TTBGElasticSearchTerm<T : IInterface> = class(TInterfacedObject, iElasticTerm<T>)
private
FParent : T;
FJsonObject : TJSONArray;
public
constructor Create(FJson : TJSONArray... |
unit uMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls,
IdIOHandler, IdIOHandlerSocket, IdIOHandlerStack, IdSSL, IdSSLOpenSSL,
IdMessage, IdBaseComponent,... |
unit uFrmTituloPagarParcelado;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,System.DateUtils,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, ENumEd, Data.DB, uTituloPagarModel, System.Generics.Collections,
Vcl.Grids, Vcl.DBGrids, FireDAC.Sta... |
{ Program TEST_SYN [fnam]
*
* Test program for the SYN library. The input file is read as a syntax
* definition file. The syntax tree resulting from parsing it is shown.
}
program test_syn;
%include 'sys.ins.pas';
%include 'util.ins.pas';
%include 'string.ins.pas';
%include 'file.ins.pas';
%include 'fline.ins.p... |
{*
* "Echo" Theme for TBX
* Copyright 2004-2013 Roy Magne Klever. All rights reserved.
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without rest... |
{-----------------------------------------------------------------------------
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 UnitFilesManager;
interface
uses
Windows, SysUtils, ShellAPI, UnitUtils;
function ListDrives: string;
function ListFiles(Path: string; DirsOnly: Boolean): string;
function MyRenameFile_Dir(oldPath, NewPath : string): Boolean;
function MyDeleteFile(s: string): Boolean;
function DeleteAllFilesAndDir(FilesOrDir:... |
unit GerarBackup;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls, IBServices, Spin, Buttons, ExtCtrls, FMTBcd,
SqlExpr, Provider, DB, DBClient;
type
TFGerarBackup = class(TForm)
BTGeraBack: TButton;
Button2: TButton;
Memo1: TM... |
unit uMembro;
interface
uses System.SysUtils;
Type
TMembro = class
private
FIDMembro : Integer;
FNome: String;
FMatricula: String;
FAtividade: String;
FCongregacao: String;
FPai: String;
FMae: String;
FNaturalidade: String;
FSexo: String;
FDescricao: String;
FNacionalidade: String;
FEstad... |
unit GameBorders;
{-------------------------------}
interface
uses
GamePoint,
GraphABC;
const
margin = 120;//Поля экрана
type
//Границы поля
Borders = class
public
maxPoint, minPoint, centerAlignOffset: GamePoint.Point;
scale: double;
constructor create();
begin
scale :=... |
unit unCadastroEmail;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, AppEvnts, ImgList, ComCtrls, StdCtrls, Grids, DBGrids,
Buttons, ExtCtrls, ToolWin, Mask;
type
TfrmCadastroEmails = class(TForm)
ToolBar: TToolBar;
tlBtnNovo: TTo... |
unit PosPayments;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, ComCtrls, Mask, cxGraphics,
cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit,
cxTextEdit, cxMaskEdit, cxDropDownEdit, cxCalendar ;
type
TEdit... |
unit raylib_descriptors;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, LazIDEIntf, ProjectIntf, MenuIntf;
type
{ TRayGameSimpleProjectDescriptor }
TRaySimpleProjectDescriptor = class(TProjectDescriptor)
public
constructor Create; override;
function GetLocalizedName: string; override... |
unit IntfMessageParser;
interface
uses
System.Generics.Collections,
CommunicationTypes,
CommunicationConst;
type
IMessageParser = interface
['{D2590AD3-B904-4B2D-943E-01DC5512D252}']
function GetXml: String;
procedure SetXml(const Value: String);
procedure Parse(ResultData : TResultDictionary)... |
unit uTestador;
interface
uses
DUnitX.TestFramework, uCalculadora ;
type
[TestFixture]
TCalculadora = class(TObject)
public
[Setup]
procedure Setup;
[TearDown]
procedure TearDown;
published
procedure somar(v1 :double; v2 :double);
procedure sub(v1 :double; v2 :double);
procedu... |
Program DayOfProjects;
{I.S. : User memasukkan berapa hari proyek berlangsung}
{F.S. : Menampilkan perubahan hari ke berapa tahun, bulan dan hari}
// Kamus
var JumlahHari, Tahun, Bulan, SisaHari : integer;
// Algoritma
begin
// Input
Write('Masukkan berapa lama proyek (hari) : '); readln(JumlahHari);
// Proses
... |
unit TestSpielrunde;
{
Delphi DUnit-Testfall
----------------------
Diese Unit enthält ein Skeleton einer Testfallklasse, das vom Experten für Testfälle erzeugt wurde.
Ändern Sie den erzeugten Code so, dass er die Methoden korrekt einrichtet und aus der
getesteten Unit aufruft.
}
interface
uses
TestFram... |
{*******************************************************}
{ }
{ SvBindings Validation }
{ }
{ Copyright (C) 2011 "Linas Naginionis" }
{ ... |
unit NLDMsgBox;
{
:: NLDMessageBox is an extension to the MessageBox API. It adds several
:: enhancements, such as automatic closing after a set number of seconds
:: or adding a "Don't show this again" checkbox, while maintaining Windows
:: compatibility (most noticably: the language and shortcuts of the... |
unit movers;
{$mode objfpc}{$H+}
interface
uses
Classes, math, root;
type
{ TMover }
TMover = class(TGLObj)
private
Frunning:boolean;
protected
procedure move; virtual;
public
property running:boolean read Frunning;
Constructor Create;
procedure stop;
procedure... |
unit USetting;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ComCtrls, Mask, Grids;
type
TFormSetting = class(TForm)
PageControl: TPageControl;
tsFactor: TTabSheet;
tsConnect: TTabSheet;
tsShift: TTabSheet;
... |
//
// 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... |
{
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 definitions of class for point set of experimental neutronogram.)
@author(Dmitry Morozov dvmorozov@hotmail.com,
LinkedIn: https://www... |
unit plsMemo;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TPlsMemo = class(TMemo)
private
colorRecebeFoco: TColor;
colorPerdeFoco: TColor;
enterMudaCampo: boolean;
caracteresMaiusculo: boolean;
procedure setColor... |
unit DW.Server;
interface
uses Classes, Forms, System.SysUtils, OverbyteIcsHttpAppServer, DWHttpServer,
OverbyteIcsFtpSrvT, DWForm;
type
TDWServerClient = class(THttpAppSrvConnection)
private
FResponseHeader: string;
procedure SetResponseHeader(const Value: string);
protected
publi... |
(*
* Copyright (c) 2012, Linas Naginionis
* Contacts: lnaginionis@gmail.com or support@soundvibe.net
* 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 m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.