NCBI C++ ToolKit
|
Search Toolkit Book for CProSplignPanel
#include <gui/packages/pkg_alignment/prosplign_panel.hpp>
Public Member Functions | |
CProSplignPanel () | |
CProSplignPanel (wxWindow *parent, wxWindowID id=ID_CPROSPLIGNPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL, bool visible=true) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CPROSPLIGNPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL, bool visible=true) |
~CProSplignPanel () | |
void | Init () |
void | CreateControls () |
void | OnRefineAlignmentClick (wxCommandEvent &event) |
bool | TransferDataFromWindow () |
bool | TransferDataToWindow () |
CProSplignParams & | GetNCData () |
const CProSplignParams & | GetData () const |
void | SetData (const CProSplignParams &data) |
SConstScopedObject | GetProteinSeq () const |
TConstScopedObjects | GetNucleotideSeqs () const |
void | SetObjects (map< string, TConstScopedObjects > *protein, map< string, TConstScopedObjects > *nucleotide) |
wxBitmap | GetBitmapResource (const wxString &name) |
wxIcon | GetIconResource (const wxString &name) |
IRegSettings interface implementation | |
virtual void | SetRegistryPath (const string &path) |
CAlgoToolManagerParamsPanel. More... | |
virtual void | LoadSettings () |
virtual void | SaveSettings () const |
override in derived classes More... | |
CAlgoToolManagerParamsPanel implementation | |
void | RestoreDefaults () |
override in derived classes More... | |
IRegSettings interface implementation | |
Public Member Functions inherited from IRegSettings | |
virtual | ~IRegSettings () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Private Types | |
enum | { ID_CPROSPLIGNPANEL = 10090 , ID_PROSPLIGN_PANEL1 = 10091 , ID_PROSPLIGN_PANEL2 = 10092 , ID_PROSPLIGN_NOTEBOOK = 10093 , ID_PROSPLIGN_PANEL3 = 10094 , ID_PROSPLIGN_CHOICE1 = 10095 , ID_PROSPLIGN_CHCKBX1 = 10096 , ID_PROSPLIGN_TXTCTRL1 = 10097 , ID_PROSPLIGN_TXTCTRL2 = 10098 , ID_PROSPLIGN_TXTCTRL3 = 10099 , ID_PROSPLIGN_CHOICE2 = 10100 , ID_PROSPLIGN_PANEL4 = 10101 , ID_PROSPLIGN_CHCKBX2 = 10102 , ID_PROSPLIGN_CHCKBX3 = 10103 , ID_PROSPLIGN_CHCKBX4 = 10104 , ID_PROSPLIGN_TXTCTRL4 = 10105 , ID_PROSPLIGN_TXTCTRL5 = 10106 , ID_PROSPLIGN_TXTCTRL6 = 10107 , ID_PROSPLIGN_TXTCTRL7 = 10108 , ID_PROSPLIGN_TXTCTRL8 = 10109 , ID_PROSPLIGN_TXTCTRL9 = 10110 } |
Private Member Functions | |
void | x_ListGeneticCodes () |
void | x_EnableRefinementOptions (bool enable) |
Private Attributes | |
CObjectListWidgetSel * | m_ProteinList |
CObjectListWidgetSel * | m_NucleotideList |
SConstScopedObject | m_ProteinSeq |
TConstScopedObjects | m_NucleotideSeqs |
CProSplignParams | m_Data |
string | m_RegPath |
CMolTypeValidator | m_ProteinListAccValidator |
CMolTypeValidator | m_NucleotideListAccValidator |
wxString | m_FrameshiftCostStr |
wxString | m_GapOpenCostStr |
wxString | m_GapExtendCostStr |
long | m_TotalPosL |
long | m_FlankPosL |
long | m_MinGoodLenL |
long | m_MinExonIdentL |
long | m_MinExonPosL |
long | m_MinFlankExonLenL |
Additional Inherited Members | |
Protected Attributes inherited from CAlgoToolManagerParamsPanel | |
string | m_RegPath |
registry path to the settings More... | |
CProSplignPanel class declaration
Definition at line 62 of file prosplign_panel.hpp.
|
private |
Definition at line 136 of file prosplign_panel.hpp.
CProSplignPanel::CProSplignPanel | ( | ) |
Definition at line 66 of file prosplign_panel.cpp.
References Init().
CProSplignPanel::CProSplignPanel | ( | wxWindow * | parent, |
wxWindowID | id = ID_CPROSPLIGNPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL , |
||
bool | visible = true |
||
) |
Definition at line 73 of file prosplign_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CProSplignPanel::~CProSplignPanel | ( | ) |
Definition at line 101 of file prosplign_panel.cpp.
bool CProSplignPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CPROSPLIGNPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL , |
||
bool | visible = true |
||
) |
Definition at line 81 of file prosplign_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CProSplignPanel().
void CProSplignPanel::CreateControls | ( | ) |
Definition at line 122 of file prosplign_panel.cpp.
References _, ID_PROSPLIGN_CHCKBX1, ID_PROSPLIGN_CHCKBX2, ID_PROSPLIGN_CHCKBX3, ID_PROSPLIGN_CHCKBX4, ID_PROSPLIGN_CHOICE1, ID_PROSPLIGN_CHOICE2, ID_PROSPLIGN_NOTEBOOK, ID_PROSPLIGN_PANEL1, ID_PROSPLIGN_PANEL2, ID_PROSPLIGN_PANEL3, ID_PROSPLIGN_PANEL4, ID_PROSPLIGN_TXTCTRL1, ID_PROSPLIGN_TXTCTRL2, ID_PROSPLIGN_TXTCTRL3, ID_PROSPLIGN_TXTCTRL4, ID_PROSPLIGN_TXTCTRL5, ID_PROSPLIGN_TXTCTRL6, ID_PROSPLIGN_TXTCTRL7, ID_PROSPLIGN_TXTCTRL8, ID_PROSPLIGN_TXTCTRL9, m_Data, m_FlankPosL, m_FrameshiftCostStr, m_GapExtendCostStr, m_GapOpenCostStr, CProSplignParams::m_GeneticCode, m_MinExonIdentL, m_MinExonPosL, m_MinFlankExonLenL, m_MinGoodLenL, m_NucleotideList, m_NucleotideListAccValidator, m_ProteinList, m_ProteinListAccValidator, CProSplignParams::m_RefineAlignment, CProSplignParams::m_RemoveFlanks, CProSplignParams::m_RemoveNs, CProSplignParams::m_Strand, m_TotalPosL, CProSplignParams::m_WithIntrons, CObjectListWidgetSel::SetAccessionValidator(), CObjectListWidgetSel::SetTitle(), sGetWarningMsg(), wxT, and x_ListGeneticCodes().
Referenced by Create().
wxBitmap CProSplignPanel::GetBitmapResource | ( | const wxString & | name | ) |
Definition at line 430 of file prosplign_panel.cpp.
|
inline |
Definition at line 109 of file prosplign_panel.hpp.
References m_Data.
Referenced by CProSplignTool::x_CreateLoadingJob().
wxIcon CProSplignPanel::GetIconResource | ( | const wxString & | name | ) |
Definition at line 438 of file prosplign_panel.cpp.
|
inline |
Definition at line 108 of file prosplign_panel.hpp.
References m_Data.
Referenced by RestoreDefaults().
|
inline |
Definition at line 113 of file prosplign_panel.hpp.
References m_NucleotideSeqs.
Referenced by CProSplignTool::x_CreateLoadingJob().
|
inline |
Definition at line 112 of file prosplign_panel.hpp.
References m_ProteinSeq.
Referenced by CProSplignTool::x_CreateLoadingJob().
void CProSplignPanel::Init | ( | void | ) |
Definition at line 107 of file prosplign_panel.cpp.
References m_NucleotideList, m_ProteinList, and NULL.
Referenced by CProSplignPanel().
|
virtual |
Implements CAlgoToolManagerParamsPanel.
Definition at line 414 of file prosplign_panel.cpp.
References CObjectListWidgetSel::LoadSettings(), m_NucleotideList, and m_ProteinList.
Referenced by CProSplignTool::x_CreateParamsPanelIfNeeded().
void CProSplignPanel::OnRefineAlignmentClick | ( | wxCommandEvent & | event | ) |
Definition at line 334 of file prosplign_panel.cpp.
References x_EnableRefinementOptions().
|
virtual |
override in derived classes
Restores the default options for the panel
Implements CAlgoToolManagerParamsPanel.
Definition at line 420 of file prosplign_panel.cpp.
References GetNCData(), CProSplignParams::Init(), and TransferDataToWindow().
|
virtual |
override in derived classes
Implements CAlgoToolManagerParamsPanel.
Definition at line 408 of file prosplign_panel.cpp.
References m_NucleotideList, m_ProteinList, and CObjectListWidgetSel::SaveSettings().
|
inline |
Definition at line 110 of file prosplign_panel.hpp.
Referenced by CProSplignTool::x_CreateParamsPanelIfNeeded().
void CProSplignPanel::SetObjects | ( | map< string, TConstScopedObjects > * | protein, |
map< string, TConstScopedObjects > * | nucleotide | ||
) |
Definition at line 326 of file prosplign_panel.cpp.
References m_NucleotideList, m_ProteinList, and CObjectListWidgetSel::SetObjects().
Referenced by CProSplignTool::x_CreateParamsPanelIfNeeded().
Reimplemented from CAlgoToolManagerParamsPanel.
Definition at line 401 of file prosplign_panel.cpp.
References kNucleotideList, kProteinList, m_NucleotideList, m_ProteinList, m_RegPath, and CObjectListWidgetSel::SetRegistryPath().
Referenced by CProSplignTool::x_CreateParamsPanelIfNeeded().
|
static |
Definition at line 426 of file prosplign_panel.cpp.
bool CProSplignPanel::TransferDataFromWindow | ( | ) |
Definition at line 373 of file prosplign_panel.cpp.
References CObjectListWidgetSel::GetSelection(), m_Data, CProSplignParams::m_FlankPositives, m_FlankPosL, CProSplignParams::m_FrameshiftCost, m_FrameshiftCostStr, CProSplignParams::m_GapExtendCost, m_GapExtendCostStr, CProSplignParams::m_GapOpenCost, m_GapOpenCostStr, CProSplignParams::m_MinExonIdentity, m_MinExonIdentL, CProSplignParams::m_MinExonPositives, m_MinExonPosL, m_MinFlankExonLenL, CProSplignParams::m_MinFlankingExonLength, CProSplignParams::m_MinGoodLength, m_MinGoodLenL, m_NucleotideList, m_NucleotideSeqs, m_ProteinList, m_ProteinSeq, CProSplignParams::m_TotalPositives, m_TotalPosL, NStr::StringToInt(), and ToStdString().
bool CProSplignPanel::TransferDataToWindow | ( | ) |
Definition at line 354 of file prosplign_panel.cpp.
References m_Data, CProSplignParams::m_FlankPositives, m_FlankPosL, CProSplignParams::m_FrameshiftCost, m_FrameshiftCostStr, CProSplignParams::m_GapExtendCost, m_GapExtendCostStr, CProSplignParams::m_GapOpenCost, m_GapOpenCostStr, CProSplignParams::m_MinExonIdentity, m_MinExonIdentL, CProSplignParams::m_MinExonPositives, m_MinExonPosL, m_MinFlankExonLenL, CProSplignParams::m_MinFlankingExonLength, CProSplignParams::m_MinGoodLength, m_MinGoodLenL, CProSplignParams::m_RefineAlignment, CProSplignParams::m_TotalPositives, m_TotalPosL, NStr::NumericToString(), ToWxString(), and x_EnableRefinementOptions().
Referenced by RestoreDefaults().
|
private |
Definition at line 339 of file prosplign_panel.cpp.
References ID_PROSPLIGN_CHCKBX3, ID_PROSPLIGN_CHCKBX4, ID_PROSPLIGN_TXTCTRL4, ID_PROSPLIGN_TXTCTRL5, ID_PROSPLIGN_TXTCTRL6, ID_PROSPLIGN_TXTCTRL7, ID_PROSPLIGN_TXTCTRL8, ID_PROSPLIGN_TXTCTRL9, and val.
Referenced by OnRefineAlignmentClick(), and TransferDataToWindow().
|
private |
Definition at line 306 of file prosplign_panel.cpp.
References CBLASTParams::GetGeneticCodeLabels(), ID_PROSPLIGN_CHOICE2, and ToWxString().
Referenced by CreateControls().
|
private |
Definition at line 134 of file prosplign_panel.hpp.
Referenced by CreateControls(), GetData(), GetNCData(), SetData(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 170 of file prosplign_panel.hpp.
Referenced by CreateControls(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 165 of file prosplign_panel.hpp.
Referenced by CreateControls(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 167 of file prosplign_panel.hpp.
Referenced by CreateControls(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 166 of file prosplign_panel.hpp.
Referenced by CreateControls(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 172 of file prosplign_panel.hpp.
Referenced by CreateControls(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 173 of file prosplign_panel.hpp.
Referenced by CreateControls(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 174 of file prosplign_panel.hpp.
Referenced by CreateControls(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 171 of file prosplign_panel.hpp.
Referenced by CreateControls(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 130 of file prosplign_panel.hpp.
Referenced by CreateControls(), Init(), LoadSettings(), SaveSettings(), SetObjects(), SetRegistryPath(), and TransferDataFromWindow().
|
private |
Definition at line 163 of file prosplign_panel.hpp.
Referenced by CreateControls().
|
private |
Definition at line 133 of file prosplign_panel.hpp.
Referenced by GetNucleotideSeqs(), and TransferDataFromWindow().
|
private |
Definition at line 129 of file prosplign_panel.hpp.
Referenced by CreateControls(), Init(), LoadSettings(), SaveSettings(), SetObjects(), SetRegistryPath(), and TransferDataFromWindow().
|
private |
Definition at line 162 of file prosplign_panel.hpp.
Referenced by CreateControls().
|
private |
Definition at line 132 of file prosplign_panel.hpp.
Referenced by GetProteinSeq(), and TransferDataFromWindow().
|
private |
Definition at line 160 of file prosplign_panel.hpp.
Referenced by SetRegistryPath().
|
private |
Definition at line 169 of file prosplign_panel.hpp.
Referenced by CreateControls(), TransferDataFromWindow(), and TransferDataToWindow().