47 #include <wx/button.h>
48 #include <wx/statbox.h>
49 #include <wx/stattext.h>
82 wxWindowID
id,
const wxString& caption,
const wxPoint& pos,
const wxSize&
size,
long style )
99 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
100 wxDialog::Create( parent,
id, caption, pos,
size, style );
105 GetSizer()->SetSizeHints(
this);
110 SetSize(wxSize(280, 550));
143 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
144 itemDialog1->SetSizer(itemBoxSizer2);
147 itemBoxSizer2->Add(
m_IDPanel, 1, wxGROW|wxALL, 5);
149 wxBoxSizer* itemBoxSizer12 =
new wxBoxSizer(wxHORIZONTAL);
150 itemBoxSizer2->Add(itemBoxSizer12, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
152 wxButton* itemButton13 =
new wxButton( itemDialog1, wxID_OK,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
153 itemBoxSizer12->Add(itemButton13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
155 wxButton* itemButton14 =
new wxButton( itemDialog1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
156 itemBoxSizer12->Add(itemButton14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
195 vector< vector<int> > & subsets =
GetSubsets();
196 if (this->
m_TopSeqEntry && !subsets.empty() && !subsets.front().empty())
198 int i = subsets.front().front();
203 if (grandparent != parent)
213 changed_set->SetSeq_set().push_back(new_se);
218 user.
SetType().SetStr(
"GbenchModification");
220 method->
SetValue(
"WithdrawSequences");
221 changed_set->SetDescr().Set().push_back( user_object );
224 for (
unsigned int s = 0; s < subsets.size(); s++)
229 cmd->AddCommand(*set_cmd);
238 for (
unsigned int j = 0; j < subset.size(); j++)
254 bool title_present =
false;
257 for (CSeq_descr::Tdata::const_iterator desc = target.
GetDescr().
Get().begin(); desc != target.
GetDescr().
Get().end(); ++desc)
259 if ((*desc)->IsTitle() && !(*desc)->GetTitle().empty())
261 title_present =
true;
266 for (CSeq_descr::Tdata::const_iterator desc =
source.GetDescr().Get().begin(); desc !=
source.GetDescr().Get().end(); ++desc)
268 if (title_present && (*desc)->IsTitle())
270 target.
SetDescr().Set().push_back(*desc);
279 vector<string>
names;
280 vector< vector<int> > & subsets =
GetSubsets();
281 for (
unsigned int s = 0; s < subsets.size(); s++)
283 for (
unsigned int j = 0; j < subsets[s].size(); j++)
285 int i = subsets[s][j];
292 (*id)->GetLabel(&name);
293 names.push_back(name);
301 (*id)->GetLabel(&name);
302 names.push_back(name);
const CBioseq & GetNucFromNucProtSet(void) const
void TakeFromSet(objects::CBioseq_set &changed_set, CRef< objects::CSeq_entry > se)
void ReadBioseq(const objects::CSeq_entry &se)
vector< SSetSeqRecord > m_SetSeq
objects::CSeq_entry_Handle m_TopSeqEntry
const CSeq_descr & GetDescr(void) const
void SetDescr(CSeq_descr &value)
bool IsSetDescr(void) const
CUser_field & SetValue(int value)
set a data field to a given value Int8 and TGi values can be stored into 'str' field if the value doe...
CRef< CUser_field > SetFieldRef(const string &str, const string &delim=".", const string &obj_subtype=kEmptyStr, NStr::ECase use_case=NStr::eCase)
static bool ShowToolTips()
Should we show tooltips?
~CWithdrawSequences()
Destructor.
CRef< CCmdComposite > GetCommand()
CWithdrawSequences()
Constructors.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void PopulateSet(CBioseq_set &new_set, const vector< int > &subset)
void CopyDescrToEntry(const CBioseq_set &source, CSeq_entry &target)
vector< vector< int > > & GetSubsets()
void Init()
Initialises member variables.
void CreateControls()
Creates the controls and sizers.
vector< string > GetNames()
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
bool Create(wxWindow *parent, wxWindowID id=11300, const wxString &caption=_("Withdraw Sequences"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
static const struct name_t names[]
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
CConstRef< CBioseq_set > GetCompleteBioseq_set(void) const
Return the complete bioseq-set object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void SetType(TType &value)
Assign a value to Type data member.
const TSeq & GetSeq(void) const
Get the variant data.
TSet & SetSet(void)
Select the variant.
bool CanGetSeq_set(void) const
Check if it is safe to call GetSeq_set method.
TClass GetClass(void) const
Get the Class member data.
const TSet & GetSet(void) const
Get the variant data.
bool IsSeq(void) const
Check if variant Seq is selected.
bool CanGetClass(void) const
Check if it is safe to call GetClass method.
bool IsSet(void) const
Check if variant Set is selected.
TSeq_set & SetSeq_set(void)
Assign a value to Seq_set data member.
@ eClass_nuc_prot
nuc acid and coded proteins
@ eClass_genbank
converted genbank
const Tdata & Get(void) const
Get the member data.
TUser & SetUser(void)
Select the variant.
const struct ncbi::grid::netcache::search::fields::SIZE size
const CharType(& source)[N]
#define FOR_EACH_SEQID_ON_BIOSEQ(Itr, Var)
FOR_EACH_SEQID_ON_BIOSEQ EDIT_EACH_SEQID_ON_BIOSEQ.