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/vcf__column__sel__panel_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/loaders/vcf_column_sel_panel.cpp Source File

35 #include <wx/statbox.h> 37 #include <wx/button.h> 38 #include <wx/wupdlock.h> 39 #include <wx/stattext.h> 84 

SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);

85

wxPanel::Create( parent,

id

, pos,

size

, style );

90

GetSizer()->SetSizeHints(

this

);

131

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

132

itemPanel1->SetSizer(itemBoxSizer2);

134

wxStaticText* itemStaticText1 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"INFO Fields"

), wxDefaultPosition, wxDefaultSize, 0 );

135

itemBoxSizer2->Add(itemStaticText1, 0, wxALIGN_LEFT|wxALL, 5);

137

wxArrayString m_InfoSubColsStrings;

141

wxStaticText* itemStaticText2 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Some fields cannot be deselected because they are needed by Genome Workbench in order to display this file."

), wxDefaultPosition, wxDefaultSize, 0 );

142

itemBoxSizer2->Add(itemStaticText2, 0, wxGROW|wxLEFT|wxRIGHT, 5);

144

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxHORIZONTAL);

145

itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_LEFT|wxTOP, 5);

147

wxButton* itemButton4 =

new

wxButton( itemPanel1,

ID_SelectAllINFO

,

_

(

"Select All"

), wxDefaultPosition, wxDefaultSize, 0 );

148

itemBoxSizer3->Add(itemButton4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

150

wxButton* itemButton5 =

new

wxButton( itemPanel1,

ID_DeselectAllINFO

,

_

(

"Deselect All"

), wxDefaultPosition, wxDefaultSize, 0 );

151

itemBoxSizer3->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

163  string

s = reg.

GetString

(

"import_vcf"

,

"mandatory_fields"

,

""

);

165

fields = {

"SVTYPE"

,

"END"

,

"CIPOS"

,

"CIEND"

,

"SVLEN"

,

"CLNSIG"

,

"CLNREVSTAT"

,

"CLNVC"

,

"CLNVCSO"

,

"MC"

,

"RS"

,

"DBVARID"

};

167

vector<string> str_list;

169  for

(

auto

v : str_list) {

187  static

wxColour light_gray{

_T

(

"#808080"

) };

198  bool

is_mandatory = mandatory_fields.count(it->m_Name) != 0;

212  m_InfoSubCols

->SetColumnWidth(0, wxLIST_AUTOSIZE_USEHEADER);

222

selected.

insert

(it->m_Name);

230  bool

checked =

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 &section, 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