(
intindex,
boolbShift,
boolbCtrl);
80 template<
classItem>
82: m_ProcessMouseUp(
false)
85 template<
classItem>
90 template<
classItem>
93m_ProcessMouseUp =
false;
94wxPoint ms_pos =
event.GetPosition();
95m_MouseDownPos = ms_pos;
100 intindex = SLC_GetLineByWindowY(ms_pos.y,
true);
104m_ProcessMouseUp =
true;
109 if(m_ProcessMouseUp) {
120m_ProcessMouseUp =
true;
137 template<
classItem>
140 if(event.Dragging()) {
141wxPoint pos =
event.GetPosition();
148 template<
classItem>
153 if(model && m_ProcessMouseUp) {
154wxPoint pos =
event.GetPosition();
155 intindex = SLC_GetLineByWindowY(pos.y,
true);
170m_ProcessMouseUp =
false;
174 template<
classItem>
180 int key=
event.GetKeyCode();
187 caseWXK_NUMPAD_HOME:
188x_SelectTo(0, b_shift, b_ctrl);
195 caseWXK_NUMPAD_DOWN:
196x_MoveSelectionBy(1, b_shift, b_ctrl);
200x_MoveSelectionBy(-1, b_shift, b_ctrl);
203 caseWXK_NUMPAD_PAGEUP:
204x_MoveSelLineByPage(
false, b_shift, b_ctrl);
207 caseWXK_NUMPAD_PAGEDOWN:
208x_MoveSelLineByPage(
true, b_shift, b_ctrl);
211x_SelectFocusedItem(b_ctrl);
225 template<
classItem>
234iFocused =
max(iFocused, 0);
238iFocused =
max(iFocused, 0);
239iFocused =
min(iFocused,
N- 1);
241x_SelectTo(iFocused, b_shift, b_ctrl);
246 template<
classItem>
260SLC_VertScrollToMakeVisible(index);
264 template<
classItem>
270 intPosY = SLC_GetHeight();
271 intiBottom = SLC_GetLineByWindowY(PosY);
274 if(iFocused == iBottom) {
276iBottom = SLC_GetLineByWindowY(PosY);
281x_SelectTo(iBottom, b_shift, b_ctrl);
283 intiTop = SLC_GetLineByWindowY(0);
286 if(iFocused == iTop) {
287 intPosY = SLC_GetHeight();
288iTop = SLC_GetLineByWindowY(PosY);
293x_SelectTo(iTop, b_shift, b_ctrl);
298 template<
classItem>
304 if(iFocused != -1) {
306 if( ! bSel || (bSel && bDeselectEn))
static EGUIState wxGetSelectState(const wxMouseEvent &event)
virtual ~CSelListController()
ISelListModel< Item > TSelListModel
virtual void SLC_VertScrollToMakeVisible(int index)=0
virtual void x_OnLeftDown(wxMouseEvent &event)
virtual int SLC_GetHeight()=0
virtual void x_OnMotion(wxMouseEvent &event)
virtual void x_OnLeftUp(wxMouseEvent &event)
void x_SelectFocusedItem(bool bDeselectEn)
virtual TSelListModel * SLC_GetModel()=0
void x_MoveSelLineByPage(bool bDown, bool bShift, bool bCtrl)
virtual void x_OnKeyDown(wxKeyEvent &event)
void x_MoveSelectionBy(int Shift, bool bShift, bool bCtrl)
void x_SelectTo(int index, bool bShift, bool bCtrl)
virtual int SLC_GetLineByWindowY(int WinY, bool b_clip=false)=0
virtual void SLM_InvertSingleItem(TIndex index)=0
virtual TIndex SLM_GetFocusedItemIndex() const =0
virtual void SLM_SelectAll(bool bSelect=true)=0
virtual TIndex SLM_GetItemsCount() const =0
virtual void SLM_SelectTo(TIndex index)=0
virtual bool SLM_IsItemSelected(TIndex index) const =0
virtual void SLM_FocusItem(TIndex index)=0
virtual void SLM_SelectSingleItem(TIndex index)=0
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::KEY key
The NCBI C++/STL use hints.
static const int kDragThreshold
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