12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761 |
- class IUP_MATRIX
- inherit
- IUP_CONTROLS
- rename
- canvas as matrix
- redefine
- matrix,
- set_cursor,
- set_border,
- set_scroll_bar,
- execute_action_fniiiis,
- execute_click_fniis,
- execute_colresize,
- execute_release,
- execute_resizematrix,
- execute_togglevalue_fniii,
- execute_valuechanged,
- execute_mousemove,
- execute_enteritem,
- execute_leaveitem,
- execute_scrolltop,
- execute_bgcolor,
- execute_fgcolor,
- execute_font,
- execute_type,
- execute_draw,
- execute_dropcheck,
- execute_translatevalue,
- execute_drop,
- execute_menudrop,
- execute_dropselect,
- execute_edition,
- execute_value,
- execute_value_edit,
- execute_mark,
- execute_markedit
- end
- IUP_WIDGET_FGCOLOR
- IUP_WIDGET_FLAT_SCROLL_BOX
- IUP_WIDGET_TEXT_POS
- create {ANY}
- matrix
- feature {ANY}
- matrix
- local
- p, a_matrix: POINTER
- do
- create_mask_dictionary
- a_matrix := int_matrix (p)
- set_widget(a_matrix)
- end
-
- set_cursor (name: STRING)
-
-
-
- do
- Precursor (name)
- end
- set_drop_image (name: STRING)
-
-
- do
- iup_open.set_attribute(Current, "DROPIMAGE", name)
- end
- set_focus_cell (line, column: INTEGER)
-
-
- require
- non_negative: line >= 0
- column >= 0
- local
- str: STRING
- do
- str := line.out
- str.append_string(":")
- str.append_string(column.out)
- iup_open.set_attribute(Current, "FOCUSCELL", str)
- end
- get_focus_cell: TUPLE[INTEGER, INTEGER]
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "FOCUSCELL")
-
- Result := components_of (str, ':')
- end
- set_flat (state: BOOLEAN)
-
- do
- iup_open.set_attribute(Current, "FLAT", boolean_to_yesno(state))
- end
- set_hide_focus (state: BOOLEAN)
-
- do
- iup_open.set_attribute(Current, "HIDEFOCUS", boolean_to_yesno(state))
- end
- set_hidden_text_marks (state: BOOLEAN)
-
-
-
- do
- iup_open.set_attribute(Current, "HIDDENTEXTMARKS", boolean_to_yesno(state))
- end
- set_highlight_color (red, green, blue: INTEGER)
-
-
-
- do
- iup_open.set_attribute(Current, "HLCOLOR", rgb_to_string(red, green, blue))
- end
- set_highlight_color_alpha (alpha: INTEGER)
-
- require
- alpha >= 0
- alpha <= 255
- do
- iup_open.set_attribute(Current, "HLCOLORALPHA", alpha.out)
- end
- set_origin (line, column: INTEGER)
-
- require
- line > 0
- column > 0
- local
- str: STRING
- do
- str := line.out
- str.append_string(":")
- str.append_string(column.out)
- iup_open.set_attribute(Current, "ORIGIN", str)
- end
- get_origin: TUPLE[INTEGER, INTEGER]
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "ORIGIN")
-
- Result := components_of (str, ':')
- end
- set_line (line: INTEGER)
-
- require
- line > 0
- local
- str: STRING
- do
- str := line.out
- str.append_string(":")
- str.append_string("*")
- iup_open.set_attribute(Current, "ORIGIN", str)
- end
- set_column (column: INTEGER)
-
- require
- column > 0
- local
- str: STRING
- do
- str := "*:"
- str.append_string(column.out)
- iup_open.set_attribute(Current, "ORIGIN", str)
- end
- set_origin_offset (x, y: INTEGER)
-
-
-
- require
- non_negative: x >= 0
- y >= 0
- local
- str: STRING
- do
- str := x.out
- str.append_string(":")
- str.append_string(y.out)
- iup_open.set_attribute(Current, "ORIGINOFFSET", str)
- end
- set_read_only (state: BOOLEAN)
-
-
-
- do
- iup_open.set_attribute(Current, "READONLY", boolean_to_yesno(state))
- end
- set_show_fill_value (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "SHOWFILLVALUE", boolean_to_yesno(state))
- end
- set_toggle_centered (state: BOOLEAN)
-
- do
- iup_open.set_attribute(Current, "TOGGLECENTERED", boolean_to_yesno(state))
- end
- set_toggle_image_on (name: STRING)
-
-
- do
- iup_open.set_attribute(Current, "TOGGLEIMAGEON", name)
- end
- set_toggle_image_off (name: STRING)
-
-
- do
- iup_open.set_attribute(Current, "TOGGLEIMAGEOFF", name)
- end
- set_type_color_inactive (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "TYPECOLORINACTIVE", boolean_to_yesno(state))
- end
-
-
- set_corner_title (title: STRING)
-
- do
- iup_open.set_attribute_id2(Current, "", 0, 0, title)
- end
- get_corner_title: STRING
- do
- Result := iup_open.get_attribute_id2(Current, "", 0, 0)
- end
- set_line_title (line: INTEGER; title: STRING)
-
- do
- iup_open.set_attribute_id2(Current, "", line, 0, title)
- end
- get_line_title (line: INTEGER): STRING
- do
- Result := iup_open.get_attribute_id2(Current, "", line, 0)
- end
- set_column_title (column: INTEGER; title: STRING)
-
- do
- iup_open.set_attribute_id2(Current, "", 0, column, title)
- end
- get_column_title (column: INTEGER): STRING
- do
- Result := iup_open.get_attribute_id2(Current, "", 0, column)
- end
- set_text_at_cell (text: STRING; line, column: INTEGER)
-
- do
- iup_open.set_attribute_id2(Current, "", line, column, text)
- end
- get_text_at_cell (line, column: INTEGER): STRING
- do
- Result := iup_open.get_attribute_id2(Current, "", line, column)
- end
-
- set_alignment_at (line_align, col_align: STRING; line, column: INTEGER)
-
-
-
-
- require
- is_valid_lin_align (line_align)
- is_valid_col_align (col_align)
- line >= 0
- column >= 0
- local
- str: STRING
- do
- create str.make_from_string(line_align)
- str.append_string(":")
- str.append_string(col_align)
- iup_open.set_attribute_id2(Current, "ALIGN", line, column, str)
- end
- get_alignment_at (line, column: INTEGER): TUPLE[STRING, STRING]
-
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "ALIGN", line, column)
- Result := components_of_alignment (str)
- end
- set_type_cell_at (type: STRING; line, column: INTEGER)
-
-
-
-
-
-
-
-
-
- require
- is_valid_type_cell (type)
- line > 0
- column > 0
- do
- iup_open.set_attribute_id2(Current, "TYPE", line, column, type)
- end
- get_type_cell_at (line, column: INTEGER): STRING
- do
- Result := iup_open.get_attribute_id2(Current, "TYPE", line, column)
- end
- set_type_column (type: STRING; column: INTEGER)
- require
- is_valid_type_cell (type)
- column > 0
- do
- iup_open.set_attribute_id2(Current, "TYPE", -10, column, type)
- end
- get_type_column (column: INTEGER): STRING
- do
- Result := iup_open.get_attribute_id2(Current, "TYPE", -10, column)
- end
- set_type_line (type: STRING; line: INTEGER)
- require
- is_valid_type_cell (type)
- line > 0
- do
- iup_open.set_attribute_id2(Current, "TYPE", line, -10, type)
- end
- get_type_line (line: INTEGER): STRING
- do
- Result := iup_open.get_attribute_id2(Current, "TYPE", line, -10)
- end
- set_background_color_at (red, green, blue, line, column: INTEGER)
-
-
-
-
-
-
-
-
-
-
- require
- line >= 0
- column >= 0
- do
- iup_open.set_attribute_id2(Current, "BGCOLOR", line, column, rgb_to_string(red, green, blue))
- end
- get_background_color_at (line, column: INTEGER): TUPLE[INTEGER, INTEGER, INTEGER]
- require
- line >= 0
- column >= 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "BGCOLOR", line, column)
- Result := string_to_rgb(str)
- end
- set_background_color_at_column (red, green, blue, column: INTEGER)
- require
- column >= 0
- do
- iup_open.set_attribute_id2(Current, "BGCOLOR", -10, column, rgb_to_string(red, green, blue))
- end
- get_background_color_at_column (column: INTEGER): TUPLE[INTEGER, INTEGER, INTEGER]
- require
- column >= 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "BGCOLOR", -10, column)
- Result := string_to_rgb(str)
- end
- set_background_color_at_line (red, green, blue, line: INTEGER)
- require
- line >= 0
- do
- iup_open.set_attribute_id2(Current, "BGCOLOR", line, -10, rgb_to_string(red, green, blue))
- end
- get_background_color_at_line (line: INTEGER): TUPLE[INTEGER, INTEGER, INTEGER]
- require
- line >= 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "BGCOLOR", line, -10)
- Result := string_to_rgb(str)
- end
- set_foreground_color_at (red, green, blue, line, column: INTEGER)
-
-
-
-
-
-
-
-
-
-
- require
- line >= 0
- column >= 0
- do
- iup_open.set_attribute_id2(Current, "FGCOLOR", line, column, rgb_to_string(red, green, blue))
- end
- get_foreground_color_at (line, column: INTEGER): TUPLE[INTEGER, INTEGER, INTEGER]
- require
- line >= 0
- column >= 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "FGCOLOR", line, column)
- Result := string_to_rgb(str)
- end
- set_foreground_color_at_column (red, green, blue, column: INTEGER)
- require
- column >= 0
- do
- iup_open.set_attribute_id2(Current, "FGCOLOR", -10, column, rgb_to_string(red, green, blue))
- end
- get_foreground_color_at_column (column: INTEGER): TUPLE[INTEGER, INTEGER, INTEGER]
- require
- column >= 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "FGCOLOR", -10, column)
- Result := string_to_rgb(str)
- end
- set_foreground_color_at_line (red, green, blue, line: INTEGER)
- require
- line >= 0
- do
- iup_open.set_attribute_id2(Current, "FGCOLOR", line, -10, rgb_to_string(red, green, blue))
- end
- get_foreground_color_at_line (line: INTEGER): TUPLE[INTEGER, INTEGER, INTEGER]
- require
- line >= 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "FGCOLOR", line, -10)
- Result := string_to_rgb(str)
- end
- set_font_at (font: STRING; line, column: INTEGER)
-
-
-
- require
- non_negative: line >= 0
- column >= 0
- do
- iup_open.set_attribute_id2(Current, "FONT", line, column, font)
- end
- set_font_at_column (font: STRING; column: INTEGER)
- require
- non_negative: column >= 0
- do
- iup_open.set_attribute_id2(Current, "FONT", -10, column, font)
- end
- set_font_at_line (font: STRING; line: INTEGER)
- require
- non_negative: line >= 0
- do
- iup_open.set_attribute_id2(Current, "FONT", line, -10, font)
- end
- set_frame_color (red, green, blue: INTEGER)
-
- do
- iup_open.set_attribute(Current, "FRAMECOLOR", rgb_to_string(red, green, blue))
- end
- set_vertical_frame_color_at (red, green, blue, line, column: INTEGER)
-
-
-
-
- require
- line >= 0
- column >= 0
- do
- iup_open.set_attribute_id2(Current, "FRAMEVERTCOLOR", line, column,
- rgb_to_string(red, green, blue))
- end
- set_vertical_frame_color_at_column (red, green, blue, column: INTEGER)
-
-
- require
- column >= 0
- do
- iup_open.set_attribute_id2(Current, "FRAMEVERTCOLOR", -10, column,
- rgb_to_string(red, green, blue))
- end
- set_vertical_frame_color_at_line (red, green, blue, line: INTEGER)
-
-
- require
- line >= 0
- do
- iup_open.set_attribute_id2(Current, "FRAMEVERTCOLOR", line, -10,
- rgb_to_string(red, green, blue))
- end
- set_frame_title_vertical_color_at_line (red, green, blue, line: INTEGER)
-
-
- require
- line >= 0
- do
- iup_open.set_attribute_id2(Current, "FRAMETITLEVERTCOLOR", line, 0,
- rgb_to_string(red, green, blue))
- end
- set_frame_title_vertical_color (red, green, blue: INTEGER)
-
-
- do
- iup_open.set_attribute_id2(Current, "FRAMETITLEVERTCOLOR", -10, 0,
- rgb_to_string(red, green, blue))
- end
- set_horizontal_frame_color_at (red, green, blue, line, column: INTEGER)
-
-
-
-
- require
- line >= 0
- column >= 0
- do
- iup_open.set_attribute_id2(Current, "FRAMEHORIZCOLOR", line, column,
- rgb_to_string(red, green, blue))
- end
- set_horizontal_frame_color_at_line (red, green, blue, line: INTEGER)
-
-
- require
- line >= 0
- do
- iup_open.set_attribute_id2(Current, "FRAMEHORIZCOLOR", line, -10,
- rgb_to_string(red, green, blue))
- end
- set_horizontal_frame_color_at_column (red, green, blue, column: INTEGER)
-
-
- require
- column >= 0
- do
- iup_open.set_attribute_id2(Current, "FRAMEHORIZCOLOR", -10, column,
- rgb_to_string(red, green, blue))
- end
- set_frame_title_horizontal_color_at_column (red, green, blue, column: INTEGER)
-
-
- require
- column >= 0
- do
- iup_open.set_attribute_id2(Current, "FRAMETITLEHORIZCOLOR", 0, column,
- rgb_to_string(red, green, blue))
- end
- set_frame_title_horizontal_color (red, green, blue: INTEGER)
-
-
- do
- iup_open.set_attribute_id2(Current, "FRAMETITLEHORIZCOLOR", 0, -10,
- rgb_to_string(red, green, blue))
- end
- set_frame_title_highlight (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "FRAMETITLEHIGHLIGHT", boolean_to_yesno(state))
- end
- set_frame_border (state: BOOLEAN)
-
-
-
- do
- iup_open.set_attribute(Current, "FRAMEBORDER", boolean_to_yesno(state))
- end
- set_resize_matrix_color (red, green, blue: INTEGER)
-
- do
- iup_open.set_attribute(Current, "RESIZEMATRIXCOLOR", rgb_to_string(red, green, blue))
- end
- set_toggle_value_at (value: STRING; line, column: INTEGER)
-
-
-
- require
- non_negative: line >= 0
- column >= 0
- do
- iup_open.set_attribute_id2(Current, "TOGGLEVALUE", line, column, value)
- end
- get_toggle_value_at (line, column: INTEGER): STRING
- require
- non_negative: line >= 0
- column >= 0
- do
- Result := iup_open.get_attribute_id2 (Current, "TOGGLEVALUE", line, column)
- end
- set_value (value: STRING)
-
-
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "VALUE", value)
- end
- get_value: STRING
-
-
-
-
- do
- Result := iup_open.get_attribute(Current, "VALUE")
- end
-
- get_cell_at (line, column: INTEGER): STRING
-
-
- require
- non_negative: line >= 0
- column >= 0
- do
- Result := iup_open.get_attribute_id2(Current, "CELL", line, column)
- end
- get_cell_background_color_at (line, column: INTEGER): TUPLE[INTEGER, INTEGER, INTEGER]
-
-
- require
- non_negative: line >= 0
- column >= 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "CELLBGCOLOR", line, column)
- Result := string_to_rgb(str)
- end
- get_cell_foreground_color_at (line, column: INTEGER): TUPLE[INTEGER, INTEGER, INTEGER]
-
-
- require
- non_negative: line >= 0
- column >= 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "CELLFGCOLOR", line, column)
- Result := string_to_rgb(str)
- end
- get_cell_font_at (line, column: INTEGER): STRING
-
-
- require
- non_negative: line >= 0
- column >= 0
- do
- Result := iup_open.get_attribute_id2(Current, "CELLFONT", line, column)
- end
- get_cell_type_at (line, column: INTEGER): STRING
-
-
- require
- non_negative: line >= 0
- column >= 0
- do
- Result := iup_open.get_attribute_id2(Current, "CELLTYPE", line, column)
- end
- get_cell_frame_horizontal_color_at (line, column: INTEGER): TUPLE[INTEGER, INTEGER, INTEGER]
-
-
-
- require
- non_negative: line >= 0
- column >= 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "CELLFRAMEHORIZCOLOR", line, column)
- Result := string_to_rgb(str)
- end
- get_cell_frame_vertical_color_at (line, column: INTEGER): TUPLE[INTEGER, INTEGER, INTEGER]
-
-
-
- require
- non_negative: line >= 0
- column >= 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "CELLFRAMEVERTCOLOR", line, column)
- Result := string_to_rgb(str)
- end
- get_cell_alignment_at (line, column: INTEGER): STRING
-
-
-
- require
- non_negative: line >= 0
- column >= 0
- do
- Result := iup_open.get_attribute_id2(Current, "CELLALIGNMENT", line, column)
- end
- get_cell_offset_at (line, column: INTEGER): TUPLE[INTEGER, INTEGER]
-
-
-
-
-
-
- require
- non_negative: line >= 0
- column >= 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "CELLOFFSET", line, column)
- Result := components_of_size (str)
- end
- get_cell_size_at (line, column: INTEGER): TUPLE[INTEGER, INTEGER]
-
-
-
-
-
- require
- non_negative: line >= 0
- column >= 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "CELLSIZE", line, column)
- Result := components_of_size (str)
- end
-
- set_horizontal_alignment_at_column (value: STRING; column: INTEGER)
-
-
-
-
-
- require
- valid: column >= 0
- is_valid_col_align(value)
- do
- iup_open.set_attribute_id(Current, "ALIGNMENT", column, value)
- end
- get_horizontal_alignment_at_column (column: INTEGER): STRING
- require
- non_negative: column >= 0
- do
- Result := iup_open.get_attribute_id(Current, "ALIGNMENT", column)
- end
- set_alignment_line_0 (value: STRING)
-
- require
- valid: is_valid_col_align(value)
- do
- iup_open.set_attribute(Current, "ALIGNMENTLIN0", value)
- end
- get_alignment_line_0: STRING
- do
- Result := iup_open.get_attribute(Current, "ALIGNMENTLIN0")
- end
- set_vertical_alignment_at_line (value: STRING; line: INTEGER)
-
-
- require
- valid: line >= 0
- is_valid_lin_align(value)
- do
- iup_open.set_attribute_id(Current, "LINEALIGNMENT", line, value)
- end
- get_vertical_alignment_at_line (line: INTEGER): STRING
- require
- non_negative: line >= 0
- do
- Result := iup_open.get_attribute_id(Current, "LINEALIGNMENT", line)
- end
- set_sort_sign_at_column (value: STRING; column: INTEGER)
-
-
- require
- valid: column >= 0
- is_valid_sort_sign(value)
- do
- iup_open.set_attribute_id(Current, "SORTSIGN", column, value)
- end
- get_sort_sign_at_column (column: INTEGER): STRING
- do
- Result := iup_open.get_attribute_id(Current, "SORTSIGN", column)
- end
- set_sort_image_down (name: STRING)
-
-
- do
- iup_open.set_attribute(Current, "SORTIMAGEDOWN", name)
- end
- get_sort_image_down: STRING
- do
- Result := iup_open.get_attribute(Current, "SORTIMAGEDOWN")
- end
- set_sort_image_up (name: STRING)
-
-
- do
- iup_open.set_attribute(Current, "SORTIMAGEUP", name)
- end
- get_sort_image_up: STRING
- do
- Result := iup_open.get_attribute(Current, "SORTIMAGEUP")
- end
-
- set_limit_expand (state: BOOLEAN)
-
-
-
-
- do
- iup_open.set_attribute(Current, "LIMITEXPAND", boolean_to_yesno(state))
- end
- is_limit_expand: BOOLEAN
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "LIMITEXPAND")
- Result := yesno_to_boolean(str)
- end
- set_resize_matrix (state: BOOLEAN)
-
-
-
-
- do
- iup_open.set_attribute(Current, "RESIZEMATRIX", boolean_to_yesno(state))
- end
- is_resize_matrix: BOOLEAN
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "RESIZEMATRIX")
- Result := yesno_to_boolean(str)
- end
- set_resize_drag (state: BOOLEAN)
-
-
-
-
- do
- iup_open.set_attribute(Current, "RESIZEDRAG", boolean_to_yesno(state))
- end
- set_use_title_size (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "USETITLESIZE", boolean_to_yesno(state))
- end
- is_use_title_size: BOOLEAN
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "USETITLESIZE")
- Result := yesno_to_boolean(str)
- end
-
- set_width_at_column (width, column: INTEGER)
-
-
-
-
- require
- non_negative: width >= 0
- column >= 0
- do
- iup_open.set_attribute_id(Current, "WIDTH", column, width.out)
- end
- get_width_at_column (column: INTEGER): INTEGER
- require
- non_negative: column >= 0
- do
- Result := iup_open.get_attribute_id(Current, "WIDTH", column).to_integer
- end
- set_default_width (width: INTEGER)
-
-
- require
- non_negative: width >= 0
- do
- iup_open.set_attribute(Current, "WIDTHDEF", width.out)
- end
- get_default_width: INTEGER
- do
- Result := iup_open.get_attribute(Current, "WIDTHDEF").to_integer
- end
- set_raster_width_at_column (width, column: INTEGER)
-
-
- require
- non_negative: width >= 0
- column >= 0
- do
- iup_open.set_attribute_id(Current, "RASTERWIDTH", column, width.out)
- end
- get_raster_width_at_column (column: INTEGER): INTEGER
- require
- non_negative: column >= 0
- do
- Result := iup_open.get_attribute_id(Current, "RASTERWIDTH", column).to_integer
- end
- set_min_width_at_column (width, column: INTEGER)
-
-
- require
- non_negative: width >= 0
- column >= 0
- do
- iup_open.set_attribute_id(Current, "MINCOLWIDTH", column, width.out)
- end
- set_default_min_width (width: INTEGER)
- require
- non_negative: width >= 0
- do
- iup_open.set_attribute(Current, "MINCOLWIDTHDEF", width.out)
- end
-
- set_height_at_line (height, line: INTEGER)
-
-
-
-
- require
- non_negative: height >= 0
- line >= 0
- do
- iup_open.set_attribute_id(Current, "HEIGHT", line, height.out)
- end
- get_height_at_line (line: INTEGER): INTEGER
- require
- non_negative: line >= 0
- do
- Result := iup_open.get_attribute_id(Current, "HEIGHT", line).to_integer
- end
- set_default_height (height: INTEGER)
-
-
- require
- non_negative: height >= 0
- do
- iup_open.set_attribute(Current, "HEIGHTDEF", height.out)
- end
- get_default_height: INTEGER
- do
- Result := iup_open.get_attribute(Current, "HEIGHTDEF").to_integer
- end
- set_raster_height_at_line (height, line: INTEGER)
-
-
- require
- non_negative: height >= 0
- line >= 0
- do
- iup_open.set_attribute_id(Current, "RASTERHEIGHT", line, height.out)
- end
- get_raster_height_at_line (line: INTEGER): INTEGER
- require
- non_negative: line >= 0
- do
- Result := iup_open.get_attribute_id(Current, "RASTERHEIGHT", line).to_integer
- end
-
- add_column (ref: INTEGER)
-
-
-
-
-
- require
- non_negative: ref >= 0
- do
- iup_open.set_attribute(Current, "ADDCOL", ref.out)
- end
- add_columns (ref, count: INTEGER)
-
-
-
-
-
-
- require
- non_negative: ref >= 0
- count > 0
- local
- str: STRING
- do
- str := ref.out
- str.append_string("-")
- str.append_string(count.out)
- iup_open.set_attribute(Current, "ADDCOL", str)
- end
- add_line (ref: INTEGER)
-
-
-
-
-
- require
- non_negative: ref >= 0
- do
- iup_open.set_attribute(Current, "ADDLIN", ref.out)
- end
- add_lines (ref, count: INTEGER)
-
-
-
-
-
-
- require
- non_negative: ref >= 0
- count > 0
- local
- str: STRING
- do
- str := ref.out
- str.append_string("-")
- str.append_string(count.out)
- iup_open.set_attribute(Current, "ADDLIN", str)
- end
- delete_column (ref: INTEGER)
-
-
-
-
- require
- ref > 0
- do
- iup_open.set_attribute(Current, "DELCOL", ref.out)
- end
- delete_columns (ref, count: INTEGER)
-
-
-
-
-
- require
- ref > 0
- count > 0
- local
- str: STRING
- do
- str := ref.out
- str.append_string("-")
- str.append_string(count.out)
-
- iup_open.set_attribute(Current, "DELCOL", str)
- end
- delete_line (ref: INTEGER)
-
-
-
-
- require
- ref > 0
- do
- iup_open.set_attribute(Current, "DELLIN", ref.out)
- end
- delete_lines (ref, count: INTEGER)
-
-
-
-
-
- require
- ref > 0
- count > 0
- local
- str: STRING
- do
- str := ref.out
- str.append_string("-")
- str.append_string(count.out)
-
- iup_open.set_attribute(Current, "DELLIN", str)
- end
- set_number_of_columns (count: INTEGER)
-
-
-
- require
- non_negative: count >= 0
- do
- iup_open.set_attribute(Current, "NUMCOL", count.out)
- end
- get_number_of_columns: INTEGER
- do
- Result := iup_open.get_attribute(Current, "NUMCOL").to_integer
- end
- set_number_of_visible_columns (count: INTEGER)
-
-
-
-
-
-
-
-
-
- require
- non_negative: count >= 0
- do
- iup_open.set_attribute(Current, "NUMCOL_VISIBLE", count.out)
- end
- get_number_of_visible_columns: INTEGER
-
-
- do
- Result := iup_open.get_attribute(Current, "NUMCOL_VISIBLE").to_integer
- end
- set_number_of_non_scrollable_columns (count: INTEGER)
-
-
-
-
-
-
- require
- non_negative: count >= 0
- do
- iup_open.set_attribute(Current, "NUMCOL_NOSCROLL", count.out)
- end
- set_visible_last_columns (state: BOOLEAN)
- do
- iup_open.set_attribute(Current, "NUMCOL_VISIBLE_LAST", boolean_to_yesno(state))
- end
- set_number_of_lines (count: INTEGER)
-
-
-
- require
- non_negative: count >= 0
- do
- iup_open.set_attribute(Current, "NUMLIN", count.out)
- end
- get_number_of_lines: INTEGER
- do
- Result := iup_open.get_attribute(Current, "NUMLIN").to_integer
- end
- set_number_of_visible_lines (count: INTEGER)
-
-
-
-
-
-
-
-
-
- require
- non_negative: count >= 0
- do
- iup_open.set_attribute(Current, "NUMLIN_VISIBLE", count.out)
- end
- get_number_of_visible_lines: INTEGER
-
-
- do
- Result := iup_open.get_attribute(Current, "NUMLIN_VISIBLE").to_integer
- end
- set_number_of_non_scrollable_lines (count: INTEGER)
-
-
-
-
-
-
- require
- non_negative: count >= 0
- do
- iup_open.set_attribute(Current, "NUMLIN_NOSCROLL", count.out)
- end
- set_visible_last_lines (state: BOOLEAN)
- do
- iup_open.set_attribute(Current, "NUMLIN_VISIBLE_LAST", boolean_to_yesno(state))
- end
- set_no_scroll_as_title (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "NOSCROLLASTITLE", boolean_to_yesno(state))
- end
-
- set_mark_area_continuous
-
-
-
- do
- iup_open.set_attribute(Current, "MARKAREA", "CONTINUOUS")
- end
- set_mark_area_not_continuous
-
-
- do
- iup_open.set_attribute(Current, "MARKAREA", "NOT_CONTINUOUS")
- end
- set_mark_at_title (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "MARKATTITLE", boolean_to_yesno(state))
- end
- set_mark_mode_no
-
- do
- iup_open.set_attribute(Current, "MARKMODE", "NO")
- end
- set_mark_mode_lines
-
- do
- iup_open.set_attribute(Current, "MARKMODE", "LIN")
- end
- set_mark_mode_columns
-
- do
- iup_open.set_attribute(Current, "MARKMODE", "COL")
- end
- set_mark_mode_lines_and_columns
-
- do
- iup_open.set_attribute(Current, "MARKMODE", "LINCOL")
- end
- set_mark_mode_cell
-
- do
- iup_open.set_attribute(Current, "MARKMODE", "CELL")
- end
- mark_cell (line, column: INTEGER)
-
-
- require
- line > 0
- column > 0
- do
- iup_open.set_attribute_id2(Current, "MARK", line, column, "1")
- end
- unmark_cell (line, column: INTEGER)
-
- require
- line > 0
- column > 0
- do
- iup_open.set_attribute_id2(Current, "MARK", line, column, "0")
- end
- is_marked_cell (line, column: INTEGER): BOOLEAN
- require
- line > 0
- column > 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "MARK", line, column)
- Result := string_to_boolean(str)
- end
- mark_line (line: INTEGER)
-
- require
- line > 0
- do
- iup_open.set_attribute_id2(Current, "MARK", line, 0, "1")
- end
- unmark_line (line: INTEGER)
-
- require
- line > 0
- do
- iup_open.set_attribute_id2(Current, "MARK", line, 0, "0")
- end
- is_marked_line (line: INTEGER): BOOLEAN
- require
- line > 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "MARK", line, 0)
- Result := string_to_boolean(str)
- end
- mark_column (column: INTEGER)
-
- require
- column > 0
- do
- iup_open.set_attribute_id2(Current, "MARK", 0, column, "1")
- end
- unmark_column (column: INTEGER)
-
- require
- column > 0
- do
- iup_open.set_attribute_id2(Current, "MARK", 0, column, "0")
- end
- is_marked_column (column: INTEGER): BOOLEAN
- require
- column > 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "MARK", 0, column)
- Result := string_to_boolean(str)
- end
- clear_marks
-
- do
- iup_open.set_attribute_null(Current, "MARKED")
- end
- mark_cells (values: ARRAY2[BOOLEAN])
-
-
-
-
- do
- iup_open.set_attribute(Current, "MARKED", array2_to_marks(values))
- end
- marked_cells: detachable ARRAY2[BOOLEAN]
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "MARKED")
-
- if not str.head(1).is_equal("L") and
- not str.head(1).is_equal("C") then
-
- Result := marks_to_array2(str)
- end
- end
- mark_lines (values: ARRAY[BOOLEAN])
- do
- iup_open.set_attribute(Current, "MARKED", "L" + array_to_marks(values))
- end
- marked_lines: detachable ARRAY[BOOLEAN]
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "MARKED")
- if str.head(1).is_equal("L") then
- str.remove_head(1)
- Result := marks_to_array(str, get_number_of_lines)
- end
- end
- mark_columns (values: ARRAY[BOOLEAN])
- do
- iup_open.set_attribute(Current, "MARKED", "C" + array_to_marks(values))
- end
- marked_columns: detachable ARRAY[BOOLEAN]
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "MARKED")
- if str.head(1).is_equal("C") then
- str.remove_head(1)
- Result := marks_to_array(str, get_number_of_columns)
- end
- end
- set_mark_multiple (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "MARKMULTIPLE", boolean_to_yesno(state))
- end
-
- merge_range (line1, column1, line2, column2: INTEGER)
-
-
-
-
-
-
- require
- non_negative: line1 >= 0
- column1 > 0
- line2 >= 0
- column2 >= 0
- local
- str: STRING
- do
- str := line2.out
- str.append_string(":")
- str.append_string(column2.out)
- iup_open.set_attribute_id2(Current, "MERGE", line1, column2, str)
- end
- is_merged_cell (line, column: INTEGER): BOOLEAN
-
- require
- non_negative: line >= 0
- column > 0
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "MERGE", line, column)
- Result := yesno_to_boolean(str)
- end
- split_a_merged_range (line, column: INTEGER)
-
-
- require
- non_negative: line >= 0
- column > 0
- local
- str: STRING
- do
- str := line.out
- str.append_string(":")
- str.append_string(column.out)
- iup_open.set_attribute(Current, "MERGESPLIT", str)
- end
- range_start (line, column: INTEGER): TUPLE[INTEGER, INTEGER]
-
-
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "MERGEDSTART", line, column)
- Result := components_of (str, ':')
- end
- range_end (line, column: INTEGER): TUPLE[INTEGER, INTEGER]
-
-
- local
- str: STRING
- do
- str := iup_open.get_attribute_id2(Current, "MERGEDEND", line, column)
- Result := components_of (str, ':')
- end
-
- clear_all_attributes
-
-
- do
- iup_open.set_attribute(Current, "CLEARATTRIB", "ALL")
- end
- clear_all_attributes_except_contents
-
- do
- iup_open.set_attribute(Current, "CLEARATTRIB", "CONTENTS")
- end
- clear_all_attributes_at_marked_cells
-
- do
- iup_open.set_attribute(Current, "CLEARATTRIB", "MARKED")
- end
- clear_all_attributes_at_interval (line1, column1, line2, column2: INTEGER)
-
-
- require
- line1 >= 0
- column1 >= 0
- line2 >= 0
- column2 >= 0
- local
- str: STRING
- do
- str := line2.out
- str.append_string(":")
- str.append_string(column2.out)
- iup_open.set_attribute_id2(Current, "CLEARATTRIB", line1, column1, str)
- end
- clear_all_line_attributes_at_interval (line, column1, column2: INTEGER)
-
-
- require
- line >= 0
- column1 >= 0
- column2 >= 0
- local
- str: STRING
- do
- str := column1.out
- str.append_string("-")
- str.append_string(column2.out)
- iup_open.set_attribute_id2(Current, "CLEARATTRIB", line, -10, str)
- end
- clear_all_column_attributes_at_interval (column, line1, line2: INTEGER)
-
-
-
- require
- column >= 0
- line1 >= 0
- line2 >= 0
- local
- str: STRING
- do
- str := line1.out
- str.append_string("-")
- str.append_string(line2.out)
- iup_open.set_attribute_id2(Current, "CLEARATTRIB", -10, column, str)
- end
- clear_all_values
-
- do
- iup_open.set_attribute(Current, "CLEARVALUE", "ALL")
- end
- clear_all_values_except_contents
-
- do
- iup_open.set_attribute(Current, "CLEARVALUE", "CONTENTS")
- end
- clear_all_values_at_marked_cells
-
- do
- iup_open.set_attribute(Current, "CLEARVALUE", "MARKED")
- end
- clear_all_values_at_interval (line1, column1, line2, column2: INTEGER)
-
-
- require
- line1 >= 0
- column1 >= 0
- line2 >= 0
- column2 >= 0
- local
- str: STRING
- do
- str := line2.out
- str.append_string(":")
- str.append_string(column2.out)
- iup_open.set_attribute_id2(Current, "CLEARVALUE", line1, column1, str)
- end
- clear_all_line_values_at_interval (line, column1, column2: INTEGER)
-
- require
- line >= 0
- column1 >= 0
- column2 >= 0
- local
- str: STRING
- do
- str := column1.out
- str.append_string("-")
- str.append_string(column2.out)
- iup_open.set_attribute_id2(Current, "CLEARVALUE", line, -10, str)
- end
- clear_all_column_values_at_interval (column, line1, line2: INTEGER)
-
- require
- column >= 0
- line1 >= 0
- line2 >= 0
- local
- str: STRING
- do
- str := line1.out
- str.append_string("-")
- str.append_string(line2.out)
- iup_open.set_attribute_id2(Current, "CLEARVALUE", -10, column, str)
- end
- copy_column_to (source_column, target_column: INTEGER)
-
- require
- source_column >= 0
- target_column >= 0
- do
- iup_open.set_attribute_id(Current, "COPYCOL", source_column,
- target_column.out)
- end
- copy_line_to (source_line, target_line: INTEGER)
-
- require
- source_line >= 0
- target_line >= 0
- do
- iup_open.set_attribute_id(Current, "COPYLIN", source_line,
- target_line.out)
- end
- fit_to_size_lines
-
-
-
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "FITTOSIZE", "LINES")
- end
- fit_to_size_columns
-
-
-
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "FITTOSIZE", "COLUMNS")
- end
- fit_to_size_lines_and_columns
-
-
-
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "FITTOSIZE", "YES")
- end
- set_fit_maximum_width_at_column (value, column: INTEGER)
-
- require
- value > 0
- column >= 0
- do
- iup_open.set_attribute_id(Current, "FITMAXWIDTH", column, value.out)
- end
- set_fit_maximum_height_at_line (value, line: INTEGER)
-
- require
- value > 0
- line >= 0
- do
- iup_open.set_attribute_id(Current, "FITMAXHEIGHT", line, value.out)
- end
- fit_to_text_at_column (column: INTEGER)
-
- require
- column >= 0
- do
- iup_open.set_attribute(Current, "FITTOTEXT", "C" + column.out)
- end
- fit_to_text_at_line (line: INTEGER)
-
- require
- line >= 0
- do
- iup_open.set_attribute(Current, "FITTOTEXT", "L" + line.out)
- end
- move_column_to (origin, target: INTEGER)
-
-
-
-
-
-
- require
- origin > 0
- target >= 0
- do
- iup_open.set_attribute_id(Current, "MOVECOL", origin, target.out)
- end
- move_line_to (origin, target: INTEGER)
-
-
-
-
-
-
- require
- origin > 0
- target >= 0
- do
- iup_open.set_attribute_id(Current, "MOVELIN", origin, target.out)
- end
- redraw_all
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "REDRAW", "ALL")
- end
- redraw_line (line: INTEGER)
-
-
- require
- line >= 0
- do
- iup_open.set_attribute(Current, "REDRAW", "L" + line.out)
- end
- redraw_column (column: INTEGER)
-
-
- require
- column >= 0
- do
- iup_open.set_attribute(Current, "REDRAW", "C" + column.out)
- end
- redraw_lines_in_region (start_line, end_line: INTEGER)
-
-
- require
- start_line >= 0
- end_line > 0
- do
- iup_open.set_attribute(Current, "REDRAW", "L" + start_line.out +
- "-" + end_line.out)
- end
- redraw_columns_in_region (start_column, end_column: INTEGER)
-
-
- require
- start_column >= 0
- end_column > 0
- do
- iup_open.set_attribute(Current, "REDRAW", "C" +
- start_column.out + "-" +
- end_column.out)
- end
- show_cell (line, column: INTEGER)
-
- require
- line > 0
- column > 0
- do
- iup_open.set_attribute(Current, "SHOW", line.out + ":" +
- column.out)
- end
- show_line (line: INTEGER)
-
- require
- line > 0
- do
- iup_open.set_attribute(Current, "SHOW", line.out + ":*")
- end
- show_column (column: INTEGER)
-
- require
- column > 0
- do
- iup_open.set_attribute(Current, "SHOW", "*:" + column.out)
- end
-
- set_edit_mode (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "EDITMODE", boolean_to_yesno(state))
- end
- is_visible_editing_control: BOOLEAN
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "EDITMODE")
- Result := yesno_to_boolean(str)
- end
- set_edit_alignment (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "EDITALIGN", boolean_to_yesno(state))
- end
- get_edited_cell: detachable TUPLE[INTEGER, INTEGER]
-
-
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "EDITCELL")
- if str /= Void then
- Result := components_of (str, ':')
- end
- end
- set_edit_fit_value (state: BOOLEAN)
-
-
-
- do
- iup_open.set_attribute(Current, "EDITFITVALUE", boolean_to_yesno(state))
- end
- set_edit_hide_on_focus (state: BOOLEAN)
-
-
-
-
- do
- iup_open.set_attribute(Current, "EDITHIDEONFOCUS", boolean_to_yesno(state))
- end
- is_editing: BOOLEAN
-
-
-
-
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "EDITING")
- Result := yesno_to_boolean(str)
- end
- set_edit_next (value: STRING)
-
-
-
-
-
-
-
-
-
-
-
-
- require
- is_valid_edit_next(value)
- do
- iup_open.set_attribute(Current, "EDITNEXT", value)
- end
- is_edit_text: BOOLEAN
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "EDITTEXT")
- Result := yesno_to_boolean(str)
- end
- is_edit_value: BOOLEAN
-
-
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "EDITVALUE")
- Result := yesno_to_boolean(str)
- end
- is_cell_edited: BOOLEAN
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "CELL_EDITED")
- Result := yesno_to_boolean(str)
- end
-
- set_caret (point: STRING)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "CARET", point)
- end
- get_caret: STRING
-
-
-
-
-
-
- do
- Result := iup_open.get_attribute(Current, "CARET")
- end
- insert_text (text: STRING)
-
- do
- iup_open.set_attribute(Current, "INSERT", text)
- end
- set_mask_at (mask: STRING; line, column: INTEGER)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- require
- line > 0
- column > 0
- do
- if mask.is_equal("REMOVE") then
- iup_open.set_attribute_id2_null(Current, "MASK", line, column)
- elseif mask_dictionary.has(mask) and
- attached mask_dictionary.at (mask) as str then
- iup_open.set_attribute_id2(Current, "MASK", line, column, str)
- else
- iup_open.set_attribute_id2(Current, "MASK", line, column, mask)
- end
- end
- set_mask_case_insesitive_at (state: BOOLEAN; line, column: INTEGER)
-
- require
- line > 0
- column > 0
- do
- iup_open.set_attribute_id2(Current, "MASKCASEI", line, column, boolean_to_yesno(state))
- end
- set_mask_no_empty_at (state: BOOLEAN; line, column: INTEGER)
-
-
- require
- line > 0
- column > 0
- do
- iup_open.set_attribute_id2(Current, "MASKNOEMPTY", line, column, boolean_to_yesno(state))
- end
- set_mask_decimal_symbol_at (value: STRING; line, column: INTEGER)
-
-
- require
- line > 0
- column > 0
- is_valid_symbol (value)
- do
- iup_open.set_attribute_id2(Current, "MASKDECIMALSYMBOL", line, column, value)
- end
- set_mask_integer_at (min, max, line, column: INTEGER)
-
-
- require
- line > 0
- column > 0
- local
- str: STRING
- do
- str := min.out
- str.append_string(":")
- str.append_string(max.out)
- iup_open.set_attribute_id2(Current, "MASKINT", line, column, str)
- end
- set_mask_float_at (min, max: REAL_64; line, column: INTEGER)
-
-
- require
- line > 0
- column > 0
- local
- str: STRING
- do
- str := min.out
- str.append_string(":")
- str.append_string(max.out)
- iup_open.set_attribute_id2(Current, "MASKFLOAT", line, column, str)
- end
- set_mask_at_line (mask: STRING; line: INTEGER)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- require
- line > 0
- do
- if mask.is_equal("REMOVE") then
- iup_open.set_attribute_id2_null(Current, "MASK", line, -10)
- elseif mask_dictionary.has(mask) and
- attached mask_dictionary.at(mask) as str then
- iup_open.set_attribute_id2(Current, "MASK", line, -10, str)
- else
- iup_open.set_attribute_id2(Current, "MASK", line, -10, mask)
- end
- end
- set_mask_case_insesitive_at_line (state: BOOLEAN; line: INTEGER)
-
- require
- line > 0
- do
- iup_open.set_attribute_id2(Current, "MASKCASEI", line, -10, boolean_to_yesno(state))
- end
- set_mask_no_empty_at_line (state: BOOLEAN; line: INTEGER)
-
-
- require
- line > 0
- do
- iup_open.set_attribute_id2(Current, "MASKNOEMPTY", line, -10, boolean_to_yesno(state))
- end
- set_mask_decimal_symbol_at_line (value: STRING; line: INTEGER)
-
-
- require
- line > 0
- is_valid_symbol (value)
- do
- iup_open.set_attribute_id2(Current, "MASKDECIMALSYMBOL", line, -10, value)
- end
- set_mask_integer_at_line (min, max, line: INTEGER)
-
-
- require
- line > 0
- local
- str: STRING
- do
- str := min.out
- str.append_string(":")
- str.append_string(max.out)
- iup_open.set_attribute_id2(Current, "MASKINT", line, -10, str)
- end
- set_mask_float_at_line (min, max: REAL_64; line: INTEGER)
-
-
- require
- line > 0
- local
- str: STRING
- do
- str := min.out
- str.append_string(":")
- str.append_string(max.out)
- iup_open.set_attribute_id2(Current, "MASKFLOAT", line, -10, str)
- end
- set_mask_at_column (mask: STRING; column: INTEGER)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- require
- column > 0
- do
- if mask.is_equal("REMOVE") then
- iup_open.set_attribute_id2_null(Current, "MASK", -10, column)
- elseif mask_dictionary.has(mask) and
- attached mask_dictionary.at(mask) as str then
- iup_open.set_attribute_id2(Current, "MASK", -10, column, str)
- else
- iup_open.set_attribute_id2(Current, "MASK", -10, column, mask)
- end
- end
- set_mask_case_insesitive_at_column (state: BOOLEAN; column: INTEGER)
-
- require
- column > 0
- do
- iup_open.set_attribute_id2(Current, "MASKCASEI", -10, column, boolean_to_yesno(state))
- end
- set_mask_no_empty_at_column (state: BOOLEAN; column: INTEGER)
-
-
- require
- column > 0
- do
- iup_open.set_attribute_id2(Current, "MASKNOEMPTY", -10, column, boolean_to_yesno(state))
- end
- set_mask_decimal_symbol_at_column (value: STRING; column: INTEGER)
-
-
- require
- column > 0
- is_valid_symbol (value)
- do
- iup_open.set_attribute_id2(Current, "MASKDECIMALSYMBOL", -10, column, value)
- end
- set_mask_integer_at_column (min, max, column: INTEGER)
-
-
- require
- column > 0
- local
- str: STRING
- do
- str := min.out
- str.append_string(":")
- str.append_string(max.out)
- iup_open.set_attribute_id2(Current, "MASKINT", -10, column, str)
- end
- set_mask_float_at_column (min, max: REAL_64; column: INTEGER)
-
-
- require
- column > 0
- local
- str: STRING
- do
- str := min.out
- str.append_string(":")
- str.append_string(max.out)
- iup_open.set_attribute_id2(Current, "MASKFLOAT", -10, column, str)
- end
- set_multi_line (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "MULTILINE", boolean_to_yesno(state))
- end
- set_selection (value: STRING)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "SELECTION", value)
- end
- select_all
-
- do
- iup_open.set_attribute(Current, "SELECTION", "ALL")
- end
-
- deselect_all
-
- do
- iup_open.set_attribute(Current, "SELECTION", "NONE")
- end
-
- set_border (state: BOOLEAN)
-
- do
- Precursor (state)
- end
- set_scroll_bar (state: BOOLEAN)
-
-
-
- do
- Precursor (state)
- end
-
- convert_xy_to_pos (x, y: INTEGER): INTEGER
-
-
- do
- Result := iup_open.iup_convert_xy_to_pos (Current, x, y)
- end
-
- set_cb_action (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, INTEGER, INTEGER, STRING], STRING])
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_action := act
- if cb_action /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "ACTION_CB", "Fniiiis", operation)
- end
- set_cb_click (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, STRING], STRING])
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_click := act
- if cb_click /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "CLICK_CB", "NONEEDED", operation)
- end
- set_cb_column_resise (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER], STRING])
-
-
-
-
- local
- operation: INTEGER
- do
- cb_colresize := act
- if cb_colresize /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "COLRESIZE_CB", "NONEEDED", operation)
- end
- set_cb_release (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, STRING], STRING])
-
-
-
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_release := act
- if cb_release /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "RELEASE_CB", "NONEEDED", operation)
- end
- set_cb_resize_matrix (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING])
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_resizematrix := act
- if cb_resizematrix /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "RESIZEMATRIX_CB", "NONEEDED", operation)
- end
- set_cb_toggle_value (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, INTEGER], STRING])
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_togglevalue := act
- if cb_togglevalue /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "TOGGLEVALUE_CB", "NONEEDED", operation)
- end
- set_cb_value_changed (act: detachable FUNCTION[TUPLE[IUP_MATRIX], STRING])
-
-
-
-
- local
- operation: INTEGER
- do
- cb_valuechanged := act
- if cb_valuechanged /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "VALUECHANGED_CB", "NONEEDED", operation)
- end
- set_cb_mouse_move (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING])
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_mousemove := act
- if cb_mousemove /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "MOUSEMOVE_CB", "NONEEDED", operation)
- end
- set_cb_enter_item (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING])
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_enteritem := act
- if cb_enteritem /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "ENTERITEM_CB", "NONEEDED", operation)
- end
- set_cb_leave_item (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING])
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_leaveitem := act
- if cb_leaveitem /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "LEAVEITEM_CB", "NONEEDED", operation)
- end
- set_cb_scroll_top (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING])
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_scrolltop := act
- if cb_scrolltop /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "SCROLLTOP_CB", "NONEEDED", operation)
- end
- set_cb_background_color (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, POINTER, POINTER, POINTER], STRING])
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_bgcolor := act
- if cb_bgcolor /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "BGCOLOR_CB", "NONEEDED", operation)
- end
- set_cb_foreground_color (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, POINTER, POINTER, POINTER], STRING])
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_fgcolor := act
- if cb_fgcolor /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "FGCOLOR_CB", "NONEEDED", operation)
- end
- set_cb_font (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING])
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_font := act
- if cb_font /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "FONT_CB", "NONEEDED", operation)
- end
- set_cb_type (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING])
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_type := act
- if cb_type /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "TYPE_CB", "NONEEDED", operation)
- end
- set_cb_draw (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, INTEGER, INTEGER, INTEGER, INTEGER, CD_IUP], STRING])
-
-
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_draw := act
- if cb_draw /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "DRAW_CB", "NONEEDED", operation)
- end
- set_cb_drop_check (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING])
-
-
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_dropcheck := act
- if cb_dropcheck /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "DROPCHECK_CB", "NONEEDED", operation)
- end
- set_cb_translate_value (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, STRING], STRING])
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_translatevalue := act
- if cb_translatevalue /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "TRANSLATEVALUE_CB", "NONEEDED", operation)
- end
- set_cb_drop (act: detachable FUNCTION[TUPLE[IUP_MATRIX, IUP_DROP, INTEGER, INTEGER], STRING])
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_drop := act
- if cb_drop /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "DROP_CB", "NONEEDED", operation)
- end
- set_cb_menu_drop (act: detachable FUNCTION[TUPLE[IUP_MATRIX, IUP_DROP, INTEGER, INTEGER], STRING])
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_menudrop := act
- if cb_menudrop /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "MENUDROP_CB", "NONEEDED", operation)
- end
- set_cb_drop_select (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, IUP_DROP, STRING, INTEGER, INTEGER], STRING])
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_dropselect := act
- if cb_dropselect /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "DROPSELECT_CB", "NONEEDED", operation)
- end
- set_cb_edition (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, INTEGER, INTEGER], STRING])
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_edition := act
- if cb_edition /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "EDITION_CB", "NONEEDED", operation)
- end
- set_cb_value (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING])
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_value := act
- if cb_value /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "VALUE_CB", "NONEEDED", operation)
- end
- set_cb_value_edit (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, STRING], STRING])
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_value_edit := act
- if cb_value_edit /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "VALUE_EDIT_CB", "NONEEDED", operation)
- end
- set_cb_mark (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], INTEGER])
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_mark := act
- if cb_mark /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "MARK_CB", "NONEEDED", operation)
- end
- set_cb_mark_edit (act: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, INTEGER], STRING])
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_markedit := act
- if cb_markedit /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "MARKEDIT_CB", "NONEEDED", operation)
- end
-
- is_valid_lin_align (value: STRING): BOOLEAN
- do
- if value.is_equal("ATOP") or
- value.is_equal("ACENTER") or
- value.is_equal("ABOTTOM") then
- Result := True
- else
- Result := False
- end
- end
- is_valid_col_align (value: STRING): BOOLEAN
- do
- if value.is_equal("ALEFT") or
- value.is_equal("ACENTER") or
- value.is_equal("ARIGHT") then
- Result := True
- else
- Result := False
- end
- end
- is_valid_type_cell (value: STRING): BOOLEAN
- do
- if value.is_equal("TEXT") or
- value.is_equal("COLOR") or
- value.is_equal("FILL") or
- value.is_equal("IMAGE") then
- Result := True
- else
- Result := False
- end
- end
- is_valid_sort_sign (value: STRING): BOOLEAN
- do
- if value.is_equal("UP") or
- value.is_equal("DOWN") or
- value.is_equal("NO") then
- Result := True
- else
- Result := False
- end
- end
- is_valid_symbol (value: STRING): BOOLEAN
- do
- if value.is_equal(".") or
- value.is_equal(",") then
- Result := True
- else
- Result := False
- end
- end
- is_valid_edit_next (value: STRING): BOOLEAN
- do
- if value.is_equal("LIN") or
- value.is_equal("LINCR") or
- value.is_equal("COL") or
- value.is_equal("COLCR") or
- value.is_equal("NONE") then
- Result := True
- else
- Result := False
- end
- end
- feature {IUP}
-
- execute_action_fniiiis (key, lin, col, edition: INTEGER; value: STRING): STRING
- do
- if attached cb_action as int_cb then
- Result := int_cb.item([Current, key, lin, col, edition, value])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_click_fniis (lin, col: INTEGER; status: STRING): STRING
- do
- if attached cb_click as int_cb then
- Result := int_cb.item([Current, lin, col, status])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_colresize (col: INTEGER): STRING
- do
- if attached cb_colresize as int_cb then
- Result := int_cb.item([Current, col])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_release (lin, col: INTEGER; status: STRING): STRING
- do
- if attached cb_release as int_cb then
- Result := int_cb.item([Current, lin, col, status])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_resizematrix (width, height: INTEGER): STRING
- do
- if attached cb_resizematrix as int_cb then
- Result := int_cb.item([Current, width, height])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_togglevalue_fniii (lin, col, status: INTEGER): STRING
- do
- if attached cb_togglevalue as int_cb then
- Result := int_cb.item([Current, lin, col, status])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_valuechanged: STRING
- do
- if attached cb_valuechanged as int_cb then
- Result := int_cb.item([Current])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_mousemove (lin, col: INTEGER): STRING
- do
- if attached cb_mousemove as int_cb then
- Result := int_cb.item([Current, lin, col])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_enteritem (lin, col: INTEGER): STRING
- do
- if attached cb_enteritem as int_cb then
- Result := int_cb.item([Current, lin, col])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_leaveitem (lin, col: INTEGER): STRING
- do
- if attached cb_leaveitem as int_cb then
- Result := int_cb.item([Current, lin, col])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_scrolltop (lin, col: INTEGER): STRING
- do
- if attached cb_scrolltop as int_cb then
- Result := int_cb.item([Current, lin, col])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_bgcolor (lin, col: INTEGER; red, green, blue: POINTER): STRING
- do
- if attached cb_bgcolor as int_cb then
- Result := int_cb.item([Current, lin, col, red, green, blue])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_fgcolor (lin, col: INTEGER; red, green, blue: POINTER): STRING
- do
- if attached cb_fgcolor as int_cb then
- Result := int_cb.item([Current, lin, col, red, green, blue])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_font (lin, col: INTEGER): STRING
- do
- if attached cb_font as int_cb then
- Result := int_cb.item([Current, lin, col])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_type (lin, col: INTEGER): STRING
- do
- if attached cb_type as int_cb then
- Result := int_cb.item([Current, lin, col])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_draw (line, column, xmin, xmax, ymin, ymax: INTEGER; canvas: POINTER): STRING
- do
- if attached cb_draw as int_cb then
- Result := int_cb.item([Current, line, column, xmin, xmax, ymin, ymax, internal_cd(canvas)])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_dropcheck (lin, col: INTEGER): STRING
- do
- if attached cb_dropcheck as int_cb then
- Result := int_cb.item([Current, lin, col])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_translatevalue (lin, col: INTEGER; value: STRING): STRING
- do
- if attached cb_translatevalue as int_cb then
- Result := int_cb.item([Current, lin, col, value])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_drop (drop: IUP_DROP; lin, col: INTEGER): STRING
- do
- if attached cb_drop as int_cb then
- Result := int_cb.item([Current, drop, lin, col])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_menudrop (drop: IUP_DROP; lin, col: INTEGER): STRING
- do
- if attached cb_menudrop as int_cb then
- Result := int_cb.item([Current, drop, lin, col])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_dropselect (lin, col: INTEGER; drop: IUP_DROP; t: STRING; i, v: INTEGER): STRING
- do
- if attached cb_dropselect as int_cb then
- Result := int_cb.item([Current, lin, col, drop, t, i, v])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_edition (lin, col, mode, update: INTEGER): STRING
- do
- if attached cb_edition as int_cb then
- Result := int_cb.item([Current, lin, col, mode, update])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_value (lin, col: INTEGER): STRING
- do
- if attached cb_value as int_cb then
- Result := int_cb.item([Current, lin, col])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_value_edit (lin, col: INTEGER; newval: STRING): STRING
- do
- if attached cb_value_edit as int_cb then
- Result := int_cb.item([Current, lin, col, newval])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_mark (lin, col: INTEGER): INTEGER
- do
- if attached cb_mark as int_cb then
- Result := int_cb.item([Current, lin, col])
- else
- Result := 0
- end
- end
- execute_markedit (lin, col, marked: INTEGER): STRING
- do
- if attached cb_markedit as int_cb then
- Result := int_cb.item([Current, lin, col, marked])
- else
- Result := "IUP_DEFAULT"
- end
- end
- feature {NONE}
-
-
- cb_action: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, INTEGER, INTEGER, STRING], STRING]
- cb_click: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, STRING], STRING]
- cb_colresize: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER], STRING]
- cb_release: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, STRING], STRING]
- cb_resizematrix: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING]
- cb_togglevalue: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, INTEGER], STRING]
- cb_valuechanged: detachable FUNCTION[TUPLE[IUP_MATRIX], STRING]
- cb_mousemove: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING]
- cb_enteritem: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING]
- cb_leaveitem: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING]
- cb_scrolltop: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING]
- cb_bgcolor: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, POINTER, POINTER, POINTER], STRING]
- cb_fgcolor: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, POINTER, POINTER, POINTER], STRING]
- cb_font: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING]
- cb_type: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING]
- cb_draw: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, INTEGER, INTEGER, INTEGER, INTEGER, CD_IUP], STRING]
- cb_dropcheck: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING]
- cb_translatevalue: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, STRING], STRING]
- cb_drop: detachable FUNCTION[TUPLE[IUP_MATRIX, IUP_DROP, INTEGER, INTEGER], STRING]
- cb_menudrop: detachable FUNCTION[TUPLE[IUP_MATRIX, IUP_DROP, INTEGER, INTEGER], STRING]
- cb_dropselect: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, IUP_DROP, STRING, INTEGER, INTEGER], STRING]
- cb_edition: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, INTEGER, INTEGER], STRING]
- cb_value: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], STRING]
- cb_value_edit: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, STRING], STRING]
- cb_mark: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER], INTEGER]
- cb_markedit: detachable FUNCTION[TUPLE[IUP_MATRIX, INTEGER, INTEGER, INTEGER], STRING]
-
-
- mask_dictionary: HASH_TABLE[STRING, STRING]
-
- string_to_boolean(value: STRING): BOOLEAN
- do
- if value.is_equal("0") then
- Result := False
- else
- Result := True
- end
- end
- array_to_marks (array: ARRAY[BOOLEAN]): STRING
- local
- x: INTEGER
- s: STRING
- do
- create s.make(array.count)
-
- from
- x := 0
- until
- x = array.count
- loop
- s.append_character(array.item(x).to_integer.to_character_8)
-
- x := x + 1
- end
- Result := s
- end
- array2_to_marks (array: ARRAY2[BOOLEAN]): STRING
- local
- x, y: INTEGER
- s: STRING
- do
- create s.make(array.height*array.width)
-
- from
- x := 0
- until
- x = array.width
- loop
- from
- y := 0
- until
- y = array.height
- loop
- s.append_character(array.item(x, y).to_integer.to_character_8)
-
- y := y + 1
- end
-
- x := x + 1
- end
- Result := s
- end
- marks_to_array(values: STRING; size: INTEGER): ARRAY[BOOLEAN]
- local
- i: INTEGER
- element: BOOLEAN
- iterator: LINEAR[CHARACTER]
- mtx: ARRAY[BOOLEAN]
- do
- iterator := values.linear_representation
- create mtx.make_filled(False, 1, size)
- from
- i := 0
- iterator.start
- until
- iterator.off
- loop
- if iterator.item.is_equal('1') then
- element := True
- else
- element := False
- end
- mtx.put(element, i)
-
- i := i + 1
- iterator.forth
- end
- Result := mtx
- end
- marks_to_array2(values: STRING): ARRAY2[BOOLEAN]
- local
- i: INTEGER
- element: BOOLEAN
- iterator: LINEAR[CHARACTER]
- mtx: ARRAY2[BOOLEAN]
- do
- iterator := values.linear_representation
-
- create mtx.make_filled(False, get_number_of_lines, get_number_of_columns)
- from
- i := 0
- iterator.start
- until
- iterator.off
- loop
- if iterator.item.is_equal('1') then
- element := True
- else
- element := False
- end
- mtx.put(element, i//mtx.height, i\\mtx.width)
-
- i := i + 1
- iterator.forth
- end
- Result := mtx
- end
- components_of_alignment (value: STRING): TUPLE[STRING, STRING]
- local
- i, c: INTEGER
- line, col: STRING
- tup: TUPLE[STRING, STRING]
- do
- if value.has(':') then
- i := value.index_of(':', 1)
- c := value.count
-
- if not i.is_equal(1) then
- line := value.substring(1, i - 1)
- else
- line := "0"
- end
-
- if not i.is_equal(c) then
- col := value.substring(i + 1, c)
- else
- col := "0"
- end
- tup := [line, col]
- else
- io.put_string("Unable to get the components %N")
- tup := ["", ""]
- end
- Result := tup
- end
-
-
- int_matrix(action: POINTER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupMatrix ($action);"
- end
- create_mask_dictionary
- do
- create mask_dictionary.make(7)
-
- mask_dictionary.put("[+/-]?(/d+/.?/d*|/./d+)", "IUP_MASK_FLOAT")
- mask_dictionary.put("(/d+/.?/d*|/./d+)", "IUP_MASK_UFLOAT")
- mask_dictionary.put("[+/-]?(/d+/.?/d*|/./d+)([eE][+/-]?/d+)?", "IUP_MASK_EFLOAT")
- mask_dictionary.put("[+/-]?(/d+/,?/d*|/,/d+)", "IUP_MASK_FLOATCOMMA")
- mask_dictionary.put("(/d+/,?/d*|/,/d+)", "IUP_MASK_UFLOATCOMMA")
- mask_dictionary.put("[+/-]?/d+", "IUP_MASK_INT")
- mask_dictionary.put("/d+", "IUP_MASK_UINT")
- end
- end
|