A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/seq__text__demo__dlg_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/seq_text/demo/seq_text_demo_dlg.cpp Source File

54 #include <wx/msgdlg.h> 55 #include <wx/statline.h> 57 #include <wx/textctrl.h> 58 #include <wx/button.h> 59 #include <wx/bitmap.h> 88  Create

(parent,

id

, caption, pos,

size

, style);

92 bool CSeqTextDemoDlg::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

95 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

96

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

132  string

gbench_cfg = reg.

GetString

(

"filesystem"

,

134  "plugin_config.asn"

);

152

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

153

itemDialog1->SetSizer(itemBoxSizer2);

158

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxHORIZONTAL);

159

itemBoxSizer2->Add(itemBoxSizer4, 0, wxGROW|wxALL, 5);

161

wxFlexGridSizer* itemFlexGridSizer5 =

new

wxFlexGridSizer(2, 2, 0, 0);

162

itemFlexGridSizer5->AddGrowableCol(0);

163

itemBoxSizer4->Add(itemFlexGridSizer5, 1, wxALIGN_CENTER_VERTICAL|wxALL, 0);

167  m_AccInput

->SetHelpText(

_

(

"Enter Accession"

));

170

itemFlexGridSizer5->Add(

m_AccInput

, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

172

wxButton* itemButton7 =

new

wxButton( itemDialog1,

ID_ACC

,

_

(

"Load Accession"

), wxDefaultPosition, wxDefaultSize, 0 );

173

itemFlexGridSizer5->Add(itemButton7, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

177  m_FileInput

->SetHelpText(

_

(

"Enter asn file name"

));

180

itemFlexGridSizer5->Add(

m_FileInput

, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

182

wxButton* itemButton9 =

new

wxButton( itemDialog1,

ID_FILE

,

_

(

"Load File"

), wxDefaultPosition, wxDefaultSize, 0 );

183

itemFlexGridSizer5->Add(itemButton9, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

185

wxStaticLine* itemStaticLine10 =

new

wxStaticLine( itemDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );

186

itemBoxSizer4->Add(itemStaticLine10, 0, wxGROW|wxALL, 5);

188

wxButton* itemButton11 =

new

wxButton( itemDialog1, wxID_CLOSE,

_

(

"&Close"

), wxDefaultPosition, wxDefaultSize, 0 );

189

itemBoxSizer4->Add(itemButton11, 0, wxALIGN_BOTTOM|wxALL, 5);

254

wxString

msg

(

_

(

"Accession '"

));

255  msg

+=

ToWxString

(acc) +

_

(

" not recognized as a valid accession"

);

256

wxMessageBox(

msg

,

_

(

"Cannot load accesion"

),

257

wxOK | wxICON_ERROR);

268

wxString

msg

=

_

(

"Can't find sequence for accession '"

);

270

wxMessageBox(

msg

,

_

(

"Cannot load accesion"

),

271

wxOK | 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 &section, 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