( parent,
id, caption, pos,
size, style );
90wxFrame::Create( parent,
id, caption, pos,
size, style );
138wxMenuBar* menuBar =
newwxMenuBar;
139wxMenu* itemMenu3 =
newwxMenu;
140itemMenu3->Append(wxID_OPEN,
_(
"&Open...\tCtrl+O"), wxEmptyString, wxITEM_NORMAL);
141itemMenu3->Append(
wxID_LOAD,
_(
"&Load...\tCtrl+L"), wxEmptyString, wxITEM_NORMAL);
142itemMenu3->AppendSeparator();
143itemMenu3->Append(wxID_EXIT,
_(
"E&xit\tAlt+F4"), wxEmptyString, wxITEM_NORMAL);
144menuBar->Append(itemMenu3,
_(
"File"));
145wxMenu* itemMenu8 =
newwxMenu;
146itemMenu8->Append(
ID_SEGMENTS,
_(
"Segments"), wxEmptyString, wxITEM_RADIO);
148itemMenu8->Append(
ID_SPANS,
_(
"Spans"), wxEmptyString, wxITEM_RADIO);
149menuBar->Append(itemMenu8,
_(
"View"));
150wxMenu* itemMenu11 =
newwxMenu;
151itemMenu11->Append(wxID_ABOUT,
_(
"About..."), wxEmptyString, wxITEM_NORMAL);
152menuBar->Append(itemMenu11,
_(
"Help"));
153itemFrame1->SetMenuBar(menuBar);
169 stringaccession( anAccession.c_str() );
172 id->Set( accession );
175 string msg(
"Accession '");
177 msg+=
"' not recognized as a valid accession";
180 NULL,
wxT(
"Unhandled Accession"),
181 msg, wxOK | wxICON_ERROR
194 string msg(
"Can't find sequence for accession '");
198 NULL,
wxT(
"Sequence Not Found"),
199 msg, wxOK | wxICON_ERROR
257 string msg(
"This type of file is not supported");
259 NULL,
wxT(
"Error loading file"),
260 msg, wxOK | wxICON_ERROR
274 if( seq->
IsSeq() ){
277list< CRef< CSeq_id > >& id_list = bioseq.
SetId();
278 if( !id_list.empty() ){
279 id.Reset( id_list.front() );
304vector< CConstRef<CSeq_align> > align_vec;
306 for( ; align_iter; ++align_iter) {
309align_vec.push_back( ref );
313builder.
Init( *scope, align_vec );
335 wxT(
"Choose a data file"), wxEmptyString, wxEmptyString,
336 wxT(
"ASN files (*.asn)|*.asn"), wxFD_OPEN | wxFD_FILE_MUST_EXIST
339 if( dlg.ShowModal() == wxID_OK ){
352wxTextEntryDialog dlg(
354 _(
"Please enter an accession from GenBank"),
_(
"Enter accession"),
359 if( dlg.ShowModal() == wxID_OK ){
void Init(objects::CScope &scope, const objects::CSeq_align &align)
initial data set from which an alignment will be build
void SetSyncCreate(bool sync)
CRef< IAlnMultiDataSource > CreateDataSource()
void PreCreateDataSource(bool sparse)
static TRegisterLoaderInfo RegisterInObjectManager(CObjectManager &om, CReader *reader=0, CObjectManager::EIsDefault is_default=CObjectManager::eDefault, CObjectManager::TPriority priority=CObjectManager::kPriority_NotSet)
void OnOpenClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for wxID_OPEN
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnSegmentsClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for ID_SEGMENTS
CwxDemoAlignTableFrame()
Constructors.
static bool ShowToolTips()
Should we show tooltips?
void OnLoadClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for wxID_LOAD
CRef< objects::CObjectManager > m_ObjectManager
void Init()
Initialises member variables.
bool LoadAccession(const wxString &anAccName)
wxListCtrl * m_AlignTableCtrl
bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("Align Table Demo"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
~CwxDemoAlignTableFrame()
Destructor.
void OnSpansClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for ID_SPANS
void CreateControls()
Creates the controls and sizers.
bool LoadFile(const wxString &aFileName)
IMPLEMENT_CLASS(CFloatingFrame, CFloatingFrameBaseClass) const static long kFloatFrameStyle
CFloatingFrame.
@ eSerial_AsnText
ASN.1 text.
static CObjectIStream * Open(ESerialDataFormat format, CNcbiIstream &inStream, bool deleteInStream)
Create serial object reader and attach it to an input stream.
static CRef< CObjectManager > GetInstance(void)
Return the existing object manager or create one.
CSeq_entry_Handle AddTopLevelSeqEntry(CSeq_entry &top_entry, TPriority pri=kPriority_Default, EExist action=eExist_Default)
Add seq_entry, default priority is higher than for defaults or loaders Add object to the score with p...
CBioseq_Handle GetBioseqHandle(const CSeq_id &id)
Get bioseq handle by seq-id.
void AddDefaults(TPriority pri=kPriority_Default)
Add default data loaders from object manager.
CConstRef< CBioseq > GetCompleteBioseq(void) const
Get the complete bioseq.
const CSeq_align & GetOriginalSeq_align(void) const
Get original alignment.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ifstream CNcbiIfstream
Portable alias for ifstream.
bool IsSeq(void) const
Check if variant Seq is selected.
TSeq & SetSeq(void)
Select the variant.
TId & SetId(void)
Assign a value to Id data member.
bool CanGetId(void) const
Check if it is safe to call GetId method.
const struct ncbi::grid::netcache::search::fields::SIZE size
ViewerWindowBase::OnEditMenu ViewerWindowBase::OnJustification EVT_MENU(MID_SHOW_GEOM_VLTNS, ViewerWindowBase::OnShowGeomVltns) EVT_MENU(MID_FIND_PATTERN
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
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