Difference between revisions of "FCL/ja"

From Lazarus wiki
Jump to navigationJump to search
m (New page: {{FCL}} {{Japanese Menu}} ''Free Component Library'' (FCL)はどのようなプロジェクトでも良く使うコンポーネント(ほとんどはクラス)を提供している...)
 
m
Line 7: Line 7:
 
それらはDelphiの''Visual Component Library''(VCL)と互換性をもつようにして作られてはいますが、FCLは厳密に、ノンビジュアルなコンポーネントとして設計されています。
 
それらはDelphiの''Visual Component Library''(VCL)と互換性をもつようにして作られてはいますが、FCLは厳密に、ノンビジュアルなコンポーネントとして設計されています。
 
一方でFCLはVCLよりも先をいっています。
 
一方でFCLはVCLよりも先をいっています。
(訳注:FCLはよく考えられておりGUIやフォームに依存しないものが分離されている。そのためコンソールでも使えるなど応用範囲が広くなっている。仕様をはっきりさせようと努力しており、品質は日々目に見えて改善がすすんでおり、多くのプロジェクトを支える柱となっている。一方、LCLはGUIやフォームに依存するものが集められOS間でビジュアルな統一をしようとするため、仕様的な難しさに直面しており、現在のところ品質的にはFCLに及ばない部分が多い。)
+
(訳注:FCLはよく考えられておりGUIやフォームに依存しないものが分離されている。そのためコンソールでも使えるなど応用範囲が広くなっている。仕様をはっきりさせようと努力しており、品質は日々目に見えて改善がすすんでおり、多くのプロジェクトを支える柱となっている。一方、LCLはGUIやフォームに依存するものが集められOS間でビジュアルな統一をしようとするため、仕様的な難しさに直面しており、現在のところ品質的にはFCLに及ばない部分が多いが、かなり使える。)
  
See  [http://www.freepascal.org/fcl/fcl.html Free Component Library] for the current development status and an overview of the available components
+
現在の開発状況やりようできるコンポーネントを知るには[http://www.freepascal.org/fcl/fcl.html Free Component Library]を見てください。
(though this seems inconsistent with [http://lazarus-ccr.sourceforge.net/docs/fcl/index.html Reference for 'fcl'] in Lazarus).
 
You can also check the [http://www.freepascal.org/cgi-bin/viewcvs.cgi/trunk/packages/ source repository].
 
Note that there are also some platform-specific files in the FCL.
 
  
After the example, you can find a list of some FCL components.
+
(Lazarusのこちらのページと一致していない部分があります。 [http://lazarus-ccr.sourceforge.net/docs/fcl/index.html Reference for 'fcl'] ).
  
=== Usage ===
+
最新の状況は[http://www.freepascal.org/cgi-bin/viewcvs.cgi/trunk/packages/ ソースリポジトリ]もチェックしてみてください。
 +
いくつかプラットホームに分かれたファイルがあることに注意してください。
  
To use an FCL component you need to include its name in a '''uses''' clause of your program or unit (see example below).
+
いくつかのFCLコンポーネントが使われている例を示します。
The default compiler configuration is set up to search the fcl directory for such units.
 
You can also set the appropriate search path with a command-line compiler option of the form -Fu<path-to-fcl-units>.
 
  
=== Subpackages ===
+
=== 使い方 ===
 +
 
 +
FCLコンポーネントを使うにはプログラムやユニットのuses節でFCLコンポーネント名を指定します。
 +
デフォルトのコンパイラ設定では、FCLディレクトリがユニットの検索に含まれています。
 +
コマンドラインコンパイラでは適切な検索パスを -Fu<path-to-fcl-units>オプションで指定することができます。
 +
 
 +
=== サブパッケージ ===
  
 
Currently (future 2.2.2+) the FCL is divided into several subpackages:
 
Currently (future 2.2.2+) the FCL is divided into several subpackages:
 +
現在(2.2.2以降)では、FCLはいくつかのサブパッケージにわかれています。
  
* [[fcl-base]]    The base units
+
* [[fcl-base/ja]]    基本ユニット
* [[fcl-async]]    Asynchronous I/O (serial?)
+
* [[fcl-async/ja]]    非同期I/O
* [[fcl-db]]      Generic database support + prepackaged drivers
+
* [[fcl-db/ja]]      一般的なデータベースのサポート+ドライバ
* [[fcl-fpcunit]]  Unit testing framework
+
* [[fcl-fpcunit/ja]]  ユニットテストフレームワーク
* [[fcl-image]]    Image reading and writing (aka fpimage)
+
* [[fcl-image/ja]]    画像の読み書き
* [[fcl-json]]    Routines for javascript object streaming
+
* [[fcl-json/ja]]    javascriptオブジェクトストリーミング
* [[fcl-net]]      Network related units
+
* [[fcl-net/ja]]      ネットワーク関連
* [[fcl-passrc]]  Pascal language parsing and transformation
+
* [[fcl-passrc/ja]]  パスカルの字句解析
* [[fcl-process]]  Process controll
+
* [[fcl-process/ja]]  プロセス制御
* [[fcl-registry]] Registry
+
* [[fcl-registry/ja]] レジストリ
* [[fcl-web]]      Helper for web development
+
* [[fcl-web/ja]]      WEB開発のヘルパー
* [[fcl-xml]]      XML (DOM) unit and related units.
+
* [[fcl-xml/ja]]      XML (DOM)に関するもの
  
  
=== Documentation ===
+
=== 文書 ===
  
 
Currently, the FCL is not documented (feel free to contribute;
 
Currently, the FCL is not documented (feel free to contribute;

Revision as of 01:47, 19 July 2008

Deutsch (de) English (en) español (es) suomi (fi) français (fr) Bahasa Indonesia (id) 日本語 (ja) русский (ru) 中文(中国大陆)‎ (zh_CN)

日本語版メニュー
メインページ - Lazarus Documentation日本語版 - 翻訳ノート - 日本語障害情報

Free Component Library (FCL)はどのようなプロジェクトでも良く使うコンポーネント(ほとんどはクラス)を提供しているユニットの集合です。

それらはDelphiのVisual Component Library(VCL)と互換性をもつようにして作られてはいますが、FCLは厳密に、ノンビジュアルなコンポーネントとして設計されています。 一方でFCLはVCLよりも先をいっています。 (訳注:FCLはよく考えられておりGUIやフォームに依存しないものが分離されている。そのためコンソールでも使えるなど応用範囲が広くなっている。仕様をはっきりさせようと努力しており、品質は日々目に見えて改善がすすんでおり、多くのプロジェクトを支える柱となっている。一方、LCLはGUIやフォームに依存するものが集められOS間でビジュアルな統一をしようとするため、仕様的な難しさに直面しており、現在のところ品質的にはFCLに及ばない部分が多いが、かなり使える。)

現在の開発状況やりようできるコンポーネントを知るにはFree Component Libraryを見てください。

(Lazarusのこちらのページと一致していない部分があります。 Reference for 'fcl' ).

最新の状況はソースリポジトリもチェックしてみてください。 いくつかプラットホームに分かれたファイルがあることに注意してください。

いくつかのFCLコンポーネントが使われている例を示します。

使い方

FCLコンポーネントを使うにはプログラムやユニットのuses節でFCLコンポーネント名を指定します。 デフォルトのコンパイラ設定では、FCLディレクトリがユニットの検索に含まれています。 コマンドラインコンパイラでは適切な検索パスを -Fu<path-to-fcl-units>オプションで指定することができます。

サブパッケージ

Currently (future 2.2.2+) the FCL is divided into several subpackages: 現在(2.2.2以降)では、FCLはいくつかのサブパッケージにわかれています。


文書

Currently, the FCL is not documented (feel free to contribute; also take a look at Reference for 'fcl'). For Delphi compatible units, you could consult the Delphi documentation. You can always take a look at the source files in the source repository.

Example

The following program illustrates the use of the class TObjectList in the FCL unit Contnrs (providing various containers, including lists, stacks, and queues):

<delphi> program TObjectListExample;

uses
  Classes, { from RTL for TObject }
  Contnrs; { from FCL for TObjectList }

type
   TMyObject = class(TObject)  { just some application-specific class }
   private
     FName: String; { with a string field }
   public
     constructor Create(AName: String); { and a constructor to create it with a given name }
     property Name: String read FName; { and a property to read the name }
  end;

constructor TMyObject.Create(AName: String);
begin
  inherited Create;
  FName := AName;
end;

var
  VObjectList: TObjectList; { for a list of objects; it is a reference to such a list! }

begin
  VObjectList := TObjectList.Create  { create an empty list }
  with VObjectList do
  begin
    Add(TMyObject.Create('Thing One'));
    Writeln((Last as TMyObject).Name);
    Add(TMyObject.Create('Thing Two'));
    Writeln((Last as TMyObject).Name);
  end;
end.</delphi>

This program must be compiled in an object-oriented mode, such as -Mobjfpc or -Mdelphi.

FCL Components

This is not an exhaustive list (to avoid duplication of effort). It only mentions some important components, or components that are otherwise not easy to find.

Classes
Base classes for Object Pascal extensions in Delphi mode
Contnrs
Some common container classes
FPCUnit
Unit testing framework (based on Kent Beck's unit testing framework, e.g. cf. JUnit), documenting article about FPCUnit
XMLRead, XMLWrite and DOM
Detailed at the XML Tutorial