Lines Matching defs:window
70 void FindWindow::DoFind(BWindow* window, const char* text)
72 if (window == NULL) {
74 while ((window = be_app->WindowAt(i++)) != NULL) {
75 // Send the text to a waiting window
76 if (window != fFindWindow)
77 if (dynamic_cast<TMailWindow*>(window) != NULL)
78 break; // Found a window
82 /* ask that window who is in the front */
83 window = dynamic_cast<TMailWindow*>(window)->FrontmostWindow();
84 if (window == NULL)
87 // Found a window, send a find message
89 if (!window->Lock())
91 BView* focus = window->FindView("m_content");
92 window->Unlock();
98 window->PostMessage(&msg, focus);
206 BWindow* window = NULL;
208 while ((bool)(window = be_app->WindowAt(i++))) {
209 // Send the text to a waiting window
210 if (window != FindWindow::fFindWindow)
211 break; // Found a window
214 if (window)
215 FindWindow::DoFind(window, text);
240 void FindWindow::Find(BWindow* window)
243 (void)window;
252 void FindWindow::FindAgain(BWindow* window)
259 DoFind(window, sPreviousFind.String());
261 Find(window);