wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
88 Create(parent,
id, caption, pos,
size, style);
96 bool CClearKeywords::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
99SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
100wxDialog::Create( parent,
id, caption, pos,
size, style );
105GetSizer()->SetSizeHints(
this);
142wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
143itemDialog1->SetSizer(itemBoxSizer2);
145wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
146itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
148wxStaticText* stattext2 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Remove Keyword"), wxDefaultPosition, wxDefaultSize, 0 );
149itemBoxSizer3->Add(stattext2, 0, wxALIGN_TOP|wxALL, 5);
150 m_Keyword=
newwxTextCtrl( itemDialog1,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(100, -1), 0 );
151itemBoxSizer3->Add(
m_Keyword, 0, wxALIGN_TOP|wxLEFT|wxRIGHT|wxBOTTOM, 5);
152 m_AllKeywords=
newwxCheckBox(itemDialog1,
wxID_ANY,
_(
"All Keywords"), wxDefaultPosition, wxDefaultSize, 0);
153itemBoxSizer3->Add(
m_AllKeywords, 0, wxALIGN_TOP | wxLEFT | wxRIGHT | wxBOTTOM, 5);
155wxStaticBox* itemStaticBoxSizer3Static =
newwxStaticBox(itemDialog1,
wxID_ANY,
_(
"Constraints"));
156wxStaticBoxSizer* itemStaticBoxSizer3 =
newwxStaticBoxSizer(itemStaticBoxSizer3Static, wxVERTICAL);
157itemBoxSizer2->Add(itemStaticBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
159wxBoxSizer* itemBoxSizer7 =
newwxBoxSizer(wxHORIZONTAL);
160itemStaticBoxSizer3->Add(itemBoxSizer7, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
162 m_Any=
newwxRadioButton( itemDialog1,
wxID_ANY,
_(
"Any sequence"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
163 m_Any->SetValue(
true);
164itemBoxSizer7->Add(
m_Any, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
166 m_Nuc=
newwxRadioButton( itemDialog1,
wxID_ANY,
_(
"Nucleotides"), wxDefaultPosition, wxDefaultSize, 0 );
167 m_Nuc->SetValue(
false);
168itemBoxSizer7->Add(
m_Nuc, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
170 m_DNA=
newwxRadioButton( itemDialog1,
wxID_ANY,
_(
"DNA"), wxDefaultPosition, wxDefaultSize, 0 );
171 m_DNA->SetValue(
false);
172itemBoxSizer7->Add(
m_DNA, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
174 m_RNA=
newwxRadioButton( itemDialog1,
wxID_ANY,
_(
"RNA"), wxDefaultPosition, wxDefaultSize, 0 );
175 m_RNA->SetValue(
false);
176itemBoxSizer7->Add(
m_RNA, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
178 m_Proteins=
newwxRadioButton( itemDialog1,
wxID_ANY,
_(
"Proteins"), wxDefaultPosition, wxDefaultSize, 0 );
180itemBoxSizer7->Add(
m_Proteins, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
182wxArrayString choices;
188 if(biosource_it->GetSource().IsSetGenome())
191str_choices.
insert(line);
197choices.Add(wxString(*str_it));
200wxBoxSizer* itemBoxSizer9 =
newwxBoxSizer(wxHORIZONTAL);
201itemStaticBoxSizer3->Add(itemBoxSizer9, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
203wxStaticText* itemStaticText12 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Where source location is "), wxDefaultPosition, wxDefaultSize, 0 );
204itemBoxSizer9->Add(itemStaticText12, 0, wxALIGN_TOP|wxALL, 5);
206 m_SourceLoc=
newwxListBox( itemDialog1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, choices, wxLB_SINGLE );
207itemBoxSizer9->Add(
m_SourceLoc, 0, wxALIGN_TOP|wxALL, 5);
209wxBoxSizer* itemBoxSizer10 =
newwxBoxSizer(wxHORIZONTAL);
210itemStaticBoxSizer3->Add(itemBoxSizer10, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
212wxStaticText* itemStaticText11 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Where Sequence ID"), wxDefaultPosition, wxDefaultSize, 0 );
213itemBoxSizer10->Add(itemStaticText11, 0, wxALIGN_TOP|wxALL, 5);
219wxBoxSizer* itemBoxSizer12 =
newwxBoxSizer(wxHORIZONTAL);
220itemBoxSizer2->Add(itemBoxSizer12, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
222wxButton* itemButton13 =
newwxButton( itemDialog1, wxID_OK,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
223itemBoxSizer12->Add(itemButton13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
225wxButton* itemButton14 =
newwxButton( itemDialog1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
226itemBoxSizer12->Add(itemButton14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
267 boolpass_genome =
true;
269pass_genome =
false;
283 if((*it)->IsSource() && (*it)->GetSource().IsSetGenome() && (*it)->GetSource().GetGenome() == organelle)
300 if(
m_Any->GetValue())
318 if(constraint && se.
IsSeq())
325 if(constraint->DoesTextMatch(
label))
337 if((*it)->IsGenbank())
341edited_object->
Assign((*it)->GetGenbank());
346 if(remove_all || *keyword ==
remove)
EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX, CAdjustFeaturesForGaps::OnKnownUnknownSelected) EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX1
static string GetOrganelleByGenome(unsigned int genome)
static CBioSource::EGenome GetGenomeByOrganelle(const string &organelle, NStr::ECase use_case=NStr::eCase, bool starts_with=false)
void Init()
Initialises member variables.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnAllKeywordsSelected(wxCommandEvent &event)
CRef< CCmdComposite > GetCommand()
CChangeUnindexedObjectCommand< objects::CGB_block > CChangeGenbankBlockCommand
~CClearKeywords()
Destructor.
static bool ShowToolTips()
Should we show tooltips?
CStringConstraintPanel * m_StringConstraintPanel
wxCheckBox * m_AllKeywords
void CreateControls()
Creates the controls and sizers.
CClearKeywords()
Constructors.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxRadioButton * m_Proteins
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Clear Keywords"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
objects::CSeq_entry_Handle m_TopSeqEntry
void ApplyToCSeq_entry(const CSeq_entry &se, CCmdComposite *composite, bool pass_genome)
void AddCommand(IEditCommand &command)
Base class for all serializable objects.
void SetStringSelection(const wxString &str)
CRef< edit::CStringConstraint > GetStringConstraint()
iterator_bool insert(const value_type &val)
const_iterator begin() const
const_iterator end() const
static void DLIST_NAME() remove(DLIST_LIST_TYPE *list, DLIST_TYPE *item)
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
@ eContent
Untagged human-readable accession or the like.
@ fIncludeGivenEntry
Include the top (given) entry.
@ fRecursive
Iterate recursively.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
void ResetKeywords(void)
Reset Keywords data member.
const TKeywords & GetKeywords(void) const
Get the Keywords member data.
bool IsSetKeywords(void) const
Check if a value has been assigned to Keywords data member.
EGenome
biological context
const TSeq & GetSeq(void) const
Get the variant data.
const TSet & GetSet(void) const
Get the variant data.
bool IsSeq(void) const
Check if variant Seq is selected.
bool IsSet(void) const
Check if variant Set is selected.
const TInst & GetInst(void) const
Get the Inst member data.
bool IsSetMol(void) const
Check if a value has been assigned to Mol data member.
bool IsSetInst(void) const
the sequence data Check if a value has been assigned to Inst data member.
TMol GetMol(void) const
Get the Mol member data.
@ e_Source
source of materials, includes Org-ref
const struct ncbi::grid::netcache::search::fields::SIZE size
#define FOR_EACH_SEQID_ON_BIOSEQ(Itr, Var)
FOR_EACH_SEQID_ON_BIOSEQ EDIT_EACH_SEQID_ON_BIOSEQ.
#define ERASE_KEYWORD_ON_GENBANKBLOCK(Itr, Var)
ERASE_KEYWORD_ON_GENBANKBLOCK.
#define EDIT_EACH_KEYWORD_ON_GENBANKBLOCK(Itr, Var)
#define FOR_EACH_SEQENTRY_ON_SEQSET(Itr, Var)
FOR_EACH_SEQENTRY_ON_SEQSET EDIT_EACH_SEQENTRY_ON_SEQSET.
#define FOR_EACH_SEQDESC_ON_SEQENTRY(Itr, Var)
FOR_EACH_SEQDESC_ON_SEQENTRY EDIT_EACH_SEQDESC_ON_SEQENTRY.
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