NCBI C++ ToolKit
|
Search Toolkit Book for CJournalPanel
#include "journal_panel.hpp"
(Private to src/gui/widgets/edit
.)
Public Types | |
enum | { ID_JOURNAL = 10034 , ID_JOURNAL_TITLE , ID_JOURNAL_VOLUME , ID_JOURNAL_ISSUE , ID_JOURNAL_PAGES , ID_JOURNAL_PMID , ID_JOURNAL_MUID , ID_JOURNAL_SERIALNO , ID_JOURNAL_ERRATUM , ID_JOURNAL_EXPLANATION , ID_JOURNAL_PUBSTATUS , ID_JOURNAL_LOOKUP_RELAXED , ID_JOURNAL_LOOKUP_ISOJTA , ID_PMID_LOOKUP , ID_ARTICLE_LOOKUP } |
Control identifiers. More... | |
Public Member Functions | |
CJournalPanel () | |
Constructors. More... | |
CJournalPanel (wxWindow *parent, CSerialObject &object, long *pmid, long *muid, long *serial_number, wxWindowID id=ID_JOURNAL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_JOURNAL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CJournalPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
bool | TransferDataToWindow () |
bool | TransferDataFromWindow () |
CRef< objects::CCit_jour > | GetCit_jour () const |
void | OnJournalPmidTextUpdated (wxCommandEvent &event) |
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_JOURNAL_PMID More... | |
void | OnJournalErratumSelected (wxCommandEvent &event) |
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_JOURNAL_ERRATUM More... | |
void | OnJournalLookupRelaxedClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_JOURNAL_LOOKUP_RELAXED More... | |
void | OnJournalLookupIsojtaClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_JOURNAL_LOOKUP_ISOJTA More... | |
void | OnArticleLookup (wxCommandEvent &event) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
void | SetFinalValidation (bool val) |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
wxTextCtrl * | m_JournalTitle |
wxTextCtrl * | m_Volume |
wxTextCtrl * | m_Issue |
wxTextCtrl * | m_Pages |
wxTextCtrl * | m_PmidCtrl |
wxTextCtrl * | m_MuidCtrl |
wxTextCtrl * | m_SerialNoCtrl |
wxChoice * | m_ErratumCtrl |
wxTextCtrl * | m_ErratumExplanation |
wxChoice * | m_PubstatusCtrl |
wxBoxSizer * | m_PubDateSizer |
CFlexibleDatePanel * | m_PubDatePanel |
Private Member Functions | |
bool | x_HasIsoJtaTitle (const objects::CTitle &title) |
void | x_UpdateJournalTitle () |
void | LookupIsjta (string old_title, vector< string > &titles) |
Private Attributes | |
CSerialObject * | m_Object |
CRef< CSerialObject > | m_EditedJournal |
long * | m_pPmid |
long * | m_pMuid |
long * | m_pSerialNumber |
bool | m_IsIsoJtaTitle |
CJournalPanel class declaration
Definition at line 84 of file journal_panel.hpp.
anonymous enum |
Control identifiers.
Definition at line 162 of file journal_panel.hpp.
CJournalPanel::CJournalPanel | ( | ) |
CJournalPanel::CJournalPanel | ( | wxWindow * | parent, |
CSerialObject & | object, | ||
long * | pmid, | ||
long * | muid, | ||
long * | serial_number, | ||
wxWindowID | id = ID_JOURNAL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 117 of file journal_panel.cpp.
References CSerialObject::Assign(), Create(), Init(), journal(), m_EditedJournal, m_Object, CRef< C, Locker >::Reset(), and ncbi::grid::netcache::search::fields::size.
CJournalPanel::~CJournalPanel | ( | ) |
Destructor.
Definition at line 157 of file journal_panel.cpp.
bool CJournalPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_JOURNAL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
Definition at line 136 of file journal_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CJournalPanel().
void CJournalPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Definition at line 192 of file journal_panel.cpp.
References _, ID_ARTICLE_LOOKUP, ID_JOURNAL_ERRATUM, ID_JOURNAL_EXPLANATION, ID_JOURNAL_ISSUE, ID_JOURNAL_LOOKUP_ISOJTA, ID_JOURNAL_LOOKUP_RELAXED, ID_JOURNAL_MUID, ID_JOURNAL_PAGES, ID_JOURNAL_PMID, ID_JOURNAL_PUBSTATUS, ID_JOURNAL_SERIALNO, ID_JOURNAL_TITLE, ID_JOURNAL_VOLUME, journal(), m_ErratumCtrl, m_ErratumExplanation, m_IsIsoJtaTitle, m_Issue, m_JournalTitle, m_MuidCtrl, m_Pages, m_PmidCtrl, m_pMuid, m_pPmid, m_pSerialNumber, m_PubDatePanel, m_PubDateSizer, m_PubstatusCtrl, m_SerialNoCtrl, m_Volume, x_HasIsoJtaTitle(), and x_UpdateJournalTitle().
Referenced by Create().
wxBitmap CJournalPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Definition at line 472 of file journal_panel.cpp.
Definition at line 449 of file journal_panel.cpp.
References journal().
Referenced by CPublicationTypePanel::x_CollectDetails().
wxIcon CJournalPanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Definition at line 485 of file journal_panel.cpp.
void CJournalPanel::Init | ( | void | ) |
Initialises member variables.
Definition at line 168 of file journal_panel.cpp.
References m_ErratumCtrl, m_ErratumExplanation, m_IsIsoJtaTitle, m_Issue, m_JournalTitle, m_MuidCtrl, m_Pages, m_PmidCtrl, m_PubDatePanel, m_PubDateSizer, m_PubstatusCtrl, m_SerialNoCtrl, m_Volume, and NULL.
Referenced by CJournalPanel().
void CJournalPanel::OnArticleLookup | ( | wxCommandEvent & | event | ) |
Definition at line 555 of file journal_panel.cpp.
References CRelaxedLookupDlg::GetPubdesc(), CPublicationTypePanel::GetPubdesc(), NULL, CRelaxedLookupDlg::SendQuery(), CPublicationTypePanel::SetPub(), CRelaxedLookupDlg::SetPubdesc(), CRelaxedLookupDlg::SetStrict(), CPublicationTypePanel::TransferDataFromWindow(), and wxT.
void CJournalPanel::OnJournalErratumSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_JOURNAL_ERRATUM
Definition at line 499 of file journal_panel.cpp.
References m_ErratumCtrl, and m_ErratumExplanation.
void CJournalPanel::OnJournalLookupIsojtaClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_JOURNAL_LOOKUP_ISOJTA
Definition at line 604 of file journal_panel.cpp.
References NStr::Find(), CISOJTALookupDlg::GetISOJTA(), NStr::IsBlank(), CDoiLookup::LookupIsojta(), m_IsIsoJtaTitle, m_JournalTitle, NULL, ToStdString(), ToWxString(), wxT, and x_UpdateJournalTitle().
void CJournalPanel::OnJournalLookupRelaxedClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_JOURNAL_LOOKUP_RELAXED
Definition at line 515 of file journal_panel.cpp.
References done, CRelaxedLookupDlg::GetPubdesc(), CPublicationTypePanel::GetPubdesc(), NULL, CRelaxedLookupDlg::SendQuery(), CPublicationTypePanel::SetPub(), CRelaxedLookupDlg::SetPubdesc(), CPublicationTypePanel::TransferDataFromWindow(), and wxT.
void CJournalPanel::OnJournalPmidTextUpdated | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_JOURNAL_PMID
Definition at line 647 of file journal_panel.cpp.
References NStr::EndsWith(), m_PmidCtrl, NStr::StartsWith(), ToStdString(), ToWxString(), and NStr::TruncateSpacesInPlace().
void CJournalPanel::SetFinalValidation | ( | bool | val | ) |
Definition at line 671 of file journal_panel.cpp.
References CTitle_Base::C_E::e_Iso_jta, CTitle_Base::C_E::e_Name, journal(), m_IsIsoJtaTitle, m_JournalTitle, and val.
Referenced by CPublicationTypePanel::ChangeSeqdesc(), CPublicationTypePanel::SetFinalValidation(), and CPublicationTypePanel::UpdateSeqdesc().
|
static |
Should we show tooltips?
Definition at line 463 of file journal_panel.cpp.
bool CJournalPanel::TransferDataFromWindow | ( | ) |
Definition at line 410 of file journal_panel.cpp.
References NStr::IsBlank(), journal(), m_ErratumCtrl, m_ErratumExplanation, m_JournalTitle, m_PubDatePanel, m_PubstatusCtrl, ToStdString(), and CFlexibleDatePanel::TransferDataFromWindow().
Referenced by CPublicationTypePanel::x_CollectDetails().
bool CJournalPanel::TransferDataToWindow | ( | ) |
Definition at line 340 of file journal_panel.cpp.
References journal(), m_ErratumCtrl, m_ErratumExplanation, m_IsIsoJtaTitle, m_PubDatePanel, m_PubstatusCtrl, ToWxString(), CFlexibleDatePanel::TransferDataToWindow(), x_HasIsoJtaTitle(), and x_UpdateJournalTitle().
Definition at line 657 of file journal_panel.cpp.
References CTitle_Base::Get(), CTitle_Base::IsSet(), and ITERATE.
Referenced by CreateControls(), and TransferDataToWindow().
|
private |
Definition at line 329 of file journal_panel.cpp.
References CTitle_Base::C_E::e_Iso_jta, CTitle_Base::C_E::e_Name, journal(), m_IsIsoJtaTitle, and m_JournalTitle.
Referenced by CreateControls(), OnJournalLookupIsojtaClick(), and TransferDataToWindow().
|
private |
Definition at line 186 of file journal_panel.hpp.
Referenced by CJournalPanel().
wxChoice* CJournalPanel::m_ErratumCtrl |
Definition at line 157 of file journal_panel.hpp.
Referenced by CreateControls(), Init(), OnJournalErratumSelected(), TransferDataFromWindow(), and TransferDataToWindow().
wxTextCtrl* CJournalPanel::m_ErratumExplanation |
Definition at line 158 of file journal_panel.hpp.
Referenced by CreateControls(), Init(), OnJournalErratumSelected(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 190 of file journal_panel.hpp.
Referenced by CreateControls(), Init(), OnJournalLookupIsojtaClick(), SetFinalValidation(), TransferDataToWindow(), and x_UpdateJournalTitle().
wxTextCtrl* CJournalPanel::m_Issue |
Definition at line 152 of file journal_panel.hpp.
Referenced by CreateControls(), and Init().
wxTextCtrl* CJournalPanel::m_JournalTitle |
Definition at line 150 of file journal_panel.hpp.
Referenced by CreateControls(), Init(), OnJournalLookupIsojtaClick(), SetFinalValidation(), TransferDataFromWindow(), and x_UpdateJournalTitle().
wxTextCtrl* CJournalPanel::m_MuidCtrl |
Definition at line 155 of file journal_panel.hpp.
Referenced by CreateControls(), and Init().
|
private |
Definition at line 185 of file journal_panel.hpp.
Referenced by CJournalPanel().
wxTextCtrl* CJournalPanel::m_Pages |
Definition at line 153 of file journal_panel.hpp.
Referenced by CreateControls(), and Init().
wxTextCtrl* CJournalPanel::m_PmidCtrl |
Definition at line 154 of file journal_panel.hpp.
Referenced by CreateControls(), Init(), and OnJournalPmidTextUpdated().
|
private |
Definition at line 188 of file journal_panel.hpp.
Referenced by CreateControls().
|
private |
Definition at line 187 of file journal_panel.hpp.
Referenced by CreateControls().
|
private |
Definition at line 189 of file journal_panel.hpp.
Referenced by CreateControls().
CFlexibleDatePanel* CJournalPanel::m_PubDatePanel |
Definition at line 180 of file journal_panel.hpp.
Referenced by CreateControls(), Init(), TransferDataFromWindow(), and TransferDataToWindow().
wxBoxSizer* CJournalPanel::m_PubDateSizer |
Definition at line 160 of file journal_panel.hpp.
Referenced by CreateControls(), and Init().
wxChoice* CJournalPanel::m_PubstatusCtrl |
Definition at line 159 of file journal_panel.hpp.
Referenced by CreateControls(), Init(), TransferDataFromWindow(), and TransferDataToWindow().
wxTextCtrl* CJournalPanel::m_SerialNoCtrl |
Definition at line 156 of file journal_panel.hpp.
Referenced by CreateControls(), and Init().
wxTextCtrl* CJournalPanel::m_Volume |
Definition at line 151 of file journal_panel.hpp.
Referenced by CreateControls(), and Init().