NCBI C++ ToolKit
seq_text_pane_conf.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS_SEQ_TEXT___SEQTEXT_PANE_CONF__HPP
2 #define GUI_WIDGETS_SEQ_TEXT___SEQTEXT_PANE_CONF__HPP
3 
4 /* $Id: seq_text_pane_conf.hpp 39680 2017-10-26 16:03:20Z katargir $
5  * ===========================================================================
6  *
7  * PUBLIC DOMAIN NOTICE
8  * National Center for Biotechnology Information
9  *
10  * This software/database is a "United States Government Work" under the
11  * terms of the United States Copyright Act. It was written as part of
12  * the author's official duties as a United States Government employee and
13  * thus cannot be copyrighted. This software/database is freely available
14  * to the public for use. The National Library of Medicine and the U.S.
15  * Government have not placed any restriction on its use or reproduction.
16  *
17  * Although all reasonable efforts have been taken to ensure the accuracy
18  * and reliability of the software and data, the NLM and the U.S.
19  * Government do not and cannot warrant the performance or results that
20  * may be obtained by using this software or data. The NLM and the U.S.
21  * Government disclaim all warranties, express or implied, including
22  * warranties of performance, merchantability or fitness for any particular
23  * purpose.
24  *
25  * Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors: Colleen Bollin, based on a file by Vlad Lebedev
30  *
31  * File Description:
32  * Configuration file for Sequence Text Widget
33  *
34  */
35 
36 
38 
39 #include <objmgr/seq_vector.hpp>
41 
43 
45 
46 class CSpacingConf;
47 
48 
50 {
51 public:
52  /// we use int instead of CSeqFeatData::ESubtype for two reasons:
53  /// - avoids unnecessary includes
54  /// - gives transparent warning-free compiles with generic serialized
55  /// code (i.e., when we serialize a subtype, it's as an int not as an
56  /// enum)
58 
63  eMouseOver
64  };
65 
66 
67  CSeqTextPaneConfig(CGuiRegistry* config_cache = 0);
68 
70 
71  /// uncache any cached data
72  void Reload();
73 
74  void SetCaseFeature(TFeatSubtype subtype);
75  objects::SAnnotSelector *GetCaseFeature ();
76  int GetCaseFeatureSubtype();
77  bool GetShowFeatAsLower ();
78  void SetShowFeatAsLower(bool show_lower);
79 
80  void SetFontSize(int font_size);
81  int GetFontSize();
82 
83  void SetShowAbsolutePosition (bool show_abs);
84  bool GetShowAbsolutePosition();
85 
86  EFeatureDisplayType GetFeatureColorationChoice();
87  void SetFeatureColorationChoice(EFeatureDisplayType ftype);
88  EFeatureDisplayType GetCodonDrawChoice();
89  void SetCodonDrawChoice(EFeatureDisplayType ftype);
90 
91 private:
92 
93  // forbidden
96 
97 
98  EFeatureDisplayType ConfigStringToFeatureDisplayType (string str);
99  const string FeatureDisplayTypeToConfigString (EFeatureDisplayType disp);
100 
101  objects::SAnnotSelector m_CaseFeatureSel;
102 
103 };
104 
105 
106 
108 
109 #endif /* GUI_WIDGETS_SEQ_TEXT___SEQTEXT_CONF__HPP */
CSettingsSet::TFeatSubtype TFeatSubtype
we use int instead of CSeqFeatData::ESubtype for two reasons:
CSeqTextPaneConfig(const CSeqTextPaneConfig &)
CSeqTextPaneConfig & operator=(const CSeqTextPaneConfig &)
objects::SAnnotSelector m_CaseFeatureSel
CSettingsSet is an adapter of the CGuiRegistry to provide persistance of and easy access to view's (o...
int TFeatSubtype
we use int instead of CSeqFeatData::ESubtype for two reasons:
static const char * str(char *buf, int n)
Definition: stats.c:84
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define NCBI_GUIWIDGETS_SEQTEXT_EXPORT
Definition: gui_export.h:538
Modified on Wed Jun 19 17:01:27 2024 by modify_doxy.py rev. 669887