37 #include "wx/imaglist.h"
45 #include <wx/checkbox.h>
46 #include <wx/statbox.h>
157 CAlgoToolManagerParamsPanel::Create( parent,
id, pos,
size, style );
162 GetSizer()->SetSizeHints(
this);
201 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
202 itemCAlgoToolManagerParamsPanel1->SetSizer(itemBoxSizer2);
204 wxStaticBox* itemStaticBoxSizer3Static =
new wxStaticBox(itemCAlgoToolManagerParamsPanel1,
wxID_ANY,
_(
"Choose a set of alignments"));
205 wxStaticBoxSizer* itemStaticBoxSizer3 =
new wxStaticBoxSizer(itemStaticBoxSizer3Static, wxVERTICAL);
206 itemBoxSizer2->Add(itemStaticBoxSizer3, 1, wxGROW|wxALL, 5);
209 itemStaticBoxSizer3->Add(
m_ObjectList, 1, wxGROW|wxALL, 5);
211 wxFlexGridSizer* itemFlexGridSizer5 =
new wxFlexGridSizer(0, 2, 0, 0);
212 itemBoxSizer2->Add(itemFlexGridSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
214 m_GroupBySeqId =
new wxCheckBox( itemCAlgoToolManagerParamsPanel1,
ID_CHECKBOX_SEQID,
_(
"Group by sequence identifier"), wxDefaultPosition, wxDefaultSize, 0 );
216 itemFlexGridSizer5->Add(
m_GroupBySeqId, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
220 itemFlexGridSizer5->Add(
m_GroupByStrand, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
224 itemFlexGridSizer5->Add(
m_GroupByTaxId, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
228 itemFlexGridSizer5->Add(
m_GroupByLikeTaxId, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
232 itemFlexGridSizer5->Add(
m_GroupByRefSeq, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
234 m_GroupByEST =
new wxCheckBox( itemCAlgoToolManagerParamsPanel1,
ID_CHECKBOX_EST,
_(
"Group EST alignments"), wxDefaultPosition, wxDefaultSize, 0 );
236 itemFlexGridSizer5->Add(
m_GroupByEST, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
244 itemFlexGridSizer5->Add(
m_GroupByGenBank, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
246 m_GroupByWGS =
new wxCheckBox( itemCAlgoToolManagerParamsPanel1,
ID_CHECKBOX_WGS,
_(
"Group Whole Genome Shotgun alignments"), wxDefaultPosition, wxDefaultSize, 0 );
248 itemFlexGridSizer5->Add(
m_GroupByWGS, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
250 m_GroupByHTGS =
new wxCheckBox( itemCAlgoToolManagerParamsPanel1,
ID_CHECKBOX_HTGS,
_(
"Group HTGS sequence alignments"), wxDefaultPosition, wxDefaultSize, 0 );
252 itemFlexGridSizer5->Add(
m_GroupByHTGS, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
256 itemFlexGridSizer5->Add(
m_GroupByPatent, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
343 return wxPanel::TransferDataToWindow();
349 if(wxPanel::TransferDataFromWindow()) {
CGroupAlignmentsParamsPanel.
static string MakeKey(const string §ion, const string &key, const string &delim=CGuiRegistry::kDecimalDot)
create a key from a section and a subkey
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
class CRegistryReadView provides a nested hierarchical view at a particular key.
bool GetBool(const string &key, bool default_val=false) const
void Set(const string &key, int val)
access a named key at this level, with no recursion
void LoadTableSettings(const CRegistryReadView &view, bool byName=false)
void SaveTableSettings(CRegistryWriteView &view, bool saveSorting=true) const
wxCheckBox * m_GroupByWGS
wxIcon GetIconResource(const wxString &name)
bool TransferDataToWindow()
TConstScopedObjects * m_InputObjects
virtual void SaveSettings() const
wxCheckBox * m_GroupByRefSeq
wxBitmap GetBitmapResource(const wxString &name)
bool m_GroupByPredictedRefSeq
wxCheckBox * m_GroupByHTGS
static bool ShowToolTips()
void SetParams(SGroupAlignmentsParams *params, TConstScopedObjects *objects)
virtual void SetRegistryPath(const string &path)
CAlgoToolManagerParamsPanel.
wxCheckBox * m_GroupByTaxId
void RestoreDefaults()
override in derived classes
CObjectListWidget * m_ObjectList
wxCheckBox * m_GroupByLikeTaxId
virtual void LoadSettings()
wxCheckBox * m_GroupByPredictedRefSeq
virtual void SetRegistryPath(const string ®_path)
SGroupAlignmentsParams * m_Params
wxCheckBox * m_GroupByPatent
virtual void SaveSettings() const
override in derived classes
virtual void LoadSettings()
wxCheckBox * m_GroupByStrand
wxCheckBox * m_GroupByEST
~CGroupAlignmentsParamsPanel()
wxCheckBox * m_GroupBySeqId
bool Create(wxWindow *parent, wxWindowID id=ID_CGROUPALIGNMENTSPARAMSPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
wxCheckBox * m_GroupByGenBank
TConstScopedObjects m_Alignments
CGroupAlignmentsParamsPanel()
bool TransferDataFromWindow()
@ ID_CHECKBOX_REFSEQ_PREDICTED
@ ID_CHECKBOX_SIMILAR_TAXID
vector< SConstScopedObject > TConstScopedObjects
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char * kGroupByStrand
static const char * kGroupBySeqId
static const char * kGroupByPatent
static const char * kGroupByTaxId
static const char * kGroupByEST
static const char * kGroupByRefSeq
static const char * kGroupByLikeTaxId
static const char * kGroupByWGS
static const char * kGroupByPredictedRefSeq
static const char * kTableTag
static const char * kGroupByHTGS
const struct ncbi::grid::netcache::search::fields::SIZE size