2012-08-03 21:30 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbide/resources/b_18.png
  * contrib/hbide/resources/b_19.png
  * contrib/hbide/resources/b_2.png
  * contrib/hbide/resources/b_5.png
  * contrib/hbide/resources/b_8.png
    % Reordered: to put more glamour to HbIDE.

  * contrib/hbide/edit.prg
  * contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp
    ! Fixed: tab key was misbehaving on an empty line.
    ! Fixed: while in column mode, if the original text cursor was 
       before logical cursor, insertion of any key was clearing the selection.
       An annoying bug it was.
This commit is contained in:
Pritpal Bedi
2012-08-04 04:36:00 +00:00
parent 0e9ca7db45
commit b050c23cd1
8 changed files with 34 additions and 18 deletions

View File

@@ -16,6 +16,21 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-08-03 21:30 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/resources/b_18.png
* contrib/hbide/resources/b_19.png
* contrib/hbide/resources/b_2.png
* contrib/hbide/resources/b_5.png
* contrib/hbide/resources/b_8.png
% Reordered: to put more glamour to HbIDE.
* contrib/hbide/edit.prg
* contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp
! Fixed: tab key was misbehaving on an empty line.
! Fixed: while in column mode, if the original text cursor was
before logical cursor, insertion of any key was clearing the selection.
An annoying bug it was.
2012-08-03 15:31 UTC+0200 Viktor Szakats (harbour syenar.net)
+ bin/commit.hb
+ bin/find.hb

View File

@@ -1238,7 +1238,11 @@ METHOD IdeEdit:handleTab( key )
ENDIF
cLine := ::getLine( nRow + 1 )
IF key == Qt_Key_Tab
cLine := substr( cLine, 1, nCol ) + cComment + substr( cLine, nCol + 1 )
IF empty( cLine )
cLine := cComment
ELSE
cLine := substr( cLine, 1, nCol ) + cComment + substr( cLine, nCol + 1 )
ENDIF
ELSE
cLine := substr( cLine, 1, nCol - nLen ) + substr( cLine, nCol + 1 )
ENDIF

Binary file not shown.

Before

Width:  |  Height:  |  Size: 589 B

After

Width:  |  Height:  |  Size: 739 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 463 B

After

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 742 B

After

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 739 B

After

Width:  |  Height:  |  Size: 755 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 755 B

After

Width:  |  Height:  |  Size: 589 B

View File

@@ -1249,26 +1249,23 @@ bool HBQPlainTextEdit::hbKeyPressSelection( QKeyEvent * event )
}
else if( ! ctrl && k >= ' ' && k < 127 && columnBegins >= 0 && selectionMode == selectionMode_column )
{
if( isCursorInSelection() )
if( block )
{
if( block )
{
PHB_ITEM p1 = hb_itemPutNI( NULL, 21013 );
PHB_ITEM p2 = hbqt_bindGetHbObject( NULL, ( void * ) event, "HB_QKEYEVENT", NULL, 0 ) ;
hb_vmEvalBlockV( block, 2, p1, p2 );
hb_itemRelease( p1 );
hb_itemRelease( p2 );
PHB_ITEM p1 = hb_itemPutNI( NULL, 21013 );
PHB_ITEM p2 = hbqt_bindGetHbObject( NULL, ( void * ) event, "HB_QKEYEVENT", NULL, 0 ) ;
hb_vmEvalBlockV( block, 2, p1, p2 );
hb_itemRelease( p1 );
hb_itemRelease( p2 );
if( columnBegins == columnEnds )
{
columnBegins++;
columnEnds++;
hbPostSelectionInfo();
}
event->accept();
repaint();
return true;
if( columnBegins == columnEnds )
{
columnBegins++;
columnEnds++;
hbPostSelectionInfo();
}
event->accept();
repaint();
return true;
}
else
{