Extending the IDE/ja: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | + | **日本語版メニュー** | |
| 2 | + | --- | |
| 3 | + | [[Main Page/ja|メインページ]] \- [[Lazarus Documentation/ja|Lazarus Documentation日本語版]] \- [[Japanese Localization Notes|翻訳ノート]] \- [[Bug Tracking/ja|日本語障害情報]] | |
| 4 | + | ||
| 5 | + | ## Contents | |
| 6 | + | ||
| 7 | + | * 1 IDEを拡張する | |
| 8 | + | * 1.1 概要 | |
| 9 | + | * 1.2 コンポーネントを作成する | |
| 10 | + | * 1.3 コンポーネントエディタを作成する | |
| 11 | + | * 1.4 プロパティエディタを作成する | |
| 12 | + | * 1.5 イベントハンドラを登録する | |
| 13 | + | * 1.6 ソースのヘルプを追加する | |
| 14 | + | * 1.7 最初の製作者と変更 | |
| 15 | + | ||
| 1 | 16 | # IDEを拡張する | |
| 2 | 17 | ||
| 3 | 18 | ## 概要 | |
| 4 | 19 | ||
| 5 | - | ||
| 20 | + | IDEはいくつかのプラグインをサポートしています。 | |
| 6 | 21 | ||
| 7 | - | ||
| 8 | - | ||
| 22 | + | コンポーネント | |
| 23 | + | コンポーネントパレット上にアイコンとして現れます。と問えば、TButtonはボタンを作るのに使われます。 | |
| 9 | 24 | ||
| 10 | - | ||
| 11 | - | ||
| 25 | + | コンポーネントエディタ | |
| 26 | + | コンポーネントエディタはコンポーネントを設計時にダブルクリックしたり、設計時にコンポーネント上で右クリックで表示されるポップアップメニューにいくつかの項目を追加するときに使われます。 | |
| 12 | 27 | ||
| 13 | - | ||
| 14 | - | ||
| 28 | + | プロパティエディタ | |
| 29 | + | オブジェクトインスペクタの行で使われます。 | |
| 15 | 30 | ||
| 16 | - | ||
| 17 | - | ||
| 31 | + | エキスパート | |
| 32 | + | その他の全てです。 | |
| 18 | 33 | ||
| 19 | - | ||
| 34 | + | ||
| 35 | + | Lazarusに独自のプラグインを追加するには、2つの方法があります。 | |
| 20 | 36 | ||
| 21 | - | ||
| 37 | + | 1. パッケージを書く方法, 自分でプラグインを書いて、そのユニットの'Register'手続きを使います。 | |
| 22 | 38 | ||
| 23 | - | ||
| 39 | + | 1. Lazarusのコードを拡張して、差分をlazarusのメーリングリストへ送る方法。 | |
| 24 | 40 | ||
| 25 | 41 | ## コンポーネントを作成する | |
| 26 | 42 | ||
| 27 | - | ||
| 43 | + | ToDo Hint: Create a new component via the package editor. | |
| 28 | 44 | ||
| 29 | 45 | ## コンポーネントエディタを作成する | |
| 30 | 46 | ||
| 31 | - | ||
| 47 | + | ToDo Hint: see componenteditors.pas for examples | |
| 32 | 48 | ||
| 33 | 49 | ## プロパティエディタを作成する | |
| 34 | 50 | ||
| 35 | - | ||
| 51 | + | ToDo Hint: see propedits.pp for examples | |
| 36 | 52 | ||
| 37 | 53 | ## イベントハンドラを登録する | |
| 38 | 54 | ||
| 39 | - | ||
| 55 | + | IDEにはいくつかのイベントがあり、それに対してプラグインは独自のハンドラを追加することができます。propedits.pp で、"GlobalDesignHook"オブジェクトがあります。これは、設計時のイベントを管理します。各々のイベントはハンドラーのリストを呼び出します。デフォルトのハンドラーはIDEから追加されています。あなたは独自のハンドラを、AddHandlerXXXやRemoveHandlerXXX手続きを使って登録できます。それらは、デフォルトのハンドラの前に呼び出されます。 | |
| 40 | 56 | ||
| 41 | - | ||
| 57 | + | 例: | |
| 58 | + | ``` | |
| 59 | + | 独自のハンドラを追加します。(通常、あなたが作成したオブジェクトのコンストラクタでおこないます。): | |
| 60 | + | GlobalDesignHook.AddHandlerComponentAdded(@YourOnComponentAdded); | |
| 61 | + | ``` | |
| 62 | + | ``` | |
| 63 | + | 独自のハンドラを取り除きます: | |
| 64 | + | GlobalDesignHook.RemoveHandlerComponentAdded(@YourOnComponentAdded); | |
| 65 | + | ``` | |
| 66 | + | ``` | |
| 67 | + | すべてのハンドラを一度に削除することもできます。たとえば、次の行をオブジェクトのデストラクタに追加するのも良いでしょう。: | |
| 68 | + | GlobalDesignHook.RemoveAllHandlersForObject(Self); | |
| 69 | + | ``` | |
| 42 | 70 | ||
| 43 | - | ||
| 44 | - | ||
| 45 | - | ||
| 46 | - | ||
| 47 | - | ||
| 48 | - | ||
| 49 | - | ||
| 50 | - | ||
| 71 | + | GlobalDesignHookのハンドラです: | |
| 51 | 72 | ||
| 52 | - | ||
| 73 | + | ||
| 53 | 74 | ||
| 54 | - | ||
| 55 | - | ||
| 56 | - | ||
| 57 | - | ||
| 58 | - | ||
| 59 | - | ||
| 60 | - | ||
| 61 | - | ||
| 62 | - | ||
| 63 | - | ||
| 64 | - | ||
| 65 | - | ||
| 66 | - | ||
| 67 | - | ||
| 68 | - | ||
| 69 | - | ||
| 70 | - | ||
| 71 | - | ||
| 72 | - | ||
| 73 | - | ||
| 74 | - | ||
| 75 | - | ||
| 76 | - | ||
| 77 | - | ||
| 78 | - | ||
| 79 | - | ||
| 80 | - | ||
| 81 | - | ||
| 82 | - | ||
| 83 | - | ||
| 84 | - | ||
| 85 | - | ||
| 86 | - | ||
| 87 | - | ||
| 88 | - | ||
| 89 | - | ||
| 90 | - | ||
| 91 | - | ||
| 75 | + | ``` | |
| 76 | + | // lookup root | |
| 77 | + | ChangeLookupRoot | |
| 78 | + | Called when the "LookupRoot" changed. | |
| 79 | + | The "LookupRoot" is the owner object of the currently selected components. | |
| 80 | + | Normally this is a TForm. | |
| 81 | + | ||
| 82 | + | // methods | |
| 83 | + | CreateMethod | |
| 84 | + | GetMethodName | |
| 85 | + | GetMethods | |
| 86 | + | MethodExists | |
| 87 | + | RenameMethod | |
| 88 | + | ShowMethod | |
| 89 | + | Called | |
| 90 | + | MethodFromAncestor | |
| 91 | + | ChainCall | |
| 92 | + | ||
| 93 | + | // components | |
| 94 | + | GetComponent | |
| 95 | + | GetComponentName | |
| 96 | + | GetComponentNames | |
| 97 | + | GetRootClassName | |
| 98 | + | ComponentRenamed | |
| 99 | + | Called when a component was renamed | |
| 100 | + | ComponentAdded | |
| 101 | + | Called when a new component was added to the LookupRoot | |
| 102 | + | ComponentDeleting | |
| 103 | + | Called before a component is freed. | |
| 104 | + | DeleteComponent | |
| 105 | + | Called by the IDE to delete a component. | |
| 106 | + | GetSelectedComponents | |
| 107 | + | Get the current selection of components. | |
| 108 | + | ||
| 109 | + | // persistent objects | |
| 110 | + | GetObject | |
| 111 | + | GetObjectName | |
| 112 | + | GetObjectNames | |
| 113 | + | ||
| 114 | + | // modifing | |
| 115 | + | Modified | |
| 116 | + | Revert | |
| 117 | + | RefreshPropertyValues | |
| 118 | + | ``` | |
| 92 | 119 | ||
| 93 | 120 | ## ソースのヘルプを追加する | |
| 94 | 121 | ||
| 95 | - | ||
| 96 | - | ||
| 97 | - | ||
| 98 | - | ||
| 99 | - | ||
| 100 | - | ||
| 101 | - | ||
| 102 | - | ||
| 103 | - | ||
| 104 | - | ||
| 105 | - | ||
| 106 | - | ||
| 107 | - | ||
| 108 | - | ||
| 122 | + | THelpDatabaseを最初に作りましょう: | |
| 123 | + | ``` | |
| 124 | + | HelpDB:=TFPDocHTMLHelpDatabase( | |
| 125 | + | HelpDatabases.CreateHelpDatabase('ANameOfYourChoiceForTheDatabase', | |
| 126 | + | TFPDocHTMLHelpDatabase,true)); | |
| 127 | + | HelpDB.DefaultBaseURL:='<http://your.help.org/'>; | |
| 128 | + | ``` | |
| 129 | + | ``` | |
| 130 | + | FPDocNode:=THelpNode.CreateURL(HelpDB, | |
| 131 | + | 'Package1 - A new package', | |
| 132 | + | 'file://index.html'); | |
| 133 | + | HelpDB.TOCNode:=THelpNode.Create(HelpDB,FPDocNode);// once as TOC | |
| 134 | + | DirectoryItem:=THelpDBISourceDirectory.Create(FPDocNode,'$(PkgDir)/lcl', | |
| 135 | + | '*.pp;*.pas',false);// and once as normal page | |
| 136 | + | HelpDB.RegisterItem(DirectoryItem); | |
| 137 | + | ``` | |
| 109 | 138 | ||
| 110 | 139 | ## 最初の製作者と変更 | |
| 111 | 140 | ||
| 112 | - | ||
| 141 | + | This page has been converted from the epikwiki [version](<http://lazarus-ccr.sourceforge.net/index.php?wiki=ExtendingTheIde>). | |
| 113 | 142 | ||
| 114 | - | ||
| 143 | + | This document was authored by Mattias Gaertner Initial import and formatted for Lazarus-CCR - [ VlxAdmin](</User:Tom> "User:Tom") 9/26/2003 | |
| 115 | 144 | ||
| 116 | 145 | --- | |
| 117 | - | ||
| 146 | + | *From the Free Pascal wiki, page "Extending the IDE/ja", as the Internet Archive kept it on 2023-03-27. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
