text stringlengths 14 6.51M |
|---|
{
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 utils_redis;
interface
uses
utils_DValue, SysUtils, diocp.core.rawWinSocket, diocp.winapi.winsock2, Classes, utils_rawPackage,
utils_async, utils.strings, SysConst;
const
MAX_LEN = 10240;
type
TRedisCommand = class(TObject)
private
FRawPackage: TRawPackage;
FCommand: String;
FData: TDValu... |
unit ComponentsQuery;
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.Param,
FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf,
Fire... |
{*******************************************************}
{ }
{ Delphi VCL Extensions (RX) }
{ }
{ Copyright (c) 1997 Master-Bank }
{ ... |
{
ID: a2peter1
PROG: cowtour
LANG: PASCAL
}
{$B-,I-,Q-,R-,S-}
const
problem = 'cowtour';
MaxN = 150;
oo = 1 shl 30;
var
ch : char;
sol,t : real;
N,S,i,j : longint;
farth,fcp : array[0..MaxN] of real;
X,Y,comp : array[0..MaxN] of longint;
mat : arra... |
unit TestFileConverter;
{(*}
(*------------------------------------------------------------------------------
Delphi Code formatter source code
The Original Code is TestFileConverter.pas, released December 2005.
The Initial Developer of the Original Code is Anthony Steele.
Portions created by Anthony Steele ... |
{ @exclude }
unit rtcEditors;
{$INCLUDE rtcDefs.inc}
interface
uses
{$IFDEF IDE_6up}
DesignIntf, DesignEditors, TypInfo,
{$ELSE}
DsgnIntf, TypInfo,
{$ENDIF}
Consts,
Classes;
type
TRtcSimpleAddStringList = class(TStringList)
public
procedure SimpleAdd(const s: string);
end;
TR... |
unit xElecPoint;
interface
uses SysUtils, Classes;
const
/// <summary>
/// 无效权值
/// </summary>
C_WEIGHT_VALUE_INVALID = 9999;
type
/// <summary>
/// 权值类
/// </summary>
TWeightValue = class
private
FWID: Integer;
FWValue: Integer;
public
constructor Create;
... |
unit fOrdersVerify;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
fAutoSz, StdCtrls, ORFn, ORCtrls, ExtCtrls, VA508AccessibilityManager;
type
TfrmVerifyOrders = class(TfrmAutoSz)
Panel1: TPanel;
lblVerify: TLabel;
lstOrders: TCaptionListBox;
Panel2: TP... |
unit gui_benri;
// 説 明:面倒な手続きをユニットにまとめたもの
// 作 者:クジラ飛行机(web@kujirahand.com)
// 公開日:2001/10/21
interface
uses
SysUtils, Classes, Forms, Windows, ShellApi, ComObj, ActiveX, ShlObj, Registry;
function AppPath: string;
function MsgYesNo(msg: string): Boolean; overload;
function MsgYesNo(msg,cap: string): B... |
unit TestCondReturns;
interface
uses
Dialogs;
implementation
function DoTestCondReturns: Boolean;
var
foo, bar: boolean;
begin
if foo then
begin
{$IFDEF DEBUG}
MessageDlg('Foo!',
mtInformation, [mbOK], 0);
{$ENDIF}
Result := True;
bar := False;
end;
end;
end. |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC Informix driver }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit URepositorioCoren;
interface
uses
UCoren
, UEntidade
, URepositorioDB
, SqlExpr
;
type
TRepositorioCoren = class(TRepositorioDB<TCoren>)
private
public
constructor Create;
//destructor Destroy; override;
procedure AtribuiDBParaEntidade(const coCOREN: TCoren); override;
proced... |
unit FC.StockChart.UnitTask.BB.AdjustWidthDialog;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Contnrs,
Dialogs, BaseUtils,SystemService, ufmDialogClose_B, ufmDialog_B, ActnList, StdCtrls, ExtendControls, ExtCtrls, Spin,
StockChart.Definitions,StockChart.Definitions.... |
unit GrafTool;
interface
uses Graph;
PROCEDURE MakePolyCircle(x,y,radius,numpoints);
CONST
maxpoints = 50;
TYPE
Poly := ARRAY[0..49] OF PointType;
VAR
PolyCircle := Poly;
BEGIN
radsqrd := radius * radius;
halfpoints := numpoints div 2;
scale := radius / numpoints;
startX := x - scale / 2;
FOR point := ... |
unit UFUserRegister;
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, UIRegisterController;
type
TFUserRegister = class(TForm)
pnlBackground: TPanel;
... |
{*********************************************}
{ TeeBI Software Library }
{ Importing data from TComponent }
{ Copyright (c) 2015-2017 by Steema Software }
{ All Rights Reserved }
{*********************************************}
unit BI.Store.Component;
interf... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+}
{$M 1024,0,0}
{
by Behdad Esfahbod
Algorithmic Problems Book
April '2000
Problem 171 O(N3) BellmanFord Alg.
}
program
TransferInWeightedGraph;
const
MaxN = 100;
var
N, M : Integer;
G : array [0 .. MaxN, 0 .. MaxN] of Longint;
S : array [0 .. MaxN] of... |
{********************************************}
{ TeeChart Pro Charting Library }
{ Average Function editor }
{ Copyright (c) 2002-2004 by David Berneda }
{ All Rights Reserved }
{********************************************}
unit TeeAvgFuncEditor;
{$I TeeDefs.inc... |
unit RealSizeUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, Generics.Collections;
type
TRealSizeForm = class(TForm)
RealSizePaintBox: TPaintBox;
procedure FormShow(Sender: TObject);
procedure RealSizePaintBoxPaint(Sender: TObject);
... |
unit nexUrls;
interface
uses Sysutils, Classes, idHttp, md5, SyncObjs, ExtCtrls, Windows;
type
TnexUrlsRefresh = class ( TThread )
protected
procedure Execute; override;
procedure Get;
public
ResOk : Boolean;
ResString : String;
constructor Create;
end;
TnexUrls = class ( TStringLi... |
unit chrome_common;
{$mode delphi}{$H+}
{$I vrode.inc}
interface
uses
Classes, SysUtils, variants,
vr_utils, vr_types, //vrUtilsPlus,
uCEFTypes, uCEFInterfaces, uCEFv8Value, uCEFValue,
uCEFListValue;
type
Pustring = ^ustring;
const
MSG_CMD: ustring = 'cmd';
MSG_EVENT: ustring = 'event... |
(*
Name: KPInstallVisualKeyboard
Copyright: Copyright (C) SIL International.
Documentation:
Description:
Create Date: 3 May 2011
Modified Date: 3 Feb 2015
Authors: mcdurdin
Related Files:
Dependencies:
Bugs:
Todo:
... |
{ Copyright (C) 1998-2011, written by Mike Shkolnik, Scalabium Software
E-Mail: mshkolnik@scalabium
WEB: http://www.scalabium.com
Const strings for localization
freeware SMComponent library
}
unit SMCnst;
interface
{Traditional Chinese strings}
const
strMessage = '列印...';
strSaveChanges = '... |
unit Vigilante.Controller.Build.Impl;
interface
uses
System.SysUtils, Vigilante.Controller.Build, Vigilante.DataSet.Build,
Vigilante.Build.Model, Vigilante.View.URLDialog,
Vigilante.Controller.Base.Impl, Module.ValueObject.URL,
Module.DataSet.VigilanteBase, Vigilante.Controller.Mediator;
type
TBuildControl... |
program cch;
(*************************************************************************
DESCRIPTION : Console demo for CRC/HASH
REQUIREMENTS : TP5-7, D1-D7/D9-D10/D12/D17-D18, FPC, VP
EXTERNAL DATA : ---
MEMORY USAGE : ---
DISPLAY MODUS : ---
REFERENCES : ---
Ve... |
{-----------------------------------------------------------------------------
Unit Name: DelphiSettingRegistry
Author: Erwien Saputra
This software and source code are distributed on an as is basis, without
warranty of any kind, either express or implied.
This file can be redistributed, modified if yo... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+}
{$M 1024,0,0}
{
by Behdad Esfahbod
Algorithmic Problems Book
April '2000
Problem 162 Dfs Method O(N2)
}
program
SerialParallelCircuit;
const
MaxN = 100 + 1;
MaxE = 3 * MaxN div 2 + 1;
var
N, E, S, T : Integer;
G : array [1 .. MaxN, 1 .. 3] of Intege... |
unit SendKeys;
//SendKeys
//--------
//
// Easy Method :
//
// SendKeysTo(Window Title text, key codes)
//
// This sets focus to window with specified window text and sends
// it given key codes.
//
// e.g. to close Delphi :
//
// SendKeysTo('Delphi 2.0',SK_ALT_DN + 'F' + 'x' + SK_ALT_UP);
//
// Copyright 1997,... |
unit UDPBindingStorage;
interface
uses Windows, Classes, Threads.ReqSpecDevTemplate, IdSocketHandle, IdUDPServer, SysUtils, GMGlobals;
type
TUDPBindingAndThread = class(TCollectionItem)
public
thread: TRequestSpecDevices;
binding: TIdSocketHandle;
end;
TUDPBindingsAndThreads = class(TCollection)
p... |
{$I NEX.INC}
unit ncDMCaixa;
{
ResourceString: Dario 12/03/13
}
interface
uses
SysUtils, Classes, DB, nxdb, kbmMemTable, nxllTransport,
nxptBasePooledTransport, nxtwWinsockTransport, nxsdServerEngine,
nxreRemoteServerEngine, nxllComponent, frxClass, frxDBSet, frxExportPDF,
uLogs, uNexTransResourceStrings... |
(* PatternMatching: MM, 2020-03-18 *)
(* ------ *)
(* SImple pattern matching algorithms for strings *)
(* ========================================================================= *)
... |
unit UFrmReturnBill;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UFrmBill, dxSkinsCore, dxSkinsdxBarPainter, dxSkinsDefaultPainters,
dxBar, cxClasses, ImgList, cxGraphics, Grids, AdvObj, BaseGrid, AdvGrid,
ExtCtrls, StdCtrls, cxControls, cxLookAnd... |
unit BillContentExportView;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, GridFrame, cxGraphics, cxControls,
cxLookAndFeels, cxLookAndFeelPainters, cxStyles, dxSkinsCore,
dxSkinsDefaultPainters, cxCustomD... |
unit BaseGridDetail;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseDocked, Data.DB, Vcl.StdCtrls,
Vcl.Mask, RzEdit, RzTabs, Vcl.Grids, Vcl.DBGrids, RzDBGrid, RzLabel,
Vcl.ExtCtrls, RzPanel, RzButton, Sy... |
// Copyright 2021 Darian Miller, Licensed under Apache-2.0
// SPDX-License-Identifier: Apache-2.0
// More info: www.radprogrammer.com
unit radRTL.HOTP;
interface
uses
System.SysUtils;
type
EOTPException = class(Exception);
// "Password generated must be at least 6, but can be 7 or 8" digits i... |
unit APesarCartucho;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios,
StdCtrls, Buttons, Mask, numericos, Componentes1, Localizacao, ExtCtrls,
PainelGradiente, UnToledo, DBKeyViolation, UnArgox, UnDadosProduto, Menus;
type
TFPesarCartucho = class... |
unit UnitRepository;
interface
uses
SysUtils;
function GetUserFolder(UserId: string): string;
function GetDesktopFolder(UserId: string): string;
function GetWebcamFolder(UserId: string): string;
function GetMicrophoneFolder(UserId: string): string;
function GetKeyloggerFolder(UserId: string): string... |
unit LandlordDetail;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BasePopupDetail, Vcl.StdCtrls, Vcl.Mask,
RzEdit, RzDBEdit, RzButton, RzTabs, RzLabel,
Vcl.Imaging.pngimage, Vcl.ExtCtrls, RzPanel;
type
... |
unit ClassNulovy;
interface
uses ExtCtrls, Windows, MojeTypy;
type TNulovy = class
protected
Image : TImage;
public
Hotovo : boolean;
NasielRiesenie : boolean;
Funkcia : TMojaFunkcia;
Stred : TPoint;
NakresliL, NakresliP : real;
PocitajL, PocitajP : real;... |
unit ufrmFeed;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls,
FMX.Header, FMX.Layouts,uDmPrincipal, FMX.Objects, FMX.Ani, FMX.ExtCtrls,
FMX.Effects, FMX.Edit, FMX.Controls.Presentation,... |
PROGRAM MARKS;
VAR
oral1, oral2, oral3, exam: INTEGER;
average: REAL;
BEGIN
WRITE ('Input the first oral grade : ');
READ (oral1);
WRITE ('Input the second oral grade : ');
READ (oral2);
WRITE ('Input the third oral grade : ');
READ (oral3);
WRITE ('Input your exam grade : ');
READ (exam);
average := (ora... |
////////////////////////////////////////////
// Шаблонный класс для опроса приборов через пассивные конвертеры/модемы/порты
////////////////////////////////////////////
unit Threads.ReqSpecDevTemplate;
interface
uses Classes, Windows, SysUtils, GMGlobals, GMConst, ActiveX,
GMSqlQuery, GM485, GMGenerics, RequestL... |
unit IdFinger;
{*******************************************************}
{ }
{ Indy Finger Client TIdFinger }
{ }
{ Copyright (C) 2000 Winshoes Working Group }
{ Origin... |
{ Copyright (C) 1998-2011, written by Mike Shkolnik, Scalabium Software
E-Mail: mshkolnik@scalabium
WEB: http://www.scalabium.com
Const strings for localization : Portuguese(Standard)
freeware SMComponent library
}
unit SMCnst;
interface
{Translated by Fernando Dias (fernandodias@easygate.com.pt)
... |
unit FLista;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, uCtrlObject, FCadastroPai, uCadastroPaiClass,
Data.DB, Datasnap.DBClient, FCadastroMestreDet;
type
TfrmLista = class(TForm)
ds: TDataSource;
... |
unit SpectrumStrings;
{$mode objfpc}{$H+}
interface
const
NL = LineEnding;
NL2 = LineEnding + LineEnding;
resourcestring
Action_Undo = 'Undo';
Action_Redo = 'Redo';
Dlg_DiagramTitleCaption = 'Diagram Title';
Dlg_DiagramTitlePrompt = 'Enter new diagram title:';
Dlg_GraphTitleCaption = 'Graph Title';
... |
{$MODE OBJFPC} { -*- delphi -*- }
{$INCLUDE settings.inc}
program startgame;
uses
sysutils,
world,
exceptions;
// Command line argument: world file, players file, directory of first turn
// The first turn directory should not yet exist and will be created.
// The world JSON files have the following... |
unit ncErros;
{
ResourceString: Dario 12/03/13
}
interface
uses
SysUtils,
classes,
uNexTransResourceStrings_PT;
type
ENexCafe = class(Exception);
const
ncerrTipoClasseInvalido = 1;
ncerrItemInexistente = 3;
ncerrItemSemAlteracoes = 4;
ncerrInfoLoginInvalida = 5;
ncerrErroBD ... |
unit QuestionInputFrame;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, TestClasses;
type
TfrmQuestionInput = class(TFrame)
PanelInputQuestion: TPanel;
lbQuestion: TLabel;
edQuestion: TLabeledEdit;
edNumber: TLabeledEdit;
... |
program Sample;
var
A,B,C,D : Boolean;
begin
A := TRUE;
B := FALSE;
C := A or B;
D := A and B;
WriteLn('A = ',A);
WriteLn('B = ',B);
WriteLn('C = ',C);
WriteLn('D = ',D)
end.
|
unit SMCnst;
interface
{Chinese GB strings}
const
strMessage = '打印...';
strSaveChanges = '是否确认保存变更到数据库中?';
strErrSaveChanges = '保存失败, 请检查数据库连接.';
strDeleteWarning = '是否确认删除表 %s?';
strEmptyWarning = '是否确认清空表 %s?';
const
PopUpCaption: array [0..24] of string[33] = // I think "string" is bet... |
unit PRFWK_Utilidades;
interface
uses PRFWK_Classe, Forms, SysUtils, StrUtils, IniFiles, Windows, Classes, Graphics;
type
TPRFWK_Utilidades = class(TPRFWK_Classe)
private
function replaceSubstring( stringAntiga, stringNova, s : string ) : string;
function extenso3em3( Numero : Word ) : stri... |
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, Spin,
ComCtrls, StdCtrls;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
Image1: TImage;
Panel1: TPanel;
SpinEdit1: TSpinEdit;
SpinEdit2: TSpinEdi... |
unit uDMMoz;
interface
uses
SysUtils, Dialogs, Classes, Windows, LMDCustomComponent, LMDBaseController, LMDCustomContainer,
LMDGenericList, OleCtrls, MOZILLACONTROLLib_TLB, ActiveX;
type
TdmMoz = class(TDataModule)
glRoot: TLMDGenericList;
glComp: TLMDGenericList;
glDefaults_Pref: TLMDGenericList;
... |
unit PascalCoin.Utils.Classes;
interface
uses System.Generics.Collections, System.Classes, System.SysUtils,
PascalCoin.Utils.Interfaces;
Type
TPascalCoinList<T> = class(TInterfacedObject, IPascalCoinList<T>)
private
FItems: TList<T>;
protected
function GetItem(const Index: Integer): T;
function ... |
CONST
CONNECT_MAX = 5;
DISCONNECT_MAX = 5;
COMMAND_MAX = 40;
RESPONSE_MAX = 10;
TYPE
LPSArrayType = ARRAY[0..RESPONSE_MAX] OF BYTE;
CommandStringType = STRING[COMMAND_MAX];
ResponseStringType = STRING[RESPONSE_MAX];
CfgRecordType = RECORD
command : CommandStringType;
response : Resp... |
program khanHW3;
{ NAME: Camron Khan }
{ DATE: November 22, 2017 }
{ COURSE: CSC 540 - Graduate Research }
{ DESCRIPTION: This program simulates a 37-slot roulette ta... |
program quicksort;
type
list = array [0 .. 9] of char;
var
l: list;
i: integer;
procedure swap (i: ^char; j: ^char);
var
t: char;
begin
t := i^;
i^ := j^;
j^ := t
end;
procedure quick (l: ^list; a: integer; c: integer);
var
b: char;
i: integer;
j: integer;
t: char... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FireDAC.UI.Intf, FireDAC.VCLUI.Wait,
FireDAC.Stan.Intf, FireDAC.Comp.UI, FBZabuuWaitCursor, FDZabuuReplicator,
Vcl.StdCtrls, Vcl.Menus;
type
TFor... |
{ Program MAKE_DSPIC_INC [pic]
*
* Make the include file for each dsPIC processor that has a linker file, or
* for a single specific processor. The include file will contain definitions
* of symbols found in the linker file that meet the following criteria:
*
* 1 - The name starts with an alphabetic charac... |
unit DlgNameAddressUnit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Mask, DBCtrls, Db, DBTables, Wwtable, Buttons, ToolWin,
ComCtrls, ExtCtrls;
type
TNameAddressDialogForm = class(TForm)
NameAddressGroupBox: TGroupBox;
Label11: TLabel;
Label... |
unit uAccounting;
{$mode objfpc}{$H+}
interface
uses
SynCommons, mORMot, uForwardDeclaration;//Classes, SysUtils;
type
// 1
TSQLBudget = class(TSQLRecord)
private
fName: RawUTF8;
fBudgetType: TSQLBudgetTypeID;
fCustomTimePeriod: TSQLCustomTimePeriodID;
fComments: RawUTF8;
publi... |
unit Unit1;
interface
uses
Winapi.Windows,
System.SysUtils, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
Vcl.ExtCtrls, Vcl.StdCtrls, Vcl.Imaging.Jpeg,
//GLS
GLScene, GLObjects, GLTerrainRenderer, GLHeightData, GLCadencer,
GLTexture, GLWin32Viewer, GLVectorGeometry, GLCr... |
unit TestCalcLogic;
{
Delphi DUnit Test Case
----------------------
This unit contains a skeleton test case class generated by the Test Case Wizard.
Modify the generated code to correctly setup and call the methods from the unit
being tested.
}
interface
{$RTTI EXPLICIT METHODS([vcPrivate..vcPublished]) ... |
unit CustomCrypt;
{/*
Модуль Cryptor реализует интерфейс к OpenSSL и Synapse, что позволяет
шифровать сообщения, отправлять и получать почту...
Перспективные задачи:
1. Реализовать протокол аутентификации и обмена информации
2. Создать хранилище ключей
3. Сохранение и удаление переписки
*... |
unit Test_FIToolkit.Config.Storage;
{
Delphi DUnit Test Case
----------------------
This unit contains a skeleton test case class generated by the Test Case Wizard.
Modify the generated code to correctly setup and call the methods from the unit
being tested.
}
interface
uses
TestFramework,
FIToolkit... |
unit Security4D.UnitTest.Car;
interface
uses
Security4D.Aspect,
Security4D.UnitTest.Credential;
type
TCar = class
private
fAction: string;
protected
{ protected declarations }
public
[RequiredPermission('Car', 'Insert')]
procedure Insert; virtual;
[RequiredPermission('Car', 'Update'... |
unit FileListing;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
StdCtrls, ExtCtrls;
type
TFileType =({ftDirectory,}ftArchive,ftReadonly,
ftSystem,ftHidden,{ftCompressed,}ftTemporary,ftAll);
TFileTypes = Set of TFileType;
TFileObject = class
N... |
unit uCommon;
interface
const
// Статы
ST_SPEED = 1;
ST_SNEAK = 2;
ST_FIGHT = 3;
ST_WILL = 4;
ST_LORE = 5;
ST_LUCK = 6;
// Константы фаз
PH_UPKEEP = 1;
PH_MOVE = 2;
PH_ENCOUNTER = 3;
PH_OTHER_WORLDS_ENCOUNTER = 4;
PH_MYTHOS = 5;
// Константы Типов Карт
CT_WEAPON = 9; ... |
(*
* (c) Copyright 1995, MAP Ltd., Veldhoven
*
* Function : Pause!16.PAS
*
* Abstract : Pause! Version 1.6
*
* Description : see Summary
*
* Remarks : á ð Alt-225
* MV ð Menno A.P.J. Vogels
*
* History : Version 1.4 source, ?
*
* Version 1.5 source, 94-04
... |
unit MyFileDialogs;
interface
uses
SysUtils, MyUtils, Vcl.StdCtrls;
type
TFileDialogs = class
class procedure OpenFileAll(Sender: TObject);
class procedure OpenFileFB(Sender: TObject);
class procedure OpenFileFBK(Sender: TObject);
class procedure OpenFileDLL(Sender: TObject);
class procedure OpenFolder... |
unit IdTunnelMaster;
interface
uses
Classes,
IdTCPServer, IdTCPClient, IdTunnelCommon,
SyncObjs;
type
TIdTunnelMaster = class;
MClientThread = class(TThread)
public
MasterParent: TIdTunnelMaster;
UserId: Integer;
MasterThread: TIdPeerThread;
OutboundClient: TIdTCPClient;
DisconnectedO... |
unit TransparentComboBox;
interface
uses
System.SysUtils, System.Classes, FMX.Types, FMX.Controls, System.Types,
FMX.Objects, System.UITypes, FMX.Graphics, FMX.Dialogs, System.Math,
System.Math.Vectors, FMX.Edit, FMX.Layouts, FMX.Effects, SolidInput, Card,
FMX.StdCtrls, FMX.Ani, System.Threading, Input, Trans... |
unit ThreadQueryU;
interface
uses
Windows, Classes, SysUtils, db, grids, dmThreadU;
type
ThreadQuery = class(TThread)
private
dmThread : TdmThread;
dtsResults : TDataSource;
FDatabaseName : String;
FSql : String;
FGrid : TStringGrid;
FUserName, FPassword : String;
procedure DisplayR... |
unit uRigControl;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Process, ExtCtrls, lNetComponents, lnet;
type TRigMode = record
mode : String[10];
pass : word;
end;
type TVFO = (VFOA,VFOB);
type
TExplodeArray = Array of String;
type TRigControl = class
rcvdFreqMode : TLTCPComponent;
... |
unit Repr;
//{$MODE Delphi}
//# BEGIN TODO Completed by: author name, id.nr., date
{ E.I.R. van Delden, 0618959, 06-06-07 }
//# END TODO
//------------------------------------------------------------------------------
// This unit contains facilities for mapping formula trees to textual
// representations.... |
{
$Project$
$Workfile$
$Revision$
$DateUTC$
$Id$
This file is part of the Indy (Internet Direct) project, and is offered
under the dual-licensing agreement described on the Indy website.
(http://www.indyproject.org/)
Copyright:
(c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserv... |
unit IWDBStdCtrls;
{PUBDIST}
interface
uses
{$IFDEF Linux}QDBCtrls,{$ELSE}DBCtrls,{$ENDIF}
{$IFDEF Linux}QControls,{$ELSE}Controls,{$ENDIF}
Classes, DB,
IWControl, IWCompCheckbox, IWCompEdit, IWCompLabel, IWCompListbox, IWCompMemo,
IWCompText, IWHTMLTag, IWFileReference;
type
TIWDBCheckBox = class(TIWCus... |
////////////////////////////////////////////////////////////////////////////////
//
//
// FileName : SUIStatusBar.pas
// Creator : Shen Min
// Date : 2003-08-04 V4
// Comment :
//
// Copyright (c) 2002-2003 Sunisoft
// http://www.sunisoft.com
// Email: support@sunisoft.com
//
////////////... |
unit cFornecedor;
interface
uses
SysUtils;
type
Fornecedor = class (TObject)
protected
codForn : integer;
endForn : string;
bairroForn : string;
cidadeForn : string;
emailForn : string;
estadoForn ... |
unit LargeBlockSpreadBenchmark;
interface
uses
BenchmarkClassUnit, Math;
const
{The number of pointers}
NumPointers = 2000;
{The block size}
BlockSize = 65537;
type
TLargeBlockSpreadBench = class(TFastcodeMMBenchmark)
protected
FPointers: array[0..NumPointers - 1] of PChar;
public
construct... |
unit Gutter;
interface
uses
Windows, Types, KOL, KOLHilightEdit;
function NewGutter(AParent: PControl; Editor: PHilightMemo): PControl;
implementation
{$R Gutter.res}
type
PGutter = ^TGutter;
TGutter = object(TObj)
private
FGutter: PControl;
FEditor: PHilightMemo;
FBookmarks... |
unit AviThread;
interface
uses
Windows, Graphics, Classes, AviWriter_2;
type
TBitmapsDoneEvent = procedure(Sender: TObject; BitmapList: TList; BitmapCount: integer) of object;
TTransObject = class
private
fsbm, ftbm, fres: TBitmap;
fTransitTime: integer;
fImageTime: integer;
ftInv: double;
... |
unit MasterMind.Evaluator.Mock;
{$IFDEF FPC}{$MODE DELPHI}{$ENDIF}
interface
uses
MasterMind.API;
type
IGuessEvaluatorMock = interface
['{21139CC3-FD94-4DC2-957D-7324C5CA00FB}']
procedure SetEvaluationResult(const Value: TGuessEvaluationResult);
function GetEvaluationResult: TGuessEvaluationResult;
... |
unit uSignItems;
{ .$define debug }
interface
uses
SysUtils,
Windows,
Classes,
Graphics,
Controls,
StdCtrls,
CheckLst,
ORClasses,
ORCtrls,
Dialogs,
UBAConst,
fODBase,
UBACore,
Forms;
type
TSigItemType = (siServiceConnected, siAgentOrange, siIonizingRadiation,
siEnvironmentalContami... |
unit DialogItems;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls,
Menus, LazUTF8, LCLProc, CommonFunc;
const
clHighLightMsg = TColor($FFC0C0);
type
{ TDialogItem }
TDialogItem = class(TCustomControl {CustomPanel})
// Элемент ди... |
{
Multiplatform experience with dynamic library.
Reference: https://wiki.freepascal.org/Lazarus/FPC_Libraries
}
unit uCalc;
interface
uses
Classes, SysUtils, Dynlibs;
const
ERROR='Error';
{$IFDEF WINDOWS}
DLLPATH ='.\C_lib\calc.dll';
{$ENDIF}
{$IFDEF LINUX}
DLLPATH = './C_lib/libcalc.s... |
{
CTU Open Contest 2002
=====================
Sample solution for the problem: format
Martin Kacer, Oct 2002
}
Program Formatting;
Const MAXWORDS = 10200;
PENALTY = 500;
MAXLINE = 128;
Var Len: Array [1..MAXWORDS] of Integer;
Best: Array [0..MAXWORDS] of Integer;
WordCount: Integer;
{compute the lowes... |
{Imlementation of Source1}
Unit Source1;
Interface
type
p_Source1 = ^Source1Obj;
Source1Obj = object
private
{data for 1 source}
lambda : real;
deltaLambda : real;
finallyLambda : real;
public
{initialization the field}
constructor Init;
{random value of tay}
fu... |
unit uBindingNavigator;
// This form demonstrates using a BindingNavigator to display
// rows from a database query sequentially.
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, CNClrLib.Control.EnumTyp... |
{
***************************************************************************
* *
* 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 F... |
unit ProgressInfo;
interface
uses
NotifyEvents;
type
TProgressInfo = class(TObject)
private
FOnAssign: TNotifyEventsEx;
FProcessRecords: Cardinal;
FTotalRecords: Cardinal;
function GetPosition: Double;
public
constructor Create;
destructor Destroy; override;
procedure Assign(AProg... |
unit Teste.ValueObject.URL;
interface
uses
DUnitX.TestFramework;
type
[TestFixture]
TURLTest = class
public
[Test]
procedure TestarURLRetiraCaracteresEspeciais;
end;
implementation
{ TURLTest }
uses
Module.ValueObject.URL.Impl, Module.ValueObject.URL;
procedure TURLTest.TestarURLRetiraCaract... |
unit IdMultipartFormData;
{
Implementation of the Multipart From data
Author: Shiv Kumar
Copyright: (c) Chad Z. Hower and The Winshoes Working Group.
Details of implementation
-------------------------
2001-Nov Doychin Bondzhev
- Now it descends from TStream and does not do buffering.
- Changes in the way th... |
unit NtUtils.Threads;
interface
uses
Winapi.WinNt, Ntapi.ntdef, Ntapi.ntpsapi, Ntapi.ntrtl, NtUtils.Exceptions,
NtUtils.Objects;
const
// Ntapi.ntpsapi
NtCurrentThread: THandle = THandle(-2);
// Open a thread (always succeeds for the current PID)
function NtxOpenThread(out hxThread: IHandle; TID: NativeUInt... |
unit employee_s;
{This file was generated on 11 Aug 2000 20:12:57 GMT by version 03.03.03.C1.06}
{of the Inprise VisiBroker idl2pas CORBA IDL compiler. }
{Please do not edit the contents of this file. You should instead edit and }
{recompile the original IDL which was located in the file emp... |
unit baseaction;
{$mode objfpc}{$H+}
interface
uses
BrookAction,
BrookHttpDefs,
BrookLogger,
HTTPDefs,
dmdatabase,
SysUtils,
session;
type
{ TBaseAction }
generic TBaseGAction<T> = class(specialize TBrookGAction<T>)
private
FPageSize: integer;
FSession: TSession;
FSorting: String;
... |
unit ExtraChargeQry;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseFDQuery, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS,
FireDAC.Phys.Intf, FireDAC.DApt.... |
{*********************************************************************
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Autor: Brovin Y.D.
* E-mail: y.brovin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.