text stringlengths 14 6.51M |
|---|
unit AuxSystemFunctionsUnit;
interface
uses SysUtils, Variants, Classes, DB, Controls;
type
TAppLocalDataFolderPathSearchOptions =
(
CreateFolderIfNotExists,
GetPathOfExistingFolder
);
function GetFileSize(const FilePath: String): Int64;
procedure OpenDocument(const Name: string);
procedure... |
unit FSChangeMonitor;
interface
uses
windows, Classes;
type
TFSChangeMonitor = class
private
FOnChangeHappened: TNotifyEvent;
FThread: THandle;
FDirPath: string;
FTerminated: Boolean;
public
constructor Create(ADirPath: string);
destructor Destroy; override;
prope... |
unit fPrincipal;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls,
FMX.Controls.Presentation, FMX.Edit, FMX.Layouts, FMX.Memo, FMX.Notification,
FMX.Platform;
type
TfrmPrinci... |
{****************************************************************************
* *
* openid framework *
* *
* ... |
unit uVMExceptions;
// Ths source is distributed under Apache 2.0
// Copyright (C) 2020 Herbert M Sauro
// Author Contact Information:
// email: hsauro@gmail.com
interface
Uses SysUtils, Classes;
type
ERuntimeException = class(Exception);
implementation
end.
|
unit UnitMain;
interface
uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Menus,
Vcl.Forms,
Vcl.Dialogs,
Vcl.StdCtrls,
PluginIntf,
Vcl.ComCtrls,
PluginUtils,
PluginManager,
PluginUI;
type
TFrmMain = class(TForm)
... |
unit sudokuForm;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls
,sudokuGame,sudokuUtil,constraint,cell,arrayUtils,region,
laz2_DOM,
laz2_XMLRead,
laz2_XMLUtils,
typInfo,game_display;
type
{ TmainForm }
TmainForm = class(TForm)
cbMod... |
Program P121503; {IOI 94}
Const Test = true;
Var inp,out: text;
Procedure Init;
Begin
If Test then Writeln('IOI''94 - Day 1 - Problem 3: The Primes');
Assign(inp,'input.txt'); Reset(inp);
Assign(out,'output.txt'); ReWrite(out);
If Test then Writeln('Initialized')
End;
Procedure Fini;
Begin
Close(inp); Clos... |
{$MODESWITCH RESULT+}
{$GOTO ON}
unit xblas;
interface
uses Math, Sysutils, Ap;
procedure XDot(const A : TReal1DArray;
const B : TReal1DArray;
N : AlglibInteger;
var Temp : TReal1DArray;
var R : Double;
var RErr : Double);
procedure XCDot(const A : TComplex1DArray;
const B : ... |
{ $OmniXML: OmniXML/OmniXMLConf.pas,v 1.4 2007/02/11 19:16:45 mremec Exp $ }
(*******************************************************************************
* 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 *
... |
unit ccMenus;
interface
uses Classes, ccCodeMain, Dialogs, ccCodeVariables, SysUtils, Forms, ccCodeFuncs,
Controls, ccCodeFuncList, TBX, uMain, Menus;
type
TccMenuItem = class(TTBXItem)
procedure Menu_OnClickX(Sender: TObject);
end;
implementation
function Menu_CreateRoot(S:TParams; FData: Ts... |
{******************************************************************************}
{* *}
{* PasDesigner 0.1 - Package loading *}
{* ... |
unit KSKeyboard;
{**********************************************
Kingstar Delphi Library
Copyright (C) Kingstar Corporation
<Unit>KSKeyboard
<What>包含和键盘相关的函数
<Written By> Huang YanLai (黄燕来)
<History>
**********************************************}
interface
uses Windows, Messages, Classes, Con... |
unit ConfigManager;
interface
uses
ConfigState, PCRE,
Classes, SysUtils, Dialogs, StrUtils;
type
// Observer interface
TConfigManager = class; // Forward declaration
IConfigObserver = interface
['{38E93441-E02B-4F88-9718-4204AE5F085B}']
procedure Updat... |
unit rTgAPI;
interface
uses
SuperObject, rHttpUtils, rProxy;
type
tTgUser = record
idUser: Int64;
sJson: string;
bIsBot: Boolean;
sUsername: string;
sFirstName: string;
sLastName: string;
sFullName: string;
sLngCode: string;
end;
tTgChat = record
idChat: Int64;
sJson:... |
unit uItemModel;
interface
uses
System.SysUtils;
type
TItemModel = class
private
FDescricao: String;
FID: Integer;
procedure SetDescricao(const Value: String);
public
property ID: Integer read FID write FID;
property Descricao: String read FDescricao write SetDescricao;
end;
implementa... |
unit DataReceiverThread;
interface
uses
Classes, IdBaseComponent, SysUtils, IdComponent, IdTCPConnection, IdTCPClient, SyncObjs, Constants;
type
TDataReceiverThread = class(TThread)
private
DataReceiver : TIdTCPClient;
lock : THandle;
function allow_TX_RX_Power(channel : integer) : bo... |
unit TratarExcecao;
interface
uses System.Sysutils, Forms, System.Classes, Vcl.Dialogs;
type
TExcecao = class
private
FLogAquivo: String;
public
constructor Create;
procedure TratarException(Sender: TObject; E: Exception);
procedure GravarLog(Valor: String);
end;
implementation
... |
unit Project87.Types.StarMap;
interface
uses
Classes,
Generics.Collections,
QCore.Types,
QCore.Input,
QuadEngine,
QEngine.Core,
QEngine.Camera,
QEngine.Texture,
QEngine.Font,
Project87.Fluid,
Project87.Types.StarFon,
Strope.Math;
const
LIFEFRACTION_COUNT = 3;
type
TSystemSize = (ssSmall ... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls;
type
TForm1 = class(TForm)
Panel1: TPanel;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
edHost: TEdit;
edServer: TEdit;
edUser: TEdit;
... |
// =============================================================================
// Module name : $RCSfile: FuncBase.pas,v $
// description : This unit implements basis methodes and properties of a class
// for script function. A script function is a function, which is
// called in a scr... |
{$optimize 7}
{---------------------------------------------------------------}
{ }
{ Printf }
{ }
{ Analyzes printf/scanf format and argume... |
unit AT.ShortName.DX.TabFormChild;
interface
uses
AT.ShortName.Intf, cxPC, Vcl.Forms, System.Classes, Vcl.Controls,
Vcl.ExtCtrls, AT.ShortName.Vcl.Forms.Generic.TabForm;
type
TATdxTabFormChild = class(TcxTabSheet, IATTabFormChildUI,
IATFormCaptionChanged)
strict private
FForm: TfrmGenericTabForm;
... |
unit AppearUtils;
// %AppearUtils : 包含控制控件外观的组件
(***** Code Written By Huang YanLai *****)
interface
uses
Windows, Messages, SysUtils, Classes, Graphics,
ImgList,Controls, Forms, Dialogs;
type
TAppearance = class(TCollectionItem)
private
FColor: TColor;
FFont: TFont;
FCaption: str... |
unit AqDrop.DB.Common;
{$I '..\Core\AqDrop.Core.Defines.Inc'}
interface
uses
System.TypInfo,
System.Rtti,
AqDrop.Core.Types,
AqDrop.DB.Types;
type
TAqDBValueConverter = class
public
class function ConvertToTValue(pValue: IAqDBReadValue; const pAsType: PTypeInfo): TValue;
end;
im... |
unit AErenderLauncher.AerenderParser;
(* AErender Data Parser *)
(* Lily Stilson // 2020 *)
(* MIT License ... |
unit QRNew;
interface
procedure Register;
implementation
uses Windows, SysUtils, Classes, Controls, Forms, ExptIntf, ToolIntf, VirtIntf,
IStreams, DsgnIntf, QuickRpt, QReport, QR2Const;
type
TNewQuickReport = class(TIExpert)
function GetName: string; override;
function GetComment: string; override;
... |
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://awstaging/secure/ws/awsi/MarketConditionServer.php?wsdl
// Encoding : ISO-8859-1
// Version : 1.0
// (9/10/2013 6:4... |
unit TexRenderer;
interface
uses
ShellAPI,
MiniLexer,
sToPolynom,
PolynomsBuilderS,
CheckError,
naturals,
rationals,
polynoms,
signTable,
FullSys,
ConstructionSignTable,
StatementSystemParser,
StatementSystemStek,
StatementSystemBuilder,
PolynomsStek,
PolynomsBuilde... |
program triangleXO;
uses crt;
{
//BUT : Créer un triangle en X et O
//ENTREE : La taille du triangle en X et O
//SORTIE : un triangle en X et O de la taille désirée
VAR
i, j, taille : ENTIER
DEBUT
ECRIRE La taille du triangle ?
LIRE taille
POUR i DE 1 A taille - 1 FAIRE
DEBUT
POUR j DE 1 A taille FAIRE
... |
object FmDisplay: TFmDisplay
Left = 299
Top = 55
BorderStyle = bsDialog
Caption = 'Display'
ClientHeight = 273
ClientWidth = 355
Color = clBtnFace
Constraints.MinHeight = 200
Constraints.MinWidth = 300
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Taho... |
unit ProdutoM;
interface
uses ProdutoIntf, Produto, Generics.Collections;
type
TProdutoM = class(TInterfacedObject, IProduto)
private
FProduto: TProduto;
FProdutos: TList<TProduto>;
function GetIndex(Id: Integer): Integer;
protected
function GetProduto: TProduto;
procedure SetProduto(Value:... |
unit jclass_attributes_implementation;
{$mode objfpc}{$H+}
interface
uses
Classes,
SysUtils,
jclass_attributes_abstract,
jclass_attributes,
jclass_annotations,
jclass_types,
jclass_common,
jclass_stack_map_frame,
jclass_enum,
jclass_constants,
jclass_common_abstract,
jclass_code_sequence;
ty... |
unit DW.Firebase.Messaging.iOS;
{*******************************************************}
{ }
{ Kastri Free }
{ }
{ DelphiWorlds Cross-Platform Library ... |
unit Unit5;
// EMS Resource Module
interface
uses
System.SysUtils, System.Classes, System.JSON,
EMS.Services, EMS.ResourceAPI, EMS.ResourceTypes, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf,
FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Async, ... |
program Flugzeit (input, output);
const
MINSEK = 59;
STUNDE = 23;
type
tStunde = 1..STUNDE;
tMinSek = 1..MINSEK;
tZeit = record
h : tStunde;
m,
s : tMinSek
end;
var
Zeit : tZeit;
Abflug,
Ankunft : tZeit;
procedure Flight (var proceZeit : tZeit);
var
eingabe : integer;
... |
unit TestResult;
interface
uses
TestFramework,
RegularExpressions;
type
TTestResult = class(TTestCase)
private
procedure Execute(const Original, Pattern, Replacement, Expected: String);
published
procedure TestResult001;
procedure TestResult002;
procedure TestResult003;
procedure TestRe... |
unit import;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, FormChild, ExtCtrls, ComCtrls, StdCtrls, Buttons, Grids
,schglobal, DateUtils, pFIBDataSet;
const
IMPORT_TXT = 1;
IMPORT_DBF = 2;
IMPORT_TXT_FILTER = 'Текстовый файл|*.txt|Все... |
(*******************************************************************************
The MIT License (MIT)
Copyright (c) 2011 by Sivv LLC,
Copyright (c) 2007 by Arcana Technologies Incorporated
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated document... |
unit UClasses;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. }
interface
uses
Classes,
UForms,
UInterfaces,
UMessages;
type
// TAppraisalComponent
TAp... |
(*
* модуль містить дерево класів фреймів для введення інформації в звітах
*
*)
unit ZReportFrame;
interface
uses Zutils_h, kernel_h, checkedlist, Windows,
ExtCtrls,Classes, Dialogs, dxEditor, dxEdLib, Controls, SysUtils, dxTL, dxTLClms,
uZFilterCombo;
type
//------------------------------------... |
{
@abstract(@code(google.maps.Marker) class from Google Maps API.)
@author(Xavier Martinez (cadetill) <cadetill@gmail.com>)
@created(October 25, 2022)
@lastmod(October 25, 2022)
The GMLib.Marker.Vcl contains the implementation of TGMMarker class that encapsulate the @code(google.maps.Marker) class from Googl... |
unit IdTestGlobalProtocols;
interface
uses
IdGlobal,
IdObjs,
IdGlobalProtocols,
IdSys,
IdTest;
type
TIdTestGlobalProtocols = class(TIdTest)
published
procedure TestRPos;
procedure TestStrToWord;
procedure TestMimeTable;
end;
implementation
procedure TIdTestGlobalP... |
unit MyStringGrid;
interface
uses
Winapi.Windows,System.SysUtils,Winapi.Messages, System.Classes,Vcl.Graphics,
Vcl.Controls,Vcl.Forms , Vcl.Dialogs, Vcl.Menus, Vcl.StdCtrls,Vcl.ExtCtrls,
System.Contnrs,Vcl.Grids;
type
TAllowEndEditEvent = procedure(Sender: TObject; var Key: Word; Shift: TShiftState; var... |
unit MyDocUnit;
interface
function AppDocPath: string;
function CheckFileUsed(APathToFile: string): Boolean;
function MyDocPath: string;
function OpenFolderAndSelectFile(const AFileName: string): Boolean;
const
OFASI_EDIT = $0001;
OFASI_OPENDESKTOP = $0002;
implementation
uses
System.Classes, System.... |
unit DlgTestControl;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls, Menus, cxLookAndFeelPainters, cxButtons, DlgTest,
cxControls, cxContainer, cxEdit, cxTextEdit, ComCtrls;
type
TTestControlDialog = class(TTestDialog)
gbPointAndControl: TGroupBox;
pnC... |
unit DIOTA.Model.Transaction;
interface
uses
DIOTA.Pow.ICurl;
type
ITransaction = interface(IEquatable<TObject>)
['{E7304064-EE17-4530-8381-F83A5672A443}']
function Equals(AObject: TObject): Boolean;
{
* Converts the transaction to the corresponding trytes representation
}
function ToTry... |
{
Sobre o autor:
Guinther Pauli
Delphi Certified Professional - 3,5,6,7,2005,2006,Delphi Web,Kylix,XE
Microsoft Certified Professional - MCP,MCAD,MCSD.NET,MCTS,MCPD (C#, ASP.NET, Arquitetura)
Colaborador Editorial Revistas .net Magazine e ClubeDelphi
MVP (Most Valuable Professional) - Embarcadero Technologies - U... |
unit uFaceModel;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls,
FMX.Layouts, FMX.Objects;
type
TFrame1 = class(TFrame)
Circle1: TCircle;
xLeftEye: TCircle;
xLeftPupil: TCi... |
unit s_constTeplo;
interface
var
patch_app,
patch_base : string;
//--------------------------UserConst
id_roul_user,
fio_user,
id_user : string;
//-----------------------------------
//--------------------------AppConst
id_session_in_file,
visitor_action,
minute_user_visit,
pay_user_visit,
... |
unit uBits;
interface
/// <summary> mathematically round to specific fraction</summary>
function RoundToFrac(const aValue : Double; const aTeiler: byte = 64):double;
/// <summary> mathematically round to fractional display</summary>
/// <remarks> output designed for multiple of 2 only
/// (1/2, 1/4, 1/8, 1/16, 1/3... |
// Fit4Delphi Copyright (C) 2008. Sabre Inc.
// This program is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software Foundation;
// either version 2 of the License, or (at your option) any later version.
//
// This program is... |
unit Frm_Epigrafes_Editor;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics,
Controls, Forms, Dialogs, uniGUITypes, uniGUIAbstractClasses,
uniGUIClasses, uniGUIForm, Frm_Dialogo, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.Comp.DataSet, FireDA... |
unit BuilderPizzaExample.Domain.Pizza;
interface
uses
BuilderPizzaExample.Domain.Edge,
BuilderPizzaExample.Domain.ValueObject.PizzaSize,
BuilderPizzaExample.Domain.ValueObject.PizzaType,
BuilderPizzaExample.Domain.ValueObject.IngredientsType,
System.Generics.Collections, BuilderPizzaExample.Domain.IPizza;
... |
unit RepositorioEstoque;
interface
uses DB, Auditoria, Repositorio;
type
TRepositorioEstoque = class(TRepositorio)
protected
function Get (Dataset :TDataSet) :TObject; overload; override;
function GetNomeDaTabela :String; override;
function GetIdentificador... |
{//************************************************************//}
{// //}
{// Código gerado pelo assistente //}
{// //}
{// Projeto MVCBr ... |
unit uDmPedidoItem;
interface
uses
System.SysUtils, System.Classes, uDmConexao, Data.FMTBcd, Data.DB,
Data.SqlExpr, uPedidoItemModel, System.Generics.Collections;
type
TDmPedidoItem = class(TDataModule)
SQLInserir: TSQLDataSet;
SQLExcluirTodos: TSQLDataSet;
private
{ Private declarations }
publ... |
unit RenderingUnit;
(* AErender Launcher *)
(* RenderingUnit.pas *)
(* Lily Stilson // 2019 - 2020 *)
(* ... |
Source code
.
.
.
uses
IdBaseComponent,
IdComponent,
IdExplicitTLSClientServerBase,
IdIOHandler,
IdIOHandlerSocket,
IdIOHandlerStack,
IdMessage,
IdSMTP,
IdSSL,
IdSSLOpenSSL;
procedure SendMail(const Subject: string; const Recipients: string;
const Msg: TStrings);
var
IdMessage1: TIdMessage;
... |
unit blockinfoArray;
interface
uses
System.Types, System.Classes, System.SysUtils, blockinfoModel,
blockinfobyteModel;
type
TblockinfoArray = class
public
function infoblockinfoarray(infomodel: TblockinfoModel; count: Integer): TArray<TArray<Byte>>;
end;
implementation
function TblockinfoArray.infobl... |
unit BubbleClass;
interface
uses CommonTypes;
type
TBubbleType = ( btForTemp, btForDiffTemp );
TBubble = class
private
//fTemperature: integer; // соответствие температуре
public
// fTemperature: integer; // соответствие времени
fTime: integer; // соответствие времени
// fBubbleType: integer; // ... |
{-----------------------------------------------------------------------------
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.... |
unit TipoSerie;
interface
type
TTipoSerie = (tsNormal=0, tsSCAN=1);
type
TTipoSerieUtilitario = class
public
class function DeEnumeradoParaString (TipoSerie :TTipoSerie) :String;
class function DeEnumeradoParaInteger(TipoSerie :TTipoSerie) :Integer;
class function DeStringParaEnumerado (TipoSerie ... |
unit regcontainer;
interface
procedure Register;
implementation
uses Windows, SysUtils, Classes, Controls, Forms, ExptIntf, ToolIntf, VirtIntf,
IStreams, DsgnIntf;
type
TNewContainer = class(TIExpert)
public
function GetName: string; override;
function GetComment: string; override;
function GetGl... |
{**********************************************************************}
{ }
{ "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 comp... |
unit MainForm;
//TODO: Solve "program installed incorrectly..." problem
interface
uses
Windows, Messages, AvL, avlUtils, Setup;
type
TSetupPages = (spWelcome, spInstallPath, spShortcutsPath, spProgress, spFinish);
TImageEx = class(TImage)
public
property BkMode;
end;
TRichEditEx = cla... |
{$MODESWITCH RESULT+}
{$GOTO ON}
(*************************************************************************
Copyright (c) 1992-2007 The University of Tennessee. All rights reserved.
Contributors:
* Sergey Bochkanov (ALGLIB project). Translation from FORTRAN to
pseudocode.
See subroutines comments ... |
unit UUADGridRooms;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2011 by Bradford Technologies, Inc. }
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, Dialo... |
unit Cam;
interface
uses math3d, OpenGL, windows, q3types;
type
TMatrix3x3 = array[0..8] of single;
TMatrix4x4 = array[0..15] of single;
const
AutoRotateSpeed = 250;
stepFrequency = 380;
type TCamera = class(TObject)
private
InMotion : boolean;
lastStep : cardinal;
public
... |
unit ReadIn;
interface
uses FrogObj, Func1D, Numerics, Classes;
type
TDownsizeType = (dtInterpolate, dtTruncate);
TReferencePulseSource = (rsFrog, rsReadIn);
TReadIn = class(TFrogObject)
private
mFileName: string;
mDelT: double; // In Tadpole, this is DelLam
mLam0: double;
mN: ... |
unit gmTool_StitchPolyline;
interface
uses
{$IFDEF FPC}
LCLIntf, LCLType, LMessages, Types,
{$ELSE}
Windows, Messages,
{$ENDIF}
Graphics, Controls, Forms,
Classes, SysUtils,
GR32, GR32_Image, GR32_Layers, GR32_Types,
gmTools;
type
TgmtoolPolyline = class(TgmTool)
private
FDo... |
object FormOptions: TFormOptions
Left = 284
Height = 396
Top = 158
Width = 551
Caption = 'Options'
ClientHeight = 396
ClientWidth = 551
Color = clBtnFace
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
OnCreate = FormCreate
OnDestroy = FormDestroy
OnShow... |
unit SEWMath;
interface
uses
Windows, Math;
function GetQurs (X1, Y1, X2, Y2 : Extended) : Extended ;
function GetDn (X1, Y1, H1, X2, Y2, H2 : Extended) : Extended ;
procedure GetLineCoefficients (X1, Y1, X2, Y2 : LongInt; k, b : PExtended);
function Direct_dB (AVAlue : Extended) : Extended;
functi... |
(*
Copyright (c) 2011, Stefan Glienke
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 conditions and t... |
unit LRToolsMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
System.SyncObjs, System.Generics.Collections, Vcl.Graphics, Vcl.Controls, Vcl.Forms,
Vcl.Dialogs, FireDAC.UI.Intf, FireDAC.VCLUI.Wait, FireDAC.Stan.Intf, FireDAC.Comp.UI,
RzButton, Syste... |
unit SprayFileHandler;
interface
uses
System.SysUtils, System.Classes, Winapi.Windows, SprayFileHandlerClasses,
SprayFileHandlerExceptions, Registry;
const
SFH_GAME_RSRC: string = 'GAMESINFO';
SFH_LAYOUT_RSRC: string = 'LAYOUTSINFO';
VTF_MAGIC: Cardinal = $00465456; //Little endian, 'VTF'#0
// Error code... |
unit FBallistic;
interface
uses
Windows, FData, FUnit, FFPS, FLogs, FDisplay, FLoader, SysUtils, MyMath;
const
PROJECTILE_SPEED = 0.5;
type
Projectile = (NORMAL, MAGIC, OTHER);
TTrajectory = (LINEAR, PARABOLIC);
PEffectCallBack = ^TEffectCallBack;
PProjectile = ^TProjectile;
TProjectile =... |
unit UPhysicalPersonController;
interface
uses
SysUtils, UConnection, DB, UPerson, UPhysicalPerson,
UPhysicalPersonList, UUser, UPersonController, UFactory, md5;
type
TPhysicalPersonController = class(TPersonController)
private
{ ATTRIBUTES }
pp: TPhysicalPerson;
conn: TConnection;
{ PERSON ... |
unit Main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, xmldom, XMLIntf, msxmldom, XMLDoc, System.Zip;
type
TMainFrm = class(TForm)
XMLDocument1: TXMLDocument;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
pr... |
unit main;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
Vcl.StdCtrls, Vcl.ComCtrls, wclWeDoWatcher, wclBluetooth;
type
TfmMain = class(TForm)
btStart: TButton;
btStop: TButton;
lvHubs: TListVi... |
unit tm_syntax_tree;
// {$mode objfpc}{$H+}
interface
uses Classes, tp_tinylist;
type
TTreeNode = class(TObject)
operation: Byte;
s: String; // all strings like identifier, constants etc
position: Integer; // original line in source
... |
{
ID:because3
PROG:cowtour
LANG:PASCAL
}
program cowtour;
var x,y:array [1..150] of integer;
n:integer;
dist:array [1..150,1..150] of real;
half,dia:array [1..150] of real;
function dis(i,j:integer):real;
begin
exit(sqrt(sqr(x[i]-x[j])+sqr(y[i]-y[j])));
end;
procedure init;
var i,j:in... |
unit Model.City;
interface
uses
Model.Interfaces,
Model.IMyConnection,
System.Generics.Collections,
Spring.Collections,
Spring.Data.ObjectDataset,
MainDM;
function CreateCityModelClass: ICityModelInterface;
implementation
uses
System.SysUtils, Model.Declarations, Model.FormDeclarations,
Spring.Persist... |
unit dlgOutBFZ2;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, TeEngine, Series, TeeProcs, Chart, ExtCtrls;
type
TfrmOutBFZ2 = class(TForm)
Panel1: TPanel;
lblLeft: TLabel;
lblCenter: TLabel;
lblRight: TLabel;
Label1: TLabel... |
unit IdHashIntf;
interface
{$i IdCompilerDefines.inc}
uses
Classes,
IdGlobal, IdHash,
{$IFDEF DOTNET}
System.Security.Cryptography,
IdException
{$ELSE}
IdSSLOpenSSLHeaders
{$ENDIF}
;
type
{$IFDEF DOTNET}
TIdHashInst = System.Security.Cryptography.HashAlgorithm;
TIdHashIntCt... |
{-----------------------------------------------------------------------------
Unit Name: DULists
Author: Sebastian Hütter
Date: 2006-08-01
Purpose: Special lists for data types
History: 2006-08-01 initial release
-----------------------------------------------------------------------------}
unit DULi... |
{==============================================================================*
* Copyright © 2020, Pukhkiy Igor *
* All rights reserved. *
*============================================================================... |
unit PriorityPause;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls, cxLookAndFeels,
cxLookAndFeelPainters, cxContainer, cxEdit, dxSkinsCore, dxSkinBlack,
dxSkinBlue, dxSkinBlueprint, d... |
unit uiwin.color;
interface
uses
ui.color;
function WinColor(Color32: TColor32): TColor;
function Color32(WinColor: TColor): TColor32;
implementation
uses
Windows;
function WinColor(Color32: TColor32): TColor;
{$IFDEF PUREPASCAL}
begin
Result := ((Color32 and $00FF0000) shr... |
unit mnDateTime;
interface
uses mnSystem, Windows;
{--------------------------------
将不完整的日期转换为字符串。
不完整的日期是指,年、月、日不需要全部指定,没有指定的可传入0。
如果年、月、日都为0,则返回空串。否则,无论指定了哪些,转换成的字符串都将保持10个字符的固定长度。
Tested in TestUnit.
--------------------------------}
function mnIncompleteDateToStr(const Year, Month, Day: Word): string;
... |
unit SimpCtrls;
// %SimpCtrls : 继承TLable,TSpeedButton,在Caption中增加'\n'表示换行
(***** Code Written By Huang YanLai *****)
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls,Buttons;
type
// %TLabelX: 继承TLable在Caption中增加'\n'表示换行
TLabelX = class(TLabel)
private
... |
unit soundsht;
interface
procedure ErrorExit(msg : string);
function LoadEffect(fileName : PChar; looping : integer) : word;
procedure FreeEffect(instHandle : word);
procedure PlayEffect(w_handle : byte; rate : longint; volume : word);
procedure imp;
procedure unp;
implementation
uses midas, sdevice, mpl... |
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Revision history:
Nov 2000, Peter Hinrichsen, Made open source
Nov 2000, SM, Moved query find method to TSQLMgr
Nov 2000, SM, Added ParamIsNull property to TSQLMgrParam
Purpose:
Family of objects to manage SQL Text as ... |
unit ChapterHeadModelStruct;
interface
type
TChapterHeadModelStruct = record
public
chapter_count: Cardinal;
chapter_name_header_length: Cardinal;
end;
implementation
end.
|
{
-─── Aragorn ──-- / ■CONTROL UNiT■
Palette handling routines (v1.8)
}
unit palette;
interface
const fadeup = true;
fadedn = false;
dacramp = true;
buframp = false;
type
paltype = array[0..767] of byte;
paladdtype = array[0..767] of word;
palfixedtype = array[0..767] of word... |
unit hkSend;
interface
uses
SysUtils,
Messages,
Forms,
Windows,
Classes;
type
TSendKeyError = (skNone, skFailSetHook, skInvalidToken, skUnknownError);
function SendKeys(S: String; Wait: Boolean): TSendKeyError;
implementation
type
ESendKeyError = class(Exception... |
unit DesadvXML;
interface
uses xmldom, XMLDoc, XMLIntf;
type
{ Forward Decls }
IXMLDESADVType = interface;
IXMLHEADType = interface;
IXMLPACKINGSEQUENCEType = interface;
IXMLPOSITIONType = interface;
IXMLPOSITIONTypeList = interface;
{ IXMLDESADVType }
IXMLDESADVType = interface(IXMLNode)
['{EA7A... |
unit Redis.NetLib.Factory;
interface
uses Redis.Client, System.Generics.Collections, System.SysUtils, Redis.Command,
Redis.Commons;
type
// this class introduce the virtual constructor
TRedisNetLibAdapter = class abstract(TInterfacedObject, IRedisNetLibAdapter)
constructor Create; virtual;
protected
... |
unit NtUtils.Security;
{
Base functions for working with Security Descriptors.
}
interface
uses
Ntapi.WinNt, Ntapi.ntseapi, NtUtils;
type
TSecurityDescriptorData = record
Control: TSecurityDescriptorControl;
Owner, Group: ISid;
Dacl, Sacl: IAcl;
class function Create(
Control: TSecurity... |
{$ifdef license}
(*
Copyright 2020 ChapmanWorld LLC ( https://chapmanworld.com )
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this li... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.