SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
85wxPanel::Create( parent,
id, pos,
size, style );
90GetSizer()->SetSizeHints(
this);
131wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
132itemPanel1->SetSizer(itemBoxSizer2);
134wxStaticText* itemStaticText1 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"INFO Fields"), wxDefaultPosition, wxDefaultSize, 0 );
135itemBoxSizer2->Add(itemStaticText1, 0, wxALIGN_LEFT|wxALL, 5);
137wxArrayString m_InfoSubColsStrings;
141wxStaticText* itemStaticText2 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Some fields cannot be deselected because they are needed by Genome Workbench in order to display this file."), wxDefaultPosition, wxDefaultSize, 0 );
142itemBoxSizer2->Add(itemStaticText2, 0, wxGROW|wxLEFT|wxRIGHT, 5);
144wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
145itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_LEFT|wxTOP, 5);
147wxButton* itemButton4 =
newwxButton( itemPanel1,
ID_SelectAllINFO,
_(
"Select All"), wxDefaultPosition, wxDefaultSize, 0 );
148itemBoxSizer3->Add(itemButton4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
150wxButton* itemButton5 =
newwxButton( itemPanel1,
ID_DeselectAllINFO,
_(
"Deselect All"), wxDefaultPosition, wxDefaultSize, 0 );
151itemBoxSizer3->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
163 strings = reg.
GetString(
"import_vcf",
"mandatory_fields",
"");
165fields = {
"SVTYPE",
"END",
"CIPOS",
"CIEND",
"SVLEN",
"CLNSIG",
"CLNREVSTAT",
"CLNVC",
"CLNVCSO",
"MC",
"RS",
"DBVARID"};
167vector<string> str_list;
169 for(
autov : str_list) {
187 staticwxColour light_gray{
_T(
"#808080") };
198 boolis_mandatory = mandatory_fields.count(it->m_Name) != 0;
212 m_InfoSubCols->SetColumnWidth(0, wxLIST_AUTOSIZE_USEHEADER);
222selected.
insert(it->m_Name);
230 boolchecked =
true;
static CNcbiApplication * Instance(void)
Singleton method.
static bool ShowToolTips()
Should we show tooltips?
~CVcfColumnSelectionPanel()
Destructor.
CVcfColumnSelectionPanel()
Constructors.
void OnSelectAllClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SelectAllINFO
void SetInfoFields(const set< CConstRef< SVcfFieldData >> &fields)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
bool AllAreChecked() const
wxCheckedListCtrl * m_InfoSubCols
bool Create(wxWindow *parent, wxWindowID id=ID_CVCFCOLUMNSELECTIONPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void Init()
Initialises member variables.
set< CConstRef< SVcfFieldData > > m_FieldData
void OnDeselectAllClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_DeselectAllINFO
void GetSelectedInfoFields(set< string > &selected)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void CreateControls()
Creates the controls and sizers.
iterator_bool insert(const value_type &val)
const_iterator begin() const
const_iterator end() const
bool IsChecked(long item) const
void SetChecked(long item, bool checked)
const CNcbiRegistry & GetConfig(void) const
Get the application's cached configuration parameters (read-only).
virtual string GetString(const string §ion, const string &name, const string &default_value, TFlags flags=0) const
Get the parameter string value.
#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.
static void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)
Truncate whitespace in a string (in-place)
const struct ncbi::grid::netcache::search::fields::SIZE size
#define row(bind, expected)
static void s_GetMandatoryFields(set< string > &fields)
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