50 #include <wx/bitmap.h>
52 #include <wx/stattext.h>
53 #include <wx/textctrl.h>
91 wxWindowID
id,
const wxPoint& pos,
const wxSize&
size,
long style ) :
106 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
107 wxPanel::Create( parent,
id, pos,
size, style );
112 GetSizer()->SetSizeHints(
this);
151 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
152 itemPanel1->SetSizer(itemBoxSizer2);
154 wxFlexGridSizer* itemFlexGridSizer3 =
new wxFlexGridSizer(0, 2, 0, 0);
155 itemBoxSizer2->Add(itemFlexGridSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
157 wxStaticText* itemStaticText4 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Proceedings Title"), wxDefaultPosition, wxDefaultSize, 0 );
158 itemFlexGridSizer3->Add(itemStaticText4, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
160 wxTextCtrl* itemTextCtrl5 =
new wxTextCtrl( itemPanel1,
ID_PROCEEDINGS_TITLE, wxEmptyString, wxDefaultPosition, wxSize(400, -1), wxTE_MULTILINE );
161 itemFlexGridSizer3->Add(itemTextCtrl5, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
163 wxStaticText* itemStaticText6 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Publication Year"), wxDefaultPosition, wxDefaultSize, 0 );
164 itemFlexGridSizer3->Add(itemStaticText6, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
166 wxTextCtrl* itemTextCtrl7 =
new wxTextCtrl( itemPanel1,
ID_PROCEEDINGS_PUB_YEAR, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
167 itemFlexGridSizer3->Add(itemTextCtrl7, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
169 wxStaticText* itemStaticText8 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Copyright Year"), wxDefaultPosition, wxDefaultSize, 0 );
170 itemFlexGridSizer3->Add(itemStaticText8, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
172 wxTextCtrl* itemTextCtrl9 =
new wxTextCtrl( itemPanel1,
ID_PROCEEDINGS_COPY_YEAR, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
173 itemFlexGridSizer3->Add(itemTextCtrl9, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
198 if (!wxPanel::TransferDataToWindow())
217 if (!wxPanel::TransferDataFromWindow())
222 m_Book->SetImp().ResetDate();
227 m_Book->SetImp().ResetCprt();
User-defined methods of the data storage class.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void CreateControls()
Creates the controls and sizers.
CProceedingsPanel()
Constructors.
bool Create(wxWindow *parent, wxWindowID id=10072, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
CRef< objects::CCit_book > m_Book
virtual bool TransferDataToWindow()
~CProceedingsPanel()
Destructor.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void Init()
Initialises member variables.
virtual bool TransferDataFromWindow()
static bool ShowToolTips()
Should we show tooltips?
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const TCprt & GetCprt(void) const
Get the Cprt member data.
bool IsSetDate(void) const
date of publication Check if a value has been assigned to Date data member.
const TDate & GetDate(void) const
Get the Date member data.
bool IsSetCprt(void) const
copyright date, " " " Check if a value has been assigned to Cprt data member.
@ e_Name
Title, Anal,Coll,Mono AJB.
bool IsSetYear(void) const
full year (including 1900) Check if a value has been assigned to Year data member.
bool IsStd(void) const
Check if variant Std is selected.
TYear GetYear(void) const
Get the Year member data.
const TStd & GetStd(void) const
Get the variant data.
const struct ncbi::grid::netcache::search::fields::SIZE size
#define ID_PROCEEDINGS_COPY_YEAR
#define ID_PROCEEDINGS_PUB_YEAR
#define ID_PROCEEDINGS_TITLE