diff options
Diffstat (limited to 'kjsembed/docs')
97 files changed, 767 insertions, 767 deletions
diff --git a/kjsembed/docs/ChangeLog b/kjsembed/docs/ChangeLog index f5d5ff03..a201c55c 100644 --- a/kjsembed/docs/ChangeLog +++ b/kjsembed/docs/ChangeLog @@ -25,7 +25,7 @@ 2004-12-11 Saturday 07:15 geiseri - Use extractQObject here because it is safer. + Use extractTQObject here because it is safer. 2004-12-11 Saturday 07:15 geiseri @@ -73,43 +73,43 @@ 2004-12-10 Friday 12:59 geiseri - Implemented better QVariant to JSObject mappings. The big change here - that Javascript arrays and Javascript objects can be mapped to QVariants + Implemented better TQVariant to JSObject mappings. The big change here + that Javascript arrays and Javascript objects can be mapped to TQVariants in C++. Conversions break down as follows: - QStringList -> Array of javascript strings. - QValueList<QVariant> -> Array of Javascript values. - QMap<QString,QVariant> -> Object/Array that has each QString key as - a property, and the QVariant is mapped to a Javascript value. + TQStringList -> Array of javascript strings. + TQValueList<TQVariant> -> Array of Javascript values. + TQMap<TQString,TQVariant> -> Object/Array that has each TQString key as + a property, and the TQVariant is mapped to a Javascript value. From Javascript the conversions are a little different. All arrays that have a numeric index will be converted to - QValueList<QVariant> QVariants. These can be mapped to both - QStringList and to normal QValueList. An example would be like this: + TQValueList<TQVariant> TQVariants. These can be mapped to both + TQStringList and to normal TQValueList. An example would be like this: KJS::Value someArrayValue; - QStringList strLst = convertToVariant(exec, someArrayValue).toStringList(); - QValueList<QVariant> varLst + TQStringList strLst = convertToVariant(exec, someArrayValue).toStringList(); + TQValueList<TQVariant> varLst = convertToVariant( exec, someArrayValue).toList(); Now if the Javascript value is a Javascript object or a map then - the conversion will go to a QMap<QString,QVariant>. An example of + the conversion will go to a TQMap<TQString,TQVariant>. An example of this would be like: KJS::Value someJSObject; - QMap<QString,QVariant> map = convertToVariant(exec,someJSObject) + TQMap<TQString,TQVariant> map = convertToVariant(exec,someJSObject) .toMap(); - QString someVal = map["someProp"].toString(); + TQString someVal = map["someProp"].toString(); This is done via some testing of the array and you can trip it up in some cases: - 1) If the object is empty, or null will return an empty QMap + 1) If the object is empty, or null will return an empty TQMap 2) If the object is an array that has the last element null - then a QMap will be returned. + then a TQMap will be returned. The first case is not much of an issue because an empty variant is the same for all types, but the second case can cause unexpected results. In cases of sparse arrays the empty values will be filled in - with empty QVariants in the QValueList. + with empty TQVariants in the TQValueList. 2004-12-10 Friday 12:42 geiseri @@ -117,7 +117,7 @@ Example shows the following: 1) Embedding KJSEmbed. 2) Calling Javascript methods from C++. - 3) Transparent mapping of custom javascript objects into QVariant maps. + 3) Transparent mapping of custom javascript objects into TQVariant maps. 4) Adding widgets to a C++ based form from Javascript. 5) Execution of a script from outside of the main application. @@ -127,7 +127,7 @@ 2004-12-09 Thursday 15:09 geiseri - torture test for QFrame, still fails. + torture test for TQFrame, still fails. 2004-12-09 Thursday 15:07 geiseri @@ -135,7 +135,7 @@ 2004-12-08 Wednesday 11:15 geiseri - Added a QVariant slot so C++ bindings can easier get more + Added a TQVariant slot so C++ bindings can easier get more complex data types into the bindings. 2004-12-08 Wednesday 11:12 geiseri @@ -145,7 +145,7 @@ 2004-12-08 Wednesday 11:12 geiseri - Removed debug information that was screwing with QVariants. + Removed debug information that was screwing with TQVariants. 2004-12-07 Tuesday 20:10 staikos @@ -153,7 +153,7 @@ 2004-12-07 Tuesday 12:02 geiseri - do not delete a QWidget if you are painting on it, its rude + do not delete a TQWidget if you are painting on it, its rude 2004-12-07 Tuesday 12:01 geiseri @@ -165,10 +165,10 @@ 2004-12-06 Monday 14:07 geiseri - With new API QListViewItem objects now iterate properly. + With new API TQListViewItem objects now iterate properly. - QListView::firstChild() and QListView::currentSelection now work. - QListViewItems can now iterate property. + TQListView::firstChild() and TQListView::currentSelection now work. + TQListViewItems can now iterate property. The test now shows how to use these methods. @@ -186,7 +186,7 @@ 2004-12-05 Sunday 19:54 geiseri - Moved QListViewItem and QCheckListItem to the object registry. + Moved TQListViewItem and TQCheckListItem to the object registry. 2004-12-05 Sunday 19:11 geiseri @@ -200,7 +200,7 @@ JSFactory::registerOpaqueType("Name", new TypeFactory(parent,"name"); Now KJS can create your type and manipulate it. This currently supports - only opaque types, QObject types are next once this migration is + only opaque types, TQObject types are next once this migration is complete. 2004-12-05 Sunday 19:08 geiseri @@ -211,7 +211,7 @@ 2004-12-05 Sunday 10:12 geiseri - Test for QFrame + Test for TQFrame 2004-12-04 Saturday 17:57 geiseri @@ -219,7 +219,7 @@ 2004-12-04 Saturday 14:25 geiseri - Added QProgressDialog to the list of creatable types. + Added TQProgressDialog to the list of creatable types. 2004-12-04 Saturday 02:34 geiseri @@ -235,7 +235,7 @@ 2004-12-04 Saturday 01:33 geiseri - Add QToolBox items to the published children when comming from QWidgetFactory + Add TQToolBox items to the published children when comming from TQWidgetFactory 2004-12-03 Friday 21:28 geiseri @@ -267,7 +267,7 @@ 2004-12-03 Friday 20:05 geiseri - Do not delete QObjects that are managed by their parents. + Do not delete TQObjects that are managed by their parents. 2004-12-03 Friday 20:04 geiseri @@ -276,7 +276,7 @@ 2004-12-03 Friday 20:01 geiseri - Do not manage QListView, and ListBox items as the containers will. + Do not manage TQListView, and ListBox items as the containers will. Had to wash this file over with AStyle, it was getting to be a mess. 2004-12-02 Thursday 22:15 geiseri @@ -285,12 +285,12 @@ 2004-12-02 Thursday 21:50 geiseri - Added QRect::contains(...) to Rect class. + Added TQRect::contains(...) to Rect class. Updated game board to detect objects getting in the target. 2004-12-01 Wednesday 14:45 geiseri - make 10 items, use QFrame for formatting. + make 10 items, use TQFrame for formatting. 2004-12-01 Wednesday 11:25 geiseri @@ -298,19 +298,19 @@ 2004-12-01 Wednesday 09:58 geiseri - Added tests for QSize, QPoint and QRect. + Added tests for TQSize, TQPoint and TQRect. 2004-12-01 Wednesday 09:58 geiseri Added support for: - QPoint - QRect - QSize + TQPoint + TQRect + TQSize - Cleanup headers in QPen + Cleanup headers in TQPen These are all handled as value proxies so they are transparently supported - in slots, QObject bindings, and dcop. These can be used by their variant + in slots, TQObject bindings, and dcop. These can be used by their variant names of Point, Rect and Size respectivly. Also constructors are provided for Point, Rect and Size so you can construct items in one step ex: @@ -346,7 +346,7 @@ 2004-11-30 Tuesday 10:45 geiseri - Added support for passing QStringList through slots. This fixed the problems with KConfig bindings not showing up. It should also fix the problem of not being able to pass StringLists to C++ slots that have been published to javascript. + Added support for passing TQStringList through slots. This fixed the problems with KConfig bindings not showing up. It should also fix the problem of not being able to pass StringLists to C++ slots that have been published to javascript. 2004-11-29 Monday 17:41 annma @@ -355,7 +355,7 @@ 2004-11-29 Monday 13:26 geiseri - Start of QSettings support for real. Binding is complete hozed though so it probably needs to be replaced before we release the next release. + Start of TQSettings support for real. Binding is complete hozed though so it probably needs to be replaced before we release the next release. 2004-11-29 Monday 13:25 geiseri @@ -375,7 +375,7 @@ 2004-11-28 Sunday 21:38 geiseri - removed default args, they really screw up QObject bindings. + removed default args, they really screw up TQObject bindings. 2004-11-28 Sunday 21:32 geiseri @@ -419,7 +419,7 @@ 2004-11-28 Sunday 20:12 geiseri - Vain attempt to fix the QCanvas bindings. They are no longer crashing, but they are so not implemented they don't do much yet. + Vain attempt to fix the TQCanvas bindings. They are no longer crashing, but they are so not implemented they don't do much yet. 2004-11-28 Sunday 20:12 geiseri @@ -428,12 +428,12 @@ 2004-11-28 Sunday 20:11 geiseri - QFrame now actually works as expected. + TQFrame now actually works as expected. 2004-11-28 Sunday 20:10 geiseri Remove dead code. - Fix stupid corner case where the QPainter would become invalid and crash kjsembed. + Fix stupid corner case where the TQPainter would become invalid and crash kjsembed. 2004-11-28 Sunday 20:09 geiseri @@ -449,7 +449,7 @@ Change this so the Config bindings handle all the dirty work. This removes a very strange misbehavior with the Config object when used with scripts. - Started adding support for QSettings in Qt Only mode, but its disabled for now. + Started adding support for TQSettings in Qt Only mode, but its disabled for now. 2004-11-28 Sunday 20:07 geiseri @@ -459,7 +459,7 @@ 2004-11-28 Sunday 20:06 geiseri - QSplashScreen works again, the object was there but the bindings where not. + TQSplashScreen works again, the object was there but the bindings where not. General code cleanup. Made the factory throw some exceptions instead of just warnings. This will allow developers to actually be able to debug their scripts with a nondebug @@ -510,8 +510,8 @@ 2004-11-24 Wednesday 01:59 staikos QT_NO_COMPAT fix (untested, but at least it compiles now): - int match ( const QString & str, int index = 0, int * len = 0, bool indexIsStart = TRUE ) const (obsolete) - int search ( const QString & str, int offset = 0, CaretMode caretMode = CaretAtZero ) const + int match ( const TQString & str, int index = 0, int * len = 0, bool indexIsStart = TRUE ) const (obsolete) + int search ( const TQString & str, int offset = 0, CaretMode caretMode = CaretAtZero ) const 2004-11-24 Wednesday 01:36 geiseri @@ -550,12 +550,12 @@ internally. Based heavily on boost::any but focuses on pointers only. 3) Things to note now that KJS is actually managing - memory. If you create a QObject binding but do not store + memory. If you create a TQObject binding but do not store it anywhere and let it go out of scope the GC WILL delete it. This may cause some unwanted side effects, so please keep track of your objects. 4) Fixed some casting problems that was causing the - QCanvas bindings not to work. They have not been completely + TQCanvas bindings not to work. They have not been completely solved yet but they are at least not crashing anymore. There are still a few crashes, but these should be easier to @@ -596,7 +596,7 @@ GC works on win32. NOTE on win32: the standard in/out/err will crash if you do not have matching Qt debug and KJSEmbed debug libs. So if you have a nondebug - build of Qt NEVER build a debug version of QJSEmbed. Gold star for + build of Qt NEVER build a debug version of TQJSEmbed. Gold star for MS on this one. 2004-10-03 Sunday 23:25 zrusin @@ -605,7 +605,7 @@ 2004-09-23 Thursday 15:51 mlaurent - CVS_SILENT QString(i18n(...)) -> i18n(...) + CVS_SILENT TQString(i18n(...)) -> i18n(...) 2004-09-01 Wednesday 20:47 geiseri @@ -710,11 +710,11 @@ 2004-08-16 Monday 08:46 geiseri - QWidget and QObject extraction helper functions. + TQWidget and TQObject extraction helper functions. 2004-08-16 Monday 08:45 geiseri - QComboBox and QPopup menu fixes. + TQComboBox and TQPopup menu fixes. 2004-07-14 Wednesday 04:31 binner @@ -736,12 +736,12 @@ - Improvements to the bindingwizard. - - Start of bindings for QCanvasXX. These might need to be disabled for the + - Start of bindings for TQCanvasXX. These might need to be disabled for the 3.3 release but they're a good stress test of the code. - Update docs. - - Added support for QPoint to jsbinding methods. + - Added support for TQPoint to jsbinding methods. 2004-06-18 Friday 19:44 rich @@ -753,7 +753,7 @@ 2004-06-18 Friday 19:27 rich - - Added support for the QStringList parameter argument of the KParts + - Added support for the TQStringList parameter argument of the KParts constructors. For now, this can only be used with the full 5 argument forms of the factory's part construction methods. Added the test script from Koos, though it can't be used without an accompanying applet! @@ -762,13 +762,13 @@ 2004-06-18 Friday 18:51 rich - Updated the qtbindings using the bindwizard. The problems identified in - #83427 and my own QListView testing turned out to be caused by a stupid + #83427 and my own TQListView testing turned out to be caused by a stupid logic error in the code generated by the XSL. Basically, I forgot that enum values start at 0 even if they're being automagically generated. 2004-06-18 Friday 17:34 rich - - Reverted the updated QComboBox bindings. Looks like I need to do some + - Reverted the updated TQComboBox bindings. Looks like I need to do some more work on making the XSL binding generator work with the custom bindings code. @@ -791,11 +791,11 @@ 2004-06-12 Saturday 20:49 rich - - Reverted update of the QListViewItem bindings as it broke things. + - Reverted update of the TQListViewItem bindings as it broke things. 2004-06-11 Friday 20:52 rich - - Handling for slots with signatures xx( const QTime &) and xx( QWidget *). + - Handling for slots with signatures xx( const TQTime &) and xx( TQWidget *). 2004-06-11 Friday 19:03 rich @@ -821,13 +821,13 @@ 2004-06-06 Sunday 20:40 rich - - Added support for QCheckListItem. + - Added support for TQCheckListItem. - Regenerated qtbindings using the wizard. 2004-06-06 Sunday 19:37 rich - - Added support for signals and slots with signature func(const QTime &) + - Added support for signals and slots with signature func(const TQTime &) including support for handling them from scripts. - Added a check for exceptions occurring in event handlers. @@ -908,8 +908,8 @@ 2004-05-28 Friday 19:15 rich - - Fixed the problem of the time property of a QTimeEdit returning -1. This - in fact turned out to be a general problem that affects all QTime + - Fixed the problem of the time property of a TQTimeEdit returning -1. This + in fact turned out to be a general problem that affects all TQTime properties and was happening because you can't create a Date object in js with just a time in it. @@ -949,8 +949,8 @@ 2004-05-19 Wednesday 21:17 rich - - Added support for the selectedItem() method of QListView then converted the - docviewer example to use QListView. + - Added support for the selectedItem() method of TQListView then converted the + docviewer example to use TQListView. 2004-05-19 Wednesday 20:10 rich @@ -964,7 +964,7 @@ 2004-05-19 Wednesday 18:54 rich - - Fixed a couple of naming errors in QProcess's signals that resulted from + - Fixed a couple of naming errors in TQProcess's signals that resulted from the conversion from KProcess. 2004-05-19 Wednesday 18:31 rich @@ -1004,7 +1004,7 @@ Qt wants the real thing, not cheap immitations. - Fixed QPixmaps in slots. + Fixed TQPixmaps in slots. 2004-05-07 Friday 17:13 geiseri @@ -1020,10 +1020,10 @@ Const cleanups Fixed accidental memory leak - Added the following methods to make access of QVariant based objects + Added the following methods to make access of TQVariant based objects easier: - void putVariant( const QString &valueName, const QVariant &value); - QVariant getVariant( const QString &valueName ) const; + void putVariant( const TQString &valueName, const TQVariant &value); + TQVariant getVariant( const TQString &valueName ) const; Started an implementation of a scope walker so the added methods will work beyond the global scope. Not reliable yet, so its not used. @@ -1031,11 +1031,11 @@ 2004-05-05 Wednesday 22:26 geiseri Added the following functions to the part for embedders to enjoy: - KJS::Value getValue( const QString &valueName ); - KJS::Value callMethod(const QString &methodName, KJS::List &args); - void putValue( const QString &valueName, const KJS::Value &value); + KJS::Value getValue( const TQString &valueName ); + KJS::Value callMethod(const TQString &methodName, KJS::List &args); + void putValue( const TQString &valueName, const KJS::Value &value); - Rich I have tests, but they require being compiled. We need a C++ tests + Rich I have tests, but they retquire being compiled. We need a C++ tests directory at this point i think to show off what we are up to. 2004-05-04 Tuesday 19:52 rich @@ -1047,7 +1047,7 @@ - Improved the argument handling of kjscmd so that it will automatically invoke the console if there is no script to run. It will also call exec implicitly in this situation, though not if there is a script to invoke - so the exec() call in the graphical scripts is still required. + so the exec() call in the graphical scripts is still retquired. - Added a directory for a standard library of javascript utilities and put the command line prompt script in it - other reusable scripts and objects @@ -1075,15 +1075,15 @@ 2004-04-30 Friday 20:27 rich - - Extended the range of types supported by the XSL stylesheet to allow QFile - and QFrame to be wrapped. Added the generated wrappers to the build. + - Extended the range of types supported by the XSL stylesheet to allow TQFile + and TQFrame to be wrapped. Added the generated wrappers to the build. 2004-04-30 Friday 19:36 rich - Integrated the constructor bindings into the binding wizard and added a hack that only enables the first method we see with a given name, meaning that only the first version of overloaded methods can be used. This change means - that the QComboBox binding is now generated directly from the Qt header file + that the TQComboBox binding is now generated directly from the Qt header file using the wizard. 2004-04-30 Friday 17:38 rich @@ -1128,21 +1128,21 @@ 2004-04-23 Friday 18:47 geiseri Added event support for: - QEvent::QTimer - QEvent::ContextMenu - QEvent::DragMove - QEvent::DragEnter - QEvent::Drop - QEvent::Enter - QEvent::Leave - QEvent::Clipboard - QEvent::DragLeave + TQEvent::TQTimer + TQEvent::ContextMenu + TQEvent::DragMove + TQEvent::DragEnter + TQEvent::Drop + TQEvent::Enter + TQEvent::Leave + TQEvent::Clipboard + TQEvent::DragLeave Based all events off the default handler so interited properties are preserved. 2004-04-23 Friday 15:57 geiseri - move to QProcess. + move to TQProcess. 2004-04-23 Friday 15:20 rich @@ -1180,8 +1180,8 @@ 2004-04-22 Thursday 17:33 geiseri - Added extractQPalette - Added extractQStrList + Added extractTQPalette + Added extractTQStrList 2004-04-22 Thursday 16:57 rich @@ -1191,7 +1191,7 @@ 2004-04-22 Thursday 15:07 geiseri Normalized the size and color extraction. - Added QRect helper function. + Added TQRect helper function. 2004-04-22 Thursday 15:03 geiseri @@ -1230,7 +1230,7 @@ 2004-04-21 Wednesday 16:09 geiseri - forgot to add the one i really wanted to. Now we can map a string array to a QVariant properly. + forgot to add the one i really wanted to. Now we can map a string array to a TQVariant properly. 2004-04-21 Wednesday 15:48 geiseri @@ -1241,7 +1241,7 @@ 2004-04-19 Monday 11:53 geiseri - fixed QBoxLayouts. might want to backport + fixed TQBoxLayouts. might want to backport 2004-04-16 Friday 21:51 rich @@ -1334,12 +1334,12 @@ 2004-04-12 Monday 10:00 geiseri - Added support for QProcess as a bindings plugin. - Exposed API identical to QProcess. + Added support for TQProcess as a bindings plugin. + Exposed API identical to TQProcess. 2004-04-10 Saturday 20:40 rich - Added support for the setSpacing method of QHBox. + Added support for the setSpacing method of TQHBox. Converted the docviewer example to use the KHTML streaming API and made it work properly. @@ -1362,11 +1362,11 @@ Added some methods that should allow us to have a unified interface to the proxy types in future. This change is the first step towards an understanding of inheritence. The first win of the change is that the code now understands - that KXMLGUIClient's are not necessarily QWidgets. + that KXMLGUIClient's are not necessarily TQWidgets. 2004-04-09 Friday 17:52 rich - Added proper support for QComboBox. This binding was generated automagically + Added proper support for TQComboBox. This binding was generated automagically using the xsl stuff in the tools dir, but I had to disable 4 methods to work around missing support for method overloading. There's also an example. @@ -1384,8 +1384,8 @@ 2004-04-08 Thursday 09:52 geiseri Oh this is an annoying one. For some reason I thought I could trust - QVariants to tell me what type they where. It seems that in the - instance of QString vs QCString this is not the case, so I am now + TQVariants to tell me what type they where. It seems that in the + instance of TQString vs TQCString this is not the case, so I am now doing this correctly and using the dcop functions type signature to get the correct types. This fixes a few courious bugs I was chasing after in dcop. I am trying to backport this fix now. @@ -1444,7 +1444,7 @@ 2004-02-29 Sunday 05:35 jowenn - It's not nice, for each proxy implementation one QGuardedPtr. :( I hope Qt's next generation smart pointer will be more lightweight. Why a qguardedptr? + It's not nice, for each proxy implementation one TQGuardedPtr. :( I hope Qt's next generation smart pointer will be more lightweight. Why a qguardedptr? If you do the following in kjscmd it would crash without guardedptr var k=new KMainWindow(); @@ -1466,11 +1466,11 @@ 2004-02-16 Monday 01:09 geiseri Added signatures for: - void slot_color( const QColor &color ); - void slot_point( const QPoint &point ); - void slot_rect( const QRect &rec ); - void slot_size( const QSize &size ); - void slot_pixmap( const QPixmap &pix ); + void slot_color( const TQColor &color ); + void slot_point( const TQPoint &point ); + void slot_rect( const TQRect &rec ); + void slot_size( const TQSize &size ); + void slot_pixmap( const TQPixmap &pix ); void slot_url( const KURL &url ); void slot_intint( int , int ); void slot_intbool( int , bool ); @@ -1618,7 +1618,7 @@ 2004-01-10 Saturday 19:25 rich - - Fixed support for QChildEvent. It now has a type specific conversion + - Fixed support for TQChildEvent. It now has a type specific conversion function rather than falling back to the generic one. Without this change, it is pretty useless as you can't access anything or even distinguish between insert and remove events. @@ -1712,7 +1712,7 @@ 2003-12-31 Wednesday 11:54 geiseri - use new QPixmap code + use new TQPixmap code 2003-12-31 Wednesday 11:12 geiseri @@ -1735,7 +1735,7 @@ 2003-12-30 Tuesday 14:23 geiseri - move buttonmaker.js to new QPainter stuff + move buttonmaker.js to new TQPainter stuff 2003-12-30 Tuesday 14:17 geiseri @@ -1766,8 +1766,8 @@ 2003-12-30 Tuesday 10:56 geiseri moved arg extraction code to slotutils - converted QPainter bindings to Opaque Proxy... it has issues still, but pending - QPixmaps conversion they cannot all be fixed yet. + converted TQPainter bindings to Opaque Proxy... it has issues still, but pending + TQPixmaps conversion they cannot all be fixed yet. added arg extraction methods to simplify the code 2003-12-29 Monday 16:08 rich @@ -1776,13 +1776,13 @@ 2003-12-29 Monday 16:08 rich - - Added the binding for QListViewItem and the latest xsl templates. + - Added the binding for TQListViewItem and the latest xsl templates. 2003-12-28 Sunday 21:22 rich - Massive improvements to the binding generation tool. It can now create usable code!!! To prove this, I've added a new binding to the builtins - directory for QDir. This binding was generated directly from the qdir.h + directory for TQDir. This binding was generated directly from the qdir.h header file using the scripts in the tools directory. There is a simple test program in the test directory. @@ -1851,7 +1851,7 @@ Added support for adding bindings via KParts Plugins. I have tested ValueProxy and OpaqueProxy plugins and those work perfectly. - QObject based plugins are mostly working, but enums seem broken. + TQObject based plugins are mostly working, but enums seem broken. The plugin interface is pretty thin right now, because I dont think we need a heck of alot to bootstrap the process of adding a binding. @@ -1889,7 +1889,7 @@ This might not be the right place for it, but we need a good way to get the bounding boxes of text drawn on the painter with the current font - metrics. Ideally we can move this later when we bind QFontMetrics? + metrics. Ideally we can move this later when we bind TQFontMetrics? 2003-12-17 Wednesday 23:37 geiseri @@ -1907,7 +1907,7 @@ 2003-12-17 Wednesday 18:10 geiseri - Added ability to connect Qt signals to KJS Slots that have a single QFont or QColor. + Added ability to connect Qt signals to KJS Slots that have a single TQFont or TQColor. Not as cool as I would have liked, but I guess its okay. 2003-12-16 Tuesday 18:21 geiseri @@ -1960,7 +1960,7 @@ 2003-12-15 Monday 19:40 rich - - Removed moc reference from ImageImp - it's not a QObject anymore. + - Removed moc reference from ImageImp - it's not a TQObject anymore. - Fixed a crash when the factory is asked for an invalid part. @@ -1969,7 +1969,7 @@ - Improved the code of the image binding: - Changed the name from Image to ImageImp as now that it doesn't use - QObject, this class only handles the methods. + TQObject, this class only handles the methods. - Added support for the enums from KImageEffect. The output of the test program should now be upside down. @@ -1991,7 +1991,7 @@ Fixed the Image stuff so it will at least load. Came to the conclusion that there is all wrong, and we should revert - back to the QObject bindings. The current implimentation makes + back to the TQObject bindings. The current implimentation makes no sense for how the Image binding is suppose to operate. Maby we really wanted a JSValueProxy? @@ -2019,7 +2019,7 @@ - Started adding the framework needed to allow custom value types to become first class citizens. - - Replaced the NewQObject method of the factory with NewInstance which + - Replaced the NewTQObject method of the factory with NewInstance which supports the creation of instances of any type. - Added support for event types to the opaque proxy. @@ -2031,12 +2031,12 @@ 2003-12-12 Friday 23:56 geiseri - half of the move from QObject binding to JSProxyImp + half of the move from TQObject binding to JSProxyImp rich this needs to be enabled, i was unsure of how to activate it. also am i correct in assuming that properties will no longer work for - Image now that we are using a non QObject binding? + Image now that we are using a non TQObject binding? 2003-12-12 Friday 17:10 rich @@ -2061,14 +2061,14 @@ 2003-12-12 Friday 15:18 rich - - Replaced the QObject wrapper for QTextStream with a native binding + - Replaced the TQObject wrapper for TQTextStream with a native binding class. This reduces the overhead of this binding, and allows more flexibility in the API we present to scripts. The new binding provides the same API to scripts as the old one, except that the current() and setCurrent() methods have been removed as they are redundant. This binding is the first one to be based on the JSOpaqueProxy class, but - this will in future be a common approach to wrapping non-QObject classes. + this will in future be a common approach to wrapping non-TQObject classes. - Made a few methods of the factory that were previously protected have private access. These methods are only useful internally, so there is no @@ -2107,7 +2107,7 @@ 2003-12-08 Monday 17:53 rich - - Don't use -no-undefined as this now requires libkjsembed. + - Don't use -no-undefined as this now retquires libkjsembed. 2003-12-08 Monday 17:16 rich @@ -2243,8 +2243,8 @@ 2003-11-30 Sunday 23:31 geiseri - Added QStringList -> KJS Array support. - Added QPen -> Bindings::Pen support. + Added TQStringList -> KJS Array support. + Added TQPen -> Bindings::Pen support. 2003-11-30 Sunday 23:30 geiseri @@ -2263,7 +2263,7 @@ 2003-11-27 Thursday 21:05 rich - - Added some basic support for QScrollView illustrated by the imagetweak + - Added some basic support for TQScrollView illustrated by the imagetweak example, which will become more feature-full in future. - Added the very incomplete beginning of support for generating bindings from @@ -2289,21 +2289,21 @@ Rich im not sure if this is the correct location for these, but they currently work. - Added a demo to show off the new dcop stuff, requires + Added a demo to show off the new dcop stuff, retquires KWeatherService from tdetoys to be running, since i dont know how to start a service from KJSEmbed yet. 2003-11-22 Saturday 01:49 geiseri - Added variable length args to K/QListView. + Added variable length args to K/TQListView. Added ability to handle Strings vs Pixmaps correctly. - Added native method for grabWidget on QWidget, this + Added native method for grabWidget on TQWidget, this may get moved to Pixmap when i figure out how to handle a widget pointer. 2003-11-22 Saturday 00:54 geiseri - Make the compiler a little quieter by commenting out unused args in functions. + Make the compiler a little tquieter by commenting out unused args in functions. 2003-11-21 Friday 20:13 rich @@ -2323,7 +2323,7 @@ - Renamed the 'global' object to 'Global' for consistency with web browsers. - Fixed some minor documentation error in the new builtin objects Ian added - (they're not QObject wrappers!). + (they're not TQObject wrappers!). - Added basic support for loading files via the SAX api, a callback based mechanism for processing XML. The implementation is far from complete, but @@ -2414,13 +2414,13 @@ 2003-11-16 Sunday 02:04 geiseri - hrmmm it seems that implantQVariant dosent work as i thought it should. it seems once that is fixed things may + hrmmm it seems that implantTQVariant dosent work as i thought it should. it seems once that is fixed things may work a bit better. 2003-11-16 Sunday 01:36 geiseri - Fixed the QPainter crash, it seems i had a booliean mistake - Added QVariant insertion support for DCOP... this still crashes, but gets further. + Fixed the TQPainter crash, it seems i had a booliean mistake + Added TQVariant insertion support for DCOP... this still crashes, but gets further. 2003-11-14 Friday 22:48 rich @@ -2431,11 +2431,11 @@ - Improved the type handling of the JSFactory class. - The mapping between typenames and proxy types now supports all the proxy - types. This is essential if we are to support creation of non-QObject + types. This is essential if we are to support creation of non-TQObject proxies properly. - Removed the 'special case' code that handled identification of classes - supported by QWidgetFactory. + supported by TQWidgetFactory. - You can now remove support for particular classes by calling addType() and specifying the proxy type TypeInvalid. I'm not sure how useful this is, @@ -2453,11 +2453,11 @@ list includes objects which can be wrapped but not created unlike the constructors method. - - The methods now use QString rather than QCString to avoid needing lots of + - The methods now use TQString rather than TQCString to avoid needing lots of charset conversions as these are an expensive operation. - Added a new method addObjectTypes() that is responsible for telling the - factory about all the QObject types it knows about that do not have any + factory about all the TQObject types it knows about that do not have any sort of custom bindings. The list of currently unsupported types was created by the scripts and data files in docs/examples/coverage/. @@ -2488,7 +2488,7 @@ - System.exit() Exits with the status code 0 - System.exit(Number) Exits with the status code specified. - - Added support for the QLayout classes QHBoxLayout and QVBoxLayout. In + - Added support for the TQLayout classes TQHBoxLayout and TQVBoxLayout. In addition to the slots and properties, the following custom bindings are available for box layouts: @@ -2531,7 +2531,7 @@ 2003-11-10 Monday 23:09 geiseri Fixed a few things, we can now attach, and call commands, but now im getting the same issue we - have in painter. Things crash when reading a QString that has been passed in... not sure why + have in painter. Things crash when reading a TQString that has been passed in... not sure why rich you have ideas? 2003-11-01 Saturday 11:34 rich @@ -2552,20 +2552,20 @@ 2003-10-30 Thursday 19:29 rich - - Split the JSValueProxy into two in order to solve the problem that QObject + - Split the JSValueProxy into two in order to solve the problem that TQObject wrapper classes were broken by the increasing type-safety of the code. - JSValueProxy now handles variant proxies and nothing else. - JSOpaqueProxy takes over the handling of opaque pointer proxies. - Fixed the slot return code to fall back to the opaque type if the return - type is a pointer, but is not known by the factory as a QObject. + type is a pointer, but is not known by the factory as a TQObject. - - convertToValue() now returns Undefined() for invalid QVariant values and + - convertToValue() now returns Undefined() for invalid TQVariant values and unsupported types. This prevents scripts incorrectly reporting that the method was successfull. - - NOTE: These changes have fixed the problems that were occuring with QObject + - NOTE: These changes have fixed the problems that were occuring with TQObject wrapper types. 2003-10-30 Thursday 17:57 rich @@ -2595,10 +2595,10 @@ InternalFunctionImp (the internal here refers to the fact they are native code rather than JS). This change fixes the problem that scripts could not properly inspect the methods (for example instanceof was broken). The - InternalFunctionImp constructor requires an ExecState, so a few incidental - changes were required to accomodate this. + InternalFunctionImp constructor retquires an ExecState, so a few incidental + changes were retquired to accomodate this. - NOTE: This change requires the patch to KJS that I just committed. + NOTE: This change retquires the patch to KJS that I just committed. - Added some missing d pointers. @@ -2661,13 +2661,13 @@ JSBuiltIn class which should simplify the factory (useful when we have multiple factories). - NOTE: Access to the QObject-based wrapper objects is broken at the + NOTE: Access to the TQObject-based wrapper objects is broken at the moment. This is a known issue and is being addressed, but as things are being restructured a bit fixing it will have to wait so I don't have to do it twice. 2003-10-18 Saturday 19:43 rich - - Began adding support for non-QObject ptr types. + - Began adding support for non-TQObject ptr types. - The part no longer inherits XMLActionRunner, instead there's an internal class that binds the two together. This makes the class hierarchy a lot @@ -2676,19 +2676,19 @@ further and the part should avoid automatically creating an XMLActionClient now that scripts can do this themselves. - - Made some of the methods of the factory object take 'const QString &' rather - than 'QString'. + - Made some of the methods of the factory object take 'const TQString &' rather + than 'TQString'. - Reworked the handling of the JSFactory object. The factory is now a propery of the kpart rather than being global. This means that applications can have - multiple active parts, each with their own factory. This change has required + multiple active parts, each with their own factory. This change has retquired changes throughout KJSEmbed: - Changes to allow the static js objects to know which factory they should be using. - Changes to the proxies so they know which part they use rather than just - which interpreter. This has required changes all over the place, but + which interpreter. This has retquired changes all over the place, but better now than later. 2003-10-18 Saturday 16:16 geiseri @@ -2729,7 +2729,7 @@ - Moved builtins to a new directory. This isn't really needed yet, by doing it now we avoid lots of pain later. - - Improved support for QTimer. + - Improved support for TQTimer. - You now have access to the start(), stop() and isActive() methods. - Added an example that uses the new timer support. @@ -2771,7 +2771,7 @@ pass the value to the slot. Hopefully this will work for both JSObjectProxy values and for opaque values. - - If the parameter type is supported by QVariant and the passed value is a + - If the parameter type is supported by TQVariant and the passed value is a proxy we should now support that too. 2003-10-11 Saturday 15:32 rich @@ -2783,7 +2783,7 @@ rest of the code a lot more readable. - Added an implant method for proxy classes. This method will make it possible - to pass QObjects, opaque values and unsupported variant types as parameters + to pass TQObjects, opaque values and unsupported variant types as parameters to slots. 2003-10-09 Thursday 21:14 rich @@ -2798,12 +2798,12 @@ - Removed unused JSObjectProxyImp constructor. - Lots of work on handling slots that return pointers. Slots that return types - supported by QWidgetFactory now work, adding support for the other QObject + supported by TQWidgetFactory now work, adding support for the other TQObject types will be pretty simple at this point. The code really needs to be a lot - more generic - rather than asking the factory if the object is a QObject, it + more generic - rather than asking the factory if the object is a TQObject, it should be asking the factory if there is a wrapper available for the class. - - Did most of the grunt work required to handle slot pointer return types + - Did most of the grunt work retquired to handle slot pointer return types properly. At the time we bind a slot we extract the return type from the metaobject, the classname we obtain is stored in the slot binding implementation. @@ -2872,8 +2872,8 @@ type. This means that rather than having to reference these values via the class instance, you can say things like: - var f = new QFrame(); - f.frameShape = QFrame.WinPanel | QFrame.Sunken; + var f = new TQFrame(); + f.frameShape = TQFrame.WinPanel | TQFrame.Sunken; It is important to note that with the current code, the enum values are not available until after the first instance of the specified type has been @@ -2946,7 +2946,7 @@ 2003-09-16 Tuesday 01:26 geiseri - Added support for QMovie so we can spice up our boring GUIs... + Added support for TQMovie so we can spice up our boring GUIs... 2003-09-15 Monday 22:52 geiseri @@ -2970,7 +2970,7 @@ 2003-09-15 Monday 20:17 geiseri - Moved image_imp from a QImage * to a QImage value. + Moved image_imp from a TQImage * to a TQImage value. Added image effect members to pixmap_imp Added image effect members to image_imp @@ -2983,7 +2983,7 @@ constructors. These replace the dumpConstructors() function in jsbindings.h which has been now been removed. - QStringList constructorNames() const; + TQStringList constructorNames() const; KJS::Value constructors() const; KJS::List constructorList() const; @@ -2997,8 +2997,8 @@ 2003-09-15 Monday 17:04 geiseri Added support for the following events: - QKeyEvent, QWheelEvent, QFocusEvent, QPaintEvent, QMoveEvent - QResizeEvent, QCloseEvent, QShowEvent, QHideEvent, and QIMEvent. + TQKeyEvent, TQWheelEvent, TQFocusEvent, TQPaintEvent, TQMoveEvent + TQResizeEvent, TQCloseEvent, TQShowEvent, TQHideEvent, and TQIMEvent. These need to be tested and it should be noted funcitons that return void, are not currently implemented. @@ -3008,7 +3008,7 @@ - The events are now defined using an array, this makes it much easier to maintain and to add support for new event handlers. - - Added a binding to QApplication::exec(). If this works ok, I think I + - Added a binding to TQApplication::exec(). If this works ok, I think I should probably make no-exec mode the default and leave the decision entirely up to the script. This would mean I'd need to add a -exec option to allow you to use the console widget with non-graphical @@ -3016,7 +3016,7 @@ - Various clean ups. - - Added support for the QObject className() method to the object + - Added support for the TQObject className() method to the object proxy, and an extra method superClassName() that queries the metaobject. @@ -3032,7 +3032,7 @@ 2003-09-10 Wednesday 20:20 rich - - Added support for some more of the QMouseEvent class. + - Added support for some more of the TQMouseEvent class. state() stateAfter() globalX() @@ -3077,7 +3077,7 @@ handler is removed). In order to implement the scheme described, there needs to be a - both a mapping between handler names and QEvent::Type, and a mapping + both a mapping between handler names and TQEvent::Type, and a mapping between the type and the handler. The first is used to determine if assigning to a property should cause any event types to be forwarded (and which types they are), the second lets the event @@ -3085,11 +3085,11 @@ In addition to supporting the standard event handlers needed to write Qt/KDE wrappers, this code is intended to support weird - compatibility stuff like kaxul. :-) This requirement means we need + compatibility stuff like kaxul. :-) This retquirement means we need to allow for the possibility of custom event types, events mapping to custom handler names, and also custom signatures in event handlers. The same difficulties occur when support for custom - QEvents is considered. This side of things is very much a work in + TQEvents is considered. This side of things is very much a work in progress. At the moment both mappings are stored in the factory object, but @@ -3105,7 +3105,7 @@ - Moved StdDialog binding code from the factory to the class itself. - - Added support for creating QScrollView and QCanvasView widgets. + - Added support for creating TQScrollView and TQCanvasView widgets. - Added support for KMainWindow::createGUI(). @@ -3119,7 +3119,7 @@ - Added binding to isWidgetType(). - - Added an example that generates a graphical tree of the QWidget + - Added an example that generates a graphical tree of the TQWidget hierarchy. - Fixed const warning in convertToValue(). Various other irritating @@ -3131,10 +3131,10 @@ (this will be fixed). This means that for now you do things like this: - f = new QFrame(); + f = new TQFrame(); f.frameShape = f.Panel; - - Added a new demo 'frame' that illustrates QFrame and enum support. + - Added a new demo 'frame' that illustrates TQFrame and enum support. 2003-08-27 Wednesday 14:30 geiseri @@ -3198,7 +3198,7 @@ 2003-08-18 Monday 23:48 geiseri Variable length slots now work for the currently known types. Things seem - to pass the old tests, and some new dcop tests now pass. QVariants still + to pass the old tests, and some new dcop tests now pass. TQVariants still need to be handled. I leave for my flight in 17hours so im not optimistic ill get in one more commit. Rich please dont try to clean this up yet, as ill probibly work on it before i get net access on thursday. @@ -3217,8 +3217,8 @@ - Added a new example that illustrates support for KListView. - - JSValueProxy instances that contain a QVariant can now be converted - back to QVariant. + - JSValueProxy instances that contain a TQVariant can now be converted + back to TQVariant. - Moved JSValueProxy out of the Bindings namespace. @@ -3238,13 +3238,13 @@ 2003-08-17 Sunday 11:46 rich - Added a new class JSValueProxy which provides an opaque binding to - either a QVariant or a void pointer. + either a TQVariant or a void pointer. - Extended the property handling code to automatically generate opaque bindings for unknown types. - Added a new method Factory.widgets() that returns a list of the - widgets supported by QWidgetFactory. + widgets supported by TQWidgetFactory. - Added support for pointer slot return values. @@ -3266,8 +3266,8 @@ - Added support for slot signatures needed by NetAccess: - slot(const KURL&,const QString&) - slot(const QString&,const KURL&) + slot(const KURL&,const TQString&) + slot(const TQString&,const KURL&) 2003-08-16 Saturday 16:48 rich @@ -3361,23 +3361,23 @@ - Added some more slot signatures: - - slot(const QString &,uint) - - slot(const QString &, bool) - - slot(int,const QColor &) + - slot(const TQString &,uint) + - slot(const TQString &, bool) + - slot(int,const TQColor &) - slot(int,int,int,int,int) - - slot(const QPixmap&) - - slot(const QRect&,bool) - - slot(const QString&,bool) - - slot(const QString&,bool,bool) - - slot(const QString&,int,int) - - slot(int,const QColor&,bool) - - slot(int,const QColor&) + - slot(const TQPixmap&) + - slot(const TQRect&,bool) + - slot(const TQString&,bool) + - slot(const TQString&,bool,bool) + - slot(const TQString&,int,int) + - slot(int,const TQColor&,bool) + - slot(int,const TQColor&) - slot(int,int,float,float) - - slot(const QString&,bool,bool,bool) + - slot(const TQString&,bool,bool,bool) - - Added a utility method for getting the QWidget in a proxy. + - Added a utility method for getting the TQWidget in a proxy. - - Added support for QPixmap properties. + - Added support for TQPixmap properties. - Added imageviewer example. @@ -3392,7 +3392,7 @@ 2003-08-14 Thursday 18:02 rich - - It helps if we actually make the QString,QString slots available to + - It helps if we actually make the TQString,TQString slots available to the JS interpreter... 2003-08-14 Thursday 17:57 rich @@ -3413,7 +3413,7 @@ 2003-08-13 Wednesday 15:58 zrusin Adding bindings as a subdir dir. Fixing the non-working implicit cast of - QString to const char* to make it compile. + TQString to const char* to make it compile. Rich are sure the bindings lib should be installable shared lib, and not a static, non-installable one? @@ -3428,7 +3428,7 @@ 2003-08-12 Tuesday 17:57 rich - - Moved the QObject classes that only exist to provide bindings into a + - Moved the TQObject classes that only exist to provide bindings into a new directory. This will hold all the classes that exist only to provide a binding. @@ -3539,7 +3539,7 @@ - Added support for the slot signatures: - int,int,int,int,bool. - - QRect, bool + - TQRect, bool 2003-07-26 Saturday 17:51 rich @@ -3559,7 +3559,7 @@ 2003-07-26 Saturday 16:49 rich - - Added links to QSA and a tutorial on inheritence in JS. + - Added links to TQSA and a tutorial on inheritence in JS. 2003-07-26 Saturday 16:35 rich @@ -3573,11 +3573,11 @@ - Added constructors for the Painter object. - - Added a new binding Pixmap that provides an interface to QPixmap. + - Added a new binding Pixmap that provides an interface to TQPixmap. - Removed duplication of the BindingObject construction code. The custom binding objects now use the same code as the classes defined - by QWidgetFactory. + by TQWidgetFactory. - Removed test signals and slots from the kpart. @@ -3589,7 +3589,7 @@ - Started adding support for custom methods: - - jsobjectproxy.cpp Added insertItem method for QListBox + - jsobjectproxy.cpp Added insertItem method for TQListBox - jsobjectproxy_imp.cpp - jsobjectproxy_imp.h @@ -3618,11 +3618,11 @@ cleaning up more before it is ready for prime time. The methods added are: - QListBox::addItem() + TQListBox::addItem() KListView::addColumn() - QListView::addColumn() + TQListView::addColumn() KListView::insertItem() - QListView::insertItem() + TQListView::insertItem() - Started writing a new example that provides a documentation browser for KJSEmbed. @@ -3632,11 +3632,11 @@ - Added constructors for the Painter object. - - Added a new binding Pixmap that provides an interface to QPixmap. + - Added a new binding Pixmap that provides an interface to TQPixmap. - Removed duplication of the BindingObject construction code. The custom binding objects now use the same code as the classes defined - by QWidgetFactory. + by TQWidgetFactory. - Removed test signals and slots from the kpart. @@ -3665,10 +3665,10 @@ - Added support for getting the values of rect, size and point properties. The values are returned as arrays, the types are as - follows: QRect -> [x,y,w,h], QSize -> [w,h], QPoint -> [x,y] + follows: TQRect -> [x,y,w,h], TQSize -> [w,h], TQPoint -> [x,y] - Changed the prototypes of a couple of methods that extract values so - they take a KJS::ExecState parameter. This is required for us to + they take a KJS::ExecState parameter. This is retquired for us to create arrays etc. in order to return complex values. - Began renaming the KJS::ExecState variables to 'exec' rather than @@ -3686,7 +3686,7 @@ - Improved slot publishing code so that overloaded slots are supported. The first slot is published as before, subsequent slots - with the same name get the number of arguments they require + with the same name get the number of arguments they retquire appended. - Removed the childAt() and findChild() methods from the JSObjectProxy @@ -3738,7 +3738,7 @@ - Added a couple more examples. - - Added support for creating QObject and QTimer. + - Added support for creating TQObject and TQTimer. - Added some scripts to the docs directory that build a reference manual for the JS API. Added the results too. @@ -3756,7 +3756,7 @@ - Support for connect - - You can now connect a signal defined by one QObject, to a slot + - You can now connect a signal defined by one TQObject, to a slot defined in another. - Improved the dump function: @@ -3821,21 +3821,21 @@ - Added utility methods for marshalling common types and used them to simplify the slot invocation code. - - Removed a bunch of extraneous QRegExps. + - Removed a bunch of extraneous TQRegExps. 2003-06-16 Monday 20:10 rich - Split the addition of bindings for object proxy. - - Added a stub class for QObject binding classes (the stub for native + - Added a stub class for TQObject binding classes (the stub for native bindings will arrive soon). - - Added support for QVariant return values. + - Added support for TQVariant return values. 2003-06-16 Monday 11:36 staikos - handle QString returns properly + handle TQString returns properly also be more debuggable 2003-06-15 Sunday 22:14 rich @@ -3847,7 +3847,7 @@ - bool - int - - QString + - TQString - const char * - Improved the self-documentation facilities. @@ -3880,7 +3880,7 @@ - Use KLineEdit and a KCompletion rather than a combo. - Added a prompt label with a keyboard accelerator. - - QTextEdit -> KTextEdit. + - TQTextEdit -> KTextEdit. - Pass the console widget the part rather than the interpreter. - Provide access to the default execution context, and the ability to @@ -3888,7 +3888,7 @@ 2003-06-09 Monday 03:51 staikos - Add support for QObjects that can self-bind JS methods. + Add support for TQObjects that can self-bind JS methods. Rich: this is more or less just a demo. It's not the ideal way for this to work but I have not been able to find an alternative approach in JS or in C++. We might be stuck with it. Please review. We can back it out later if a better @@ -3937,7 +3937,7 @@ - Fixed some problems with KJS::Identifier support. - - Added a very basic QPainter binding for drawing on QPixmaps. The following + - Added a very basic TQPainter binding for drawing on TQPixmaps. The following drawing operations are supported: - void moveTo( int x, int y ); @@ -3947,7 +3947,7 @@ - void drawRect( int x, int y, int w, int h ); - void drawRoundRect( int x, int y, int w, int h, int = 25, int = 25 ); - void drawEllipse( int x, int y, int w, int h ); - - void drawText( int x, int y, const QString &txt ); + - void drawText( int x, int y, const TQString &txt ); - Fixed a problem with the --mainwin option. @@ -3976,9 +3976,9 @@ 2003-02-04 Tuesday 17:50 rich - - Added support for more QWidgets: + - Added support for more TQWidgets: - QSplitter, QMainWindow, QProgressDialog. + TQSplitter, TQMainWindow, TQProgressDialog. - Improved dump() function, now spits out a nice HTML table of the properties etc. @@ -4004,7 +4004,7 @@ consistency. - Renamed publish() to addObject(), and publishStdBindings() to - addStdBindings(). This is more consistent with QSA, and makes the + addStdBindings(). This is more consistent with TQSA, and makes the API more familiar to developers familiar with the rest of KDE/Qt. 2003-01-31 Friday 18:52 rich @@ -4050,7 +4050,7 @@ - Moved Bind_Image and Bind_TextStream to their own files. - - Moved the KJS::Value <-> QVariant functions to jsbinding. + - Moved the KJS::Value <-> TQVariant functions to jsbinding. - Improved the JSObjectProxy @@ -4061,15 +4061,15 @@ 2003-01-14 Tuesday 15:56 rich - - Made QVariant <-> KJS::Value conversions standalone methods. + - Made TQVariant <-> KJS::Value conversions standalone methods. - Made the argument ordering of the create() methods consistant throughout. - - Added accessor to allow you to get the QObject a proxy is bound to. + - Added accessor to allow you to get the TQObject a proxy is bound to. - Now defines constructors for all the widgets supported by the - QWidgetFactory. This change is very important as it eliminates what + TQWidgetFactory. This change is very important as it eliminates what was the single most noticable difference between the C++ and Javascript objects. Using constructors properly has the added bonus that the Javascript interpreter can now correctly determine the @@ -4077,18 +4077,18 @@ - Supported Qt Widgets: - QPushButton, QToolButton, QCheckBox, QRadioButton, - QGroupBox, QButtonGroup, QIconView, QTable, - QListBox, QListView, QLineEdit, QSpinBox, - QMultiLineEdit, QLabel, TextLabel, PixmapLabel, - QLayoutWidget, QTabWidget, QComboBox, - QWidget, QDialog, QWizard, QLCDNumber, - QProgressBar, QTextView, QTextBrowser, - QDial, QSlider, QFrame, Line, QTextEdit, - QDateEdit, QTimeEdit, QDateTimeEdit, QScrollBar, - QPopupMenu, QWidgetStack, QMainWindow, - QDataTable, QDataBrowser, QDataView, - QVBox, QHBox, QGrid + TQPushButton, TQToolButton, TQCheckBox, TQRadioButton, + TQGroupBox, TQButtonGroup, TQIconView, TQTable, + TQListBox, TQListView, TQLineEdit, TQSpinBox, + TQMultiLineEdit, TQLabel, TextLabel, PixmapLabel, + TQLayoutWidget, TQTabWidget, TQComboBox, + TQWidget, TQDialog, TQWizard, TQLCDNumber, + TQProgressBar, TQTextView, TQTextBrowser, + TQDial, TQSlider, TQFrame, Line, TQTextEdit, + TQDateEdit, TQTimeEdit, TQDateTimeEdit, TQScrollBar, + TQPopupMenu, TQWidgetStack, TQMainWindow, + TQDataTable, TQDataBrowser, TQDataView, + TQVBox, TQHBox, TQGrid - Supported KDE Widgets: @@ -4107,7 +4107,7 @@ 2003-01-11 Saturday 21:50 rich - - Added a binding to QImage::smoothScale(w,h,ScaleMin). This should + - Added a binding to TQImage::smoothScale(w,h,ScaleMin). This should really be handled by the enum property support, but as that doesn't exist yet we'll do it the hard way. @@ -4141,7 +4141,7 @@ - Added Image binding. - - Provides a binding to some basic QImage and QImageIO operations. + - Provides a binding to some basic TQImage and TQImageIO operations. - Added example that prints info about an image. - Added an example that scales an image and writes it in a specified - format. @@ -4186,7 +4186,7 @@ - Extended factory class to create the following types: - - Any QWidget sub-class + - Any TQWidget sub-class - KAction - KToggleAction @@ -4238,6 +4238,6 @@ 2001-11-13 Tuesday 15:56 rich - A library for embedding kjs with transparent bindings to QObjects and + A library for embedding kjs with transparent bindings to TQObjects and their properties, a dialog loader and a hook loader for client apps. diff --git a/kjsembed/docs/TODO b/kjsembed/docs/TODO index 06cfb0e4..38c3eafe 100644 --- a/kjsembed/docs/TODO +++ b/kjsembed/docs/TODO @@ -38,8 +38,8 @@ Bind Wizard =========== - Missing arg types: - - QColorGroup & - - QPainter * + - TQColorGroup & + - TQPainter * Bindings ======== @@ -49,9 +49,9 @@ Bindings - Move to the same pattern as the KJS/DOM bindings for better inheritence support. -- Support for QSignal +- Support for TQSignal -- A generic wrapper for QStyle so you can write styles in JS. +- A generic wrapper for TQStyle so you can write styles in JS. License Clarification ===================== diff --git a/kjsembed/docs/build-docs.js b/kjsembed/docs/build-docs.js index 04f276c1..0758d4fc 100644 --- a/kjsembed/docs/build-docs.js +++ b/kjsembed/docs/build-docs.js @@ -175,9 +175,9 @@ document_statics( expts ); generate_docs_object( 'TextStream', System.stdin ); generate_docs_object( 'Application', application ); generate_docs_object( 'KJSEmbedPart', part ); -generate_docs_object( 'QListViewItem', new QListViewItem(new QListView()) ); -generate_docs_object( 'QCheckListItem', new QCheckListItem(new QListView()) ); -generate_docs_object( 'QCanvasText', new QCanvasText(new QCanvas()) ); +generate_docs_object( 'TQListViewItem', new TQListViewItem(new TQListView()) ); +generate_docs_object( 'TQCheckListItem', new TQCheckListItem(new TQListView()) ); +generate_docs_object( 'TQCanvasText', new TQCanvasText(new TQCanvas()) ); other.push( 'Application' ); other.sort(); diff --git a/kjsembed/docs/build-docs.sh b/kjsembed/docs/build-docs.sh index 815fead4..133dba91 100755 --- a/kjsembed/docs/build-docs.sh +++ b/kjsembed/docs/build-docs.sh @@ -23,29 +23,29 @@ $JS write_docs.js 'StdDirs' 'StdDirs' 'Provides access to KStandardDirs.' > $REF $JS write_docs.js 'StdIcons' 'StdIcons' 'Provides access to the KIconLoader.' > $REF/stdicons.html # Custom Objects -$JS write_docs.js 'Image' 'new Image()' 'Bindings to the QImage class.' > $REF/image.html -$JS write_docs.js 'Pixmap' 'new Pixmap()' 'Bindings to the QPixmap class.' > $REF/pixmap.html +$JS write_docs.js 'Image' 'new Image()' 'Bindings to the TQImage class.' > $REF/image.html +$JS write_docs.js 'Pixmap' 'new Pixmap()' 'Bindings to the TQPixmap class.' > $REF/pixmap.html $JS write_docs.js 'Painter' 'new Painter()' 'Bindings for painting on Pixmaps.' > $REF/painter.html $JS write_docs.js 'NetAccess' 'new NetAccess()' 'Bindings for KIO::NetAccess.' > $REF/netaccess.html $JS write_docs.js 'DCOPObject' 'new DCOPObject()' 'Provides support for DCOP.' > $REF/dcop.html $JS write_docs.js 'SqlDatabase' 'new SqlDatabase()' 'Provides support for QtSQL Databases.' > $REF/sqldatabase.html $JS write_docs.js 'SqlQuery' 'new SqlQuery()' 'Provides support for QtSQL Queries.' > $REF/sqlquery.html -$JS write_docs.js 'TextStream' 'System.stdin' 'Bindings for QTextSteam.' > $REF/textstream.html +$JS write_docs.js 'TextStream' 'System.stdin' 'Bindings for TQTextSteam.' > $REF/textstream.html $JS write_docs.js 'Config' 'new Config()' 'Bindings to the KConfig class.' > $REF/config.html # Qt Objects -OBJECTS="QPushButton QToolButton QCheckBox QRadioButton" -OBJECTS="$OBJECTS QGroupBox QButtonGroup QIconView QTable" -OBJECTS="$OBJECTS QListBox QListView QLineEdit QSpinBox" -OBJECTS="$OBJECTS QMultiLineEdit QLabel TextLabel PixmapLabel" -OBJECTS="$OBJECTS QLayoutWidget QTabWidget QComboBox" -OBJECTS="$OBJECTS QWidget QDialog QWizard QLCDNumber" -OBJECTS="$OBJECTS QProgressBar QTextView QTextBrowser" -OBJECTS="$OBJECTS QDial QSlider QFrame Line QTextEdit" -OBJECTS="$OBJECTS QDateEdit QTimeEdit QDateTimeEdit QScrollBar" -OBJECTS="$OBJECTS QPopupMenu QWidgetStack QMainWindow" -OBJECTS="$OBJECTS QDataTable QDataBrowser QDataView" -OBJECTS="$OBJECTS QVBox QHBox QGrid" +OBJECTS="TQPushButton TQToolButton TQCheckBox TQRadioButton" +OBJECTS="$OBJECTS TQGroupBox TQButtonGroup TQIconView TQTable" +OBJECTS="$OBJECTS TQListBox TQListView TQLineEdit TQSpinBox" +OBJECTS="$OBJECTS TQMultiLineEdit TQLabel TextLabel PixmapLabel" +OBJECTS="$OBJECTS TQLayoutWidget TQTabWidget TQComboBox" +OBJECTS="$OBJECTS TQWidget TQDialog TQWizard TQLCDNumber" +OBJECTS="$OBJECTS TQProgressBar TQTextView TQTextBrowser" +OBJECTS="$OBJECTS TQDial TQSlider TQFrame Line TQTextEdit" +OBJECTS="$OBJECTS TQDateEdit TQTimeEdit TQDateTimeEdit TQScrollBar" +OBJECTS="$OBJECTS TQPopupMenu TQWidgetStack TQMainWindow" +OBJECTS="$OBJECTS TQDataTable TQDataBrowser TQDataView" +OBJECTS="$OBJECTS TQVBox TQHBox TQGrid" for OBJ in $OBJECTS ; do @@ -72,8 +72,8 @@ do done -OBJECTS="$OBJECTS QSplitter" -OBJECTS="$OBJECTS QObject QTimer" +OBJECTS="$OBJECTS TQSplitter" +OBJECTS="$OBJECTS TQObject TQTimer" OBJECTS="$OBJECTS KMainWindow KAction KToggleAction" diff --git a/kjsembed/docs/embedding/qtembed/main.cpp b/kjsembed/docs/embedding/qtembed/main.cpp index fbf8541b..78808aac 100644 --- a/kjsembed/docs/embedding/qtembed/main.cpp +++ b/kjsembed/docs/embedding/qtembed/main.cpp @@ -10,7 +10,7 @@ int main ( int argc, char ** argv ) { - TQApplication app( argc, argv ); + TTQApplication app( argc, argv ); POSViewImp *view = new POSViewImp; app.setMainWidget(view); view->show(); diff --git a/kjsembed/docs/embedding/qtembed/posviewbase.ui b/kjsembed/docs/embedding/qtembed/posviewbase.ui index 9d8bad1a..4916d505 100755 --- a/kjsembed/docs/embedding/qtembed/posviewbase.ui +++ b/kjsembed/docs/embedding/qtembed/posviewbase.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>POSViewBase</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>POSViewBase</cstring> </property> @@ -22,7 +22,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout3</cstring> </property> @@ -30,7 +30,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QFrame"> + <widget class="TQFrame"> <property name="name"> <cstring>appFrame</cstring> </property> @@ -49,7 +49,7 @@ <enum>Raised</enum> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout2</cstring> </property> @@ -57,7 +57,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -65,7 +65,7 @@ <string>Recipt</string> </property> </widget> - <widget class="QTextBrowser"> + <widget class="TQTextBrowser"> <property name="name"> <cstring>recipt</cstring> </property> @@ -85,7 +85,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -99,7 +99,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonHelp</cstring> </property> @@ -130,7 +130,7 @@ </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonOk</cstring> </property> @@ -147,7 +147,7 @@ <bool>true</bool> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonCancel</cstring> </property> diff --git a/kjsembed/docs/embedding/qtembed/posviewimp.cpp b/kjsembed/docs/embedding/qtembed/posviewimp.cpp index a9c3c289..118e471b 100644 --- a/kjsembed/docs/embedding/qtembed/posviewimp.cpp +++ b/kjsembed/docs/embedding/qtembed/posviewimp.cpp @@ -14,7 +14,7 @@ #include <tqdatetime.h> #include <tqcolor.h> -POSViewImp::POSViewImp(TQWidget *parent, const char *name) +POSViewImp::POSViewImp(TTQWidget *parent, const char *name) :POSViewBase(parent, name) { m_part = new KJSEmbed::KJSEmbedPart(0, "kjsembed_part", this,"JSEmbed"); diff --git a/kjsembed/docs/embedding/qtembed/posviewimp.h b/kjsembed/docs/embedding/qtembed/posviewimp.h index 764ac813..2bb0df9c 100644 --- a/kjsembed/docs/embedding/qtembed/posviewimp.h +++ b/kjsembed/docs/embedding/qtembed/posviewimp.h @@ -15,7 +15,7 @@ namespace KJSEmbed { class POSViewImp: public POSViewBase { Q_OBJECT public: - POSViewImp( TQWidget *parent = 0, const char *name = 0 ); + POSViewImp( TTQWidget *parent = 0, const char *name = 0 ); public slots: void loadScript(); diff --git a/kjsembed/docs/embedding/qtembed/test.js b/kjsembed/docs/embedding/qtembed/test.js index 7a5c3bc0..f8e19742 100644 --- a/kjsembed/docs/embedding/qtembed/test.js +++ b/kjsembed/docs/embedding/qtembed/test.js @@ -1,3 +1,3 @@ -var vbox = new QVBoxLayout( appFrame ); +var vbox = new TQVBoxLayout( appFrame ); var view = Factory.loadui("view.ui", appFrame, appFrame ); view.show();
\ No newline at end of file diff --git a/kjsembed/docs/embedding/qtembed/view.ui b/kjsembed/docs/embedding/qtembed/view.ui index c714ff00..2f3eaa01 100755 --- a/kjsembed/docs/embedding/qtembed/view.ui +++ b/kjsembed/docs/embedding/qtembed/view.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>view</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>view</cstring> </property> @@ -16,7 +16,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout1</cstring> </property> @@ -24,17 +24,17 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLineEdit" row="1" column="1"> + <widget class="TQLineEdit" row="1" column="1"> <property name="name"> <cstring>mSKU</cstring> </property> </widget> - <widget class="QLineEdit" row="2" column="1"> + <widget class="TQLineEdit" row="2" column="1"> <property name="name"> <cstring>mPrice</cstring> </property> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -42,7 +42,7 @@ <string>SKU:</string> </property> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -50,7 +50,7 @@ <string>Price:</string> </property> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -58,7 +58,7 @@ <string>Product:</string> </property> </widget> - <widget class="QComboBox" row="0" column="1"> + <widget class="TQComboBox" row="0" column="1"> <property name="name"> <cstring>mProduct</cstring> </property> @@ -68,7 +68,7 @@ </widget> </grid> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>mImage</cstring> </property> diff --git a/kjsembed/docs/embedding/simple-embed/README b/kjsembed/docs/embedding/simple-embed/README index f04a5635..9f4bbff5 100644 --- a/kjsembed/docs/embedding/simple-embed/README +++ b/kjsembed/docs/embedding/simple-embed/README @@ -1,5 +1,5 @@ ----------------------------------------------- -Kde application framework template quickstart +Kde application framework template tquickstart Author: Thomas Nagy Date: 2004-03-22 ----------------------------------------------- diff --git a/kjsembed/docs/embedding/simple-embed/demo.html b/kjsembed/docs/embedding/simple-embed/demo.html index 085d47bf..f5c46b63 100644 --- a/kjsembed/docs/embedding/simple-embed/demo.html +++ b/kjsembed/docs/embedding/simple-embed/demo.html @@ -69,8 +69,8 @@ who want to write scripts. <li><b><a href="conventions.html">Document Conventions</a></b><br> Explains the typographical conventions used by the documents.</li> - <li><b><a href="kjsembed-qsa.html">KJSEmbed and QSA</a></b><br> - Discusses the differences between KJSEmbed and QSA.</li> + <li><b><a href="kjsembed-qsa.html">KJSEmbed and TQSA</a></b><br> + Discusses the differences between KJSEmbed and TQSA.</li> </ul> <h3>References</h3> @@ -83,7 +83,7 @@ who want to write scripts. A tutorial on how to implement inheritence in JavaScript. </li> <li><b><a href="http://doc.trolltech.com/qsa/">Qt Script for Applications Documentation</a></b><br> - The documentation for QSA, this is Trolltech's ECMAScript binding + The documentation for TQSA, this is Trolltech's ECMAScript binding for Qt. </li> </ul> diff --git a/kjsembed/docs/embedding/simple-embed/embedview.ui b/kjsembed/docs/embedding/simple-embed/embedview.ui index 43be65ab..44985f72 100644 --- a/kjsembed/docs/embedding/simple-embed/embedview.ui +++ b/kjsembed/docs/embedding/simple-embed/embedview.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>EmbedView</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>Form1</cstring> </property> @@ -16,7 +16,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout1</cstring> </property> @@ -24,7 +24,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -42,7 +42,7 @@ <cstring>m_name</cstring> </property> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -50,7 +50,7 @@ <string>Department:</string> </property> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -65,7 +65,7 @@ </widget> </grid> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>m_customOptions</cstring> </property> @@ -81,7 +81,7 @@ <string>Custom Options</string> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout3</cstring> </property> diff --git a/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp b/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp index b71521d5..87ae4f00 100644 --- a/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp +++ b/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp @@ -15,7 +15,7 @@ #include <tqdatetime.h> #include <tqcolor.h> -EmbedViewImp::EmbedViewImp(TQWidget *parent, const char *name) +EmbedViewImp::EmbedViewImp(TTQWidget *parent, const char *name) :EmbedView(parent, name) { m_part = new KJSEmbed::KJSEmbedPart(0, "kjsembed_part", this,"JSEmbed"); @@ -30,10 +30,10 @@ void EmbedViewImp::okClicked() { KJS::List args; KJS::Value val = m_part->callMethod("handleOk", args); - TQMap<TQString, TQVariant> personalData = KJSEmbed::convertToVariant(m_part->globalExec(), val).toMap(); - TQDate birthday = personalData["birthday"].toDate(); - TQColor eyecolor = personalData["eyeColor"].toColor(); - TQString notes = personalData["notes"].toString(); + TTQMap<TTQString, TTQVariant> personalData = KJSEmbed::convertToVariant(m_part->globalExec(), val).toMap(); + TTQDate birthday = personalData["birthday"].toDate(); + TTQColor eyecolor = personalData["eyeColor"].toColor(); + TTQString notes = personalData["notes"].toString(); kdDebug() << "birthday: " << birthday << endl; kdDebug() << "eyecolor: " << eyecolor << endl; @@ -53,23 +53,23 @@ void EmbedViewImp::consoleClicked() m_part->view()->setHidden(!m_part->view()->isHidden()); } -bool EmbedViewImp::runScript( const TQString &file ) +bool EmbedViewImp::runScript( const TTQString &file ) { return m_part->runFile(file, m_part->globalObject() ); } -TQVariant EmbedViewImp::someValue() const +TTQVariant EmbedViewImp::someValue() const { - TQMap<TQString,TQVariant> returnMap; + TTQMap<TTQString,TTQVariant> returnMap; returnMap["name"] = m_name->text(); returnMap["title"] = m_title->text(); returnMap["dept"] = m_dept->text(); - return TQVariant(returnMap); + return TTQVariant(returnMap); } -void EmbedViewImp::setSomeValue( const TQVariant &val ) +void EmbedViewImp::setSomeValue( const TTQVariant &val ) { - TQMap<TQString,TQVariant> map = val.toMap(); + TTQMap<TTQString,TTQVariant> map = val.toMap(); m_name->setText(map["name"].toString()); m_title->setText(map["title"].toString()); m_dept->setText(map["dept"].toString()); diff --git a/kjsembed/docs/embedding/simple-embed/embedviewimp.h b/kjsembed/docs/embedding/simple-embed/embedviewimp.h index 7c678a32..5003c182 100644 --- a/kjsembed/docs/embedding/simple-embed/embedviewimp.h +++ b/kjsembed/docs/embedding/simple-embed/embedviewimp.h @@ -16,17 +16,17 @@ class EmbedViewImp: public EmbedView { Q_OBJECT public: - EmbedViewImp( TQWidget *parent = 0, const char *name = 0 ); + EmbedViewImp( TTQWidget *parent = 0, const char *name = 0 ); - bool runScript( const TQString &file ); + bool runScript( const TTQString &file ); public slots: virtual void cancelClicked(); virtual void okClicked(); virtual void consoleClicked(); - TQVariant someValue() const; - void setSomeValue( const TQVariant &var ); + TTQVariant someValue() const; + void setSomeValue( const TTQVariant &var ); private: KJSEmbed::KJSEmbedPart *m_part; }; diff --git a/kjsembed/docs/embedding/simple-embed/hi32-app-embedjs.png b/kjsembed/docs/embedding/simple-embed/hi32-app-embedjs.png Binary files differindex 45ae1a11..a8c927b0 100644 --- a/kjsembed/docs/embedding/simple-embed/hi32-app-embedjs.png +++ b/kjsembed/docs/embedding/simple-embed/hi32-app-embedjs.png diff --git a/kjsembed/docs/embedding/simple-embed/test.js b/kjsembed/docs/embedding/simple-embed/test.js index 2511a465..f954b26a 100644 --- a/kjsembed/docs/embedding/simple-embed/test.js +++ b/kjsembed/docs/embedding/simple-embed/test.js @@ -3,18 +3,18 @@ CustomOptions.orientation = Qt.Vertical; CustomOptions.columns = 1; -var box = new QVBox(CustomOptions); -var row1 = new QHBox(box); -var dateLabel = new QLabel(row1); +var box = new TQVBox(CustomOptions); +var row1 = new TQHBox(box); +var dateLabel = new TQLabel(row1); dateLabel.text = "Birthday:"; var birthday = new KDateWidget(row1); -var row2 = new QHBox(box); -var eyeLabel = new QLabel(row2); +var row2 = new TQHBox(box); +var eyeLabel = new TQLabel(row2); eyeLabel.text = "Eye color:"; var eyeColor = new KColorButton(row2); -var row3 = new QHBox(box); +var row3 = new TQHBox(box); var notes = new KTextEdit(row3); box.show(); diff --git a/kjsembed/docs/examples/README b/kjsembed/docs/examples/README index db1e2e37..71449ae3 100644 --- a/kjsembed/docs/examples/README +++ b/kjsembed/docs/examples/README @@ -40,14 +40,14 @@ This section contains examples that illustrate particular KJSEmbed facilities. customwidget Creates a simple form directly from Javascript. treeview Two examples that create a graphical tree. One from a JS data structure, the other from the widget tree of a ui file. -qobject-dom Illustrates the QObject DOM API. +qobject-dom Illustrates the TQObject DOM API. connect-cpp Connects a signal to slot. connect Connects signals of various types to JS methods. -imageviewer Illustrates the use of QPixmap values. +imageviewer Illustrates the use of TQPixmap values. netaccess Illustrates the bindings to KIO::NetAccess. listview Creates a simple KListView. -frame Shows off QFrame support and the use of enums. -timer Creates a flashing LED using QTimer. +frame Shows off TQFrame support and the use of enums. +timer Creates a flashing LED using TQTimer. Actions A simple KAction demo. Built-In Messages Demonstrates the built-in message dialogs. Image Tweak Tweaking images. @@ -57,7 +57,7 @@ JS UIC An easy way to deal with UI files. Multi-file Scripts Multi-file Scripts. Opaque Values Opaque types. Standard Icons Loading standard icons. -QComboBox A simple demo of QComboBox. +TTQComboBox A simple demo of TQComboBox. Embedding several Shows how to embed multiple parts in the same script. KParts Writing data Shows how to send data directly to a part, rather than diff --git a/kjsembed/docs/examples/buttonmaker/ButtonMakerUI.ui b/kjsembed/docs/examples/buttonmaker/ButtonMakerUI.ui index 23c30593..60339d6a 100644 --- a/kjsembed/docs/examples/buttonmaker/ButtonMakerUI.ui +++ b/kjsembed/docs/examples/buttonmaker/ButtonMakerUI.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>Form1</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>Form1</cstring> </property> @@ -24,7 +24,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>PreviewBox</cstring> </property> @@ -43,7 +43,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>Preview</cstring> </property> @@ -56,7 +56,7 @@ </widget> </grid> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout6</cstring> </property> @@ -64,7 +64,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -82,7 +82,7 @@ </widget> </hbox> </widget> - <widget class="QButtonGroup"> + <widget class="TQButtonGroup"> <property name="name"> <cstring>Mode</cstring> </property> @@ -93,7 +93,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout15</cstring> </property> @@ -101,7 +101,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout8</cstring> </property> @@ -109,7 +109,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>Srcimg</cstring> </property> @@ -127,7 +127,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout14</cstring> </property> @@ -152,7 +152,7 @@ </size> </property> </spacer> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout13</cstring> </property> @@ -160,7 +160,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel3_2</cstring> </property> @@ -178,7 +178,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout12</cstring> </property> @@ -186,7 +186,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel4_2</cstring> </property> @@ -208,7 +208,7 @@ </widget> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout17</cstring> </property> @@ -216,7 +216,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>Pillbox</cstring> </property> @@ -241,7 +241,7 @@ </size> </property> </spacer> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout9</cstring> </property> @@ -249,7 +249,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -273,7 +273,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout10</cstring> </property> @@ -281,7 +281,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -322,7 +322,7 @@ </size> </property> </spacer> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout15</cstring> </property> @@ -330,7 +330,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_3</cstring> </property> @@ -362,7 +362,7 @@ </widget> </vbox> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>TextBox</cstring> </property> @@ -373,7 +373,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -392,7 +392,7 @@ <bool>false</bool> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout16</cstring> </property> @@ -400,7 +400,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2_2</cstring> </property> @@ -413,7 +413,7 @@ <cstring>XOffset</cstring> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2_2_2</cstring> </property> @@ -445,7 +445,7 @@ </spacer> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout10</cstring> </property> @@ -453,7 +453,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout7</cstring> </property> @@ -461,7 +461,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel4</cstring> </property> @@ -496,7 +496,7 @@ </size> </property> </spacer> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout8</cstring> </property> @@ -504,7 +504,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel5</cstring> </property> diff --git a/kjsembed/docs/examples/buttonmaker/buttonmaker.js b/kjsembed/docs/examples/buttonmaker/buttonmaker.js index ac85b878..8cb82ba3 100755 --- a/kjsembed/docs/examples/buttonmaker/buttonmaker.js +++ b/kjsembed/docs/examples/buttonmaker/buttonmaker.js @@ -24,20 +24,20 @@ win.connect( saveAction, 'activated()', this, 'saveImage'); win.connect( newAction, 'activated()', this, 'resetView'); -win.connect(view.TextBox.Font, 'fontSelected(const QFont&)', this, 'updateUI' ); -win.connect(view.TextBox.TextColors, 'fgChanged(const QColor&)', this, 'updateUI' ); -win.connect(view.TextBox.TextColors, 'bgChanged(const QColor&)', this, 'updateUI' ); +win.connect(view.TextBox.Font, 'fontSelected(const TQFont&)', this, 'updateUI' ); +win.connect(view.TextBox.TextColors, 'fgChanged(const TQColor&)', this, 'updateUI' ); +win.connect(view.TextBox.TextColors, 'bgChanged(const TQColor&)', this, 'updateUI' ); win.connect(view.TextBox.Offset, 'valueChanged(int)', this, 'updateUI' ); win.connect(view.TextBox.YOffset, 'valueChanged(int)', this, 'updateUI' ); win.connect(view.TextBox.XOffset, 'valueChanged(int)', this, 'updateUI' ); -win.connect(view.Text, 'returnPressed(const QString&)', this, 'updateUI'); +win.connect(view.Text, 'returnPressed(const TQString&)', this, 'updateUI'); win.connect(view.Mode, 'released(int)', this, 'changeMode'); win.connect(view.Mode.Xsize, 'valueChanged(int)', this, 'updatePillBox' ); win.connect(view.Mode.Ysize, 'valueChanged(int)', this, 'updatePillBox' ); -win.connect(view.Mode.BaseColor, 'changed(const QColor&)', this, 'updatePillBox' ); -win.connect(view.Mode.BaseImage, 'urlSelected(const QString&)', this, 'loadImage'); +win.connect(view.Mode.BaseColor, 'changed(const TQColor&)', this, 'updatePillBox' ); +win.connect(view.Mode.BaseImage, 'urlSelected(const TQString&)', this, 'loadImage'); win.connect(view.Mode.Xscale, 'valueChanged(int)', this, 'updateUI' ); win.connect(view.Mode.Yscale, 'valueChanged(int)', this, 'updateUI' ); diff --git a/kjsembed/docs/examples/buttonmaker/pillbox.js b/kjsembed/docs/examples/buttonmaker/pillbox.js index 25c50ae1..21621c19 100755 --- a/kjsembed/docs/examples/buttonmaker/pillbox.js +++ b/kjsembed/docs/examples/buttonmaker/pillbox.js @@ -61,35 +61,35 @@ function BaseImage() } this.test = function( parent ) { - var box = new QHBox(parent); - var vbox1 = new QVBox(box); - var vbox2 = new QVBox(box); - var vbox3 = new QVBox(box); - var l1 = new QLabel(vbox1); + var box = new TQHBox(parent); + var vbox1 = new TQVBox(box); + var vbox2 = new TQVBox(box); + var vbox3 = new TQVBox(box); + var l1 = new TQLabel(vbox1); l1.pixmap = this.a.pixmap(); - var l2 = new QLabel(vbox1); + var l2 = new TQLabel(vbox1); l2.pixmap = this.d.pixmap(); - var l3 = new QLabel(vbox1); + var l3 = new TQLabel(vbox1); l3.pixmap = this.g.pixmap(); - var l4 = new QLabel(vbox2); + var l4 = new TQLabel(vbox2); l4.pixmap = this.b.pixmap(); - var l5 = new QLabel(vbox2); + var l5 = new TQLabel(vbox2); l5.pixmap = this.e.pixmap(); - var l6 = new QLabel(vbox2); + var l6 = new TQLabel(vbox2); l6.pixmap = this.h.pixmap(); - var l7 = new QLabel(vbox3); + var l7 = new TQLabel(vbox3); l7.pixmap = this.c.pixmap(); - var l8 = new QLabel(vbox3); + var l8 = new TQLabel(vbox3); l8.pixmap = this.f.pixmap(); - var l9 = new QLabel(vbox3); + var l9 = new TQLabel(vbox3); l9.pixmap = this.i.pixmap(); } @@ -138,7 +138,7 @@ function BaseImage() var base = new BaseImage(); -var label = new QLabel(this); +var label = new TQLabel(this); if ( !base.loadImages() ) @@ -150,8 +150,8 @@ var W = 128; base.resize(W,H); -var box = new QHBox(this); -var label = new QLabel(box); +var box = new TQHBox(this); +var label = new TQLabel(box); label.resize(W,H); label.paintEvent = function(ev) { @@ -159,7 +159,7 @@ label.paintEvent = function(ev) base.widget(label); } -var label2 = new QLabel(box); +var label2 = new TQLabel(box); label2.pixmap = base.pixmap(W,H); base.test(box); diff --git a/kjsembed/docs/examples/calc/calc.ui b/kjsembed/docs/examples/calc/calc.ui index 773ea848..85fb6afc 100644 --- a/kjsembed/docs/examples/calc/calc.ui +++ b/kjsembed/docs/examples/calc/calc.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>calc</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>calc</cstring> </property> @@ -19,7 +19,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLCDNumber"> + <widget class="TQLCDNumber"> <property name="name"> <cstring>display</cstring> </property> @@ -27,7 +27,7 @@ <number>18</number> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout2</cstring> </property> @@ -35,7 +35,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QPushButton" row="1" column="3"> + <widget class="TQPushButton" row="1" column="3"> <property name="name"> <cstring>plus</cstring> </property> @@ -43,7 +43,7 @@ <string>+</string> </property> </widget> - <widget class="QPushButton" row="0" column="4"> + <widget class="TQPushButton" row="0" column="4"> <property name="name"> <cstring>all_clear</cstring> </property> @@ -51,7 +51,7 @@ <string>AC</string> </property> </widget> - <widget class="QPushButton" row="2" column="3"> + <widget class="TQPushButton" row="2" column="3"> <property name="name"> <cstring>minus</cstring> </property> @@ -59,7 +59,7 @@ <string>-</string> </property> </widget> - <widget class="QPushButton" row="3" column="2" rowspan="1" colspan="2"> + <widget class="TQPushButton" row="3" column="2" rowspan="1" colspan="2"> <property name="name"> <cstring>equals</cstring> </property> @@ -67,7 +67,7 @@ <string>=</string> </property> </widget> - <widget class="QPushButton" row="1" column="4"> + <widget class="TQPushButton" row="1" column="4"> <property name="name"> <cstring>clear</cstring> </property> @@ -75,7 +75,7 @@ <string>CL</string> </property> </widget> - <widget class="QPushButton" row="3" column="1"> + <widget class="TQPushButton" row="3" column="1"> <property name="name"> <cstring>zero</cstring> </property> @@ -83,7 +83,7 @@ <string>0</string> </property> </widget> - <widget class="QPushButton" row="1" column="0"> + <widget class="TQPushButton" row="1" column="0"> <property name="name"> <cstring>four</cstring> </property> @@ -91,7 +91,7 @@ <string>4</string> </property> </widget> - <widget class="QPushButton" row="0" column="1"> + <widget class="TQPushButton" row="0" column="1"> <property name="name"> <cstring>two</cstring> </property> @@ -99,7 +99,7 @@ <string>2</string> </property> </widget> - <widget class="QPushButton" row="1" column="1"> + <widget class="TQPushButton" row="1" column="1"> <property name="name"> <cstring>five</cstring> </property> @@ -107,7 +107,7 @@ <string>5</string> </property> </widget> - <widget class="QPushButton" row="0" column="2"> + <widget class="TQPushButton" row="0" column="2"> <property name="name"> <cstring>three</cstring> </property> @@ -115,7 +115,7 @@ <string>3</string> </property> </widget> - <widget class="QPushButton" row="2" column="0"> + <widget class="TQPushButton" row="2" column="0"> <property name="name"> <cstring>seven</cstring> </property> @@ -123,7 +123,7 @@ <string>7</string> </property> </widget> - <widget class="QPushButton" row="1" column="2"> + <widget class="TQPushButton" row="1" column="2"> <property name="name"> <cstring>six</cstring> </property> @@ -131,7 +131,7 @@ <string>6</string> </property> </widget> - <widget class="QPushButton" row="2" column="1"> + <widget class="TQPushButton" row="2" column="1"> <property name="name"> <cstring>eight</cstring> </property> @@ -139,7 +139,7 @@ <string>8</string> </property> </widget> - <widget class="QPushButton" row="2" column="2"> + <widget class="TQPushButton" row="2" column="2"> <property name="name"> <cstring>nine</cstring> </property> @@ -147,7 +147,7 @@ <string>9</string> </property> </widget> - <widget class="QPushButton" row="0" column="0"> + <widget class="TQPushButton" row="0" column="0"> <property name="name"> <cstring>one</cstring> </property> diff --git a/kjsembed/docs/examples/combobox/combo.js b/kjsembed/docs/examples/combobox/combo.js index 3ac40491..88f94df7 100644 --- a/kjsembed/docs/examples/combobox/combo.js +++ b/kjsembed/docs/examples/combobox/combo.js @@ -1,13 +1,13 @@ #!/usr/bin/env kjscmd -// Example that uses QComboBox +// Example that uses TQComboBox -var hbox = new QHBox(); +var hbox = new TQHBox(); -var l = new QLabel( hbox ); +var l = new TQLabel( hbox ); l.text = 'Combo test'; -var cb = new QComboBox( hbox ); +var cb = new TQComboBox( hbox ); cb.insertItem( 'test 1' ); cb.insertItem( 'test 2' ); cb.insertItem( 'test 3' ); diff --git a/kjsembed/docs/examples/connect-cpp/connect-cpp.js b/kjsembed/docs/examples/connect-cpp/connect-cpp.js index c79d1dea..2eab8db8 100644 --- a/kjsembed/docs/examples/connect-cpp/connect-cpp.js +++ b/kjsembed/docs/examples/connect-cpp/connect-cpp.js @@ -2,10 +2,10 @@ function item( parent ) { - var hbox = new QHBox( parent ); + var hbox = new TQHBox( parent ); var led = new KLed( hbox ); - var btn = new QCheckBox( hbox ); + var btn = new TQCheckBox( hbox ); btn.checked = true; btn.text = 'Toggle LED'; @@ -18,17 +18,17 @@ function item( parent ) led.connect( btn, 'toggled(bool)', 'toggle()' ); } -var vbox = new QVBox( 'test' ); +var vbox = new TQVBox( 'test' ); vbox.margin = 6; vbox.spacing = 4; -var ttl = new QLabel( vbox ); +var ttl = new TQLabel( vbox ); ttl.text = '<h1>Connections</h1>'; for ( var i = 0 ; i < 10 ; i++ ) item( vbox ); -var quit = new QPushButton( vbox ); +var quit = new TQPushButton( vbox ); quit.text = '&Quit'; vbox.connect( quit, 'clicked()', 'close()' ); diff --git a/kjsembed/docs/examples/connect/connect.js b/kjsembed/docs/examples/connect/connect.js index aa56a366..28cec189 100644 --- a/kjsembed/docs/examples/connect/connect.js +++ b/kjsembed/docs/examples/connect/connect.js @@ -38,7 +38,7 @@ var de = top.child('d'); top.connect( ve, 'clicked()', obj, 'func_void' ); top.connect( be, 'toggled(bool)', obj, 'func_bool' ); top.connect( ie, 'valueChanged(int)', obj, 'func_int' ); -top.connect( se, 'textChanged(const QString&)', obj, 'func_string' ); +top.connect( se, 'textChanged(const TQString&)', obj, 'func_string' ); top.connect( de, 'valueChanged(double)', obj, 'func_double' ); top.show(); diff --git a/kjsembed/docs/examples/connect/connect.ui b/kjsembed/docs/examples/connect/connect.ui index 5b172a8d..5c33501e 100644 --- a/kjsembed/docs/examples/connect/connect.ui +++ b/kjsembed/docs/examples/connect/connect.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>demo</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>demo</cstring> </property> @@ -24,7 +24,7 @@ <cstring>s</cstring> </property> </widget> - <widget class="QLabel" row="0" column="2"> + <widget class="TQLabel" row="0" column="2"> <property name="name"> <cstring>textLabel2_2</cstring> </property> @@ -50,12 +50,12 @@ <cstring>d</cstring> </property> </widget> - <widget class="QSpinBox" row="4" column="1"> + <widget class="TQSpinBox" row="4" column="1"> <property name="name"> <cstring>i</cstring> </property> </widget> - <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2"> + <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -79,7 +79,7 @@ <set>AlignCenter</set> </property> </widget> - <widget class="QCheckBox" row="2" column="0" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>b</cstring> </property> @@ -87,7 +87,7 @@ <string>Bool</string> </property> </widget> - <widget class="QPushButton" row="1" column="0" rowspan="1" colspan="2"> + <widget class="TQPushButton" row="1" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>v</cstring> </property> @@ -95,7 +95,7 @@ <string>Void</string> </property> </widget> - <widget class="QLabel" row="5" column="0"> + <widget class="TQLabel" row="5" column="0"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -103,7 +103,7 @@ <string>Double:</string> </property> </widget> - <widget class="QLabel" row="4" column="0"> + <widget class="TQLabel" row="4" column="0"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -111,7 +111,7 @@ <string>Int:</string> </property> </widget> - <widget class="QLabel" row="3" column="0"> + <widget class="TQLabel" row="3" column="0"> <property name="name"> <cstring>textLabel1</cstring> </property> diff --git a/kjsembed/docs/examples/customwidget/custom_widget.js b/kjsembed/docs/examples/customwidget/custom_widget.js index dbab2d8f..c9df7f29 100755 --- a/kjsembed/docs/examples/customwidget/custom_widget.js +++ b/kjsembed/docs/examples/customwidget/custom_widget.js @@ -6,25 +6,25 @@ function createField( parent ) { - var hbox = new QHBox( box, 'hb' ); + var hbox = new TQHBox( box, 'hb' ); - var label = new QLabel( hbox ); + var label = new TQLabel( hbox ); label.text = 'Filename:'; - var ed = new QLineEdit( hbox, 'lineed' ); + var ed = new TQLineEdit( hbox, 'lineed' ); ed.text = './my_file.txt'; - var pb = new QPushButton( hbox, 'button' ); + var pb = new TQPushButton( hbox, 'button' ); pb.text = 'Br&owse'; var led = new KLed( hbox, 'led' ); } function createGroup( parent ) { - var grp = new QGroupBox( box, 'grp' ); + var grp = new TQGroupBox( box, 'grp' ); grp.columns = 1; - grp.title = 'A QGroupBox'; + grp.title = 'A TQGroupBox'; - var cb1 = new QCheckBox( grp, 'check1' ); - var cb2 = new QCheckBox( grp, 'check2' ); + var cb1 = new TQCheckBox( grp, 'check1' ); + var cb2 = new TQCheckBox( grp, 'check2' ); cb1.text = 'Check Box One'; cb2.text = 'Check Box Two'; @@ -32,20 +32,20 @@ function createGroup( parent ) } // Outer layout -var box = new QVBox(); +var box = new TQVBox(); box.margin = 6; // Title -var ttl = new QLabel( box, 'title' ); +var ttl = new TQLabel( box, 'title' ); ttl.text = '<qt><center><h3>KJSEmbed Object Creation Demo</h3></center><hr></qt>'; // Named field createField( box ); // Text editor -var l = new QLabel( box, 'tl' ); +var l = new TQLabel( box, 'tl' ); l.txt = 'Editable Text Widget:'; -var txt = new QTextEdit( box, 'text_edit' ); +var txt = new TQTextEdit( box, 'text_edit' ); txt.text = '<qt>This is an editable text widget created from <i>Javascript</i> using the ' + '<b>KJSEmbed</b> library. As you can see, the facilities are powerful enough ' + 'for many useful applications to be found.</qt>'; diff --git a/kjsembed/docs/examples/dcop/interface.js b/kjsembed/docs/examples/dcop/interface.js index ed699768..8e8fad0b 100755 --- a/kjsembed/docs/examples/dcop/interface.js +++ b/kjsembed/docs/examples/dcop/interface.js @@ -11,7 +11,7 @@ function anotherInterface( bar ) } var dcop = new DCOPInterface(this, "someInterface"); -dcop.publish("void someInterface(QString)"); -dcop.publish("QString anotherInterface(QString)"); +dcop.publish("void someInterface(TQString)"); +dcop.publish("TQString anotherInterface(TQString)"); application.exec(); diff --git a/kjsembed/docs/examples/dcop/rss.js b/kjsembed/docs/examples/dcop/rss.js index c1eb3882..7ec9f2eb 100755 --- a/kjsembed/docs/examples/dcop/rss.js +++ b/kjsembed/docs/examples/dcop/rss.js @@ -3,9 +3,9 @@ function newArticles( articles ) { - var box = new QVBox(main); + var box = new TQVBox(main); var count = articles.call("count()"); - var label = new QLabel(box); + var label = new TQLabel(box); var list = new KListBox(box); @@ -19,7 +19,7 @@ function newArticles( articles ) return true; } -var main = new QHBox(this) +var main = new TQHBox(this) var dcop = new DCOPInterface(this, "news"); dcop.publish("void newArticles(DCOPRef)"); @@ -28,7 +28,7 @@ var feeds = client.call( "rssservice", "RSSService", "list()" ); for( var idx = 0; idx < feeds.length; ++idx) { - var doc = client.call( "rssservice", "RSSService", "add(QString)", feeds[idx] ); + var doc = client.call( "rssservice", "RSSService", "add(TQString)", feeds[idx] ); client.connectDCOPSignal("rssservice", doc.obj(), "documentUpdated(DCOPRef)", "news","newArticles(DCOPRef)"); doc.call("refresh()"); diff --git a/kjsembed/docs/examples/dcop/signalslot.js b/kjsembed/docs/examples/dcop/signalslot.js index 884faa29..6774854c 100755 --- a/kjsembed/docs/examples/dcop/signalslot.js +++ b/kjsembed/docs/examples/dcop/signalslot.js @@ -2,9 +2,9 @@ function newWeather( station ) { - var temp = client.call("KWeatherService", "WeatherService", "temperature(QString)", "KMKE"); - var name = client.call("KWeatherService", "WeatherService", "stationName(QString)", "KMKE"); - var label = new QLabel(this); + var temp = client.call("KWeatherService", "WeatherService", "temperature(TQString)", "KMKE"); + var name = client.call("KWeatherService", "WeatherService", "stationName(TQString)", "KMKE"); + var label = new TQLabel(this); label.text = "The temperature at " + name + " is " + temp; label.show(); } @@ -13,13 +13,13 @@ var client = new DCOPClient(this); if ( client.attach() ) { var dcop = new DCOPInterface(this, "weather"); - dcop.publish("void newWeather(QString)"); + dcop.publish("void newWeather(TQString)"); - client.connectDCOPSignal("KWeatherService", "WeatherService", "fileUpdate(QString)", - "weather","newWeather(QString)"); + client.connectDCOPSignal("KWeatherService", "WeatherService", "fileUpdate(TQString)", + "weather","newWeather(TQString)"); - client.send("KWeatherService", "WeatherService", "update(QString)", "KMKE"); + client.send("KWeatherService", "WeatherService", "update(TQString)", "KMKE"); application.exec(); } diff --git a/kjsembed/docs/examples/dcop/weather.js b/kjsembed/docs/examples/dcop/weather.js index 8d8a59c3..00c16e0e 100755 --- a/kjsembed/docs/examples/dcop/weather.js +++ b/kjsembed/docs/examples/dcop/weather.js @@ -1,7 +1,7 @@ #!/usr/bin/env kjscmd var dcop = new DCOPClient(this); -var box = new QHBox(this); +var box = new TQHBox(this); var go = new KPushButton(box); var loc = new KLineEdit(box); @@ -16,7 +16,7 @@ function getWeather() if ( dcop.isAttached() ) { var icn = new Image(this); - icn.pixmap = dcop.call("KWeatherService","WeatherService","icon(QString)", loc.text); + icn.pixmap = dcop.call("KWeatherService","WeatherService","icon(TQString)", loc.text); icn.smoothScale(32,32); go.pixmap = icn.pixmap; } diff --git a/kjsembed/docs/examples/docviewer/docviewer.js b/kjsembed/docs/examples/docviewer/docviewer.js index 3fed8a78..d03c0a15 100644 --- a/kjsembed/docs/examples/docviewer/docviewer.js +++ b/kjsembed/docs/examples/docviewer/docviewer.js @@ -32,11 +32,11 @@ function setup_sidebar( builtins, special, qt, kde, all ) var mw = new KMainWindow(this); var ac = mw.actionCollection(); -var split = new QSplitter( mw ); +var split = new TQSplitter( mw ); mw.setCentralWidget( split ); -side = new QToolBox( split, 'sidebar' ); -view = new QTabWidget( split, 'mainview' ); +side = new TQToolBox( split, 'sidebar' ); +view = new TQTabWidget( split, 'mainview' ); // Load the view jsview = Factory.createROPart( "text/html", view, "js" ); diff --git a/kjsembed/docs/examples/docviewer/docviewer.ui b/kjsembed/docs/examples/docviewer/docviewer.ui index 0cdb1930..3ccf0d02 100644 --- a/kjsembed/docs/examples/docviewer/docviewer.ui +++ b/kjsembed/docs/examples/docviewer/docviewer.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> <class>doc_viewer</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>doc_viewer</cstring> </property> @@ -27,7 +27,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -38,7 +38,7 @@ <cstring>search_edit</cstring> </property> </widget> - <widget class="QLabel" row="1" column="0" rowspan="1" colspan="2"> + <widget class="TQLabel" row="1" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>textLabel1_2</cstring> </property> diff --git a/kjsembed/docs/examples/envelopemaker/EnvelopeMakerUI.ui b/kjsembed/docs/examples/envelopemaker/EnvelopeMakerUI.ui index 2e8658b3..c9830b55 100644 --- a/kjsembed/docs/examples/envelopemaker/EnvelopeMakerUI.ui +++ b/kjsembed/docs/examples/envelopemaker/EnvelopeMakerUI.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> <class>Form1</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>Form1</cstring> </property> @@ -16,7 +16,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>groupBox1_2</cstring> </property> @@ -35,7 +35,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout14_2</cstring> </property> @@ -43,7 +43,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="1"> + <widget class="TQLayoutWidget" row="0" column="1"> <property name="name"> <cstring>layout11_2</cstring> </property> @@ -83,7 +83,7 @@ </widget> </hbox> </widget> - <widget class="QLabel" row="3" column="0"> + <widget class="TQLabel" row="3" column="0"> <property name="name"> <cstring>textLabel1_4_2</cstring> </property> @@ -91,7 +91,7 @@ <string>City/state, zipcode:</string> </property> </widget> - <widget class="QLayoutWidget" row="1" column="1"> + <widget class="TQLayoutWidget" row="1" column="1"> <property name="name"> <cstring>layout10_2</cstring> </property> @@ -131,7 +131,7 @@ </widget> </hbox> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel1_3</cstring> </property> @@ -139,7 +139,7 @@ <string>Name:</string> </property> </widget> - <widget class="QLayoutWidget" row="2" column="1"> + <widget class="TQLayoutWidget" row="2" column="1"> <property name="name"> <cstring>layout9_2</cstring> </property> @@ -179,7 +179,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="3" column="1"> + <widget class="TQLayoutWidget" row="3" column="1"> <property name="name"> <cstring>layout8_2</cstring> </property> @@ -219,7 +219,7 @@ </widget> </hbox> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel1_2_2_2</cstring> </property> @@ -227,7 +227,7 @@ <string>Address line 2:</string> </property> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel1_2_3</cstring> </property> @@ -239,7 +239,7 @@ </widget> </vbox> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>groupBox1</cstring> </property> @@ -258,7 +258,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout14</cstring> </property> @@ -266,7 +266,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="1"> + <widget class="TQLayoutWidget" row="0" column="1"> <property name="name"> <cstring>layout11</cstring> </property> @@ -306,7 +306,7 @@ </widget> </hbox> </widget> - <widget class="QLabel" row="3" column="0"> + <widget class="TQLabel" row="3" column="0"> <property name="name"> <cstring>textLabel1_4</cstring> </property> @@ -314,7 +314,7 @@ <string>City/state, zipcode:</string> </property> </widget> - <widget class="QLayoutWidget" row="1" column="1"> + <widget class="TQLayoutWidget" row="1" column="1"> <property name="name"> <cstring>layout10</cstring> </property> @@ -354,7 +354,7 @@ </widget> </hbox> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -362,7 +362,7 @@ <string>Name:</string> </property> </widget> - <widget class="QLayoutWidget" row="2" column="1"> + <widget class="TQLayoutWidget" row="2" column="1"> <property name="name"> <cstring>layout9</cstring> </property> @@ -402,7 +402,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="3" column="1"> + <widget class="TQLayoutWidget" row="3" column="1"> <property name="name"> <cstring>layout8</cstring> </property> @@ -442,7 +442,7 @@ </widget> </hbox> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel1_2_2</cstring> </property> @@ -450,7 +450,7 @@ <string>Address line 2:</string> </property> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -477,7 +477,7 @@ </size> </property> </spacer> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>barcode</cstring> </property> @@ -492,7 +492,7 @@ <cstring>font</cstring> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout12</cstring> </property> diff --git a/kjsembed/docs/examples/envelopemaker/env.js b/kjsembed/docs/examples/envelopemaker/env.js index 4d26c295..8e71a6ca 100755 --- a/kjsembed/docs/examples/envelopemaker/env.js +++ b/kjsembed/docs/examples/envelopemaker/env.js @@ -61,7 +61,7 @@ function print() if( view.child('barcode').checked ) ps += env.barcode(); ps += env.footer(); - if ( !dcop.send("kprinterservice", "printer", "printStream(const QString&)", ps ) ) + if ( !dcop.send("kprinterservice", "printer", "printStream(const TQString&)", ps ) ) { alert("There was an error talking to the KPrinterService, please check that it is running."); } diff --git a/kjsembed/docs/examples/eventhandling/jsboard.js b/kjsembed/docs/examples/eventhandling/jsboard.js index 91e9a0f2..03dc01e3 100644 --- a/kjsembed/docs/examples/eventhandling/jsboard.js +++ b/kjsembed/docs/examples/eventhandling/jsboard.js @@ -1,7 +1,7 @@ #!/usr/bin/env kjscmd // Globals -var frame = new QFrame(this); +var frame = new TQFrame(this); var labels = new Array(); var startPos = new Point(0,0); var lastPos = new Point(0,0); @@ -23,7 +23,7 @@ function Target( parent, text) var w = 100; var h = 100; - this.label = new QLabel(parent); + this.label = new TQLabel(parent); this.text = text; this.label.paletteBackgroundColor = "green"; this.label.geometry = new Rect(x,y,w,h); @@ -37,15 +37,15 @@ function Target( parent, text) function Block(parent,text) { - this.label = new QLabel(parent); + this.label = new TQLabel(parent); var x = Math.floor( Math.random() * parent.width ); var y = Math.floor( Math.random() * parent.height ); var w = 25; var h = 25; this.label.text = text; this.label.geometry = new Rect(x,y,w,h); - this.label.frameShape = QFrame.WinPanel; - this.label.frameShadow = QFrame.Plain; + this.label.frameShape = TQFrame.WinPanel; + this.label.frameShadow = TQFrame.Plain; this.label.paletteBackgroundColor = "white"; this.label.setMouseTracking(true); this.label.adjustSize(); diff --git a/kjsembed/docs/examples/eventhandling/mousetrack.js b/kjsembed/docs/examples/eventhandling/mousetrack.js index 9c970c42..0bf427c8 100644 --- a/kjsembed/docs/examples/eventhandling/mousetrack.js +++ b/kjsembed/docs/examples/eventhandling/mousetrack.js @@ -5,7 +5,7 @@ // -var mousetrack = new QWidget(this); +var mousetrack = new TQWidget(this); mousetrack.setMouseTracking(true); x=0; y=0; diff --git a/kjsembed/docs/examples/eventhandling/scribble.js b/kjsembed/docs/examples/eventhandling/scribble.js index 0ffcdb07..95fafe7c 100644 --- a/kjsembed/docs/examples/eventhandling/scribble.js +++ b/kjsembed/docs/examples/eventhandling/scribble.js @@ -5,7 +5,7 @@ // -var scribble = new QWidget(this); +var scribble = new TQWidget(this); scribble.line=false; var x=0; var y=0; diff --git a/kjsembed/docs/examples/frame/frame.js b/kjsembed/docs/examples/frame/frame.js index d19fc4de..b14be202 100644 --- a/kjsembed/docs/examples/frame/frame.js +++ b/kjsembed/docs/examples/frame/frame.js @@ -1,26 +1,26 @@ #!/usr/bin/env kjscmd -// Demo of QFrame and enum support +// Demo of TQFrame and enum support function add_frame( parent ) { - var v = new QVBox( parent ); + var v = new TQVBox( parent ); v.margin = 6; - return new QFrame( v ); + return new TQFrame( v ); } -var top = new QVBox(); -var hbox = new QHBox( top ); +var top = new TQVBox(); +var hbox = new TQHBox( top ); var f = add_frame( hbox ); -f.frameShape = QFrame.Box; +f.frameShape = TQFrame.Box; f = add_frame( hbox ); -f.frameShape = QFrame.WinPanel | QFrame.Sunken; +f.frameShape = TQFrame.WinPanel | TQFrame.Sunken; f = add_frame( hbox ); -f.frameShape = QFrame.PopupPanel; +f.frameShape = TQFrame.PopupPanel; top.resize(300,200); diff --git a/kjsembed/docs/examples/grepdialog/README b/kjsembed/docs/examples/grepdialog/README index e126113f..931d6544 100644 --- a/kjsembed/docs/examples/grepdialog/README +++ b/kjsembed/docs/examples/grepdialog/README @@ -2,5 +2,5 @@ Illustrates a number of useful facilities: - Creating dialogs from .ui files. - Reading files from stdin and parsing them with JS regexps. -- Displaying formatted text using QML. +- Displaying formatted text using TQML. - Using shell scripts with kjscmd. diff --git a/kjsembed/docs/examples/grepdialog/grepdlg.ui b/kjsembed/docs/examples/grepdialog/grepdlg.ui index 53a169bd..2bf823c2 100644 --- a/kjsembed/docs/examples/grepdialog/grepdlg.ui +++ b/kjsembed/docs/examples/grepdialog/grepdlg.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>GrepDialog</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>GrepDialog</cstring> </property> @@ -28,7 +28,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLineEdit" row="2" column="1"> + <widget class="TQLineEdit" row="2" column="1"> <property name="name"> <cstring>search_edit</cstring> </property> @@ -36,7 +36,7 @@ <string>KJSEmbed</string> </property> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>TextLabel2</cstring> </property> @@ -47,7 +47,7 @@ <cstring>search_edit</cstring> </property> </widget> - <widget class="QLabel" row="3" column="0"> + <widget class="TQLabel" row="3" column="0"> <property name="name"> <cstring>TextLabel3</cstring> </property> @@ -58,7 +58,7 @@ <cstring>files_edit</cstring> </property> </widget> - <widget class="QLineEdit" row="3" column="1"> + <widget class="TQLineEdit" row="3" column="1"> <property name="name"> <cstring>files_edit</cstring> </property> @@ -83,7 +83,7 @@ </size> </property> </spacer> - <widget class="QCheckBox" row="5" column="1"> + <widget class="TQCheckBox" row="5" column="1"> <property name="name"> <cstring>case_check</cstring> </property> @@ -91,7 +91,7 @@ <string>Match &case</string> </property> </widget> - <widget class="QLabel" row="4" column="0"> + <widget class="TQLabel" row="4" column="0"> <property name="name"> <cstring>TextLabel3_2</cstring> </property> @@ -99,7 +99,7 @@ <string>Options:</string> </property> </widget> - <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2"> + <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>TextLabel1</cstring> </property> @@ -127,7 +127,7 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QCheckBox" row="6" column="1"> + <widget class="TQCheckBox" row="6" column="1"> <property name="name"> <cstring>shownumbers_check</cstring> </property> @@ -138,7 +138,7 @@ <bool>true</bool> </property> </widget> - <widget class="QLayoutWidget" row="7" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="7" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -169,7 +169,7 @@ </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonOk</cstring> </property> diff --git a/kjsembed/docs/examples/grepdialog/grepresults.ui b/kjsembed/docs/examples/grepdialog/grepresults.ui index 4bec43f4..fd575ea5 100644 --- a/kjsembed/docs/examples/grepdialog/grepresults.ui +++ b/kjsembed/docs/examples/grepdialog/grepresults.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>GrepResults</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>GrepResults</cstring> </property> @@ -19,7 +19,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>TextLabel1</cstring> </property> @@ -47,7 +47,7 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QTextEdit"> + <widget class="TQTextEdit"> <property name="name"> <cstring>results_text</cstring> </property> @@ -70,7 +70,7 @@ <bool>false</bool> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -101,7 +101,7 @@ </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonOk</cstring> </property> diff --git a/kjsembed/docs/examples/html2text/test.htm b/kjsembed/docs/examples/html2text/test.htm index 2a060c2d..af257805 100644 --- a/kjsembed/docs/examples/html2text/test.htm +++ b/kjsembed/docs/examples/html2text/test.htm @@ -38,7 +38,7 @@ pre { been designed with this in mind thanks to a KParts plugin. In addition, KJSEmbed provides a command line tool for running scripts so users can easily create simple applications of their own in Javascript. KJSEmbed scripts are surprisingly - powerful because they access the properties and slots of QObjects, and can even + powerful because they access the properties and slots of TQObjects, and can even load widgets and dialogs created with Qt's graphical dialog editor.</p> <h3>Features</h3> <p>To give you an idea of what KJSEmbed provides, here is a brief summary of the @@ -50,16 +50,16 @@ pre { <li>Command line tool for running scripts (this can even operate without an X server if you don't need to display a GUI).</li> <li>Define new KActions using XML.</li> - <li>Scripts can access the properties and slots of QObjects as if they were + <li>Scripts can access the properties and slots of TQObjects as if they were normal Javascript properties and methods.</li> <li>Scripts can load dialogs and widgets created with Qt Designer.</li> - <li>Scripts can create instances of anu TQWidget subclass supported by TQWidgetFactory.</li> - <li>Making your own QObjects/QWidgets available for scripting is one-liner.</li> + <li>Scripts can create instances of anu TTQWidget subclass supported by TTQWidgetFactory.</li> + <li>Making your own TQObjects/TQWidgets available for scripting is one-liner.</li> <li>Scripts can traverse the widget tree, so your entire application can be made scriptable without explicitly binding every object.</li> </ul> <h3>First Steps - The Console Dialog</h3> -<p>The quickest way to see what KJSEmbed can do is with kjscmd, a tool for running +<p>The tquickest way to see what KJSEmbed can do is with kjscmd, a tool for running scripts from the command line. To begin, we'll run kjscmd without any parameters which brings up the KJSEmbed console dialog. The console provides an easy way to run short (one line) scripts, as you can see in figure 1 the scripts have @@ -87,11 +87,11 @@ JSConsoleWidget (KJSEmbed::JSConsoleWidget) kjs> console.childCount() 4 kjs> console.childAt(1) -CmdEdit (TQComboBox) +CmdEdit (TTQComboBox) kjs> console.childAt(2) -RunButton (TQPushButton) +RunButton (TTQPushButton) kjs> console.child(&quot;RunButton&quot;) -RunButton (TQPushButton) +RunButton (TTQPushButton) kjs> console.child(&quot;RunButton&quot;).text = &quot;Go!&quot; Go! kjs> console.caption = &quot;Different Title&quot; @@ -145,12 +145,12 @@ print( cmd ); <p class="precaption">Listing 1: A Script That Displays the Grep Dialog</p> <p>In order to find out what the user asked us to search for we need to extract the contents of the various fields in our dialog. We know that the field for - entering the text to be searched for is a TQLineEdit called 'search_edit', so + entering the text to be searched for is a TTQLineEdit called 'search_edit', so we can use the child() method to get hold of it (this method searches through the children of an object until it finds one with a matching name). Once we've - found the right object getting hold of the text is easy because all QLineEdits + found the right object getting hold of the text is easy because all TQLineEdits make their contents available as a property called 'text'. The code that gets - the value of the check boxes is almost identical, except that these are QCheckBoxes + the value of the check boxes is almost identical, except that these are TQCheckBoxes so it's the 'checked' property we're interested in.</p> <p align="center"><img src="grepdlg.png" alt="Grep Dialog Screenshot" width="327" height="241"></p> <p class="imgcaption">Figure 3: The Grep Dialog</p> diff --git a/kjsembed/docs/examples/imagefun/bump.ui b/kjsembed/docs/examples/imagefun/bump.ui index 90c5cc95..eb342eac 100644 --- a/kjsembed/docs/examples/imagefun/bump.ui +++ b/kjsembed/docs/examples/imagefun/bump.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> <class>Form1</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>Form1</cstring> </property> @@ -16,7 +16,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="5" column="0" rowspan="1" colspan="6"> + <widget class="TQLayoutWidget" row="5" column="0" rowspan="1" colspan="6"> <property name="name"> <cstring>layout1</cstring> </property> @@ -41,7 +41,7 @@ </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>go</cstring> </property> @@ -51,7 +51,7 @@ </widget> </hbox> </widget> - <widget class="QLabel" row="0" column="0" rowspan="1" colspan="6"> + <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="6"> <property name="name"> <cstring>view</cstring> </property> @@ -67,7 +67,7 @@ <string></string> </property> </widget> - <widget class="QLayoutWidget" row="2" column="0"> + <widget class="TQLayoutWidget" row="2" column="0"> <property name="name"> <cstring>layout5</cstring> </property> @@ -75,7 +75,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -93,7 +93,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="3" column="4" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="3" column="4" rowspan="1" colspan="2"> <property name="name"> <cstring>layout9</cstring> </property> @@ -101,7 +101,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel9</cstring> </property> @@ -109,7 +109,7 @@ <string>Type:</string> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Linear</string> @@ -131,7 +131,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="2" column="3" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="2" column="3" rowspan="1" colspan="2"> <property name="name"> <cstring>layout3</cstring> </property> @@ -139,7 +139,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel5</cstring> </property> @@ -157,7 +157,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="1" column="2" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="1" column="2" rowspan="1" colspan="2"> <property name="name"> <cstring>layout6</cstring> </property> @@ -165,7 +165,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -183,7 +183,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="3" column="2" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="3" column="2" rowspan="1" colspan="2"> <property name="name"> <cstring>layout8</cstring> </property> @@ -191,7 +191,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel7</cstring> </property> @@ -206,7 +206,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="2" column="1" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="2" column="1" rowspan="1" colspan="2"> <property name="name"> <cstring>layout4</cstring> </property> @@ -214,7 +214,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel4</cstring> </property> @@ -232,7 +232,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>layout7</cstring> </property> @@ -240,7 +240,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -258,7 +258,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>layout2</cstring> </property> @@ -266,7 +266,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel6</cstring> </property> @@ -281,7 +281,7 @@ </widget> </hbox> </widget> - <widget class="QCheckBox" row="4" column="5"> + <widget class="TQCheckBox" row="4" column="5"> <property name="name"> <cstring>tiled</cstring> </property> @@ -289,7 +289,7 @@ <string>Tiled</string> </property> </widget> - <widget class="QCheckBox" row="4" column="2" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="4" column="2" rowspan="1" colspan="2"> <property name="name"> <cstring>invert</cstring> </property> @@ -297,7 +297,7 @@ <string>Invert</string> </property> </widget> - <widget class="QCheckBox" row="4" column="0"> + <widget class="TQCheckBox" row="4" column="0"> <property name="name"> <cstring>compensate</cstring> </property> diff --git a/kjsembed/docs/examples/imagefun/bumptest.png b/kjsembed/docs/examples/imagefun/bumptest.png Binary files differindex b6954838..4797fefb 100644 --- a/kjsembed/docs/examples/imagefun/bumptest.png +++ b/kjsembed/docs/examples/imagefun/bumptest.png diff --git a/kjsembed/docs/examples/imagefun/title.js b/kjsembed/docs/examples/imagefun/title.js index 749899be..a195173e 100755 --- a/kjsembed/docs/examples/imagefun/title.js +++ b/kjsembed/docs/examples/imagefun/title.js @@ -23,7 +23,7 @@ if (painter.begin(textlayer) ) painter.drawRoundRect( 5, 5, w-5, h-5, 25, 25 ); if( painter.end() ) { - var lbl = new QLabel(); + var lbl = new TQLabel(); var img = new Image(this); img.setPixmap( painter.pixmap() ); diff --git a/kjsembed/docs/examples/imageinfo/example.html b/kjsembed/docs/examples/imageinfo/example.html index 2f616027..58205bda 100644 --- a/kjsembed/docs/examples/imageinfo/example.html +++ b/kjsembed/docs/examples/imageinfo/example.html @@ -5,12 +5,12 @@ <body> <h1 align="center">Image Gallery</h1> <hr> -<p>Here are some images, the larger ones have been scaled down to ensure this page loads quickly. Click on an image or filename to see it full size.</p> +<p>Here are some images, the larger ones have been scaled down to ensure this page loads tquickly. Click on an image or filename to see it full size.</p> <table border=0 width="90%" cellpadding="12" cellspacing="1"> <tr> <td align="center"><a href="example1.png"><img border=0 width=197 height=160 src=thumb-example1.png></a></td> <td width="60%" valign="top" align="justify"><b><a href="example1.png">example1.png</a></b> (848x686)<p>This image shows the results of running the imagegallery script. As you can -see the script automatically creates thumbnails (using TQImage::smoothScale() +see the script automatically creates thumbnails (using TTQImage::smoothScale() for quality) and includes image descriptions if present. The descriptions can include HTML markup <b>like</b> <i>this</i>, and even <a href="http://xmelegance.org/kjsembed/">links</a>. diff --git a/kjsembed/docs/examples/imageinfo/example1.htm b/kjsembed/docs/examples/imageinfo/example1.htm index bbe9bb0b..3a0a4ef9 100644 --- a/kjsembed/docs/examples/imageinfo/example1.htm +++ b/kjsembed/docs/examples/imageinfo/example1.htm @@ -1,5 +1,5 @@ This image shows the results of running the imagegallery script. As you can -see the script automatically creates thumbnails (using TQImage::smoothScale() +see the script automatically creates thumbnails (using TTQImage::smoothScale() for quality) and includes image descriptions if present. The descriptions can include HTML markup <b>like</b> <i>this</i>, and even <a href="http://xmelegance.org/kjsembed/">links</a>. diff --git a/kjsembed/docs/examples/imageinfo/example1.png b/kjsembed/docs/examples/imageinfo/example1.png Binary files differindex 53408e63..e9228040 100644 --- a/kjsembed/docs/examples/imageinfo/example1.png +++ b/kjsembed/docs/examples/imageinfo/example1.png diff --git a/kjsembed/docs/examples/imageinfo/example4.png b/kjsembed/docs/examples/imageinfo/example4.png Binary files differindex 9c2d9ae3..340ca8c3 100644 --- a/kjsembed/docs/examples/imageinfo/example4.png +++ b/kjsembed/docs/examples/imageinfo/example4.png diff --git a/kjsembed/docs/examples/imageinfo/imagegallery.js b/kjsembed/docs/examples/imageinfo/imagegallery.js index 4cc5bc2d..dba3951c 100755 --- a/kjsembed/docs/examples/imageinfo/imagegallery.js +++ b/kjsembed/docs/examples/imageinfo/imagegallery.js @@ -6,7 +6,7 @@ var default_title = 'Image Gallery'; var default_intro = 'Here are some images, the larger ones have been scaled down to ' - + 'ensure this page loads quickly. Click on an image or filename ' + + 'ensure this page loads tquickly. Click on an image or filename ' + 'to see it full size.'; var default_width = 250; var default_height = 160; diff --git a/kjsembed/docs/examples/imageinfo/thumb-example1.png b/kjsembed/docs/examples/imageinfo/thumb-example1.png Binary files differindex 79eca5d7..118f4e7c 100644 --- a/kjsembed/docs/examples/imageinfo/thumb-example1.png +++ b/kjsembed/docs/examples/imageinfo/thumb-example1.png diff --git a/kjsembed/docs/examples/imageinfo/thumb-example2.png b/kjsembed/docs/examples/imageinfo/thumb-example2.png Binary files differindex f4c805e7..18428293 100644 --- a/kjsembed/docs/examples/imageinfo/thumb-example2.png +++ b/kjsembed/docs/examples/imageinfo/thumb-example2.png diff --git a/kjsembed/docs/examples/imageinfo/thumb-example3.png b/kjsembed/docs/examples/imageinfo/thumb-example3.png Binary files differindex 7a449b6c..8ea2689c 100644 --- a/kjsembed/docs/examples/imageinfo/thumb-example3.png +++ b/kjsembed/docs/examples/imageinfo/thumb-example3.png diff --git a/kjsembed/docs/examples/imageinfo/thumb-example4.png b/kjsembed/docs/examples/imageinfo/thumb-example4.png Binary files differindex 42fb6022..b733f08a 100644 --- a/kjsembed/docs/examples/imageinfo/thumb-example4.png +++ b/kjsembed/docs/examples/imageinfo/thumb-example4.png diff --git a/kjsembed/docs/examples/imageinfo/thumbs.html b/kjsembed/docs/examples/imageinfo/thumbs.html index dd8ae478..b47501f8 100644 --- a/kjsembed/docs/examples/imageinfo/thumbs.html +++ b/kjsembed/docs/examples/imageinfo/thumbs.html @@ -5,12 +5,12 @@ <body> <h1 align="center">Image Gallery</h1> <hr> -<p>Here are some images, the larger ones have been scaled down to ensure this page loads quickly. Click on an image or filename to see it full size.</p> +<p>Here are some images, the larger ones have been scaled down to ensure this page loads tquickly. Click on an image or filename to see it full size.</p> <table border=0 width="90%" cellpadding="12" cellspacing="1"> <tr> <td align="center"><a href="example1.png"><img border=0 width=197 height=160 src="thumb-example1.png"></a></td> <td width="60%" valign="top" align="justify"><b><a href="example1.png">example1.png</a></b> (848x686)<p>This image shows the results of running the imagegallery script. As you can -see the script automatically creates thumbnails (using TQImage::smoothScale() +see the script automatically creates thumbnails (using TTQImage::smoothScale() for quality) and includes image descriptions if present. The descriptions can include HTML markup <b>like</b> <i>this</i>, and even <a href="http://xmelegance.org/kjsembed/">links</a>. diff --git a/kjsembed/docs/examples/imagetweak/example1.png b/kjsembed/docs/examples/imagetweak/example1.png Binary files differindex 53408e63..e9228040 100644 --- a/kjsembed/docs/examples/imagetweak/example1.png +++ b/kjsembed/docs/examples/imagetweak/example1.png diff --git a/kjsembed/docs/examples/imagetweak/example4.png b/kjsembed/docs/examples/imagetweak/example4.png Binary files differindex 9c2d9ae3..340ca8c3 100644 --- a/kjsembed/docs/examples/imagetweak/example4.png +++ b/kjsembed/docs/examples/imagetweak/example4.png diff --git a/kjsembed/docs/examples/imagetweak/imagetweak.js b/kjsembed/docs/examples/imagetweak/imagetweak.js index df7c86f9..ea1d0944 100755 --- a/kjsembed/docs/examples/imagetweak/imagetweak.js +++ b/kjsembed/docs/examples/imagetweak/imagetweak.js @@ -8,10 +8,10 @@ if ( application.args.length == 0 ) { // Setup main window // var mw = new KMainWindow(); -var view = new QScrollView( mw, 'view' ); +var view = new TQScrollView( mw, 'view' ); mw.setCentralWidget( view ); -var lbl = new QLabel( view, 'view' ); +var lbl = new TQLabel( view, 'view' ); view.addChild( lbl ); // diff --git a/kjsembed/docs/examples/imageviewer/imageviewer.js b/kjsembed/docs/examples/imageviewer/imageviewer.js index f69d63c3..13fd1128 100644 --- a/kjsembed/docs/examples/imageviewer/imageviewer.js +++ b/kjsembed/docs/examples/imageviewer/imageviewer.js @@ -17,7 +17,7 @@ if ( application.args.length == 0 ) { } else { var loc = application.args[0]; - var lbl = new QLabel(); + var lbl = new TQLabel(); var img = new Image(); img.load( loc ); diff --git a/kjsembed/docs/examples/imunge/effectbrowser.ui b/kjsembed/docs/examples/imunge/effectbrowser.ui index b3ee2255..d088d18e 100644 --- a/kjsembed/docs/examples/imunge/effectbrowser.ui +++ b/kjsembed/docs/examples/imunge/effectbrowser.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> <class>EffectBrowser</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>EffectBrowser</cstring> </property> @@ -19,7 +19,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QGroupBox" row="3" column="1"> + <widget class="TQGroupBox" row="3" column="1"> <property name="name"> <cstring>settings_group</cstring> </property> @@ -35,7 +35,7 @@ <string>Settings</string> </property> </widget> - <widget class="QLabel" row="2" column="1"> + <widget class="TQLabel" row="2" column="1"> <property name="name"> <cstring>preview</cstring> </property> @@ -66,7 +66,7 @@ <set>AlignCenter</set> </property> </widget> - <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2"> + <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>textLabel1</cstring> </property> diff --git a/kjsembed/docs/examples/imunge/imunge.js b/kjsembed/docs/examples/imunge/imunge.js index 72de2c5c..6f75cbf1 100755 --- a/kjsembed/docs/examples/imunge/imunge.js +++ b/kjsembed/docs/examples/imunge/imunge.js @@ -9,9 +9,9 @@ mb = mw.menuBar(); sb = mw.statusBar(); mw.setStandardToolBarMenuEnabled( true ); -view = new QScrollView( mw, 'view' ); +view = new TQScrollView( mw, 'view' ); -lbl = new QLabel( view, 'view' ); +lbl = new TQLabel( view, 'view' ); lbl.alignment = Qt.AlignCenter; lbl.text = 'No Content'; @@ -226,7 +226,7 @@ mw.setup_actions = function() load( 'imunge_actions.js' ); mw.setup_actions(); -cwd = (new QDir()).absPath(); +cwd = (new TQDir()).absPath(); mw.createGUI( cwd + '/imungeui.rc' ); mw.resize( 700, 500 ); diff --git a/kjsembed/docs/examples/imunge/imunge_actions.js b/kjsembed/docs/examples/imunge/imunge_actions.js index 586641d9..e07d01d4 100755 --- a/kjsembed/docs/examples/imunge/imunge_actions.js +++ b/kjsembed/docs/examples/imunge/imunge_actions.js @@ -5,8 +5,8 @@ mw.create_effect_browser = function() { - this.effectsdlg = new QDialog( this ); - var vb = new QVBoxLayout( this.effectsdlg ); + this.effectsdlg = new TQDialog( this ); + var vb = new TQVBoxLayout( this.effectsdlg ); this.effects = Factory.loadui( 'effectbrowser.ui', null, this.effectsdlg ); vb.addWidget( this.effects ); diff --git a/kjsembed/docs/examples/imunge/resizeparams.ui b/kjsembed/docs/examples/imunge/resizeparams.ui index fe66f437..a7dbfd0a 100644 --- a/kjsembed/docs/examples/imunge/resizeparams.ui +++ b/kjsembed/docs/examples/imunge/resizeparams.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> <class>ResizeParams</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>ResizeParams</cstring> </property> @@ -27,7 +27,7 @@ <cstring>height_input</cstring> </property> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -40,7 +40,7 @@ <cstring>width_input</cstring> </property> </widget> - <widget class="QLabel" row="3" column="0"> + <widget class="TQLabel" row="3" column="0"> <property name="name"> <cstring>textLabel4</cstring> </property> @@ -48,7 +48,7 @@ <string>Height:</string> </property> </widget> - <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2"> + <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -89,7 +89,7 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QLayoutWidget" row="4" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="4" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -103,7 +103,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonHelp</cstring> </property> @@ -134,7 +134,7 @@ </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonOk</cstring> </property> @@ -151,7 +151,7 @@ <bool>true</bool> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonCancel</cstring> </property> diff --git a/kjsembed/docs/examples/index.html b/kjsembed/docs/examples/index.html index 4b48cc31..a3a44761 100644 --- a/kjsembed/docs/examples/index.html +++ b/kjsembed/docs/examples/index.html @@ -75,21 +75,21 @@ facilities. <td>Two examples that create a graphical tree. One from a JS data structure, the other from the widget tree of a ui file.</td></tr> <tr><td><a href="qobject-dom">qobject-dom</a></td> -<td>Illustrates the TQObject DOM API.</td></tr> +<td>Illustrates the TTQObject DOM API.</td></tr> <tr><td><a href="connect-cpp">connect-cpp</a></td> <td>Connects a signal to slot.</td></tr> <tr><td><a href="connect">connect</a></td> <td>Connects signals of various types to JS methods.</td></tr> <tr><td><a href="imageviewer">imageviewer</a></td> -<td>Illustrates the use of TQPixmap values.</td></tr> +<td>Illustrates the use of TTQPixmap values.</td></tr> <tr><td><a href="netaccess">netaccess</a></td> <td>Illustrates the bindings to KIO::NetAccess.</td></tr> <tr><td><a href="listview">listview</a></td> <td>Creates a simple KListView.</td></tr> <tr><td><a href="frame">frame</a></td> -<td>Shows off TQFrame support and the use of enums.</td></tr> +<td>Shows off TTQFrame support and the use of enums.</td></tr> <tr><td><a href="timer">timer</a></td> -<td>Creates a flashing LED using TQTimer.</td></tr> +<td>Creates a flashing LED using TTQTimer.</td></tr> <tr><td><a href="actions">Actions</a></td> <td>A simple KAction demo.</td></tr> <tr><td><a href="builtins">Built-In Messages</a></td> @@ -108,8 +108,8 @@ from a JS data structure, the other from the widget tree of a ui file.</td></tr> <td>Opaque types.</td></tr> <tr><td><a href="stdicons">Standard Icons</a></td> <td>Loading standard icons.</td></tr> -<tr><td><a href="combobox">TQComboBox</a></td> -<td>A simple demo of TQComboBox.</td></tr> +<tr><td><a href="combobox">TTQComboBox</a></td> +<td>A simple demo of TTQComboBox.</td></tr> <tr><td><a href="multipart">Embedding several KParts</a></td> <td>Shows how to embed multiple parts in the same script.</td></tr> <tr><td><a href="livedata">Writing data directly to a KPart</a></td> diff --git a/kjsembed/docs/examples/invaders/invaders.js b/kjsembed/docs/examples/invaders/invaders.js index 55531258..bca6dce4 100755 --- a/kjsembed/docs/examples/invaders/invaders.js +++ b/kjsembed/docs/examples/invaders/invaders.js @@ -14,12 +14,12 @@ var hitflag = 0; var score = 0; var selec = 0; var rsmiss = ""; -var timer = new QTimer(this); +var timer = new TQTimer(this); timer.connect(timer, "timeout()", this, "doTurn"); var win = new KMainWindow(this); -var box = new QVBox(win); -var view = new QLabel(box); +var box = new TQVBox(win); +var view = new TQLabel(box); //view.setMouseTracking(true); view.font = "courier,12,-1,5,75,0,0,0,0,0" @@ -160,7 +160,7 @@ function gameover() if (score == 0) { view.text = cr + cr + cr + cr + cr + cr + cr + cr + " Congratulations!" + cr + cr - + " YOU STOPPED THE ENEMY SQUAD!!"; + + " YOU STOPPED THE ENEMY STQUAD!!"; } else { view.text = cr + cr + cr + cr + cr + cr + cr + cr + " GAME OVER" + cr + cr diff --git a/kjsembed/docs/examples/kjsuic/kjsuic.js b/kjsembed/docs/examples/kjsuic/kjsuic.js index f95aa5ee..fcea8bb0 100644 --- a/kjsembed/docs/examples/kjsuic/kjsuic.js +++ b/kjsembed/docs/examples/kjsuic/kjsuic.js @@ -38,7 +38,7 @@ function addChildren( widget ) eval(str); var typeName = widget.child(lst[idx]).className(); - if( typeName == "QGroupBox" || typeName == "QButtonGroup" || typeName == "QFrame") + if( typeName == "TQGroupBox" || typeName == "TQButtonGroup" || typeName == "TQFrame") { eval("addChildren( widget." + lst[idx] + ");"); } diff --git a/kjsembed/docs/examples/listview/listview.js b/kjsembed/docs/examples/listview/listview.js index 5bca90c5..04197005 100644 --- a/kjsembed/docs/examples/listview/listview.js +++ b/kjsembed/docs/examples/listview/listview.js @@ -2,7 +2,7 @@ // Create main view var mw = new KMainWindow(); -var box = new QVBox( mw ); +var box = new TQVBox( mw ); mw.setCentralWidget(box); var lv = new KListView( box ); diff --git a/kjsembed/docs/examples/livedata/livepartdata.js b/kjsembed/docs/examples/livedata/livepartdata.js index 345e84e9..34866f5c 100644 --- a/kjsembed/docs/examples/livedata/livepartdata.js +++ b/kjsembed/docs/examples/livedata/livepartdata.js @@ -4,7 +4,7 @@ var mw = new KParts_MainWindow(); var ac = mw.actionCollection(); -var split = new QSplitter( mw ); +var split = new TQSplitter( mw ); mw.setCentralWidget( split ); var view = Factory.createROPart( "text/html", split, "html" ); diff --git a/kjsembed/docs/examples/madminute/configdialog.ui b/kjsembed/docs/examples/madminute/configdialog.ui index 3760c11d..968c9b1f 100644 --- a/kjsembed/docs/examples/madminute/configdialog.ui +++ b/kjsembed/docs/examples/madminute/configdialog.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>configDialog</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>configDialog</cstring> </property> @@ -25,7 +25,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -55,7 +55,7 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QLayoutWidget" row="2" column="0"> + <widget class="TQLayoutWidget" row="2" column="0"> <property name="name"> <cstring>layout10</cstring> </property> @@ -63,7 +63,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -71,7 +71,7 @@ <string>Operations:</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>addition</cstring> </property> @@ -79,7 +79,7 @@ <string>Addition</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>subtraction</cstring> </property> @@ -89,7 +89,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="3" column="0"> + <widget class="TQLayoutWidget" row="3" column="0"> <property name="name"> <cstring>layout11</cstring> </property> @@ -97,7 +97,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -105,7 +105,7 @@ <string>Time:</string> </property> </widget> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>time</cstring> </property> @@ -124,7 +124,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="6" column="0"> + <widget class="TQLayoutWidget" row="6" column="0"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -138,7 +138,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonHelp</cstring> </property> @@ -169,7 +169,7 @@ </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonOk</cstring> </property> @@ -186,7 +186,7 @@ <bool>true</bool> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonCancel</cstring> </property> @@ -202,7 +202,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="4" column="0"> + <widget class="TQLayoutWidget" row="4" column="0"> <property name="name"> <cstring>layout10</cstring> </property> @@ -212,7 +212,7 @@ </property> </hbox> </widget> - <widget class="QLayoutWidget" row="5" column="0"> + <widget class="TQLayoutWidget" row="5" column="0"> <property name="name"> <cstring>layout11</cstring> </property> @@ -220,7 +220,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_2_2</cstring> </property> diff --git a/kjsembed/docs/examples/madminute/helpdialog.ui b/kjsembed/docs/examples/madminute/helpdialog.ui index baa1a4e4..a5e78d51 100644 --- a/kjsembed/docs/examples/madminute/helpdialog.ui +++ b/kjsembed/docs/examples/madminute/helpdialog.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>helpDialog</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>helpDialog</cstring> </property> @@ -25,7 +25,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QTextBrowser"> + <widget class="TQTextBrowser"> <property name="name"> <cstring>helpText</cstring> </property> @@ -36,7 +36,7 @@ This is a small mathdrill program to help students become faster at simple addit Once the application is configured the student can start the drill by pressing the "<b>Go</b>" button or "<tt>Ctrl+G</tt>". Once the drill is started the student may answer the questions as fast as they can and press the "<tt>Enter</tt> key to submit the answer. The drill will notify the student when it is complete.</string> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout9</cstring> </property> @@ -61,7 +61,7 @@ Once the application is configured the student can start the drill by pressing t </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>pushButton7</cstring> </property> diff --git a/kjsembed/docs/examples/madminute/madminute.js b/kjsembed/docs/examples/madminute/madminute.js index a2762cde..97debe4d 100755 --- a/kjsembed/docs/examples/madminute/madminute.js +++ b/kjsembed/docs/examples/madminute/madminute.js @@ -15,7 +15,7 @@ var Subtraction = 2; var config = new Config("madminute"); config.setGroup("Game Options"); // Timer -var timer = new QTimer(this); +var timer = new TQTimer(this); // Current Argument 1 var arg1 = 0; // Current Argument 2 diff --git a/kjsembed/docs/examples/madminute/madminute.ui b/kjsembed/docs/examples/madminute/madminute.ui index dadab4d8..1154312a 100644 --- a/kjsembed/docs/examples/madminute/madminute.ui +++ b/kjsembed/docs/examples/madminute/madminute.ui @@ -1,7 +1,7 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>MainWindow</class> <author>Ian Reinhart Geiser <geiseri@kde.org></author> -<widget class="QMainWindow"> +<widget class="TQMainWindow"> <property name="name"> <cstring>MadMinute</cstring> </property> @@ -23,7 +23,7 @@ <property name="margin"> <number>3</number> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout8</cstring> </property> @@ -31,7 +31,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -63,7 +63,7 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout7</cstring> </property> @@ -71,7 +71,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout6</cstring> </property> @@ -79,7 +79,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout5</cstring> </property> @@ -87,7 +87,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>question</cstring> </property> @@ -106,7 +106,7 @@ </size> </property> </widget> - <widget class="QLineEdit"> + <widget class="TQLineEdit"> <property name="name"> <cstring>answer</cstring> </property> @@ -125,7 +125,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout3</cstring> </property> @@ -133,7 +133,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -144,7 +144,7 @@ <set>AlignVCenter</set> </property> </widget> - <widget class="QProgressBar"> + <widget class="TQProgressBar"> <property name="name"> <cstring>timeleft</cstring> </property> @@ -172,7 +172,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout6_2</cstring> </property> @@ -180,7 +180,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -208,7 +208,7 @@ </size> </property> </spacer> - <widget class="QLCDNumber"> + <widget class="TQLCDNumber"> <property name="name"> <cstring>correct</cstring> </property> diff --git a/kjsembed/docs/examples/multipart/multipart.js b/kjsembed/docs/examples/multipart/multipart.js index 89402f79..e08a3d8c 100644 --- a/kjsembed/docs/examples/multipart/multipart.js +++ b/kjsembed/docs/examples/multipart/multipart.js @@ -7,7 +7,7 @@ // // Main // -var qd = new QDir(); +var qd = new TQDir(); var dir = 'file://' + qd.path() + '/../'; var file = dir + 'index.html'; @@ -16,7 +16,7 @@ var file = dir + 'index.html'; var mw = new KParts_MainWindow(); var ac = mw.actionCollection(); -var split = new QSplitter( mw ); +var split = new TQSplitter( mw ); mw.setCentralWidget( split ); // @@ -27,7 +27,7 @@ var side = Factory.createROPart( "inode/directory", split, "sidebar" ); // // Load the views // -var views = new QSplitter( split ); +var views = new TQSplitter( split ); views.orientation = 1; var top = Factory.createROPart( "text/html", views, "html" ); diff --git a/kjsembed/docs/examples/netaccess/net.js b/kjsembed/docs/examples/netaccess/net.js index c406d79b..440cf34f 100755 --- a/kjsembed/docs/examples/netaccess/net.js +++ b/kjsembed/docs/examples/netaccess/net.js @@ -15,7 +15,7 @@ if ( ret ) { warn( 'Failed to load image '+loc); } else { print( 'Image ' + loc + ' is OK \n' ); - var lbl = new QLabel(); + var lbl = new TQLabel(); lbl.pixmap = img.pixmap(); lbl.show(); application.exec(); diff --git a/kjsembed/docs/examples/opaquevalues/opaque.js b/kjsembed/docs/examples/opaquevalues/opaque.js index f92fb6f2..3c22f04a 100755 --- a/kjsembed/docs/examples/opaquevalues/opaque.js +++ b/kjsembed/docs/examples/opaquevalues/opaque.js @@ -3,10 +3,10 @@ // Usage: kjscmd --noexec opaque.js 2>/dev/null // -// Test QVariant support +// Test TQVariant support // -var w = new QLabel(); +var w = new TQLabel(); w.text = 'Test'; var sp = w.sizePolicy; diff --git a/kjsembed/docs/examples/qdocviewer/docviewer.ui b/kjsembed/docs/examples/qdocviewer/docviewer.ui index 33db5ff2..94b7458b 100755 --- a/kjsembed/docs/examples/qdocviewer/docviewer.ui +++ b/kjsembed/docs/examples/qdocviewer/docviewer.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>HelpUI</class> -<widget class="QMainWindow"> +<widget class="TQMainWindow"> <property name="name"> <cstring>Form1</cstring> </property> @@ -22,7 +22,7 @@ <property name="spacing"> <number>2</number> </property> - <widget class="QLayoutWidget" row="0" column="0"> + <widget class="TQLayoutWidget" row="0" column="0"> <property name="name"> <cstring>layout1</cstring> </property> @@ -30,14 +30,14 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QToolBox"> + <widget class="TQToolBox"> <property name="name"> <cstring>Navbar</cstring> </property> <property name="currentIndex"> <number>5</number> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>StaticObjects</cstring> </property> @@ -57,7 +57,7 @@ <property name="spacing"> <number>1</number> </property> - <widget class="QListBox" row="0" column="0"> + <widget class="TQListBox" row="0" column="0"> <item> <property name="text"> <string>New Item</string> @@ -69,7 +69,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>ObjectTypes</cstring> </property> @@ -89,7 +89,7 @@ <property name="spacing"> <number>1</number> </property> - <widget class="QListBox" row="0" column="0"> + <widget class="TQListBox" row="0" column="0"> <item> <property name="text"> <string>New Item</string> @@ -101,7 +101,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>KJSEmbedObjects</cstring> </property> @@ -121,7 +121,7 @@ <property name="spacing"> <number>1</number> </property> - <widget class="QListBox" row="0" column="0"> + <widget class="TQListBox" row="0" column="0"> <item> <property name="text"> <string>New Item</string> @@ -133,7 +133,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>QtObjects</cstring> </property> @@ -153,7 +153,7 @@ <property name="spacing"> <number>1</number> </property> - <widget class="QListBox" row="0" column="0"> + <widget class="TQListBox" row="0" column="0"> <item> <property name="text"> <string>New Item</string> @@ -165,7 +165,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>KDEObjects</cstring> </property> @@ -185,7 +185,7 @@ <property name="spacing"> <number>1</number> </property> - <widget class="QListBox" row="0" column="0"> + <widget class="TQListBox" row="0" column="0"> <item> <property name="text"> <string>New Item</string> @@ -197,7 +197,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>ExceptionTypes</cstring> </property> @@ -217,7 +217,7 @@ <property name="spacing"> <number>1</number> </property> - <widget class="QListBox" row="0" column="0"> + <widget class="TQListBox" row="0" column="0"> <item> <property name="text"> <string>New Item</string> @@ -229,7 +229,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>UnconstructableTypes</cstring> </property> @@ -249,7 +249,7 @@ <property name="spacing"> <number>1</number> </property> - <widget class="QListBox" row="0" column="0"> + <widget class="TQListBox" row="0" column="0"> <item> <property name="text"> <string>New Item</string> @@ -261,7 +261,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>Search</cstring> </property> @@ -281,7 +281,7 @@ <property name="spacing"> <number>2</number> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout2</cstring> </property> @@ -289,7 +289,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLineEdit"> + <widget class="TQLineEdit"> <property name="name"> <cstring>SearchLine</cstring> </property> @@ -302,7 +302,7 @@ </sizepolicy> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>Search</cstring> </property> @@ -312,7 +312,7 @@ </widget> </hbox> </widget> - <widget class="QListBox"> + <widget class="TQListBox"> <item> <property name="text"> <string>New Item</string> @@ -333,7 +333,7 @@ </vbox> </widget> </widget> - <widget class="QTextBrowser"> + <widget class="TQTextBrowser"> <property name="name"> <cstring>HelpPage</cstring> </property> diff --git a/kjsembed/docs/examples/qdocviewer/qdocviewer.js b/kjsembed/docs/examples/qdocviewer/qdocviewer.js index 41ae2835..8b40e096 100644 --- a/kjsembed/docs/examples/qdocviewer/qdocviewer.js +++ b/kjsembed/docs/examples/qdocviewer/qdocviewer.js @@ -109,23 +109,23 @@ populateStaticObjects(); populateExceptions(); populateObjects(); -mw.connect( StaticObjectList, 'highlighted(const QString&)', this, 'documentStaticObject' ); -mw.connect( ExceptionTypeList, 'highlighted(const QString&)', this, 'documentStaticObject' ); -mw.connect( KDEObjectList, 'highlighted(const QString&)', this, 'documentConstructableObject' ); -mw.connect( QtObjectList, 'highlighted(const QString&)', this, 'documentConstructableObject' ); -mw.connect( KJSEmbedObjectList, 'highlighted(const QString&)', this, 'documentConstructableObject' ); -mw.connect( ObjectTypeList, 'highlighted(const QString&)', this, 'documentConstructableObject' ); +mw.connect( StaticObjectList, 'highlighted(const TQString&)', this, 'documentStaticObject' ); +mw.connect( ExceptionTypeList, 'highlighted(const TQString&)', this, 'documentStaticObject' ); +mw.connect( KDEObjectList, 'highlighted(const TQString&)', this, 'documentConstructableObject' ); +mw.connect( QtObjectList, 'highlighted(const TQString&)', this, 'documentConstructableObject' ); +mw.connect( KJSEmbedObjectList, 'highlighted(const TQString&)', this, 'documentConstructableObject' ); +mw.connect( ObjectTypeList, 'highlighted(const TQString&)', this, 'documentConstructableObject' ); mw.show(); application.exec(); /* -side = new QTabWidget( split, 'sidebar' ); -view = new QTabWidget( split, 'mainview' ); +side = new TQTabWidget( split, 'sidebar' ); +view = new TQTabWidget( split, 'mainview' ); // Load the view -js = new QTextEdit( view, 'js' ); +js = new TQTextEdit( view, 'js' ); js.setReadOnly( true ); view.addTab( js, '&Javascript' ); @@ -169,9 +169,9 @@ view.setup = function() } // Setup the sidebar -specialside = new QListBox( side, 'specialsidebar' ); -qtside = new QListBox( side, 'qtsidebar' ); -allside = new QListBox( side, 'allsidebar' ); +specialside = new TQListBox( side, 'specialsidebar' ); +qtside = new TQListBox( side, 'qtsidebar' ); +allside = new TQListBox( side, 'allsidebar' ); side.addTab( specialside, '&Special' ); side.addTab( qtside, '&Qt' ); @@ -179,9 +179,9 @@ side.addTab( allside, '&All' ); setup_sidebar( specialside, qtside, allside ); -qtside.connect( qtside, 'highlighted(const QString&)', view, 'set_class' ); -specialside.connect( specialside, 'highlighted(const QString&)', view, 'set_class' ); -allside.connect( allside, 'highlighted(const QString&)', view, 'set_class' ); +qtside.connect( qtside, 'highlighted(const TQString&)', view, 'set_class' ); +specialside.connect( specialside, 'highlighted(const TQString&)', view, 'set_class' ); +allside.connect( allside, 'highlighted(const TQString&)', view, 'set_class' ); // // Show the window diff --git a/kjsembed/docs/examples/readonlypart/readonlypart.js b/kjsembed/docs/examples/readonlypart/readonlypart.js index 0f57b763..af1ec59c 100755 --- a/kjsembed/docs/examples/readonlypart/readonlypart.js +++ b/kjsembed/docs/examples/readonlypart/readonlypart.js @@ -9,7 +9,7 @@ if ( application.args.length ) // Create the UI var mw = new KMainWindow(); -var box = new QHBox( mw ); +var box = new TQHBox( mw ); mw.setCentralWidget(box); // Create the view diff --git a/kjsembed/docs/examples/readwritepart/readwritepart.js b/kjsembed/docs/examples/readwritepart/readwritepart.js index 3cc9c18c..d9663f8d 100755 --- a/kjsembed/docs/examples/readwritepart/readwritepart.js +++ b/kjsembed/docs/examples/readwritepart/readwritepart.js @@ -9,7 +9,7 @@ if ( application.args.length ) // Create the UI var mw = new KMainWindow(); -var box = new QHBox( mw ); +var box = new TQHBox( mw ); mw.setCentralWidget(box); // Create the view diff --git a/kjsembed/docs/examples/sql/sql.js b/kjsembed/docs/examples/sql/sql.js index 5ef568de..118510d4 100755 --- a/kjsembed/docs/examples/sql/sql.js +++ b/kjsembed/docs/examples/sql/sql.js @@ -2,10 +2,10 @@ var db = new SqlDatabase(); var mw = new KMainWindow(); -var box = new QVBox( mw ); +var box = new TQVBox( mw ); mw.setCentralWidget(box); -if ( db.addDatabase("QMYSQL3", "test" )) +if ( db.addDatabase("TQMYSQL3", "test" )) { db.databaseName = "XXXX"; db.userName = "XXXX"; diff --git a/kjsembed/docs/examples/stdicons/stdicons.js b/kjsembed/docs/examples/stdicons/stdicons.js index e01c96ec..104ebd61 100755 --- a/kjsembed/docs/examples/stdicons/stdicons.js +++ b/kjsembed/docs/examples/stdicons/stdicons.js @@ -1,11 +1,11 @@ #!/usr/bin/env kjscmd -var mainBox = new QVBox(this); -var Icon1 = new QLabel(mainBox); -var Icon2 = new QLabel(mainBox); -var Icon3 = new QLabel(mainBox); -var Icon4 = new QLabel(mainBox); -var Icon5 = new QLabel(mainBox); +var mainBox = new TQVBox(this); +var Icon1 = new TQLabel(mainBox); +var Icon2 = new TQLabel(mainBox); +var Icon3 = new TQLabel(mainBox); +var Icon4 = new TQLabel(mainBox); +var Icon5 = new TQLabel(mainBox); Icon1.pixmap = StdIcons.BarIcon("openterm"); Icon2.pixmap = StdIcons.DesktopIcon("folder"); diff --git a/kjsembed/docs/examples/systemtray/systemtray.js b/kjsembed/docs/examples/systemtray/systemtray.js index 5ecc55f0..1f87998c 100755 --- a/kjsembed/docs/examples/systemtray/systemtray.js +++ b/kjsembed/docs/examples/systemtray/systemtray.js @@ -5,7 +5,7 @@ // // Create the main window -mainwin = new QTextEdit(this); +mainwin = new TQTextEdit(this); mainwin.text = '<qt>This is the main window for a script that illustrates ' + 'the use of the <i>System Tray</i>.'; @@ -13,7 +13,7 @@ mainwin.text = '<qt>This is the main window for a script that illustrates ' trayicon = new KSystemTray( mainwin ); // Set the pixmap of the tray icon (we force it to be loaded from the cwd here) -cwd = (new QDir()).absPath(); +cwd = (new TQDir()).absPath(); trayicon.pixmap = trayicon.loadIcon( cwd + '/kjstray.png' ); // Ensure we quit when you choose the option from the tray item's menu diff --git a/kjsembed/docs/examples/timer/timer.js b/kjsembed/docs/examples/timer/timer.js index fabb669f..a124eadb 100644 --- a/kjsembed/docs/examples/timer/timer.js +++ b/kjsembed/docs/examples/timer/timer.js @@ -1,7 +1,7 @@ #!/usr/bin/env kjscmd var led = new KLed(); -var timer = new QTimer(); +var timer = new TQTimer(); led.connect( timer, 'timeout()', 'toggle()' ); timer.start( 500 ); diff --git a/kjsembed/docs/examples/treeview/showtree.js b/kjsembed/docs/examples/treeview/showtree.js index 76872d35..ea6b62d9 100644 --- a/kjsembed/docs/examples/treeview/showtree.js +++ b/kjsembed/docs/examples/treeview/showtree.js @@ -2,7 +2,7 @@ function buildViewNode( node, parent ) { - var l = new QLabel( parent, 'node' ); + var l = new TQLabel( parent, 'node' ); l.text = '<center><table cellspacing=0>' + '<tr><th bgcolor="#aaaaee"><b>' + node.text + '</b></th></tr>' + '<tr><td bgcolor="#ccccee">' + node.text + '</td></tr>' @@ -20,14 +20,14 @@ function buildView( node, parent ) } // Create container node - var vbox = new QVBox( parent, 'subtree' ); + var vbox = new TQVBox( parent, 'subtree' ); vbox.margin = 8; vbox.spacing = 6; var vnode = buildViewNode( node, vbox ); // Create children - var hbox = new QHBox( vbox, 'child_nodes' ); + var hbox = new TQHBox( vbox, 'child_nodes' ); hbox.spacing = 6; for ( var i = 0 ; i < node.children.length ; i++ ) { @@ -57,11 +57,11 @@ root.children[2].children = [ buildNode('One') ]; root.children[2].children = [ buildNode('One'), buildNode('Two'), buildNode('Three') ]; // Create View -var box = new QVBox( 'tree_view' ); +var box = new TQVBox( 'tree_view' ); box.margin = 6; var view = buildView( root, box ); -var spacer = new QLabel( box ); +var spacer = new TQLabel( box ); box.show(); diff --git a/kjsembed/docs/examples/treeview/tree2.js b/kjsembed/docs/examples/treeview/tree2.js index d8b8e09d..0999101f 100644 --- a/kjsembed/docs/examples/treeview/tree2.js +++ b/kjsembed/docs/examples/treeview/tree2.js @@ -1,10 +1,10 @@ #!/usr/bin/env kjscmd -// Demo that creates a tree from a ui file using QHBox and QBox. +// Demo that creates a tree from a ui file using TQHBox and TQBox. function create_item( node, parent ) { - var l = new QLabel( parent ); + var l = new TQLabel( parent ); l.paletteBackgroundColor = '#aaaaee'; l.frameShape = 1; l.frameWidth = 1; @@ -16,7 +16,7 @@ function create_item( node, parent ) function create_subtree_layout( parent ) { - var vb = new QVBox( parent ); + var vb = new TQVBox( parent ); vb.margin = 12; return vb; @@ -24,7 +24,7 @@ function create_subtree_layout( parent ) function create_child_layout( parent ) { - var hb = new QHBox( parent ); + var hb = new TQHBox( parent ); hb.margin = 6; return hb; @@ -48,7 +48,7 @@ function create_tree( node, parent ) } var ui = Factory.loadui( 'treetest.ui' ); -var top = new QHBox(); +var top = new TQHBox(); create_tree( ui, top ); top.show(); diff --git a/kjsembed/docs/examples/treeview/treetest.ui b/kjsembed/docs/examples/treeview/treetest.ui index c645e9c2..4c75034d 100644 --- a/kjsembed/docs/examples/treeview/treetest.ui +++ b/kjsembed/docs/examples/treeview/treetest.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>Form1</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>Form1</cstring> </property> @@ -12,7 +12,7 @@ <height>116</height> </rect> </property> - <widget class="QSplitter"> + <widget class="TQSplitter"> <property name="name"> <cstring>splitter1</cstring> </property> @@ -27,7 +27,7 @@ <property name="orientation"> <enum>Horizontal</enum> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout1</cstring> </property> @@ -35,7 +35,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>pushButton1</cstring> </property> @@ -43,7 +43,7 @@ <string>pushButton1</string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>pushButton2</cstring> </property> @@ -51,7 +51,7 @@ <string>pushButton2</string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>pushButton3</cstring> </property> @@ -61,7 +61,7 @@ </widget> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout3</cstring> </property> @@ -69,7 +69,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout2</cstring> </property> @@ -77,7 +77,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>pushButton4</cstring> </property> @@ -85,7 +85,7 @@ <string>pushButton4</string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>pushButton5</cstring> </property> @@ -95,7 +95,7 @@ </widget> </hbox> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>pushButton6</cstring> </property> diff --git a/kjsembed/docs/examples/xmlgui/xmlgui.js b/kjsembed/docs/examples/xmlgui/xmlgui.js index ac0f7113..a951a2ed 100755 --- a/kjsembed/docs/examples/xmlgui/xmlgui.js +++ b/kjsembed/docs/examples/xmlgui/xmlgui.js @@ -5,7 +5,7 @@ // var mw = new KMainWindow(); -var view = new QTextEdit( mw, 'view' ); +var view = new TQTextEdit( mw, 'view' ); view.text = '<h1>Hello World</h1>' + '<p>This application is written entirely in Javascript and works ' + 'thanks to KJSEmbed</p>'; diff --git a/kjsembed/docs/features.html b/kjsembed/docs/features.html index 5da39771..8c8e378d 100644 --- a/kjsembed/docs/features.html +++ b/kjsembed/docs/features.html @@ -12,14 +12,14 @@ This document is a high-level summary of the feature set of KJSEmbed. <h2>Qt Integration</h2> <ul> -<li>Generic proxy class providing access to any TQObject. +<li>Generic proxy class providing access to any TTQObject. <li>Call slots from scripts as if they are JS methods. <li>Connect signals to JS methods as if they are slots. -<li>Navigate the TQObject tree using a DOM compatible API. +<li>Navigate the TTQObject tree using a DOM compatible API. <li>Load designer's UI files to dynamically load dialogs and widgets. -<li>Create any TQWidget supported by TQWidgetFactory. -<li>Custom factory for creating QObjects (such as TQTimer). -<li>An opaque wrapper handling any TQVariant value and any pointer. +<li>Create any TTQWidget supported by TTQWidgetFactory. +<li>Custom factory for creating TQObjects (such as TTQTimer). +<li>An opaque wrapper handling any TTQVariant value and any pointer. </ul> <h2>KDE Integration</h2> diff --git a/kjsembed/docs/images/embedjs.png b/kjsembed/docs/images/embedjs.png Binary files differindex eb18347a..03a40caa 100644 --- a/kjsembed/docs/images/embedjs.png +++ b/kjsembed/docs/images/embedjs.png diff --git a/kjsembed/docs/images/jscalc.png b/kjsembed/docs/images/jscalc.png Binary files differindex 097b3f7c..63d00726 100644 --- a/kjsembed/docs/images/jscalc.png +++ b/kjsembed/docs/images/jscalc.png diff --git a/kjsembed/docs/index.html b/kjsembed/docs/index.html index 2e113790..735310aa 100644 --- a/kjsembed/docs/index.html +++ b/kjsembed/docs/index.html @@ -74,8 +74,8 @@ who want to write scripts. <li><b><a href="conventions.html">Document Conventions</a></b><br> Explains the typographical conventions used by the documents.</li> - <li><b><a href="kjsembed-qsa.html">KJSEmbed and QSA</a></b><br> - Discusses the differences between KJSEmbed and QSA.</li> + <li><b><a href="kjsembed-qsa.html">KJSEmbed and TQSA</a></b><br> + Discusses the differences between KJSEmbed and TQSA.</li> </ul> <h3>References</h3> @@ -88,7 +88,7 @@ who want to write scripts. A tutorial on how to implement inheritence in JavaScript. </li> <li><b><a href="http://doc.trolltech.com/qsa/">Qt Script for Applications Documentation</a></b><br> - The documentation for QSA, this is Trolltech's ECMAScript binding + The documentation for TQSA, this is Trolltech's ECMAScript binding for Qt. </li> </ul> diff --git a/kjsembed/docs/kjsembed-qsa.html b/kjsembed/docs/kjsembed-qsa.html index 2de920d8..9355c268 100644 --- a/kjsembed/docs/kjsembed-qsa.html +++ b/kjsembed/docs/kjsembed-qsa.html @@ -1,32 +1,32 @@ <html> <head> <link href="kjsembed.css" rel="stylesheet" type="text/css"> -<title>KJSEmbed and QSA</title> +<title>KJSEmbed and TQSA</title> </head> <body> -<h1>KJSEmbed and QSA</h1> +<h1>KJSEmbed and TQSA</h1> <hr> <h3>Introduction</h3> -There are a lot of similarities between QSA and KJSEmbed, and this has +There are a lot of similarities between TQSA and KJSEmbed, and this has led to some confusion. This document aims to shed some light on the differences between the two libraries. <h3>The Differences</h3> <ul> - <li>QSA has a nice built in script editor which kjsembed does not, + <li>TQSA has a nice built in script editor which kjsembed does not, but kjsembed can load designers ui files anyway and it would be easy to add.</li> <li>KJSEmbed has facilities for working with KActions and can even load them from XML files.</li> - <li>KJSEmbed makes it easier to operate with Qt types than QSA. Take + <li>KJSEmbed makes it easier to operate with Qt types than TQSA. Take a look at the <a href="types.html">types documentation</a> for more details.</li> - <li>KJSEmbed has support for KDE specific types such as KURL. QSA + <li>KJSEmbed has support for KDE specific types such as KURL. TQSA does not support these types by default, but does provide facilities for adding support yourself.</li> @@ -35,7 +35,7 @@ differences between the two libraries. available if the host application chooses to publish the DOM to the interpreter.</li> - <li>KJSEmbed is LGPL while QAS is GPL.</li> + <li>KJSEmbed is LGPL while TQAS is GPL.</li> </ul> <hr> diff --git a/kjsembed/docs/tutorial/kjsembed.html b/kjsembed/docs/tutorial/kjsembed.html index dc769dc3..7e2c38fd 100644 --- a/kjsembed/docs/tutorial/kjsembed.html +++ b/kjsembed/docs/tutorial/kjsembed.html @@ -38,7 +38,7 @@ pre { been designed with this in mind thanks to a KParts plugin. In addition, KJSEmbed provides a command line tool for running scripts so users can easily create simple applications of their own in Javascript. KJSEmbed scripts are surprisingly - powerful because they access the properties and slots of QObjects, and can even + powerful because they access the properties and slots of TQObjects, and can even load widgets and dialogs created with Qt's graphical dialog editor.</p> <h3>Features</h3> <p>To give you an idea of what KJSEmbed provides, here is a brief summary of the @@ -51,16 +51,16 @@ pre { X server if you don't need to display a GUI).</li> <li>Define new KActions using XML.</li> <li>Scripts can connect signals to slots.</li> - <li>Scripts can access the properties and slots of QObjects as if they were + <li>Scripts can access the properties and slots of TQObjects as if they were normal Javascript properties and methods.</li> <li>Scripts can load dialogs and widgets created with Qt Designer.</li> - <li>Scripts can create instances of anu TQWidget subclass supported by TQWidgetFactory.</li> - <li>Making your own QObjects/QWidgets available for scripting is one-liner.</li> + <li>Scripts can create instances of anu TTQWidget subclass supported by TTQWidgetFactory.</li> + <li>Making your own TQObjects/TQWidgets available for scripting is one-liner.</li> <li>Scripts can traverse the widget tree, so your entire application can be made scriptable without explicitly binding every object.</li> </ul> <h3>First Steps - The Console Dialog</h3> -<p>The quickest way to see what KJSEmbed can do is with kjscmd, a tool for running +<p>The tquickest way to see what KJSEmbed can do is with kjscmd, a tool for running scripts from the command line. To begin, we'll run kjscmd without any parameters which brings up the KJSEmbed console dialog. The console provides an easy way to run short (one line) scripts, as you can see in figure 1 the scripts have @@ -88,11 +88,11 @@ JSConsoleWidget (KJSEmbed::JSConsoleWidget) kjs> console.childCount() 4 kjs> console.child(1) -CmdEdit (TQComboBox) +CmdEdit (TTQComboBox) kjs> console.child(2) -RunButton (TQPushButton) +RunButton (TTQPushButton) kjs> console.child("RunButton") -RunButton (TQPushButton) +RunButton (TTQPushButton) kjs> console.child("RunButton").text = "Go!" Go! kjs> console.caption = "Different Title" @@ -149,12 +149,12 @@ print( cmd ); <p class="precaption">Listing 1: A Script That Displays the Grep Dialog</p> <p>In order to find out what the user asked us to search for we need to extract the contents of the various fields in our dialog. We know that the field for - entering the text to be searched for is a TQLineEdit called 'search_edit', so + entering the text to be searched for is a TTQLineEdit called 'search_edit', so we can use the child() method to get hold of it (this method searches through the children of an object until it finds one with a matching name). Once we've - found the right object getting hold of the text is easy because all QLineEdits + found the right object getting hold of the text is easy because all TQLineEdits make their contents available as a property called 'text'. The code that gets - the value of the check boxes is almost identical, except that these are QCheckBoxes + the value of the check boxes is almost identical, except that these are TQCheckBoxes so it's the 'checked' property we're interested in.</p> <p align="center"><img src="grepdlg.png" alt="Grep Dialog Screenshot" width="327" height="241"></p> <p class="imgcaption">Figure 3: The Grep Dialog</p> diff --git a/kjsembed/docs/tutorial/passwordfileviewdlg.ui b/kjsembed/docs/tutorial/passwordfileviewdlg.ui index 5ff8c59c..603f7fa2 100644 --- a/kjsembed/docs/tutorial/passwordfileviewdlg.ui +++ b/kjsembed/docs/tutorial/passwordfileviewdlg.ui @@ -1,7 +1,7 @@ <!DOCTYPE UI><UI> <class>password_viewer</class> <widget> - <class>QDialog</class> + <class>TQDialog</class> <property stdset="1"> <name>name</name> <cstring>password_viewer</cstring> @@ -33,7 +33,7 @@ <number>6</number> </property> <widget row="0" column="0" rowspan="1" colspan="2" > - <class>QLabel</class> + <class>TQLabel</class> <property stdset="1"> <name>name</name> <cstring>TextLabel1</cstring> @@ -83,7 +83,7 @@ </property> </spacer> <widget row="3" column="1" > - <class>QPushButton</class> + <class>TQPushButton</class> <property stdset="1"> <name>name</name> <cstring>PushButton5</cstring> @@ -94,7 +94,7 @@ </property> </widget> <widget row="2" column="0" rowspan="1" colspan="2" > - <class>QListView</class> + <class>TQListView</class> <column> <property> <name>text</name> diff --git a/kjsembed/docs/types.html b/kjsembed/docs/types.html index 59701605..ab823896 100644 --- a/kjsembed/docs/types.html +++ b/kjsembed/docs/types.html @@ -38,76 +38,76 @@ continue to be supported. <h3>Strings</h3> <ul> -<li>TQString -> String -<li>TQCString -> String +<li>TTQString -> String +<li>TTQCString -> String <li>const char * -> String -<li>String -> QString -<li>String -> QCString +<li>String -> TQString +<li>String -> TQCString <li>String -> const char * </ul> <h2>Qt Object Types</h2> -<h3>TQColor</h3> +<h3>TTQColor</h3> Represents a color, possibly including an alpha channel. <ul> -<li>TQColor -> '#rrggbb' -<li>'#rrggbb' -> QColor -<li>'#rrggbbaa' -> QColor +<li>TTQColor -> '#rrggbb' +<li>'#rrggbb' -> TQColor +<li>'#rrggbbaa' -> TQColor </ul> -<h3>TQPoint</h3> +<h3>TTQPoint</h3> Represents a point. <ul> -<li>TQPoint -> [x,y] -<li>[x,y] -> QPoint -<li>obj.x obj.y -> QPoint +<li>TTQPoint -> [x,y] +<li>[x,y] -> TQPoint +<li>obj.x obj.y -> TQPoint </ul> -<h3>TQSize</h3> +<h3>TTQSize</h3> Represents a size. <ul> -<li>TQSize -> [w,h] -<li>[w,h] -> QSize -<li>obj.w obj.h -> QSize +<li>TTQSize -> [w,h] +<li>[w,h] -> TQSize +<li>obj.w obj.h -> TQSize </ul> -<h3>TQRect</h3> +<h3>TTQRect</h3> Represents a rectangle. <ul> -<li>TQRect -> [x,y,w,h] -<li>[x,y,w,h] -> QRect -<li>obj.x obj.y obj.w obj.h -> QRect +<li>TTQRect -> [x,y,w,h] +<li>[x,y,w,h] -> TQRect +<li>obj.x obj.y obj.w obj.h -> TQRect </ul> -<h3>TQDate</h3> +<h3>TTQDate</h3> Represents a date. <ul> -<li>TQDate -> '' +<li>TTQDate -> '' </ul> -<h3>TQTime</h3> +<h3>TTQTime</h3> Represents a time. <ul> -<li>TQTime -> '' +<li>TTQTime -> '' </ul> -<h3>TQDateTime</h3> +<h3>TTQDateTime</h3> Represents a date/time pair. <ul> -<li>TQDateTime -> '' +<li>TTQDateTime -> '' </ul> -<h3>TQKeySequence</h3> +<h3>TTQKeySequence</h3> Represents a sequence of keys, eg. it is used for accelerators. <ul> -<li>TQKeySequence -> '' +<li>TTQKeySequence -> '' </ul> -<h3>TQFont</h3> +<h3>TTQFont</h3> Represents a font. <ul> -<li>TQFont -> '' +<li>TTQFont -> '' </ul> <h2>KDE Object Types</h2> diff --git a/kjsembed/docs/write_classes.js b/kjsembed/docs/write_classes.js index ed47578c..ca14231f 100644 --- a/kjsembed/docs/write_classes.js +++ b/kjsembed/docs/write_classes.js @@ -14,7 +14,7 @@ text += '<h1>Constructors</h1>\n'; text += '<hr>\n'; text += 'Object that scripts can create. This list includes objects\n'; -text += 'defined by QWidgetFactory as well as those with custom bindings.\n'; +text += 'defined by TQWidgetFactory as well as those with custom bindings.\n'; text += '<ul>\n'; |