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.
This commit is contained in:
Pritpal Bedi
2012-08-28 01:41:18 +00:00
parent 9022ad621c
commit 8fbf53d7bb
2 changed files with 9 additions and 3 deletions

View File

@@ -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

View File

@@ -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() } )