DEFINE_EVENT_TYPE(wxEVT_COMMAND_REMOVE_ALL_MARKERS)
50DEFINE_EVENT_TYPE(wxEVT_COMMAND_MARKER_INFO_CLOSE)
74wxWindowID
id,
constwxString& caption,
75 constwxPoint& pos,
constwxSize&
size,
longstyle )
76: m_EventHandler(eventHandler)
79 Create(parent,
id, caption, pos,
size, style);
83 constwxString& caption,
constwxPoint& pos,
84 constwxSize&
size,
longstyle )
87SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
88wxDialog::Create( parent,
id, caption, pos,
size, style );
115wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
116itemDialog1->SetSizer(itemBoxSizer2);
118wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxVERTICAL);
119itemBoxSizer2->Add(itemBoxSizer3, 0, wxGROW|wxALL, 5);
121wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
122itemBoxSizer3->Add(itemBoxSizer4, 0, wxGROW, 5);
124itemBoxSizer4->Add(5, 5, 1, wxGROW|wxALL, 5);
126wxButton* itemButton6 =
newwxButton( itemDialog1,
RemoveAllButton,
_(
"Remove all markers"), wxDefaultPosition, wxDefaultSize, 0 );
127itemBoxSizer4->Add(itemButton6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
129wxStaticLine* itemStaticLine7 =
newwxStaticLine( itemDialog1, wxID_STATIC, wxDefaultPosition, wxSize(600, -1), wxLI_HORIZONTAL );
130itemBoxSizer3->Add(itemStaticLine7, 0, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM, 5);
133itemBoxSizer2->Add(
m_TopPanel, 1, wxGROW|wxALL, 5);
140wxBoxSizer* itemBoxSizer10 =
newwxBoxSizer(wxHORIZONTAL);
141itemBoxSizer2->Add(itemBoxSizer10, 0, wxALIGN_RIGHT|wxALL, 5);
143wxButton* itemButton11 =
newwxButton( itemDialog1, wxID_CANCEL,
_(
"Close"), wxDefaultPosition, wxDefaultSize, 0 );
144itemBoxSizer10->Add(itemButton11, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
152 if(info_vec.empty()) {
157list<CwxMarkerInfoPanel*>::iterator panel_iter =
m_MarkerPanels.begin();
162 if((*panel_iter)->GetMarkerId() == marker_info.
m_Id) {
170 if(panel ==
NULL) {
199 #ifdef __WXOSX_COCOA__ 201wxWindow* pp = GetParent();
203 f=
dynamic_cast<wxFrame*
>(pp);
204pp = pp->GetParent();
215 returnwxWindow::Show(show);
void OnRemoveAllButtonClick(wxCommandEvent &event)
bool Create(wxWindow *parent, wxWindowID id=10045, const wxString &caption=_("Marker Info"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(680, 600), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
wxBoxSizer * m_PanelSizer
void x_Send(CSeqMarkerEvent &event)
void OnCancelClick(wxCommandEvent &event)
list< CwxMarkerInfoPanel * > m_MarkerPanels
wxScrolledWindow * m_TopPanel
wxIcon GetIconResource(const wxString &name)
static bool ShowToolTips()
wxEvtHandler * m_EventHandler
vector< SMarkerInfo > SMarkerInfoVec
virtual bool Show(bool show=true)
void OnCloseWindow(wxCloseEvent &event)
wxBitmap GetBitmapResource(const wxString &name)
void UpdateMarker(const SMarkerInfoVec &info_vec)
void UpdateMarker(const SMarkerInfo &marker_info)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
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.
const struct ncbi::grid::netcache::search::fields::SIZE size
#define ID_SCROLLEDWINDOW
void RemoveChildWindow(wxFrame *parent, wxWindow *child)
For OSX Cocoa, removes child window connection (for layering) to parent.
wxString ToWxString(const string &s)
void AddChildWindowAbove(wxFrame *parent, wxWindow *child)
For OSX Cocoa, puts child window in front of (visually) parent.
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