NCBI C++ ToolKit
|
Search Toolkit Book for CSGConfigUtils
#include <gui/widgets/seq_graphic/config_utils.hpp>
Public Types | |
typedef pair< string, string > | TKeyValuePair |
typedef map< string, string > | TKeyValuePairs |
Static Private Member Functions | |
static bool | x_UserFieldToColor (const objects::CUser_field &f, CRgbaColor &c) |
static void | x_ColorToUserField (const CRgbaColor &c, objects::CUser_field &f) |
Static Private Attributes | |
static string | m_CommonDefaultStyleName = "Default" |
Definition at line 45 of file config_utils.hpp.
typedef pair<string, string> CSGConfigUtils::TKeyValuePair |
Definition at line 132 of file config_utils.hpp.
typedef map<string, string> CSGConfigUtils::TKeyValuePairs |
Definition at line 133 of file config_utils.hpp.
Definition at line 325 of file config_utils.hpp.
References ncbi::grid::netcache::search::fields::key.
Referenced by ComposeColorKey(), GetColorReadView(), GetColorRWView(), CHistParamsManager::LoadSettings(), and CHistParamsManager::SaveSettings().
Definition at line 287 of file config_utils.hpp.
References ColorKey(), and ncbi::grid::netcache::search::fields::key.
Definition at line 301 of file config_utils.hpp.
References DecoKey(), and ncbi::grid::netcache::search::fields::key.
Referenced by CSeqGraphicConfig::x_LoadFeatSettings().
|
static |
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().
Definition at line 294 of file config_utils.hpp.
References ncbi::grid::netcache::search::fields::key, and SizeKey().
Definition at line 339 of file config_utils.hpp.
References ncbi::grid::netcache::search::fields::key.
Referenced by ComposeDecoKey().
Definition at line 381 of file config_utils.hpp.
References ncbi::grid::netcache::search::fields::key.
Referenced by GetColorReadView(), GetColorRWView(), CSeqGraphicConfig::LoadSettings(), and CSeqGraphicConfig::LoadSettingStyles().
Definition at line 395 of file config_utils.hpp.
References m_CommonDefaultStyleName.
Referenced by CSeqGraphicConfig::LoadSettings(), and CSeqGraphicConfig::LoadSettingStyles().
Definition at line 419 of file config_utils.hpp.
References m_CommonDefaultStyleName.
Referenced by CSeqGraphicConfig::LoadSettings(), and CSeqGraphicConfig::SaveSettings().
Definition at line 413 of file config_utils.hpp.
References m_CommonDefaultStyleName.
Referenced by GetLabelPosReadView(), GetLabelPosRWView(), CSeqGraphicConfig::LoadSettings(), and CSeqGraphicConfig::LoadSettingStyles().
Definition at line 407 of file config_utils.hpp.
References m_CommonDefaultStyleName.
Referenced by CSeqGraphicConfig::LoadSettings(), CFeaturePanel::x_LoadSettings(), and CFeaturePanel::x_SaveSettings().
Definition at line 388 of file config_utils.hpp.
References ncbi::grid::netcache::search::fields::key.
Referenced by GetSizeReadView(), GetSizeRWView(), CSeqGraphicConfig::LoadSettings(), and CSeqGraphicConfig::LoadSettingStyles().
Definition at line 401 of file config_utils.hpp.
References m_CommonDefaultStyleName.
Referenced by CAlnVecRow::ConfigureTracks(), GetTrackProfileReadView(), GetTrackProfileRWView(), CFeaturePanel::LoadDefaultTracks(), CSeqGraphicConfig::LoadSettings(), CSeqGraphicConfig::LoadSettingStyles(), and CFeaturePanel::x_LoadSettings().
|
inlinestatic |
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().
|
inlinestatic |
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().
|
inlinestatic |
Definition at line 205 of file config_utils.hpp.
References ColorKey(), DefColorTheme(), GetWriteView(), and ncbi::grid::netcache::search::fields::key.
Referenced by CSeqGraphicConfig::SaveSettings(), CGeneModelConfig::SaveSettings(), CHistParamsManager::SaveSettings(), CAlignmentTrack::x_SaveAlignmentSettings(), CSegmentMapTrack::x_SaveConfiguration(), CSequenceTrack::x_SaveConfiguration(), and CAlignmentTrack::x_SaveMatePairSettings().
|
static |
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().
|
inlinestatic |
Definition at line 260 of file config_utils.hpp.
References DefLabelPosition(), GetReadView(), ncbi::grid::netcache::search::fields::key, and LabelPositionKey().
Referenced by CAlignmentTrack::x_LoadAlignmentSettings(), CSeqGraphicConfig::x_LoadFeatSettings(), and CSegmentMapTrack::x_LoadSettings().
|
inlinestatic |
Definition at line 273 of file config_utils.hpp.
References DefLabelPosition(), GetWriteView(), ncbi::grid::netcache::search::fields::key, and LabelPositionKey().
Referenced by CAlignmentTrack::x_SaveAlignmentSettings(), and CSegmentMapTrack::x_SaveConfiguration().
|
static |
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().
|
inlinestatic |
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().
|
inlinestatic |
Definition at line 231 of file config_utils.hpp.
References DefSizeLevel(), GetWriteView(), ncbi::grid::netcache::search::fields::key, and SizeKey().
Referenced by CGeneModelConfig::SaveSettings(), CHistParamsManager::SaveSettings(), CAlignmentTrack::x_SaveAlignmentSettings(), CSegmentMapTrack::x_SaveConfiguration(), CSequenceTrack::x_SaveConfiguration(), and CAlignmentTrack::x_SaveMatePairSettings().
|
static |
Definition at line 143 of file config_utils.cpp.
References f, CGlTextureFont::FaceFromString(), CRegistryReadView::GetInt(), CRegistryReadView::GetString(), and int.
Referenced by CRulerPanel::LoadSettings().
|
inlinestatic |
Definition at line 244 of file config_utils.hpp.
References DefTrackProfile(), GetReadView(), ncbi::grid::netcache::search::fields::key, and TrackProfileKey().
|
inlinestatic |
Definition at line 252 of file config_utils.hpp.
References DefTrackProfile(), GetWriteView(), ncbi::grid::netcache::search::fields::key, and TrackProfileKey().
|
static |
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().
Definition at line 367 of file config_utils.hpp.
References ncbi::grid::netcache::search::fields::key.
Referenced by CSeqGraphicConfig::LoadSettings(), and CSeqGraphicConfig::SaveSettings().
Definition at line 360 of file config_utils.hpp.
References ncbi::grid::netcache::search::fields::key.
Referenced by GetLabelPosReadView(), and GetLabelPosRWView().
Definition at line 353 of file config_utils.hpp.
References ncbi::grid::netcache::search::fields::key.
Referenced by CFeaturePanel::x_LoadSettings(), and CFeaturePanel::x_SaveSettings().
|
static |
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().
|
inlinestatic |
Definition at line 317 of file config_utils.hpp.
References color, ncbi::grid::netcache::search::fields::key, CRegistryWriteView::SetField(), and x_ColorToUserField().
Referenced by CSeqGraphicConfig::SaveSettings(), CGeneModelConfig::SaveSettings(), CHistParamsManager::SaveSettings(), CAlignmentTrack::x_SaveAlignmentSettings(), CSegmentMapTrack::x_SaveConfiguration(), CSequenceTrack::x_SaveConfiguration(), and CAlignmentTrack::x_SaveMatePairSettings().
|
static |
Definition at line 134 of file config_utils.cpp.
References f, CGlTextureFont::FaceToString(), and CRegistryWriteView::Set().
Referenced by CGeneModelConfig::SaveSettings(), CAlignmentTrack::x_SaveAlignmentSettings(), CSegmentMapTrack::x_SaveConfiguration(), CSequenceTrack::x_SaveConfiguration(), and CAlignmentTrack::x_SaveMatePairSettings().
|
static |
Definition at line 156 of file config_utils.cpp.
References f, CGlTextureFont::FaceToString(), and CRegistryWriteView::Set().
Definition at line 332 of file config_utils.hpp.
References ncbi::grid::netcache::search::fields::key.
Referenced by ComposeSizeKey(), GetSizeReadView(), and GetSizeRWView().
Definition at line 346 of file config_utils.hpp.
References ncbi::grid::netcache::search::fields::key.
Referenced by GetTrackProfileReadView(), GetTrackProfileRWView(), CFeaturePanel::LoadDefaultTracks(), CFeaturePanel::x_LoadSettings(), and CFeaturePanel::x_SaveSettings().
Definition at line 374 of file config_utils.hpp.
References ncbi::grid::netcache::search::fields::key.
Referenced by CFeaturePanel::x_LoadSettings(), and CFeaturePanel::x_SaveSettings().
|
staticprivate |
Definition at line 211 of file config_utils.cpp.
References f, CRgbaColor::GetAlphaUC(), CRgbaColor::GetBlueUC(), CRgbaColor::GetGreenUC(), CRgbaColor::GetRedUC(), and val.
Referenced by SetColor().
|
staticprivate |
Definition at line 165 of file config_utils.cpp.
References CUser_field_Base::C_Data::e_Ints, CUser_field_Base::C_Data::e_Reals, CUser_field_Base::C_Data::e_Str, f, CRgbaColor::FromString(), CRgbaColor::SetAlpha(), CRgbaColor::SetBlue(), CRgbaColor::SetGreen(), and CRgbaColor::SetRed().
Referenced by GetColor().
|
staticprivate |
Definition at line 188 of file config_utils.hpp.
Referenced by DefDecoStyle(), DefGlobalSettingStyle(), DefLabelPosition(), DefLayout(), and DefTrackProfile().