wxPanel::Create( parent,
id, pos,
size, style );
118GetSizer()->SetSizeHints(
this);
161wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
162itemPanel1->SetSizer(itemBoxSizer2);
167wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
168itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
170wxButton* itemButton5 =
newwxButton( itemPanel1,
ID_EXPORT_LIST_BTN,
_(
"Export TPA Accession List"), wxDefaultPosition, wxDefaultSize, 0 );
171itemBoxSizer4->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
173wxButton* itemButton6 =
newwxButton( itemPanel1,
ID_EXPORT_INTERVALS_BTN,
_(
"Export Interval Table"), wxDefaultPosition, wxDefaultSize, 0 );
174itemBoxSizer4->Add(itemButton6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
176wxBoxSizer* itemBoxSizer7 =
newwxBoxSizer(wxHORIZONTAL);
177itemBoxSizer2->Add(itemBoxSizer7, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
179wxButton* itemButton8 =
newwxButton( itemPanel1,
ID_IMPORT_INTERVALS_BTN,
_(
"Import Interval Table"), wxDefaultPosition, wxDefaultSize, 0 );
180itemBoxSizer7->Add(itemButton8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
182 m_PopulateBtn=
newwxButton( itemPanel1,
ID_POPULATE_BTN,
_(
"Populate Intervals from Assembly Alignment"), wxDefaultPosition, wxDefaultSize, 0 );
183itemBoxSizer7->Add(
m_PopulateBtn, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
185itemBoxSizer2->Add(380, 1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);
234TransferDataFromWindow();
236 if(!
table|| !
table->IsSetColumns() || !
table->GetColumns()[0]->IsSetData() ||
table->GetColumns()[0]->GetData().GetSize() == 0) {
237wxMessageBox(
wxT(
"No accessions listed"),
wxT(
"Error"),
238wxOK | wxICON_ERROR,
this);
241wxFileDialog table_save_file(
this,
wxT(
"Select a file"), wxEmptyString, wxEmptyString,
wxT(
"*.*"),
242wxFD_SAVE|wxFD_OVERWRITE_PROMPT);
244 if(table_save_file.ShowModal() == wxID_OK)
246wxString path = table_save_file.GetPath();
247wxString name = table_save_file.GetFilename();
254wxMessageBox(
wxT(
"Please, select file name"),
wxT(
"Error"),
255wxOK | wxICON_ERROR,
this);
260wxMessageBox(
wxT(
"Cannot open file ")+ path,
wxT(
"Error"),
261wxOK | wxICON_ERROR,
this);
274TransferDataFromWindow();
277wxMessageBox(
wxT(
"No accessions listed"),
wxT(
"Error"),
278wxOK | wxICON_ERROR,
this);
281wxFileDialog table_save_file(
this,
wxT(
"Select a file"), wxEmptyString, wxEmptyString,
wxT(
"*.*"),
282wxFD_SAVE|wxFD_OVERWRITE_PROMPT);
284 if(table_save_file.ShowModal() == wxID_OK)
286wxString path = table_save_file.GetPath();
287wxString name = table_save_file.GetFilename();
294wxMessageBox(
wxT(
"Please, select file name"),
wxT(
"Error"),
295wxOK | wxICON_ERROR,
this);
299wxMessageBox(
wxT(
"Cannot open file ")+ path,
wxT(
"Error"),
300wxOK | wxICON_ERROR,
this);
313wxFileDialog table_file(
this,
wxT(
"Select a file"), wxEmptyString, wxEmptyString,
wxT(
"*.*"),
314wxFD_OPEN|wxFD_FILE_MUST_EXIST);
316 if(table_file.ShowModal() == wxID_OK)
318wxString path = table_file.GetPath();
319wxString name = table_file.GetFilename();
323new_obj->
SetType().SetStr(
"TpaAssembly");
327wxMessageBox(
wxT(
"Unable to read table"),
wxT(
"Error"),
328wxOK | wxICON_ERROR,
this);
340 if(!
m_Seq|| !
m_Seq->IsSetInst() || !
m_Seq->GetInst().IsSetHist()) {
346 if(
m_User->IsSetData()) {
351 if((*ait)->IsSetSegs() && (*ait)->GetSegs().IsDenseg()
352&& (*ait)->GetSegs().GetDenseg().IsSetDim() && (*ait)->GetSegs().GetDenseg().GetDim() > 1) {
357 if(interval0 && interval1) {
358 stringaccession =
"";
365 m_User->SetData().push_back(new_field);
367}
catch(
const CException&) {}
catch(
constexception&) {}
389TransferDataFromWindow();
397user->
SetType().SetStr(
"TpaAssembly");
423 m_User->Assign(desc.GetUser());
426TransferDataToWindow();
433TransferDataFromWindow();
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
static bool ShowToolTips()
Should we show tooltips?
void OnImportIntervalsBtnClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_IMPORT_INTERVALS_BTN
CAssemblyTrackingPanel()
Constructors.
virtual void UpdateSeqdesc(objects::CSeqdesc &desc)
CAssemblyTrackingListPanel * m_AccessionsPanel
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void Init()
Initialises member variables.
CRef< objects::CUser_object > GetUser_object()
virtual void ChangeSeqdesc(const objects::CSeqdesc &desc)
void SetUser_object(CRef< objects::CUser_object > user)
void OnExportListBtnClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EXPORT_LIST_BTN
void SetBioseq(CConstRef< objects::CBioseq > seq)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
~CAssemblyTrackingPanel()
Destructor.
CConstRef< objects::CBioseq > m_Seq
void OnExportIntervalsBtnClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EXPORT_INTERVALS_BTN
CRef< objects::CUser_object > m_User
@ ID_IMPORT_INTERVALS_BTN
@ ID_EXPORT_INTERVALS_BTN
bool Create(wxWindow *parent, wxWindowID id=ID_CASSEMBLYTRACKINGPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void CreateControls()
Creates the controls and sizers.
void OnPopulateBtnClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_POPULATE_BTN
static CRef< objects::CUser_field > s_CreateTPAAssemblyField(const string &accession, int from, int to)
virtual bool TransferDataToWindow()
void SetUser_object(CRef< objects::CUser_object > user)
void PopulateFields(objects::CUser_object &user_obj)
virtual bool TransferDataFromWindow()
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
void swap(NCBI_NS_NCBI::pair_base_member< T1, T2 > &pair1, NCBI_NS_NCBI::pair_base_member< T1, T2 > &pair2)
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
void GetLabel(string *label, ELabelType type=eDefault, TLabelFlags flags=fLabel_Default) const
Append a label for this Seq-id to the supplied string.
@ eContent
Untagged human-readable accession or the like.
void Reset(void)
Reset reference object.
void Reset(void)
Reset reference 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 TId & GetId(void) const
Get the Id member data.
TFrom GetFrom(void) const
Get the From member data.
bool IsSetStrand(void) const
Check if a value has been assigned to Strand data member.
TStrand GetStrand(void) const
Get the Strand member data.
TTo GetTo(void) const
Get the To member data.
list< CRef< CSeq_align > > TAssembly
<!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
bool SaveTableFile(wxWindow *parent, wxString &save_file_dir, wxString &save_file_name, CRef< objects::CSeq_table > values_table)
CRef< objects::CSeq_table > SeqTableFromAssemblyFields(const objects::CUser_object &obj)
CRef< objects::CSeq_table > ReadTabDelimitedTable(const wxString &filename, bool read_header)
bool SaveTableRowAsListFile(const string &save_file_name, CRef< objects::CSeq_table > values_table, int col)
void AddAssemblyUserFieldsFromSeqTable(CRef< objects::CUser_object > obj, CRef< objects::CSeq_table > table)
string ToStdString(const wxString &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