2009-09-09 20:58 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* include/hbgtinfo.ch
+ #define HB_GTI_CODEC 60
* contrib/gtqtc/gtqtc.h
* contrib/gtqtc/gtqtc.cpp
+ Implemented CODEC support.
USAGE:
hb_gtInfo( HB_GTI_CODEC, "Windows-1251" )
hb_setCodePage( "RU1251" )
Please test as I have never used any codepage.
This commit is contained in:
@@ -17,6 +17,18 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2009-09-09 20:58 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
|
||||
* include/hbgtinfo.ch
|
||||
+ #define HB_GTI_CODEC 60
|
||||
|
||||
* contrib/gtqtc/gtqtc.h
|
||||
* contrib/gtqtc/gtqtc.cpp
|
||||
+ Implemented CODEC support.
|
||||
USAGE:
|
||||
hb_gtInfo( HB_GTI_CODEC, "Windows-1251" )
|
||||
hb_setCodePage( "RU1251" )
|
||||
Please test as I have never used any codepage.
|
||||
|
||||
2009-09-10 02:45 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* include/hbzlib.ch
|
||||
* Minor formatting.
|
||||
|
||||
@@ -911,6 +911,12 @@ static BOOL hb_gt_wvt_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo )
|
||||
|
||||
switch( iType )
|
||||
{
|
||||
case HB_GTI_CODEC:
|
||||
{
|
||||
QTextCodec * codec = QTextCodec::codecForName( ( char * ) hb_itemGetCPtr( pInfo->pNewVal ) );
|
||||
QTextCodec::setCodecForCStrings( codec );
|
||||
break;
|
||||
}
|
||||
case HB_GTI_FULLSCREEN:
|
||||
case HB_GTI_KBDSUPPORT:
|
||||
case HB_GTI_ISGRAPHIC:
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
#include <QtGui/QMouseEvent>
|
||||
#include <QtGui/QClipboard>
|
||||
#include <QtCore/QThread>
|
||||
#include <QtCore/QTextCodec>
|
||||
|
||||
#include "hbset.h"
|
||||
#include "hbgtcore.h"
|
||||
|
||||
@@ -138,6 +138,8 @@
|
||||
#define HB_GTI_CARGO 58 /* Storage of any user defined value */
|
||||
#define HB_GTI_FONTSEL 59 /* X11 style font selecting */
|
||||
|
||||
#define HB_GTI_CODEC 60 /* Instructs gtqtc to reqest for code page conversion class off Qt */
|
||||
|
||||
/* Font weights */
|
||||
#define HB_GTI_FONTW_THIN 1
|
||||
#define HB_GTI_FONTW_NORMAL 2
|
||||
|
||||
Reference in New Issue
Block a user