NCBI C++ ToolKit
|
Search Toolkit Book for CSubmitBlockDlg
#include <gui/packages/pkg_sequence_edit/submitblockdlg.hpp>
Public Member Functions | |
CSubmitBlockDlg () | |
Constructors. More... | |
CSubmitBlockDlg (wxWindow *parent, CRef< objects::CSubmit_block > block, CRef< objects::CCit_gen > gen, IWorkbench *workbench, wxWindowID id=10015, const wxString &caption=_("Submission Information"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=10015, const wxString &caption=_("Submission Information"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) |
Creation. More... | |
~CSubmitBlockDlg () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnSubmitblockdlgPageChanged (wxNotebookEvent &event) |
wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED event handler for ID_SUBMITBLOCKDLGLISTBOOK More... | |
void | OnClearBtnClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CLEAR_BTN More... | |
void | OnBackBtnClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON15 More... | |
void | OnNextBtnClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON14 More... | |
void | OnImportBtnClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_IMPORT_BTN More... | |
void | OnExportBtnClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EXPORT_BTN More... | |
void | OnSeparateAuthorsClick (wxCommandEvent &event) |
void | OnCopySeqAuthToManAuthClick (wxCommandEvent &event) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
void | SetAlternateEmailAddress (string alt_email) |
CRef< objects::CSubmit_block > | GetSubmitBlock () |
CRef< objects::CCit_gen > | GetCitGen () |
string | GetAlternateEmailAddress () |
string | GetErrors () |
void | SetPageForError (string errors) |
void | UnselectReleaseDateChoice () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
static string | GetBlockProblems (CRef< objects::CSubmit_block > block) |
static string | GetCitGenProblems (CRef< objects::CCit_gen > gen) |
Public Attributes | |
wxBoxSizer * | m_Updatable |
wxNotebook * | m_Book |
wxBoxSizer * | m_SameAuthSizer |
wxButton * | m_BackBtn |
wxButton * | m_NextBtn |
Private Member Functions | |
bool | x_CopyAuthors () |
void | x_BuildPages () |
CRef< objects::CSubmit_block > | x_CreateBlock () |
CRef< objects::CCit_gen > | x_CreateCitGen () |
Private Attributes | |
CRef< objects::CSubmit_block > | m_SubmitBlock |
CRef< objects::CCit_gen > | m_Gen |
CReleaseDatePanel * | m_ReleaseDatePanel |
CAuthorNamesPanel * | m_SequenceAuthorsPanel |
CAuthorAffiliationPanel * | m_AffilPanel |
CContactPanel * | m_ContactPanel |
CAuthorNamesPanel * | m_ManAuthorsPanel |
CUnpublishedPanel * | m_UnpublishedPanel |
wxTextCtrl * | m_AlternateEmail |
wxCheckBox * | m_AuthorsSame |
wxCheckBox * | m_AffilsSame |
wxButton * | m_CopySeqAuthToManAuth |
IWorkbench * | m_Workbench |
wxString | m_SaveFileDir |
wxString | m_SaveFileName |
CSubmitBlockDlg class declaration
Definition at line 96 of file submitblockdlg.hpp.
CSubmitBlockDlg::CSubmitBlockDlg | ( | ) |
Constructors.
CSubmitBlockDlg type definition
CSubmitBlockDlg event table definition
CSubmitBlockDlg constructors
Definition at line 106 of file submitblockdlg.cpp.
References Init().
CSubmitBlockDlg::CSubmitBlockDlg | ( | wxWindow * | parent, |
CRef< objects::CSubmit_block > | block, | ||
CRef< objects::CCit_gen > | gen, | ||
IWorkbench * | workbench, | ||
wxWindowID | id = 10015 , |
||
const wxString & | caption = _("Submission Information") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 111 of file submitblockdlg.cpp.
References Create(), gen, Init(), m_Gen, m_SubmitBlock, and ncbi::grid::netcache::search::fields::size.
CSubmitBlockDlg::~CSubmitBlockDlg | ( | ) |
bool CSubmitBlockDlg::Create | ( | wxWindow * | parent, |
wxWindowID | id = 10015 , |
||
const wxString & | caption = _("Submission Information") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Creation.
SubmitBlockDlg creator
Definition at line 133 of file submitblockdlg.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CSubmitBlockDlg().
void CSubmitBlockDlg::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for SubmitBlockDlg
Definition at line 456 of file submitblockdlg.cpp.
References _, ID_BUTTON14, ID_BUTTON15, ID_CLEAR_BTN, ID_EXPORT_BTN, ID_IMPORT_BTN, ID_SUBMITBLOCKDLGLISTBOOK, m_BackBtn, m_Book, m_NextBtn, m_SameAuthSizer, m_Updatable, and x_BuildPages().
Referenced by Create().
string CSubmitBlockDlg::GetAlternateEmailAddress | ( | ) |
Definition at line 1009 of file submitblockdlg.cpp.
References m_AlternateEmail, and ToAsciiStdString().
Referenced by CSubPrepIntroPanel::x_LaunchSubmitEditor().
wxBitmap CSubmitBlockDlg::GetBitmapResource | ( | const wxString & | name | ) |
Definition at line 707 of file submitblockdlg.cpp.
References CTime::eCurrent, NStr::IsBlank(), IsValidEmail(), kAffilMissing, kAllSubmitMissing, kCityMissing, kContactMissing, kCountryMissing, kEmailMissing, kInvalidEmail, kSequenceAuthorsMissing, and s_AuthListEmpty().
Referenced by GetErrors(), GetSubmitBlock(), and CSubPrepIntroPanel::RefreshSubmitterInfoStatus().
CRef< objects::CCit_gen > CSubmitBlockDlg::GetCitGen | ( | ) |
Definition at line 989 of file submitblockdlg.cpp.
References ctll::empty(), gen, GetCitGenProblems(), NStr::IsBlank(), and x_CreateCitGen().
Referenced by OnExportBtnClick(), and CSubPrepIntroPanel::x_LaunchSubmitEditor().
Definition at line 949 of file submitblockdlg.cpp.
References gen, NStr::IsBlank(), kAffilMissing, kAllCitGenMissing, kManuscriptAuthorsMissing, kTitleMissing, and s_AuthListEmpty().
Referenced by GetCitGen(), GetErrors(), and CSubPrepIntroPanel::RefreshSubmitterInfoStatus().
string CSubmitBlockDlg::GetErrors | ( | void | ) |
Definition at line 1016 of file submitblockdlg.cpp.
References gen, GetBlockProblems(), GetCitGenProblems(), CReleaseDatePanel::GetProblems(), NStr::IsBlank(), m_ReleaseDatePanel, x_CreateBlock(), and x_CreateCitGen().
Referenced by OnExportBtnClick(), and CSubPrepIntroPanel::x_LaunchSubmitEditor().
wxIcon CSubmitBlockDlg::GetIconResource | ( | const wxString & | name | ) |
CRef< objects::CSubmit_block > CSubmitBlockDlg::GetSubmitBlock | ( | ) |
Definition at line 888 of file submitblockdlg.cpp.
References ctll::empty(), GetBlockProblems(), CReleaseDatePanel::GetProblems(), NStr::IsBlank(), m_ReleaseDatePanel, and x_CreateBlock().
Referenced by OnExportBtnClick(), and CSubPrepIntroPanel::x_LaunchSubmitEditor().
void CSubmitBlockDlg::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 165 of file submitblockdlg.cpp.
References m_BackBtn, m_Book, m_ManAuthorsPanel, m_NextBtn, m_SameAuthSizer, m_Updatable, and NULL.
Referenced by CSubmitBlockDlg().
void CSubmitBlockDlg::OnBackBtnClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON15
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON15
Definition at line 1075 of file submitblockdlg.cpp.
References m_Book.
void CSubmitBlockDlg::OnClearBtnClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CLEAR_BTN
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CLEAR_BTN
Definition at line 1337 of file submitblockdlg.cpp.
References ePageAffil, ePageContact, ePageDate, ePageManAuth, ePageSequenceAuth, ePageTitle, kEmptyStr, m_AffilPanel, m_AlternateEmail, m_Book, m_ContactPanel, m_Gen, m_ManAuthorsPanel, m_ReleaseDatePanel, m_SequenceAuthorsPanel, m_SubmitBlock, m_UnpublishedPanel, NULL, CRef< C, Locker >::Reset(), CAuthorAffiliationPanel::SetAffil(), CAuthorNamesPanel::SetAuthors(), CUnpublishedPanel::SetTitle(), CAuthorAffiliationPanel::TransferDataToWindow(), CContactPanel::TransferDataToWindow(), CReleaseDatePanel::TransferDataToWindow(), and CReleaseDatePanel::UnselectReleaseDateChoice().
void CSubmitBlockDlg::OnCopySeqAuthToManAuthClick | ( | wxCommandEvent & | event | ) |
Definition at line 1120 of file submitblockdlg.cpp.
References m_Gen, m_ManAuthorsPanel, m_SequenceAuthorsPanel, CAuthorNamesPanel::PopulateAuthors(), CAuthorNamesPanel::SetAuthors(), and CAuthorNamesPanel::TransferDataFromWindow().
void CSubmitBlockDlg::OnExportBtnClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EXPORT_BTN
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EXPORT_BTN
Definition at line 1253 of file submitblockdlg.cpp.
References gen, GetAsnSqnExtensions(), GetCitGen(), CFileExtensions::GetDialogFilter(), GetErrors(), CRef< C, Locker >::GetPointer(), GetSubmitBlock(), NStr::IsBlank(), CFileExtensions::kAllFiles, m_AlternateEmail, m_SaveFileDir, m_SaveFileName, MakeBankItSubmissionObject(), MSerial_AsnText, out(), SetUserAlternateEmailAddress(), ToAsciiStdString(), and wxT.
void CSubmitBlockDlg::OnImportBtnClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_IMPORT_BTN
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_IMPORT_BTN
Definition at line 1133 of file submitblockdlg.cpp.
References CTime::eCurrent, GetDescAlternateEmailAddress(), COpenObjectsDlg::GetObjectLoader(), CRef< C, Locker >::GetPointer(), GUI_AsyncExecUnit(), ID_SUBMITBLOCKDLGLISTBOOK, IsBankItSubmissionObject(), ITERATE, m_AffilPanel, m_AffilsSame, m_AlternateEmail, m_AuthorsSame, m_Book, m_ContactPanel, m_Gen, m_ManAuthorsPanel, m_ReleaseDatePanel, m_SameAuthSizer, m_SequenceAuthorsPanel, m_SubmitBlock, m_UnpublishedPanel, m_Updatable, NULL, IExecuteUnit::PostExecute(), IExecuteUnit::PreExecute(), CRef< C, Locker >::Reset(), COpenObjectsDlg::SetManagers(), CDialog::SetRegistryPath(), ToWxString(), wxT, x_BuildPages(), and x_CreateBlock().
void CSubmitBlockDlg::OnNextBtnClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON14
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON14
Definition at line 1088 of file submitblockdlg.cpp.
References m_Book.
void CSubmitBlockDlg::OnSeparateAuthorsClick | ( | wxCommandEvent & | event | ) |
Definition at line 1097 of file submitblockdlg.cpp.
References m_AuthorsSame, m_Book, m_CopySeqAuthToManAuth, m_Gen, m_ManAuthorsPanel, NULL, CAuthorNamesPanel::SetAuthors(), CAuthorNamesPanel::TransferDataToWindow(), and wxT.
void CSubmitBlockDlg::OnSubmitblockdlgPageChanged | ( | wxNotebookEvent & | event | ) |
wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED event handler for ID_SUBMITBLOCKDLGLISTBOOK
wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED event handler for ID_SUBMITBLOCKDLGLISTBOOK
Definition at line 1045 of file submitblockdlg.cpp.
References m_BackBtn, m_Book, m_ContactPanel, m_NextBtn, m_SequenceAuthorsPanel, m_SubmitBlock, CAuthorNamesPanel::PopulateAuthors(), CAuthorNamesPanel::TransferDataFromWindow(), CContactPanel::TransferDataFromWindow(), CAuthorNamesPanel::TransferDataToWindow(), CContactPanel::TransferDataToWindow(), and x_CopyAuthors().
void CSubmitBlockDlg::SetAlternateEmailAddress | ( | string | alt_email | ) |
Definition at line 1003 of file submitblockdlg.cpp.
References m_AlternateEmail, and ToWxString().
Referenced by CSubPrepIntroPanel::x_LaunchSubmitEditor().
void CSubmitBlockDlg::SetPageForError | ( | string | errors | ) |
Definition at line 799 of file submitblockdlg.cpp.
References ePageAffil, ePageContact, ePageDate, ePageManAuth, ePageSequenceAuth, ePageTitle, NStr::FindNoCase(), NStr::IsBlank(), kAffilMissing, kAllCitGenMissing, kAllSubmitMissing, kCityMissing, kContactMissing, kCountryMissing, kEmailMissing, kInvalidEmail, kManuscriptAuthorsMissing, kSequenceAuthorsMissing, kTitleMissing, and m_Book.
Referenced by CSubPrepIntroPanel::x_LaunchSubmitEditor().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 563 of file submitblockdlg.cpp.
void CSubmitBlockDlg::UnselectReleaseDateChoice | ( | ) |
Definition at line 834 of file submitblockdlg.cpp.
References m_ReleaseDatePanel, and CReleaseDatePanel::UnselectReleaseDateChoice().
Referenced by CSubPrepIntroPanel::x_LaunchSubmitEditor().
|
private |
Definition at line 507 of file submitblockdlg.cpp.
References _, ID_COPY_SEQ_AUTH_TO_MAN_AUTH, ID_SUBMITBLOCKDLG_SAME_AUTHORS, kEmptyStr, label, m_AffilPanel, m_AlternateEmail, m_AuthorsSame, m_Book, m_ContactPanel, m_CopySeqAuthToManAuth, m_Gen, m_ManAuthorsPanel, m_ReleaseDatePanel, m_SameAuthSizer, m_SequenceAuthorsPanel, m_SubmitBlock, m_UnpublishedPanel, s_AuthorListsSame(), CAuthorAffiliationPanel::TransferDataToWindow(), CAuthorNamesPanel::TransferDataToWindow(), CContactPanel::TransferDataToWindow(), CReleaseDatePanel::TransferDataToWindow(), wxID_ANY, and wxT.
Referenced by CreateControls(), and OnImportBtnClick().
|
private |
Definition at line 640 of file submitblockdlg.cpp.
References NStr::IsBlank(), m_SubmitBlock, names, s_AuthorNameBlank(), and s_NamesNotSet().
Referenced by OnSubmitblockdlgPageChanged(), and x_CreateBlock().
|
private |
Definition at line 840 of file submitblockdlg.cpp.
References CTime::eCurrent, CAuthorAffiliationPanel::GetAffil(), kSubmissionPreparationToolVersion, m_AffilPanel, m_ContactPanel, m_ReleaseDatePanel, m_SequenceAuthorsPanel, m_SubmitBlock, names, CAuthorNamesPanel::PopulateAuthors(), s_AuthorNameBlank(), s_NamesNotSet(), CAuthorAffiliationPanel::TransferDataFromWindow(), CAuthorNamesPanel::TransferDataFromWindow(), CContactPanel::TransferDataFromWindow(), CReleaseDatePanel::TransferDataFromWindow(), CAuthorNamesPanel::TransferDataToWindow(), CContactPanel::TransferDataToWindow(), and x_CopyAuthors().
Referenced by GetErrors(), GetSubmitBlock(), and OnImportBtnClick().
|
private |
Definition at line 905 of file submitblockdlg.cpp.
References CTime::eCurrent, gen, CAuthorAffiliationPanel::GetAffil(), CUnpublishedPanel::GetTitle(), m_AffilPanel, m_Gen, m_ManAuthorsPanel, m_SequenceAuthorsPanel, m_SubmitBlock, m_UnpublishedPanel, CAuthorNamesPanel::PopulateAuthors(), CAuth_list_Base::ResetAffil(), CAuth_list_Base::SetAffil(), CAuthorAffiliationPanel::TransferDataFromWindow(), and CAuthorNamesPanel::TransferDataFromWindow().
Referenced by GetCitGen(), and GetErrors().
|
private |
Definition at line 181 of file submitblockdlg.hpp.
Referenced by OnClearBtnClick(), OnImportBtnClick(), x_BuildPages(), x_CreateBlock(), and x_CreateCitGen().
|
private |
Definition at line 188 of file submitblockdlg.hpp.
Referenced by OnImportBtnClick().
|
private |
Definition at line 185 of file submitblockdlg.hpp.
Referenced by GetAlternateEmailAddress(), OnClearBtnClick(), OnExportBtnClick(), OnImportBtnClick(), SetAlternateEmailAddress(), and x_BuildPages().
|
private |
Definition at line 187 of file submitblockdlg.hpp.
Referenced by OnImportBtnClick(), OnSeparateAuthorsClick(), and x_BuildPages().
wxButton* CSubmitBlockDlg::m_BackBtn |
Definition at line 160 of file submitblockdlg.hpp.
Referenced by CreateControls(), Init(), and OnSubmitblockdlgPageChanged().
wxNotebook* CSubmitBlockDlg::m_Book |
Definition at line 158 of file submitblockdlg.hpp.
Referenced by CreateControls(), Init(), OnBackBtnClick(), OnClearBtnClick(), OnImportBtnClick(), OnNextBtnClick(), OnSeparateAuthorsClick(), OnSubmitblockdlgPageChanged(), SetPageForError(), and x_BuildPages().
|
private |
Definition at line 182 of file submitblockdlg.hpp.
Referenced by OnClearBtnClick(), OnImportBtnClick(), OnSubmitblockdlgPageChanged(), x_BuildPages(), and x_CreateBlock().
|
private |
Definition at line 189 of file submitblockdlg.hpp.
Referenced by OnSeparateAuthorsClick(), and x_BuildPages().
|
private |
Definition at line 177 of file submitblockdlg.hpp.
Referenced by CSubmitBlockDlg(), OnClearBtnClick(), OnCopySeqAuthToManAuthClick(), OnImportBtnClick(), OnSeparateAuthorsClick(), x_BuildPages(), and x_CreateCitGen().
|
private |
Definition at line 183 of file submitblockdlg.hpp.
Referenced by Init(), OnClearBtnClick(), OnCopySeqAuthToManAuthClick(), OnImportBtnClick(), OnSeparateAuthorsClick(), x_BuildPages(), and x_CreateCitGen().
wxButton* CSubmitBlockDlg::m_NextBtn |
Definition at line 161 of file submitblockdlg.hpp.
Referenced by CreateControls(), Init(), and OnSubmitblockdlgPageChanged().
|
private |
Definition at line 179 of file submitblockdlg.hpp.
Referenced by GetErrors(), GetSubmitBlock(), OnClearBtnClick(), OnImportBtnClick(), UnselectReleaseDateChoice(), x_BuildPages(), and x_CreateBlock().
wxBoxSizer* CSubmitBlockDlg::m_SameAuthSizer |
Definition at line 159 of file submitblockdlg.hpp.
Referenced by CreateControls(), Init(), OnImportBtnClick(), and x_BuildPages().
|
private |
Definition at line 197 of file submitblockdlg.hpp.
Referenced by OnExportBtnClick().
|
private |
Definition at line 198 of file submitblockdlg.hpp.
Referenced by OnExportBtnClick().
|
private |
Definition at line 180 of file submitblockdlg.hpp.
Referenced by OnClearBtnClick(), OnCopySeqAuthToManAuthClick(), OnImportBtnClick(), OnSubmitblockdlgPageChanged(), x_BuildPages(), x_CreateBlock(), and x_CreateCitGen().
|
private |
Definition at line 176 of file submitblockdlg.hpp.
Referenced by CSubmitBlockDlg(), OnClearBtnClick(), OnImportBtnClick(), OnSubmitblockdlgPageChanged(), x_BuildPages(), x_CopyAuthors(), x_CreateBlock(), and x_CreateCitGen().
|
private |
Definition at line 184 of file submitblockdlg.hpp.
Referenced by OnClearBtnClick(), OnImportBtnClick(), x_BuildPages(), and x_CreateCitGen().
wxBoxSizer* CSubmitBlockDlg::m_Updatable |
Definition at line 157 of file submitblockdlg.hpp.
Referenced by CreateControls(), Init(), and OnImportBtnClick().
|
private |
Definition at line 196 of file submitblockdlg.hpp.