text stringlengths 14 6.51M |
|---|
unit PropEditorsReg;
{
********************************************************************************
******* XLSReadWriteII V1.14 *******
******* *******
******* Copyright(C) 1999,2002 Lars Arvidsson, ... |
(******************************************************************************
* PasVulkan *
******************************************************************************
* Version see PasVulkan.Framework.pas ... |
unit BusStop;
interface
uses
BeaconItem, Aurelius.Mapping.Attributes;
type
[Entity]
[Automapping]
TBusStop = class
private
FLatitude: Double;
FBeacon: TBeaconItem;
FID: Integer;
FLongitude: Double;
FDescription: string;
public
property ID: Integer read FID;
... |
unit rcUserRole;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, rcObject, rcSets, rcArrayManager;
type
TUserRole = class(TRCObject)
private
Privileges1: TRCPermissions;
public
property Privileges: TRCPermissions read Privileges1 write Privileges1;
end;
type
{ TRoles }
TRoles = class(... |
unit uPiFace;
{$mode objfpc}
{$H+}
// Ultibo unit to control PiFace
// tested on earlier model (26 pin header) with PIB
// pjde 2016
// LGPL v2 license
interface
uses
Classes, SysUtils, SPI;
const
oo : array [boolean] of string = ('OFF', 'ON');
SPI_WRITE_CMD = $40;
SPI_READ_CMD ... |
{ Routines that deal with devices lists.
}
module picprg_devs;
define picprg_list_get;
define picprg_devs_add;
define picprg_list_del;
%include 'picprg2.ins.pas';
{
*******************************************************************************
*
* Subroutine PICPRG_LIST_GET (MEM, DEVS)
*
* Return the list of all... |
unit GUIAnnotationIntf;
interface
uses
InfraCommonIntf, InfraValueTypeIntf, Controls, ExtCtrls, LayoutManager,
Classes;
type
IScreenItem = interface(IElement)
['{C81D3037-A032-4D17-BE2B-EEDAEC4D6CCD}']
function GetCaption: IInfraString;
function GetCaptionPosition: TLabelPosition;
... |
{
ORM Brasil é um ORM simples e descomplicado para quem utiliza Delphi
Copyright (c) 2016, Isaque Pinheiro
All rights reserved.
GNU Lesser General Public License
Versão 3, 29 de junho de 2007
Copyright (C) 2007 Free S... |
object OvcfrmRowEditor: TOvcfrmRowEditor
Left = 387
Top = 266
ActiveControl = ctlRowNumber
BorderIcons = [biSystemMenu]
BorderStyle = bsDialog
Caption = 'Rows Editor'
ClientHeight = 280
ClientWidth = 401
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Defa... |
//---------------------------------------------------------------------------
// This software is Copyright (c) 2017 Embarcadero Technologies, Inc.
// You may only use this software if you are an authorized licensee
// of an Embarcadero developer tools product.
// This software is considered a Redistributable as defin... |
unit DW.Toolbar.Mac;
{$SCOPEDENUMS ON}
interface
uses
System.Classes, System.Generics.Collections,
Macapi.AppKit, Macapi.Foundation,
FMX.Forms;
type
TItemValidateEvent = procedure(Sender: TObject; var Enable: Boolean) of object;
TMacOSToolbarItem = class(TObject)
private
FCaption: s... |
unit ImgPanel;
interface
uses
Types, ExtCtrls, Windows, Messages, Graphics, Controls, Classes, SysUtils,
forms;
type
ttimenotify = procedure of object;
TImgPanel = class(TCustomPanel)
private
procedure WndProc(var message: TMessage); override;
private
ftnotify: ttimenotify;
FPic: TPicture;
... |
unit NativeHelper;
interface
uses NativeXML, Classes;
type
TXMLNode_ = class helper for TXMLNode
private
function GetNameUnicode: string;
procedure SetNodeUnicode(const aName: string);
function GetAttributeUnicodeValue(index:integer): string;
procedure SetAttributeUnicodeValue(index:integer; const aVal... |
unit frEditAnimal;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, AdvCombo, Lucombo, AdvEdit, Buttons, AdvEdBtn,
Aurelius.Engine.ObjectManager,
PlannerDatePicker,
Entidades.Cadastro;
type
TfrmEditAnimal = class(TFrame)
Label3: TLabel;
... |
unit PLAT_R9SubSystemInvoker;
interface
uses Sysutils,Menus,ComObj,PLAT_R9SubSystemIntf,Windows,Forms,PLAT_AdvInterfacedObject;
type
TGetAppletIcon=function:Integer;stdcall;
TLoadApplication=procedure (ShellApplication:Integer);stdcall;
TFreeApplication=procedure;stdcall;
TGetMainMenu=function :TMenuItem ;St... |
{
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 later v... |
unit Bip0122Uriparser;
{$ifdef fpc}{$mode delphi}{$endif}{$H+}
interface
uses
Classes, SysUtils, uriparser;
type
TBIP0122URI = class
public
Chain: string;
UriType: string;
Argument: string;
class function TryParse(const uriString: string; Out uri: TBIP0122URI): Boolean;
end;
implementation
... |
{-----------------------------------------------------------------------------
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.... |
unit sql.consts;
interface
uses System.SysUtils, System.Classes, System.Generics.Collections, Data.DB;
type TSQLConnect = (sqlcDBX, sqlcFD, sqlcADO, sqlcBDE, sqlcDSnap);
type TSQLDB = (dbNone, dbFirebird, dbMySQL, dbSQLServer, dbOracle, dbDataSnap);
type TSQLDBMode = (dbInsert, dbUpdate, dbDelete, dbSele... |
{
Remove duplicate reference records that have the same scale, position and rotation.
When bDetectByModel = False, base record will be used for detection, in case when duplicated references
place the same record in the same spot.
When bDetectByModel = True, base record model file name will be used, in c... |
unit FreeOTFEExplorerSettings;
// Description:
// By Sarah Dean
// Email: sdean12@sdean12.org
// WWW: http://www.FreeOTFE.org/
//
// -----------------------------------------------------------------------------
//
interface
uses
Classes, // Required for TShortCut
IniFiles,
ComCtrls,
Common... |
program cxt2csc;
type
name = string[80];
var
infile,outfile : text;
ifname,zeile : name;
gnum,mnum,i : integer;
gnam : array[1..20] of name;
eol : char;
procedure write_info;
begin
writeln;
writeln;
writeln('About this program:');
writeln;
writeln(' cxt2fca converts Conimps ... |
unit uCAP_BaseObjects;
{##################################################################################}
(*!*EXTENDED COMMENT SYNTAX !*)
(** This unit uses extended syntax for comments **)
(** You don't need to support this, but it's more likely to be readable **)
(** i... |
// NoDaveComponent.pas
//
// A unit implementing a wrapper component for easy access to a S7-PLC with
// the libnodave.dll of Thomas Hergenhahn (http://libnodave.sourceforge.net)
//
// (C) 2005, 2006 Gebr. Schmid GmbH + Co., Freudenstadt, Germany
//
// Author: Axel Kinting (akinting@schmid-online.de)
//
// This library... |
unit Unit2;
interface
uses Math, Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids;
type
TStudent = record
initials: string[30];
adress: string[30];
ball: extended;
end;
studentClass = class(TObject)
public studentList: a... |
{$include kode.inc}
unit kode_rect;
//----------------------------------------------------------------------
interface
//----------------------------------------------------------------------
// -> record?
// can record have methods?
type
KRect = object
private
FXpos : LongInt;
FYpos : LongInt;
... |
unit Utils;
interface
uses Globals, Windows, ShellAPI, Forms, SysUtils, Graphics, CheckLst, Controls,
Classes, Math;
procedure LoadImage(var Img:TBitmap; FileName:String);
function ExecuteFile(const FileName, Params, DefaultDir: string; ShowCmd: Integer): THandle;
function FileSizeToStr(n:Int64):String;
... |
unit cPedido;
interface
uses FireDAC.Comp.Client, Data.DB, FMX.Graphics;
type
TPedido = class
private
FConn : TFDConnection;
FID_USUARIO: integer;
FDT_SERVICO: TDateTime;
FID_PEDIDO: integer;
FDT_GERACAO: TDateTime;
FQTD_MAX_ORC: integer;
... |
{*******************************************************************************
作者: dmzn@163.com 2010-3-8
描述: 系统业务处理
*******************************************************************************}
unit USysBusiness;
interface
uses
Windows, Classes, Controls, SysUtils, ULibFun, UAdjustForm, UFormCtrl,... |
(*
@abstract(Contient une classe qui permet de faire des animations ("Easing" / "Tweening") entre deux valeurs facilement. @br
Pour animer les valeurs, la classe TBZAnimationTool se sert de fonctions paramétriques non-linéaire 1D)
---------------------------------------------------------------------------------... |
unit KiBorder;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Controls, Graphics, BCTypes;
type
{ TBorder }
TBorder = class(TPersistent)
private
FGradient: TBCGradient;
FOpacity: Byte;
FColor: TColor;
FColorActive: TColor;
FOwner: TPersistent;
FRoundRadius: Integer;
FSty... |
unit html_lib;
{$mode objfpc}{$H+}
interface
uses
common,
strutils,
Classes, SysUtils;
const
__HTMLLIB_FORMID_LENGTH = 5;
__HTMLLIB_FORMCSRFTOKEN_LENGTH = 12;
__HTML_ALLBLOCK =
'(table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|st... |
unit UnitSettingConnection;
interface
uses
System.IniFiles, System.SysUtils;
type
TSettingConnection = class(TIniFile)
public
var
IsPathDataBase: string;
public
constructor Create();
procedure SetLoadSetting();
procedure SetSaveSetting();
end;
implementation
{ TSettingConnection }... |
unit uServices;
interface
uses
GnuGettext, WinSvc, Windows, uTools, JclSvcCtrl, SysUtils;
type
TServiceStatus = (ssError, ssNotFound, ssUnknown, ssRunning, ssStopped);
TStartStopService = (ssStart, ssStop);
function GetServiceStatus(name: string): TServiceStatus;
function GetServicePath(name: string): string;... |
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : C:\Apps\FS_Importa_Schede\Controlla Iva\checkVatService.wsdl
// >Import : C:\Apps\FS_Importa_Schede\Controlla Iva\checkVat... |
unit uVendedor;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, Vcl.StdCtrls, Vcl.Mask,
Vcl.DBCtrls, Vcl.Buttons, PngBitBtn, Vcl.ExtCtrls, Vcl.Grids, Vcl.DBGrids;
type
TfrmCadVendedores = ... |
(**********************************************************************)
(* Programmname : MEMORY.PAS V1.9 *)
(* Programmautor : Michael Rippl *)
(* Compiler : Quick Pascal V1.0 *)
(* Inhalt : Routinen fr S... |
unit u99Permissions;
interface
uses System.Permissions, FMX.DialogService, FMX.MediaLibrary.Actions
{$IFDEF ANDROID}
,Androidapi.Helpers, Androidapi.JNI.JavaTypes, Androidapi.JNI.Os
{$ENDIF}
;
type
TCallbackProc = procedure(Sender: TObject) of Object;
T99Permissions = class
private
CurrentReq... |
{
có 2 điều cần cải tiến trong bài này:
1. kéo xuống dòng 76 và chạy test :v
2. bài này làm bằng tham ăn + ngẫu nhiên nên chưa đúng hết mọi trường hợp
}
program baitap_068;
const
MAX_N = 10000;
LINK = 'TOUR.';
IP = 'INP';
OP = 'OUT';
type
vector = array[1..MAX_N] of Integer;
matrix = array[1..MAX_N,1..MAX_N... |
unit FMain;
{ Measurements on 2019 13" macBook Pro:
FPS CPU% GPU%
--------------------------------------------------
Default, without 2D control 30 96 33
Default, with 2D control 30 94 33
Metal, without 2D control 30 88 25
... |
unit Main;
interface
uses
System.SysUtils,
System.Classes,
System.IOUtils,
System.Math,
System.Generics.Collections,
{}
Configuration.AppConfig,
Command.AnalyseProject,
Filters.Method;
type
TApplicationMode = (amComplexityAnalysis, amOneFile, amGenerateXml);
const
ApplicationMode: TApplication... |
{
Copyright 2009-2011 10gen Inc.
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.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... |
unit JPL.Win.FileSystem;
interface
uses
Windows, SysUtils, Classes, IOUtils,
//JP_Lists,
JPL.Strings, JPL.Conversion,
Dialogs,
Registry, Menus,
ShellAPI, ComObj, ShlObj, ActiveX;
const
CSIDL_PROFILES = $003e;
{$region ' --- CSIDLs --- '}
ArrCSIDL: array[0..38] of integer = (
CSIDL_DESKTOP,
... |
{
单元名称: uJxdServerManage
单元作者: 江晓德(Terry)
邮 箱: jxd524@163.com jxd524@gmail.com
说 明: 服务器信息管理对象
开始时间: 2011-04-20
修改时间: 2011-04-20 (最后修改时间)
类说明 :
管理服务器信息, online服务器及客户端需要使用
}
unit uJxdServerManage;
interface
uses
Windows, Classes, SysUtils, uJxdUdpDefine, uJxdDataStream;
type
{$M+}
TxdServerManage = ... |
unit HTTPURIElementField;
interface
uses
SysUtils, StrUtils,
Generics.Collections;
type
IHTTPURIElementField = interface
['{4F6B9D2A-CC8E-4F97-B1D0-3B20E9FAF919}']
function Name: String;
function Expression: String;
end;
THTTPURIElementField = class sealed(TInterfacedObject, IHTTPURIElementFie... |
unit ucCONFCAMPOMET;
interface
uses
Classes, SysUtils, StrUtils,
ucCONFCAMPO, ucCONFCAMPOJSON;
type
TcCONFCAMPOMET = class
private
protected
public
class function Carregar(pCaption, pTabMan : String) : TcCONFCAMPOLIST;
class function CarregarCaption(pCaption : String) : TcCONFCAMPOLIST;
class... |
(**
* $Id: dco.framework.RemotingSystem.pas 845 2014-05-25 17:42:00Z QXu $
*
* Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
* express or implied. See the License for the specific language governing rights and limitations under the License.
*)
unit... |
{$include kode.inc}
unit kode_module_add;
//----------------------------------------------------------------------
interface
//----------------------------------------------------------------------
uses
kode_module_base;
//----------
// in a dll, export this..
function kode_get_module_info(AIndex:LongInt=0) : KPM... |
unit RRManagerEditAdditionalHorizonInfoFrame;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
RRManagerBaseObjects, RRManagerObjects, ClientSpecificUtils, StdCtrls,
CommonComplexCombo;
type
// TfrmAdditionalHorizonInfo = class(TFrame)
TfrmAdditionalHorizonInfo = cla... |
{*******************************************************************************
Title: T2Ti ERP
Description: Janela Cadastro de CsosnA
The MIT License
Copyright: Copyright (C) 2015 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
fil... |
unit Marvin.Core.IA.Connectionist.ActivateFunction.Clss;
{
MIT License
Copyright (c) 2018-2019 Marcus Vinicius D. B. Braga
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 with... |
unit RegisterProperty;
{This is the property registration form.}
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, dmProperty;
type
TRegProperty = class(TForm)
address: TEdit;
Description:... |
Unit ZHex;
{################################}
{# ZiLEM Z80 Emulator #}
{# Hex/ASCII dump window #}
{# Copyright (c) 1994 James Ots #}
{# All rights reserved #}
{################################}
Interface
Uses
Objects, Views, ZConsts, Drivers, ZGlobals;
Type
PInteger = ^Integer;
PHe... |
{
GeoJSON/Feature Object Test
Copyright (c) 2018 Gustavo Carreno <guscarreno@gmail.com>
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... |
{*******************************************************}
{ }
{ ConditionTypeFrame.pas
{ Copyright @2014/5/15 10:31:43 by 姜梁
{ }
{ 功能描述:添加文件类型条件判断的导航Frame
{ 函数说明:
{******************************... |
unit TRightLB;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Right, tSqlCls;
type
TRightListBox = class(TListBox)
private
Procedure FillItemsFrom(r:TRight);
protected
fStartID:longint;
procedure DrawItem(Control: TWinControl; Index... |
{
DocuGes - Gestion Documental
Autor: Fco. Javier Perez Vidal <developer at f-javier dot es>
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 3 of the License, or
(at your... |
unit PartnerStack;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
type
PartnerSex = (man, woman);
TPartner = record
Sex: PartnerSex;
FullName: string[255];
Parameters: record { Параметры партнера }
Age: integer;
Height: integer;
Weight: integer;
end;
Criteria: rec... |
unit JPP.ColorSwatch;
{
Jacek Pazera
http://www.pazera-software.com
https://github.com/jackdp
}
{$I jpp.inc}
{$IFDEF FPC} {$mode delphi} {$ENDIF}
interface
uses
{$IFDEF MSWINDOWS}Windows,{$ENDIF}
Messages,
SysUtils, Classes, Types, {$IFDEF HAS_SYSTEM_UITYPES}System.UITypes,{$ENDIF}
Controls, Forms, G... |
unit Color;
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.Samples.Spin, Vcl.ComCtrls, Common;
type
TColorPicker = class(TForm)
RedLabel: TLabel;
RedSpin: TSpinEdit;
... |
unit uAddress;
interface
uses
Classes;
type
TAddress = class(TPersistent)
protected
fAddressString: String;
fApartment: String;
fBuilding : String;
fCity: String;
fCountryCode: String;
fHouse: String;
fPostCode: String;
fSate: String;
fStreet: String;
published
proper... |
unit UEfetuarPedidoDTOImpl;
interface
uses
Soap.InvokeRegistry, UPizzaTamanhoEnum, UPizzaSaborEnum,
MVCFramework.Serializer.Commons;
type
[MVCNameCase(ncLowerCase)]
TEfetuarPedidoDTO = class(TRemotable)
private
FPizzaTamanho: TPizzaTamanhoEnum;
FPizzaSabor: TPizzaSaborEnum;
FDocum... |
unit PreProcessorExpressionTokenise;
{
AFS 26 Aug 2003
lexer for preprocessor $IF expressions
Turns text into a list of tokens
The tokens are defined in PreProcessorTokens
Whitespace is discarded
}
interface
uses
SysUtils, Windows,
PreProcessorExpressionTokens;
type
TPreProcessorExpre... |
unit crpRule;
{written by Charles Richard Peterson, 2007; You can reach me at
www.houseofdexter.com or houseofdexter@gmail.com; The code is released under
Mozilla Public License 1.1 (MPL 1.1); }
interface
uses
Classes, SysUtils, crpDefaults, crpZeeMapperDefault;
const
cRuleSymbols = ['%','$', '@', '!', '^'];... |
{ *******************************************************************************
Title: T2Ti ERP
Description: Janela de Retenção do INSS para a Folha de Pagamento
The MIT License
Copyright: Copyright (C) 2016 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and ... |
unit uCadNCM;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, uMaster, Vcl.StdCtrls, AdvSmoothPanel,
AdvGlowButton, Data.DB, Vcl.DBCtrls, Vcl.Mask, AdvGroupBox, BiblKhronos;
type
TFrmCadNCM = class... |
{
DocuGes - Gestion Documental
Autor: Fco. Javier Perez Vidal <developer at f-javier dot es>
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 3 of the License, or
(at your... |
{$INCLUDE switches}
unit CmdList;
interface
uses
Classes;
const
MaxDataSize=1024;
type
TLogData=array[0..999999999] of Byte;
TCmdListState=record
nLog, {used size of LogData in bytes}
LoadPos, {position in LogData when loading a game}
LastMovingUnit: integer;
MoveCode, LoadMoveCode: Car... |
program hello20;
var
i: integer;
begin
i := 0;
while i < 20 do
begin
write (i);
writeln(' Hello, world!');
i := i + 1
end
end.
|
unit ctrtests;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fpcunit, testutils, testregistry,
Crypto;
type
{ TCTRTests }
TCTRTests = class(TTestCase)
private
protected
FKey: array[1..32] of Byte;
FIV: array[1..16] of Byte;
FCipher: TCipher;
FEnc: TCipherCTRMode;
FDec: TCi... |
{----------------------------------------------------------------------
DEVIUM Content Management System
Copyright (C) 2004 by DEIV Development Team.
http://www.deiv.com/
$Header: /devium/Devium\040CMS\0402/Source/PageManager/PageMangerDM.pas,v 1.4 2004/05/13 06:02:38 paladin Exp $
--------------... |
unit Controller.Lancamento;
interface
uses
System.SysUtils
, Classes.ScriptDDL
, Model.Lancamento
, Controllers.Interfaces.Observers
, Services.ComplexTypes
, System.Generics.Collections
, FireDAC.Comp.Client
, Data.DB;
type
TLancamentoController = class(TInterfacedObject, ISubject... |
{*******************************************************************************
Title: T2Ti ERP Fenix
Description: Service relacionado à tabela [TALONARIO_CHEQUE]
The MIT Li... |
unit TextEditor.Highlighter.Comments;
interface
uses
TextEditor.Consts, TextEditor.Types;
type
TTextEditorHighlighterComments = class(TObject)
strict private
FChars: TTextEditorCharSet;
FBlockComments: TTextEditorArrayOfString;
FBlockCommentsFound: Boolean;
FLineComments: TTextEditorArrayOfStr... |
(*******************************************************)
(* *)
(* Engine Paulovich DirectX *)
(* Win32-DirectX API Unit *)
(* *)
(* Copyright (c) 20... |
unit FMain;
interface
uses
System.SysUtils,
System.Types,
System.UITypes,
System.Classes,
System.Variants,
System.Messaging,
FMX.Types,
FMX.Controls,
FMX.Forms,
FMX.Graphics,
FMX.Dialogs,
FMX.StdCtrls,
FMX.Controls.Presentation;
type
ECustomException = class(Exception);
type
TFormMain ... |
type
vertex = record
adj:array of integer;
end;
pair = record
a,b:integer;
end;
chess_board = array of array of boolean;
graph = array of vertex;
node = record
i: integer;
next: ^node;
end;
queue = record
head: ^node;
tail: ^node;
end;
//queues
procedure init(var q: queu... |
unit Fader;
interface
uses
Windows, Messages, SysUtils, Classes, Controls, Graphics, Dialogs;
type
TFader = class(TCustomControl)
private
fColorSlot:TColor;
fColorLine:TColor;
fColorTop:TColor;
fColorBottom:TColor;
fMin:Integer;
fMax:Integer;
fPos:Integer;
fOnCh... |
unit commands;
{$MODE objfpc}{$H+}
interface
uses
classes, strutils;
type
TCommandString = class
private
_commandString : string;
_nextWord : integer;
public
procedure setCommandString(str: string);
function popWord : string;
function getRemaining : string;
... |
unit
OObjects;
interface
uses
System.Generics.Collections;
const
{TOCollection interfaces between OWL TCollection and VCL TList}
MaxCollectionSize = Maxint div (SizeOf(Integer) * 2);
type
TOCollection = class(TList<Pointer>)
public
constructor Create(ACapacity: Integer);
procedure AtFree(Index: ... |
// Copyright 2018 The Casbin Authors. All Rights Reserved.
//
// 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.org/licenses/LICENSE-2.0
//
// Unless required by a... |
Unit AdvIterators;
{
Copyright (c) 2001-2013, Kestral Computing Pty Ltd (http://www.kestral.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:
* Redistributions of source code must retain the ab... |
unit TestGnTextFile;
interface
uses
Forms, TestFramework, SysUtils, IOUtils, uGnGeneral, uGnTextFile;
type
TestTGnTextFile = class(TTestCase)
strict private
FGnTextFile: IGnTextFile;
procedure Test_FileNotFound_E;
public
procedure SetUp; override;
published
procedure LoadFromFile1;
pr... |
unit uClassPessoa;
interface
uses
System.SysUtils, Vcl.Dialogs, uClassMunicipio;
type
IPessoa = interface
function getID: Integer;
procedure setID(AValor: Integer);
function getNome: String;
procedure setNome(AValor: String);
function getLogradouro: String;
procedure setLogradouro(AValo... |
//Considere uma matriz quadrada de inteiros de ordem 6. Crie um programa que carregue a matriz e resolva as
//seguintes questões:
//a) a soma dos elementos da diagonal principal da matriz;
//b) o menor valor par da matriz;
//c) Mostrar os números primos da matriz;
//d) uma nova matriz da mesma ordem, porém transposta.... |
unit frmAdConfigUnit;
{$mode delphi}
interface
uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
StdCtrls, ExtCtrls, ComCtrls, cesupport, betterControls;
resourcestring
rsPercentageShown = 'Percentage shown';
type
{ TfrmAdConfig }
TfrmAdConfig = class(TF... |
unit uGenerica;
interface
type Generica = class
private
protected
id: integer;
descricao: string;
public
constructor create;
destructor destroy;
procedure setId(Value: integer);
function getId: integer;
procedure setDescrica... |
unit RtcQueryDataSet;
interface
uses
SysUtils, Classes, rtcFunction, rtcDataCli, rtcCliModule, rtcInfo, rtcConn, rtcHttpCli, rtcLog,
rtcDB, DB, MemTableDataEh,MemTableEh, variants, rtcSqlQuery,DataDriverEh,
doc.variablelist, Dialogs, commoninterface;
type
TUpdateOrInsertEvent = procedure (Sender:TObject; ANe... |
unit uWardHistoryEdit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters, Menus, StdCtrls,
cxButtons, DB, ADODB, uGlobal, uDB, uConfig, cxControls, cxContainer, cxEdit,
dxSkinsCore, dxSkinCaramel, cxDropDownEdit... |
unit Classes.Helpers.DatasetBase64;
interface
uses
Data.DB;
type
TDatasetBase64 = class Helper for TDataset
public
/// <summary>Encode Image content in Blob field to Base64 string
/// </summary>
/// <param name="ABlobFielName">Field name of blob field.
/// </param>
/// <returns>String (Base64 encod... |
Unit DecimalTests;
{
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:
* Redistributions of source code ... |
{$include kode.inc}
unit kode_interpolate;
// http://paulbourke.net/miscellaneous/interpolation/
//----------------------------------------------------------------------
interface
//----------------------------------------------------------------------
function KLinearInterpolate(y1,y2,mu:Single) : Single;
function ... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, XPMan, PerlRegEx, pcre;
type
TPVariables = record
variable : String;
NumberOfUses : Integer;
P : Boolean;
M : Boolean;
C : Boolean;
T : Boolean;
end;
... |
namespace Moshine.Foundation.Tests;
uses
Moshine.Foundation,
RemObjects.Elements.EUnit;
type
{$IF TOFFEE OR DARWIN}
DoubleTests = public class(Test)
private
protected
public
method PrecisionOfTwo;
begin
var value:Double := 145.12334567;
var stringValue := value.... |
{*******************************************************}
{ }
{ ConditionFileFrame.pas
{ Copyright @2014/5/15 10:29:37 by 姜梁
{ }
{ 功能描述:添加文件类型条件判断的导航Frame
{ 函数说明:
{******************************... |
unit uGeoTools;
interface
uses Math, SysUtils, Variants, uInterfaces, uOSMCommon, uModule, uMultipoly, ShellApi, Windows;
implementation
uses Classes;
const
geoToolsClassGUID: TGUID = '{DF3ADB6E-3168-4C6B-9775-BA46C638E1A2}';
type
TGeoTools = class(TOSManObject, IGeoTools)
protected
pt1,... |
{$include kode.inc}
unit kode_eventmanager;
{$define KODE_MAX_EVENTS := 1024}
//----------------------------------------------------------------------
interface
//----------------------------------------------------------------------
//uses
// kode_list,
// kode_object,
// kode_voice;
type
//generic KEvent<_T... |
unit Session;
interface
uses
JsonAttributeSource,
System.Classes;
type
{ Will use attributes later, maybe }
TStatus = class
public
[JsonAttribute('sessionId')]
Guid: String;
[JsonAttribute('args')]
Args: String;
[JsonAttribute('app')]
App: String;
[JsonAttribute('platform')]
... |
unit BSphereTimingTest;
{$mode objfpc}{$H+}
{$CODEALIGN LOCALMIN=16}
interface
uses
Classes, SysUtils, fpcunit, testregistry, BaseTimingTest, BaseTestCase,
native, BZVectorMath, BZVectorMathEx, BZProfiler;
type
{ TBSphereTimingTest }
TBSphereTimingTest = class(TVectorBaseTimingTest)
protected
{$CODEA... |
{$include kode.inc}
unit fx_fracdelay;
{
20 hz = 44100/20 = 2205
}
{$define KODE_MAX_SAMPLES := 4096}
//----------------------------------------------------------------------
interface
//----------------------------------------------------------------------
uses
kode_const,
kode_types,
kode_plugin;
type
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.