From 283d49553dd6fd502953faedcc50da8194d73617 Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Tue, 4 Sep 2012 00:07:15 +0000 Subject: [PATCH] 2012-09-03 17:01 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbide/saveload.prg % Changed: the behavior of active item in dictionaries list. Now it is the most recent visited or first if first time. Pointed out by Maurizio. * contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp + Implemented: auto activation of column-selection mode if selction is made with mouse with ALT key is kept pressed. A request by Maurizio, which btw, seems to be logical. --- harbour/ChangeLog | 11 +++++++++++ harbour/contrib/hbide/saveload.prg | 4 +++- harbour/contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp | 5 +++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 67f9139573..9968ecf048 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,17 @@ The license applies to all entries newer than 2009-04-28. */ +2012-09-03 17:01 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbide/saveload.prg + % Changed: the behavior of active item in dictionaries list. + Now it is the most recent visited or first if first time. + Pointed out by Maurizio. + + * contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp + + Implemented: auto activation of column-selection mode if + selction is made with mouse with ALT key is kept pressed. + A request by Maurizio, which btw, seems to be logical. + 2012-09-03 15:35 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbide/editor.prg * contrib/hbide/misc.prg diff --git a/harbour/contrib/hbide/saveload.prg b/harbour/contrib/hbide/saveload.prg index d244eeb062..26243b45b9 100644 --- a/harbour/contrib/hbide/saveload.prg +++ b/harbour/contrib/hbide/saveload.prg @@ -2294,13 +2294,15 @@ METHOD IdeSetup:execEvent( nEvent, p, p1 ) /*----------------------------------------------------------------------*/ METHOD IdeSetup:uiDictionaries() - LOCAL oDict + LOCAL oDict, nRow + nRow := ::oUI:listDictNames:currentRow() ::oUI:listDictNames:clear() ::oUI:listDictNames:setCurrentRow( -1 ) FOR EACH oDict IN ::oIde:aUserDict ::oUI:listDictNames:addItem( oDict:cFilename ) NEXT + ::oUI:listDictNames:setCurrentRow( Max( nRow, 0 ) ) RETURN NIL diff --git a/harbour/contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp b/harbour/contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp index 32c0c6c54b..603ffbd4d4 100644 --- a/harbour/contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp +++ b/harbour/contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp @@ -1011,6 +1011,11 @@ void HBQPlainTextEdit::mouseMoveEvent( QMouseEvent *event ) } else if( mouseMode == mouseMode_select ) { + if( event->modifiers() & Qt::AltModifier ) + { + selectionMode = selectionMode_column; + } + extraSelections.clear(); setExtraSelections( extraSelections );