wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
80 Create(parent,
id, caption, pos,
size, style);
87SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
88wxDialog::Create( parent,
id, caption, pos,
size, style );
93GetSizer()->SetSizeHints(
this);
98SetSize(wxSize(300, 300));
164wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
165itemDialog1->SetSizer(itemBoxSizer2);
167wxArrayString choice_strings;
168choice_strings.Add(
_(
"Strain"));
169choice_strings.Add(
_(
"Isolate"));
174itemBoxSizer2->Add(
m_Choice, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
177 m_CheckBox_sp=
newwxCheckBox( itemDialog1,
ID_CHECKBOX_SP,
_(
"Only append to sp. organisms"), wxDefaultPosition, wxDefaultSize, 0 );
179itemBoxSizer2->Add(
m_CheckBox_sp, 0, wxALIGN_LEFT|wxALL, 5);
181 m_CheckBox_cf=
newwxCheckBox( itemDialog1,
ID_CHECKBOX_CF,
_(
"Only append to cf. organisms"), wxDefaultPosition, wxDefaultSize, 0 );
183itemBoxSizer2->Add(
m_CheckBox_cf, 0, wxALIGN_LEFT|wxALL, 5);
189 m_CheckBox_nr=
newwxCheckBox( itemDialog1,
ID_CHECKBOX_NR,
_(
"Only append to nr. organisms"), wxDefaultPosition, wxDefaultSize, 0 );
191itemBoxSizer2->Add(
m_CheckBox_nr, 0, wxALIGN_LEFT|wxALL, 5);
203itemBoxSizer2->Add(
m_constraint, 0, wxALIGN_LEFT|wxALL, 5);
205wxBoxSizer* itemBoxSizer12 =
newwxBoxSizer(wxHORIZONTAL);
206itemBoxSizer2->Add(itemBoxSizer12, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
208wxButton* itemButton13 =
newwxButton( itemDialog1, wxID_OK,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
209itemBoxSizer12->Add(itemButton13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
211wxButton* itemButton14 =
newwxButton( itemDialog1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
212itemBoxSizer12->Add(itemButton14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
257 boolisOrgMod = e->second.is_org;
258 stringabbr = e->second.abbr;
259 intsubtype = e->second.subtype;
268 CAppendModToOrgworker(isOrgMod, subtype, abbr, use_abbr, only_sp, only_cf, only_aff, only_nr, no_taxid,
false, constraint);
278 if(item.second.enabled)
291item.second.field_type,
293item.second.m_ncRNAClass,
294item.second.matcher);
297 if(item.second.enabled2)
305item.second.field_type2,
306item.second.subtype2,
307item.second.m_ncRNAClass2,
308item.second.matcher2);
324 if(selection ==
"Genotype")
#define ID_CHECKBOX_NO_TAXID
CAppendModToOrgDlg()
Constructors.
void OnChoiceChanged(wxCommandEvent &event)
wxCheckBox * m_CheckBox_abbr
wxCheckBox * m_CheckBox_nr
CTripleConstraintPanel_CSourceFieldNamePanel_Wrapper * m_constraint
map< string, Tchoice_item > m_Types
~CAppendModToOrgDlg()
Destructor.
wxCheckBox * m_CheckBox_sp
CRef< CCmdComposite > GetCommand()
objects::CSeq_entry_Handle m_TopSeqEntry
void CreateControls()
Creates the controls and sizers.
static bool ShowToolTips()
Should we show tooltips?
bool Create(wxWindow *parent, wxWindowID id=12000, const wxString &caption=_("Append Mod To Org"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxCheckBox * m_CheckBox_cf
void Init()
Initialises member variables.
wxCheckBox * m_CheckBox_no_taxid
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
CRef< CEditingActionConstraint > GetConstraint(pair< string, SFieldTypeAndMatcher > &item, int orgmod_subtype)
wxCheckBox * m_CheckBox_aff
CRef< CCmdComposite > GetCommand(objects::CSeq_entry_Handle tse)
pair< string, SFieldTypeAndMatcher > GetItem(CFieldNamePanel::EFieldType field_type)
container_type::iterator iterator
CRef< CEditingActionConstraint > CreateEditingActionConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class, const string &const_field, CFieldNamePanel::EFieldType const_field_type, int const_subtype, string &const_ncRNA_class, CRef< CConstraintMatcher >constraint)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
@ eSubtype_collection_date
DD-MMM-YYYY format.
@ eSubtype_nat_host
natural host of this specimen
@ eSubtype_specimen_voucher
@ eSubtype_culture_collection
@ eSubtype_forma_specialis
const struct ncbi::grid::netcache::search::fields::SIZE size
wxString ToWxString(const string &s)
string ToStdString(const wxString &s)
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