text stringlengths 14 6.51M |
|---|
{$A+,B-,D+,E-,F-,G+,I+,L+,N-,O-,P-,Q+,R-,S+,T+,V+,X+,Y+}
{$M 16384,0,655360}
Unit SVGA;
Interface
Const
ButtonL = 0; ButtonR = 1; ButtonM = 2;
OFF = 0; ON = 1;
Type
RGB = Record
Red, Grn, Blu : byte
End;
PaletteRegister = Array[0..255] of RGB;
SetTypes = ( Futur... |
unit uJServices;
interface
Function ServiceChangeStartType(Machine, ServiceName : String; StartType : Integer) : Boolean;
function ServiceDelete(Machine, ServiceName : String): boolean;
Function ServiceDisabled(SMachine, ServiceName : String) : Boolean;
function ServiceExists(Machine, ServiceName : String): boolean;
... |
Function Compare(A, B : char) : RelationTYPE;
{Represents the relative alphabetical ordering of A and B.}
Begin
If A = B
Then Compare := LessThan
Else Compare := GreaterThan
End; {Compare}
|
unit HLVM.Types.BytecodeObserver;
interface
uses
HLVM.Static.Command,
HLVM.Types.AbstractReader,
HLVM.Types.Ordinal,
// DScript.Lexer,
HLVM.Static.Utilities,
System.SysUtils,
System.IOUtils,
System.StrUtils,
HCmdAPI.CmdIO,
HCmdAPI.ColorConsole;
type
THByteCodeObserver_Callback = procedure(const... |
unit RegUtils;
interface
uses
// VCL
Windows, Classes, SysUtils,
// 3'd
TntRegistry, TntClasses;
procedure DeleteRegKey(const KeyName: WideString);
implementation
procedure DeleteRegKey(const KeyName: WideString);
var
i: Integer;
Reg: TTntRegistry;
Strings: TTntStrings;
begin
Reg := TTntRegistry.Cr... |
unit uShrinkPanel;
interface
uses
Windows, Messages, Classes, Graphics, Controls, Forms, ExtCtrls,
JvComponent, JvButton, JvMenus, Buttons, JvSpeedButton, JvBitBtn,
ComCtrls, Menus, JvExControls, uConsts;
const
WM_DESTRUYEME = WM_USER + $0001;
type
TDockForm = class (TCustomDockForm)
protected
pro... |
program Pas2JS_WebGL_Terrain;
uses
Terrain, Noise, Types, Mat4, GLUtils, GLTypes,
SysUtils,
BrowserConsole, Web, WebGL, WebGL2, JS, Math;
var
gl: TJSWebGLRenderingContext;
shader: TShader;
projTransform: TMat4;
viewTransform: TMat4;
modelTransform: TMat4;
var
debugConsole: TJSElement;
... |
unit FHIR.Transformer.MarkdownPreview;
{
Copyright (c) 2011+, HL7 and Health Intersections Pty Ltd (http://www.healthintersections.com.au)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Re... |
{-----------------------------------------------------------------------------
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.html
... |
unit uIndividualCustomer;
interface
uses uICustomer, System.SysUtils;
type
TIndividualCustomer = class(TInterfacedObject, ICustomer)
private
FName: string;
FType: string;
function getName: string;
procedure setName(const Value: string);
function getStrType: string;
procedure setStrType(AT... |
{
Copyright (c) 2016, Vencejo Software
Distributed under the terms of the Modified BSD License
The full license is distributed with this software
}
unit ooFS.Archive.Copy_test;
interface
uses
SysUtils,
ooFS.Archive, ooFS.Archive.Copy,
ooFS.Directory,
ooFSUtils,
{$IFDEF FPC}
fpcunit, testregistry
{$ELS... |
unit ApiUtils;
interface
uses
REST.Client, System.SysUtils, REST.Json, IPPeerClient,
REST.Response.Adapter;
Type
TFirebaseApi = class
private
FClient: TRESTClient;
FRequest: TRESTRequest;
FResponse: TRESTResponse;
FAdapter: TRESTResponseDataSetAdapter;
public
constructor Create(const AB... |
unit changeEvent;
interface
uses Generics.Collections;
type
// databaze funkci k zavolani pri urcite udalosti (napr. pri obsazeni useku se vola uzavreni prejezdu do jizdni cesty)
TChangeEventFunc = procedure(Sender: TObject; data: Integer) of object;
TChangeEvent = record
func: TChangeEventFunc;
data... |
unit hxViewerGrids;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, StdCtrls, Grids,
hxGlobal, hxHexEditor, hxViewerItems;
type
TViewerGrid = class(TCustomDrawGrid)
private
FHexEditor: THxHexEditor;
FOldEditText: String;
FEditText: String;
FOwnsData: Boolean;
function GetDataCount:... |
unit uItemsDefines;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, uCollectionBase, System.Actions,
Vcl.ActnList, Vcl.ComCtrls, Vcl.ToolWin, Vcl.ExtCtrls, Vcl.StdCtrls,
JD.InnoSetup, JD.InnoSetup.Common;
ty... |
{*******************************************************************************
* *
* ksAwsHash - Amazon Web Service Hashing Functions *
* ... |
unit fmuMiscParams;
interface
uses
// VCL
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Spin, ExtCtrls,
// Tnt
TntClasses, TntStdCtrls, TntRegistry,
// This
FiscalPrinterDevice, untUtil, FptrTypes, PrinterParameters;
type
{ TfmZReport }
TfmMiscParams... |
unit uClasseSpeedButton;
interface
uses
Vcl.Forms, Vcl.Buttons, System.StrUtils, System.SysUtils;
type
TEvento = procedure (Value : TObject) of object;
type
TClasseSpeedButton = class (TSpeedButton)
private
FNome: string;
FCaption: string;
FParent: TScrollbox;
FFlat: Boolean;
... |
unit uMinhaClasse;
interface
uses
System.SysUtils,REST.Json.Types;
type
TMinhaClasse2 = class;
TMinhaClasse = class
private
[JSONName('FsNome')]
FsNome: string;
[JSONName('FdData')]
FdData: Double;
[JSONName('FtHora')]
FtHora: Double;
[JSONName('FoMinhaClasse2... |
unit Soccer.Rule.Chooser;
interface
uses
System.SysUtils,
System.Generics.Collections,
Soccer.Exceptions,
Soccer.Rule.Abstract,
Soccer.Preferences,
Soccer.Voting.RulesDict;
type
ISoccerVotingRuleChooser = interface
function ChooseRule(ADomainName: string; ARuleName: string)
: ISoccerVoting... |
unit uLoteDepositoModel;
interface
{
CREATE TABLE LOTE_DEPOSITO (
ID_LOTE_DEPOSITO VARCHAR(36) NOT NULL,
ID_ORGANIZACAO VARCHAR(36) NOT NULL,
LOTE VARCHAR(30) NOT NULL,
DATA_REGISTRO DATE NOT NULL,
DATA_ATUALIZACAO DATE,
STATUS VARCHAR(30) NOT NULL,
... |
unit UDescontoPedido;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, Mask, rxToolEdit, rxCurrEdit;
type
TFDescontoPedido = class(TForm)
Desc1: TCurrencyEdit;
Desc2: TCurrencyEdit;
Desc3: TCurrencyEdit;
Desc4: TCurrencyEdit;
... |
{$IFDEF FPC}
{$MODE DELPHI}
{$ENDIF FPC}
unit uPlayersDashboard;
interface
uses Classes, Grids, Controls, SysUtils, iPexeso;
type
TPlayersDashBoard = class(TStringGrid)
private
fActivePlayer: Integer;
fPlayers: IIterable<IPlayer>;
public
function GetPlayers: IIterable<IPlayer>;
function GetActi... |
unit EngineShaderBuilder;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, typinfo, dglOpenGL;
type
EGameShaderCreationException = Exception;
TLine = array of char;
TLineArray = array of TLine;
TLineLengthArray = array of GLint;
TEngineShaderType = (stVertex, stFragment, stGeometry, stTessellation);
... |
Program
MatrixPower;
Const
// константа,обозначающая количество строк и столбцов в квадратной матрице
n : integer = 4;
Type
// тип - матрица двумерная
t = 0..n - 1;
TMiniArray = array[t] of real;
TArray = array [t] of TMiniArray;
Var
// основная матрица
myMatrix : T... |
{
Fast Memory Manager: Messages
Italian translation by Luigi D. Sandon.
}
unit FastMM4Messages;
interface
{$Include FastMM4Options.inc}
const
{The name of the debug info support DLL}
FullDebugModeLibraryName32Bit = 'FastMM_FullDebugMode.dll';
FullDebugModeLibraryName64Bit = 'FastMM_FullDebugMode64.dll';
... |
{-------------------------------------------------------------------------------
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/
Softwar... |
UNIT ComplexNumbers;
INTERFACE
TYPE TComplex = RECORD
r,i: real;
END;
PROCEDURE MakeComplex(r,i: real; VAR c: TComplex);
PROCEDURE GetReal(c: TComplex; VAR r: real);
PROCEDURE GetImaginary(c: TComplex; VAR i: real);
PROCEDURE GetModulus(c: TComplex; VAR m: real);
PROCEDURE MakeConjugate(VAR c: TComplex);
... |
unit CMovementFrameUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, CBaseFrameUnit, ImgList, StdCtrls, ExtCtrls, VirtualTrees,
ActnList, CComponents, CDatabase, Menus, VTHeaderPopup, GraphUtil, AdoDb,
Contnrs, PngImageList, CImageListsUnit, CDataObjects,... |
/// <summary>
/// 实现参考https://segmentfault.com/a/1190000004881457
/// </summary>
unit uArabicNumAndChineseNumInterchange;
interface
uses
Generics.Collections;
const
// 单个数字转换用数组
chnNumChar: array[0..9] of string = ('零', '一', '二', '三', '四', '五', '六', '七', '八', '九');
// 节权位数组
chnUnitSection: ... |
Program Summer(input, output);
{Uses a recursive function for addition.}
Var
Bound : integer;
Function Sum(Limit : integer) : integer;
{Recursively sums the posive numbers 1 through Limit.}
Begin
If Limit = 1
Then Sum := Limit
Else Sum := Limit + Sum(Limit - 1)
End; {Sum}
Begin
write('I add 1..n the h... |
unit Rotator;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, CoreUtils, GfxUtils;
const
ROTATOR_MAX_FRAMES = 50;
type
(* external counter since we're not stealing the entity only to put it back *)
TChosenOne = record
m_e: IWorldEntity;
m_counter: integer;
end;
TRotator = class(AGrabber)... |
{ *******************************************************************************
Copyright 2010-2015 Daniele Teti
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://www.apache... |
program simp1;
const tol = 1.0E-6;
var sum,upper,lower : real;
function fx(x: real): real;
begin
fx:=1.0/x
end;
procedure simps(
lower,upper,tol : real;
var sum : real);
var i : integer;
x,delta_x,even_sum,
odd_sum,end_sum,
sum1 : real;
pieces : integer;
begin
pieces:=2;
delta_x:=(upper-lower)/pie... |
unit RTORM.PersistenceMechanism.TextFiles;
interface
uses
RTORM.PersistenceMechanism, RTORM.PersistentObject;
type
ITextFile = interface(IPersistencemechanism)
['{8F319649-8E0A-47A8-917B-2453FEE487A9}']
procedure SaveObject(aObj : IPersistentObject);
end;
TTextFile = class(TPersistenceMechanism, ITe... |
unit uConexao;
interface
uses SysUtils,forms,IniFiles,Controls;
type
TConexao = class
private
FCaminhoIni : string;
Ini : TIniFile;
FHost : string;
FAlias : string;
FCamDados ... |
(*======================================================================*
| TDialogEditor component |
| |
| Dialog editor component. Ouch. This one hurt! |
*==================... |
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)
btnDeleteRole: TButton;
btnUpdate: TButton;
btnGetRole: TButton;
edtRoleName: TEdit;
Lab... |
unit uIniStream;
interface
uses
Classes, inifiles;
type
TIniStream = class(TCustomIniFile)
private
FSections: TStringList;
FTargetStrings: TStrings;
function AddSection(const Section: string): TStrings;
procedure LoadValues(AStream: TStream);
public
constructor Create(AStream: TStream);
... |
unit lisya_highlighter;
(*
This is an example how to implement your own highlighter.
This example does allow to specify different colors for
- text (defaults to not-highlighted)
- spaces (defaults to silver frame)
- words, separated by spaces, that start with a,e,i,o,u (defaults to bold)
- the word "not"... |
unit LA.Data.Link.Tracker;
interface
uses
System.Classes,
System.Generics.Defaults, System.Generics.Collections,
System.SysUtils, System.DateUtils,
System.Math,
LA.Types.Tracker,
LA.Data.Source;
type
/// <summary>
/// Линк/адаптер к Трекеру
/// </summary>
TLATrackerLink = class(TLADataLink)
... |
unit CheckPrevious;
interface
uses Windows, SysUtils;
function RestoreIfRunning(
const AppHandle: THandle;
MaxInstances: integer = 1): boolean;
implementation
type
PInstanceInfo = ^TInstanceInfo;
TInstanceInfo = packed record
PreviousHandle: THandle;
RunCounter: integer;
end;
va... |
unit OposDriver;
interface
uses
// VCL
SysUtils,
// This
OposFiscalPrinter_1_11_Lib_TLB, OposCashDrawer_1_11_Lib_TLB, Opos;
procedure FreeCashDrawer;
procedure FreePosPrinter;
procedure FreeFiscalPrinter;
function PosPrinter: TOPOSPOSPrinter;
function CashDrawer: TOPOSCashDrawer;
function FiscalPrinter: TOP... |
unit RTORM.UniDirectionalAssociationMap;
interface
uses
RTORM.Maps.Attributes, Spring.Collections;
type
TCardinality = (cnOneToOne, cnOnetoMany);
IUniDirectionalAssociationMap = interface
function GetCardinality: TCardinality;
function GetIsDeleteAutomatic: Boolean;
function GetIsMust: boolean;
... |
unit ScreenShotMaker;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, Jpeg, ShellAPI,Registry ;
const
WM_TASKBARICON = WM_USER + 1;
type
TForm1 = class(TForm)
btnstart: TButton;
tmr1: TTimer;
cleaner: TTimer;
procedure b... |
{-----------------------------------------------------------------------------
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.html... |
unit ItemFolhaPagamentoDominio;
interface
uses
ADODB, ItemFolhaPagamentoEntidade, ComandoSQLDominio;
type
TItemFolhaPagamentoDominio = class
private
Conexao: TADOConnection;
FEntidade: TItemFolhaPagamentoEntidade;
FEntidadeDAO: TExecutaComandosSQLDominio;
public
function Salvar(var... |
unit UntClientSession;
interface
uses
SysUtils,
IdGlobal,
UntSipHash;
type
ESessionInitError = class (Exception) end;
// Keeps track with Session parameters and Session on Arduino
TClientSession = class
private
FSipKey : TSipKey;
FUserId: integer;
FSessionId: integer;
FUserPassword: int... |
{-----------------------------------------------------------------------------
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.html... |
unit URBInterfacePermission;
interface
{$I stbasis.inc}
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
URBMainGrid, Db, IBCustomDataSet, IBQuery, DBCtrls, StdCtrls, Buttons,
ExtCtrls, dbgrids, IBDatabase, IB, Menus , tsvDbGrid, IBUpdateSQL,
UMainUnited;
type
TfmRBInterfacePe... |
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics,
Dialogs, ExtCtrls, Menus,
dglOpenGL,
oglContext, oglShader, oglVector, oglMatrix;
type
{ TPlanet }
TPlanet = class(TObject)
private
type
TMesh = record
Vector: array of TFace2D;
... |
unit uTipoImposto;
interface
type
TTipoImposto = (
tpiNaoConfigurado,
tpiICMS,
tpiICMSST,
tpiICMSUF,
tpiIPI,
tpiPIS,
tpiPISST,
tpiCOFINS,
tpiCOFINSST,
tpiISSQN,
tpiII);
function TipoImpostoToStr(const t: TTipoImposto): string;
function StrToTipoImposto(const s: strin... |
unit View.Base;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs;
type
TFormBase = class(TForm)
procedure FormKeyPress(Sender: TObject; var Key: Char);
private
{ Private declarations }
public
{ P... |
program SumDiag;
uses
crt,
Matrix2D;
var
A: Matrix;
function SumDiag2DMatrix(A: Matrix): integer;
var
DiagSum: integer = 0;
i: integer;
begin
for i:=Low(A) to High(A) do
Inc(DiagSum, A[i, i]);
SumDiag2DMatrix := DiagSum;
end;
begin
clrscr;
randomize;
A := Gen2DMatrix();
writeln('Finding the sum of d... |
unit KeyHandler;
interface
uses Classes, SysUtils, DECCipher;
type
TIVArray = array[0..3] of Byte;
const
KEY: array[0..31] of Byte = (
$13, $00, $00, $00, $08, $00, $00, $00, $06, $00, $00, $00, $B4, $00, $00, $00,
$1B, $00, $00, $00, $0F, $00, $00, $00, $33, $00, $00, $00, $52, $00, $00, $00);
GMS_I... |
{-----------------------------------------------------------------------------
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.html... |
unit ProgressThread;
(*
This unit demonstrates reporting progress of a lengthy task.
It's done in 3 different ways:
- Directly, without any additional thread.
- Using a TThread class.
- Using an Anonymous Thread.
*)
interface
uses
System.Classes, System.SysUtils, System.Math;
type
TProgressEvent = pr... |
unit Tela_Cadastro;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics,
Controls, Forms, Dialogs, StdCtrls, DB, DBClient, ComCtrls,
ToolWin, Grids, DBGrids, DBCtrls,EMSTable, ImgList, LIB,
uPesquisaPadrao, EMSParameters, cxGraphics, cxControls, cxLookAndFeels,
cxLookAndFeelPainters, dxS... |
unit mission_launcher;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids, ExtCtrls, Menus;
type
TMissionGridColumnDefinition = record
name: string;
short: string;
width: integer;
shown: boolean;
end;
const missi... |
{
HM NIS Edit (c) 2003 Héctor Mauricio Rodríguez Segura <ranametal@users.sourceforge.net>
For conditions of distribution and use, see license.txt
File filter editor form
}
unit UFilter;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ComCtrls, StdCtrls, UIStateForm;... |
program bubble_sort1-2;
{ bubble sorting – vers.1 without procedure, vers.2 with swap-procedure }
const max = 1000;
type ary = array[1..max]of real;
var x : ary;
i,n : integer;
procedure { bubble- } sort1(var a: ary; n: integer);
var i,j : integer;
hold : real;
begin { procedure sort1... |
unit ClassReadFile;
interface
uses
Grids,DBGrids,SysUtils,StdCtrls,classes,Dialogs,comctrls;
type
TReadFile = class(TObject)//Класс прочтения файла
private
FFileName : string;
Text : TMemo;
FElements : TStringList;
procedure SetNameFile(Value : string);
public
procedure... |
{
***************************************************************************
* *
* This source 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 S... |
(**
This module contains the main IDE wizard which manages the life time of all objects.
@Author David Hoyle
@Version 1.0
@Date 17 Sep 2017
**)
Unit DebugWithCodeSite.Wizard;
Interface
{$INCLUDE CompilerDefinitions.Inc}
Uses
Classes,
ToolsAPI,
Menus,
ActnList,
ExtCtrls,
ImgList,
DebugWit... |
unit ThreadMain;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DB, ADODB,ActiveX;
type
TDBThread = class (TThread)
constructor
Create (cnConn:TADOConnection; DataSet: TADODataSet; iFlag: Integer); {thread constructor}
private
FDataSet: TADODataSe... |
{*******************************************************************************
Title: T2Ti ERP
Description: VO relacionado à tabela [FOLHA_PARAMETROS]
The MIT License ... |
unit unCadAgenda;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, plsMemo, ComCtrls, ExtCtrls, unFuncoes;
type
TfrmCadAgenda = class(TForm)
lblData: TLabel;
lblHora: TLabel;
lblDescricao: TLabel;
Bevel: TBevel;
... |
{APE file}
unit fmt_APE;
{$include compilers.inc}
interface
function ReadAPE(Info:UIntPtr):boolean;
implementation
uses
wat_api,
tags,srv_format;
const
defID = $2043414D;
type
(* Old Version ?
tMonkeyHeader = record
ID :dword; { Always "MAC " }
VersionID :wo... |
unit Soccer.VotingRules.Plurality;
interface
uses
System.SysUtils,
System.Generics.Collections,
System.Generics.Defaults,
Soccer.Preferences,
Soccer.Rule.Abstract,
Soccer.Voting.RulesDict;
type
TScoreAlternativePair = class
Alternative: string;
Score: integer;
end;
TSoccerPluralityVotin... |
{**
DelphiPI (Delphi Package Installer)
Author : ibrahim dursun (ibrahimdursun gmail)
License : GNU General Public License 2.0
**}
unit PageCompilerOptions;
interface
uses
Classes, CompilationData, Windows, Messages, SysUtils, Variants, Graphics, Vcl.Controls, Forms,
Dialogs, PageBase, StdCtrls, Ex... |
unit UAbmAnimales;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UAbmSimple, IBCustomDataSet, IBUpdateSQL, DB, IBQuery, Menus,
ImgList, ActnList, StdCtrls, Buttons, Grids, DBGrids, UBDBGrid, ComCtrls,IBDButtonABM,
ExtCtrls, IBStoredProc, DataExport,... |
unit uMenuPaletteAddInMain;
interface
uses
Windows, ToolsAPI;
type
TmgMenuPaletteWizard = class(TInterfacedObject, IOTAWizard)
private
procedure LoadPalette;
procedure UnloadPalette;
public
procedure Execute;
function GetIDString: string;
function GetName: string;
func... |
{
HM NIS Edit (c) 2003-2005 Héctor Mauricio Rodríguez Segura <ranametal@users.sourceforge.net>
For conditions of distribution and use, see license.txt
Editor frame
}
unit UEdit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, StdCtrls, SynEditExport, SynE... |
{
This software is distributed under GPL
in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the warranty of FITNESS FOR A PARTICULAR PURPOSE.
@abstract(Contains definition of interface for creating custom curve type object.)
@author(Dmitry Morozov dvmorozov@hotmail.com,
LinkedIn: https... |
unit FiscalPrinterStatistics;
interface
uses
// This
OposStat, OposStatistics;
type
{ TFiscalPrinterStatistics }
TFiscalPrinterStatistics = class(TOposStatistics)
private
public
constructor Create; override;
procedure PaperCutted;
procedure PaperCutFailed;
procedure BarcodePrinted;
... |
unit FornecedorUn;
interface
Uses PersistenciaUn, System.Classes, LibUtils, SysUtils, PessoaUn;
Type
TFornecedor = class(TDGRSimpleDataSet)
private
FPessoa: TPessoa;
function GetBairro: string;
function GetCidade: string;
function GetComplemento: string;
function GetCNPJ: string;
... |
unit Download;
{$WARN CONSTRUCTING_ABSTRACT OFF}
interface
uses
Classes, CurlDownLoadCore;
// function DownloadFile(const fileUrl:AnsiString;const outFileDir:string):LongBool;
type
TMsgType = Cardinal;
MsgType = class
public const
err = 0;
const
fileSizeInfo = 5;
const
d... |
unit OTAHistoryProjects.MainMenu;
interface
uses
ToolsAPI,
System.SysUtils,
System.Classes,
Vcl.Dialogs,
Vcl.Menus,
Vcl.Graphics,
Vcl.ComCtrls,
OTAHistoryProjects.Forms,
System.Generics.Collections;
type TOTAHPMainMenuWizard = class(TNotifierObject, IOTAWizard)
private
procedure OnClickMenuH... |
Unit RequestThread;
Interface
Uses
Windows, Classes, SysUtils,
IRPMonDll;
Type
TRequestThread = Class (TTHread)
Private
FConnected : Boolean;
FEvent : THandle;
FSemaphore : THandle;
FMsgCode : Cardinal;
Protected
Procedure Execute; Override;
Public
Constructor Create(ACreateSuspen... |
unit SvSerializerRtti;
interface
uses
Rtti, Generics.Collections, TypInfo
;
type
TConstructorMethod = reference to function(): TObject;
TSvRttiInfo = class
strict private
class var
FCtx: TRttiContext;
class var
FRegisteredConstructors: TDictionary<PTypeInfo,TConstructor... |
unit UnitMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls, PngImage, Math, Vcl.GraphUtil,
ShellAPI;
type
TFormMain = class(TForm)
Image: TImage;
FileOpenDialog: TFileO... |
unit unt_BbsConfig;
interface
uses
unt_File, unt_DataVar, unt_System,
IniFiles, SysUtils, Controls, Classes,unt_Config;
Type
TBbsConfig = class
private
FConfig: TConfig;
FFileName : String;
FIniFile : TiniFile;
FAreaCode: String;
FStoreCode: String;
FBbsDBServer: str... |
unit MainForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls,
XData.Client, Services, Vcl.ComCtrls;
type
TForm1 = class(TForm)
PageControl1: TPageControl;
TabSheet1: TTabSheet;
Lab... |
unit tsvDb;
interface
uses Classes, DB, DBClient,
tsvCrypter;
type
TTsvDb=class(TComponent)
private
FFileName: string;
FIsInit: Boolean;
FCrypter: TTsvCrypter;
FDataSet: TClientDataSet;
FCipherKey: String;
FOldHash: string;
function GetChanges: Boolean;
function GetNewHash: ... |
{*******************************************************}
{ }
{ XML-RPC Library for Delphi, Kylix and DWPL (DXmlRpc) }
{ XmlRpcCommon.pas }
{ }
{ for Delphi 6, 7 ... |
unit AuWin32Common;
interface
uses
Windows, MMSystem,
AuTypes;
type
TWaveFormatExtensible = record
Format : tWAVEFORMATEX;
wValidBitsPerSample : Word;
dwChannelMask : DWord;
SubFormat : TGuid;
end;
PWaveFormatExtensible = ^TWaveFormatExtensible;
PWaveHdr = ^TWaveHd... |
unit uMain;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
FMX.Controls.Presentation, FMX.Edit, FMX.ComboEdit, FMX.ComboTrackBar,
FMX.StdCtrls, FMX.WebBrowser, FMX.TabControl, FMX.Objects, FMX.Layout... |
unit DeliveryUnit;
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.... |
{**********************************************************
Copyright (C) 2012-2016
Zeljko Cvijanovic www.zeljus.com (cvzeljko@gmail.com) &
Miran Horjak usbdoo@gmail.com
***********************************************************}
unit mainform;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Form... |
unit unCadAreasInteresse;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ImgList, ComCtrls, ToolWin, DB, ZAbstractRODataset,
ZAbstractDataset, ZDataset, StdCtrls, plsEdit, Grids, DBGrids;
type
TfrmCadAreasInteresse = class(TForm)
ToolBar: TTo... |
unit UWP.LinkLabel;
interface
uses
Classes, Windows, Messages, ShellApi, Controls, StdCtrls, Graphics, ExtCtrls,
UWP.Classes, UWP.ColorManager, UWP.Colors;
type
TUWPLinkLabel = class(TCustomLinkLabel, IUWPControl)
private
FControlState: TUWPControlState;
FCustomTextColor: TUWPStateColorSet;
FEna... |
unit OposSemaphore;
interface
uses
// VCL
Windows, SysUtils,
// Opos
Opos, OposException;
type
{ TOposSemaphore }
TOposSemaphore = class
private
FHandle: THandle;
FClaimed: Boolean;
procedure Close;
procedure Open(const AName: WideString);
function WaitFor(Timeout: Integer): Integ... |
//
// Dragon
// A game for Windows based on a modified and improved version of the
// DelphiDoom engine
//
// Copyright (C) 1993-1996 by id Software, Inc.
// Copyright (C) 2004-2022 by Jim Valavanis
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Genera... |
unit uFrmNumericSearch;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
{ TFrmNumericSearch }
TFrmNumericSearch = class(TForm)
Btn_Abort: TButton;
Btn_Ok: TButton;
Cmb_Type: TComboBox;
Txt_Da: TEdit;
Txt_A: TEdit;
procedure Btn... |
unit uItemsTasks;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, uCollectionBase, System.Actions,
Vcl.ActnList, Vcl.ComCtrls, Vcl.ToolWin, Vcl.ExtCtrls, Vcl.StdCtrls,
Vcl.CheckLst,
JD.InnoSetup, JD.InnoSet... |
unit receiveCash;
interface
uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.StdCtrls,
Vcl.Menus,
persons,
accounts,
Data.DB,
DBAccess,
Uni,
MemDS,
Vcl.DBCtrls,
Data.Bind.EngExt,
Vcl... |
{
Copyright (c) 2016, Vencejo Software
Distributed under the terms of the Modified BSD License
The full license is distributed with this software
}
unit ooFS.Directory.Count_test;
interface
uses
SysUtils,
ooFS.Directory, ooFS.Directory.Count,
ooFSUtils,
{$IFDEF FPC}
fpcunit, testregistry
{$ELSE}
TestF... |
unit ReportCurrentQueueSMS;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, MemDS, DBAccess, Ora,
Vcl.Grids, Vcl.DBGrids, CRGrid, Vcl.Menus, Vcl.StdCtrls, Vcl.Buttons;
type
TfReportCurrentQueueSMS =... |
unit fmuFptrReceiptTest;
interface
uses
// VCL
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Registry, CheckLst,
// Tnt
TntStdCtrls, TntSysUtils,
// This
untPages, OposFiscalPrinter, OposFptr, DriverTest, PrinterTest;
type
{ TfmFptrReceiptTest }
TfmFptrReceipt... |
unit PmtCalculatorTests;
interface
uses
DUnitX.TestFramework, PmtCalculator, Math;
type
[TestFixture]
TPmtCalculatorTests = class(TObject)
public
[Test]
[TestCase('PresentValue','-1,0,0')]
[TestCase('Rate','0,-1,0')]
[TestCase('Periods','0,0,-1')]
procedure NegativeInputParametersReturnNa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.