(parent,
id, caption, pos,
size, style);
100SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
101wxDialog::Create( parent,
id, caption, pos,
size, style );
147 #define DEF_ACC "19568015" 148 #define DEF_FILE "/Users/lebedev/asn/simple-align1.asn" 155wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
156itemDialog1->SetSizer(itemBoxSizer2);
161wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
162itemBoxSizer2->Add(itemBoxSizer4, 0, wxGROW|wxALL, 5);
164wxFlexGridSizer* itemFlexGridSizer5 =
newwxFlexGridSizer(0, 2, 0, 0);
165itemBoxSizer4->Add(itemFlexGridSizer5, 1, wxALIGN_CENTER_VERTICAL|wxALL, 0);
167 m_AccInput=
newwxTextCtrl( itemDialog1,
ID_ACC_TEXT, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
169 m_AccInput->SetHelpText(
_(
"Enter Accession"));
172itemFlexGridSizer5->Add(
m_AccInput, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
174wxButton* itemButton7 =
newwxButton( itemDialog1,
ID_ACC,
_(
"Load Accession"), wxDefaultPosition, wxDefaultSize, 0 );
175itemFlexGridSizer5->Add(itemButton7, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
177 m_FileInput=
newwxTextCtrl( itemDialog1,
ID_FILE_TEXT, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
179 m_FileInput->SetHelpText(
_(
"Enter asn file name"));
182itemFlexGridSizer5->Add(
m_FileInput, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
184wxButton* itemButton9 =
newwxButton( itemDialog1,
ID_FILE,
_(
"Load File"), wxDefaultPosition, wxDefaultSize, 0 );
185itemFlexGridSizer5->Add(itemButton9, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
187itemFlexGridSizer5->AddGrowableCol(0);
189wxStaticLine* itemStaticLine10 =
newwxStaticLine( itemDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
190itemBoxSizer4->Add(itemStaticLine10, 0, wxGROW|wxALL, 5);
192wxButton* itemButton11 =
newwxButton( itemDialog1, wxID_CLOSE,
_(
"&Close"), wxDefaultPosition, wxDefaultSize, 0 );
193itemBoxSizer4->Add(itemButton11, 0, wxALIGN_BOTTOM|wxALL, 5);
223 string msg(
"Accession '");
224 msg+= acc +
" not recognized as a valid accession";
226wxOK | wxICON_ERROR);
242 string msg(
"Can't find sequence for accession '");
245wxOK | wxICON_ERROR);
264builder.
Init(scope, *obj);
292wxMessageBox(
_(
"This type of file is not supported"),
293 _(
"Error loading file."),
294wxOK | wxICON_ERROR);
299wxMessageBox(s,
_(
"Error loading file."), wxOK | wxICON_ERROR);
CHitMatrixDSBuilder m_Builder
CIRef< ICrossAlnDataSource > m_DataSource
bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("CCrossAlnDemoDlg"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(600, 600), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX)
void OnAccClick(wxCommandEvent &event)
static bool ShowToolTips()
void OnFileClick(wxCommandEvent &event)
wxBitmap GetBitmapResource(const wxString &name)
CCrossAlnWidget * m_CrossAlnWidget
wxIcon GetIconResource(const wxString &name)
CRef< CObjectManager > m_ObjMgr
void OnCloseWindow(wxCloseEvent &event)
void OnCloseClick(wxCommandEvent &event)
static TRegisterLoaderInfo RegisterInObjectManager(CObjectManager &om, CReader *reader=0, CObjectManager::EIsDefault is_default=CObjectManager::eDefault, CObjectManager::TPriority priority=CObjectManager::kPriority_NotSet)
CIRef< IHitMatrixDataSource > CreateDataSource()
void Init(objects::CScope &scope, const objects::CSeq_align &align)
initial data set from which an alignment will be build
CUICommandRegistry is a centralized registry where all application commands should be registered.
static CUICommandRegistry & GetInstance()
the main instance associated with the application
vector< CConstRef< objects::CSeq_align > > TAlignVector
Include a standard set of the NCBI C++ Toolkit most basic headers.
IHitMatrixDataSource::TAlignVector TAlignVector
bool LoadObject(const wxString &filename, CScope &scope, CHitMatrixDSBuilder &builder)
loads a serializable object of type T
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
const string & GetMsg(void) const
Get message string.
string ReportAll(TDiagPostFlags flags=eDPF_Exception) const
Report all exceptions.
@ 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.
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.
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.
const struct ncbi::grid::netcache::search::fields::SIZE size
Defines: CTimeFormat - storage class for time format.
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
wxFileArtProvider * GetDefaultFileArtProvider()
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