DEFINE_EVENT_TYPE(wxEVT_COMMAND_REMOVE_MARKER)
62: m_EventHandler(
NULL)
70 size_tmarker_pos, wxWindow* parent,
71wxEvtHandler* eventHandler, wxWindowID
id,
72 constwxPoint& pos,
constwxSize&
size,
longstyle )
73: m_EventHandler(eventHandler)
74, m_MarkerId(marker_id)
75, m_MarkerLabel(marker_label)
76, m_MarkerPos(marker_pos)
83 constwxPoint& pos,
constwxSize&
size,
longstyle )
86wxPanel::Create( parent,
id, pos,
size, style );
113wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
114itemPanel1->SetSizer(itemBoxSizer2);
116wxPanel* itemPanel3 =
newwxPanel( itemPanel1,
ID_PANEL, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
117itemPanel3->SetBackgroundColour(wxColour(193, 193, 193));
118itemBoxSizer2->Add(itemPanel3, 0, wxGROW, 5);
120wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
121itemPanel3->SetSizer(itemBoxSizer4);
123 m_MarkerName=
newwxStaticText( itemPanel3, wxID_STATIC,
_(
"Marker1"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT );
124itemBoxSizer4->Add(
m_MarkerName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
126itemBoxSizer4->Add(5, 5, 1, wxGROW, 5);
128wxButton* itemButton7 =
newwxButton( itemPanel3,
RemoveButton,
_(
"Remove"), wxDefaultPosition, wxDefaultSize, 0 );
129itemBoxSizer4->Add(itemButton7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
138itemBoxSizer2->Add(5, 10, 0, wxGROW|wxLEFT|wxRIGHT, 5);
161 size_tcurr_rows = (size_t)
table->GetRowsCount();
166 if(curr_rows > rows_needed) {
167 table->DeleteRows(rows_needed, curr_rows - rows_needed);
168}
else if(curr_rows < rows_needed) {
169 table->AppendRows(rows_needed - curr_rows);
171 for(
size_t row= 0;
row< rows_needed; ++
row) {
176 stringseq = coord_vec[
row].m_Seq;
178 for(
int i= 0;
i< 2; ++
i) {
179 size_ttag_start = seq.find_first_of(
"<");
180 if(tag_start != string::npos) {
181 size_ttag_stop = seq.find_first_of(
">", tag_start);
182 if(tag_stop != string::npos) {
183seq.replace(tag_start, tag_stop - tag_start + 1,
i== 0 ?
"[":
"]");
void SetMarkerId(const string &str)
static bool ShowToolTips()
wxIcon GetIconResource(const wxString &name)
void UpdateMarker(const SMarkerInfo &marker_info)
bool Create(wxWindow *parent, wxWindowID id=10047, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
void OnRemoveButtonClick(wxCommandEvent &event)
wxEvtHandler * m_EventHandler
void x_UpdateMarkerLabel()
wxBitmap GetBitmapResource(const wxString &name)
string GetMarkerId() const
wxGrid * m_MarkerInfoGrid
wxStaticText * m_MarkerName
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)
Convert numeric value to string.
static string & ReplaceInPlace(string &src, const string &search, const string &replace, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)
Replace occurrences of a substring within a string.
static const char label[]
unsigned int
A callback function used to compare two keys in a database.
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table
const struct ncbi::grid::netcache::search::fields::SIZE size
#define row(bind, expected)
SMarkerCoordVec m_CoordVec
vector< SMarkerCoord > SMarkerCoordVec
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