X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?p=ede;a=blobdiff_plain;f=explorer%2Fsrc%2FFinder.ec;h=42e2d5817e6c1701e65e79c317c36692816caa67;hp=c65367fc9788c00c59038fcad44979e2819f5201;hb=bc25e0084823e36a8403b14a96985459328cbe3c;hpb=021f46f0de53d6b80a14654f06ec96442fb2e638 diff --git a/explorer/src/Finder.ec b/explorer/src/Finder.ec index c65367f..42e2d58 100644 --- a/explorer/src/Finder.ec +++ b/explorer/src/Finder.ec @@ -31,7 +31,7 @@ public: void SearchStart() { char text[2048]; - + searchThread.active = true; searchThread.optionSubdirs = options.subdirs.checked; @@ -45,7 +45,7 @@ public: strcpy(searchThread.location, location.GetText()); strcpy(searchThread.nameSearch, findName.GetText()); strcpy(searchThread.contentSearch, findTextContent.GetText()); - + actions.startStop.text = "Stop Search"; actions.clear.disabled = false; view.results.Clear(); @@ -57,7 +57,7 @@ public: view.browser.text = "Browser"; sprintf(text, "Search Results (Searching %s)", location.GetText()); view.results.text = text; - + searchThread.Create(); } @@ -104,7 +104,7 @@ public: void SearchTerminate() { char text[1024]; - + if(searchThread.terminate) sprintf(text, "Search Results (%d item(s) found), Search was aborted.", searchThread.matchCount); else @@ -112,7 +112,7 @@ public: view.results.text = text; sprintf(text, "Browser (%d item(s) searched)", searchThread.count); view.browser.text = text; - + actions.startStop.text = "Start Search"; } @@ -190,7 +190,7 @@ class ExplorerSearchView : ExplorerView class ExplorerSearchViewTree : ExplorerSearchView { - + DataField resultsFieldPath { "char *" }; ListBox results @@ -252,9 +252,9 @@ class ExplorerSearchViewTree : ExplorerSearchView { OldList selection; Link item; - + listBox.GetMultiSelection(selection); - + for(item = selection.first; item; item = item.next) { char path[MAX_LOCATION]; @@ -274,7 +274,7 @@ class ExplorerSearchViewTree : ExplorerSearchView } bool Lists_NotifyDoubleClick(ListBox listBox, int x, int y, Modifiers mods) - { + { if(listBox.currentRow) { char path[MAX_LOCATION];