text stringlengths 14 6.51M |
|---|
{**
* 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/
*
* Software distributed under the License is distributed on an "A... |
unit RICK.Format.Demo.View.Main;
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.Controls.Presentation, FMX.Edit, FMX.ListBox, FMX.Layouts, FMX.Objects,
RICK.Librarys,
RICK.Librar... |
unit uFlash;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, jpeg, ExtCtrls, ComCtrls;
type
TfrmFlash = class(TForm)
img1: TImage;
lblName: TLabel;
lblM: TLabel;
pbFlash: TProgressBar;
lblCopyright: TLabel;
lblDemo: TLabel;
procedur... |
unit Main.View;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Person, Person.Repository, App.Context,
Vcl.StdCtrls;
type
TMainView = class(TForm)
GroupBox1: TGroupBox;
EdtId: TEdit;
Label1: TL... |
unit uCadUnidade;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Mask, DBCtrls, Buttons, uDados, Grids, DBGrids,
ActnList;
type
TtelaCadUnidade = class(TForm)
GroupBox1: TGroupBox;
Label2: TLabel;
Label3: TLabel;
editNome: TDBEdit;... |
unit uServerStatus;
{$M+}
interface
uses
uDataServerContainer;
type
TServerStatus = class
private
FIsRunning: Boolean;
FBaseUrl: String;
public
constructor Create( ACont: TDataServerContainer );
published
property IsRunning: Boolean read FIsRunning write FIsRunning;
property BaseUrl: ... |
unit lisya_sign;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, dlisp_values, lisya_predicates, mar
,lisya_symbols
, lisya_exceptions;
function ifh_bind_params(const sign: TSubprogramSignature; PL: TVList): TValues;
function ifh_build_sign(sign: TVList): TSubprogramSignature;
implementation
... |
{ }
{ Sqlite Encrypter v1.0 }
{ Main Form }
{ }
{ MIT Licence )
{ }
{**********************... |
unit URlc0009;
interface
uses Classes, URlc0000, DbClient, BrvDicionario, SysUtils, BrvRelASC;
type
TRlc0009 = class(TRlc0000)
private
{ Private declarations }
BrvRelAsc : TBrvRelAsc;
procedure CompletaCabecalho(Sender: TObject);
public
{ Public declarations }
constructor C... |
{$i ../common/language.inc}
{$IFDEF PORTUGUES}
{:
@abstract(Implementação da base de um driver de protocolo.)
@author(Fabio Luis Girardi fabio@pascalscada.com)
}
{$ELSE}
{:
@abstract(Unit that implements a base class of protocol driver.)
@author(Fabio Luis Girardi fabio@pascalscada.com)
******************... |
{-----------Unit Hardware------------
Funktion: Senden von Steuerungsbefehlen
an die Motoren ber den Parallelport
-------------------------------------
}
unit hardware;
interface
procedure sendb(b:byte);{Sendet ein Byte an die Motorsteuerungsplatine}
procedure setbit(b:byte);{Setzt ein bestimmtes Steuerungsbit}
pro... |
unit uConsts;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
CONST
WEB_APP_TITLE = 'ngit_microservice_db';
WEB_APP_VERSION = '0.0.1';
WEB_APP_AUTHOR = 'Francesco Sammarco';
ERR_SERVER_UNREACHABLE_CODE = -2;
ERR_SERVER_UNREACHABLE_DESC = 'Server unreachable';
ERR_GENERIC_E... |
unit Actnlist;
interface
uses Messages, Classes, ImgList;
type
TActionListState = (asNormal, asSuspended, asSuspendedEnabled);
TImageIndex = type Integer;
TLoadResource = (lrDefaultColor, lrDefaultSize, lrFromFile, lrMap3DColors, lrTransparent, lrMonoChrome);
TLoadResources = set of TLoadResource;
... |
unit WorkerThread;
{$IFDEF FIREDAC}
{$DEFINE DBMONITOR}
{$ENDIF}
interface
uses
System.SysUtils, System.Classes, Vcl.SvcMgr, Data.DB, dxmdaset,
RemoteDB.Server.Module, Sparkle.HttpSys.Server, RemoteDB.Drivers.Interfaces,
{$IFDEF DBMONITOR}
FireDAC.Moni.RemoteClient,
{$ENDIF}
FMX.Overbyte.IniFiles, Spa... |
unit PTEndpointBlocks;
{ PTserver endpoint /blocks/. }
interface
uses IdContext, IdCustomHTTPServer, JsonDataObjects, PTEndpoint, SysUtils,
Generics.Collections;
type
TPTEndpointBloky = class(TPTEndpoint)
private const
_ENDPOINT_MATCH_REGEX = '^/blocks/?$';
public
procedure OnGET(AContex... |
unit frame.D.GetCharger;
interface
uses
frame.master,
dmCommon, FMX.Objects,
neato.D.GetCharger,
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, FMX.Controls.Presentation,
FMX.TabControl, FMX.Layou... |
unit main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs,
StdCtrls, ExtCtrls, LCLIntf, LCLType, RTTICtrls, Process, Clipbrd, fphttpclient;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Image1: TImage;
Image4: TImage;
... |
UNIT uStaticStack;
INTERFACE
USES uElement;
CONST
MAX = 10;
TYPE
StaticStack = RECORD
i : INTEGER;
a : ARRAY[1..MAX] OF TypeElement;
END;
PROCEDURE SSCreateEmptyStack(VAR s: StaticStack);
PROCEDURE AddToStack(e: TypeElement; VAR s: StaticStack);
FUNCTION ViewIndex(s: StaticStack): TypeElement;
PROCEDU... |
{-----------------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/MPL-1.1.html... |
unit fmuFptrTest;
interface
uses
// VCL
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, Spin, SyncObjs, ComObj, ActiveX,
// Tnt
TntSysUtils, TntClasses,
// This
untPages, OposFptr, OposFiscalPrinter, NotifyThread, TntStdCtrls;
type
{ TfmFptrTe... |
unit OTAHistoryProjects.Notifier;
interface
uses
ToolsAPI,
System.SysUtils,
System.Classes,
System.IniFiles,
System.DateUtils;
type TOTAHPNotifier = class(TNotifierObject, IOTANotifier, IOTAIDENotifier)
protected
{ This procedure is called for many various file operations within the
IDE }
... |
unit duSerialPort;
interface
uses
// VCL
Windows, SysUtils, Classes,
// DUnit
TestFramework,
// This
SerialPort, LogFile;
type
{ TduSerialPort }
TduSerialPort = class(TTestCase)
public
procedure CheckTimeout2;
procedure CheckTimeout;
end;
implementation
{ TduSerialPort }
procedure Tdu... |
Programme Trucker;
var
Name:string;
begin
WriteLn ("Hello. Please enter your name. It will be used to make your game experience more customisable. You can also enter anything you want. Whose stopping you from entering evil lavender pineapple pizza destroyer?");
ReadLn "Name";
WriteLn ("Hello "Name"! Its n... |
{*******************************************************************************
* Genesis Device Engine *
* Copyright © 2007-2015 Luuk van Venrooij *
* http://www.luukvanvenrooij.nl ... |
unit DevMax.Command.Types;
interface
uses
DevMax.Types,
FMX.Dialogs;
type
IViewCommand = interface(ICommand)
['{02CFE986-C6E4-4C1A-8644-682BB08D8441}']
end;
IViewChangeCommand = interface(IViewCommand)
['{26EBC8CD-1941-4128-83A4-F603F3BCB620}']
end;
TCommandClass = class of TBaseCommand;
TBaseC... |
unit Model.Validator.Text.Properties.NonEmpty;
interface
uses
System.SysUtils,
Model.Validator.Interfaces,
Model.Validator.Text.Properties;
type
TValidatorTextPropertiesNonEmpty = class(TValidatorTextProperties)
private
const
protected
function GetDefaultErrorMessage: String; override;
public
... |
unit FormMain;
(*
FormMain.pas/dfm
----------------
Begin: 2008/11/11
Last revision: $Date: 2009-04-06 17:40:47 $ $Author: dschwick $
Version: $Revision: 1.2 $
Project: APHI Delphi Library for Simulation Modeling: Demo for random number generation
Website: http://www.naadsm.org/opensource/libaphi/
Author: Aaron Reeves... |
unit GameUnit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Math, EngineUnit, EngineTypes, EngineMath, GameStats;
type
PGameUnit = ^TGameUnit;
PAbility = ^TAbility;
TAbiltyID = 0..5;
TCastResult = (CR_OK = 0, CR_OUT_OF_RANGE, CR_OUT_OF_MANA, CR_UNREST);
TAbilityFunc = function(const ability: PAbi... |
unit DbCampo;
interface
Uses TipoDef,stdctrls;
Type
TDbCampo = Class(TObject)
Private
FNome : String;
FTipo : TTipoCampo;
FValor: Variant;
FPosicao : Word;
FChave : Boolean;
FObjeto : TObject;
Procedure SetValor(Value : Variant);
protected
{}
public
Pro... |
unit HardwareForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, TrueConf_CallXLib_TLB;
const
sREGKEY_CAMERA = 'Camera';
sREGKEY_SPEAKER = 'Speaker';
sREGKEY_MICRPHONE = 'Microphone';
sER... |
{*******************************************************}
{ }
{ Audorra Digital Audio Library }
{ Copyright (c) Andreas Stöckel, 2009 }
{ Audorra is an "Andorra Suite" Project }
{ ... |
unit Model.SQL.Interfaces;
interface
uses
System.SysUtils,
Model.SQL.RTTI.Types,
Model.SQL.Types;
type
ISQL<T : class> = interface
['{87D2131F-D09F-4447-8CD1-D716E8376562}']
function GetDML(_Operation: TDMLOperation): string;
function Entity : T;
end;
ISQLAdapter<T : class> = interface
['{... |
unit UDetail;
{10. Задан некоторый родительский класс. От него должно быть определено
несколько потомков. Определить класс Список элементов, который может
одновременно содержать разных потомков базового класса. Реализовать
операции добавления элемента в список, удаление элемента из списка, поиск
элемента в списке и дру... |
unit DTF.Service.Types;
interface
uses
DMX.Classes,
DTF.Types.View,
System.SysUtils;
type
TDTFServiceProvider = class(TdxInterfacedObject)
public
constructor Create; virtual;
end;
TDTFServiceProviderClass = class of TDTFServiceProvider;
IDTFService = interface
['{A4CE7D68-245A-43A5-92C9-4A9A... |
unit CustomizationExamples;
// There are many ways to configure how Autofixture generates values
// using the functions Build, Configure or Customize
// This example includes a custom value generator TZeroIdGenerator, that generates the value zero for all fields with name "FID".
// You can see different ways of applyi... |
unit FMX.ModelFuncs;
interface
uses System.Classes,FMX.Controls, FMX.Controls.Presentation, FMX.Controls.Model;
function FindPresentedControlForTag(const aParent:TControl; aTag:Integer):TPresentedControl;
function FindPresentedControlForClassAndTag(const aParent:TControl; aClass:TClass; aTag:Integer):TPresen... |
unit Common.FMX.VirtualKeyboardService;
(*
uses
Common.FMX.VirtualKeyboardService;
procedure TForm1.AfterConstruction;
begin
inherited;
TVirtualKeyboardService.AddOverrideObject( Edit1 );
end;
*)
interface
uses
System.Classes,
System.Generics.Collections,
FMX.Types,
FMX.VirtualKeyboard;
type
TVirtua... |
unit EngineShape;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, dglOpenGL, EngineTypes, EngineMath;
type
TTriangleFace = packed record
v1, v2, v3: GLindex;
end;
TVec3Array = array of TVec3;
TFaceArray = array of TTriangleFace;
procedure IcoSphere(out vertices: TVec3Array; out faces: TFaceArray; lod... |
unit uGCMReceiver;
interface
{$IFDEF ANDROID}
uses
FMX.Types,
gcmnotification,
FMX.PushNotification.Android,
Androidapi.JNI.App,
Androidapi.JNI.GraphicsContentViewText,
Androidapi.Helpers,
System.Android.Service,
Androidapi.JNIBridge;
type
JGCMReceiverClass = interface(JBroadcastReceiverClass)
... |
unit SQLite3Backup;
{ SQLite3 backup class.
Copyright (C) 2012 Ludo Brands
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any... |
unit fmuStatus;
interface
uses
// VCL
Windows, StdCtrls, ExtCtrls, Controls, Classes, SysUtils,
// Tnt
TntSysUtils, TntClasses, TntStdCtrls,
// This
ScalePage, M5ScaleTypes;
type
{ TfmStatus }
TfmStatus = class(TScalePage)
Memo: TTntMemo;
btnReadStatus: TTntButton;
btnReadStatus2: TTntBu... |
unit unitdebug;
{$mode objfpc}{$H+}
interface
uses
dialogs, sysutils, classes;
procedure log(a: string);
procedure dbg;
procedure dbg(a: TStringList);
procedure dbg(a: array of string);
procedure dbg(a: integer);
procedure dbg(a: string);
procedure dbg(a: boolean);
implementation
uses
unit... |
unit ReplaceMemoFieldToStringFieldConv;
interface
uses
CompConverterTypes, CompConverter, System.SysUtils, System.Classes, Vcl.Forms,
ConvertUtils;
type
{
FieldDefs 제거
StoreDefs = True 설정(IndexDef 사용을 위해 필요)
}
TConverterMemoToStrField = class(TConverter)
protected
function GetDescription: string; ove... |
unit FrmEntidadeCalculo;
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.Buttons,
Vcl.Grids, Vcl.DBGrids, Vcl.ExtCtrls,
uConexao, FireDAC.Phys.FBDef, FireDAC.Stan.Intf, FireDAC.Ph... |
unit Tools;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
{$IFDEF ANDROID}
Androidapi.JNIBridge,
AndroidApi.JNI.Media,
{$ENDIF}
FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls,
FMX.Controls.Presentation;
function ShowMessageDialog(const TheMess... |
{$i deltics.strings.inc}
unit Deltics.Strings.Types;
interface
uses
Classes,
SysUtils,
Deltics.StringTypes;
{$i deltics.stringtypes.aliases.inc}
type
TStringProcessingFlag = (
rsFromStart,
rsFromEnd,
... |
unit Main.Form;
interface
uses
Winapi.Windows, Vcl.Forms, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, System.Threading, Vcl.StdCtrls, Vcl.Menus, Vcl.ExtCtrls,
Vcl.Controls, Vcl.ComCtrls,
JcPanel, JcButton, Vcl.Buttons, BackupRestore.Interfaces;
type
TBackupFirebird = c... |
unit ServicoDominio;
interface
uses
ServicoEntidade, ComandoSQLDominio, ADODB;
type
TServicoDominio = class
private
Conexao: TADOConnection;
FServico: TServicoEntidade;
FServicoDAO: TExecutaComandosSQLDominio;
public
function Salvar(var Retorno: AnsiString): integer;
... |
{
Fast Memory Manager: Messages
Portuguese (Brazil) translation by Johni Jeferson Capeletto (capeletto@gmail.com) - Love you Julia.
}
unit FastMM4Messages;
interface
{$Include FastMM4Options.inc}
const
{The name of the debug info support DLL}
FullDebugModeLibraryName32Bit = 'FastMM_FullDebugMode.dll';
Full... |
unit PmkFiles.old;
interface
uses
SysUtils, Classes, GeoFiles, DB, DbClient, Variants;
type
TCycleData = record
CycleNo: Integer;
Name: ShortString;
Description: ShortString;
end;
TPmkFile = class(TGeoBinaryFile)
private
FWritedDataSets: Integer;
FDhObservations: TClientDataSet;
F... |
{-----------------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/MPL-1.1.html... |
{**
* Implements the array operations for the string type.
*}
unit stringops;
{$MODE OBJFPC}
interface
uses sysutils;
type TElement = string;
{$DEFINE INTERFACE}
{$I ops.inc}
{$UNDEF INTERFACE}
function ToString(var Values: TElements): string;
function ToString(var Range: ArrayRange): string;
... |
unit UserArea;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes,
System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
FMX.Controls.Presentation, FMX.Edit, FMX.StdCtrls, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, Fire... |
unit minimain;
interface
{$mode delphi}{$H+}
uses
SysUtils, Classes, httpd, apr;
procedure RegisterHooks(p: Papr_pool_t); cdecl;
implementation
function DefaultHandler(r: Prequest_rec): Integer; cdecl;
var
RequestedHandler: string;
begin
RequestedHandler := r^.handler;
{ We decline to handle a ... |
unit OneMax;
//origin function: 0 at origin, uses euclidean distance equation
//fitness at a given position is = sqrt(a2+b2+c2+d2....n2)
interface
uses math, Definitions;
function OMaxEvaluate(position: array of integer) : double;
implementation
function OMaxEvaluate(position: array of integer): double;
var i: in... |
unit AsifAdditions;
interface
uses
Asif, Windows, Graphics, Types, Classes, SysUtils, StrUtils, GR32, YShared;
type
TFilterType = (ftNormal, ftSTDCALL, ftImport, ftError);
PAvisynthFilter = ^TAvisynthFilter;
TAvisynthFilter = record
FunctionName: string;
FileName: string;
FilterTyp... |
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics,
Dialogs, ExtCtrls, Menus,
dglOpenGL,
oglContext, oglShader, oglVector, oglMatrix, oglTextur;
type
{ TForm1 }
TForm1 = class(TForm)
Timer1: TTimer;
procedure FormCreate(Sender: TObject);
p... |
unit EKUsrPermisos;
interface
uses
SysUtils, Classes, Controls, ComCtrls, Dialogs, Stdctrls;
type
TEKUsrObjetoAccion = (EKVisible, EKEnabled, EKTabVisible, EKGrpEnabled);
TEKUsrObjeto = class(TCollectionItem)
private
function GetDisplayName : string; override;
function GetClave: String;... |
unit MainWinUnit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, Dos,
StdCtrls;
type
{ TMainForm }
TMainForm = class(TForm)
ColPanel7: TPanel;
ColPanel8: TPanel;
StartGame: TButton;
ChooseSize: TComboBox;
ChooseColors: TCom... |
unit progress;
interface
uses
Windows, SysUtils, Classes, Forms,
Dialogs, StdCtrls, Controls, ComCtrls, Menus, Contnrs, FrameGet,
ConvUtils, StdConvs, System.UITypes;
type
TProgressForm = class;
TProgressListing = class(TObject)
private
FParentForm: TProgressForm;
FTaskId: Integer... |
{-----------------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/MPL-1.1.html... |
unit IntfUnit;
interface
uses Classes, SysUtils, Dialogs;
type
IFormattedNumber = interface
['{AF953080-B9BB-11D4-AF60-EFD5E619CC27}']
function FormattedString: string;
function GetName: string;
end;
TFormattedInteger = class (TInterfacedObject, IFormattedNumber)
private
... |
Program AddMe(input, output);
{Show a variable declaration and input procedure call. From page 8.}
Var Age: integer; {The variable declaration.}
Begin
write('How old are you? '); {Prompt for input.}
readln(Age); {Get and store the number the user types.}
write('In twenty years you will be ');
w... |
// ###################################################################
// #### This file is part of the mrimageutils project, depends on
// #### the mathematics library project and is
// #### offered under the licence agreement described on
// #### http://www.mrsoft.org/
// ####
// #### Copyright:(c) 2012, Micha... |
{ -*- mode:fvm -*- }
Const LogLvlTrace = 0x00;
Const LogLvlDebug = 0x01;
Const LogLvlInfo = 0x02;
Const LogLvlWarn = 0x03;
Const LogLvlError = 0x04;
Const LogLvlFatal = 0x05;
Const LogBinary = 0x10;
Declare Syscall LogWrite(handle : int, flags : u32, len : u32, buf : opaque) : 1;
Declare Syscall LogNext(handle : int... |
{-----------------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/MPL-1.1.html... |
{-----------------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/MPL-1.1.html... |
unit uDlgAddContact;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls, Math, ComCtrls;
type
TContactItem = class(TObject)
public
ID: Integer;
Name: String;
PhoneNumber: String;
Category: String;
Folder: String;
constructor Create(const I... |
{
*Archivo: tipos.pas
}
unit Tipos;
interface
uses sysutils;
type
{
*Representa un artículo.
}
tipoArt = record
codigo:word;
descri:string;
prove:string[90];
stock:word;
stockMin:byte;
pVenta... |
unit rsCreateDB;
interface
resourcestring
// CreateMySQLDB.pas
rsStartProgram = 'Запуск программы';
rsTerminateProgram = 'Завершение программы';
rsNoData = 'Нет данных от канала';
rsAppendMaterial = 'Добавлен материал';
rsDeleteMaterial = 'Удален материал';
rsChangeMaterial = 'Изменен материал';
rsCha... |
{
This software is distributed under GPL
in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the warranty of FITNESS FOR A PARTICULAR PURPOSE.
@abstract(Contains definition of interface for data loader injector.)
@author(Dmitry Morozov dvmorozov@hotmail.com,
LinkedIn: https://www.linkedin.com/i... |
unit NTPrivelegsU;
// NT Defined Privileges
interface
uses Windows, SysUtils;
const
SE_CREATE_TOKEN_NAME = 'SeCreateTokenPrivilege';
SE_ASSIGNPRIMARYTOKEN_NAME = 'SeAssignPrimaryTokenPrivilege';
SE_LOCK_MEMORY_NAME = 'SeLockMemoryPrivilege';
SE_INCREASE_QUOTA_NAME = 'SeIncreaseQuotaPrivilege';
SE_UNSOLICITE... |
Program Test1;
procedure Print;
begin
WriteLn('Hello world!')
end;
begin
end. |
{**********************************************************
* Copyright (c) Zeljko Cvijanovic Teslic RS/BiH
* www.zeljus.com
* Created by: 28-8-15
***********************************************************}
unit AZCForms;
{$mode objfpc}{$H+}
{$modeswitch unicodestrings}
{$namespace zeljus.com.units}
interf... |
unit uConexaoDB;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Grids, Vcl.DBGrids,
Vcl.ExtCtrls, Data.DB, Datasnap.DBClient, Data.Win.ADODB, System.IniFiles;
type
TConfiguracao = clas... |
unit ColumnsConverter;
interface
uses
SrcConverter;
type
TColumnsConverter = class(TConverter)
private
function ConvertColumnsItems(ASrc: string; var ADest: string): Boolean;
function ConvertColumnsClear(ASrc: string; var ADest: string): Boolean;
function ConvertColumnsReadOnly(ASrc: string; var A... |
{*******************************************************}
{ }
{ Ações Invest Libray Main }
{ }
{ Biblioteca que contêm as funções e componentes }
{ que serão utili... |
unit DatabaseConnection;
interface
uses SysUtils, ZConnection, ZAbstractRODataset, ZAbstractDataset, ZDataset, DB;
type
TDatabaseConnection = class
private
FCon: TZConnection;
procedure Init(DBName: string; NewDB: Boolean = False);
public
constructor Create(DBName: string; NewDB: Bool... |
{-----------------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/MPL-1.1.html... |
unit BringToFront;
interface
uses classes, controls;
type TBringToFront = class(TComponent)
private
VControlName : string;
protected
public
procedure SetVControlName(s : string);
published
property ControlName : string read VControlName write SetVControlName;
e... |
unit EngineGLContext;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, dglOpenGL, EngineDebug;
procedure InitGlContext;
function checkGlVersion(major, minor: GLint): Boolean;
implementation
var
initialised: boolean = False;
procedure InitGlContext;
//var
// tmpint: integer;
begin
if not initialised then
... |
unit UCL.Classes;
interface
uses
Classes, Graphics, Controls;
type
TUTheme = (utLight, utDark);
TUOrientation = (oHorizontal, oVertical);
TUDirection = (dLeft, dTop, dRight, dBottom);
TUControlState = (csNone, csHover, csPress);
TUImageKind = (ikFontIcon, ikImage);
AccentPolicy = packed record
Ac... |
program runtests;
{$mode objfpc}{$H+}
uses
Classes, consoletestrunner, testcase1;
//add here the units containing your testcases;
var
App: TTestRunner;
begin
App := TTestRunner.Create(nil);
App.Initialize;
App.Title := 'FPCUnit Console runner.';
App.Run;
App.Free;
end.
///how the heck I figured ... |
unit uTPBaixaCheque;
uses
Windows, Messages, Classes, SysUtils,uOrganizacaoModel;
type
TCBDebitoModel = class(TObject)
private
FFID: string;
FFIDorganizacao: string;
FFOrganizacao: TOrganizacaoModel;
FFIDcontaBancaria: string;
FFIDTOB: string;
FFIDTituloPagar: string;
FFIDResponsave... |
unit uOperationsCalc;
interface
uses uAbstractCalc, System.SysUtils;
type
TSum = class(TCalc)
function Calcular(AValueX, AValueY: Double): Double; override;
end;
TSubtract = class(TCalc)
function Calcular(AValueX, AValueY: Double): Double; override;
end;
TDivide = class(TCalc)
function Calcul... |
unit Embedded_GUI_ARM_Common;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Dialogs, LCLType, Controls,
ProjectIntf,
Embedded_GUI_Common,
Embedded_GUI_SubArch_List; // Unit wird von "./Tools/Ebedded_List_to_const" generiert.
type
{ TARM_ProjectOptions }
TARM_ProjectOptions = class
stlink_C... |
unit RegistroAtividadeAtividadesProdutoEntidade;
interface
type
TRegistroAtividadeAtividadesProdutoEntidade = class
private
FCodigo: integer;
FCodigoRegistroAtividade: integer;
FCodigoProduto: integer;
FQuantidade: double;
FUnidade: AnsiString;
FCusto: double;
procedure... |
unit unitReporter;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, IdTCPClient, unitdebug, Graphics, LCLType, LCLIntf, unitDatabase, Forms, stdctrls, process, unitThreadSync;
type
PQuizDB = ^TQuizDB;
PAssignDB = ^TAssignDB;
PVoteDB = ^TVoteDB;
PThreadMethod = ^TThreadMethod;
Plabel =... |
unit Forms.Main;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, AdvUtil, Vcl.Grids, AdvObj, BaseGrid,
AdvGrid, Vcl.BaseImageCollection, AdvTypes, System.ImageList, Vcl.ImgList,
Vcl.VirtualImageList, AdvGlowB... |
{*******************************************************************************
Title: T2Ti ERP
Description: Classe de controle da EcfAliquotas.
The MIT License
Copyright: Copyright (C) 2010 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documen... |
{-------------------------------------------------------------------------------
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/
Software... |
Program parseSentence (input, output);
{
description of Project 1:
}
const
{ chararacter classifications }
LETTER = 0;
DIGIT = 1;
UNKNOWN = 8;
EOL = 9; { end of input line }
{ token constants }
VERB_t = 10;
ADV_t = ... |
unit PTEndpointLokState;
{ PTserver endpoint /lokState/id. }
interface
uses IdContext, IdCustomHTTPServer, JsonDataObjects, PTEndpoint, SysUtils,
Generics.Collections, RegularExpressions;
type
TPTEndpointLokStav = class(TPTEndpoint)
private const
_ENDPOINT_MATCH_REGEX = '^/lokState/(\d+)/?$';
pub... |
unit uDMExtratoBancario;
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,udmConexao,
FireDAC.Comp.DataSet, FireDAC.Comp.Client, System.D... |
unit Main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, ComCtrls, Math, AnyiQuack;
type
TForm1 = class(TForm)
ListBox1: TListBox;
ListBox2: TListBox;
ListBox3: TListBox;
ListBox4: TListBox;
Panel1: TPane... |
unit kbmMemBinaryStreamFormat;
interface
{$include kbmMemTable.inc}
// =========================================================================
// Binary stream format for kbmMemTable v. 3.xx+
//
// Copyright 1999-2002 Kim Bo Madsen/Optical Services - Scandinavia
// All rights reserved.
//
// LICENSE AGREEMENT
// P... |
unit FormCustomizationHelper;
interface
uses
System.Classes, System.SysUtils, System.Types, System.UITypes,
FMX.Types, FMX.Forms, FMX.Graphics, FMX.Controls, FMX.Platform;
type
TFormCustomizationHelper = class
private type
TSelectState = (sNone, sSizingN, sSizingS, sSizingE, sSizingW,
... |
unit MEBTUTILS;
interface
function itemlist(x:integer):string;
procedure Intro;
function Combine(x,y:integer):integer;
function Tool(x:integer):boolean;
function EnemyName(x:integer):string;
implementation
uses CansDraw,sysutils,keyboard,math;
const
FOV = 40;
type
ln = record
x,y,x1,y1,c:inte... |
unit classe_plano;
{$mode ObjFPC}{$H+}
interface
uses
Classes, SysUtils, Controls, ExtCtrls, Dialogs, utabela, ZDataset;
//
type
{ Tplano }
Tplano = class
private
Fdescricao: String;
Fid_plano: Integer;
Ftipo: String;
function retornaAI: Integer;
public
... |
PROGRAM SortMonth(INPUT, OUTPUT);
USES
DateIO;
VAR
Mo1, Mo2: Month;
BEGIN
ReadMonth(INPUT, Mo1);
ReadMonth(INPUT, Mo2);
IF (Mo1 = NoMonth) OR (Mo2 = NoMonth)
THEN
WRITELN('Данные некоректны')
ELSE
IF Mo1 = Mo2
THEN
BEGIN
WRITELN('Оба месяца ');
WriteMonth(OUTPUT, Mo2)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.