text stringlengths 14 6.51M |
|---|
unit DemoWindow;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Winapi.GDIPAPI, Winapi.GDIPOBJ;
type
TfrmDemo = class(TForm)
private
{ Private declarations }
procedure CreateParams(v... |
unit FormAbout;
interface
uses
Forms, StdCtrls, ExtCtrls, Graphics,
Controls, Classes;
type
TFAbout = class(TForm)
imgLogo: TImage;
pnSuperior: TPanel;
Label2: TLabel;
pnlInfo: TPanel;
lblMail: TLabel;
lblWeb: TLabel;
btnCerrar: TButton;
lbVersion: TLabel;
... |
unit WiRL.Wizards.ProjectCreator;
interface
uses
ToolsAPI;
resourcestring
SWiRLServerProject = 'WiRLServerProject';
type
TWiRLServerProjectCreator = class(TInterfacedObject, IOTACreator, IOTAProjectCreator50, IOTAProjectCreator80,
IOTAProjectCreator160, IOTAProjectCreator)
public
// IOTA... |
unit SimpleParser;
{$MODE Delphi}
interface
uses classes,sysutils,
{$ifdef WIN32}
windows,
{$endif}
{$ifdef LINUX}
{$endif}
math;
const
maxDoubleStack = 256;
type
TSimpleAction=(saCheckSintax, saEval, saCompile);
TParserFunction= function(const v: array of double): double;
T... |
unit ExcecaoBancoInvalido;
interface
uses
SysUtils,
TipoBanco;
type
TExcecaoBancoInvalido = class(Exception)
private
FTipoBanco :TTipoBanco;
public
constructor Create(TipoBanco :TTipoBanco);
public
property TipoBanco :TTipoBanco read FTipoBanco;
end;
implementation
{ TExcecaoBancoInvalid... |
unit ReceiptTest;
interface
uses dbTest, dbObjectTest, TestFramework, ObjectTest;
type
TReceiptTest = class(TdbObjectTestNew)
published
procedure ProcedureLoad; override;
procedure Test; override;
end;
TReceipt = class(TObjectTest)
private
function InsertDefault: integer; override;
public
... |
unit unCadReceitaConfiguracao;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
Vcl.StdCtrls, Vcl.Buttons, Vcl.Mask, DateUtils, Data.DB, ZAbstractRODataset,
ZAbstractDataset, ZDataset, AdvAppStyler, Ad... |
procedure A1(g: integer);
begin
writeln('Hello, World');
writeln(g);
end;
var
g: integer;
begin
g:= 21123;
writeln('Hi?????');
A1(g);
end.
|
{*******************************************************}
{ }
{ Delphi LiveBindings Framework }
{ }
{ Copyright(c) 2011-2013 Embarcadero Technologies, Inc. }
{ ... |
unit Form.Sync;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, System.SyncObjs;
type
TfrmSyncWays = class(TForm)
PanelInterlock: TPanel;
ButtonInterlock: TButton... |
unit Test.DataSetProxy;
interface
uses
DUnitX.TestFramework,
System.Classes,
System.SysUtils,
System.Variants,
Data.DB,
Data.DataProxy;
{$M+}
type
[TestFixture]
TestBookMemProxy = class(TObject)
private
fOwner: TComponent;
public
[Setup]
procedure Setup;
[TearDown]
procedu... |
unit fmBloquear;
interface
uses
Windows, fmLogin, StdCtrls, frUsuario, Classes, Controls, Forms, frLoginServer,
jpeg, ExtCtrls, frLogin;
type
TfBloquear = class(TForm)
bCerrar: TButton;
fLogin: TframeLogin;
procedure bCerrarClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
proc... |
{**********************************************************************}
{ }
{ "The contents of this file are subject to the Mozilla Public }
{ License Version 1.1 (the "License"); you may not use this }
{ file except in comp... |
unit Bulls_and_C;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Imaging.jpeg,
Vcl.ExtCtrls;
type
TForm1 = class(TForm)
E_Saisie: TEdit;
E_Cows: TEdit;
L_Saisie: TLabel;
E_... |
{ALGORITHME startToPlay;
CONST
MAX=250;
VAR
entrees, nombrePlaces : ENTIER;
DEBUT
REPETER
ECRIRE "Entrez le nombre de personnes entrantes ou sortantes de la salle. Entrez un nombre négatif si les personnes sortent. Entrez 0 pour quitter"
LIRE entrees;
//Si le nombre d'entrées est supérieur au nombr... |
unit PVDBGrid;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Grids, DBVGrids, PutExcel,DB,menus;
type
TPVDBGrid = class(TVDBGrid)
private
{ Private declarations }
FHideList:TStrings;
FHideCount:integer;
FIsMax : Boolean;
FOldAlign : TAlign;
F... |
unit WorldChunkManager_u;
interface
uses GenLayer_u, BiomeGenBase_u, generation;
type WorldChunkManager=class(TObject)
private
field_34903_b,biomeIndexLayer,temperatureLayer,rainfallLayer:GenLayer;
agenlayer:ar_GenLayer;
cache:TObject;
temperatureCache:ar_double;
pub... |
{==============================================================================*
* Copyright © 2020, Pukhkiy Igor *
* All rights reserved. *
*============================================================================... |
{
Amarildo Lacerda
12/03/2017
TODataBuilder - Delphi IDE component
}
unit oData.Comp.Client;
interface
uses System.Classes, System.RTTI,
System.SysUtils,
System.Generics.Collections,
Data.DB, System.JSON,
MVCBr.idHTTPRestClient;
Type
TODataResouceParam = Class(TCollectionItem)
private
FName... |
unit TimeFreq;
interface
uses FrogObj;
type
TTimeFreqCalibration = class(TFrogObject)
private
mN: integer;
mN2: integer;
mDelT: double;
mLam0: double;
mDelF: double;
mF0: double;
function CalcDelF: double;
function CalcDelLam: double;
private constructor Create... |
// Fit4Delphi Copyright (C) 2008. Sabre Inc.
// This program is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software Foundation;
// either version 2 of the License, or (at your option) any later version.
//
// This program is... |
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Contnrs;
type
TForm1 = class(TForm)
mmSource: TMemo;
btnParse: TButton;
mmResult: TMemo;
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedur... |
unit TSTORessource;
interface
Uses Windows, Classes, SysUtils, RTLConsts, HsInterfaceEx, HsStreamEx;
Type
ITSTOResourceFile = Interface;
ITSTOResourceDuplicate = Interface(IInterfaceEx)
['{4B61686E-29A0-2112-9329-46F0E0B05435}']
Function GetResourcePath() : String;
Procedure SetResourcePath(Const A... |
unit BankAccountMovementFarmacy;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BankAccountMovement, cxGraphics,
cxLookAndFeels, cxLookAndFeelPainters, Vcl.Menus, cxControls, cxContainer,
cxEdit, Vcl.ComCtrl... |
unit AT.ShortName.DM.Actions;
interface
uses
System.SysUtils, System.Classes, FMX.StdActns, System.Actions,
FMX.ActnList;
type
TdmActions = class(TDataModule)
actAppAbout: TAction;
actAppExit: TFileExit;
actAppHide: TFileHideApp;
actAppHideOthers: TFileHideAppOthers;
actAppPreferences: TAct... |
unit UXTime;
(* Copyright (c) 2001,2002 Twiddle <hetareprog@hotmail.com> *)
(* 時刻関連のサブルーチン *)
interface
uses
SysUtils, Windows, DateUtils, Classes;
function UTC: longword;
function Str2DateTime(const str: string): TDateTime;
function UxTimeStr2DateTime(const str: string): TDateTime;
(*=============================... |
unit upropertyeditor;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs,
StdCtrls, EditBtn, Spin, VirtualTrees, Windows,
ucustomeditor;
type
{$REGION Редактор свойств}
{ TPropertyData }
TPropertyData = class(TBaseData)
private
fCaption: String;
... |
unit UFormFinder;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2005 by Bradford Technologies, Inc. }
{$WARN SYMBOL_PLATFORM OFF}
{$WARN UNIT_PLATFORM OFF}
interface
uses
Windows, Messages, SysUtil... |
unit DIOTA.Dto.Response.GetAccountDataResponse;
interface
uses
System.Classes,
Generics.Collections,
DIOTA.IotaAPIClasses,
DIOTA.Model.Bundle,
DIOTA.Model.Input;
type
TGetAccountDataResponse = class(TIotaAPIResponse)
private
FAddresses: TArray<String>;
FTransferBundle: TArray<IBundle>;
FInp... |
unit Menus.Model.Conexoes.Zeos.Conexao;
interface
uses
Menu.Model.Conexoes.Interfaces,
System.Classes, Data.DB, ZAbstractConnection, ZConnection;
type
TModelConexaoZeos = class(TInterfacedObject, iModelConexao, iModelConexaoParametros)
private
class var FInstance: TModelConexaoZeos;
... |
//NativeFileApi
//
//MIT License
//
//Copyright (c) 2020 ottigeda
//
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to... |
{$mode objfpc}
{$modeswitch objectivec2}
{$linkframework OpenGL}
unit OpenGLView;
interface
uses
GL, GLExt, MacOSAll, CocoaAll;
type
TOpenGLView = objcclass (NSView)
public
renderDelegate: id;
function initWithFrame(frameRect: NSRect): id; override;
function isOpaque: objcbool; override;
... |
unit Transit_BOM;
interface
uses
tiObject
, tiVisitor
, tiOID
, tiOIDInteger
, tiHelperClasses;
type
{ This object was introduced to get public access to the Read() and Save()
methods. This project was written before those methods got moved to
the Protected section in TtiObject. }
TCustomObjec... |
UNIT WINDRT;
INTERFACE
PROCEDURE BEEP1(FREQ,TIME :INTEGER);
PROCEDURE BEEP;
PROCEDURE WINDOWS(C1,L1,C2,L2 :INTEGER);
PROCEDURE JANELAD(X1,Y1,X2,Y2 :INTEGER);
PROCEDURE JANELA(X1,Y1,X2,Y2 :INTEGER);
PROCEDURE CURSOR_ON;
PROCEDURE CURSOR_OF;
IMPLEMENTATION
USES DOS,CRT;
type
T = ARRAY[1..4... |
unit uDelivery;
interface
type
TDelivery = class
private
FLocation: string;
FPackageWeight: Double;
FSent: Boolean;
procedure SetLocation(const Value: string);
procedure SetPackageWeight(const Value: Double);
procedure SetSent(const Value: Boolean);
public
property Location: string r... |
unit UICtrls;
interface
uses Windows, SysUtils, Classes, Controls, StdCtrls, Graphics, ExtCtrls, Forms, UIStyles;
type
TUIStyleLink = Class(TComponent)
private
FLink : TUIStyleItemLink;
FControl: TControl;
procedure OnStyleChange(Sender : TObject);
function GetStyleItemName: TUIStyleItem... |
unit OTextReadWrite;
{
LICENSE
Author: Ondrej Pokorny, http://www.kluug.net
License: MPL / GPL / LGPL
}
{$I OBufferedStreams.inc}
{$IFDEF O_DELPHI_XE4}
{$ZEROBASEDSTRINGS OFF}
{$ENDIF}
interface
uses
SysUtils, Classes, OBufferedStreams, OEncoding;
type
{$IF DEFINED(O_UNICODE)}
OTextWideString =... |
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://localhost:8888/wsdl/IConfigurationWS
// Encoding : utf-8
// Version : 1.0
// (3/30/2012 11:44:55 AM - 1.33.2.... |
unit ListTests;
interface
uses
DUnitX.TestFramework, System.Generics.Collections, DelphiJSON;
type
[DJSerializable]
TCustom = class
public
[DJValue('list')]
list: TList<Integer>;
end;
[TestFixture]
TListTests = class(TObject)
public
[Test]
procedure TestSerializationObj;
[Tes... |
unit xEmailSenderMAPI_U;
interface
uses xEmailSender_i, xEmail_I, winapi.mapi, sysutils, windows, forms;
type
Exception_EmailSender = class(Exception);
Exception_EmailSender_NoRecipients = class(Exception_EmailSender);
Exception_EmailSender_CouldNotLoadMAPIDLL = class(Exception_EmailSender);
TEmailSenderMAPI... |
unit UParams;
interface
uses Classes;
type
{Входящий параметр}
PParam = ^TParam;
TParam = record
Name: string;
Value: Variant;
end;
{хеш имен параметров на их значения. Набор из @link(TParam)}
TParams = class
private
FList: TList;
FReturnEmpty : Boolean;
function GetValue(pIndex: string... |
unit VestaWSImpl;
interface
uses InvokeRegistry, Types, XSBuiltIns, VestaWSIntf;
type
TVestaWS = class(TInvokableClass, IVestaWS)
public
function Get_Version: WideString; safecall;
function Get_SystemDateTime: TDateTime; safecall;
function Get_SystemTimeZone: Double; safecall;
end;
i... |
{***************************************************************************}
{ }
{ DUnitX }
{ }
{ ... |
(*
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 ... |
{$MODESWITCH RESULT+}
{$GOTO ON}
(*************************************************************************
Cephes Math Library Release 2.8: June, 2000
Copyright by Stephen L. Moshier
Contributors:
* Sergey Bochkanov (ALGLIB project). Translation from C to
pseudocode.
See subroutines comments for... |
{*!
* Fano Web Framework (https://fanoframework.github.io)
*
* @link https://github.com/fanoframework/fano
* @copyright Copyright (c) 2018 Zamrony P. Juhara
* @license https://github.com/fanoframework/fano/blob/master/LICENSE (MIT)
*}
unit EpollInetSocketSvrImpl;
interface
{$MODE OBJFPC}
{$H+}
uses
... |
unit AqDrop.DB.Base;
interface
uses
System.SysUtils,
System.TypInfo,
System.Classes,
AqDrop.Core.Types,
AqDrop.Core.InterfacedObject,
AqDrop.Core.Collections.Intf,
AqDrop.Core.Collections,
AqDrop.Core.Observers.Intf,
AqDrop.Core.Cache.Intf,
AqDrop.Core.Cache.Monitor,
AqDrop.DB.Typ... |
(*=================================================*)
(* Developer: Michael Neuhold *)
(* Date: 14.12.18 *)
(* Title: XTree *)
(*=================================================*)
PROGRAM Weihnachtsbaum;
(* rekursive function ... |
Program blackjack (input,output);
(* Herrero Arnanz, Javier *)
(* Tejero de Pablos, Miguel Angel *)
(* Enero 2010 - Programacion I - UVa *)
(*Programa que permite al usuario jugar una serie de partidas de una versión simplificada del BlackJack*)
USES
crt;(*Libreria para usar los subprogramas delay, clrscr y readkey*... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC static linking helper routines }
{ }
{ Copyright(c) 2004-2013 Embar... |
unit ksListViewHelper;
interface
{$I ksComponents.inc}
uses
System.SysUtils, System.Types, System.UITypes, System.UIConsts, System.Classes,
ksTableView;
type
TListItemPurpose = TksTableViewItemPurpose;
TListItemAppearence = (ListItemRightDetail, ListItemBottomDetail);
TListViewItem = class (TksTableVie... |
unit ContentProvider;
interface
uses
// System.StrUtils.SplitRect,
System.sysutils,
System.Generics.Collections,
System.IOUtils,
System.Classes,
System.RegularExpressions,
Mapper,
Vcl.ComCtrls;
type
TOnProgressEvent = procedure(Sender: TObject; Max, Position: Integer)
of object;
TContentProv... |
unit IdHMACMD5;
interface
uses
IdHash, IdHashMessageDigest, IdHMAC, IdGlobal, IdObjs, IdSys;
type
TIdHMACMD5 = class(TIdHMAC)
private
FHashMD5: TIdHashMessageDigest5;
protected
procedure InitHash; override;
function InternalHashValue(const ABuffer: TIdBytes) : TIdBytes; override;
... |
unit MolHero.FormRes;
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.ScrollBox, FMX.Memo, FMX.TabControl;
type
TFormRes = class(TForm)
MemoCaffeine: TMe... |
unit testmultiarray;
{$mode objfpc}{$H+}
{$IFDEF FPC}
{$PACKRECORDS C}
{$ENDIF}
interface
uses
Classes, SysUtils, fpcunit, testregistry, multiarray, numerik, DateUtils;
type
TTestMultiArray = class(TTestCase)
published
procedure TestAssignment;
procedure TestBFuncThreaded;
procedure TestSmall;
... |
unit SOPvsMPSWin;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, DailyPlanVsActReader, ComCtrls, ToolWin, ImgList,
ExtCtrls, CommUtils, IniFiles, ComObj, SOPReaderUnit, ProjYearWin,
DateUtils;
type
TfrmSOPvsMPS = class(TForm)
ImageList1: TIm... |
unit DomainObjectBaseListUnit;
interface
uses
SysUtils,
Classes,
IDomainObjectBaseUnit,
DomainObjectBaseUnit,
IDomainObjectBaseListUnit,
ClonableUnit,
EquatableUnit;
type
TDomainObjectBaseList = class;
TDomainObjectBaseComparator = class (TInterfacedObject, IDomainObjectBaseComparator)
func... |
unit ULicTemp;
{ ClickForms Application }
{ Bradford Technologies, Inc. }
{ All Rights Reserved }
{ Source Code Copyrighted © 1998-2005 by Bradford Technologies, Inc. }
{ This is a quick way to get a person name/Co for demo'ing ClickForms}
{}
interface
uses
Windows, ... |
// Fit4Delphi Copyright (C) 2008. Sabre Inc.
// This program is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software Foundation;
// either version 2 of the License, or (at your option) any later version.
//
// This program is... |
unit PlgTSTOCustomPlugin;
interface
uses
HsInterfaceEx, TSTOPluginIntf,
Windows, SysUtils, Classes;
type
TTSTOCustomPlugin = Class(TDataModule, ITSTOPlugin)
Private
FMainApp : ITSTOApplication;
FPluginPath : String;
FPluginFileName : String;
FInitialized : Boolean;
FEnabled... |
unit dmData;
interface
uses
SysUtils, Classes, DB, IBCustomDataSet, IBQuery,
IBDatabase, dmBD, IBUpdateSQL, controls, StockGraphicPainterLines, flags,
ExtCtrls, kbmMemTable, BusCommunication, Valores, dmDataModuleBase;
const
DIA_SIN_COTIZAR : integer = 0;
type
MessageValorCambiado = class(TBusMessage);
... |
(*
Copyright (c) 2011-2013, 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;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls,
Vcl.ExtCtrls,
Vcl.ImgList;
type
TFrmMain = class(TForm)
BtnApply: TButton;
PageControl1: TPag... |
{Hint: save all files to location: C:\adt32\eclipse\workspace\AppBluetoothDemo1\jni }
unit unit1;
{$mode delphi}
interface
uses
Classes, SysUtils, And_jni, And_jni_Bridge, Laz_And_Controls,
Laz_And_Controls_Events, AndroidWidget, bluetooth, imagefilemanager;
type
{ TAndroidModule1 }
TAndroidModule1 = c... |
{
Модуль маппера демона/службы
}
unit uni_daemonmapperunit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, DaemonApp,
engine, log;
type
{ TUniReaderDaemonMapper — это компонент, отвечающий за управление работой сервисов.
Особенно актуален он в случае включения в один исполняемый модуль не... |
//Only compile for the OS X platform.
{$IF ( (NOT Defined(MACOS)) OR (Defined(IOS)) )}
{$MESSAGE Fatal 'AT.MacOS.Software.pas only compiles for the OS X platform.'}
{$ENDIF}
// ******************************************************************
//
// Program Name : Angelic Tech Mac OS X Library
// Program Version: ... |
unit IPGeoLocation.Providers.IP_API;
interface
uses
IPGeoLocation.Interfaces, IPGeoLocation.Core, System.Net.HttpClient;
type
{$REGION 'TIPGeoLocationProviderIP_Api'}
TIPGeoLocationProviderIP_Api = class sealed(TIPGeoLocationProviderCustom)
private
{ private declarations }
protected
{ protected de... |
unit FindUnit.UnusedUses;
interface
uses
DelphiAST,
Log4Pascal,
DelphiAST.Classes,
DelphiAST.Writer,
FindUnit.DelphiReservedWords,
FindUnit.PasParser,
FindUnit.Utils,
SimpleParser.Lexer.Types,
System.Classes,
System.Generics.Collections,
System.SysUtils,
FindUnit.Settings,
Interf.Environ... |
unit CustomOutlineBasicEditor;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, CustomOutlines, CustomOutlineEditorForm;
// const WM_CHANGE = WM_USER + $400;
type
TveCustomOutlineBasicEditor = class(TForm)
EditTButton: TButton;
procedure E... |
{$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... |
(*
* "THE BEER-WARE LICENSE" (Revision 42):
* d0p1 <d0p1@yahoo.com> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return.
*)
UNIT TestBase58;
{$mode objfpc}{$H+}
INTERFACE
... |
unit Referenced;
interface
type
TReferenced = class
public
constructor Create;
destructor Destroy; override;
procedure AddRef;
procedure Release;
private
fReferences : integer;
public
property References : integer read fReferences;
end;
implementation
uses
... |
unit uGBOServerFactory;
{$I twcomp.pas}
{
This unit supplies neccessary and helpful calls of released
application server interfaces to partners.
}
interface
uses
SysUtils, ComObj, uServerFactory, GWServices_TLB, CAS_SESSIONID;
type
TGBOServerFactory = class
private
public
class function CreateServer(... |
unit UTools;
interface
uses USimulation;
type
// Перечисление TMachineState обозначает состояния станка
TMachineState = (msFree, msPreparing, msWorking, msRepaired);
// Класс TDetail имитирует процесс прохождения детали через станок
TDetail = class(TProcess)
protected
procedure RunProcess; override;
... |
unit TxtFileExport;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, Buttons, DataWindow, Procs, DataClass, ComCtrls, Logger, Config, Variants;
type
RExportData = record
col1, col2, col3, col4: string;
end;
TTxtFileExportForm = class( TForm )... |
unit TelaPrincipal;
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.Imaging.pngimage, Vcl.Buttons, Vcl.ComCtrls, Data.DB, Vcl.Grids,
Vcl.DBGrids;
type
TFrmPrincipal = class(... |
unit PostgresTransactionUnit;
interface
uses DatabaseTransactionUnit, Classes;
type
TPostgresTransaction = class abstract (TDatabaseTransaction)
protected
function GetIsolationLevelText: String; override;
function GetStartTransactionText: String; override;
function GetCommitTransactionText... |
unit utils;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, libcurl, strutils, fpjson, jsonparser, dateutils, md5, RegExpr, fileutil;
function readfile(fnam: string): string;
function cuterandom(min,max: integer): Integer;
function veryBadToLower(str: String): String;
function encodeUrl(url: str... |
unit Project87.SmallEnemy;
interface
uses
QGame.Scene,
Strope.Math,
Project87.BaseUnit,
Project87.BaseEnemy,
Project87.Types.StarMap,
Project87.Types.GameObject;
const
MAX_LIFE = 60;
MAX_SMALL_SPEED = 1200;
FLY_BACK_DISTANCE = 700 * 700;
type
TSmallEnemy = class(TBaseEnemy)
protected
proce... |
unit uGetCategories;
interface
{$I definitions.inc}
uses
Classes,
SysUtils,
TypInfo,
Variants,
XMLDoc,
EbayConnect,
CommonTypes,
IdThread,
IdComponent,
IdSync,
DB,
nxdb,
Forms;
type
TCatRec = record
CategoryID : string;
CategoryLevel : Integer;
Category... |
{
This is part of Vortex Tracker II project
(c)2000-2009 S.V.Bulba
Author: Sergey Bulba, vorobey@mail.khstu.ru
Support page: http://bulba.untergrund.net/
Version 2.0 and later
(c)2017-2021 Ivan Pirog, ivan.pirog@gmail.com
https://github.com/ivanpirog/vortextracker
}
unit WaveOutAPI;
interface
uses Windows, Message... |
unit Ucard;
{$APPTYPE CONSOLE}
interface
uses Classes, TypInfo, SysUtils;
Type
TSuit = (Spades, Hearts, Diamonds, Clubs );
{ TCard }
TCard=class(TObject)
var
private
Frank: integer;
Fsuit: TSuit;
public
constructor Create(Arank:integer;Asuit:Tsuit);
property rank: integer read Frank;
prop... |
unit Document;
{$I ..\dsdVer.inc}
interface
uses Classes, dsdDB, dsdAction {$IFDEF DELPHI103RIO}, Actions {$ENDIF};
type
TDocument = class(TComponent)
private
FFileName: string;
FisOpen: boolean;
FBlobProcedure: TdsdStoredProc;
protected
procedure Notification(AComponent: TComponent; Operation... |
unit uMongoDocument;
interface
uses
System.SysUtils, System.Classes, mongoWire, bsonDoc, FMX.Forms,
System.Generics.Collections, JSON, bsonUtils, uMongo_Tipificacoes, System.Variants;
type
TKeys = Record
Key : String;
Value : OleVariant;
Tipo : TCampo;
End;
type
TDocument = Rec... |
{*
Name: proj2.pas
Programmers: Kevin Masterson (k.m.masterson@gmail.com), Rob Close (rob0229@gmail.com)
*}
program project2;
uses crt, sysutils, strutils, types, menu, functions;
procedure initProgram();
var
i: integer;
input: string;
begin
{* initial empty function array... |
unit xxmData;
{
xxmData provides a lightweight alternative to datamodules
SQL is stored in a file: "queries.xml"
Add this line to the project initialization code or the PrepareRequest method or session initialization code:
if QueryStore=nil then QueryStore:=TQueryStore.Create;
(in unit initialization,... |
unit cmpTrayIcon;
// Tray icon component. Copyright (c) Colin Wilson 1997
//
// NB. To prevent your main form displaying at startup, select
// View / Project source from the menu and insert the lines
//
// ShowWindow(Application.Handle, SW_HIDE);
// Application.ShowMainForm := FALSE;
//
// ... |
unit propgridhelper;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Grids, shape;
type
TPropertyGridHelper = class
private
_grid: TDrawGrid;
_selected: TShape;
function GetSelected: TShape;
procedure SetSelected(shape: TShape);
public
constructor Create(grid: TDrawGrid);
destr... |
unit ParticleForceGen;
interface
Uses Math, DGLOpenGL, PhysicsParticles, PhysicsArifm;
CONST //UNUSED SO FAR
{Эти констатны определяют тип генератора силы}
NIL_FORCE_GEN = $0; //отсутствующий генератор силы
GRAVITY_FORCE_GEN = $1; //сила притяжения к земле
DRAG_FORCE_GEN... |
program newloookscreen;
{$IFNDEF HASAMIGA}
{$FATAL This source is compatible with Amiga, AROS and MorphOS only !}
{$ENDIF}
{
Project : newlookscreen
Topic : open a screen with the "new look".
Source : RKRM
}
{$MODE OBJFPC}{$H+}{$HINTS ON}
{$UNITPATH ../../../Base/CHelpers}
{$UNITPATH ../../../Base/... |
{
Written by Sanjeeb Sangraula
SUMMARY:
This is a program to help calculate the points that a student gets in a
quiz. This program is written to satisfy the needs of Professor Lotta
Greef who has asked you to write a program that grades her multiple
choice quizzes. Each quiz always... |
UNIT opcode;
INTERFACE
const {dgram opcode}
tcdata=4;
tcdataimm=6;
tccont=5;
tceack=7;
tcdata_no_report=8 unimplemented;
{10-16 reserved for dht}
dht=10;
dhtRequest=10;
dhtSelect=11;
dhtReqAck=12;
dhtWazzup=13;
const {chat init}
upFileServer=2;
crAuthReq=3;
const {FS opcodes}
{c}upOPEN=7;
{s}upINFO=8;
... |
unit uCalculadora;
interface
type
TCalculadora = class
public
function Somar(valor1, valor2: Integer): Integer;
function Subtrair(valor1, valor2: Integer): Integer;
function Multiplicar(valor1, valor2: Integer): Integer;
function Dividir(valor1, valor2: Integer): Extended;
end;
imp... |
PROGRAM Lotto;
VAR
drawed_numbers: INTEGER;
total_numbers: INTEGER;
factorial_drawed_numbers, factorial_total_numbers, factorial_total_and_drawed_numbers: REAL;
bc: REAL;
PROCEDURE PrintHelp;
CONST PROG_NAME = 'Lotto';
BEGIN
WriteLn(PROG_NAME);
END;
// parameter list = formal parameters
// call by value ... |
unit TarFTP.Interfaces;
interface
uses
SysUtils;
type
TProgressEvent = procedure(CurrentItem, TotalItems : Integer;
BytesProcessed, TotalBytes : Int64) of object;
IArchiver = interface
['{6F15B19F-2C02-4C33-BE65-D256876BFE9F}']
function GetOnProgress : TProgressEvent;
procedure SetOnProgress(V... |
unit IPGeoLocation.Providers.IPWhois;
interface
uses
IPGeoLocation.Interfaces, IPGeoLocation.Core, System.Net.HttpClient;
type
{$REGION 'TIPGeoLocationProviderIPWhois'}
TIPGeoLocationProviderIPWhois = class sealed(TIPGeoLocationProviderCustom)
private
{ private declarations }
protected
{ protected... |
unit sts_processlist;
interface
uses Windows, SysUtils, Classes, TlHelp32, PsApi;
type
(* *)
NTStatus = cardinal;
PUnicodeString = ^TUnicodeString;
TUnicodeString = packed record
Length: Word;
MaximumLength: Word;
Buffer: PWideChar;
end;
PPROCESS_BASIC_INFORMATION ... |
unit Person;
interface
uses
EnterForm;
type
TPerson = class
private
FIO_:string;
className_:string;
public
procedure setFIO(FIO:string);
function getFIO():string;
procedure setClassName(className:string);
function getClassName():string;
function read():boolea... |
unit Model.Services.Interfaces;
interface
uses
Data.DB, System.SysUtils;
type
IModelServicesFactory = interface
end;
IModelServicesOrder<T> = interface
function &Abort: IModelServicesOrder<T>;
function Add: IModelServicesOrder<T>;
function Cancel: IModelServicesOrder<T>;
function DataSource... |
unit ksSegmentButtonsTest;
interface
uses
DUnitX.TestFramework, ksSegmentButtons;
type
[TestFixture]
TksSegmentButtonsTest = class(TObject)
private
FSegmentButtons: TksSegmentButtons;
public
[Setup]
procedure Setup;
[TearDown]
procedure TearDown;
end;
implementation
procedure TksSeg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.