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

📄 color_conf.hpp

📁 ncbi源码
💻 HPP
字号:
/* * =========================================================================== * PRODUCTION $Log: color_conf.hpp,v $ * PRODUCTION Revision 1000.1  2004/06/01 19:53:10  gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.7 * PRODUCTION * =========================================================================== */#ifndef GUI_WIDGETS_SEQ_GRAPHIC___SEQGRAPHIC_COLOR_CONF__HPP#define GUI_WIDGETS_SEQ_GRAPHIC___SEQGRAPHIC_COLOR_CONF__HPP/*  $Id: color_conf.hpp,v 1000.1 2004/06/01 19:53:10 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:  Robert Smith * * File Description: *   Configuration settings for colors in the Graphic Viewer. * */#include <gui/config/feat_color.hpp>#include <gui/widgets/seq_graphic/seqgraphic_widget.hpp>BEGIN_NCBI_SCOPEclass NCBI_GUIWIDGETS_SEQGRAPHIC_EXPORT CSeqGraphicColorConfig : public CFeatConfigColor{public:    enum EDisplayElement {        // Labels        eLabel_ProtProduct,        eLabel_Alignment,        eLabel_PWAlign,        eLabel_AlignSmear,        eLabel_Comment,        eLabel_Feature,        eLabel_SeqGraph,        eLabel_Ruler,        eLabel_MatePair,                // Selected label        eSelLabel_ProtProduct,        eSelLabel_Alignment,        eSelLabel_PWAlign,        eSelLabel_AlignSmear,        eSelLabel_Feature,        eSelLabel_SeqGraph,        eSelLabel_SeqSegment,        eSelLabel_MatePair,                // Selection color        eSelection_ProtProduct,        eSelection_Alignment,        eSelection_PWAlign,        eSelection_AlignSmear,        eSelection_Feature,        eSelection_SeqGraph,        eSelection_Histogram,        eSelection_SeqSegment,        eSelection_Ruler,        eSelection_Panel,        eSelection_MatePair,                // Sequence letters        eSeq_SequenceBar, // white        eSeq_ProtOriginal,        eSeq_ProtTranslated,        eSeq_ProtMismatch,        eSeq_MatePairNo,        eSeq_MatePairMismatchNo,        eSeq_MatePairOrientation,        eSeq_MatePairMismatchOrientation,        eSeq_MatePairNonUnique,        eSeq_MatePairMismatchNonUnique,        eSeq_MatePairDistance,        eSeq_MatePairMismatchDistance,        eSeq_PWAlign,        eSeq_PWAlignMismatch,        // Foreground        eFG_Alignment,        eFG_PWAlign,        eFG_AlignSmear,        eFG_ProtProduct,        eFG_SeqGraph,        eFG_Comment,        eFG_SeqSegmentInc,        eFG_SeqSegmentExc,        eFG_MatePairNo,        eFG_MatePairOrientation,        eFG_MatePairNonUnique,        eFG_MatePairDistance,        eFG_MatePairLink,        // Background Color        eBG_Alignment,        eBG_PWAlign,        eBG_AlignSmear,        eBG_ProtProduct,        eBG_SeqGraph,        eBG_Comment,        eBG_SeqSegment,        eBG_MatePair,                // General        eBackground,        eRuler_Grid,        eGridVertical,        eGridHorizontal    };        CSeqGraphicColorConfig(objects::CPluginConfigCache* config_cache, const string& desc = "Colors");        virtual bool LoadCurrentSettings(ELoadValueSource src);    virtual bool SaveCurrentSettings(void);        CGlColor GetElementColor(EDisplayElement e) const;    void     SetElementColor(EDisplayElement e,  const CGlColor& c);        protected:        typedef pair<string, CGlColor> TColorPair;    typedef map<EDisplayElement, TColorPair> TColorMap;    TColorMap m_Colors;    };class CSeqGraphicColorFactoryDefaults : public CFeatColorFactoryDefaults{public:    virtual string   Get(const string& key) const;};END_NCBI_SCOPE/* * =========================================================================== * $Log: color_conf.hpp,v $ * Revision 1000.1  2004/06/01 19:53:10  gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.7 * * Revision 1.7  2004/05/14 15:57:55  lebedev * Color defines for Mate Pairs error code added * * Revision 1.6  2004/04/21 16:31:52  lebedev * Color defines for PairWise alignments added. Use static map to store default colors. * * Revision 1.5  2004/04/19 15:42:02  lebedev * Color defines for Mate Pairs added * * Revision 1.4  2004/03/30 13:53:48  lebedev * Expand EDisplayElement list to include all elements in the graphical widget. * Use map as internal storage for display elements colors. * * Revision 1.3  2004/02/02 18:45:39  rsmith * add description to CSettingsSet, constructor and descendants. * * Revision 1.2  2003/12/29 19:58:47  rsmith * Correct name of Factory Defaults class. * * Revision 1.1  2003/12/29 14:56:27  rsmith * initial checkin * =========================================================================== */#endif  /* GUI_WIDGETS_SEQ_GRAPHIC___SEQGRAPHIC_COLOR_CONF__HPP */

⌨️ 快捷键说明

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