From 7a14c821894ec7f618d4b40ddfd360aa3b721976 Mon Sep 17 00:00:00 2001 From: cbpporter Date: Fri, 13 Mar 2009 18:14:11 +0000 Subject: [PATCH] CtrlLib documentation update git-svn-id: svn://ultimatepp.org/upp/trunk@957 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/src.tpp/Bar$en-us.tpp | 297 ++++++++++++- uppsrc/CtrlLib/src.tpp/BarCtrl$en-us.tpp | 101 ++++- uppsrc/CtrlLib/src.tpp/EditField$en-us.tpp | 308 +++++++++++++- uppsrc/CtrlLib/src.tpp/Splitter$en-us.tpp | 125 +++++- .../CtrlLib/src.tpp/SplitterFrame$en-us.tpp | 88 +++- uppsrc/CtrlLib/src.tpp/Static$en-us.tpp | 224 +++++++++- uppsrc/CtrlLib/src.tpp/ToolBar$en-us.tpp | 100 ++++- uppsrc/CtrlLib/src.tpp/ValueEditors$en-us.tpp | 397 +++++++++++++++++- 8 files changed, 1552 insertions(+), 88 deletions(-) diff --git a/uppsrc/CtrlLib/src.tpp/Bar$en-us.tpp b/uppsrc/CtrlLib/src.tpp/Bar$en-us.tpp index 3e3136324..94aac105c 100644 --- a/uppsrc/CtrlLib/src.tpp/Bar$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/Bar$en-us.tpp @@ -1,14 +1,283 @@ -TITLE("Bar") -COMPRESSED -120,156,237,92,123,115,219,184,17,255,42,152,203,93,70,114,21,135,79,137,146,174,55,119,151,166,87,79,154,107,39,246,77,255,240,88,17,69,66,22,206,20,161,18,144,28,167,211,124,246,238,130,15,129,20,37,91,178,228,83,154,36,51,38,37,98,23,216,223,62,176,11,128,186,180,200,183,223,26,45,227,153,113,207,191,222,95,232,216,159,71,242,234,146,57,142,215,247,45,183,127,243,230,31,221,254,201,143,141,182,211,68,46,38,112,177,59,166,237,185,182,233,88,109,248,99,218,166,229,90,182,99,122,86,215,241,108,219,51,122,65,228,11,113,117,25,89,158,215,71,34,171,101,61,179,58,174,101,118,28,207,241,76,187,227,89,64,107,25,134,101,116,44,215,116,108,207,114,123,33,21,193,213,165,239,217,253,147,119,109,32,178,177,39,96,110,152,109,203,233,56,150,97,27,150,3,93,153,158,231,152,29,215,179,187,237,118,47,240,103,146,241,56,235,139,153,166,101,246,71,102,167,15,99,254,244,233,211,169,233,24,233,8,28,96,102,26,14,12,213,132,239,12,199,234,152, -110,215,232,186,158,233,25,54,48,119,59,134,219,155,249,137,63,93,47,186,123,175,232,29,163,199,36,5,22,39,127,50,205,14,144,180,91,237,103,166,211,1,65,61,219,113,189,142,1,157,91,150,101,219,150,105,91,221,174,229,182,221,78,111,66,253,144,38,32,130,99,182,213,96,59,173,206,51,215,117,29,104,239,56,110,199,115,44,27,116,227,216,14,64,225,152,93,215,233,186,86,47,166,66,210,112,248,34,133,45,21,191,24,56,142,27,57,121,45,239,89,219,105,119,77,64,223,233,118,28,163,219,54,59,54,130,103,2,236,109,219,177,186,110,193,41,211,218,127,222,255,247,187,215,191,190,248,237,156,92,10,179,255,166,55,132,255,63,251,9,94,84,139,222,0,111,95,201,36,26,144,203,239,12,227,133,97,12,6,63,54,140,83,227,212,114,221,38,201,216,228,79,200,251,229,253,143,6,1,78,250,179,158,254,116,201,99,54,31,69,44,168,99,66,176,227,171,231,87,151,194,234,147,139,9,37,254,72,200,196,15,36,25,249,130,166,157,147,49,79,200,91,26,207,161,51, -226,199,33,185,224,60,130,251,22,241,35,193,201,44,225,11,22,178,248,154,76,169,31,11,34,57,73,64,5,228,134,222,141,184,159,132,196,15,2,26,209,196,151,192,6,190,4,126,9,159,18,9,157,33,195,132,207,37,3,204,78,113,16,70,159,224,197,235,235,48,157,129,13,224,21,6,54,15,100,47,71,73,147,47,125,114,85,60,0,11,211,68,68,122,37,98,7,69,100,34,107,62,79,40,129,15,115,65,67,28,51,42,62,97,35,64,32,12,25,58,129,31,161,104,51,154,72,70,5,225,99,194,226,144,129,164,115,120,48,130,129,163,105,138,83,0,70,78,120,40,64,102,224,24,147,225,137,196,46,128,161,31,69,252,150,4,19,159,197,8,14,48,8,224,171,92,78,101,97,74,88,55,189,127,83,39,178,186,159,250,215,116,216,8,120,44,228,242,243,243,97,179,64,98,80,161,28,16,245,65,221,23,40,12,159,23,136,128,221,40,38,197,179,198,213,42,166,170,191,162,197,210,174,138,33,12,8,116,81,243,245,10,119,189,103,155,176,233,117,241,164,153,171,229,156,74, -161,44,130,33,101,170,147,91,38,39,233,119,32,198,86,168,93,208,15,50,3,12,241,79,134,39,26,88,100,193,18,137,58,188,90,139,222,6,220,144,245,46,176,233,45,38,75,159,37,239,135,39,26,54,82,231,190,10,78,246,228,36,111,169,140,114,91,112,222,208,187,97,3,111,194,91,158,132,219,1,115,175,89,1,243,85,116,6,69,111,3,162,46,53,240,216,24,25,54,136,174,199,16,13,6,36,58,85,250,18,224,93,49,153,248,11,74,166,28,60,91,78,224,163,0,199,139,104,53,0,145,6,143,163,59,197,22,194,155,36,60,86,129,32,100,98,22,249,119,96,121,163,185,68,239,37,126,130,180,146,45,104,115,43,136,223,209,25,245,193,2,71,16,39,247,102,121,41,211,141,182,135,253,213,98,155,148,105,223,15,255,252,30,66,32,45,96,62,139,179,38,128,93,72,91,74,104,30,167,113,58,11,246,8,138,4,219,70,164,48,142,1,76,41,9,13,1,203,219,9,141,129,22,252,22,159,79,120,20,146,144,223,198,132,47,104,130,64,111,103,162,175,38,52,184,217, -51,124,138,231,110,232,5,37,210,2,180,183,254,13,21,69,128,34,195,111,84,59,152,249,191,57,37,191,1,16,42,126,241,248,37,31,143,9,87,105,85,129,33,216,225,20,230,211,108,10,217,202,180,252,144,241,125,91,22,242,60,52,52,156,11,26,35,52,231,108,202,34,176,39,152,33,21,117,43,5,106,193,4,10,32,228,29,56,108,66,5,157,66,202,2,211,230,57,60,13,38,91,97,244,58,246,71,17,221,51,72,41,211,221,80,26,190,167,101,234,21,7,76,185,107,144,53,194,180,114,64,119,74,137,195,237,98,208,5,155,29,106,10,100,179,3,206,128,26,243,2,157,159,66,200,175,124,176,24,30,193,115,180,28,196,41,15,76,91,207,128,127,163,209,161,176,65,214,135,3,103,162,115,175,162,163,205,138,170,29,1,247,161,57,86,59,165,81,69,166,0,55,103,241,152,67,206,217,64,172,224,111,243,113,217,231,250,52,33,235,106,64,178,27,157,65,163,4,70,41,95,104,52,43,112,192,236,189,44,53,0,244,49,187,158,39,232,70,165,100,128,65,15,53,144,172, -77,197,245,175,0,132,30,136,82,71,33,94,79,103,18,177,107,42,117,247,96,180,165,210,164,106,98,107,98,72,165,142,193,188,58,229,92,110,208,104,214,154,145,110,104,25,39,136,58,5,100,70,94,244,189,83,117,11,132,30,136,71,132,141,85,77,134,65,7,59,210,107,178,138,144,231,20,203,123,0,49,5,226,225,18,46,56,11,215,75,88,176,93,145,177,118,240,153,237,231,147,71,78,156,155,61,140,117,131,8,191,178,168,208,100,225,254,66,250,146,5,187,121,127,198,112,105,218,205,42,200,62,76,109,99,154,208,56,80,174,25,206,167,211,187,108,142,124,161,140,118,170,170,201,180,82,132,228,129,168,98,82,53,192,100,148,93,199,144,219,134,155,212,2,89,112,234,180,175,128,197,200,15,110,204,225,247,249,243,231,195,31,134,173,218,212,191,34,245,253,147,26,104,10,122,90,227,196,69,215,3,82,220,22,77,191,87,35,249,65,159,31,161,204,46,22,39,72,171,140,253,14,117,3,224,141,131,19,170,74,207,151,23,200,132,129,211,39,193,4,18,127,42,36,166,22, -99,158,92,158,144,162,187,188,158,208,35,4,212,22,99,226,199,119,74,235,80,93,136,84,33,90,11,72,150,133,224,1,195,68,56,207,155,115,161,243,250,12,253,137,197,11,126,131,77,226,48,87,114,162,121,222,6,149,254,156,80,255,166,100,164,107,188,169,164,30,69,85,99,137,106,1,36,27,192,8,219,64,58,63,79,192,34,165,130,75,77,26,13,240,160,128,71,243,105,220,84,227,5,235,72,36,26,111,76,111,177,90,218,48,216,95,124,152,90,89,44,183,28,45,144,109,156,54,129,99,173,242,5,251,88,206,170,180,103,222,170,89,148,195,197,181,63,67,13,105,234,87,236,200,140,125,160,145,120,88,12,129,129,191,99,215,19,185,181,126,114,194,26,21,101,163,196,225,65,21,139,165,40,248,125,154,27,66,98,44,115,171,82,107,82,249,42,154,62,217,39,200,87,201,178,97,224,208,73,22,39,100,18,149,86,147,30,50,122,160,94,231,251,106,33,83,173,42,214,5,73,40,25,244,71,169,204,247,12,77,133,172,115,16,231,15,26,100,37,34,225,72,6,228,188,100, -121,186,73,126,220,82,58,244,150,214,246,46,179,127,233,30,224,111,193,135,29,233,150,49,186,226,165,198,3,208,82,133,92,107,191,198,250,144,186,141,198,235,108,96,95,86,190,34,217,94,109,253,41,101,60,128,147,172,130,179,79,87,249,99,192,57,10,31,179,234,138,70,53,96,114,203,194,107,42,243,153,100,148,205,125,86,58,133,192,229,108,92,93,137,78,233,48,53,10,233,24,102,161,144,76,120,194,62,242,88,250,209,203,5,238,158,64,50,75,34,126,173,174,51,46,212,230,10,153,227,218,44,249,59,29,203,127,114,241,242,130,207,224,210,82,188,99,30,15,95,124,164,9,87,83,24,78,114,43,196,165,109,155,177,154,250,128,48,111,158,201,192,226,98,254,38,4,114,18,194,225,99,66,48,145,132,158,238,248,92,173,24,11,148,54,39,30,221,169,204,91,173,59,81,249,142,6,178,97,180,136,129,75,84,161,156,180,160,176,198,169,181,185,138,9,101,138,247,82,114,92,226,43,132,223,36,135,170,179,90,154,208,58,180,31,174,74,31,33,55,205,50,55,181,181,74, -37,77,132,170,11,16,140,154,65,45,104,172,146,215,52,79,80,105,168,234,2,243,187,152,75,200,187,169,192,196,15,176,201,248,134,52,136,176,132,130,193,53,91,228,23,42,223,178,24,157,184,209,84,155,128,43,106,207,20,113,154,45,96,53,180,6,224,59,77,109,177,24,201,17,231,165,129,165,203,90,8,84,200,132,186,101,242,190,132,37,13,9,165,165,155,214,202,198,88,75,175,65,54,46,84,108,168,229,30,17,51,74,75,125,181,46,188,191,77,162,109,216,87,182,238,54,111,210,233,207,170,177,47,131,118,89,221,213,199,163,209,86,49,190,110,145,233,179,209,237,227,214,174,142,89,137,213,135,235,85,121,12,94,249,101,56,214,150,58,81,249,152,76,96,86,67,53,28,149,98,6,203,177,65,182,168,174,107,128,251,63,84,206,49,68,189,175,129,235,222,57,232,56,103,156,3,7,189,39,153,35,62,215,25,225,208,193,250,104,34,243,81,38,139,159,75,78,120,252,24,27,69,181,152,46,7,196,233,110,5,212,102,234,116,138,218,71,227,17,46,2,96,57,153,209,46, -79,159,65,113,151,85,144,173,98,155,195,15,195,180,46,71,14,125,220,79,212,200,82,33,42,116,37,42,189,191,17,212,235,170,186,45,26,215,178,82,11,1,190,32,44,192,130,58,78,135,14,124,212,206,69,221,152,115,130,172,175,236,80,78,126,186,224,148,252,75,157,101,202,143,231,32,133,160,17,13,112,127,103,137,72,78,53,155,139,9,13,75,67,3,152,181,13,159,83,253,81,102,43,184,232,160,157,245,192,205,183,185,168,142,87,109,69,49,165,149,234,249,53,184,248,225,239,115,160,171,221,208,38,63,69,17,89,248,9,243,99,89,156,75,173,236,60,170,253,172,219,9,11,38,106,21,100,68,139,5,149,241,60,81,107,25,105,15,213,147,3,100,135,2,125,195,110,228,103,228,172,251,155,49,118,218,22,221,101,78,125,26,176,63,55,188,182,95,67,250,66,141,246,233,39,176,131,122,198,49,232,248,139,87,211,114,235,65,204,71,56,201,158,146,191,46,103,213,22,17,108,58,139,238,48,33,72,15,113,21,27,221,218,204,168,216,62,120,94,221,176,164,140,239,180,148, -207,49,109,179,171,84,162,94,106,189,214,28,213,219,51,59,157,227,40,40,31,208,195,142,135,47,50,210,141,134,187,143,3,24,245,35,222,237,248,132,78,124,15,50,96,111,216,250,113,167,29,144,195,42,64,123,220,11,94,25,226,35,118,130,247,54,216,189,111,234,174,74,185,251,150,238,1,164,60,138,221,217,117,168,61,233,222,87,61,184,95,179,149,67,172,252,232,234,125,250,53,225,3,104,250,235,162,114,170,210,99,241,213,175,238,182,70,55,203,221,167,131,238,140,237,170,160,45,118,199,14,173,161,233,99,181,179,69,106,112,12,241,239,75,11,97,233,219,255,130,102,7,129,210,99,69,244,223,115,182,240,35,138,203,136,106,73,55,125,132,239,235,241,185,36,151,39,36,5,239,228,37,33,87,217,113,171,216,159,210,150,122,131,118,70,147,49,79,166,120,102,121,70,213,91,180,4,223,166,87,135,139,240,221,6,40,243,150,175,155,168,82,112,125,165,134,239,122,237,94,169,149,168,151,186,174,181,68,245,86,217,78,149,90,65,249,128,30,118,172,212,50,210,141,177,228, -0,149,90,214,237,110,149,154,78,124,15,50,224,141,216,250,113,149,218,133,158,174,28,162,82,91,25,226,35,42,181,189,13,118,239,149,218,170,148,187,87,106,7,144,242,40,42,181,29,131,102,10,199,30,130,102,190,91,182,113,79,166,242,123,15,235,166,205,7,170,114,79,63,240,112,176,77,226,141,239,172,30,76,246,61,36,10,143,194,161,48,196,98,215,47,228,234,132,175,31,134,217,18,42,152,98,156,157,82,174,108,238,166,134,7,4,216,184,250,91,61,27,108,235,76,100,191,9,164,189,232,186,4,178,128,182,238,117,208,123,95,115,205,56,151,155,104,47,186,102,201,212,230,87,88,81,206,205,238,113,38,178,151,200,15,32,66,198,249,113,34,220,239,225,103,2,223,117,4,187,19,7,144,33,103,253,56,33,84,212,18,192,74,253,14,82,245,215,92,116,43,187,250,31,156,148,212,162, +topic "Bar"; +[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 +[ {{10000t/25b/25@3 [s0;%- [*@(229)4 Bar]]}}&] +[s3;%- &] +[s1;:Bar`:`:class:%- [@(0.0.255)3 class][3 _][*3 Bar][3 _:_][@(0.0.255)3 public][3 _][*@3;3 Ctrl]&] +[s9; The abstract base class for MenuBar and ToolBar, also providing +means to read keyboard accelerator keys from the Bar routines.&] +[s9; &] +[s0; [/ Derived from] [^topic`:`/`/CtrlCore`/src`/Ctrl`$en`-us`#`:`:Ctrl`:`:class Ctrl^ C +trl]&] +[s3; &] +[s0; &] +[ {{10000F(128)G(128)@1 [s0; [* Public Member List]]}}&] +[s3;%- &] +[s5;:Bar`:`:IsEmpty`(`)const:%- [@(0.0.255) virtual] [@(0.0.255) bool]_[* IsEmpty]()_[@(0.0.255) c +onst]_`=_[@3 0]&] +[s2; Returns true if Bar is empty.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Separator`(`):%- [@(0.0.255) virtual] [@(0.0.255) void]_[* Separator]()_`=_[@3 0]&] +[s2; Adds a visual separator to the Bar.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:NilItem`(`):%- [@(0.0.255) static] [_^Bar`:`:Item^ Item][@(0.0.255) `&]_[* NilIte +m]()&] +[s2; Returns a reference to dummy item `- all method calls on this +item are ignored.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Scan`(Callback1``,dword`):%- [@(0.0.255) static] +[@(0.0.255) bool]_[* Scan]([_^Callback1^ Callback1][@(0.0.255) <]Bar[@(0.0.255) `&>]_[*@3 pro +c], [_^dword^ dword]_[*@3 key])&] +[s2; Scans bar routines hierarchy testing for[* ][%-*@3 key] accelerator. +If any Item has this accelerator, associated action Callback +of item is invoked and method returns true.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Break`(`):%- [@(0.0.255) void]_[* Break]()&] +[s2; This method breaks current bar line (or column) and starts a +new one.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Gap`(int`):%- [@(0.0.255) void]_[* Gap]([@(0.0.255) int]_[*@3 size]_`=_[@3 8])&] +[s2; Adds a visual gap of [%-*@3 size] pixels to the Bar.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:GapRight`(`):%- [@(0.0.255) void]_[* GapRight]()&] +[s2; Adds a gap that aligns the rest of items of the Bar line to +the right size.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Add`(Ctrl`&`):%- [@(0.0.255) void]_[* Add]([_^Ctrl^ Ctrl][@(0.0.255) `&]_[*@3 ctrl]) +&] +[s5;:Bar`:`:Add`(Ctrl`&`,Size`):%- [@(0.0.255) void]_[* Add]([_^Ctrl^ Ctrl][@(0.0.255) `&]_[*@3 c +trl], [_^Size^ Size]_[*@3 sz])&] +[s5;:Bar`:`:Add`(Ctrl`&`,int`,int`):%- [@(0.0.255) void]_[* Add]([_^Ctrl^ Ctrl][@(0.0.255) `& +]_[*@3 ctrl], [@(0.0.255) int]_[*@3 cx], [@(0.0.255) int]_[*@3 cy]_`=_[@3 0])&] +[s5;:Bar`:`:Add`(bool`,Ctrl`&`):%- [@(0.0.255) void]_[* Add]([@(0.0.255) bool]_[*@3 en], +[_^Ctrl^ Ctrl][@(0.0.255) `&]_[*@3 ctrl])&] +[s5;:Bar`:`:Add`(bool`,Ctrl`&`,Size`):%- [@(0.0.255) void]_[* Add]([@(0.0.255) bool]_[*@3 en], + [_^Ctrl^ Ctrl][@(0.0.255) `&]_[*@3 ctrl], [_^Size^ Size]_[*@3 sz])&] +[s5;:Bar`:`:Add`(bool`,Ctrl`&`,int`,int`):%- [@(0.0.255) void]_[* Add]([@(0.0.255) bool]_[*@3 e +n], [_^Ctrl^ Ctrl][@(0.0.255) `&]_[*@3 ctrl], [@(0.0.255) int]_[*@3 cx], +[@(0.0.255) int]_[*@3 cy]_`=_[@3 0])&] +[s2; Adds a [%-*@3 ctrl] widget to the bar.&] +[s2; &] +[s2; If the [%-*@3 ctrl] has defined horizontal/vertical logical position +using LeftPos/TopPos, the non`-zero size of logical position +is used to define the size of widget in the Bar. (in other words, +you can set the size by calling SetRect(0, 0, width, height).&] +[s2; &] +[s2; If either horizontal or vertical size of logical position is +empty, non`-zero [%-*@3 cx] [%-*@3 cy] method parameters are used.&] +[s2; &] +[s2; If even any of them is zero (or not present in method declaration), +GetMinSize() for [%-*@3 ctrl] is used. Enable([%-*@3 en]) is called +for the widget to enable or disable it.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Add`(bool`,const char`*`,const Image`&`,Callback`):%- [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* Add]([@(0.0.255) bool]_[*@3 enable], [@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 text], +[@(0.0.255) const]_[_^Image^ UPP`::Image][@(0.0.255) `&]_[*@3 image], +[_^Callback^ Callback]_[*@3 callback])&] +[s5;:Bar`:`:Add`(bool`,KeyInfo`&`(`*`)`(`)`,const Image`&`,Callback`):%- [_^Bar`:`:Item^ I +tem][@(0.0.255) `&]_[* Add]([@(0.0.255) bool]_[*@3 enable], [_^KeyInfo^ KeyInfo][@(0.0.255) `& +]_(`*[*@3 key])(), [@(0.0.255) const]_UPP`::Image[@(0.0.255) `&]_[*@3 image], +Callback_[*@3 callback])&] +[s5;:Bar`:`:Add`(const char`*`,const Image`&`,Callback`):%- [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* Add]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 text], [@(0.0.255) const]_[_^Image^ UPP +`::Image][@(0.0.255) `&]_[*@3 image], [_^Callback^ Callback]_[*@3 callback])&] +[s5;:Bar`:`:Add`(const String`&`,const Image`&`,Callback`):%- [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* Add]([@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 text], +[@(0.0.255) const]_[_^Image^ UPP`::Image][@(0.0.255) `&]_[*@3 image], +[_^Callback^ Callback]_[*@3 callback])&] +[s5;:Bar`:`:Add`(KeyInfo`&`(`*`)`(`)`,const Image`&`,Callback`):%- [_^Bar`:`:Item^ Item +][@(0.0.255) `&]_[* Add]([_^KeyInfo^ KeyInfo][@(0.0.255) `&]_(`*[*@3 key])(), +[@(0.0.255) const]_UPP`::Image[@(0.0.255) `&]_[*@3 image], Callback_[*@3 callback])&] +[s5;:Bar`:`:Add`(bool`,const char`*`,Callback`):%- [_^Bar`:`:Item^ Item][@(0.0.255) `&]_[* A +dd]([@(0.0.255) bool]_[*@3 enable], [@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 text], +[_^Callback^ Callback]_[*@3 callback])&] +[s5;:Bar`:`:Add`(const char`*`,Callback`):%- [_^Bar`:`:Item^ Item][@(0.0.255) `&]_[* Add]([@(0.0.255) c +onst]_[@(0.0.255) char]_`*[*@3 text], [_^Callback^ Callback]_[*@3 callback])&] +[s5;:Bar`:`:Add`(const Image`&`,Callback`):%- [_^Bar`:`:Item^ Item][@(0.0.255) `&]_[* Add]( +[@(0.0.255) const]_[_^Image^ UPP`::Image][@(0.0.255) `&]_[*@3 image], +[_^Callback^ Callback]_[*@3 callback])&] +[s5;:Bar`:`:Add`(bool`,const Image`&`,Callback`):%- [_^Bar`:`:Item^ Item][@(0.0.255) `&]_ +[* Add]([@(0.0.255) bool]_[*@3 enable], [@(0.0.255) const]_[_^Image^ UPP`::Image][@(0.0.255) `& +]_[*@3 image], [_^Callback^ Callback]_[*@3 callback])&] +[s2; Adds an item to menu or toolbar. If [%-*@3 text] is present, item +is added to menu; if [%-*@3 image] is present, it is added to toolbar. +If both are present, [%-*@3 image] is used as icon in menu too +and [%-*@3 text] is used as toolbar button tooltip. When menu item +is selected or toolbar button pushed, [%-*@3 cb] is invoked. [%-*@3 enable] +sets the item status and [%-*@3 key] is an accelerator key or adjustable +accelerator info. All variants return a reference to Item which +can be used to further adjust the item.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Add`(bool`,const char`*`,Callback1``):%- [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* Add]([@(0.0.255) bool]_[*@3 enable], [@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 text], +[_^Callback1^ Callback1][@(0.0.255) <]Bar[@(0.0.255) `&>]_[*@3 proc])&] +[s5;:Bar`:`:Add`(const char`*`,Callback1``):%- [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* Add]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 text], [_^Callback1^ Callback1][@(0.0.255) < +]Bar[@(0.0.255) `&>]_[*@3 proc])&] +[s5;:Bar`:`:Add`(bool`,const char`*`,const Image`&`,Callback1``):%- [_^Bar`:`:Item^ I +tem][@(0.0.255) `&]_[* Add]([@(0.0.255) bool]_[*@3 enable], [@(0.0.255) const]_[@(0.0.255) ch +ar]_`*[*@3 text], [@(0.0.255) const]_[_^Image^ UPP`::Image][@(0.0.255) `&]_[*@3 image], +[_^Callback1^ Callback1][@(0.0.255) <]Bar[@(0.0.255) `&>]_[*@3 proc])&] +[s5;:Bar`:`:Add`(const char`*`,const Image`&`,Callback1``):%- [_^Bar`:`:Item^ I +tem][@(0.0.255) `&]_[* Add]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 text], +[@(0.0.255) const]_[_^Image^ UPP`::Image][@(0.0.255) `&]_[*@3 image], +[_^Callback1^ Callback1][@(0.0.255) <]Bar[@(0.0.255) `&>]_[*@3 proc])&] +[s2; Adds a submenu. For toolbar, simply adds all items of [%-*@3 proc]. +[%-*@3 enable] sets the item status.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:MenuSeparator`(`):%- [@(0.0.255) void]_[* MenuSeparator]()&] +[s5;:Bar`:`:MenuBreak`(`):%- [@(0.0.255) void]_[* MenuBreak]()&] +[s5;:Bar`:`:MenuGap`(int`):%- [@(0.0.255) void]_[* MenuGap]([@(0.0.255) int]_[*@3 size]_`=_[@3 8 +])&] +[s5;:Bar`:`:MenuGapRight`(`):%- [@(0.0.255) void]_[* MenuGapRight]()&] +[s5;:Bar`:`:AddMenu`(Ctrl`&`):%- [@(0.0.255) void]_[* AddMenu]([_^Ctrl^ Ctrl][@(0.0.255) `&]_ +[*@3 ctrl])&] +[s5;:Bar`:`:AddMenu`(Ctrl`&`,Size`):%- [@(0.0.255) void]_[* AddMenu]([_^Ctrl^ Ctrl][@(0.0.255) `& +]_[*@3 ctrl], [_^Size^ Size]_[*@3 sz])&] +[s5;:Bar`:`:AddMenu`(Ctrl`&`,int`,int`):%- [@(0.0.255) void]_[* AddMenu]([_^Ctrl^ Ctrl][@(0.0.255) `& +]_[*@3 ctrl], [@(0.0.255) int]_[*@3 cx], [@(0.0.255) int]_[*@3 cy]_`=_[@3 0])&] +[s5;:Bar`:`:AddMenu`(bool`,const char`*`,const Image`&`,Callback`):%- [_^Bar`:`:Item^ I +tem][@(0.0.255) `&]_[* AddMenu]([@(0.0.255) bool]_[*@3 enable], [@(0.0.255) const]_[@(0.0.255) c +har]_`*[*@3 text], [@(0.0.255) const]_[_^Image^ UPP`::Image][@(0.0.255) `&]_[*@3 image], +[_^Callback^ Callback]_[*@3 callback])&] +[s5;:Bar`:`:AddMenu`(bool`,KeyInfo`&`(`*`)`(`)`,const Image`&`,Callback`):%- [_^Bar`:`:Item^ I +tem][@(0.0.255) `&]_[* AddMenu]([@(0.0.255) bool]_[*@3 enable], [_^KeyInfo^ KeyInfo][@(0.0.255) `& +]_(`*[*@3 key])(), [@(0.0.255) const]_UPP`::Image[@(0.0.255) `&]_[*@3 image], +Callback_[*@3 callback])&] +[s5;:Bar`:`:AddMenu`(const char`*`,const Image`&`,Callback`):%- [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* AddMenu]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 text], [@(0.0.255) const]_[_^Image^ U +PP`::Image][@(0.0.255) `&]_[*@3 image], [_^Callback^ Callback]_[*@3 callback])&] +[s5;:Bar`:`:AddMenu`(const String`&`,const Image`&`,Callback`):%- [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* AddMenu]([@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 t], +[@(0.0.255) const]_[_^Image^ UPP`::Image][@(0.0.255) `&]_[*@3 m], [_^Callback^ Callback]_[*@3 c +])&] +[s5;:Bar`:`:AddMenu`(KeyInfo`&`(`*`)`(`)`,const Image`&`,Callback`):%- [_^Bar`:`:Item^ I +tem][@(0.0.255) `&]_[* AddMenu]([_^KeyInfo^ KeyInfo][@(0.0.255) `&]_(`*[*@3 key])(), +[@(0.0.255) const]_UPP`::Image[@(0.0.255) `&]_[*@3 m], Callback_[*@3 c])&] +[s2; These methods are equivalents to methods without [* Menu][*/ ]in +the name, but perform respective operations only if Bar is menu.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:ToolSeparator`(`):%- [@(0.0.255) void]_[* ToolSeparator]()&] +[s5;:Bar`:`:ToolBreak`(`):%- [@(0.0.255) void]_[* ToolBreak]()&] +[s5;:Bar`:`:ToolGap`(int`):%- [@(0.0.255) void]_[* ToolGap]([@(0.0.255) int]_[*@3 size]_`=_[@3 8 +])&] +[s5;:Bar`:`:ToolGapRight`(`):%- [@(0.0.255) void]_[* ToolGapRight]()&] +[s5;:Bar`:`:AddTool`(Ctrl`&`):%- [@(0.0.255) void]_[* AddTool]([_^Ctrl^ Ctrl][@(0.0.255) `&]_ +[*@3 ctrl])&] +[s5;:Bar`:`:AddTool`(Ctrl`&`,Size`):%- [@(0.0.255) void]_[* AddTool]([_^Ctrl^ Ctrl][@(0.0.255) `& +]_[*@3 ctrl], [_^Size^ Size]_[*@3 sz])&] +[s5;:Bar`:`:AddTool`(Ctrl`&`,int`,int`):%- [@(0.0.255) void]_[* AddTool]([_^Ctrl^ Ctrl][@(0.0.255) `& +]_[*@3 ctrl], [@(0.0.255) int]_[*@3 cx], [@(0.0.255) int]_[*@3 cy]_`=_[@3 0])&] +[s2; These methods are equivalents to methods without [* Tool][*/ ]in +the name, but perform respective operations only if Bar is toolbar.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:AddKey`(dword`,Callback`):%- [@(0.0.255) virtual] [@(0.0.255) void]_[* AddKey]( +[_^dword^ dword]_[*@3 key], [_^Callback^ Callback]_[*@3 cb])&] +[s5;:Bar`:`:AddKey`(KeyInfo`&`(`*`)`(`)`,Callback`):%- [@(0.0.255) void]_[* AddKey]([_^KeyInfo^ K +eyInfo][@(0.0.255) `&]_(`*[*@3 key])(), Callback_[*@3 cb])&] +[s2; These variants do not add items to neither menu or toolbar, +but do add accelerator keys.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:IsMenuBar`(`)const:%- [@(0.0.255) virtual] [@(0.0.255) bool]_[* IsMenuBar]()_[@(0.0.255) c +onst]&] +[s2; Returns true if Bar is menubar.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:IsToolBar`(`)const:%- [@(0.0.255) virtual] [@(0.0.255) bool]_[* IsToolBar]()_[@(0.0.255) c +onst]&] +[s2; Returns true if Bar is toolbar.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:IsScanKeys`(`)const:%- [@(0.0.255) virtual] [@(0.0.255) bool]_[* IsScanKeys]()_ +[@(0.0.255) const]&] +[s2; Returns true if Bar is only scanning the accelerator keys.&] +[s3; &] +[s0; &] +[s0; &] +[s0;%- &] +[ {{10000@3 [s0; [*@(229)4 Bar`::Item]]}}&] +[s3; &] +[s1;:Bar`:`:Item`:`:struct:%- [@(0.0.255)3 struct][3 _][*3 Item]&] +[s9; This structure is used to describe additional properties of +individual bar items. Methods return `*this to allow chaining +of calls.&] +[s3; &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Member List]]}}&] +[s3; &] +[s5;:Bar`:`:Item`:`:Image`(const Image`&`):%- [_^Bar`:`:Item^ Bar`::Item][@(0.0.255) `&]_[* I +mage]([@(0.0.255) const]_[_^Image^ UPP`::Image][@(0.0.255) `&]_[*@3 img])&] +[s2; Sets the image used with the item.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Item`:`:Text`(const char`*`):%- [@(0.0.255) virtual] [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* Text]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 text])&] +[s2; Sets the [%-*@3 text] of item.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Item`:`:Key`(dword`):%- [@(0.0.255) virtual] [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* Key]([_^dword^ dword]_[*@3 key])&] +[s2; Sets the accelerator [%-*@3 key]. Items can have more than single +accelerator key (only the last one is displayed but all are active).&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Item`:`:Repeat`(bool`):%- [@(0.0.255) virtual] [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* Repeat]([@(0.0.255) bool]_[*@3 repeat]_`=_[@(0.0.255) true])&] +[s2; In repeat mode, action from ToolBar buttons is called repeatedly +when mouse is hold down over them.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Item`:`:Check`(bool`):%- [@(0.0.255) virtual] [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* Check]([@(0.0.255) bool]_[*@3 check])&] +[s2; Makes the item `"checked`". Use with on/off option buttons or +menu items.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Item`:`:Radio`(bool`):%- [@(0.0.255) virtual] [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* Radio]([@(0.0.255) bool]_[*@3 check])&] +[s2; Makes the item `"choosen`". Similar to check, with visual style +resembling Switch.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Item`:`:Enable`(bool`):%- [@(0.0.255) virtual] [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* Enable]([@(0.0.255) bool]_[*@3 `_enable]_`=_[@(0.0.255) true])&] +[s2; Enables the item (default is enabled).&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Item`:`:Tip`(const char`*`):%- [@(0.0.255) virtual] [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* Tip]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 tip])&] +[s2; Adds a tooltip to the ToolBar item.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Item`:`:Help`(const char`*`):%- [@(0.0.255) virtual] [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* Help]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 help])&] +[s2; Adds a [%-*@3 help] line to the the item.&] +[s3; &] +[s4;%- &] +[s5;:Bar`:`:Item`:`:Key`(KeyInfo`&`(`*`)`(`)`):%- [_^Bar`:`:Item^ Item][@(0.0.255) `&]_[* K +ey]([_^KeyInfo^ KeyInfo][@(0.0.255) `&]_(`*[*@3 key])())&] +[s2; Adds all keys from configurable accelerator info.&] +[s3; &] +[s0; ] \ No newline at end of file diff --git a/uppsrc/CtrlLib/src.tpp/BarCtrl$en-us.tpp b/uppsrc/CtrlLib/src.tpp/BarCtrl$en-us.tpp index b93295b05..9ad23dfe0 100644 --- a/uppsrc/CtrlLib/src.tpp/BarCtrl$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/BarCtrl$en-us.tpp @@ -1,9 +1,92 @@ -TITLE("BarCtrl") -COMPRESSED -120,156,189,86,107,111,219,54,20,253,43,4,210,22,118,230,36,36,69,61,44,111,67,155,244,137,62,50,36,30,246,193,176,35,90,162,99,33,178,168,74,84,138,96,88,127,251,46,41,235,97,103,137,189,172,88,2,36,18,117,239,225,185,231,62,200,9,69,207,158,225,1,62,192,59,126,252,215,98,193,203,68,77,39,49,99,222,136,83,123,116,243,241,124,56,58,124,217,115,88,95,163,16,64,177,92,98,121,182,69,24,117,224,15,177,8,181,169,197,136,71,135,204,179,44,15,251,97,194,139,98,58,73,168,231,141,180,19,29,208,3,234,218,148,184,204,99,30,177,92,143,130,47,197,152,98,151,218,132,89,30,181,253,72,20,225,116,194,61,107,116,120,225,128,147,165,119,2,112,76,28,202,92,70,177,133,41,131,173,136,231,49,226,218,158,53,116,28,63,228,153,138,101,186,222,43,38,132,146,209,156,184,35,224,252,253,251,247,99,194,112,197,128,1,24,193,12,168,18,88,195,140,186,196,30,226,161,237,17,15,91,0,110,187,216,246,51,158,243,213,195,161,219,59,67,119, -177,31,43,1,16,135,63,17,226,130,139,51,112,14,8,115,33,80,207,98,182,231,98,216,156,82,106,89,148,88,116,56,164,182,99,187,254,82,240,72,228,16,2,35,142,33,235,14,220,3,219,182,25,216,51,102,187,30,163,22,228,134,89,12,164,96,100,104,179,161,77,253,84,20,74,68,193,81,37,91,21,126,67,92,243,214,72,222,192,59,112,152,51,36,160,62,27,186,12,15,29,226,90,90,60,2,178,59,22,163,67,187,65,90,103,237,207,171,191,158,191,249,114,244,251,37,154,20,100,244,209,15,224,247,148,231,103,42,79,244,163,177,242,103,250,81,47,189,5,201,196,12,77,158,99,124,132,241,108,246,178,135,143,241,49,181,237,62,90,227,213,95,208,85,251,252,18,163,53,100,247,187,223,181,104,113,178,114,158,196,225,63,2,173,185,205,52,90,199,96,128,254,37,16,106,66,153,190,152,78,10,58,66,227,101,92,84,17,160,44,151,183,49,200,140,66,185,90,201,20,173,132,90,202,168,64,11,153,163,207,34,45,97,111,196,211,8,141,165,76,224,249,24,189,22,121, -124,43,34,180,200,229,74,51,27,160,88,33,30,129,75,81,102,153,204,149,113,253,22,71,215,66,161,44,225,161,88,137,20,44,10,52,153,41,153,197,33,132,117,18,156,104,78,103,50,23,193,73,145,135,145,12,131,147,87,115,89,42,67,179,8,158,137,52,56,42,139,25,236,162,105,27,6,133,226,170,44,208,82,36,25,74,226,84,28,235,96,240,8,233,127,246,253,84,254,177,20,233,123,176,245,33,29,93,69,207,120,146,204,121,120,67,102,166,246,81,243,94,203,85,45,255,220,190,182,57,151,105,161,54,205,174,46,85,30,167,215,193,139,95,91,185,235,157,55,213,94,111,131,214,207,160,224,55,176,67,151,34,141,180,241,39,136,8,129,112,103,137,224,121,179,160,99,142,195,38,41,185,248,90,66,61,163,40,46,64,217,59,216,24,169,165,184,175,12,108,201,211,155,2,41,137,100,38,114,174,0,88,222,138,60,145,60,26,128,75,151,79,200,83,52,23,0,153,139,80,37,119,144,168,34,190,78,129,158,70,190,52,200,186,6,98,8,157,167,225,62,170,127,18,11,117, -6,181,120,243,144,244,91,202,111,41,186,161,99,131,85,139,121,214,209,174,44,68,14,101,12,95,11,4,165,59,215,165,154,11,190,131,226,59,161,214,111,191,129,117,170,130,94,221,238,193,97,208,247,107,198,181,246,219,237,168,13,103,219,13,142,174,130,195,38,12,140,182,183,104,204,122,27,104,21,212,131,56,22,250,218,172,247,235,248,47,132,42,243,180,48,217,89,196,57,20,67,102,182,64,114,81,147,66,234,46,19,166,11,31,23,162,91,122,123,138,208,105,134,91,25,71,45,237,78,240,93,216,31,24,248,135,69,77,234,208,24,160,37,239,148,60,138,196,34,214,85,219,43,11,221,22,85,140,126,211,72,85,7,245,7,168,0,118,133,30,89,208,27,90,67,109,168,235,91,206,21,55,0,243,59,211,27,26,100,59,141,168,23,47,96,20,221,245,155,22,111,218,104,71,205,109,116,245,15,212,122,3,247,7,138,125,105,84,18,171,76,221,161,106,194,253,191,122,189,74,96,6,5,189,24,186,179,21,232,241,14,12,94,116,133,49,0,247,5,233,104,26,119,218,242,170, -163,6,223,240,236,40,162,170,166,107,143,52,232,56,61,114,234,81,20,233,51,206,156,87,131,110,165,86,120,245,152,149,122,202,55,157,10,21,90,91,162,211,87,23,193,213,233,249,120,124,254,185,217,29,142,250,135,44,199,231,191,237,99,118,241,225,221,251,241,62,134,159,222,188,109,237,244,41,111,174,202,232,150,39,165,208,103,86,189,233,241,244,241,204,53,165,13,255,199,50,131,90,127,90,2,193,183,77,95,155,5,80,87,203,108,210,219,171,57,245,119,84,211,169,84,74,174,158,76,165,114,223,143,77,149,192,93,132,244,169,246,100,58,218,121,63,50,58,167,187,168,92,196,215,203,167,115,49,222,251,145,49,149,184,139,13,76,144,117,235,7,125,115,219,242,59,29,91,111,211,233,220,173,43,67,117,244,110,244,126,101,209,235,183,215,138,234,22,183,117,156,134,101,110,38,150,241,133,67,66,41,24,104,187,238,58,57,207,254,203,140,210,254,79,26,81,237,192,190,10,126,233,126,32,143,204,45,115,74,246,224,82,16,202,164,92,165,230,126,0,87,66,56,113,120,162, -231,88,209,71,223,128,16,90,201,8,46,144,4,5,71,237,187,30,0,60,84,112,239,31,32,220,124,105,22,13,150,153,124,117,196,3,48,186,15,145,74,181,246,104,7,12,44,67,240,107,156,56,173,96,118,149,201,23,89,105,255,68,225,43,247,71,202,86,127,238,65,4,13,143,233,223,87,76,205,106, - +topic "BarCtrl"; +[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] +[{_} +[ {{10000t/25b/25@3 [s0; [*@(229)4 BarCtrl]]}}&] +[s3; &] +[s1;:BarCtrl`:`:class: [@(0.0.255)3 class][3 _][*3 BarCtrl][3 _:_][@(0.0.255)3 public][3 _][*@3;3 Ba +r][3 , ][@(0.0.255)3 public][3 _][*@3;3 CtrlFrame]&] +[s9;%% This class provides common methods for MenuBar and ToolBar. +Derived from Bar, it adds support for widget placement as [^topic`:`/`/CtrlCore`/srcdoc`/AboutFrames`$en`-us^ f +rame] and status help line.&] +[s3;%% &] +[s0; &] +[ {{10000F(128)G(128)@1 [s0;%% [* Public Member List]]}}&] +[s3; &] +[s5;:BarCtrl`:`:WhenHelp: [_^Callback1^ Callback1][@(0.0.255) +]_[* WhenHelp]&] +[s2;%% This callback is called when SendHelpLine or ClearHelpLine +static methods request displaying the status help line. Thanks +to operator overload, this callback can be directly assigned +the StatusBar instance.&] +[s3;%% &] +[s4; &] +[s5;:BarCtrl`:`:WhenLeftClick: [_^Callback^ Callback]_[* WhenLeftClick]&] +[s2;%% Called when user clicks on bar area.&] +[s3;%% &] +[s4; &] +[s5;:BarCtrl`:`:GetBarCtrlParent`(Ctrl`*`): [@(0.0.255) static] [_^BarCtrl^ BarCtrl]_`*[* G +etBarCtrlParent]([_^Ctrl^ Ctrl]_`*[*@3 child])&] +[s2;%% Returns the first parent of BarCtrl type for [%-*@3 child].&] +[s3;%% &] +[s4; &] +[s5;:BarCtrl`:`:SendHelpLine`(Ctrl`*`): [@(0.0.255) static] [@(0.0.255) void]_[* SendHelpLi +ne]([_^Ctrl^ Ctrl]_`*[*@3 q])&] +[s2;%% If [%-*@3 q] has help line defined (using Ctrl`::HelpLine method), +sends it to the CtrlBar obtained by calling GetBarCtrlParent +(if any) WhenHelp callback.&] +[s3;%% &] +[s4; &] +[s5;:BarCtrl`:`:ClearHelpLine`(Ctrl`*`): [@(0.0.255) static] [@(0.0.255) void]_[* ClearHelp +Line]([_^Ctrl^ Ctrl]_`*[*@3 q])&] +[s2;%% Sends empty String to the CtrlBar obtained by calling GetBarCtrlParent +(if any) WhenHelp callback.&] +[s3;%% &] +[s4; &] +[s5;:BarCtrl`:`:Align`(int`): [_^BarCtrl^ BarCtrl][@(0.0.255) `&]_[* Align]([@(0.0.255) int]_ +[*@3 align])&] +[s2; [%% Sets the placement of bar when used as frame, ][*@3 align][%% +can be one of BarCtrl`::][* BAR`_BOTTOM], [%% BarCtrl`::][* BAR`_TOP], +[%% BarCtrl`::][* BAR`_RIGHT], [%% BarCtrl`::][* BAR`_LEFT]. Default value +is BAR`_TOP.&] +[s3;%% &] +[s4; &] +[s5;:BarCtrl`:`:Top`(`): [_^BarCtrl^ BarCtrl][@(0.0.255) `&]_[* Top]()&] +[s2;%% Same as Align(BAR`_TOP).&] +[s3;%% &] +[s4; &] +[s5;:BarCtrl`:`:Bottom`(`): [_^BarCtrl^ BarCtrl][@(0.0.255) `&]_[* Bottom]()&] +[s2;%% Same as Align(BAR`_BOTTOM).&] +[s3;%% &] +[s4; &] +[s5;:BarCtrl`:`:Left`(`): [_^BarCtrl^ BarCtrl][@(0.0.255) `&]_[* Left]()&] +[s2;%% Same as Align(BAR`_LEFT).&] +[s3;%% &] +[s4; &] +[s5;:BarCtrl`:`:Right`(`): [_^BarCtrl^ BarCtrl][@(0.0.255) `&]_[* Right]()&] +[s2;%% Same as Align(BAR`_RIGHT).&] +[s3;%% &] +[s4; &] +[s5;:BarCtrl`:`:GetAlign`(`)const: [@(0.0.255) int]_[* GetAlign]()_[@(0.0.255) const]&] +[s2;%% Returns current Align setting.&] +[s3;%% &] +[s4; &] +[s5;:BarCtrl`:`:Wrap`(int`): [_^BarCtrl^ BarCtrl][@(0.0.255) `&]_[* Wrap]([@(0.0.255) int]_[*@3 q +]_`=_[@3 1])&] +[s2;%% Sets the line (or column for vertical bars) wrap mode. 1 `- +wrap mode is active, 0 `- wrap is active for frame BarCtrl, `-1 +`- wrap mode is not active. Default is 0 (active in frame).&] +[s3;%% &] +[s4; &] +[s5;:BarCtrl`:`:NoWrap`(`): [_^BarCtrl^ BarCtrl][@(0.0.255) `&]_[* NoWrap]()&] +[s2;%% Same as Wrap(`-1).&] +[s3;%% &] +[s0;%% ] \ No newline at end of file diff --git a/uppsrc/CtrlLib/src.tpp/EditField$en-us.tpp b/uppsrc/CtrlLib/src.tpp/EditField$en-us.tpp index 7ea9c5306..46c575f8b 100644 --- a/uppsrc/CtrlLib/src.tpp/EditField$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/EditField$en-us.tpp @@ -1,14 +1,294 @@ -TITLE("EditField") -COMPRESSED -120,156,189,26,253,143,27,71,245,95,25,181,229,100,31,174,181,187,182,207,62,155,160,124,180,9,81,154,20,229,66,139,100,173,207,235,221,241,121,122,235,93,107,119,246,124,87,68,116,4,82,68,42,209,80,138,2,8,132,130,34,69,105,85,218,3,212,95,162,0,5,170,86,45,130,74,149,104,37,20,145,84,20,85,124,20,161,244,7,132,144,224,205,204,206,238,218,107,159,215,151,11,249,225,98,207,204,123,243,190,63,230,185,169,161,7,30,80,10,202,253,202,140,127,245,135,112,215,8,108,170,55,73,185,92,107,24,90,165,177,126,226,209,229,198,226,193,220,82,57,207,176,168,128,165,84,85,75,181,74,73,45,107,75,240,71,45,169,90,69,43,149,213,154,182,92,174,149,74,53,165,110,218,134,239,235,77,91,171,213,26,12,72,3,32,173,90,209,212,106,185,86,174,169,165,106,77,3,88,77,81,52,165,170,85,212,114,169,166,85,234,22,246,77,189,105,212,74,141,197,211,75,0,84,98,55,1,114,69,93,210,202,213,178,166,148,20,173,12,87,169,181,90,89,173,86, -106,165,229,165,165,186,105,12,40,113,157,240,46,162,170,154,218,232,168,213,6,208,124,246,236,217,162,90,86,4,5,101,64,166,42,101,32,85,133,53,165,172,85,213,202,178,178,92,169,169,53,165,4,200,43,85,165,82,31,24,158,209,159,206,122,101,38,235,85,165,78,40,6,20,139,159,84,213,42,128,44,21,150,238,87,203,85,96,180,86,42,87,106,85,5,46,215,52,173,84,210,212,146,182,188,172,85,150,42,213,122,15,27,22,246,244,230,23,86,191,136,154,126,169,129,30,182,8,61,74,176,109,45,232,77,95,109,156,104,181,235,237,250,17,234,217,45,212,108,181,14,230,148,162,82,212,42,149,60,10,229,220,106,161,85,246,247,160,18,131,138,213,186,88,143,33,6,65,199,38,102,8,194,80,178,43,180,6,10,255,107,126,226,225,83,15,126,110,5,29,60,72,250,198,26,174,151,149,165,5,80,207,246,151,95,221,190,180,29,253,251,215,75,223,251,251,165,87,191,182,253,242,149,139,95,121,233,206,11,59,23,223,191,190,115,254,242,141,15,223,122,229,245,143,222,191, -125,238,169,155,255,124,239,246,15,46,255,105,231,87,255,57,191,243,193,123,79,159,251,198,83,31,220,252,240,217,111,253,246,249,191,94,185,245,242,79,158,185,126,227,214,175,47,124,253,55,231,223,125,243,47,31,125,247,250,246,133,157,23,159,251,195,235,151,174,189,248,194,191,191,122,245,226,223,238,92,251,233,63,158,121,247,157,219,63,255,206,219,111,220,248,243,47,47,95,124,238,202,219,55,223,184,122,238,218,173,159,93,190,242,251,111,254,110,251,249,143,127,248,253,243,59,31,95,189,240,139,119,110,126,233,71,119,254,248,202,155,207,126,251,233,31,191,182,243,95,125,50,47,103,122,196,71,67,98,173,97,138,224,83,224,99,11,13,123,216,193,27,216,67,180,135,61,204,150,13,68,183,6,24,185,93,180,97,216,1,134,13,131,34,211,112,80,7,35,12,66,5,32,226,32,66,125,68,241,38,13,12,27,121,120,224,97,31,59,212,96,22,88,68,143,118,145,233,6,158,143,11,12,43,234,187,62,69,120,131,88,112,98,12,55,92,151,123,60,191,66,61,226,172,21,80, -39,160,177,218,228,149,156,74,234,242,171,145,225,108,33,151,81,42,240,216,100,29,163,135,12,10,23,17,135,22,144,229,130,82,113,17,29,178,192,25,56,49,236,170,24,37,227,206,236,17,224,215,66,157,45,64,13,215,34,61,20,143,176,45,215,1,97,208,22,10,63,200,77,132,58,6,35,196,237,60,129,77,202,232,161,158,225,248,93,215,235,163,199,132,152,92,46,15,32,17,112,27,230,122,145,43,65,17,74,168,52,78,212,25,250,136,20,246,229,24,166,143,17,60,252,12,38,107,61,218,206,177,165,163,174,67,219,249,58,242,25,245,38,106,38,236,21,24,212,87,155,96,216,35,96,122,174,217,146,128,45,196,254,178,67,37,212,229,159,218,7,86,87,168,197,86,115,249,124,104,12,167,49,13,60,199,231,154,49,93,207,99,236,244,56,46,0,242,18,194,218,128,75,192,90,104,15,53,23,37,198,72,26,92,43,236,124,104,17,140,117,189,40,56,46,237,202,50,16,180,7,142,35,168,123,200,240,60,188,50,131,51,237,192,98,6,196,16,3,249,142,101,120,150,228,163, -11,241,19,207,54,129,227,142,15,70,214,206,1,171,237,130,233,58,62,101,171,143,11,135,104,47,48,193,76,148,136,128,3,89,164,55,75,104,224,250,122,97,4,142,99,134,205,86,2,123,11,133,31,244,246,2,7,227,42,148,66,19,23,248,66,28,124,39,18,7,68,3,157,47,179,123,228,234,56,171,251,79,182,164,122,26,209,149,198,190,222,153,92,234,25,30,152,214,226,221,11,9,157,97,17,2,162,144,41,162,139,136,108,129,67,76,215,194,97,56,98,214,100,137,218,131,223,236,99,58,219,142,78,227,190,187,129,67,59,34,194,163,146,44,108,184,196,18,226,16,39,51,139,35,218,114,244,216,159,24,134,144,107,39,102,153,17,107,152,20,123,126,54,19,153,238,13,179,29,33,230,103,146,122,247,108,238,17,47,250,100,149,154,144,212,32,14,0,87,132,103,186,249,57,218,7,134,102,59,194,44,66,184,170,218,139,123,163,97,14,199,152,87,156,247,204,61,146,97,118,46,166,35,243,55,123,94,202,237,13,196,40,178,113,68,33,231,146,157,188,43,155,57,25,123,114, -199,117,237,233,4,159,156,238,200,14,30,166,125,153,97,19,219,62,182,33,11,70,12,157,228,254,204,243,163,32,150,186,99,170,11,241,197,129,236,120,55,220,9,81,69,231,65,123,212,11,160,32,19,27,172,4,131,37,208,18,212,114,116,136,177,3,213,162,201,10,193,49,185,240,186,105,242,101,51,37,182,2,245,129,188,45,75,12,76,158,159,34,64,155,215,18,236,147,50,45,34,246,248,145,227,167,206,180,87,79,30,250,188,148,37,224,22,162,76,240,223,21,150,97,199,82,250,84,200,106,79,231,162,28,223,6,185,132,251,81,117,138,240,166,137,153,67,0,106,99,195,32,182,1,149,46,130,26,116,13,163,28,47,209,65,204,79,98,207,101,46,99,99,103,13,106,25,168,125,153,207,229,121,25,190,133,12,168,239,59,110,224,112,175,34,20,110,214,211,87,127,186,125,32,162,77,46,142,41,19,10,115,19,190,91,9,149,217,163,6,0,52,130,18,231,55,253,99,41,69,46,8,85,66,188,228,241,167,62,102,206,77,222,146,178,158,47,44,19,35,181,134,59,57,29,192, -195,207,16,41,117,161,219,112,161,128,38,236,246,228,110,126,85,231,119,78,42,35,3,40,35,193,134,35,177,112,45,70,29,148,227,198,59,208,213,64,195,50,230,78,9,113,141,203,26,220,131,221,51,114,205,252,105,199,79,136,49,139,232,18,0,145,228,166,241,239,177,190,173,155,236,23,19,98,136,249,202,86,178,140,208,89,159,24,174,100,205,146,112,217,40,18,79,21,186,23,82,219,53,108,214,134,242,158,113,72,124,56,73,97,79,20,48,226,120,88,208,115,99,246,18,60,22,103,49,112,196,29,108,165,169,142,163,12,219,143,73,133,111,36,117,39,248,161,105,147,65,199,133,206,97,230,125,16,89,88,126,156,175,60,10,129,238,170,62,26,171,172,99,228,238,0,123,6,117,189,246,129,61,224,247,245,241,144,185,91,185,144,41,9,140,137,103,63,164,51,165,216,218,165,210,26,165,99,102,169,181,43,9,211,106,173,148,232,184,176,98,239,187,87,117,212,49,201,219,132,152,194,23,226,160,50,162,123,177,42,13,96,36,224,242,176,205,37,48,41,238,76,164,66,154,29, -154,224,8,147,40,75,154,170,30,81,184,43,189,74,154,216,169,241,80,74,127,150,240,34,111,137,77,51,59,181,35,214,200,204,102,132,186,153,180,253,63,44,227,17,94,116,76,228,41,206,178,145,202,197,233,44,12,140,22,51,179,195,178,141,193,227,118,139,203,236,64,28,152,35,23,194,253,1,221,202,118,199,105,12,66,217,237,14,126,32,190,131,127,245,19,79,77,32,116,41,98,246,96,52,59,217,124,214,240,253,161,235,89,237,92,212,19,180,70,14,181,18,15,222,60,74,41,72,194,140,198,150,184,11,24,12,45,94,194,178,108,39,41,149,118,18,73,101,16,34,65,125,176,16,40,115,156,209,21,100,216,246,72,231,15,201,216,34,254,192,54,182,88,129,8,11,62,172,19,127,189,24,233,180,189,72,123,196,207,20,208,143,18,27,160,69,37,152,99,81,52,108,225,178,241,31,33,152,80,227,231,68,36,237,234,249,212,94,62,101,25,17,127,168,203,241,141,37,170,110,162,47,58,52,42,142,117,188,229,83,207,93,199,66,50,93,226,65,74,48,24,14,241,2,205,36, -129,186,129,99,70,45,16,127,108,116,29,123,43,172,177,160,38,241,153,153,240,10,135,242,10,127,79,162,12,223,179,19,233,81,174,44,100,150,166,124,19,159,158,46,83,207,231,97,194,52,245,169,6,38,94,207,101,60,242,138,232,240,86,34,16,249,3,108,146,46,49,227,3,126,33,61,35,48,216,123,127,226,145,150,65,179,81,193,200,176,193,23,15,188,188,240,26,159,88,156,114,105,56,232,136,113,251,16,128,1,232,137,192,103,231,187,160,50,104,123,152,231,234,130,163,184,59,226,53,40,220,141,249,84,196,38,93,76,73,31,163,62,131,76,180,109,209,70,114,38,177,39,101,30,119,192,190,200,6,222,15,165,142,225,218,95,229,146,16,121,90,203,43,129,217,139,191,71,227,40,16,47,155,169,128,34,226,40,34,70,69,108,80,37,134,64,0,5,62,101,35,203,197,194,41,220,161,232,151,186,174,25,248,123,243,14,145,231,196,72,162,179,69,113,118,159,16,144,114,44,193,96,91,136,253,13,223,141,252,233,194,1,123,114,249,0,161,253,160,240,248,68,224,136,13,148, -181,249,196,65,107,32,69,39,6,97,209,4,66,175,59,20,211,184,132,57,197,166,204,131,75,36,36,210,31,0,238,24,3,24,161,40,34,164,119,136,230,135,121,145,231,246,99,140,5,65,27,192,250,60,158,59,98,254,38,34,225,108,225,30,10,168,123,148,107,116,158,212,21,67,77,75,94,157,84,234,130,212,20,131,241,228,84,16,70,195,205,2,173,49,65,184,1,101,140,51,51,234,10,230,38,132,131,145,241,36,119,108,64,40,226,181,236,200,67,15,96,154,163,147,42,42,97,238,209,40,80,76,94,121,190,228,35,72,238,18,128,46,172,1,138,81,66,153,215,116,79,185,73,249,102,147,109,18,38,81,6,25,16,152,64,191,241,94,142,247,206,249,44,125,41,31,226,141,140,243,178,101,103,54,102,219,109,158,151,202,196,233,233,220,252,238,126,196,38,230,186,120,76,152,199,36,19,96,115,217,100,2,46,52,74,86,50,201,202,60,53,159,22,15,4,194,112,77,6,42,12,175,239,66,120,76,241,58,251,221,155,208,35,198,192,159,135,79,9,51,23,147,18,40,228,144, -192,87,98,216,80,186,83,30,205,152,203,57,162,232,17,111,45,16,189,130,1,52,57,38,27,170,207,205,214,169,192,182,39,244,216,5,145,164,108,104,177,178,57,66,136,102,254,57,7,151,64,27,138,200,251,114,161,11,231,219,247,229,11,72,230,73,32,129,101,73,248,79,200,140,56,235,28,230,176,7,169,42,33,54,73,65,40,54,209,129,196,230,16,166,192,221,231,40,242,71,12,139,225,61,241,60,142,221,95,212,231,21,238,73,99,147,231,180,120,90,50,83,144,18,100,202,91,122,63,46,16,30,33,125,86,34,245,141,77,210,15,250,200,9,250,29,200,37,96,30,137,212,151,26,62,244,205,196,51,208,188,236,176,120,182,66,158,196,115,176,35,65,166,177,99,108,154,155,19,223,254,161,205,3,48,17,169,134,196,18,77,107,172,78,195,52,161,109,226,149,173,59,161,179,5,143,152,192,59,191,44,90,228,88,179,164,133,195,144,118,214,60,246,216,63,143,239,39,225,178,251,127,170,176,145,63,49,114,228,207,100,6,6,207,154,60,1,66,202,236,68,151,200,182,102,96, -192,225,112,162,112,38,1,33,179,37,207,191,0,105,132,237,80,129,149,247,160,127,144,165,4,237,96,248,106,141,220,239,163,13,226,19,40,160,10,162,86,98,199,33,166,242,39,117,70,10,144,55,240,92,246,195,36,222,45,36,201,162,200,129,178,61,67,54,57,22,119,169,147,30,115,68,64,0,227,22,135,194,151,176,120,65,31,127,23,25,93,30,127,23,145,162,150,78,16,77,8,198,58,212,76,116,71,221,67,198,215,60,89,255,135,60,200,31,72,165,94,243,198,118,166,189,237,68,180,71,77,65,22,89,139,74,99,154,164,121,21,33,174,229,165,68,74,186,137,197,89,116,177,50,67,146,164,255,15,34,247,224,250, +topic "EditField"; +[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] +[{_} +[ {{10000@3 [s0;%% [*@(229)4 EditField]]}}&] +[s3; &] +[s1;:EditField`:`:class: [@(0.0.255)3 class][3 _][*3 EditField][3 _:_][@(0.0.255)3 public][3 _][*@3;3 C +trl][3 , ][@(0.0.255)3 private][3 _][*@3;3 TextArrayOps]&] +[s0;%% &] +[s2;%% +@@image:406&143 +󫱐⻱˶ႆ១؋蒕Ϊళ +Ċ̅ǗῙȽ¡ȧྡ֓π݁߶ʒ +ű +&] +[s0; &] +[s9;%% This widget is used whenever there is a type of value that +can be edited in its textual representation. Of course, the most +evident type of value is (W)String, but EditField can be used +to edit any other type like Date, int, double. Adaptation of +EditField is achieved by using [^`:`:Convert^ Convert] based object +to transform Value to text and back.&] +[s3; &] +[s0; &] +[ {{10000F(128)G(128)@1 [s0;%% [* Public Member List]]}}&] +[s3; &] +[s5;:EditField`:`:GetViewHeight`(Font`): [@(0.0.255) static] [@(0.0.255) int]_[* GetViewHei +ght]([_^Font^ Font]_[*@3 font]_`=_StdFont())&] +[s2; Returns the correct height for EditField view with [*@3 font][%% +used for edited text].&] +[s3; &] +[s4; &] +[s5;:EditField`:`:GetStdHeight`(Font`): [@(0.0.255) static] [@(0.0.255) int]_[* GetStdHeigh +t]([_^Font^ Font]_[*@3 font]_`=_StdFont())&] +[s2;%% [%- Returns the correct height for EditField with ][%-*@3 font] +used for edited text, including the standard static frame.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:Insert`(int`,const WString`&`): [@(0.0.255) int]_[* Insert]([@(0.0.255) i +nt]_[*@3 pos], [@(0.0.255) const]_[_^WString^ WString][@(0.0.255) `&]_[*@3 text])&] +[s2;%% [%- Inserts ][%-*@3 text] at [%-*@3 pos].&] +[s3; &] +[s4; &] +[s5;:EditField`:`:Insert`(int`,const String`&`): [@(0.0.255) int]_[* Insert]([@(0.0.255) in +t]_[*@3 pos], [@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 text])&] +[s5;:EditField`:`:Insert`(int`,const char`*`): [@(0.0.255) int]_[* Insert]([@(0.0.255) int]_ +[*@3 pos], [@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 text])&] +[s2;%% [%- Inserts ][%-*@3 text] at [%-*@3 pos]. Text is converted to unicode +using the default charset.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:Remove`(int`,int`): [@(0.0.255) void]_[* Remove]([@(0.0.255) int]_[*@3 pos], + [@(0.0.255) int]_[*@3 n])&] +[s2;%% [%- Removes ][%-*@3 n] characters at [%-*@3 pos].&] +[s3; &] +[s4; &] +[s5;:EditField`:`:Insert`(const WString`&`): [@(0.0.255) void]_[* Insert]([@(0.0.255) const +]_[_^WString^ WString][@(0.0.255) `&]_[*@3 text])&] +[s2;%% [%- Inserts] [%-*@3 text] at cursor position.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:Insert`(const String`&`): [@(0.0.255) void]_[* Insert]([@(0.0.255) const]_ +[_^String^ String][@(0.0.255) `&]_[*@3 text])&] +[s5;:EditField`:`:Insert`(const char`*`): [@(0.0.255) void]_[* Insert]([@(0.0.255) const]_[@(0.0.255) c +har]_`*[*@3 text])&] +[s2;%% [%- Inserts] [%-*@3 text] at cursor position. Text is converted +to unicode using the default charset.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:Insert`(int`): [@(0.0.255) void]_[* Insert]([@(0.0.255) int]_[*@3 chr])&] +[s2;%% [%- Inserts a single unicode ][%-*@3 chr] at cursor position.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:Move`(int`,bool`): [@(0.0.255) void]_[* Move]([@(0.0.255) int]_[*@3 newpos], + [@(0.0.255) bool]_[*@3 select]_`=_[@(0.0.255) false])&] +[s2;%% [%- Moves the cursor to] [%-*@3 newpos]. If [%-*@3 select] is true, +selection is set between recent cursor position and [%-*@3 newpos].&] +[s3; &] +[s4; &] +[s5;:EditField`:`:SetSelection`(int`,int`): [@(0.0.255) void]_[* SetSelection]([@(0.0.255) i +nt]_[*@3 l]_`=_[@3 0], [@(0.0.255) int]_[*@3 h]_`=_INT`_MAX)&] +[s2;%% [%- Sets the selection if ][%-*@3 l] < [%-*@3 h][%- . If ][%-*@3 l] +or [%-*@3 h ]exceed the available range (that is zero to length +of text), they are bound to it. I[%- f ][%-*@3 l] >`= [%-*@3 h], selection +is canceled and [%-*@3 l] is the new cursor position.&] +[s3; &] +[s4; &] +[s5;:EditField`:`: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 current selection. If there is no selection, +both] [%-*@3 l] [%-*@3 h] return the current cursor position.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:IsSelection`(`)const: [@(0.0.255) bool]_[* IsSelection]()_[@(0.0.255) con +st]&] +[s2;%% [%- Returns true if there is a selection. ] &] +[s3; &] +[s4; &] +[s5;:EditField`:`:RemoveSelection`(`): [@(0.0.255) bool]_[* RemoveSelection]()&] +[s2; If there is no selection, returns false, otherwise it removes +selected text and returns true.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:Copy`(`): [@(0.0.255) void]_[* Copy]()&] +[s2; Copies selected text to clipboard.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:SetText`(const WString`&`): [@(0.0.255) void]_[* SetText]([@(0.0.255) con +st]_[_^WString^ WString][@(0.0.255) `&]_[*@3 text])&] +[s5;:EditField`:`:operator`=`(const WString`&`): [@(0.0.255) void]_[* operator`=]([@(0.0.255) c +onst]_[_^WString^ WString][@(0.0.255) `&]_[*@3 s])&] +[s2;%% [%- Sets the] [%-*@3 text].&] +[s3; &] +[s4; &] +[s5;:EditField`:`:SetText`(const String`&`): [@(0.0.255) void]_[* SetText]([@(0.0.255) cons +t]_[_^String^ String][@(0.0.255) `&]_[*@3 t])&] +[s5;:EditField`:`:SetText`(const char`*`): [@(0.0.255) void]_[* SetText]([@(0.0.255) const]_ +[@(0.0.255) char]_`*[*@3 t])&] +[s2;%% [%- Sets the text. ]Text is converted to unicode using the default +charset.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:GetText`(`)const: [@(0.0.255) const]_[_^WString^ WString][@(0.0.255) `&]_ +[* GetText]()_[@(0.0.255) const]&] +[s5;:EditField`:`:operator const WString`&`(`)const: [* operator_const_WString`&]()_[@(0.0.255) c +onst]&] +[s2; Returns the text.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:operator String`(`)const: [* operator_String]()_[@(0.0.255) const]&] +[s2;%% [%- Returns the text. ]Text is converted to unicode using the +default charset.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:GetLength`(`)const: [@(0.0.255) virtual] [@(0.0.255) int]_[* GetLength]() +_[@(0.0.255) const]&] +[s2; Returns the length of text.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:Clear`(`): [@(0.0.255) void]_[* Clear]()&] +[s2; Sets the empty text.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:Reset`(`): [@(0.0.255) void]_[* Reset]()&] +[s2; Resets EditField to default state.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:Password`(bool`): [_^EditField^ EditField][@(0.0.255) `&]_[* Password]([@(0.0.255) b +ool]_[*@3 pwd]_`=_[@(0.0.255) true])&] +[s2;%% Sets the password mode. In password mode all characters are +displayed as asterisk. Returns `*this.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:SetFilter`(int`(`*`)`(int`)`): [_^EditField^ EditField][@(0.0.255) `&]_ +[* SetFilter]([@(0.0.255) int]_(`*[*@3 f])([@(0.0.255) int]))&] +[s2;%% [%- Sets the character filter] [%-*@3 f]. All characters keystrokes +are first altered by this function and used only if the result +is not zero. Returns `*this.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:SetConvert`(const Convert`&`): [_^EditField^ EditField][@(0.0.255) `&]_ +[* SetConvert]([@(0.0.255) const]_[_^Convert^ Convert][@(0.0.255) `&]_[*@3 c])&] +[s2;%% Sets the Value converter. By using the specific converters, +EditField can be adapted for editing any type of values with +text representation. Note that EditField stores just reference +to [%-@3 c], therefore its lifetime must exceed the lifetime of +EditField. Returns `*this.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:SetInactiveConvert`(const Convert`&`): [_^EditField^ EditField][@(0.0.255) `& +]_[* SetInactiveConvert]([@(0.0.255) const]_[_^Convert^ Convert][@(0.0.255) `&]_[*@3 c])&] +[s2;%% Sets the inactive Value converter. Such converter is used +to format displayed value when edit control does not own the +focus. Returns `*this.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:SetCharset`(byte`): [_^EditField^ EditField][@(0.0.255) `&]_[* SetCharset +]([_^byte^ byte]_[*@3 cs])&] +[s2;%% Sets the encoding to [%-*@3 cs] `- only characters representable +in given encoding are allowed in EditField. Note that this does +not impact encoding of String values returned from EditField, +only acts as another filter.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:AutoFormat`(bool`): [_^EditField^ EditField][@(0.0.255) `&]_[* AutoFormat +]([@(0.0.255) bool]_[*@3 b]_`=_[@(0.0.255) true])&] +[s2;%% [%- In AutoFormat mode, when focus goes out of editfield, text +representation of value is reformated by current Convert `- text +is converted to Value and back. This mode is active by default.] +Returns `*this.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:NoAutoFormat`(`): [_^EditField^ EditField][@(0.0.255) `&]_[* NoAutoFormat +]()&] +[s2; Same as AutoFormat(false).&] +[s3; &] +[s4; &] +[s5;:EditField`:`:SetFont`(Font`): [_^EditField^ EditField][@(0.0.255) `&]_[* SetFont]([_^Font^ F +ont]_[*@3 `_font])&] +[s2;%% [%- Sets the ][%-*@3 font]. Returns `*this.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:ClickSelect`(bool`): [_^EditField^ EditField][@(0.0.255) `&]_[* ClickSele +ct]([@(0.0.255) bool]_[*@3 b]_`=_[@(0.0.255) true])&] +[s2; In ClickSelect mode, all the text of EditField is select when +clicked by mouse. Returns `*this.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:InitCaps`(bool`): [_^EditField^ EditField][@(0.0.255) `&]_[* InitCaps]([@(0.0.255) b +ool]_[*@3 b]_`=_[@(0.0.255) true])&] +[s2; In InitCaps mode, initial letters of entered text are uppercased. +Returns `*this.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:NullText`(const char`*`,Color`): [_^EditField^ EditField][@(0.0.255) `& +]_[* NullText]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 text]_`=_t`_(`"([@(0.0.255) defa +ult])`"), [_^Color^ Color]_[*@3 ink]_`=_SColorDisabled)&] +[s5;:EditField`:`:NullText`(const char`*`,Font`,Color`): [_^EditField^ EditField][@(0.0.255) `& +]_[* NullText]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 text], [_^Font^ Font]_[*@3 fnt], +[_^Color^ Color]_[*@3 ink])&] +[s2; In NullText mode, empty EditField displays[%% ][*@3 text][%% using +][*@3 ink][%% color and ][%%*@3 fnt][%% as a font.] Returns `*this.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:MaxChars`(int`): [_^EditField^ EditField][@(0.0.255) `&]_[* MaxChars]([@(0.0.255) i +nt]_[*@3 mc])&] +[s2; Limits maximum number of characters to[%% ][*@3 mc][%% .] Returns +`*this.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:AutoSize`(int`): [_^EditField^ EditField][@(0.0.255) `&]_[* AutoSize]([@(0.0.255) i +nt]_[*@3 maxcx]_`=_INT`_MAX)&] +[s2;%% [%- Resizes the width of EditField according to the length of +text up to] [%-*@3 maxcx] width.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:NoBackground`(bool`): [_^EditField^ EditField][@(0.0.255) `&]_[* NoBackgr +ound]([@(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;:EditField`:`:GetFilter`(`)const: [_^CharFilter^ CharFilter]_[* GetFilter]()_[@(0.0.255) c +onst]&] +[s2;%% Returns current character filter.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:GetConvert`(`)const: [@(0.0.255) const]_[_^Convert^ Convert][@(0.0.255) `& +]_[* GetConvert]()_[@(0.0.255) const]&] +[s2; Returns current converter.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:GetFont`(`)const: [_^Font^ Font]_[* GetFont]()_[@(0.0.255) const]&] +[s2; Returns current font.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:AlignRight`(bool`): [_^EditField^ EditField][@(0.0.255) `&]_[* AlignRight +]([@(0.0.255) bool]_[*@3 b]_`=_[@(0.0.255) true])&] +[s2;%% If [%-*@3 b].is true, the text will be displayed aligned to +the right. Left alignment is default.&] +[s3;%% &] +[s4; &] +[s5;:EditField`:`:GetChar`(int`)const: [@(0.0.255) virtual] [@(0.0.255) int]_[* GetChar]([@(0.0.255) i +nt]_[*@3 i])_[@(0.0.255) const]&] +[s2;%% Returns the character at [%-*@3 i] index.&] +[s3;%% &] +[s4; &] +[s5;:EditField`:`:StyleDefault`(`): [@(0.0.255) static] [@(0.0.255) const]_[_^EditField`:`:Style^ S +tyle][@(0.0.255) `&]_[* StyleDefault]()&] +[s2;%% Returns the default style used to draw edit fields.&] +[s3; &] +[s4; &] +[s5;:EditField`:`:SetStyle`(const EditField`:`:Style`&`): [_^EditField^ EditField][@(0.0.255) `& +]_[* SetStyle]([@(0.0.255) const]_[_^EditField`:`:Style^ Style][@(0.0.255) `&]_[*@3 s])&] +[s2;%% Sets the style to an EditField`::Style [%-*@3 s].&] +[s3;%% &] +[s0; &] +[ {{10000@3 [s0;%% [*@(229)4 EditField`::Style]]}}&] +[s3; &] +[s1;:EditField`:`:Style`:`:struct: [@(0.0.255)3 struct][3 _][*3 Style][3 _:_][@(0.0.255)3 public +][3 _][*@3;3 ChStyle][@(0.0.255)3 <][*3 Style][@(0.0.255)3 >][3 _]&] +[s9;%% This structure defines the visual style of an EditField.&] +[s3; &] +[s0; ] \ No newline at end of file diff --git a/uppsrc/CtrlLib/src.tpp/Splitter$en-us.tpp b/uppsrc/CtrlLib/src.tpp/Splitter$en-us.tpp index b1f87f5d1..36a469092 100644 --- a/uppsrc/CtrlLib/src.tpp/Splitter$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/Splitter$en-us.tpp @@ -1,9 +1,116 @@ -TITLE("Splitter") -COMPRESSED -120,156,213,88,255,111,218,70,20,255,87,78,106,27,1,37,236,238,108,99,3,153,148,173,155,186,169,106,87,37,235,38,13,65,57,240,1,167,26,31,178,143,144,102,90,254,246,189,51,216,62,136,19,219,164,251,97,65,2,231,238,222,183,207,251,220,123,15,134,20,189,124,137,219,248,5,46,249,235,255,196,231,108,19,168,209,80,216,182,55,96,212,25,124,121,247,91,111,208,186,108,116,237,166,214,66,64,139,229,18,203,115,44,98,211,46,188,17,139,80,135,90,54,241,104,207,246,44,203,195,253,89,192,226,120,52,12,168,231,13,180,16,5,33,234,58,148,184,182,103,123,196,114,61,10,178,20,99,138,93,234,16,219,242,168,211,247,121,60,27,13,153,103,13,90,87,93,16,178,180,37,80,142,73,151,218,174,77,177,133,169,13,166,136,231,217,196,117,60,171,215,237,246,103,108,173,132,12,247,182,4,33,148,12,166,196,29,128,207,247,247,247,29,98,227,157,7,54,40,35,216,6,87,9,172,97,155,186,196,233,225,158,227,17,15,91,160,220,113,177,211,95,179,136,173,30, -15,221,41,13,221,197,125,161,56,168,104,189,38,196,5,145,110,187,251,130,216,46,4,234,89,182,227,185,24,140,83,74,45,139,18,139,246,122,212,233,58,110,127,201,153,207,163,209,240,239,207,255,188,250,249,195,249,167,107,52,140,173,1,186,94,7,66,41,30,157,141,134,49,25,188,235,79,224,149,174,233,231,4,228,254,88,63,190,81,81,48,70,195,87,24,159,99,60,30,95,54,112,7,119,168,227,52,209,62,19,233,14,250,156,63,95,226,204,132,121,160,111,30,201,21,173,55,211,64,204,138,52,33,109,125,164,189,164,185,211,72,196,136,161,173,240,23,92,33,181,100,10,205,100,168,152,8,99,164,182,18,201,8,173,100,196,209,108,41,2,127,127,12,4,162,136,133,11,238,35,46,212,18,116,44,101,36,238,180,88,16,124,213,34,55,60,82,98,166,255,235,160,79,49,28,152,177,16,148,243,16,177,64,219,132,71,228,139,88,69,98,186,209,172,64,114,14,58,57,67,83,174,182,28,142,137,208,23,55,194,223,176,32,179,57,253,138,252,136,45,22,34,92,160,152,107, -6,40,176,52,101,81,220,209,33,225,1,210,31,78,1,254,215,92,77,26,41,250,147,179,73,219,120,110,246,211,108,24,16,222,72,225,103,160,101,240,233,52,112,149,173,55,50,136,243,196,38,0,167,7,38,103,185,168,133,242,245,54,170,39,153,37,29,53,179,228,105,64,20,138,211,28,42,153,102,45,73,218,65,178,42,160,243,81,198,147,134,8,213,164,173,223,114,72,198,230,217,241,3,18,30,248,153,128,3,138,30,226,99,0,11,234,11,112,181,80,200,183,107,67,52,71,168,130,44,80,133,223,230,59,147,239,205,77,252,24,118,64,64,176,40,82,242,25,132,218,51,48,163,186,74,209,104,101,198,16,11,253,130,213,201,107,68,128,239,161,0,49,208,105,28,56,138,15,241,219,117,196,227,24,129,73,33,219,136,232,138,174,47,162,118,107,190,9,18,210,171,165,190,73,75,46,22,75,213,25,149,36,241,173,145,196,38,80,33,86,125,3,186,212,174,1,97,82,43,15,184,253,246,32,125,187,253,44,135,79,137,30,165,96,191,253,72,30,118,187,205,188,38,37,206,166, -185,185,226,106,19,133,255,101,122,202,113,124,35,55,161,174,23,167,195,152,104,56,2,178,74,196,225,102,53,133,203,12,241,214,186,192,250,245,151,148,171,125,246,107,21,52,45,119,210,141,21,15,47,214,123,246,133,199,105,39,49,225,31,237,234,19,52,5,180,93,202,128,231,117,43,169,249,13,153,244,144,188,183,112,180,20,190,207,195,102,89,228,31,228,46,238,154,65,239,196,242,176,155,121,50,116,227,138,181,187,161,140,86,208,124,228,154,39,119,20,26,215,92,59,172,5,43,112,40,117,235,100,10,153,14,214,96,80,194,116,77,160,59,144,231,41,131,116,29,9,249,2,226,184,225,232,134,5,27,56,56,135,8,67,222,65,168,188,59,188,23,97,97,119,168,216,48,65,252,153,12,171,213,14,182,79,84,252,149,8,197,138,101,213,117,158,226,243,144,173,198,194,22,42,71,11,214,84,38,248,221,174,96,87,104,172,16,251,71,113,203,131,226,246,90,29,192,157,146,255,59,140,235,36,138,50,216,254,128,43,120,112,165,235,77,33,90,188,224,106,39,206,155,243,82,58, -162,194,120,235,115,52,57,63,154,41,145,30,165,150,208,146,147,237,164,38,101,51,110,39,187,115,147,150,62,83,22,209,47,50,186,123,70,68,90,188,74,68,185,131,149,99,74,65,168,27,209,15,190,127,48,81,215,227,52,72,159,58,69,175,89,200,143,152,89,228,223,174,108,203,104,114,1,175,98,71,235,229,32,85,120,113,241,13,61,135,36,2,20,251,222,207,183,230,109,73,78,87,228,85,217,23,155,231,176,173,230,119,28,62,87,5,229,166,226,215,28,61,232,22,84,29,182,2,174,198,154,238,13,3,160,196,84,219,132,108,39,223,28,160,40,161,114,82,8,26,205,65,181,106,243,109,49,60,172,65,245,96,80,114,125,50,132,83,169,148,49,216,148,97,168,77,153,8,238,197,115,8,53,23,202,33,252,145,69,127,234,78,112,60,127,214,195,44,213,114,82,147,123,170,91,101,93,234,160,24,62,232,78,101,151,237,215,56,45,227,143,14,117,83,41,131,220,233,227,169,110,167,160,202,80,87,108,62,237,139,39,155,55,89,89,50,83,254,206,99,64,111,187,228,201,100, -110,254,84,100,52,25,227,119,158,50,240,174,120,204,85,237,57,61,145,42,28,211,99,157,220,107,163,247,249,187,95,67,81,172,152,226,123,111,172,116,182,29,253,11,102,70,36,34, - +topic "Splitter"; +[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] +[{_} +[ {{10000@3 [s0;%% [*@(229)4 Splitter]]}}&] +[s3;%% &] +[s1;:Splitter`:`:class: [@(0.0.255)3 class][3 _][*3 Splitter][3 _:_][@(0.0.255)3 public][3 _][*@3;3 C +trl]&] +[s9;%% Splitter is a widget that contains two or more child widgets +arranged either horizontally or vertically. User can then alter +the distribution of area between individual widgets by dragging +separator bars.&] +[s3;%% &] +[s0; &] +[ {{10000F(128)G(128)@1 [s0;%% [* Public Method List]]}}&] +[s3; &] +[s5;:Splitter`:`:Set`(Ctrl`&`,Ctrl`&`): [@(0.0.255) void]_[* Set]([_^Ctrl^ Ctrl][@(0.0.255) `& +]_[*@3 l], [_^Ctrl^ Ctrl][@(0.0.255) `&]_[*@3 r])&] +[s2;%% Sets t splitter to contain two child widgets.&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:SetPos`(int`,int`): [_^Splitter^ Splitter][@(0.0.255) `&]_[* SetPos]([@(0.0.255) i +nt]_[*@3 newpos], [@(0.0.255) int]_[*@3 index]_`=_[@3 0])&] +[s2; [%% Sets the position of separator between widgets at ][*@3 index][%% +and ][*@3 index][%% `+ 1. Units of ][*@3 newpos] express ratio, 10000 +is the full width or height.&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:GetPos`(int`)const: [@(0.0.255) int]_[* GetPos]([@(0.0.255) int]_[*@3 index]_ +`=_[@3 0])_[@(0.0.255) const]&] +[s2;%% Returns the position of separator between widgets at [%-*@3 index] +and [%-*@3 index] `+ 1.&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:GetCount`(`)const: [@(0.0.255) int]_[* GetCount]()_[@(0.0.255) const]&] +[s2;%% Returns the number of child widgets.&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:Zoom`(int`): [@(0.0.255) void]_[* Zoom]([@(0.0.255) int]_[*@3 i])&] +[s2;%% Makes widget [%-*@3 i] to cover whole splitter area (other widgets +are hidden).&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:NoZoom`(`): [@(0.0.255) void]_[* NoZoom]()&] +[s2;%% Reverts to normal operation after Zoom.&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:GetZoom`(`)const: [@(0.0.255) int]_[* GetZoom]()_[@(0.0.255) const]&] +[s2;%% Returns the index of zoomed widget or negative value if none. + &] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:SetMin`(int`,int`): [@(0.0.255) void]_[* SetMin]([@(0.0.255) int]_[*@3 i], +[@(0.0.255) int]_[*@3 w])&] +[s2;%% Sets the minimal width of widget [%-*@3 i] to [%-*@3 w] `* total +width / 10000.&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:SetMinPixels`(int`,int`): [@(0.0.255) void]_[* SetMinPixels]([@(0.0.255) i +nt]_[*@3 i], [@(0.0.255) int]_[*@3 w])&] +[s2;%% Sets the minimal width of widget [%-*@3 i] to [%-*@3 w] pixels.&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:Vert`(`): [_^Splitter^ Splitter][@(0.0.255) `&]_[* Vert]()&] +[s2;%% Sets splitter to vertical mode `- separator bars in this mode +are horizontal. Returns `*this.&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:Horz`(`): [_^Splitter^ Splitter][@(0.0.255) `&]_[* Horz]()&] +[s2;%% Sets splitter to horizontal mode `- separator bars in this +mode are vertical. Returns `*this.&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:Add`(Ctrl`&`): [@(0.0.255) virtual] [@(0.0.255) void]_[* Add]([_^Ctrl^ Ctrl][@(0.0.255) `& +]_[*@3 pane])&] +[s5;:Splitter`:`:operator`<`<`(Ctrl`&`): [@(0.0.255) virtual] [_^Splitter^ Splitter][@(0.0.255) `& +]_[* operator<<]([_^Ctrl^ Ctrl][@(0.0.255) `&]_[*@3 pane])&] +[s2;%% Adds the new [%-*@3 pane].&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:Horz`(Ctrl`&`,Ctrl`&`): [_^Splitter^ Splitter][@(0.0.255) `&]_[* Horz]([_^Ctrl^ C +trl][@(0.0.255) `&]_[*@3 left], [_^Ctrl^ Ctrl][@(0.0.255) `&]_[*@3 right])&] +[s2;%% Same as Set([%-*@3 left], [%-*@3 right]); return Vert();&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:Vert`(Ctrl`&`,Ctrl`&`): [_^Splitter^ Splitter][@(0.0.255) `&]_[* Vert]([_^Ctrl^ C +trl][@(0.0.255) `&]_[*@3 top], [_^Ctrl^ Ctrl][@(0.0.255) `&]_[*@3 bottom])&] +[s2;%% Same as Set([%-*@3 top] [%-*@3 bottom]); return Horz();&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:BarWidth`(int`): [_^Splitter^ Splitter][@(0.0.255) `&]_[* BarWidth]([@(0.0.255) i +nt]_[*@3 w])&] +[s2;%% Sets the width of separator bar to [%-*@3 w].&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:IsHorz`(`)const: [@(0.0.255) bool]_[* IsHorz]()_[@(0.0.255) const]&] +[s5;:Splitter`:`:IsVert`(`)const: [@(0.0.255) bool]_[* IsVert]()_[@(0.0.255) const]&] +[s2;%% Tests whether Splitter is horizontal or vertical.&] +[s3;%% &] +[s4; &] +[s5;:Splitter`:`:Clear`(`): [@(0.0.255) void]_[* Clear]()&] +[s2;%% Removes panes from Splitter.&] +[s3; &] +[s4; &] +[s5;:Splitter`:`:Reset`(`): [@(0.0.255) void]_[* Reset]()&] +[s2;%% Resets Splitter to default state.&] +[s3;%% &] +[s0;%% ] \ No newline at end of file diff --git a/uppsrc/CtrlLib/src.tpp/SplitterFrame$en-us.tpp b/uppsrc/CtrlLib/src.tpp/SplitterFrame$en-us.tpp index 2814004cd..48435da0f 100644 --- a/uppsrc/CtrlLib/src.tpp/SplitterFrame$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/SplitterFrame$en-us.tpp @@ -1,7 +1,81 @@ -TITLE("SplitterFrame") -COMPRESSED -120,156,221,87,109,111,218,72,16,254,43,43,37,141,128,35,100,223,140,23,251,75,212,187,190,156,154,54,167,132,126,66,166,54,102,41,171,51,54,178,151,52,151,211,229,183,119,214,6,99,167,70,117,123,151,156,20,64,182,97,103,158,153,231,153,177,119,152,80,116,124,140,251,248,8,127,231,229,252,38,23,193,38,210,222,68,113,46,220,128,90,238,159,239,46,71,110,239,188,51,228,93,131,66,0,133,217,132,9,139,17,78,135,112,32,140,80,139,50,78,4,29,113,193,152,192,78,24,5,89,230,77,34,42,132,107,156,104,159,30,81,219,162,196,230,130,11,194,108,65,193,151,98,76,177,77,45,194,153,160,150,51,151,89,232,77,2,193,220,222,213,16,156,152,137,4,224,152,12,41,183,57,197,12,83,14,161,136,16,156,216,150,96,163,225,208,9,131,181,86,73,188,141,165,8,161,196,157,17,219,133,156,239,239,239,7,132,227,34,3,14,96,4,115,72,149,192,111,152,83,155,88,35,60,178,4,17,152,1,184,101,99,203,89,7,105,176,58,76,221,250,46,117,27,59,74, -75,128,232,253,66,136,13,46,195,254,240,136,112,27,136,10,198,45,97,99,8,78,41,101,140,18,70,71,35,106,13,45,219,89,202,96,46,83,111,242,247,167,127,94,188,250,112,250,241,26,77,50,230,162,235,117,164,180,150,233,107,72,74,158,120,147,12,187,200,156,136,251,206,241,225,93,91,55,63,228,170,59,83,115,249,171,78,163,41,154,188,192,248,20,227,233,244,188,131,7,120,64,45,171,139,182,165,217,173,160,79,251,235,115,92,143,89,181,114,170,118,123,180,245,102,22,169,176,17,110,151,70,14,53,69,229,101,197,184,143,154,65,83,117,19,104,217,132,154,195,120,70,5,234,162,241,82,101,5,31,20,132,26,14,240,137,81,42,51,117,23,204,34,137,22,38,28,10,82,25,12,182,30,21,21,173,67,42,94,203,84,5,145,186,147,126,39,255,170,193,127,229,159,248,93,103,167,103,37,213,155,68,205,203,220,202,44,141,144,59,148,114,181,83,83,166,128,157,162,226,92,26,249,39,123,16,134,202,58,161,238,142,115,137,155,115,222,4,81,189,100,8,184,203,65,59, -154,186,32,104,20,5,122,125,21,235,226,176,39,58,213,201,90,133,96,116,230,159,25,179,11,53,243,207,178,52,244,207,234,112,199,50,246,79,55,217,180,185,125,106,164,140,50,250,128,38,69,211,230,21,110,214,163,108,180,74,231,84,138,1,201,55,212,130,229,154,252,156,167,254,107,45,155,106,0,205,86,151,93,39,40,76,98,29,168,120,167,93,47,207,23,125,81,243,207,82,247,225,172,151,16,70,105,168,94,213,196,228,134,188,14,248,173,213,173,140,178,238,160,178,88,196,71,115,9,113,86,42,134,154,235,165,68,235,36,83,230,153,135,252,83,164,52,10,161,231,103,18,61,40,176,51,233,161,139,87,175,199,94,191,105,229,234,247,55,111,15,44,141,47,255,64,94,146,54,45,189,188,28,143,47,223,123,173,218,235,66,46,26,250,235,145,91,203,4,253,63,123,107,223,33,249,131,39,51,157,210,169,247,67,255,97,241,27,170,96,234,214,109,165,114,169,47,156,199,201,250,201,5,135,152,207,64,111,104,249,118,114,95,169,207,203,167,239,234,60,234,51,144,57,127,232, -180,19,250,101,162,117,178,122,114,165,139,176,207,64,234,226,73,221,78,235,247,42,190,206,167,157,7,2,127,99,220,78,195,45,220,183,34,182,145,226,238,192,102,107,182,61,216,0,213,10,54,207,246,19,14,24,66,54,255,21,177,45,220,227,18,67,201,2,197,242,86,111,103,87,24,11,140,69,164,50,141,96,79,94,168,24,236,110,148,252,130,212,194,172,164,96,146,161,56,137,165,25,6,180,153,135,193,101,1,147,225,195,161,97,21,220,170,213,102,85,6,169,49,110,37,231,27,169,199,48,142,192,77,217,133,81,39,211,78,133,247,142,92,133,127,254,175,169,54,18,111,1,234,6,157,238,126,182,207,97,119,242,92,73,189,73,227,34,121,51,6,161,234,140,212,50,223,162,175,255,69,190,213,78,254,129,124,195,77,154,202,88,255,208,48,222,116,15,182,251,163,161,31,231,126,203,59,165,65,116,239,43,28,27,181,172, - +topic "SplitterFrame"; +[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 SplitterFrame]]}}&] +[s3; &] +[s1;:SplitterFrame`:`:class:%- [@(0.0.255)3 class][3 _][*3 SplitterFrame][3 _:_][@(0.0.255)3 pub +lic][3 _][*@3;3 CtrlFrame][3 , ][@(0.0.255)3 private][3 _][*@3;3 Ctrl]&] +[s9; This class acts as an resizable frame area.&] +[s3; &] +[s0; &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:SplitterFrame`:`:Serialize`(Stream`&`):%- [@(0.0.255) virtual] +[@(0.0.255) void]_[* Serialize]([_^Stream^ Stream][@(0.0.255) `&]_[*@3 s])&] +[s2; Serializes actual SplitterFrame size.&] +[s3; &] +[s4;%- &] +[s5;:SplitterFrame`:`:Set`(Ctrl`&`,int`,int`):%- [_^SplitterFrame^ SplitterFrame][@(0.0.255) `& +]_[* Set]([_^Ctrl^ Ctrl][@(0.0.255) `&]_[*@3 c], [@(0.0.255) int]_[*@3 size], +[@(0.0.255) int]_[*@3 type])&] +[s2; Sets SplitterFrame to contain [%-*@3 c] widget, with initial [%-*@3 size +](in pixels).[%-*@3 type] determines the position `- it can be +SplitterFrame`::[* LEFT], SplitterFrame`::[* RIGHT], SplitterFrame`::[* TOP +]or SplitterFrame`::[* BOTTOM].&] +[s3; &] +[s4;%- &] +[s5;:SplitterFrame`:`:Left`(Ctrl`&`,int`):%- [_^SplitterFrame^ SplitterFrame][@(0.0.255) `& +]_[* Left]([_^Ctrl^ Ctrl][@(0.0.255) `&]_[*@3 c], [@(0.0.255) int]_[*@3 size])&] +[s2; Same as Set([%-*@3 c] , [%-*@3 size], SplitterFrame`::LEFT).&] +[s3; &] +[s4;%- &] +[s5;:SplitterFrame`:`:Top`(Ctrl`&`,int`):%- [_^SplitterFrame^ SplitterFrame][@(0.0.255) `& +]_[* Top]([_^Ctrl^ Ctrl][@(0.0.255) `&]_[*@3 c], [@(0.0.255) int]_[*@3 size])&] +[s2; Same as Set([%-*@3 c] , [%-*@3 size], SplitterFrame`::TOP).&] +[s3; &] +[s4;%- &] +[s5;:SplitterFrame`:`:Right`(Ctrl`&`,int`):%- [_^SplitterFrame^ SplitterFrame][@(0.0.255) `& +]_[* Right]([_^Ctrl^ Ctrl][@(0.0.255) `&]_[*@3 c], [@(0.0.255) int]_[*@3 size])&] +[s2; Same as Set([%-*@3 c] , [%-*@3 size], SplitterFrame`::RIGHT).&] +[s3; &] +[s4;%- &] +[s5;:SplitterFrame`:`:Bottom`(Ctrl`&`,int`):%- [_^SplitterFrame^ SplitterFrame][@(0.0.255) `& +]_[* Bottom]([_^Ctrl^ Ctrl][@(0.0.255) `&]_[*@3 c], [@(0.0.255) int]_[*@3 size])&] +[s2; Same as Set([%-*@3 c] , [%-*@3 size], SplitterFrame`::BOTTOM).&] +[s3; &] +[s4;%- &] +[s5;:SplitterFrame`:`:MinSize`(int`):%- [_^SplitterFrame^ SplitterFrame][@(0.0.255) `&]_[* M +inSize]([@(0.0.255) int]_[*@3 sz])&] +[s2; Sets the minimal size.&] +[s3; &] +[s4;%- &] +[s5;:SplitterFrame`:`:SizeMin`(int`):%- [_^SplitterFrame^ SplitterFrame][@(0.0.255) `&]_[* S +izeMin]([@(0.0.255) int]_[*@3 sz])&] +[s2; Sets the minimal size of next frame in the list or final view +if there is none `- this in fact determines the maximum size +of SplitterFrame.&] +[s3; &] +[s4;%- &] +[s5;:SplitterFrame`:`:GetType`(`)const:%- [@(0.0.255) int]_[* GetType]()_[@(0.0.255) const]&] +[s2; Returns the type (in pixels).&] +[s3; &] +[s4;%- &] +[s5;:SplitterFrame`:`:GetSize`(`)const:%- [@(0.0.255) virtual] [@(0.0.255) int]_[* GetSize]( +)_[@(0.0.255) const]&] +[s2; Returns the current size.&] +[s3; &] +[s4;%- &] +[s5;:SplitterFrame`:`:SetSize`(int`):%- [@(0.0.255) void]_[* SetSize]([@(0.0.255) int]_[*@3 s +z])&] +[s2; Sets the size (in pixels).&] +[s3; &] +[s0; ] \ No newline at end of file diff --git a/uppsrc/CtrlLib/src.tpp/Static$en-us.tpp b/uppsrc/CtrlLib/src.tpp/Static$en-us.tpp index b41b6b829..fa1ef5afd 100644 --- a/uppsrc/CtrlLib/src.tpp/Static$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/Static$en-us.tpp @@ -1,11 +1,213 @@ -TITLE("Static widgets") -COMPRESSED -120,156,205,89,107,83,219,56,20,253,43,154,210,118,3,13,25,91,182,99,39,153,206,148,150,150,50,109,217,93,160,179,31,88,130,21,71,73,60,56,150,199,86,72,233,206,246,183,239,149,252,146,19,231,1,100,167,133,25,18,91,210,209,61,247,165,123,197,21,70,207,159,107,77,109,79,219,240,211,61,166,35,50,11,248,245,149,111,154,78,143,96,171,119,251,233,247,78,239,224,77,163,109,238,11,20,29,80,12,91,55,28,203,208,77,220,134,63,186,161,99,11,27,166,238,224,142,233,24,134,163,117,189,128,36,201,245,85,128,29,167,39,22,225,38,222,195,182,133,117,219,116,76,71,55,108,7,195,90,172,105,88,179,177,165,155,134,131,173,238,144,38,222,245,21,113,140,222,193,121,27,22,25,98,39,0,215,244,54,54,109,19,107,134,134,77,216,74,119,28,83,183,45,199,232,180,219,93,143,68,220,103,97,182,151,175,235,88,239,13,116,187,7,50,255,248,241,163,165,155,90,42,129,9,96,186,102,130,168,58,188,211,76,108,235,86,71,235,88,142,238,104,6,128,91,182, -102,117,35,18,147,233,106,234,214,70,234,182,214,245,57,5,136,131,87,186,110,195,146,118,179,189,167,155,54,16,117,12,211,114,108,13,54,199,24,27,6,214,13,220,233,96,171,109,217,221,9,37,67,26,3,5,83,111,75,97,237,166,189,103,89,150,9,243,77,211,178,29,19,27,96,27,211,48,65,21,166,222,177,204,142,133,187,33,77,56,29,186,135,169,218,82,250,133,224,66,110,129,228,52,157,189,182,217,238,232,160,125,179,99,155,90,167,173,219,134,80,158,14,106,111,27,38,238,88,5,82,102,181,127,110,254,125,241,254,236,240,235,5,186,74,140,30,186,224,132,251,30,154,251,195,49,229,201,203,235,171,68,239,125,234,186,240,155,142,92,210,111,92,60,201,213,221,190,248,250,153,12,104,240,150,36,180,143,174,94,104,218,161,166,245,251,111,26,90,75,107,97,203,218,71,217,62,249,8,186,41,191,191,209,80,137,170,78,233,170,147,74,168,104,54,8,124,175,22,75,8,242,142,199,65,31,137,191,202,148,38,122,32,20,42,248,92,11,250,184,208,9,7,33,91,226, -149,214,67,226,195,170,85,204,5,229,31,88,200,221,134,120,144,223,246,187,72,149,178,156,222,175,97,143,220,151,133,36,66,61,41,90,49,218,168,16,22,67,125,84,153,80,46,54,208,72,29,216,47,216,128,93,17,159,208,92,168,131,124,38,98,163,237,57,158,134,183,41,197,119,44,96,241,83,57,2,218,10,138,18,30,140,42,62,106,73,122,149,145,181,44,211,169,15,162,121,20,248,227,208,109,248,79,55,163,68,90,38,169,184,164,191,194,140,164,178,178,202,80,142,77,105,200,85,158,233,130,22,58,10,2,54,167,67,116,71,130,25,133,185,49,69,71,159,79,79,206,220,155,207,239,63,92,54,243,135,119,239,207,46,223,159,23,143,231,167,39,31,47,183,243,129,41,25,83,183,225,177,48,145,175,210,231,151,110,115,7,234,146,88,107,213,37,183,93,86,88,191,144,164,143,170,32,234,30,6,242,167,227,98,164,204,17,91,152,35,137,188,242,189,251,90,29,210,214,248,161,148,5,113,134,6,20,13,253,36,10,200,61,152,102,64,71,12,204,34,38,72,159,84,205,40, -54,66,126,2,159,196,163,48,147,207,41,13,139,169,136,132,195,20,116,43,91,201,175,169,169,144,55,33,177,123,240,84,11,85,70,31,96,32,117,6,8,162,232,242,64,81,37,87,209,83,109,214,115,99,17,141,9,135,20,244,122,135,244,74,208,255,143,97,178,194,89,20,15,144,74,104,33,247,153,251,183,238,62,67,132,75,235,15,232,216,15,67,63,28,231,153,12,17,143,251,119,132,67,140,255,121,249,65,117,135,234,71,126,146,203,3,110,225,16,87,213,243,240,83,92,34,62,233,0,87,109,146,105,227,132,134,96,133,32,184,71,179,4,66,5,66,39,16,219,32,6,74,136,243,10,165,133,142,253,209,136,198,9,26,197,108,170,160,160,193,61,196,120,20,80,145,29,133,178,38,140,223,210,123,20,197,204,163,73,2,111,90,232,163,124,149,102,70,160,7,89,19,246,33,51,206,166,2,69,110,13,40,95,221,87,238,43,20,248,131,152,196,247,77,192,153,211,59,16,0,164,184,71,30,9,33,221,38,76,204,139,98,90,128,204,196,6,200,253,13,178,225,111,210,9,192, -68,52,174,139,212,194,24,91,5,169,156,221,175,234,251,23,10,205,130,204,182,81,185,5,159,159,25,139,101,94,62,29,135,144,168,147,220,164,185,71,78,73,124,155,121,86,178,201,186,233,247,29,152,183,58,188,115,101,4,131,96,131,58,154,185,26,4,253,164,142,255,154,196,243,150,125,171,107,32,30,157,118,0,239,105,153,39,85,103,198,243,156,122,156,132,227,89,64,98,148,168,189,80,97,242,59,63,153,201,212,48,142,217,44,90,200,70,171,92,32,35,253,160,176,128,53,253,37,138,191,70,112,28,201,60,87,58,132,56,137,114,73,55,187,193,31,144,111,67,46,250,52,241,148,240,120,230,241,174,210,193,213,217,47,157,181,210,19,74,200,167,249,130,68,200,72,94,78,160,248,146,14,40,171,176,89,20,177,204,5,160,132,147,222,64,18,20,176,177,56,41,80,36,5,128,162,17,37,62,159,17,113,75,129,230,19,168,215,166,162,190,203,220,67,30,52,233,122,233,60,18,13,6,192,131,90,176,29,69,44,4,191,26,202,3,141,134,80,244,201,51,77,200,36,36,224, -19,40,0,74,162,202,169,127,25,147,48,41,37,144,214,22,234,98,241,102,99,164,39,166,112,251,133,168,92,109,139,109,58,122,1,184,59,83,252,149,134,160,199,196,129,206,41,40,105,228,7,1,168,111,238,243,9,18,103,109,64,211,246,110,117,49,156,83,92,126,147,182,176,13,73,107,213,104,109,53,41,166,244,107,8,47,4,105,181,121,173,141,79,85,163,104,245,90,181,217,112,111,86,180,190,194,145,82,93,160,236,126,79,120,207,133,68,250,0,173,196,102,159,144,109,69,30,159,59,112,137,2,111,119,30,113,156,182,80,40,38,9,20,86,89,35,148,53,89,34,108,33,20,32,134,134,34,28,68,146,202,114,120,156,102,247,160,182,103,170,176,94,211,222,46,184,66,177,172,191,204,243,39,244,181,238,141,218,217,46,159,223,254,98,203,184,34,71,251,30,159,197,116,71,14,144,161,237,220,252,9,58,142,201,92,212,242,53,246,84,40,188,37,222,173,200,184,225,112,205,165,85,54,191,191,40,237,130,17,75,172,101,51,62,253,202,106,80,160,47,223,92,85,226,121,62, -241,121,173,27,43,180,63,81,26,157,139,179,200,109,12,24,11,30,73,184,64,89,235,182,98,131,90,182,183,176,188,114,97,2,71,19,45,72,159,142,210,115,140,54,115,41,228,130,212,87,73,18,65,192,66,140,195,230,162,196,200,141,173,234,129,133,27,148,112,198,20,53,60,82,5,10,70,169,132,130,195,49,67,33,227,82,238,138,200,27,4,3,123,43,217,37,227,182,156,95,182,20,17,208,30,157,86,178,189,251,185,130,87,166,150,104,65,132,106,247,167,112,91,42,116,119,65,241,105,197,238,46,152,46,148,190,53,201,103,69,145,69,197,63,155,64,244,29,30,170,21,204,221,101,214,143,44,246,191,179,144,67,77,203,98,116,71,99,121,19,130,146,124,55,20,248,33,21,183,46,226,44,21,85,238,144,70,52,28,138,64,220,232,252,75,106,248,66,226,177,191,226,126,93,157,219,175,103,187,224,31,41,218,90,223,88,117,169,59,95,115,98,6,116,196,221,195,216,31,79,56,106,140,64,3,147,82,69,133,90,246,133,182,56,139,220,195,1,227,28,170,246,169,20,166,76, -85,242,18,94,36,44,188,149,102,96,247,11,255,59,221,149,106,50,184,157,235,38,1,80,168,170,32,84,32,36,6,247,232,132,242,47,126,40,182,66,238,33,32,122,193,108,152,246,76,4,154,26,47,189,192,156,67,221,54,97,243,188,40,19,173,77,76,161,145,145,213,218,91,34,121,212,40,206,94,136,179,235,255,0,56,57,23,189, - +topic "Static widgets"; +[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 +[s0; [*+150 Static widgets]&] +[s3; &] +[ {{10000@3 [s0; [*@(229)4 StaticText]]}}&] +[s3; &] +[s1;:StaticText`:`:class:%- [@(0.0.255)3 class][3 _][*3 StaticText][3 _:_][@(0.0.255)3 public][3 _ +][*@3;3 Ctrl][3 , ][@(0.0.255)3 public][3 _][*@3;3 LabelBase]&] +[s9; Static text.&] +[s3;%- &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:StaticText`:`:SetFont`(Font`):%- [@(0.0.255) virtual] [_^StaticText^ StaticText][@(0.0.255) `& +]_[* SetFont]([_^Font^ Font]_[*@3 font])&] +[s2; Sets the [%-*@3 font] of text.&] +[s3; &] +[s4;%- &] +[s5;:StaticText`:`:SetInk`(Color`):%- [@(0.0.255) virtual] [_^StaticText^ StaticText][@(0.0.255) `& +]_[* SetInk]([_^Color^ Color]_[*@3 color])&] +[s2; Sets the [%-*@3 color] of text.&] +[s3; &] +[s4;%- &] +[s5;:StaticText`:`:SetAlign`(int`):%- [@(0.0.255) virtual] [_^StaticText^ StaticText][@(0.0.255) `& +]_[* SetAlign]([@(0.0.255) int]_[*@3 align])&] +[s2; Sets alignment [%-*@3 align]. Allowed values are ALIGN`_LEFT, +ALIGN`_CENTER, ALIGN`_RIGHT.&] +[s3; &] +[s4;%- &] +[s5;:StaticText`:`:SetImage`(const Image`&`,int`):%- [@(0.0.255) virtual] +[_^StaticText^ StaticText][@(0.0.255) `&]_[* SetImage]([@(0.0.255) const]_[_^Image^ Image][@(0.0.255) `& +]_[*@3 img], [@(0.0.255) int]_[*@3 spc]_`=_[@3 0])&] +[s2; Sets the Image to be displayed before the text. [%-*@3 spc] is +space between the text and Image.&] +[s3; &] +[s4;%- &] +[s5;:StaticText`:`:SetText`(const char`*`):%- [@(0.0.255) virtual] +[_^StaticText^ StaticText][@(0.0.255) `&]_[* SetText]([@(0.0.255) const]_[@(0.0.255) char]_ +`*[*@3 text])&] +[s5;:StaticText`:`:operator`=`(const char`*`):%- [_^StaticText^ StaticText][@(0.0.255) `& +]_[* operator`=]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 s])&] +[s2; Sets [%-*@3 text]. `"`\1`" at the beginning of text activates +QTF.&] +[s3; &] +[s0; &] +[s0; &] +[s0;%- &] +[ {{10000@3 [s0; [*@(229)4 Label]]}}&] +[s3; &] +[s1;K:`:`:Label`:`:class:%- [@(0.0.255) class][@(64) _]Label[@(64) _:_][@(0.0.255) public][@(64) _ +][^`:`:StaticText^@(64) StaticText]&] +[s9; Generally used to label other widgets. Differs from StaticText +by implementing hotkey processing. Hotkeys are assigned automatically +by U`+`+ library, however they can also by preassigned using +`'`&`' character.&] +[s3;%- &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:Label`:`:SetText`(const char`*`):%- [@(0.0.255) virtual] [_^Label^ Label][@(0.0.255) `& +]_[* SetText]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 text])&] +[s5;:Label`:`:operator`=`(const char`*`):%- [@(0.0.255) virtual] [_^Label^ Label][@(0.0.255) `& +]_[* operator`=]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 s])&] +[s2; Sets the text. Ignores `'`&`' used to mark hotkeys.&] +[s3; &] +[s4;%- &] +[s5;:Label`:`:SetLabel`(const char`*`):%- [_^Label^ Label][@(0.0.255) `&]_[* SetLabel]([@(0.0.255) c +onst]_[@(0.0.255) char]_`*[*@3 lbl])&] +[s2; Sets the text, `'`&`' marks hotkeys.&] +[s3; &] +[s0; &] +[s0; &] +[s0;%- &] +[ {{10000@3 [s0; [*@(229)4 LabelBox]]}}&] +[s3; &] +[s1;:LabelBox`:`:class:%- [@(0.0.255)3 class][3 _][*3 LabelBox][3 _:_][@(0.0.255)3 public][3 _][*@3;3 L +abel]&] +[s9; Rectangular static widget used to visually group other widgets.&] +[s3;%- &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:LabelBox`:`:operator`=`(const char`*`):%- [@(0.0.255) virtual] +[_^LabelBox^ LabelBox][@(0.0.255) `&]_[* operator`=]([@(0.0.255) const]_[@(0.0.255) char]_`* +[*@3 s])&] +[s2; Assigns the text of LabelBox.&] +[s3; &] +[s0; &] +[s0; &] +[s0;%- &] +[ {{10000@3 [s0; [*@(229)4 ParentCtrl]]}}&] +[s3; &] +[s1;:ParentCtrl`:`:class:%- [@(0.0.255)3 class][3 _][*3 ParentCtrl][3 _:_][@(0.0.255)3 public][3 _ +][*@3;3 Ctrl]&] +[s9; This class is supposed to be used as logical parent in situation +when more widgets are to be grouped together. The only difference +from Ctrl is that ParentCtrl activates Transparent in constructor.&] +[s3; &] +[s0; &] +[s0; &] +[s0;%- &] +[ {{10000@3 [s0; [*@(229)4 StaticRect]]}}&] +[s3; &] +[s1;:StaticRect`:`:class:%- [@(0.0.255)3 class][3 _][*3 StaticRect][3 _:_][@(0.0.255)3 public][3 _ +][*@3;3 Ctrl]&] +[s9; Widget completely filled with single color.&] +[s3;%- &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:StaticRect`:`:Color`(class Color`):%- [_^StaticRect^ StaticRect][@(0.0.255) `&]_[* Col +or]([@(0.0.255) class]_[* Color]_[*@3 c])&] +[s2; The color. Default is SColorFace.&] +[s3; &] +[s0; &] +[s0; &] +[s0;%- &] +[ {{10000@3 [s0; [*@(229)4 ImageCtrl]]}}&] +[s3; &] +[s1;:ImageCtrl`:`:class:%- [@(0.0.255)3 class][3 _][*3 ImageCtrl][3 _:_][@(0.0.255)3 public][3 _][*@3;3 C +trl]&] +[s9; Display raster Image. Image is centered in the widget rectangle.&] +[s3;%- &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:ImageCtrl`:`:SetImage`(const Image`&`):%- [_^ImageCtrl^ ImageCtrl][@(0.0.255) `&]_[* S +etImage]([@(0.0.255) const]_[_^Image^ Image][@(0.0.255) `&]_[*@3 `_img])&] +[s2; Sets the image.&] +[s3; &] +[s0; &] +[s0; &] +[s0;%- &] +[ {{10000@3 [s0; [*@(229)4 Picture]]}}&] +[s3; &] +[s1;:Picture`:`:class:%- [@(0.0.255)3 class][3 _][*3 Picture][3 _:_][@(0.0.255)3 public][3 _][*@3;3 C +trl]&] +[s9; Displays Drawing.&] +[s3;%- &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:Picture`:`:Background`(Color`):%- [_^Picture^ Picture][@(0.0.255) `&]_[* Background]([_^Color^ C +olor]_[*@3 color])&] +[s2; Sets background [%-*@3 color]. Default is white.&] +[s3; &] +[s4;%- &] +[s5;:Picture`:`:KeepRatio`(bool`):%- [_^Picture^ Picture][@(0.0.255) `&]_[* KeepRatio]([@(0.0.255) b +ool]_[*@3 keep]_`=_[@(0.0.255) true])&] +[s2; If active, Picture keeps the aspect ratio of Drawing. Default +is on.&] +[s3; &] +[s4;%- &] +[s5;:Picture`:`:NoKeepRatio`(`):%- [_^Picture^ Picture][@(0.0.255) `&]_[* NoKeepRatio]()&] +[s2; Do not keep aspect ratio.&] +[s3; &] +[s4;%- &] +[s5;:Picture`:`:Set`(const Drawing`&`):%- [_^Picture^ Picture][@(0.0.255) `&]_[* Set]([@(0.0.255) c +onst]_[_^Drawing^ Drawing][@(0.0.255) `&]_[*@3 `_picture])&] +[s5;:Picture`:`:operator`=`(const Drawing`&`):%- [_^Picture^ Picture][@(0.0.255) `&]_[* ope +rator`=]([@(0.0.255) const]_[_^Drawing^ Drawing][@(0.0.255) `&]_[*@3 `_picture])&] +[s2; Assigns the Drawing.&] +[s3; &] +[s0; &] +[s0; &] +[s0;%- &] +[ {{10000@3 [s0; [*@(229)4 SeparatorCtrl]]}}&] +[s3; &] +[s1;:SeparatorCtrl`:`:class:%- [@(0.0.255)3 class][3 _][*3 SeparatorCtrl][3 _:_][@(0.0.255)3 pub +lic][3 _][*@3;3 Ctrl]&] +[s9; Horizontal or vertical separator line. Direction depends on +aspect ratio.&] +[s3;%- &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:SeparatorCtrl`:`:Margin`(int`):%- [_^SeparatorCtrl^ SeparatorCtrl][@(0.0.255) `&]_[* M +argin]([@(0.0.255) int]_[*@3 w])&] +[s2; Sets the left`-right (for horizontal separator) or top`-bottom +margin. Default value is 2.&] +[s3; &] +[s4;%- &] +[s5;:SeparatorCtrl`:`:Margin`(int`,int`):%- [_^SeparatorCtrl^ SeparatorCtrl][@(0.0.255) `& +]_[* Margin]([@(0.0.255) int]_[*@3 l], [@(0.0.255) int]_[*@3 r])&] +[s2; Sets the top`-right (for horizontal separator) or top`-bottom +to [%-*@3 l] and [%-*@3 r], in that order. Default value is 2.&] +[s3; &] +[s4;%- &] +[s5;:SeparatorCtrl`:`:SetSize`(int`):%- [_^SeparatorCtrl^ SeparatorCtrl][@(0.0.255) `&]_[* S +etSize]([@(0.0.255) int]_[*@3 w])&] +[s2; Sets the size returned by GetMinSize `- included to affect the +way how widget is treated in BarCtrl. Default value is 7.&] +[s3; &] +[s4;%- &] +[s5;:SeparatorCtrl`:`:SetStyle`(const SeparatorCtrl`:`:Style`&`):%- [_^SeparatorCtrl^ S +eparatorCtrl][@(0.0.255) `&]_[* SetStyle]([@(0.0.255) const]_[_^SeparatorCtrl`:`:Style^ S +tyle][@(0.0.255) `&]_[*@3 s])&] +[s2; Sets the visual style to SeparatorCtrl`::Style [%-*@3 s]. The style +is a simple structure with two fields:&] +[s7; [*@5 l1]-|the first margin&] +[s7;%- [*@5 l2]-|the second margin&] +[s3; &] +[s0; ] \ No newline at end of file diff --git a/uppsrc/CtrlLib/src.tpp/ToolBar$en-us.tpp b/uppsrc/CtrlLib/src.tpp/ToolBar$en-us.tpp index 0f6f2c490..8aa6c144d 100644 --- a/uppsrc/CtrlLib/src.tpp/ToolBar$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/ToolBar$en-us.tpp @@ -1,12 +1,88 @@ -TITLE("ToolBar") -COMPRESSED -120,156,181,86,105,79,27,105,18,254,43,45,101,38,74,178,9,234,110,119,251,98,52,202,78,102,63,141,246,208,102,246,195,10,193,208,64,39,88,99,236,200,54,25,101,86,27,25,108,14,7,115,54,152,203,7,183,57,28,192,64,2,9,196,92,230,48,49,152,96,46,67,48,230,8,71,48,96,192,156,182,241,190,230,78,102,71,209,126,88,91,234,126,85,111,213,83,245,84,149,170,58,4,133,190,250,10,190,13,95,131,191,240,99,127,79,62,32,98,185,162,208,16,14,134,49,131,9,20,15,254,249,135,191,178,130,111,221,189,65,199,110,6,80,16,128,66,99,32,52,38,78,67,48,148,14,30,8,13,65,113,148,134,33,76,148,133,49,105,52,38,204,142,228,18,66,97,104,8,23,101,50,131,3,70,232,109,244,26,202,192,81,132,129,49,49,38,66,99,48,81,96,139,194,48,10,51,80,28,193,104,76,20,103,71,145,194,200,208,16,130,73,11,190,245,119,58,48,162,5,60,1,112,24,161,163,24,3,67,97,26,140,98,192,21,194,100,98,8,3,103,210,88,116,58,59, -146,120,36,226,240,121,103,190,56,8,130,34,193,17,8,35,24,196,252,244,233,211,32,4,131,79,35,192,0,24,2,99,32,84,4,200,96,12,101,32,56,11,102,225,76,132,9,211,0,56,206,128,113,246,35,66,64,196,252,62,117,252,139,212,25,48,155,35,34,1,196,173,63,32,8,3,152,208,111,211,175,33,24,3,16,101,210,48,156,201,128,129,115,20,69,105,52,20,161,161,44,22,138,211,113,6,59,154,36,162,72,1,160,128,33,244,147,96,25,183,25,215,112,28,199,128,62,134,225,12,38,134,210,64,109,48,26,6,82,129,33,44,28,99,225,40,155,71,10,69,100,84,248,157,211,180,157,210,191,8,60,16,119,0,137,121,155,121,141,142,209,89,8,200,62,198,98,96,48,139,142,48,104,129,228,33,32,237,116,26,134,178,240,11,164,179,170,253,235,167,127,127,253,167,191,220,249,199,125,40,68,72,11,134,66,190,134,225,59,48,12,253,200,231,115,191,35,4,161,215,67,67,132,72,240,15,119,111,192,65,112,16,138,227,55,161,51,9,59,28,252,207,180,2,199,19, -56,118,88,224,8,36,247,68,2,110,216,57,88,88,216,21,243,51,183,231,55,208,79,151,231,187,151,110,175,220,179,175,106,92,226,60,138,141,224,114,34,255,27,16,116,230,255,36,118,52,24,58,123,221,189,203,137,33,30,146,236,64,118,175,131,38,19,75,92,113,5,98,177,88,178,228,7,79,241,65,186,114,93,53,184,65,233,199,51,196,190,227,54,73,122,95,71,206,154,253,80,210,210,187,227,16,103,100,117,189,175,46,170,236,17,199,87,230,20,21,149,12,101,103,52,149,204,119,101,86,119,140,230,200,83,170,100,91,190,86,181,167,102,130,114,235,44,239,150,102,91,213,147,118,85,93,218,88,235,96,110,95,74,121,247,98,189,188,187,94,174,80,173,217,102,146,246,55,236,134,174,221,210,228,177,158,49,231,174,253,32,113,110,165,72,217,83,212,226,61,114,121,219,146,178,28,37,105,227,99,238,23,51,110,111,205,196,70,198,114,153,167,190,209,172,216,40,89,141,239,24,108,204,206,247,57,42,244,41,213,149,213,243,203,125,210,92,111,91,151,203,48,247,50,62,254, -21,101,175,173,238,252,72,189,125,231,49,27,107,171,75,170,237,78,159,121,105,115,98,98,211,224,151,22,165,101,59,169,215,5,201,187,171,246,44,71,243,244,64,141,124,168,84,53,174,61,176,234,102,124,241,182,126,93,185,180,96,162,172,220,65,205,168,146,63,246,31,154,12,197,98,85,253,168,36,123,100,192,253,186,107,112,65,185,97,232,92,84,172,175,82,157,201,141,115,47,215,15,125,199,197,243,212,114,74,249,102,198,164,86,106,43,200,209,180,80,25,11,148,95,183,29,175,44,25,118,153,250,87,151,242,53,43,171,101,106,141,47,222,37,107,209,164,15,40,13,5,246,118,143,191,89,42,118,201,146,115,199,10,214,94,84,198,207,150,15,54,228,91,23,115,235,15,54,39,215,53,14,105,185,103,45,33,141,50,171,90,141,77,89,213,133,91,29,206,238,236,197,113,179,86,242,98,98,117,203,179,168,86,28,26,15,54,189,206,214,202,74,131,180,205,231,73,141,223,56,150,101,245,47,187,115,166,103,39,83,212,218,153,109,183,178,163,226,48,78,54,36,109,170,183,204, -215,104,223,246,103,59,19,186,246,222,180,228,101,85,187,52,139,141,233,153,182,242,151,22,121,239,124,186,127,181,239,67,158,115,66,167,212,104,154,182,77,84,115,159,170,224,109,110,93,193,186,223,104,217,209,52,233,37,181,94,69,125,218,204,146,211,218,107,220,53,234,91,6,74,109,85,53,22,107,125,106,167,163,179,183,166,252,229,210,74,110,113,225,136,246,121,67,77,118,107,123,230,86,126,127,67,150,193,230,243,85,14,171,252,163,43,218,99,245,198,78,41,85,240,214,61,170,89,244,212,76,143,41,115,19,155,26,141,250,206,213,161,169,130,228,124,75,85,142,97,107,92,49,164,124,183,209,112,156,213,184,35,51,79,149,244,106,11,203,243,19,188,190,161,225,165,138,44,185,101,111,175,189,127,197,220,172,90,31,124,83,105,113,77,20,80,213,38,73,79,154,193,212,150,154,228,92,253,40,201,244,206,43,199,109,110,89,175,220,34,183,184,143,100,84,75,178,166,120,50,110,250,131,194,168,237,210,131,96,12,135,109,141,251,54,199,235,26,189,223,54,186,127,28,175,48, -213,63,171,125,175,237,108,138,179,91,23,231,189,166,197,148,166,228,210,201,194,188,252,180,65,173,70,186,241,106,43,105,205,218,182,75,121,186,143,63,122,156,113,210,42,179,78,167,176,36,54,102,121,170,50,41,141,217,238,107,208,207,44,237,237,237,207,180,231,219,123,181,37,245,210,210,150,233,193,227,97,241,212,236,178,164,216,33,79,218,122,54,44,137,79,72,167,228,147,77,227,9,137,35,154,254,205,231,229,149,147,53,133,101,21,141,202,30,77,203,250,187,138,204,173,66,147,172,108,129,234,171,107,73,87,142,230,250,84,170,3,223,200,225,7,207,88,156,57,174,199,187,158,181,157,224,72,242,141,100,207,217,230,61,59,67,254,36,93,234,98,69,179,46,177,194,160,159,216,27,154,175,107,24,63,146,77,216,18,61,101,133,190,228,101,243,246,178,118,143,26,25,104,200,92,220,104,63,60,152,153,151,72,211,52,251,201,122,79,153,226,217,6,101,116,44,120,11,29,189,29,121,173,198,148,225,85,74,103,30,26,72,122,189,157,215,93,243,198,99,81,62,115,57,187,189, -139,227,174,157,180,241,228,125,181,178,108,39,191,223,183,172,111,60,140,239,202,245,20,218,134,115,10,141,153,118,219,81,235,174,181,216,216,223,175,237,201,60,86,81,205,109,157,229,43,91,82,229,252,171,131,149,214,246,113,217,152,186,125,218,88,167,49,191,159,202,200,207,113,203,94,202,230,250,7,135,202,242,53,206,214,161,253,98,151,111,111,90,222,59,157,239,72,115,77,165,100,37,91,167,150,158,25,106,171,6,117,147,71,58,245,78,135,179,102,196,101,26,127,229,247,109,13,122,150,20,90,107,217,102,170,175,193,174,46,124,215,216,210,233,209,173,169,75,220,251,166,233,246,163,58,123,182,38,91,145,250,124,71,182,96,29,168,118,172,76,152,221,242,212,206,247,109,166,220,5,202,106,165,54,52,99,91,142,99,137,180,245,80,90,52,99,141,155,155,107,112,91,40,233,145,199,148,61,116,236,239,16,31,26,13,229,137,115,181,105,71,38,143,218,239,123,95,44,30,240,206,150,118,215,231,38,213,233,219,211,11,230,242,82,20,9,254,118,121,226,92,229,139,157,164,9, -121,222,236,167,67,241,199,104,142,240,116,36,67,143,4,252,199,28,176,94,32,17,152,193,225,119,34,8,129,48,40,160,5,159,42,227,191,29,249,247,184,36,56,220,8,191,201,62,159,244,87,230,243,99,62,39,234,98,34,95,204,102,48,226,239,147,162,11,249,141,139,249,125,130,71,112,185,17,68,228,207,72,24,116,113,188,80,253,38,224,244,250,183,151,72,52,40,226,114,81,64,55,67,175,50,138,33,69,209,252,40,72,72,138,0,157,104,18,226,145,191,64,145,124,158,136,228,137,0,189,19,209,25,143,32,232,222,153,92,24,205,143,229,70,65,4,247,23,226,137,16,138,32,207,19,2,68,194,192,74,129,4,252,88,17,135,71,66,225,119,160,192,218,23,158,91,240,200,199,164,32,96,240,199,168,40,40,138,35,32,35,69,220,39,65,208,63,249,177,231,26,145,128,13,112,10,2,35,137,200,104,72,196,137,33,33,161,136,16,197,10,33,254,3,136,224,61,57,143,6,138,136,21,137,248,60,40,50,154,224,61,36,133,65,23,242,64,240,4,135,7,124,198,16,2,17, -36,32,31,8,72,97,52,196,229,63,228,68,66,194,0,35,66,4,241,121,220,39,103,161,17,145,162,88,224,244,201,25,18,224,32,32,129,213,35,128,1,150,255,23,234,250,55,190,80,4,202,122,181,34,225,223,156,45,246,240,235,225,223,254,143,5,15,192,253,63,43,254,61,249,8,228,156,0,188,2,165,137,226,67,60,190,8,138,21,146,95,96,9,250,240,187,147,108,255,153,195,187,207,249,149,60,101,124,114,186,228,23,118,197,40,236,243,175,19,40,252,250,103,141,253,9,224,239,112,14,92,133,65,159,40,92,165,40,252,245,183,12,239,159,247,113,12,135,7,62,98,184,144,16,88,7,90,7,52,17,47,138,16,68,125,214,63,87,153,131,87,232,127,0,130,162,182,149, - +topic "ToolBar"; +[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] +[{_} +[ {{10000@3 [s0;%% [*@(229)4 ToolBar]]}}&] +[s3; &] +[s1;:ToolBar`:`:class: [@(0.0.255)3 class][3 _][*3 ToolBar][3 _:_][@(0.0.255)3 public][3 _][*@3;3 Ba +rCtrl]&] +[s0;%% &] +[s2;%% +@@image:2300&162 +֐ܪŀΔ‘ԕ +ד߻ޝջ͗Nj䰌ð݇޾蠜Šࢎ +̖ͳ঱DŽᶂޮĮ쓺ޒ +ʫΣ֧ӬȬפݝɾԃ狥اٚ +򂜢晟餞ʜ޿՚뵨ߥͲ䗰녎̝ +Ô̧䞖컨؋΄⫧Ȕ +䳏٥ό׬ɓǝ˗󟴱ıʣ٩Ӱƫ +ҧȲН󣓚ԟ՜ıښϩ֖ΜڢƧ +榒̷ͽךɃŎɼꃑƌό؁ħ±Ȳ +ຫɰܧ䋴؛ͧӼ쁄̬φ +ݿƧЀ烡ЃشօҟﭥثşѦɉǯԗ +Ձ́Ҕ䦷⯲نʲ⃄ +ċ铬ʇëϜֈ米—Еđӡ +ȧő軿։՞įڐ􉶉Τیۙڋ抾ͬ +ֹ斧Ӥޞѳ랢ۿޔʪܼɗӓ +Ӂϓɔľᮎܡߣðᘋᨵ׌ +&] +[s0;%% &] +[s9;%% This class provides tool`-bars.&] +[s3;%% &] +[s0; &] +[ {{10000F(128)G(128)@1 [s0;%% [* Public Method List]]}}&] +[s3; &] +[s5;:ToolBar`:`:Set`(Callback1``): [@(0.0.255) void]_[* Set]([_^Callback1^ Callback +1][@(0.0.255) <]Bar[@(0.0.255) `&>]_[*@3 bar])&] +[s2;%% This method sets the new content to the ToolBar. Content should +always be provided as Bar routine `- items should never be Add +directly. You should call this each time status of any ToolBar +button changes. ToolBar contains smart refresh logic so that +only items actually changed are repainted.&] +[s3;%% &] +[s4; &] +[s5;:ToolBar`:`:Post`(Callback1``): [@(0.0.255) void]_[* Post]([_^Callback1^ Callba +ck1][@(0.0.255) <]Bar[@(0.0.255) `&>]_[*@3 bar])&] +[s2;%% Deprecated `- do not use.&] +[s3;%% &] +[s4; &] +[s5;:ToolBar`:`:ButtonMinSize`(Size`): [_^ToolBar^ ToolBar][@(0.0.255) `&]_[* ButtonMinSize +]([_^Size^ Size]_[*@3 sz])&] +[s2;%% Sets the minimal size of standard ToolBar button.&] +[s3;%% &] +[s4; &] +[s5;:ToolBar`:`:MaxIconSize`(Size`): [_^ToolBar^ ToolBar][@(0.0.255) `&]_[* MaxIconSize]([_^Size^ S +ize]_[*@3 sz])&] +[s2;%% Sets the maximum size of an icon displayed in a button from +the toolbar to [%-*@3 sz].&] +[s3;%% &] +[s4; &] +[s5;:ToolBar`:`:StyleDefault`(`): [@(0.0.255) static] [@(0.0.255) const]_[_^ToolBar`:`:Style^ S +tyle][@(0.0.255) `&]_[* StyleDefault]()&] +[s2;%% Returns the default style used to paint a ToolBar.&] +[s3; &] +[s4; &] +[s5;:ToolBar`:`:SetStyle`(const ToolBar`:`:Style`&`): [_^ToolBar^ ToolBar][@(0.0.255) `&]_ +[* SetStyle]([@(0.0.255) const]_[_^ToolBar`:`:Style^ Style][@(0.0.255) `&]_[*@3 s])&] +[s2;%% Sets the visual style to ToolBar`::Style [%-*@3 s].&] +[s3;%% &] +[s4; &] +[s5;:ToolBar`:`:GetStdHeight`(`): [@(0.0.255) static] [@(0.0.255) int]_[* GetStdHeight]()&] +[s2;%% Returns the standard height of a toolbar when used as a frame.&] +[s3; &] +[s0; &] +[ {{10000@3 [s0;%% [*@(229)4 ToolBar`::Style]]}}&] +[s3;%% &] +[s1;:ToolBar`:`:Style`:`:struct: [@(0.0.255)3 struct][3 _][*3 Style][3 _:_][@(0.0.255)3 public][3 _ +][*@3;3 ChStyle][@(0.0.255)3 <][*3 Style][@(0.0.255)3 >][3 _]&] +[s9;%% This structure defines the visual style of a ToolBar.&] +[s3; &] +[s0;%% ] \ No newline at end of file diff --git a/uppsrc/CtrlLib/src.tpp/ValueEditors$en-us.tpp b/uppsrc/CtrlLib/src.tpp/ValueEditors$en-us.tpp index 505b884ae..678461287 100644 --- a/uppsrc/CtrlLib/src.tpp/ValueEditors$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/ValueEditors$en-us.tpp @@ -1,12 +1,385 @@ -TITLE("EditField derived classes") -COMPRESSED -120,156,237,90,249,143,219,54,22,254,87,136,30,129,103,234,78,117,90,26,57,93,4,155,30,8,178,73,129,58,187,249,193,176,199,28,137,30,115,107,75,134,68,79,50,8,146,191,125,31,169,139,146,169,195,71,144,105,187,1,38,150,69,242,241,189,79,223,187,40,79,13,244,205,55,218,80,251,90,235,248,231,253,68,150,120,183,102,179,41,181,44,119,140,13,123,252,199,203,223,174,199,151,207,6,35,235,130,75,209,65,138,233,232,166,107,155,186,101,140,224,63,221,212,13,219,48,45,221,53,174,45,215,52,93,205,243,215,56,73,102,211,181,225,186,99,190,200,128,69,134,99,27,186,99,185,150,171,155,142,107,192,90,67,211,12,205,49,108,221,50,93,195,246,2,146,248,179,41,118,205,241,229,239,35,88,100,242,157,64,184,166,143,12,203,177,12,205,212,12,11,182,210,93,215,210,29,219,53,175,71,35,207,199,91,70,163,48,219,139,234,186,161,143,111,117,103,12,58,127,250,244,233,74,183,180,84,3,11,132,233,154,5,170,234,112,79,179,12,71,183,175,181,107,219,213, -93,205,4,225,182,163,217,222,22,199,120,211,108,186,221,105,186,163,121,148,17,16,113,249,157,174,59,176,100,52,28,125,173,91,14,24,234,154,150,237,58,26,108,110,24,134,105,26,186,105,92,95,27,246,200,118,188,21,193,1,137,103,211,15,55,31,191,253,249,245,247,255,158,160,105,98,142,209,207,1,101,191,80,178,14,16,140,210,123,18,32,1,43,73,158,204,166,137,54,70,111,105,112,71,88,130,8,204,163,225,29,186,199,235,29,73,16,13,17,35,239,25,138,201,54,38,9,9,25,230,0,33,28,19,116,139,19,144,2,95,74,209,56,132,191,237,54,142,182,49,197,140,160,233,124,225,45,188,231,81,120,79,98,54,71,217,197,44,221,250,10,189,194,255,141,98,202,30,80,180,68,108,69,54,66,108,64,150,52,4,193,187,132,171,145,208,205,118,77,196,22,255,225,26,13,197,229,43,26,190,194,239,197,118,229,215,215,17,123,189,91,175,65,95,88,194,119,207,12,244,184,133,250,248,37,202,62,61,174,83,33,144,127,17,19,61,52,253,86,211,190,215,180,66,192,205, -211,89,118,235,217,64,187,210,174,12,219,190,64,25,25,179,169,55,197,12,11,253,132,25,126,243,176,37,197,224,16,29,176,222,68,207,239,139,219,255,152,117,232,10,211,59,68,11,158,73,242,181,18,195,218,20,239,70,161,230,118,119,187,166,126,131,176,121,174,149,120,234,243,116,180,248,94,93,164,4,161,85,58,7,130,155,111,140,209,155,21,77,82,179,16,144,234,158,130,83,35,63,218,108,163,132,10,26,2,111,170,228,75,182,196,167,75,234,119,49,239,205,138,32,28,220,99,224,243,29,225,98,132,83,112,194,45,227,104,147,79,71,176,59,91,97,134,48,208,42,191,151,16,182,219,162,13,97,171,40,72,208,96,77,255,32,252,158,112,154,13,13,127,216,0,49,133,243,92,164,116,166,49,241,217,250,1,225,123,76,215,248,22,200,252,142,194,218,29,203,24,190,220,197,192,253,24,221,193,18,48,46,32,87,153,71,242,15,91,69,129,104,75,98,204,162,120,241,227,98,224,71,97,194,10,234,45,158,44,46,10,30,207,43,11,231,251,207,31,45,158,200,252,40,197,22, -19,6,42,2,243,29,251,57,128,44,223,68,229,162,139,202,243,93,145,53,236,92,108,207,193,142,222,37,25,112,8,30,23,189,11,55,16,121,248,99,18,192,34,6,155,32,22,241,152,33,226,85,20,247,198,172,132,106,176,184,16,166,120,146,109,21,66,230,75,218,76,76,103,14,46,74,242,166,240,244,183,47,38,44,166,4,236,170,153,39,120,120,128,129,213,27,3,137,7,42,215,7,149,115,29,159,115,133,227,157,47,84,19,96,39,237,222,131,6,144,20,150,216,103,67,180,184,100,96,33,16,61,17,170,150,190,232,167,43,72,69,239,234,135,28,221,210,0,254,88,66,177,213,30,138,155,148,237,33,89,147,210,85,57,220,35,0,43,98,111,163,87,63,237,9,68,213,204,155,156,15,111,99,200,224,192,215,244,89,47,129,21,197,195,204,163,48,15,91,96,196,16,229,73,56,79,189,60,243,195,76,74,146,38,190,150,224,29,26,197,210,149,115,21,130,127,253,56,86,194,86,187,163,112,244,26,56,165,167,103,213,120,106,121,234,241,135,239,87,60,164,97,113,213,169,65, -27,182,50,178,144,62,37,162,230,83,43,51,36,177,85,244,37,163,120,58,134,24,118,201,57,58,19,252,228,215,176,242,32,126,194,149,100,237,41,132,124,37,153,117,20,22,169,165,246,248,4,21,142,122,28,123,96,159,162,66,22,35,90,125,242,54,138,214,74,85,194,18,140,155,197,143,170,120,9,207,158,236,83,99,34,49,97,88,208,32,163,68,174,145,76,11,244,34,207,109,220,41,163,16,10,183,237,46,134,130,147,100,77,10,92,228,181,31,175,14,35,228,175,112,8,53,36,159,14,185,124,23,67,250,204,188,59,117,108,63,138,179,10,144,187,123,144,229,204,67,242,98,166,231,159,42,61,54,234,124,96,150,172,179,230,145,37,203,9,221,64,81,31,243,103,45,245,165,213,14,116,136,110,119,82,208,77,16,208,139,222,139,246,120,159,131,15,237,129,73,130,245,184,252,153,9,152,183,64,252,119,201,166,18,150,234,129,198,220,186,23,202,142,79,177,221,74,244,79,184,205,17,246,160,188,123,124,122,248,44,185,88,66,168,103,74,62,152,227,103,75,208,109,186,87,138, -167,51,234,126,174,204,222,162,123,193,69,158,159,207,168,251,255,75,130,189,146,192,80,149,4,240,241,79,249,176,181,237,248,115,200,207,101,169,159,109,152,198,193,164,114,176,202,155,117,190,45,89,166,71,163,233,38,232,195,7,0,205,244,28,203,114,158,13,12,205,186,64,98,40,199,47,77,214,51,207,171,222,206,36,241,129,103,134,24,42,104,4,12,20,39,19,217,148,178,106,201,7,247,164,245,41,42,159,242,149,101,144,146,15,42,248,72,113,88,33,54,40,171,148,124,171,138,118,18,197,27,149,204,25,177,167,235,65,188,63,155,214,17,84,58,45,168,138,225,227,112,13,196,218,6,29,197,88,169,101,186,77,167,158,157,248,202,179,78,69,248,172,250,191,8,89,163,214,48,118,28,194,52,100,106,245,64,98,161,27,151,222,174,88,23,170,229,148,83,33,61,135,194,111,232,166,153,175,124,240,56,44,249,74,181,110,124,164,80,78,108,208,161,93,23,158,210,156,83,1,61,82,235,143,31,27,187,69,248,152,68,27,162,8,247,97,196,170,175,232,218,178,134,215,208,128, -78,88,76,195,187,19,186,184,84,192,231,111,223,196,212,183,233,110,115,244,182,182,173,26,243,124,118,229,171,162,201,43,237,224,249,189,9,215,91,226,227,29,148,2,20,106,95,130,3,94,27,64,137,72,55,120,45,32,135,146,75,92,167,239,85,135,136,50,36,94,109,242,30,38,65,139,175,196,248,110,131,194,221,230,150,247,61,75,94,69,196,80,118,144,56,89,124,149,149,212,24,60,178,169,90,46,31,85,209,51,137,69,18,48,208,24,30,254,214,163,218,218,169,222,4,230,176,167,99,53,236,211,155,139,39,95,240,29,201,62,50,69,207,92,5,71,81,217,230,28,81,112,249,156,125,114,59,125,171,29,115,0,149,125,75,245,222,97,237,99,49,54,223,235,80,83,5,99,120,201,93,163,76,146,114,6,225,243,28,17,148,40,214,238,40,14,5,106,38,28,117,26,208,188,31,184,124,247,150,10,240,105,168,58,143,17,189,223,154,212,91,215,230,206,61,157,118,89,46,228,253,67,30,172,224,251,29,91,137,96,21,133,12,139,246,130,255,92,164,219,74,136,152,255,34,97, -221,186,195,153,152,202,57,43,16,147,19,236,86,44,251,61,235,0,247,207,125,213,200,116,54,219,189,177,249,130,237,117,6,195,158,10,229,49,231,172,215,1,120,106,223,222,97,242,30,22,57,70,243,166,194,100,62,151,226,207,188,226,69,53,29,249,76,79,158,219,84,167,200,34,229,135,177,255,219,21,225,73,60,230,212,222,147,62,136,159,87,137,3,129,194,237,58,24,210,118,0,220,51,153,85,10,85,37,4,143,44,181,61,34,59,254,20,89,75,113,166,92,29,104,204,97,103,57,216,238,171,68,75,98,235,19,185,30,75,126,107,14,94,208,25,79,182,52,84,132,45,209,63,31,23,179,50,161,167,71,43,222,183,203,208,164,204,66,56,8,32,96,193,14,252,173,21,3,184,114,230,101,107,178,95,208,53,60,123,201,228,201,42,122,39,174,27,19,89,54,121,174,178,171,230,186,185,176,227,114,153,212,158,66,42,227,121,171,76,87,32,56,249,97,37,126,89,40,91,221,195,192,250,45,133,87,213,141,106,247,39,52,145,97,231,61,124,20,30,163,7,119,172,161,210,187, -246,244,57,196,175,212,47,137,122,57,100,95,111,228,60,171,184,36,127,105,84,117,209,89,214,65,119,162,213,236,151,233,241,95,131,107,230,71,133,199,121,103,41,250,116,7,205,78,41,207,238,163,85,243,161,94,123,17,250,139,65,122,124,170,114,211,114,254,188,193,198,186,179,10,145,173,36,11,170,39,176,50,93,168,180,180,82,121,154,72,43,6,174,164,187,186,178,8,21,120,8,140,64,96,44,142,89,250,1,242,107,6,72,243,65,73,77,251,253,95,90,255,90,1,160,227,55,162,121,127,224,239,226,152,167,253,99,116,238,142,181,135,63,196,199,18,113,171,150,42,238,238,83,183,209,25,191,16,23,19,21,25,15,137,246,189,49,24,214,62,63,3,38,157,121,160,109,173,148,10,14,93,123,142,103,209,93,3,166,47,133,107,25,71,188,28,46,239,113,77,250,100,161,217,255,0,141,229,20,200, - +topic "EditField derived classes"; +[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 +[s0; [*+150 EditField derived classes]&] +[s3; &] +[s0; Widgets editing values in text representation are based on EditField +and appropriate [^`:`:Convert^ Convert] class. Majority of them +are defined using simple EditValue, EditMinMax and EditMinMaxNotNull +template classes:&] +[s3; &] +[s0;%- &] +[ {{10000@3 [s0;%- [*@(229)4 EditValue]]}}&] +[s3; &] +[s1;:noref:%- [@(0.0.255)3 template][3 _<][@(0.0.255)3 class][3 _][*@4;3 DataType][3 , +][@(0.0.255)3 class][3 _][*@3;3 Cv][@(0.0.255)3 >]&] +[s1;:EditValue`:`:class:%- [@(0.0.255) class]_[* EditValue]_:_[@(0.0.255) public]_[*@3 EditFie +ld], [@(0.0.255) public]_[*@3 Cv]&] +[s9; This class provides composition of EditField and specific [^topic`:`/`/Core`/src`/Convert`$en`-us`#Convert`:`:class^ C +onvert] class. The advantage of deriving from Convert is that +all Convert setup methods (like setting min/max value) are directly +available without using further glue code.&] +[s3; &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Constructor Detail]]}}&] +[s3;%- &] +[s5;:EditValue`:`:EditValue`(`):%- [* EditValue]()&] +[s2; Constructor assigns [^`:`:Convert^ Convert] class (in fact, `*this) +as the EditField converter.&] +[s3; &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:EditValue`:`:operator`=`(const DataType`&`):%- [_^EditValue^ EditValue][@(0.0.255) `& +]_[* operator`=]([@(0.0.255) const]_[*@4 DataType][@(0.0.255) `&]_[*@3 t])&] +[s2; This helper operator allows direct assignment of value type +to the editor.&] +[s3; &] +[s4;%- &] +[s5;:EditValue`:`:operator DataType`(`)const:%- [* operator_DataType]()_[@(0.0.255) const +]&] +[s2; This helper operator allows direct retrieval of value type from +the editor.&] +[s3; &] +[s0; &] +[s0; &] +[s0;%- &] +[ {{10000@3 [s0;%- [*@(229)4 EditMinMax]]}}&] +[s3; &] +[s1;:noref:%- [@(0.0.255)3 template][3 _<][@(0.0.255)3 class][3 _][*@4;3 DataType][3 , +][@(0.0.255)3 class][3 _][*@4;3 Cv][@(0.0.255)3 >]&] +[s1;:EditMinMax`:`:class:%- [@(0.0.255) class]_[* EditMinMax]_:_[@(0.0.255) public]_[*@3 EditV +alue][@(0.0.255) <][*@4 DataType], [*@4 Cv][@(0.0.255) >]_&] +[s9; Wrapper class for converters providing Min, Max and NotNull +properties.&] +[s3; &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Constructor Detail]]}}&] +[s3;%- &] +[s5;:EditMinMax`:`:EditMinMax`(`):%- [* EditMinMax]()&] +[s2; Default constructor.&] +[s3; &] +[s4;%- &] +[s5;:EditMinMax`:`:EditMinMax`(DataType`,DataType`):%- [* EditMinMax]([*@4 DataType]_[*@3 m +in], [*@4 DataType]_[*@3 max])&] +[s2; This constructor sets [* Min] and [* Max] properties.&] +[s3; &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:EditMinMax`:`:operator`=`(const DataType`&`):%- [_^EditMinMax^ EditMinMax][@(0.0.255) `& +]_[* operator`=]([@(0.0.255) const]_[*@4 DataType][@(0.0.255) `&]_[*@3 t])&] +[s2; This helper operator allows direct assignment of value type +to the editor.&] +[s3; &] +[s4;%- &] +[s5;:EditMinMax`:`:Min`(DataType`):%- [_^EditMinMax^ EditMinMax][@(0.0.255) `&]_[* Min]([*@4 D +ataType]_[*@3 min])&] +[s5;:EditMinMax`:`:Max`(DataType`):%- [_^EditMinMax^ EditMinMax][@(0.0.255) `&]_[* Max]([*@4 D +ataType]_[*@3 max])&] +[s5;:EditMinMax`:`:NotNull`(bool`):%- [_^EditMinMax^ EditMinMax][@(0.0.255) `&]_[* NotNull]( +[@(0.0.255) bool]_[*@3 nn]_`=_[@(0.0.255) true])&] +[s2; Sets [* Min], [* Max] and [* NotNull] properties. In fact, the only +purpose of these methods is to change the returns value to the +correctly typed `*this.&] +[s3; &] +[s0; &] +[s0; &] +[s0;%- &] +[ {{10000@3 [s0;%- [*@(229)4 EditMinMaxNotNull]]}}&] +[s3; &] +[s1;:noref:%- [@(0.0.255)3 template][3 _<][@(0.0.255)3 class][3 _][*@4;3 DataType][3 , +][@(0.0.255)3 class][3 _][*@4;3 Cv][@(0.0.255)3 >]&] +[s1;:EditMinMaxNotNull`:`:class:%- [@(0.0.255) class]_[* EditMinMaxNotNull]_:_[@(0.0.255) pu +blic]_[*@3 EditValue][@(0.0.255) <][*@4 DataType], [*@4 Cv][@(0.0.255) >]_&] +[s9; Similar to EditMinMax template class, but constructs activate +[* NotNull] property.&] +[s3; &] +[s0; &] +[ {{10000F(128)G(128)@1 [s0; [* Constructor Detail]]}}&] +[s3;%- &] +[s5;:EditMinMaxNotNull`:`:EditMinMaxNotNull`(`):%- [* EditMinMaxNotNull]()&] +[s2; Default constructor.&] +[s3; &] +[s4;%- &] +[s5;:EditMinMaxNotNull`:`:EditMinMaxNotNull`(DataType`,DataType`):%- [* EditMinMaxNotNu +ll]([*@4 DataType]_[*@3 min], [*@4 DataType]_[*@3 max])&] +[s2; This constructor sets [* Min] and [* Max] properties.&] +[s3; &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:EditMinMaxNotNull`:`:operator`=`(const DataType`&`):%- [_^EditMinMaxNotNull^ EditM +inMaxNotNull][@(0.0.255) `&]_[* operator`=]([@(0.0.255) const]_[*@4 DataType][@(0.0.255) `& +]_[*@3 t])&] +[s2; This helper operator allows direct assignment of value type +to the editor.&] +[s3; &] +[s4;%- &] +[s5;:EditMinMaxNotNull`:`:Min`(DataType`):%- [_^EditMinMaxNotNull^ EditMinMaxNotNull][@(0.0.255) `& +]_[* Min]([*@4 DataType]_[*@3 min])&] +[s5;:EditMinMaxNotNull`:`:Max`(DataType`):%- [_^EditMinMaxNotNull^ EditMinMaxNotNull][@(0.0.255) `& +]_[* Max]([*@4 DataType]_[*@3 max])&] +[s5;:EditMinMaxNotNull`:`:NotNull`(bool`):%- [_^EditMinMaxNotNull^ EditMinMaxNotNull][@(0.0.255) `& +]_[* NotNull]([@(0.0.255) bool]_[*@3 nn]_`=_[@(0.0.255) true])&] +[s2; Sets [* Min], [* Max] and [* NotNull] properties. In fact, the only +purpose of these methods is to change the returns value to the +correctly typed `*this.&] +[s3; &] +[s0; &] +[s0; &] +[s0; &] +[s0; Based on EditMinMax and EditMinMaxNotNull, basic value editors +are defined as typedefs:&] +[s3; &] +[s5;:EditDate`:`:typedef:%- [@(0.0.255) typedef]_[_^EditMinMax^ EditMinMax][@(0.0.255) <][_^Date^ D +ate], [_^ConvertDate^ ConvertDate][@(0.0.255) >]_[* EditDate]&] +[s2; Edit field for date values.&] +[s3;%- &] +[s4;%- &] +[s5;:EditDateNotNull`:`:typedef:%- [@(0.0.255) typedef]_[_^EditMinMaxNotNull^ EditMinMaxN +otNull][@(0.0.255) <][_^Date^ Date], [_^ConvertDate^ ConvertDate][@(0.0.255) >]_[* EditDate +NotNull]&] +[s2; Edit field for not null date values.&] +[s3;%- &] +[s4;%- &] +[s5;:EditDouble`:`:typedef:%- [@(0.0.255) typedef]_[_^EditMinMax^ EditMinMax][@(0.0.255) ]_[* EditDouble]&] +[s2; Edit field for double values.&] +[s3;%- &] +[s4;%- &] +[s5;:EditDoubleNotNull`:`:typedef:%- [@(0.0.255) typedef]_[_^EditMinMaxNotNull^ EditMinMa +xNotNull][@(0.0.255) ]_[* EditDoub +leNotNull]&] +[s2; Edit field for not null double values.&] +[s3;%- &] +[s4;%- &] +[s5;:EditInt`:`:typedef:%- [@(0.0.255) typedef]_[_^EditMinMax^ EditMinMax][@(0.0.255) ]_[* EditInt]&] +[s2; Edit field for integer values.&] +[s3;%- &] +[s4;%- &] +[s5;:EditIntNotNull`:`:typedef:%- [@(0.0.255) typedef]_[_^EditMinMaxNotNull^ EditMinMaxNo +tNull][@(0.0.255) ]_[* EditIntNotNull]&] +[s2; Edit field for not null integer values.&] +[s3;%- &] +[s4;%- &] +[s5;:EditInt64`:`:typedef:%- [@(0.0.255) typedef]_[_^EditMinMax^ EditMinMax][@(0.0.255) <][_^int64^ i +nt64], [_^ConvertInt64^ ConvertInt64][@(0.0.255) >]_[* EditInt64]&] +[s2; Edit field for 64 bit integer values.&] +[s3;%- &] +[s4;%- &] +[s5;:EditTime`:`:typedef:%- [@(0.0.255) typedef]_[_^EditMinMax^ EditMinMax][@(0.0.255) <][_^Time^ T +ime], [_^ConvertTime^ ConvertTime][@(0.0.255) >]_[* EditTime]&] +[s2; Edit field for time values.&] +[s3;%- &] +[s4;%- &] +[s5;:EditTimeNotNull`:`:typedef:%- [@(0.0.255) typedef]_[_^EditMinMaxNotNull^ EditMinMaxN +otNull][@(0.0.255) <][_^Time^ Time], [_^ConvertTime^ ConvertTime][@(0.0.255) >]_[* EditTime +NotNull]&] +[s2; Edit field for not null time values.&] +[s3;%- &] +[s0;%- &] +[s0; &] +[s0; &] +[s0; Some value editors are not based on EditMinMax and EditMinMaxNotNull:&] +[s3; &] +[s0;%- &] +[ {{10000@3 [s0;%- [*@(229)4 EditString]]}}&] +[s3; &] +[s1;:EditString`:`:class:%- [@(0.0.255)3 class][3 _][*3 EditString][3 _:_][@(0.0.255)3 public][3 _ +][*@3;3 EditValue][@(0.0.255)3 <][_^WString^3 WString][3 , ][_^ConvertString^3 ConvertStrin +g][@(0.0.255)3 >][3 _]&] +[s9; EditString is not based on EditMinMax because instead of minimal +and maximal values, it implements `"maximum number of characters`" +constraint.&] +[s3; &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Constructor Detail]]}}&] +[s3;%- &] +[s5;:EditString`:`:EditString`(`):%- [* EditString]()&] +[s2; Default constructor.&] +[s3; &] +[s4;%- &] +[s5;:EditString`:`:EditString`(int`):%- [* EditString]([@(0.0.255) int]_[*@3 maxlen])&] +[s2; This constructor sets [%-*@3 maxlen] as maximum length of contained +text.&] +[s3; &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:EditString`:`:operator const WString`&`(`)const:%- [* operator_const_WString`&]()_ +[@(0.0.255) const]&] +[s2; This helper operator allows direct retrieval of value type from +the editor.&] +[s3; &] +[s4;%- &] +[s5;:EditString`:`:operator`=`(const WString`&`):%- [_^EditString^ EditString][@(0.0.255) `& +]_[* operator`=]([@(0.0.255) const]_[_^WString^ WString][@(0.0.255) `&]_[*@3 data])&] +[s5;:EditString`:`:operator`=`(const String`&`):%- [_^EditString^ EditString][@(0.0.255) `& +]_[* operator`=]([@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 data])&] +[s2; These helper operators allow a direct assignment of value type +to the editor.&] +[s3; &] +[s4;%- &] +[s5;:EditString`:`:MaxLen`(int`):%- [_^EditString^ EditString][@(0.0.255) `&]_[* MaxLen]([@(0.0.255) i +nt]_[*@3 maxlen])&] +[s2; Sets [%-*@3 maxlen] as maximum length of contained text.[%-*@3 maxlen] +Returns `*this.&] +[s3; &] +[s4;%- &] +[s5;:EditString`:`:NotNull`(bool`):%- [_^EditString^ EditString][@(0.0.255) `&]_[* NotNull]( +[@(0.0.255) bool]_[*@3 nn]_`=_[@(0.0.255) true])&] +[s2;%- [%% Sets ][* NotNull] property.&] +[s3; &] +[s0; &] +[s0; &] +[s0;%- &] +[ {{10000@3 [s0;%- [*@(229)4 EditStringNotNull]]}}&] +[s3; &] +[s1;:EditStringNotNull`:`:class:%- [@(0.0.255)3 class][3 _][*3 EditStringNotNull][3 _:_][@(0.0.255)3 p +ublic][3 _][*@3;3 EditString]&] +[s9; This class sets the NotNull property in the constructors.&] +[s3; &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Constructor Detail]]}}&] +[s3;%- &] +[s5;:EditStringNotNull`:`:EditStringNotNull`(`):%- [* EditStringNotNull]()&] +[s2; Default constructor.&] +[s3; &] +[s4;%- &] +[s5;:EditStringNotNull`:`:EditStringNotNull`(int`):%- [* EditStringNotNull]([@(0.0.255) i +nt]_[*@3 maxlen])&] +[s2; This constructor sets [%-*@3 maxlen] as maximum length of contained +text.&] +[s3; &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:EditStringNotNull`:`:operator`=`(const WString`&`):%- [@(0.0.255) virtual] +[_^EditStringNotNull^ EditStringNotNull][@(0.0.255) `&]_[* operator`=]([@(0.0.255) const]_ +[_^WString^ WString][@(0.0.255) `&]_[*@3 data])&] +[s5;:EditStringNotNull`:`:operator`=`(const String`&`):%- [@(0.0.255) virtual] +[_^EditStringNotNull^ EditStringNotNull][@(0.0.255) `&]_[* operator`=]([@(0.0.255) const]_ +[_^String^ String][@(0.0.255) `&]_[*@3 data])&] +[s2; These helper operators allow a direct assignment of value type +to the editor.&] +[s3; &] +[s0; &] +[s0; &] +[s0;%- &] +[ {{10000@3 [s0;%- [*@(229)4 EditIntSpin]]}}&] +[s3; &] +[s1;:EditIntSpin`:`:class:%- [@(0.0.255)3 class][3 _][*3 EditIntSpin][3 _:_][@(0.0.255)3 public][3 _ +][*@3;3 EditInt]&] +[s9; This editor adds spin buttons to the EditInt class.&] +[s3; &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Constructor Detail]]}}&] +[s3;%- &] +[s5;:EditIntSpin`:`:EditIntSpin`(`):%- [* EditIntSpin]()&] +[s2; Default constructor. Spin buttons are on.&] +[s3; &] +[s4;%- &] +[s5;:EditIntSpin`:`:EditIntSpin`(int`,int`):%- [* EditIntSpin]([@(0.0.255) int]_[*@3 min], +[@(0.0.255) int]_[*@3 max])&] +[s2; This constructor sets the [%-*@3 min] and [%-*@3 max] values. Spin +buttons are on.&] +[s3; &] +[s4;%- &] +[s5;:EditIntSpin`:`:`~EditIntSpin`(`):%- [@(0.0.255) `~][* EditIntSpin]()&] +[s2; Default destructor.&] +[s3;%- &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:EditIntSpin`:`:ShowSpin`(bool`):%- [_^EditIntSpin^ EditIntSpin][@(0.0.255) `&]_[* Show +Spin]([@(0.0.255) bool]_[*@3 s]_`=_[@(0.0.255) true])&] +[s2; Shows/hides spin buttons.&] +[s3; &] +[s4;%- &] +[s5;:EditIntSpin`:`:SetInc`(int`):%- [_^EditIntSpin^ EditIntSpin][@(0.0.255) `&]_[* SetInc]( +[@(0.0.255) int]_[*@3 `_inc])&] +[s2; Set the increment factor to [%-*@3 `_inc].&] +[s3; &] +[s4;%- &] +[s5;:EditIntSpin`:`:GetInc`(`)const:%- [@(0.0.255) int]_[* GetInc]()_[@(0.0.255) const]&] +[s2; Returns the increment factor.&] +[s3;%- &] +[s0; &] +[s0; &] +[s0;%- &] +[ {{10000@3 [s0;%- [*@(229)4 EditDoubleSpin]]}}&] +[s3; &] +[s1;:EditDoubleSpin`:`:class:%- [@(0.0.255)3 class][3 _][*3 EditDoubleSpin][3 _:_][@(0.0.255)3 p +ublic][3 _][*@3;3 EditDouble]&] +[s9; This editor adds spin buttons to the EditDouble class.&] +[s3; &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Constructor Detail]]}}&] +[s3;%- &] +[s5;:EditDoubleSpin`:`:EditDoubleSpin`(double`):%- [* EditDoubleSpin]([@(0.0.255) double]_ +[*@3 inc]_`=_[@3 0][@(0.0.255) .][@3 1])&] +[s2; Sets the spin increment to [%-*@3 inc]. Spin buttons are on.&] +[s3; &] +[s4;%- &] +[s5;:EditDoubleSpin`:`:EditDoubleSpin`(double`,double`,double`):%- [* EditDoubleSpin]([@(0.0.255) d +ouble]_[*@3 min], [@(0.0.255) double]_[*@3 max], [@(0.0.255) double]_[*@3 inc]_`=_[@3 0][@(0.0.255) . +][@3 1])&] +[s2; This constructor sets [%-*@3 min], [%-*@3 max] and [%-*@3 inc] values. +Spin buttons are on.&] +[s3; &] +[s4;%- &] +[s5;:EditDoubleSpin`:`:`~EditDoubleSpin`(`):%- [@(0.0.255) `~][* EditDoubleSpin]()&] +[s2; Default destructor.&] +[s3;%- &] +[s0; &] +[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&] +[s3;%- &] +[s5;:EditDoubleSpin`:`:SetInc`(double`):%- [_^EditDoubleSpin^ EditDoubleSpin][@(0.0.255) `& +]_[* SetInc]([@(0.0.255) double]_[*@3 `_inc]_`=_[@3 0][@(0.0.255) .][@3 1])&] +[s2; Set the spin increment to [%-*@3 `_inc].&] +[s3; &] +[s4;%- &] +[s5;:EditDoubleSpin`:`:GetInc`(`)const:%- [@(0.0.255) double]_[* GetInc]()_[@(0.0.255) cons +t]&] +[s2; Returns current spin increment.&] +[s3; &] +[s4;%- &] +[s5;:EditDoubleSpin`:`:ShowSpin`(bool`):%- [_^EditDoubleSpin^ EditDoubleSpin][@(0.0.255) `& +]_[* ShowSpin]([@(0.0.255) bool]_[*@3 s]_`=_[@(0.0.255) true])&] +[s2; Shows/hides spin buttons.&] +[s3; &] +[s0; &] +[s0; &] +[s0;%- &] +[ {{10000@3 [s0;%- [*@(229)4 EditDoubleNotNullSpin]]}}&] +[s3; &] +[s1;:EditDoubleNotNullSpin`:`:class:%- [@(0.0.255)3 class][3 _][*3 EditDoubleNotNullSpin][3 _ +:_][@(0.0.255)3 public][3 _][*@3;3 EditDoubleSpin]&] +[s9; This editor adds spin buttons to the EditDoubleNotNull class.&] +[s3;%- &] +[s0;%- &] +[ {{10000F(128)G(128)@1 [s0; [* Constructor Detail]]}}&] +[s3; &] +[s5;:EditDoubleNotNullSpin`:`:EditDoubleNotNullSpin`(double`):%- [* EditDoubleNotNullSp +in]([@(0.0.255) double]_[*@3 inc]_`=_[@3 0][@(0.0.255) .][@3 1])&] +[s2; Sets the spin increment to [%-*@3 inc]. Spin buttons are on.&] +[s3; &] +[s4;%- &] +[s5;:EditDoubleNotNullSpin`:`:EditDoubleNotNullSpin`(double`,double`,double`):%- [* Edi +tDoubleNotNullSpin]([@(0.0.255) double]_[*@3 min], [@(0.0.255) double]_[*@3 max], +[@(0.0.255) double]_[*@3 inc]_`=_[@3 0][@(0.0.255) .][@3 1])&] +[s2; This constructor sets [%-*@3 min], [%-*@3 max] and [%-*@3 inc] values. +Spin buttons are on.&] +[s3; &] +[s0; ] \ No newline at end of file