text stringlengths 14 6.51M |
|---|
namespace Sunko;
type
///Ключевое слово
Keyword = class(WordType)
private static fKeyWords := new string[]('sunko', 'null', 'loop', 'do', 'while', 'repeat', 'until', 'for', 'if', 'then', 'else', 'end', 'exit', 'label', 'goto', 'to', 'downto', 'var');
public static function Contains(value: string) := ... |
unit Main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, sqlite3conn, sqldb, sqldblib, db, FileUtil, Forms,
Controls, Graphics, Dialogs, StdCtrls, DBGrids, ZConnection, ZDataset;
type
{ TForm1 }
TForm1 = class(TForm)
btCarregar: TButton;
btAvancar: TButton;
btRetroceder: TButton;
b... |
unit MyLayout;
interface
uses
System.SysUtils, System.Classes, System.Types, System.UITypes, System.UIConsts,
FMX.Types, FMX.Controls, FMX.StdCtrls, FMX.Objects, FMX.Layouts, FMX.Graphics;
type
TMyLayout = class(TStyledControl)
private
// Variables Objetos
_textTempMin, _textTempMedium,... |
unit LGSTypes;
{$mode delphi}
interface
type
TRow = record
Leading0: cardinal;
Colums: array of integer;
end;
TLGS = record
M, N: cardinal;
Rows: array of TRow;
end;
TStep = record
l: TLGS;
Note: String;
class operator Equal(l1, l2: TStep): boolean;
end;
function isNumeric(s... |
unit ExportTabularLVLI;
uses ExportCore,
ExportTabularCore,
ExportJson,
ExportTabularLOC;
var ExportTabularLVLI_outputLines: TStringList;
var ExportTabularLVLI_LOC_outputLines: TStringList;
function initialize(): Integer;
begin
ExportTabularLVLI_outputLines := TStringList.create();
ExportTab... |
unit DomainObjectCompiler;
interface
uses
DataReader,
TableColumnMappingsUnit,
DomainObjectBaseUnit;
type
TDomainObjectCompiler = class
protected
FColumnMappings: TTableColumnMappings;
function CanBeValueAssignedToObjectProperty(
const ObjectPropertyName: String;
Value: V... |
unit TelegAPI.UpdateParser;
interface
uses
System.Classes,
System.SysUtils,
TelegAPI.Base,
TelegAPI.Bot,
TelegAPI.Types,
TelegAPI.Types.Enums;
type
TTgBotUpdateParser = class(TtgAbstractComponent)
private
protected
procedure EventParser(AUpdates: TArray<ItgUpdate>); virtual;
procedure Type... |
program draw;
{$IFNDEF HASAMIGA}
{$FATAL This source is compatible with Amiga, AROS and MorphOS only !}
{$ENDIF}
{$MODE OBJFPC}{$H+}{$HINTS ON}
{$UNITPATH ../../../Base/CHelpers}
{$UNITPATH ../../../Base/Trinity}
{$UNITPATH ../../../Base/Sugar}
//{$IFDEF AMIGA} {$UNITPATH ../../../Sys/Amiga} {$ENDIF}
//{$IFDEF ... |
unit uObjeto;
{$MODE Delphi}
interface
uses LCLIntf, LCLType, LMessages, Graphics;
type
TFrame = record
Atual, Inicial, Final: integer;
Largura, Altura: integer;
Taxa: single;
end;
TObjeto = class
private
bmp: TBitmap;
bmp_mascara: TBitmap;
mascara: TBitmap;
ftempo_movimento: si... |
unit ufrmQueryConfig2;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, System.Math,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls;
type
TfrmQueryConfig2 = class(TForm)
pnlSelect: TPanel;
btnOk: TButton;
pnlContro... |
{ Routines for writing to display list files.
*
* Quick reference of routines for writing to the output file:
*
* DISPL_FILE_OPEN (FNAM, OS, STAT)
*
* WLINE (OS) - Write current output line to file, reset line to empty.
*
* BLANKLINE (OS) - Write blank line unless at start of file.
*
* WVSTR (OS... |
{ 控件: KsChineseSpell
功能:获取汉字首字母
作者:
修改人:曾创能[2001.3.29]
注释:
汉字分为一级汉字和二级汉字,一级汉字(常用)是按拼音来编排的,
因此提取首字母较容易;二级汉字(不常用)按笔画结构来编排的,这里
将二级汉字按首字母顺序放置于资源文件中。找不到该汉字用"!"代替首
字母。
}
unit KsChinese... |
unit UPortOptions;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls,
Math, FastDIB, FastFX, FastSize, FastFiles, FConvert, FastBlend, Utils,
StrUtils, System.json, Vcl.Button... |
(*
Copyright (c) 2012-2014, 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 ... |
unit UMain_Client;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DBXDataSnap, DBXCommon, DSHTTPCommon, DB, SqlExpr, StdCtrls,DBXJSON;
type
TMemoCallback = class(TDBXCallback)
public
constructor Create;
function Execute(Const arg:TJSONValue):T... |
program simplemenu;
{$IFNDEF HASAMIGA}
{$FATAL This source is compatible with Amiga, AROS and MorphOS only !}
{$ENDIF}
{
Project : simplemenu
Topic : how to use the menu system with a window under all OS versions.
Source : RKRM
}
{$MODE OBJFPC}{$H+}{$HINTS ON}
{$UNITPATH ../../../Base/CHelpers}
{$UNI... |
unit AT.DNA.VCL.Dlg.ProxySettings;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
AT.DNA.VCL.Dlg.Base, cxGraphics, cxLookAndFeels,
cxLookAndFeelPainters, Vcl.Menus, dxSkinsCore, dxSkinBlueprint,
dxSkinCara... |
unit DUnitX.Tests.TestNameParser;
interface
uses
DUnitX.TestFrameWork;
type
[TestFixture]
TTestNameParserTests = class
public
[TestCase('SingleName1','Test.Namespace.Fixture.Method')]
[TestCase('SingleName2','Test.Namespace.Fixture.Method,')]
[TestCase('SingleName3',' Test.Namespace.Fixture.Meth... |
unit pGCReportBillingDialogs_TLB;
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this... |
unit UColorPoint;
interface
uses
Windows, Classes,StrUtils, Controls, StdCtrls, SysUtils, xmldom, XMLIntf, msxmldom, XMLDoc, UTypedefs, contnrs, Dialogs;
type
TColorRecord = record
_x,_v0, _v1, _v2, _v3, _midpoint, _sharpness:single;
end;
TColorPoint = class
private
_x,_v0, _v1, _v2, _v3, _midpoint, _sharpne... |
unit uPrincipal;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.Buttons,
PngSpeedButton;
type
TfrmPrincipal = class(TForm)
pnlBarraLateral: TPanel;
pnlConteudo: TPane... |
unit uClienteModel;
interface
uses
SysUtils;
type
TCliente = class
private
FDocumento: String;
FID: integer;
FNome: String;
FTipo: String;
FTelefone: String;
procedure SetNome(const Value: String);
public
property ID:integer read FID write FID;
property Nome:String rea... |
unit AT.Vcl.DX.NativePrintPane;
interface
uses
Winapi.ShlObj,
System.Classes, System.UITypes, System.SysUtils,
Vcl.Controls, Vcl.ImgList,
cxControls, dxShellBreadcrumbEdit, dxLayoutLookAndFeels,
cxShellListView, cxShellTreeView, cxShellControls, dxRibbon,
dxRichEdit.Control, dxPSCore, AT.Vcl.DX.NativePrin... |
unit backup;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
stdCtrls, LZRW1KH, FileCtrl;
type
TPercentage = 0..100;
TBackupMode = (bmAll, bmIncremental);
TRestoreMode = (rmAll, rmNoOverwrite, rmNewer, rmExisting, rmExistingNewer);
TProgressEvent ... |
unit fSwapLevels;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, BCData;
type
TfrmSwapLevels = class(TForm)
lblLevel1: TLabel;
lblLevel2: TLabel;
cbLevel1: TComboBox;
cbLevel2: TComboBox;
cmdOK: TButton;
cmdCancel: TButton;
... |
unit IdHMAC;
interface
uses
IdGlobal, IdObjs, IdSys, IdHash;
type
TIdHMACKeyBuilder = class(TIdBaseObject)
public
class function Key(const ASize: Integer) : TIdBytes;
class function IV(const ASize: Integer) : TIdBytes;
end;
TIdHMAC = class
private
protected
FHashSize: Inte... |
unit customspeechtotext;
{$mode delphi}
interface
uses
Classes, SysUtils, And_jni, {And_jni_Bridge,} AndroidWidget;
type
{Draft Component code by "LAMW: Lazarus Android Module Wizard" [7/13/2020 15:23:13]}
{https://github.com/jmpessoa/lazandroidmodulewizard}
{jControl template}
TOnBeginOfSpeech=procedure(Sende... |
unit help;
{ SimThyr Project }
{ A numerical simulator of thyrotropic feedback control }
{ Version 4.0.6 (Merlion) }
{ (c) J. W. Dietrich, 1994 - 2022 }
{ (c) Ludwig Maximilian University of Munich 1995 - 2002 }
{ (c) Ruhr University of Bochum 2005 - 2022 }
{ This unit draws a help window with clickable options to ... |
unit PedidoPresenter;
interface
uses PedidoMVPIntf, PedidoIntf, Pedido, Generics.Collections;
type
TPedidoPresenter = class(TInterfacedObject, IPedidoPresenter)
private
FModel: IPedido;
FView: IPedidoView;
protected
function GetModel: IPedido;
procedure SetModel(const Value: IPedido);
funct... |
unit mbfavicongetter;
{$MODE objfpc}{$H+}
interface
uses
Classes, SysUtils, Graphics,
uCEFInterfaces, uCEFRequest, uCEFUrlRequest, uCEFUrlrequestClient, uCEFTypes;
type
TIconReady = procedure(const Success: Boolean; const Icon: TIcon; const Url: string) of object;
{ TFaviconGetter }
TFaviconGetter = cla... |
unit BranchTest;
interface
uses dbTest, dbObjectTest, TestFramework, ObjectTest;
type
TBranchTest = class (TdbObjectTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
end;
TBranch = class(TObjectTest)
function InsertDefault: integer; override;
public
function I... |
unit uFrmCadastroItem;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls, Vcl.Grids,
Vcl.ComCtrls, uItemController, uDmItem, Data.DB, Vcl.DBGrids, uItemModel,
System.UITypes, uPedidoI... |
unit MainFormU;
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, FireDAC.... |
{*******************************************************}
{ }
{ Delphi REST Client Framework }
{ }
{ Copyright(c) 2013 Embarcadero Technologies, Inc. }
{ ... |
unit TSTORgbTrans;
interface
Uses
HsInterfaceEx, TSTORgb, TSTOBsvIntf;
Type
ITSTORgbTransformation = Interface(IInterfaceEx)
['{4B61686E-29A0-2112-AD5C-206BFEEF2940}']
Function Transform(ASrc : ITSTORgbFile; ATrans : IBsvSubData) : ITSTORgbFile;
End;
TTSTORgbTransformation = Class(TObject)
Pu... |
unit UShellView;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ComCtrls, StdCtrls, ToolWin, ShlObj, ImgList,ShellUtils, KeyCap,
ExtCtrls, TreeItems,UFolderItem;
type
TForm1 = class(TForm)
ListView: TListView;
CoolBar1: TCoolBar;
ToolBar2: TToolBar;
T... |
unit core_defered_shaders;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils,core_shader_program,dglOpenGL,VectorGeometry,VectorTypes,core_lights,
core_gBuffer,core_types,core_camera;
type
rAtten = record
Constant:GLint;
Linear:GLint;
Exp:GLint;
end;
{ TShaderChunkDS } //ds is for deferre... |
// ******************************************************************
//
// Program Name : AT Library
// Platform(s) : Android, iOS, Linux, MacOS, Windows
// Framework : Console, FMX, VCL
//
// Filename : AT.Config.Storage.SQLite3.pas
// Date Created : 12-AUG-2016
// Author : Matthew Vesperman... |
unit XMLURLClientDataSet;
interface
uses Classes, XMLClientDataSet, IdHTTP;
type
TXMLURLClientDataSet = class(TXMLBaseClientDataSet)
private
{ Private declarations }
FHttp: TIdHttp;
FURL: String;
FActive: Boolean;
Function GetURL: String;
Procedure SetURL(URL: String);
Procedure S... |
Program P121205;
{Tinh so giao diem cua n duong thang khong trung nhau}
Uses Crt;
Const fn = 'P1212\DUONG.INP';
fg = 'DUONG.OUT';
max = 100;
exp = 0.0001;
Var a,b,c: array [1..max] of integer;
n : integer;
sgd : integer;
Procedure Nhap;
Var f: text; i: integer;
Beg... |
unit uProduto;
interface
uses
System.SysUtils;
Type
TProduto = class
private
FId: Integer;
FNome: String;
FDescricao: String;
FCustoCompra: Currency;
FDespesa: Currency;
FPreco : Currency;
FQuantidade : Double;
FMargem: Double;
procedure SetID(const Value: Integer);
pro... |
unit Helper.TFDCustomManager;
interface
uses
FireDAC.Comp.Client;
type
TFDCustomManagerHelper = class helper for TFDCustomManager
public
function GetConnectionNamesAsArrray: TArray<string>;
end;
implementation
function TFDCustomManagerHelper.GetConnectionNamesAsArrray: TArray<string>;
var
i: Integer;... |
unit IDESpyMain;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, ComCtrls, ExtCtrls,ExptIntf;
type
TdlgIDESpyMain = class(TForm)
Panel1: TPanel;
Tree: TTreeView;
BitBtn1: TBitBtn;
Button1: TButton;
Button2: TButton;
procedure F... |
{$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... |
unit FuncScripts;
{**********************************************
Kingstar Delphi Library
Copyright (C) Kingstar Corporation
<Unit>FuncScripts
<What>基于函数的脚本分析
<Written By> Huang YanLai (黄燕来)
<History>
**********************************************}
interface
uses SysUtils,Classes;
type
TSc... |
unit UImportPropData;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls,
UContainer, ExtCtrls, RzPanel, RzRadGrp, UForms;
type
TImportPropData = class(TAdvancedForm)
edtDataFile: TEdit;
rdoGpImputSource: TRadioGroup;
btnBrowseImport: TButt... |
unit FConfig;
interface
const
CONFIG = '.cfg';
type
TConfig = class
private
public
function get_Hresolution() : integer;
function get_Wresolution() : integer;
function get_windowed() : boolean;
function get_fullscreen() : boolean;
function get_nick() : s... |
unit tiFileSyncReader_TST;
{$I tiDefines.inc}
interface
uses
TestFramework
,tiFileSyncReader_Abs
{$IFDEF UseRemoteSync}
,tiFileSyncReader_Remote_Svr
{$ENDIF}
;
const
cHTTPPort = 81;
type
TTestFileReaderAbs = class(TTestCase)
private
FReaderName : string;
FReaderClass : TtiFileSyncReaderCl... |
unit uLibraryEditor;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, VirtualTrees, ImgList,
uSetting,
uLibrary,
uLibraryData;
type
TNodeSelectEvent = procedure(Sender: TObject; const aLibraryData: TLibraryData) of object;
{ TLibraryEditor }
TLibraryEditor = class(TVirtualStringTree)
private... |
unit MUIClass.Tree;
{$mode ObjFPC}{$H+}
interface
uses
Classes, SysUtils, fgl, mui, AGraphics,
MUIClass.Base, MUIClass.Group, MUIClass.Gadget, MUIClass.DrawPanel;
type
TMUITreeNode = class;
TMUITreeNodeList = specialize TFPGObjectList<TMUITreeNode>;
{ TMUITreeNode }
TMUITreeNode = class
private
F... |
unit AdicionalItem;
interface
uses
SysUtils, Contnrs, MateriaPrima;
type
TAdicionalItem = class
private
Fcodigo_item: integer;
Fcodigo: integer;
Fcodigo_materia: integer;
Fflag: string;
FMateria: TMateriaPrima;
Fquantidade: integer;
Fvalor_unitario :Real;
function GetMater... |
// see ISC_license.txt
{$I genLL.inc}
unit XMLParser;
interface
uses
Runtime, XMLLexer;
const
PARS_STARTTAG = 1;
PARS_EMPTYELEMENT = 2;
type
TXMLParser = class(TParser)
public
function twoWay(): integer;
procedure pars_document;
procedure pars_element;
//procedure pars_startTag;
procedu... |
unit UVideoForm4;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls,
Forms, Dialogs,QuartzTypeLib_TLB, Menus,AMovieUtils, AbilityManager,
ExtCtrls;
type
TfmVideo = class(TForm)
PopupMenu1: TPopupMenu;
miPlay: TMenuItem;
miPause: TMenuItem;
miStop: TMenuItem;
N1: TMen... |
(*
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 QuerySaveForm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, FileCtrl;
type
TfrmQuerySave = class(TForm)
cmdProceed: TButton;
Label1: TLabel;
Label2: TLabel;
rbtOverwrite: TRadioButton;
rbtDontSave: TRadioButton;
rbtNewDirectory:... |
{******************************************************************************}
{ }
{ Icon Fonts ImageCollection: An extended ImageCollection for Delphi/VCL }
{ to use VirtualImageList with Icon Fonts ... |
unit MainFormU;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, SmsBO, Vcl.ExtCtrls;
type
TTestConsoleForm = class(TForm)
Button1: TButton;
Memo1: TMemo;
LabeledEdit1: TLabeledEdit;... |
unit ServerMethodsUnit1;
interface
uses System.SysUtils, System.Classes, Datasnap.DSServer, Datasnap.DSAuth,
Data.DBXMSSQL, Data.FMTBcd, Datasnap.Provider, Data.DB, Data.SqlExpr;
type
TServerDelphiConference = class(TDSServerModule)
sqlConexao: TSQLConnection;
sqlClientes: TSQLDataSet;
dsp... |
unit uType;
{ Unit khusus menyimpan tipe bentukan dan
fungsi-fungsi yang berkaitan dengan tipe }
interface
{ KAMUS }
const
NMax = 100; { ukuran maksimum array }
errorMsg = 'Perintah tidak ada / tidak tersedia untuk akun Anda.';
type
tanggal = record
d, m, ... |
unit main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TForm1 = class(TForm)
Panel1: TPanel;
Memo1: TMemo;
CloseTButton: TButton;
ConvertBatchTButton: TButton;
SingleFileTGroupBox: TGroupBox;
Di... |
unit UReadMe;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2007 by Bradford Technologies, Inc. }
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,... |
unit LogWSIntf;
interface
uses InvokeRegistry, Types, XSBuiltIns, CommunicationObj;
type
ILogWS = interface(IInvokable)
['{C615C512-39F3-4624-9998-CD947ABF9877}']
function Get_MaxLogEntries: Integer; safecall;
function LogMessageTitles: TWideStringDynArray; safecall;
function LogMessage(Ms... |
{*******************************************************************************
Description: TALWinHttpClient is a is easy to use WinHTTP-based HTTP client
component which allows to post and get any data from the Web via HTTP protocol.
The TALWinHttpClient use WinHTTP and is recommended in server process. In cli... |
unit uF10_istirahat;
interface
uses uP1_TipeBentukan;
procedure mainNamaTemplate(ID : integer; //hapus parameter yang tidak perlu
var dataBahanMentah : tabelBahanMentah;
var dataBahanOlahan : tabelBahanOlahan;
var dataResep : tabelResep;
var dataSimulasi : tabelSimulasi;
... |
unit FluentSQLConnection;
interface
uses
DB, Classes;
type
TFluentSQLConnection = class;
TFluentSQLQuery = class
protected
FQuery: TComponent;
FFluentSQLConnection: TFluentSQLConnection;
public
function CreateQuery: TComponent; virtual; abstract;
function Open: TFluentSQLQuery; virtual; ab... |
unit NtUtils.Security.Capabilities;
{
This module adds support for representing and recognizing capability SIDs.
Adding the module as a dependency enhances the following functions on
Windows 10 and above:
- RtlxStringToSid
- RtlxLookupSidInCustomProviders
- LsaxLookupSids
}
interface
uses
NtUtils;
... |
unit uPSI_Util;
{
This file has been generated by UnitParser v0.7, written by M. Knight
and updated by NP. v/d Spek and George Birbilis.
Source Code from Carlo Kok has been used to implement various sections of
UnitParser. Components of ROPS are used in the construction of UnitParser,
code implementing the class wrapp... |
unit FMonitorDeTeste;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, DUnitX.TestFramework,
DUnitX.Loggers.Xml.NUnit, uMukaConsoleLogger, Vcl.ComCtrls, Vcl.ExtCtrls;
type
TForm2 = cla... |
unit Tones;
interface
uses
Crt, Graph,
GrafBits;
procedure TonesRoutines;
procedure NormalColours;
const
Hues: array[1..7] of Colour = (Gr, Aq, Bl, Pu, LPu, Re, Ye);
type
RGBRec = record
RedVal, GreenVal, BlueVal: integer;
Name: String;
ColorNum: integer;
end;
const
... |
unit UArcher;
interface
uses
W3Time,
USpawner, UGameVariables, UTextures, UScalingInfo;
type TArcher = class(TObject)
public
X, Y : float;
XVol, YVol : float; // The predicted x and y velocities of shots
CanShoot : boolean;
constructor Create(newX, newY : float);
procedure Up... |
unit UWoche;
{
Wochenanalyse:
Betrachtet die zutreffenden Wochentage und errechnet eine Wahrscheinlichkeit anhand
des Anteils aller Tage desselben Wochentages im Statistikzeitraum, für den ein Treffer
gemeldet wurde.
}
{$mode objfpc}{$H+}
interface
uses
SysUtils
{ Eigen },
UAspekt;
type
TWoche = cl... |
{*******************************************************}
{ }
{ Delphi FireMonkey Notification Service }
{ }
{ Helpers for Android implementations }
{ ... |
unit UtilFiles;
interface
uses classes;
type
TFileStreamNamed = class (TFileStream)
private
FFileName: string;
public
constructor Create(const FileName: AnsiString; Mode: Word);
property FileName: string read FFileName write FFileName;
end;
function TempFileName: string;
function TempFileStr... |
unit Bibel;
{ Cluster: Bibel
}
{ Explanation:
Konstanten, Typen und Klassen für Bibel-Programme.
Die Bibel umfaßt Altes Testament (AT) und Neues Testament (NT).
Als Textbasis dient die Online Bible (OLB).
Features:
- Get_Book_of
Klassen:
- TBiblestructure (Beschreibt die Kapitel/Vers-Strukt... |
unit TrackEditFm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,
Project, Board, TrackEditor, ComCtrls, ToolWin, StdCtrls, ImgList, ExtCtrls,
ActnList, Buttons;
type
TTrackEditForm = class(TForm)
ImageList1: TImageList;
Panel1: TPanel... |
unit ormbr.model.mestre;
interface
uses
Classes,
DB,
Generics.Collections,
/// orm
ormbr.mapping.attributes,
ormbr.types.mapping,
ormbr.mapping.register,
/// Modelos
ormbr.model.detalhe,
ormbr.model.cliente,
ormbr.types.blob;
type
[Entity]
[Table('Tab_Mestre', '')]
[... |
unit Obj;
interface
uses
SysUtils, Classes, Graphics, Controls;
type
TObj = class(TGraphicControl)
private
FCaption: String;
FColor: TColor;
FRad: Integer;
procedure SetCaption(Value: String);
procedure SetRad(Value: Integer);
procedure SetColor(Value: TColor);
protect... |
unit OrderExternalTest;
interface
uses dbTest, dbMovementTest, ObjectTest;
type
TOrderExternalTest = class (TdbMovementTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
end;
TOrderExternal = class(TMovementTest)
private
function InsertDefault: integer; override;
... |
function CharToInt(letter: char): integer;
var ordinal: integer;
begin
ChartoInt := -1;
ordinal := ORD(letter);
if (ordinal >= 65) AND (ordinal <= 90) then
begin
ChartoInt := ordinal - 64;
end;
if (ordinal >= 97) AND (ordinal <= 122) then
begin
ChartoInt := ordinal - 96;
end;
if (ordinal = 3... |
{ Routines that manipulate items in a list.
}
module displ_item;
define displ_item_new;
define displ_item_list;
define displ_item_vect;
define displ_item_image;
%include 'displ2.ins.pas';
{
********************************************************************************
*
* Subroutine DISPL_ITEM_NEW (EDIT)
*
* Cr... |
unit TinyCadRead;
interface
uses Read, SqliteWrap, Rotations, NativeXML, Types, Contnrs;
type TTinyCadReader = class( TSymbolLibraryReader )
protected
FileName : string;
// database access
database : TSqliteDatabase;
table : TSqliteTable;
NameIndex : integer;
ReferenceIndex... |
unit JsonFileConfigFactoryImpl;
interface
{$MODE OBJFPC}
{$H+}
uses
DependencyIntf,
DependencyContainerIntf,
FactoryImpl;
type
{------------------------------------------------
factory class for TFanoConfig
@author Zamrony P. Juhara <zamronypj@yahoo.com>
-------------------------------... |
unit FTransmit;
interface
uses
FUnit, Types, FNetworkTypes;
const
TURN_LENGTH = 10; // ms
TURN_DELAY = 3; // turn
var
GlobalUnitID : integer; //!\\ Global !
procedure InitNetwork();
procedure broadcast();
procedure broadcastAnswer(ip : string);
// Orders sent to server...
// ...to ... |
{******************************************************************************}
{ }
{ Indy (Internet Direct) - Internet Protocols Simplified }
{ ... |
unit HorizontalBoxLayoutManager;
interface
uses
BoxLayoutManager,
Windows,
LayoutManager,
LayoutItem,
Controls,
SysUtils,
Classes;
type
THorizontalBoxLayoutManager = class (TBoxLayoutManager)
protected
function GetHeight: Integer; override;
procedure SetLeft(const Value: Integer)... |
unit PositionTest;
interface
uses dbTest, dbObjectTest, TestFramework, ObjectTest;
type
TPositionTest = class(TdbObjectTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
end;
TPosition = class(TObjectTest)
function InsertDefault: integer; override;
public
func... |
unit DragAndDrop_u;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, Buttons, CommCtrl;
type
TDlgOperation = class(TForm)
Label1: TLabel;
Separator: TBevel;
BtnOpen: TSpeedButton;
BtnAdd: TSpeedButton;
BtnCopy: TSpeedButt... |
{***************************************************************************}
{ }
{ DUnitX }
{ }
{ ... |
unit UnitAgenda;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Objects,
FMX.Controls.Presentation, FMX.StdCtrls, FMX.Layouts, FMX.ListBox, uCustomCalendar;
type
TFrmAgenda = class(TForm)
La... |
unit EspecificacaoProdutoFornecedorPorCodigos;
interface
uses
Especificacao, Pedido;
type
TEspecificacaoProdutoFornecedorPorCodigos = class(TEspecificacao)
private
FCodigoFornecedor :Integer;
FCodigoProduto :Integer;
public
constructor Create(pCodigoFornecedor, pCodigoProduto :integer);
pub... |
unit unAplConfiguracoes;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, Vcl.Imaging.pngimage, AdvAppStyler, AdvEdit,
AdvMoneyEdit, AdvPanel, AdvOfficeImage, Vcl.ExtCtrls, AdvOfficeButtons,
AdvGlowButton, AdvGroupBox;
type
Tfm... |
unit uUtils;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Crt;
function FillSpaces(s: string; destLen: byte): string;
function GetToken(s: string; tokenNum: word): string;
implementation
function FillSpaces(s: string; destLen: byte): string;
begin
while Length(s) < destLen do
... |
unit LoginRTDialog;
interface
uses
Windows,
SysUtils, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, ExtCtrls;
type
TFLogin = class(TForm)
Label2: TLabel;
Label3: TLabel;
Edit2: TEdit;
Edit3: TEdit;
Image1: TImage;
Button1: TButton;
Button2: TBut... |
unit uEditingFormPool;
(*
Является контейнером форм редактирования объектов. Если форма пока не создана,
то после ее создания и размещения в контейнере, она выводится на экран.
Если форма уже создана, то отображается на экране.
*)
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Controls, Forms,
uLi... |
unit DIOTA.IotaAPICoreImpl;
interface
uses
System.Classes,
REST.Client,
IPPeerClient,
DIOTA.IotaAPICore,
DIOTA.IotaLocalPow,
DIOTA.Dto.Response.GetNodeInfoResponse,
DIOTA.Dto.Response.GetNeighborsResponse,
DIOTA.Dto.Response.AddNeighborsResponse,
DIOTA.Dto.Response.RemoveNeighborsResponse,
DIOTA.D... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Spin, Mask, ToolEdit;
type
TForm1 = class(TForm)
Button1: TButton;
Label1: TLabel;
SpinEdit1: TSpinEdit;
FilenameEdit1: TFilenameEdit;
Button2: TButton;
... |
UNIT ColorWheel;
(* *)
(* AUTHOR: Michael G. Slack (slack@ibm.net) DATE WRITTEN: 1998/02/09 *)
(* ENVIRONMENT: Speedsoft Sibyl. *)
(* *)
(*... |
unit IdTestStack;
interface
uses
IdTest,
IdStack;
type
TIdTestStack = class(TIdTest)
published
procedure TestConversionSmallInt;
end;
implementation
procedure TIdTestStack.TestConversionSmallInt;
//the problem here is that (without the cast) smallint is being cast to int64
//is smallint ... |
unit UTestConsts;
interface
uses Math;
const
// variants
Var_0 = 'str0';
Var_1 = MaxInt;
Var_2 = MinExtended;
Var_3 = 30192.3680555556; // 1982-08-29 08:50
Var_4 = True;
// strings
Str_0: string = 'str0';
Str_1: string = 'str1';
Str_2: string = 'str2';
Str_3: string = 'str23';
Str_4: string ... |
unit tiFileSyncCML_BOM;
{$I tiDefines.inc}
interface
uses
tiBaseObject
,tiFileSync_Mgr
,tiFileName_BOM
;
type
TtiFileSyncCML = class( TtiBaseObject )
private
FFSM : TtiFileSyncMgr;
procedure DoLog( const pMessage : string; pAppendToPrevRow: boolean);
procedure DoUpdateProgress(AFile: TtiFil... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.