43 #include <wx/bitmap.h>
45 #include <wx/stattext.h>
46 #include <wx/textctrl.h>
47 #include <wx/radiobox.h>
48 #include <wx/choice.h>
49 #include <wx/textctrl.h>
50 #include <wx/datectrl.h>
93 wxWindowID
id,
const wxPoint& pos,
const wxSize&
size,
long style ) :
112 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
113 wxPanel::Create( parent,
id, pos,
size, style );
118 GetSizer()->SetSizeHints(
this);
159 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
160 itemPanel1->SetSizer(itemBoxSizer2);
162 wxStaticText* itemStaticText3 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Description"), wxDefaultPosition, wxDefaultSize, 0 );
163 itemBoxSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
165 m_Remark =
new wxTextCtrl( itemPanel1,
ID_CITSUB_DESC, wxEmptyString, wxDefaultPosition, wxSize(400, 85), wxTE_MULTILINE );
166 itemBoxSizer2->Add(
m_Remark, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
168 wxFlexGridSizer* itemFlexGridSizer5 =
new wxFlexGridSizer(0, 2, 0, 0);
169 itemBoxSizer2->Add(itemFlexGridSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
171 wxStaticText* itemStaticText6 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Add standard remark text"), wxDefaultPosition, wxDefaultSize, 0 );
172 itemFlexGridSizer5->Add(itemStaticText6, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
174 wxArrayString m_StandardRemarkStrings;
175 m_StandardRemarkStrings.Add(wxEmptyString);
176 m_StandardRemarkStrings.Add(
_(
"AA by submitter"));
177 m_StandardRemarkStrings.Add(
_(
"NT by submitter"));
178 m_StandardRemarkStrings.Add(
_(
"NT and AA by submitter"));
179 m_StandardRemarkStrings.Add(
_(
"AA by database"));
180 m_StandardRemarkStrings.Add(
_(
"NT by database"));
181 m_StandardRemarkStrings.Add(
_(
"NT and AA by database"));
183 itemFlexGridSizer5->Add(
m_StandardRemark, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
185 wxStaticText* itemStaticText8 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Submission Date"), wxDefaultPosition, wxDefaultSize, 0 );
186 itemFlexGridSizer5->Add(itemStaticText8, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
188 wxBoxSizer* itemBoxSizer9 =
new wxBoxSizer(wxHORIZONTAL);
189 itemFlexGridSizer5->Add(itemBoxSizer9, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
203 if (!wxPanel::TransferDataFromWindow()) {
212 if (!wxPanel::TransferDataToWindow()) {
272 wxString remark = std_remark;
273 if (std_remark ==
_(
"AA by submitter"))
274 remark =
_(
"Amino acid sequence updated by submitter");
275 if (std_remark ==
_(
"NT by submitter"))
276 remark =
_(
"Nucleotide sequence updated by submitter");
277 if (std_remark ==
_(
"NT and AA by submitter"))
278 remark =
_(
"Nucleotide and amino acid sequences updated by submitter");
279 if (std_remark ==
_(
"AA by database"))
280 remark =
_(
"Amino acid sequence updated by database staff");
281 if (std_remark ==
_(
"NT by database"))
282 remark =
_(
"Nucleotide sequence updated by database staff");
283 if (std_remark ==
_(
"NT and AA by database"))
284 remark =
_(
"Nucleotide and amino acid sequences updated by database staff");
#define ID_CITSUB_ADD_STANDARD_REMARK
void OnCitsubAddStandardRemarkSelected(wxCommandEvent &event)
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CITSUB_ADD_STANDARD_REMARK
~CCitSubPanel()
Destructor.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
virtual bool TransferDataToWindow()
static bool ShowToolTips()
Should we show tooltips?
bool Create(wxWindow *parent, wxWindowID id=10088, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
CRef< objects::CCit_sub > GetCit_sub() const
CCitSubPanel()
Constructors.
CRef< CSerialObject > m_EditedCitSub
virtual bool TransferDataFromWindow()
wxChoice * m_StandardRemark
void Init()
Initialises member variables.
void CreateControls()
Creates the controls and sizers.
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 SetDate(TDate &value)
Assign a value to Date data member.
const struct ncbi::grid::netcache::search::fields::SIZE size