wxWindowID
id,
constwxPoint& pos,
constwxSize&
size,
longstyle ) :
112SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
113wxPanel::Create( parent,
id, pos,
size, style );
118GetSizer()->SetSizeHints(
this);
159wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
160itemPanel1->SetSizer(itemBoxSizer2);
162wxStaticText* itemStaticText3 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Description"), wxDefaultPosition, wxDefaultSize, 0 );
163itemBoxSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
165 m_Remark=
newwxTextCtrl( itemPanel1,
ID_CITSUB_DESC, wxEmptyString, wxDefaultPosition, wxSize(400, 85), wxTE_MULTILINE );
166itemBoxSizer2->Add(
m_Remark, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
168wxFlexGridSizer* itemFlexGridSizer5 =
newwxFlexGridSizer(0, 2, 0, 0);
169itemBoxSizer2->Add(itemFlexGridSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
171wxStaticText* itemStaticText6 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Add standard remark text"), wxDefaultPosition, wxDefaultSize, 0 );
172itemFlexGridSizer5->Add(itemStaticText6, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
174wxArrayString m_StandardRemarkStrings;
175m_StandardRemarkStrings.Add(wxEmptyString);
176m_StandardRemarkStrings.Add(
_(
"AA by submitter"));
177m_StandardRemarkStrings.Add(
_(
"NT by submitter"));
178m_StandardRemarkStrings.Add(
_(
"NT and AA by submitter"));
179m_StandardRemarkStrings.Add(
_(
"AA by database"));
180m_StandardRemarkStrings.Add(
_(
"NT by database"));
181m_StandardRemarkStrings.Add(
_(
"NT and AA by database"));
183itemFlexGridSizer5->Add(
m_StandardRemark, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
185wxStaticText* itemStaticText8 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Submission Date"), wxDefaultPosition, wxDefaultSize, 0 );
186itemFlexGridSizer5->Add(itemStaticText8, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
188wxBoxSizer* itemBoxSizer9 =
newwxBoxSizer(wxHORIZONTAL);
189itemFlexGridSizer5->Add(itemBoxSizer9, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
203 if(!wxPanel::TransferDataFromWindow()) {
212 if(!wxPanel::TransferDataToWindow()) {
272wxString remark = std_remark;
273 if(std_remark ==
_(
"AA by submitter"))
274remark =
_(
"Amino acid sequence updated by submitter");
275 if(std_remark ==
_(
"NT by submitter"))
276remark =
_(
"Nucleotide sequence updated by submitter");
277 if(std_remark ==
_(
"NT and AA by submitter"))
278remark =
_(
"Nucleotide and amino acid sequences updated by submitter");
279 if(std_remark ==
_(
"AA by database"))
280remark =
_(
"Amino acid sequence updated by database staff");
281 if(std_remark ==
_(
"NT by database"))
282remark =
_(
"Nucleotide sequence updated by database staff");
283 if(std_remark ==
_(
"NT and AA by database"))
284remark =
_(
"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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4