⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main_window.cpp

📁 ncbi源码
💻 CPP
📖 第 1 页 / 共 2 页
字号:
}void CMainWindow::GetSelections(TConstScopedObjects& objs) const{    objs = GetSelBuffer().DecomposeToPairs();}void CMainWindow::SetSelections(const TConstScopedObjects& objs){    // FIXME: stub only}string CMainWindow::GetTitle(void) const{    return "NCBI Genome Workbench";}void CMainWindow::x_OnToggleConsole(){    if (m_Console->visible()) {        m_LastConsoleHeight = m_Console->h();        m_Window->size(m_Window->w(), m_Window->h() - m_LastConsoleHeight);        m_Console->hide();        m_ShowConsoleBtn->label("@-22UpArrow");    } else {        m_Console->show();        m_ShowConsoleBtn->label("@-28DnArrow");        _TRACE("showing console: " << m_Window->h() << " + " << m_LastConsoleHeight);        m_Window->size(m_Window->w(), m_Window->h() + m_LastConsoleHeight);        _TRACE("showed console: " << m_Window->h());    }}void CMainWindow::x_RefreshDynMenus(){    GetSelBuffer().Clear();    if (m_CurrentDoc) {        GetSelBuffer().AddSelection(m_CurrentDoc);    }    //    // fill the algorithm plugins menus    //    m_ToolMgr->Clear();    m_ToolMgr->AddAlgoMenu();    //    // fill the Open View menu button    //    m_ViewMgr->Clear();    m_ViewMgr->AddActiveViews(m_CurrentDoc);    m_ViewMgr->AddNewViews();//   (m_CurrentDoc);    //    // fill the doc loader plugins menus    //    m_DocLoaderMgr->Clear();    m_DocLoaderMgr->AddOpenMenu();    m_DocLoaderMgr->AddRecentMenu();    m_DocLoaderMgr->AddImportMenu();    m_DocLoaderMgr->AddSaveAsMenu();    m_DocLoaderMgr->AddUnloadMenu();    m_DocLoaderMgr->AddSearchMenu();    m_DocLoaderMgr->AddManageMenu();}void CMainWindow::x_OnManagePlugins(){    if ( !m_PluginMgrDlg.get() ) {        m_PluginMgrDlg.reset(new CPluginMgrDlg());    }    m_PluginMgrDlg->Show();}void CMainWindow::x_OnBrowserConfig(){    //GBenchBrowserConfig();	if ( !m_BrowserConfigDlg.get() ) {        m_BrowserConfigDlg.reset(new CBrowserConfigDlg());    }    m_BrowserConfigDlg->Show();}void CMainWindow::x_OnShowFrame(){    x_GetMainFrame().show();}void CMainWindow::x_OnShowAllRecords(){    if ( !m_DocumentDlg ) {        m_DocumentDlg.Reset(new CDocumentDlg());        CDocManager::AttachView(m_DocumentDlg);    }    m_DocumentDlg->Show();}void CMainWindow::x_OnHelpIndex(){    static const string url("http://www.ncbi.nlm.nih.gov/books/bv.fcgi?"                            "call=bv.View..ShowSection&rid=toolkit.section.3528");    CAppPopup::PopupURL(url);}void CMainWindow::x_OnHelpAbout(){    if ( !m_AboutDlg.get() ) {        m_AboutDlg.reset(new CAboutDlg());    }    m_AboutDlg->Show();}void CMainWindow::x_HideAllBut(IDocument* doc){    NON_CONST_ITERATE (CDocManager::TDocList, doc_iter,                        CDocManager::GetDocuments()) {        IDocument* this_doc = *doc_iter;        if (this_doc == doc) {            continue;        }        NON_CONST_ITERATE (IDocument::TViews, view_iter, doc->SetViews()) {            IView* view = *view_iter;            view->Hide();        }    }}void CMainWindow::x_Show(IDocument* doc){    NON_CONST_ITERATE (IDocument::TViews, view_iter, doc->SetViews()) {        IView* view = *view_iter;        view->Show();    }}CGBenchFrameWindow& CMainWindow::x_GetMainFrame(){    if ( !m_AppFrame.get() ) {        m_AppFrame.reset(new CGBenchFrameWindow(1024, 768));    }    return *m_AppFrame;}END_NCBI_SCOPE/* * =========================================================================== * $Log: main_window.cpp,v $ * Revision 1000.7  2004/06/01 20:48:16  gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.32 * * Revision 1.32  2004/05/21 22:27:42  gorelenk * Added PCH ncbi_pch.hpp * * Revision 1.31  2004/05/18 11:14:45  friedman * Add "Recent Documents" menu entry. * * Revision 1.30  2004/05/17 13:25:32  dicuccio * First implementation of new document workspace * * Revision 1.29  2004/04/21 17:06:58  dicuccio * Only add current document if the document is valid * * Revision 1.28  2004/04/16 14:40:33  dicuccio * Inherit from ISelection for selection marshalling * * Revision 1.27  2004/04/09 17:24:47  jcherry * Implemented browser configuration for Windows, and changed how * it works on unix for consistency * * Revision 1.26  2004/04/07 21:08:51  jcherry * Added web browser configuration for gbench MIME types * (functinal on unix only so far) * * Revision 1.25  2004/02/17 20:35:24  rsmith * moved core/settings.[ch]pp and core/system_path.[ch]pp to config and utils, respectively. * * Revision 1.24  2003/12/04 18:12:20  dicuccio * Fixed escaping of document names that contain a '/'. * * Revision 1.23  2003/11/24 15:42:02  dicuccio * Renamed CVersion to CPluginVersion * * Revision 1.22  2003/11/18 17:45:29  dicuccio * Changed handling of m_CurrentDoc inside of Update() * * Revision 1.21  2003/11/06 20:08:53  dicuccio * Added help menu items * * Revision 1.20  2003/11/04 17:22:38  dicuccio * Changed registry settings - use uppercase for sections, up-and-down style for * items.  Removed some unneeded TRACE()s * * Revision 1.19  2003/10/27 17:40:38  dicuccio * Restructured diagnostic handler - use CDiagPanel * * Revision 1.18  2003/09/04 14:02:36  dicuccio * Introduce IDocument as abstract base class for CDocument; replace use of * CDocument with IDocument * * Revision 1.17  2003/08/22 15:46:43  dicuccio * Removed config file from CSettings - accessible through CNcbiApplication * * Revision 1.16  2003/08/06 13:24:31  dicuccio * Deprecated old main window; introduced new, compact window for multiple * document management * * Revision 1.15  2003/07/31 17:00:51  dicuccio * Cleaned up handling of document menu button / label.  Added search and manage * menu options to the data drop-down menu.  Changed "Open a record" to "Data" * * Revision 1.14  2003/07/30 12:21:53  dicuccio * Added saving state of console window (not yet restored on APP restart) * * Revision 1.13  2003/07/21 19:30:48  dicuccio * Changed calling conventions of CAlgoMenuMgr to match CViewMenuMgr / * CDocMenuMgr() - updated window to match * * Revision 1.12  2003/07/11 15:06:37  kans * use NcbiApplication instead of doc manager settings for registry (MND) * * Revision 1.11  2003/06/30 13:35:51  dicuccio * Lots of clean-up.  Restore the original diagnostic handler before shutting * down the application.  Moved debug settings into the .ini file.  Minor * clean-up of handling of config file * * Revision 1.10  2003/06/25 17:02:56  dicuccio * Split CPluginHandle into a handle (pointer-to-implementation) and * implementation file.  Lots of #include file clean-ups. * * Revision 1.9  2003/06/09 19:19:52  dicuccio * Added ability for window to save/restore its position * * Revision 1.8  2003/05/06 15:58:03  dicuccio * Fixed bug: don't reset the current document in Update() unless the menu itself needs to be changed * * Revision 1.7  2003/05/05 12:44:01  dicuccio * Add views only for current document * * Revision 1.6  2003/04/29 14:51:52  dicuccio * Reworked FLUID-generated code: more explicit control over constructor, better * memeory management * * Revision 1.5  2003/04/24 16:36:19  dicuccio * Updated to reflect changes in IDocument API * * Revision 1.4  2003/04/08 20:09:37  dicuccio * Minor layout changes.  Made main window smaller; reduced size of console * window.  Also, added clipping and left-justification to items in the documents * drop-down. * * Revision 1.3  2003/04/08 18:10:58  lebedev * Document organizer added * * Revision 1.2  2003/04/07 17:30:26  dicuccio * Cleaned up window initialization to support multiple top-level doc manager * windows * * Revision 1.1  2003/03/31 13:36:37  dicuccio * Initial revision. * * =========================================================================== */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -