From 8fbf53d7bb49a14e688b817dbc1a0a4536caaca0 Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Tue, 28 Aug 2012 01:41:18 +0000 Subject: [PATCH] 2012-08-27 18:38 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbide/main.prg % Changed: the theme for the code fregment editors. ! Fixed: a small glich where only first window-full of source was being highlighted. --- harbour/ChangeLog | 6 ++++++ harbour/contrib/hbide/main.prg | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index ce1dd3b660..947bb37a70 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,12 @@ The license applies to all entries newer than 2009-04-28. */ +2012-08-27 18:38 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbide/main.prg + % Changed: the theme for the code fregment editors. + ! Fixed: a small glich where only first window-full of source + was being highlighted. + 2012-08-27 17:32 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbide/editor.prg * contrib/hbide/main.prg diff --git a/harbour/contrib/hbide/main.prg b/harbour/contrib/hbide/main.prg index 37ce25d32d..eecee0e10e 100644 --- a/harbour/contrib/hbide/main.prg +++ b/harbour/contrib/hbide/main.prg @@ -1559,12 +1559,12 @@ METHOD HbIde:showCodeFregment( oXbp ) qWidget:setWindowFlags( hb_bitOr( Qt_Sheet, Qt_CustomizeWindowHint, Qt_WindowTitleHint, Qt_WindowCloseButtonHint ) ) qWidget:setWindowTitle( oEdit:document():metaInformation( QTextDocument_DocumentTitle ) + " : " + cAnchor ) qWidget:setWindowIcon( QIcon( hbide_identifierImage( ::aTags[ n, 6 ] ) ) ) - qWidget:setGeometry( iif( Empty( ::qFuncFragmentWindowGeometry ), QRect( 500, 200, 300, 300 ), ::qFuncFragmentWindowGeometry:translated( 10,20 ) ) ) - qWidget:setPlainText( cCode ) qWidget:setWordWrapMode( QTextOption_NoWrap ) qWidget:setFont( QFont( "Courier New", 8 ) ) - qH := ::oTH:setSyntaxHilighting( qWidget ) + qH := ::oTH:setSyntaxHilighting( qWidget, "Pritpal's Favourite", , .F. ) qH:hbSetInitialized( .T. ) + qWidget:setPlainText( cCode ) + qWidget:setGeometry( iif( Empty( ::qFuncFragmentWindowGeometry ), QRect( 500, 200, 300, 300 ), ::qFuncFragmentWindowGeometry:translated( 10,20 ) ) ) qWidget:connect( QEvent_Close , {|| ::qFuncFragmentWindowGeometry := qWidget:geometry(), qWidget:setParent( QWidget() ) } ) qWidget:connect( QEvent_Move , {|| ::qFuncFragmentWindowGeometry := qWidget:geometry() } ) qWidget:connect( QEvent_Resize, {|| ::qFuncFragmentWindowGeometry := qWidget:geometry() } )