(parent,
id, caption, pos,
size, style);
92 bool CSeqTextDemoDlg::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
95SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
96wxDialog::Create( parent,
id, caption, pos,
size, style );
132 stringgbench_cfg = reg.
GetString(
"filesystem",
134 "plugin_config.asn");
152wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
153itemDialog1->SetSizer(itemBoxSizer2);
158wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
159itemBoxSizer2->Add(itemBoxSizer4, 0, wxGROW|wxALL, 5);
161wxFlexGridSizer* itemFlexGridSizer5 =
newwxFlexGridSizer(2, 2, 0, 0);
162itemFlexGridSizer5->AddGrowableCol(0);
163itemBoxSizer4->Add(itemFlexGridSizer5, 1, wxALIGN_CENTER_VERTICAL|wxALL, 0);
167 m_AccInput->SetHelpText(
_(
"Enter Accession"));
170itemFlexGridSizer5->Add(
m_AccInput, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
172wxButton* itemButton7 =
newwxButton( itemDialog1,
ID_ACC,
_(
"Load Accession"), wxDefaultPosition, wxDefaultSize, 0 );
173itemFlexGridSizer5->Add(itemButton7, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
177 m_FileInput->SetHelpText(
_(
"Enter asn file name"));
180itemFlexGridSizer5->Add(
m_FileInput, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
182wxButton* itemButton9 =
newwxButton( itemDialog1,
ID_FILE,
_(
"Load File"), wxDefaultPosition, wxDefaultSize, 0 );
183itemFlexGridSizer5->Add(itemButton9, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
185wxStaticLine* itemStaticLine10 =
newwxStaticLine( itemDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
186itemBoxSizer4->Add(itemStaticLine10, 0, wxGROW|wxALL, 5);
188wxButton* itemButton11 =
newwxButton( itemDialog1, wxID_CLOSE,
_(
"&Close"), wxDefaultPosition, wxDefaultSize, 0 );
189itemBoxSizer4->Add(itemButton11, 0, wxALIGN_BOTTOM|wxALL, 5);
254wxString
msg(
_(
"Accession '"));
255 msg+=
ToWxString(acc) +
_(
" not recognized as a valid accession");
256wxMessageBox(
msg,
_(
"Cannot load accesion"),
257wxOK | wxICON_ERROR);
268wxString
msg=
_(
"Can't find sequence for accession '");
270wxMessageBox(
msg,
_(
"Cannot load accesion"),
271wxOK | wxICON_ERROR);
static TRegisterLoaderInfo RegisterInObjectManager(CObjectManager &om, CReader *reader=0, CObjectManager::EIsDefault is_default=CObjectManager::eDefault, CObjectManager::TPriority priority=CObjectManager::kPriority_NotSet)
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRef< CRegistryFile > AddSite(CNcbiIstream &istr, int priority)
Add a site-specific repository.
static CNcbiApplication * Instance(void)
Singleton method.
CSeqTextDataSource implements Adapter design pattern.
void OnAccClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ACC
CSeqTextWidget * m_SeqTextWidget
bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("CSeqTextDemoDlg"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(600, 600), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|0x1000)
Creation.
CRef< CObjectManager > m_ObjMgr
static bool ShowToolTips()
Should we show tooltips?
void Init()
Initialises member variables.
void OnFileClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_FILE
CRef< CSeqTextDataSource > m_DataSource
void OnCloseWindow(wxCloseEvent &event)
wxEVT_CLOSE_WINDOW event handler for ID_HIT_MATRIX_DEMO_DLG
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CSeqTextDemoDlg()
Constructors.
void OnCloseClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CLOSE
void CreateControls()
Creates the controls and sizers.
~CSeqTextDemoDlg()
Destructor.
virtual void SetDataSource(CSeqTextDataSource &ds)
static wxString ResolvePathExisting(const wxString &path, const wxString &delim=wxT(","))
Utility function to hide the platform specifics of locating our standard directories.
CUICommandRegistry is a centralized registry where all application commands should be registered.
static CUICommandRegistry & GetInstance()
the main instance associated with the application
Include a standard set of the NCBI C++ Toolkit most basic headers.
const CNcbiRegistry & GetConfig(void) const
Get the application's cached configuration parameters (read-only).
@ 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.
virtual string GetString(const string §ion, const string &name, const string &default_value, TFlags flags=0) const
Get the parameter string value.
#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