text stringlengths 14 6.51M |
|---|
unit Capuccino;
interface
uses
Bebida, System.SysUtils;
type
TCapucino = class(TBebida)
public
function Custo: Currency; override;
function GetDescricao: string; override;
end;
implementation
{ TCapucino }
function TCapucino.Custo: Currency;
begin
inherited;
Result := 3.50;
end;
function TCap... |
unit Comp_UControls;
interface
uses
Controls, Graphics, Types, Messages, Classes, ExtCtrls, Windows,
Comp_UIntf, Comp_UTypes;
type
TPaintState = set of (ptPainting);
{ TScUserControl }
TScUserControl = class(TCustomControl, IViewOwner)
private
{$IFNDEF PADDING}
FPadding: TPadding;
FMargins: TM... |
unit ADAPT.Demo.PrecisionThreads.MainForm;
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.Layouts, FMX.Edit, FMX.EditBox, FMX.SpinBox,
FMX.Controls.Presentation, FMX.StdCtrls... |
unit uProjeto_Controller;
interface
uses uiProjeto_Interface;
type
TProjeto = class(TInterfacedObject, iProjeto)
private
FId : Integer;
FNome : String;
FValor : Currency;
procedure SetId(const Value: Integer);
procedure SetNome(const Value: String);
procedure SetValor... |
{******************************************************************************
* *
* PROJECT : EOS Digital Software Development Kit EDSDK *
* NAME : EDSDKError.pas *
... |
unit BasePopupDetail;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BasePopup, RzButton, RzTabs,
Vcl.StdCtrls, RzLabel, Vcl.Imaging.pngimage, Vcl.ExtCtrls, RzPanel;
type
TfrmBasePopupDetail = class(TfrmBas... |
{ *********************************************************************** }
{ }
{ Delphi Runtime Library }
{ }
{ Copyright (c) ... |
{**
* @Author: Du xinming
* @Contact: QQ<36511179>; Email<lndxm1979@163.com>
* @Version: 0.0
* @Date: 2018.10
* @Brief:
* Windows IOCP API Wrapper
*}
unit org.utilities.iocp;
interface
uses
System.SysUtils,
Winapi.Windows,
org.utilities,
org.utilities.thread;
type
TIOCP = class(TThreadPool)
priva... |
unit SmallClaimsCondoCopyDialogUnit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, wwdblook, Db, DBTables, ExtCtrls, Grids, Wwtable;
type
TSmallClaimsCondoCopyDialog = class(TForm)
OKButton: TBitBtn;
CancelButton: TBitBtn;
SmallClaimsTab... |
UNIT ComplexN;
{ some complex number manipulations }
{$I Float.inc}
interface
uses MathLib0;
TYPE
Complex = RECORD
Re, Im : REAL;
END;
VAR
NearlyZero : FLOAT;
{ default based on presence/absence of math chip }
implementation
procedure Conjugate(C1 : Complex; var C2 : Complex);
begin
C2.Re := C1.... |
unit uFileConfiguration;
interface
uses System.IniFiles,System.SysUtils,Vcl.Forms;
//clase responsavel por efetuar a leitura e escrita dos dados usados para conexao com a base de dados
type
TFileConfiguration = class
portaTCP : String;
usuarioBancoDados :String;
senhaBancoDados : String;
// Objeto resp... |
unit MonForm;
{ Interprocess Communication Demo
This program along with the Client.dpr project, demonstrate a number
of topics in Win32 programming. Threads, Events, Mutexes, and Shared
memory are all used to provide communication between this monitor and
it's clients, see IPCThrd.pas.
To Run, compile this... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLPerlinPFX<p>
PFX particle effects revolving around the use of Perlin noise.<p>
<b>History : </b><font size=-1><ul>
<li>04/11/10 - DaStr - Restored Delphi5 and Delphi6 compatibility
<li>23/08/10 - Yar - Added OpenG... |
PROCEDURE Reverse;
var ch: char;
BEGIN (* Reverse *)
Read(ch);
if ch <> '' then begin
Reverse;
Write(ch);
end;
END; (* Reverse *) |
{$A-,B-,D+,E-,F-,G-,I-,L+,N-,O-,P-,Q-,R-,S-,T-,V-,X+,Y+,Use32+}
{様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様}
{ Streams }
{ Portable source code (tested on DOS and OS/2) }
{ Copyright (c) 1996 by Andrew Zabolotny, FRIENDS sof... |
unit try_finally_1;
interface
implementation
var
G: Int32;
procedure Test;
begin
try
G := 1;
Exit;
finally
G := G + 1;
end;
end;
initialization
Test();
finalization
Assert(G = 2);
end. |
{$H+}
unit Execfile;
interface
uses
WinTypes, WinProcs, Messages,
Classes;
type
TWindowStyle = ( wsNorm, wsMinimize, wsMaximize, wsHide,
wsMinNoActivate, wsShowNoActivate );
TWaitStyle = ( wRegular, wSuspend );
TPriorityClass = ( pcNormal, pcIdle, pcHigh, pcRealTime );
InString = String[255];
TExecFi... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ Local Client DataSet - IB }
{ }
{ Copyright (c) 1997,01... |
unit QuestionSelectFrame;
interface
uses
TestClasses,
Generics.Collections,
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TfrmQuestionSelect = class(TFrame)
PanelQuestionSelect: TPanel;
lbQuestionSelect: TLabel;
cbNumberSelect: TCom... |
unit progressdialog;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, StdCtrls,
ComCtrls;
type
{ ProgressBarDialog }
{ TProgressBarDialog }
TProgressBarDialog = class(TForm)
Label1: TLabel;
barLabel: TLabel;
ProgressBar... |
unit LanguagesU;
interface
uses
System.Generics.Collections;
type
TLanguage = class
Code: string;
Name: string;
private
constructor Create(aName, aCode: string);
end;
TLanguages = class
private
class var FList: TObjectList<TLanguage>;
public
class constructor Create;
class dest... |
unit ufk_colors;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Graphics, LCLIntf, lclType;
function Darker(MyColor:TColor; Percent:Byte):TColor;
function Lighter(MyColor:TColor; Percent:Byte):TColor;
function IsLightColor(const AColor: TColor): Boolean;
function DisabledColor(AColor: TColor; A... |
unit AConfiguracaoFilial;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios,
Componentes1, ExtCtrls, PainelGradiente, Buttons, StdCtrls, Mask,
DBCtrls, Tabela, Localizacao, Db, DBTables, ComCtrls, BotaoCadastro, DBClient;
type
TFConfiguracaoFilial ... |
unit MCheckListBox;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, CheckLst, Menus;
type
{ TMCheckListBox }
TMCheckListBox = class(TCheckListBox)
FPopup : TPopupMenu;
FSelectAll : TMenuItem;
FDeSelectAll : TMenuItem;
FInvertSelect : TMenuItem;
pub... |
unit Thread.Download.Helper;
interface
uses
SysUtils, Classes, Windows, IdHttp, IdComponent,
MeasureUnit.DataSize, MeasureUnit.Time, OS.DeleteDirectory, Getter.WebPath,
Component.ProgressSection, Global.LanguageString;
type
TDownloadModelStrings = record
Download: String;
Cancel: String;
end;
TDo... |
unit DateTimeVisualizer;
interface
procedure Register;
implementation
uses
Classes, Forms, SysUtils, ToolsAPI;
resourcestring
sDateTimeVisualizerName = 'TDateTime/TDate/TTime Visualizer for Delphi and C++';
sDateTimeVisualizerDescription = 'Displays TDateTime, TDate and TTime instances in a human-readable da... |
unit ZLibConst;
interface
resourcestring
sTargetBufferTooSmall = 'ZLib error: target buffer may be too small';
sInvalidStreamOp = 'Invalid stream operation';
sError = 'Error';
implementation
end.
|
unit BodyVariationsJedecQuery;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseQuery, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS,
FireDAC.Phys.Intf, Fir... |
{**********************************************************************}
{* Иллюстрация к книге "OpenGL в проектах Delphi" *}
{* Краснов М.В. softgl@chat.ru *}
{**********************************************************************}
unit Unit1;
interface
use... |
{*******************************************************************************
Developer: josking Date﹕ 2009/11/26
Coding standard version NO. :1.0
Copyright(gbm ems) ,All right reserved
******************************************************************... |
unit WiseAppLock;
interface
uses
SysUtils, Windows, Dialogs;
const
lockDir: string = 'C:\Locks';
crlf: string = #10#13;
(*
** Creates a 'single application instance' lock-file.
** The file's path is C:\Locks\<app-name>.lock, where <app-name>
** is provided at object Create time.
** If the appl... |
(* StringRotation: MM, 2020-03-20 *)
(* ------ *)
(* A Program to rotate find rotations in certain strings *)
(* ========================================================================= *)
... |
unit ClientCommunication;
interface
uses SysUtils, Classes, Windows,
IdContext, IdTCPClient, IdBaseComponent, IdComponent;
procedure addClient(ip_port: string; context: TIdContext);
procedure deleteClient(ip_port:string);
function countClients:integer;
procedure disconnectAllClients;
procedu... |
{
this file is part of Ares
Aresgalaxy ( http://aresgalaxy.sourceforge.net )
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 ... |
unit usave;
{Menyimpan array of ADT masing-masing ke dalam file csv, contoh: array of ADT Buku}
{REFERENSI : http://wiki.freepascal.org/File_Handling_In_Pascal
https://www.youtube.com/watch?v=AOYbfHHh4bE (Reading & Writing to CSV Files in Pascal by Holly Billinghurst)}
interface
uses
k03_kel3_utils,
ubo... |
unit fSurgeryView;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ORFN,
StdCtrls, ExtCtrls, ORCtrls, ComCtrls, ORDtTm, Spin, rSurgery, fBase508Form,
VA508AccessibilityManager;
type
TfrmSurgeryView = class(TfrmBase508Form)
pnlBase: TORAutoPanel;
lblBeginDate: ... |
{
"HTTP Server Provider (WinSock)" - Copyright (c) Danijel Tkalcec
@html(<br>)
Using TRtcWSockServerProvider to implement a HTTP Server provider.
@exclude
}
unit rtcWSockHttpSrvProv;
{$INCLUDE rtcDefs.inc}
interface
uses
Classes,
SysUtils,
rtcLog,
rtcConn,
rtcConnProv,
rtcFastStrings,
rtcWS... |
unit SIBGlobals;
// SuperIB
// Copyright © 1999 David S. Becker
// dhbecker@jps.net
// www.jps.net/dhbecker/superib
interface
uses SysUtils;
const
SIB_MAX_EVENT_BLOCK = 15; // maximum events handled per block by InterBase
SIB_MAX_EVENT_LENGTH = 128; // maximum event name length
type
ESIBError = class(Ex... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ XML Transform Components }
{ }
{ Copyright(c) 1995-2018 Embar... |
unit uROR_GridView;
{$I Components.inc}
interface
uses
ComCtrls, Controls, Classes, Graphics, Variants, uROR_Utilities,
uROR_CustomListView, Messages, CommCtrl, OvcFiler;
type
TCCRGridView = class;
TCCRGridDataType = (gftUnknown, gftString, gftInteger, gftDateTime,
gftDouble, gftFM... |
{_______________________________________________________________
FRAKVOSS.PAS Accompanies "Mimicking Mountains," by Tom Jeffery,
BYTE, December 1987, page 337
______________________________________________________________}
unit fracsurf
interface
{$N+}
VAR
size : longint { compute size x size surface. 64 is reco... |
unit Ntapi.ntpsapi;
{$WARN SYMBOL_PLATFORM OFF}
{$MINENUMSIZE 4}
interface
uses
Winapi.WinNt, Ntapi.ntdef, Ntapi.ntpebteb, Ntapi.ntrtl;
const
// Processes
// ProcessDebugFlags info class
PROCESS_DEBUG_INHERIT = $00000001;
PROCESS_TERMINATE = $0001;
PROCESS_CREATE_THREAD = $0002;
PROCESS_SET_SESSIONI... |
unit uComandos;
interface
const
SYS_START = $21; //! SISTEMA INCIADO C -> S
CMD_OPEN = $61; //a COMANDO PARA COLOCAR O SERVO NA POSIÇÃO DE 180 GRAUS S -> C/C -> S (ECHO)
CMD_CLOSE = $62; //b COMANDO PARA COLOCAR O SERVO NA POSIÇÃO... |
unit u_plugin;
interface
uses
Winapi.Windows,
System.SysUtils,
System.Classes,
System.Net.URLClient,
System.Net.HttpClient,
System.Net.HttpClientComponent,
u_ext_info, u_obimp_const, u_params;
type
// Uptime plugin class
TUptimePlugin = class(TInterfacedObject, IExtensionPG)
private
FTick: In... |
unit BodyTypesForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
DictonaryForm, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters, Vcl.Menus,
System.Actions, Vcl.ActnList, Vcl.StdCtrls, cxButtons, Vcl.ExtC... |
unit xClientControl;
interface
uses System.Classes, System.SysUtils, xClientType, xStudentInfo, xTCPClient,
xFunction, xDataDictionary;
type
TClientControl = class
private
FStudentInfo: TStudentInfo;
FStartTime: TDateTime;
FClientState: TClientState;
FEndTime: TDateTime;
FSubL... |
unit MediaStream.Framer.Picture;
interface
uses Windows,SysUtils,Classes,MediaProcessing.Definitions,MediaStream.Framer;
type
TStreamFramerPicture = class (TStreamFramer)
private
FFrameInterval: cardinal;
public
constructor Create; override;
//Интервал между кадрами
property FrameInterval: ca... |
{-------------------------------------------------------------------------------
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/
Soft... |
unit Nathan.MapFile.Core.Tests;
interface
uses
DUnitX.TestFramework,
Nathan.Resources.ResourceManager,
Nathan.MapFile.Core;
type
[TestFixture]
TTestNathanMapFile = class(TObject)
const
DemoMap = '.\ExceptionStackTraceDemo.map';
private
FCut: INathanMapFile;
public
[Setup]... |
unit ExButtons;
{$mode objfpc}{$H+}
interface
uses
Graphics, Classes, SysUtils, LMessages, Types, Controls, StdCtrls, Forms;
type
TButtonExState = (bxsNormal, bxsHot, bxsDown, bxsFocused, bxsDisabled);
TButtonExBorderWidth = 1..10;
TButtonEx = class;
TButtonExBorder = class(TPersistent)
private
FB... |
unit WizMain;
interface
uses
SysUtils, ToolsApi;
type
EActionServices = class(Exception);
TActionServices = class(TNotifierObject, IOTAWizard, IOTAMenuWizard)
private
FIndex: Integer;
procedure SetIndex(const Value: Integer);
public
function GetIDString: string;
function GetName: string;
... |
{$G+}
Unit String_s;
{
Strings library v1.1
by Maple Leaf, 1996
-------------------------------------------------------------------------
no comments ...
}
interface
Function IStr (n : LongInt) : String; { int->string }
Function RStr (n : Real) : String; { real->string }
Function IVal (s : String) ... |
unit CheckNetwork;
interface
uses wininet, windows;
function IsInternet : boolean;
function IsNetwork : boolean;
function InternetConnected: Boolean;
implementation
function IsInternet : boolean;
var
origin : cardinal;
begin
result := InternetGetConnectedState(@origin,0);
... |
{
Ultibo Font Builder Tool.
Copyright (C) 2016 - SoftOz Pty Ltd.
Arch
====
<All>
Boards
======
<All>
Licence
=======
LGPLv2.1 with static linking exception (See COPYING.modifiedLGPL.txt)
Credits
=======
Information for this unit was obtained from:
References
==========
PC Screen Fonts (PSF) - https:/... |
unit FCRC32;
{32 Bit CRC, fast 4KB table version, polynomial (used in zip and others)}
interface
(*************************************************************************
DESCRIPTION : 32 Bit CRC
REQUIREMENTS : TP6/7, D1-D7/D9-D10/D12/D17-D18/D25S, FPC, VP
EXTERNAL DATA : ---
MEM... |
unit TestDelphiNetConst;
{
AFS May 2005
This unit compiles but is not semantically meaningfull
it is test cases for the code formatting utility
Basic test of class constants in Delphi.NET
}
interface
type
TTemperatureConverter = class(TObject)
public
const AbsoluteZero = -273;
end;
... |
unit MapObject;
{$MODE Delphi}
INTERFACE
USES LCLIntf, LCLType, LMessages, Graphics, Classes, Map, LinkedList;
TYPE TMapObjectType = (OBJECT_FOOD, OBJECT_POWERUP, OBJECT_PACMAN, OBJECT_GHOST);
TYPE TMapObject = CLASS
PUBLIC
CONSTRUCTOR create(_x, _y, _w, _h : INTEGER); OVERLOAD;
FUNCTION getLeft() : INTEGER;... |
unit IdHeaderCoderUTF;
interface
{$i IdCompilerDefines.inc}
uses
IdGlobal, IdHeaderCoderBase;
type
TIdHeaderCoderUTF = class(TIdHeaderCoder)
public
class function Decode(const ACharSet: string; const AData: TIdBytes): String; override;
class function Encode(const ACharSet, AData: String): TIdBytes; ov... |
unit xTCPClient;
interface
uses System.Types,System.Classes, xFunction, system.SysUtils, xTCPClientBase,
xConsts, System.IniFiles, xClientType, xVCL_FMX;
type
TStuReadyEvent = procedure( nTotalCount : Integer) of object;
type
TStuProgressEvent = procedure( nReadyCount, nTotalCount : Integer) of objec... |
{*********************************************}
{ TeeChart Delphi Component Library }
{ Digital Series and Legend Last Values Demo }
{ Copyright (c) 1995-2001 by David Berneda }
{ All rights reserved }
{*********************************************}
{$P-} { <-- VERY IMPORTANT WHE... |
//Основной модуль
//BuckUp системы
//Среда разработки: Delphi 6.0
//Дата: 2007-05-10
//Дополнительные библиотеки:
// VCLZip, ElTree, RxLib, ToolBar97, LMD
unit fMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, kpSFXCfg, VCLZip, VCLUnZip, StdCtrls, ElTree, ... |
unit CompetitorList;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseGridDetail, Data.DB,
System.ImageList, Vcl.ImgList, Vcl.StdCtrls, Vcl.Mask, RzEdit,
RzButton, RzTabs, Vcl.Grids, Vcl.DBGrids, RzDBGrid,... |
unit PrimesWriting;
interface
uses
SysUtils,
Classes,
SyncObjs,
PrimesSieve;
type
TPrimesWriterController = class
private
FSieve: TPrimesSieve;
FThreads: TList;
FFileStream: TFileStream;
FCS: TCriticalSection;
procedure TerminateThreads;
procedure RemoveThread(AThread: TThread);
... |
unit Unit1Test;
interface
uses
SysUtils, Classes, TestFramework, Unit1;
type
ExceptionClass = class of Exception;
TTestMethod = procedure of object;
{ by chrismo -- test cases that trap for specific exception classes have
a lot of duplication. This test case attempts to refactor the common code
into... |
unit PascalCoin.RPC.Test.Main;
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.StdCtrls, FMX.Layouts, FMX.ListBox, FrameStand,
PascalCoin.RPC.Test.Account, PascalCoin.RP... |
unit Finance.Currencies;
interface
uses
Finance.interfaces,
System.JSON;
type
TFinanceCurrencies = class(TInterfacedObject, iFinanceCurrencies)
private
FParent : iFinance;
FSource : string;
FUSD : iFinanceCurrency;
FEUR : iFinanceCurrency;
FGBP : iFinanceCurrenc... |
{ Copyright (C) 1998-2018, written by Shkolnik Mike
E-Mail: mshkolnik@scalabium.com
mshkolnik@yahoo.com
WEB: http://www.scalabium.com
This components allows to create a
TButton, TCheckBox and TRadioButton with multi-line captions.
To use drop a component on form and set a WordWrap property... |
unit MasterMind.API;
interface
const
CODE_SIZE = 4;
MAX_GUESSES = 12;
type
TMasterMindCodeColor = (mmcGreen, mmcYellow, mmcOrange, mmcRed, mmcWhite, mmcBrown);
TMasterMindCode = array[0..CODE_SIZE - 1] of TMasterMindCodeColor;
TMasterMindHint = (mmhNoMatch, mmhWrongPlace, mmhCorrect);
TGuessEvaluationRes... |
1 program DobbelRonde;
2 { Etienne van Delden, 0618959, 26-09-2006 }
3 { Dit programma hoort bij de opgave 'Dobbel Simulatie' en bepaalt simuleert
4 een aantal dobbelrondes. Er word willekeurig gegooid door een vast aantal
5 spelers, waarvan 1 met een dodecaeder gooit. Deze simulatie gebeurt zo vaak
6... |
unit Printer;
interface
uses
System.SysUtils, InterfaceTela;
type
TPrinter = class(TInterfacedObject, ITela)
private
Itens: PrintList;
public
procedure Print;
procedure AddNaTela(Item: ITela);
end;
implementation
{ TPrinter }
procedure TPrinter.AddNaTela(Item: ITela);
begin
Itens := Itens ... |
{*******************************************************}
{ }
{ Delphi LiveBindings Framework }
{ }
{ Copyright(c) 2011-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
{*******************************************************}
{ }
{ Borland Delphi Sample }
{ }
{ Copyright (c) 2001 Inprise Corporation }
{ ... |
unit UDaoFuncionario;
interface
uses uDao, DB, SysUtils, Messages, UFuncionario, UEndereco, UDaoCidade,
UDaoCargo, UUsuario;
type DaoFuncionario = class(Dao)
private
protected
umFuncionario : Funcionario;
umEndereco : Endereco;
umaDaoCidade : DaoCidade;
... |
unit GR32_TestGuiPngDisplay;
(* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1 or LGPL 2.1 with linking exception
*
* 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 co... |
unit Sequence;
interface
type
TSequence = class(TObject)
private
protected
FValue: Integer;
public
constructor Create(StartValue: Integer = 0);
function NextValue: Integer; virtual;
property Value: Integer read FValue write FValue;
end;
implementation
constructor TSequence.Create(StartValu... |
unit Initializer.Locale;
interface
uses
Forms, SysUtils, StdCtrls, ExtCtrls, Windows, Classes, Graphics, Controls,
Global.LanguageString;
procedure ApplyLocaleToMainformAndArrangeButton;
implementation
uses Form.Main;
type
THackControl = class(TControl);
THackMainForm = class(TfMain);
TLocaleApplier = ... |
unit WiseStatusLine;
interface
uses Classes, Dialogs, StdCtrls, ExtCtrls, DateUtils, Graphics, SysUtils;
type TWiseStatusLine = class(TLabel)
private
timer: TTimer;
expiration: TDateTime;
public
constructor Create(owner: TComponent); override;
procedure Show(msg: string; millis: integer = -... |
unit SecurityData;
interface
uses
System.SysUtils, System.Classes, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf,
FireDAC.DApt.Intf, FireDAC.Stan.Async, FireDAC.DApt, Data.DB,
FireDAC.Comp.DataSet, FireDAC.Comp.Client, Data.Win.ADODB;
type
T... |
unit ufQYesNo;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls,
FMX.Layouts, FMX.Controls.Presentation, FMX.ListBox, FMX.TabControl, uBusiObj;
const
cTabName = 'TabQYesNo';
... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+}
{$M 16384,0,0}
{
by Behdad Esfahbod
Algorithmic Problems Book
September '1999
Problem 41 O(N3) Dfs Method
}
program
DirectingEdges;
const
MaxN = 100;
var
N, E : Integer;
G : array [0 .. MaxN, 1 .. MaxN] of Integer;
M : array[1 .. MaxN] of Boolean;
... |
unit uObjectDrawing;
interface
uses
System.Math,
System.SysUtils,
System.Types,
Vcl.Graphics,
Vcl.Forms,
uMyTypes;
type
TDrawingObject = class(TObject)
private
_zoom: Double;
_backPlane: TBitmap;
_canvasFrontEnd: TCanvas;
_canvasFrontEnd_Height: Integer; // potrebujeme koli prevrateni... |
// 6-Faça um algoritmo que lê uma temperatura em Fahrenheit e calcule a
// temperatura correspondente em Celsius. Ao final o programa deve exibir
// as duas temperaturas.
// – Usar a fórmula:
// C = (5 * (F-32) / 9)
Program Temperatura;
var
fah, cel : real;
Begin
writeln('Informe a temperatura em Fahrenheit: ... |
unit Generator;
interface
uses
Properties;
type TGenerator = class
private
FName: string;
FProperties: TProperties;
function getName: string;
procedure setName(const aName: string);
function getProperties: TProperties;
procedure setProperties(const aProperties:TProperties);
published
... |
unit LLVM.Imports.Target;
interface
//based on Target.h
uses
LLVM.Imports,
LLVM.Imports.Types;
{$MINENUMSIZE 4}
type
TLLVMByteOrdering = (LLVMBigEndian, LLVMLittleEndian);
TLLVMTargetDataRef = type TLLVMRef;
TLLVMTargetLibraryInfoRef = type TLLVMRef;
//LLVM supports macros to generate the functions t... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC MySQL metadata }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit MediaProcessing.Convertor.HHAU.PCM.Impl;
interface
uses Windows,SysUtils,Classes,MediaProcessing.Convertor.HHAU.PCM,MediaProcessing.Definitions,MediaProcessing.Global,HHCommon, HHDecoder;
type
TMediaProcessor_ConvertorHhAu_Pcm_Impl =class (TMediaProcessor_Convertor_HhAu_Pcm,IMediaProcessorImpl)
private
... |
unit MaintenanceDrawer;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseDocked, RzLabel, Vcl.StdCtrls,
Vcl.ExtCtrls, RzPanel, RzCmboBx, RzTabs, AppConstants, SaveIntf, NewIntf;
type
TfrmMaintenanceDrawer... |
{===============================================================================
Copyright(c) 2014, 北京北研兴电力仪表有限责任公司
All rights reserved.
学员信息单元
+ TStudentControl 学员数信息控制类
===============================================================================}
unit xStudentControl;
interface
uses
S... |
{***************************************************************
*
* Project : UDPServer
* Unit Name: ServerMainForm
* Purpose : Demonstrates UDPServer component
* Date : 21/01/2001 - 16:08:50
* History :
*
****************************************************************}
unit ServerMainForm;
interface
... |
unit Settings;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Menus, ExtCtrls, ComCtrls, pngimage;
type
TSettingsForm = class(TForm)
Save: TButton;
Button1: TButton;
Button2: TButton;
S1: TShape;
S2: TShape;
S3: TShape;
L... |
unit PersistentDialogU;
//Base class for a dialog form which can be created and freed
//on the fly, but can still be persistent when created with
//the constructor 'make'. It then streams out its dfm file to
//a temp directory and reads it back in when recreated.
//User must take care of erasing the temp-folder when
/... |
unit rPCE;
{$OPTIMIZATION OFF} // REMOVE AFTER UNIT IS DEBUGGED
interface
uses SysUtils, Classes, ORNet, ORFn, uPCE, UBACore, ORClasses, windows;
const
LX_ICD = 12;
LX_CPT = 13;
LX_SCT = 14;
LX_Threshold = 15;
PCE_IMM = 20;
PCE_SK = 21;
PCE_PED = 22;
PCE_HF = 23;
P... |
unit Rx.Observable.Just;
interface
uses Rx, Rx.Implementations;
type
TJust<T> = class(TObservableImpl<T>)
type
TValuesCollection = array of TSmartVariable<T>;
strict private
FItems: TValuesCollection;
FEnumerator: IEnumerator<TSmartVariable<T>>;
procedure ItemsEnumerate(O: IObserve... |
unit Hash;
interface
uses
SysUtils,
Classes;
type
THashItem = class(TObject)
private
FHashIndex: Integer;
FNext, FPrev, // global item list
FBucketNext, FBucketPrev: THashItem; // bucket list
FKey,
FValue: Variant;
public
property HashIndex: Integer read FHashIndex;
... |
1 program SearchTest;
2 { Etienne van Delden, 0618959, 27-20-2006 }
3 { Dit programma test de correctheid van de procedure Find in lists.pas }
4
5 //** USES **********************************
6 uses
7 lists;
8
9 //** GLOBAL VARIABLES **********************
10
11 var
12
13 ou... |
Program FunctionTest;
Var
num, pownum, expo: Integer;
Function mypower(x,y:Integer):Integer;
Var
i, value:Integer;
Begin
value:=1;
for i:=1 to y do
value := value * x;
mypower := value;
End;
Begin
Write('Give a number : ');
Readln(num);
Write('Give the exponent : ');
Readln(expo);
pown... |
unit log_core;
// Version 1.3 //with commands
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, StdCtrls, LCLType;
type TprocNoArgs = procedure of object;
type
{ tcommand }
tcommand=class
private
identifier:string;
action:tprocnoargs;
helptext:string;
public
constructor create(_identifier:... |
{ Unit indcyGraphics from cyGraphics
Description:
Unit with graphic functions
* ***** BEGIN LICENSE BLOCK *****
*
* Version: MPL 1.1
*
* 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 w... |
{ $Id: FastMMMonitorTest.pas 23 2008-08-26 04:42:20Z judc $ }
{: DUnit: An XTreme testing framework for Delphi programs.
@author The DUnit Group.
@version $Revision: 23 $
}
(*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* excep... |
unit Evaluator;
interface
uses StrUtils, SysUtils, Classes, Windows, Contnrs,
Messages, Dialogs, Variants, DateUtils;
const
AlphaNum = ['a'..'z', 'A'..'Z', 'а'..'я', 'А'..'Я', '_', '1'..'9', '0'];
type
TPreCheck = procedure (List, SetList : TStringList);
TLog = procedure(S : string);
function Eval... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.