NCBI C++ ToolKit
|
Search Toolkit Book for CBamCoverageGraphPanel
#include <gui/widgets/loaders/bam_coverage_graph_panel.hpp>
Public Types | |
enum | { ID_CBAMCOVERAGEGRAPHPANEL = 10074 , ID_PANEL9 = 10014 } |
Control identifiers. More... | |
Public Member Functions | |
CBamCoverageGraphPanel () | |
Constructors. More... | |
CBamCoverageGraphPanel (wxWindow *parent, wxWindowID id=ID_CBAMCOVERAGEGRAPHPANEL, const wxString &caption=_("Assembly Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CBAMCOVERAGEGRAPHPANEL, const wxString &caption=_("Assembly Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CBamCoverageGraphPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | SetBamFiles (const vector< pair< string, string >> &bam_files) |
bool | IsInputValid () |
void | OnIdle (wxIdleEvent &event) |
wxEVT_IDLE event handler for ID_CBAMCOVERAGEGRAPHPANEL More... | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
IRegSettings interface implementation | |
virtual void | SetRegistryPath (const string &path) |
virtual void | LoadSettings () |
virtual void | SaveSettings () const |
Public Member Functions inherited from IRegSettings | |
virtual | ~IRegSettings () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
wxStaticText * | m_BamAssembly |
CAssemblySelPanel * | m_AssemblyPanel |
vector< pair< string, string > > | m_BamFiles |
string | m_RegPath |
job_future< string > | m_BamAssemblyFuture |
CBamCoverageGraphPanel class declaration
Definition at line 84 of file bam_coverage_graph_panel.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_CBAMCOVERAGEGRAPHPANEL | |
ID_PANEL9 |
Definition at line 140 of file bam_coverage_graph_panel.hpp.
CBamCoverageGraphPanel::CBamCoverageGraphPanel | ( | ) |
Constructors.
CBamCoverageGraphPanel type definition
CBamCoverageGraphPanel event table definition
CBamCoverageGraphPanel constructors
Definition at line 84 of file bam_coverage_graph_panel.cpp.
References Init().
CBamCoverageGraphPanel::CBamCoverageGraphPanel | ( | wxWindow * | parent, |
wxWindowID | id = ID_CBAMCOVERAGEGRAPHPANEL , |
||
const wxString & | caption = _("Assembly Options") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 89 of file bam_coverage_graph_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CBamCoverageGraphPanel::~CBamCoverageGraphPanel | ( | ) |
Destructor.
CBamCoverageGraphPanel destructor
Definition at line 122 of file bam_coverage_graph_panel.cpp.
bool CBamCoverageGraphPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CBAMCOVERAGEGRAPHPANEL , |
||
const wxString & | caption = _("Assembly Options") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CBamCoverageGraphPanel creator
Definition at line 100 of file bam_coverage_graph_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CBamCoverageGraphPanel().
void CBamCoverageGraphPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Definition at line 151 of file bam_coverage_graph_panel.cpp.
References _, ID_PANEL9, m_AssemblyPanel, m_BamAssembly, and wxID_ANY.
Referenced by Create().
wxBitmap CBamCoverageGraphPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 245 of file bam_coverage_graph_panel.cpp.
wxIcon CBamCoverageGraphPanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Get icon resources
Definition at line 258 of file bam_coverage_graph_panel.cpp.
void CBamCoverageGraphPanel::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 133 of file bam_coverage_graph_panel.cpp.
References m_AssemblyPanel, m_BamAssembly, and NULL.
Referenced by CBamCoverageGraphPanel().
bool CBamCoverageGraphPanel::IsInputValid | ( | ) |
Definition at line 225 of file bam_coverage_graph_panel.cpp.
References m_AssemblyPanel, and CAssemblySelPanel::TransferDataFromWindow().
Referenced by CBamUILoadManager::DoTransition().
|
virtual |
Implements IRegSettings.
Definition at line 275 of file bam_coverage_graph_panel.cpp.
References CAssemblySelPanel::GetData(), CGuiRegistry::GetInstance(), CGuiRegistry::GetReadView(), kMappingAssembly, CMapAssemblyParams::LoadSettings(), m_AssemblyPanel, and m_RegPath.
Referenced by CBamUILoadManager::GetCurrentPanel(), and CBamUILoadManager::LoadSettings().
void CBamCoverageGraphPanel::OnIdle | ( | wxIdleEvent & | event | ) |
wxEVT_IDLE event handler for ID_CBAMCOVERAGEGRAPHPANEL
wxEVT_IDLE event handler for ID_CBAMCOVERAGEGRAPHPANEL
Definition at line 300 of file bam_coverage_graph_panel.cpp.
References job_future_base::IsComplete(), m_BamAssembly, m_BamAssemblyFuture, job_future_base::reset(), str(), ToWxString(), and wxT.
|
virtual |
Implements IRegSettings.
Definition at line 285 of file bam_coverage_graph_panel.cpp.
References CAssemblySelPanel::GetData(), CGuiRegistry::GetInstance(), CGuiRegistry::GetWriteView(), kMappingAssembly, m_AssemblyPanel, m_RegPath, and CMapAssemblyParams::SaveSettings().
Referenced by CBamUILoadManager::SaveSettings().
Definition at line 177 of file bam_coverage_graph_panel.cpp.
References ERR_POST, Error(), for(), NStr::fSplit_Tokenize, CBamRawDb::GetHeader(), CBamHeader::GetText(), if(), ICanceled::IsCanceled(), job_async(), m_BamAssemblyFuture, m_BamFiles, and NStr::Split().
Referenced by CBamUILoadManager::GetCurrentPanel().
Implements IRegSettings.
Definition at line 112 of file bam_coverage_graph_panel.hpp.
References m_RegPath.
Referenced by CBamUILoadManager::GetCurrentPanel().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 236 of file bam_coverage_graph_panel.cpp.
CAssemblySelPanel* CBamCoverageGraphPanel::m_AssemblyPanel |
Definition at line 138 of file bam_coverage_graph_panel.hpp.
Referenced by CreateControls(), CBamUILoadManager::DoTransition(), Init(), IsInputValid(), LoadSettings(), and SaveSettings().
wxStaticText* CBamCoverageGraphPanel::m_BamAssembly |
Definition at line 137 of file bam_coverage_graph_panel.hpp.
Referenced by CreateControls(), Init(), and OnIdle().
job_future<string> CBamCoverageGraphPanel::m_BamAssemblyFuture |
Definition at line 150 of file bam_coverage_graph_panel.hpp.
Referenced by OnIdle(), and SetBamFiles().
Definition at line 146 of file bam_coverage_graph_panel.hpp.
Referenced by SetBamFiles().
string CBamCoverageGraphPanel::m_RegPath |
Definition at line 148 of file bam_coverage_graph_panel.hpp.
Referenced by LoadSettings(), SaveSettings(), and SetRegistryPath().