34 #include <wx/textctrl.h>
35 #include <wx/stattext.h>
36 #include <wx/button.h>
84 SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
85 wxPanel::Create( parent,
id, pos,
size, style );
90 GetSizer()->SetSizeHints(
this);
137 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
138 itemPanel1->SetSizer(itemBoxSizer2);
140 wxBoxSizer* itemBoxSizer1 =
new wxBoxSizer(wxHORIZONTAL);
141 itemBoxSizer2->Add(itemBoxSizer1, 0, wxALIGN_LEFT|wxALL, 0);
143 wxStaticText* itemStaticText2 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"PubMed ID"), wxDefaultPosition, wxDefaultSize, 0 );
144 itemBoxSizer1->Add(itemStaticText2, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);
147 itemBoxSizer1->Add(
m_PubMedID, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);
149 wxButton* itemButton4 =
new wxButton( itemPanel1,
ID_PMIDLOOKBTN,
_(
"Lookup"), wxDefaultPosition, wxDefaultSize, 0 );
150 itemBoxSizer1->Add(itemButton4, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);
152 wxFlexGridSizer* itemFlexGridSizer1 =
new wxFlexGridSizer(0, 2, 0, 0);
153 itemBoxSizer2->Add(itemFlexGridSizer1, 0, wxGROW|wxALL, 0);
155 wxStaticText* itemStaticText3 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Reference title*"), wxDefaultPosition, wxDefaultSize, 0 );
156 itemFlexGridSizer1->Add(itemStaticText3, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);
158 wxStaticText* itemStaticText4 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Journal title*"), wxDefaultPosition, wxDefaultSize, 0 );
159 itemFlexGridSizer1->Add(itemStaticText4, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);
162 itemFlexGridSizer1->Add(
m_ReferenceTitle, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);
165 itemFlexGridSizer1->Add(
m_JournalTitle, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);
167 wxFlexGridSizer* itemFlexGridSizer2 =
new wxFlexGridSizer(0, 5, 0, 0);
168 itemBoxSizer2->Add(itemFlexGridSizer2, 0, wxGROW|wxALL, 0);
170 wxStaticText* itemStaticText5 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Year*"), wxDefaultPosition, wxDefaultSize, 0 );
171 itemFlexGridSizer2->Add(itemStaticText5, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);
173 wxStaticText* itemStaticText6 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Volume"), wxDefaultPosition, wxDefaultSize, 0 );
174 itemFlexGridSizer2->Add(itemStaticText6, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);
176 wxStaticText* itemStaticText7 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Issue"), wxDefaultPosition, wxDefaultSize, 0 );
177 itemFlexGridSizer2->Add(itemStaticText7, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);
179 wxStaticText* itemStaticText8 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Pages from"), wxDefaultPosition, wxDefaultSize, 0 );
180 itemFlexGridSizer2->Add(itemStaticText8, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);
182 wxStaticText* itemStaticText9 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Pages to"), wxDefaultPosition, wxDefaultSize, 0 );
183 itemFlexGridSizer2->Add(itemStaticText9, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);
185 m_YearCtrl =
new wxTextCtrl( itemPanel1,
ID_INPYEAR, wxEmptyString, wxDefaultPosition, wxSize(40, -1), 0 );
186 itemFlexGridSizer2->Add(
m_YearCtrl, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
188 m_VolCtrl =
new wxTextCtrl( itemPanel1,
ID_INPVOL, wxEmptyString, wxDefaultPosition, wxSize(40, -1), 0 );
189 itemFlexGridSizer2->Add(
m_VolCtrl, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
191 m_IssueCtrl =
new wxTextCtrl( itemPanel1,
ID_INPISSUE, wxEmptyString, wxDefaultPosition, wxSize(40, -1), 0 );
192 itemFlexGridSizer2->Add(
m_IssueCtrl, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
195 itemFlexGridSizer2->Add(
m_PagesFromCtrl, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
198 itemFlexGridSizer2->Add(
m_PagesToCtrl, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
wxTextCtrl * m_PagesFromCtrl
void Init()
Initialises member variables.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
static bool ShowToolTips()
Should we show tooltips?
bool Create(wxWindow *parent, wxWindowID id=ID_CINPRESSREFPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
~CInPressRefPanel()
Destructor.
wxTextCtrl * m_ReferenceTitle
void OnLookupClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_PMIDLOOKBTN
CInPressRefPanel()
Constructors.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxTextCtrl * m_JournalTitle
void CreateControls()
Creates the controls and sizers.
wxTextCtrl * m_PagesToCtrl
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size