SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
87wxPanel::Create( parent,
id, pos,
size, style );
92GetSizer()->SetSizeHints(
this);
132wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
133itemPanel1->SetSizer(itemBoxSizer2);
135wxStaticText* itemStaticText1 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Samples Columns"), wxDefaultPosition, wxDefaultSize, 0 );
136itemBoxSizer2->Add(itemStaticText1, 0, wxALIGN_LEFT|wxALL, 5);
138wxArrayString m_SampleListStrings;
142wxBoxSizer* itemBoxSizer1 =
newwxBoxSizer(wxHORIZONTAL);
143itemBoxSizer2->Add(itemBoxSizer1, 0, wxALIGN_LEFT|wxTOP, 5);
145wxButton* itemButton2 =
newwxButton( itemPanel1,
ID_SELECTALLSAMPLES,
_(
"Select All"), wxDefaultPosition, wxDefaultSize, 0 );
146itemBoxSizer1->Add(itemButton2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
148wxButton* itemButton3 =
newwxButton( itemPanel1,
ID_DESELECTALLSAMPLES,
_(
"Deselect All"), wxDefaultPosition, wxDefaultSize, 0 );
149itemBoxSizer1->Add(itemButton3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
159 for(
const auto& it : samples) {
176wxArrayInt checkedItems;
178 return(checkedItems.size() ==
m_SampleList->GetCount());
void OnSelectallSamplesClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SELECTALLSAMPLES
CVcfSampleSelectionPanel()
Constructors.
void SetSamples(const map< unsigned, string > &samples)
wxCheckListBox * m_SampleList
void CreateControls()
Creates the controls and sizers.
bool Create(wxWindow *parent, wxWindowID id=ID_CVCFSAMPLESELECTIONPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
static bool ShowToolTips()
Should we show tooltips?
void GetSelectedSamples(map< unsigned, string > &selected)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
~CVcfSampleSelectionPanel()
Destructor.
void Init()
Initialises member variables.
void OnDeselectallSamplesClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_DESELECTALLSAMPLES
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool AllAreChecked() const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size
string ToStdString(const wxString &s)
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