initialized =
false;
147wxFlexGridSizer* sizer =
newwxFlexGridSizer(3, 1, 0, 0);
148this->SetSizer(sizer);
150sizer->AddGrowableCol(0);
151sizer->AddGrowableRow(1);
154wxScrollBar* sb =
newwxScrollBar(
this,
ID_SCROLLBAR_Q, wxDefaultPosition,
155wxDefaultSize, wxSB_HORIZONTAL);
156sizer->Add(sb, 0, wxEXPAND);
158sizer->Add(child_pane, 1, wxEXPAND);
161wxDefaultSize, wxSB_HORIZONTAL);
162sizer->Add(sb, 0, wxEXPAND);
215 boolen = sel1.
size() || sel2.
size();
240 const IHitSeqId* query_id = &ds->GetQueryId();
241 const IHitSeqId* subject_id = &ds->GetSubjectId();
244ds->GetParams(old_params);
248dlg.SetTitle(
wxT(
"Choose Alignments to Display..."));
252 if(dlg.ShowModal() == wxID_OK) {
257 if(! new_subject_id->
Equals(*subject_id) ||
258! new_query_id->
Equals(*query_id) || ! (old_params == params)) {
259query_id = new_query_id;
260subject_id = new_subject_id;
262 if(!(old_params == params))
263ds->SetParams(params,
false);
265ds->SelectIds(*subject_id, *query_id);
387child_pane->GetClientSize(&w, &h);
389 TVPRectrcVP(0, 0, w - 1, h - 1);
428sbQ->SetScrollbar(position, thumb_size,
kScrollRange, page_size);
438sbS->SetScrollbar(position, thumb_size,
kScrollRange, page_size);
445 boollock = wxGetKeyState(WXK_SHIFT);
446 doublepQ =
m_CrossPane->NormalizeQ(event.GetPosition());
455 boollock = wxGetKeyState(WXK_SHIFT);
456 doublepS =
m_CrossPane->NormalizeS( event.GetPosition() );
578unique_ptr<wxMenu> menu(cmd_reg.
CreateMenu(sPopupMenu));
579PopupMenu(menu.get());
this class converts model units to the integers distribited in [0, m_IntRange] and vice versa
int RealToInt(double real)
int SizeToInt(double size)
position_type GetToOpen() const
position_type GetFrom() const
CUICommandRegistry is a centralized registry where all application commands should be registered.
static CUICommandRegistry & GetInstance()
the main instance associated with the application
wxMenu * CreateMenu(const SwxMenuItemRec *items)
create a menu from a static definition (see WX_*_MENU macros)
int RegisterCommand(CUICommand *cmd)
assumes ownership of the given object returns a command id (useful when registry is used for auto id ...
const IHitSeqId * GetSubjectId()
const IHitSeqId * GetQueryId()
void SetSeqs(CIRef< IHitMatrixDataSource > ds)
void GetParams(IHitMatrixDataSource::SParams ¶ms) const
IHitMatrixDataSource - abstract Data Source for Hit Matrix Widget.
IHitSeqId - abstract identifier of a sequence in an alignment.
virtual bool Equals(const IHitSeqId &id) const =0
unsigned int TSeqPos
Type for sequence locations and lengths.
TModelRect & GetVisibleRect(void)
vector< CConstRef< CObject > > TConstObjects
@ eCmdZoomIn
empty command
@ eCmdZoomSeq
Zoom to Selection.
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void SetFrom(TFrom value)
Assign a value to From data member.
TTo GetTo(void) const
Get the To member data.
TFrom GetFrom(void) const
Get the From member data.
void SetTo(TTo value)
Assign a value to To data member.
const struct ncbi::grid::netcache::search::fields::SIZE size
ViewerWindowBase::OnEditMenu ViewerWindowBase::OnJustification EVT_MENU(MID_SHOW_GEOM_VLTNS, ViewerWindowBase::OnShowGeomVltns) EVT_MENU(MID_FIND_PATTERN
#define WX_DEFINE_MENU(name)
New macros for defining menus for use with CUICommandRegistry.
#define WX_SUBMENU(label)
#define WX_MENU_ITEM(cmd)
#define WX_MENU_SEPARATOR()
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