text stringlengths 14 6.51M |
|---|
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)
Button1: TButton;
Memo1: TMemo;
procedure Button1Click(Sender: TObject);
private
FA:word;... |
unit uMainForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def,
FireDAC.Stan.Pool, Fir... |
unit strtools;
interface
uses SysUtils;
const
cname_bool: array[boolean]of string = ('Íåò', 'Äà');
function datetime2sql(const Source: TDateTime): string;
function datetime2str(const Source: TDateTime; Fmt: string): string;
function str2bool(Source: string; def: boolean): boolean;
function str2digits... |
unit EntryFormatting;
{
Formats EDICT entries in several common text formats used in these utilities.
}
interface
uses UniStrUtils, Edict;
{
XSLT formatting.
Usage:
xslt := TEntryFormatter.Create('filename.xslt');
Result := xslt.Transform(entry);
Result := xslt.Transform(EdictEntryToXml(entry1) + E... |
{************************************************}
{* *}
{* AIMP Programming Interface *}
{* Menu Wrappers *}
{* *}
{* Artem Izmaylov *}
{* ... |
unit uSubStationAlphaFile;
{ SubStationAlpha file (ssa ver 4 and 4+ (ass)) decoder, encoder and more.
written with GUI interaction in mind.
Copyright (C) 2018 Mohammadreza Bahrami m.audio91@gmail.com
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library Gen... |
unit uEnumContinente;
interface
type
tContinentes = (tcVazio = -1, tcAmerica, tcEuropa, tcAsia, tcAfrica, tcOceania, tcAntartida);
implementation
end.
|
unit VolumeRGBData;
interface
uses Windows, Graphics, Abstract3DVolumeData, RGBSingleDataSet, AbstractDataSet,
dglOpenGL, Math;
type
T3DVolumeRGBData = class (TAbstract3DVolumeData)
private
// Gets
function GetData(_x, _y, _z, _c: integer):single;
function GetDataUn... |
{*******************************************************************************
* uDepartmentsAdd *
* *
* Добавление подразделения ... |
unit BCEditor.TextDrawer;
interface
uses
Winapi.Windows, System.SysUtils, System.Classes, Vcl.Graphics, System.Math, System.Types, System.UITypes,
BCEditor.Utils;
const
CFontStyleCount = Ord(High(TFontStyle)) + 1;
CFontStyleCombineCount = 1 shl CFontStyleCount;
type
TBCEditorStockFontPatterns... |
unit St_sp_Type_Category_Form;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxStyles, cxCustomData, cxGraphics, cxFilter, cxData,
cxDataStorage, cxEdit, DB, cxDBData, cxCheckBox, FIBQuery, pFIBQuery,
pFIBStoredProc, ActnList, FIBDataSet, pFIBDataSet, cxCon... |
unit fUninstall;
interface
uses
ShellAPI, registry, Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TShortcutFolder = (sfCustom, sfStartMenu, sfPrograms, sfDesktop);
TfrmUninstall = class(TForm)
Label1: TLabel;
Label2: TLabel;
... |
unit MyHTTP;
interface
uses IdHTTP, IdInterceptThrottler, Classes, SysUtils, SyncObjs, Strutils,
Variants, Common, IdURI, MyIdURI, idHTTPHeaderInfo, HTTPApp, pac;
type
tIdProxyRec = record
Auth: Boolean;
User, Password, Host: String;
Port: integer;
end;
TMyCookieList = class(TStrin... |
unit uTransactionLogQuery;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uListFormBaseFrm, Buttons, jpeg, ExtCtrls, cxStyles,
cxCustomData, cxGraphics, cxFilter, cxData, cxDataStorage, cxEdit, DB,
cxDBData, Menus, cxLookAndFeelPainters, StdCtrls, cx... |
unit umfmLockboxTests;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uTPLb_Hash, uTPLb_BaseNonVisualComponent, uTPLb_CryptographicLibrary,
StdCtrls, uTPLb_Codec;
type
TmfmLockboxTests = class(TForm)
Hash1: THash;
Button1: TButton;
Cryptographic... |
{
Lua4Lazarus
StringsObject
License: New BSD
Copyright(c)2010- Malcome@Japan All rights reserved.
}
unit l4l_strings;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, lua54, l4l_object;
type
{ TLuaStringsObject }
TLuaStringsObject = class(TLuaObject)
private
... |
// ************************************************************************
// ***************************** CEF4Delphi *******************************
// ************************************************************************
//
// CEF4Delphi is based on DCEF3 which uses CEF3 to embed a chromium-based
// browser in D... |
unit DebugUtils;
interface
uses
System.Types, System.Classes;
//function PtInCircle(const Point, Center: TPointF; Radius: Single): Boolean; overload;
//function PtInCircle(const Point, Center: TPoint; Radius: Integer): Boolean; overload;
procedure Debug(ALog: string); overload;
procedure Debug(ALog: string; args... |
unit PassGen;
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.NumberBox, FMX.EditBox, FMX.SpinBox,
FMX.Platform;
type
TCharacterSet... |
unit CoachMain;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, ExtCtrls,
Menus, IniPropStorage, IniFiles, Roles, StdCtrls, lNetComponents,
LogCompat, DecConsts, lNet, WLan, Main, DOM, XMLRead;
type
TRobotStateForm = record
CBRobotActive, CBForceRo... |
unit LibPQ;
{
LibPQ: libpq.dll wrapper
https://github.com/stijnsanders/DataLank
based on PostgreSQL 10.7
include/libpq-fe.h
}
interface
//debugging: prevent step-into from debugging TQueryResult calls:
{$D-}
{$L-}
type
Oid = cardinal; //Postgres Object ID
POid = ^Oid;
const
... |
unit uFrmBuildGrid;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, CheckLst;
type
TFrmBuildGrid = class(TForm)
pnlBotton: TPanel;
imgBotton: TImage;
btnClose: TBitBtn;
btnApply: TBitBtn;
clbSize: TCheckListBox;... |
unit PlayThread;
interface
uses
Classes, SysUtils, Forms, Jpeg, DateUtils, TopImage, TopFlash, FormCont,
TransEff, TransitionCell;
type
TPlayThread = class(TThread)
private
TopCell: TTransitionCell;
BottomCell: TTransitionCell;
procedure ProcessMessageSleep(ms: Integer);
pro... |
unit ibSHTXTLoaderEditors;
interface
uses
SysUtils, Classes, DesignIntf, TypInfo,
SHDesignIntf, ibSHDesignIntf, ibSHCommonEditors;
type
// -> Property Editors
TibSHTXTLoaderPropEditor = class(TibBTPropertyEditor)
private
FTXTLoader: IibSHTXTLoader;
FValues: string;
procedure Prepa... |
unit School;
interface
/// Перевод десятичного числа в двоичную систему счисления
function Bin(x: int64): string;
/// Перевод десятичного числа в двоичную систему счисления
function Bin(x: BigInteger): string;
/// Перевод десятичного числа в восьмеричную систему счисления
function Oct(x: int64): string;
/// Перев... |
unit UnitPackingTable;
interface
uses
Classes,
Windows,
Sysutils,
ComObj,
ActiveX,
UnitDBDeclare,
uDBConnection,
uDBThread,
uDBForm;
type
TPackingTableThreadOptions = record
OwnerForm: TDBForm;
FileName: string;
OnEnd: TNotifyEvent;
WriteLineProc: TWriteLi... |
unit Server.Register;
interface
uses
Spring.Container
;
function GetContainer: TContainer;
implementation
uses
Spring.Container.Common
, Spring.Logging.Configuration
, Server.Logger
, Server.Repository
, Server.Controller
, Server.Configuration
, Server.WiRL;
var
Container: TContainer;
{===================... |
unit feli_errors;
{$mode objfpc}
interface
type
FeliErrors = class(TObject)
public
const
invalidEmail = 'Invalid Email';
invalidUsernameLength = 'Invalid username length';
invalidPasswordLength = 'Invalid password length';
empty... |
unit BitwiseOrOpTest;
{$mode objfpc}{$H+}
interface
uses
fpcunit,
testregistry,
uIntXLibTypes,
uIntX,
uConstants;
type
{ TTestBitwiseOrOp }
TTestBitwiseOrOp = class(TTestCase)
published
procedure ShouldBitwiseOrTwoIntX();
procedure ShouldBitwiseOrPositiveAndNegativeIntX();
procedure... |
unit Class_TrUtils;
interface
uses
Windows,Classes,SysUtils,ElTree;
type
TTrUtils=class(TObject)
public
class function GetLastCode(ASelfLevel:Integer;ASelfCode,ACodeRule:string;AWithDash:Integer):string;
public
class procedure TreeListType(ACodeRule:string;AWithDash:Integer;AListType:TStri... |
{*******************************************************}
{ }
{ Delphi FireMonkey Platform }
{ }
{ Copyright(c) 2011-2013 Embarcadero Technologies, Inc. }
{ ... |
unit cilk;
interface
uses windows,SysUtils,Classes;
type
ICilk = interface;
Targs = record
ICilk : ICilk;
function spawn<T>(a:T; const p : TProc<T>) : ICilk;overload;
function spawn<T1,T2>(a1:T1; a2:T2; const p : TProc<T1,T2>) : ICilk; overload;
end;
ICilk = interface
... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
PythonEngine, StdCtrls, ComCtrls, ExtCtrls, PythonGUIInputOutput,
AtomPythonEngine;
type
TForm1 = class(TForm)
Memo1: TMemo;
PythonModule1: TPythonModule;
Panel1: TPanel;
Button1: TButton;
... |
(*
Category: SWAG Title: FILE HANDLING ROUTINES
Original name: 0039.PAS
Description: Checking File Open
Author: GUY MCLOUGHLIN
Date: 11-21-93 09:30
*)
{
From: GUY MCLOUGHLIN
Subj: Checking file open
I'm looking for a way of detecting if a file is currently open,
so my ExitProc can close it when open and no... |
unit UDCrossTabGroups;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, UCrpe32;
type
TCrpeCrossTabGroupsDlg = class(TForm)
pnlCrossTabGroups: TPanel;
editFieldName: TEdit;
lblFieldName: TLabel;
lblGOCondition: TLabel;
cbCondition:... |
// "Surface3D" produces several perspective plots of a surface described
// mathematically as z = f(x,y) = x * y * (x^2 - y^2) / (x^2 + y^2).
// Hidden lines are not removed.
// Copyright (C) 1982, 1987, 1995, 1998 Earl F. Glynn, Overland Park, KS
// All Rights Reserved. E-Mail Address: EarlGlynn@att.net
unit Scree... |
unit colorTable;
{$ifdef fpc}{$mode delphi}{$endif}
interface
uses
Classes, SysUtils, dialogs, userdir, prefs, IniFiles, define_types;
const //maximum number of control points for color schemes...
maxNodes = 100;
kPaintHideDefaultBehavior = -1;
kPaintHideDarkHideBright = 0;
kPaintHideDarkShowBrig... |
unit ibSHDependencies;
interface
uses
SysUtils, Classes, StrUtils, Contnrs,
SHDesignIntf, ibSHDesignIntf, ibSHDriverIntf, ibSHComponent;
type
TibBTDependenceDescr = class
private
FObjectType: Integer;
FObjectName: string;
FFieldName: string;
public
property ObjectType: Intege... |
unit InflatablesList_ItemShop_Update;
{$INCLUDE '.\InflatablesList_defs.inc'}
interface
uses
InflatablesList_ItemShop_Base;
const
// how many times to repeat update when it fails in certain ways
IL_LISTFILE_UPDATE_TRYCOUNT = 5;
type
TILItemShop_Update = class(TILItemShop_Base)
public
Function Update:... |
unit FrmSelectReport;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, ComCtrls, StdCtrls, Buttons, StrUtils;
type
TFMSelectReport = class(TForm)
pnlWork: TPanel;
pnlButton: TPanel;
lvFileList: TListView;
btnOk: TBitBtn;
... |
{-------------------------------------------------------------------------------
Copyright 2012-2018 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://ww... |
//
// Generated by JavaToPas v1.4 20140515 - 182714
////////////////////////////////////////////////////////////////////////////////
unit android.widget.ShareActionProvider;
interface
uses
AndroidAPI.JNIBridge,
Androidapi.JNI.JavaTypes,
Androidapi.JNI.GraphicsContentViewText,
android.widget.ShareActionProvide... |
{* ***** BEGIN LICENSE BLOCK *****
Copyright 2010 Sean B. Durkin
This file is part of TurboPower LockBox 3. TurboPower LockBox 3 is free
software being offered under a dual licensing scheme: LGPL3 or MPL1.1.
The contents of this file are subject to the Mozilla Public License (MPL)
Version 1.1 (the "License"); you may ... |
{
Delphi Thread Unit by Aphex
http://iamaphex.cjb.net
unremote@knology.net
}
unit ThreadUnit;
interface
uses
Windows;
type
TThread = class
private
FHandle: THandle;
FThreadID: Cardinal;
FCreateSuspended: Boolean;
FTerminated: Boolean;
FSuspended: Boolean;
FFreeOnTerminate: Boolea... |
unit Forms.Main;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, System.Actions, Vcl.ActnList, Vcl.StdCtrls, Vcl.ExtCtrls
, Server.WiRL
;
type
TFrmMain = class(TForm)
TopPanel: TPanel;
StartButton: TB... |
unit Physics;
{$mode objfpc}{$H+}
interface
uses SysUtils;
// The approximate amount of points we want to calculate
const num_points_target = 400;
// The parameters required by the model
type Parameters = record
mass: double; // Mass in kg
impulse_force: double; // Initial force in N
impul... |
unit Pospolite.View.Drawing.DrawerD2D1;
{
+-------------------------+
| Package: Pospolite View |
| Author: Matek0611 |
| Email: matiowo@wp.pl |
| Version: 1.0p |
+-------------------------+
Comments:
Some parts of the code are based on Codebot Pascal Library by Anthony Walter
... |
unit processor;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, Process, LCLType;
type
{ TForm2 }
TForm2 = class(TForm)
memOutput: TMemo;
procedure run();
procedure makeProxy();
procedure readOutput(S: TStringList... |
unit Demo.GeoChart.Coloring;
interface
uses
System.Classes, System.Variants, Demo.BaseFrame, cfs.GCharts;
type
TDemo_GeoChart_Coloring = class(TDemoBaseFrame)
public
procedure GenerateChart; override;
end;
implementation
procedure TDemo_GeoChart_Coloring.GenerateChart;
var
Chart: IcfsGChartProducer; ... |
//---------------------------------------------------------------------------
// This software is Copyright (c) 2015 Embarcadero Technologies, Inc.
// You may only use this software if you are an authorized licensee
// of an Embarcadero developer tools product.
// This software is considered a Redistributable as ... |
{: Octree raycast/mesh sample.<p>
Demonstrating how to find the intersection point between eye-screen ray
and a high poly mesh with an Octree property.
To see the performance difference:
-move mouse around on the scene with octree disabled (default)
-check the "octree enabled" box. Note the f... |
unit AppSettings;
{$mode objfpc}{$H+}
//========================================================================================
//
// Unit : AppSettings.pas
//
// Description : Add " SQLiteLibraryName := cstrSQLiteLibraryName; "
//
// Called By : AppInit : Initialize
// Main : TfrmMain.mnuSetting... |
unit EmployeeEdit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls,
MaskEdit, EditBtn, Spin, ExtDlgs,
// Подключаем модули проекта
Data;
type
{ TForm2 }
TForm2 = class(TForm)
BtnOk: TButton;
BtnCancel: TButton;
EDivision: TComboB... |
unit OpenDocumentsView;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls,
JvTabBar,
LrOpenDocumentsController;
const
TM_CLOSE = WM_APP + $02;
type
TOpenDocumentsForm = class(TForm)
DocumentTabs: TJvTabBar;
DocumentPanel: TPanel;
... |
//
// Generated by JavaToPas v1.5 20180804 - 083225
////////////////////////////////////////////////////////////////////////////////
unit android.graphics.ImageDecoder_DecodeException;
interface
uses
AndroidAPI.JNIBridge,
Androidapi.JNI.JavaTypes,
android.graphics.ImageDecoder_Source;
type
JImageDecoder_Deco... |
{*******************************************************************************
Title: T2TiPDV
Description: Biblioteca de funções.
The MIT License
Copyright: Copyright (C) 2014 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (... |
//
// VXScene Component Library, based on GLScene http://glscene.sourceforge.net
//
{
Ivory shader simulate Ivory material.
At this time only one light source is supported
}
unit VXS.GLSLIvoryShader;
interface
{$I VXScene.inc}
uses
System.Classes,
VXS.Scene, VXS.CrossPlatform, VXS.Ba... |
// Class 3D Points Detector for Voxel Section Editor III
// Made by Banshee at 01/09/2009
unit ThreeDPointsDetector;
// This class was created to detect repetitive 3D vertices. Use GetIDFromPosition.
// If the Id is the same that you provided, the vertex that you are checking is
// legitimate. Otherwise, it is r... |
unit wordaddons;
interface
{=== Стили линий таблицы ===}
const wdLineStyleDashDot=5; // A dash followed by a dot.
const wdLineStyleDashDotDot=6; // A dash followed by two dots.
const wdLineStyleDashDotStroked= 20; // A dash followed by a dot stroke, thus rendering a border similar to a barber pole.
const wd... |
unit htReg;
interface
procedure Register;
implementation
uses
Classes,
htColumns, htRows, htLayout, htAutoTable, htPanel,
htLabel, htImage,
htDb;
{$R TurboHtml5Palette.res}
procedure Register;
begin
RegisterComponents('TurboHtml5', [
ThtColumns, ThtRows, ThtLayout, ThtAutoTable,
ThtPa... |
unit ufrmJurnal;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, ufrmMasterBrowse, cxGraphics,
cxControls, cxLookAndFeels, cxLookAndFeelPainters, dxBarBuiltInMenu, cxStyles,
cxCustomData, cxFilter, cxData, cx... |
unit uFrameGrid;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uFrameBaseGrid, cxStyles, cxCustomData, cxGraphics, cxFilter,
cxData, cxDataStorage, cxEdit, DB, cxDBData, ADODB, cxGridLevel,
cxClasses, cxControls, cxGridCustomView, cxGridCustomTableV... |
unit brProlanisU;
interface
uses Dialogs, Classes, brCommonsU, System.SysUtils, System.StrUtils;
type
brProlanis = class(bridgeCommon)
private
kd_obat_sk : Integer;
procedure masukkanDelPeserta(id : string);
procedure masukkanDelKegiatan(id : string);
procedure masukkanGetProlanisKelompok(jen... |
(**
This module contains a form for requesting the subdirectory for files.
@Author David Hoyle
@Version 1.0
@Date 16 Feb 2018
**)
Unit JVTGRelativePathForm;
Interface
Uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
Vcl.Graphics,
Vcl.Controls,
... |
{
@abstract(Provides Old Format 1.8 highlighters import)
@authors(Vitalik [just_vitalik@yahoo.com])
@created(2005)
@lastmod(2006-06-30)
}
{$IFNDEF QSynUniFormatNativeXml18}
unit SynUniFormatNativeXml18;
{$ENDIF}
{$I SynUniHighlighter.inc}
interface
uses
{$IFDEF SYN_CLX}
QClasses,
QGraphics,
... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: Base classes for GLScene.<p>
<b>History : </b><font size=-1><ul>
<li>05/10/08 - DanB - Creation, from GLMisc.pas + other places
</ul></font>
}
unit GLBaseClasses;
interface
uses Classes, GLPersistentClasses, GLCrossPlatform;
type
... |
unit ReportsDataM;
interface
uses
SysUtils, Classes, frxClass, frxExportBaseDialog, frxExportPDF, frxDBSet,
Data.DB, MemDS, DBAccess, Uni, frxGradient, siComp, frxRich,
TypInfo;
type
TReportsDM = class(TDataModule)
RepLng: TUniQuery;
RepLngrptObj: TWideStringField;
RepLngobjEN: TWideStringField;
... |
unit uPlotClass;
{
*****************************************************************************
* This file is part of Multiple Acronym Math and Audio Plot - MAAPlot *
* *
* See the file COPYING. ... |
function GetToggleState(Key: integer): boolean;
//
// Testa se uma certa tecla está pressionada ou não
//
begin
Result := Odd(GetKeyState(Key));
end;
end; |
unit uShellUtils;
interface
{$WARN SYMBOL_PLATFORM OFF}
uses
Windows,
Classes,
Forms,
UnitINI,
uConstants,
Registry,
SysUtils,
uLogger,
uMemory,
uTranslate,
uDBBaseTypes,
uAssociations,
Controls,
ShellApi,
ShlObj,
Dmitry.Utils.System,
Dmitry.Utils.Files,
uR... |
unit MagentoHTTP;
interface
uses
REST.Response.Adapter, Data.DB, Datasnap.DBClient, REST.Types, REST.Client,
Data.Bind.Components, Data.Bind.ObjectScope, System.JSON, Magento.Interfaces,
System.Classes;
type
TMagentoHTTP = class (TInterfacedObject, iMagentoHTTP)
private
FRestClient: TRE... |
{
$Project$
$Workfile$
$Revision$
$DateUTC$
$Id$
This file is part of the Indy (Internet Direct) project, and is offered
under the dual-licensing agreement described on the Indy website.
(http://www.indyproject.org/)
Copyright:
(c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reser... |
{**********************************************************************
Package pl_Shapes.pkg
This unit is part of CodeTyphon Studio (http://www.pilotlogic.com/)
***********************************************************************}
unit TplFillShapeUnit;
interface
uses
Messages, LMessages, Types, LCLType, Sy... |
unit Tests;
interface
uses SimpleDS, SqliteConnection;
type
// Record to model user data
TUser = record
id : string[36];
firstName : string[40];
lastName : string[150];
birtDate : TDateTime;
active : Boolean;
phoneNumber : string[12];
end;
// Class responsible to test th... |
{***************************
公共函数
服务端和客户端都能调用的公共的函数
mx 2014-11-28
****************************}
unit uPubFun;
interface
uses
Windows, Classes, Db, DBClient, SysUtils, Variants;
function StrToOleData(const AText: string): OleVariant; //STRING 的内容流化到 OLEVARIANT 中
function OleDataToStr(const AData: OleVariant): strin... |
unit Unit1;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.Objects, FMX.Edit,
FMX.Menus, FMX.StdCtrls, FMX.Controls.Presentation;
type
TForm1 = class(TForm)
DistanceLabel: TLabel;
DistanceEdit: TEdit;... |
unit Objekt.DHLUpdateShipmentOrderRequestAPI;
interface
uses
SysUtils, Classes, geschaeftskundenversand_api_2,
Objekt.DHLVersion, Objekt.DHLShipmentorder;
type
TDHLUpdateShipmentOrderRequestAPI = class
private
fRequest: UpdateShipmentOrderRequest;
fDHLVersion: TDHLVersion;
fDHLShipmentorder: TDHL... |
unit MixiPage;
interface
uses
Classes, SysUtils, Crypt, superxmlparser, superobject;
type
TMixiContent = class
public
constructor Create(json: ISuperObject);
function HasUpdates(json: ISuperObject): Boolean; virtual;
function GetUpdateMessage(json: ISuperObject): Str... |
namespace Environment2;
//Sample Mono console application
//by Brian Long, 2009
//App is compiled against Mono assemblies and reports various bits of environment information
//Does Win32/Unix differentiation using PlatformID check
//Does Linux/OS X differentiation using a Unix P/Invoke call
interface
us... |
unit Form_ListProd;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, RzPanel, ExtCtrls, Grids, AdvObj, BaseGrid, AdvGrid, RzButton,
FormEx_View,Class_Prod,Uni,UniConnct, RzRadChk;
type
TFormListProd = class(TFormExView)
Grid_PROD: TAdvStringGri... |
unit uAutoFhtMultiplier;
{$I ..\Include\IntXLib.inc}
interface
uses
Math,
SysUtils,
uMultiplierBase,
uDigitOpHelper,
uIMultiplier,
uFhtHelper,
uConstants,
uStrings,
uIntX,
uIntXLibTypes;
type
/// <summary>
/// Multiplies using FHT.
/// </summary>
TAutoFhtMultiplier = class sealed(TMulti... |
(* MP_SS 03.05.17 *)
(* Syntax Analysator (scanner) für mini pascal*)
UNIT MP_SS;
INTERFACE
VAR
success: BOOLEAN;
PROCEDURE S;
IMPLEMENTATION
USES
MP_Lex;
FUNCTION SyIsNot(expectedSy: SymbolCode): BOOLEAN;
BEGIN
success := success AND (sy = ... |
unit uNewMerchandizeGroup;
interface
uses
SysUtils, Classes, uTSBaseClass, uNewMerchandize, uNewUnit, uCompany, udmMain;
type
TNewMerchandizeGroup = class(TSBaseClass)
private
FCompany: TCompany;
FDefaultMarkUp: Double;
FID: Integer;
FKode: string;
FKodeRekening: string;
FMerchandizeUni... |
unit VH_Global;
interface
Uses Windows,Graphics,Palette,OpenGL15,VH_Types,Math3d,Voxel,TimerUnit,HVA;//,OpenGLWrapper;
Const
ENGINE_TITLE = 'Voxel HVA Engine';
ENGINE_VER = '1.52';
ENGINE_BY = 'Stucuk and Banshee';
RemapColourMap : array [0..8] of TVector3b =
(
( //DarkRe... |
// This demo is part of the GLSCene project
// Advanced GLBlur demo
// by Marcus Oblak
unit Unit1;
interface
uses
SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, GLLCLViewer, GLScene, GLObjects, GLHUDObjects,
GLGeomObjects, GLCadencer, ExtCtrls, GLBlur, GLTexture, ComCtrls,
StdCtrl... |
unit Sorter;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
type
TSorterSortAction=(off,asc,desc);
TSorterDelDuplicates=(skip,DelAllDups);
TSorterOptions = record
SortAction: TSorterSortAction {enum: off/ asc/ desc};
DelDuplicates: TSorterDelDuplicates {enum: skip, DelAllDups};
end;
functi... |
unit UConfigJson;
interface
uses
UConfigBase, Ils.Kafka, JsonDataObjects, System.SysUtils, SyncObjs, Windows;
type
TConfigJson = class(TConfigBase)
private
FConfigFileName: string;
protected
FCriticalSection: TCriticalSection;
FJson: TJsonObject;
function Reload: Boolean; override;
funct... |
unit UpProlongBonusesMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxLookAndFeelPainters, StdCtrls, cxButtons, cxTextEdit,
cxMaskEdit, cxDropDownEdit, cxCalendar, cxLabel, uFControl,
uLabeledFControl, uSpravControl, cxControls, cxContainer, cx... |
unit StrategyControl;
interface
uses
CarControl, WorldControl, GameControl, MoveControl;
type
TStrategy = class
public
procedure Move(const AMe: TCar; const AWorld: TWorld; const AGame: TGame; const AMove: TMove); virtual; abstract;
end;
implementation
end.
|
{Program example;
var x,y:integer;
function gcd(a,b:integer):integer;
begin
if b=0 then gcd:=a
else gcd:=gcd(b,a mod b);
end;
begin
read(x,y);
write(gcd(x,y));
end.}
Program example;
const c1=0.0;
var x,y,tmp:integer;
function gcd(a,b:integer):integer;
begin
if b=0 then gcd:=a
else gcd:=gcd(b,a mod b);
end;
begin... |
{$B-}
unit tests;
{$IFDEF FPC}
{$MODE Delphi}
{$ENDIF}
interface
procedure tests();
implementation
uses
RegExpr;
procedure tests();
var
r : TRegExpr;
procedure Check (ASubExprMatchCount, APos, ALen : integer);
begin
if (r.SubExprMatchCount <> ASubExprMatchCount)
or (r.MatchPos [0] <> APos) or (... |
{
Tryb blokowy ECB (Delphi)
implementacja trybu blokowego ECB
(szyfrowanie danych algorytmem pseudoDES)
autor: Rafal Toborek (toborek.info)
}
function ecb(sTekst: string; sKlucz: string; byDlugoscBloku: byte): string;
var
iX, iY: integer;
sA, sB: string;
begin
iX:= 0;
sA:= '';
sB:... |
(*
Category: SWAG Title: DATE & TIME ROUTINES
Original name: 0055.PAS
Description: Find Difference b/w 2 Time Strings
Author: SCOTT STONE
Date: 05-26-95 23:30
*)
{From: Scott Stone <Scott.Stone@m.cc.utah.edu> }
Procedure CompTimes(t1,t2 : string);
Var
h1,h2,m1,m2,s1,s2 : string;
x0,x1,x2,x3,x4,x5,sec0,... |
{***************************************************************************}
{ }
{ DUnitX }
{ }
{ ... |
unit ExclusiveOrOpTest;
{$mode objfpc}{$H+}
interface
uses
fpcunit,
testregistry,
uIntXLibTypes,
uIntX,
uConstants;
type
{ TTestExclusiveOrOp }
TTestExclusiveOrOp = class(TTestCase)
published
procedure ShouldExclusiveOrTwoIntX();
procedure ShouldExclusiveOrPositiveAndNegativeIntX();
... |
program ext26(input, output);
{}
{Initialized Variable Testing - Record constants}
{}
type
intrecord = record
x, y : integer;
u, v : integer;
end;
realrecord = record
s, t : real;
x : real;
end;
ostype = (VM370, MVS, CPM80, MSDOS);
complicated = record
os : ostype;
num_users : integer;
co... |
unit UnitStringPromtForm;
interface
uses
System.SysUtils,
System.Classes,
Winapi.Windows,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.StdCtrls,
Dmitry.Controls.WatermarkedEdit,
uDBForm,
uFormInterfaces;
type
TFormStringPromt = class(TDBForm, IStringPromtForm)... |
unit UFrmCadastroFilial;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UFrmCRUD, Menus, Buttons, StdCtrls, ExtCtrls
, UFilial
, URegraCRUDFilial
, UUtilitarios
, URegraCRUDPais
, URegraCRUDCidade
, URegraCRUDEstado
, URegraCRUDEmpresaMatriz
;
t... |
unit Wwgttbl;
interface
uses WinTypes, WinProcs, Classes, Graphics, Forms, Controls, Buttons,
StdCtrls, db, dbtables, dialogs, sysutils, ExtCtrls;
type
TGetTableForm = class(TForm)
OKBtn: TBitBtn;
CancelBtn: TBitBtn;
Bevel1: TBevel;
DBListBox: TListBox;
TableListBox: TListBox;
Label1: TLa... |
unit TestThItemGroupingHistory;
interface
uses
TestFramework, BaseTestUnit, FMX.Types, FMX.Forms,
System.UITypes, System.Types, System.SysUtils, FMX.Controls, System.UIConsts;
type
// #275 Grouping이 Undo / Redo 시에도 적용되어야 한다.
TestTThItemGrouppingHistory = class(TBaseCommandHistoryTestUnit)
published
// ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.