text stringlengths 14 6.51M |
|---|
unit GLDMesh;
interface
uses
Classes, GL, GLDTypes, GLDClasses, GLDObjects;
type
TGLDCustomMesh = class;
TGLDTriMesh = class;
TGLDQuadMesh = class;
TGLDPolyMesh = class;
TGLDTriFaceList = class;
TGLDQuadFaceList = class;
TGLDPolygonList = class;
TGLDCustomMesh = class(TGLDEditableO... |
unit uReportType_R;
interface
uses
Windows, SysUtils, Classes, Controls, Forms,
StdCtrls, ExtCtrls, DB, Menus,
DBClient, ImgList,
cxTL, cxMaskEdit,
dximctrl, cxCheckBox, cxDBEdit, cxSpinEdit,
cxContainer, cxEdit, cxTextEdit, cxInplaceContainer, cxDBTL, cxControls,
cxTLData, cxButtons, cxLoo... |
unit FMX.NtImageTranslator;
interface
uses
Classes, NtBaseTranslator;
type
{ @abstract Extension class that translates TPicture objects. }
TNtImageTranslator = class(TNtTranslatorExtension)
public
{ @seealso(TNtExtension.CanTranslate) }
function CanTranslate(obj: TObject): Boolean; override;
{ @... |
unit uFormAddImage;
interface
uses
Winapi.Windows,
System.SysUtils,
System.Classes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.ExtCtrls,
Vcl.StdCtrls,
Vcl.Themes,
Dmitry.Controls.Base,
Dmitry.Controls.LoadingSign,
UnitDBDeclare,
uMemory,
uFormUtils,
... |
unit Chapter06._02_Solution3;
{$mode objfpc}{$H+}
interface
uses
Classes,
SysUtils,
AI.TreeNode,
DeepStar.Utils;
// 145. Binary Tree Postorder Traversal
// https://leetcode.com/problems/binary-tree-postorder-traversal/description/
// 二叉树的后序遍历
// 时间复杂度: O(n), n为树的节点个数
// 空间复杂度: O(h), h为树的高度
type
TSolution... |
unit TarockDM;
interface
uses
System.SysUtils, System.Classes, WiRL.Client.CustomResource,
WiRL.Client.Resource, System.Net.HttpClient.Win, WiRL.http.Client,
WiRL.Client.Application, Rest.Neon,System.JSON,
WiRL.Client.Resource.JSON, System.ImageList, Vcl.ImgList, Vcl.Controls,
Common.Entities.Card, Common.... |
unit NESSIESet3;
// Description:
// By Sarah Dean
// Email: sdean12@sdean12.org
// WWW: http://www.SDean12.org/
//
// -----------------------------------------------------------------------------
//
interface
const
NESSIE_SET_3_EXPECTED: array [0..511] of string = (
'B99F2BEFF1E64... |
unit LightweightMREWEx;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, System.SyncObjs;
type
TLightweightMREWEx = record
private
FRWLock: TLightweightMREW;
FLockOwner: TThreadID;
FLockCount: integer;
public
class operator Initialize(out Dest: TL... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLTextureFormat<p>
<b>History : </b><font size=-1><ul>
<li>15/06/10 - Yar - Replace OpenGL1x extensions to OpenGLAdapter
<li>22/04/10 - Yar - Moved TGLTextureTarget
<li>23/01/10 - Yar - Separated GLTextureFormat and GLInt... |
{*******************************************************************************
Title: T2Ti ERP
Description: Controller para atualização do estoque.
The MIT License ... |
unit uDWImage;
interface
uses
SysUtils,
Classes,
Windows,
Graphics,
uStrUtil,
uFileDir,
OmniXML,
GR32,
GR32_Image,
GR32_Filters,
MCMImage,
mcmImageFile,
MCMImageTransform,
MCMImageColor,
MCMImageTypeDef,
uHashTable,
MapStream,
uI2XConstants,
INIFiles,
Grap... |
unit Objekt.Downloadfile;
interface
uses
System.SysUtils, System.Classes,
IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP;
type
TDownloadfile = class
private
fHTTP: TIdHTTP;
public
constructor Create;
destructor Destroy; override;
procedure Download(aUrl, aFullFilename: s... |
{
Role
Specify the default style for draw objects
}
unit ThItemStyle;
interface
uses
System.Classes,
GR32,
ThTypes, ThClasses;
type
TThDrawStyle = class;
TThDrawStyleClass = class of TThDrawStyle;
TThDrawStyle = class(TInterfacedObject, IThDrawStyle)
private
FOnChange: TNotifyEvent;
pr... |
{***************************************************************************}
{ }
{ Delphi Package Manager - DPM }
{ }
{ ... |
unit eduPrintSample;
interface
uses
Winapi.Windows, Messages, SysUtils, Classes, Variants, Graphics, Controls, Forms, Dialogs,
eduDialog, StdCtrls, ExtCtrls, frxDesgn, frxClass, jpeg,
frxExportRTF, frxExportHTML, frxExportText, frxExportXLS, frxExportPDF,
frxExportImage, System.Actions, Vcl.ActnList, cxGraphi... |
unit uInventoryCalc;
interface
uses uNumericFunctions, SysUtils, Classes, Math;
const
ROUNDING_TYPE_UP = 1;
ROUNDING_TYPE_DOWN = 2;
ROUNDING_TYPE_NEARST = 3;
type
TPriceRound = class
private
FSalePrice: Currency;
FRoundAction: Integer;
FRoundValues: array of Double;
sIntRoundValue: ... |
unit EDcode;
interface
uses
Windows, SysUtils, DESTR, Classes, DES;
function EncodeString(Str: string): string;
function DecodeString(Str: string): string;
function EncodeBuffer(buf: PChar; bufsize: Integer): string;
procedure DecodeBuffer(Src: string; buf: PChar; bufsize: Integer);
function EncodeBuffer_(buf: PCha... |
namespace Sugar;
interface
uses
Sugar.IO,
Sugar.Xml;
type
{$IF NOUGAT}
HttpResponce = public class
public
method initWithContent(aContent: id): id;
method initWithException(anException: Exception): id;
property Exception: Exception read private write;
property Content: id ... |
unit LGraphics;
{$mode objfpc}{$H+}{$Define LGRAPHICS}
interface
uses
Classes, SysUtils, Graphics, ExtCtrls, Forms,
LTypes, LLevel, LIniFiles, LSize, LPosition;
type
TVisualisator=class(TImage)
private
{types and vars}
var
//FScreen: TCanvas;
FLevel: TLLevel;
FDbg, FAnimate, FDraw... |
unit BIFF_ICompoundStream5;
{
********************************************************************************
******* XLSReadWriteII V5.00 *******
******* *******
******* Copyright(C) 1999,2014 Lars Arvidsson,... |
unit Form.ServerMain;
interface
uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
System.Generics.Collections,
System.StrUtils,
System.JSON,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.StdCtrls,
Vcl.Buttons,
Vcl.ExtCtrls,
Lib.HTTPTy... |
unit uFrmExportBoleto;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
uParentAllFrm, siComp, siLangRT, ExtCtrls, gbCobranca, StdCtrls, Db,
ADODB;
type
TFrmExportBoleto = class(TParentAllFrm)
gbTitulo: TgbTitulo;
gbCobranca: TgbCobranca;
OpenDialog: TOpenD... |
unit uMainForm;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls,
FMX.Controls.Presentation, FMX.ScrollBox, FMX.Memo,
System.Permissions, System.IOUtils, FMX.Memo.Types;
type
TMainForm = clas... |
{
---------------------------------------------------------------------
File - wd_utils.pas
WDUTILS.DLL function declarations for Delphi applications
Copyright (c) 2003 Jungo Ltd. http://www.jungo.com
---------------------------------------------------------------------
}
unit wd_utils;
interface
uses
Win... |
unit MVVM.Binding.LiveBindings.Controls.FMX;
interface
uses
FMX.Grid,
FMX.Grid.Style,
Data.DB,
MVVM.Controls.Platform.FMX,
MVVM.Bindings.LiveBindings;
type
// In order to optimize the refreshes
TBindingHelperForGrid = class helper for TGrid
public
function RemoveDataSetBinding: Boolean;
func... |
unit PatternTests;
interface
uses
System.Classes,
TestFramework,
NtPattern;
type
TPatternTests = class(TTestCase)
private
procedure Same(const value1, value2: String);
procedure Form(count: Integer; plural: TPlural);
procedure Pattern(count: Integer; const format: String; const pattern: String)... |
unit Control1;
interface
uses
Winapi.Windows, System.SysUtils, System.Types, System.Classes, Vcl.Controls,
Vcl.Graphics,
Vcl.StdCtrls, Math;
type
TCross = record
visible: boolean;
end;
TArrow = Record
visible: boolean;
color: TColor;
cross: TCross;
style: TPenStyle;
end;
TItem ... |
unit uMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, DDetours, Vcl.StdCtrls;
type
TMyForm = class(TForm)
private
class var FInit: Boolean;
class constructor Create;
end;
TM... |
unit ThResource;
interface
uses
Messages, SyncObjs, SysUtils, Classes, Controls, Graphics,
ThComponent, ThComponentIterator, ThContent, ThAction;
type
TThResource = class;
//
TThResourceEvent = procedure(inSender: TThResource;
inAction: TThAction) of object;
//
TThResource = class(TThCustomRes... |
{..............................................................................}
{ Summary Create 2 different design rules. }
{ }
{ 1. CreateAMaxMinRule procedure ... |
unit Odontologia.Modelo.Entidades.Producto;
interface
uses
SimpleAttributes;
type
[Tabela('PRODUCTO')]
TPRODUCTO = Class
private
FPRECIO: Currency;
FID: Integer;
FNOMBRE: String;
procedure SetID(const Value: Integer);
procedure SetNOMBRE(const Value: String);
procedure SePRECIO(const... |
unit uFrmStorePrice;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, PAIDETODOS, siComp, siLangRT, StdCtrls, LblEffct, ExtCtrls,
cxStyles, cxCustomData, cxGraphics, cxFilter, cxData, cxEdit, DB,
cxDBData, cxGridLevel, cxGridCustomTableView, cxGridTableView,
... |
unit dubhFunctions;
uses mteFunctions;
// --------------------------------------------------------------------
// AddMessage
// --------------------------------------------------------------------
procedure Log(const s: String);
begin
AddMessage(s);
end;
// ----------------------------------------------... |
unit pd_hcaps;
interface
{$IFDEF FPC} {$mode delphi} {$DEFINE AcqElphy2} {$A1} {$Z1} {$ENDIF}
//=======================================================================
//
// NAME: pd_hcaps.h
//
// SYNOPSIS:
//
// Capabilities definition header file of UEI PowerDAQ DLL
//
//
// DESCRIPTION:
//
// This file... |
unit Server.Wirl.Response;
interface
uses Neon.Core.Attributes;
type
TBaseRESTResponse = class
private
FMessage: String;
FStatus: String;
FHTTPStatusCode: Integer;
class procedure IntBuildResponse(AResponse:TBaseRESTResponse;const ASuccess:Boolean; const AErrorMessage:String='');
public
pro... |
unit FormGame;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, Grids;
type
TGameForm = class(TForm)
timeTimer: TTimer;
bevelText: TBevel;
bevelClock: TBevel;
timeTitle: TLabel;
timeLable: TLabel;
field: TDrawGrid;
... |
unit MainFrm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, StdActns, ActnList, StdCtrls, ComCtrls, ExtCtrls,
DebugMessageSaver;
type
TMainForm = class(TForm)
StatusBar1: TStatusBar;
Panel1: TPanel;
Panel2: TPanel;
Spli... |
unit ToolUnit;
interface
function CountPos(const subtext: string; Text: string): Integer;
function GenerateStringForTest1(signalLetter: String; cnt: integer) : String;
function GenerateStringForTest2(signalLetter: String; cnt: integer;prefix:string) : String;
function InsertLetter(Letter: String; d1,d2:integer... |
unit ibSHDDLFinderActions;
interface
uses
SysUtils, Classes, Menus,
SHDesignIntf, ibSHDesignIntf;
type
TibSHDDLFinderPaletteAction = class(TSHAction)
public
constructor Create(AOwner: TComponent); override;
function SupportComponent(const AClassIID: TGUID): Boolean; override;
proce... |
unit mrSubListPanel;
interface
uses
SysUtils, Classes, Controls, ExtCtrls, Forms, Windows, Graphics, uNTUpdateControl,
uNTDataSetControl, uSystemTypes, uClasseFunctions, uParentCustomList,
uParentCustomSubList, uMRSQLParam, uNTTraceControl, uUserObj;
type
TmrSubListPanel = class(TPanel)
private
FOnStat... |
unit UModelGraph;
interface
Uses SysUtils;
type
TNode = class;
//Класс дуги
TArc = class
Name:string; //Имя дуги
Value:array of Double; //Массив длин дуги
VesPheromon: array of Double; //Массив для хранения весов (количества феромонов)
VesPherononFirst: array of Double; ... |
object ErrorForm: TErrorForm
Left = 0
Top = 0
AutoSize = True
BorderStyle = bsDialog
Caption = 'ERROR'
ClientHeight = 226
ClientWidth = 315
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
Padding.Left = 25
Pa... |
unit Settings_Wnd;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls, SIPVoipSDK_TLB, CheckLst, Vcl.Buttons;
type
TFormSettings = class(TForm)
GroupBoxSound: TGroupBox;
IdentificationGroupBox: TGroupBox;
GroupBoxCodec: TGroupBox;
... |
unit SessionServer;
interface
uses Classes,sysutils,QuickRTTI,QRemote,filectrl,guids,windows;
type
TSessionData = class(TCollectionItem)
private
fVarName,fData:String;
published
property Variable:String read fvarname write fvarname;
property Data:String read fdata write fdata;
end;
TSessionServer =clas... |
unit U_CalculoPrimosThread;
interface
uses
System.Classes, System.SysUtils, Vcl.Dialogs;
type
CalculoPrimosThread = class(TThread)
public
numero : Integer;
private
{ Private declarations }
protected
procedure Execute; override;
function ehPrimo : Boolean;
end;
implementation
{
Import... |
{**************************************************************************************************}
{ }
{ Project JEDI Code Library (JCL) }
{ ... |
unit htPanel;
interface
uses
Windows, SysUtils, Types, Classes, Controls, Graphics,
htInterfaces, htMarkup, htControls;
type
ThtCustomPanel = class(ThtCustomControl)
protected
AlignMax: array[TAlign] of Integer;
AlignSize: array[TAlign] of Integer;
protected
function GetInnerRect: TRect;
... |
unit uselectcolor;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
ExtCtrls;
type
{ TfrmSelectColor }
TfrmSelectColor = class(TForm)
bCancelar: TButton;
bAceptar: TButton;
gbPalette: TGroupBox;
pBotonera: TPanel;
PColorRefer... |
unit uMoveFreeFundsSelect;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxStyles, cxCustomData, cxGraphics, cxFilter, cxData,
cxDataStorage, cxEdit, DB, cxDBData, Buttons, ExtCtrls, cxGridTableView,
ActnList, cxGridLevel, cxClasses, cxControls, cxG... |
{ NAME: Jordan Millett
CLASS: Comp Sci 1
DATE: 9/27/2016
PURPOSE: To create a program using procedures.
}
Program prodemo;
uses
crt;
{Put procedures here}
{ error checks to make sure user input is an integer }
Procedure getInt(var ask:string; num : integer);
var
numStr... |
unit Config;
// TConfiguration class
// ====================
//
// Created by Koen van de Sande
//
// Revision 1.0 (11-06-2001)
//
// New class for Voxel editor: This class keeps track of the used file list
// adding a file is easy: just call AddFileToHistory(FileName), and retrieving
// them can be done th... |
unit ThInput;
interface
uses
SysUtils, Windows, Types, Classes, Controls, Graphics, StdCtrls, ExtCtrls,
ThInterfaces, ThCssStyle, ThTextPaint, ThWebControl, ThTag;
type
TThCustomInput = class(TThWebGraphicControl, IThFormInput)
private
FAutoComplete: Boolean;
FMaxLength: Integer;
FPassword: Bo... |
unit Dialog_MembMenu;
//YXC_2010_04_23_21_28_08
//查看哪个会员办了哪些套餐
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids, BaseGrid, AdvGrid,Class_Context,ADODB,Class_Memb,
Class_MembMenu, AdvObj;
type
TDialogViewMembMenu = class(TForm)
... |
unit uI2XPluginManager;
interface
uses
SysUtils,
UIOptionsBase,
OmniXML,
uI2XConstants,
uHashTable,
uHashTableXML,
uI2XOCR,
uI2XDLL,
uImage2XML,
Classes
;
type
TOnPluginDebugEvent = procedure( Sender : TObject; StatusMessage : string ) of object;
TI2XImageDLLs = class(THash... |
{###############################################################################
https://github.com/wendelb/DelphiOTP
###############################################################################}
unit GoogleOTP;
interface
uses
System.SysUtils, System.Math, Base32U, IdGlobal, IdHMACSHA1, Sys... |
unit CatUtils;
{
Catarinka - Utils
Copyright (c) 2003-2020 Felipe Daragon
License: 3-clause BSD
See https://github.com/felipedaragon/catarinka/ for details
}
interface
{$I Catarinka.inc}
uses
{$IFDEF DXE2_OR_UP}
Winapi.Windows, Messages, System.SysUtils, Vcl.Forms;
{$ELSE}
Windows, Messages, SysUtils, ... |
unit HttpLib;
interface
uses
Classes, IdHttp, IdSSLOpenSSL;
type
TUserAgent = class
private
FTimeout: Integer;
FHttp: TIdHTTP;
FSSL: TIdSSLIOHandlerSocketOpenSSL;
procedure SetTimeout(iTimeout: Integer);
public
constructor Create;
dest... |
unit AST.Parser.Errors;
interface
uses SysUtils, AST.Parser.Messages, AST.Lexer;
type
ECompilerAbort = class(EAbort)
private
FCompilerMessage: TCompilerMessage;
function GetCompilerMessage: PCompilerMessage;
public
constructor Create(const MessageText: string); overload;
constructor Create(con... |
unit AST.Pascal.Intf;
interface
uses
System.SysUtils, System.Classes, System.Types, Generics.Collections,
AST.Intf,
AST.Classes,
AST.Parser.Utils,
AST.Parser.Messages,
AST.Parser.Options;
type
TUnits = TList<TASTModule>;
TEnumDeclProc = procedure (Module: TASTModule; Decl: TASTDeclarat... |
{***************************************************************************}
{ }
{ Delphi Package Manager - DPM }
{ }
{ ... |
unit DataMFirebird.Model;
interface
uses
System.SysUtils, System.Classes, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def,
FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.Phys.FBDef,
FireDAC.VCLUI.Wait, FireDAC.Comp.UI, FireDAC.Phys... |
unit Document;
interface
uses
GrammarChecker;
type
TDocument = class
private
fText: String;
fGrammarChecker: IGrammarChecker;
procedure SetGrammarChecker(const Value: IGrammarChecker);
public
constructor Create(const aText: String);
procedure CheckGrammer;
property Text: string read f... |
unit UTree;
interface
type
TNumbers = array of Integer;
TTree = ^TTreeNode;
TTreeNode = record
data: Integer;
place: Integer;
level: Integer;
left, right: TTree;
end;
TTreeNodes = array of TTreeNode;
function createWithNumbers(numbers: TNumbers):Boolean;
function getTree... |
unit Objekt.SepaDatei;
interface
uses
SysUtils, Classes, Objekt.SepaBSHeaderList;
type
TSepaDatei = class
private
fFilename: string;
fBSHeaderList: TSepaBSHeaderList;
fDateiNummer: Integer;
procedure setFilename(const Value: string);
procedure setFilenummer(aFilename: string);
public
... |
unit SqlMonitor;
interface
uses
Generics.Collections, System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.Layouts, FMX.Memo,
Aurelius.Drivers.Interfaces,
Aurelius.Commands.Listeners;
type
TfrmSqlMonitor = class(TForm, ICommand... |
unit uTestOperacionResta;
{
Delphi DUnit Test Case
----------------------
This unit contains a skeleton test case class generated by the Test Case Wizard.
Modify the generated code to correctly setup and call the methods from the unit
being tested.
}
interface
uses
TestFramework, uOperacion, uOperacion... |
program First;
var
A,B : integer;
Ratio : real;
Ans : char;
begin
repeat
Write('Enter two numbers: ');
Readln(A,B);
if B = 0 then
WriteLn ('Multiplication by zero is not allowed.')
else
begin
Ratio :=A * B;
Writeln('The ratio is ',Ratio:8:2)
end;
Write ('Are you done?');
ReadLn (Ans)
until UpCase(Ans) = 'Y'
end... |
unit ModflowDiscretizationWriterUnit;
interface
uses SysUtils, CustomModflowWriterUnit, PhastModelUnit;
type
TModflowDiscretizationWriter = class(TCustomModflowWriter)
private
procedure WriteDataSet0;
procedure WriteDataSet1;
procedure WriteIDomain;
public
class function Extension: string; over... |
unit UnitPropertiesFMX;
//------------------------------------------------------------------------------
//
// SVG Control 2.0
// Copyright (c) 2015 Bruno Verhue
//
//------------------------------------------------------------------------------
// [The "BSD licence"]
/... |
unit uImportScanThread;
interface
uses
Generics.Collections,
System.Classes,
Winapi.ActiveX,
System.SysUtils,
Dmitry.PathProviders,
Dmitry.PathProviders.FileSystem,
CCR.Exif,
uMemory,
uLogger,
uThreadForm,
uExplorerPortableDeviceProvider,
uAssociations,
uImportPictures... |
unit Invoice.Controller.IniFile.Default;
interface
uses Invoice.Controller.Interfaces, Vcl.Dialogs, System.IniFiles, System.SysUtils, Vcl.Forms;
type
TControllerIniFileDefault = class(TInterfacedObject, iControllerIniFileDefault)
private
FFileName: String;
public
constructor Create... |
program Draw;
uses Crt;
type
TLoc = object
X,Y: Integer;
constructor Init(X1,Y1: Integer);
procedure Point; virtual;
end;
TPoint = object(TLoc)
C: Integer;
constructor Init(X1,Y1,C1: Integer);
procedure Point; virtual;
procedure Draw; virtual;
end;
TRectangle = object(TPoint)
... |
// 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... |
(*
Category: SWAG Title: PARSING/TOKENIZING ROUTINES
Original name: 0002.PAS
Description: PARSEWRD.PAS
Author: SWAG SUPPORT TEAM
Date: 05-28-93 13:54
*)
Program PARSER;
{The Object of this Program is to accept a sentence from the user then to break the
sentence into its Component Words and to display each... |
unit ProjectileControl;
interface
uses
Math, TypeControl, CircularUnitControl, ProjectileTypeControl;
type
TProjectile = class(TCircularUnit)
private
FCarId: Int64;
FPlayerId: Int64;
FProjectileType: TProjectileType;
function GetCarId: Int64;
function GetPlayerId: Int64;
function GetPro... |
unit uI2XOptions;
interface
uses
SysUtils,
Classes,
UIOptionsBase,
OmniXML,
uI2XConstants,
uHashTable,
uHashTableXML,
JclStrings,
uFileDir,
uI2XOCR,
uStrUtil,
uI2XPluginManager,
uI2XDLL
;
const
UNIT_NAME = 'uI2XOptions';
type
TI2XOptions = class(TOptionsController... |
unit FormStepsLibScreen;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.ListBox,
FMX.StdCtrls, FMX.Layouts, FMX.Controls.Presentation, FMX.Objects,
System.Generics.Collections, KrDnceUtilTypes;
type... |
unit UnitPropertyLoadImageThread;
interface
uses
Winapi.Windows,
System.Classes,
System.SysUtils,
Vcl.Graphics,
Dmitry.Graphics.Utils,
uBitmapUtils,
uDBThread,
uMemory,
uRuntime,
uConstants,
uDBForm,
uDBIcons,
uDBEntities,
uThemesUtils,
uImageLoader;
type
TPr... |
unit HashAlgMD4_U;
// Description: MD5 Hash (Wrapper for the MD5 Hashing Engine)
// By Sarah Dean
// Email: sdean12@sdean12.org
// WWW: http://www.SDean12.org/
//
// -----------------------------------------------------------------------------
//
interface
uses
Classes,
HashAlg_U,
HashValue_U,... |
unit uWizImportCatalog;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uParentWizImp, cxStyles, cxCustomData, cxGraphics, cxFilter,
cxData, cxEdit, DB, cxDBData, Provider, DBClient, ImgList, StdCtrls,
ExtCtrls, Grids, cxGridLevel, cxClasses, cxControls, cxGr... |
unit Chapter08._03_Solution1;
{$mode objfpc}{$H+}
interface
uses
Classes,
SysUtils,
DeepStar.Utils,
DeepStar.DSA.Linear.ArrayList;
/// 46. Permutations
/// https://leetcode.com/problems/permutations/description/
/// 时间复杂度: O(n^n)
/// 空间复杂度: O(n)
type
TList_TList_int = specialize TArrayList<TList_int>;
... |
unit YarxiKanji;
{
Kanji
Nomer Номер. В точности соответствует номеру записи, можно игнорировать.
RusNick Имя кандзи на русском, иногда несколько. См. ParseKanjiRusNick
OnYomi Оны, см. ParseKanjiOnYomi
KunYomi Транскрипции чтений кандзи, см. ParseKanjiKunYomi
- кунные чтения... |
unit ThGraphicCtrl;
interface
uses
Classes, Controls, Messages;
type
//:$ Ancestor class for all TurboHtml graphic controls, base class for
//:$ TThStyledGraphicControl.
//:: TThGraphicControl adds auto-sizing and text handling machinery to
//:: TGraphicControl.
TThGraphicControl = class(TGraphicCo... |
unit custom_output;
interface
uses
libFilmFile, Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Grids;
type TFilterOption = (actorFlt, genreFlt);
type
TForm3 = class(TForm)
StringGrid1: TStringGrid;
procedure Fo... |
{ expression: ((22 MOD (2 * 4)) * (21 DIV 3)) }
PROGRAM test_case_2_3;
VAR
a: INTEGER;
b, c: INTEGER;
d: REAL;
x: REAL;
BEGIN
BEGIN
a := (2 * 4);
b := 22 MOD a;
c := 21 DIV 3;
d := b * c;
END;
x := d;
WRITELN(x);
END. |
{ Русификация: 2001-02 Polaris Software }
{ http://polesoft.da.ru }
unit IdResourceStrings;
interface
resourcestring
// General
RSAlreadyConnected = 'Уже соединено.';
RSByteIndexOutOfBounds = 'Индекс Byte вышел за грани... |
unit TuWorkMode_TreeEdit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxGraphics, cxCustomData, cxStyles, cxTL, cxMaskEdit,
cxCheckBox, cxFilter, cxData, cxDataStorage, cxEdit, DB, cxDBData,
cxTextEdit, cxGridLevel, cxGridCustomTableView, cxGridTableView,... |
unit UpdateIntensiveDelphi2020.View;
interface
uses
Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.StdCtrls,
Vcl.Buttons, shellapi, WinInet;
type
TForm1 = class(TForm)
BitBtn1: TBitBtn;
Label1: TLabe... |
unit FrameBaseMod;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ComUnit;
type
TFrame_BaseMod = class(TFrame)
private
FDataState: TDataState;
procedure SetDataState(const Value: TDataState);
protected
Procedure LoadData; Virtual;
... |
//
// VXScene Component Library, based on GLScene http://glscene.sourceforge.net
//
{
Editor window for a material (with preview).
}
unit FMaterialEditorForm;
interface
uses
System.Classes,
System.SysUtils,
System.TypInfo,
System.Types,
System.UITypes,
System.Variants,
FMX.Types,
... |
unit DreamChatMessageBox;
{
Object oriented wrappers over Delphi standard MessageDlg functions.
Useful when we need to change behavior of all MessageDlg calls in application or
add more actions before or after showing the message.
Feel free to extend TDreamChatMessageBox class with new overloaded MessageBox fu... |
unit Pospolite.View.JS.AST.Expressions;
{
+-------------------------+
| Package: Pospolite View |
| Author: Matek0611 |
| Email: matiowo@wp.pl |
| Version: 1.0p |
+-------------------------+
Comments:
...
}
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Pospolite.View.Ba... |
unit RGBSingleDataSet;
interface
uses SingleDataSet, dglOpenGL;
type
TRGBSingleDataSet = class (TSingleDataSet)
private
FLength : integer;
// Gets
function GetData(_pos: integer): single; reintroduce; overload;
function GetRed(_pos: integer): single;
... |
unit ufrmDialogFinalPayment;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ufrmMasterDialog, StdCtrls, ExtCtrls, System.Actions,
Vcl.ActnList, ufraFooterDialog3Button, cxGraphics, cxControls, cxLookAndFeels,
cxLookAndFeelPainters, cxContainer, cxEdit, cxMas... |
(*
Category: SWAG Title: MATH ROUTINES
Original name: 0035.PAS
Description: Change Number Base
Author: JOHN GUILLORY
Date: 11-02-93 05:08
*)
{ Updated NUMBERS.SWG on November 2, 1993 }
{
JOHN GUILLORY
> Can someone please show me how I would convert a base 10 number to base 36?
}
Function BaseChange(Num,... |
Unit DLLDecider;
{$IFDEF FPC}
{$MODE Delphi}
{$ENDIF}
{$Z4}
{$MINENUMSIZE 4}
Interface
Uses
Windows, SysUtils, DataParsers,
IRPMonDll, IRPMonRequest;
Type
_DLL_DECIDER_DECISION = Record
Action : EFilterAction;
HiglightColor : Cardinal;
Decided : ByteBool;
OverrideFilter : ByteBool;
end... |
unit _3d;
{*******************************************************************}
{ _3d : base TYPEs for all 3D routines. }
{ Copyright (c) 1996 Yves Borckmans }
{*******************************************************************}
interface
uses Classes;
TYPE... |
{================================================================================
Copyright (C) 1997-2002 Mills Enterprise
Unit : rmListControl
Purpose : This unit was created for use in the rmDiff controls and has been
found to be usefull in other areas. Basically it's a listbox with
... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
Vcl.StdCtrls;
type
TForm1 = class(TForm)
RedLabel: TLabel;
RedEdit: TEdit;
CalculateButton: TButton;
ResetButton: TButton;
Gree... |
unit uFrmSchedule;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, Mask, DateBox, IniFiles, ComCtrls,
siComp, uPOSServerConsts;
type
TFrmSchedule = class(TForm)
Panel1: TPanel;
Bevel1: TBevel;
BitBtn1: TBitBtn;
Bi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.