NCBI C++ ToolKit
|
Search Toolkit Book for CBulkLocationPanel
#include <gui/packages/pkg_sequence_edit/bulk_location_panel.hpp>
Public Types | |
enum | { ID_CBULKLOCATIONPANEL = 6410 , ID_BULKLOC_CHCKBOX1 = 6411 , ID_BULKLOC_CHCKBOX2 = 6412 , ID_BULKLOC_RBOX = 6413 , ID_BULKLOC_RBTN1 = 6414 , ID_BULKLOC_RBTN2 = 6415 , ID_BULKLOC_TEXTCTRL1 = 6416 , ID_BULKLOC_TEXTCTRL2 = 6417 , ID_BULKLOC_CHCKBOX3 = 6418 } |
Control identifiers. More... | |
Public Member Functions | |
CBulkLocationPanel () | |
Constructors. More... | |
CBulkLocationPanel (wxWindow *parent, wxWindowID id=ID_CBULKLOCATIONPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 500), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CBULKLOCATIONPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 500), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CBulkLocationPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnBulklocRbtn1Selected (wxCommandEvent &event) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_BULKLOC_RBTN1 More... | |
void | OnBulklocRbtn2Selected (wxCommandEvent &event) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_BULKLOC_RBTN2 More... | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
CRef< objects::CSeq_loc > | GetLocForBioseq (const objects::CBioseq &bioseq) |
bool | ShouldAddToExisting () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
wxCheckBox * | m_Partial5 |
wxCheckBox * | m_Partial3 |
wxRadioBox * | m_Strand |
wxRadioButton * | m_WholeSeq |
wxRadioButton * | m_Coordinates |
wxTextCtrl * | m_From |
wxTextCtrl * | m_To |
wxCheckBox * | m_AddToExisting |
CBulkLocationPanel class declaration
Definition at line 74 of file bulk_location_panel.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_CBULKLOCATIONPANEL | |
ID_BULKLOC_CHCKBOX1 | |
ID_BULKLOC_CHCKBOX2 | |
ID_BULKLOC_RBOX | |
ID_BULKLOC_RBTN1 | |
ID_BULKLOC_RBTN2 | |
ID_BULKLOC_TEXTCTRL1 | |
ID_BULKLOC_TEXTCTRL2 | |
ID_BULKLOC_CHCKBOX3 |
Definition at line 128 of file bulk_location_panel.hpp.
CBulkLocationPanel::CBulkLocationPanel | ( | ) |
Constructors.
CBulkLocationPanel type definition
CBulkLocationPanel event table definition
CBulkLocationPanel constructors
Definition at line 74 of file bulk_location_panel.cpp.
References Init().
CBulkLocationPanel::CBulkLocationPanel | ( | wxWindow * | parent, |
wxWindowID | id = ID_CBULKLOCATIONPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 500) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 79 of file bulk_location_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CBulkLocationPanel::~CBulkLocationPanel | ( | ) |
bool CBulkLocationPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CBULKLOCATIONPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 500) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CBulkLocationPanel creator
Definition at line 90 of file bulk_location_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CBulkLocationPanel().
void CBulkLocationPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CBulkLocationPanel
Definition at line 140 of file bulk_location_panel.cpp.
References _, ID_BULKLOC_CHCKBOX1, ID_BULKLOC_CHCKBOX2, ID_BULKLOC_CHCKBOX3, ID_BULKLOC_RBOX, ID_BULKLOC_RBTN1, ID_BULKLOC_RBTN2, ID_BULKLOC_TEXTCTRL1, ID_BULKLOC_TEXTCTRL2, m_AddToExisting, m_Coordinates, m_From, m_Partial3, m_Partial5, m_Strand, m_To, and m_WholeSeq.
Referenced by Create().
wxBitmap CBulkLocationPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 223 of file bulk_location_panel.cpp.
wxIcon CBulkLocationPanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Get icon resources
Definition at line 236 of file bulk_location_panel.cpp.
Definition at line 268 of file bulk_location_panel.cpp.
References abs, eExtreme_Biological, eGetId_Best, CInt_fuzz_Base::eLim_tr, ctll::empty(), eNa_strand_minus, NStr::EndsWith(), Error(), GetId(), CBioseq::GetLength(), CException::GetMsg(), CSeq_id_Handle::GetSeqId(), NStr::IsBlank(), LOG_POST, m_Coordinates, m_From, m_Partial3, m_Partial5, m_Strand, m_To, max(), CSeq_point_Base::SetFuzz(), CSeq_point_Base::SetId(), CSeq_loc::SetInt(), CSeq_loc::SetPartialStart(), CSeq_loc::SetPartialStop(), CSeq_loc::SetPnt(), CSeq_point_Base::SetPoint(), CSeq_point_Base::SetStrand(), NStr::StartsWith(), NStr::StringToInt(), swap(), ToStdString(), NStr::TrimPrefixInPlace(), NStr::TrimSuffixInPlace(), val, and CException::what().
Referenced by CBulkCmdPanel::GetLocForBioseq().
void CBulkLocationPanel::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 121 of file bulk_location_panel.cpp.
References m_AddToExisting, m_Coordinates, m_From, m_Partial3, m_Partial5, m_Strand, m_To, m_WholeSeq, and NULL.
Referenced by CBulkLocationPanel().
void CBulkLocationPanel::OnBulklocRbtn1Selected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_BULKLOC_RBTN1
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBUTTON2
Definition at line 250 of file bulk_location_panel.cpp.
void CBulkLocationPanel::OnBulklocRbtn2Selected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_BULKLOC_RBTN2
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBUTTON3
Definition at line 261 of file bulk_location_panel.cpp.
|
inline |
Definition at line 142 of file bulk_location_panel.hpp.
References m_AddToExisting.
Referenced by CBulkCmdPanel::ShouldAddToExisting().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 214 of file bulk_location_panel.cpp.
wxCheckBox* CBulkLocationPanel::m_AddToExisting |
Definition at line 126 of file bulk_location_panel.hpp.
Referenced by CreateControls(), Init(), and ShouldAddToExisting().
wxRadioButton* CBulkLocationPanel::m_Coordinates |
Definition at line 123 of file bulk_location_panel.hpp.
Referenced by CreateControls(), GetLocForBioseq(), and Init().
wxTextCtrl* CBulkLocationPanel::m_From |
Definition at line 124 of file bulk_location_panel.hpp.
Referenced by CreateControls(), GetLocForBioseq(), Init(), OnBulklocRbtn1Selected(), and OnBulklocRbtn2Selected().
wxCheckBox* CBulkLocationPanel::m_Partial3 |
Definition at line 120 of file bulk_location_panel.hpp.
Referenced by CreateControls(), GetLocForBioseq(), and Init().
wxCheckBox* CBulkLocationPanel::m_Partial5 |
Definition at line 119 of file bulk_location_panel.hpp.
Referenced by CreateControls(), GetLocForBioseq(), and Init().
wxRadioBox* CBulkLocationPanel::m_Strand |
Definition at line 121 of file bulk_location_panel.hpp.
Referenced by CreateControls(), GetLocForBioseq(), and Init().
wxTextCtrl* CBulkLocationPanel::m_To |
Definition at line 125 of file bulk_location_panel.hpp.
Referenced by CreateControls(), GetLocForBioseq(), Init(), OnBulklocRbtn1Selected(), and OnBulklocRbtn2Selected().
wxRadioButton* CBulkLocationPanel::m_WholeSeq |
Definition at line 122 of file bulk_location_panel.hpp.
Referenced by CreateControls(), and Init().