text stringlengths 14 6.51M |
|---|
{*******************************************************************************
Title: T2Ti ERP
Description: VO relacionado à tabela [NFE_DETALHE_IMPOSTO_ICMS]
The MIT Li... |
{*******************************************************}
{ }
{ 线程池 }
{ }
{ 版权所有 (C) 2012 GXT YangYxd }
{ ... |
{$include kode.inc}
unit kode_widget_panel;
//----------------------------------------------------------------------
interface
//----------------------------------------------------------------------
uses
kode_canvas,
kode_color,
//kode_const,
kode_flags,
kode_rect,
kode_widget;
type
KWidget_Panel = c... |
{ Volvo (c) }
Const maxStack = 100;
Type
TType = Integer;
TStack = Record
stArr: Array[1 .. maxStack] Of TType;
currTop: Integer;
End;
Procedure Init(Var s: TStack);
Begin
s.currTop := 0
End;
Procedure Push(Var s: TStack; x: TType);
Begin
If s.currTop <> maxStack Then
Begin
... |
unit AOP.Aspects.Cursorize;
interface
uses
DSharp.Aspects,
Rtti,
SysUtils;
type
TCursorizeAspect = class(TAspect)
public
class procedure DoAfter(Instance: TObject; Method: TRttiMethod;
const Args: TArray<TValue>; var Result: TValue); override;
class procedure DoBefore(Instance: ... |
unit unUpdateClientThread;
interface
uses
Classes, Windows, unUpdateClient, SvcMgr, unApplyUpdate;
type
TUpdateClientThread = class(TThread)
private
FUpdateProgress :TStringList;
FService :TService;
FClientUpdate :TUpdateClient;
FUpdateApplier :ThcUpdateApplier;
procedure OnUp... |
{*******************************************************************************
Title: T2Ti ERP
Description: Controller do lado Cliente relacionado à tabela [VIEW_COMPRA_MAPA_COMPARATIVO]
... |
unit CatConsole;
{
Catarinka Console Component
Copyright (c) 2012-2014 Syhunt Informatica
License: 3-clause BSD
See https://github.com/felipedaragon/catarinka/ for details
}
interface
{$I Catarinka.inc}
uses
{$IFDEF DXE2_OR_UP}
Vcl.Forms, Vcl.Controls, System.SysUtils, System.Classes, Vcl.Graphics,
Vcl.... |
{******************************************************************************}
{ }
{ EasyIp communication Library }
{ Common types unit ... |
program quicksort;
{$MODE OBJFPC}
const ArraySize = 10000;
const Space = ' ';
const RandomRange = 1000000;
type
IntArray = array [1..ArraySize] of integer;
var
arrayToSort: IntArray;
numSwaps, numComparisons: Int64;
procedure swap(var x, y: integer);
var
tmp: integer;
begin
numSwaps := numSwaps + 1... |
unit Vector2dTimingTest;
{$mode objfpc}{$H+}
{$CODEALIGN LOCALMIN=16}
{$CODEALIGN CONSTMIN=16}
interface
uses
Classes, SysUtils, fpcunit, testregistry, BaseTestCase, BaseTimingTest,
native, BZVectorMath, BZProfiler;
{$I config.inc}
type
{ TVector2dOperatorsTimingTest }
TVector2dOperatorsTimingTest = class(... |
unit DFarmaceuticos;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ADPadrao, Db, DBTables;
type
TPosicionaCamposFFarmaceuticos = (
pcFFarmaceuticosNenhum,
pcFFarmaceuticosCODFarmaceutico,
pcFFarmaceuticosNomFarmaceutico);
TDmFarmaceuticos ... |
unit uSimpleLog;
interface
uses Classes, SysUtils;
{$M+}
type
TSimpleLog = class(TObject)
private
FLog: TStringList;
FFileName: string;
procedure SetFileName(const Value: string);
public
procedure AddLog(const AMsg: string);
procedure Flush(AFileName: string = 'Log.txt');
public
cons... |
{ Sample program that initializes the SuperVGA driver}
Program Test256;
Uses Graph,Crt,Dos;
{$i svga16.inc}
{$i svga256.inc}
var
GraphMode, GraphDriver : integer;
Ky : Char;
Drv : Integer;
{$F+}
function DetectVGA256 : Integer;
var Vid : Integer;
begin
Writeln('Which video mode would you ... |
unit OptionsTimeFormat;
interface
uses
System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, BCControls.Edit,
Vcl.ExtCtrls, Ora, BCCommon.OptionsContainer, BCFrames.OptionsFrame;
type
TOptionsTimeFormatFrame = class(TOptionsFrame)
Panel: TPanel;
T... |
unit CatZIP;
{
Catarinka - ZIP Compression/Decompression
Copyright (c) 2013-2015 Felipe Daragon
License: 3-clause BSD
See https://github.com/felipedaragon/catarinka/ for details
}
interface
{$I Catarinka.inc}
uses
{$IFDEF DXE2_OR_UP}
System.Classes;
{$ELSE}
Classes;
{$ENDIF}
procedure ExtractZIPFile(con... |
(* @file UGamefieldRow.pas
* @author Willi Schinmeyer
* @date 2011-10-28
*
* UGamefieldRow Unit
*
* Contains the TGamefieldRow type and functions/procedures operating on
* it, as well as the TGamefieldCell type since it doesn't warrant its
* own file. (TGAmefieldRow on the other hand does, since it has member... |
unit UFormFileShareExplorer;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, RzPanel, RzDlgBtn, VirtualTrees, ComCtrls, UMainForm,
RzTabs, StdCtrls, IniFiles, ImgList, ToolWin, ShellAPI, Generics.Collections;
type
TfrmShareExplorer = class(TForm)
... |
unit uthrImportarBaixas;
interface
uses
System.Classes, Dialogs, Windows, Forms, SysUtils, clUtil, clBaixas,
clCodigosEntregadores, clStatus, clAgentes, clEntrega,
Messages, Controls, System.DateUtils, Model.ControleBaixasTFO, DAO.ControleBaixasTFO, Generics.Collections, clCliente;
type
TCSVBaixa = record
... |
unit SocketErrorCode;
interface
{uses Windows;}
const
// взято с http://msdn.microsoft.com/en-us/library/ms740668(VS.85).aspx
WSA_INVALID_HANDLE = 6;
WSA_NOT_ENOUGH_MEMORY = 8;
WSA_INVALID_PARAMETER = 87;
WSA_OPERATION_ABORTED = 995;
WSA_IO_INCOMPLETE = 996;
WSA_IO_PENDING ... |
unit Config;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Registry, StdCtrls, JvDialogs, XPMan, MMSystem, Buttons, ImgList,
ComCtrls;
type
TConfRecord = record
PlaySound: Boolean;
SoundFile: string;
MinAPM: Single;
PosX, PosY: Integer;
... |
unit Constantes;
interface
Const
OPE_ESCAPE = 0 ;
OPE_INCLUSAO = 1 ;
OPE_ALTERACAO = 2 ;
OPE_EXCLUSAO = 3 ;
OPE_CONSULTA = 4 ;
TAG_FIELD = -1 ;
TAG_KEY = -2 ;
// Tipos
TYPE_STRING = 1 ;
TYPE_INTEGER = 2 ;
TYPE_FLOAT = 3 ;
PAGREC_STATUS_ABERTO = 'A' ;
PAGREC_... |
unit PipelineTest;
interface
uses
System.SysUtils, System.Classes,
DUnitX.TestFramework;
type
[TestFixture]
TPipelineTest = class(TObject)
[Test] procedure test_resolving_after_success_pipe;
[Test] procedure test_resolving_after_failure_pipe;
[Test] procedure test_rejecting_after_s... |
//unit FRViewer;
{$I frx.inc}
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, frxClass, frxExportPDF, frxServerClient, gmClientDataset,
frxDCtrl, frxChBox, frxCross, frxRich,
{$IFDEF TeeChartStd}
frxChart,
{... |
Unit MulSel;
Interface
uses
Dos,App,Objects,Views,Dialogs,Drivers;
type
TByteArray = array[0..$FF-1] of byte;
PByteArray = ^TByteArray;
PMultiSelListBox = ^TMultiSelListBox;
TMultiSelListBox = object (TListBox)
SelArr : PByteArray;
constructor Init (var Bounds: TRect; AScrollBar: PS... |
unit UMainForm;
interface
uses Windows, Messages, UxlWindow, UxlWinClasses, UxlMenu, UxlClasses, UxlExtClasses, UDisplayManager, UQueryManager;
type
TPopMenu = class (TxlMenu)
protected
procedure OnInitialize (); override;
end;
TTrayMenu = class (TxlMenu)
protected
procedure OnIniti... |
(* @file USharedData.pas
* @author Willi Schinmeyer
* @date 2010-10-26
*
* USharedData Unit
*
* Contains definition of the TSharedData Type.
*)
unit USharedData;
interface
uses UGeneralTypes;
type
(* @brief Data shared across different game states
*
* Could be expanded to include e.g. a hiscore l... |
unit uSimpleInterception;
interface
uses
Spring.Interception
;
type
TInterceptor = class(TInterfacedObject, IInterceptor)
procedure Intercept(const invocation: IInvocation);
end;
TClassToIntercept = class
procedure InterceptedMethod; virtual;
end;
procedure Main;
implementation
uses
... |
program bdf2svg;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
FileUtil, strutils, Classes, SysUtils;
const
MULT = 32;
type
TCorner = ( UpperRight, LowerRight, LowerLeft, UpperLeft, EndPoint );
TStick = record
x1, y1 : integer;
corner1 : TCorner;
x2... |
unit UMyRestoreXmlInfo;
interface
uses UChangeInfo, UXmlUtil, xmldom, XMLIntf, msxmldom, XMLDoc;
type
{$Region ' 数据修改 ' }
// 父类
TRestoreDownChangeXml = class( TXmlChangeInfo )
protected
MyRestoreDownNode : IXMLNode;
RestoreDownNodeList : IXMLNode;
protected
procedure Update;override;
end;
... |
unit NewsMainForm;
interface
uses
Forms, PluginManagerIntf, ComCtrls, TBSkinPlus, TB2Dock, TB2Toolbar,
Classes, Controls, ActnList, ImgList, TB2Item, cxControls, cxContainer,
cxEdit, cxTextEdit, cxMaskEdit, cxDropDownEdit, cxStyles, cxCustomData,
cxGraphics, cxFilter, cxData, DB, cxDBData, cxGridLevel... |
{*******************************************************}
{ }
{ NTS Aero UI Library }
{ Created by GooD-NTS ( good.nts@gmail.com ) }
{ http://ntscorp.ru/ Copyright(c) 2011 }
{ License: Mozilla Pu... |
{$include kode.inc}
unit fx_freeze;
//----------------------------------------------------------------------
interface
//----------------------------------------------------------------------
uses
kode_plugin,
kode_types;
const
str_freeze : array[0..1] of PChar = ('off','on');
str_loopmode : array[0..1]... |
unit RKUtils;
interface
uses Windows, SysUtils, Classes;
type
TRKConfig = record
User: string;
Pass: string;
SoftId: string;
SoftKey: string;
TypeId: string;
end;
var
// 配置INI的文件名,默认与本进程同名,后缀为INI,如需,自行更改INI名称
RKConfigFileName: string;
// 配置信息变量
RKConfig: TRKConfig;... |
{AUTEUR : FRANCKY23012301 - 2008 ------- Gratuit pour une utilisation non commerciale}
unit TimeLine;
interface
uses
Forms, Windows, Messages, SysUtils, Classes, Controls, Graphics, DuringTime, MMSystem, Math;
type
TDirection=(CsToRight,CsToLeft);
{>>TKnMdTimer : piqué à Kénavo}
TKnMdTimer = cla... |
unit UFormMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters,
ExtCtrls, ComCtrls, UBitmapPanel, cxPC, StdCtrls,
UTrayIcon , UMgrMenu, USysFun, UFrameBase, Menus;
type
TfMainForm = ... |
// 24 bpp supported
unit MyBitmap;
interface
type
DWord=Longword;
TMyBitmapHeader=packed record
Signature: Word;
FileLength: DWord;
Zero:DWord;
Ptr:DWord;
Version:DWord;
Width:DWord;
Height:DWord;
Planes:Word;
BitsPerPixel:Word;
Compression:DWord;
SizeImage:DWord;
XPelsPer... |
unit VisibleDSA.Circle;
{$mode objfpc}{$H+}
interface
uses
Classes,
SysUtils;
type
TCircle = class(TObject)
private
procedure __checkCollision(min_x, min_y, max_x, max_y: integer);
public
IsFilled: boolean;
R: integer;
X: integer;
Y: integer;
VX: integer;
VY: integer;
co... |
{5. Una empresa de transporte de cargas dispone de la información de su flota compuesta por 100 camiones.
De cada camión se tiene:
patente
año de fabricación
y capacidad (peso máximo en toneladas que puede transportar).
Realizar un programa que lea y almacene la información de los viajes realizados por la empresa.
De... |
{
Export selected quest dialogues for Skyrim and Skyrim SE
Apply to quest record(s)
}
unit ExportDialogue;
const
fDebug = False;
var
slExport: TStringList;
lstRecursion: TList;
ExportFileName, InfoNPCID, InfoSPEAKER, InfoRACEID, InfoCONDITION: string;
//===================================================... |
{
Copyright (C) 2013-2018 Tim Sinaeve tim.sinaeve@gmail.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable... |
{
Part of BGRA Controls. Made by third party.
For detailed information see readme.txt
Site: https://sourceforge.net/p/bgra-controls/
Wiki: http://wiki.lazarus.freepascal.org/BGRAControls
Forum: http://forum.lazarus.freepascal.org/index.php/board,46.0.html
This library is free software; you can red... |
unit OptionsForm;
//TODO: Path substitution lists for net shares (opning files from PageFiles, show available space on adding
interface
uses
Windows, Messages, AvL, avlUtils, Aria2, Utils, OptionsList;
type
TOptionsPage = class(TSimplePanel)
protected
function GetName: string; virtual; abstrac... |
unit uFrmVehicleInfo;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uFrmGrid, cxGraphics, cxControls, cxLookAndFeels,
cxLookAndFeelPainters, cxStyles, dxSkinsCore, dxSkinsDefaultPainters,
dxSkinscxPCPainter, cxCustomData, cxFilter, cxData, cxDataStorage, cx... |
unit uAutoUpdate;
interface
uses
IdHTTP,superobject,IniFiles;
type
//文件类型
TRsFileType = (ftCommFile{普通文件},ftMainFile{主程序},ftRegFile{注册文件},ftDBFile{数据库文件});
//升级信息
RRsUpdateInfo = record
//是否需要升级
bNeedUpdate: boolean;
//可升级版本号
strProjectVersion: string;
//摘要,升级信息
strUpdateBrief: stri... |
{
Ultibo Font Builder Tool.
Copyright (C) 2016 - SoftOz Pty Ltd.
Arch
====
<All>
Boards
======
<All>
Licence
=======
LGPLv2.1 with static linking exception (See COPYING.modifiedLGPL.txt)
Credits
=======
Information for this unit was obtained from:
References
==========
PC Screen Fonts (PSF) - https:/... |
unit uFrmCajaChica;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Menus, Vcl.ExtCtrls, Vcl.StdCtrls,
Vcl.Buttons, Vcl.ComCtrls, siComp, siLngLnk;
type
TFrmCajaChica = class(TForm)
MenuCajaChica: TM... |
unit Unit3;
interface
uses
SysUtils, StdCtrls, Dialogs;
Type
Tsel=^Sel;
Sel=record
x: char;
a: tsel;
end;
Tviz=class(TObject)
sp1,sp: Tsel;
constructor Create;
Procedure Add(x:char);
Procedure Read(var x:char);
Procedure Print(box: TListBox);
destructor Free;
end;
implementation
Co... |
unit DevMax.View.Control;
interface
uses
FMX.Controls, FMX.Types,
DevMax.View.Types;
type
TViewPageControlItem = class;
/// 여러개의 ViewPageControlItem 보유
TViewPageControl = class(TControl)
private
FActivePage: TViewPageControlItem;
protected
procedure Resize; override;
public
procedure Cha... |
unit MYX.Camera;
interface //#################################################################### ■
uses Winapi.OpenGL, Winapi.OpenGLext,
LUX, LUX.D1, LUX.D2, LUX.D3, LUX.M4,
LUX.GPU.OpenGL,
LUX.GPU.OpenGL.Viewer,
LUX.GPU.OpenGL.Buffer,
LUX.GPU.OpenGL.Buffer.Unifor,
LUX.GPU.OpenGL.Buffe... |
unit CommonFunctions;
interface
uses
SysUtils, IniFiles, Main, Warning, Classes, Forms;
procedure LoadFromFile(FileName: string); // Loads profile data from file
procedure SaveToFile(FileName: string); // Saves profile data to file
function ByteArrToStr(data_in: array of byte; start: integer; ... |
{*******************************************************************************
作者: dmzn@163.com 2008-08-07
描述: 系统数据库常量定义
备注:
*.自动创建SQL语句,支持变量:$Inc,自增;$Float,浮点;$Integer=sFlag_Integer;
$Decimal=sFlag_Decimal;$Image,二进制流
*******************************************************************************... |
{ Unit that stores buffers without any kind of escapement.
Really, they're just strings prefixed with a length indicator and wrapped with
braces to keep their teeth straight. There's also an option to calculate,
embed and verify checksums.
Options are wrapped in square brackets and semicolon-separated:
... |
unit VisibleDSA.AlgoVisualizer;
{$mode objfpc}{$H+}
interface
uses
Classes,
SysUtils,
Graphics,
Forms,
LCLType,
BGRACanvas2D,
VisibleDSA.AlgoVisHelper,
VisibleDSA.MineSweeperData,
DeepStar.Utils.UString;
type
TAlgoVisualizer = class(TObject)
const
D: TArr2D_int = ((-1, 0), (0, 1), (1, 0),... |
{*******************************************************}
{ }
{ get delphi compiler information }
{ }
{ Copyright (C) 2011 BDLM }
{ ... |
program testarray19(output);
{array as byval parameter to procedure, not as the first parameter}
type myarr = array [1..5] of integer;
var a: myarr; i:integer;
procedure initarr(var z:myarr);
var i:integer;
begin
i := 1;
while i <= 5 do begin
z[i] := i * i;
i := i + 1;
end;
end;
procedure printmultarray(a,b... |
unit shdocvw;
{ Conversion log:
Property TWebBrowser.Type renamed to Type_: Identifier is a reserved word }
interface
uses Ole2, OleCtl, Classes, Graphics, OleCtrls;
const
{ BrowserNavConstants }
navOpenInNewWindow = 1;
navNoHistory = 2;
navNoReadFromCache = 4;
navNoWriteToCache = 8;
... |
unit Pkg.Json.Utils;
interface
uses
System.Classes,
{$IFDEF MSWINDOWS}
Winapi.ShellAPI, Winapi.Windows,
{$ENDIF MSWINDOWS}
{$IFDEF POSIX}
Posix.Stdlib,
{$ENDIF POSIX}
System.Json.Writers, System.Json.Readers, System.SysUtils;
type
TJsonStringWriter = class(TJsonTextWriter)
private
FStrinBuilder: TStr... |
unit UDM;
interface
uses
UConstantes,
app.Funcoes,
dao.Versao,
dao.Usuario,
dao.Configuracao,
System.Threading,
System.IOUtils,
System.Json,
System.UITypes,
FMX.DialogService,
Web.HttpApp,
FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDA... |
unit Coord;
interface
uses Registrator, BaseObjects;
type
// источник координат скважины
TSourceCoord = class (TRegisteredIDObject)
public
constructor Create (ACollection: TIDObjects); override;
end;
TSourceCoords = class (TRegisteredIDObjects)
private
function GetItems(Index: Integer): TSourc... |
unit VisibleDSA.AlgoVisualizer;
interface
uses
System.SysUtils,
System.Types,
System.Math,
FMX.Graphics,
FMX.Forms,
VisibleDSA.AlgoVisHelper,
VisibleDSA.QuickSortData;
type
TAlgoVisualizer = class(TObject)
private
_width: integer;
_height: integer;
_data: TQuickSortData;
_form: TFo... |
{*******************************************************************************
Title: T2Ti ERP Fenix
Description: Service relacionado à tabela [FORNECEDOR]
The MIT License ... |
{*******************************************************}
{ }
{ Copyright (c) 2001-2022 by Alex A. Lagodny }
{ }
{*******************************************************}
unit uDCObjects;
interface
... |
unit FHIR.Server.Factory;
interface
uses
FHIR.Support.Base,
FHIR.Base.Factory,
FHIR.Server.Indexing, FHIR.Server.Subscriptions;
{
the main purpose of the server factory is to manage version dependencies
}
type
TFHIRServerFactory = class abstract (TFHIRBaseServerFactory)
public
function link : TFHIRServ... |
unit uAppointments;
interface
uses
Aurelius.Engine.ObjectManager, Entities.Scheduling,
Aurelius.Criteria.Base;
type
IAppointmentModel = interface
['{FBE0CBC8-6D57-4A1E-8A34-EBDC61F8A2C8}']
function GetManager: TObjectManager;
procedure SaveNewAppointment(Appointment: TAppointment);
property Manag... |
unit
ColorDef;
interface
// 颜色编号定义 TIMELINE_COLOR_ID
const
TCI_WINDOWBKGND = 0; // 背景
TCI_BACKGROUND = 1; // 背景
TCI_TRACK_BACKGROUND = 2; // 轨道背景
TCI_TRACK_DASHED = 3; // 轨道虚线
TCI_CLIP_BKGND_NORMAL = 4; // Clip背景正常状态
TCI_CLIP_BKGND_SELECTED = 5; // Clip背景选中状态
TCI_CLIP_FOCUS_RECT = 6; //... |
unit uAdm;
interface
type
TAdm = class
private
FID: integer;
FNome: string;
FLogin: string;
FPassw: string;
function GetID: integer;
procedure SetID(value: integer);
function GetNome: string;
procedure SetNome(value: String);
function GetLogin: string;
procedure SetLogin... |
unit CVN_Protocol;
interface
uses SysUtils;
type
{用于数据包头的Command字段}
TP2Ptype=(
ALL_DATA, //发送数据
UDP_S2S,
UDP_S2SResp,
UDP_C2S,
UDP_C2SResp,
UDP_C2C,
UDP_C2CResp,
UDP_GETPORT,
UDP_P2PResp,
TCP_C2S,
TCP_C2SResp,
... |
unit entities;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Graphics, fgl;
type
TCommunityType = (ctGroup, ctPage, ctEvent);
{ TChatBotCommand }
TChatBotCommand = class
private
FCommand: string;
FResponse: string;
procedure SetCommand(AValue: string);
procedure SetResponse(AVal... |
Unit cwcpu;
Interface
Uses
util, cwtypes, cwdbg, cwerror, cwmem;
Type
mnemonic_t = Record
Name: String [6];
opcode: Byte;
End;
Const
cwcpu_dbg: Boolean = True;
opc_push = $01;
opc_pop = $02;
opc_move = $03;
opc_add = $04;
opc_sub = $05;... |
unit aOPCPanel;
interface
uses
SysUtils, Classes, Controls, ExtCtrls;
type
TaOPCPanel = class(TPanel)
private
OriginalLeft,OriginalTop,OriginalWidth,OriginalHeight: integer;
protected
Scale : extended;
procedure Loaded; override;
procedure ChangeScale(M, D: Integer); override;
public
pro... |
unit MainFrm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, Buttons, FileCtrl;
type
TForm1 = class(TForm)
IISTeraPathEdit: TLabeledEdit;
SaveBtn: TBitBtn;
SpeedButton1: TSpeedButton;
Label1: TLabel;
WebURLEdit: TLabele... |
{
***************************************************
PSPdisp (c) 2008 - 2015 Jochen Schleu
config.pas - config and preset file handling
This software is licensed under the BSD license.
See license.txt for details.
***************************************************
}
unit config;
interface
uses Window... |
{$HIDE CW3}
{$HIDE PW12}
namespace Moshine.Web.Helpers;
interface
uses
System;
type
Column = public class
private
_title:String;
_link:String;
method get_HasLink:Boolean;
public
method Title(Value:String):Column;
method Link(Value:String):Column;
pro... |
unit TextEditor.Minimap;
interface
uses
System.Classes, System.UITypes, Vcl.Graphics, TextEditor.Minimap.Colors, TextEditor.Minimap.Indicator,
TextEditor.Minimap.Shadow, TextEditor.Types;
type
TTextEditorMinimap = class(TPersistent)
strict private
FAlign: TTextEditorMinimapAlign;
FCharHeight: Intege... |
unit UClienteRepositoryIntf;
interface
type
IClienteRepository = Interface(IInterface)
['{78D99BB0-A73F-48E7-834E-08D7A51270D9}']
function adquirirCodigoCliente(const ADocumentoCliente: String): Integer;
procedure adicionarCliente(const ADocumentoCliente: String);
End;
implementation
... |
// NAME: TUMAKOV KIRILL ALEKSANDROVICH, 203
// ASGN: N2
unit Filters;
interface
uses Graphics, Gauges;
var Gauge: TGauge;
procedure AddNoise(var Bmp:TBitmap; const NoiseAmpl, NoiseProbability: Integer);
procedure Blur3x3(var Bmp:TBitmap);
procedure Sharpen3x3(var Bmp:TBitmap);
procedure FindEdges(var Bmp... |
unit VisibleDSA.AlgoVisualizer;
interface
uses
System.Classes,
System.SysUtils,
System.Types,
System.Math,
FMX.Graphics,
FMX.Forms,
VisibleDSA.AlgoVisHelper,
VisibleDSA.CircleData;
type
TAlgoVisualizer = class(TObject)
private
_data: TCircleData;
procedure __setData;
procedure __des... |
unit DBPrint;
interface
Uses Classes,Printers,Graphics,DBTables,WinTypes,DB,SysUtils,dbgrids;
Type TDBPrinter=class(TObject)
protected
Grid:TDBGrid;
public
OffsetLeft,
OffsetRight,
OffsetTop,
OffsetBottom:integer;
TitleFont :TFont;
functio... |
program ReverseList;
uses
SysUtils;
type
List = ^Node;
Node = record
Value: Integer;
Next: List;
end;
procedure RecursiveReverseIteration(Prev: List; var OriginalHead, Current: List);
begin
if Current = nil then
begin
OriginalHead := Prev;
end
else
begin
RecursiveReverseIteration(... |
program paper_shop;
type paper = record
size, colour: string;
price: real;
count: integer;
end;
var i, count: integer;
total, total_vat, vat, summary: real;
papers: array[1 .. 20] of paper;
begin
write('How many paper''s do you have? ');
readln(count);
writeln('Now enter their info:'... |
(*-----------------------------------------------------------
Демонстрация работы модуля LZW2
(сжимает/расжимает файлы)
-------------------------------------------------------------*)
{$I-,R-,S-,O-,F-,B-}
uses bitfile2,{lzss}
{to_bits}
{lzss1}
{arifm}
lzw2
... |
unit uExportacaoCSV;
interface
uses
FireDAC.Comp.Client, Classes;
type
TExportacaoCSV = class
private
FQuery: TFDQuery;
FCamposExportacao: string;
FListaCampos: TStringList;
FResultado: TStringList;
function GetQuery: TFDQuery;
procedure SetQuery(const Value: TFDQuery);
... |
unit uCinemaControl;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, ImgList, ComCtrls, ToolWin, aCustomOPCSource,
aOPCCinema, StdCtrls, ActnList,
uOPCInterval, System.Actions, System.ImageList;
type
TStepMode = (smNextMoment, smStep);
TaOPCCi... |
unit ksCommon;
interface
function GetScreenScale: single;
implementation
uses FMX.Platform;
var
AScreenScale: single;
function GetScreenScale: single;
var
Service: IFMXScreenService;
begin
if AScreenScale > 0 then
begin
Result := AScreenScale;
Exit;
end
else
begin
Service := IFMXScreen... |
unit DSE_List;
interface
uses
SysUtils, Classes, vcl.Graphics, windows, DSE_misc;
type
SE_List = class
private
fCapacity: integer;
fCount: integer;
protected
fItemSize: integer;
procedure SetCount(NewCount: integer); virtual;
function AddItem(value: pointer): integer;
procedure Insert... |
unit Action.DataSet;
interface
uses
System.Classes,
Data.DB,
Vcl.ActnList;
type
TDataSetFirstAction = class(TAction)
private
FDataSource: TDataSource;
procedure SetDataSource(DataSource: TDataSource);
protected
procedure Notification(AComponent: TComponent;
Operation: TOperation); overr... |
{
Version 1.1
Copyright 2020, Marcus Fernstrom
License MIT License
GitHub https://github.com/MFernstrom/OWASP-ASVA-v4-password-microservice
About Implements 2.1.1 and 2.1.7 of the OWASP ASVA v.4 guide
}
program ASVAv4PasswordMicroservice;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}cthreads... |
unit Server.Models.Cadastros.Clientes;
interface
uses
System.Classes,
DB,
System.SysUtils,
Generics.Collections,
/// orm
dbcbr.mapping.attributes,
dbcbr.types.mapping,
ormbr.types.lazy,
ormbr.types.nullable,
dbcbr.mapping.register,
Server.Models.Base.TabelaBase,
Server.Models.Ativo.DadosLigaca... |
unit InfraCriteria;
interface
uses
InfraBase, InfraHibernateIntf, InfraValueTypeIntf, InfraCommonIntf;
type
TLogicalConnector = (lcOr, lcAnd);
TRestrictions = class
protected
class function DecorateCriterion(const Criterion: ICriterion): ICriterion; virtual;
public
class function Equ... |
unit UToolsStrings;
interface
Uses Classes, StrUtils, SysUtils, DateUtils, RegExpr, DB, IdMessage, IdBaseComponent, IdComponent,
IdTCPConnection, IdTCPClient, IdExplicitTLSClientServerBase, IdMessageClient,
IdSMTPBase, IdSMTP,IdAttachment,IdAttachmentFile, Forms;
Function NotNullNotEmpty(Value : String) : Bool... |
{$MODE OBJFPC} { -*- delphi -*- }
{$INCLUDE settings.inc}
unit exceptions;
interface
uses
sysutils, baseunix;
type
EKernelError = class(Exception)
constructor Create(AErrorCode: cint);
end;
ESocketError = class(Exception)
constructor Create(AErrorCode: cint);
end;
ESyntaxError = class(E... |
unit ActiveDirectory.Client.Intf;
interface
uses
ActiveDirectory.Types;
type
IActiveDirectoryClient = interface
['{9F8FCA96-35A7-4B36-8406-0CAD9CF6ADED}']
function GetCurrentUserName: string;
function GetCurrentDomainName(inUserName: string): string;
function GetCurrentLDAPDomainName(... |
unit uTanqueModel;
interface
uses
System.SysUtils, uAtributos;
type
[TTabela('TANQUE')]
TTanque = class
private
FID: Integer;
FNome: String;
FCombustivel: integer;
procedure SetNome(const Value: string);
public
[TCampo('ID', 0, true)]
//[TChavePrimaria('ID')]
property Id: integ... |
unit FileServiceClientEx;
//makes use of FileServiceClient to transfer files from remote servers
interface
uses
typex, numbers, memoryfilestream, FileServiceClient, dir, dirfile, sysutils, classes, systemx, commandprocessor, helpers.stream;
const
DEFAULT_HOST = '192.168.101.12';
// DEFAULT_HOST = 'localhost';
... |
unit UDBFunctions;
interface
uses Classes, DB, Controls, SqlExpr;
type
TDBFunctions = class(TPersistent)
published
class procedure AddParam(Params: TParams; const Name: string; DataType: TFieldType);
class procedure ClearParams(Params: TParams);
class function FormatDateToDatabase(const Date: TDate):... |
unit Common;
interface
uses
Graphics, MsgList, IniFiles;
const
EASY_WIDTH = 15;
EASY_HEIGHT = 15;
EASY_COUNT = 20;
MEDIUM_WIDTH = 30;
MEDIUM_HEIGHT = 30;
MEDIUM_COUNT = 75;
HARD_WIDTH = 40;
HARD_HEIGHT = 40;
HARD_COUNT = 100;
CLR_NONE = clBlack;
CLR_HOVER = clDkGray;
CLR_LINE = $00252525;
... |
(*
* Copyright (c) 2008-2009, Ciobanu Alexandru
* 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 l... |
unit ucRegXml;
interface
uses
Classes, SysUtils;
type
TcRegXml = class
private
FMatch : TStrings;
FTagI, FTagF : String;
FExpression: String;
procedure SetExpression(const Value: String);
function GetMatch(Idx: Integer): String;
public
constructor create;
destructor destroy; overr... |
unit uMunicipioModel;
interface
uses
System.SysUtils, FireDAC.Comp.Client, Data.DB, FireDAC.DApt, FireDAC.Comp.UI,
FireDAC.Comp.DataSet, uClassConexaoSingleton, uMunicipioDto, uEstadoModel;
type
TMunicipioModel = class
public
function BuscarID: Integer;
function Alterar(const AMunicipioDTO: TMunicip... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.