Skip to content

Commit

Permalink
wiki; rename new API const
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Sep 2, 2022
1 parent 4c11457 commit 4b66077
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/cudatext.app/Contents/Resources/py/cudatext.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
PROP_NUMBERS_NEGATIVE = 154
PROP_COMMAND_LOG = 155
PROP_COMMAND_LOG_LIMIT = 156
PROP_TAB_FONT_COLOR = 157
PROP_TAB_COLOR_FONT = 157

SPLITTER_SIDE = 0
SPLITTER_BOTTOM = 1
Expand Down
4 changes: 2 additions & 2 deletions app/formmain_py_api.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3323,7 +3323,7 @@ begin
Result:= ReturnNone;
end;

PROP_TAB_FONT_COLOR:
PROP_TAB_COLOR_FONT:
begin
if Assigned(F) then
Result:= PyLong_FromLong(F.TabFontColor)
Expand Down Expand Up @@ -4064,7 +4064,7 @@ begin
F.TabColor:= ValueInt;
end;

PROP_TAB_FONT_COLOR:
PROP_TAB_COLOR_FONT:
begin
if Assigned(F) then
F.TabFontColor:= ValueInt;
Expand Down
2 changes: 1 addition & 1 deletion app/proc_py_const.pas
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ interface
PROP_NUMBERS_NEGATIVE = 154;
PROP_COMMAND_LOG = 155;
PROP_COMMAND_LOG_LIMIT = 156;
PROP_TAB_FONT_COLOR = 157;
PROP_TAB_COLOR_FONT = 157;

APP_PROC_SET_CLIP_ALT = -1;
APP_PROC_GET_CLIP = 0;
Expand Down
2 changes: 1 addition & 1 deletion app/py/cudatext.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
PROP_NUMBERS_NEGATIVE = 154
PROP_COMMAND_LOG = 155
PROP_COMMAND_LOG_LIMIT = 156
PROP_TAB_FONT_COLOR = 157
PROP_TAB_COLOR_FONT = 157

SPLITTER_SIDE = 0
SPLITTER_BOTTOM = 1
Expand Down
7 changes: 5 additions & 2 deletions app/readme/wiki/cudatext_api.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -2349,7 +2349,8 @@ Param "value" can be: str, number, bool (for bool it can be also "0"/"1"). Possi
* PROP_TAB_SIZE: int: size of tab-char.
* PROP_TAB_COLLECT_MARKERS: bool: tab-key collects (jumps to and deletes) markers (if markers placed).
* PROP_TAB_TITLE: str: title of tab, useful for untitled tabs, for tabs with picture files.
* PROP_TAB_COLOR: int: color of tab title, integer RGB value (e.g. 0x00FF00 is green); COLOR_NONE if not set.
* PROP_TAB_COLOR: int: color of tab title background, integer RGB value (e.g. 0x00FF00 is green); COLOR_NONE if not set.
* PROP_TAB_COLOR_FONT: int: color of tab title font, integer RGB value (e.g. 0x00FF00 is green); COLOR_NONE if not set.
* PROP_TAB_ICON: int: index of tab icon, ie index in imagelist, which handle you can get via app_proc(PROC_GET_TAB_IMAGELIST).
* PROP_TAB_PINNED: bool: tab is "pinned" (shows additional confirmation on closing).
* PROP_TAB_ID: int: unique tab's identifier (one number for main/secondary editors in tab), it is not changed when tab is moved.
Expand Down Expand Up @@ -2517,7 +2518,8 @@ Param "value" can be: str, number, bool (for bool it can be also "0"/"1"), tuple
* PROP_TAB_SPACES: bool: tab-key inserts spaces.
* PROP_TAB_SIZE: int: size of tab-char.
* PROP_TAB_COLLECT_MARKERS: bool: tab-key collects (jumps to and deletes) markers.
* PROP_TAB_COLOR: int: color of tab title, integer RGB value (e.g. 0x00FF00 is green); COLOR_NONE if not set.
* PROP_TAB_COLOR: int: color of tab title background, integer RGB value (e.g. 0x00FF00 is green); COLOR_NONE if not set.
* PROP_TAB_COLOR_FONT: int: color of tab title font, integer RGB value (e.g. 0x00FF00 is green); COLOR_NONE if not set.
* PROP_TAB_TITLE: str: title of tab, useful for untitled tabs.
* PROP_TAB_ICON: int: index of tab icon, ie index in imagelist, which handle you can get via app_proc(PROC_GET_TAB_IMAGELIST).
* PROP_TAB_PINNED: bool: tab is "pinned" (shows additional confirmation on closing).
Expand Down Expand Up @@ -4674,5 +4676,6 @@ It provides:
1.0.428 (app 1.169.5)
* add: event "on_caret_slow"
* add: app_proc: PROC_GET_AUTOCOMPLETION_INVOKE
* add: Editor.get_prop/set_prop: PROP_TAB_COLOR_FONT
[[Category:CudaText]]

0 comments on commit 4b66077

Please sign in to comment.