obj_browser.hpp

来自「ncbi源码」· HPP 代码 · 共 107 行

HPP
107
字号
/* * =========================================================================== * PRODUCTION $Log: obj_browser.hpp,v $ * PRODUCTION Revision 1000.0  2004/06/01 21:16:48  gouriano * PRODUCTION PRODUCTION: IMPORTED [GCC34_MSVC7] Dev-tree R1.1 * PRODUCTION * =========================================================================== */#ifndef GUI_CORE___OBJ_BROWSER__HPP#define GUI_CORE___OBJ_BROWSER__HPP/*  $Id: obj_browser.hpp,v 1000.0 2004/06/01 21:16:48 gouriano Exp $ * =========================================================================== * *                            PUBLIC DOMAIN NOTICE *               National Center for Biotechnology Information * *  This software/database is a "United States Government Work" under the *  terms of the United States Copyright Act.  It was written as part of *  the author's official duties as a United States Government employee and *  thus cannot be copyrighted.  This software/database is freely available *  to the public for use. The National Library of Medicine and the U.S. *  Government have not placed any restriction on its use or reproduction. * *  Although all reasonable efforts have been taken to ensure the accuracy *  and reliability of the software and data, the NLM and the U.S. *  Government do not and cannot warrant the performance or results that *  may be obtained by using this software or data. The NLM and the U.S. *  Government disclaim all warranties, express or implied, including *  warranties of performance, merchantability or fitness for any particular *  purpose. * *  Please cite the author in any work or product based on this material. * * =========================================================================== * * Authors:  Mike DiCuccio * * File Description: * */#include <corelib/ncbistd.hpp>#include <gui/core/idocument.hpp>#include <gui/utils/fltk_utils.hpp>#include <gui/widgets/fl/table_panel.hpp>BEGIN_NCBI_SCOPEclass CBrowseOtherDlg;struct SBrowserObject{public:    SBrowserObject();    SBrowserObject(const IDocument& doc, const CObject& obj);    CConstRef<IDocument> document;    CConstRef<CObject>   object;};class CObjBrowser : public CTablePanel<SBrowserObject>{public:    enum EColNames {        eObjLabel,        eObjType    };    CObjBrowser(int x, int y, int w, int h,                const string& type, const string& col_header,                const char* label = NULL);    void Add(const IDocument& doc, const CObject& obj);    void ShowBrowseDlg();    int handle(int event);private:    CGUIEvent m_EventHandler;    string m_TypeInfo;    auto_ptr<CBrowseOtherDlg> m_BrowseDlg;};END_NCBI_SCOPE/* * =========================================================================== * $Log: obj_browser.hpp,v $ * Revision 1000.0  2004/06/01 21:16:48  gouriano * PRODUCTION: IMPORTED [GCC34_MSVC7] Dev-tree R1.1 * * Revision 1.1  2004/06/01 18:04:44  dicuccio * Initial revision.  Lots of changes: added gui_project ASN.1 project, added new * plugin arg form (separate widget), added plugin selector dialog * * =========================================================================== */#endif  // GUI_CORE___OBJ_BROWSER__HPP

⌨️ 快捷键说明

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