1 #ifndef __GUI_WIDGETS_ALNMULTI___LINEAR_SEL_HANDLER__HPP
2 #define __GUI_WIDGETS_ALNMULTI___LINEAR_SEL_HANDLER__HPP
120 void Render(
CGlPane& Pane, ERenderingOption
option = eActiveState);
124 void SetShowRangeCoords(
bool flag);
129 void SetSelection(
const TRangeColl&
C,
bool bRedraw);
130 void ResetSelection(
bool bRedraw);
132 void OnLeftDown(wxMouseEvent& event);
133 void OnLeftDoubleClick(wxMouseEvent& event);
134 void OnLeftUp(wxMouseEvent& event);
135 void OnMotion(wxMouseEvent& event);
136 void OnMouseCaptureLost(wxMouseCaptureLostEvent& evt);
141 void x_OnChangeSelRange(
const wxPoint& ms_pos);
142 void x_OnEndSelRange();
146 void x_OnSelectCursor(
const wxPoint& ms_pos);
154 TModelUnit x_MouseToSeqPos(
const wxPoint& ms_pos);
157 void x_HitTest(
const wxPoint& ms_pos,
TSeqRange& Range,
bool& bHitStart);
159 void x_AddToSelection(
const TSeqRange& Range);
160 void x_RemoveFromSelection(
const TSeqRange& Range);
CGUIEvent provides mapping of FLTK events to Semantic Events.
Class CLinearSelHandler represents in GUI a one-dimnesional multi-segment selection.
EOpType x_GetOpTypeByEvent(CGUIEvent &event) const
EOrientation m_Orientation
TSeqRange m_CurrRange
range being modified
EOpType m_OpType
operation type
EExtState m_ExtState
current range extension state
bool m_ShowCoordinates
Flag indicating to show range coordinates during selection.
CRangeCollection< TSeqPos > TRangeColl
void x_OnOpChange(CGUIEvent &event)
CRgbaColor m_PassiveSelColor
class CRgbaColor provides a simple abstraction for managing colors.
virtual void SetPane(CGlPane *)
virtual wxEvtHandler * GetEvtHandler()=0
virtual TModelUnit SHH_GetModelByWindow(int z, EOrientation orient)=0
virtual ~ISelHandlerHost()
virtual void SHH_OnChanged()=0
virtual TVPUnit SHH_GetWindowByModel(TModelUnit z, EOrientation orient)=0
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_GL_EXPORT
The NCBI C++/STL use hints.