void TBrowserTabs::TreeItem_GotFocus() { //MessageLog_AppendTextFormatCo(d_coChocolate, "TBrowserTabs::TreeItem_GotFocus()"); if ( m_pawLayoutBrowser == NULL) { m_pawLayoutBrowser = new WLayoutTabbedBrowser(this, m_pProfile); // add tabs added before the layout was initialized TBrowserTab **ppBrowserTabStop; TBrowserTab **ppBrowserTab = m_arraypaTabs.PrgpGetBrowserTabStop(&ppBrowserTabStop); while(ppBrowserTab != ppBrowserTabStop) { TBrowserTab *pBrowserTab = *ppBrowserTab++; m_pawLayoutBrowser->AddTab(pBrowserTab); CStr text("Tab"); pBrowserTab->m_strNameDisplayTyped = text; //pBrowserTab->TreeItemW_DisplayWithinNavigationTree(this); } // add default tab if there was none if ( m_arraypaTabs.GetSize() == 0) AddTab(); } MainWindow_SetCurrentLayout(IN m_pawLayoutBrowser); }
// TApplicationMayanX::ITreeItem::TreeItem_GotFocus() void TApplicationMayanX::TreeItem_GotFocus() { if (m_pawLayout == NULL) m_pawLayout = new WLayoutApplicationMayanX(this); MainWindow_SetCurrentLayout(IN m_pawLayout); }
// TBrowser::ITreeItem::TreeItem_EDoMenuAction() EMenuAction TBrowserTabs::TreeItem_EDoMenuAction(EMenuAction eMenuAction) { switch (eMenuAction) { case eMenuAction_Close: MainWindow_SetCurrentLayout(NULL); m_pProfile->m_arraypaBrowsersTabbed.DeleteTreeItem(PA_DELETING this); return ezMenuActionNone; default: return ITreeItem::TreeItem_EDoMenuAction(eMenuAction); } // switch } // TreeItem_EDoMenuAction()
// TTreeItemInbox::ITreeItem::TreeItem_GotFocus() void TTreeItemInbox::TreeItem_GotFocus() { MainWindow_SetCurrentLayout(NULL); }
// TreeItem_GotFocus(), virtual // // Notification the TreeItem received the focus (was selected from the Navigation Tree) // Each class inheriting from ITreeItem should implement this virtual method, create an object inheriting WLayout and // call MainWindow_SetCurrentChatLayout(). void ITreeItem::TreeItem_GotFocus() { MessageLog_AppendTextFormatSev(eSeverityErrorAssert, "Object must implement TreeItem_GotFocus()\n"); MainWindow_SetCurrentLayout(NULL); // Make sure there are no old layout }
// ITreeItemChatLogEvents::ITreeItem::TreeItem_GotFocus() void ITreeItemChatLogEvents::TreeItem_GotFocus() { MainWindow_SetCurrentLayout(ChatLog_PwGetLayout_NZ()); TreeItem_IconUpdateOnMessagesRead(); }