uppsrc.diff

The diff file to apply for uppsrc directory - Sender Ghost, 10/29/2011 03:23 PM

Download (1.6 KB)

View differences:

uppsrc/ide/ide.lay 2011-10-29 18:34:36 +0600
527 527
	ITEM(ArrayCtrl, list, HSizePosZ(8, 8).VSizePosZ(8, 40))
528 528
	ITEM(Button, ok, SetLabel(t_("OK")).RightPosZ(80, 64).BottomPosZ(8, 24))
529 529
	ITEM(Button, cancel, SetLabel(t_("Cancel")).RightPosZ(12, 64).BottomPosZ(8, 24))
530
	ITEM(Label, dv___3, SetLabel(t_("Find")).LeftPosZ(8, 28).BottomPosZ(9, 19))
531
	ITEM(EditString, find, LeftPosZ(36, 124).BottomPosZ(9, 19))
530
	ITEM(Label, dv___3, SetLabel(t_("Find")).LeftPosZ(8, 60).BottomPosZ(9, 19))
531
	ITEM(EditString, find, LeftPosZ(72, 124).BottomPosZ(9, 19))
532 532
END_LAYOUT
533 533

  
534 534
LAYOUT(UppOptDlg, 520, 68)
uppsrc/ide/Virtuals.cpp 2011-10-29 19:10:02 +0600
57 57
	}
58 58

  
59 59
	void Sync() {
60
		String name = ~find;
60
		String name = ToLower((String)~find);
61 61
		String k = list.GetKey();
62 62
		list.Clear();
63 63
		for(int i = 0; i < item.GetCount(); i++) {
64
			CppItemInfo f;
65
			(CppItem&)f = item[i];
66
			f.virt = false;
67
			f.name = item[i].name;
68
			if(memcmp_i(name, f.name, name.GetCount()) == 0)
64
			String lname = ToLower(item[i].name);
65
			if (lname.Find(name) >= 0) {
66
				CppItemInfo f;
67
				(CppItem&)f = item[i];
68
				f.virt = false;
69
				f.name = item[i].name;
69 70
				list.Add(item.GetKey(i), f.natural, RawToValue(f),
70
				         item[i].defined, item[i].overed);
71
					item[i].defined, item[i].overed);
72
			}
71 73
		}
72 74
		if(!list.FindSetCursor(k))
73 75
			list.GoBegin();