GetNumberRows();
80 virtualwxString GetValue(
int row,
intcol );
81 virtual voidSetValue(
int row,
intcol,
constwxString&
value);
84 virtualwxString GetRowLabelValue(
int row);
85 virtualwxString GetColLabelValue(
intcol );
99SetAttrProvider(
newwxGridCellAttrProvider);
101wxGridCellAttr* attr =
newwxGridCellAttr();
103wxGridCellAttr* editAttr =
newwxGridCellAttr();
104editAttr->SetReadOnly(
false);
106wxGridCellAttr* labelAttr =
newwxGridCellAttr();
107labelAttr->SetReadOnly();
111labelAttr->SetTextColour(*wxRED);
114SetColAttr(editAttr, 1);
122SetAttr(labelAttr,
row, 0);
124SetAttr(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 returnwxEmptyString;
148 returnwxEmptyString;
151 if(
row< (
int)it->second.size()) {
154rowNum += it->second.size();
155 row-= it->second.size();
157 returnwxEmptyString;
165numRows += it->second.size() + 1;
177 switch(seq_id->
Which()) {
187}
catch(
conststd::exception&) {
202 if(col < 0 || col > 2)
203 returnwxEmptyString;
207 return(col == 0) ?
ToWxString(it->first) : wxString();
210 if(
row< (
int)it->second.size()) {
220 returnwxEmptyString;
232 row-= it->second.size();
234 returnwxEmptyString;
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,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
293SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY|wxWS_EX_BLOCK_EVENTS);
294CDialog::Create( parent,
id, caption, pos,
size, style );
299GetSizer()->SetSizeHints(
this);
339wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
340itemCDialog1->SetSizer(itemBoxSizer2);
342wxStaticText* itemStaticText3 =
newwxStaticText( 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 );
343itemBoxSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
345 m_Grid=
newwxGrid( 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);
350itemBoxSizer2->Add(
m_Grid, 1, wxGROW|wxALL, 5);
352wxStdDialogButtonSizer* itemStdDialogButtonSizer5 =
newwxStdDialogButtonSizer;
354itemBoxSizer2->Add(itemStdDialogButtonSizer5, 0, wxALIGN_RIGHT|wxALL, 5);
355wxButton* itemButton6 =
newwxButton( itemCDialog1, wxID_OK,
_(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
356itemStdDialogButtonSizer5->AddButton(itemButton6);
358wxButton* itemButton7 =
newwxButton( itemCDialog1, wxID_CANCEL,
_(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
359itemStdDialogButtonSizer5->AddButton(itemButton7);
361itemStdDialogButtonSizer5->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