void SearchStart()
{
char text[2048];
-
+
searchThread.active = true;
searchThread.optionSubdirs = options.subdirs.checked;
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();
view.browser.text = "Browser";
sprintf(text, "Search Results (Searching %s)", location.GetText());
view.results.text = text;
-
+
searchThread.Create();
}
void SearchTerminate()
{
char text[1024];
-
+
if(searchThread.terminate)
sprintf(text, "Search Results (%d item(s) found), Search was aborted.", searchThread.matchCount);
else
view.results.text = text;
sprintf(text, "Browser (%d item(s) searched)", searchThread.count);
view.browser.text = text;
-
+
actions.startStop.text = "Start Search";
}
class ExplorerSearchViewTree : ExplorerSearchView
{
-
+
DataField resultsFieldPath { "char *" };
ListBox results
{
OldList selection;
Link item;
-
+
listBox.GetMultiSelection(selection);
-
+
for(item = selection.first; item; item = item.next)
{
char path[MAX_LOCATION];
}
bool Lists_NotifyDoubleClick(ListBox listBox, int x, int y, Modifiers mods)
- {
+ {
if(listBox.currentRow)
{
char path[MAX_LOCATION];