: m_EntryToAdd(entry_to_add), m_CurrEntry(curr_entry), m_OldIds(
NULL)
81 Create(parent,
id, caption, pos,
size, style);
89 bool CSeqIdFixDlg::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
92SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
93wxDialog::Create( parent,
id, caption, pos,
size, style );
98GetSizer()->SetSizeHints(
this);
140wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
141itemDialog1->SetSizer(itemBoxSizer2);
143wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxVERTICAL);
144itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
146wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
147itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
149wxButton* itemButton5 =
newwxButton( itemDialog1,
ID_RECHECK_SEQID_PROBLEMS_BTN,
_(
"Recheck Problems"), wxDefaultPosition, wxDefaultSize, 0 );
150itemBoxSizer4->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
152wxBoxSizer* itemBoxSizer6 =
newwxBoxSizer(wxHORIZONTAL);
153itemBoxSizer2->Add(itemBoxSizer6, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
155wxButton* itemButton7 =
newwxButton( itemDialog1, wxID_OK,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
156itemBoxSizer6->Add(itemButton7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
158wxButton* itemButton8 =
newwxButton( itemDialog1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
159itemBoxSizer6->Add(itemButton8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
169wxStaticText* old_banner =
newwxStaticText(
this, wxID_STATIC,
_(
"Existing Sequence IDs"), wxDefaultPosition, wxDefaultSize, 0 );
170itemBoxSizer3->Add(old_banner, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
173itemBoxSizer3->Add(
m_OldGrid, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
182new_table->SetColumns().push_back(problems);
186new_ids->SetHeader().SetTitle(
kNewId);
187new_ids->SetData().SetString();
188objects::CSeq_table::TColumns::iterator it = new_table->SetColumns().begin();
190new_table->SetColumns().insert(it, new_ids);
194 for(
size_t i= 0;
i< orig_ids->GetData().
GetId().
size();
i++) {
196 if(!problems || !problems->IsSetData()
197|| !problems->GetData().IsString()
198||
i>= problems->GetData().GetSize()
202new_ids->SetData().SetString().push_back(id_str);
205wxStaticText* new_banner =
newwxStaticText(
this, wxID_STATIC,
_(
"New Sequence IDs"), wxDefaultPosition, wxDefaultSize, 0 );
206itemBoxSizer3->Add(new_banner, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
209itemBoxSizer3->Add(
m_NewGrid, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
263prev_problems->SetData().SetString().clear();
264 if(new_problems && new_problems->IsSetData() && new_problems->GetData().IsString() && new_problems->GetData().GetSize() > 0) {
265prev_problems->SetData().SetString().assign(new_problems->GetData().GetString().begin(), new_problems->GetData().GetString().end());
267 for(
int i= 0;
i< values_table->GetNum_rows();
i++) {
268prev_problems->SetData().SetString().push_back(
"");
static bool ShowToolTips()
Should we show tooltips?
void CreateControls()
Creates the controls and sizers.
void OnRecheckSeqidProblemsBtnClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_RECHECK_SEQID_PROBLEMS_BTN
CRef< objects::CSeq_table > GetReplacementTable()
CSeqIdFixDlg()
Constructors.
CRef< objects::CSeq_entry > m_EntryToAdd
void Init()
Initialises member variables.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CConstRef< objects::CSeq_entry > m_CurrEntry
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
~CSeqIdFixDlg()
Destructor.
bool Create(wxWindow *parent, wxWindowID id=10104, const wxString &caption=_("Sequence ID Problems"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
CSeqTableGridPanel * m_OldGrid
CSeqTableGridPanel * m_NewGrid
CRef< objects::CSeq_table > m_OldIds
void MakeColumnReadOnly(int pos, bool val=true)
void SetValuesTable(CRef< objects::CSeq_table > table)
void MakeAllColumnsReadOnly()
CRef< objects::CSeq_table > GetValuesTable()
const char * kSequenceIdColLabel
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
void Reset(void)
Reset reference object.
#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).
const struct ncbi::grid::netcache::search::fields::SIZE size
#define ID_RECHECK_SEQID_PROBLEMS_BTN
CRef< CSeqTable_column > FindSeqTableColumnByName(CRef< objects::CSeq_table > values_table, string column_name)
CRef< objects::CSeq_table > GetIdsFromSeqEntry(const objects::CSeq_entry &entry)
string SummarizeIdProblems(CRef< objects::CSeqTable_column > problems)
CRef< objects::CSeqTable_column > GetSeqIdProblems(CRef< objects::CSeq_table > new_ids, CRef< objects::CSeq_table > old_ids, size_t max_len)
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