From 0d35f1c42b01f9e2e23c4ad716f368d4e117a179 Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Fri, 14 May 2010 14:17:07 +0000 Subject: [PATCH] 2010-15:14 07:01 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) * contrib/hbide/resources/curlinehilight.png ! Some refinement though not sufficient yet. * contrib/hbqt/hbqt_hbqplaintextedit.cpp * contrib/hbide/ideedit.prg ! More optimization and behavioral changes is selected text. Still litte more work to be done. * contrib/hbide/idesaveload.prg ! Reintroduced "settings.ide" .ini like file, placed along hbide.ini", to hold Qt written hbIDE settings. This reversal is triggered by the fact that, under unknown circumstances, Qt just mangles the hbIDE.ini contents to a level that a lot of information it stores is lost. This has happened to me many times after the settings info was made to be retained in hbIDE.ini itself. Please do not change it until I come up with the way to read and write byte arrays per Qt. Below is the little snapshot what Qt inserts some info inside existing other text not meant for "idesettings" keyword: ================================= [FIND] find_1=setselection find_2="imagesfind_3=images/" find_4=":/\r\nfind_5=ShowCaretAtCurrentPosition\r\nfind_6=moveExtendsSelection\r\nfind_7=oDlg\r\nfind_8[ MORE LIKE IT ] + ,,,,,\r\n \r\n[General]\r\n \r\n" [ ALL OTHER SECTIONS BELOW MANGLED AS ABOVE ] [General] hbidesettings="@ByteArray( [ PLUS MORE, IT IS CORRECT ] ================================= --- harbour/ChangeLog | 34 +++++++ harbour/contrib/hbide/ideedit.prg | 2 +- harbour/contrib/hbide/idesaveload.prg | 12 ++- .../hbide/resources/curlinehilight.png | Bin 1241 -> 415 bytes .../contrib/hbqt/hbqt_hbqplaintextedit.cpp | 88 ++++++++++++------ 5 files changed, 104 insertions(+), 32 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 5fd4c543e3..89b3c1317f 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,40 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-15:14 07:01 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) + * contrib/hbide/resources/curlinehilight.png + ! Some refinement though not sufficient yet. + + * contrib/hbqt/hbqt_hbqplaintextedit.cpp + * contrib/hbide/ideedit.prg + ! More optimization and behavioral changes is selected text. + Still litte more work to be done. + + * contrib/hbide/idesaveload.prg + ! Reintroduced "settings.ide" .ini like file, placed along + hbide.ini", to hold Qt written hbIDE settings. This reversal + is triggered by the fact that, under unknown circumstances, + Qt just mangles the hbIDE.ini contents to a level that a lot of + information it stores is lost. This has happened to me many + times after the settings info was made to be retained in + hbIDE.ini itself. Please do not change it until I come up + with the way to read and write byte arrays per Qt. + Below is the little snapshot what Qt inserts some info + inside existing other text not meant for "idesettings" keyword: + + ================================= + [FIND] + find_1=setselection + find_2="imagesfind_3=images/" + find_4=":/\r\nfind_5=ShowCaretAtCurrentPosition\r\nfind_6=moveExtendsSelection\r\nfind_7=oDlg\r\nfind_8[ MORE LIKE IT ] + + ,,,,,\r\n \r\n[General]\r\n \r\n" + + [ ALL OTHER SECTIONS BELOW MANGLED AS ABOVE ] + + [General] + hbidesettings="@ByteArray( [ PLUS MORE, IT IS CORRECT ] + ================================= + 2010-05-14 15:12 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbapicom.h * minor modification in defined names diff --git a/harbour/contrib/hbide/ideedit.prg b/harbour/contrib/hbide/ideedit.prg index 2c08a436b1..c19b15aabb 100644 --- a/harbour/contrib/hbide/ideedit.prg +++ b/harbour/contrib/hbide/ideedit.prg @@ -869,7 +869,7 @@ METHOD IdeEdit:insertBlockContents( aCord ) nW := nR - nL - cKey := chr( XbpQKeyEventToAppEvent( aCord[ 5 ] ) ) + cKey := chr( XbpQKeyEventToAppEvent( aCord[ 7 ] ) ) qCursor := QTextCursor():from( ::qEdit:textCursor() ) qCursor:beginEditBlock() diff --git a/harbour/contrib/hbide/idesaveload.prg b/harbour/contrib/hbide/idesaveload.prg index a6e51f962e..d20307fd62 100644 --- a/harbour/contrib/hbide/idesaveload.prg +++ b/harbour/contrib/hbide/idesaveload.prg @@ -71,16 +71,24 @@ /*----------------------------------------------------------------------*/ STATIC FUNCTION hbide_saveSettings( oIde ) + LOCAL cPath - hbqt_QMainWindow_saveSettings( oIde:cProjIni, "hbidesettings", oIde:oDlg:oWidget:pPtr ) + hb_fNameSplit( oIde:cProjIni, @cPath ) + hbqt_QMainWindow_saveSettings( cPath + "settings.ide", "hbidesettings", oIde:oDlg:oWidget:pPtr ) + + * hbqt_QMainWindow_saveSettings( oIde:cProjIni, "hbidesettings", oIde:oDlg:oWidget:pPtr ) RETURN nil /*----------------------------------------------------------------------*/ FUNCTION hbide_restSettings( oIde ) + LOCAL cPath - hbqt_QMainWindow_restSettings( oIde:cProjIni, "hbidesettings", oIde:oDlg:oWidget:pPtr ) + hb_fNameSplit( oIde:cProjIni, @cPath ) + hbqt_QMainWindow_restSettings( cPath + "settings.ide", "hbidesettings", oIde:oDlg:oWidget:pPtr ) + + * hbqt_QMainWindow_restSettings( oIde:cProjIni, "hbidesettings", oIde:oDlg:oWidget:pPtr ) RETURN nil diff --git a/harbour/contrib/hbide/resources/curlinehilight.png b/harbour/contrib/hbide/resources/curlinehilight.png index 7452b900455c65608f1858327c3841e33c43b3c8..f556f902e03c8303a277138b2c7c4e9d7aa2fe7a 100644 GIT binary patch delta 400 zcmV;B0dM}<37-Ry8Gi-<001BJ|6u?C0cJ@=K~#9!V`QKZFv1uaedqrZtLewX3k(Y; zCNiQJP&(tv|LzPOMqHXc|Nj5~?bkmHAO12jOlVq++W_^(t9V_qBvqARYUff+14^b| z_}`OlfZ~GhzyJOJ^5ZYVufP8pzW)Bl@ZrZlhR=T)7#8=h#D6rPXu|3LeFdfjUC