Lines Matching refs:tw

248  *	Arguments: tw - The text widget to insert this file into.
254 InsertFileNamed(tw, str)
255 Widget tw;
267 start_pos = pos = XawTextGetInsertionPoint(tw);
273 if (XawTextReplace(tw, pos, pos, &text) != XawEditDone) {
279 (void) XawTextReplace(tw, start_pos, pos, &text);
286 XawTextSetInsertionPoint(tw, pos);
294 * tw - the main text widget.
299 AddInsertFileChildren(form, ptr, tw)
300 Widget form, tw;
346 (caddr_t) tw);
347 XtAddCallback(insert, XtNcallback, (XtCallbackProc)DoInsert, (caddr_t) tw);
389 TextWidget tw = (TextWidget) XtParent(XtParent(XtParent(w)));
396 if (DoSearch(tw->text.search) && popdown)
397 PopdownSearch(w, (caddr_t) tw->text.search, NULL);
415 TextWidget tw = (TextWidget) XtParent(XtParent(XtParent(w)));
417 PopdownSearch(w, (caddr_t) tw->text.search, NULL);
582 * tw - the main text widget.
587 AddSearchChildren(form, ptr, tw)
588 Widget form, tw;
595 struct SearchAndReplace * search = ((TextWidget) tw)->text.search;
777 Widget tw = XtParent(search->search_popup);
790 pos = XawTextSearch( tw, dir, &text);
796 XawTextSetInsertionPoint( tw, pos + text.length);
798 XawTextSetInsertionPoint( tw, pos);
800 XawTextSetSelection( tw, pos, pos + text.length);
805 XawTextUnsetSelection(tw);
887 * Arguments: tw - the Text Widget to replce the string in.
904 Widget tw = XtParent(search->search_popup);
922 new_pos = XawTextSearch( tw, dir, &find);
940 XawTextGetSelectionPos(tw, &pos, &end_pos);
951 if (XawTextReplace(tw, pos, end_pos, &replace) != XawEditDone) {
960 XawTextSetInsertionPoint( tw, pos + replace.length);
962 XawTextSetInsertionPoint( tw, pos);
975 XawTextUnsetSelection(tw);
977 XawTextSetSelection( tw, pos, pos + replace.length);