wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
93 Create(parent,
id, caption, pos,
size, style);
101 bool CEditHistory::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
104SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
105wxDialog::Create( parent,
id, caption, pos,
size, style );
110GetSizer()->SetSizeHints(
this);
154wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
155itemDialog1->SetSizer(itemBoxSizer2);
157wxArrayString seq_ids_replaces;
158wxArrayString seq_ids_replaced_by;
161 boolis_deleted =
false;
169 const auto& ids =
m_Bioseq.GetBioseqCore()->GetId();
170 for(
const auto& id_it : ids) {
173 size_tpos =
label.find(
'.');
186 size_tpos = id_label.find(
'.');
188id_label = id_label.substr(0, pos);
191 for(
const auto& it : seq_ids) {
231 if(seq_ids_replaces.IsEmpty())
232seq_ids_replaces.Add(wxEmptyString);
233 if(seq_ids_replaced_by.IsEmpty())
234seq_ids_replaced_by.Add(wxEmptyString);
236wxStaticText* itemStaticText1 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Replaces Seq-id"), wxDefaultPosition, wxDefaultSize, 0 );
237itemBoxSizer2->Add(itemStaticText1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
243itemBoxSizer2->Add(
m_ReplacesDate, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
245wxStaticText* itemStaticText2 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Replaced By Seq-id"), wxDefaultPosition, wxDefaultSize, 0 );
246itemBoxSizer2->Add(itemStaticText2, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
252itemBoxSizer2->Add(
m_ReplacedByDate, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
254wxStaticText* itemStaticText3 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Status"), wxDefaultPosition, wxDefaultSize, 0 );
255itemBoxSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
257 m_Deleted=
newwxCheckBox( itemDialog1,
wxID_ANY,
_(
"Deleted"), wxDefaultPosition, wxDefaultSize, 0 );
258itemBoxSizer2->Add(
m_Deleted, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
262itemBoxSizer2->Add(
m_DeletedDate, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
265wxBoxSizer* itemBoxSizer6 =
newwxBoxSizer(wxHORIZONTAL);
266itemBoxSizer2->Add(itemBoxSizer6, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
268wxButton* itemButton7 =
newwxButton( itemDialog1, wxID_OK,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
269itemBoxSizer6->Add(itemButton7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
271wxButton* itemButton8 =
newwxButton( itemDialog1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
272itemBoxSizer6->Add(itemButton8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
285vector<string> replaces_ids;
287vector<string> replaced_ids;
290 for(
size_t i= 0;
i< replaces_ids.size();
i++)
293new_inst->
SetHist().SetReplaces().SetIds().push_back(
id);
296 for(
size_t i= 0;
i< replaced_ids.size();
i++)
299new_inst->
SetHist().SetReplaced_by().SetIds().push_back(
id);
310new_inst->
SetHist().SetDeleted().SetBool(
true);
319new_desc->
Assign(*desc_iter);
325 for(
size_t i= 0;
i< replaces_ids.size();
i++)
327 string str= replaces_ids[
i];
328 if(existing.
find(
str) == existing.
end())
335 cmd->AddCommand (*ecmd);
340 for(
size_t i= 0;
i< replaces_ids.size();
i++)
342 string str= replaces_ids[
i];
343 if(existing.
find(
str) == existing.
end())
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CFlexibleDatePanel * m_ReplacesDate
static bool ShowToolTips()
Should we show tooltips?
CRef< CCmdComposite > GetCommand()
CEditHistory()
Constructors.
~CEditHistory()
Destructor.
CFlexibleDatePanel * m_DeletedDate
CGrowableListCtrl * m_IdListReplacedBy
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Edit History"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void CreateControls()
Creates the controls and sizers.
void Init()
Initialises member variables.
CGrowableListCtrl * m_IdListReplaces
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CFlexibleDatePanel * m_ReplacedByDate
objects::CBioseq_Handle m_Bioseq
CRef< objects::CDate > GetDate() const
void GetItems(vector< string > &items)
iterator_bool insert(const value_type &val)
const_iterator find(const key_type &key) const
const_iterator end() const
static const char * str(char *buf, int n)
static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
CSeq_entry_Handle GetSeq_entry_Handle(void) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool EqualCase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-sensitive equality of a substring with another string.
static const char label[]
TExtra_accessions & SetExtra_accessions(void)
Assign a value to Extra_accessions data member.
const TExtra_accessions & GetExtra_accessions(void) const
Get the Extra_accessions member data.
bool IsSetDeleted(void) const
Check if a value has been assigned to Deleted data member.
bool IsSetReplaced_by(void) const
these seqs make this one obsolete Check if a value has been assigned to Replaced_by data member.
const TDeleted & GetDeleted(void) const
Get the Deleted member data.
bool IsSetIds(void) const
Check if a value has been assigned to Ids data member.
void SetHist(THist &value)
Assign a value to Hist data member.
TGenbank & SetGenbank(void)
Select the variant.
bool IsSetReplaces(void) const
seq makes these seqs obsolete Check if a value has been assigned to Replaces data member.
const TGenbank & GetGenbank(void) const
Get the variant data.
const TIds & GetIds(void) const
Get the Ids member data.
TBool GetBool(void) const
Get the variant data.
void ResetHist(void)
Reset Hist data member.
bool IsDate(void) const
Check if variant Date is selected.
bool IsSetDate(void) const
Check if a value has been assigned to Date data member.
const TReplaces & GetReplaces(void) const
Get the Replaces member data.
const TDate & GetDate(void) const
Get the Date member data.
const TReplaced_by & GetReplaced_by(void) const
Get the Replaced_by member data.
bool IsBool(void) const
Check if variant Bool is selected.
const TDate & GetDate(void) const
Get the variant data.
@ e_Genbank
GenBank specific info.
const struct ncbi::grid::netcache::search::fields::SIZE size
static int match(PCRE2_SPTR start_eptr, PCRE2_SPTR start_ecode, uint16_t top_bracket, PCRE2_SIZE frame_size, pcre2_match_data *match_data, match_block *mb)
wxString ToWxString(const string &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