diff --git a/Build/4DPop Macros.4dbase.zip b/Build/4DPop Macros.4dbase.zip
index c4f23a0..c90016c 100644
Binary files a/Build/4DPop Macros.4dbase.zip and b/Build/4DPop Macros.4dbase.zip differ
diff --git a/Build/Components/4DPop Macros.4dbase/4DPop Macros.4DZ b/Build/Components/4DPop Macros.4dbase/4DPop Macros.4DZ
index c0c5307..4a5a401 100755
Binary files a/Build/Components/4DPop Macros.4dbase/4DPop Macros.4DZ and b/Build/Components/4DPop Macros.4dbase/4DPop Macros.4DZ differ
diff --git a/Build/Components/4DPop Macros.4dbase/Info.plist b/Build/Components/4DPop Macros.4dbase/Info.plist
index 79395d4..5df3ea9 100755
--- a/Build/Components/4DPop Macros.4dbase/Info.plist
+++ b/Build/Components/4DPop Macros.4dbase/Info.plist
@@ -6,13 +6,13 @@
CFBundleName
4DPop Macros
CFBundleVersion
- 264
+ 269
NSHumanReadableCopyright
©vdl 2009-2023
CFBundleGetInfoString
20R4
CFBundleLongVersionString
- 20R4 (263)
+ 20R4 (268)
CFBundleShortVersionString
20R4
CFBundleDisplayName
diff --git a/Build/Components/4DPop Macros.4dbase/Libraries/lib4d-arm64.dylib b/Build/Components/4DPop Macros.4dbase/Libraries/lib4d-arm64.dylib
index 34f6d61..c282c58 100644
Binary files a/Build/Components/4DPop Macros.4dbase/Libraries/lib4d-arm64.dylib and b/Build/Components/4DPop Macros.4dbase/Libraries/lib4d-arm64.dylib differ
diff --git a/Build/Components/4DPop Macros.4dbase/Macros v2/4DPop_Macros.xml b/Build/Components/4DPop Macros.4dbase/Macros v2/4DPop_Macros.xml
index f57a963..337f427 100755
--- a/Build/Components/4DPop Macros.4dbase/Macros v2/4DPop_Macros.xml
+++ b/Build/Components/4DPop Macros.4dbase/Macros v2/4DPop_Macros.xml
@@ -2,7 +2,7 @@
@@ -118,18 +118,18 @@
Maquereau 4D :
-
- 4DPop_MACROS("duplicateAndComment")
+ 4DPop_MACROS("comment")
-
- 4DPop_MACROS("commentBlock")
+ 4DPop_MACROS("duplicateAndComment")
diff --git a/Build/Components/4DPop Macros.4dbase/Resources/4DPop_Macros.xml b/Build/Components/4DPop Macros.4dbase/Resources/4DPop_Macros.xml
index f57a963..337f427 100755
--- a/Build/Components/4DPop Macros.4dbase/Resources/4DPop_Macros.xml
+++ b/Build/Components/4DPop Macros.4dbase/Resources/4DPop_Macros.xml
@@ -2,7 +2,7 @@
@@ -118,18 +118,18 @@
Maquereau 4D :
-
- 4DPop_MACROS("duplicateAndComment")
+ 4DPop_MACROS("comment")
-
- 4DPop_MACROS("commentBlock")
+ 4DPop_MACROS("duplicateAndComment")
diff --git a/Build/Components/4DPop Macros.4dbase/Resources/InfoPlist.strings b/Build/Components/4DPop Macros.4dbase/Resources/InfoPlist.strings
index bb7597e..c092aa3 100755
Binary files a/Build/Components/4DPop Macros.4dbase/Resources/InfoPlist.strings and b/Build/Components/4DPop Macros.4dbase/Resources/InfoPlist.strings differ
diff --git a/Build/Components/4DPop Macros.4dbase/Resources/_ja.lproj/4DPop Macros.xlf b/Build/Components/4DPop Macros.4dbase/Resources/_ja.lproj/4DPop Macros.xlf
deleted file mode 100644
index 4ebe5b7..0000000
--- a/Build/Components/4DPop Macros.4dbase/Resources/_ja.lproj/4DPop Macros.xlf
+++ /dev/null
@@ -1 +0,0 @@
-
文字列
テキスト
実数
整数
倍長整数
日付
時間
ブール
ピクチャー
グラフ
BLOB
フロート
ポインター
変数
配列
メソッドシンタックス
各変数につき1行
オブション
戻る
このオプションがチェックされている場合、それぞれの変数に対して宣言行が1行作成されます。
このオプションを使用すると、一つ以上の引数を受け取る、あるいは値を返すプロジェクトメソッドに対して、宣言行の後にコンパイルの指示子を挿入することができます。
型
パターン
シンタックスルール
変数リスト
宣言行あたりの変数の数 :
コンパイラ指示子を無視する
宣言されたものの使用されていない変数は削除されます。
ローカル変数の名前は必ず先頭がドル記号($)で、そのあと最大で31文字の文字や数字を使用することができます。
この変数は既にこのメソッド内で使用されています。
続けますか?
不要な空白行を削除する
複数の空白行は単一の空白行に置き換えられます。メソッドの終わりにある空白行は無視されます。
廃止予定の型を置き換える
C_ALPHAの代わりにC_TEXT および TEXT ARRAYを、C_INTEGERの代わりにC_LONGINTを使用します。
オブジェクト
メソッドのコメント更新
シンタックスの詳細がコメントの最初に追加され、コードエディターないでツールTipとして4Dによって使用されます。
コレクション
バリアント
エスケープ
OK
ペースト
If
Else
End if
Case of
End case
While
End while
For
End for
Repeat
Until
フォームメソッド:
トリガ:
フォーム:
メソッド:
オブジェクトメソッド:
挿入
コメント
インデントを削除
空白行を無視
POSIX
相対的
特殊貼り付け
文字列
HTMLコード
パス名
テキストに挿入
JSON コード
トークン化
パス名
HTML表現
UTF-8へ
UTF8のテキスト
翻訳されたバージョンのマクロファイル"4DPop"が正常にインストールされました。
次回アプリケーション起動後、翻訳されたマクロが使用可能になります。
新しいマクロを試すには: "4DPop_TEST_Macros" という名前のメソッドを作成します。必ず共有するようにしてください。
このアラートの代わりに、書いたコードが実行されます。
XML エディターを開くことなくマクロを始めるための最適な方法と言えるでしょう。
//マクロのテストメソッド
//このメソッドは"Macro test" マクロを選択した際に呼び出されます。
このメソッドを今作成しますか?
//$Txt_method内にはメソッドの完全なコンテンツ
//$Txt_highlightedにはメソッドでハイライトされた行があればそれが入ります。
WSDLで公開済み
4D タグとURL経由で利用可能
コンポーネントとホストデータベース間で共有
非表示
SQL経由で利用可能
サーバー上で実行
Webサービスとして提供
メソッド名:
メソッド {count}
すにこの名前のメソッドがあります。
メソッドの最初の空白行を削除する
メソッドの最後の空白行を削除する
構造のブランチの前に改行する
シーケンシャルな構造が含まれる前後に改行する
Case of の行の分離
ループ構造の前に改行する
キー/ペア値を使用するコマンドに対してキー/ペア値を各行に置く
ループにインクリメントを追加
グルーピングを閉じる指示
連続した空白行を削除
コメントの前に改行を必ず入れる
"&" と "|"でテスト行を分割
空の文字列への比較を、長さのテストで置き換える
"If(test) var:=x Else var:=y End if" を "var:=Choose(test;x;y)"に置き換える
廃止予定のコマンドを置き換える
4DPop Macros 設定
\ No newline at end of file
diff --git a/Build/Components/4DPop Macros.4dbase/Resources/_ja.lproj/Common.xlf b/Build/Components/4DPop Macros.4dbase/Resources/_ja.lproj/Common.xlf
deleted file mode 100644
index f4c1542..0000000
--- a/Build/Components/4DPop Macros.4dbase/Resources/_ja.lproj/Common.xlf
+++ /dev/null
@@ -1,1109 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- ファイル
-
-
-
- 編集
-
-
-
- モード
-
-
-
-
-
- サイズ
-
-
-
- スタイル
-
-
-
- 下線
-
-
-
- イタリック
-
-
-
- 太字
-
-
-
-
-
- 取り消し
-
-
-
- カット
-
-
-
- コピー
-
-
-
- ペースト
-
-
-
- クリア
-
-
-
- すべてを選択
-
-
-
- クリップボード表示
-
-
-
- デザイン
-
-
-
- 終了
-
-
-
-
-
- OK
-
-
-
- キャンセル
-
-
-
- 再試行
-
-
-
- 終了
-
-
-
- 追加
-
-
-
- 削除
-
-
-
- 編集
-
-
-
- 終了
-
-
-
- 適用
-
-
-
- 読み込み...
-
-
-
- 保存...
-
-
-
- 並び替え
-
-
-
- 使用
-
-
-
- < 戻る
-
-
-
- 次へ >
-
-
-
- 作成
-
-
-
- 書き出し...
-
-
-
- プレビュー
-
-
-
- 削除
-
-
-
- 開く
-
-
-
- 閉じる
-
-
-
- すべてを拡げる
-
-
-
- すべて折りたたむ
-
-
-
- 複製
-
-
-
- 名前を変更
-
-
-
- 再読み込み
-
-
-
-
-
- ボリューム "{volume}" の中の "{file}"
-
-
-
- ディスク上に表示
-
-
-
- グループ
-
-
-
- ユーザー
-
-
-
- ローカル変数
-
-
-
-
-
- フォームメソッド:
-
-
-
- トリガ:
-
-
-
- フォーム:
-
-
-
- サブテーブル:
-
-
-
- メソッド:
-
-
-
- オブジェクトメソッド:
-
-
-
-
-
- その値は許可されていません。
-
-
-
- 数値は ^ を超えてはいけません。
-
-
-
- 数値は ^ を下回ってはいけません。
-
-
-
-
-
- エラー #
-
-
-
- ディスク ファイル ディレクトリに空きがありません。
-
-
-
- このボリュームには書き込めません。
-ディスクに空きがあるか、書き込み禁止になっていないか、アクセス権があるかどうか確認してください。
-
-
-
- 入出力エラー。
-
-
-
- ファイル名が不適切です。
-
-
-
- ファイルの終端を超えて読み出しまたは書き込みが行われようとしました。
-
-
-
- ファイルの最初より手前で読み出しまたは書き込みが行われようとしました。
-
-
-
- ファイルの開き過ぎです。
-
-
-
- ファイルが見つかりません。
-
-
-
- ディスクがロックされています。
-
-
-
- ファイルがロックされているか、パス名が正しくありません。
-
-
-
- ファイルはすでに開かれているかフォルダーが一杯です。
-
-
-
- そのファイルはすでに存在しています。
-
-
-
- 重複不可属性のフィールドがあるテーブルに重複したデータを保存しようとしました。
-
-
-
- レコードを保存する容量がありません。
-
-
-
- レコードの最大数に達しました。
-
-
-
- メソッドスタックに空きがありません。
-
-
-
- デモ版の制限事項に達しました。
-
-
-
- ユーザーによる割り込み。
-
-
-
- 印刷ファイル保存中に障害が起きました。
-
-
-
- 実装されていない制御命令です。
-
-
-
- 入出力エラーが生じました。
-
-
-
- メモリに十分な空きがありません。
-
-
-
- ユーザーにより印刷処理が中断されました。
-
-
-
- 接続が閉じられました。
-
-
-
- プリンターが閉じられているか、または見つかりません。
-
-
-
- LaserWriter が選択されていません。
-
-
-
- プリンターが異なるドライバーで初期化されています。
-
-
-
- メニューバーが存在している、もしくはファイルが1つ以上あります。
-
-
-
- パスワードが存在しています。
-
-
-
- アクセス権エラー。
-
-
-
- タイムアウトエラー。
-
-
-
- 不適切なストラクチャーです。
-
-
-
- 不適切なデータアドレスです。
-
-
-
- 不適切なインデックス構造です。
-
-
-
- 不適切なレコード構造です。
-
-
-
- レコード番号が範囲外です
-
-
-
- インデックスブロック番号が範囲外です。
-
-
-
- 他のレコードをリレートしています。
-
-
-
- 参照関係がループしています。
-
-
-
- トランザクション中のキー重複です。
-
-
-
- 同じプラグインが2回インストールされました。
-
-
-
- この命名セレクションは存在しません。
-
-
-
- データベースのバックアップ中のため、このコマンドは実行されませんでした。
-
-
-
- プロセスを開始できませんでした。
-
-
-
- 4D Serverと4Dクライアントのバージョンが一致していません。
-
-
-
- 処理を行うのに必要なハードウェアがありません。
-
-
-
- 処理を行うのに適切なハードウェアではありません。
-
-
-
- そのようなボリュームはありません。
-
-
-
- ファイルが開いていません。
-
-
-
- ファイルはもう開いていません。
-
-
-
- アクセス権エラー。ロックされたファイルを開こうとしました。
-
-
-
- フォルダーが見つかりません。
-
-
-
- ファイルサーバーとつながっていません。
-
-
-
- QuickTime(tm) がインストールされていません。
-
-
-
- データセグメント番号が不適切です。
-
-
-
- ライセンスまたはアクセス権エラー。
-
-
-
- モーダルウィンドウがアクティブです。
-
-
-
- カレントレコードがトリガーによって変更されました。
-
-
-
- プラグインの利用には、シリアル番号が必要です。
-
-
-
- プラグインの利用には、エクスパンション番号が必要です。
-
-
-
- このシリアル番号は既に入力されています。新しい番号を入力してください。
-
-
-
- 4Dのデモ版を起動しました。
-
-
-
- このプラグインのバージョンが古すぎます。バージョン6.7かそれ以降をお使いください。
-
-
-
- 4DはCarbonLib 1.4以上を必要とします。
-
-
-
- この機能拡張をインストールまたは有効にして、マシンを再起動してください。
-
-
-
- データベースを公開することができません。
-
-
-
- Webサーバを開始するためにこのポート番号を使用するには、"root"アクセス権限が必要です。
-
-
-
- データベースを保護モードで公開することができません。
-
-
-
- 保護モードでWebサーバーを開始するためにこのポート番号を使用するには、"root"アクセス権限が必要です。
-
-
-
- このSerial番号は既に他のコンピューターで使われており、使用可能なライセンスの最大数に達しています。この製品はデモモードで実行されます。
-
-
-
- ポート#を使用してWebサーバーを開始するために必要な権限がありません。
-権限を取得するには、このマシンの管理者としてログインし直してアプリケーションを再起動する必要があります。
-今権限を変更しますか?
-
-
-
- 認証に成功しました。変更を有効にするためにアプリケーションを再起動してください。
-
-
-
- エラー:
-権限が変更されていません。原因を調べるにはドキュメントを参照してください。
-
-
-
- エラー:
-Webサーバーを開始するために必要な権限がありません。
-アプリケーションの環境設定で、起動時にWebサーバーを公開する設定にしてください。
-詳細はドキュメントを参照してください。
-Webサーバーは開始されていません。
-
-
-
- このメソッドを読み込むことができません。
-
-
-
- このシリアル番号を使用しているコンピューター名:
-
-
-
- 使用されているシリアル番号:
-
-
-
- 4D Extensions フォルダーが完全でないか、存在しません。
-
-
-
- このアプリケーションはMac OS 9.2が必要です。
-
-
-
- このアプリケーションはMac OS 10.4.5以上が必要です。
-
-
-
- 警告:このメソッドをWebサービスとして書き出すことができません。メソッド名にXMLで使用される特別な文字が含まれています。
-
-
-
- 参照される要素が空です。
-
-
-
- 参照される要素が無効です。
-
-
-
- 参照される要素が "root" ではありません。
-
-
-
- 要素の名前が不明です。
-
-
-
- この要素のインデックスが無効です。
-
-
-
- この要素には指定された名前を持つ属性がありません。
-
-
-
- この属性のインデックスが無効です。
-
-
-
- XML DLLがロードされていません。
-
-
-
- 不適切なXMLファイルです。
-
-
-
- 整形式のXMLファイルではありません。
-
-
-
- このXMLファイルは有効でも整形式でもありません。
-
-
-
- SOAP fault
-
-
-
- XML 解析エラー
-
-
-
- HTTP エラー
-
-
-
- Network エラー
-
-
-
- Internal fault
-
-
-
- 指定されたパスが無効です。
-
-
-
- WSDL は移動しました:
-
-
-
- ドキュメントへの参照が無効です。
-
-
-
- 要素が開かれていません。
-
-
-
- 引数に渡された配列のタイプが無効です。
-
-
-
- 要素の名前が無効です。
-
-
-
- このエンコードはサポートされていません。
-
-
-
- このノードタイプは無効です。
-
-
-
- XMLデータを追加することができません(ファイルが空ではありません)
-
-
-
- このコマンドを実行するには管理者権限がなければなりません。
-
-
-
- 引数が必要です。
-
-
-
- 無効な属性名です。
-
-
-
- カスタマイズされたサーバーアプリケーションに4Dクライアントを接続することはできません。
-
-
-
- "4D Standard Edition" パッケージバージョンの制限に達しました。
-
-
-
- お持ちのライセンスでは、コンパイルモードでデータベースを開くことができません。
-
-
-
- XMLをSAXで解析するためには、ファイルを読み込みのみで開かなければなりません。
-
-
-
- 適切なODBCドライバーマネージャーがインストールされていません。
-
-
-
- データベース {database_name} を開けません。Maintenance & Security Centerを使用してデータベースを検証してください。
-
-
-
- コンポーネント {component_name} をロードできません。
-
-
-
- コマンド {command_name} をコンポーネントから呼び出すことはできません。
-
-
-
- リモートの4Dから {command_name} コマンドを呼び出すことはできません。
-
-
-
-
-
- フォームメソッド:
-
-
-
- トリガ:
-
-
-
- フォーム:
-
-
-
- サブテーブル:
-
-
-
- メソッド:
-
-
-
-
-
-
-
- 値
-
-
-
- このフィールドはクエリには使えません。
-
-
-
- オブジェクトメソッド:
-
-
-
-
-
- “ ( ”が必要です。
-
-
-
- フィールド名が必要です。
-
-
-
- このコマンドはサブテーブルのフィールドに対してのみ使用できます。
-
-
-
- リスト内のパラメーターはすべて同じタイプでなければなりません。
-
-
-
- このコマンドの対象となるテーブルがありません。
-
-
-
- このコマンドはサブテーブルタイプのフィールドに対してのみ使用できます。
-
-
-
- 数値型の引数が必要です。
-
-
-
- 文字列型の引数が必要です。
-
-
-
- 条件判断の結果が必要です。
-
-
-
- このコマンドはこのタイプのフィールドには使用できません。
-
-
-
- このコマンドは2つの条件判断間には適用できません。
-
-
-
- このコマンドは2つの数値型引数間には適用できません。
-
-
-
- このコマンドは2つの文字列型引数間には適用できません。
-
-
-
- このコマンドは2つの日付型引数には適用できません。
-
-
-
- この操作は2つの引数に対して一致していません。
-
-
-
- このフィールドにはリレーションが設定されていません。
-
-
-
- テーブル名が必要です。
-
-
-
- フィールドタイプが一致していません。
-
-
-
- このフィールドにはインデックスが付いていません。
-
-
-
- “ = ”が必要です。
-
-
-
- メソッドが存在しません。
-
-
-
- 並び替え/チャートに用いるフィールドは同一のテーブル/サブテーブルに属していないとなりません。
-
-
-
- “ < ”か“ > ”が必要です。
-
-
-
- “ ; ”が必要です。
-
-
-
- 並び替えるフィールドが多すぎます。
-
-
-
- フィールドタイプにテキスト・ピクチャー・サブテーブルは使えません。
-
-
-
- フィールド名の前にテーブル名が必要です。
-
-
-
- フィールドタイプは数値型でなければなりません。
-
-
-
- 値は 1 か 0 でなければなりません。
-
-
-
- 変数が必要です。
-
-
-
- この番号のメニューバーがありません。
-
-
-
- 日付が必要です。
-
-
-
- 実装されていないコマンドまたは関数です。
-
-
-
- このセットは他のテーブルに属しています。
-
-
-
- 無効なテーブル名です。
-
-
-
- “ := ”が必要です。
-
-
-
- これは関数です、メソッドではありません。
-
-
-
- セットが存在しません。
-
-
-
- これはメソッドです、関数ではありません。
-
-
-
- サブテーブルに属する変数かフィールドが必要です。
-
-
-
- レコードをスタックにプッシュできません。
-
-
-
- 関数が見つかりません。
-
-
-
- メソッドが見つかりません。
-
-
-
- フィールドか変数が必要です。
-
-
-
- 数値型か文字列型の引数が必要です。
-
-
-
- フィールドタイプは文字型でなければなりません。
-
-
-
- シンタックスエラー
-
-
-
- この演算子はここでは使えません。
-
-
-
- この演算子は一緒に使うことはできません。
-
-
-
- プラグインが実装されていません。
-
-
-
- 配列変数が指定されていないか、配列の型が正しくありません。
-
-
-
- インデックス範囲を越えています。
-
-
-
- 引数のタイプが一致していません。
-
-
-
- ブール型の引数が必要です。
-
-
-
- フィールドか変数かテーブルが必要です。
-
-
-
- 演算子が必要です。
-
-
-
- “ ) ”が必要です。
-
-
-
- この種の引数はここでは必要ありません。
-
-
-
- コンパイルされたデータベースでは、パラメーターやローカル変数を EXECUTE 命令文で使用することはできません。
-
-
-
- コンパイルされたデータベースでは、配列のタイプを修正することはできません。
-
-
-
- このコマンドはサブテーブルに対しては使えません。
-
-
-
- このフィールドにはインデックスが付いていません。
-
-
-
- ピクチャータイプのフィールドか変数が必要です。
-
-
-
- このコマンドは4D Server 上では実行できません。
-
-
-
- リストが必要です。
-
-
-
- 外部ウィンドウ参照が必要です。
-
-
-
- 二つのピクチャーに対し、このコマンドを適用することはできません。
-
-
-
- SET PRINT MARKER コマンドは、印刷されるフォームのヘッダー内でのみコールすることができます。
-
-
-
- ポインター配列が必要です。
-
-
-
- 数値配列が必要です。
-
-
-
- 配列のサイズが一致しません。
-
-
-
- ローカル配列のポインターは使用できません。
-
-
-
- 配列のタイプが正しくありません。
-
-
-
- 変数名が正しくありません。
-
-
-
- 並び替えのパラメーターが無効です。
-
-
-
- リストを描画している間、このコマンドを実行することはできません。
-
-
-
- クエリの引数が多すぎます。
-
-
-
- フォームが見つかりません
-
-
-
-
-
-
diff --git a/Build/Components/4DPop Macros.4dbase/Resources/fr.lproj/4DPop_Macros.xml b/Build/Components/4DPop Macros.4dbase/Resources/fr.lproj/4DPop_Macros.xml
index f44b01d..58e9a49 100755
--- a/Build/Components/4DPop Macros.4dbase/Resources/fr.lproj/4DPop_Macros.xml
+++ b/Build/Components/4DPop Macros.4dbase/Resources/fr.lproj/4DPop_Macros.xml
@@ -118,6 +118,13 @@
Maquereau 4D :
+
+ 4DPop_MACROS("comment")
+
+
4DPop_MACROS("duplicateAndComment")
-
- 4DPop_MACROS("commentBlock")
-
-
diff --git a/Info.plist b/Info.plist
index 79395d4..5df3ea9 100755
--- a/Info.plist
+++ b/Info.plist
@@ -6,13 +6,13 @@
CFBundleName
4DPop Macros
CFBundleVersion
- 264
+ 269
NSHumanReadableCopyright
©vdl 2009-2023
CFBundleGetInfoString
20R4
CFBundleLongVersionString
- 20R4 (263)
+ 20R4 (268)
CFBundleShortVersionString
20R4
CFBundleDisplayName
diff --git a/Macros v2/4DPop_Macros.xml b/Macros v2/4DPop_Macros.xml
index f57a963..337f427 100755
--- a/Macros v2/4DPop_Macros.xml
+++ b/Macros v2/4DPop_Macros.xml
@@ -2,7 +2,7 @@
@@ -118,18 +118,18 @@
Maquereau 4D :
-
- 4DPop_MACROS("duplicateAndComment")
+ 4DPop_MACROS("comment")
-
- 4DPop_MACROS("commentBlock")
+ 4DPop_MACROS("duplicateAndComment")
diff --git a/Preferences/4DPop AppMaker.xml b/Preferences/4DPop AppMaker.xml
index 326b844..2478e13 100755
--- a/Preferences/4DPop AppMaker.xml
+++ b/Preferences/4DPop AppMaker.xml
@@ -17,5 +17,5 @@
- ./Resources/php.ini
-
+
diff --git a/Project/Sources/Classes/macro.4dm b/Project/Sources/Classes/macro.4dm
index 99b86c6..97c3a85 100755
--- a/Project/Sources/Classes/macro.4dm
+++ b/Project/Sources/Classes/macro.4dm
@@ -1,9 +1,15 @@
-Class constructor
+property title; name; objectName; method; highlighted; decimalSeparator : Text
+property class; form; trigger; projectMethod; objectMethod; withSelection : Boolean
+property lineTexts : Collection
+property _controlFlow : Object
+
+Class constructor()
+
var $t : Text
- var $ƒ : Object
+ var $ƒ : 4D:C1709.Function
- ARRAY LONGINT:C221($_len; 0)
- ARRAY LONGINT:C221($_pos; 0)
+ ARRAY LONGINT:C221($len; 0)
+ ARRAY LONGINT:C221($pos; 0)
This:C1470.title:=Get window title:C450(Frontmost window:C447)
@@ -16,21 +22,21 @@ Class constructor
This:C1470.form:=False:C215
This:C1470.trigger:=False:C215
- If (Match regex:C1019("(?m-si)^([^:]*\\s*:\\s)([[:ascii:]]*)(\\.[[:ascii:]]*)?(?:\\s*\\*)?$"; This:C1470.title; 1; $_pos; $_len))
+ If (Match regex:C1019("(?m-si)^([^:]*\\s*:\\s)([[:ascii:]]*)(\\.[[:ascii:]]*)?(?:\\s*\\*)?$"; This:C1470.title; 1; $pos; $len))
$ƒ:=Formula from string:C1601(Parse formula:C1576("_localized string:C1578($1)"))
- $t:=Substring:C12(This:C1470.title; $_pos{1}; $_len{1})
+ $t:=Substring:C12(This:C1470.title; $pos{1}; $len{1})
This:C1470.projectMethod:=($t=$ƒ.call(Null:C1517; "common_method"))
This:C1470.objectMethod:=($t=$ƒ.call(Null:C1517; "common_objectMethod"))
This:C1470.class:=(Position:C15("Class:"; $t)=1)
This:C1470.form:=($t=$ƒ.call(Null:C1517; "common_form"))
This:C1470.trigger:=($t=$ƒ.call(Null:C1517; "common_Trigger"))
- This:C1470.name:=Substring:C12(This:C1470.title; $_pos{2}; $_len{2})
+ This:C1470.name:=Substring:C12(This:C1470.title; $pos{2}; $len{2})
- If ($_pos{3}>0)
+ If ($pos{3}>0)
- This:C1470.objectName:=Substring:C12(This:C1470.title; $_pos{3}; $_len{3})
+ This:C1470.objectName:=Substring:C12(This:C1470.title; $pos{3}; $len{3})
End if
@@ -61,7 +67,7 @@ Class constructor
End if
- This:C1470.lineTexts:=New collection:C1472
+ This:C1470.lineTexts:=[]
GET SYSTEM FORMAT:C994(Decimal separator:K60:1; $t)
This:C1470.decimalSeparator:=$t
@@ -93,9 +99,17 @@ Function split($useSelection : Boolean)
This:C1470.lineTexts:=Split string:C1554($target; "\r"; sk trim spaces:K86:2)
// === === === === === === === === === === === === === === === === === === === === === === === === === ===
-Function localizedControlFlow($control : Text) : Text
+Function setMethodText($text : Text)
- var $index : Integer
+ SET MACRO PARAMETER:C998(Full method text:K5:17; $text)
+
+ // === === === === === === === === === === === === === === === === === === === === === === === === === ===
+Function setHighlightedText($text : Text)
+
+ SET MACRO PARAMETER:C998(Highlighted method text:K5:18; $text)
+
+ // === === === === === === === === === === === === === === === === === === === === === === === === === ===
+Function localizedControlFlow($control : Text) : Text
This:C1470._controlFlow:=This:C1470._controlFlow || JSON Parse:C1218(File:C1566("/RESOURCES/controlFlow.json").getText())
return Command name:C538(41)="ALERT" ? $control : This:C1470._controlFlow.fr(This:C1470._controlFlow.intl.indexOf($control))
@@ -109,7 +123,7 @@ Function PasteColor()
If (Bool:C1537(OK))
- This:C1470._setSelectedText(String:C10($color & 0x00FFFFFF; "&x")+kCaret)
+ This:C1470.setHighlightedText(String:C10($color & 0x00FFFFFF; "&x")+kCaret)
End if
@@ -155,7 +169,7 @@ Function PasteAndKeepTarget()
SET TEXT TO PASTEBOARD:C523(This:C1470.highlighted)
// …and replace it with the previous one.
- This:C1470._setSelectedText($t)
+ This:C1470.setHighlightedText($t)
// === === === === === === === === === === === === === === === === === === === === === === === === === ===
// v13+ replace If(test) var:=x Else var:=y End if by var:=Choose(test;x;y)
@@ -195,7 +209,7 @@ Function Choose()
+Substring:C12($c[3]; $affect+2)\
+")"
- This:C1470._setSelectedText($t)
+ This:C1470.setHighlightedText($t)
End if
End if
@@ -351,21 +365,91 @@ Function RemoveBlankLines()
If (Length:C16(This:C1470.highlighted)=0)
- This:C1470._setMethodText($out)
+ This:C1470.setMethodText($out)
Else
- This:C1470._setSelectedText($out)
+ This:C1470.setHighlightedText($out)
End if
+ //MARK:-[COMMENTS]
+ // === === === === === === === === === === === === === === === === === === === === === === === === === ===
+Function commentBlock
+
+ This:C1470.setHighlightedText("/*\r"+This:C1470.highlighted+"\r*/")
+
+ // === === === === === === === === === === === === === === === === === === === === === === === === === ===
+Function duplicateAndComment()
+
+ If (This:C1470._noSelection())
+
+ return
+
+ End if
+
+ This:C1470.setHighlightedText(This:C1470._comment()+"\r"+This:C1470.highlighted+kCaret)
+
+ // === === === === === === === === === === === === === === === === === === === === === === === === === ===
+Function comment()
+
+ If (This:C1470._noSelection())
+
+ return
+
+ End if
+
+ ARRAY LONGINT:C221($pos; 0)
+ ARRAY LONGINT:C221($len; 0)
+
+ If (Match regex:C1019("(?si-m)/\\*(.*)\\*/"; This:C1470.highlighted; 1; $pos; $len))
+
+ This:C1470.setHighlightedText(Substring:C12(This:C1470.highlighted; $pos{1}; $len{1}))
+ return
+
+ End if
+
+ This:C1470.setHighlightedText(This:C1470._comment())
+
+ // *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
+Function _comment() : Text
+
+ var v1; v2; v3; v4 : Variant
+
+ Formula from string:C1601(":C1810(v1; v2; v3; v4)").call()
+
+ If (v3=v4)
+
+ If (v1#v2)
+
+ return "/*"+This:C1470.highlighted+"*/"
+
+ Else
+
+ return "// "+This:C1470.highlighted
+
+ End if
+
+ Else
+
+ If (v1#v2)
+
+ return "/*\r"+This:C1470.highlighted+"\r*/"
+
+ Else
+
+ return "// "+This:C1470.highlighted
+
+ End if
+ End if
+
// *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Function _noSelection() : Boolean
If (Not:C34(This:C1470.withSelection))
BEEP:C151
- ALERT:C41("This macro requires text to be selected before it is called.")
+ ALERT:C41("This macro requires text to be selected before it is called!")
return True:C214
End if
@@ -386,14 +470,4 @@ Function _paste($text : Text; $useSelection : Boolean)
End if
SET MACRO PARAMETER:C998($target; $text)
-
- // *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
-Function _setMethodText($text : Text)
-
- SET MACRO PARAMETER:C998(Full method text:K5:17; $text)
-
- // *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
-Function _setSelectedText($text : Text)
-
- SET MACRO PARAMETER:C998(Highlighted method text:K5:18; $text)
\ No newline at end of file
diff --git a/Project/Sources/Classes/specialPaste.4dm b/Project/Sources/Classes/specialPaste.4dm
index 626c0eb..7b5b4ac 100644
--- a/Project/Sources/Classes/specialPaste.4dm
+++ b/Project/Sources/Classes/specialPaste.4dm
@@ -69,7 +69,7 @@ Class constructor()
$options:=This:C1470.options
_o_Preferences("Set_Value"; "specialPasteOptions"; ->$options)
- This:C1470._setSelectedText(This:C1470.preview+kCaret)
+ This:C1470.setHighlightedText(This:C1470.preview+kCaret)
End if
diff --git a/Project/Sources/DatabaseMethods/onStartup.4dm b/Project/Sources/DatabaseMethods/onStartup.4dm
index 97fbcf6..9f25d96 100755
--- a/Project/Sources/DatabaseMethods/onStartup.4dm
+++ b/Project/Sources/DatabaseMethods/onStartup.4dm
@@ -1,18 +1,14 @@
If (Not:C34(Is compiled mode:C492))
- //Init
- EXECUTE METHOD:C1007("Init")
+ // Init
+ EXECUTE METHOD:C1007("4DPopMacrosINIT")
-End if
-
-If (Not:C34(Is compiled mode:C492))
-
- ARRAY TEXT:C222($componentsArray; 0)
- COMPONENT LIST:C1001($componentsArray)
+ // Installing quickOpen
+ ARRAY TEXT:C222($components; 0)
+ COMPONENT LIST:C1001($components)
- If (Find in array:C230($componentsArray; "4DPop QuickOpen")>0)
+ If (Find in array:C230($components; "4DPop QuickOpen")>0)
- // Installing quickOpen
EXECUTE METHOD:C1007("quickOpenInit"; *; Formula:C1597(MODIFIERS); Formula:C1597(KEYCODE))
ON EVENT CALL:C190("quickOpenEventHandler"; "$quickOpenListener")
diff --git a/Project/Sources/Methods/4DPopMacrosINIT.4dm b/Project/Sources/Methods/4DPopMacrosINIT.4dm
new file mode 100644
index 0000000..45e724d
--- /dev/null
+++ b/Project/Sources/Methods/4DPopMacrosINIT.4dm
@@ -0,0 +1,56 @@
+//%attributes = {"invisible":true,"preemptive":"incapable"}
+// ----------------------------------------------------
+// Nom utilisateur (OS) : Vincent de Lachaux
+// Date et heure : 02/02/06, 10:11:40
+// ----------------------------------------------------
+// Méthode : M_4DPop_oBoo_INIT
+// ----------------------------------------------------
+// Modified by vdl (01/07/07)
+// V11 compatibility
+// ----------------------------------------------------
+// Modified by Vincent de Lachaux (12/05/10)
+// V12
+// ----------------------------------------------------
+#DECLARE() : Boolean
+
+If (False:C215)
+ C_BOOLEAN:C305(4DPopMacrosINIT; $0)
+End if
+
+If (Storage:C1525.component=Null:C1517)
+
+ Use (Storage:C1525)
+
+ Storage:C1525.component:=New shared object:C1526("inited"; False:C215)
+
+ End use
+End if
+
+If (Storage:C1525.component.inited)
+
+ return True:C214
+
+End if
+
+If (Count parameters:C259=0)\
+ && (Not:C34(Storage:C1525.component.inited))
+
+ COMPILER_component
+
+ Use (Storage:C1525.component)
+
+ Storage:C1525.component.inited:=True:C214
+
+ End use
+
+ INSTALL_LOCALIZED_MACROS
+
+ If (_o_Preferences)
+
+ If (Install_regex)
+
+ return Install_resources
+
+ End if
+ End if
+End if
\ No newline at end of file
diff --git a/Project/Sources/Methods/4DPop_MACROS.4dm b/Project/Sources/Methods/4DPop_MACROS.4dm
index 5e89022..b1e3cb8 100755
--- a/Project/Sources/Methods/4DPop_MACROS.4dm
+++ b/Project/Sources/Methods/4DPop_MACROS.4dm
@@ -36,7 +36,7 @@ If (Count parameters:C259>=1)
If (Storage:C1525.macros=Null:C1517)
- Init
+ 4DPopMacrosINIT
End if
@@ -374,16 +374,6 @@ Case of
OPEN URL:C673("www.google.fr/search?q="+$macro.highlighted)
- //______________________________________________________
- : ($action="commentBlock")
-
- COMMENTS("commentBlock"; $macro.highlighted)
-
- //______________________________________________________
- : ($action="duplicateAndComment")
-
- COMMENTS("duplicateAndComment"; $macro.highlighted)
-
//______________________________________________________
: ($action="comment_current_level") // Comments the first and the last line of a logic block
diff --git a/Project/Sources/Methods/4DPop_MACROS_INIT.4dm b/Project/Sources/Methods/4DPop_MACROS_INIT.4dm
index 1e1a78b..be31d1a 100755
--- a/Project/Sources/Methods/4DPop_MACROS_INIT.4dm
+++ b/Project/Sources/Methods/4DPop_MACROS_INIT.4dm
@@ -1,15 +1,15 @@
//%attributes = {"invisible":true,"preemptive":"incapable"}
- // ----------------------------------------------------
- // Method : 4DPop_MACROS_INIT
- // Created 12/05/10 by Vincent de Lachaux
- // ----------------------------------------------------
- // Description
- // initialization entry point for 4DPop
- // ----------------------------------------------------
- // Declarations
+// ----------------------------------------------------
+// Method : 4DPop_MACROS_INIT
+// Created 12/05/10 by Vincent de Lachaux
+// ----------------------------------------------------
+// Description
+// initialization entry point for 4DPop
+// ----------------------------------------------------
+// Declarations
- // ----------------------------------------------------
- // Initialisations
-Init
+// ----------------------------------------------------
+// Initialisations
+4DPopMacrosINIT
- // ----------------------------------------------------
+// ----------------------------------------------------
diff --git a/Project/Sources/Methods/COMMENTS.4dm b/Project/Sources/Methods/COMMENTS.4dm
index bf82320..9d752c3 100755
--- a/Project/Sources/Methods/COMMENTS.4dm
+++ b/Project/Sources/Methods/COMMENTS.4dm
@@ -1,246 +1,263 @@
//%attributes = {"invisible":true,"preemptive":"incapable"}
- // ----------------------------------------------------
- // Méthode : COMMENTS
- // Created 28/10/05 par Vincent de Lachaux
- // ----------------------------------------------------
- // Modifée le 28/10/05 par Vincent de Lachaux
- // Modifie par : Vincent de Lachaux (27/01/06)
- // ----------------------------------------------------
- // Modified #18-10-2013 by Vincent de Lachaux
- // Add method's comments
- // ----------------------------------------------------
- // Modified #07-02-2020 by Vincent de Lachaux
- // Adapt method's comments for project mode
- // ----------------------------------------------------
- // Description
- // Management method macros for the comments
- // ----------------------------------------------------
-C_TEXT:C284($1)
-C_TEXT:C284($2)
-C_TEXT:C284($3)
-
-C_BOOLEAN:C305($bReplace;$success)
-C_LONGINT:C283($i;$indx;$l;$Lon_type;$start;$Win_hdl)
-C_POINTER:C301($ptr)
-C_TEXT:C284($t;$t_code;$t_name;$t_selector;$tComments;$tReplacement)
-C_TEXT:C284($tResult;$tSeparator;$tSyntax;$tt;$tTitle)
-C_OBJECT:C1216($o)
-C_COLLECTION:C1488($c)
-
-ARRAY LONGINT:C221($tLon_indent;0)
-ARRAY LONGINT:C221($tLon_refCount;0)
-ARRAY TEXT:C222($tTxt_controlFlow;0)
-ARRAY TEXT:C222($tTxt_Lines;0)
+// ----------------------------------------------------
+// Méthode : COMMENTS
+// Created 28/10/05 par Vincent de Lachaux
+// ----------------------------------------------------
+// Modifée le 28/10/05 par Vincent de Lachaux
+// Modifie par : Vincent de Lachaux (27/01/06)
+// ----------------------------------------------------
+// Modified #18-10-2013 by Vincent de Lachaux
+// Add method's comments
+// ----------------------------------------------------
+// Modified #07-02-2020 by Vincent de Lachaux
+// Adapt method's comments for project mode
+// ----------------------------------------------------
+// Description
+// Management method macros for the comments
+// ----------------------------------------------------
+#DECLARE($selector : Text; $selected : Text; $code : Text)
If (False:C215)
- C_TEXT:C284(COMMENTS ;$1)
- C_TEXT:C284(COMMENTS ;$2)
- C_TEXT:C284(COMMENTS ;$3)
+ C_TEXT:C284(COMMENTS; $1)
+ C_TEXT:C284(COMMENTS; $2)
+ C_TEXT:C284(COMMENTS; $3)
End if
-$t_selector:=$1 // Entry point
+var $t; $name; $comments; $tResult; $separator : Text
+var $tSyntax; $title : Text
+var $bReplace; $success : Boolean
+var $i; $indx; $l; $Lon_type; $start; $Win_hdl : Integer
+var $ptr : Pointer
+var $o : Object
+var $c : Collection
+
+ARRAY TEXT:C222($_controlFlow; 0)
+ARRAY LONGINT:C221($_indent; 0)
+ARRAY LONGINT:C221($_refCount; 0)
Case of
- //______________________________________________________
- : ($t_selector="commentBlock") //
+ //______________________________________________________
+ : ($selector="commentBlock")
- SET MACRO PARAMETER:C998(Highlighted method text:K5:18;"/*\r"+$2+"\r*/")
+ SET MACRO PARAMETER:C998(Highlighted method text:K5:18; "/*\r"+$selected+"\r*/")
- //______________________________________________________
- : ($t_selector="duplicateAndComment") // Duplicate the selected text and comment the first instance
+ //______________________________________________________
+ : ($selector="duplicateAndComment") // Duplicate the selected text and comment the first instance
- If (Length:C16($2)>0)
+ If (Length:C16($selected)=0)
+
+ return
- $c:=Split string:C1554($2;"\r")
+ End if
+
+ $c:=Split string:C1554($selected; "\r")
+
+ For each ($t; $c)
- For each ($tt;$c)
+ If (Length:C16($t)>0)
- If (Length:C16($tt)>0)
+ If ($i=0)
- If ($i=0)
-
- $tt:=kCommentMark+$tt
+ $t:=kCommentMark+$t
+
+ Else
+
+ If ($c[$i-1]#"@\\")
- Else
+ $t:=kCommentMark+$t
- If ($c[$i-1]#"@\\")
-
- $tt:=kCommentMark+$tt
-
- End if
End if
End if
-
- $t:=$t+$tt+"\r"
- $i:=$i+1
-
- End for each
+ End if
- SET MACRO PARAMETER:C998(Highlighted method text:K5:18;$t+"\r"+$2+kCaret)
+ $comments+=$t+"\r"
+ $i+=1
+
+ End for each
+
+ SET MACRO PARAMETER:C998(Highlighted method text:K5:18; $comments+"\r"+$selected+kCaret)
+
+ //______________________________________________________
+ : ($selector="comment")
+
+ Formula from string:C1601(":C1810(v1; v2; v3; v4)").call()
+
+ If (v3#v4) && (v1#0)
+
+ SET MACRO PARAMETER:C998(Highlighted method text:K5:18; "/*\r"+$selected+"\r*/")
+ return
End if
- //______________________________________________________
- : ($t_selector="method-comment-generate")
+ If (v1#0) && (v1#v2)
+
+ SET MACRO PARAMETER:C998(Highlighted method text:K5:18; "/*"+$selected+"*/")
+ return
+
+ End if
+
+ SET MACRO PARAMETER:C998(Highlighted method text:K5:18; "// "+$selected)
+
+ //______________________________________________________
+ : ($selector="method-comment-generate")
- $t_name:=$2 // Method path
- $t_code:=$3 // code
+ $name:=$selected // Method path
- METHOD RESOLVE PATH:C1165($t_name;$Lon_type;$ptr;$t;$t;*)
+ METHOD RESOLVE PATH:C1165($name; $Lon_type; $ptr; $t; $t; *)
If ($Lon_type=Path project method:K72:1)
- METHOD GET COMMENTS:C1189($t_name;$tComments;*)
+ METHOD GET COMMENTS:C1189($name; $comments; *)
If (Path to object:C1547(Structure file:C489(*)).extension=".4DProject") // #project mode
- $tSeparator:="--------------------------------------------------\r"
+ $separator:="--------------------------------------------------\r"
- ARRAY TEXT:C222($tTxt_comments;0x0000)
- ARRAY TEXT:C222($tTxt_labels;0x0000)
- ARRAY TEXT:C222($tTxt_types;0x0000)
+ ARRAY TEXT:C222($_comments; 0x0000)
+ ARRAY TEXT:C222($_labels; 0x0000)
+ ARRAY TEXT:C222($_types; 0x0000)
- METHOD_ANALYSE_TO_ARRAYS ($t_code;->$tTxt_types;->$tTxt_labels;->$tTxt_comments)
+ METHOD_ANALYSE_TO_ARRAYS($code; ->$_types; ->$_labels; ->$_comments)
- $tSyntax:=Choose:C955(Length:C16($tTxt_types{0})>0;Choose:C955(Length:C16($tTxt_labels{0})=0;$tTxt_types{0};$tTxt_labels{0})+" := "+$t_name;$t_name)
+ $tSyntax:=Choose:C955(Length:C16($_types{0})>0; Choose:C955(Length:C16($_labels{0})=0; $_types{0}; $_labels{0})+" := "+$name; $name)
- For ($i;1;Size of array:C274($tTxt_types);1)
+ For ($i; 1; Size of array:C274($_types); 1)
- // Open parentheses or put a separator
- $tSyntax:=Choose:C955($i=1;$tSyntax+" ( ";$tSyntax+" ; ")
+ // Open parentheses or put a separator
+ $tSyntax:=Choose:C955($i=1; $tSyntax+" ( "; $tSyntax+" ; ")
- $tSyntax:=$tSyntax+$tTxt_labels{$i}
+ $tSyntax:=$tSyntax+$_labels{$i}
- If ($i=Size of array:C274($tTxt_types))
+ If ($i=Size of array:C274($_types))
- // Close the parentheses
+ // Close the parentheses
$tSyntax:=$tSyntax+" )"
End if
End for
- //…then describe the parameters…
+ //…then describe the parameters…
$tResult:=$tSyntax
- For ($i;1;Size of array:C274($tTxt_types);1)
+ For ($i; 1; Size of array:C274($_types); 1)
$tResult:=$tResult+"\r"\
- +" -> "+$tTxt_labels{$i}+" ("+$tTxt_types{$i}+")"\
- +Choose:C955(Length:C16($tTxt_comments{$i})>0;" - "+$tTxt_comments{$i};"")
+ +" -> "+$_labels{$i}+" ("+$_types{$i}+")"\
+ +Choose:C955(Length:C16($_comments{$i})>0; " - "+$_comments{$i}; "")
End for
- //…and the return for a function.
- If (Length:C16($tTxt_labels{0})>0)
+ //…and the return for a function.
+ If (Length:C16($_labels{0})>0)
- $tResult:=$tResult+"\r"+" <- "+$tTxt_labels{0}+" ("+$tTxt_types{0}+")"\
- +Choose:C955(Length:C16($tTxt_comments{0})>0;" - "+$tTxt_comments{0};"")
+ $tResult:=$tResult+"\r"+" <- "+$_labels{0}+" ("+$_types{0}+")"\
+ +Choose:C955(Length:C16($_comments{0})>0; " - "+$_comments{0}; "")
End if
- $t:=$tSeparator+$tResult
+ $t:=$separator+$tResult
- If (Length:C16($tComments)=0)
+ If (Length:C16($comments)=0)
- $tComments:="\r"+$tSyntax
+ $comments:="\r"+$tSyntax
Else
- $tComments:=rgx ($tComments).substitute("(?si-m)";"").result
+ $comments:=rgx($comments).substitute("(?si-m)"; "").result
End if
Else // #database mode
- $tSeparator:="\r________________________________________________________\r"
+ $separator:="\r________________________________________________________\r"
- $tComments:=ST Get plain text:C1092($tComments)
+ $comments:=ST Get plain text:C1092($comments)
- $indx:=Position:C15($tSeparator;$tComments)
+ $indx:=Position:C15($separator; $comments)
If ($indx>0)
- $tComments:=Delete string:C232($tComments;1;$indx+Length:C16($tSeparator)-1)
+ $comments:=Delete string:C232($comments; 1; $indx+Length:C16($separator)-1)
Else
- // Compatibility with older versions of separator
- $indx:=Position:C15("\r-\r";$tComments)
+ // Compatibility with older versions of separator
+ $indx:=Position:C15("\r-\r"; $comments)
If ($indx>0)
- $tComments:=Delete string:C232($tComments;1;$indx+2)
+ $comments:=Delete string:C232($comments; 1; $indx+2)
Else
- $indx:=Position:C15("\r-";$tComments)
+ $indx:=Position:C15("\r-"; $comments)
If ($indx>0)
- $tComments:=Delete string:C232($tComments;1;$indx+1)
+ $comments:=Delete string:C232($comments; 1; $indx+1)
End if
End if
End if
- $tComments:=METHOD_Syntax ($t_code;$t_name;"")+$tSeparator+$tComments
+ $comments:=METHOD_Syntax($code; $name; "")+$separator+$comments
End if
- METHOD SET COMMENTS:C1193($t_name;$tComments;*)
+ METHOD SET COMMENTS:C1193($name; $comments; *)
End if
- //________________________________________
- : ($t_selector="method") // #18-10-2013
+ //________________________________________
+ : ($selector="method") // #18-10-2013
- $t_name:=$2
+ $name:=$selected
- METHOD RESOLVE PATH:C1165($t_name;$Lon_type;$ptr;$t;$t;*)
+ METHOD RESOLVE PATH:C1165($name; $Lon_type; $ptr; $t; $t; *)
If ($Lon_type=Path project method:K72:1)
- METHOD GET COMMENTS:C1189($t_name;$tComments;*)
+ METHOD GET COMMENTS:C1189($name; $comments; *)
- $Win_hdl:=Open form window:C675("COMMENTS";Movable form dialog box:K39:8)
- SET WINDOW TITLE:C213($t_name+" - "+Get localized string:C991("comments");$Win_hdl)
+ $Win_hdl:=Open form window:C675("COMMENTS"; Movable form dialog box:K39:8)
+ SET WINDOW TITLE:C213($name+" - "+Get localized string:C991("comments"); $Win_hdl)
$o:=New object:C1471(\
- "text";$tComments)
- DIALOG:C40("COMMENTS";$o)
+ "text"; $comments)
+ DIALOG:C40("COMMENTS"; $o)
CLOSE WINDOW:C154
If (OK=1)
- $tComments:=$o.text
- $tComments:=Replace string:C233($tComments;"<date/>";String:C10(Current date:C33))
- $tComments:=Replace string:C233($tComments;"<time/>";String:C10(Current time:C178))
- $tComments:=Replace string:C233($tComments;"<user_4D/>";Current user:C182)
- $tComments:=Replace string:C233($tComments;"<user_os/>";Current machine:C483)
- $tComments:=Replace string:C233($tComments;"<version_4D/>";Application version:C493(*))
- $tComments:=Replace string:C233($tComments;"<database_name/>";Structure file:C489)
+ $comments:=$o.text
+ $comments:=Replace string:C233($comments; "<date/>"; String:C10(Current date:C33))
+ $comments:=Replace string:C233($comments; "<time/>"; String:C10(Current time:C178))
+ $comments:=Replace string:C233($comments; "<user_4D/>"; Current user:C182)
+ $comments:=Replace string:C233($comments; "<user_os/>"; Current machine:C483)
+ $comments:=Replace string:C233($comments; "<version_4D/>"; Application version:C493(*))
+ $comments:=Replace string:C233($comments; "<database_name/>"; Structure file:C489)
- METHOD SET COMMENTS:C1193($t_name;$tComments;*)
+ METHOD SET COMMENTS:C1193($name; $comments; *)
End if
End if
- //______________________________________________________
- : ($t_selector="edit")
+ //______________________________________________________
+ : ($selector="edit")
- GET MACRO PARAMETER:C997(Highlighted method text:K5:18;$tComments)
+ GET MACRO PARAMETER:C997(Highlighted method text:K5:18; $comments)
- $bReplace:=Length:C16($tComments)>0
+ $bReplace:=Length:C16($comments)>0
- $c:=Split string:C1554($tComments;"\r")
+ $c:=Split string:C1554($comments; "\r")
- For each ($t;$c)
+ For each ($t; $c)
- $indx:=Position:C15(kCommentMark;$t)
+ $indx:=Position:C15(kCommentMark; $t)
If ($indx>0)
- $c[$i]:=Substring:C12($t;$indx+Length:C16(kCommentMark))
+ $c[$i]:=Substring:C12($t; $indx+Length:C16(kCommentMark))
End if
@@ -248,31 +265,31 @@ Case of
End for each
- $tComments:=$c.join("\r")
+ $comments:=$c.join("\r")
- $l:=Open form window:C675("COMMENTS";Movable dialog box:K34:7;Horizontally centered:K39:1;Vertically centered:K39:4;*)
+ $l:=Open form window:C675("COMMENTS"; Movable dialog box:K34:7; Horizontally centered:K39:1; Vertically centered:K39:4; *)
SET MENU BAR:C67(1)
$o:=New object:C1471(\
- "text";$tComments)
- DIALOG:C40("COMMENTS";$o)
+ "text"; $comments)
+ DIALOG:C40("COMMENTS"; $o)
CLOSE WINDOW:C154
If (Bool:C1537(OK))
- $tComments:=$o.text
+ $comments:=$o.text
- If (Length:C16($tComments)>0)
+ If (Length:C16($comments)>0)
- If (Position:C15("0)
+ If (Position:C15("0)
- $tComments:=ST Get plain text:C1092($tComments)
+ $comments:=ST Get plain text:C1092($comments)
End if
- $c:=Split string:C1554($tComments;"\r")
+ $c:=Split string:C1554($comments; "\r")
$i:=0
- For each ($t;$c)
+ For each ($t; $c)
If (Length:C16($t)>0)
@@ -284,187 +301,187 @@ Case of
End for each
- $tReplacement:=$c.join("\r")
+ $comments:=$c.join("\r")
- $tReplacement:=Replace string:C233($tReplacement;"";String:C10(Current date:C33))
- $tReplacement:=Replace string:C233($tReplacement;"";String:C10(Current time:C178))
- $tReplacement:=Replace string:C233($tReplacement;"";Current user:C182)
- $tReplacement:=Replace string:C233($tReplacement;"";Current machine:C483)
- $tReplacement:=Replace string:C233($tReplacement;"";Application version:C493(*))
- $tReplacement:=Replace string:C233($tReplacement;"";Structure file:C489)
+ $comments:=Replace string:C233($comments; ""; String:C10(Current date:C33))
+ $comments:=Replace string:C233($comments; ""; String:C10(Current time:C178))
+ $comments:=Replace string:C233($comments; ""; Current user:C182)
+ $comments:=Replace string:C233($comments; ""; Current machine:C483)
+ $comments:=Replace string:C233($comments; ""; Application version:C493(*))
+ $comments:=Replace string:C233($comments; ""; Structure file:C489)
- $tTitle:=win_title (Frontmost window:C447)
+ $title:=win_title(Frontmost window:C447)
- $tReplacement:=Replace string:C233($tReplacement;"";$tTitle)
- $tTitle:=Get window title:C450(Next window:C448(Frontmost window:C447))
+ $comments:=Replace string:C233($comments; ""; $title)
+ $title:=Get window title:C450(Next window:C448(Frontmost window:C447))
- $indx:=Position:C15(" - ";$tTitle)
+ $indx:=Position:C15(" - "; $title)
If ($indx>0)
- $tTitle:=Delete string:C232($tTitle;1;$indx+2)
+ $title:=Delete string:C232($title; 1; $indx+2)
End if
- $tTitle:=Replace string:C233($tTitle;" *";"")
+ $title:=Replace string:C233($title; " *"; "")
- If (Position:C15(Get localized string:C991("Form: ");$tTitle)>0)
+ If (Position:C15(Get localized string:C991("Form: "); $title)>0)
- $tReplacement:=Replace string:C233($tReplacement;"";$tTitle)
+ $comments:=Replace string:C233($comments; ""; $title)
End if
- $tReplacement:=$tReplacement+kCaret
- SET MACRO PARAMETER:C998(Highlighted method text:K5:18;$tReplacement)
+ $comments:=$comments+kCaret
+ SET MACRO PARAMETER:C998(Highlighted method text:K5:18; $comments)
End if
End if
- //______________________________________________________
- : ($t_selector="bloc")
+ //______________________________________________________
+ : ($selector="bloc")
- GET MACRO PARAMETER:C997(Highlighted method text:K5:18;$tComments)
+ GET MACRO PARAMETER:C997(Highlighted method text:K5:18; $comments)
$bReplace:=False:C215
$success:=True:C214
- $c:=Split string:C1554($tComments;"\r")
+ $c:=Split string:C1554($comments; "\r")
- For each ($t;$c) While ($i=20)
If ($indx=($start*10))\
- & ($tLon_refCount{$indx/10}=1) //Else
+ & ($_refCount{$indx/10}=1) //Else
$c[$i]:=kCommentMark+$t
End if
- //……………………………………………………………
+ //……………………………………………………………
: ($indx>0)
- $tLon_refCount{$indx}:=$tLon_refCount{$indx}+1
- APPEND TO ARRAY:C911($tLon_indent;$indx)
+ $_refCount{$indx}:=$_refCount{$indx}+1
+ APPEND TO ARRAY:C911($_indent; $indx)
If ($start=0)
@@ -473,23 +490,23 @@ Case of
End if
If ($indx=$start)\
- & ($tLon_refCount{$indx}=1) // First
+ & ($_refCount{$indx}=1) // First
$c[$i]:=kCommentMark+$t
$bReplace:=True:C214
End if
- //……………………………………………………………
+ //……………………………………………………………
: ($indx<0)
- If ($tLon_indent{Size of array:C274($tLon_indent)}=Abs:C99($indx))
+ If ($_indent{Size of array:C274($_indent)}=Abs:C99($indx))
- $tLon_refCount{Abs:C99($indx)}:=$tLon_refCount{Abs:C99($indx)}-1
- CLEAR VARIABLE:C89($tLon_indent)
+ $_refCount{Abs:C99($indx)}:=$_refCount{Abs:C99($indx)}-1
+ CLEAR VARIABLE:C89($_indent)
If ($indx=-$start)\
- & ($tLon_refCount{Abs:C99($indx)}=0) // End
+ & ($_refCount{Abs:C99($indx)}=0) // End
$c[$i]:=kCommentMark+$t
@@ -501,19 +518,19 @@ Case of
End if
- //……………………………………………………………
+ //……………………………………………………………
End case
- $i:=Choose:C955($success;$i+1;MAXLONG:K35:2) // Stop
+ $i:=Choose:C955($success; $i+1; MAXLONG:K35:2) // Stop
End for each
If ($success & $bReplace)
- $tComments:=$c.join("\r")
- SET MACRO PARAMETER:C998(Highlighted method text:K5:18;$tComments)
+ $comments:=$c.join("\r")
+ SET MACRO PARAMETER:C998(Highlighted method text:K5:18; $comments)
End if
- //______________________________________________________
+ //______________________________________________________
End case
\ No newline at end of file
diff --git a/Project/Sources/Methods/COMPILER_4DPop.4dm b/Project/Sources/Methods/COMPILER_4DPop.4dm
index c3d5171..2cf6575 100644
--- a/Project/Sources/Methods/COMPILER_4DPop.4dm
+++ b/Project/Sources/Methods/COMPILER_4DPop.4dm
@@ -1,3 +1,3 @@
-//%attributes = {"invisible":true,"preemptive":"capable"}
+//%attributes = {"invisible":true,"preemptive":"incapable"}
C_OBJECT:C1216(_4DPopMacros; $0)
C_OBJECT:C1216(options; $1)
\ No newline at end of file
diff --git a/Project/Sources/Methods/COMPILER_component.4dm b/Project/Sources/Methods/COMPILER_component.4dm
index 705bd59..2b98d26 100755
--- a/Project/Sources/Methods/COMPILER_component.4dm
+++ b/Project/Sources/Methods/COMPILER_component.4dm
@@ -12,7 +12,6 @@ C_TEXT:C284(<>Txt_buffer; <>Txt_method)
C_TEXT:C284(<>Txt_Title)
-C_BOOLEAN:C305(<>Private_inited)
C_TEXT:C284(<>regexFilePath)
@@ -40,6 +39,8 @@ ARRAY TEXT:C222(<>tTxt_Labels; 0)
ARRAY TEXT:C222(M_4DPop_tTxt_Buffer; 0)
+var v1; v2; v3; v4 : Variant
+
If (False:C215)
@@ -154,8 +155,7 @@ If (False:C215)
C_TEXT:C284(4DPop_MACROS; $3)
// M_4DPOP_OBOO_INIT
- C_BOOLEAN:C305(Init; $0)
- C_TEXT:C284(Init; $1)
+ C_BOOLEAN:C305(4DPopMacrosINIT; $0)
// COMMENTS
diff --git a/Project/Sources/Methods/INSTALL_LOCALIZED_MACROS.4dm b/Project/Sources/Methods/INSTALL_LOCALIZED_MACROS.4dm
index 1ac4dab..196f384 100755
--- a/Project/Sources/Methods/INSTALL_LOCALIZED_MACROS.4dm
+++ b/Project/Sources/Methods/INSTALL_LOCALIZED_MACROS.4dm
@@ -8,15 +8,14 @@
// If not, installs a localized file if any
// ----------------------------------------------------
// Declarations
-var $document; $macrosLanguage; $root; $t : Text
+var $content; $language; $root : Text
var $i : Integer
-var $file; $o : Object
+var $file; $src : 4D:C1709.File
ARRAY TEXT:C222($nodes; 0)
ARRAY TEXT:C222($results; 0)
ARRAY LONGINT:C221($childTypes; 0)
-// ----------------------------------------------------
$file:=File:C1566("/PACKAGE/Macros v2/4DPop_Macros.xml")
If ($file.original#Null:C1517)
@@ -27,14 +26,12 @@ End if
If ($file.exists)
- $t:=$file.getText()
- $root:=DOM Parse XML variable:C720($t)
+ $content:=$file.getText()
+ $root:=DOM Parse XML variable:C720($content)
If (OK=1)
- $document:=DOM Get XML document ref:C1088($root)
-
- DOM GET XML CHILD NODES:C1081($document; $childTypes; $nodes)
+ DOM GET XML CHILD NODES:C1081(DOM Get XML document ref:C1088($root); $childTypes; $nodes)
Repeat
@@ -44,8 +41,8 @@ If ($file.exists)
If (Rgx_ExtractText("\\[([^\\]]*)\\]"; $nodes{$i}; "1"; ->$results)=0)
- $macrosLanguage:=$results{1}
- $i:=-1
+ $language:=$results{1}
+ break
End if
End if
@@ -56,13 +53,14 @@ If ($file.exists)
End if
End if
-If ($macrosLanguage#Get database localization:C1009(User system localization:K5:23))
+If ($language#Get database localization:C1009(User system localization:K5:23))
- $o:=File:C1566(Get localized document path:C1105("4DPop_Macros.xml"); fk platform path:K87:2)
+ $src:=File:C1566(Get localized document path:C1105("4DPop_Macros.xml"); fk platform path:K87:2)
- If (Bool:C1537($o.exists))
+ If (Bool:C1537($src.exists))
- $o.copyTo($file.parent; fk overwrite:K87:5)
+ $src.copyTo($file.parent; fk overwrite:K87:5)
+ RELOAD PROJECT:C1739
End if
End if
\ No newline at end of file
diff --git a/Project/Sources/Methods/Init.4dm b/Project/Sources/Methods/Init.4dm
deleted file mode 100755
index c6b573b..0000000
--- a/Project/Sources/Methods/Init.4dm
+++ /dev/null
@@ -1,73 +0,0 @@
-//%attributes = {"invisible":true,"preemptive":"incapable"}
-// ----------------------------------------------------
-// Nom utilisateur (OS) : Vincent de Lachaux
-// Date et heure : 02/02/06, 10:11:40
-// ----------------------------------------------------
-// Méthode : M_4DPop_oBoo_INIT
-// ----------------------------------------------------
-// Modified by vdl (01/07/07)
-// v11 compatibility
-// ----------------------------------------------------
-// Modified by Vincent de Lachaux (12/05/10)
-// v12
-// ----------------------------------------------------
-C_BOOLEAN:C305($0)
-C_TEXT:C284($1)
-
-C_BOOLEAN:C305($Boo_OK)
-C_LONGINT:C283($Lon_parameters)
-C_TEXT:C284($Txt_alert; $Txt_entryPoint)
-
-If (False:C215)
- C_BOOLEAN:C305(Init; $0)
- C_TEXT:C284(Init; $1)
-End if
-
-$Lon_parameters:=Count parameters:C259
-
-If ($Lon_parameters>=1)
-
- $Txt_entryPoint:=$1
-
-End if
-
-C_BOOLEAN:C305(<>Private_inited)
-
-Case of
-
- // -----------------------------------------------------
- : (<>Private_inited)\
- & (Not:C34(Shift down:C543))
-
- $Boo_OK:=True:C214
-
- // -----------------------------------------------------
- : ($Lon_parameters=0)\
- & (Not:C34(<>Private_inited))
-
- COMPILER_component
-
- <>Private_inited:=True:C214
-
- INSTALL_LOCALIZED_MACROS
-
- If (_o_Preferences)
-
- If (Install_regex)
-
- $Boo_OK:=Install_resources
-
- End if
- End if
-
- // -----------------------------------------------------
-End case
-
-If (Not:C34($Boo_OK))\
- & (Length:C16($Txt_alert)>0)
-
- ALERT:C41($Txt_alert)
-
-End if
-
-$0:=$Boo_OK
\ No newline at end of file
diff --git a/Project/Sources/Methods/createSymbolicLink.4dm b/Project/Sources/Methods/createSymbolicLink.4dm
index df4037a..fb7b95f 100755
--- a/Project/Sources/Methods/createSymbolicLink.4dm
+++ b/Project/Sources/Methods/createSymbolicLink.4dm
@@ -1,34 +1,28 @@
//%attributes = {"invisible":true,"preemptive":"capable"}
-C_TEXT:C284($t)
-C_OBJECT:C1216($o)
+C_TEXT:C284($pathname)
+C_OBJECT:C1216($src)
If (Shift down:C543)
- DOCUMENT:=Select folder:C670("Select the target folder:";8858;Package open:K24:8+Use sheet window:K24:11)
+ DOCUMENT:=Select folder:C670("Select the target folder:"; 8858; Package open:K24:8+Use sheet window:K24:11)
Else
- $t:=Select document:C905(8858;"";"Select the target file:";Use sheet window:K24:11)
+ $pathname:=Select document:C905(8858; ""; "Select the target file:"; Use sheet window:K24:11)
End if
If (Bool:C1537(OK))
- If (Test path name:C476(DOCUMENT)=Is a document:K24:1)
-
- $o:=File:C1566(DOCUMENT;fk platform path:K87:2)
-
- Else
-
- $o:=Folder:C1567(DOCUMENT;fk platform path:K87:2)
-
- End if
+ $src:=Test path name:C476(DOCUMENT)=Is a document:K24:1\
+ ? File:C1566(DOCUMENT; fk platform path:K87:2)\
+ : Folder:C1567(DOCUMENT; fk platform path:K87:2)
- $t:=Select folder:C670("Select the destination folder:";8859;Package open:K24:8+Use sheet window:K24:11)
+ $pathname:=Select folder:C670("Select the destination folder:"; 8859; Package open:K24:8+Use sheet window:K24:11)
If (Bool:C1537(OK))
- $o.createAlias(Folder:C1567($t;fk platform path:K87:2);$o.fullName;fk symbolic link:K87:4)
+ $src.createAlias(Folder:C1567($pathname; fk platform path:K87:2); $src.fullName; fk symbolic link:K87:4)
End if
End if
diff --git a/Project/Sources/Methods/options.4dm b/Project/Sources/Methods/options.4dm
index a5efa1d..93ea89b 100644
--- a/Project/Sources/Methods/options.4dm
+++ b/Project/Sources/Methods/options.4dm
@@ -1,3 +1,37 @@
//%attributes = {"invisible":true}
#DECLARE($data : Object)
-CALL WORKER:C1389(1; "SETTINGS")
\ No newline at end of file
+
+If (False:C215)
+ C_OBJECT:C1216(options; $1)
+End if
+
+var $title : Text
+var $run : Boolean
+var $bottom; $i; $left; $right; $top : Integer
+
+ARRAY LONGINT:C221($windows; 0)
+
+$title:=Get localized string:C991("preferences")
+
+WINDOW LIST:C442($windows)
+
+For ($i; 1; Size of array:C274($windows); 1)
+
+ If (Get window title:C450($windows{$i})=$title)
+
+ $run:=True:C214
+ break
+
+ End if
+End for
+
+If (Not:C34($run))
+
+ CALL WORKER:C1389(1; "SETTINGS")
+
+Else
+
+ GET WINDOW RECT:C443($left; $top; $right; $bottom; $windows{$i})
+ SET WINDOW RECT:C444($left; $top; $right; $bottom; $windows{$i})
+
+End if
\ No newline at end of file
diff --git a/Project/Sources/folders.json b/Project/Sources/folders.json
index 42a7945..8f691fd 100755
--- a/Project/Sources/folders.json
+++ b/Project/Sources/folders.json
@@ -147,7 +147,6 @@
"DOT_NOTATION",
"Get_resource",
"Get_Version",
- "Init",
"INSTALL_LOCALIZED_MACROS",
"Install_regex",
"Install_resources",
diff --git a/Resources/4DPop_Macros.xml b/Resources/4DPop_Macros.xml
index f57a963..337f427 100755
--- a/Resources/4DPop_Macros.xml
+++ b/Resources/4DPop_Macros.xml
@@ -2,7 +2,7 @@
@@ -118,18 +118,18 @@
Maquereau 4D :
-
- 4DPop_MACROS("duplicateAndComment")
+ 4DPop_MACROS("comment")
-
- 4DPop_MACROS("commentBlock")
+ 4DPop_MACROS("duplicateAndComment")
diff --git a/Resources/InfoPlist.strings b/Resources/InfoPlist.strings
index bb7597e..c092aa3 100755
Binary files a/Resources/InfoPlist.strings and b/Resources/InfoPlist.strings differ
diff --git a/Resources/_ja.lproj/4DPop Macros.xlf b/Resources/_ja.lproj/4DPop Macros.xlf
deleted file mode 100644
index 4ebe5b7..0000000
--- a/Resources/_ja.lproj/4DPop Macros.xlf
+++ /dev/null
@@ -1 +0,0 @@
-
文字列
テキスト
実数
整数
倍長整数
日付
時間
ブール
ピクチャー
グラフ
BLOB
フロート
ポインター
変数
配列
メソッドシンタックス
各変数につき1行
オブション
戻る
このオプションがチェックされている場合、それぞれの変数に対して宣言行が1行作成されます。
このオプションを使用すると、一つ以上の引数を受け取る、あるいは値を返すプロジェクトメソッドに対して、宣言行の後にコンパイルの指示子を挿入することができます。
型
パターン
シンタックスルール
変数リスト
宣言行あたりの変数の数 :
コンパイラ指示子を無視する
宣言されたものの使用されていない変数は削除されます。
ローカル変数の名前は必ず先頭がドル記号($)で、そのあと最大で31文字の文字や数字を使用することができます。
この変数は既にこのメソッド内で使用されています。
続けますか?
不要な空白行を削除する
複数の空白行は単一の空白行に置き換えられます。メソッドの終わりにある空白行は無視されます。
廃止予定の型を置き換える
C_ALPHAの代わりにC_TEXT および TEXT ARRAYを、C_INTEGERの代わりにC_LONGINTを使用します。
オブジェクト
メソッドのコメント更新
シンタックスの詳細がコメントの最初に追加され、コードエディターないでツールTipとして4Dによって使用されます。
コレクション
バリアント
エスケープ
OK
ペースト
If
Else
End if
Case of
End case
While
End while
For
End for
Repeat
Until
フォームメソッド:
トリガ:
フォーム:
メソッド:
オブジェクトメソッド:
挿入
コメント
インデントを削除
空白行を無視
POSIX
相対的
特殊貼り付け
文字列
HTMLコード
パス名
テキストに挿入
JSON コード
トークン化
パス名
HTML表現
UTF-8へ
UTF8のテキスト
翻訳されたバージョンのマクロファイル"4DPop"が正常にインストールされました。
次回アプリケーション起動後、翻訳されたマクロが使用可能になります。
新しいマクロを試すには: "4DPop_TEST_Macros" という名前のメソッドを作成します。必ず共有するようにしてください。
このアラートの代わりに、書いたコードが実行されます。
XML エディターを開くことなくマクロを始めるための最適な方法と言えるでしょう。
//マクロのテストメソッド
//このメソッドは"Macro test" マクロを選択した際に呼び出されます。
このメソッドを今作成しますか?
//$Txt_method内にはメソッドの完全なコンテンツ
//$Txt_highlightedにはメソッドでハイライトされた行があればそれが入ります。
WSDLで公開済み
4D タグとURL経由で利用可能
コンポーネントとホストデータベース間で共有
非表示
SQL経由で利用可能
サーバー上で実行
Webサービスとして提供
メソッド名:
メソッド {count}
すにこの名前のメソッドがあります。
メソッドの最初の空白行を削除する
メソッドの最後の空白行を削除する
構造のブランチの前に改行する
シーケンシャルな構造が含まれる前後に改行する
Case of の行の分離
ループ構造の前に改行する
キー/ペア値を使用するコマンドに対してキー/ペア値を各行に置く
ループにインクリメントを追加
グルーピングを閉じる指示
連続した空白行を削除
コメントの前に改行を必ず入れる
"&" と "|"でテスト行を分割
空の文字列への比較を、長さのテストで置き換える
"If(test) var:=x Else var:=y End if" を "var:=Choose(test;x;y)"に置き換える
廃止予定のコマンドを置き換える
4DPop Macros 設定
\ No newline at end of file
diff --git a/Resources/_ja.lproj/Common.xlf b/Resources/_ja.lproj/Common.xlf
deleted file mode 100644
index f4c1542..0000000
--- a/Resources/_ja.lproj/Common.xlf
+++ /dev/null
@@ -1,1109 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- ファイル
-
-
-
- 編集
-
-
-
- モード
-
-
-
-
-
- サイズ
-
-
-
- スタイル
-
-
-
- 下線
-
-
-
- イタリック
-
-
-
- 太字
-
-
-
-
-
- 取り消し
-
-
-
- カット
-
-
-
- コピー
-
-
-
- ペースト
-
-
-
- クリア
-
-
-
- すべてを選択
-
-
-
- クリップボード表示
-
-
-
- デザイン
-
-
-
- 終了
-
-
-
-
-
- OK
-
-
-
- キャンセル
-
-
-
- 再試行
-
-
-
- 終了
-
-
-
- 追加
-
-
-
- 削除
-
-
-
- 編集
-
-
-
- 終了
-
-
-
- 適用
-
-
-
- 読み込み...
-
-
-
- 保存...
-
-
-
- 並び替え
-
-
-
- 使用
-
-
-
- < 戻る
-
-
-
- 次へ >
-
-
-
- 作成
-
-
-
- 書き出し...
-
-
-
- プレビュー
-
-
-
- 削除
-
-
-
- 開く
-
-
-
- 閉じる
-
-
-
- すべてを拡げる
-
-
-
- すべて折りたたむ
-
-
-
- 複製
-
-
-
- 名前を変更
-
-
-
- 再読み込み
-
-
-
-
-
- ボリューム "{volume}" の中の "{file}"
-
-
-
- ディスク上に表示
-
-
-
- グループ
-
-
-
- ユーザー
-
-
-
- ローカル変数
-
-
-
-
-
- フォームメソッド:
-
-
-
- トリガ:
-
-
-
- フォーム:
-
-
-
- サブテーブル:
-
-
-
- メソッド:
-
-
-
- オブジェクトメソッド:
-
-
-
-
-
- その値は許可されていません。
-
-
-
- 数値は ^ を超えてはいけません。
-
-
-
- 数値は ^ を下回ってはいけません。
-
-
-
-
-
- エラー #
-
-
-
- ディスク ファイル ディレクトリに空きがありません。
-
-
-
- このボリュームには書き込めません。
-ディスクに空きがあるか、書き込み禁止になっていないか、アクセス権があるかどうか確認してください。
-
-
-
- 入出力エラー。
-
-
-
- ファイル名が不適切です。
-
-
-
- ファイルの終端を超えて読み出しまたは書き込みが行われようとしました。
-
-
-
- ファイルの最初より手前で読み出しまたは書き込みが行われようとしました。
-
-
-
- ファイルの開き過ぎです。
-
-
-
- ファイルが見つかりません。
-
-
-
- ディスクがロックされています。
-
-
-
- ファイルがロックされているか、パス名が正しくありません。
-
-
-
- ファイルはすでに開かれているかフォルダーが一杯です。
-
-
-
- そのファイルはすでに存在しています。
-
-
-
- 重複不可属性のフィールドがあるテーブルに重複したデータを保存しようとしました。
-
-
-
- レコードを保存する容量がありません。
-
-
-
- レコードの最大数に達しました。
-
-
-
- メソッドスタックに空きがありません。
-
-
-
- デモ版の制限事項に達しました。
-
-
-
- ユーザーによる割り込み。
-
-
-
- 印刷ファイル保存中に障害が起きました。
-
-
-
- 実装されていない制御命令です。
-
-
-
- 入出力エラーが生じました。
-
-
-
- メモリに十分な空きがありません。
-
-
-
- ユーザーにより印刷処理が中断されました。
-
-
-
- 接続が閉じられました。
-
-
-
- プリンターが閉じられているか、または見つかりません。
-
-
-
- LaserWriter が選択されていません。
-
-
-
- プリンターが異なるドライバーで初期化されています。
-
-
-
- メニューバーが存在している、もしくはファイルが1つ以上あります。
-
-
-
- パスワードが存在しています。
-
-
-
- アクセス権エラー。
-
-
-
- タイムアウトエラー。
-
-
-
- 不適切なストラクチャーです。
-
-
-
- 不適切なデータアドレスです。
-
-
-
- 不適切なインデックス構造です。
-
-
-
- 不適切なレコード構造です。
-
-
-
- レコード番号が範囲外です
-
-
-
- インデックスブロック番号が範囲外です。
-
-
-
- 他のレコードをリレートしています。
-
-
-
- 参照関係がループしています。
-
-
-
- トランザクション中のキー重複です。
-
-
-
- 同じプラグインが2回インストールされました。
-
-
-
- この命名セレクションは存在しません。
-
-
-
- データベースのバックアップ中のため、このコマンドは実行されませんでした。
-
-
-
- プロセスを開始できませんでした。
-
-
-
- 4D Serverと4Dクライアントのバージョンが一致していません。
-
-
-
- 処理を行うのに必要なハードウェアがありません。
-
-
-
- 処理を行うのに適切なハードウェアではありません。
-
-
-
- そのようなボリュームはありません。
-
-
-
- ファイルが開いていません。
-
-
-
- ファイルはもう開いていません。
-
-
-
- アクセス権エラー。ロックされたファイルを開こうとしました。
-
-
-
- フォルダーが見つかりません。
-
-
-
- ファイルサーバーとつながっていません。
-
-
-
- QuickTime(tm) がインストールされていません。
-
-
-
- データセグメント番号が不適切です。
-
-
-
- ライセンスまたはアクセス権エラー。
-
-
-
- モーダルウィンドウがアクティブです。
-
-
-
- カレントレコードがトリガーによって変更されました。
-
-
-
- プラグインの利用には、シリアル番号が必要です。
-
-
-
- プラグインの利用には、エクスパンション番号が必要です。
-
-
-
- このシリアル番号は既に入力されています。新しい番号を入力してください。
-
-
-
- 4Dのデモ版を起動しました。
-
-
-
- このプラグインのバージョンが古すぎます。バージョン6.7かそれ以降をお使いください。
-
-
-
- 4DはCarbonLib 1.4以上を必要とします。
-
-
-
- この機能拡張をインストールまたは有効にして、マシンを再起動してください。
-
-
-
- データベースを公開することができません。
-
-
-
- Webサーバを開始するためにこのポート番号を使用するには、"root"アクセス権限が必要です。
-
-
-
- データベースを保護モードで公開することができません。
-
-
-
- 保護モードでWebサーバーを開始するためにこのポート番号を使用するには、"root"アクセス権限が必要です。
-
-
-
- このSerial番号は既に他のコンピューターで使われており、使用可能なライセンスの最大数に達しています。この製品はデモモードで実行されます。
-
-
-
- ポート#を使用してWebサーバーを開始するために必要な権限がありません。
-権限を取得するには、このマシンの管理者としてログインし直してアプリケーションを再起動する必要があります。
-今権限を変更しますか?
-
-
-
- 認証に成功しました。変更を有効にするためにアプリケーションを再起動してください。
-
-
-
- エラー:
-権限が変更されていません。原因を調べるにはドキュメントを参照してください。
-
-
-
- エラー:
-Webサーバーを開始するために必要な権限がありません。
-アプリケーションの環境設定で、起動時にWebサーバーを公開する設定にしてください。
-詳細はドキュメントを参照してください。
-Webサーバーは開始されていません。
-
-
-
- このメソッドを読み込むことができません。
-
-
-
- このシリアル番号を使用しているコンピューター名:
-
-
-
- 使用されているシリアル番号:
-
-
-
- 4D Extensions フォルダーが完全でないか、存在しません。
-
-
-
- このアプリケーションはMac OS 9.2が必要です。
-
-
-
- このアプリケーションはMac OS 10.4.5以上が必要です。
-
-
-
- 警告:このメソッドをWebサービスとして書き出すことができません。メソッド名にXMLで使用される特別な文字が含まれています。
-
-
-
- 参照される要素が空です。
-
-
-
- 参照される要素が無効です。
-
-
-
- 参照される要素が "root" ではありません。
-
-
-
- 要素の名前が不明です。
-
-
-
- この要素のインデックスが無効です。
-
-
-
- この要素には指定された名前を持つ属性がありません。
-
-
-
- この属性のインデックスが無効です。
-
-
-
- XML DLLがロードされていません。
-
-
-
- 不適切なXMLファイルです。
-
-
-
- 整形式のXMLファイルではありません。
-
-
-
- このXMLファイルは有効でも整形式でもありません。
-
-
-
- SOAP fault
-
-
-
- XML 解析エラー
-
-
-
- HTTP エラー
-
-
-
- Network エラー
-
-
-
- Internal fault
-
-
-
- 指定されたパスが無効です。
-
-
-
- WSDL は移動しました:
-
-
-
- ドキュメントへの参照が無効です。
-
-
-
- 要素が開かれていません。
-
-
-
- 引数に渡された配列のタイプが無効です。
-
-
-
- 要素の名前が無効です。
-
-
-
- このエンコードはサポートされていません。
-
-
-
- このノードタイプは無効です。
-
-
-
- XMLデータを追加することができません(ファイルが空ではありません)
-
-
-
- このコマンドを実行するには管理者権限がなければなりません。
-
-
-
- 引数が必要です。
-
-
-
- 無効な属性名です。
-
-
-
- カスタマイズされたサーバーアプリケーションに4Dクライアントを接続することはできません。
-
-
-
- "4D Standard Edition" パッケージバージョンの制限に達しました。
-
-
-
- お持ちのライセンスでは、コンパイルモードでデータベースを開くことができません。
-
-
-
- XMLをSAXで解析するためには、ファイルを読み込みのみで開かなければなりません。
-
-
-
- 適切なODBCドライバーマネージャーがインストールされていません。
-
-
-
- データベース {database_name} を開けません。Maintenance & Security Centerを使用してデータベースを検証してください。
-
-
-
- コンポーネント {component_name} をロードできません。
-
-
-
- コマンド {command_name} をコンポーネントから呼び出すことはできません。
-
-
-
- リモートの4Dから {command_name} コマンドを呼び出すことはできません。
-
-
-
-
-
- フォームメソッド:
-
-
-
- トリガ:
-
-
-
- フォーム:
-
-
-
- サブテーブル:
-
-
-
- メソッド:
-
-
-
-
-
-
-
- 値
-
-
-
- このフィールドはクエリには使えません。
-
-
-
- オブジェクトメソッド:
-
-
-
-
-
- “ ( ”が必要です。
-
-
-
- フィールド名が必要です。
-
-
-
- このコマンドはサブテーブルのフィールドに対してのみ使用できます。
-
-
-
- リスト内のパラメーターはすべて同じタイプでなければなりません。
-
-
-
- このコマンドの対象となるテーブルがありません。
-
-
-
- このコマンドはサブテーブルタイプのフィールドに対してのみ使用できます。
-
-
-
- 数値型の引数が必要です。
-
-
-
- 文字列型の引数が必要です。
-
-
-
- 条件判断の結果が必要です。
-
-
-
- このコマンドはこのタイプのフィールドには使用できません。
-
-
-
- このコマンドは2つの条件判断間には適用できません。
-
-
-
- このコマンドは2つの数値型引数間には適用できません。
-
-
-
- このコマンドは2つの文字列型引数間には適用できません。
-
-
-
- このコマンドは2つの日付型引数には適用できません。
-
-
-
- この操作は2つの引数に対して一致していません。
-
-
-
- このフィールドにはリレーションが設定されていません。
-
-
-
- テーブル名が必要です。
-
-
-
- フィールドタイプが一致していません。
-
-
-
- このフィールドにはインデックスが付いていません。
-
-
-
- “ = ”が必要です。
-
-
-
- メソッドが存在しません。
-
-
-
- 並び替え/チャートに用いるフィールドは同一のテーブル/サブテーブルに属していないとなりません。
-
-
-
- “ < ”か“ > ”が必要です。
-
-
-
- “ ; ”が必要です。
-
-
-
- 並び替えるフィールドが多すぎます。
-
-
-
- フィールドタイプにテキスト・ピクチャー・サブテーブルは使えません。
-
-
-
- フィールド名の前にテーブル名が必要です。
-
-
-
- フィールドタイプは数値型でなければなりません。
-
-
-
- 値は 1 か 0 でなければなりません。
-
-
-
- 変数が必要です。
-
-
-
- この番号のメニューバーがありません。
-
-
-
- 日付が必要です。
-
-
-
- 実装されていないコマンドまたは関数です。
-
-
-
- このセットは他のテーブルに属しています。
-
-
-
- 無効なテーブル名です。
-
-
-
- “ := ”が必要です。
-
-
-
- これは関数です、メソッドではありません。
-
-
-
- セットが存在しません。
-
-
-
- これはメソッドです、関数ではありません。
-
-
-
- サブテーブルに属する変数かフィールドが必要です。
-
-
-
- レコードをスタックにプッシュできません。
-
-
-
- 関数が見つかりません。
-
-
-
- メソッドが見つかりません。
-
-
-
- フィールドか変数が必要です。
-
-
-
- 数値型か文字列型の引数が必要です。
-
-
-
- フィールドタイプは文字型でなければなりません。
-
-
-
- シンタックスエラー
-
-
-
- この演算子はここでは使えません。
-
-
-
- この演算子は一緒に使うことはできません。
-
-
-
- プラグインが実装されていません。
-
-
-
- 配列変数が指定されていないか、配列の型が正しくありません。
-
-
-
- インデックス範囲を越えています。
-
-
-
- 引数のタイプが一致していません。
-
-
-
- ブール型の引数が必要です。
-
-
-
- フィールドか変数かテーブルが必要です。
-
-
-
- 演算子が必要です。
-
-
-
- “ ) ”が必要です。
-
-
-
- この種の引数はここでは必要ありません。
-
-
-
- コンパイルされたデータベースでは、パラメーターやローカル変数を EXECUTE 命令文で使用することはできません。
-
-
-
- コンパイルされたデータベースでは、配列のタイプを修正することはできません。
-
-
-
- このコマンドはサブテーブルに対しては使えません。
-
-
-
- このフィールドにはインデックスが付いていません。
-
-
-
- ピクチャータイプのフィールドか変数が必要です。
-
-
-
- このコマンドは4D Server 上では実行できません。
-
-
-
- リストが必要です。
-
-
-
- 外部ウィンドウ参照が必要です。
-
-
-
- 二つのピクチャーに対し、このコマンドを適用することはできません。
-
-
-
- SET PRINT MARKER コマンドは、印刷されるフォームのヘッダー内でのみコールすることができます。
-
-
-
- ポインター配列が必要です。
-
-
-
- 数値配列が必要です。
-
-
-
- 配列のサイズが一致しません。
-
-
-
- ローカル配列のポインターは使用できません。
-
-
-
- 配列のタイプが正しくありません。
-
-
-
- 変数名が正しくありません。
-
-
-
- 並び替えのパラメーターが無効です。
-
-
-
- リストを描画している間、このコマンドを実行することはできません。
-
-
-
- クエリの引数が多すぎます。
-
-
-
- フォームが見つかりません
-
-
-
-
-
-
diff --git a/Resources/fr.lproj/4DPop_Macros.xml b/Resources/fr.lproj/4DPop_Macros.xml
index f44b01d..58e9a49 100755
--- a/Resources/fr.lproj/4DPop_Macros.xml
+++ b/Resources/fr.lproj/4DPop_Macros.xml
@@ -118,6 +118,13 @@
Maquereau 4D :
+
+ 4DPop_MACROS("comment")
+
+
4DPop_MACROS("duplicateAndComment")
-
- 4DPop_MACROS("commentBlock")
-
-