A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCSGConfigUtils.html below:

NCBI C++ ToolKit: CSGConfigUtils Class Reference

Search Toolkit Book for CSGConfigUtils

#include <gui/widgets/seq_graphic/config_utils.hpp>

static string  ComposeColorKey (const string &base, const string &key)   static string  ComposeSizeKey (const string &base, const string &key)   static string  ComposeDecoKey (const string &base, const string &key)   static void  ParseProfileString (const string &profile_str, TKeyValuePairs &settings)   static string  ComposeProfileString (const TKeyValuePairs &settings)   static CRegistryReadView  GetReadView (const CGuiRegistry &reg, const string &base_key, const string &curr_key, const string &def_key1="", const string &def_key2="", const string &def_key3="")   read/readwrite view creation helper methods. More...
  static CRegistryWriteView  GetWriteView (CGuiRegistry &reg, const string &base_key, const string &curr_key, const string &def_key1="", const string &def_key2="", const string &def_key3="")   static CRegistryReadView  GetColorReadView (const CGuiRegistry &reg, const string &base_key, const string &sect, const string &key, const string &def_sect="")   Create a read view specifically for 'Color' section. More...
  static CRegistryWriteView  GetColorRWView (CGuiRegistry &reg, const string &base_key, const string &sect, const string &key, const string &def_sect="")   static CRegistryReadView  GetSizeReadView (const CGuiRegistry &reg, const string &base_key, const string &sect, const string &key, const string &def_sect="")   static CRegistryWriteView  GetSizeRWView (CGuiRegistry &reg, const string &base_key, const string &sect, const string &key, const string &def_sect="")   static CRegistryReadView  GetTrackProfileReadView (const CGuiRegistry &reg, const string &base_key, const string &key)   static CRegistryWriteView  GetTrackProfileRWView (CGuiRegistry &reg, const string &base_key, const string &key)   static CRegistryReadView  GetLabelPosReadView (const CGuiRegistry &reg, const string &base_key, const string &sect, const string &key, const string &def_sect="")   static CRegistryWriteView  GetLabelPosRWView (CGuiRegistry &reg, const string &base_key, const string &sect, const string &key, const string &def_sect="")   static void  GetColor (const CRegistryReadView &view, const string &key, CRgbaColor &color)   static void  SetColor (CRegistryWriteView &view, const string &key, const CRgbaColor &color)   static void  GetFont (const CRegistryReadView &view, const string &face_key, const string &size_key, CGlTextureFont &f)   static void  SetFont (CRegistryWriteView &view, const string &face_key, const string &size_key, const CGlTextureFont &f)   static void  GetTexFont (const CRegistryReadView &view, const string &face_key, const string &size_key, CGlTextureFont &f)   static void  SetTexFont (CRegistryWriteView &view, const string &face_key, const string &size_key, const CGlTextureFont &f)   static const stringColorKey ()   static const stringSizeKey ()   static const stringDecoKey ()   static const stringTrackProfileKey ()   static const stringLayoutKey ()   static const stringLabelPositionKey ()   static const stringGlobalSettingStyleKey ()   static const stringUserSettingPrefix ()   static const stringDefColorTheme ()   static const stringDefSizeLevel ()   static const stringDefDecoStyle ()   static const stringDefTrackProfile ()   static const stringDefLayout ()   static const stringDefLabelPosition ()   static const stringDefGlobalSettingStyle ()  

Definition at line 45 of file config_utils.hpp.

◆ TKeyValuePair ◆ TKeyValuePairs ◆ ColorKey() ◆ ComposeColorKey() ◆ ComposeDecoKey() ◆ ComposeProfileString()

Definition at line 102 of file config_utils.cpp.

References map_checker< Container >::begin(), map_checker< Container >::empty(), map_checker< Container >::end(), and kEmptyStr.

Referenced by CGeneModelConfig::SaveSettingsAsString(), CFeatureTrack::x_SaveSettings(), CSnpTrack::x_SaveSettings(), CEpigenomicsTrack::x_SaveSettings(), CGraphOverlay::x_SaveSettings(), CSegmentMapTrack::x_SaveSettings(), CSequenceTrack::x_SaveSettings(), CTraceGraphTrack::x_SaveSettings(), CAlignmentTrack::x_SaveSettings(), and CSixFramesTransTrack::x_SaveSettings().

◆ ComposeSizeKey() ◆ DecoKey() ◆ DefColorTheme() ◆ DefDecoStyle() ◆ DefGlobalSettingStyle() const string & CSGConfigUtils::DefGlobalSettingStyle ( ) inlinestatic ◆ DefLabelPosition() ◆ DefLayout() ◆ DefSizeLevel() ◆ DefTrackProfile() ◆ GetColor()

Definition at line 307 of file config_utils.hpp.

References color, CRegistryReadView::GetField(), ncbi::grid::netcache::search::fields::key, and x_UserFieldToColor().

Referenced by CFeatGlyph::GetCustomColor(), CVcfGlyph::GetCustomColor(), CSNPColorPicker::GetSNPColor(), CSeqGraphicConfig::LoadSettings(), CGeneModelConfig::LoadSettings(), CRulerPanel::LoadSettings(), CHistParamsManager::LoadSettings(), CBinsGlyph::x_Draw(), CGeneMarkerGlyph::x_Draw(), CScatterPlotGlyph::x_Draw(), CAlignmentTrack::x_LoadAlignmentSettings(), CSeqGraphicConfig::x_LoadFeatSettings(), CAlignmentTrack::x_LoadMatePairSettings(), CSegmentMapTrack::x_LoadSettings(), CSequenceTrack::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), and CSixFramesTransTrack::x_LoadSettings().

◆ GetColorReadView()

Create a read view specifically for 'Color' section.

The method is used for constructing necessary parameters to create a read view for 'Color' section with polymothic data structure. For a given example settings as below: [Base.Section.GeneModel.Default] ShowLabel = true [Base.Section.GeneModel.Default.Color.Color] ; default settings BGColor = white FGColor = green base_key is Base.Section.GeneModel.Default in this example, and key is the current color setting key which is "Color".

Definition at line 192 of file config_utils.hpp.

References ColorKey(), DefColorTheme(), GetReadView(), and ncbi::grid::netcache::search::fields::key.

Referenced by CFeatGlyph::GetCustomColor(), CVcfGlyph::GetCustomColor(), CSeqGraphicConfig::LoadSettings(), CGeneModelConfig::LoadSettings(), CRulerPanel::LoadSettings(), CHistParamsManager::LoadSettings(), CSnpTrack::x_AddSnpsLayout(), CBinsGlyph::x_Draw(), CGeneMarkerGlyph::x_Draw(), CScatterPlotGlyph::x_Draw(), CAlignmentTrack::x_LoadAlignmentSettings(), CSeqGraphicConfig::x_LoadFeatSettings(), CAlignmentTrack::x_LoadMatePairSettings(), CSegmentMapTrack::x_LoadSettings(), CSequenceTrack::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), and CSixFramesTransTrack::x_LoadSettings().

◆ GetColorRWView() ◆ GetFont()

Definition at line 121 of file config_utils.cpp.

References f, CGlTextureFont::FaceFromString(), CRegistryReadView::GetInt(), CRegistryReadView::GetString(), and int.

Referenced by CSeqGraphicConfig::LoadSettings(), CGeneModelConfig::LoadSettings(), CAlignmentTrack::x_LoadAlignmentSettings(), CSeqGraphicConfig::x_LoadFeatSettings(), CAlignmentTrack::x_LoadMatePairSettings(), CSegmentMapTrack::x_LoadSettings(), CSequenceTrack::x_LoadSettings(), and CSixFramesTransTrack::x_LoadSettings().

◆ GetLabelPosReadView() ◆ GetLabelPosRWView() ◆ GetReadView()

read/readwrite view creation helper methods.

Create a read view with polymorphic data structure. It returns a read view that overlays several named sub-sections in a given section. Note that the sections listed are presumed to be in decreasing order of importance, so curr_key will overload def_key1 which in turn will overload key_2 and so on. Example: For a given settings as below: [Base.Section.Default] BGColor = white FGColor = black [Base.Section.Gene] FGColor = red The read view created with parameters: GetReadView(reg, "Base.Section", "Gene", "Default") has the effect that settings in Gene section will override the corresponding settings in the Default section. So the FGColor will be red instead of black.

Definition at line 43 of file config_utils.cpp.

References CGuiRegistry::GetReadView().

Referenced by GetColorReadView(), GetLabelPosReadView(), CSequenceTrackFactory::GetSettings(), CSixFramesTransTrackFactory::GetSettings(), CAlignmentTrackFactory::GetSettings(), GetSizeReadView(), GetTrackProfileReadView(), CSeqGraphicConfig::LoadSettings(), CGeneModelConfig::LoadSettings(), CHistParamsManager::LoadSettings(), CGeneModelConfig::LoadSettingsPartial(), CSeqGraphicConfig::LoadSettingStyles(), CAlignmentTrack::x_LoadAlignmentSettings(), CSeqGraphicConfig::x_LoadFeatSettings(), CAlignmentTrack::x_LoadMatePairSettings(), CFeaturePanel::x_LoadSettings(), CSnpTrack::x_LoadSettings(), CSegmentMapTrack::x_LoadSettings(), CSequenceTrack::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), and CSixFramesTransTrack::x_LoadSettings().

◆ GetSizeReadView()

Definition at line 218 of file config_utils.hpp.

References DefSizeLevel(), GetReadView(), ncbi::grid::netcache::search::fields::key, and SizeKey().

Referenced by CSeqGraphicConfig::LoadSettings(), CGeneModelConfig::LoadSettings(), CRulerPanel::LoadSettings(), CHistParamsManager::LoadSettings(), CAlignmentTrack::x_LoadAlignmentSettings(), CSeqGraphicConfig::x_LoadFeatSettings(), CAlignmentTrack::x_LoadMatePairSettings(), CSegmentMapTrack::x_LoadSettings(), CSequenceTrack::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), and CSixFramesTransTrack::x_LoadSettings().

◆ GetSizeRWView() ◆ GetTexFont() ◆ GetTrackProfileReadView() ◆ GetTrackProfileRWView() ◆ GetWriteView()

Definition at line 65 of file config_utils.cpp.

References CGuiRegistry::GetWriteView().

Referenced by GetColorRWView(), GetLabelPosRWView(), GetSizeRWView(), GetTrackProfileRWView(), CSeqGraphicConfig::SaveSettings(), CGeneModelConfig::SaveSettings(), CHistParamsManager::SaveSettings(), CAlignmentTrack::x_SaveAlignmentSettings(), CAlignmentTrack::x_SaveConfiguration(), CSegmentMapTrack::x_SaveConfiguration(), CSequenceTrack::x_SaveConfiguration(), CAlignmentTrack::x_SaveMatePairSettings(), and CFeaturePanel::x_SaveSettings().

◆ GlobalSettingStyleKey() const string & CSGConfigUtils::GlobalSettingStyleKey ( ) inlinestatic ◆ LabelPositionKey() ◆ LayoutKey() ◆ ParseProfileString()

Definition at line 86 of file config_utils.cpp.

References ITERATE, and CTrackUtils::TokenizeWithEscape().

Referenced by CTrackConfigManager::CreateTrackConfig(), CSnpTrackFactory::CreateTracks(), CVarTrackFactory::CreateTracks(), CFeatureTrackFactory::CreateTracks(), CGraphTrackFactory::CreateTracks(), CAlignmentTrackFactory::CreateTracks(), CVcfTrackFactory::CreateTracks(), CGraphTrack::GetLegend(), CLayoutTrack::LoadProfile(), and CLayoutTrack::SaveProfile().

◆ SetColor() ◆ SetFont() ◆ SetTexFont() ◆ SizeKey() ◆ TrackProfileKey() ◆ UserSettingPrefix() ◆ x_ColorToUserField() void CSGConfigUtils::x_ColorToUserField ( const CRgbaColorc, objects::CUser_field &  f  ) staticprivate ◆ x_UserFieldToColor() ◆ m_CommonDefaultStyleName string CSGConfigUtils::m_CommonDefaultStyleName = "Default" staticprivate

The documentation for this class was generated from the following files:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4