Lines Matching defs:tw
298 * tw - text widget to insert this file into
308 InsertFileNamed(Widget tw, String str)
318 pos = XawTextGetInsertionPoint(tw);
332 if (XawTextReplace(tw, pos, pos, &text) != XawEditDone) {
340 XawTextSetInsertionPoint(tw, pos);
341 _XawTextShowPosition((TextWidget)tw);
353 * tw - main text widget
359 AddInsertFileChildren(Widget form, String ptr, Widget tw)
402 XtAddCallback(cancel, XtNcallback, PopdownFileInsert, (XtPointer)tw);
403 XtAddCallback(insert, XtNcallback, DoInsert, (XtPointer)tw);
436 TextWidget tw = (TextWidget)XtParent(XtParent(XtParent(w)));
442 if (DoSearch(tw->text.search) && popdown)
443 PopdownSearch(w, (XtPointer)tw->text.search, NULL);
459 TextWidget tw = (TextWidget)XtParent(XtParent(XtParent(w)));
461 PopdownSearch(w, (XtPointer)tw->text.search, NULL);
639 * tw - main text widget
645 AddSearchChildren(Widget form, String ptr, Widget tw)
651 struct SearchAndReplace *search = ((TextWidget)tw)->text.search;
705 if (XawTextFormat((TextWidget)tw, XawFmt8Bit)) {
847 Widget tw = XtParent(search->search_popup);
851 TextWidget ctx = (TextWidget)tw;
878 pos = XawTextSearch(tw, dir, &text);
903 XawTextUnsetSelection(tw);
908 XawTextDisableRedisplay(tw);
909 XawTextSetSelection(tw, pos, pos + text.length);
913 XawTextSetInsertionPoint(tw, pos + text.length);
915 XawTextSetInsertionPoint(tw, pos);
917 XawTextEnableRedisplay(tw);
994 * tw - Text Widget to replce the string in
1011 Widget tw = XtParent(search->search_popup);
1013 TextWidget ctx = (TextWidget)tw;
1034 ipos = XawTextGetInsertionPoint(tw);
1036 XawTextDisableRedisplay(tw);
1040 new_pos = XawTextSearch(tw, dir, &find);
1066 XawTextSetInsertionPoint(tw, ipos);
1068 XawTextEnableRedisplay(tw);
1080 XawTextGetSelectionPos(tw, &pos, &end_pos);
1086 XawTextSetInsertionPoint(tw, ipos);
1087 XawTextEnableRedisplay(tw);
1094 XawTextSetInsertionPoint(tw, ipos);
1095 XawTextEnableRedisplay(tw);
1102 if (XawTextReplace(tw, pos, end_pos, &replace) != XawEditDone) {
1105 XawTextSetInsertionPoint(tw, ipos);
1106 XawTextEnableRedisplay(tw);
1122 XawTextEnableRedisplay(tw);
1133 XawTextUnsetSelection(tw);
1135 XawTextSetSelection(tw, pos, pos + replace.length);
1137 XawTextSetInsertionPoint(tw, ipos);
1139 XawTextEnableRedisplay(tw);
1331 GetStringRaw(Widget tw)
1333 TextWidget ctx = (TextWidget)tw;