text stringlengths 14 6.51M |
|---|
unit langunit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, regexpr, inifileunit;
procedure SetLanguage(langSetting: string = 'zh_cn'; force: Boolean = False; dir: string = '');
procedure LoadLang(langSetting: string = 'zh_cn'; dir: string = '');
function GetLang(key: string; defaultValue: string = '')... |
unit Chatmain;
interface
uses
Classes, QControls, QStdCtrls, QExtCtrls, QButtons, QForms, Sockets;
type
TForm1 = class(TForm)
memRecv: TMemo;
Panel1: TPanel;
memSend: TMemo;
Panel2: TPanel;
btnSend: TButton;
Panel3: TPanel;
Label1: TLabel;
edtRemoteHost: TEdit;
Label2: TLabel... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
{-Test program reproducing Nessie Anubis test vectors, (c) we Aug.2008}
{ anubis-test-vectors-xxx.txt, xxx = 128, 160, 192, 224, 256, 288, 320 from}
{ http://www.larc.usp.br/~pbarreto/anubis-tweak-test-vectors.zip}
{ Note that the 'Test vectors -- set 4' is only generated if all_sets is
{ defined. To generate a t... |
unit PeriodClose;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, AncestorDBGrid, cxGraphics, cxControls,
cxLookAndFeels, cxLookAndFeelPainters, cxPCdxBarPopupMenu, cxStyles,
cxCustomData, cxFilter, cxData, c... |
unit PlayerExtractors;
{$mode objfpc}{$H+}
interface
uses
{$ifdef unix}
cthreads,
cmem,
{$endif}
Classes,
SysUtils,
PlayerThreads,
PlayerSubtitleExtractors,
PlayerSessionStorage,
PlayerExporters;
type
{ TPlayerInfoExtractor }
TPlayerInfoExtractor = class
private
FFailed: Boolean;
FLis... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC MS Access metadata }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit uReservedAction;
interface
uses
classes, AssThreadTimer, Contnrs;
type
TReservedAction = class
private
FTimer : TAssThreadTimer;
FInterval : integer;
FIntervalName : string;
FAction : TNotifyEvent;
FStartTime : Int64;
procedure TimerTick(Sender : TObject);
procedure CreateTimer... |
unit NtUtils.Exec.Win32;
interface
uses
NtUtils.Exec, Winapi.ProcessThreadsApi, NtUtils.Exceptions,
NtUtils.Environment, NtUtils.Objects;
type
TExecCreateProcessAsUser = class(TExecMethod)
class function Supports(Parameter: TExecParam): Boolean; override;
class function Execute(ParamSet: IExecProvider;... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ }
{ Copyright(c) 2004-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit ServerHorse.Settings;
interface
uses
System.SysUtils,
System.JSON,
ServerHorse.Consts,
GBJSON.Interfaces,
GBJSON.Config,
GBJSON.Helper,
DataSet.Serialize.Config;
type
iServerHorseSettings<T> = interface
['{36434654-025F-4E2A-B54E-416B362A9B65}']
function CaseDefinition(Value: TshCaseD... |
{**********************************************************************}
{* Иллюстрация к книге "OpenGL в проектах Delphi" *}
{* Краснов М.В. softgl@chat.ru *}
{**********************************************************************}
{/*
* (c) Copyright 1993, ... |
{*******************************************************}
{ }
{ Delphi FireMonkey Platform }
{ }
{ Copyright(c) 2011 Embarcadero Technologies, Inc. }
{ ... |
{
fngdirwatch.pas
FnugryDirWatch Component
Copyright (C) 1998 Gleb Yourchenko
Version 1.0.0.1
Revision History:
1.0.0.1 EvWatchNotify modified. Record chain
processing bug fixed.
}
{$A-,B-,I-,R-,X+}
{$define PlatformCheck} // Check platform before allocating
... |
unit uBotGestor;
interface
uses
System.Classes, Vcl.ExtCtrls, System.Generics.Collections,
uBotConversa,
uTInject,
uTInject.classes;
type
TBotManager = class(TComponent)
private
FSenhaADM: String;
FSimultaneos: Integer;
FTempoInatividade: Integer;
FConversas: TObjectList<T... |
unit REMain;
interface
uses
SysUtils, Windows, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons, ExtCtrls, Menus, ComCtrls, ClipBrd,
ToolWin, ActnList, ImgList;
type
TMainForm = class(TForm)
MainMenu: TMainMenu;
FileNewItem: TMenuItem;
FileOpenItem: TMenuItem;
FileSave... |
//
// Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
//
// 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 use this software for any purpose... |
unit printfrm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Mask, ExtCtrls, ComCtrls, IniFiles, RepDataUnit, DB;
type
ReportPanel = record
repid: integer;
caption: string;
cnt: integer;
pnl: TPanel;
upd: TUpDown;
end;
TPrintForm = ... |
unit Unit1;
interface
var
A0, B0, C0, D0: Int32;
A1, B1, C1, D1: Int32;
implementation
procedure Test;
begin
A0 := 1;
B0 := 2;
C1 := 3;
D1 := 4;
A1 := A0;
B1 := B0;
C0 := C1;
D0 := D1;
end;
initialization
Test();
finalization
assert(A0 = 1, 'A0 <> 1');
assert(B0 = 2, 'B0 <> 2');... |
{ * https://github.com/PassByYou888/CoreCipher * }
{ * https://github.com/PassByYou888/ZServer4D * }
{ * https://github.com/PassByYou888/zExpression * }
{ * https://github.com/PassByYou888/zTranslate ... |
{*
FrameChartBase.pas/dfm
----------------------
Begin: 2005/08/04
Last revision: $Date: 2010-11-02 18:16:23 $ $Author: rhupalo $
Version number: $Revision: 1.21 $
Project: APHI General Purpose Delphi Libary
Website: http://www.naadsm.org/opensource/delphi/
Author: Aaron Reeves <aaron.reeves@naadsm.org>
---------------... |
unit Monsters;
interface
uses
Points, Collisions, EngineTypes;
procedure CreateMonster (M: PMonster; S: PSector; Model : PItemModel);
procedure TraceMonster (var M: Monster);
procedure PushMonster (var M: Monster);
procedure MoveMonster (M: PMonster; dt: float);
function CenterMonster (const M: Monster):... |
unit oPKIEncryptionSignature;
interface
uses
System.Classes,
oPKIEncryption;
type
TPKIEncryptionSignature = class(TInterfacedObject, IPKIEncryptionSignature)
private
fHashText: string;
fDateTimeSigned: string;
fSignature: string;
function getHashText: string; virtual; final;
function get... |
unit MagicBrush;
interface
uses Graphics;
{* Магические кисти Версия 1.0 реализация различных кистей с помощью
базового абстарктного класса обернутого в фабрику *}
type
TMagicBrush = class
FCurrentValue: TColor;
private
FPenWidth: Integer;
FBrushIcon: TIcon;
FName: string;
FCanvas: T... |
namespace ComplexNumbers;
interface
type
Complex = public class
private
property Size: Double read Real*Imaginary;
protected
public
constructor; empty;
constructor (aReal, aImaginary: Double);
property Real: Double;
property Imaginary: Double;
method ToString: String... |
{**********************************************************************}
{* Иллюстрация к книге "OpenGL в проектах Delphi" *}
{* Краснов М.В. softgl@chat.ru *}
{**********************************************************************}
unit frmMain;
interface
us... |
unit uLocation;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
ActnList, ExtCtrls, Buttons, DbCtrls, DBGrids, PopupNotifier, uBaseDbForm, db,
ZAbstractDataset, ZDataset, ZSequence, ZSqlUpdate;
type
{ TfrmLocation }
TfrmLocatio... |
unit authconfigdialogunit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
ZentaoUnit, langunit;
type
{ TAuthConfigDialogForm }
TAuthConfigDialogForm = class(TForm)
AccountLabel: TLabel;
authAccountInput: TEdit;
aut... |
unit uGenericCommands;
interface
uses SysUtils, uBase, uBaseCommand, uEnvironment, uExceptions, uExceptionCodes,
uEventModel, Forms, uRootForm, uStrings;
type
TLaunchCommand = class( TBaseCommand )
public
procedure Execute; override;
procedure UnExecute; override;
end;
implementation
... |
unit DMCustomerTreeU;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Provider, BdeProv, Db, DBTables, DBClient;
type
TDMCustomerTree = class(TDataModule)
CustomerQuery: TQuery;
CustomerOrdersTable: TTable;
CustomerQuerySource: TDataSource;
CustomerTreeP... |
unit uDMConexao;
interface
uses
SysUtils, Classes, DBXpress, DB, SqlExpr, Forms, IniFiles, Dialogs,
FMTBcd;
type
TDMConection = class(TDataModule)
scoDados: TSQLConnection;
procedure DataModuleCreate(Sender: TObject);
private
{ Private declarations }
function Fnc_ArquivoConfiguracao: string;
... |
unit xVectorArc;
interface
uses Classes, SysUtils, Math, System.Types, System.UITypes, FMX.Controls,
FMX.StdCtrls, FMX.Objects, FMX.Graphics, xVectorType, xVectorLine, FMX.Types;
type
/// <summary>
/// 向量弧线
/// </summary>
TVectorArc = class
private
FArcR: Single;
FEndVector: TVe... |
unit ThreadUnit;
interface
uses
Winapi.Windows, System.SysUtils, System.Classes, Vcl.ActnList;
type
TSimpleThread = class;
TThreadExecObject = class
private
FName: string;
FDescription: string;
FErrMessage: string;
FWinHandle: THandle;
FMsg: UINT;
FOnBeforeAction: TAction;
FOnA... |
unit Controller.ContatoController;
interface
uses
System.SysUtils, System.Classes, Datasnap.DSServer,
Datasnap.DSAuth, Datasnap.DSProviderDataModuleAdapter, uDMServer,
Datasnap.DSCommonServer, Rest.JSON, System.JSON, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS... |
{**********************************************}
{ TeeChart Formatting Editor }
{ Copyright (c) 2001-2004 by David Berneda }
{ All Rights Reserved. }
{**********************************************}
unit TeeFormatting;
{$I TeeDefs.inc}
interface
uses
{$IFNDEF LINUX}
W... |
unit _frSetup;
interface
uses
FrameBase, JsonData,
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Imaging.jpeg,
Vcl.ExtCtrls, Vcl.StdCtrls;
type
TfrSetup = class(TFrame)
Label1: TLabel;
cbYouTube: TCheckBox;... |
(**
This module contains the interfaces for creating meuns in the IDEs project manager.
There are two interfaces, one for D2005 to 2009 and another for D2010 onwards.
@Author David Hoyle
@Version 1.0
@Date 30 Dec 2017
**)
Unit ITHelper.ProjectManagerMenuInterface;
Interface
{$INCLUDE 'CompilerDefinit... |
{ *********************************************************************** }
{ }
{ Delphi Runtime Library }
{ }
{ Copyright (c) ... |
{$A8} {$R-}
{*************************************************************}
{ }
{ Embarcadero Delphi Visual Component Library }
{ InterBase Express core components }
{ ... |
unit uVersion;
interface
uses
Classes, Types, Forms, Windows, SysUtils, IPInfo;
const
InfoNum = 10;
InfoStr: array[1..InfoNum] of string = ('CompanyName', 'FileDescription', 'FileVersion', 'InternalName', 'LegalCopyright', 'LegalTradeMarks', 'OriginalFileName', 'ProductName', 'ProductVersion', 'Comment... |
unit editscript;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
Buttons, ComCtrls, ExtCtrls, SynMemo, SynHighlighterPas, uPSComponent,
uPSComponent_Default, uPSC_StrUtils, rxspin;
type
{ TfrmScriptEditor }
TfrmScriptEditor = class(TForm)
... |
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.ComCtrls, uClient;
type
TClientForm = class(TForm)
labelUniqueName: TLabel;
editUniqueName: TEdit;
gbClient: TGroupBo... |
unit uOptionen_form;
{$mode delphi}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls,uturtlemanager;
type
{ TTOptionen }
TTOptionen = class(TForm)
BT_fertig: TButton;
BT_zuruecksetzen: TButton;
ED_stringlaenge: TEdit;
Label1: TLabel;
procedure BT_fertigClick... |
{******************************************}
{ }
{ vtk GridReport library }
{ }
{ Copyright (c) 2004 by vtkTools }
{ }
{******************************************}
{Con... |
unit SSPHelper;
interface uses
{$ifdef unix}
DynLibs,
{$else}
Windows,
{$endif}
Types, SysUtils, Classes,
SSPTypes;
const
//SIMPLE SERIALIZATION PROTOCOL
//
SSP_TYPE_OBJECT = 0; // objectType intType COUNT (stringType FIELD_NAME valueType FIEL... |
//******************************************************************************
//*** LUA SCRIPT FUNCTIONS ***
//*** ***
//*** (c) Massimo Magnano 2005 ... |
unit NtUtils.WinUser.WinstaLock;
interface
uses
Winapi.WinNt, NtUtils.Exceptions;
// Lock/unlock current session's window station
function UsrxLockWindowStation(Lock: Boolean; Timeout: Int64 = 15000 * MILLISEC)
: TNtxStatus;
implementation
uses
Ntapi.ntstatus, Ntapi.ntdef, Winapi.WinUser, Ntapi.ntldr, Ntapi.... |
// -------------------------------------------------------------------------------
// Descrição: Soma de todos numeros inteiros no intervalo de 0-20
// -------------------------------------------------------------------------------
// Autor : Fernando Gomes
// Data : 28/08/2021
// -----------------------------------... |
unit View.List.Base;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, View.Base, Vcl.StdCtrls, Vcl.ExtCtrls,
Data.DB, Vcl.Grids, Vcl.DBGrids, Methods.Anonymous, System.Actions,
Vcl.ActnList, System.ImageList... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ Copyright(c) 2013-2018 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
unit IEC_2061107;
interface
uses Windows, GMGlobals, SysUtils;
function Iso1155LRC_CalcEx(buf: array of Byte; First, Last: int; bInvert: bool): byte;
function Iso1155LRC_Calc(buf: array of Byte; len: int): byte;
procedure IEC2061107_CRC(var buf: array of Byte; Len: int);
function IEC2061107_CheckCRC(buf: array of B... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+}
{$M 1024,0,0}
{
by Behdad Esfahbod
Algorithmic Problems Book
April '2000
Problem 149 O(N2) Dynamic Method
}
program
Paragraph;
uses
Graph;
const
MaxN=200;
type
List = array [1 .. MaxN + 1] of Extended;
List2 = array [1 .. MaxN + 1] of Integer;
var... |
unit UnClienteListaRegistrosModelo;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UnModelo, FMTBcd, DB, DBClient, Provider, SqlExpr,
{ Fluente }
Util, DataUtil, Dominio;
type
TClienteListaRegistrosModelo = class(TModelo)
protected
function GetSql: ... |
unit uMain;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Menus, ComCtrls,
ExtCtrls, StdCtrls, ActnList, Buttons;
type
{ TMainForm }
TMainForm = class(TForm)
ActAudioEngineDelete: TAction;
ActGenerateSubtitles: TAction;
ActionList1: TActionList;
... |
unit Unit1;
{
TreeView with check boxes and radio buttons.
http://delphi.about.com/library/weekly/aa092104a.htm
Here's how to add check boxes and radio buttons to a
TTreeView Delphi component. Give your applications a
more professional and smoother look.
..............................................
... |
{ **************************************************************
Package: XWB - Kernel RPCBroker
Date Created: Sept 18, 1997 (Version 1.1)
Site Name: Oakland, OI Field Office, Dept of Veteran Affairs
Developers: Joel Ivey
Description: Contains TRPCBroker and related components.
Unit: fDebugInfo displays informat... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC high-level components }
{ }
{ Copyright(c) 2004-2018 Embar... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLHeightTileFileHDS<p>
HeightDataSource for the HTF (HeightTileFile) format.<p>
<b>History : </b><font size=-1><ul>
<li>10/03/09 - DanB - Bug fix for invisible terrain, now changes
heightdata.DataSt... |
{******************************************}
{ TeeChart. TChart Component }
{ Copyright (c) 1995-2001 by David Berneda }
{ All Rights Reserved }
{******************************************}
unit uaxislab;
interface
{ This Sample Project shows how to set the Axis Labels at specific A... |
{*******************************************************}
{ }
{ Delphi FireMonkey Platform }
{ }
{ Copyright(c) 2011 Embarcadero Technologies, Inc. }
{ ... |
unit uGraphicPrimitive;
interface
uses uBase, uEventModel, Graphics, Windows, uExceptions, uExceptionCodes,
SysUtils, GdiPlus, uDrawingSupport, Classes, System.Generics.Collections;
{$M+}
type
TPrimitiveType = ( ptNone, ptBox ); // примитивы
TPrimitiveDrawMode = ( pdmNormal, pdmIn... |
unit BrickCamp.Resources.TQuestion;
interface
uses
System.Classes,
System.SysUtils,
system.JSON,
Spring.Container.Common,
Spring.Container,
MARS.Core.Registry,
MARS.Core.Attributes,
MARS.Core.MediaType,
MARS.Core.JSON,
MARS.Core.MessageBodyWriters,
MARS.Core.MessageBodyReaders,
BrickCamp.Repos... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC InterBase/Firebird driver base classes }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit IdTCPClient;
interface
uses
Classes,
IdException, IdGlobal, IdSocks, IdTCPConnection;
type
TProceduralEvent = procedure of object;
TIdTCPClient = class(TIdTCPConnection)
protected
FBoundIP: string;
FHost: string;
FOnConnected: TNotifyEvent;
FPort: Integer;
FSocksInfo: TSocksInfo;
... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 2011 Embarcadero Technologies, Inc. }
{ ... |
unit UMessageController;
interface
uses UMessageResultType, UFMessage, ExtCtrls, SysUtils;
type
TMessageController = class
private
public
class procedure ShowMessageInformation(Msg: string);
class procedure ShowMessageSuccess(Msg: string);
class procedure ShowMessageError(Msg: string);
... |
unit ucadTransField;
interface
uses
SysUtils,
classes,
ufmTranslator;
type
TFieldTranslator = class ( TcadCompTranslator )
function Translate(const aObj: TObject; var Translated:boolean):boolean; override;
class function Supports(const aObj: TObject): Boolean; override;
end;
TBooleanFieldTr... |
unit UUserController;
interface
uses UISearchController, UFSearchUser, Forms, Classes, SysUtils, Types, StrUtils, IniFiles,
UIRegisterController, UFUserRegister, UUser, UMessageController, FireDAC.Phys.MongoDBDataSet;
type
TUserController = class(TInterfacedObject, ISearchController, IRegisterController)
pri... |
{
License: modified LGPL with linking exception (like RTL, FCL and LCL)
See the file COPYING.modifiedLGPL.txt, included in the Lazarus distribution,
for details about the license.
See also: https://wiki.lazarus.freepascal.org/FPC_modified_LGPL
}
unit mvTypes;
{$mode objfpc}{$H+}
interface
uses
Classes, ... |
unit ncSocketList;
/// ////////////////////////////////////////////////////////////////////////////
//
// TSocketList
// Written by Demos Bill, Tue 21/10/2004
//
// SocketList, the equivalent of TStringList
// but for the type of TSocket handles
//
/// ////////////////////////////////////////////////////////... |
{*********************************************}
{ TeeChart Delphi Component Library }
{ TArrowSeries Example }
{ Copyright (c) 1995-2001 by David Berneda }
{ All rights reserved }
{*********************************************}
unit uarrows;
interface
uses
... |
(* Syntaxtree Abstract: MM, 2020-05-20 *)
(* ------ *)
(* A unit to display syntax trees in abstract form *)
(* ========================================================================= *)
... |
unit SortExtendedArrayBenchmark2Unit;
{$mode delphi}
interface
uses Windows, BenchmarkClassUnit, Classes, Math;
type
TQuickSortExtendedArrayThreads = class(TFastcodeMMBenchmark)
public
procedure RunBenchmark; override;
class function GetBenchmarkName: string; override;
class function GetBenchmarkDes... |
unit Test.Devices.Streamlux700f;
interface
uses Windows, TestFrameWork, GMGlobals, Test.Devices.Base.ReqCreator, GMConst,
Test.Devices.Base.ReqParser;
type
TStreamlux700fReqCreatorTest = class(TDeviceReqCreatorTestBase)
protected
function GetDevType(): int; override;
procedure DoCheckRequests(); ove... |
unit MediaStream.Framer;
interface
uses Classes, SysUtils, MediaProcessing.Definitions;
type
TStreamFramerRandomAccess = class;
TInfoState =
(isNotSupported, //Получение сведений не поддерживается
isNotFound, //Сведения не найдены
isOK //Все хорошо, сведения доступны
);
TVideoInfo = record... |
{$R-} {Range checking off}
{$B+} {Boolean complete evaluation on}
{$S+} {Stack checking on}
{$I+} {I/O checking on}
{$N-} {No numeric coprocessor}
{$M 65500,16384,655360} {Turbo 3 default stack and heap}
(*
PRNDRV.PAS
PROCEDURE AttachPrinter(Printer : Printers);
{-define the Lst device to pr... |
unit eSocial.Models.Entities.Operacao;
interface
uses
eSocial.Models.DAO.Interfaces;
type
TOperacao = class
private
[weak]
FParent : iModelDAOEntity<TOperacao>;
FCompetencia : String;
FInsercao ,
FAlteracao,
FExclusao : Boolean;
public
constructo... |
// A benchmark to measure raw performance and fragmentation resistance.
// Alternates large number of small string and small number of large string allocations.
// Pure GetMem / FreeMem benchmark without reallocations, similar to WildThreads Benchmark.
// 8-thread version that has approx. same memory footprint and CPU ... |
unit UGeometry;
{$mode objfpc}{$H+}
interface
uses
Classes, math;
type
TFloatPoint = record
X, Y: Double;
end;
TFloatRect = record
Left, Right, Top, Bottom: Double;
end;
function FloatPoint(X, Y: Double): TFloatPoint;
function FloatPoint(APoint: TPoint): TFloatPoint;
function Point(AFloatPoint: ... |
unit EnterDateDialog;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, Db, DBTables, Mask;
type
TEnterDateDialogForm = class(TForm)
PromptLabel: TLabel;
OKButton: TBitBtn;
CancelButton: TBitBtn;
DateEdit: TMaskEdit;
procedure OKButt... |
unit uOtherObjects;
interface
uses Buttons, Classes, SysUtils, Graphics, Types, Math, uMyTypes;
type
TMultiselectButton = class(TObject)
private
objID: integer; // ID feature
objCaption: string;
objTop: integer;
objLeft: Integer;
objWidth: Integer;
objHeight: Integer;
objPadding: In... |
unit testsvdunit;
interface
uses Math, Sysutils, Ap, hblas, reflections, creflections, sblas, ablasf, ablas, ortfac, blas, rotations, bdsvd, svd;
function TestSVD(Silent : Boolean):Boolean;
function testsvdunit_test_silent():Boolean;
function testsvdunit_test():Boolean;
implementation
var
FailCount : ... |
PROGRAM air;
(* File : air.pas *)
(* menentukan fasa air pada suhu tertentu *)
// KAMUS
VAR
t : INTEGER;
// ALGORITMA
BEGIN
ReadLn(t);
IF (t < 0) THEN BEGIN
WriteLn('PADAT');
END ELSE IF (t = 0) THEN BEGIN
WriteLn('ANTARA PADAT-CAIR');
END ELSE IF ((t > 0) AND (t < 100)) THEN BEGIN
WriteLn('CAIR');
END E... |
unit UPedido;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, UItem;
type
{ Pedido }
TPedido = Class
private
FLista: TList;
protected
function getValorTotal: double; virtual;
function getItem(Index: integer): TItem; virtual;
procedure setItem(Index: integer; AValue: TIt... |
{$mode objfpc}{$H+}{$J-}
program MyProgram;
procedure MyProcedure(const A: Integer);
begin
WriteLn('A + 10 е: ', A + 10);
end;
function MyFunction(const S: string): string;
begin
Result := S + 'низовете се управляват автоматично';
end;
var
X: Single;
begin
WriteLn(MyFunction('Забележка: '));
MyProcedure(5... |
unit fOptionsReminders;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, ORCtrls, OrFn, fBase508Form, VA508AccessibilityManager;
type
TfrmOptionsReminders = class(TfrmBase508Form)
pnlBottom: TPanel;
btnOK: TButton;
btnCancel: TButton;
... |
program hello(output);
procedure WriteResponseHeader;
begin
writeln('content-type: text/html');
writeln
end;
begin
WriteResponseHeader;
writeln('<HTML>');
writeln('<HEAD>');
writeln('<TITLE>IriePascal Hello World Program</TITLE>');
writeln('</HEAD>');
writeln('<BODY... |
unit uDDThread;
interface
uses
System.Classes, SysUtils, ActiveX, IniFiles,
FireDAC.Stan.Option, uLogger, Vcl.ExtCtrls, FireDAC.Phys.MSSQL,
FireDAC.Phys.MSSQLDef, FireDAC.Phys.OracleDef, FireDAC.Phys.Oracle, DB, ADODB,
FireDAC.Stan.Intf, FireDAC.Stan.Def, FireDAC.DApt, FireDAC.Phys, Variants,
FireDAC.Phys.... |
{*******************************************************************************
* *
* ksTypes - ksComponents Base classes and types *
* ... |
unit SearchFamily;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseQuery, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS,
FireDAC.Phys.Intf, FireDAC.DApt.In... |
unit ConnParamsStorage;
interface
type
TZConnectionParams = record
Port: integer;
Host: string;
Login: string;
Password: string;
Database: string;
LibraryLocation: string;
end;
procedure SetGlobalSQLConnectionParams(ConnectionParams: TZConnectionParams);
function GlobalSQLConnectionParams... |
unit eSocial.Models.Entities.Competencia;
interface
uses
eSocial.Models.DAO.Interfaces,
eSocial.Models.ComplexTypes;
type
TCompetencia = class
private
[weak]
FParent : iModelDAOEntity<TCompetencia>;
FAno : String;
FCodigo : String;
FDescricao : String;
... |
unit TestFormatPart;
{(*}
(*------------------------------------------------------------------------------
Delphi Code formatter source code
The Original Code is TestFormatPart
The Initial Developer of the Original Code is Anthony Steele.
Portions created by Anthony Steele are Copyright (C) 1999-2008 Anthony... |
unit uBitly;
interface
uses System.Classes, System.SysUtils, IdHTTP, IdSSLOPenSSL;
type
TDataToShorten = record
Title: String;
LongURL: String;
end;
TBitly = class
private
FIdHTTP: TIdHTTP;
FIdSSLIOHandlerSocketOpenSSL: TIdSSLIOHandlerSocketOpenSSL;
public
function Shorten(DataToShorte... |
{
@html(<b>)
Data Client Components
@html(</b>)
- Copyright (c) Danijel Tkalcec
@html(<br><br>)
This unit implements a set of Client-side Data components. @Link(TRtcDataClient)
is the base class for all Request/Response based client connections. It implements the
mechanisms used by components like @Lin... |
program Sample;
var c: Char;
begin
WriteLn('enter a character and press enter:');
Readln(c);
WriteLn('got chacter ''', c, '''');
end.
|
unit Vigilante.Infra.Compilacao.Builder.Impl;
interface
uses
Vigilante.Infra.Compilacao.Builder, Vigilante.Compilacao.Model, System.JSON,
Vigilante.Infra.Compilacao.JSONDataAdapter;
type
TCompilacaoBuilder = class(TInterfacedObject, ICompilacaoBuilder)
private
FJSON: TJSONObject;
public
constructor... |
unit uConstants;
interface
uses UITypes;
const
// настройки таймеров
TIMER_LOGIC_INTERVAL = 1000;
TIMER_COOLDOWN_INTERVAL = 100;
TIMER_SCROLL_INTERVAL = 100;
// цветовые настройки
COLOR_PANEL_FILL_LIGHT = TAlphaColors.Gray;
COLOR_PANEL_FILL_NORMAL = $FFE0E0E0;
COLOR_PANEL_FILL_... |
unit u_xpl_application;
{$i xpl.inc}
{$M+}
interface
uses SysUtils
, Classes
, CustApp
, u_xpl_address
, u_xpl_folders
, u_xpl_settings
, u_xpl_common
, u_xpl_vendor_file
, u_timer_pool
;
type // TxPLApplication =========================================... |
unit uConexaoPadrao;
interface
uses Data.DB, System.SysUtils, System.Classes, Datasnap.DBClient, Vcl.Forms,
FireDAC.Phys.FB, FireDAC.Phys.MySQL, FireDAC.Comp.UI, FireDAC.DApt, FireDAC.Comp.Client, Datasnap.Provider,
uDM, Dialogs, FireDAC.Comp.DataSet, FireDAC.Phys.MSSQL;
type TConexaoPadrao = class
priv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.