2003-02-01 Saturday 03:19 rich - Switched order of args to convertToVariant() to match everything else. - Added a new global method 'dump(Object)' that returns information about the specified object. The information returned depends on the type of the object. 2003-02-01 Saturday 00:16 rich - Renamed KJSEmbedPart::jscript() to KJSEmbedPart::interpreter() for consistency. - Renamed publish() to addObject(), and publishStdBindings() to addStdBindings(). This is more consistent with QSA, and makes the API more familiar to developers familiar with the rest of KDE/Qt. 2003-01-31 Friday 23:52 rich - Moved loadScript(filename) from main.cpp into the KPart, and renamed the existing loadXX() to executeXX() which is better anyway. - Added -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST to the build flags. - Added a standalone factory class. This class is responsible for creating the various objects, and for creating bindings. - Split the code that creates the standard bindings into individual methods. - Moved bindings classes into their own namespace KJSEmbed::Bindings, this has affected the Bind_Image, Bind_TextStream, and the XXImp classes. - Renamed SecurityPolicy to JSSecurityPolicy, and ActionData to XMLActionData. 2003-01-15 Wednesday 03:35 rich - Remove messagelog 2003-01-15 Wednesday 03:34 rich - Created a KJSEmbedPartImp class which replaces the internal MethodImp and ConstructorImp classes used before. This makes the public header files a lot cleaner, and makes the code easier to follow. - Created a JSObjectProxyImp class which does the same for JSObjectProxy. - Removed the legacy isAllowed(...) methods from JSObjectProxy, use the SecurityPolicy class instead. - Merged the reduntant class MessageLogWidget into JSConsoleWidget. - Moved Bind_Image and Bind_TextStream to their own files. - Moved the KJS::Value <-> QVariant functions to jsbinding. - Improved the JSObjectProxy - Tidied up the code for registering and calling slots. - The slots(), properties() and children() methods now return Arrays. 2003-01-14 Tuesday 20:56 rich - Made QVariant <-> 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. - Now defines constructors for all the widgets supported by the QWidgetFactory. 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 class of the objects. - 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 - Supported KDE Widgets: KActiveLabel, KCharSelect, KColorButton, KColorCombo, KComboBox, KCModule, KDateWidget, KDatePicker, KDialog, KDualColorButton, KEditListBox, KFontCombo, KGradientSelector, KHistoryCombo, KHSSelector, KLed, KListBox, KListView, KLineEdit, KPasswordEdit, KProgress, KPushButton, KRestrictedLine, KIconButton, KIntSpinBox, KRuler, KSqueezedTextLabel, KTextBrowser, KTextEdit, KURLLabel, KURLRequester, KIntNumInput, KDoubleNumInput, KDoubleSpinBox - Added constructors for the custom builtin objects Image and TextStream. 2003-01-12 Sunday 02:50 rich - Added a binding to QImage::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. - Added a readFile(name) method to the global JS object. It returns the file contents as a string, or null if the file could not be read. - Added README files to some of the examples. - Added a println() method to the global object. The old print() method has been changed so it no longer appends a newline. - Added an example that generates an image gallery. - Thumbnails of the images are created automatically. - Descriptions of the images are inserted in the generated page if there is a file called .htm. - Automatically skips its own thumbnails. - Files that aren't understood are ignored so you can just pass '*' when you call it from the command line. - Includes an example shellscript that ensures the images are sorted by their modification time. - Updated copyright info. 2003-01-11 Saturday 04:54 rich - Added Image binding. - Provides a binding to some basic QImage and QImageIO operations. - Added example that prints info about an image. - Added an example that scales an image and writes it in a specified - format. - Added support for (int, int) slots. I really need to make this code handle the args generically. - kjscmd now makes args following the script name available to JS as application.args[]. - Strip #! line that contains kjscmd from the script so the scripts can be run just by making them executable. 2003-01-06 Monday 23:23 rich - Added the tutorial i am working on so people can see how to use this stuff 2003-01-06 Monday 22:38 rich - Add link to tutorial devel site 2003-01-06 Monday 22:09 rich KJSEmbed 0.2 ============ Massively updated and improved version of KJSEmbed. Still a few things to go though, including the tutorial. - Fixed i18n of js console widget - Fixed text spacing in console widget - Fixed design flaw in security model The old model was flawed because sub-proxies would always revert to the default policy rather than using the custom policy defined by a subclass. The policy is now a standalone object, so the problem is fixed. - Added lots of documentation and a Doxygen config file. - Extended factory class to create the following types: - Any QWidget sub-class - KAction - KToggleAction - Added a command line tool for invoking js scripts - Improved JSObjectProxy Massively - Create child widgets from a script - Create KActions and KToggleActions from a script - Call slots from scripts - Added support for additional property types 2002-11-29 Friday 17:28 mueller backport install dir fix 2002-11-29 Friday 17:28 mueller install in the right path 2002-11-07 Thursday 20:30 coolo little cleanup 2002-03-08 Friday 18:53 rich kdoc fixes 2002-03-08 Friday 17:43 rich Updates for kjs changes in HEAD 2001-11-16 Friday 09:59 faure Let $(all_includes) be last otherwise my script gets unhappy ;) 2001-11-15 Thursday 19:19 mueller ignore 2001-11-13 Tuesday 23:38 rich Added an example of how to use the example. :-) 2001-11-13 Tuesday 22:12 wgreven Fix compililation for builddir != srcdir. 2001-11-13 Tuesday 20:56 rich A library for embedding kjs with transparent bindings to QObjects and their properties, a dialog loader and a hook loader for client apps.