& disp_name,
64 const string& legend_txt,
65 booloptional =
false)
68item->SetName() = name;
69item->SetDisplay_name() = disp_name;
70item->SetHelp() =
help;
71item->SetLegend_text() = legend_txt;
73item->SetOptional(optional);
80 const string& disp_name,
81 const string& curr_val,
83 booloptional =
false)
86choice->SetName() = name;
87choice->SetDisplay_name() = disp_name;
88choice->SetCurr_value() = curr_val;
89choice->SetHelp() =
help;
91choice->SetOptional(optional);
97 const string& disp_n,
98 const string& help_text,
99 const string& legend_txt,
101 booloptional =
false)
104cb->SetName() = name;
105cb->SetValue() =
value;
106cb->SetDisplay_name() = disp_n;
107cb->SetHelp() = help_text;
108cb->SetLegend_text() = legend_txt;
110cb->SetOptional(optional);
115 const string& disp_n,
116 const string& help_text,
117 const string&
value)
121tb->SetValue(
value);
122tb->SetDisplay_name(disp_n);
123tb->SetHelp(help_text);
124tb->SetLegend_text(help_text);
129 const string&
value)
132hs->SetName() = name;
133hs->SetValue() =
value;
139 const string& pos_str)
142comment->SetLabel() =
label;
143comment->SetPos_str() = pos_str;
149 const string& disp_name,
150 const string&
help,
154cat->SetName() = name;
155cat->SetDisplay_name() = disp_name;
156cat->SetHelp() =
help;
157cat->SetOrder() = order;
162 const string& disp_name,
163 const string&
help,
164 const string& value_min,
165 const string& value_max,
166 boolautoscale =
true,
167 boolinverse =
false,
168 booloptional =
false)
171range->SetName() = name;
172range->SetDisplay_name() = disp_name;
173range->SetHelp() =
help;
174range->SetValue().SetMin(value_min);
175range->SetValue().SetMax(value_max);
176range->SetValue().SetAutoscale(autoscale);
177range->SetValue().SetInverse(inverse);
179range->SetOptional(optional);
188 static void DecodeValueRange(
const string& value_range,
string& range_min,
string& range_max,
bool& range_auto)
193 if(value_range.empty())
197 autoval_size = vals.size();
198 if(val_size < 2 || val_size > 3)
202range_auto = val_size == 3 && vals[2] ==
"auto";
205 static void EncodeValueRange(
const string& range_min,
const string& range_max,
boolrange_auto,
string& value_range)
208value_range = range_min.empty() ?
"inf": range_min;
210value_range += range_max.empty() ?
"inf": range_max;
212value_range +=
"|auto";
242m_Subcategories[sub_cat->GetName()] = sub_cat;
250m_Categories[cat.
m_Category->GetName()] = cat;
255m_Categories[cat_name].m_Subcategories[sub_cat->GetName()] = sub_cat;
262 if(iter != m_Categories.end()) {
263cat = iter->second.m_Category;
273 if(iter != m_Categories.end()) {
275iter->second.m_Subcategories.find(sub_cat);
276 if(s_iter != iter->second.m_Subcategories.end()) {
277cat = s_iter->second;
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
data structure holding configuration for a track.
map< string, CRef< objects::CCategory > > TSubcategories
map< string, int > TGroupMap
group/subgroup settings from TMS string is group name, int is group order
CRef< objects::CCategory > GetCategory(const string &cat_name)
map< string, SCategorySettings > TCategories
map< TSubgroupName, int > TSubgroupMap
int is subgroup order
pair< string, string > TSubgroupName
first string is group name, second is subgroups name
CRef< objects::CCategory > GetSubcategory(const string &cat_name, const string &sub_cat)
void AddCategory(const SCategorySettings &cat)
void AddSubcategory(const string &cat_name, CRef< objects::CCategory > sub_cat)
static void EncodeValueRange(const string &range_min, const string &range_max, bool range_auto, string &value_range)
static CRef< objects::CCategory > CreateCategory(const string &name, const string &disp_name, const string &help, int order)
static CRef< objects::CChoice > CreateChoice(const string &name, const string &disp_name, const string &curr_val, const string &help, bool optional=false)
static CRef< objects::CHiddenSetting > CreateHiddenSetting(const string &name, const string &value)
static CRef< objects::CCheckBox > CreateCheckBox(const string &name, const string &disp_n, const string &help_text, const string &legend_txt, bool value, bool optional=false)
static CRef< objects::CRangeControl > CreateRangeControl(const string &name, const string &disp_name, const string &help, const string &value_min, const string &value_max, bool autoscale=true, bool inverse=false, bool optional=false)
static CRef< objects::CComment > CreateComment(const string &label, const string &pos_str)
static void DecodeValueRange(const string &value_range, string &range_min, string &range_max, bool &range_auto)
static CRef< objects::CTextBox > CreateTextBox(const string &name, const string &disp_n, const string &help_text, const string &value)
static CRef< objects::CChoiceItem > CreateChoiceItem(const string &name, const string &disp_name, const string &help, const string &legend_txt, bool optional=false)
container_type::const_iterator const_iterator
The NCBI C++ standard methods for dealing with std::string.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)
Split a string using specified delimiters.
@ fSplit_Tokenize
All delimiters are merged and trimmed, to get non-empty tokens only.
#define NCBI_GUIWIDGETS_SEQGRAPHIC_EXPORT
static const char label[]
const GenericPointer< typename T::ValueType > T2 value
CRef< objects::CCategory > m_Category
TSubcategories m_Subcategories
void AddSubcategory(CRef< objects::CCategory > sub_cat)
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