2010-02-22 17:23 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbqt_hbdbfmodel.cpp
* contrib/hbqt/hbqt_hbqsyntaxhighlighter.cpp
* contrib/hbqt/hbqt_hbqtableview.cpp
* contrib/hbqt/hbqt_hbevents.cpp
* contrib/hbqt/hbqt_destruct.cpp
* contrib/hbqt/hbqt_utils.cpp
* contrib/hbqt/hbqt_hbqmainwindow.cpp
* contrib/hbqt/hbqt_hbqplaintextedit.cpp
* contrib/hbqt/hbqt_base.cpp
* contrib/hbqt/hbqt_hbslots.cpp
* Cleaned header inclusion order after adding hbapi.h to hbqt.h.
* config/os2/gcc.mk
! Fixed to use '-Wl,' trick proposed by Przemek, to forward obj list
script filename directly to linker.
This gets around the problem where gcc tries to pass expanded
scripts to subprocesses (ld) via cmdline, thus imposing a 32K
limit also to script files.
This commit is contained in:
@@ -17,6 +17,26 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2010-02-22 17:23 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* contrib/hbqt/hbqt_hbdbfmodel.cpp
|
||||
* contrib/hbqt/hbqt_hbqsyntaxhighlighter.cpp
|
||||
* contrib/hbqt/hbqt_hbqtableview.cpp
|
||||
* contrib/hbqt/hbqt_hbevents.cpp
|
||||
* contrib/hbqt/hbqt_destruct.cpp
|
||||
* contrib/hbqt/hbqt_utils.cpp
|
||||
* contrib/hbqt/hbqt_hbqmainwindow.cpp
|
||||
* contrib/hbqt/hbqt_hbqplaintextedit.cpp
|
||||
* contrib/hbqt/hbqt_base.cpp
|
||||
* contrib/hbqt/hbqt_hbslots.cpp
|
||||
* Cleaned header inclusion order after adding hbapi.h to hbqt.h.
|
||||
|
||||
* config/os2/gcc.mk
|
||||
! Fixed to use '-Wl,' trick proposed by Przemek, to forward obj list
|
||||
script filename directly to linker.
|
||||
This gets around the problem where gcc tries to pass expanded
|
||||
scripts to subprocesses (ld) via cmdline, thus imposing a 32K
|
||||
limit also to script files.
|
||||
|
||||
2010-02-22 15:20 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* config/os2/gcc.mk
|
||||
+ Attempt to fix direct ld usage to create Harbour .dlls.
|
||||
@@ -24,13 +44,13 @@
|
||||
|
||||
* INSTALL
|
||||
- Deleted TCPV4 header instructions for OS/2. (they still
|
||||
works, it just got less emphasis with this)
|
||||
work, it just got less emphasis with this)
|
||||
|
||||
2010-02-22 15:06 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* include/hbdefs.h
|
||||
! Fixed to not #include <dos.h> unconditionally. This should
|
||||
be done by specific source code, if needed. INCOMPATIBLE,
|
||||
if source code relied on this behavior. From now on it,
|
||||
if source code relied on this behavior. From now on, it
|
||||
should include dos.h manually.
|
||||
|
||||
* src/vm/thread.c
|
||||
|
||||
@@ -107,18 +107,13 @@ else
|
||||
AR_RULE = $(create_library) $(ARSTRIP) & $(RM) __lib__.tmp
|
||||
endif
|
||||
|
||||
ifeq ($(HB_COMPILER),gccomf)
|
||||
DY := $(HB_CCPATH)$(HB_CCPREFIX)emxomfld
|
||||
else
|
||||
DY := $(HB_CCPATH)$(HB_CCPREFIX)ld
|
||||
endif
|
||||
DY := $(CC)
|
||||
DFLAGS += -shared $(LIBPATHS)
|
||||
ifeq ($(HB_COMPILER),gccomf)
|
||||
DFLAGS += -Zomf
|
||||
endif
|
||||
DY_OUT := $(LD_OUT)
|
||||
DLIBPATHS := $(foreach dir,$(HB_COMP_PATH_PUB)..\lib $(subst ;, ,$(LIBRARY_PATH)),-L$(dir))
|
||||
DLIBS := $(foreach lib,$(HB_USER_LIBS) $(LIBS) $(SYSLIBS) c_alias c_dll os2 gcc_so_d,-l$(lib))
|
||||
DLIBS := $(foreach lib,$(HB_USER_LIBS) $(LIBS) $(SYSLIBS),-l$(lib))
|
||||
|
||||
# NOTE: The empty line directly before 'endef' HAS TO exist!
|
||||
define dyn_object
|
||||
@@ -136,7 +131,7 @@ define create_dynlib
|
||||
@$(ECHO) $(ECHOQUOTE)DATA PRELOAD MOVEABLE MULTIPLE NONSHARED$(ECHOQUOTE) >> __dyn__.def
|
||||
@$(ECHO) $(ECHOQUOTE)EXPORTS$(ECHOQUOTE) >> __dyn__.def
|
||||
$(foreach file,$^,$(dyn_object))
|
||||
$(DY) $(DFLAGS) $(HB_USER_DFLAGS) $(DLIBPATHS) $(DY_OUT)$(DYN_DIR)/$@ dll0$(OBJ_EXT) @__dyn__.tmp __dyn__.def $(DLIBS) $(DYSTRIP)
|
||||
$(DY) $(DFLAGS) $(HB_USER_DFLAGS) $(DY_OUT)$(DYN_DIR)/$@ -Wl,@__dyn__.tmp __dyn__.def $(DLIBS) $(DYSTRIP)
|
||||
emximp -o $(IMP_FILE) $(DYN_DIR)/$@
|
||||
endef
|
||||
|
||||
|
||||
@@ -52,8 +52,6 @@
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "hbapi.h"
|
||||
|
||||
#include "hbqt.h"
|
||||
|
||||
HB_FUNC( QT_VERSION )
|
||||
|
||||
@@ -51,12 +51,11 @@
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbqt.h"
|
||||
|
||||
#include "hbapiitm.h"
|
||||
#include "hbvm.h"
|
||||
|
||||
#include "hbqt.h"
|
||||
|
||||
#if QT_VERSION >= 0x040500
|
||||
|
||||
#include <QTextCodec>
|
||||
|
||||
@@ -51,12 +51,11 @@
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbqt.h"
|
||||
|
||||
#include "hbapiitm.h"
|
||||
#include "hbvm.h"
|
||||
|
||||
#include "hbqt.h"
|
||||
|
||||
#if QT_VERSION >= 0x040500
|
||||
|
||||
#include "hbqt_hbdbfmodel.h"
|
||||
|
||||
@@ -53,13 +53,12 @@
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbqt.h"
|
||||
|
||||
#include "hbapiitm.h"
|
||||
#include "hbstack.h"
|
||||
#include "hbvm.h"
|
||||
|
||||
#include "hbqt.h"
|
||||
|
||||
#if QT_VERSION >= 0x040500
|
||||
|
||||
#include "hbqt_hbevents.h"
|
||||
|
||||
@@ -51,13 +51,12 @@
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbqt.h"
|
||||
|
||||
#include "hbapiitm.h"
|
||||
#include "hbthread.h"
|
||||
#include "hbvm.h"
|
||||
|
||||
#include "hbqt.h"
|
||||
|
||||
#if QT_VERSION >= 0x040500
|
||||
|
||||
#include "hbqt_hbqmainwindow.h"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
* Harbour-Qt wrapper generator.
|
||||
*
|
||||
* Copyright 2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* Copyright 2009 Gancov Kostya <kossne@mail.ru>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -51,8 +52,6 @@
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
/*
|
||||
* Copyright( C ) 2009 by Gancov Kostya < kossne@mail.ru >
|
||||
*
|
||||
* The code below is puled from TextEdit.cpp of QWriter by Gancov Kotsya
|
||||
*
|
||||
* and adopted for Harbour's hbIDE interface. The code has been intensively
|
||||
@@ -66,18 +65,16 @@
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbqt.h"
|
||||
|
||||
#include "hbapiitm.h"
|
||||
#include "hbthread.h"
|
||||
#include "hbvm.h"
|
||||
|
||||
#include "hbqt.h"
|
||||
|
||||
#if QT_VERSION >= 0x040500
|
||||
|
||||
#include "hbqt_hbqplaintextedit.h"
|
||||
|
||||
|
||||
HBQPlainTextEdit::HBQPlainTextEdit( QWidget * parent ) : QPlainTextEdit( parent )
|
||||
{
|
||||
spaces = 3;
|
||||
@@ -115,9 +112,7 @@ HBQPlainTextEdit::~HBQPlainTextEdit()
|
||||
void HBQPlainTextEdit::hbSetEventBlock( PHB_ITEM pBlock )
|
||||
{
|
||||
if( pBlock )
|
||||
{
|
||||
block = hb_itemNew( pBlock );
|
||||
}
|
||||
}
|
||||
|
||||
bool HBQPlainTextEdit::event( QEvent *event )
|
||||
@@ -191,9 +186,7 @@ void HBQPlainTextEdit::paintEvent( QPaintEvent * event )
|
||||
painter.fillRect( r, br );
|
||||
}
|
||||
else if( highlightCurLine == true )
|
||||
{
|
||||
painter.fillRect( r, QBrush( m_currentLineColor ) );
|
||||
}
|
||||
}
|
||||
this->paintColumnSelection( event );
|
||||
|
||||
@@ -263,9 +256,7 @@ void HBQPlainTextEdit::bookmarks( int block )
|
||||
qSort( bookMark );
|
||||
}
|
||||
else
|
||||
{
|
||||
bookMark.remove( found );
|
||||
}
|
||||
|
||||
found = -1;
|
||||
int i = 0;
|
||||
@@ -278,10 +269,9 @@ void HBQPlainTextEdit::bookmarks( int block )
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if( found == -1 )
|
||||
{
|
||||
bookMarksGoto.append( block );
|
||||
}
|
||||
|
||||
lineNumberArea->repaint();
|
||||
update();
|
||||
@@ -380,16 +370,12 @@ void HBQPlainTextEdit::setSpaces( int newSpaces )
|
||||
if( spaces > 0 )
|
||||
{
|
||||
for( int i = 0; i < spaces; ++i )
|
||||
{
|
||||
spacesTab += " ";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if( spaces == -101 )
|
||||
{
|
||||
spacesTab = "\t";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -410,12 +396,11 @@ int HBQPlainTextEdit::getLine( const QTextCursor &crQTextCursor )
|
||||
for( b = document()->begin();b!=document()->end();b = b.next() )
|
||||
{
|
||||
if( b==cb )
|
||||
{
|
||||
return line;
|
||||
}
|
||||
|
||||
line++;
|
||||
}
|
||||
return( line );
|
||||
return line;
|
||||
}
|
||||
|
||||
void HBQPlainTextEdit::slotCursorPositionChanged()
|
||||
@@ -424,9 +409,7 @@ void HBQPlainTextEdit::slotCursorPositionChanged()
|
||||
viewport()->update();
|
||||
|
||||
if( styleHightlighter != "none" )
|
||||
{
|
||||
braceHighlight();
|
||||
}
|
||||
}
|
||||
|
||||
void HBQPlainTextEdit::setStyleHightlighter( const QString &style )
|
||||
@@ -458,9 +441,8 @@ void HBQPlainTextEdit::escapeQuotes()
|
||||
QTextCursor cursor( textCursor() );
|
||||
QString selTxt( cursor.selectedText() );
|
||||
if( selTxt.isEmpty() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
QString txt = selTxt.replace( QString( "'" ), QString( "\\\'" ) );
|
||||
insertPlainText( txt );
|
||||
}
|
||||
@@ -470,9 +452,8 @@ void HBQPlainTextEdit::escapeDQuotes()
|
||||
QTextCursor cursor( textCursor() );
|
||||
QString selTxt( cursor.selectedText() );
|
||||
if( selTxt.isEmpty() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
QString txt = selTxt.replace( QString( "\"" ), QString( "\\\"" ) );
|
||||
insertPlainText( txt );
|
||||
}
|
||||
@@ -482,9 +463,8 @@ void HBQPlainTextEdit::unescapeQuotes()
|
||||
QTextCursor cursor( textCursor() );
|
||||
QString selTxt( cursor.selectedText() );
|
||||
if( selTxt.isEmpty() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
QString txt = selTxt.replace( QString( "\\\'" ), QString( "'" ) );
|
||||
insertPlainText( txt );
|
||||
}
|
||||
@@ -494,9 +474,8 @@ void HBQPlainTextEdit::unescapeDQuotes()
|
||||
QTextCursor cursor( textCursor() );
|
||||
QString selTxt( cursor.selectedText() );
|
||||
if( selTxt.isEmpty() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
QString txt = selTxt.replace( QString( "\\\"" ), QString( "\"" ) );
|
||||
insertPlainText( txt );
|
||||
}
|
||||
@@ -506,9 +485,8 @@ void HBQPlainTextEdit::caseUpper()
|
||||
QTextCursor cursor = textCursor();
|
||||
QString selTxt( cursor.selectedText() );
|
||||
if( selTxt.isEmpty() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int b = cursor.selectionStart();
|
||||
int e = cursor.selectionEnd();
|
||||
cursor.beginEditBlock();
|
||||
@@ -526,9 +504,8 @@ void HBQPlainTextEdit::caseLower()
|
||||
QTextCursor cursor = textCursor();
|
||||
QString selTxt( cursor.selectedText() );
|
||||
if( selTxt.isEmpty() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int b = cursor.selectionStart();
|
||||
int e = cursor.selectionEnd();
|
||||
cursor.beginEditBlock();
|
||||
@@ -546,9 +523,8 @@ void HBQPlainTextEdit::convertQuotes()
|
||||
QTextCursor cursor = textCursor();
|
||||
QString selTxt( cursor.selectedText() );
|
||||
if( selTxt.isEmpty() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int b = cursor.selectionStart();
|
||||
int e = cursor.selectionEnd();
|
||||
cursor.beginEditBlock();
|
||||
@@ -566,9 +542,8 @@ void HBQPlainTextEdit::convertDQuotes()
|
||||
QTextCursor cursor = textCursor();
|
||||
QString selTxt( cursor.selectedText() );
|
||||
if( selTxt.isEmpty() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int b = cursor.selectionStart();
|
||||
int e = cursor.selectionEnd();
|
||||
cursor.beginEditBlock();
|
||||
@@ -586,9 +561,8 @@ void HBQPlainTextEdit::replaceSelection( const QString & txt )
|
||||
QTextCursor cursor = textCursor();
|
||||
QString selTxt( cursor.selectedText() );
|
||||
if( selTxt.isEmpty() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int b = cursor.selectionStart();
|
||||
cursor.beginEditBlock();
|
||||
|
||||
@@ -605,9 +579,8 @@ void HBQPlainTextEdit::streamComment()
|
||||
QTextCursor cursor = textCursor();
|
||||
QString selTxt( cursor.selectedText() );
|
||||
if( selTxt.isEmpty() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int b = cursor.selectionStart();
|
||||
int e = cursor.selectionEnd();
|
||||
cursor.beginEditBlock();
|
||||
@@ -625,17 +598,18 @@ QString HBQPlainTextEdit::getSelectedText()
|
||||
QTextCursor cursor( textCursor() );
|
||||
QString selTxt( cursor.selectedText() );
|
||||
if( selTxt.isEmpty() )
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
QString txt = selTxt.replace( 0x2029, QString( "\n" ) );
|
||||
return txt;
|
||||
}
|
||||
|
||||
void HBQPlainTextEdit::paintColumnSelection( QPaintEvent *event )
|
||||
void HBQPlainTextEdit::paintColumnSelection( QPaintEvent * event )
|
||||
{
|
||||
QTextCursor c = textCursor();
|
||||
|
||||
HB_SYMBOL_UNUSED( event );
|
||||
|
||||
if( isColumnSelectionEnabled && c.hasSelection() )
|
||||
{
|
||||
if( columnBegins >= 0 && columnEnds >= 0 )
|
||||
@@ -905,9 +879,7 @@ void HBQPlainTextEdit::braceHighlight()
|
||||
brace = cursor.selectedText();
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
QTextCharFormat format;
|
||||
@@ -960,9 +932,7 @@ void HBQPlainTextEdit::braceHighlight()
|
||||
cursor1 = doc->find( closeBrace, cursor1 );
|
||||
cursor2 = doc->find( openBrace, cursor2 );
|
||||
if( cursor2.isNull() )
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
selection.cursor = cursor;
|
||||
extraSelections.append( selection );
|
||||
@@ -973,7 +943,8 @@ void HBQPlainTextEdit::braceHighlight()
|
||||
}
|
||||
else
|
||||
{
|
||||
if( brace == closeBrace ) {
|
||||
if( brace == closeBrace )
|
||||
{
|
||||
QTextCursor cursor1 = doc->find( openBrace, cursor, QTextDocument::FindBackward );
|
||||
QTextCursor cursor2 = doc->find( closeBrace, cursor, QTextDocument::FindBackward );
|
||||
if( cursor2.isNull() )
|
||||
@@ -991,9 +962,7 @@ void HBQPlainTextEdit::braceHighlight()
|
||||
cursor1 = doc->find( openBrace, cursor1, QTextDocument::FindBackward );
|
||||
cursor2 = doc->find( closeBrace, cursor2, QTextDocument::FindBackward );
|
||||
if( cursor2.isNull() )
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
selection.cursor = cursor;
|
||||
extraSelections.append( selection );
|
||||
|
||||
@@ -51,8 +51,6 @@
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "hbapi.h"
|
||||
|
||||
#include "hbqt.h"
|
||||
|
||||
#if QT_VERSION >= 0x040500
|
||||
|
||||
@@ -53,8 +53,6 @@
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "hbapi.h"
|
||||
|
||||
#include "hbqt.h"
|
||||
|
||||
#if QT_VERSION >= 0x040500
|
||||
|
||||
@@ -53,13 +53,12 @@
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbqt.h"
|
||||
|
||||
#include "hbapiitm.h"
|
||||
#include "hbstack.h"
|
||||
#include "hbvm.h"
|
||||
|
||||
#include "hbqt.h"
|
||||
|
||||
#if QT_VERSION >= 0x040500
|
||||
|
||||
#include "hbqt_hbslots.h"
|
||||
|
||||
@@ -52,11 +52,10 @@
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbapiitm.h"
|
||||
|
||||
#include "hbqt.h"
|
||||
|
||||
#include "hbapiitm.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user