text stringlengths 14 6.51M |
|---|
unit LogNTest;
{$mode objfpc}{$H+}
interface
uses
fpcunit,
testregistry,
Math,
uIntX;
type
{ TTestLogN }
TTestLogN = class(TTestCase)
published
procedure LogNBase10();
procedure LogNBase2();
end;
implementation
procedure TTestLogN.LogNBase10();
var
based, numberd, ans: Double;
num... |
unit uScanThread;
interface
uses
Windows, Dialogs, Forms, Controls, StdCtrls, Classes, ExtCtrls,SysUtils,Graphics,bass;
type TSpectrumColor = record
ColorLoopStart,ColorLoopEnd,ColorPosition : TColor;
ColorBack,ColorBorder,ColorPeak : TColor;
ColorText : TColor;
end;
type TScanThread = cla... |
unit LrIterator;
interface
uses
Classes, Controls;
type
TLrIterator = class
private
FIndex: Integer;
public
function Eof: Boolean; virtual; abstract;
function Next: Boolean; overload; virtual;
procedure Reset;
public
property Index: Integer read FIndex write FIndex;
end;
implement... |
unit uFrmBasePtypeInput;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uFrmBaseInput, Menus, cxLookAndFeelPainters, ActnList, cxLabel,
cxControls, cxContainer, cxEdit, cxCheckBox, StdCtrls, cxButtons,
ExtCtrls, Mask, cxTextEdit, cxMaskEdit, cxButtonEdit, cx... |
unit UBonusOrderEditExtInfo;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uFControl, uLabeledFControl, uSpravControl, StdCtrls, Buttons,
GlobalSPR, qFTools, uCommonSP, uCharControl, uFloatControl, DB,
FIBDataSet, pFIBDataSet, cxLookAndFeelPainters,... |
{Dados dos archivos de números enteros positivos A1 (primos) y A2 (no primos).
Leer los números primos de A1 y almacenar en un arreglo VPrimo.
Leer los números de A2 (sin almacenar en un arreglo), determinar e informar para cada uno de ellos cuántos
divisores primos tiene en VPrimos. Recorrer una sola vez el archivo A2... |
unit main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, process, FileUtil, Forms, Controls, Graphics, Dialogs,
StdCtrls, ExtCtrls, AsyncProcess;
type
{ TForm1 }
TForm1 = class(TForm)
AsyncProcess1: TAsyncProcess;
btnMonitorStart: TButton;
btnMonitorStop: TButton;
... |
unit PromoHandleConflict;
interface
uses contnrs, classes, SysUtils, Dialogs, uSystemConst;
Const
NO_TAG_SELECTED = 0;
type
TPromoHandleConflict = class
private
//
FIdTag: Integer;
FEndOnDate: TDateTime;
FIdCurrentPromo: Integer;
// current promo object
... |
unit Data;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
type
// Тип структуры для представления сведений о пользователе
TEmployeeRec = record
Owner: string[64]; // Сотрудник
Division: string[24]; // Подразделение
Post: string[32]; // Должность
BirthDay: TDateTime; // Д... |
unit AlbumsController;
interface
uses
MediaFile, Generics.Collections,
Aurelius.Engine.ObjectManager;
type
TAlbumsController = class
private
FManager: TObjectManager;
public
constructor Create;
destructor Destroy; override;
procedure DeleteAlbum(Album: TAlbum);
function GetAllAlbums: T... |
unit Backend.Resource;
interface
uses
System.JSON,
System.SysUtils,
System.Classes,
Data.User.Preferences,
Data.Articles,
Data.API.Google,
Core.Articles.Gen,
Backend.iPool.Connector,
Backend.Google.Connector,
MARS.Core.Registry,
MARS.Core.Attributes,
MARS.Core.MediaType,
MARS.Core.JSON,
... |
unit ufrmAdjustmentCashback;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ufrmMaster, StdCtrls, ExtCtrls, ufraFooter5Button, ActnList, cxControls,
cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, Vcl.ComCtrls,
dxCore, cxDateUtils, System.Actions... |
unit SConsts;
interface
const
AppKey = 'f1039cf84261ac615fa8221e7938a42d'; // Идентификатор приложения
// Параметры авторизации
DisplayApp = 'page'; // Внешний вид формы мобильных приложений. Допустимые значения:
// "page" — Страница
// "popup" — Всплывающе... |
unit LiteScrollbar;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, uColorTheme, LiteButton;
const SB_BAR_DEFAULT_WIDTH = 19;
type MoveResponse = procedure(Shift: TShiftState; X, Y: Integer) of object;
{
Lite Scrollbar
}
type TLiteScrollbar = class(T... |
unit request_pipeline;
interface
uses kernel, period, get;
type
TRequestPipeline = class(TGet)
protected
period: TPeriod;
ItemNames: names;
wItemsMin, wItemsCount: word;
wStepMin, wStepCount: word;
constructor Create(period: TPeriod; ItemNames: names; wItemsMin, wItemsCount: word);
proce... |
(****************************************************************************
*
* WinLIRC plug-in for jetAudio
*
* Copyright (c) 2016-2021 Tim De Baets
*
****************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "Li... |
//
// Generated by JavaToPas v1.4 20140526 - 133130
////////////////////////////////////////////////////////////////////////////////
unit org.apache.http.conn.params.ConnPerRouteBean;
interface
uses
AndroidAPI.JNIBridge,
Androidapi.JNI.JavaTypes,
org.apache.http.conn.routing.HttpRoute;
type
JConnPerRouteBean... |
unit FindUnit.AutoImport;
interface
uses
IniFiles, SysUtils, Log4Pascal, Classes;
type
TAutoImport = class(TObject)
private
FIniFilePath: string;
FSearchMemory: TIniFile;
procedure LoadIniFile;
procedure SaveIniFile;
function LoadClassesToImport: TStringList;
public
constructor Create... |
Program Example14;
uses Crt;
{ Program to demonstrate the LowVideo, HighVideo, NormVideo functions. }
begin
textColor(red);
LowVideo;
WriteLn('This is written with LowVideo');
HighVideo;
WriteLn('This is written with HighVideo');
NormVideo;
WriteLn('This is written with NormVideo');
end.
|
unit TimeTrackerLog.TextFile;
interface
uses
TimeTrackerLogInterface,
FileLoggerInterface,
Classes,
SysUtils;
type
TTimeTrackerLog = class(TInterfacedObject,ITimeTrackerLog, IFileLogger)
private
FLogDate :TDateTime;
FDailyLog :TStringList;
FDailyLogFileName :TFileName;
function GetLogFile... |
unit BooksView;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
IslUtils, Htmlview, ExtCtrls, ComCtrls, AmlView;
type
TInstalledBooksForm = class(TForm)
BooksTree: TTreeView;
Splitter1: TSplitter;
InfoViewer: THTMLViewer;
procedure BooksTreeClick(Sender:... |
unit uFormListView;
interface
uses
System.Classes,
Winapi.Windows,
Vcl.Graphics,
Vcl.Controls,
EasyListview,
uThreadForm,
uDBDrawing,
uListViewUtils,
uFormInterfaces;
type
TListViewForm = class(TThreadForm, IImageSource)
protected
function GetListView: TEasyListview; v... |
unit AVL;
interface
{$IFDEF FPC}
{$MODE DELPHIUNICODE}
{$ENDIF}
uses SysUtils, Classes, Math;
type
TAVLTree<TKey, TData> = class(TObject)
public
type
PAVLNode = ^TAVLNode;
TAVLNode = record
private
FChilds: array[Boolean] of PAVLNode; {Child nodes}
FBalance: Integ... |
unit LrParser;
interface
uses
SysUtils, Classes, Contnrs;
const
idNoToken = -1;
type
TLrStateMethod = procedure of object;
//
TLrStateParser = class
protected
FD, FP, FE, FS: PChar;
FL: Integer;
FState: TLrStateMethod;
FChar: Char;
function TokenLength: Integer;
public
constr... |
// Copyright (c) 2009, ConTEXT Project Ltd
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
//
// Redistributions of source code must retain the above copyright notice, this list of condition... |
(* MEMOUTIL.PAS - Copyright (c) 1995-1996, Eminent Domain Software *)
unit MemoUtil;
{-Memo simple memo functions}
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons, Menus, ExtCtrls;
function Memo_CursorPos (AMemo: TMemo): TPoint;
{-returns t... |
unit PhpPage;
interface
uses
SysUtils, Classes, Controls,
ThHtmlPage, TpControls;
type
TTpDebugFlag = ( dfDumpObjects, dfDumpRequest, dfDumpBlocks, dfDumpNodes );
TTpDebugFlags = set of TTpDebugFlag;
//
TPhpPage = class(TThHtmlPage)
private
FDebug: Boolean;
FDebugFlags: TTpDebugFlags;
FJ... |
unit UAuxRefOp;
interface
function getDayOfTheYear( fromDate: TDateTime ): word;
function getReferenciaOperacion( fromFecha: TDateTime; numReferencia: Integer ): String;
function testReferenciaOperacion(const Referencia: String): Boolean;
implementation
uses
SysUtils,
rxStrUtils;
function getDayO... |
{***************************************************************************}
{ }
{ DUnitX }
{ }
{ ... |
{$I texel.inc}
unit txfloat;
interface
{$IFNDEF FPC}
type
Longword = longint;
{$ENDIF}
type
{ type used for internal calculations }
PNumber = ^TNumber;
{$IFDEF FPC}
TNumber = double;
{$ELSE}
TNumber = real;
{$ENDIF}
{ type stored in files }
PExternalNumber = ^TExternalNumber;
TExternalNumber = record
s... |
unit dmForma17;
interface
uses
SysUtils, Classes, DB, FIBDataSet, pFIBDataSet, FIBDatabase, pFIBDatabase,
frxClass, frxDBSet, frxDesgn, IBase, Forms, Variants,
Controls, FIBQuery, pFIBQuery, pFIBStoredProc, Dialogs, Math,
Asup_LoaderPrintDocs_Types, Asup_LoaderPrintDocs_Proc,
Asup_LoaderPrintDocs_WaitForm, ... |
unit Catalog;
interface
uses SysUtils, Classes, Graphics, ExtCtrls, Browser;
const Version:Integer=Integer($F1953274);
type
//Базовий клас для елементів каталогу
TwcCollectionItem=class(TCollectionItem)
private
FName:String;
function GetParentElem:TwcCollectionItem;
protected
function GetDisplayName:String;ov... |
unit uExifInfo;
interface
uses
Generics.Collections,
System.SysUtils,
System.Classes,
Winapi.Windows,
Vcl.ValEdit,
CCR.Exif,
CCR.Exif.BaseUtils,
CCR.Exif.XMPUtils,
Dmitry.Utils.System,
UnitDBDeclare,
UnitLinksSupport,
uConstants,
uMemory,
uStringUtils,
uRawExif... |
unit FmTstGIF;
{ Exports TTestGifForm, which is the main form of the small test
program "TestGif" which demonstrates the TGifFile object of
the unit GifUnit.
By Reinier Sterkenburg, Delft, The Netherlands
10 Mar 97: - created
3 Apr 97: - added Image Info option (using FmImInfo and FmSubImg)
2 Aug 97: - adapted to ch... |
PROGRAM WorkWithQueryString(INPUT, OUTPUT);
USES
DOS;
VAR
ReceivedQueryString: STRING;
FUNCTION GetQueryStringParameter(Key: STRING): STRING;
VAR
LengthParametr, LengthQueryString, FindParametr, FindEndOfDirtyParametr: INTEGER;
DirtyParametr: STRING;
BEGIN
ReceivedQueryString := GetEnv('QUERY_STRI... |
unit BCEditor.Editor.LeftMargin.Colors;
interface
uses
System.Classes, Vcl.Graphics, BCEditor.Consts;
type
TBCEditorLeftMarginColors = class(TPersistent)
strict private
FActiveLineBackground: TColor;
FBackground: TColor;
FBookmarkPanelBackground: TColor;
FBorder: TColor;
FLine... |
// Diese Unit wird automatisch durch das Tool "./Tool/Embedded_List_to_const" erzeugt.
// Die Arrays werden aus "./fpc.src/fpc/compiler/avr/cpuinfo.pas" und
// "./fpc.src/fpc/compiler/arm/cpuinfo.pas" importiert.
unit Embedded_GUI_Embedded_List_Const;
interface
const
i8086_SubArch_List =
'8086,80186,80286,80... |
unit uModbusProtocol;
interface
uses
Windows, System.SysUtils, uProtocol, uCommonDevice, uModbus, uTurnDef,
Web.Win.Sockets;
type
TCommonModbusDeviceEmul = class(TCommonModbusDevice)
private
FTCP: TTcpServer;
public
function ReadData(var data: AnsiString): TModbusError;
function WriteData(var d... |
unit uImageViewerThread;
interface
uses
Winapi.Windows,
Winapi.ActiveX,
System.SysUtils,
Vcl.Graphics,
Vcl.Imaging.PngImage,
GraphicCrypt,
uTime,
uMemory,
uConstants,
uThreadForm,
uLogger,
uIImageViewer,
uDBThread,
uDBEntities,
uDBManager,
uImageLoader,
uPort... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLSmoothNavigator<p>
An extention of TGLNavigator, which allows to move objects with inertia
Note: it is not completely FPS-independant. Only Moving code is, but
MoveAroundTarget, Turn[Vertical/Horizontal] and AdjustDistanceTo[..] is n... |
//
// Generated by JavaToPas v1.4 20140515 - 183315
////////////////////////////////////////////////////////////////////////////////
unit org.apache.http.impl.conn.SingleClientConnManager;
interface
uses
AndroidAPI.JNIBridge,
Androidapi.JNI.JavaTypes,
org.apache.http.conn.scheme.SchemeRegistry,
org.apache.htt... |
unit tools;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Figures, Graphics, GraphMath, LCLType,
LCLIntf, LCL, Scale, ExtCtrls, StdCtrls, Spin, Dialogs, Buttons;
type
TParam = class
procedure CreateObjects(Panel: TPanel; pos: Integer); virtual; abstract;
end;
TPenColorParam = class(Tparam)
procedur... |
unit trtm_master_lng;
interface
const
TXT_STEP = 'Шаг ';
LABEL_GENERAL_SCREEN = 'Общая информация о проекте';
LABEL_GENERAL_AUTHOR = 'ФИО, кафедра';
LABEL_GENERAL_PROJECT = 'Название проекта';
HELP_GENERAL = 'Например, первое поле: ' +
... |
//
// Pascal-Performance
// Version 1.0
// By: Vernieri
// 19 Octouber 2017
// GitHub: github.com/vernieri
// Last Update: 16 August 2018
//
program pascal_performance;
uses DateUtils, CRT, sysutils;
var vector: array[0..99999] of longint;
FromTime, ToTime: TDateTime;
DiffSeconds: real;
//x: longint;
Proce... |
unit LifeUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, LifeEngine;
const
BoardSize: TSize = (cx: 500; cy: 500);
type
TLifeForm = class(TForm)
PaintBox1: TPaintBox;
Button1: TButton;
CheckBox1: TCheckBox... |
unit Dabout;
{$MODE Delphi}
{-------------------------------------------------------------------}
{ Unit: Dabout.pas }
{ Project: EPANET2W }
{ Version: 2.0 }
{ ... |
unit Win32.DXVA2API;
// Checked and Updated to SDK 10.0.17763.0
// (c) Translation to Pascal by Norbert Sonnleitner
{$IFDEF FPC}
{$mode delphi}
{$ENDIF}
interface
uses
Windows, Classes, SysUtils, ActiveX, Direct3D9;
const
DXVA2_DLL = 'Dxva2.dll';
const
DXVA2_ModeMPEG2_MoComp: TGUID = '{e6a9f44b-61b0-... |
unit MagentoInvoker;
interface
uses
Magento.Interfaces, System.Classes;
type
TMagentoInvoker = class (TInterfacedObject, iInvoker)
private
// FList : TList<iCommand>;
public
constructor Create;
destructor Destroy; override;
class function New : iInvoker;
func... |
//
// Generated by JavaToPas v1.5 20171018 - 170637
////////////////////////////////////////////////////////////////////////////////
unit android.graphics.Paint_Align;
interface
uses
AndroidAPI.JNIBridge,
Androidapi.JNI.JavaTypes;
type
JPaint_Align = interface;
JPaint_AlignClass = interface(JObjectClass)
... |
unit EST0001L.View;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, LocalizarBase.View, cxGraphics, cxLookAndFeels,
cxLookAndFeelPainters, Vcl.Menus, dxSkinsCore, dxSkinDevExpressDarkStyle, dxSkinDevExpressStyl... |
{-------------------------------------------------------------------------------
Copyright 2012 Ethea S.r.l.
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.apa... |
unit ProdutoOperacaoDuplicar.Controller;
interface
uses Produto.Controller.interf, Produto.Model.interf,
TESTPRODUTO.Entidade.Model, System.SysUtils;
type
TProdutosOperacoesDuplicarController = class(TInterfacedObject,
IProdutoOperacaoDuplicarController)
private
FProdutoModel: IProdutoModel;
FRegis... |
unit FormQuery;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls,iOPCTypes,ScktComp,Ini,LogsUnit,superobject,
StrUtils,Common,iOPCFunctions,ComObj;
type
TStringMap = class(TPersistent)
private
function GetItems(Key: string... |
(*
-----------------------------------------------------------------------------------------------------
Version : (288 - 276)
Date : 12.09.2010
Author : Antonio Marcos Fernandes de Souza (amfsouza)
Issue : component loosing numeric format.
Solution: I linked correct property to component.
Version : (288 - 277)
-... |
(*
* Copyright (c) 2004
* HouSisong@gmail.com
*
* This material is provided "as is", with absolutely no warranty expressed
* or implied. Any use is at your own risk.
*
* Permission to use or copy this software for any purpose is hereby granted
* without fee, provided the above notices are retained on all copies... |
unit StreamUtils;
{$WEAKPACKAGEUNIT ON}
{
Stream helpers. Cached readers/writers.
Some comments are in Russian, deal with it *puts on glasses*.
(c) himselfv, me@boku.ru.
}
interface
uses SysUtils, Classes{$IFDEF DCC}, Windows{$ENDIF};
type
EStreamException = class(Exception);
const
sCannotReadData... |
unit vwuFoodsAllComposition;
interface
uses
System.SysUtils, System.Classes, Variants, vwuCommon, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS,
FireDAC.Phys.Intf, FireDAC.DApt.Intf, FireDAC.Stan.Async, FireDAC.DApt,
Data.DB, FireDAC.Comp.DataSet, FireDAC.Comp.Cl... |
unit uFrmPrintShippingOption;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, PaideTodosGeral, siComp, siLangRT, StdCtrls, Buttons, ExtCtrls;
type
TFrmPrintShippingOption = class(TFrmParentAll)
btnPrint: TButton;
lbReport: TLabel;
cbxReport: TCombo... |
unit Main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, GLScene,
GLObjects, GLVectorFileObjects, GLMaterial, GLCadencer, GLSArchiveManager,
GLLCLViewer, BaseClasses, VectorGeometry,
GLFileMS3D, TGA, GLFileZLIB;
type
{ TForm1 }
TForm1 = class(TForm... |
// RemObjects CS to Pascal 0.1
namespace UT3Bots.UTItems;
interface
uses
System,
System.Collections.Generic,
System.Linq,
System.Text,
UT3Bots.Communications;
type
UTMap = public class
private
//Private Members
var _navList: List<UTNavPoint> := new List<UTNavPoint>();
var _item... |
program const2;
const max = 100;
min = max div 2;
var i, j: integer ;
function soma(a,b : integer):integer;
const inutil = max div min;
(* const inutil = max+i+a; *) (* o fpc não aceia isto, mas *)
(* seu compilador tem que aceitar! *)
begin
soma:=inutil;
end;
begin
i... |
unit RegExpressionsUtil;
interface
type
TRegularExpressionEngine = class
public
class function IsMatch(const Input, Pattern: string): boolean;
class function IsValidEmail(const EmailAddress: string): boolean;
end;
implementation
uses
RegularExpressions;
{ TRegularExpressionEngine }
... |
unit data_type;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, contnrs, file_data_type;
type
{ TCategory }
TCategory = Class(TObjectList)
private
FName: String;
FHtmlPath: String;
procedure SetName(AName: String);
function GetName: String;
procedure SetActionItem(Ind... |
unit frmReceiveBenchMark;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids, ValEdit;
type
TReceiveBenchMarkForm = class(TForm)
GFTypeEditor: TValueListEditor;
btnRefresh: TButton;
btnSave: TButton;
btnClose: TButton;
procedur... |
unit BitwiseAndOpTest;
interface
uses
DUnitX.TestFramework,
uIntXLibTypes,
uIntX,
uConstants;
type
[TestFixture]
TBitwiseAndOpTest = class(TObject)
public
[Test]
procedure ShouldBitwiseAndTwoIntX();
[Test]
procedure ShouldBitwiseAndPositiveAndNegativeIntX();
[Test]
procedure Sh... |
unit Model.Mapper;
interface
uses
System.Classes, System.Generics.Collections, ZDataSet;
type
IReader = interface(IInterface)
function ReadString(const Name: string; const DefaultValue: string): string;
function ReadInteger(const Name: string; const DefaultValue: Integer): Integer;
function ReadFloa... |
{this unit has a group of useful routines for use with OpenGL}
{ TsceneGL: a 3D scene,
has a group of entities and a group of lights.
Tlight: a light, has color, position and orientation.
by now only the color attributes have any effect.
T3dMouse: enables a normal mouse
to interact easily with one 3... |
unit shader_m;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, gl, GLext, matrix;
type
{ TShader }
TShader = class
public
ID: GLuint;
constructor Create(const vertexPath, fragmentPath: string);
procedure use();
procedure setBool(const name: string; value: Boolean);
p... |
unit uFrmCreateModel;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, cxStyles, cxCustomData, cxGraphics,
cxFilter, cxData, cxEdit, DB, cxDBData, cxGridLevel, cxClasses,
cxControls, cxGridCustomView, cxGridCustomTableView, cxGridT... |
unit ThCanvas;
interface
uses
DebugUtils,
System.Classes, System.SysUtils, System.Types, System.UITypes, System.UIConsts,
FMX.Types, FMX.Controls, FMX.Ani,
ThTypes, ThItem, ThZoomAnimation, ThAlertAnimation;
type
// {TODO} IThItemContainer를 상속받는게 맞을 지 검토 필요
// Viewer에서도 사용할까?
TThContents = class(TCont... |
unit Lib.HTTPHeaders;
interface
uses
System.SysUtils,
Lib.HTTPUtils;
type
THeaders = class
private type
TLocation = record
Pos: Integer;
Len: Integer;
end;
private
FData: string;
function GetLocation(const Name: string): TLocation;
procedure SetData(const Value: string);
p... |
unit UPessoa;
interface
uses UCidade;
type
TPessoa = class(TObject)
private
protected
FId:integer;
FTelefone:String;
FCelular:String;
FCidade:TCidade;
FBairro:String;
FNumero:integer;
FCep:String;
FStatus:String;
FLogradouro:String;
FFax:string;
... |
unit PNGIconMaker;
interface
uses SysUtils, Types, Windows, Graphics, PNGImage, common;
type
TPNGIconMaker = class
private
FN: Byte;
FIcon: TIcon;
FBGSTR,FNUMSTR: String;
public
constructor Create(const BGSTR,NUMSTR: String);
destructor Destroy; override;
... |
unit UCollections;
(*====================================================================
Collections - similar to Delphi Lists
======================================================================*)
interface
uses UTypes;
const
{$ifdef DELPHI1}
MaxQCollectionSize = 65520 div SizeOf(Pointer);
{$else... |
unit Xplat.Inifiles;
interface
uses
Xplat.Services, System.Classes, System.IniFiles;
type
TXplatIniFile = class(TInterfacedObject, IIniFileService)
private
FIniFile: TCustomIniFile;
FFreeIni: Boolean;
FUpdateAfterWrite: Boolean;
public
function ReadBool(const Section, Ident: str... |
// 307. 区域和检索 - 数组可修改
//
// 给定一个整数数组 nums,求出数组从索引 i 到 j (i ≤ j) 范围内元素的总和,包含 i, j 两点。
//
// update(i, val) 函数可以通过将下标为 i 的数值更新为 val,从而对数列进行修改。
//
// 示例:
//
// Given nums = [1, 3, 5]
//
// sumRange(0, 2) -> 9
// update(1, 2)
// sumRange(0, 2) -> 8
// 说明:
//
// 1.数组仅可以在 update 函数下进行修改。
// 2.你可以假设 update 函数与 ... |
unit uServiceUtils;
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.FileCtrl,
JPEG, Data.DB, IniFiles, Generics.Collections, {$IFNDEF EXTDLL}JvZlibMultiple,{$ENDIF}
FireDAC... |
unit uXMLClasses;
interface
uses SysUtils, Classes;
type
TXMLContent = class
private
FXML: String;
function GetTagValue(ATagName: String): String;
function GetAttributeValue(AAttributeName: String): String;
function GetAttributeValueByNodeIndex(ANodeName, AAttributeName: String; AIndex: Integer):... |
{..............................................................................}
{ }
{ Summary Demo how to create a new component on the PCB }
{ ... |
unit DesignTest;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TDesignHandle = class(TCustomControl)
protected
FHitRect: Integer;
FMouseIsDown: Boolean;
FMouseOffset: TPoint;
protected
function HandleRect(inIndex: Integer... |
unit InflatablesList_HTML_ElementFinder;
{$INCLUDE '.\InflatablesList_defs.inc'}
interface
uses
Classes,
AuxTypes,
InflatablesList_Types,
InflatablesList_HTML_TagAttributeArray,
InflatablesList_HTML_Document;
type
TILSearchOperator = (ilsoAND,ilsoOR,ilsoXOR);
TILFinderBaseClass = class(TObject)
pro... |
{ THREAD COMPONENT
Auteur : Bacterius
Ce composant permet d'introduire facilement un thread dans votre application.
Une notion interessante et utile qui est mise en application dans ce composant
est la "monodépendance". Je m'explique : ici, le composant encapsulant le thread
a ... |
unit futils;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
{ Returns application name }
function AppName: string;
{ Returns Paramstr(index) as a input po filename. If
a file with a name equal to paramstr(index) does not exist
the a .po extension is added and that is returned}
function ParamF... |
unit ItemPicturesForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Menus,
ItemPictureFrame,
InflatablesList_Item,
InflatablesList_Manager;
type
TfItemPicturesForm = class(TForm)
lbPictures: TListBox;
lblPictures: TLabel;
pmnPict... |
unit Moto360Device;
interface
implementation
uses
system.Devices, system.Types, system.SysUtils;
const
ViewName = 'Moto360'; // The name of the view.
{
Add this after MobileDevices in
%AppData%\Roaming\Embarcadero\BDS\15.0\MobileDevices.xml
<MobileDevice>
<Displayname>Moto360</Displayname>
<Nam... |
unit DistanceFormulas;
interface
uses BasicMathsTypes;
const
CDF_IGNORED = 0;
CDF_LINEAR = 1;
CDF_LINEAR_INV = 2;
CDF_QUADRIC = 3;
CDF_QUADRIC_INV = 4;
CDF_CUBIC = 5;
CDF_CUBIC_INV = 6;
CDF_LANCZOS = 7;
CDF_LANCZOS_INV_A1 = 8;
CDF_LANCZOS_INV_A3 = 9;
CDF_LANCZOS_INV_... |
unit uFrmUserMessageSend;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, PaideTodosGeral, siComp, siLangRT, StdCtrls, Buttons, ExtCtrls,
uFrmUserMessageUserList;
const
TYPE_NEW = 0;
TYPE_REPLAY = 1;
TYPE_FORWARD = 2;
type
TFrmUserMessageSend = c... |
unit TestBitmapUtils;
interface
uses
TestFramework,
Generics.Collections,
System.Math,
System.SysUtils,
System.Classes,
Vcl.Forms,
Vcl.Graphics,
Vcl.Imaging.Jpeg,
Dmitry.Controls.WebLink,
Dmitry.Controls.WebLinkList,
uBitmapUtils,
uMediaInfo;
type
TTestBitmapUtils ... |
unit uAOCUtils;
interface
uses
inifiles, System.SysUtils, System.Generics.Collections, AOCBase, RTTI, System.Classes,
System.Net.HttpClient, System.Net.urlclient, system.Generics.Defaults;
type AOCconfig = Record
BaseUrl: string;
BaseFilePath: string;
SessionCookie: string;
procedure LoadConfig;
End;
ty... |
unit uPedidoVendaDAOClient;
interface
uses DBXCommon, DBXClient, DBXJSON, DSProxy, Classes, SysUtils, DB, SqlExpr, DBXDBReaders, Generics.Collections, PedidoVenda, ItemPedidoVenda, DBXJSONReflect;
type
TPedidoVendaDAOClient = class(TDSAdminClient)
private
FNextCodigoCommand: TDBXCommand;
FInsertCommand: ... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdActns, System.Actions,
Vcl.ActnList, Vcl.Menus, Vcl.ComCtrls, unit2, Vcl.ExtCtrls;
type
TForm1 = class(TForm)
ActionList1: TActionList;
... |
unit uSysMenu;
interface
uses
Menus, Forms, Windows, Classes, ShellAPI, DBClient, Dialogs, SysUtils, Controls, Messages,
uParamObject, uFactoryFormIntf;
type
TShowMDIEvent = procedure(Sender: TObject; ACaption: string; AFormIntf: IFormIntf) of object;
//记录每个创建窗体的信息
TFrmObj = class(TObject)
private
F... |
unit wfsU;
interface
uses
System.Types,
System.Classes,
System.SysUtils,
System.SyncObjs,
Winapi.Windows,
UnitDBDeclare,
ExplorerTypes,
uGOM,
uMemory,
uTime,
uThreadEx,
uDBThread,
uThreadForm,
uInterfaces,
uLockedFileNotifications;
type
WFSError = class(Excep... |
{=====================================================================================
Copyright (C) combit GmbH
--------------------------------------------------------------------------------------
File : rtfform.pas, rtfform.dfm, rtfdemo.dpr
Module : List & Label rtf sample
Descr. : D: Dieses Beispiel demon... |
unit htStyle;
interface
uses
Classes, Messages, SysUtils, Types, Graphics,
htPersistBase, htStyleList, htPicture;
{ThMessages, ThStyleList, ThPicture;}
type
ThtStyleBase = class(ThtPersistBase);
//
ThtFontWeight = ( fwDefault, fwNormal, fwBold );
ThtFontSizeRelEnum = ( fsDefault, fs_1_XxSmall, fs... |
unit DSincronizadorModuloWeb;
interface
uses
ActiveX, SysUtils, Classes, ExtCtrls, DIntegradorModuloWeb, Dialogs, Windows, IDataPrincipalUnit,
ISincronizacaoNotifierUnit, IdHTTP;
type
TStepGettersEvent = procedure(name: string; step, total: integer) of object;
TServerToClientBlock = array of TDat... |
unit uMainForm;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes,
System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Objects,
FMX.StdCtrls, IPPeerClient, REST.Client, Data.Bind.Components,
Data.Bind.ObjectScope;
type
TMainForm = cla... |
unit uAppCache;
interface
uses
SysUtils,
Classes,
OmniXML,
uI2XConstants,
uHashTable,
uHashTableXML,
JclStrings,
uFileDir,
uStrUtil
;
const
UNIT_NAME = 'uAppCache';
type
TApplicationCacheBase = class(TObject)
private
protected
FOnChange : TNotifyEvent;
... |
unit MixiAPIToken;
interface
uses
Classes, Contnrs, SysUtils, Crypt, HttpLib, superxmlparser, superobject;
type
TMixiAPIToken = class
private
FAccessToken: String;
FRefreshToken: String;
FExpire: TDateTime;
FTokenType: String;
FScope: String;
p... |
unit PAG0001L.View;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, LocalizarBase.View, cxGraphics,
cxLookAndFeels,
cxLookAndFeelPainters, Vcl.Menus, dxSkinsCore, dxSkinDevExpressDarkStyle,
dxSkinDevExpre... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.