85 sel.SetFeatSubtype(
static_cast<objects::CSeqFeatData::ESubtype
>(subtype));
92 int type=0, subtype=0;
96 sel.SetFeatSubtype(
static_cast<objects::CSeqFeatData::ESubtype
>(subtype));
104 int type=0, subtype=0;
CFeatListItem - basic configuration data for one "feature" type.
string GetDescription() const
CConfigurableItems - a static list of items that can be configured.
bool GetItemBySubtype(int subtype, CFeatListItem &config_item) const
bool GetTypeSubType(const string &desc, int &type, int &subtype) const
Get the feature's type and subtype from its description.
static const CFeatList * GetFeatList()
bool GetShowAbsolutePosition()
void SetShowFeatAsLower(bool show_lower)
const string FeatureDisplayTypeToConfigString(EFeatureDisplayType disp)
void Reload()
uncache any cached data
void SetShowAbsolutePosition(bool show_abs)
void SetFontSize(int font_size)
objects::SAnnotSelector * GetCaseFeature()
void SetFeatureColorationChoice(EFeatureDisplayType ftype)
EFeatureDisplayType GetCodonDrawChoice()
void SetCodonDrawChoice(EFeatureDisplayType ftype)
EFeatureDisplayType ConfigStringToFeatureDisplayType(string str)
bool GetShowFeatAsLower()
EFeatureDisplayType GetFeatureColorationChoice()
void SetCaseFeature(TFeatSubtype subtype)
int GetCaseFeatureSubtype()
objects::SAnnotSelector m_CaseFeatureSel
CSeqTextPaneConfig(CGuiRegistry *config_cache=0)
CSettingsSet is an adapter of the CGuiRegistry to provide persistance of and easy access to view's (o...
void Set(const string &key, int val)
set a named integer value
void Uncache()
uncache any cached lookup data
int GetInt(const string &key, int default_val=0) const
Retrieve a named int value from a section.key.
int TFeatSubtype
we use int instead of CSeqFeatData::ESubtype for two reasons:
string GetString(const string &key, const string &default_val=kEmptyStr) const
Retrieve a named string value from a section.key.
bool GetBool(const string &key, bool default_val=false) const
Retrieve a named bool value from a section.key.
The NCBI C++ standard methods for dealing with std::string.
static objects::SAnnotSelector GetAnnotSelector(TAnnotFlags flags=0)
request an annotation selector for a given type
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static int CompareNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive compare of a substring with another string.
const string kFeatureColoration("feature_coloration")
const string kFontSize("font_size")
const string kDisplayMouseOver("mouseover")
const string kDisplayAll("all")
const string kCaseFeature("case_feature")
const string kDisplaySelected("selected")
const string kShowAbsolute("show_absolute_position")
const string kCaseLower("show_feat_as_lower")
const string kCodonDraw("codon_draw")
const string kDisplayNone("none")
static const char * str(char *buf, int n)