valview.hpp

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

HPP
144
字号
/* * =========================================================================== * PRODUCTION $Log: valview.hpp,v $ * PRODUCTION Revision 1000.1  2004/06/01 21:03:24  gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.3 * PRODUCTION * =========================================================================== */#ifndef GUI_CORE_PLUGINS_VIEW_VALIDATOR___VALVIEW__HPP#define GUI_CORE_PLUGINS_VIEW_VALIDATOR___VALVIEW__HPP/*  $Id: valview.hpp,v 1000.1 2004/06/01 21:03:24 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: Mati Shomrat   * * File Description: *    Main graphical view class for the validator *     */#include <corelib/ncbistd.hpp>#include <objmgr/object_manager.hpp>#include <objmgr/scope.hpp>#include <objtools/validator/validator.hpp>#include <FL/Fl_Window.H>#include "filter.hpp"class Fl_Button;class Fl_Menu_Bar;class Fl_Widget;struct Fl_Menu_Item;BEGIN_NCBI_SCOPEUSING_SCOPE(objects);USING_SCOPE(validator);class CValidErrorDisplay;class CValidatorFilter;class CValidatorView :  public Fl_Window{public:    CValidatorView(int w = 600, int h = 700);    ~CValidatorView(void);    void SetValidError(const CValidError& errors);    void SetRevalidate(const CObject& obj, CScope* scope,         CObjectManager& objmgr, Uint4 options = 0);    virtual void resize(int X, int Y, int W, int H);private:    static Fl_Menu_Item sm_Menutable[];    static const int sm_MinW;    static const int sm_MinH;    void AddMenuBar(void);    void AddFilter(void);    void AddDisplay(void);    void AddButtons(void);    void AddRevalidateButton(int X, int Y, int W, int H);    void AddCloseButton(int X, int Y, int W, int H);    void PopulateFilter(const CValidError& errors);    static void cb_OnClose(Fl_Widget*, void *);    void x_OnClose(void);    CValidatorFilter*       m_Filter;    CValidErrorDisplay*     m_Display;    Fl_Button*              m_CloseButton;    Fl_Button*              m_RevalidateButton;    Fl_Menu_Bar*            m_Menubar;    CConstRef<CValidError>  m_Errors;     // For re-validation    CRef<CObjectManager>    m_Objmgr;    CRef<CScope>            m_Scope;    CConstRef<CObject>      m_Obj;    Uint4                   m_Options;};END_NCBI_SCOPE#endif   // GUI_CORE_PLUGINS_VIEW_VALIDATOR___VALVIEW__HPP/* * =========================================================================== * * $Log: valview.hpp,v $ * Revision 1000.1  2004/06/01 21:03:24  gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.3 * * Revision 1.3  2004/05/20 12:40:07  dicuccio * Use Fl_Window instead of CChild; include Fl_Window where necessary * * Revision 1.2  2003/06/02 16:06:25  dicuccio * Rearranged src/objects/ subtree.  This includes the following shifts: *     - src/objects/asn2asn --> arc/app/asn2asn *     - src/objects/testmedline --> src/objects/ncbimime/test *     - src/objects/objmgr --> src/objmgr *     - src/objects/util --> src/objmgr/util *     - src/objects/alnmgr --> src/objtools/alnmgr *     - src/objects/flat --> src/objtools/flat *     - src/objects/validator --> src/objtools/validator *     - src/objects/cddalignview --> src/objtools/cddalignview * In addition, libseq now includes six of the objects/seq... libs, and libmmdb * replaces the three libmmdb? libs. * * Revision 1.1  2003/04/18 19:57:34  shomrat * Initial revision * * * =========================================================================== */

⌨️ 快捷键说明

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