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/hit__matrix__demo__dlg_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/hit_matrix/demo/hit_matrix_demo_dlg.cpp Source File

49 #include <wx/msgdlg.h> 50 #include <wx/statline.h> 52 #include <wx/textctrl.h> 53 #include <wx/button.h> 54 #include <wx/bitmap.h> 88  Create

(parent,

id

, caption, pos,

size

, style);

95 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

96

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

129 #define DEF_FILE "E:\\Users\\Yazhuk\\Gbench Data\\blast.asn" 137

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

138

itemDialog1->SetSizer(itemBoxSizer2);

143

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxHORIZONTAL);

144

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

146

wxFlexGridSizer* itemFlexGridSizer5 =

new

wxFlexGridSizer(0, 2, 0, 0);

147

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

149  m_AccInput

=

new

wxTextCtrl( itemDialog1,

ID_ACC_TEXT

, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );

151  m_AccInput

->SetHelpText(

_

(

"Enter Accession"

));

154

itemFlexGridSizer5->Add(

m_AccInput

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

156

wxButton* itemButton7 =

new

wxButton( itemDialog1,

ID_ACC

,

_

(

"Load Accession"

), wxDefaultPosition, wxDefaultSize, 0 );

157

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

159  m_FileInput

=

new

wxTextCtrl( itemDialog1,

ID_FILE_TEXT

, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );

161  m_FileInput

->SetHelpText(

_

(

"Enter asn file name"

));

164

itemFlexGridSizer5->Add(

m_FileInput

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

166

wxButton* itemButton9 =

new

wxButton( itemDialog1,

ID_FILE

,

_

(

"Load File"

), wxDefaultPosition, wxDefaultSize, 0 );

167

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

169

itemFlexGridSizer5->AddGrowableCol(0);

171

wxStaticLine* itemStaticLine10 =

new

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

172

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

174

wxButton* itemButton11 =

new

wxButton( itemDialog1, wxID_CLOSE,

_

(

"&Close"

), wxDefaultPosition, wxDefaultSize, 0 );

175

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

233  string msg

(

"Accession '"

);

234  msg

+= acc +

" not recognized as a valid accession"

;

236

wxOK | wxICON_ERROR);

252  string msg

(

"Can't find sequence for accession '"

);

255

wxOK | wxICON_ERROR);

275

builder.

Init

(scope, *obj);

304

wxMessageBox(

wxT

(

"This type of file is not supported"

),

305  wxT

(

"Error loading file."

),

306

wxOK | wxICON_ERROR);

311

wxMessageBox(s,

wxT

(

"Error loading file."

), wxOK | wxICON_ERROR);

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

CHitMatrixDemoDlg()

Constructors.

void OnCloseClick(wxCommandEvent &event)

void OnFileClick(wxCommandEvent &event)

CHitMatrixWidget * m_MatrixWidget

wxBitmap GetBitmapResource(const wxString &name)

CIRef< IHitMatrixDataSource > m_DataSource

void OnAccClick(wxCommandEvent &event)

void OnCloseWindow(wxCloseEvent &event)

~CHitMatrixDemoDlg()

Destructor.

static bool ShowToolTips()

Should we show tooltips?

CHitMatrixDSBuilder m_Builder

bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("CHitMatrixDemoDlg"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(600, 600), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|0x1000)

Creation.

CRef< CObjectManager > m_ObjMgr

void CreateControls()

Creates the controls and sizers.

void Init()

Initialises member variables.

wxIcon GetIconResource(const wxString &name)

vector< CConstRef< objects::CSeq_align > > TAlignVector

Include a standard set of the NCBI C++ Toolkit most basic headers.

#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.

TObjectType * GetPointer(void) THROWS_NONE

Get pointer,.

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.

IHitMatrixDataSource::TAlignVector TAlignVector

bool LoadObject(const wxString &filename, CScope &scope, CHitMatrixDSBuilder &builder)

loads a serializable object of type T

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)

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