filter.hpp

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

HPP
140
字号
/* * =========================================================================== * PRODUCTION $Log: filter.hpp,v $ * PRODUCTION Revision 1000.0  2003/10/31 22:03:32  gouriano * PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.2 * PRODUCTION * =========================================================================== */#ifndef GUI_CORE_PLUGINS_VIEW_VALIDATOR___FILTER__HPP#define GUI_CORE_PLUGINS_VIEW_VALIDATOR___FILTER__HPP/*  $Id: filter.hpp,v 1000.0 2003/10/31 22:03:32 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: *     *     */#include <corelib/ncbistd.hpp>#include <FL/Fl_Group.H>#include <set>#include "valerror_display.hpp"#include "erritem_view.hpp"class Fl_Button;class Fl_Input;class Fl_Choice;class Fl_Check_Button;BEGIN_NCBI_SCOPEclass CValidatorFilter : public Fl_Group{public:    CValidatorFilter(int x, int y,                     EDiagSev min = eDiag_Info,                     EDiagSev max = eDiag_Critical,                     bool verbose = true);    ~CValidatorFilter(void);    void Reset(void);    string      GetErrCode(void) const;    string      GetSearchString(void) const;    EDiagSev    GetMinSev(void) const;    EDiagSev    GetMaxSev(void) const;    CValidErrItemView::EMessage GetMessage(void) const;    void SetErrCodes(const set<string>& errcodes);    void SetDisplay(CValidErrorDisplay* display) { m_Display = display; };private:    void AddSeverityFilter(EDiagSev min, EDiagSev max);    void AddErrCodeFilter(void);    void AddSearchFilter(void);    void AddVerboseFilter(bool verbose);    void InactivateSev(void);    // callbacks    static void cb_OnSevChange(Fl_Choice*, CValidatorFilter*);    void x_OnSevChange(void);    static void cb_OnErrCodeChange(Fl_Choice*, CValidatorFilter*);    void x_OnOnErrCodeChange(void);    static void cb_OnSearchPressed(Fl_Button*, CValidatorFilter*);    void x_OnSearchPressed(void);    static void cb_OnSearchInput(Fl_Input*, CValidatorFilter*);    void x_OnSearchInput(void);    static void cb_OnVerboseChange(Fl_Check_Button*, CValidatorFilter*);    void x_OnVerboseChange(Fl_Check_Button*);    CValidErrorDisplay* m_Display;    Fl_Choice*          m_ErrCodesChoice;    Fl_Button*          m_SearchButton;    Fl_Input*           m_SearchInput;    Fl_Choice*          m_MinSevChoice;    Fl_Choice*          m_MaxSevChoice;    Fl_Check_Button*    m_VerboseButton;};END_NCBI_SCOPE#endif   // GUI_CORE_PLUGINS_VIEW_VALIDATOR___FILTER__HPP/* * =========================================================================== * * $Log: filter.hpp,v $ * Revision 1000.0  2003/10/31 22:03:32  gouriano * PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.2 * * Revision 1.2  2003/04/22 16:25:27  shomrat * Fl -> FL * * Revision 1.1  2003/04/18 19:56:52  shomrat * Initial revision * * * =========================================================================== */

⌨️ 快捷键说明

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