( parent,
id, caption, pos,
size, style );
94wxFrame::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(wxID_ABOUT,
_(
"About..."), wxEmptyString, wxITEM_NORMAL);
147menuBar->Append(itemMenu8,
_(
"Help"));
148itemFrame1->SetMenuBar(menuBar);
163 id->Set( accession );
166 string msg(
"Accession '");
168 msg+=
"' not recognized as a valid accession";
170wxMessageDialog dlg(
NULL,
wxT(
"Unhandled Accession"),
184 string msg(
"Can't find sequence for accession '");
187wxMessageDialog dlg(
NULL,
wxT(
"Sequence Not Found"),
236 string msg(
"This type of file is not supported");
237wxMessageDialog dlg(
NULL,
wxT(
"Error loading file"),
247 if( seq->
IsSeq() ){
250list< CRef< CSeq_id > >& id_list = bioseq.
SetId();
251 if( !id_list.empty() ){
252 id.Reset( id_list.front() );
296 wxT(
"Choose a data file"), wxEmptyString, wxEmptyString,
297 wxT(
"ASN files (*.asn)|*.asn"), wxFD_OPEN | wxFD_FILE_MUST_EXIST
300 if( dlg.ShowModal() == wxID_OK ){
313wxTextEntryDialog dlg(
315 wxT(
"Please enter an accession from GenBank"),
wxT(
"Enter accession"),
320 if( dlg.ShowModal() == wxID_OK ){
void Init(const CSerialObject &obj, objects::CScope &scope, const objects::SAnnotSelector *sel=0)
static TRegisterLoaderInfo RegisterInObjectManager(CObjectManager &om, CReader *reader=0, CObjectManager::EIsDefault is_default=CObjectManager::eDefault, CObjectManager::TPriority priority=CObjectManager::kPriority_NotSet)
CRef< objects::CObjectManager > m_ObjectManager
bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("Feature Table Demo"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX)
void Init()
Initialises member variables.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void OnLoadClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for wxID_LOAD
~CwxDemoFeatureTableFrame()
Destructor.
void CreateControls()
Creates the controls and sizers.
CFeatTableWidget * m_FeatTableCtrl
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool LoadAccession(const wxString &anAccName)
void OnOpenClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for wxID_OPEN
CwxDemoFeatureTableFrame()
Constructors.
bool LoadFile(const wxString &aFileName)
static bool ShowToolTips()
Should we show tooltips?
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.
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)
wxString ToWxString(const string &s)
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