NCBI C++ ToolKit
|
Search Toolkit Book for CAuthorAffiliationPanel
#include <gui/widgets/edit/author_affiliation_panel.hpp>
Public Types | |
enum | { ID_CAUTHORAFFILIATIONPANEL = 10002 , ID_AUTH_AFFIL_INST = 10003 , ID_AUTH_AFFIL_DEPT = 10004 , ID_AUTH_AFFIL_ADDRESS = 10005 , ID_AUTH_AFFIL_CITY = 10006 , ID_AUTH_AFFIL_STATE = 10007 , ID_AUTH_AFFIL_CODE = 10008 , ID_AUTH_AFFIL_COUNTRY = 10009 } |
Control identifiers. More... | |
Public Member Functions | |
CAuthorAffiliationPanel () | |
Constructors. More... | |
CAuthorAffiliationPanel (wxWindow *parent, const objects::CAffil &affil, wxWindowID id=ID_CAUTHORAFFILIATIONPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CAUTHORAFFILIATIONPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CAuthorAffiliationPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
virtual bool | TransferDataToWindow () |
virtual bool | TransferDataFromWindow () |
void | SetAffil (CRef< objects::CAffil > affil) |
CRef< objects::CAffil > | GetAffil () |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
wxTextCtrl * | m_AffilCtrl |
wxTextCtrl * | m_DepartmentCtrl |
wxTextCtrl * | m_StreetCtrl |
wxTextCtrl * | m_CityCtrl |
wxTextCtrl * | m_SubCtrl |
wxTextCtrl * | m_ZipCtrl |
wxTextCtrl * | m_CountryCtrl |
Private Attributes | |
CRef< objects::CAffil > | m_Affil |
CAuthorAffiliationPanel class declaration
Definition at line 83 of file author_affiliation_panel.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_CAUTHORAFFILIATIONPANEL | |
ID_AUTH_AFFIL_INST | |
ID_AUTH_AFFIL_DEPT | |
ID_AUTH_AFFIL_ADDRESS | |
ID_AUTH_AFFIL_CITY | |
ID_AUTH_AFFIL_STATE | |
ID_AUTH_AFFIL_CODE | |
ID_AUTH_AFFIL_COUNTRY |
Definition at line 135 of file author_affiliation_panel.hpp.
CAuthorAffiliationPanel::CAuthorAffiliationPanel | ( | ) |
CAuthorAffiliationPanel::CAuthorAffiliationPanel | ( | wxWindow * | parent, |
const objects::CAffil & | affil, | ||
wxWindowID | id = ID_CAUTHORAFFILIATIONPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
CAuthorAffiliationPanel::~CAuthorAffiliationPanel | ( | ) |
Destructor.
Definition at line 117 of file author_affiliation_panel.cpp.
bool CAuthorAffiliationPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CAUTHORAFFILIATIONPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
Definition at line 96 of file author_affiliation_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
void CAuthorAffiliationPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Definition at line 146 of file author_affiliation_panel.cpp.
References _, ID_AUTH_AFFIL_ADDRESS, ID_AUTH_AFFIL_CITY, ID_AUTH_AFFIL_CODE, ID_AUTH_AFFIL_COUNTRY, ID_AUTH_AFFIL_DEPT, ID_AUTH_AFFIL_INST, ID_AUTH_AFFIL_STATE, m_AffilCtrl, m_CityCtrl, m_CountryCtrl, m_DepartmentCtrl, m_StreetCtrl, m_SubCtrl, and m_ZipCtrl.
Referenced by Create().
Definition at line 310 of file author_affiliation_panel.cpp.
References m_Affil, and TransferDataFromWindow().
Referenced by CEditObjectSubmit_block::GetEditCommand(), CPublicationTypePanel::x_CollectAuthors(), CSubmitBlockDlg::x_CreateBlock(), and CSubmitBlockDlg::x_CreateCitGen().
wxBitmap CAuthorAffiliationPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Definition at line 334 of file author_affiliation_panel.cpp.
wxIcon CAuthorAffiliationPanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Definition at line 347 of file author_affiliation_panel.cpp.
void CAuthorAffiliationPanel::Init | ( | void | ) |
Initialises member variables.
Definition at line 128 of file author_affiliation_panel.cpp.
References m_AffilCtrl, m_CityCtrl, m_CountryCtrl, m_DepartmentCtrl, m_StreetCtrl, m_SubCtrl, m_ZipCtrl, and NULL.
void CAuthorAffiliationPanel::SetAffil | ( | CRef< objects::CAffil > | affil | ) |
Definition at line 299 of file author_affiliation_panel.cpp.
References m_Affil, CRef< C, Locker >::Reset(), and TransferDataToWindow().
Referenced by CSubmitBlockDlg::OnClearBtnClick(), and CAuthorNamesPanel::x_SetAffiliation().
|
static |
Should we show tooltips?
Definition at line 325 of file author_affiliation_panel.cpp.
|
virtual |
Definition at line 252 of file author_affiliation_panel.cpp.
References AFFILPANEL_RESETBLANK, NStr::IsBlank(), CRef< C, Locker >::IsNull(), m_Affil, m_AffilCtrl, m_CityCtrl, m_CountryCtrl, m_DepartmentCtrl, m_StreetCtrl, m_SubCtrl, m_ZipCtrl, CRef< C, Locker >::Reset(), and ToAsciiStdString().
Referenced by GetAffil(), CEditObjectSubmit_block::GetEditCommand(), CPublicationTypePanel::x_CollectAuthors(), CSubmitBlockDlg::x_CreateBlock(), and CSubmitBlockDlg::x_CreateCitGen().
|
virtual |
Definition at line 213 of file author_affiliation_panel.cpp.
References AFFILPANEL_SETSTD, m_Affil, m_AffilCtrl, m_CityCtrl, m_CountryCtrl, m_DepartmentCtrl, m_StreetCtrl, m_SubCtrl, m_ZipCtrl, and ToWxString().
Referenced by CSubmitBlockDlg::OnClearBtnClick(), SetAffil(), CSubmitBlockDlg::x_BuildPages(), and CEditObjectSubmit_block::x_TransferDataToWindow().
|
private |
Definition at line 147 of file author_affiliation_panel.hpp.
Referenced by GetAffil(), SetAffil(), TransferDataFromWindow(), and TransferDataToWindow().
wxTextCtrl* CAuthorAffiliationPanel::m_AffilCtrl |
Definition at line 127 of file author_affiliation_panel.hpp.
Referenced by CreateControls(), Init(), TransferDataFromWindow(), and TransferDataToWindow().
wxTextCtrl* CAuthorAffiliationPanel::m_CityCtrl |
Definition at line 130 of file author_affiliation_panel.hpp.
Referenced by CreateControls(), Init(), TransferDataFromWindow(), and TransferDataToWindow().
wxTextCtrl* CAuthorAffiliationPanel::m_CountryCtrl |
Definition at line 133 of file author_affiliation_panel.hpp.
Referenced by CreateControls(), Init(), TransferDataFromWindow(), and TransferDataToWindow().
wxTextCtrl* CAuthorAffiliationPanel::m_DepartmentCtrl |
Definition at line 128 of file author_affiliation_panel.hpp.
Referenced by CreateControls(), Init(), TransferDataFromWindow(), and TransferDataToWindow().
wxTextCtrl* CAuthorAffiliationPanel::m_StreetCtrl |
Definition at line 129 of file author_affiliation_panel.hpp.
Referenced by CreateControls(), Init(), TransferDataFromWindow(), and TransferDataToWindow().
wxTextCtrl* CAuthorAffiliationPanel::m_SubCtrl |
Definition at line 131 of file author_affiliation_panel.hpp.
Referenced by CreateControls(), Init(), TransferDataFromWindow(), and TransferDataToWindow().
wxTextCtrl* CAuthorAffiliationPanel::m_ZipCtrl |
Definition at line 132 of file author_affiliation_panel.hpp.
Referenced by CreateControls(), Init(), TransferDataFromWindow(), and TransferDataToWindow().