46 #include <wx/bitmap.h>
48 #include <wx/stattext.h>
49 #include <wx/textctrl.h>
87 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,
_(
"Patent Title"), wxDefaultPosition, wxDefaultSize, 0 );
158 itemFlexGridSizer3->Add(itemStaticText4, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
160 wxTextCtrl* itemTextCtrl5 =
new wxTextCtrl( itemPanel1,
ID_PATENT_TITLE, wxEmptyString, wxDefaultPosition, wxSize(400, 85), wxTE_MULTILINE );
161 itemFlexGridSizer3->Add(itemTextCtrl5, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
163 wxStaticText* itemStaticText6 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Abstract"), wxDefaultPosition, wxDefaultSize, 0 );
164 itemFlexGridSizer3->Add(itemStaticText6, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
166 wxTextCtrl* itemTextCtrl7 =
new wxTextCtrl( itemPanel1,
ID_PATENT_ABSTRACT, wxEmptyString, wxDefaultPosition, wxSize(400, 100), wxTE_MULTILINE );
167 itemFlexGridSizer3->Add(itemTextCtrl7, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
169 wxStaticText* itemStaticText8 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Country"), wxDefaultPosition, wxDefaultSize, 0 );
170 itemFlexGridSizer3->Add(itemStaticText8, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
172 wxTextCtrl* itemTextCtrl9 =
new wxTextCtrl( itemPanel1,
ID_PATENT_COUNTRY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
173 itemFlexGridSizer3->Add(itemTextCtrl9, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
175 wxStaticText* itemStaticText10 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Document Type"), wxDefaultPosition, wxDefaultSize, 0 );
176 itemFlexGridSizer3->Add(itemStaticText10, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
178 wxTextCtrl* itemTextCtrl11 =
new wxTextCtrl( itemPanel1,
ID_PATENT_DOCTYPE, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
179 itemFlexGridSizer3->Add(itemTextCtrl11, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
181 wxStaticText* itemStaticText12 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Patent Number"), wxDefaultPosition, wxDefaultSize, 0 );
182 itemFlexGridSizer3->Add(itemStaticText12, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
184 wxTextCtrl* itemTextCtrl13 =
new wxTextCtrl( itemPanel1,
ID_PATENT_DOCNUM, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
185 itemFlexGridSizer3->Add(itemTextCtrl13, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
187 wxStaticText* itemStaticText14 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Issue Date"), wxDefaultPosition, wxDefaultSize, 0 );
188 itemFlexGridSizer3->Add(itemStaticText14, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
190 wxBoxSizer* itemBoxSizer15 =
new wxBoxSizer(wxHORIZONTAL);
191 itemFlexGridSizer3->Add(itemBoxSizer15, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
193 wxStaticText* itemStaticText16 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Application Number"), wxDefaultPosition, wxDefaultSize, 0 );
194 itemFlexGridSizer3->Add(itemStaticText16, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
196 wxTextCtrl* itemTextCtrl17 =
new wxTextCtrl( itemPanel1,
ID_PATENT_APPNUM, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
197 itemFlexGridSizer3->Add(itemTextCtrl17, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
199 wxStaticText* itemStaticText18 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Application Date"), wxDefaultPosition, wxDefaultSize, 0 );
200 itemFlexGridSizer3->Add(itemStaticText18, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
202 wxBoxSizer* itemBoxSizer19 =
new wxBoxSizer(wxHORIZONTAL);
203 itemFlexGridSizer3->Add(itemBoxSizer19, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
225 if (!wxPanel::TransferDataFromWindow()) {
235 if (!wxPanel::TransferDataToWindow()) {
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void CreateControls()
Creates the controls and sizers.
virtual bool TransferDataFromWindow()
~CPatentPanel()
Destructor.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
static bool ShowToolTips()
Should we show tooltips?
bool Create(wxWindow *parent, wxWindowID id=10000, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
wxWindow * m_issuedate_ctrl
virtual bool TransferDataToWindow()
CRef< objects::CCit_pat > GetCit_pat(void) const
wxWindow * m_appdate_ctrl
CPatentPanel()
Constructors.
void Init()
Initialises member variables.
CRef< CSerialObject > m_EditedPatent
Base class for all serializable objects.
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void SetApp_date(TApp_date &value)
Assign a value to App_date data member.
void SetDate_issue(TDate_issue &value)
Assign a value to Date_issue data member.
const struct ncbi::grid::netcache::search::fields::SIZE size
#define ID_PATENT_DOCTYPE
#define ID_PATENT_COUNTRY
#define ID_PATENT_ABSTRACT