diff --git a/uppsrc/Core/src.tpp/Color$en-us.tpp b/uppsrc/Core/src.tpp/Color$en-us.tpp index 6a1e01ac5..9e7d05bf5 100644 --- a/uppsrc/Core/src.tpp/Color$en-us.tpp +++ b/uppsrc/Core/src.tpp/Color$en-us.tpp @@ -393,4 +393,4 @@ predefined color value.&] [s5;:LtCyan`(`):%- [_^Color^ Color]_[* LtCyan]()&] [s2; Light cyan.&] [s3;%- &] -[s0;%- ] \ No newline at end of file +[s0; ] \ No newline at end of file diff --git a/uppsrc/Core/src.tpp/all.i b/uppsrc/Core/src.tpp/all.i index 62b0e22c9..91b9648b0 100644 --- a/uppsrc/Core/src.tpp/all.i +++ b/uppsrc/Core/src.tpp/all.i @@ -1,7 +1,3 @@ -TOPIC("AIndex$en-us") -#include "AIndex$en-us.tppi" -END_TOPIC - TOPIC("algo$en-us") #include "algo$en-us.tppi" END_TOPIC @@ -10,50 +6,6 @@ TOPIC("AMap$en-us") #include "AMap$en-us.tppi" END_TOPIC -TOPIC("Any$en-us") -#include "Any$en-us.tppi" -END_TOPIC - -TOPIC("AppEnv$en-us") -#include "AppEnv$en-us.tppi" -END_TOPIC - -TOPIC("Array$en-us") -#include "Array$en-us.tppi" -END_TOPIC - -TOPIC("ArrayIndex$en-us") -#include "ArrayIndex$en-us.tppi" -END_TOPIC - -TOPIC("ArrayMap$en-us") -#include "ArrayMap$en-us.tppi" -END_TOPIC - -TOPIC("BiArray$en-us") -#include "BiArray$en-us.tppi" -END_TOPIC - -TOPIC("BiVector$en-us") -#include "BiVector$en-us.tppi" -END_TOPIC - -TOPIC("Color$en-us") -#include "Color$en-us.tppi" -END_TOPIC - -TOPIC("Convert$en-us") -#include "Convert$en-us.tppi" -END_TOPIC - -TOPIC("DateFmt$en-us") -#include "DateFmt$en-us.tppi" -END_TOPIC - -TOPIC("Exc$en-us") -#include "Exc$en-us.tppi" -END_TOPIC - TOPIC("Format$en-us") #include "Format$en-us.tppi" END_TOPIC @@ -62,71 +14,15 @@ TOPIC("FormatFn$en-us") #include "FormatFn$en-us.tppi" END_TOPIC -TOPIC("Indext$en-us") -#include "Indext$en-us.tppi" -END_TOPIC - TOPIC("MathUtil$en-us") #include "MathUtil$en-us.tppi" END_TOPIC -TOPIC("NetNode$en-us") -#include "NetNode$en-us.tppi" -END_TOPIC - -TOPIC("One$en-us") -#include "One$en-us.tppi" -END_TOPIC - -TOPIC("Point$en-us") -#include "Point$en-us.tppi" -END_TOPIC - -TOPIC("PtePtr$en-us") -#include "PtePtr$en-us.tppi" -END_TOPIC - -TOPIC("Rect$en-us") -#include "Rect$en-us.tppi" -END_TOPIC - -TOPIC("Segtor$en-us") -#include "Segtor$en-us.tppi" -END_TOPIC - TOPIC("Size$en-us") #include "Size$en-us.tppi" END_TOPIC -TOPIC("Stream$en-us") -#include "Stream$en-us.tppi" -END_TOPIC - -TOPIC("StreamFn$en-us") -#include "StreamFn$en-us.tppi" -END_TOPIC - -TOPIC("String$en-us") -#include "String$en-us.tppi" -END_TOPIC - TOPIC("String1$en-us") #include "String1$en-us.tppi" END_TOPIC -TOPIC("StringBuffer$en-us") -#include "StringBuffer$en-us.tppi" -END_TOPIC - -TOPIC("Thread$en-us") -#include "Thread$en-us.tppi" -END_TOPIC - -TOPIC("Vector$en-us") -#include "Vector$en-us.tppi" -END_TOPIC - -TOPIC("VectorMap$en-us") -#include "VectorMap$en-us.tppi" -END_TOPIC - diff --git a/uppsrc/CtrlLib/src.tpp/ButtonOption$en-us.tpp b/uppsrc/CtrlLib/src.tpp/ButtonOption$en-us.tpp index dff50e954..c0c83ca28 100644 --- a/uppsrc/CtrlLib/src.tpp/ButtonOption$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/ButtonOption$en-us.tpp @@ -1,9 +1,115 @@ -TITLE("ButtonOption") -COMPRESSED -120,156,213,86,251,83,19,87,20,254,87,238,248,154,64,33,236,222,221,205,46,201,116,134,169,58,157,142,51,181,163,211,254,146,9,102,129,69,118,12,73,186,187,161,237,116,234,4,20,121,137,60,131,130,81,113,8,180,40,15,19,197,42,229,81,228,81,30,181,181,66,81,6,124,128,17,121,8,56,49,8,162,149,222,37,36,38,224,115,58,237,76,243,195,238,236,221,123,190,115,190,239,156,239,110,180,16,108,218,132,69,96,27,177,183,252,212,219,184,68,214,98,144,116,90,158,36,25,13,11,41,205,190,29,59,163,53,225,49,10,21,25,38,163,224,8,133,160,113,130,161,8,156,132,42,116,193,9,28,82,144,32,113,6,70,147,12,65,48,152,58,222,192,138,162,78,107,128,12,163,145,131,32,10,130,52,5,113,154,100,72,6,39,104,6,162,88,136,97,16,163,33,133,147,4,3,41,117,2,39,198,235,180,44,67,104,194,119,169,80,16,33,103,66,224,24,174,130,36,77,66,140,192,32,137,82,225,12,67,226,52,197,16,209,42,149,58,158,53,75,188,201,184,154,139,199, -113,136,107,226,112,90,131,106,222,191,127,191,18,39,49,95,5,36,2,195,49,18,149,138,163,53,140,132,52,78,69,99,209,20,131,51,24,129,192,41,26,163,212,102,86,96,147,95,79,157,122,43,117,26,83,243,18,135,32,194,63,192,113,26,133,168,34,84,27,113,146,70,68,25,130,164,24,26,67,201,33,132,4,1,113,2,70,71,67,74,69,209,234,36,142,77,224,4,157,246,219,61,223,109,222,254,105,228,231,187,129,86,36,52,224,35,139,36,153,140,59,87,248,109,209,105,69,76,3,124,55,98,229,78,105,118,196,96,64,187,25,195,34,49,44,70,129,41,49,37,164,168,48,176,170,189,127,29,213,14,246,248,31,67,48,117,50,10,244,129,162,91,76,12,159,204,238,229,212,16,82,91,16,43,235,1,135,181,216,106,181,30,120,184,140,174,214,197,122,251,45,91,95,111,251,207,85,197,135,30,31,107,201,60,235,106,123,100,59,216,118,162,220,121,201,83,145,217,88,93,238,169,203,158,237,112,92,116,230,29,239,168,76,155,45,110,43,60,154,93,152,222,57,237,248,179, -220,118,122,226,248,237,26,219,194,112,246,208,192,169,35,249,71,218,199,93,206,202,179,55,50,78,141,58,236,203,45,19,151,51,60,215,39,158,15,95,157,191,214,220,232,173,121,214,229,158,94,188,219,94,235,118,151,23,61,173,189,153,153,158,118,108,234,120,239,19,111,94,235,143,13,11,25,213,231,31,44,122,239,186,27,31,142,55,21,213,31,45,169,233,72,43,59,83,215,221,120,97,46,199,54,54,57,179,48,59,191,220,157,155,90,224,105,109,30,47,93,234,171,173,202,61,81,90,105,239,255,163,104,124,118,113,233,254,137,161,9,251,64,246,116,83,106,241,208,204,144,215,222,94,215,91,99,237,169,110,42,176,86,228,220,59,125,123,224,119,247,179,150,170,201,23,139,133,174,195,135,93,165,233,182,146,201,214,156,214,83,203,29,142,121,247,232,80,102,126,127,67,253,179,231,39,175,121,198,238,151,60,200,250,190,239,206,193,44,103,75,235,237,30,239,176,39,251,230,201,250,233,153,249,138,210,142,177,236,137,60,119,119,207,112,89,215,210,82,77,94,129,195,89,86,121, -104,234,197,224,76,203,175,115,169,191,116,28,27,178,93,79,157,188,105,239,41,126,252,83,119,246,133,246,153,185,102,111,206,211,134,84,199,124,103,175,123,212,53,57,50,114,231,135,251,101,143,71,154,114,238,28,113,62,169,122,48,56,144,102,187,59,218,127,185,43,211,243,219,194,64,111,193,228,210,141,185,180,161,115,3,69,131,23,103,26,170,188,179,87,93,215,174,60,170,168,190,149,94,112,176,199,218,149,101,189,210,105,205,173,114,229,207,95,109,119,89,51,166,28,109,181,237,157,86,103,142,115,234,156,179,175,211,126,248,82,214,153,177,137,123,75,143,70,75,198,250,237,115,131,87,106,10,158,143,228,159,191,48,118,186,46,163,212,187,60,53,88,152,91,90,58,183,148,186,236,78,93,254,43,116,46,118,243,201,102,3,7,160,62,82,148,88,137,3,91,37,193,0,244,145,64,228,147,121,3,43,0,201,4,124,243,20,1,226,44,18,248,138,151,146,64,10,47,90,88,3,96,205,102,14,89,202,24,207,1,83,226,234,236,41,193,103,22,49,137,75,0,62,52,94,4, -102,78,16,121,81,226,140,18,80,88,140,18,111,0,70,238,107,9,205,49,31,191,47,12,176,198,4,32,112,102,129,19,209,6,17,72,130,133,83,130,47,88,131,37,8,211,151,95,198,226,80,118,78,0,56,48,9,0,83,6,17,193,52,177,146,201,204,199,235,213,250,40,125,148,204,97,171,73,224,244,81,162,16,239,123,212,111,226,140,250,72,139,168,223,136,182,168,87,86,208,125,197,76,43,148,99,129,54,42,54,22,108,227,4,62,5,85,159,40,152,144,205,209,2,8,120,75,222,165,91,227,80,191,63,99,101,176,224,98,99,67,173,232,199,208,111,9,120,21,153,123,55,39,125,34,123,50,240,90,161,123,133,223,77,70,81,10,236,8,132,175,100,92,137,142,5,161,32,193,57,8,192,39,239,13,188,9,243,31,9,40,49,146,58,9,181,71,142,244,147,8,223,186,186,95,238,121,28,7,18,120,209,108,96,191,65,106,240,198,16,58,74,176,139,147,44,130,81,4,250,112,41,137,23,149,255,59,85,146,3,235,17,224,95,64,199,223,75,242,228,245,130,39,162,249,150, -55,235,55,36,178,6,145,211,111,88,181,147,236,150,144,80,28,232,94,31,43,155,201,31,170,12,250,196,4,181,40,136,116,138,137,79,88,207,25,53,196,132,28,204,74,38,65,255,225,127,62,168,219,191,180,240,41,172,65,62,59,16,77,255,100,40,180,129,81,13,123,221,236,189,11,49,132,247,70,70,113,38,147,225,21,129,4,136,123,67,127,67,142,44,84,116,112,187,226,116,107,203,13,202,230,135,12,206,186,230,251,142,106,254,248,101,205,190,151,138,176,151,159,127,95,11,100,104,82,19,240,168,92,148,111,122,214,28,168,255,68,186,119,156,137,247,81,112,93,175,87,219,28,183,190,201,235,85,243,105,225,175,234,165,34,235,197,124,181,94,235,242,35,157,21,97,202,144,255,101,64,247,55,140,252,19,49, - +topic "ButtonOption"; +[2 $$0,0#00000000000000000000000000000000:Default] +[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class] +[l288;2 $$2,0#27521748481378242620020725143825:desc] +[0 $$3,0#96390100711032703541132217272105:end] +[H6;0 $$4,0#05600065144404261032431302351956:begin] +[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item] +[l288;a4;*@5;1 $$6,6#70004532496200323422659154056402:requirement] +[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param] +[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam] +[b42;2 $$9,9#13035079074754324216151401829390:normal] +[{_}%EN-US +[ {{10000@3 [s0; [*@(229)4 ButtonOption]]}}&] +[s3; &] +[s1;:ButtonOption`:`:class:%- [@(0.0.255)3 class][3 _][*3 ButtonOption][3 _:_][@(0.0.255)3 publi +c][3 _][*@3;3 Ctrl]&] +[s2; &] +[s2; +@@image:225&125 +ݕ󘾈򣈺Ĥĥՠެ +ۊԟ沱ׇᤜ蹇нí䠓؈􏿷 +ĂȺȍ˭ѓԊ뼁îʬɩ +鿋Ĥوӵ牧߄؞ۚ +Ęٕҁ؜ɔȊߨܼߎԂӹƈ +ٰԓֶͲ݅ɀƉŀòŀ갱ŜӜ¬ +ܐ⡮֒ +&] +[s2; &] +[s9; Simple 2`-state Ctrl `- similar to Option, but with visual appearance +of Button. Pushed state is persistent (until next click) and +represents true. Value of ButtonOption is either 1 or 0.&] +[s0; &] +[s0;%- [%%/ Derived from][%% ][^topic`:`/`/CtrlCore`/src`/Ctrl`$en`-us`#`:`:Ctrl`:`:class Ctrl^ C +trl]&] +[s3; &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3; &] +[s5;:ButtonOption`:`:SetImage`(const Image`&`):%- [_^ButtonOption^ ButtonOption][@(0.0.255) `& +]_[* SetImage]([@(0.0.255) const]_[_^Image^ Image][@(0.0.255) `&]_[*@3 img])&] +[s2; Sets the image [%-*C@3 img] to be displayed in ButtonOption. Returns +`*this.&] +[s3; &] +[s4;%- &] +[s5;:ButtonOption`:`:SetImage`(const Image`&`,const Image`&`):%- [_^ButtonOption^ Butto +nOption][@(0.0.255) `&]_[* SetImage]([@(0.0.255) const]_[_^Image^ Image][@(0.0.255) `&]_[*@3 m +], [@(0.0.255) const]_[_^Image^ Image][@(0.0.255) `&]_[*@3 m1])&] +[s2; Sets the image [%-*C@3 m] to be displayed for the `"false`" state +and [%-*C@3 m1 ]to be displayed for the `"true`" state.&] +[s3; &] +[s4;%- &] +[s5;:ButtonOption`:`:operator`=`(const Image`&`):%- [@(0.0.255) void]_[* operator`=]([@(0.0.255) c +onst]_[_^Image^ Image][@(0.0.255) `&]_[*@3 img])&] +[s2; Equivalent to SetImage([*C@3 img]).&] +[s3; &] +[s4;%- &] +[s5;:ButtonOption`:`:Set`(bool`):%- [@(0.0.255) void]_[* Set]([@(0.0.255) bool]_[*@3 b])&] +[s2; Sets the ButtonOption to [%-*C@3 b].&] +[s3; &] +[s4;%- &] +[s5;:ButtonOption`:`:Get`(`)const:%- [@(0.0.255) bool]_[* Get]()_[@(0.0.255) const]&] +[s2; Returns the state of ButtonOption.&] +[s3; &] +[s4;%- &] +[s5;:ButtonOption`:`:operator`=`(bool`):%- [@(0.0.255) void]_[* operator`=]([@(0.0.255) boo +l]_[*@3 b])&] +[s2; Equivalent to Set([*C@3 b]).&] +[s3; &] +[s4;%- &] +[s5;:ButtonOption`:`:operator bool`(`)const:%- [* operator_bool]()_[@(0.0.255) const]&] +[s2; Equivalent to Get().&] +[s3; &] +[s4;%- &] +[s5;:ButtonOption`:`:SetLabel`(const String`&`):%- [_^ButtonOption^ ButtonOption][@(0.0.255) `& +]_[* SetLabel]([@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 text])&] +[s2; Sets the label of the button to [%-*@3 text].&] +[s3; &] +[s4;%- &] +[s5;:ButtonOption`:`:GetLabel`(`)const:%- [_^String^ String]_[* GetLabel]()_[@(0.0.255) con +st]&] +[s2; Returns the label of the button.&] +[s3;%- &] +[s4;%- &] +[s5;:ButtonOption`:`:StyleDefault`(`):%- [@(0.0.255) static] [@(0.0.255) const]_[_^ButtonOption`:`:Style^ S +tyle][@(0.0.255) `&]_[* StyleDefault]()&] +[s2; Returns the default style used to draw a `"normal`" ButtonOption.&] +[s0; &] +[s4;%- &] +[s5;:ButtonOption`:`:StyleFlat`(`):%- [@(0.0.255) static] [@(0.0.255) const]_[_^ButtonOption`:`:Style^ S +tyle][@(0.0.255) `&]_[* StyleFlat]()&] +[s2; Returns the default style used to draw a `"flat`" ButtonOption.&] +[s3;%- &] +[s4;%- &] +[s5;:ButtonOption`:`:SetStyle`(const ButtonOption`:`:Style`&`):%- [_^ButtonOption^ Butt +onOption][@(0.0.255) `&]_[* SetStyle]([@(0.0.255) const]_[_^ButtonOption`:`:Style^ Style][@(0.0.255) `& +]_[*@3 s])&] +[s2; Sets the style of the button to [%-*@3 s]. Returns `*this for +chaining.&] +[s3; &] +[s4;%- &] +[s5;:ButtonOption`:`:AutoStyle`(`):%- [_^ButtonOption^ ButtonOption][@(0.0.255) `&]_[* Auto +Style]()&] +[s2; Clears all style information, reverting to the default look. +Returns `*this for chaining.&] +[s3;%- &] +[s0; &] +[s3;%- &] +[s0;%- &] +[ {{10000@3 [s0; [*@(229)4 ButtonOption`::Style]]}}&] +[s3; &] +[s1;:ButtonOption`:`:Style`:`:struct:%- [@(0.0.255)3 struct][3 _][*3 Style][3 _:_][@(0.0.255)3 p +ublic][3 _][*@3;3 ChStyle][@(0.0.255)3 <][*3 Style][@(0.0.255)3 >][3 _]&] +[s9; This structure defines the look of a ButtonOption.&] +[s3;%- &] +[s0; ] \ No newline at end of file diff --git a/uppsrc/CtrlLib/src.tpp/FileList$en-us.tpp b/uppsrc/CtrlLib/src.tpp/FileList$en-us.tpp index 40a874a81..0c77803de 100644 --- a/uppsrc/CtrlLib/src.tpp/FileList$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/FileList$en-us.tpp @@ -1,16 +1,21 @@ topic "FileList"; [2 $$0,0#00000000000000000000000000000000:Default] -[i448;a25;kKO9;*@(64)2 $$1,0#37138531426314131252341829483380:class] -[l288;2 $$2,2#27521748481378242620020725143825:desc] -[a83;*R6 $$3,0#31310162474203024125188417583966:caption] -[l288;i1121;b17;O9;~~~.1408;2 $$4,0#10431211400427159095818037425705:param] -[i448;a25;kKO9;*@(64)2 $$5,0#37138531426314131252341829483370:item] -[*+117 $$6,6#14700283458701402223321329925657:header] -[{_}%EN-US -[s1;K:`:`:FileList`:`:class:%- [@(0.0.255) class]_[@0 FileList]_:_[@(0.0.255) public]_[^`:`:ColumnList^ C -olumnList]&] -[s2; &] -[s2; +[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class] +[l288;2 $$2,0#27521748481378242620020725143825:desc] +[0 $$3,0#96390100711032703541132217272105:end] +[H6;0 $$4,0#05600065144404261032431302351956:begin] +[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item] +[l288;a4;*@5;1 $$6,6#70004532496200323422659154056402:requirement] +[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param] +[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam] +[b42;2 $$9,9#13035079074754324216151401829390:normal] +[{_} +[ {{10000@3 [s0;%% [*@(229)4 FileList]]}}&] +[s3; &] +[s1;:FileList`:`:class: [@(0.0.255)3 class][3 _][*3 FileList][3 _:_][@(0.0.255)3 public][3 _][*@3;3 C +olumnList][3 , ][@(0.0.255)3 private][3 _][*@3;3 Display]&] +[s2;%% &] +[s2;%% @@image:2240&1320 흿Ƈᄢ͹ɖ׎ –ؘޝտҿ݆ں稨в @@ -157,161 +162,211 @@ olumnList]&] Ͽ؏ń…ɅȿԚ̗ϔ ۲ &] -[s2; &] -[s2; This class is the ColumnList specialization for displaying lists -of files or similar items. List consists of File structures with -elements appropriate to describe and display individual files.&] +[s2;%% &] +[s9;%% This class is the ColumnList specialization for displaying +lists of files or similar items. List consists of File structures +with elements appropriate to describe and display individual +files.&] +[s3;%% &] [s0; &] -[s1;l288;K:`:`:FileList`:`:File`:`:struct:%- [@(0.0.255) struct]_[@0 FileList`::File]&] -[s2;l480; Structure used to hold information about the item. Some -items, like file length, are in fact not directly used by FileList -and are only provided to make FileList usage simpler for its -primary applications (e.g. file selectors).&] -[s0;l288; &] -[s5;l288;K:`:`:FileList`:`:File`:`:isdir:%- [@(0.0.255) bool]_[@0 isdir]&] -[s2;l480; If true, item contains directory.&] -[s0;l288; &] -[s5;l288;K:`:`:FileList`:`:File`:`:icon:%- [^`:`:Image^ Image]_[@0 icon]&] -[s2;l480; File icon.&] -[s0;l288; &] -[s5;l288;K:`:`:FileList`:`:File`:`:name:%- [^`:`:String^ String]_[@0 name]&] -[s2;l480; Filename.&] -[s0;l288; &] -[s5;l288;K:`:`:FileList`:`:File`:`:font:%- [^`:`:Font^ Font]_[@0 font]&] -[s2;l480; Font used to display the filename.&] -[s0;l288; &] -[s5;l288;K:`:`:FileList`:`:File`:`:ink:%- [^`:`:Color^ Color]_[@0 ink]&] -[s2;l480; Color used to display the filename.&] -[s0;l288; &] -[s5;l288;K:`:`:FileList`:`:File`:`:length:%- [@(0.0.255) int]_[@0 length]&] -[s2;l480; Length of file.&] -[s0;l288; &] -[s5;l288;K:`:`:FileList`:`:File`:`:time:%- [^`:`:Time^ Time]_[@0 time]&] -[s2;l480; Last write time.&] -[s0;l288; &] -[s5;l288;K:`:`:FileList`:`:File`:`:extink:%- [^`:`:Color^ Color]_[@0 extink]&] -[s2;l480; Color used to display the file extension.&] -[s0;l288; &] -[s5;l288;K:`:`:FileList`:`:File`:`:desc:%- [^`:`:String^ String]_[@0 desc]&] -[s2;l480; Additional description of file, displayed after the filename.&] -[s0;l288; &] -[s5;l288;K:`:`:FileList`:`:File`:`:descfont:%- [^`:`:Font^ Font]_[@0 descfont]&] -[s2;l480; Font used for additional description.&] -[s0;l288; &] -[s5;l288;K:`:`:FileList`:`:File`:`:operator const`:`:String`&`(`)const:%- operator_[@(0.0.255) c -onst]_[^`:`:String^ String]`&()_[@(0.0.255) const]&] -[s2;l480; Returns name.&] -[s0;l288; &] -[s0; &] -[s0; &] -[s5;K:`:`:FileList`:`:WhenRename:%- [^`:`:Callback2^ Callback2]<[@(0.0.255) const]_String -`&, [@(0.0.255) const]_String`&>_[@0 WhenRename]&] -[s2; This callback is called when filename was renamed by user. First -argument is the original filename, second one is the new filename.&] -[s0; &] -[s5;K:`:`:FileList`:`:StartEdit`(`):%- [@(0.0.255) void]_[@0 StartEdit]()&] -[s2; Starts the editation of the current item for rename.&] -[s0; &] -[s5;K:`:`:FileList`:`:EndEdit`(`):%- [@(0.0.255) void]_[@0 EndEdit]()&] -[s2; Ends the editation of item.&] -[s0; &] -[s5;K:`:`:FileList`:`:IsEdit`(`)const:%- [@(0.0.255) bool]_[@0 IsEdit]()_[@(0.0.255) const]&] -[s2; True if editation is active.&] -[s0; &] -[s5;K:`:`:FileList`:`:OkEdit`(`):%- [@(0.0.255) void]_[@0 OkEdit]()&] -[s2; Ends the editation and calls WhenRename to actually rename the +[ {{10000F(128)G(128)@1 [s0;%% [* Public Member List]]}}&] +[s3;%% &] +[s5;:FileList`:`:WhenRename: [_^Callback2^ Callback2][@(0.0.255) ]_[* WhenRename]&] +[s2;%% This callback is called when filename was renamed by user. +First argument is the original filename, second one is the new filename.&] -[s0; &] -[s5;K:`:`:FileList`:`:Get`(int`)const:%- [@(0.0.255) const]_[^`:`:FileList`:`:File^ File]`& -_[@0 Get]([@(0.0.255) int]_[@3 i])_[@(0.0.255) const]&] -[s2; Returns the file item structure at specified index.&] -[s0; &] -[s5;K:`:`:FileList`:`:operator`[`]`(int`)const:%- [@(0.0.255) const]_[^`:`:FileList`:`:File^ F -ile]`&_[@0 operator`[`]]([@(0.0.255) int]_[@3 i])_[@(0.0.255) const]&] -[s2; Same as Get([%-*@3 i]).&] -[s0; &] -[s5;K:`:`:FileList`:`:Insert`(int`,const`:`:String`&`,const`:`:Image`&`,`:`:Font`,`:`:Color`,bool`,int`,`:`:Time`,`:`:Color`,const`:`:String`&`,`:`:Font`,`:`:Value`):%- [@(0.0.255) v -oid]_[@0 Insert]([@(0.0.255) int]_[@3 ii], [@(0.0.255) const]_[^`:`:String^ String]`&_[@3 nam -e], [@(0.0.255) const]_[^`:`:Image^ Image]`&_[@3 icon]_`=_Null, [^`:`:Font^ Font]_[@3 font]_ -`=_StdFont(), [^`:`:Color^ Color]_[@3 ink]_`=_SColorText(), [@(0.0.255) bool]_[@3 isdir]_ -`=_false, [@(0.0.255) int]_[@3 length]_`=_[@3 0], [^`:`:Time^ Time]_[@3 time]_`=_Null, -[^`:`:Color^ Color]_[@3 extink]_`=_Null, [@(0.0.255) const]_[^`:`:String^ String]`&_[@3 des -c]_`=_Null, [^`:`:Font^ Font]_[@3 descfont]_`=_Null, Value data `= -Null)&] -[s2; Inserts a new file item at specified position.&] -[s0; &] -[s5;K:`:`:FileList`:`:Add`(const`:`:String`&`,const`:`:Image`&`,`:`:Font`,`:`:Color`,bool`,int`,`:`:Time`,`:`:Color`,const`:`:String`&`,`:`:Font`,`:`:Value`):%- [@(0.0.255) v -oid]_[@0 Add]([@(0.0.255) const]_[^`:`:String^ String]`&_[@3 name], [@(0.0.255) const]_[^`:`:Image^ I -mage]`&_[@3 icon]_`=_Null, [^`:`:Font^ Font]_[@3 font]_`=_StdFont(), -[^`:`:Color^ Color]_[@3 ink]_`=_SColorText(), [@(0.0.255) bool]_[@3 isdir]_`=_false, -[@(0.0.255) int]_[@3 length]_`=_[@3 0], [^`:`:Time^ Time]_[@3 time]_`=_Null, -[^`:`:Color^ Color]_[@3 extink]_`=_Null, [@(0.0.255) const]_[^`:`:String^ String]`&_[@3 des -c]_`=_Null, [^`:`:Font^ Font]_[@3 descfont]_`=_Null, Value data `= -Null)&] -[s2; Adds a new file item at the end of list.&] -[s0; &] -[s5;K:`:`:FileList`:`:GetCurrentName`(`)const:%- [^`:`:String^ String]_[@0 GetCurrentName -]()_[@(0.0.255) const]&] -[s2; Returns the filename of item with cursor. If there is no cursor, -returns empty String.&] -[s0; &] -[s5;K:`:`:FileList`:`:Find`(const char`*`):%- [@(0.0.255) int]_[@0 Find]([@(0.0.255) const]_ -[@(0.0.255) char]_`*[@3 name])&] -[s2; The index of the item with specified [%-*@3 name] or negative -value if not in the list. Search is linear.&] -[s0; &] -[s5;K:`:`:FileList`:`:FindSetCursor`(const char`*`):%- [@(0.0.255) bool]_[@0 FindSetCurso -r]([@(0.0.255) const]_[@(0.0.255) char]_`*[@3 name])&] -[s2; If item with [%-*@3 name].is in the list, sets the cursor to it -and returns true, otherwise returns false.&] -[s0; &] -[s5;K:`:`:FileList`:`:Sort`(const`:`:FileList`:`:Order`&`):%- [@(0.0.255) void]_[@0 Sort]( -[@(0.0.255) const]_[^`:`:FileList`:`:Order^ Order]`&_[@3 order])&] -[s2; Sorts the list. Order contains single virtual method for ordering -File structures.&] -[s0; &] -[s5;K:`:`:FileList`:`:IconWidth`(int`):%- [^`:`:FileList^ FileList]`&_[@0 IconWidth]([@(0.0.255) i -nt]_[@3 w])&] -[s2; Sets the space reserved for painting the file icon.&] -[s0; &] -[s5;K:`:`:FileList`:`:GetIconWidth`(`)const:%- [@(0.0.255) int]_[@0 GetIconWidth]()_[@(0.0.255) c +[s3; &] +[s4; &] +[s5;:FileList`:`:StartEdit`(`): [@(0.0.255) void]_[* StartEdit]()&] +[s2;%% Starts the editation of the current item for rename.&] +[s3; &] +[s4; &] +[s5;:FileList`:`:EndEdit`(`): [@(0.0.255) void]_[* EndEdit]()&] +[s2;%% Ends the editation of item.&] +[s3; &] +[s4; &] +[s5;:FileList`:`:IsEdit`(`)const: [@(0.0.255) bool]_[* IsEdit]()_[@(0.0.255) const]&] +[s2;%% True if editation is active.&] +[s3; &] +[s4; &] +[s5;:FileList`:`:OkEdit`(`): [@(0.0.255) void]_[* OkEdit]()&] +[s2;%% Ends the editation and calls WhenRename to actually rename +the filename.&] +[s3; &] +[s4; &] +[s5;:FileList`:`:Get`(int`)const: [@(0.0.255) const]_[_^FileList`:`:File^ File][@(0.0.255) `& +]_[* Get]([@(0.0.255) int]_[*@3 i])_[@(0.0.255) const]&] +[s2;%% Returns the file item structure at specified index.&] +[s3; &] +[s4; &] +[s5;:FileList`:`:operator`[`]`(int`)const: [@(0.0.255) const]_[_^FileList`:`:File^ File][@(0.0.255) `& +]_[* operator`[`]]([@(0.0.255) int]_[*@3 i])_[@(0.0.255) const]&] +[s2;%% Same as Get([%-*@3 i]).&] +[s3;%% &] +[s4; &] +[s5;:FileList`:`:Insert`(int`,const String`&`,const Image`&`,Font`,Color`,bool`,int64`,Time`,Color`,const String`&`,Font`,Value`,Color`): [@(0.0.255) v +oid]_[* Insert]([@(0.0.255) int]_[*@3 ii], [@(0.0.255) const]_[_^String^ String][@(0.0.255) `& +]_[*@3 name], [@(0.0.255) const]_[_^Image^ Image][@(0.0.255) `&]_[*@3 icon]_`=_Null, +[_^Font^ Font]_[*@3 font]_`=_StdFont(), [_^Color^ Color]_[*@3 ink]_`=_SColorText(), +[@(0.0.255) bool]_[*@3 isdir]_`=_[@(0.0.255) false], [_^int64^ int64]_[*@3 length]_`=_[@3 0], + [_^Time^ Time]_[*@3 time]_`=_Null, [_^Color^ Color]_[*@3 extink]_`=_Null, +[@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 desc]_`=_Null, +[_^Font^ Font]_[*@3 descfont]_`=_Null, [_^Value^ Value]_[*@3 data]_`=_Null, +[_^Color^ Color]_[*@3 underline]_`=_Null)&] +[s2;%% Inserts a new file item at specified position.&] +[s3;%% &] +[s4; &] +[s5;:FileList`:`:Add`(const String`&`,const Image`&`,Font`,Color`,bool`,int64`,Time`,Color`,const String`&`,Font`,Value`,Color`): [@(0.0.255) v +oid]_[* Add]([@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 name], +[@(0.0.255) const]_[_^Image^ Image][@(0.0.255) `&]_[*@3 icon]_`=_Null, +[_^Font^ Font]_[*@3 font]_`=_StdFont(), [_^Color^ Color]_[*@3 ink]_`=_SColorText(), +[@(0.0.255) bool]_[*@3 isdir]_`=_[@(0.0.255) false], [_^int64^ int64]_[*@3 length]_`=_[@3 0], + [_^Time^ Time]_[*@3 time]_`=_Null, [_^Color^ Color]_[*@3 extink]_`=_Null, +[@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 desc]_`=_Null, +[_^Font^ Font]_[*@3 descfont]_`=_Null, [_^Value^ Value]_[*@3 data]_`=_Null, +[_^Color^ Color]_[*@3 underline]_`=_Null)&] +[s2;%% Adds a new file item at the end of list.&] +[s3; &] +[s4; &] +[s5;:FileList`:`:GetCurrentName`(`)const: [_^String^ String]_[* GetCurrentName]()_[@(0.0.255) c onst]&] -[s2; Returns the value set by IconWidth.&] -[s0; &] -[s5;K:`:`:FileList`:`:Renaming`(bool`):%- [^`:`:FileList^ FileList]`&_[@0 Renaming]([@(0.0.255) b -ool]_[@3 b]_`=_true)&] -[s2; In renaming mode, user is allowed to edit the name of item (by -holding mouse button over the item). WhenRename callback is called -when user accepts the new name.&] -[s0; &] -[s5;K:`:`:FileList`:`:JustName`(bool`):%- [^`:`:FileList^ FileList]`&_[@0 JustName]([@(0.0.255) b -ool]_[@3 b]_`=_true)&] -[s2; In JustName mode, if filename contains [* `\] or [* /] characters, +[s2;%% Returns the filename of item with cursor. If there is no cursor, +returns empty String.&] +[s3; &] +[s4; &] +[s5;:FileList`:`:Find`(const char`*`): [@(0.0.255) int]_[* Find]([@(0.0.255) const]_[@(0.0.255) c +har]_`*[*@3 name])&] +[s2;%% The index of the item with specified [%-*@3 name] or negative +value if not in the list. Search is linear.&] +[s3; &] +[s4; &] +[s5;:FileList`:`:FindSetCursor`(const char`*`): [@(0.0.255) bool]_[* FindSetCursor]([@(0.0.255) c +onst]_[@(0.0.255) char]_`*[*@3 name])&] +[s2;%% If item with [%-*@3 name].is in the list, sets the cursor to +it and returns true, otherwise returns false.&] +[s3; &] +[s4; &] +[s5;:FileList`:`:Sort`(const FileList`:`:Order`&`): [@(0.0.255) void]_[* Sort]([@(0.0.255) c +onst]_[_^FileList`:`:Order^ Order][@(0.0.255) `&]_[*@3 order])&] +[s2;%% Sorts the list. Order contains single virtual method for ordering +File structures.&] +[s3; &] +[s4; &] +[s5;:FileList`:`:IconWidth`(int`): [_^FileList^ FileList][@(0.0.255) `&]_[* IconWidth]([@(0.0.255) i +nt]_[*@3 w])&] +[s2;%% Sets the space reserved for painting the file icon.&] +[s3; &] +[s4; &] +[s5;:FileList`:`:GetIconWidth`(`)const: [@(0.0.255) int]_[* GetIconWidth]()_[@(0.0.255) con +st]&] +[s2;%% Returns the value set by IconWidth.&] +[s3; &] +[s4; &] +[s5;:FileList`:`:Renaming`(bool`): [_^FileList^ FileList][@(0.0.255) `&]_[* Renaming]([@(0.0.255) b +ool]_[*@3 b]_`=_[@(0.0.255) true])&] +[s2;%% In renaming mode, user is allowed to edit the name of item +(by holding mouse button over the item). WhenRename callback +is called when user accepts the new name.&] +[s3; &] +[s4; &] +[s5;:FileList`:`:JustName`(bool`): [_^FileList^ FileList][@(0.0.255) `&]_[* JustName]([@(0.0.255) b +ool]_[*@3 b]_`=_[@(0.0.255) true])&] +[s2;%% In JustName mode, if filename contains [* `\] or [* /] characters, only the part after last such character is displayed as filename.&] +[s3;%% &] +[s0;%% &] +[s0;%% &] [s0; &] -[s0; &] -[s3;%- FileList routines&] -[s0;@(0.0.255) &] -[s5;K:`:`:Load`(`:`:FileList`&`,const`:`:String`&`,const char`*`,bool`,`:`:Callback3``,`:`:FileSystemInfo`&`):%- [@(0.0.255) b -ool]_[@0 Load]([^`:`:FileList^ FileList]`&_[@3 list], [@(0.0.255) const]_[^`:`:String^ Stri -ng]`&_[@3 dir], [@(0.0.255) const]_[@(0.0.255) char]_`*[@3 patterns], -[^bool^ bool]_[@3 dirs]_`=_false, [^`:`:Callback3^ Callback3]<[^bool^ bool], -[@(0.0.255) const]_[^`:`:String^ String]`&, Image`&>_[@3 WhenIcon]_`=_CNULL, -[^`:`:FileSystemInfo^ FileSystemInfo]`&_[@3 filesystem]_`=_StdFileSystemInfo())&] -[s2; This function loads [%-*@3 list] with file items in [%-*@3 dir]. +[ {{10000@3 [s0;%% [*@(229)4 FileList`::File]]}}&] +[s3;%% &] +[s1;:FileList`:`:File`:`:struct: [@(0.0.255)3 struct][3 _][*3 File]&] +[s9;%% Structure used to hold information about the item. Some items, +like file length, are in fact not directly used by FileList and +are only provided to make FileList usage simpler for its primary +applications (e.g. file selectors).&] +[s3;%% &] +[s0;%% &] +[ {{10000F(128)G(128)@1 [s0;%% [* Public Member List]]}}&] +[s3; &] +[s5;:FileList`:`:File`:`:isdir: [@(0.0.255) bool]_[* isdir]&] +[s2;%% If true, item contains directory.&] +[s3;%% &] +[s4; &] +[s5;:FileList`:`:File`:`:icon: [_^Image^ Image]_[* icon]&] +[s2;%% File icon.&] +[s3;%% &] +[s4; &] +[s5;:FileList`:`:File`:`:name: [_^String^ String]_[* name]&] +[s2;%% Filename.&] +[s3;%% &] +[s4; &] +[s5;:FileList`:`:File`:`:font: [_^Font^ Font]_[* font]&] +[s2;%% Font used to display the filename.&] +[s3;%% &] +[s4; &] +[s5;:FileList`:`:File`:`:ink: [_^Color^ Color]_[* ink]&] +[s2;%% Color used to display the filename.&] +[s3;%% &] +[s4; &] +[s5;:FileList`:`:File`:`:length: [_^int64^ int64]_[* length]&] +[s2;%% Length of file.&] +[s3;%% &] +[s4; &] +[s5;:FileList`:`:File`:`:time: [_^Time^ Time]_[* time]&] +[s2;%% Last write time.&] +[s3;%% &] +[s4; &] +[s5;:FileList`:`:File`:`:extink: [_^Color^ Color]_[* extink]&] +[s2;%% Color used to display the file extension.&] +[s3;%% &] +[s4; &] +[s5;:FileList`:`:File`:`:desc: [_^String^ String]_[* desc]&] +[s2;%% Additional description of file, displayed after the filename.&] +[s3;%% &] +[s4; &] +[s5;:FileList`:`:File`:`:descfont: [_^Font^ Font]_[* descfont]&] +[s2;%% Font used for additional description.&] +[s3;%% &] +[s4; &] +[s5;:FileList`:`:File`:`:operator const String`&`(`)const: [* operator_const_String`&]( +)_[@(0.0.255) const]&] +[s2;%% Returns name.&] +[s3;%% &] +[s0;%% &] +[s0;%% &] +[s0;%% &] +[s0; [+150 FileList routines]&] +[s3; &] +[s5;:Load`(FileList`&`,const String`&`,const char`*`,bool`,Callback3``,FileSystemInfo`&`,const String`&`,bool`): [@(0.0.255) b +ool]_[* Load]([_^FileList^ FileList][@(0.0.255) `&]_[*@3 list], [@(0.0.255) const]_[_^String^ S +tring][@(0.0.255) `&]_[*@3 dir], [@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 patterns], +[@(0.0.255) bool]_[*@3 dirs]_`=_[@(0.0.255) false], [_^Callback3^ Callback3][@(0.0.255) ]_[*@3 WhenI +con]_`=_CNULL, [_^FileSystemInfo^ FileSystemInfo][@(0.0.255) `&]_[*@3 filesystem]_`=_St +dFileSystemInfo(), [@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 search]_`=_[_^String^ S +tring](), [@(0.0.255) bool]_[*@3 hidden]_`=_[@(0.0.255) true])&] +[s2;%% This function loads [%-*@3 list] with file items in [%-*@3 dir]. [%-*@3 patterns] contain allowed file masks separated by semicolon (e.g. `"`*.cpp;`*.h`"). If [%-*@3 dirs] is false, files in the list are displayed with `"disabled`" color (useful for directory selection). [%-*@3 WhenIcon] specifies icon assignment for individual filenames (first bool paremeter is true for directories). [%-*@3 filesystem] specifies the file system interface.&] -[s0; &] -[s5;K:`:`:SortByName`(`:`:FileList`&`):%- [@(0.0.255) void]_[@0 SortByName]([^`:`:FileList^ F -ileList]`&_[@3 list])&] -[s2; Sorts the list by names.&] -[s0; &] -[s5;K:`:`:SortByExt`(`:`:FileList`&`):%- [@(0.0.255) void]_[@0 SortByExt]([^`:`:FileList^ F -ileList]`&_[@3 list])&] -[s2; Sorts the list by extensions.&] -[s0; &] -[s0; ] \ No newline at end of file +[s3;%% &] +[s4; &] +[s5;:SortByName`(FileList`&`): [@(0.0.255) void]_[* SortByName]([_^FileList^ FileList][@(0.0.255) `& +]_[*@3 list])&] +[s2;%% Sorts the list by names.&] +[s3;%% &] +[s4; &] +[s5;:SortByExt`(FileList`&`): [@(0.0.255) void]_[* SortByExt]([_^FileList^ FileList][@(0.0.255) `& +]_[*@3 list])&] +[s2;%% Sorts the list by extensions.&] +[s3;%% &] +[s4; &] +[s5;:GetDriveImage`(char`): [_^Image^ Image]_[* GetDriveImage]([@(0.0.255) char]_[*@3 drive`_ +style])&] +[s2;%% Returns the OS dependent icon of [%-*@3 drive`_style].&] +[s3;%% &] +[s0;%% ] \ No newline at end of file diff --git a/uppsrc/CtrlLib/src.tpp/FileSel$en-us.tpp b/uppsrc/CtrlLib/src.tpp/FileSel$en-us.tpp index 66d5dc58b..2701b8e4d 100644 --- a/uppsrc/CtrlLib/src.tpp/FileSel$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/FileSel$en-us.tpp @@ -1,16 +1,21 @@ topic "FileSel"; [2 $$0,0#00000000000000000000000000000000:Default] -[i448;a25;kKO9;*@(64)2 $$1,0#37138531426314131252341829483380:class] -[l288;2 $$2,2#27521748481378242620020725143825:desc] -[a83;*R6 $$3,0#31310162474203024125188417583966:caption] -[l288;i1121;b17;O9;~~~.1408;2 $$4,0#10431211400427159095818037425705:param] -[i448;a25;kKO9;*@(64)2 $$5,0#37138531426314131252341829483370:item] -[*+117 $$6,6#14700283458701402223321329925657:header] -[{_}%EN-US -[s1;K:`:`:FileSel`:`:class:%- [@(0.0.255) class]_[@0 FileSel]_:_[@(0.0.255) public]_[^`:`:WithFileSelectorLayout^ W -ithFileSelectorLayout]<[^`:`:TopWindow^ TopWindow]>_&] -[s2; &] -[s2; +[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class] +[l288;2 $$2,0#27521748481378242620020725143825:desc] +[0 $$3,0#96390100711032703541132217272105:end] +[H6;0 $$4,0#05600065144404261032431302351956:begin] +[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item] +[l288;a4;*@5;1 $$6,6#70004532496200323422659154056402:requirement] +[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param] +[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam] +[b42;2 $$9,9#13035079074754324216151401829390:normal] +[{_} +[ {{10000@3 [s0;%% [*@(229)4 FileSel]]}}&] +[s3; &] +[s1;:FileSel`:`:class: [@(0.0.255) class]_[* FileSel]_:_[@(0.0.255) public]_[*@3 WithFileSelec +torLayout][@(0.0.255) <][_^TopWindow^ TopWindow][@(0.0.255) >]_&] +[s0; &] +[s2;%% @@image:1755&1627 ԁ흉Ń₎ꮸ졒тܲє ΢ɤʤ܄ϝہϹك쑜 @@ -282,170 +287,208 @@ ithFileSelectorLayout]<[^`:`:TopWindow^ TopWindow]>_&] 缙ۧցܞĝ 羟´åҚ &] -[s2; &] -[s2; Dialog for selecting files or directories. &] +[s2;%% &] +[s9;%% Dialog for selecting files or directories.&] +[s3; &] [s0; &] -[s5;K:`:`:FileSel`:`:WhenIcon:%- [^`:`:Callback3^ Callback3]<[^bool^ bool], -[@(0.0.255) const]_[^`:`:String^ String]`&, [^Image^ Image]`&>_[@0 WhenIcon]&] -[s2; This callback can be used to alter icons for files. First parameter -designates directory, second is the filename. Client code can -alter Image passed as third parameter.&] -[s0; &] -[s5;K:`:`:FileSel`:`:Serialize`(`:`:Stream`&`):%- [@(0.0.255) void]_[@0 Serialize]([^`:`:Stream^ S -tream]`&_[@3 s])&] -[s2; Serializes current settings of FileSel. That includes current +[ {{10000F(128)G(128)@1 [s0;%% [* Public Method List]]}}&] +[s3;%% &] +[s5;:FileSel`:`:WhenIcon: [_^Callback3^ Callback3][@(0.0.255) ]_[* WhenIcon]&] +[s2;%% This callback can be used to alter icons for files. First +parameter designates directory, second is the filename. Client +code can alter Image passed as third parameter.&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:Serialize`(Stream`&`): [@(0.0.255) void]_[* Serialize]([_^Stream^ Stream][@(0.0.255) `& +]_[*@3 s])&] +[s2;%% Serializes current settings of FileSel. That includes current directory, currently selected file type, size of FileSel window, LRU list of visited directories and `"Sort by`" switch state.&] -[s0; &] -[s5;K:`:`:FileSel`:`:ExecuteOpen`(const char`*`):%- [@(0.0.255) bool]_[@0 ExecuteOpen]([@(0.0.255) c -onst]_[@(0.0.255) char]_`*[@3 title]_`=_NULL)&] -[s2; Executes `"Open file`" dialog. [%-*@3 title] can specify alternate +[s3; &] +[s4; &] +[s5;:FileSel`:`:ExecuteOpen`(const char`*`): [@(0.0.255) bool]_[* ExecuteOpen]([@(0.0.255) c +onst]_[@(0.0.255) char]_`*[*@3 title]_`=_NULL)&] +[s2;%% Executes `"Open file`" dialog. [%-*@3 title] can specify alternate caption of dialog. If user selects a file to open, returns true.&] -[s0; &] -[s5;K:`:`:FileSel`:`:ExecuteSaveAs`(const char`*`):%- [@(0.0.255) bool]_[@0 ExecuteSaveAs -]([@(0.0.255) const]_[@(0.0.255) char]_`*[@3 title]_`=_NULL)&] -[s2; Executes `"Save as`" dialog. [%-*@3 title] can specify alternate +[s3; &] +[s4; &] +[s5;:FileSel`:`:ExecuteSaveAs`(const char`*`): [@(0.0.255) bool]_[* ExecuteSaveAs]([@(0.0.255) c +onst]_[@(0.0.255) char]_`*[*@3 title]_`=_NULL)&] +[s2;%% Executes `"Save as`" dialog. [%-*@3 title] can specify alternate caption of dialog. If user selects a destination file, returns true.&] -[s0; &] -[s5;K:`:`:FileSel`:`:ExecuteSelectDir`(const char`*`):%- [@(0.0.255) bool]_[@0 ExecuteSel -ectDir]([@(0.0.255) const]_[@(0.0.255) char]_`*[@3 title]_`=_NULL)&] -[s2; Executes directory selection dialog. [%-*@3 title] can specify +[s3; &] +[s4; &] +[s5;:FileSel`:`:ExecuteSelectDir`(const char`*`): [@(0.0.255) bool]_[* ExecuteSelectDir]( +[@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 title]_`=_NULL)&] +[s2;%% Executes directory selection dialog. [%-*@3 title] can specify alternate caption of dialog. If user selects a file to open, returns true.&] -[s0; &] -[s5;K:`:`:FileSel`:`:Get`(`)const:%- [^`:`:String^ String]_[@0 Get]()_[@(0.0.255) const]&] -[s2; Returns the path of the first chosen file. If there is none, +[s3; &] +[s4; &] +[s5;:FileSel`:`:Get`(`)const: [_^String^ String]_[* Get]()_[@(0.0.255) const]&] +[s2;%% Returns the path of the first chosen file. If there is none, returns empty String.&] -[s0; &] -[s5;K:`:`:FileSel`:`:Set`(const`:`:String`&`):%- [@(0.0.255) void]_[@0 Set]([@(0.0.255) con -st]_[^`:`:String^ String]`&_[@3 s])&] -[s2; Sets [%-*@3 s] to be the chosen file: if it contains a full path, +[s3; &] +[s4; &] +[s5;:FileSel`:`:Set`(const String`&`): [@(0.0.255) void]_[* Set]([@(0.0.255) const]_[_^String^ S +tring][@(0.0.255) `&]_[*@3 s])&] +[s2;%% Sets [%-*@3 s] to be the chosen file: if it contains a full path, file selector goes to the directory, filename is put into the file name editor of file selector.&] -[s0; &] -[s5;K:`:`:FileSel`:`:Set`(const`:`:Vector`<`:`:String`>`&`):%- [@(0.0.255) void]_[@0 Set]( -[@(0.0.255) const]_[^`:`:Vector^ Vector]<[^`:`:String^ String]>`&_[@3 s])&] -[s2; Sets a group of files to be chosen.&] -[s0; &] -[s5;K:`:`:FileSel`:`:operator`:`:String`(`)const:%- operator_[^`:`:String^ String]()_[@(0.0.255) c -onst]&] -[s2; Same as Get().&] -[s0; &] -[s5;K:`:`:FileSel`:`:operator`=`(const`:`:String`&`):%- [@(0.0.255) void]_[@0 operator`=]( -[@(0.0.255) const]_[^`:`:String^ String]`&_[@3 s])&] -[s2; Same as Set([%-*@3 s]).&] -[s0; &] -[s5;K:`:`:FileSel`:`:operator`~`(`)const:%- [^`:`:String^ String]_[@0 operator`~]()_[@(0.0.255) c -onst]&] -[s2; Same as Get().&] -[s0; &] -[s5;K:`:`:FileSel`:`:operator`<`<`=`(const`:`:String`&`):%- [@(0.0.255) void]_[@0 operato -r<<`=]([@(0.0.255) const]_[^`:`:String^ String]`&_[@3 s])&] -[s2; Same as Set([%-*@3 s]).&] -[s0; &] -[s5;K:`:`:FileSel`:`:GetCount`(`)const:%- [@(0.0.255) int]_[@0 GetCount]()_[@(0.0.255) cons -t]&] -[s2; Returns a count of chosen files.&] -[s0; &] -[s5;K:`:`:FileSel`:`:GetFile`(int`)const:%- [^`:`:String^ String]_[@0 GetFile]([@(0.0.255) i -nt]_[@3 i])_[@(0.0.255) const]&] -[s2; Returns a chosen file [%-*@3 i].&] -[s0; &] -[s5;K:`:`:FileSel`:`:operator`[`]`(int`)const:%- [^`:`:String^ String]_[@0 operator`[`]]( -[@(0.0.255) int]_[@3 i])_[@(0.0.255) const]&] -[s2; Same as GetFile([%-*@3 i]).&] -[s0; &] -[s5;K:`:`:FileSel`:`:ClearFiles`(`):%- [@(0.0.255) void]_[@0 ClearFiles]()&] -[s2; Clear the selection of files.&] -[s0; &] -[s5;K:`:`:FileSel`:`:GetReadOnly`(`)const:%- [@(0.0.255) bool]_[@0 GetReadOnly]()_[@(0.0.255) c -onst]&] -[s2; Returns the status of read`-only option. (Usually this option +[s3; &] +[s4; &] +[s5;:FileSel`:`:Set`(const Vector``&`): [@(0.0.255) void]_[* Set]([@(0.0.255) cons +t]_[_^Vector^ Vector][@(0.0.255) <][_^String^ String][@(0.0.255) >`&]_[*@3 s])&] +[s2;%% Sets a group of files to be chosen.&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:operator String`(`)const: [* operator_String]()_[@(0.0.255) const]&] +[s2;%% Same as Get().&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:operator`=`(const String`&`): [@(0.0.255) void]_[* operator`=]([@(0.0.255) c +onst]_[_^String^ String][@(0.0.255) `&]_[*@3 s])&] +[s2;%% Same as Set([%-*@3 s]).&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:operator`~`(`)const: [_^String^ String]_[* operator`~]()_[@(0.0.255) const]&] +[s2;%% Same as Get().&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:operator`<`<`=`(const String`&`): [@(0.0.255) void]_[* operator<<`=]([@(0.0.255) c +onst]_[_^String^ String][@(0.0.255) `&]_[*@3 s])&] +[s2;%% Same as Set([%-*@3 s]).&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:GetCount`(`)const: [@(0.0.255) int]_[* GetCount]()_[@(0.0.255) const]&] +[s2;%% Returns a count of chosen files.&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:GetFile`(int`)const: [_^String^ String]_[* GetFile]([@(0.0.255) int]_[*@3 i]) +_[@(0.0.255) const]&] +[s2;%% Returns a chosen file [%-*@3 i].&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:operator`[`]`(int`)const: [_^String^ String]_[* operator`[`]]([@(0.0.255) i +nt]_[*@3 i])_[@(0.0.255) const]&] +[s2;%% Same as GetFile([%-*@3 i]).&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:ClearFiles`(`): [@(0.0.255) void]_[* ClearFiles]()&] +[s2;%% Clear the selection of files.&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:GetReadOnly`(`)const: [@(0.0.255) bool]_[* GetReadOnly]()_[@(0.0.255) const +]&] +[s2;%% Returns the status of read`-only option. (Usually this option is used to open files in read only mode).&] -[s0; &] -[s5;K:`:`:FileSel`:`:GetActiveDir`(`)const:%- [^`:`:String^ String]_[@0 GetActiveDir]()_[@(0.0.255) c -onst]&] -[s2; Returns the active directory of file selector.&] -[s0; &] -[s5;K:`:`:FileSel`:`:GetActiveType`(`)const:%- [@(0.0.255) int]_[@0 GetActiveType]()_[@(0.0.255) c -onst]&] -[s2; Returns the active file type index of file selector.&] -[s0; &] -[s5;K:`:`:FileSel`:`:Filesystem`(`:`:FileSystemInfo`&`):%- [@(0.0.255) void]_[@0 Filesyst -em]([^`:`:FileSystemInfo^ FileSystemInfo]`&_[@3 fsys])&] -[s2; Sets the file system to browse. Default is normal local file +[s3; &] +[s4; &] +[s5;:FileSel`:`:GetActiveDir`(`)const: [_^String^ String]_[* GetActiveDir]()_[@(0.0.255) co +nst]&] +[s2;%% Returns the active directory of file selector.&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:GetActiveType`(`)const: [@(0.0.255) int]_[* GetActiveType]()_[@(0.0.255) co +nst]&] +[s2;%% Returns the active file type index of file selector.&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:Filesystem`(FileSystemInfo`&`): [@(0.0.255) void]_[* Filesystem]([_^FileSystemInfo^ F +ileSystemInfo][@(0.0.255) `&]_[*@3 fsys])&] +[s2;%% Sets the file system to browse. Default is normal local file system.&] -[s0; &] -[s5;K:`:`:FileSel`:`:GetFilesystem`(`)const:%- [^`:`:FileSystemInfo^ FileSystemInfo]`&_ -[@0 GetFilesystem]()_[@(0.0.255) const]&] -[s2; Returns the file system used in file selector.&] -[s0; &] -[s5;K:`:`:FileSel`:`:Type`(const char`*`,const char`*`):%- [^`:`:FileSel^ FileSel]`&_[@0 T -ype]([@(0.0.255) const]_[@(0.0.255) char]_`*[@3 name], [@(0.0.255) const]_[@(0.0.255) char]_ -`*[@3 ext])&] -[s2; Adds a file type displayed as [%-*@3 name]. [%-*@3 ext] contains +[s3; &] +[s4; &] +[s5;:FileSel`:`:GetFilesystem`(`)const: [_^FileSystemInfo^ FileSystemInfo][@(0.0.255) `&]_ +[* GetFilesystem]()_[@(0.0.255) const]&] +[s2;%% Returns the file system used in file selector.&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:Type`(const char`*`,const char`*`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* T +ype]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 name], [@(0.0.255) const]_[@(0.0.255) char +]_`*[*@3 ext])&] +[s2;%% Adds a file type displayed as [%-*@3 name]. [%-*@3 ext] contains a set of file masks separated by spaces. Example: Type(`"Source files`", `"`*.c `*.h`").&] -[s0; &] -[s5;K:`:`:FileSel`:`:AllFilesType`(`):%- [^`:`:FileSel^ FileSel]`&_[@0 AllFilesType]()&] -[s2; Same as Type(`"All files`", `"`*.`*`").&] -[s0; &] -[s5;K:`:`:FileSel`:`:ActiveDir`(const`:`:String`&`):%- [^`:`:FileSel^ FileSel]`&_[@0 Acti -veDir]([@(0.0.255) const]_[^`:`:String^ String]`&_[@3 d])&] -[s2; Sets the active directory of file selector (directory where +[s3; &] +[s4; &] +[s5;:FileSel`:`:AllFilesType`(`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* AllFilesType]()&] +[s2;%% Same as Type(`"All files`", `"`*.`*`").&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:ActiveDir`(const String`&`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* ActiveD +ir]([@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 d])&] +[s2;%% Sets the active directory of file selector (directory where file selector starts).&] -[s0; &] -[s5;K:`:`:FileSel`:`:ActiveType`(int`):%- [^`:`:FileSel^ FileSel]`&_[@0 ActiveType]([@(0.0.255) i -nt]_[@3 i])&] -[s2; Sets the active file type.&] -[s0; &] -[s5;K:`:`:FileSel`:`:DefaultExt`(const char`*`):%- [^`:`:FileSel^ FileSel]`&_[@0 DefaultE -xt]([@(0.0.255) const]_[@(0.0.255) char]_`*[@3 ext])&] -[s2; Sets the file extension to add for `"Save as`" dialog if none +[s3; &] +[s4; &] +[s5;:FileSel`:`:ActiveType`(int`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* ActiveType]([@(0.0.255) i +nt]_[*@3 i])&] +[s2;%% Sets the active file type.&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:DefaultExt`(const char`*`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* DefaultE +xt]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 ext])&] +[s2;%% Sets the file extension to add for `"Save as`" dialog if none is specified.&] -[s0; &] -[s5;K:`:`:FileSel`:`:Multi`(bool`):%- [^`:`:FileSel^ FileSel]`&_[@0 Multi]([@(0.0.255) bool -]_[@3 b]_`=_true)&] -[s2; In this mode, more than single file can be selected. Default +[s3; &] +[s4; &] +[s5;:FileSel`:`:Multi`(bool`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* Multi]([@(0.0.255) bool +]_[*@3 b]_`=_[@(0.0.255) true])&] +[s2;%% In this mode, more than single file can be selected. Default is false.&] -[s0; &] -[s5;K:`:`:FileSel`:`:ReadOnlyOption`(bool`):%- [^`:`:FileSel^ FileSel]`&_[@0 ReadOnlyOpti -on]([@(0.0.255) bool]_[@3 b]_`=_true)&] -[s2; Makes `"Read only`" option visible. Default is false.&] -[s0; &] -[s5;K:`:`:FileSel`:`:MkDirOption`(bool`):%- [^`:`:FileSel^ FileSel]`&_[@0 MkDirOption]([@(0.0.255) b -ool]_[@3 b]_`=_true)&] -[s2; Makes `"Make directory`" button visible. Default is true.&] -[s0; &] -[s5;K:`:`:FileSel`:`:NoMkDirOption`(`):%- [^`:`:FileSel^ FileSel]`&_[@0 NoMkDirOption]()&] -[s2; Same as MkDirOption(false).&] -[s0; &] -[s5;K:`:`:FileSel`:`:BaseDir`(const char`*`):%- [^`:`:FileSel^ FileSel]`&_[@0 BaseDir]([@(0.0.255) c -onst]_[@(0.0.255) char]_`*[@3 dir])&] -[s2; Sets [%-*@3 dir] to be the base directory. If used, files can +[s3; &] +[s4; &] +[s5;:FileSel`:`:ReadOnlyOption`(bool`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* ReadOnlyOpti +on]([@(0.0.255) bool]_[*@3 b]_`=_[@(0.0.255) true])&] +[s2;%% Makes `"Read only`" option visible. Default is false.&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:MkDirOption`(bool`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* MkDirOption]([@(0.0.255) b +ool]_[*@3 b]_`=_[@(0.0.255) true])&] +[s2;%% Makes `"Make directory`" button visible. Default is true.&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:NoMkDirOption`(`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* NoMkDirOption]()&] +[s2;%% Same as MkDirOption(false).&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:BaseDir`(const char`*`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* BaseDir]([@(0.0.255) c +onst]_[@(0.0.255) char]_`*[*@3 dir])&] +[s2;%% Sets [%-*@3 dir] to be the base directory. If used, files can be selected only inside this base directory (or its subdirectories) and selected file paths are relative to it.&] -[s0; &] -[s5;K:`:`:FileSel`:`:Asking`(bool`):%- [^`:`:FileSel^ FileSel]`&_[@0 Asking]([@(0.0.255) bo -ol]_[@3 b]_`=_true)&] -[s2; If active, file selector asks before returning the path of existing -file in `"Save as`" dialog. Default is active.&] -[s0; &] -[s5;K:`:`:FileSel`:`:NoAsking`(`):%- [^`:`:FileSel^ FileSel]`&_[@0 NoAsking]()&] -[s2; Same as Asking(false).&] -[s0; &] -[s5;K:`:`:FileSel`:`:EditFileName`(bool`):%- [^`:`:FileSel^ FileSel]`&_[@0 EditFileName]( -[@(0.0.255) bool]_[@3 b])&] -[s2; If active, user can type files into filename edit field. Default +[s3; &] +[s4; &] +[s5;:FileSel`:`:Asking`(bool`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* Asking]([@(0.0.255) bo +ol]_[*@3 b]_`=_[@(0.0.255) true])&] +[s2;%% If active, file selector asks before returning the path of +existing file in `"Save as`" dialog. Default is active.&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:NoAsking`(`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* NoAsking]()&] +[s2;%% Same as Asking(false).&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:EditFileName`(bool`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* EditFileName]( +[@(0.0.255) bool]_[*@3 b])&] +[s2;%% If active, user can type files into filename edit field. Default is active.&] -[s0; &] -[s5;K:`:`:FileSel`:`:NoEditFileName`(`):%- [^`:`:FileSel^ FileSel]`&_[@0 NoEditFileName]( +[s3; &] +[s4; &] +[s5;:FileSel`:`:NoEditFileName`(`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* NoEditFileName]( )&] -[s2; Same as EditFileName(false).&] -[s0; &] -[s5;K:`:`:FileSel`:`:AppModal`(bool`):%- [^`:`:FileSel^ FileSel]`&_[@0 AppModal]([@(0.0.255) b -ool]_[@3 b]_`=_true)&] -[s5;K:`:`:FileSel`:`:NoAppModal`(`):%- [^`:`:FileSel^ FileSel]`&_[@0 NoAppModal]()&] -[s2; If active (default), dialog is run as application modal.&] +[s2;%% Same as EditFileName(false).&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:AppModal`(bool`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* AppModal]([@(0.0.255) b +ool]_[*@3 b]_`=_[@(0.0.255) true])&] +[s3; &] +[s4; &] +[s5;:FileSel`:`:NoAppModal`(`): [_^FileSel^ FileSel][@(0.0.255) `&]_[* NoAppModal]()&] +[s2;%% If active (default), dialog is run as application modal.&] +[s3; &] [s0; ] \ No newline at end of file diff --git a/uppsrc/CtrlLib/src.tpp/LineEdit$en-us.tpp b/uppsrc/CtrlLib/src.tpp/LineEdit$en-us.tpp index f31cc9b4a..4f0b18f38 100644 --- a/uppsrc/CtrlLib/src.tpp/LineEdit$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/LineEdit$en-us.tpp @@ -1,37 +1,28 @@ topic "LineEdit"; [2 $$0,0#00000000000000000000000000000000:Default] -[i448;a25;kKO9;*@(64)2 $$1,0#37138531426314131252341829483380:class] -[l288;2 $$2,2#27521748481378242620020725143825:desc] -[a83;*R6 $$3,0#31310162474203024125188417583966:caption] -[l288;i1121;b17;O9;~~~.1408;2 $$4,0#10431211400427159095818037425705:param] -[i448;a25;kKO9;*@(64)2 $$5,0#37138531426314131252341829483370:item] -[*+117 $$6,6#14700283458701402223321329925657:header] -[0 $$7,0#96390100711032703541132217272105:end] -[H6;0 $$8,0#05600065144404261032431302351956:begin] +[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class] +[l288;2 $$2,0#27521748481378242620020725143825:desc] +[0 $$3,0#96390100711032703541132217272105:end] +[H6;0 $$4,0#05600065144404261032431302351956:begin] +[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item] +[l288;a4;*@5;1 $$6,6#70004532496200323422659154056402:requirement] +[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param] +[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam] +[b42;2 $$9,9#13035079074754324216151401829390:normal] [{_} -[s1;K:`:`:LineEdit`:`:class: [@(0.0.255) class]_[@0 LineEdit]_:_[@(0.0.255) public]_[^`:`:TextCtrl^ T +[ {{10000@3 [s0;%% [*@(229)4 LineEdit]]}}&] +[s3; &] +[s1;:LineEdit`:`:class: [@(0.0.255)3 class][3 _][*3 LineEdit][3 _:_][@(0.0.255)3 public][3 _][*@3;3 T extCtrl]&] -[s2; &] -[s1;l224;K:`:`:LineEdit`:`:Highlight`:`:struct: [@(0.0.255) struct]_[@0 LineEdit`::Highlig -ht]_:_[@(0.0.255) public]_[^`:`:Moveable^ Moveable]<[@0 Highlight]>&] -[s5;l224;K:`:`:LineEdit`:`:Highlight`:`:paper: [^`:`:Color^ Color]_[@0 paper]&] -[s5;l224;K:`:`:LineEdit`:`:Highlight`:`:ink: [^`:`:Color^ Color]_[@0 ink]&] -[s5;l224;K:`:`:LineEdit`:`:Highlight`:`:font: [^`:`:Font^ Font]_[@0 font]&] -[s5;l224;K:`:`:LineEdit`:`:Highlight`:`:chr: [^`:`:wchar^ wchar]_[@0 chr]&] -[s0;l224; &] -[s0;l224;i192; This structure defines syntax highlighting properties -of single character cell. See description of &] -[s5;l224;K@(0.0.255) &] -[s5;l224;K:`:`:LineEdit`:`:Highlight`:`:operator`=`=`(const`:`:LineEdit`:`:Highlight`&`)const: [@(0.0.255) b -ool]_[@0 operator`=`=]([@(0.0.255) const]_[^`:`:LineEdit`:`:Highlight^ Highlight]`&_[@3 h -])_[@(0.0.255) const]&] -[s2;l224;i192;%% Equality comparison.&] +[s9;%% &] +[s3; &] [s0; &] -[s0; &] -[s5;K:`:`:LineEdit`:`:HighlightLine`(int`,`:`:Vector`<`:`:LineEdit`:`:Highlight`>`&`,int`): v -irtual [@(0.0.255) void]_[@0 HighlightLine]([@(0.0.255) int]_[@3 line], -[^`:`:Vector^ Vector]<[^`:`:LineEdit`:`:Highlight^ Highlight]>`&_[@3 h], -[@(0.0.255) int]_[@3 pos]) [@0 `[protected`]]&] +[ {{10000F(128)G(128)@1 [s0;%% [* Protected Method List]]}}&] +[s3; &] +[s5;:LineEdit`:`:HighlightLine`(int`,Vector``&`,int`): [@(0.0.255) v +irtual] [@(0.0.255) void]_[* HighlightLine]([@(0.0.255) int]_[*@3 line], +[_^Vector^ Vector][@(0.0.255) <][_^LineEdit`:`:Highlight^ Highlight][@(0.0.255) >`&]_[*@3 h +], [@(0.0.255) int]_[*@3 pos])&] [s2;%% This method can be overridden to add syntax highlighting to the LineEdit. It is called once for each line painted on the screen. [%-*@3 line] is the line index (first line is 0), [%-*@3 h] @@ -42,211 +33,284 @@ one more space character than is the count of characters in the line; this additional character can be used to set the appearance of the rest of line after the last character. You also add more characters to the [%-*@3 h]. Default implementation is empty.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:NewScrollPos`(`): virtual [@(0.0.255) void]_[@0 NewScrollPos]() -[@0 `[protected`]]&] +[s3;%% &] +[s4; &] +[s5;:LineEdit`:`:NewScrollPos`(`): [@(0.0.255) virtual] [@(0.0.255) void]_[* NewScrollPos]( +)&] [s2;%% Called when scrollbar gets new position. Default implementation is empty.&] +[s3; &] [s0; &] -[s5;K:`:`:LineEdit`:`:GetFontSize`(`)const: [^`:`:Size^ Size]_[@0 GetFontSize]()_[@(0.0.255) c -onst]&] +[ {{10000F(128)G(128)@1 [s0;%% [* Public Method List]]}}&] +[s3; &] +[s5;:LineEdit`:`:GetFontSize`(`)const: [_^Size^ Size]_[* GetFontSize]()_[@(0.0.255) const]&] [s2;%% Returns the size of font character cell (LineEdit expects monospace glyphs `- the width of character is constant).&] -[s0; &] -[s5;K:`:`:LineEdit`:`:GetGPos`(int`,int`)const: [@(0.0.255) int]_[@0 GetGPos]([@(0.0.255) i -nt]_[@3 ln], [@(0.0.255) int]_[@3 cl])_[@(0.0.255) const]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:GetGPos`(int`,int`)const: [@(0.0.255) int]_[* GetGPos]([@(0.0.255) int]_[*@3 l +n], [@(0.0.255) int]_[*@3 cl])_[@(0.0.255) const]&] [s2;%% Returns `"graphical`" position of [%-*@3 ln] line and [%-*@3 cl] column. This takes into account any tabulator characters int the line.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:GetMousePos`(`:`:Point`)const: [@(0.0.255) int]_[@0 GetMousePos]([^`:`:Point^ P -oint]_[@3 p])_[@(0.0.255) const]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:GetMousePos`(Point`)const: [@(0.0.255) int]_[* GetMousePos]([_^Point^ Poin +t]_[*@3 p])_[@(0.0.255) const]&] [s2;%% Get the the offset of character placed at [%-*@3 p].&] -[s0; &] -[s5;K:`:`:LineEdit`:`:GetColumnLine`(int`)const: [^`:`:Point^ Point]_[@0 GetColumnLine]([@(0.0.255) i -nt]_[@3 pos])_[@(0.0.255) const]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:GetColumnLine`(int`)const: [_^Point^ Point]_[* GetColumnLine]([@(0.0.255) i +nt]_[*@3 pos])_[@(0.0.255) const]&] [s2;%% Returns the line and column for the character at [%-*@3 pos] accounting for any tabulators. Column is x member of resulting Point, line is y.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:GetColumnLinePos`(`:`:Point`)const: [@(0.0.255) int]_[@0 GetColumnL -inePos]([^`:`:Point^ Point]_[@3 pos])_[@(0.0.255) const]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:GetColumnLinePos`(Point`)const: [@(0.0.255) int]_[* GetColumnLinePos]([_^Point^ P +oint]_[*@3 pos])_[@(0.0.255) const]&] [s2;%% Returns the position for given column and line [%-*@3 pos]. Does account for tabulators.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:GetIndexLine`(int`)const: [^`:`:Point^ Point]_[@0 GetIndexLine]([@(0.0.255) i -nt]_[@3 pos])_[@(0.0.255) const]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:GetIndexLine`(int`)const: [_^Point^ Point]_[* GetIndexLine]([@(0.0.255) in +t]_[*@3 pos])_[@(0.0.255) const]&] [s2;%% Returns the line and index of character in the line for the given [%-*@3 pos]. Does not account for tabulators.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:GetIndexLinePos`(`:`:Point`)const: [@(0.0.255) int]_[@0 GetIndexLin -ePos]([^`:`:Point^ Point]_[@3 pos])_[@(0.0.255) const]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:GetIndexLinePos`(Point`)const: [@(0.0.255) int]_[* GetIndexLinePos]([_^Point^ P +oint]_[*@3 pos])_[@(0.0.255) const]&] [s2;%% Returns the position for given column and line [%-*@3 pos]. Does not account for tabulators.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:ScrollUp`(`): [@(0.0.255) void]_[@0 ScrollUp]()&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:ScrollUp`(`): [@(0.0.255) void]_[* ScrollUp]()&] [s2;%% Scrolls the text single line up.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:ScrollDown`(`): [@(0.0.255) void]_[@0 ScrollDown]()&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:ScrollDown`(`): [@(0.0.255) void]_[* ScrollDown]()&] [s2;%% Scrolls the text single line down.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:GetLineScreenRect`(int`)const: [^`:`:Rect^ Rect]_[@0 GetLineScreenR -ect]([@(0.0.255) int]_[@3 line])_[@(0.0.255) const]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:GetLineScreenRect`(int`)const: [_^Rect^ Rect]_[* GetLineScreenRect]([@(0.0.255) i +nt]_[*@3 line])_[@(0.0.255) const]&] [s2;%% Gets the absolute screen rectangle position of [%-*@3 line].&] -[s0; &] -[s5;K:`:`:LineEdit`:`:TopCursor`(`): [@(0.0.255) void]_[@0 TopCursor]()&] +[s5;K:`:`:LineEdit`:`:TopCursor`(`): [@(0.0.255) void][@(64) _]TopCursor[@(64) ()]&] [s2;%% Scrolls the text to place the line with cursor is first in the view.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:CenterCursor`(`): [@(0.0.255) void]_[@0 CenterCursor]()&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:CenterCursor`(`): [@(0.0.255) void]_[* CenterCursor]()&] [s2;%% Scrolls the text to place the line with cursor at the center of the view.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:MoveUpDown`(int`,bool`): [@(0.0.255) void]_[@0 MoveUpDown]([@(0.0.255) i -nt]_[@3 n], [@(0.0.255) bool]_[@3 sel]_`=_false)&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:MoveUpDown`(int`,bool`): [@(0.0.255) void]_[* MoveUpDown]([@(0.0.255) int]_ +[*@3 n], [@(0.0.255) bool]_[*@3 sel]_`=_[@(0.0.255) false])&] [s2;%% Moves the cursor [%-*@3 n] lines up ([%-*@3 n] is negative) or down. If [%-*@3 sel] is true, selects characters between starting and ending cursor position.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:MoveLeft`(bool`): [@(0.0.255) void]_[@0 MoveLeft]([@(0.0.255) bool]_[@3 s -el]_`=_false)&] -[s5;K:`:`:LineEdit`:`:MoveRight`(bool`): [@(0.0.255) void]_[@0 MoveRight]([@(0.0.255) bool]_ -[@3 sel]_`=_false)&] -[s5;K:`:`:LineEdit`:`:MoveUp`(bool`): [@(0.0.255) void]_[@0 MoveUp]([@(0.0.255) bool]_[@3 sel -]_`=_false)&] -[s5;K:`:`:LineEdit`:`:MoveDown`(bool`): [@(0.0.255) void]_[@0 MoveDown]([@(0.0.255) bool]_[@3 s -el]_`=_false)&] -[s5;K:`:`:LineEdit`:`:MovePageUp`(bool`): [@(0.0.255) void]_[@0 MovePageUp]([@(0.0.255) boo -l]_[@3 sel]_`=_false)&] -[s5;K:`:`:LineEdit`:`:MovePageDown`(bool`): [@(0.0.255) void]_[@0 MovePageDown]([@(0.0.255) b -ool]_[@3 sel]_`=_false)&] -[s5;K:`:`:LineEdit`:`:MoveHome`(bool`): [@(0.0.255) void]_[@0 MoveHome]([@(0.0.255) bool]_[@3 s -el]_`=_false)&] -[s5;K:`:`:LineEdit`:`:MoveEnd`(bool`): [@(0.0.255) void]_[@0 MoveEnd]([@(0.0.255) bool]_[@3 s -el]_`=_false)&] -[s5;K:`:`:LineEdit`:`:MoveTextBegin`(bool`): [@(0.0.255) void]_[@0 MoveTextBegin]([@(0.0.255) b -ool]_[@3 sel]_`=_false)&] -[s5;K:`:`:LineEdit`:`:MoveTextEnd`(bool`): [@(0.0.255) void]_[@0 MoveTextEnd]([@(0.0.255) b -ool]_[@3 sel]_`=_false)&] -[s0;%% [%- -|Moves the cursor in specified direction (Home/End are beginning/end +[s3; &] +[s4; &] +[s5;:LineEdit`:`:MoveLeft`(bool`): [@(0.0.255) void]_[* MoveLeft]([@(0.0.255) bool]_[*@3 sel]_ +`=_[@(0.0.255) false])&] +[s5;:LineEdit`:`:MoveRight`(bool`): [@(0.0.255) void]_[* MoveRight]([@(0.0.255) bool]_[*@3 se +l]_`=_[@(0.0.255) false])&] +[s5;:LineEdit`:`:MoveUp`(bool`): [@(0.0.255) void]_[* MoveUp]([@(0.0.255) bool]_[*@3 sel]_`=_ +[@(0.0.255) false])&] +[s5;:LineEdit`:`:MoveDown`(bool`): [@(0.0.255) void]_[* MoveDown]([@(0.0.255) bool]_[*@3 sel]_ +`=_[@(0.0.255) false])&] +[s5;:LineEdit`:`:MovePageUp`(bool`): [@(0.0.255) void]_[* MovePageUp]([@(0.0.255) bool]_[*@3 s +el]_`=_[@(0.0.255) false])&] +[s5;:LineEdit`:`:MovePageDown`(bool`): [@(0.0.255) void]_[* MovePageDown]([@(0.0.255) bool]_ +[*@3 sel]_`=_[@(0.0.255) false])&] +[s5;:LineEdit`:`:MoveHome`(bool`): [@(0.0.255) void]_[* MoveHome]([@(0.0.255) bool]_[*@3 sel]_ +`=_[@(0.0.255) false])&] +[s5;:LineEdit`:`:MoveEnd`(bool`): [@(0.0.255) void]_[* MoveEnd]([@(0.0.255) bool]_[*@3 sel]_`= +_[@(0.0.255) false])&] +[s5;:LineEdit`:`:MoveTextBegin`(bool`): [@(0.0.255) void]_[* MoveTextBegin]([@(0.0.255) boo +l]_[*@3 sel]_`=_[@(0.0.255) false])&] +[s5;:LineEdit`:`:MoveTextEnd`(bool`): [@(0.0.255) void]_[* MoveTextEnd]([@(0.0.255) bool]_[*@3 s +el]_`=_[@(0.0.255) false])&] +[s2;%% [%- Moves the cursor in specified direction (Home/End are beginning/end of line). ]If [%-*@3 sel] is true, selects characters between starting and ending cursor position.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:InsertChar`(`:`:dword`,int`,bool`): [@(0.0.255) bool]_[@0 InsertCha -r]([^`:`:dword^ dword]_[@3 key], [@(0.0.255) int]_[@3 count]_`=_[@3 1], -[@(0.0.255) bool]_[@3 canoverwrite]_`=_false)&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:InsertChar`(dword`,int`,bool`): [@(0.0.255) bool]_[* InsertChar]([_^dword^ d +word]_[*@3 key], [@(0.0.255) int]_[*@3 count]_`=_[@3 1], [@(0.0.255) bool]_[*@3 canoverwrite]_ +`=_[@(0.0.255) false])&] [s2;%% Inserts [%-*@3 count ]characters [%-*@3 key] at cursor position. If [%-*@3 canoverwrite] is true, overwrite mode (as set by user pressing Insert key) can be used.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:DeleteChar`(`): [@(0.0.255) void]_[@0 DeleteChar]()&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:DeleteChar`(`): [@(0.0.255) void]_[* DeleteChar]()&] [s2;%% Deletes character at cursor position.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:Backspace`(`): [@(0.0.255) void]_[@0 Backspace]()&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:Backspace`(`): [@(0.0.255) void]_[* Backspace]()&] [s2;%% If character is not first in the text, deletes it and moves cursor one position back.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:DeleteLine`(`): [@(0.0.255) void]_[@0 DeleteLine]()&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:DeleteLine`(`): [@(0.0.255) void]_[* DeleteLine]()&] [s2;%% Deletes a line with cursor (if it is not the only line in the text).&] -[s0; &] -[s5;K:`:`:LineEdit`:`:CutLine`(`): [@(0.0.255) void]_[@0 CutLine]()&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:CutLine`(`): [@(0.0.255) void]_[* CutLine]()&] [s2;%% Stores a line to clipboard and calls DeleteLine.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:GetScrollPos`(`)const: [^`:`:Point^ Point]_[@0 GetScrollPos]()_[@(0.0.255) c -onst]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:GetScrollPos`(`)const: [_^Point^ Point]_[* GetScrollPos]()_[@(0.0.255) con +st]&] [s2;%% Returns the actual scroll position.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:GetPageSize`(`): [^`:`:Size^ Size]_[@0 GetPageSize]()&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:GetPageSize`(`): [_^Size^ Size]_[* GetPageSize]()&] [s2;%% Returns the current view size in character cells.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:SetScrollPos`(`:`:Point`): [@(0.0.255) void]_[@0 SetScrollPos]([^`:`:Point^ P -oint]_[@3 p])&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:SetScrollPos`(Point`): [@(0.0.255) void]_[* SetScrollPos]([_^Point^ Point]_ +[*@3 p])&] [s2;%% Sets the scroll position of view, e.g. to the value obtained by GetScrollPos.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:GetEditPos`(`)const: [^`:`:LineEdit`:`:EditPos^ EditPos]_[@0 GetEdi -tPos]()_[@(0.0.255) const]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:GetEditPos`(`)const: [_^LineEdit`:`:EditPos^ EditPos]_[* GetEditPos]()_[@(0.0.255) c +onst]&] [s2;%% Returns the edit position in the text to be restored later. Edit position comprises cursor and scrollbar positions.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:SetEditPos`(const`:`:LineEdit`:`:EditPos`&`): [@(0.0.255) void]_[@0 S -etEditPos]([@(0.0.255) const]_[^`:`:LineEdit`:`:EditPos^ LineEdit`::EditPos]`&_[@3 pos]) -&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:SetEditPos`(const LineEdit`:`:EditPos`&`): [@(0.0.255) void]_[* SetEditP +os]([@(0.0.255) const]_[_^LineEdit`:`:EditPos^ LineEdit`::EditPos][@(0.0.255) `&]_[*@3 pos +])&] [s2;%% Sets the edit position obtained by calling GetEditPos. If cursor is not in the view after restoring, view is scrolled so that it is by calling ScrollIntoCursor.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:SetEditPosSb`(const`:`:LineEdit`:`:EditPos`&`): [@(0.0.255) void]_ -[@0 SetEditPosSb]([@(0.0.255) const]_[^`:`:LineEdit`:`:EditPos^ LineEdit`::EditPos]`&_[@3 p +[s3; &] +[s4; &] +[s5;:LineEdit`:`:SetEditPosSb`(const LineEdit`:`:EditPos`&`): [@(0.0.255) void]_[* SetEdi +tPosSb]([@(0.0.255) const]_[_^LineEdit`:`:EditPos^ LineEdit`::EditPos][@(0.0.255) `&]_[*@3 p os])&] [s2;%% Sets the edit position obtained by calling GetEditPos. Unlike SetEditPos, no scrolls are performed to get cursor into the view.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:ScrollIntoCursor`(`): [@(0.0.255) void]_[@0 ScrollIntoCursor]()&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:ScrollIntoCursor`(`): [@(0.0.255) void]_[* ScrollIntoCursor]()&] [s2;%% Performs minimal scroll to get the cursor into the view. `"Minimal`" means that if cursor is `"before`" the view, view is scrolled to move cursor to the first line, if it is `"after`", it is moved to the last line.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:GetCaretPoint`(`)const: [^`:`:Point^ Point]_[@0 GetCaretPoint]()_[@(0.0.255) c +[s3; &] +[s4; &] +[s5;:LineEdit`:`:GetCaretPoint`(`)const: [_^Point^ Point]_[* GetCaretPoint]()_[@(0.0.255) c onst]&] -[s2;%% &] -[s0; &] -[s5;K:`:`:LineEdit`:`:Clear`(`): [@(0.0.255) void]_[@0 Clear]()&] +[s2;%% Returns the current caret position.&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:Clear`(`): [@(0.0.255) void]_[* Clear]()&] [s2;%% Sets the text empty.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:OverWriteMode`(bool`): [@(0.0.255) void]_[@0 OverWriteMode]([@(0.0.255) b -ool]_[@3 o]_`=_true)&] -[s5;K:`:`:LineEdit`:`:IsOverWriteMode`(`)const: [@(0.0.255) bool]_[@0 IsOverWriteMode]()_ -[@(0.0.255) const]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:OverWriteMode`(bool`): [@(0.0.255) void]_[* OverWriteMode]([@(0.0.255) boo +l]_[*@3 o]_`=_[@(0.0.255) true])&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:IsOverWriteMode`(`)const: [@(0.0.255) bool]_[* IsOverWriteMode]()_[@(0.0.255) c +onst]&] [s2;%% In OverWriteMode mode, input characters replace the content instead of being inserted.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:RefreshChars`(bool`(`*`)`(int c`)`): [@(0.0.255) void]_[@0 RefreshC -hars]([@(0.0.255) bool]_(`*[@3 predicate])([@(0.0.255) int]_c))&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:RefreshChars`(bool`(`*`)`(int c`)`): [@(0.0.255) void]_[* RefreshChars]( +[@(0.0.255) bool]_(`*[*@3 predicate])([@(0.0.255) int]_c))&] [s2;%% Calls [%-*@3 predicate] for all characters in current view and when it returns true refreshes (schedules for repainting) character cell. It is useful for advanced code editors (e.g. refreshing color of braces in TheIDE editor).&] -[s0; &] -[s5;K:`:`:LineEdit`:`:TabSize`(int`): [^`:`:LineEdit^ LineEdit]`&_[@0 TabSize]([@(0.0.255) i -nt]_[@3 n])&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:TabSize`(int`): [_^LineEdit^ LineEdit][@(0.0.255) `&]_[* TabSize]([@(0.0.255) i +nt]_[*@3 n])&] [s2;%% Sets the tabulator size.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:GetTabSize`(`)const: [@(0.0.255) int]_[@0 GetTabSize]()_[@(0.0.255) c -onst]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:GetTabSize`(`)const: [@(0.0.255) int]_[* GetTabSize]()_[@(0.0.255) const]&] [s2;%% Returns current tabulator size.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:BorderColumn`(int`,`:`:Color`): [^`:`:LineEdit^ LineEdit]`&_[@0 Bor -derColumn]([@(0.0.255) int]_[@3 col], [^`:`:Color^ Color]_[@3 c]_`=_SColorFace())&] -[s2;%% [%-*@3 col] [%-*@3 c] &] -[s0; &] -[s5;K:`:`:LineEdit`:`:SetFont`(`:`:Font`): [^`:`:LineEdit^ LineEdit]`&_[@0 SetFont]([^`:`:Font^ F -ont]_[@3 f])&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:BorderColumn`(int`,Color`): [_^LineEdit^ LineEdit][@(0.0.255) `&]_[* Borde +rColumn]([@(0.0.255) int]_[*@3 col], [_^Color^ Color]_[*@3 c]_`=_SColorFace())&] +[s2;%% Displays a border column of width [%-*@3 col] and color [%-*@3 c].&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:SetFont`(Font`): [_^LineEdit^ LineEdit][@(0.0.255) `&]_[* SetFont]([_^Font^ F +ont]_[*@3 f])&] [s2;%% Sets the font. HighlightLine can replace this font, however, the size of character cell is determined by this font (note that CJK ideograms are two character cells wide). Font should be monospaced. Returns `*this. Default font is Courier(16).&] -[s0; &] -[s5;K:`:`:LineEdit`:`:GetFont`(`)const: [^`:`:Font^ Font]_[@0 GetFont]()_[@(0.0.255) const]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:GetFont`(`)const: [_^Font^ Font]_[* GetFont]()_[@(0.0.255) const]&] [s2;%% Returns the font.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:NoHorzScrollbar`(bool`): [^`:`:LineEdit^ LineEdit]`&_[@0 NoHorzScro -llbar]([@(0.0.255) bool]_[@3 b]_`=_true)&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:NoHorzScrollbar`(bool`): [_^LineEdit^ LineEdit][@(0.0.255) `&]_[* NoHorzSc +rollbar]([@(0.0.255) bool]_[*@3 b]_`=_[@(0.0.255) true])&] [s2;%% In this mode horizontal scrollbar is never shown. Default is off.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:ShowTabs`(bool`): [^`:`:LineEdit^ LineEdit]`&_[@0 ShowTabs]([@(0.0.255) b -ool]_[@3 st]_`=_true)&] -[s5;K:`:`:LineEdit`:`:IsShowTabs`(`)const: [@(0.0.255) bool]_[@0 IsShowTabs]()_[@(0.0.255) c -onst]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:ShowTabs`(bool`): [_^LineEdit^ LineEdit][@(0.0.255) `&]_[* ShowTabs]([@(0.0.255) b +ool]_[*@3 st]_`=_[@(0.0.255) true])&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:IsShowTabs`(`)const: [@(0.0.255) bool]_[* IsShowTabs]()_[@(0.0.255) const]&] [s2;%% In this mode widget displays tabulators with faint graphics. Default is off.&] -[s0; &] -[s5;K:`:`:LineEdit`:`:WithCutLine`(bool`): [^`:`:LineEdit^ LineEdit]`&_[@0 WithCutLine]([@(0.0.255) b -ool]_[@3 b])&] -[s5;K:`:`:LineEdit`:`:NoCutLine`(`): [^`:`:LineEdit^ LineEdit]`&_[@0 NoCutLine]()&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:WithCutLine`(bool`): [_^LineEdit^ LineEdit][@(0.0.255) `&]_[* WithCutLine]( +[@(0.0.255) bool]_[*@3 b])&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:NoCutLine`(`): [_^LineEdit^ LineEdit][@(0.0.255) `&]_[* NoCutLine]()&] [s2;%% In this mode widget calls CutLine when user presses Ctrl`+Y or Ctrl`+L. Default is on.&] +[s3; &] +[s0; &] +[s0; &] +[s0; &] +[ {{10000@3 [s0;%% [*@(229)4 LineEdit`::Highlight]]}}&] +[s3; &] +[s1;:LineEdit`:`:Highlight`:`:struct: [@(0.0.255)3 struct][3 _][*3 Highlight][3 _:_][@(0.0.255)3 p +ublic][3 _][*@3;3 Moveable][@(0.0.255)3 <][*3 Highlight][@(0.0.255)3 >][3 _]&] +[s9; This structure defines syntax highlighting properties of single +character cell. &] +[s3;%% &] +[s0; &] +[ {{10000F(128)G(128)@1 [s0;%% [* Public Member List]]}}&] +[s3; &] +[s5;:LineEdit`:`:Highlight`:`:paper: [_^Color^ Color]_[* paper]&] +[s3;%% &] +[s4; &] +[s5;:LineEdit`:`:Highlight`:`:ink: [_^Color^ Color]_[* ink]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:Highlight`:`:font: [_^Font^ Font]_[* font]&] +[s3; &] +[s4; &] +[s5;:LineEdit`:`:Highlight`:`:chr: [_^wchar^ wchar]_[* chr]&] +[s3;%% &] +[s4; &] +[s5;:LineEdit`:`:Highlight`:`:operator`=`=`(const LineEdit`:`:Highlight`&`)const: [@(0.0.255) b +ool]_[* operator`=`=]([@(0.0.255) const]_[_^LineEdit`:`:Highlight^ Highlight][@(0.0.255) `& +]_[*@3 h])_[@(0.0.255) const]&] +[s2;%% Equality comparison.&] +[s3; &] [s0; ] \ No newline at end of file diff --git a/uppsrc/CtrlLib/src.tpp/TextCtrl$en-us.tpp b/uppsrc/CtrlLib/src.tpp/TextCtrl$en-us.tpp index 25cedf51c..baff60782 100644 --- a/uppsrc/CtrlLib/src.tpp/TextCtrl$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/TextCtrl$en-us.tpp @@ -1,19 +1,20 @@ topic "TextCtrl"; [2 $$0,0#00000000000000000000000000000000:Default] -[i448;a25;kKO9;*@(64)2 $$1,0#37138531426314131252341829483380:class] -[l288;2 $$2,2#27521748481378242620020725143825:desc] -[a83;*R6 $$3,0#31310162474203024125188417583966:caption] -[l288;i1121;b17;O9;~~~.1408;2 $$4,0#10431211400427159095818037425705:param] -[i448;a25;kKO9;*@(64)2 $$5,0#37138531426314131252341829483370:item] -[*+117 $$6,6#14700283458701402223321329925657:header] -[0 $$7,0#96390100711032703541132217272105:end] -[{_}%EN-US -[s3;%- TextCtrl&] -[s1;:TextCtrl`:`:class:%- [*@(0.0.255)3 class][*@0;3 _][@0;3 TextCtrl][*@0;3 _:_][*@(0.0.255)3 p -ublic][*@0;3 _][@3;3 Ctrl][*@0;3 , ][*@(0.0.255)3 protected][*@0;3 _][@3;3 TextArrayOps]&] -[s2; &] -[s1;K:`:`:TextCtrl`:`:class:^`:`:Ctrl^%- &] -[s2; A base class that implements operations common for [^`:`:DocEdit^ DocEdit] +[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class] +[l288;2 $$2,0#27521748481378242620020725143825:desc] +[0 $$3,0#96390100711032703541132217272105:end] +[H6;0 $$4,0#05600065144404261032431302351956:begin] +[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item] +[l288;a4;*@5;1 $$6,6#70004532496200323422659154056402:requirement] +[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param] +[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam] +[b42;2 $$9,9#13035079074754324216151401829390:normal] +[{_} +[ {{10000@3 [s0; [*@(229)4 TextCtrl]]}}&] +[s3; &] +[s1;:TextCtrl`:`:class: [@(0.0.255)3 class][3 _][*3 TextCtrl][3 _:_][@(0.0.255)3 public][3 _][*@3;3 C +trl][3 , ][@(0.0.255)3 protected][3 _][*@3;3 TextArrayOps]&] +[s9;%% A base class that implements operations common for [^`:`:DocEdit^ DocEdit] (raw text editor where lines `- LF delimited sections `- are displayed as paragraphs `- wrapped when they do not fit the width) and [^`:`:LineEdit^ LineEdit].(where lines are simply lines and @@ -21,359 +22,437 @@ are never wrapped). TextCtrl works in UNICODE, but is able performing conversions to any of predefined charsets. The Value of TextCtrl is contained text; setting it is the same as using Set method, reading is equivalent to Get method.&] -[s2; &] -[s5;K%- [@(0.0.255) struct]_TextCtrl`::[@0 UndoData]&] -[s2;l320; This structure contains informations about undo/redo state -of the widget. It can be with PickUndoData and SetPickUndoDate -to store and restore undo/redo state.&] -[s0;l128; &] -[s5;l320;K:`:`:TextCtrl`:`:UndoData`:`:Clear`(`):%- [@(0.0.255) void]_[@0 Clear]()&] -[s2;l512; Clears the undo/redo state.&] -[s0;l320; &] -[s5;K:`:`:TextCtrl`:`:SelectionChanged`(`):%- virtual [@(0.0.255) void]_[@0 SelectionChan -ged]()[@0 `[protected`]]&] -[s2; Selection anchor or cursor has changed. (called even when there -is no selection, just cursor). If you override this, you should -call base`-class version in the body.&] +[s3;%% &] [s0; &] -[s5;K:`:`:TextCtrl`:`:ClearLines`(`):%- virtual [@(0.0.255) void]_[@0 ClearLines]()[@0 -`[protected`]]&] -[s2; The content was removed (e.g. Clear or Load operations). If +[ {{10000F(128)G(128)@1 [s0;%% [* Protected Method List]]}}&] +[s3; &] +[s5;:TextCtrl`:`:SelectionChanged`(`): [@(0.0.255) virtual] [@(0.0.255) void]_[* SelectionC +hanged]()&] +[s2;%% Selection anchor or cursor has changed. (called even when +there is no selection, just cursor). If you override this, you +should call base`-class version in the body.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:ClearLines`(`): [@(0.0.255) virtual] [@(0.0.255) void]_[* ClearLines]()&] +[s2;%% The content was removed (e.g. Clear or Load operations). If you override this, you should call base`-class version in the body.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:InsertLines`(int`,int`):%- virtual [@(0.0.255) void]_[@0 InsertLine -s]([@(0.0.255) int]_[@3 line], [@(0.0.255) int]_[@3 count])[@0 `[protected`]]&] -[s2; [%-*@3 count] lines at [%-*@3 line] position were inserted. If you -override this, you should call base`-class version in the body.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:RemoveLines`(int`,int`):%- virtual [@(0.0.255) void]_[@0 RemoveLine -s]([@(0.0.255) int]_[@3 line], [@(0.0.255) int]_[@3 count])[@0 `[protected`]]&] -[s2; [%-*@3 count] lines at [%-*@3 line] position were removed. If you -override this, you should call base`-class version in the body.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:PreInsert`(int`,const`:`:WString`&`):%- virtual -[@(0.0.255) void]_[@0 PreInsert]([@(0.0.255) int]_[@3 pos], [@(0.0.255) const]_[^`:`:WString^ W -String]`&_[@3 text])[@0 `[protected`]]&] -[s2; Called before any [%-*@3 text] gets inserted at [%-*@3 pos.] If +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:InsertLines`(int`,int`): [@(0.0.255) virtual] [@(0.0.255) void]_[* InsertL +ines]([@(0.0.255) int]_[*@3 line], [@(0.0.255) int]_[*@3 count])&] +[s2;%% [%-*@3 count] lines at [%-*@3 line] position were inserted. If you override this, you should call base`-class version in the body.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:PostInsert`(int`,const`:`:WString`&`):%- virtual -[@(0.0.255) void]_[@0 PostInsert]([@(0.0.255) int]_[@3 pos], [@(0.0.255) const]_[^`:`:WString^ W -String]`&_[@3 text])[@0 `[protected`]]&] -[s2; Called after [%-*@3 text] was inserted at [%-*@3 pos.] If you override -this, you should call base`-class version in the body.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:PreRemove`(int`,int`):%- virtual [@(0.0.255) void]_[@0 PreRemove]([@(0.0.255) i -nt]_[@3 pos], [@(0.0.255) int]_[@3 size])[@0 `[protected`]]&] -[s2; Called before [%-*@3 size] characters get removed from the [%-*@3 pos]. +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:RemoveLines`(int`,int`): [@(0.0.255) virtual] [@(0.0.255) void]_[* RemoveL +ines]([@(0.0.255) int]_[*@3 line], [@(0.0.255) int]_[*@3 count])&] +[s2;%% [%-*@3 count] lines at [%-*@3 line] position were removed. If +you override this, you should call base`-class version in the +body.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:PreInsert`(int`,const WString`&`): [@(0.0.255) virtual] +[@(0.0.255) void]_[* PreInsert]([@(0.0.255) int]_[*@3 pos], [@(0.0.255) const]_[_^WString^ WS +tring][@(0.0.255) `&]_[*@3 text])&] +[s2;%% Called before any [%-*@3 text] gets inserted at [%-*@3 pos.] If +you override this, you should call base`-class version in the +body.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:PostInsert`(int`,const WString`&`): [@(0.0.255) virtual] +[@(0.0.255) void]_[* PostInsert]([@(0.0.255) int]_[*@3 pos], [@(0.0.255) const]_[_^WString^ W +String][@(0.0.255) `&]_[*@3 text])&] +[s2;%% Called after [%-*@3 text] was inserted at [%-*@3 pos.] If you +override this, you should call base`-class version in the body.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:PreRemove`(int`,int`): [@(0.0.255) virtual] [@(0.0.255) void]_[* PreRemove +]([@(0.0.255) int]_[*@3 pos], [@(0.0.255) int]_[*@3 size])&] +[s2;%% Called before [%-*@3 size] characters get removed from the [%-*@3 pos]. If you override this, you should call base`-class version in the body.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:PostRemove`(int`,int`):%- virtual [@(0.0.255) void]_[@0 PostRemove]( -[@(0.0.255) int]_[@3 pos], [@(0.0.255) int]_[@3 size])[@0 `[protected`]]&] -[s2; Called after [%-*@3 size] characters was removed from the [%-*@3 pos]. +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:PostRemove`(int`,int`): [@(0.0.255) virtual] [@(0.0.255) void]_[* PostRemo +ve]([@(0.0.255) int]_[*@3 pos], [@(0.0.255) int]_[*@3 size])&] +[s2;%% Called after [%-*@3 size] characters was removed from the [%-*@3 pos]. If you override this, you should call base`-class version in the body.&] +[s3;%% &] [s0; &] -[s5;K:`:`:TextCtrl`:`:RefreshLine`(int`):%- virtual [@(0.0.255) void]_[@0 RefreshLine]([@(0.0.255) i -nt]_[@3 i])&] -[s2; This virtual method is called by TextCtrl when the content of -line [%-*@3 i] is changed. If you override this, you should call -base`-class version in the body.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:WhenBar:%- [^`:`:Callback1^ Callback1]<[^`:`:Bar^@0 Bar]`&>_[@0 WhenB -ar]&] -[s2; This callback is invoked when user right`-clicks the widget +[ {{10000F(128)G(128)@1 [s0;%% [* Public Method List]]}}&] +[s3; &] +[s5;:TextCtrl`:`:RefreshLine`(int`): [@(0.0.255) virtual] [@(0.0.255) void]_[* RefreshLine]( +[@(0.0.255) int]_[*@3 i])&] +[s2;%% This virtual method is called by TextCtrl when the content +of line [%-*@3 i] is changed. If you override this, you should +call base`-class version in the body.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:WhenBar: [_^Callback1^ Callback1][@(0.0.255) <]Bar[@(0.0.255) `&>]_[* WhenBa +r]&] +[s2;%% This callback is invoked when user right`-clicks the widget and should specify local menu. It is initialized by the constructor to the StdBar method. &] -[s0; &] -[s5;K:`:`:TextCtrl`:`:WhenState:%- [^`:`:Callback^ Callback]_[@0 WhenState]&] -[s2; This callback is invoked when the status of widget changes from -not`-modified to modified (`"dirty`") or back.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:CachePos`(int`):%- [@(0.0.255) void]_[@0 CachePos]([@(0.0.255) int]_[@3 p -os])&] -[s2; This is specific optimization hint to the widget saying that +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:WhenState: [_^Callback^ Callback]_[* WhenState]&] +[s2;%% This callback is invoked when the status of widget changes +from not`-modified to modified (`"dirty`") or back.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:CachePos`(int`): [@(0.0.255) void]_[* CachePos]([@(0.0.255) int]_[*@3 pos])&] +[s2;%% This is specific optimization hint to the widget saying that following operations will be performed near after [%-*@3 pos]. Unlikely to be used in the client code.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:Load`(`:`:Stream`&`,`:`:byte`):%- [@(0.0.255) void]_[@0 Load]([^`:`:Stream^ S -tream]`&_[@3 s], [^`:`:byte^ byte]_[@3 charset]_`=_CHARSET`_DEFAULT)&] -[s2; Loads the text from the stream with defined [%-*@3 charset].&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:Save`(`:`:Stream`&`,`:`:byte`)const:%- [@(0.0.255) void]_[@0 Save]( -[^`:`:Stream^ Stream]`&_[@3 s], [^`:`:byte^ byte]_[@3 charset]_`=_CHARSET`_DEFAULT)_[@(0.0.255) c -onst]&] -[s2; Saves the text to the stream with defined [%-*@3 charset]. Characters +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Load`(Stream`&`,byte`): [@(0.0.255) void]_[* Load]([_^Stream^ Stream][@(0.0.255) `& +]_[*@3 s], [_^byte^ byte]_[*@3 charset]_`=_CHARSET`_DEFAULT)&] +[s2;%% Loads the text from the stream with defined [%-*@3 charset].&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Save`(Stream`&`,byte`)const: [@(0.0.255) void]_[* Save]([_^Stream^ Stream][@(0.0.255) `& +]_[*@3 s], [_^byte^ byte]_[*@3 charset]_`=_CHARSET`_DEFAULT)_[@(0.0.255) const]&] +[s2;%% Saves the text to the stream with defined [%-*@3 charset]. Characters that cannot be represented in suggested [%-*@3 charset] are saved as `'?`'.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetInvalidCharPos`(`:`:byte`)const:%- [@(0.0.255) int]_[@0 GetInval -idCharPos]([^`:`:byte^ byte]_[@3 charset]_`=_CHARSET`_DEFAULT)_[@(0.0.255) const]&] -[s2; Returns the position of the first character that cannot be represented -[%-*@3 charset]. If there is none, returns negative value.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:CheckCharset`(`:`:byte`)const:%- [@(0.0.255) bool]_[@0 CheckCharset -]([^`:`:byte^ byte]_[@3 charset]_`=_CHARSET`_DEFAULT)_[@(0.0.255) const]&] -[s2;%- [%% Same as GetInvalidCharPos(]charset) < 0.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:Set`(const`:`:WString`&`):%- [@(0.0.255) void]_[@0 Set]([@(0.0.255) c -onst]_[^`:`:WString^ WString]`&_[@3 s])&] -[s5;K:`:`:TextCtrl`:`:Set`(const`:`:String`&`,`:`:byte`):%- [@(0.0.255) void]_[@0 Set]([@(0.0.255) c -onst]_[^`:`:String^ String]`&_[@3 s], [^`:`:byte^ byte]_[@3 charset]_`=_CHARSET`_DEFAULT) -&] -[s2; Sets the text in the widget.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:Get`(`:`:byte`)const:%- [^`:`:String^ String]_[@0 Get]([^`:`:byte^ by -te]_[@3 charset]_`=_CHARSET`_DEFAULT)_[@(0.0.255) const]&] -[s2; Gets the text in the widget.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:Get`(int`,int`,`:`:byte`)const:%- [^`:`:String^ String]_[@0 Get]([@(0.0.255) i -nt]_[@3 pos], [@(0.0.255) int]_[@3 size], [^`:`:byte^ byte]_[@3 charset]_`=_CHARSET`_DEFAUL -T)_[@(0.0.255) const]&] -[s2; Gets the part of text in the widget.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetW`(int`,int`)const:%- [^`:`:WString^ WString]_[@0 GetW]([@(0.0.255) i -nt]_[@3 pos], [@(0.0.255) int]_[@3 size])_[@(0.0.255) const]&] -[s2; Gets the part of text in the widget in UNICODE.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetW`(`)const:%- [^`:`:WString^ WString]_[@0 GetW]()_[@(0.0.255) cons -t]&] -[s2; Gets the text in the widget in UNICODE.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:ClearDirty`(`):%- [@(0.0.255) void]_[@0 ClearDirty]()&] -[s2; Clears dirty flag. Note that the difference between `"dirty`" +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetInvalidCharPos`(byte`)const: [@(0.0.255) int]_[* GetInvalidCharPos]([_^byte^ b +yte]_[*@3 charset]_`=_CHARSET`_DEFAULT)_[@(0.0.255) const]&] +[s2;%% Returns the position of the first character that cannot be +represented [%-*@3 charset]. If there is none, returns negative +value.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:CheckCharset`(byte`)const: [@(0.0.255) bool]_[* CheckCharset]([_^byte^ byt +e]_[*@3 charset]_`=_CHARSET`_DEFAULT)_[@(0.0.255) const]&] +[s2; [%% Same as GetInvalidCharPos(]charset) < 0.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Set`(const WString`&`): [@(0.0.255) void]_[* Set]([@(0.0.255) const]_[_^WString^ W +String][@(0.0.255) `&]_[*@3 s])&] +[s5;:TextCtrl`:`:Set`(const String`&`,byte`): [@(0.0.255) void]_[* Set]([@(0.0.255) const]_ +[_^String^ String][@(0.0.255) `&]_[*@3 s], [_^byte^ byte]_[*@3 charset]_`=_CHARSET`_DEFAULT +)&] +[s2;%% Sets the text in the widget.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Get`(byte`)const: [_^String^ String]_[* Get]([_^byte^ byte]_[*@3 charset]_`= +_CHARSET`_DEFAULT)_[@(0.0.255) const]&] +[s2;%% Gets the text in the widget.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Get`(int`,int`,byte`)const: [_^String^ String]_[* Get]([@(0.0.255) int]_[*@3 p +os], [@(0.0.255) int]_[*@3 size], [_^byte^ byte]_[*@3 charset]_`=_CHARSET`_DEFAULT)_[@(0.0.255) c +onst]&] +[s2;%% Gets the part of text in the widget.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetW`(int`,int`)const: [_^WString^ WString]_[* GetW]([@(0.0.255) int]_[*@3 p +os], [@(0.0.255) int]_[*@3 size])_[@(0.0.255) const]&] +[s2;%% Gets the part of text in the widget in UNICODE.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetW`(`)const: [_^WString^ WString]_[* GetW]()_[@(0.0.255) const]&] +[s2;%% Gets the text in the widget in UNICODE.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:ClearDirty`(`): [@(0.0.255) void]_[* ClearDirty]()&] +[s2;%% Clears dirty flag. Note that the difference between `"dirty`" flag and `"modified`" flag of Ctrl interface is that `"dirty`" flag can get cleared by undo operation, when the text is restored to the original state (one after setting it or at ClearDirty).&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:IsDirty`(`)const:%- [@(0.0.255) bool]_[@0 IsDirty]()_[@(0.0.255) cons -t]&] -[s2; Tests if text is different from `"original`" state (one after +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:IsDirty`(`)const: [@(0.0.255) bool]_[* IsDirty]()_[@(0.0.255) const]&] +[s2;%% Tests if text is different from `"original`" state (one after setting it or at ClearDirty).&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:Clear`(`):%- [@(0.0.255) void]_[@0 Clear]()&] -[s2; Empties the text.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetLinePos`(int`&`)const:%- [@(0.0.255) int]_[@0 GetLinePos]([@(0.0.255) i -nt]`&_[@3 pos])_[@(0.0.255) const]&] -[s2; Returns the line where character at offset [%-*@3 pos] resides; +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Clear`(`): [@(0.0.255) void]_[* Clear]()&] +[s2;%% Empties the text.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetLinePos`(int`&`)const: [@(0.0.255) int]_[* GetLinePos]([@(0.0.255) int`& +]_[*@3 pos])_[@(0.0.255) const]&] +[s2;%% Returns the line where character at offset [%-*@3 pos] resides; [%-*@3 pos] is altered to contain the position withing the line.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetPos`(int`,int`)const:%- [@(0.0.255) int]_[@0 GetPos]([@(0.0.255) i -nt]_[@3 line], [@(0.0.255) int]_[@3 column])_[@(0.0.255) const]&] -[s2; Returns the offset of character at [%-*@3 line] and [%-*@3 column] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetPos`(int`,int`)const: [@(0.0.255) int]_[* GetPos]([@(0.0.255) int]_[*@3 l +ine], [@(0.0.255) int]_[*@3 column])_[@(0.0.255) const]&] +[s2;%% Returns the offset of character at [%-*@3 line] and [%-*@3 column] index within the line.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetPos`(int`)const:%- [@(0.0.255) int]_[@0 GetPos]([@(0.0.255) int]_[@3 l -ine])_[@(0.0.255) const]&] -[s2; Same as GetPos([%-*@3 line], 0).&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetLine`(int`)const:%- [@(0.0.255) int]_[@0 GetLine]([@(0.0.255) int]_ -[@3 pos])_[@(0.0.255) const]&] -[s2; Similar to GetLinePos, but does not alter [%-*@3 pos] parameter.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetUtf8Line`(int`)const:%- [@(0.0.255) const]_[^`:`:String^ String]`& -_[@0 GetUtf8Line]([@(0.0.255) int]_[@3 i])_[@(0.0.255) const]&] -[s2; Returns the line [%-*@3 i] in UTF`-8 encoding.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetWLine`(int`)const:%- [^`:`:WString^ WString]_[@0 GetWLine]([@(0.0.255) i -nt]_[@3 i])_[@(0.0.255) const]&] -[s2; Returns the line [%-*@3 i] in UNICODE.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetEncodedLine`(int`,`:`:byte`)const:%- [^`:`:String^ String]_[@0 G -etEncodedLine]([@(0.0.255) int]_[@3 i], [^`:`:byte^ byte]_[@3 charset]_`=_CHARSET`_DEFAUL -T)_[@(0.0.255) const]&] -[s2; Returns the line [%-*@3 i] required encoding.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetLineLength`(int`)const:%- [@(0.0.255) int]_[@0 GetLineLength]([@(0.0.255) i -nt]_[@3 i])_[@(0.0.255) const]&] -[s2; Returns the length of line [%-*@3 i].&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetLineCount`(`)const:%- [@(0.0.255) int]_[@0 GetLineCount]()_[@(0.0.255) c -onst]&] -[s2; Returns the number of lines.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetChar`(int`)const:%- [@(0.0.255) int]_[@0 GetChar]([@(0.0.255) int]_ -[@3 pos])_[@(0.0.255) const]&] -[s5;K:`:`:TextCtrl`:`:operator`[`]`(int`)const:%- [@(0.0.255) int]_[@0 operator`[`]]([@(0.0.255) i -nt]_[@3 pos])_[@(0.0.255) const]&] -[s2; Returns the UNICODE character at [%-*@3 pos] offset.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetLength`(`)const:%- [@(0.0.255) int]_[@0 GetLength]()_[@(0.0.255) c -onst]&] -[s2; Returns the total number of characters in the text.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetCursor`(`)const:%- [@(0.0.255) int]_[@0 GetCursor]()_[@(0.0.255) c -onst]&] -[s2; Returns the position of cursor.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetCursorLine`(`):%- [@(0.0.255) int]_[@0 GetCursorLine]()&] -[s2; Same as GetLine(GetCursor).&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:SetSelection`(int`,int`):%- [@(0.0.255) void]_[@0 SetSelection]([@(0.0.255) i -nt]_[@3 anchor]_`=_[@3 0], [@(0.0.255) int]_[@3 cursor]_`=_INT`_MAX)&] -[s2; Sets the selection. If [%-*@3 anchor] or [%-*@3 cursor] are out +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetPos`(int`)const: [@(0.0.255) int]_[* GetPos]([@(0.0.255) int]_[*@3 line]) +_[@(0.0.255) const]&] +[s2;%% Same as GetPos([%-*@3 line], 0).&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetLine`(int`)const: [@(0.0.255) int]_[* GetLine]([@(0.0.255) int]_[*@3 pos]) +_[@(0.0.255) const]&] +[s2;%% Similar to GetLinePos, but does not alter [%-*@3 pos] parameter.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetUtf8Line`(int`)const: [@(0.0.255) const]_[_^String^ String][@(0.0.255) `& +]_[* GetUtf8Line]([@(0.0.255) int]_[*@3 i])_[@(0.0.255) const]&] +[s2;%% Returns the line [%-*@3 i] in UTF`-8 encoding.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetWLine`(int`)const: [_^WString^ WString]_[* GetWLine]([@(0.0.255) int]_[*@3 i +])_[@(0.0.255) const]&] +[s2;%% Returns the line [%-*@3 i] in UNICODE.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetEncodedLine`(int`,byte`)const: [_^String^ String]_[* GetEncodedLine]( +[@(0.0.255) int]_[*@3 i], [_^byte^ byte]_[*@3 charset]_`=_CHARSET`_DEFAULT)_[@(0.0.255) con +st]&] +[s2;%% Returns the line [%-*@3 i] required encoding.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetLineLength`(int`)const: [@(0.0.255) int]_[* GetLineLength]([@(0.0.255) i +nt]_[*@3 i])_[@(0.0.255) const]&] +[s2;%% Returns the length of line [%-*@3 i].&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetLineCount`(`)const: [@(0.0.255) int]_[* GetLineCount]()_[@(0.0.255) con +st]&] +[s2;%% Returns the number of lines.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetChar`(int`)const: [@(0.0.255) virtual] [@(0.0.255) int]_[* GetChar]([@(0.0.255) i +nt]_[*@3 pos])_[@(0.0.255) const]&] +[s5;:TextCtrl`:`:operator`[`]`(int`)const: [@(0.0.255) int]_[* operator`[`]]([@(0.0.255) in +t]_[*@3 pos])_[@(0.0.255) const]&] +[s2;%% Returns the UNICODE character at [%-*@3 pos] offset.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetLength`(`)const: [@(0.0.255) virtual] [@(0.0.255) int]_[* GetLength]()_ +[@(0.0.255) const]&] +[s2;%% Returns the total number of characters in the text.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetCursor`(`)const: [@(0.0.255) int]_[* GetCursor]()_[@(0.0.255) const]&] +[s2;%% Returns the position of cursor.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetCursorLine`(`): [@(0.0.255) int]_[* GetCursorLine]()&] +[s2;%% Same as GetLine(GetCursor).&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:SetSelection`(int`,int`): [@(0.0.255) void]_[* SetSelection]([@(0.0.255) i +nt]_[*@3 anchor]_`=_[@3 0], [@(0.0.255) int]_[*@3 cursor]_`=_INT`_MAX)&] +[s2;%% Sets the selection. If [%-*@3 anchor] or [%-*@3 cursor] are out of range, they are `"fixed`". If they are equal, method changes the position of cursor.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:IsSelection`(`)const:%- [@(0.0.255) bool]_[@0 IsSelection]()_[@(0.0.255) c +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:IsSelection`(`)const: [@(0.0.255) bool]_[* IsSelection]()_[@(0.0.255) cons +t]&] +[s2;%% Tests whether there is non`-empty selection.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetSelection`(int`&`,int`&`)const: [@(0.0.255) bool]_[* GetSelection]([@(0.0.255) i +nt`&]_[*@3 l], [@(0.0.255) int`&]_[*@3 h])_[@(0.0.255) const]&] +[s2;%% Returns the selection lower and upper bounds.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetSelection`(byte`)const: [_^String^ String]_[* GetSelection]([_^byte^ by +te]_[*@3 charset]_`=_CHARSET`_DEFAULT)_[@(0.0.255) const]&] +[s2;%% Returns the selected text in given [%-*@3 charset].&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetSelectionW`(`)const: [_^WString^ WString]_[* GetSelectionW]()_[@(0.0.255) c onst]&] -[s2; Tests whether there is non`-empty selection.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetSelection`(int`&`,int`&`)const:%- [@(0.0.255) bool]_[@0 GetSelec -tion]([@(0.0.255) int]`&_[@3 l], [@(0.0.255) int]`&_[@3 h])_[@(0.0.255) const]&] -[s2; Returns the selection lower and upper bounds.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetSelection`(`:`:byte`):%- [^`:`:String^ String]_[@0 GetSelection]( -[^`:`:byte^ byte]_[@3 charset]_`=_CHARSET`_DEFAULT)&] -[s2; Returns the selected text in given [%-*@3 charset].&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetSelectionW`(`)const:%- [^`:`:WString^ WString]_[@0 GetSelectionW -]()[@0 const]&] -[s2; Returns the selected text in UNICODE.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:ClearSelection`(`)const:%- [@(0.0.255) void]_[@0 ClearSelection]()[@0 -const]&] -[s2; Cancels the selection.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:RemoveSelection`(`):%- [@(0.0.255) bool]_[@0 RemoveSelection]()&] -[s2; Deletes the selection text.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:SetCursor`(int`):%- [@(0.0.255) void]_[@0 SetCursor]([@(0.0.255) int]_ -[@3 cursor])&] -[s2; Places cursor at new position.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:Paste`(const`:`:WString`&`):%- [@(0.0.255) int]_[@0 Paste]([@(0.0.255) c -onst]_[^`:`:WString^ WString]`&_[@3 text])&] -[s2; Pastes [%-*@3 text] at current cursor position.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:Insert`(int`,const`:`:WString`&`):%- [@(0.0.255) int]_[@0 Insert]([@(0.0.255) i -nt]_[@3 pos], [@(0.0.255) const]_[^`:`:WString^ WString]`&_[@3 txt])&] -[s2; Inserts [%-*@3 txt] at [%-*@3 pos].&] -[s0;@(64) &] -[s5;K:`:`:TextCtrl`:`:Insert`(int`,const`:`:String`&`,`:`:byte`):%- [@(0.0.255) int]_[@0 I -nsert]([@(0.0.255) int]_[@3 pos], [@(0.0.255) const]_[^`:`:String^ String]`&_[@3 txt], -[^`:`:byte^ byte]_[@3 charset]_`=_CHARSET`_DEFAULT)&] -[s2; Inserts [%-*@3 txt] encoded with [%-*@3 charset ]at [%-*@3 pos].&] -[s0;@(64) &] -[s5;K:`:`:TextCtrl`:`:Insert`(int`,const char`*`):%- [@(0.0.255) int]_[@0 Insert]([@(0.0.255) i -nt]_[@3 pos], [@(0.0.255) const]_[@(0.0.255) char]_`*[@3 txt])&] -[s2; Inserts [%-*@3 txt] at [%-*@3 pos] using default charset.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:Remove`(int`,int`):%- [@(0.0.255) void]_[@0 Remove]([@(0.0.255) int]_ -[@3 pos], [@(0.0.255) int]_[@3 size])&] -[s2; Removes the text.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:NextUndo`(`):%- [@(0.0.255) void]_[@0 NextUndo]()&] -[s2; Marks the beginning of next undo block. All text altering operations -(inserts and removes) are recorded into undo buffer in sections -where each sections represents single user action. NextUndo tells -TextCtrl that the next altering operation belongs to the new -section. Note that NextUndo does not create a new section (yet); -calling it twice without any altering operation in between is -the same as calling it once.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:Undo`(`):%- [@(0.0.255) void]_[@0 Undo]()&] -[s2; Performs undo.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:Redo`(`):%- [@(0.0.255) void]_[@0 Redo]()&] -[s2; Performs redo.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:IsUndo`(`)const:%- [@(0.0.255) bool]_[@0 IsUndo]()_[@(0.0.255) const]&] -[s2; Tests whether there are some undo records.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:IsRedo`(`)const:%- [@(0.0.255) bool]_[@0 IsRedo]()_[@(0.0.255) const]&] -[s2; Tests whether there are some redo records.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:ClearUndo`(`):%- [@(0.0.255) void]_[@0 ClearUndo]()&] -[s2; Clears all undo and redo records.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:PickUndoData`(`):%- [^`:`:TextCtrl`:`:UndoData^ UndoData]_[@0 PickU -ndoData]()&] -[s2; Picks undo and redo record. This is useful when single widget +[s2;%% Returns the selected text in UNICODE.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:ClearSelection`(`): [@(0.0.255) void]_[* ClearSelection]()&] +[s2;%% Cancels the selection.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:RemoveSelection`(`): [@(0.0.255) bool]_[* RemoveSelection]()&] +[s2;%% Deletes the selection text.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:SetCursor`(int`): [@(0.0.255) void]_[* SetCursor]([@(0.0.255) int]_[*@3 curs +or])&] +[s2;%% Places cursor at new position.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Paste`(const WString`&`): [@(0.0.255) int]_[* Paste]([@(0.0.255) const]_[_^WString^ W +String][@(0.0.255) `&]_[*@3 text])&] +[s2;%% Pastes [%-*@3 text] at current cursor position.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Insert`(int`,const WString`&`): [@(0.0.255) int]_[* Insert]([@(0.0.255) in +t]_[*@3 pos], [@(0.0.255) const]_[_^WString^ WString][@(0.0.255) `&]_[*@3 txt])&] +[s2;%% Inserts [%-*@3 txt] at [%-*@3 pos].&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Insert`(int`,const String`&`,byte`): [@(0.0.255) int]_[* Insert]([@(0.0.255) i +nt]_[*@3 pos], [@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 txt], +[_^byte^ byte]_[*@3 charset]_`=_CHARSET`_DEFAULT)&] +[s2;%% Inserts [%-*@3 txt] encoded with [%-*@3 charset ]at [%-*@3 pos].&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Insert`(int`,const char`*`): [@(0.0.255) int]_[* Insert]([@(0.0.255) int]_ +[*@3 pos], [@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 txt])&] +[s2;%% Inserts [%-*@3 txt] at [%-*@3 pos] using default charset.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Remove`(int`,int`): [@(0.0.255) void]_[* Remove]([@(0.0.255) int]_[*@3 pos], + [@(0.0.255) int]_[*@3 size])&] +[s2;%% Removes the text.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:NextUndo`(`): [@(0.0.255) void]_[* NextUndo]()&] +[s2;%% Marks the beginning of next undo block. All text altering +operations (inserts and removes) are recorded into undo buffer +in sections where each sections represents single user action. +NextUndo tells TextCtrl that the next altering operation belongs +to the new section. Note that NextUndo does not create a new +section (yet); calling it twice without any altering operation +in between is the same as calling it once.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Undo`(`): [@(0.0.255) void]_[* Undo]()&] +[s2;%% Performs undo.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Redo`(`): [@(0.0.255) void]_[* Redo]()&] +[s2;%% Performs redo.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:IsUndo`(`)const: [@(0.0.255) bool]_[* IsUndo]()_[@(0.0.255) const]&] +[s2;%% Tests whether there are some undo records.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:IsRedo`(`)const: [@(0.0.255) bool]_[* IsRedo]()_[@(0.0.255) const]&] +[s2;%% Tests whether there are some redo records.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:ClearUndo`(`): [@(0.0.255) void]_[* ClearUndo]()&] +[s2;%% Clears all undo and redo records.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:PickUndoData`(`): [_^TextCtrl`:`:UndoData^ UndoData]_[* PickUndoData]()&] +[s2;%% Picks undo and redo record. This is useful when single widget is used to edit various text, this allows to change undo/redo records with the text. Must be followed by either SetPickUndoData or ClearUndo before performing any text altering operation.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:SetPickUndoData`(pick`_`:`:TextCtrl`:`:UndoData`&`):%- [@(0.0.255) v -oid]_[@0 SetPickUndoData](pick`__[^`:`:TextCtrl`:`:UndoData^ UndoData]`&_[@3 data])&] -[s2; Sets the undo/redo records. [%-@3 data] is picked (destroyed) +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:SetPickUndoData`(pick`_ TextCtrl`:`:UndoData`&`): [@(0.0.255) void]_[* S +etPickUndoData]([@(0.128.128) pick`_]_[_^TextCtrl`:`:UndoData^ UndoData][@(0.0.255) `&]_ +[*@3 data])&] +[s2;%% Sets the undo/redo records. [%-@3 data] is picked (destroyed) during the operation.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:Cut`(`):%- [@(0.0.255) void]_[@0 Cut]()&] -[s2; Performs Cut.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:Copy`(`):%- [@(0.0.255) void]_[@0 Copy]()&] -[s2; Performs Copy.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:Paste`(`):%- [@(0.0.255) void]_[@0 Paste]()&] -[s2; Performs Paste.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:SelectAll`(`):%- [@(0.0.255) void]_[@0 SelectAll]()&] -[s2; Selects the whole text.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:StdBar`(`:`:Bar`&`):%- [@(0.0.255) void]_[@0 StdBar]([^`:`:Bar^ Bar]`& -_[@3 menu])&] -[s2; Provides the standard local [%-*@3 menu].&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:SetCharset`(`:`:byte`):%- [@(0.0.255) void]_[@0 SetCharset]([^`:`:byte^ b -yte]_[@3 cs])&] -[s2; Sets the input character encoding of widget. This character +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Cut`(`): [@(0.0.255) void]_[* Cut]()&] +[s2;%% Performs Cut.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Copy`(`): [@(0.0.255) void]_[* Copy]()&] +[s2;%% Performs Copy.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:Paste`(`): [@(0.0.255) void]_[* Paste]()&] +[s2;%% Performs Paste.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:SelectAll`(`): [@(0.0.255) void]_[* SelectAll]()&] +[s2;%% Selects the whole text.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:StdBar`(Bar`&`): [@(0.0.255) void]_[* StdBar]([_^Bar^ Bar][@(0.0.255) `&]_[*@3 m +enu])&] +[s2;%% Provides the standard local [%-*@3 menu].&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:SetCharset`(byte`): [@(0.0.255) void]_[* SetCharset]([_^byte^ byte]_[*@3 cs]) +&] +[s2;%% Sets the input character encoding of widget. This character set is used to decide which characters can be entered by the user into the text.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetCharset`(`)const:%- [^`:`:byte^ byte]_[@0 GetCharset]()_[@(0.0.255) c -onst]&] -[s2; Returns the value set by SetCharset.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:SetColor`(int`,`:`:Color`):%- [@(0.0.255) void]_[@0 SetColor]([@(0.0.255) i -nt]_[@3 i], [^`:`:Color^ Color]_[@3 c])&] -[s2; Sets one of colors used to display the text.&] -[s5;K:`:`:TextCtrl`:`:INK`_NORMAL:@0 &] -[ {{4443:5557<288;>864; [s0;%- [+75 TextCtrl`::][*+75 INK`_NORMAL]] -:: [s0; [+75 Normal text color.]] -:: [s0;%- [+75 TextCtrl`::][*+75 INK`_DISABLED]] -:: [s0; [+75 Text color when widget is disabled. ]] -:: [s0;%- [+75 TextCtrl`::][*+75 INK`_SELECTED]] -:: [s0; [+75 Selected text color.]] -:: [s0;%- [+75 TextCtrl`::][*+75 PAPER`_NORMAL]] -:: [s0; [+75 Normal paper color.]] -:: [s0;%- [+75 TextCtrl`::][*+75 PAPER`_READONLY]] -:: [s0; [+75 Paper color when widget is read`-only.]] -:: [s0;%- [+75 TextCtrl`::][*+75 PAPER`_SELECTED]] -:: [s0; [+75 Selected paper color.]] -:: [s0;%- [+75 TextCtrl`::][*+75 COLOR`_COUNT]] -:: [s0; [+75 Total number of color indexes.]]}}&] -[s0; &] -[s0; &] -[s5;K:`:`:TextCtrl`:`:GetColor`(int`)const:%- [^`:`:Color^ Color]_[@0 GetColor]([@(0.0.255) i -nt]_[@3 i])_[@(0.0.255) const]&] -[s2; Gets the color used to display the text.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:UndoSteps`(int`):%- [^`:`:TextCtrl^ TextCtrl]`&_[@0 UndoSteps]([@(0.0.255) i -nt]_[@3 n])&] -[s2; Sets the maximum number of undo steps.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:ProcessTab`(bool`):%- [^`:`:TextCtrl^ TextCtrl]`&_[@0 ProcessTab]([@(0.0.255) b -ool]_[@3 b]_`=_true)&] -[s2; If active (default), widget accepts K`_TAB keystrokes (inserts +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetCharset`(`)const: [_^byte^ byte]_[* GetCharset]()_[@(0.0.255) const]&] +[s2;%% Returns the value set by SetCharset.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:SetColor`(int`,Color`): [@(0.0.255) void]_[* SetColor]([@(0.0.255) int]_[*@3 i +], [_^Color^ Color]_[*@3 c])&] +[s2;%% Sets one of colors used to display the text.&] +[s3;%% &] +[ {{4443:5557<288;>864; [s0; [+75 TextCtrl`::][*+75 INK`_NORMAL]] +:: [s0;%% [+75 Normal text color.]] +:: [s0; [+75 TextCtrl`::][*+75 INK`_DISABLED]] +:: [s0;%% [+75 Text color when widget is disabled. ]] +:: [s0; [+75 TextCtrl`::][*+75 INK`_SELECTED]] +:: [s0;%% [+75 Selected text color.]] +:: [s0; [+75 TextCtrl`::][*+75 PAPER`_NORMAL]] +:: [s0;%% [+75 Normal paper color.]] +:: [s0; [+75 TextCtrl`::][*+75 PAPER`_READONLY]] +:: [s0;%% [+75 Paper color when widget is read`-only.]] +:: [s0; [+75 TextCtrl`::][*+75 PAPER`_SELECTED]] +:: [s0;%% [+75 Selected paper color.]] +:: [s0; [+75 TextCtrl`::][*+75 COLOR`_COUNT]] +:: [s0;%% [+75 Total number of color indexes.]]}}&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:GetColor`(int`)const: [_^Color^ Color]_[* GetColor]([@(0.0.255) int]_[*@3 i]) +_[@(0.0.255) const]&] +[s2;%% Gets the color used to display the text.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:UndoSteps`(int`): [_^TextCtrl^ TextCtrl][@(0.0.255) `&]_[* UndoSteps]([@(0.0.255) i +nt]_[*@3 n])&] +[s2;%% Sets the maximum number of undo steps.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:ProcessTab`(bool`): [_^TextCtrl^ TextCtrl][@(0.0.255) `&]_[* ProcessTab]([@(0.0.255) b +ool]_[*@3 b]_`=_[@(0.0.255) true])&] +[s2;%% If active (default), widget accepts K`_TAB keystrokes (inserts `'`\t`').&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:NoProcessTab`(`):%- [^`:`:TextCtrl^ TextCtrl]`&_[@0 NoProcessTab]() +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:NoProcessTab`(`): [_^TextCtrl^ TextCtrl][@(0.0.255) `&]_[* NoProcessTab]() &] -[s2; Same as ProcessTab(false).&] +[s2;%% Same as ProcessTab(false).&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:NoBackground`(bool`): [_^TextCtrl^ TextCtrl][@(0.0.255) `&]_[* NoBackgroun +d]([@(0.0.255) bool]_[*@3 b]_`=_[@(0.0.255) true])&] +[s2;%% Sets the widget into transparent mode `- background is not +painted and Transparent is activated `- a result, anything painted +behind the widget is visible, allowing client code to provide +any background it needs.&] +[s3;%% &] +[s4; &] +[s5;:TextCtrl`:`:IsProcessTab`(`): [@(0.0.255) bool]_[* IsProcessTab]()&] +[s2;%% Tests whether ProcessTab mode is active.&] +[s3;%% &] +[s0;%% &] +[s0;%% &] +[s0;%% &] +[ {{10000@3 [s0; [*@(229)4 TextCtrl`::UndoData]]}}&] +[s3; &] +[s1;:TextCtrl`:`:UndoData`:`:struct: [@(0.0.255)3 struct][3 _][*3 UndoData]&] +[s9;%% This structure contains informations about undo/redo state +of the widget. It can be with PickUndoData and SetPickUndoDate +to store and restore undo/redo state.&] +[s3;%% &] [s0; &] -[s5;K:`:`:TextCtrl`:`:NoBackground`(bool`):%- [^`:`:TextCtrl^ TextCtrl]`&_[@0 NoBackgroun -d]([@(0.0.255) bool]_[@3 b]_`=_true)&] -[s2; Sets the widget into transparent mode `- background is not painted -and Transparent is activated `- a result, anything painted behind -the widget is visible, allowing client code to provide any background -it needs.&] -[s0; &] -[s5;K:`:`:TextCtrl`:`:IsProcessTab`(`):%- [@(0.0.255) bool]_[@0 IsProcessTab]()&] -[s2; Tests whether ProcessTab mode is active.&] -[s0; &] -[s0; ] \ No newline at end of file +[ {{10000F(128)G(128)@1 [s0;%% [* Public Method List]]}}&] +[s3; &] +[s5;:TextCtrl`:`:UndoData`:`:Clear`(`): [@(0.0.255) void]_[* Clear]()&] +[s2;%% Clears the undo/redo state&] +[s3;%% &] +[s3;%% .] \ No newline at end of file