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

📄 seqgraphic_conf.hpp

📁 ncbi源码
💻 HPP
字号:
/* * =========================================================================== * PRODUCTION $Log: seqgraphic_conf.hpp,v $ * PRODUCTION Revision 1000.3  2004/06/01 19:53:26  gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.24 * PRODUCTION * =========================================================================== */#ifndef GUI_WIDGETS_SEQ_GRAPHIC___SEQGRAPHIC_CONF__HPP#define GUI_WIDGETS_SEQ_GRAPHIC___SEQGRAPHIC_CONF__HPP/*  $Id: seqgraphic_conf.hpp,v 1000.3 2004/06/01 19:53:26 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:  Vlad Lebedev * * File Description: *   Configuration file for Sequence Graphical Widget * */#include <gui/config/theme_set.hpp>#include <gui/opengl/glcolor.hpp>#include <gui/widgets/seq_graphic/render_policy_conf.hpp>#include <gui/widgets/seq_graphic/layout_conf.hpp>#include <gui/widgets/seq_graphic/font_conf.hpp>#include <gui/widgets/seq_graphic/color_conf.hpp>#include <gui/widgets/seq_graphic/seqgraphic_widget.hpp>#include <gui/config/feat_decorate.hpp>BEGIN_NCBI_SCOPEclass CPaneContentConf;//class CSeqGraphicColorConfig;class NCBI_GUIWIDGETS_SEQGRAPHIC_EXPORT CSeqGraphicConfig : public CThemeSet{public:    CSeqGraphicConfig(objects::CPluginConfigCache* config_cache,                  const string& delim = "|");    ~CSeqGraphicConfig();         /// the following methods are simply interfaces to the contained conf classes.    bool GetHistogram(int type, int subtype) const;    void SetHistogram(int type, int subtype, bool hist);    void SetHistogramInherited(int type, int subtype, bool inherited);            bool        GetShow(int type, int subtype) const;    void        SetShow(int type, int subtype, bool show);    void        SetShowInherited(int type, int subtype, bool inherited);        CGlColor    GetColor(int type, int subtype) const;    void        SetColor(int type, int subtype, CGlColor color);    void        SetColorInherited(int type, int subtype, bool inherited);    CGlColor    GetElementColor(CSeqGraphicColorConfig::EDisplayElement e) const;    void        SetElementColor(CSeqGraphicColorConfig::EDisplayElement e,  const CGlColor& c);        bool        GetShowAlignments() const;    void        SetShowAlignments(bool );        bool        GetSmearAlignments() const;    void        SetSmearAlignments(bool);        bool        GetShowGraphs() const;    void        SetShowGraphs(bool );    bool        GetShowProtProd() const;    void        SetShowProtProd(bool);    bool        GetShowSegmentMap() const;    void        SetShowSegmentMap(bool);        bool        GetShowPWAlignLabels() const;    void        SetShowPWAlignLabels(bool);    TSeqPos     GetOverviewCutoff() const;    void        SetOverviewCutoff(TSeqPos);        int         GetRulerSpacer() const;    void        SetRulerSpacer(int);    TSeqPos     GetGenesCutoff() const;    void        SetGenesCutoff(TSeqPos);        CRenderPolicyConfig::ERenderPolicys GetFeaturePanelRenderPolicy() const;    CLayoutConfig::ELayout              GetLayout() const;    private:    CRef<CRenderPolicyConfig>       m_FeatRenderPolicy;    CRef<CPaneContentConf>          m_Content;    CRef<CSeqGraphicColorConfig>    m_Color;    CRef<CLayoutConfig>             m_Layout;    CRef<CFontConfig>               m_Font;    CRef<CFeatConfigDecorate>       m_Decorations;        // forbidden    CSeqGraphicConfig(const CSeqGraphicConfig&);    CSeqGraphicConfig& operator=(const CSeqGraphicConfig&);};END_NCBI_SCOPE/* * =========================================================================== * $Log: seqgraphic_conf.hpp,v $ * Revision 1000.3  2004/06/01 19:53:26  gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.24 * * Revision 1.24  2004/05/12 16:54:13  lebedev * Added  option to specify a space between the ruler and the rest of the dispay * * Revision 1.23  2004/05/10 15:57:55  lebedev * Configuration option to show/hide segment maps added. * * Revision 1.22  2004/05/07 11:12:14  lebedev * Configuration option to show/hide labels for pairwise alignments and mate pairs added. * * Revision 1.21  2004/03/30 13:54:51  lebedev * Use EDisplayElement list from CSeqGraphicColorConfig * * Revision 1.20  2004/03/22 16:51:00  rsmith * add alignment smear setting. * * Revision 1.19  2004/03/02 15:26:40  lebedev * Configure minimum number of genes as a cut-off between * overview and detailed mode. * * Revision 1.18  2004/02/13 18:06:32  lebedev * Methods for specifying Overview/Detail resolution cutoff added * * Revision 1.17  2004/02/12 14:56:06  rsmith * Add skeleton methods GetShowAligments/Graphs and ProtProds. * * Revision 1.16  2004/02/05 16:05:28  rsmith * add decorations settings * * Revision 1.15  2004/02/04 21:28:48  rsmith * Add font configuration * * Revision 1.14  2004/02/04 15:16:41  rsmith * add GetLayout method * * Revision 1.13  2004/01/20 18:11:53  dicuccio * Added dtor / hidden copy ctor/assignment operator to make MSVC happy * * Revision 1.12  2004/01/20 14:00:16  rsmith * Extensive rewrite to inherit from CThemeSet. * * Revision 1.11  2003/12/29 14:52:48  rsmith * Get returns string not string& * * Revision 1.10  2003/12/22 12:52:05  lebedev * Old files removed * * Revision 1.9  2003/11/21 12:55:55  rsmith * Added ClearHistograms() to fix bug when loading data from the PluginConfigCache. * * Revision 1.8  2003/11/20 13:17:15  dicuccio * Use the correct export specifier * * Revision 1.7  2003/11/19 20:18:16  friedman * Requires export * * Revision 1.6  2003/11/18 20:46:51  rsmith * Get and Set all color and show values at once. Add set/get of element colors. * * Revision 1.5  2003/10/31 14:07:22  dicuccio * Un-inlined implementation * * Revision 1.4  2003/10/31 13:39:15  ivanov * Added missing inline for SaveCurrentSettings() * * Revision 1.3  2003/10/30 14:49:21  rsmith * Made into a real descedant of CSettings_Set, adding Factory Default object, methods Load/SaveCurrentSettings * * Revision 1.2  2003/10/28 19:04:10  dicuccio * Code clean-up.  Changed storage of CBioseq_Handle from const pointer to value. * Changed SFeatByName to use no scope internally. * * Revision 1.1  2003/10/28 15:26:51  lebedev * Initial revision * * =========================================================================== */#endif  /* GUI_WIDGETS_SEQ_GRAPHIC___SEQGRAPHIC_CONF__HPP */

⌨️ 快捷键说明

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