2011-06-07 18:15 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbide/ideactions.prg
  * contrib/hbide/idemain.prg
    ! Reverted: latest changes affecting <Setup><CodePage> sub-menu.
This commit is contained in:
Pritpal Bedi
2011-06-08 01:17:31 +00:00
parent 42a68ed7da
commit ee8c43310c
3 changed files with 12 additions and 12 deletions

View File

@@ -16,6 +16,11 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-06-07 18:15 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/ideactions.prg
* contrib/hbide/idemain.prg
! Reverted: latest changes affecting <Setup><CodePage> sub-menu.
2011-06-08 00:27 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* examples/superlib/superlib.hbp
* examples/ps32/ps32.hbp

View File

@@ -843,7 +843,7 @@ STATIC FUNCTION hbide_buildCDPMenu( oIde, oMenu )
oSubMenu := XbpMenu():new( oMenu, , .t. ):create()
FOR EACH cdp IN get_list_of_real_codepages()
oSubMenu:addItem( { cdp[ 1 ] + ":" + cdp[ 2 ], get_cdp_block( oIde, cdp[ 1 ] ) } )
oSubMenu:addItem( { hb_cdpUniID( cdp ), get_cdp_block( oIde, hb_cdpUniID( cdp ) ) } )
NEXT
RETURN oSubMenu
@@ -857,9 +857,9 @@ STATIC FUNCTION get_list_of_real_codepages()
STATIC s_uni
IF empty( s_uni )
s_uni := {}
s_uni := { => }
FOR EACH cdp IN hb_cdpList()
aadd( s_uni, { cdp, hb_cdpUniID( cdp ) } )
s_uni[ hb_cdpUniID( cdp ) ] := cdp
NEXT
ENDIF
@@ -868,9 +868,9 @@ STATIC FUNCTION get_list_of_real_codepages()
FUNCTION hbide_getCDPforID( cCodec )
LOCAL cdp
FOR EACH cdp IN get_list_of_real_codepages()
IF cdp[ 1 ] == cCodec
RETURN cdp[ 2 ]
FOR EACH cdp IN hb_cdpList()
IF hb_cdpUniID( cdp ) == cCodec
RETURN cdp
ENDIF
NEXT

View File

@@ -1593,15 +1593,10 @@ METHOD HbIde:updateTitleBar()
/*----------------------------------------------------------------------*/
METHOD HbIde:setCodec( cCodec )
LOCAL n
DEFAULT cCodec TO ::cWrkCodec
IF ( n := at( ":", cCodec ) ) > 0
cCodec := substr( cCodec, 1, n-1 )
ENDIF
::cWrkCodec := cCodec
::cWrkCodec := hbide_getCDPforID( cCodec )
::oDK:setStatusText( SB_PNL_CODEC, ::cWrkCodec + ":" + hb_cdpUniID( ::cWrkCodec ) )