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

NCBI C++ ToolKit: src/gui/widgets/loaders/resolve_id_dlg.cpp Source File

44 #include <wx/stattext.h> 45 #include <wx/textctrl.h> 46 #include <wx/button.h> 47 #include <wx/scrolwin.h> 48 #include <wx/bitmap.h> 77  virtual int

GetNumberRows();

80  virtual

wxString GetValue(

int row

,

int

col );

81  virtual void

SetValue(

int row

,

int

col,

const

wxString&

value

);

84  virtual

wxString GetRowLabelValue(

int row

);

85  virtual

wxString GetColLabelValue(

int

col );

99

SetAttrProvider(

new

wxGridCellAttrProvider);

101

wxGridCellAttr* attr =

new

wxGridCellAttr();

103

wxGridCellAttr* editAttr =

new

wxGridCellAttr();

104

editAttr->SetReadOnly(

false

);

106

wxGridCellAttr* labelAttr =

new

wxGridCellAttr();

107

labelAttr->SetReadOnly();

111

labelAttr->SetTextColour(*wxRED);

114

SetColAttr(editAttr, 1);

122

SetAttr(labelAttr,

row

, 0);

124

SetAttr(attr,

row

, 1);

125  row

+= it->second.size() + 1;

132  return wxT

(

"Supplied ID"

);

135  return wxT

(

"Actual ID"

);

138  return wxT

(

"Target Description"

);

140  return

wxEmptyString;

148  return

wxEmptyString;

151  if

(

row

< (

int

)it->second.size()) {

154

rowNum += it->second.size();

155  row

-= it->second.size();

157  return

wxEmptyString;

165

numRows += it->second.size() + 1;

177  switch

(seq_id->

Which

()) {

187

}

catch

(

const

std::exception&) {

202  if

(col < 0 || col > 2)

203  return

wxEmptyString;

207  return

(col == 0) ?

ToWxString

(it->first) : wxString();

210  if

(

row

< (

int

)it->second.size()) {

220  return

wxEmptyString;

232  row

-= it->second.size();

234  return

wxEmptyString;

247  if

(

row

< (

int

)it->second.size()) {

256  id

->SetLocal().SetStr(id_str);

265  row

-= it->second.size();

282  Create

(parent,

id

, caption, pos,

size

, style);

290 bool CResolveIdDlg::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

293 

SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY|wxWS_EX_BLOCK_EVENTS);

294

CDialog::Create( parent,

id

, caption, pos,

size

, style );

299

GetSizer()->SetSizeHints(

this

);

339

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

340

itemCDialog1->SetSizer(itemBoxSizer2);

342

wxStaticText* itemStaticText3 =

new

wxStaticText( itemCDialog1, wxID_STATIC,

_

(

"The following IDs were found in the file.\nPlease confirm that they are correct.\nEdit Actual ID if incorrect."

), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );

343

itemBoxSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

345  m_Grid

=

new

wxGrid( itemCDialog1,

ID_GRID

, wxDefaultPosition, itemCDialog1->ConvertDialogToPixels(wxSize(200, 150)), wxSUNKEN_BORDER|wxHSCROLL|wxVSCROLL );

346  m_Grid

->SetDefaultColSize(50);

347  m_Grid

->SetDefaultRowSize(25);

348  m_Grid

->SetColLabelSize(25);

349  m_Grid

->SetRowLabelSize(50);

350

itemBoxSizer2->Add(

m_Grid

, 1, wxGROW|wxALL, 5);

352

wxStdDialogButtonSizer* itemStdDialogButtonSizer5 =

new

wxStdDialogButtonSizer;

354

itemBoxSizer2->Add(itemStdDialogButtonSizer5, 0, wxALIGN_RIGHT|wxALL, 5);

355

wxButton* itemButton6 =

new

wxButton( itemCDialog1, wxID_OK,

_

(

"&OK"

), wxDefaultPosition, wxDefaultSize, 0 );

356

itemStdDialogButtonSizer5->AddButton(itemButton6);

358

wxButton* itemButton7 =

new

wxButton( itemCDialog1, wxID_CANCEL,

_

(

"&Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

359

itemStdDialogButtonSizer5->AddButton(itemButton7);

361

itemStdDialogButtonSizer5->Realize();

380  m_Grid

->SetColSize(0, width);

382  m_Grid

->SetColSize(1, width);

384  m_Grid

->SetColSize(2, width);

static CRef< CScope > m_Scope

virtual wxString GetValue(int row, int col)

string x_GetDescriptionLabel(const CSeq_id_Handle &h)

virtual wxString GetRowLabelValue(int row)

CResolveIdDlg::TIdMap & m_IdMap

virtual int GetNumberCols()

virtual int GetNumberRows()

virtual void SetValue(int row, int col, const wxString &value)

CGridTableSeqIds(const CResolveIdDlg::TData &data, CResolveIdDlg::TIdMap &idMap, CScope &scope)

virtual wxString GetColLabelValue(int col)

const CResolveIdDlg::TData & m_Data

static string x_GetLabel(const CSeq_id_Handle &h)

class CRegistryReadView provides a nested hierarchical view at a particular key.

int GetInt(const string &key, int default_val=0) const

access a named key at this level, with no recursion

void Set(const string &key, int val)

access a named key at this level, with no recursion

container_type::iterator iterator

const_iterator end() const

const_iterator find(const key_type &key) const

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

~CResolveIdDlg()

Destructor.

void SetData(const TData &data, TIdMap &map, objects::CScope &scope)

void Init()

Initialises member variables.

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

bool Create(wxWindow *parent, wxWindowID id=ID_CRESOLVEIDDLG, const wxString &caption=_("Check Sequence Identifiers"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

virtual void x_SaveSettings(CRegistryWriteView view) const

static bool ShowToolTips()

Should we show tooltips?

void CreateControls()

Creates the controls and sizers.

virtual void x_LoadSettings(const CRegistryReadView &view)

override these functions in derived classes

vector< pair< string, THandles > > TData

CResolveIdDlg()

Constructors.

static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)

void GetLabel(string *label, ELabelType type=eDefault, TLabelFlags flags=fLabel_Default) const

Append a label for this Seq-id to the supplied string.

CConstRef< CSeq_id > GetSeqId(void) const

static CSeq_id_Handle GetHandle(const CSeq_id &id)

Normal way of getting a handle, works for any seq-id.

ELabelType

return the label for a given string

@ fLabel_Version

Show the version.

@ fLabel_GeneralDbIsContent

For type general, use the database name as the tag and the (text or numeric) key as the content.

@ eContent

Untagged human-readable accession or the like.

@ eBoth

Type and content, delimited by a vertical bar.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static const char label[]

E_Choice Which(void) const

Which variant is currently selected.

@ e_Gi

GenInfo Integrated Database.

const struct ncbi::grid::netcache::search::fields::SIZE size

const GenericPointer< typename T::ValueType > T2 value

static const char * kCol0Width

static const char * kCol2Width

static const char * kCol1Width

#define row(bind, expected)

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