From: Martin P. <ma...@pe...> - 2010-06-13 02:45:51
|
On 9.6.2010 14:04, Michal Hocko wrote: > Hi Martin, > I am trying to find out where do we change the text operator which > represnts selected text in GUI. Could you help me with that please? You mean where is the code that changes the text if user selects some text and then edits the textbox? In callback.qs, function onTreeSelectionChange will call fillTextFromSelectedOperators(), which will retrieve text from operators - if all operators are text, the editbox is shown, otherwise it is hidden. fillTextFromSelectedOperators() function is declared in dialogs.qs If the text is changed, changeSelectedText() (declaration is right below the fillTextFromSelectedOperators function) is called which will remove all the text operators and reoplace them with one Tj operator with all the text setEditText/getEditText is functionm to set/retrieve the text in that text edit window Martin Petricek -- GPG/PGP Public key: http://www.petricek.net/petricm.pgp Fingerprint 6AA8 FFCE C061 1CB2 55F0 A1F3 3AA9 EB4F BD50 C1B8 /------------------------------------------------------------\ | WWW: http://www.petricek.net/ | \------------------------------------------------------------/ |