wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle ) : m_TopSeqEntry(seh)
71 for( ; b_iter ; ++b_iter )
75 if(!
m_Found&& b_iter->GetSeq_entry_Handle().HasParentEntry())
80 Create(parent,
id, caption, pos,
size, style);
86 bool CLatLonTool::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
88SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
89wxDialog::Create( parent,
id, caption, pos,
size, style );
94GetSizer()->SetSizeHints(
this);
120wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
121itemDialog1->SetSizer(itemBoxSizer2);
123wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
124itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
126wxArrayString itemChoiceStrings, itemChoiceStringsWritable;
130wxMessageBox(
wxT(
"No LatLon records found"),
wxT(
"Error"), wxOK | wxICON_ERROR);
137wxMessageBox(
wxT(
"No LatLon records found or all records correctly formatted"),
wxT(
"Error"), wxOK | wxICON_ERROR);
143itemBoxSizer3->Add(
m_GridPanel, 0, wxALIGN_TOP|wxALL, 5);
146 m_Grid->SetTable(gridAdapter,
true);
147 m_Grid->AutoSizeColumns();
148 intl_height =
m_Grid->GetColLabelSize();
149 m_Grid->SetColLabelSize( 2 * l_height );
156 if((*it)->IsSetHeader() && (*it)->GetHeader().IsSetTitle() )
158 stringtitle = (*it)->GetHeader().GetTitle();
161itemChoiceStrings.Add(wxString(title));
163itemChoiceStringsWritable.Add(wxString(title));
172 if(glyph_col >= 0 && glyph_col+1 <
m_Grid->GetNumberCols())
178wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
179itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
184wxBoxSizer* itemBoxSizer13 =
newwxBoxSizer(wxHORIZONTAL);
185itemBoxSizer2->Add(itemBoxSizer13, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
187wxButton* itemButton14 =
newwxButton( itemDialog1, wxID_OK,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
188itemBoxSizer13->Add(itemButton14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
190wxButton* itemButton15 =
newwxButton( itemDialog1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
191itemBoxSizer13->Add(itemButton15, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
202expand_col->
SetHeader().SetTitle(
"");
203expand_col->
SetHeader().SetField_name(
"expand");
204expand_col->
SetData().SetString();
207current_col->
SetHeader().SetTitle(
"Current Lat-Lon");
208current_col->
SetHeader().SetField_name(
"current");
209current_col->
SetData().SetString();
212suggested_col->
SetHeader().SetTitle(
"Suggested Correction");
213suggested_col->
SetHeader().SetField_name(
"suggested");
214suggested_col->
SetData().SetString();
220bogus_col->
SetHeader().SetField_name(
"");
221bogus_col->
SetData().SetString();
224 table->SetColumns().push_back(id_col);
225 table->SetColumns().push_back(expand_col);
226 table->SetColumns().push_back(current_col);
227 table->SetColumns().push_back(suggested_col);
228 table->SetColumns().push_back(bogus_col);
232 for( vector<string>::iterator fi =
m_LatLon.begin(); fi !=
m_LatLon.end() ; ++fi )
235 if(suggested == *fi)
239id_col->
SetData().SetId().push_back(
id);
240expand_col->
SetData().SetString().push_back(
"");
241current_col->
SetData().SetString().push_back(*fi);
242suggested_col->
SetData().SetString().push_back(suggested);
243bogus_col->
SetData().SetString().push_back(
"");
255 boolselect_all =
false;
258 if(wxMessageBox(
ToWxString(
"Apply to all?"),
wxT(
"Nothing is selected"), wxOK | wxCANCEL,
NULL) == wxOK)
267 for(
size_t row= 0;
row< values_table->
GetColumn(
"current").GetData().GetString().
size(); ++
row)
271 if(!current.empty() && !suggested.empty() && current != suggested && (
m_Grid->IsInSelection(
static_cast<int>(
row),0) || select_all))
277 for( ; b_iter ; ++b_iter )
297 return "Invalid operation in LatLon Tool";
357wxMessageDialog dlg(
this,
_(
"Discard modifications?"),
_(
"Attention"),wxOK|wxCANCEL|wxCENTRE);
358 if(dlg.ShowModal() == wxID_OK)
374 stringlatlon = (*subsource)->GetName();
386 boolmodified =
false;
391 stringlatlon = (*subsource)->GetName();
407 if((*it)->IsSource()) {
414 if((*it)->IsSource()) {
417new_desc->
Assign(orig_desc);
446new_feat->
Assign(feat_it->GetOriginalFeature());
void AddCommand(IEditCommand &command)
void MakeColumnReadOnly(int pos, bool val=true)
void InitColumnCollapse(int col)
CRef< objects::CSeq_table > GetValuesTable()
namespace ncbi::objects::
const CSeqTable_column & GetColumn(CTempString column_name) const
static string FixLatLonFormat(string orig_lat_lon, bool guess=false)
const_iterator end() const
const_iterator find(const key_type &key) const
const char * kSequenceIdColLabel
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
CSeq_entry_Handle GetSeq_entryHandle(CDataLoader *loader, const TBlobId &blob_id, EMissing action=eMissing_Default)
Get Seq-entry handle by its blob-id, with possible loading.
CSeq_entry_Handle GetSeq_entry_Handle(void) const
Get parent Seq-entry handle.
CConstRef< CSeq_entry > GetCompleteSeq_entry(void) const
Complete and get const reference to the seq-entry.
CScope & GetScope(void) const
Get scope this handle belongs to.
bool HasParentEntry(void) const
Check if current seq-entry has a parent.
CSeq_entry_Handle GetParentEntry(void) const
Get parent Seq-entry handle.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
@ eSubtype_lat_lon
+/- decimal degrees
const TColumns & GetColumns(void) const
Get the Columns member data.
void SetHeader(THeader &value)
Assign a value to Header data member.
vector< CRef< CSeqTable_column > > TColumns
void SetData(TData &value)
Assign a value to Data data member.
TNum_rows GetNum_rows(void) const
Get the Num_rows member data.
const TString & GetString(void) const
Get the variant data.
const TData & GetData(void) const
Get the Data member data.
@ eField_id_location_id
location Seq-id
void SetData(TData &value)
Assign a value to Data data member.
const TSet & GetSet(void) const
Get the variant data.
bool IsSet(void) const
Check if variant Set is selected.
TSource & SetSource(void)
Select the variant.
@ eMol_na
just a nucleic acid
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table
const struct ncbi::grid::netcache::search::fields::SIZE size
Utility macros and typedefs for exploring NCBI objects from seqfeat.asn.
#define FOR_EACH_SUBSOURCE_ON_BIOSOURCE(Itr, Var)
FOR_EACH_SUBSOURCE_ON_BIOSOURCE EDIT_EACH_SUBSOURCE_ON_BIOSOURCE.
#define EDIT_EACH_SUBSOURCE_ON_BIOSOURCE(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.
#define row(bind, expected)
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