NCBI C++ ToolKit
|
Search Toolkit Book for CSubPrepIntroPanel
#include <gui/packages/pkg_sequence_edit/subprepintropanel.hpp>
Public Member Functions | |
CSubPrepIntroPanel () | |
Constructors. More... | |
CSubPrepIntroPanel (wxWindow *parent, IWorkbench *workbench, wxWindowID id=10090, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=10090, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CSubPrepIntroPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnClickSubmitterSummary (wxMouseEvent &event) |
wxEVT_LEFT_DOWN event handler for wxID_STATIC More... | |
void | OnEditSubmitterInfoClicked (wxHyperlinkEvent &event) |
wxEVT_COMMAND_HYPERLINK event handler for ID_HYPERLINKCTRL5 More... | |
void | OnSubmissionTypeSelected (wxCommandEvent &event) |
wxEVT_COMMAND_LISTBOX_SELECTED event handler for ID_SUBMISSION_TYPE More... | |
void | OnIntroTextClickUrl (wxTextUrlEvent &event) |
wxEVT_COMMAND_TEXT_URL event handler for ID_INTRO_TEXT More... | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
void | RefreshSubmitterInfoStatus () |
CSourceRequirements::EWizardType | GetWizardTypeFromCtrl () |
void | SetWizardTypeCtrl () |
bool | IsComplete () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
wxStaticText * | m_StarSubmitter |
wxTextCtrl * | m_SubmitterLabel |
wxStaticText * | m_StarType |
wxListBox * | m_SubmissionType |
wxTextCtrl * | m_IntroText |
Private Member Functions | |
void | x_LaunchSubmitEditor () |
CSourceRequirements::EWizardType | x_GetWizardTypeFromSelection (int sel) |
CSubPrep_panel * | x_GetParent () |
void | x_SetSubmissionNotReady (string error) |
void | x_UpdateSubmitBlock (CRef< objects::CSubmit_block > new_block, CRef< objects::CCit_gen > new_gen, string alt_email) |
void | x_SetIntroText (CSourceRequirements::EWizardType wizard_type) |
Private Attributes | |
IWorkbench * | m_Workbench |
CSubPrepIntroPanel class declaration
Definition at line 81 of file subprepintropanel.hpp.
CSubPrepIntroPanel::CSubPrepIntroPanel | ( | ) |
Constructors.
CSubPrepIntroPanel type definition
CSubPrepIntroPanel event table definition
CSubPrepIntroPanel constructors
Definition at line 86 of file subprepintropanel.cpp.
References Init().
CSubPrepIntroPanel::CSubPrepIntroPanel | ( | wxWindow * | parent, |
IWorkbench * | workbench, | ||
wxWindowID | id = 10090 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 91 of file subprepintropanel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CSubPrepIntroPanel::~CSubPrepIntroPanel | ( | ) |
bool CSubPrepIntroPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = 10090 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CSubPrepIntroPanel creator
Definition at line 103 of file subprepintropanel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CSubPrepIntroPanel().
void CSubPrepIntroPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CSubPrepIntroPanel
Definition at line 150 of file subprepintropanel.cpp.
References _, GetWizardNameList(), ID_HYPERLINKCTRL5, ID_INTRO_TEXT, ID_SUBMISSION_TYPE, ITERATE, m_IntroText, m_StarSubmitter, m_StarType, m_SubmissionType, m_SubmitterLabel, NULL, OnClickSubmitterSummary(), ShowToolTips(), ToWxString(), and wxT.
Referenced by Create().
wxBitmap CSubPrepIntroPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 229 of file subprepintropanel.cpp.
wxIcon CSubPrepIntroPanel::GetIconResource | ( | const wxString & | name | ) |
CSourceRequirements::EWizardType CSubPrepIntroPanel::GetWizardTypeFromCtrl | ( | ) |
Definition at line 615 of file subprepintropanel.cpp.
References m_SubmissionType, and x_GetWizardTypeFromSelection().
Referenced by OnSubmissionTypeSelected(), and CSubPrep_panel::x_GetWizardTypeFromCtrl().
void CSubPrepIntroPanel::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 134 of file subprepintropanel.cpp.
References m_IntroText, m_StarSubmitter, m_StarType, m_SubmissionType, m_SubmitterLabel, and NULL.
Referenced by CSubPrepIntroPanel().
bool CSubPrepIntroPanel::IsComplete | ( | ) |
Definition at line 712 of file subprepintropanel.cpp.
References NStr::Equal(), kSubmitterInfoComplete, label, m_SubmissionType, m_SubmitterLabel, and ToStdString().
void CSubPrepIntroPanel::OnClickSubmitterSummary | ( | wxMouseEvent & | event | ) |
wxEVT_LEFT_DOWN event handler for wxID_STATIC
wxEVT_LEFT_DOWN event handler for wxID_STATIC
Definition at line 563 of file subprepintropanel.cpp.
References x_LaunchSubmitEditor().
Referenced by CreateControls().
void CSubPrepIntroPanel::OnEditSubmitterInfoClicked | ( | wxHyperlinkEvent & | event | ) |
wxEVT_COMMAND_HYPERLINK event handler for ID_HYPERLINKCTRL5
wxEVT_COMMAND_HYPERLINK event handler for ID_HYPERLINKCTRL5
Definition at line 573 of file subprepintropanel.cpp.
References x_LaunchSubmitEditor().
void CSubPrepIntroPanel::OnIntroTextClickUrl | ( | wxTextUrlEvent & | event | ) |
wxEVT_COMMAND_TEXT_URL event handler for ID_INTRO_TEXT
wxEVT_COMMAND_TEXT_URL event handler for ID_INTRO_TEXT
Definition at line 699 of file subprepintropanel.cpp.
References CAppPopup::PopupURL(), str(), and ToStdString().
void CSubPrepIntroPanel::OnSubmissionTypeSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_LISTBOX_SELECTED event handler for ID_SUBMISSION_TYPE
wxEVT_COMMAND_LISTBOX_SELECTED event handler for ID_SUBMISSION_TYPE
Definition at line 678 of file subprepintropanel.cpp.
References GetWizardTypeFromCtrl(), CSubPrep_panel::GetWizardTypeName(), m_StarType, m_SubmissionType, s_ShowStar(), CSubPrep_panel::SetWizardType(), ToWxString(), x_GetParent(), and x_SetIntroText().
void CSubPrepIntroPanel::RefreshSubmitterInfoStatus | ( | ) |
Definition at line 456 of file subprepintropanel.cpp.
References gen, CSubPrep_panel::GetAltEmailAddress(), CSubmitBlockDlg::GetBlockProblems(), CSubmitBlockDlg::GetCitGenProblems(), CSubPrep_panel::GetCitSubPub(), CSubPrep_panel::GetSubmitBlock(), NStr::IsBlank(), IsValidEmail(), kSubmitterInfoComplete, label, m_StarSubmitter, m_SubmitterLabel, s_ShowStar(), ToWxString(), x_GetParent(), and x_SetSubmissionNotReady().
Referenced by CSubPrep_panel::x_RefreshSubmitterInfoStatus().
void CSubPrepIntroPanel::SetWizardTypeCtrl | ( | ) |
Definition at line 653 of file subprepintropanel.cpp.
References CSubPrep_panel::GetWizardTypeField(), GetWizardTypeFromName(), NStr::IsBlank(), m_StarType, m_SubmissionType, s_ShowStar(), CSubPrep_panel::SetSubmissionNotReady(), ToWxString(), x_GetParent(), and x_SetIntroText().
Referenced by CSubPrep_panel::UpdateForSeqEntryChange().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 220 of file subprepintropanel.cpp.
Referenced by CreateControls().
|
private |
Definition at line 439 of file subprepintropanel.cpp.
References NULL.
Referenced by OnSubmissionTypeSelected(), RefreshSubmitterInfoStatus(), SetWizardTypeCtrl(), x_LaunchSubmitEditor(), x_SetSubmissionNotReady(), and x_UpdateSubmitBlock().
|
private |
Definition at line 579 of file subprepintropanel.cpp.
References CSourceRequirements::eWizardType_d_loop, CSourceRequirements::eWizardType_igs, CSourceRequirements::eWizardType_microsatellite, CSourceRequirements::eWizardType_rrna_its_igs, CSourceRequirements::eWizardType_standard, CSourceRequirements::eWizardType_tsa, CSourceRequirements::eWizardType_uncultured_samples, and CSourceRequirements::eWizardType_viruses.
Referenced by GetWizardTypeFromCtrl().
|
private |
Definition at line 500 of file subprepintropanel.cpp.
References done, NStr::Equal(), gen, CSubPrep_panel::GetAltEmailAddress(), CSubmitBlockDlg::GetAlternateEmailAddress(), CSubmitBlockDlg::GetCitGen(), CSubPrep_panel::GetCitSubPub(), CSubmitBlockDlg::GetErrors(), CSubmitBlockDlg::GetSubmitBlock(), CSubPrep_panel::GetSubmitBlock(), CSubPrep_panel::GetWizardField(), NStr::IsBlank(), IsValidEmail(), kReleaseDateConfirmed, m_Workbench, NULL, CRef< C, Locker >::Reset(), CSubmitBlockDlg::SetAlternateEmailAddress(), CSubmitBlockDlg::SetPageForError(), ToWxString(), CSubmitBlockDlg::UnselectReleaseDateChoice(), wxT, x_GetParent(), and x_UpdateSubmitBlock().
Referenced by OnClickSubmitterSummary(), and OnEditSubmitterInfoClicked().
|
private |
Definition at line 621 of file subprepintropanel.cpp.
References CSourceRequirements::eWizardType_d_loop, CSourceRequirements::eWizardType_igs, CSourceRequirements::eWizardType_microsatellite, CSourceRequirements::eWizardType_rrna_its_igs, CSourceRequirements::eWizardType_standard, CSourceRequirements::eWizardType_tsa, CSourceRequirements::eWizardType_uncultured_samples, CSourceRequirements::eWizardType_viruses, m_IntroText, s_DefaultIntroText, s_DLoopIntroText, s_IGSIntroText, s_MicrosatelliteIntroText, s_rRNA_ITS_IGSIntroText, s_TSAIntroText, s_UnculturedSamplesIntroText, s_VectorScreenText, and s_VirusesIntroText.
Referenced by OnSubmissionTypeSelected(), and SetWizardTypeCtrl().
|
private |
Definition at line 411 of file subprepintropanel.cpp.
References CSubPrep_panel::SetSubmissionNotReady(), and x_GetParent().
Referenced by RefreshSubmitterInfoStatus().
|
private |
Definition at line 420 of file subprepintropanel.cpp.
References CSubPrep_panel::UpdateSubmitBlock(), and x_GetParent().
Referenced by x_LaunchSubmitEditor().
wxTextCtrl* CSubPrepIntroPanel::m_IntroText |
Definition at line 136 of file subprepintropanel.hpp.
Referenced by CreateControls(), Init(), and x_SetIntroText().
wxStaticText* CSubPrepIntroPanel::m_StarSubmitter |
Definition at line 132 of file subprepintropanel.hpp.
Referenced by CreateControls(), Init(), and RefreshSubmitterInfoStatus().
wxStaticText* CSubPrepIntroPanel::m_StarType |
Definition at line 134 of file subprepintropanel.hpp.
Referenced by CreateControls(), Init(), OnSubmissionTypeSelected(), and SetWizardTypeCtrl().
wxListBox* CSubPrepIntroPanel::m_SubmissionType |
Definition at line 135 of file subprepintropanel.hpp.
Referenced by CreateControls(), GetWizardTypeFromCtrl(), Init(), IsComplete(), OnSubmissionTypeSelected(), and SetWizardTypeCtrl().
wxTextCtrl* CSubPrepIntroPanel::m_SubmitterLabel |
Definition at line 133 of file subprepintropanel.hpp.
Referenced by CreateControls(), Init(), IsComplete(), and RefreshSubmitterInfoStatus().
|
private |
Definition at line 146 of file subprepintropanel.hpp.
Referenced by x_LaunchSubmitEditor().