summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde')
-rw-r--r--kdejava/koala/org/kde/Makefile.am5
-rw-r--r--kdejava/koala/org/kde/koala/AbstractView.java53
-rw-r--r--kdejava/koala/org/kde/koala/Attr.java120
-rw-r--r--kdejava/koala/org/kde/koala/AuthInfo.java61
-rw-r--r--kdejava/koala/org/kde/koala/BrowserExtension.java258
-rw-r--r--kdejava/koala/org/kde/koala/BrowserExtensionSignals.java215
-rw-r--r--kdejava/koala/org/kde/koala/BrowserHostExtension.java63
-rw-r--r--kdejava/koala/org/kde/koala/BrowserInterface.java55
-rw-r--r--kdejava/koala/org/kde/koala/BrowserRun.java143
-rw-r--r--kdejava/koala/org/kde/koala/CDATASection.java46
-rw-r--r--kdejava/koala/org/kde/koala/CSSCharsetRule.java44
-rw-r--r--kdejava/koala/org/kde/koala/CSSException.java27
-rw-r--r--kdejava/koala/org/kde/koala/CSSFontFaceRule.java40
-rw-r--r--kdejava/koala/org/kde/koala/CSSImportRule.java56
-rw-r--r--kdejava/koala/org/kde/koala/CSSMediaRule.java87
-rw-r--r--kdejava/koala/org/kde/koala/CSSPageRule.java52
-rw-r--r--kdejava/koala/org/kde/koala/CSSPrimitiveValue.java145
-rw-r--r--kdejava/koala/org/kde/koala/CSSRule.java82
-rw-r--r--kdejava/koala/org/kde/koala/CSSRuleList.java54
-rw-r--r--kdejava/koala/org/kde/koala/CSSStyleDeclaration.java155
-rw-r--r--kdejava/koala/org/kde/koala/CSSStyleRule.java52
-rw-r--r--kdejava/koala/org/kde/koala/CSSStyleSheet.java86
-rw-r--r--kdejava/koala/org/kde/koala/CSSUnknownRule.java32
-rw-r--r--kdejava/koala/org/kde/koala/CSSValue.java51
-rw-r--r--kdejava/koala/org/kde/koala/CSSValueList.java51
-rw-r--r--kdejava/koala/org/kde/koala/CharacterData.java122
-rw-r--r--kdejava/koala/org/kde/koala/Comment.java35
-rw-r--r--kdejava/koala/org/kde/koala/Connection.java120
-rw-r--r--kdejava/koala/org/kde/koala/CopyJob.java80
-rw-r--r--kdejava/koala/org/kde/koala/CopyJobSignals.java104
-rw-r--r--kdejava/koala/org/kde/koala/Counter.java52
-rw-r--r--kdejava/koala/org/kde/koala/CustomNodeFilter.java49
-rw-r--r--kdejava/koala/org/kde/koala/DCOPAnswer.java28
-rw-r--r--kdejava/koala/org/kde/koala/DCOPClient.java632
-rw-r--r--kdejava/koala/org/kde/koala/DCOPClientSignals.java62
-rw-r--r--kdejava/koala/org/kde/koala/DCOPObject.java289
-rw-r--r--kdejava/koala/org/kde/koala/DCOPObjectInterface.java22
-rw-r--r--kdejava/koala/org/kde/koala/DCOPObjectProxy.java60
-rw-r--r--kdejava/koala/org/kde/koala/DOMException.java40
-rw-r--r--kdejava/koala/org/kde/koala/DOMImplementation.java134
-rw-r--r--kdejava/koala/org/kde/koala/DavJob.java44
-rw-r--r--kdejava/koala/org/kde/koala/DefaultProgress.java109
-rw-r--r--kdejava/koala/org/kde/koala/DeleteJob.java52
-rw-r--r--kdejava/koala/org/kde/koala/DeleteJobSignals.java45
-rw-r--r--kdejava/koala/org/kde/koala/DockMainWindow.java113
-rw-r--r--kdejava/koala/org/kde/koala/Document.java559
-rw-r--r--kdejava/koala/org/kde/koala/DocumentFragment.java66
-rw-r--r--kdejava/koala/org/kde/koala/DocumentStyle.java30
-rw-r--r--kdejava/koala/org/kde/koala/DocumentType.java89
-rw-r--r--kdejava/koala/org/kde/koala/DomShared.java25
-rw-r--r--kdejava/koala/org/kde/koala/Element.java326
-rw-r--r--kdejava/koala/org/kde/koala/Entity.java78
-rw-r--r--kdejava/koala/org/kde/koala/EntityReference.java52
-rw-r--r--kdejava/koala/org/kde/koala/Event.java25
-rw-r--r--kdejava/koala/org/kde/koala/EventException.java28
-rw-r--r--kdejava/koala/org/kde/koala/EventListener.java45
-rw-r--r--kdejava/koala/org/kde/koala/Factory.java72
-rw-r--r--kdejava/koala/org/kde/koala/FileCopyJob.java56
-rw-r--r--kdejava/koala/org/kde/koala/GUIActivateEvent.java27
-rw-r--r--kdejava/koala/org/kde/koala/HTMLAnchorElement.java192
-rw-r--r--kdejava/koala/org/kde/koala/HTMLAppletElement.java181
-rw-r--r--kdejava/koala/org/kde/koala/HTMLAreaElement.java136
-rw-r--r--kdejava/koala/org/kde/koala/HTMLBRElement.java46
-rw-r--r--kdejava/koala/org/kde/koala/HTMLBaseElement.java57
-rw-r--r--kdejava/koala/org/kde/koala/HTMLBaseFontElement.java72
-rw-r--r--kdejava/koala/org/kde/koala/HTMLBlockquoteElement.java45
-rw-r--r--kdejava/koala/org/kde/koala/HTMLBodyElement.java114
-rw-r--r--kdejava/koala/org/kde/koala/HTMLButtonElement.java120
-rw-r--r--kdejava/koala/org/kde/koala/HTMLCollection.java74
-rw-r--r--kdejava/koala/org/kde/koala/HTMLDListElement.java46
-rw-r--r--kdejava/koala/org/kde/koala/HTMLDirectoryElement.java47
-rw-r--r--kdejava/koala/org/kde/koala/HTMLDivElement.java46
-rw-r--r--kdejava/koala/org/kde/koala/HTMLDocument.java221
-rw-r--r--kdejava/koala/org/kde/koala/HTMLElement.java144
-rw-r--r--kdejava/koala/org/kde/koala/HTMLFieldSetElement.java38
-rw-r--r--kdejava/koala/org/kde/koala/HTMLFontElement.java73
-rw-r--r--kdejava/koala/org/kde/koala/HTMLFormCollection.java14
-rw-r--r--kdejava/koala/org/kde/koala/HTMLFormElement.java129
-rw-r--r--kdejava/koala/org/kde/koala/HTMLFrameElement.java142
-rw-r--r--kdejava/koala/org/kde/koala/HTMLFrameSetElement.java57
-rw-r--r--kdejava/koala/org/kde/koala/HTMLHRElement.java86
-rw-r--r--kdejava/koala/org/kde/koala/HTMLHeadElement.java45
-rw-r--r--kdejava/koala/org/kde/koala/HTMLHeadingElement.java46
-rw-r--r--kdejava/koala/org/kde/koala/HTMLHtmlElement.java46
-rw-r--r--kdejava/koala/org/kde/koala/HTMLIFrameElement.java168
-rw-r--r--kdejava/koala/org/kde/koala/HTMLImageElement.java189
-rw-r--r--kdejava/koala/org/kde/koala/HTMLInputElement.java284
-rw-r--r--kdejava/koala/org/kde/koala/HTMLIsIndexElement.java52
-rw-r--r--kdejava/koala/org/kde/koala/HTMLLIElement.java59
-rw-r--r--kdejava/koala/org/kde/koala/HTMLLabelElement.java59
-rw-r--r--kdejava/koala/org/kde/koala/HTMLLegendElement.java65
-rw-r--r--kdejava/koala/org/kde/koala/HTMLLinkElement.java151
-rw-r--r--kdejava/koala/org/kde/koala/HTMLMapElement.java50
-rw-r--r--kdejava/koala/org/kde/koala/HTMLMenuElement.java47
-rw-r--r--kdejava/koala/org/kde/koala/HTMLMetaElement.java82
-rw-r--r--kdejava/koala/org/kde/koala/HTMLModElement.java59
-rw-r--r--kdejava/koala/org/kde/koala/HTMLOListElement.java72
-rw-r--r--kdejava/koala/org/kde/koala/HTMLObjectElement.java269
-rw-r--r--kdejava/koala/org/kde/koala/HTMLOptGroupElement.java57
-rw-r--r--kdejava/koala/org/kde/koala/HTMLOptionElement.java115
-rw-r--r--kdejava/koala/org/kde/koala/HTMLParagraphElement.java46
-rw-r--r--kdejava/koala/org/kde/koala/HTMLParamElement.java83
-rw-r--r--kdejava/koala/org/kde/koala/HTMLPreElement.java46
-rw-r--r--kdejava/koala/org/kde/koala/HTMLQuoteElement.java51
-rw-r--r--kdejava/koala/org/kde/koala/HTMLScriptElement.java112
-rw-r--r--kdejava/koala/org/kde/koala/HTMLSelectElement.java168
-rw-r--r--kdejava/koala/org/kde/koala/HTMLStyleElement.java75
-rw-r--r--kdejava/koala/org/kde/koala/HTMLTableCaptionElement.java46
-rw-r--r--kdejava/koala/org/kde/koala/HTMLTableCellElement.java219
-rw-r--r--kdejava/koala/org/kde/koala/HTMLTableColElement.java107
-rw-r--r--kdejava/koala/org/kde/koala/HTMLTableElement.java260
-rw-r--r--kdejava/koala/org/kde/koala/HTMLTableRowElement.java155
-rw-r--r--kdejava/koala/org/kde/koala/HTMLTableSectionElement.java102
-rw-r--r--kdejava/koala/org/kde/koala/HTMLTextAreaElement.java168
-rw-r--r--kdejava/koala/org/kde/koala/HTMLTitleElement.java43
-rw-r--r--kdejava/koala/org/kde/koala/HTMLUListElement.java59
-rw-r--r--kdejava/koala/org/kde/koala/HistoryProvider.java69
-rw-r--r--kdejava/koala/org/kde/koala/HistoryProviderSignals.java22
-rw-r--r--kdejava/koala/org/kde/koala/Invocation.java69
-rw-r--r--kdejava/koala/org/kde/koala/Job.java368
-rw-r--r--kdejava/koala/org/kde/koala/JobSignals.java73
-rw-r--r--kdejava/koala/org/kde/koala/KAboutApplication.java102
-rw-r--r--kdejava/koala/org/kde/koala/KAboutContainer.java78
-rw-r--r--kdejava/koala/org/kde/koala/KAboutContainerSignals.java13
-rw-r--r--kdejava/koala/org/kde/koala/KAboutContributor.java99
-rw-r--r--kdejava/koala/org/kde/koala/KAboutContributorSignals.java13
-rw-r--r--kdejava/koala/org/kde/koala/KAboutData.java421
-rw-r--r--kdejava/koala/org/kde/koala/KAboutDialog.java379
-rw-r--r--kdejava/koala/org/kde/koala/KAboutDialogSignals.java25
-rw-r--r--kdejava/koala/org/kde/koala/KAboutKDE.java62
-rw-r--r--kdejava/koala/org/kde/koala/KAboutPerson.java93
-rw-r--r--kdejava/koala/org/kde/koala/KAboutTranslator.java66
-rw-r--r--kdejava/koala/org/kde/koala/KAboutWidget.java95
-rw-r--r--kdejava/koala/org/kde/koala/KAboutWidgetSignals.java21
-rw-r--r--kdejava/koala/org/kde/koala/KAccel.java299
-rw-r--r--kdejava/koala/org/kde/koala/KAccelAction.java30
-rw-r--r--kdejava/koala/org/kde/koala/KAccelActions.java30
-rw-r--r--kdejava/koala/org/kde/koala/KAccelShortcutList.java73
-rw-r--r--kdejava/koala/org/kde/koala/KAccelSignals.java15
-rw-r--r--kdejava/koala/org/kde/koala/KAction.java455
-rw-r--r--kdejava/koala/org/kde/koala/KActionCollection.java279
-rw-r--r--kdejava/koala/org/kde/koala/KActionCollectionSignals.java48
-rw-r--r--kdejava/koala/org/kde/koala/KActionMenu.java136
-rw-r--r--kdejava/koala/org/kde/koala/KActionSeparator.java39
-rw-r--r--kdejava/koala/org/kde/koala/KActionShortcutList.java36
-rw-r--r--kdejava/koala/org/kde/koala/KActionSignals.java31
-rw-r--r--kdejava/koala/org/kde/koala/KActiveLabel.java82
-rw-r--r--kdejava/koala/org/kde/koala/KAnimWidget.java126
-rw-r--r--kdejava/koala/org/kde/koala/KAnimWidgetSignals.java15
-rw-r--r--kdejava/koala/org/kde/koala/KApplication.java1088
-rw-r--r--kdejava/koala/org/kde/koala/KApplicationSignals.java116
-rw-r--r--kdejava/koala/org/kde/koala/KAr.java65
-rw-r--r--kdejava/koala/org/kde/koala/KArchive.java229
-rw-r--r--kdejava/koala/org/kde/koala/KArchiveDirectory.java76
-rw-r--r--kdejava/koala/org/kde/koala/KArchiveEntry.java107
-rw-r--r--kdejava/koala/org/kde/koala/KArchiveFile.java95
-rw-r--r--kdejava/koala/org/kde/koala/KArrowButton.java85
-rw-r--r--kdejava/koala/org/kde/koala/KAsyncIO.java76
-rw-r--r--kdejava/koala/org/kde/koala/KAsyncIOSignals.java20
-rw-r--r--kdejava/koala/org/kde/koala/KAudioPlayer.java76
-rw-r--r--kdejava/koala/org/kde/koala/KAuthIcon.java48
-rw-r--r--kdejava/koala/org/kde/koala/KAuthIconSignals.java18
-rw-r--r--kdejava/koala/org/kde/koala/KBufferedIO.java144
-rw-r--r--kdejava/koala/org/kde/koala/KBufferedIOSignals.java45
-rw-r--r--kdejava/koala/org/kde/koala/KBugReport.java103
-rw-r--r--kdejava/koala/org/kde/koala/KButtonBox.java160
-rw-r--r--kdejava/koala/org/kde/koala/KCModule.java275
-rw-r--r--kdejava/koala/org/kde/koala/KCModuleInfo.java231
-rw-r--r--kdejava/koala/org/kde/koala/KCModuleLoader.java120
-rw-r--r--kdejava/koala/org/kde/koala/KCModuleSignals.java25
-rw-r--r--kdejava/koala/org/kde/koala/KCMultiDialog.java161
-rw-r--r--kdejava/koala/org/kde/koala/KCMultiDialogSignals.java30
-rw-r--r--kdejava/koala/org/kde/koala/KCPUInfo.java51
-rw-r--r--kdejava/koala/org/kde/koala/KCalendarSystem.java323
-rw-r--r--kdejava/koala/org/kde/koala/KCalendarSystemFactory.java52
-rw-r--r--kdejava/koala/org/kde/koala/KCatalogue.java91
-rw-r--r--kdejava/koala/org/kde/koala/KCharSelect.java151
-rw-r--r--kdejava/koala/org/kde/koala/KCharSelectSignals.java19
-rw-r--r--kdejava/koala/org/kde/koala/KCharSelectTable.java55
-rw-r--r--kdejava/koala/org/kde/koala/KCharSelectTableSignals.java22
-rw-r--r--kdejava/koala/org/kde/koala/KCharsets.java128
-rw-r--r--kdejava/koala/org/kde/koala/KCmdLineArgs.java478
-rw-r--r--kdejava/koala/org/kde/koala/KCodecs.java272
-rw-r--r--kdejava/koala/org/kde/koala/KColor.java49
-rw-r--r--kdejava/koala/org/kde/koala/KColorButton.java103
-rw-r--r--kdejava/koala/org/kde/koala/KColorButtonSignals.java22
-rw-r--r--kdejava/koala/org/kde/koala/KColorCells.java57
-rw-r--r--kdejava/koala/org/kde/koala/KColorCellsSignals.java18
-rw-r--r--kdejava/koala/org/kde/koala/KColorCombo.java59
-rw-r--r--kdejava/koala/org/kde/koala/KColorComboSignals.java21
-rw-r--r--kdejava/koala/org/kde/koala/KColorDialog.java145
-rw-r--r--kdejava/koala/org/kde/koala/KColorDialogSignals.java22
-rw-r--r--kdejava/koala/org/kde/koala/KColorDrag.java86
-rw-r--r--kdejava/koala/org/kde/koala/KColorPatch.java44
-rw-r--r--kdejava/koala/org/kde/koala/KColorPatchSignals.java15
-rw-r--r--kdejava/koala/org/kde/koala/KCombiView.java218
-rw-r--r--kdejava/koala/org/kde/koala/KComboBox.java626
-rw-r--r--kdejava/koala/org/kde/koala/KComboBoxSignals.java69
-rw-r--r--kdejava/koala/org/kde/koala/KCommand.java43
-rw-r--r--kdejava/koala/org/kde/koala/KCommandHistory.java136
-rw-r--r--kdejava/koala/org/kde/koala/KCommandHistorySignals.java30
-rw-r--r--kdejava/koala/org/kde/koala/KCompletion.java482
-rw-r--r--kdejava/koala/org/kde/koala/KCompletionBase.java281
-rw-r--r--kdejava/koala/org/kde/koala/KCompletionBaseInterface.java25
-rw-r--r--kdejava/koala/org/kde/koala/KCompletionBox.java197
-rw-r--r--kdejava/koala/org/kde/koala/KCompletionBoxSignals.java27
-rw-r--r--kdejava/koala/org/kde/koala/KCompletionSignals.java32
-rw-r--r--kdejava/koala/org/kde/koala/KConfig.java232
-rw-r--r--kdejava/koala/org/kde/koala/KConfigBackEnd.java120
-rw-r--r--kdejava/koala/org/kde/koala/KConfigBase.java936
-rw-r--r--kdejava/koala/org/kde/koala/KConfigGroup.java53
-rw-r--r--kdejava/koala/org/kde/koala/KConfigGroupSaver.java66
-rw-r--r--kdejava/koala/org/kde/koala/KConfigINIBackEnd.java117
-rw-r--r--kdejava/koala/org/kde/koala/KContextMenuManager.java69
-rw-r--r--kdejava/koala/org/kde/koala/KCursor.java200
-rw-r--r--kdejava/koala/org/kde/koala/KCustomMenuEditor.java45
-rw-r--r--kdejava/koala/org/kde/koala/KDCOPActionProxy.java83
-rw-r--r--kdejava/koala/org/kde/koala/KDCOPPropertyProxy.java83
-rw-r--r--kdejava/koala/org/kde/koala/KDCOPServiceStarter.java80
-rw-r--r--kdejava/koala/org/kde/koala/KDE.java536
-rw-r--r--kdejava/koala/org/kde/koala/KDEDesktopMimeType.java116
-rw-r--r--kdejava/koala/org/kde/koala/KDataTool.java74
-rw-r--r--kdejava/koala/org/kde/koala/KDataToolAction.java78
-rw-r--r--kdejava/koala/org/kde/koala/KDataToolActionSignals.java16
-rw-r--r--kdejava/koala/org/kde/koala/KDataToolInfo.java160
-rw-r--r--kdejava/koala/org/kde/koala/KDatePicker.java176
-rw-r--r--kdejava/koala/org/kde/koala/KDatePickerSignals.java41
-rw-r--r--kdejava/koala/org/kde/koala/KDateTable.java167
-rw-r--r--kdejava/koala/org/kde/koala/KDateTableSignals.java43
-rw-r--r--kdejava/koala/org/kde/koala/KDateTimeWidget.java83
-rw-r--r--kdejava/koala/org/kde/koala/KDateTimeWidgetSignals.java16
-rw-r--r--kdejava/koala/org/kde/koala/KDateValidator.java42
-rw-r--r--kdejava/koala/org/kde/koala/KDateWidget.java82
-rw-r--r--kdejava/koala/org/kde/koala/KDateWidgetSignals.java16
-rw-r--r--kdejava/koala/org/kde/koala/KDesktopFile.java237
-rw-r--r--kdejava/koala/org/kde/koala/KDialog.java154
-rw-r--r--kdejava/koala/org/kde/koala/KDialogBase.java1338
-rw-r--r--kdejava/koala/org/kde/koala/KDialogBaseSignals.java129
-rw-r--r--kdejava/koala/org/kde/koala/KDialogQueue.java29
-rw-r--r--kdejava/koala/org/kde/koala/KDialogSignals.java21
-rw-r--r--kdejava/koala/org/kde/koala/KDirLister.java458
-rw-r--r--kdejava/koala/org/kde/koala/KDirListerSignals.java135
-rw-r--r--kdejava/koala/org/kde/koala/KDirNotify.java50
-rw-r--r--kdejava/koala/org/kde/koala/KDirNotifyInterface.java8
-rw-r--r--kdejava/koala/org/kde/koala/KDirOperator.java820
-rw-r--r--kdejava/koala/org/kde/koala/KDirOperatorSignals.java42
-rw-r--r--kdejava/koala/org/kde/koala/KDirSelectDialog.java102
-rw-r--r--kdejava/koala/org/kde/koala/KDirSize.java80
-rw-r--r--kdejava/koala/org/kde/koala/KDirWatch.java238
-rw-r--r--kdejava/koala/org/kde/koala/KDirWatchSignals.java36
-rw-r--r--kdejava/koala/org/kde/koala/KDiskFreeSp.java57
-rw-r--r--kdejava/koala/org/kde/koala/KDiskFreeSpSignals.java11
-rw-r--r--kdejava/koala/org/kde/koala/KDockArea.java64
-rw-r--r--kdejava/koala/org/kde/koala/KDockAreaSignals.java18
-rw-r--r--kdejava/koala/org/kde/koala/KDockMainWindow.java221
-rw-r--r--kdejava/koala/org/kde/koala/KDockMainWindowSignals.java17
-rw-r--r--kdejava/koala/org/kde/koala/KDockManager.java211
-rw-r--r--kdejava/koala/org/kde/koala/KDockManagerSignals.java28
-rw-r--r--kdejava/koala/org/kde/koala/KDockTabGroup.java51
-rw-r--r--kdejava/koala/org/kde/koala/KDockWidget.java406
-rw-r--r--kdejava/koala/org/kde/koala/KDockWidgetAbstractHeader.java60
-rw-r--r--kdejava/koala/org/kde/koala/KDockWidgetAbstractHeaderDrag.java52
-rw-r--r--kdejava/koala/org/kde/koala/KDockWidgetHeader.java85
-rw-r--r--kdejava/koala/org/kde/koala/KDockWidgetHeaderDrag.java52
-rw-r--r--kdejava/koala/org/kde/koala/KDockWidgetSignals.java50
-rw-r--r--kdejava/koala/org/kde/koala/KDoubleNumInput.java280
-rw-r--r--kdejava/koala/org/kde/koala/KDoubleNumInputSignals.java26
-rw-r--r--kdejava/koala/org/kde/koala/KDoubleValidator.java68
-rw-r--r--kdejava/koala/org/kde/koala/KDualColorButton.java161
-rw-r--r--kdejava/koala/org/kde/koala/KDualColorButtonSignals.java31
-rw-r--r--kdejava/koala/org/kde/koala/KEMailSettings.java124
-rw-r--r--kdejava/koala/org/kde/koala/KEdFind.java58
-rw-r--r--kdejava/koala/org/kde/koala/KEdFindSignals.java11
-rw-r--r--kdejava/koala/org/kde/koala/KEdGotoLine.java43
-rw-r--r--kdejava/koala/org/kde/koala/KEdReplace.java67
-rw-r--r--kdejava/koala/org/kde/koala/KEdReplaceSignals.java13
-rw-r--r--kdejava/koala/org/kde/koala/KEdit.java193
-rw-r--r--kdejava/koala/org/kde/koala/KEditListBox.java236
-rw-r--r--kdejava/koala/org/kde/koala/KEditListBoxSignals.java25
-rw-r--r--kdejava/koala/org/kde/koala/KEditSignals.java40
-rw-r--r--kdejava/koala/org/kde/koala/KEditToolbar.java242
-rw-r--r--kdejava/koala/org/kde/koala/KEditToolbarSignals.java16
-rw-r--r--kdejava/koala/org/kde/koala/KEditToolbarWidget.java410
-rw-r--r--kdejava/koala/org/kde/koala/KEditToolbarWidgetSignals.java18
-rw-r--r--kdejava/koala/org/kde/koala/KEntry.java28
-rw-r--r--kdejava/koala/org/kde/koala/KEntryKey.java37
-rw-r--r--kdejava/koala/org/kde/koala/KExecMimeType.java39
-rw-r--r--kdejava/koala/org/kde/koala/KFile.java88
-rw-r--r--kdejava/koala/org/kde/koala/KFileDetailView.java229
-rw-r--r--kdejava/koala/org/kde/koala/KFileDetailViewSignals.java31
-rw-r--r--kdejava/koala/org/kde/koala/KFileDialog.java874
-rw-r--r--kdejava/koala/org/kde/koala/KFileDialogSignals.java44
-rw-r--r--kdejava/koala/org/kde/koala/KFileFilter.java27
-rw-r--r--kdejava/koala/org/kde/koala/KFileFilterCombo.java84
-rw-r--r--kdejava/koala/org/kde/koala/KFileFilterComboSignals.java12
-rw-r--r--kdejava/koala/org/kde/koala/KFileIconView.java282
-rw-r--r--kdejava/koala/org/kde/koala/KFileIconViewItem.java43
-rw-r--r--kdejava/koala/org/kde/koala/KFileIconViewSignals.java35
-rw-r--r--kdejava/koala/org/kde/koala/KFileItem.java565
-rw-r--r--kdejava/koala/org/kde/koala/KFileListViewItem.java57
-rw-r--r--kdejava/koala/org/kde/koala/KFileMetaInfo.java314
-rw-r--r--kdejava/koala/org/kde/koala/KFileMetaInfoGroup.java201
-rw-r--r--kdejava/koala/org/kde/koala/KFileMetaInfoItem.java172
-rw-r--r--kdejava/koala/org/kde/koala/KFilePlugin.java179
-rw-r--r--kdejava/koala/org/kde/koala/KFilePreview.java218
-rw-r--r--kdejava/koala/org/kde/koala/KFilePreviewSignals.java12
-rw-r--r--kdejava/koala/org/kde/koala/KFileShare.java113
-rw-r--r--kdejava/koala/org/kde/koala/KFileTreeBranch.java148
-rw-r--r--kdejava/koala/org/kde/koala/KFileTreeBranchSignals.java20
-rw-r--r--kdejava/koala/org/kde/koala/KFileTreeView.java168
-rw-r--r--kdejava/koala/org/kde/koala/KFileTreeViewItem.java72
-rw-r--r--kdejava/koala/org/kde/koala/KFileTreeViewSignals.java26
-rw-r--r--kdejava/koala/org/kde/koala/KFileTreeViewToolTip.java26
-rw-r--r--kdejava/koala/org/kde/koala/KFileView.java312
-rw-r--r--kdejava/koala/org/kde/koala/KFileViewInterface.java57
-rw-r--r--kdejava/koala/org/kde/koala/KFileViewSignaler.java49
-rw-r--r--kdejava/koala/org/kde/koala/KFileViewSignalerSignals.java22
-rw-r--r--kdejava/koala/org/kde/koala/KFilterBase.java104
-rw-r--r--kdejava/koala/org/kde/koala/KFilterDev.java149
-rw-r--r--kdejava/koala/org/kde/koala/KFind.java259
-rw-r--r--kdejava/koala/org/kde/koala/KFindDialog.java241
-rw-r--r--kdejava/koala/org/kde/koala/KFindSignals.java50
-rw-r--r--kdejava/koala/org/kde/koala/KFloatValidator.java110
-rw-r--r--kdejava/koala/org/kde/koala/KFolderType.java43
-rw-r--r--kdejava/koala/org/kde/koala/KFontAction.java172
-rw-r--r--kdejava/koala/org/kde/koala/KFontChooser.java300
-rw-r--r--kdejava/koala/org/kde/koala/KFontChooserSignals.java17
-rw-r--r--kdejava/koala/org/kde/koala/KFontCombo.java165
-rw-r--r--kdejava/koala/org/kde/koala/KFontDialog.java226
-rw-r--r--kdejava/koala/org/kde/koala/KFontDialogSignals.java17
-rw-r--r--kdejava/koala/org/kde/koala/KFontRequester.java130
-rw-r--r--kdejava/koala/org/kde/koala/KFontRequesterSignals.java17
-rw-r--r--kdejava/koala/org/kde/koala/KFontSizeAction.java133
-rw-r--r--kdejava/koala/org/kde/koala/KFontSizeActionSignals.java11
-rw-r--r--kdejava/koala/org/kde/koala/KGlobal.java135
-rw-r--r--kdejava/koala/org/kde/koala/KGlobalAccel.java210
-rw-r--r--kdejava/koala/org/kde/koala/KGlobalSettings.java481
-rw-r--r--kdejava/koala/org/kde/koala/KGradientSelector.java95
-rw-r--r--kdejava/koala/org/kde/koala/KGuiItem.java84
-rw-r--r--kdejava/koala/org/kde/koala/KHSSelector.java69
-rw-r--r--kdejava/koala/org/kde/koala/KHTMLPart.java1004
-rw-r--r--kdejava/koala/org/kde/koala/KHTMLPartSignals.java61
-rw-r--r--kdejava/koala/org/kde/koala/KHTMLSettings.java173
-rw-r--r--kdejava/koala/org/kde/koala/KHTMLView.java139
-rw-r--r--kdejava/koala/org/kde/koala/KHTMLViewSignals.java30
-rw-r--r--kdejava/koala/org/kde/koala/KHelpMenu.java197
-rw-r--r--kdejava/koala/org/kde/koala/KHelpMenuSignals.java18
-rw-r--r--kdejava/koala/org/kde/koala/KHistoryCombo.java223
-rw-r--r--kdejava/koala/org/kde/koala/KHistoryComboSignals.java17
-rw-r--r--kdejava/koala/org/kde/koala/KIDNA.java30
-rw-r--r--kdejava/koala/org/kde/koala/KIO.java1179
-rw-r--r--kdejava/koala/org/kde/koala/KIPC.java76
-rw-r--r--kdejava/koala/org/kde/koala/KIconButton.java110
-rw-r--r--kdejava/koala/org/kde/koala/KIconButtonSignals.java14
-rw-r--r--kdejava/koala/org/kde/koala/KIconCanvas.java52
-rw-r--r--kdejava/koala/org/kde/koala/KIconCanvasSignals.java17
-rw-r--r--kdejava/koala/org/kde/koala/KIconDialog.java159
-rw-r--r--kdejava/koala/org/kde/koala/KIconDialogSignals.java10
-rw-r--r--kdejava/koala/org/kde/koala/KIconEffect.java236
-rw-r--r--kdejava/koala/org/kde/koala/KIconLoader.java348
-rw-r--r--kdejava/koala/org/kde/koala/KIconView.java151
-rw-r--r--kdejava/koala/org/kde/koala/KIconViewItem.java96
-rw-r--r--kdejava/koala/org/kde/koala/KIconViewSignals.java63
-rw-r--r--kdejava/koala/org/kde/koala/KImageEffect.java772
-rw-r--r--kdejava/koala/org/kde/koala/KImageIO.java226
-rw-r--r--kdejava/koala/org/kde/koala/KInputDialog.java148
-rw-r--r--kdejava/koala/org/kde/koala/KInstance.java121
-rw-r--r--kdejava/koala/org/kde/koala/KInstanceInterface.java15
-rw-r--r--kdejava/koala/org/kde/koala/KIntNumInput.java266
-rw-r--r--kdejava/koala/org/kde/koala/KIntNumInputSignals.java23
-rw-r--r--kdejava/koala/org/kde/koala/KIntSpinBox.java112
-rw-r--r--kdejava/koala/org/kde/koala/KIntValidator.java103
-rw-r--r--kdejava/koala/org/kde/koala/KJanusWidget.java447
-rw-r--r--kdejava/koala/org/kde/koala/KJanusWidgetSignals.java24
-rw-r--r--kdejava/koala/org/kde/koala/KKey.java267
-rw-r--r--kdejava/koala/org/kde/koala/KKeyButton.java73
-rw-r--r--kdejava/koala/org/kde/koala/KKeyButtonSignals.java11
-rw-r--r--kdejava/koala/org/kde/koala/KKeyChooser.java195
-rw-r--r--kdejava/koala/org/kde/koala/KKeyChooserSignals.java17
-rw-r--r--kdejava/koala/org/kde/koala/KKeyDialog.java157
-rw-r--r--kdejava/koala/org/kde/koala/KKeyNative.java128
-rw-r--r--kdejava/koala/org/kde/koala/KKeySequence.java211
-rw-r--r--kdejava/koala/org/kde/koala/KLed.java288
-rw-r--r--kdejava/koala/org/kde/koala/KLibFactory.java79
-rw-r--r--kdejava/koala/org/kde/koala/KLibFactorySignals.java15
-rw-r--r--kdejava/koala/org/kde/koala/KLibLoader.java166
-rw-r--r--kdejava/koala/org/kde/koala/KLineEdit.java605
-rw-r--r--kdejava/koala/org/kde/koala/KLineEditSignals.java72
-rw-r--r--kdejava/koala/org/kde/koala/KListAction.java198
-rw-r--r--kdejava/koala/org/kde/koala/KListBox.java76
-rw-r--r--kdejava/koala/org/kde/koala/KListBoxSignals.java49
-rw-r--r--kdejava/koala/org/kde/koala/KListView.java778
-rw-r--r--kdejava/koala/org/kde/koala/KListViewItem.java232
-rw-r--r--kdejava/koala/org/kde/koala/KListViewSignals.java160
-rw-r--r--kdejava/koala/org/kde/koala/KLocale.java993
-rw-r--r--kdejava/koala/org/kde/koala/KMD5.java174
-rw-r--r--kdejava/koala/org/kde/koala/KMacroCommand.java53
-rw-r--r--kdejava/koala/org/kde/koala/KMainWindow.java1082
-rw-r--r--kdejava/koala/org/kde/koala/KMdi.java71
-rw-r--r--kdejava/koala/org/kde/koala/KMdiChildArea.java193
-rw-r--r--kdejava/koala/org/kde/koala/KMdiChildAreaSignals.java42
-rw-r--r--kdejava/koala/org/kde/koala/KMdiChildFrm.java141
-rw-r--r--kdejava/koala/org/kde/koala/KMdiChildFrmCaption.java43
-rw-r--r--kdejava/koala/org/kde/koala/KMdiChildFrmDragBeginEvent.java16
-rw-r--r--kdejava/koala/org/kde/koala/KMdiChildFrmDragEndEvent.java16
-rw-r--r--kdejava/koala/org/kde/koala/KMdiChildFrmMoveEvent.java16
-rw-r--r--kdejava/koala/org/kde/koala/KMdiChildFrmResizeBeginEvent.java16
-rw-r--r--kdejava/koala/org/kde/koala/KMdiChildFrmResizeEndEvent.java16
-rw-r--r--kdejava/koala/org/kde/koala/KMdiChildView.java423
-rw-r--r--kdejava/koala/org/kde/koala/KMdiChildViewSignals.java115
-rw-r--r--kdejava/koala/org/kde/koala/KMdiMainFrm.java699
-rw-r--r--kdejava/koala/org/kde/koala/KMdiMainFrmSignals.java51
-rw-r--r--kdejava/koala/org/kde/koala/KMdiTaskBar.java93
-rw-r--r--kdejava/koala/org/kde/koala/KMdiTaskBarButton.java62
-rw-r--r--kdejava/koala/org/kde/koala/KMdiTaskBarButtonSignals.java29
-rw-r--r--kdejava/koala/org/kde/koala/KMdiToolViewAccessor.java31
-rw-r--r--kdejava/koala/org/kde/koala/KMdiViewCloseEvent.java27
-rw-r--r--kdejava/koala/org/kde/koala/KMdiWin32IconButton.java38
-rw-r--r--kdejava/koala/org/kde/koala/KMdiWin32IconButtonSignals.java11
-rw-r--r--kdejava/koala/org/kde/koala/KMenuBar.java94
-rw-r--r--kdejava/koala/org/kde/koala/KMessageBox.java944
-rw-r--r--kdejava/koala/org/kde/koala/KMimeMagic.java131
-rw-r--r--kdejava/koala/org/kde/koala/KMimeMagicResult.java49
-rw-r--r--kdejava/koala/org/kde/koala/KMimeSourceFactory.java55
-rw-r--r--kdejava/koala/org/kde/koala/KMimeType.java439
-rw-r--r--kdejava/koala/org/kde/koala/KMimeTypeResolverBase.java21
-rw-r--r--kdejava/koala/org/kde/koala/KMimeTypeResolverHelper.java37
-rw-r--r--kdejava/koala/org/kde/koala/KMimeTypeValidator.java68
-rw-r--r--kdejava/koala/org/kde/koala/KMountPoint.java73
-rw-r--r--kdejava/koala/org/kde/koala/KMultiTabBar.java169
-rw-r--r--kdejava/koala/org/kde/koala/KMultiTabBarButton.java64
-rw-r--r--kdejava/koala/org/kde/koala/KMultiTabBarButtonSignals.java20
-rw-r--r--kdejava/koala/org/kde/koala/KMultiTabBarTab.java56
-rw-r--r--kdejava/koala/org/kde/koala/KMultipleDrag.java93
-rw-r--r--kdejava/koala/org/kde/koala/KNamedCommand.java29
-rw-r--r--kdejava/koala/org/kde/koala/KNotifyClient.java214
-rw-r--r--kdejava/koala/org/kde/koala/KNumInput.java92
-rw-r--r--kdejava/koala/org/kde/koala/KOCRDialog.java104
-rw-r--r--kdejava/koala/org/kde/koala/KOCRDialogSignals.java18
-rw-r--r--kdejava/koala/org/kde/koala/KOpenWithDlg.java162
-rw-r--r--kdejava/koala/org/kde/koala/KPalette.java199
-rw-r--r--kdejava/koala/org/kde/koala/KPaletteTable.java55
-rw-r--r--kdejava/koala/org/kde/koala/KPaletteTableSignals.java12
-rw-r--r--kdejava/koala/org/kde/koala/KPanelAppMenu.java292
-rw-r--r--kdejava/koala/org/kde/koala/KPanelAppMenuSignals.java16
-rw-r--r--kdejava/koala/org/kde/koala/KPanelApplet.java332
-rw-r--r--kdejava/koala/org/kde/koala/KPanelAppletSignals.java36
-rw-r--r--kdejava/koala/org/kde/koala/KPanelExtension.java314
-rw-r--r--kdejava/koala/org/kde/koala/KPanelExtensionSignals.java23
-rw-r--r--kdejava/koala/org/kde/koala/KPanelMenu.java103
-rw-r--r--kdejava/koala/org/kde/koala/KPassivePopup.java383
-rw-r--r--kdejava/koala/org/kde/koala/KPassivePopupSignals.java26
-rw-r--r--kdejava/koala/org/kde/koala/KPasswordDialog.java256
-rw-r--r--kdejava/koala/org/kde/koala/KPasswordEdit.java96
-rw-r--r--kdejava/koala/org/kde/koala/KPasteTextAction.java76
-rw-r--r--kdejava/koala/org/kde/koala/KPixmap.java196
-rw-r--r--kdejava/koala/org/kde/koala/KPixmapEffect.java240
-rw-r--r--kdejava/koala/org/kde/koala/KPixmapIO.java149
-rw-r--r--kdejava/koala/org/kde/koala/KPixmapProvider.java35
-rw-r--r--kdejava/koala/org/kde/koala/KPixmapSplitter.java100
-rw-r--r--kdejava/koala/org/kde/koala/KPluginSelector.java150
-rw-r--r--kdejava/koala/org/kde/koala/KPluginSelectorSignals.java21
-rw-r--r--kdejava/koala/org/kde/koala/KPopupFrame.java98
-rw-r--r--kdejava/koala/org/kde/koala/KPopupMenu.java165
-rw-r--r--kdejava/koala/org/kde/koala/KPopupMenuSignals.java25
-rw-r--r--kdejava/koala/org/kde/koala/KPopupTitle.java76
-rw-r--r--kdejava/koala/org/kde/koala/KPreviewWidgetBase.java52
-rw-r--r--kdejava/koala/org/kde/koala/KPrintAction.java118
-rw-r--r--kdejava/koala/org/kde/koala/KPrintActionSignals.java12
-rw-r--r--kdejava/koala/org/kde/koala/KProcIO.java172
-rw-r--r--kdejava/koala/org/kde/koala/KProcIOSignals.java16
-rw-r--r--kdejava/koala/org/kde/koala/KProcess.java628
-rw-r--r--kdejava/koala/org/kde/koala/KProcessController.java79
-rw-r--r--kdejava/koala/org/kde/koala/KProcessRunner.java23
-rw-r--r--kdejava/koala/org/kde/koala/KProcessSignals.java72
-rw-r--r--kdejava/koala/org/kde/koala/KProgress.java134
-rw-r--r--kdejava/koala/org/kde/koala/KProgressDialog.java170
-rw-r--r--kdejava/koala/org/kde/koala/KProgressSignals.java14
-rw-r--r--kdejava/koala/org/kde/koala/KProtocolInfo.java521
-rw-r--r--kdejava/koala/org/kde/koala/KProtocolManager.java367
-rw-r--r--kdejava/koala/org/kde/koala/KPushButton.java151
-rw-r--r--kdejava/koala/org/kde/koala/KRFCDate.java85
-rw-r--r--kdejava/koala/org/kde/koala/KRadioAction.java193
-rw-r--r--kdejava/koala/org/kde/koala/KRandomSequence.java117
-rw-r--r--kdejava/koala/org/kde/koala/KRecentDocument.java85
-rw-r--r--kdejava/koala/org/kde/koala/KRecentFilesAction.java275
-rw-r--r--kdejava/koala/org/kde/koala/KRecentFilesActionSignals.java17
-rw-r--r--kdejava/koala/org/kde/koala/KRegExpEditorInterface.java100
-rw-r--r--kdejava/koala/org/kde/koala/KReplace.java188
-rw-r--r--kdejava/koala/org/kde/koala/KReplaceDialog.java132
-rw-r--r--kdejava/koala/org/kde/koala/KReplaceSignals.java24
-rw-r--r--kdejava/koala/org/kde/koala/KRestrictedLine.java76
-rw-r--r--kdejava/koala/org/kde/koala/KRestrictedLineSignals.java15
-rw-r--r--kdejava/koala/org/kde/koala/KRootPermsIcon.java49
-rw-r--r--kdejava/koala/org/kde/koala/KRootPixmap.java182
-rw-r--r--kdejava/koala/org/kde/koala/KRootPixmapSignals.java20
-rw-r--r--kdejava/koala/org/kde/koala/KRootProp.java186
-rw-r--r--kdejava/koala/org/kde/koala/KRuler.java386
-rw-r--r--kdejava/koala/org/kde/koala/KRun.java346
-rw-r--r--kdejava/koala/org/kde/koala/KRunSignals.java22
-rw-r--r--kdejava/koala/org/kde/koala/KSMIMECrypto.java100
-rw-r--r--kdejava/koala/org/kde/koala/KSSL.java249
-rw-r--r--kdejava/koala/org/kde/koala/KSSLCertBox.java64
-rw-r--r--kdejava/koala/org/kde/koala/KSSLCertChain.java87
-rw-r--r--kdejava/koala/org/kde/koala/KSSLCertDlg.java94
-rw-r--r--kdejava/koala/org/kde/koala/KSSLCertDlgRet.java24
-rw-r--r--kdejava/koala/org/kde/koala/KSSLCertificate.java349
-rw-r--r--kdejava/koala/org/kde/koala/KSSLCertificateCache.java50
-rw-r--r--kdejava/koala/org/kde/koala/KSSLCertificateFactory.java25
-rw-r--r--kdejava/koala/org/kde/koala/KSSLCertificateHome.java62
-rw-r--r--kdejava/koala/org/kde/koala/KSSLConnectionInfo.java69
-rw-r--r--kdejava/koala/org/kde/koala/KSSLInfoDlg.java108
-rw-r--r--kdejava/koala/org/kde/koala/KSSLKeyGen.java85
-rw-r--r--kdejava/koala/org/kde/koala/KSSLPKCS12.java158
-rw-r--r--kdejava/koala/org/kde/koala/KSSLPKCS7.java98
-rw-r--r--kdejava/koala/org/kde/koala/KSSLPeerInfo.java79
-rw-r--r--kdejava/koala/org/kde/koala/KSSLSession.java46
-rw-r--r--kdejava/koala/org/kde/koala/KSSLSettings.java191
-rw-r--r--kdejava/koala/org/kde/koala/KSSLSigners.java159
-rw-r--r--kdejava/koala/org/kde/koala/KSSLX509Map.java62
-rw-r--r--kdejava/koala/org/kde/koala/KSSLX509V3.java110
-rw-r--r--kdejava/koala/org/kde/koala/KSaveFile.java135
-rw-r--r--kdejava/koala/org/kde/koala/KScanDialog.java143
-rw-r--r--kdejava/koala/org/kde/koala/KScanDialogSignals.java36
-rw-r--r--kdejava/koala/org/kde/koala/KSelectAction.java314
-rw-r--r--kdejava/koala/org/kde/koala/KSelectActionSignals.java25
-rw-r--r--kdejava/koala/org/kde/koala/KSelector.java172
-rw-r--r--kdejava/koala/org/kde/koala/KSelectorSignals.java23
-rw-r--r--kdejava/koala/org/kde/koala/KSeparator.java111
-rw-r--r--kdejava/koala/org/kde/koala/KService.java547
-rw-r--r--kdejava/koala/org/kde/koala/KServiceGroup.java285
-rw-r--r--kdejava/koala/org/kde/koala/KServiceOffer.java94
-rw-r--r--kdejava/koala/org/kde/koala/KServiceSeparator.java31
-rw-r--r--kdejava/koala/org/kde/koala/KServiceType.java223
-rw-r--r--kdejava/koala/org/kde/koala/KServiceTypeProfile.java137
-rw-r--r--kdejava/koala/org/kde/koala/KSessionManaged.java57
-rw-r--r--kdejava/koala/org/kde/koala/KShared.java48
-rw-r--r--kdejava/koala/org/kde/koala/KSharedConfig.java27
-rw-r--r--kdejava/koala/org/kde/koala/KShell.java96
-rw-r--r--kdejava/koala/org/kde/koala/KShellCompletion.java51
-rw-r--r--kdejava/koala/org/kde/koala/KShellProcess.java45
-rw-r--r--kdejava/koala/org/kde/koala/KShortcut.java329
-rw-r--r--kdejava/koala/org/kde/koala/KShortcutList.java164
-rw-r--r--kdejava/koala/org/kde/koala/KShred.java95
-rw-r--r--kdejava/koala/org/kde/koala/KShredSignals.java20
-rw-r--r--kdejava/koala/org/kde/koala/KSimpleConfig.java64
-rw-r--r--kdejava/koala/org/kde/koala/KSimpleFileFilter.java128
-rw-r--r--kdejava/koala/org/kde/koala/KSpell.java390
-rw-r--r--kdejava/koala/org/kde/koala/KSpellConfig.java198
-rw-r--r--kdejava/koala/org/kde/koala/KSpellConfigSignals.java12
-rw-r--r--kdejava/koala/org/kde/koala/KSpellDlg.java67
-rw-r--r--kdejava/koala/org/kde/koala/KSpellDlgSignals.java17
-rw-r--r--kdejava/koala/org/kde/koala/KSpellSignals.java117
-rw-r--r--kdejava/koala/org/kde/koala/KSpellingHighlighter.java19
-rw-r--r--kdejava/koala/org/kde/koala/KSqueezedTextLabel.java78
-rw-r--r--kdejava/koala/org/kde/koala/KStandardDirs.java681
-rw-r--r--kdejava/koala/org/kde/koala/KStaticDeleterBase.java42
-rw-r--r--kdejava/koala/org/kde/koala/KStatusBar.java126
-rw-r--r--kdejava/koala/org/kde/koala/KStatusBarLabel.java44
-rw-r--r--kdejava/koala/org/kde/koala/KStatusBarLabelSignals.java11
-rw-r--r--kdejava/koala/org/kde/koala/KStatusBarSignals.java21
-rw-r--r--kdejava/koala/org/kde/koala/KStdAccel.java484
-rw-r--r--kdejava/koala/org/kde/koala/KStdAction.java544
-rw-r--r--kdejava/koala/org/kde/koala/KStdGuiItem.java183
-rw-r--r--kdejava/koala/org/kde/koala/KStringHandler.java407
-rw-r--r--kdejava/koala/org/kde/koala/KStringListValidator.java94
-rw-r--r--kdejava/koala/org/kde/koala/KSycoca.java364
-rw-r--r--kdejava/koala/org/kde/koala/KSycocaEntry.java78
-rw-r--r--kdejava/koala/org/kde/koala/KSycocaSignals.java17
-rw-r--r--kdejava/koala/org/kde/koala/KSyntaxHighlighter.java63
-rw-r--r--kdejava/koala/org/kde/koala/KSystemTray.java164
-rw-r--r--kdejava/koala/org/kde/koala/KSystemTraySignals.java19
-rw-r--r--kdejava/koala/org/kde/koala/KTabBar.java76
-rw-r--r--kdejava/koala/org/kde/koala/KTabBarSignals.java27
-rw-r--r--kdejava/koala/org/kde/koala/KTabCtl.java83
-rw-r--r--kdejava/koala/org/kde/koala/KTabCtlSignals.java15
-rw-r--r--kdejava/koala/org/kde/koala/KTabWidget.java95
-rw-r--r--kdejava/koala/org/kde/koala/KTabWidgetSignals.java30
-rw-r--r--kdejava/koala/org/kde/koala/KTar.java95
-rw-r--r--kdejava/koala/org/kde/koala/KTempDir.java124
-rw-r--r--kdejava/koala/org/kde/koala/KTempFile.java184
-rw-r--r--kdejava/koala/org/kde/koala/KTextBrowser.java106
-rw-r--r--kdejava/koala/org/kde/koala/KTextBrowserSignals.java29
-rw-r--r--kdejava/koala/org/kde/koala/KTextEdit.java148
-rw-r--r--kdejava/koala/org/kde/koala/KTimeWidget.java80
-rw-r--r--kdejava/koala/org/kde/koala/KTimeWidgetSignals.java16
-rw-r--r--kdejava/koala/org/kde/koala/KTipDatabase.java74
-rw-r--r--kdejava/koala/org/kde/koala/KTipDialog.java97
-rw-r--r--kdejava/koala/org/kde/koala/KToggleAction.java245
-rw-r--r--kdejava/koala/org/kde/koala/KToggleActionSignals.java12
-rw-r--r--kdejava/koala/org/kde/koala/KToggleFullScreenAction.java60
-rw-r--r--kdejava/koala/org/kde/koala/KToggleToolBarAction.java54
-rw-r--r--kdejava/koala/org/kde/koala/KToolBar.java919
-rw-r--r--kdejava/koala/org/kde/koala/KToolBarButton.java235
-rw-r--r--kdejava/koala/org/kde/koala/KToolBarButtonSignals.java35
-rw-r--r--kdejava/koala/org/kde/koala/KToolBarPopupAction.java142
-rw-r--r--kdejava/koala/org/kde/koala/KToolBarRadioGroup.java64
-rw-r--r--kdejava/koala/org/kde/koala/KToolBarSeparator.java43
-rw-r--r--kdejava/koala/org/kde/koala/KToolBarSignals.java107
-rw-r--r--kdejava/koala/org/kde/koala/KTrader.java155
-rw-r--r--kdejava/koala/org/kde/koala/KURIFilter.java174
-rw-r--r--kdejava/koala/org/kde/koala/KURIFilterData.java284
-rw-r--r--kdejava/koala/org/kde/koala/KURIFilterPlugin.java74
-rw-r--r--kdejava/koala/org/kde/koala/KURL.java1341
-rw-r--r--kdejava/koala/org/kde/koala/KURLBar.java274
-rw-r--r--kdejava/koala/org/kde/koala/KURLBarItem.java195
-rw-r--r--kdejava/koala/org/kde/koala/KURLBarItemDialog.java106
-rw-r--r--kdejava/koala/org/kde/koala/KURLBarListBox.java80
-rw-r--r--kdejava/koala/org/kde/koala/KURLBarListBoxSignals.java19
-rw-r--r--kdejava/koala/org/kde/koala/KURLBarSignals.java21
-rw-r--r--kdejava/koala/org/kde/koala/KURLComboBox.java220
-rw-r--r--kdejava/koala/org/kde/koala/KURLComboBoxSignals.java18
-rw-r--r--kdejava/koala/org/kde/koala/KURLComboRequester.java44
-rw-r--r--kdejava/koala/org/kde/koala/KURLCompletion.java176
-rw-r--r--kdejava/koala/org/kde/koala/KURLDrag.java135
-rw-r--r--kdejava/koala/org/kde/koala/KURLLabel.java279
-rw-r--r--kdejava/koala/org/kde/koala/KURLLabelSignals.java70
-rw-r--r--kdejava/koala/org/kde/koala/KURLPixmapProvider.java48
-rw-r--r--kdejava/koala/org/kde/koala/KURLRequester.java224
-rw-r--r--kdejava/koala/org/kde/koala/KURLRequesterDlg.java98
-rw-r--r--kdejava/koala/org/kde/koala/KURLRequesterSignals.java45
-rw-r--r--kdejava/koala/org/kde/koala/KUniqueApplication.java346
-rw-r--r--kdejava/koala/org/kde/koala/KValueSelector.java89
-rw-r--r--kdejava/koala/org/kde/koala/KWidgetAction.java58
-rw-r--r--kdejava/koala/org/kde/koala/KWindowInfo.java135
-rw-r--r--kdejava/koala/org/kde/koala/KWizard.java67
-rw-r--r--kdejava/koala/org/kde/koala/KWordWrap.java132
-rw-r--r--kdejava/koala/org/kde/koala/KWritePermsIcon.java61
-rw-r--r--kdejava/koala/org/kde/koala/KXMLGUI.java10
-rw-r--r--kdejava/koala/org/kde/koala/KXMLGUIBuilder.java63
-rw-r--r--kdejava/koala/org/kde/koala/KXMLGUIBuilderInterface.java22
-rw-r--r--kdejava/koala/org/kde/koala/KXMLGUIClient.java290
-rw-r--r--kdejava/koala/org/kde/koala/KXMLGUIClientInterface.java33
-rw-r--r--kdejava/koala/org/kde/koala/KXMLGUIFactory.java171
-rw-r--r--kdejava/koala/org/kde/koala/KXMLGUIFactorySignals.java15
-rw-r--r--kdejava/koala/org/kde/koala/KXYSelector.java124
-rw-r--r--kdejava/koala/org/kde/koala/KXYSelectorSignals.java20
-rw-r--r--kdejava/koala/org/kde/koala/KZip.java183
-rw-r--r--kdejava/koala/org/kde/koala/KZipFileEntry.java51
-rw-r--r--kdejava/koala/org/kde/koala/LinkStyle.java26
-rw-r--r--kdejava/koala/org/kde/koala/ListJob.java80
-rw-r--r--kdejava/koala/org/kde/koala/ListJobSignals.java27
-rw-r--r--kdejava/koala/org/kde/koala/LiveConnectExtension.java55
-rw-r--r--kdejava/koala/org/kde/koala/LiveConnectExtensionSignals.java10
-rw-r--r--kdejava/koala/org/kde/koala/MainWindow.java177
-rw-r--r--kdejava/koala/org/kde/koala/Makefile.am17
-rw-r--r--kdejava/koala/org/kde/koala/Marchaller.java143
-rw-r--r--kdejava/koala/org/kde/koala/MetaInfoJob.java61
-rw-r--r--kdejava/koala/org/kde/koala/MetaInfoJobSignals.java24
-rw-r--r--kdejava/koala/org/kde/koala/MimetypeJob.java51
-rw-r--r--kdejava/koala/org/kde/koala/MouseEvent.java120
-rw-r--r--kdejava/koala/org/kde/koala/MultiGetJob.java53
-rw-r--r--kdejava/koala/org/kde/koala/MultiGetJobSignals.java31
-rw-r--r--kdejava/koala/org/kde/koala/MutationEvent.java88
-rw-r--r--kdejava/koala/org/kde/koala/NamedNodeMap.java152
-rw-r--r--kdejava/koala/org/kde/koala/NetAccess.java359
-rw-r--r--kdejava/koala/org/kde/koala/Node.java425
-rw-r--r--kdejava/koala/org/kde/koala/NodeFilter.java67
-rw-r--r--kdejava/koala/org/kde/koala/NodeIterator.java109
-rw-r--r--kdejava/koala/org/kde/koala/Notation.java52
-rw-r--r--kdejava/koala/org/kde/koala/Observer.java365
-rw-r--r--kdejava/koala/org/kde/koala/OpenURLEvent.java33
-rw-r--r--kdejava/koala/org/kde/koala/Part.java202
-rw-r--r--kdejava/koala/org/kde/koala/PartActivateEvent.java31
-rw-r--r--kdejava/koala/org/kde/koala/PartBase.java72
-rw-r--r--kdejava/koala/org/kde/koala/PartBaseInterface.java10
-rw-r--r--kdejava/koala/org/kde/koala/PartManager.java232
-rw-r--r--kdejava/koala/org/kde/koala/PartManagerSignals.java29
-rw-r--r--kdejava/koala/org/kde/koala/PartSelectEvent.java27
-rw-r--r--kdejava/koala/org/kde/koala/PartSignals.java24
-rw-r--r--kdejava/koala/org/kde/koala/PasswordDialog.java144
-rw-r--r--kdejava/koala/org/kde/koala/Plugin.java355
-rw-r--r--kdejava/koala/org/kde/koala/PreviewJob.java80
-rw-r--r--kdejava/koala/org/kde/koala/PreviewJobSignals.java26
-rw-r--r--kdejava/koala/org/kde/koala/ProcessingInstruction.java59
-rw-r--r--kdejava/koala/org/kde/koala/ProgressBase.java206
-rw-r--r--kdejava/koala/org/kde/koala/ProgressBaseSignals.java15
-rw-r--r--kdejava/koala/org/kde/koala/RGBColor.java53
-rw-r--r--kdejava/koala/org/kde/koala/Range.java248
-rw-r--r--kdejava/koala/org/kde/koala/RangeException.java24
-rw-r--r--kdejava/koala/org/kde/koala/ReadOnlyPart.java106
-rw-r--r--kdejava/koala/org/kde/koala/ReadOnlyPartSignals.java39
-rw-r--r--kdejava/koala/org/kde/koala/ReadWritePart.java114
-rw-r--r--kdejava/koala/org/kde/koala/ReadWritePartSignals.java16
-rw-r--r--kdejava/koala/org/kde/koala/Rect.java57
-rw-r--r--kdejava/koala/org/kde/koala/RenameDlg.java102
-rw-r--r--kdejava/koala/org/kde/koala/Scheduler.java376
-rw-r--r--kdejava/koala/org/kde/koala/SchedulerSignals.java13
-rw-r--r--kdejava/koala/org/kde/koala/SessionData.java27
-rw-r--r--kdejava/koala/org/kde/koala/SimpleJob.java146
-rw-r--r--kdejava/koala/org/kde/koala/SkipDlg.java32
-rw-r--r--kdejava/koala/org/kde/koala/SkipDlgSignals.java10
-rw-r--r--kdejava/koala/org/kde/koala/Slave.java159
-rw-r--r--kdejava/koala/org/kde/koala/SlaveBase.java610
-rw-r--r--kdejava/koala/org/kde/koala/SlaveConfigSignals.java17
-rw-r--r--kdejava/koala/org/kde/koala/SlaveInterface.java34
-rw-r--r--kdejava/koala/org/kde/koala/SlaveInterfaceSignals.java29
-rw-r--r--kdejava/koala/org/kde/koala/SlaveSignals.java9
-rw-r--r--kdejava/koala/org/kde/koala/StatJob.java72
-rw-r--r--kdejava/koala/org/kde/koala/StatJobSignals.java26
-rw-r--r--kdejava/koala/org/kde/koala/StatusBarExtension.java85
-rw-r--r--kdejava/koala/org/kde/koala/StatusbarProgress.java69
-rw-r--r--kdejava/koala/org/kde/koala/StoredTransferJob.java59
-rw-r--r--kdejava/koala/org/kde/koala/StyleSheet.java126
-rw-r--r--kdejava/koala/org/kde/koala/Text.java64
-rw-r--r--kdejava/koala/org/kde/koala/TextEvent.java178
-rw-r--r--kdejava/koala/org/kde/koala/TransferJob.java117
-rw-r--r--kdejava/koala/org/kde/koala/TransferJobSignals.java63
-rw-r--r--kdejava/koala/org/kde/koala/TreeWalker.java175
-rw-r--r--kdejava/koala/org/kde/koala/UIEvent.java88
-rw-r--r--kdejava/koala/org/kde/koala/URLArgs.java108
-rw-r--r--kdejava/koala/org/kde/koala/WindowArgs.java37
-rw-r--r--kdejava/koala/org/kde/koala/kdejava.java38
713 files changed, 94834 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/Makefile.am b/kdejava/koala/org/kde/Makefile.am
new file mode 100644
index 00000000..e73623f0
--- /dev/null
+++ b/kdejava/koala/org/kde/Makefile.am
@@ -0,0 +1,5 @@
+####### kdevelop will overwrite this part!!! (begin)##########
+
+SUBDIRS = koala
+
+####### kdevelop will overwrite this part!!! (end)############
diff --git a/kdejava/koala/org/kde/koala/AbstractView.java b/kdejava/koala/org/kde/koala/AbstractView.java
new file mode 100644
index 00000000..c2dbfb3a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/AbstractView.java
@@ -0,0 +1,53 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Introduced in DOM Level 2
+ A base interface that all views shall derive from.
+ @short Introduced in DOM Level 2
+
+*/
+public class AbstractView implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected AbstractView(Class dummy){}
+
+ public AbstractView() {
+ newAbstractView();
+ }
+ private native void newAbstractView();
+ public AbstractView(AbstractView other) {
+ newAbstractView(other);
+ }
+ private native void newAbstractView(AbstractView other);
+ /**
+ The source DocumentView of which this is an AbstractView.
+ @short The source DocumentView of which this is an AbstractView.
+ */
+ public native Document document();
+ /**
+ Introduced in DOM Level 2
+ This method is from the ViewCSS interface
+ This method is used to get the computed style as it is defined in
+ [CSS2].
+ @param elt The element whose style is to be computed. This parameter
+ cannot be null.
+ @param pseudoElt The pseudo-element or null if none.
+ @return The computed style. The CSSStyleDeclaration is read-only and
+ contains only absolute values.
+
+ @short Introduced in DOM Level 2 This method is from the ViewCSS interface
+ */
+ public native CSSStyleDeclaration getComputedStyle(Element elt, String pseudoElt);
+ /**
+ not part of the DOM
+ @short
+ */
+ // DOM::AbstractViewImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+ // DOM::AbstractView* AbstractView(DOM::AbstractViewImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/Attr.java b/kdejava/koala/org/kde/koala/Attr.java
new file mode 100644
index 00000000..91320cfb
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Attr.java
@@ -0,0 +1,120 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>Attr</code> interface represents an attribute in an
+ <code>Element</code> object. Typically the allowable values for
+ the attribute are defined in a document type definition.
+ <code>Attr</code> objects inherit the <code>Node</code>
+ interface, but since they are not actually child nodes of the
+ element they describe, the DOM does not consider them part of the
+ document tree. Thus, the <code>Node</code> attributes
+ <code>parentNode</code> , <code>previousSibling</code> , and
+ <code>nextSibling</code> have a null value for <code>Attr</code>
+ objects. The DOM takes the view that attributes are properties of
+ elements rather than having a separate identity from the elements
+ they are associated with; this should make it more efficient to
+ implement such features as default attributes associated with all
+ elements of a given type. Furthermore, <code>Attr</code> nodes
+ may not be immediate children of a <code>DocumentFragment</code>
+ . However, they can be associated with <code>Element</code> nodes
+ contained within a <code>DocumentFragment</code> . In short,
+ users and implementors of the DOM need to be aware that <code>Attr</code>
+ nodes have some things in common with other objects
+ inheriting the <code>Node</code> interface, but they also are
+ quite distinct.
+ The attribute's effective value is determined as follows: if this
+ attribute has been explicitly assigned any value, that value is the
+ attribute's effective value; otherwise, if there is a declaration
+ for this attribute, and that declaration includes a default value,
+ then that default value is the attribute's effective value;
+ otherwise, the attribute does not exist on this element in the
+ structure model until it has been explicitly added. Note that the
+ <code>nodeValue</code> attribute on the <code>Attr</code>
+ instance can also be used to retrieve the string version of the
+ attribute's value(s).
+ In XML, where the value of an attribute can contain entity
+ references, the child nodes of the <code>Attr</code> node provide
+ a representation in which entity references are not expanded. These
+ child nodes may be either <code>Text</code> or
+ <code>EntityReference</code> nodes. Because the attribute type may be
+ unknown, there are no tokenized attribute values.
+ @short The <code>Attr</code> interface represents an attribute in an <code>Element</code> object.
+
+*/
+public class Attr extends Node {
+ protected Attr(Class dummy){super((Class) null);}
+ public Attr() {
+ super((Class) null);
+ newAttr();
+ }
+ private native void newAttr();
+ public Attr(Node other) {
+ super((Class) null);
+ newAttr(other);
+ }
+ private native void newAttr(Node other);
+ public Attr(Attr other) {
+ super((Class) null);
+ newAttr(other);
+ }
+ private native void newAttr(Attr other);
+ /**
+ Returns the name of this attribute.
+ @short Returns the name of this attribute.
+ */
+ public native String name();
+ /**
+ If this attribute was explicitly given a value in the original
+ document, this is <code>true</code> ; otherwise, it is
+ <code>false</code> . Note that the implementation is in charge of
+ this attribute, not the user. If the user changes the value of
+ the attribute (even if it ends up having the same value as the
+ default value) then the <code>specified</code> flag is
+ automatically flipped to <code>true</code> . To re-specify
+ the attribute as the default value from the DTD, the user must
+ delete the attribute. The implementation will then make a new
+ attribute available with <code>specified</code> set to
+ <code>false</code> and the default value (if one exists).
+ In summary:
+ <li>If</li> the attribute has an assigned
+ value in the document then <code>specified</code> is
+ <code>true</code> , and the value is the assigned value.
+ <li>If</li> the attribute has no assigned value in the
+ document and has a default value in the DTD, then
+ <code>specified</code> is <code>false</code> , and the value is
+ the default value in the DTD.
+ <li>If</li> the attribute has no assigned value in the
+ document and has a value of #IMPLIED in the DTD, then the
+ attribute does not appear in the structure model of the
+ document.
+ @short If this attribute was explicitly given a value in the original document, this is <code>true</code> ; otherwise, it is <code>false</code> .
+ */
+ public native boolean specified();
+ /**
+ On retrieval, the value of the attribute is returned as a
+ string. Character and general entity references are replaced
+ with their values.
+ On setting, this creates a <code>Text</code> node with the
+ unparsed contents of the string.
+ @short On retrieval, the value of the attribute is returned as a string.
+ */
+ public native String value();
+ /**
+ see value
+ @short see value
+ */
+ public native void setValue(String arg1);
+ /**
+ Introduced in DOM Level 2
+ The Element node this attribute is attached to or null if this attribute
+ is not in use.
+ @short Introduced in DOM Level 2
+ */
+ public native Element ownerElement();
+ // DOM::Attr* Attr(DOM::AttrImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/AuthInfo.java b/kdejava/koala/org/kde/koala/AuthInfo.java
new file mode 100644
index 00000000..56b786da
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/AuthInfo.java
@@ -0,0 +1,61 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This class is intended to make it easier to prompt for, cache
+ and retrieve authorization information.
+ When using this class to cache, retrieve or prompt authentication
+ information, you only need to set the necessary attributes. For
+ example, to check whether a password is already cached, the only
+ required information is the URL of the resource and optionally
+ whether or not a path match should be performed. Similarly, to
+ prompt for password you only need to optionally set the prompt,
+ username (if already supplied), comment and commentLabel fields.
+ <em>SPECIAL NOTE:</em> If you extend this class to add additional
+ parameters do not forget to overload the stream insertion and
+ extraction operators ("<<" and ">>") so that the added data can
+ be correctly serialzed.
+ @author Dawit Alemayehu <adawit@kde.org>
+
+ @short A two way messaging class for passing authentication information.
+
+*/
+public class AuthInfo implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected AuthInfo(Class dummy){}
+
+ /**
+ Default constructor.
+ @short Default constructor.
+ */
+ public AuthInfo() {
+ newAuthInfo();
+ }
+ private native void newAuthInfo();
+ /**
+ Copy constructor.
+ @short Copy constructor.
+ */
+ public AuthInfo(AuthInfo info) {
+ newAuthInfo(info);
+ }
+ private native void newAuthInfo(AuthInfo info);
+ /**
+ Use this method to check if the object was modified.
+ @return true if the object has been modified
+
+ @short Use this method to check if the object was modified.
+ */
+ public native boolean isModified();
+ /**
+ Use this method to indicate that this object has been modified.
+ @param flag true to mark the object as modified, false to clear
+ @short Use this method to indicate that this object has been modified.
+ */
+ public native void setModified(boolean flag);
+}
diff --git a/kdejava/koala/org/kde/koala/BrowserExtension.java b/kdejava/koala/org/kde/koala/BrowserExtension.java
new file mode 100644
index 00000000..dedc506c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/BrowserExtension.java
@@ -0,0 +1,258 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QDataStream;
+import org.kde.qt.QPoint;
+import java.util.ArrayList;
+import org.kde.qt.QObject;
+
+/**
+
+ The Browser Extension is an extension (yes, no kidding) to
+ KParts.ReadOnlyPart, which allows a better integration of parts
+ with browsers (in particular Konqueror).
+ Remember that ReadOnlyPart only has openURL(KURL), with no other settings.
+ For full-fledged browsing, we need much more than that, including
+ many arguments about how to open this URL (see URLArgs), allowing
+ parts to save and restore their data into the back/forward history,
+ allowing parts to control the location bar URL, to requests URLs
+ to be opened by the hosting browser, etc.
+ The part developer needs to define its own class derived from BrowserExtension,
+ to implement the methods [and the standard-actions slots, see below].
+ The way to associate the BrowserExtension with the part is to simply
+ create the BrowserExtension as a child of the part (in QObject's terms).
+ The hosting application will look for it automatically.
+ Another aspect of the browser integration is that a set of standard
+ actions are provided by the browser, but implemented by the part
+ (for the actions it supports).
+ The following standard actions are defined by the host of the view :
+ [selection-dependent actions]
+
+ <li>
+ <code>cut</code> : Copy selected items to clipboard and store 'not cut' in clipboard.
+ </li>
+
+ <li>
+ <code>copy</code> : Copy selected items to clipboard and store 'cut' in clipboard.
+ </li>
+
+ <li>
+ <code>paste</code> : Paste clipboard into view URL.
+ </li>
+
+ <li>
+ <code>pasteTo</code>(KURL) : Paste clipboard into given URL.
+ </li>
+
+ <li>
+ <code>rename</code> : Rename item in place.
+ </li>
+
+ <li>
+ <code>trash</code> : Move selected items to trash.
+ </li>
+
+ <li>
+ <code>del</code> : Delete selected items (couldn't call it delete!).
+ </li>
+
+ <li>
+ <code>shred</code> : Shred selected items (secure deletion) - DEPRECATED.
+ </li>
+
+ <li>
+ <code>properties</code> : Show file/document properties.
+ </li>
+
+ <li>
+ <code>editMimeType</code> : show file/document's mimetype properties.
+ </li>
+
+ <li>
+ <code>searchProvider</code> : Lookup selected text at default search provider
+ </li>
+ [normal actions]
+
+ <li>
+ <code>print</code> : Print :-)
+ </li>
+
+ <li>
+ <code>reparseConfiguration</code> : Re-read configuration and apply it.
+ </li>
+
+ <li>
+ <code>refreshMimeTypes</code> : If the view uses mimetypes it should re-determine them.
+ </li>
+ The view defines a slot with the name of the action in order to implement the action.
+ The browser will detect the slot automatically and connect its action to it when
+ appropriate (i.e. when the view is active).
+ The selection-dependent actions are disabled by default and the view should
+ enable them when the selection changes, emitting enableAction().
+ The normal actions do not depend on the selection.
+ You need to enable 'print' when printing is possible - you can even do that
+ in the constructor.
+ A special case is the configuration slots, not connected to any action directly,
+ and having parameters.
+ [configuration slot]
+
+ <li>
+ <code>setSaveViewPropertiesLocally</code>( boolean ): If <code>true</code>, view properties are saved into .directory
+ otherwise, they are saved globally.
+ </li>
+
+ <li>
+ <code>disableScrolling</code>: no scrollbars
+
+ </li> See {@link BrowserExtensionSignals} for signals emitted by BrowserExtension
+ @short The Browser Extension is an extension (yes, no kidding) to KParts.ReadOnlyPart, which allows a better integration of parts with browsers (in particular Konqueror).
+
+*/
+public class BrowserExtension extends QObject {
+ protected BrowserExtension(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor
+ @param parent The KParts.ReadOnlyPart that this extension ... "extends" :)
+ @param name An optional name for the extension.
+ @short Constructor
+ */
+ public BrowserExtension(ReadOnlyPart parent, String name) {
+ super((Class) null);
+ newBrowserExtension(parent,name);
+ }
+ private native void newBrowserExtension(ReadOnlyPart parent, String name);
+ public BrowserExtension(ReadOnlyPart parent) {
+ super((Class) null);
+ newBrowserExtension(parent);
+ }
+ private native void newBrowserExtension(ReadOnlyPart parent);
+ /**
+ Set the parameters to use for opening the next URL.
+ This is called by the "hosting" application, to pass parameters to the part.
+ @short Set the parameters to use for opening the next URL.
+ @see URLArgs
+ */
+ public native void setURLArgs(URLArgs args);
+ /**
+ Retrieve the set of parameters to use for opening the URL
+ (this must be called from openURL() in the part).
+ @short Retrieve the set of parameters to use for opening the URL (this must be called from openURL() in the part).
+ @see URLArgs
+ */
+ public native URLArgs urlArgs();
+ /**
+ Returns the current x offset.
+ For a scrollview, implement this using contentsX().
+ @short Returns the current x offset.
+ */
+ public native int xOffset();
+ /**
+ Returns the current y offset.
+ For a scrollview, implement this using contentsY().
+ @short Returns the current y offset.
+ */
+ public native int yOffset();
+ /**
+ Used by the browser to save the current state of the view
+ (in order to restore it if going back in navigation).
+ If you want to save additional properties, reimplement it
+ but don't forget to call the parent method (probably first).
+ @short Used by the browser to save the current state of the view (in order to restore it if going back in navigation).
+ */
+ public native void saveState(QDataStream stream);
+ /**
+ Used by the browser to restore the view in the state
+ it was when we left it.
+ If you saved additional properties, reimplement it
+ but don't forget to call the parent method (probably first).
+ @short Used by the browser to restore the view in the state it was when we left it.
+ */
+ public native void restoreState(QDataStream stream);
+ /**
+ Returns whether url drop handling is enabled.
+ See setURLDropHandlingEnabled for more information about this
+ property.
+ @short Returns whether url drop handling is enabled.
+ */
+ public native boolean isURLDropHandlingEnabled();
+ /**
+ Enables or disables url drop handling. URL drop handling is a property
+ describing whether the hosting shell component is allowed to install an
+ event filter on the part's widget, to listen for URI drop events.
+ Set it to true if you are exporting a BrowserExtension implementation and
+ do not provide any special URI drop handling. If set to false you can be
+ sure to receive all those URI drop events unfiltered. Also note that the
+ implementation as of Konqueror installs the event filter only on the part's
+ widget itself, not on child widgets.
+ @short Enables or disables url drop handling.
+ */
+ public native void setURLDropHandlingEnabled(boolean enable);
+ public native void setBrowserInterface(BrowserInterface impl);
+ public native BrowserInterface browserInterface();
+ /**
+ @return the status (enabled/disabled) of an action.
+ When the enableAction signal is emitted, the browserextension
+ stores the status of the action internally, so that it's possible
+ to query later for the status of the action, using this method.
+
+ @short
+ */
+ public native boolean isActionEnabled(String name);
+ /**
+ @return the text of an action, if it was set explicitely by the part.
+ When the setActionText signal is emitted, the browserextension
+ stores the text of the action internally, so that it's possible
+ to query later for the text of the action, using this method.
+
+ @short
+ */
+ public native String actionText(String name);
+ /**
+ Asks the hosting browser to perform a paste (using openURLRequestDelayed)
+ @short Asks the hosting browser to perform a paste (using openURLRequestDelayed)
+ */
+ public native void pasteRequest();
+ /**
+ Returns a map containing the action names as keys and corresponding
+ SLOT()'ified method names as data entries.
+ This is very useful for
+ the host component, when connecting the own signals with the
+ extension's slots.
+ Basically you iterate over the map, check if the extension implements
+ the slot and connect to the slot using the data value of your map
+ iterator.
+ Checking if the extension implements a certain slot can be done like this:
+ <pre>
+ extension.metaObject().slotNames().contains( actionName + "()" )
+ </pre>
+ (note that <code>actionName</code> is the iterator's key value if already
+ iterating over the action slot map, returned by this method)
+ Connecting to the slot can be done like this:
+ <pre>
+ connect( yourObject, SIGNAL("yourSignal()"),
+ extension, mapIterator.data() )
+ </pre>
+ (where "mapIterator" is your QMap<String,String> iterator)
+ @short Returns a map containing the action names as keys and corresponding SLOT()'ified method names as data entries.
+ */
+ // KParts::BrowserExtension::ActionSlotMap actionSlotMap(); >>>> NOT CONVERTED
+ /**
+ @return a pointer to the static action-slot map. Preferred method to get it.
+ The map is created if it doesn't exist yet
+
+ @short
+ */
+ // KParts::BrowserExtension::ActionSlotMap* actionSlotMapPtr(); >>>> NOT CONVERTED
+ /**
+ Queries <code>obj</code> for a child object which inherits from this
+ BrowserExtension class. Convenience method.
+ @short Queries <code>obj</code> for a child object which inherits from this BrowserExtension class.
+ */
+ public static native BrowserExtension childObject(QObject arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/BrowserExtensionSignals.java b/kdejava/koala/org/kde/koala/BrowserExtensionSignals.java
new file mode 100644
index 00000000..7c11b38e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/BrowserExtensionSignals.java
@@ -0,0 +1,215 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QDataStream;
+import org.kde.qt.QPoint;
+import java.util.ArrayList;
+
+public interface BrowserExtensionSignals {
+ /**
+ Enables or disable a standard action held by the browser.
+ See class documentation for the list of standard actions.
+ @short Enables or disable a standard action held by the browser.
+ */
+ void enableAction(String name, boolean enabled);
+ /**
+ Change the text of a standard action held by the browser.
+ This can be used to change "Paste" into "Paste Image" for instance.
+ See class documentation for the list of standard actions.
+ @short Change the text of a standard action held by the browser.
+ */
+ void setActionText(String name, String text);
+ /**
+ Asks the host (browser) to open <code>url.</code>
+ To set a reload, the x and y offsets, the service type etc., fill in the
+ appropriate fields in the <code>args</code> structure.
+ Hosts should not connect to this signal but to openURLRequestDelayed.
+ @short Asks the host (browser) to open <code>url.</code>
+ */
+ void openURLRequest(KURL url, URLArgs args);
+ /**
+ Asks the host (browser) to open <code>url.</code>
+ To set a reload, the x and y offsets, the service type etc., fill in the
+ appropriate fields in the <code>args</code> structure.
+ Hosts should not connect to this signal but to openURLRequestDelayed.
+ @short Asks the host (browser) to open <code>url.</code>
+ */
+ void openURLRequest(KURL url);
+ /**
+ This signal is emitted when openURLRequest is called, after a 0-seconds timer.
+ This allows the caller to terminate what it's doing first, before (usually)
+ being destroyed. Parts should never use this signal, hosts should only connect
+ to this signal.
+ @short This signal is emitted when openURLRequest is called, after a 0-seconds timer.
+ */
+ void openURLRequestDelayed(KURL url, URLArgs args);
+ /**
+ This signal is emitted when openURLRequest is called, after a 0-seconds timer.
+ This allows the caller to terminate what it's doing first, before (usually)
+ being destroyed. Parts should never use this signal, hosts should only connect
+ to this signal.
+ @short This signal is emitted when openURLRequest is called, after a 0-seconds timer.
+ */
+ void openURLRequestDelayed(KURL url);
+ /**
+ Tells the hosting browser that the part opened a new URL (which can be
+ queried via KParts.Part.url().
+ This helps the browser to update/create an entry in the history.
+ The part may <b>not</b> emit this signal together with openURLRequest().
+ Emit openURLRequest() if you want the browser to handle a URL the user
+ asked to open (from within your part/document). This signal however is
+ useful if you want to handle URLs all yourself internally, while still
+ telling the hosting browser about new opened URLs, in order to provide
+ a proper history functionality to the user.
+ An example of usage is a html rendering component which wants to emit
+ this signal when a child frame document changed its URL.
+ Conclusion: you probably want to use openURLRequest() instead.
+ @short Tells the hosting browser that the part opened a new URL (which can be queried via KParts.Part.url().
+ */
+ void openURLNotify();
+ /**
+ Updates the URL shown in the browser's location bar to <code>url.</code>
+ @short Updates the URL shown in the browser's location bar to <code>url.</code>
+ */
+ void setLocationBarURL(String url);
+ /**
+ Sets the URL of an icon for the currently displayed page.
+ @short Sets the URL of an icon for the currently displayed page.
+ */
+ void setIconURL(KURL url);
+ /**
+ Asks the hosting browser to open a new window for the given <code>url.</code>
+ The <code>args</code> argument is optional additional information for the
+ browser,
+ @short Asks the hosting browser to open a new window for the given <code>url.</code>
+ @see URLArgs
+ */
+ void createNewWindow(KURL url, URLArgs args);
+ /**
+ Asks the hosting browser to open a new window for the given <code>url.</code>
+ The <code>args</code> argument is optional additional information for the
+ browser,
+ @short Asks the hosting browser to open a new window for the given <code>url.</code>
+ @see URLArgs
+ */
+ void createNewWindow(KURL url);
+ // void createNewWindow(const KURL& arg1,const KParts::URLArgs& arg2,const KParts::WindowArgs& arg3,KParts::ReadOnlyPart*& arg4); >>>> NOT CONVERTED
+ /**
+ Since the part emits the jobid in the started() signal,
+ progress information is automatically displayed.
+ However, if you don't use a KIO.Job in the part,
+ you can use loadingProgress() and speedProgress()
+ to display progress information.
+ @short Since the part emits the jobid in the started() signal, progress information is automatically displayed.
+ */
+ void loadingProgress(int percent);
+ /**
+ @short
+ @see #loadingProgress
+ */
+ void speedProgress(int bytesPerSecond);
+ void infoMessage(String arg1);
+ /**
+ Emit this to make the browser show a standard popup menu
+ at the point <code>global</code> for the files <code>items.</code>
+ @short Emit this to make the browser show a standard popup menu at the point <code>global</code> for the files <code>items.</code>
+ */
+ void popupMenu(QPoint global, ArrayList items);
+ /**
+ Emit this to make the browser show a standard popup menu
+ at the point <code>global</code> for the files <code>items.</code>
+ The GUI described by <code>client</code> is being merged with the popupmenu of the host
+ @short Emit this to make the browser show a standard popup menu at the point <code>global</code> for the files <code>items.</code>
+ */
+ void popupMenu(KXMLGUIClientInterface client, QPoint global, ArrayList items);
+ // void popupMenu(KXMLGUIClient* arg1,const QPoint& arg2,const KFileItemList& arg3,const KParts::URLArgs& arg4,KParts::BrowserExtension::PopupFlags arg5); >>>> NOT CONVERTED
+ /**
+ Emit this to make the browser show a standard popup menu
+ at the point <code>global</code> for the given <code>url.</code>
+ Give as much information
+ about this URL as possible, like the <code>mimeType</code> and the file type
+ (<code>mode</code>: S_IFREG, S_IFDIR...)
+ @short Emit this to make the browser show a standard popup menu at the point <code>global</code> for the given <code>url.</code>
+ */
+ void popupMenu(QPoint global, KURL url, String mimeType, long mode);
+ /**
+ Emit this to make the browser show a standard popup menu
+ at the point <code>global</code> for the given <code>url.</code>
+ Give as much information
+ about this URL as possible, like the <code>mimeType</code> and the file type
+ (<code>mode</code>: S_IFREG, S_IFDIR...)
+ @short Emit this to make the browser show a standard popup menu at the point <code>global</code> for the given <code>url.</code>
+ */
+ void popupMenu(QPoint global, KURL url, String mimeType);
+ /**
+ Emit this to make the browser show a standard popup menu
+ at the point <code>global</code> for the given <code>url.</code>
+ Give as much information
+ about this URL as possible, like the <code>mimeType</code> and the file type
+ (<code>mode</code>: S_IFREG, S_IFDIR...)
+ The GUI described by <code>client</code> is being merged with the popupmenu of the host
+ @short Emit this to make the browser show a standard popup menu at the point <code>global</code> for the given <code>url.</code>
+ */
+ void popupMenu(KXMLGUIClientInterface client, QPoint global, KURL url, String mimeType, long mode);
+ /**
+ Emit this to make the browser show a standard popup menu
+ at the point <code>global</code> for the given <code>url.</code>
+ Give as much information
+ about this URL as possible, like the <code>mimeType</code> and the file type
+ (<code>mode</code>: S_IFREG, S_IFDIR...)
+ The GUI described by <code>client</code> is being merged with the popupmenu of the host
+ @short Emit this to make the browser show a standard popup menu at the point <code>global</code> for the given <code>url.</code>
+ */
+ void popupMenu(KXMLGUIClientInterface client, QPoint global, KURL url, String mimeType);
+ // void popupMenu(KXMLGUIClient* arg1,const QPoint& arg2,const KURL& arg3,const KParts::URLArgs& arg4,KParts::BrowserExtension::PopupFlags arg5,mode_t arg6); >>>> NOT CONVERTED
+ // void popupMenu(KXMLGUIClient* arg1,const QPoint& arg2,const KURL& arg3,const KParts::URLArgs& arg4,KParts::BrowserExtension::PopupFlags arg5); >>>> NOT CONVERTED
+ /**
+ Inform the hosting application about the current selection.
+ Used when a set of files/URLs is selected (with full information
+ about those URLs, including size, permissions etc.)
+ @short Inform the hosting application about the current selection.
+ */
+ void selectionInfo(ArrayList items);
+ /**
+ Inform the hosting application about the current selection.
+ Used when some text is selected.
+ @short Inform the hosting application about the current selection.
+ */
+ void selectionInfo(String text);
+ /**
+ Inform the hosting application that the user moved the mouse over an item.
+ Used when the mouse is on an URL.
+ @short Inform the hosting application that the user moved the mouse over an item.
+ */
+ void mouseOverInfo(KFileItem item);
+ /**
+ Ask the hosting application to add a new HTML (aka Mozilla/Netscape)
+ SideBar entry.
+ @short Ask the hosting application to add a new HTML (aka Mozilla/Netscape) SideBar entry.
+ */
+ void addWebSideBar(KURL url, String name);
+ /**
+ Ask the hosting application to move the top level widget.
+ @short Ask the hosting application to move the top level widget.
+ */
+ void moveTopLevelWidget(int x, int y);
+ /**
+ Ask the hosting application to resize the top level widget.
+ @short Ask the hosting application to resize the top level widget.
+ */
+ void resizeTopLevelWidget(int w, int h);
+ /**
+ Ask the hosting application to focus <code>part.</code>
+ @short Ask the hosting application to focus <code>part.</code>
+ */
+ void requestFocus(ReadOnlyPart part);
+ /**
+ Tell the host (browser) about security state of current page
+ enum PageSecurity { NotCrypted, Encrypted, Mixed }
+ @short Tell the host (browser) about security state of current page enum PageSecurity { NotCrypted, Encrypted, Mixed }
+ */
+ void setPageSecurity(int arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/BrowserHostExtension.java b/kdejava/koala/org/kde/koala/BrowserHostExtension.java
new file mode 100644
index 00000000..ca72329c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/BrowserHostExtension.java
@@ -0,0 +1,63 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.ArrayList;
+import org.kde.qt.QObject;
+
+/**
+
+ An extension class for container parts, i.e. parts that contain
+ other parts.
+ For instance a KHTMLPart hosts one part per frame.
+ @short An extension class for container parts, i.
+
+*/
+public class BrowserHostExtension extends QObject {
+ protected BrowserHostExtension(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public BrowserHostExtension(ReadOnlyPart parent, String name) {
+ super((Class) null);
+ newBrowserHostExtension(parent,name);
+ }
+ private native void newBrowserHostExtension(ReadOnlyPart parent, String name);
+ public BrowserHostExtension(ReadOnlyPart parent) {
+ super((Class) null);
+ newBrowserHostExtension(parent);
+ }
+ private native void newBrowserHostExtension(ReadOnlyPart parent);
+ /**
+ Returns a list of the names of all hosted child objects.
+ Note that this method does not query the child objects recursively.
+ @short Returns a list of the names of all hosted child objects.
+ */
+ public native ArrayList frameNames();
+ /**
+ Returns a list of pointers to all hosted child objects.
+ Note that this method does not query the child objects recursively.
+ @short Returns a list of pointers to all hosted child objects.
+ */
+ // const QPtrList<KParts::ReadOnlyPart> frames(); >>>> NOT CONVERTED
+ /**
+ Returns the part that contains <code>frame</code> and that may be accessed
+ by <code>callingPart</code>
+ @short Returns the part that contains <code>frame</code> and that may be accessed by <code>callingPart</code>
+ */
+ public native BrowserHostExtension findFrameParent(ReadOnlyPart callingPart, String frame);
+ /**
+ Opens the given url in a hosted child frame. The frame name is specified in the
+ frameName variable in the urlArgs argument structure (see KParts.URLArgs ) .
+ @short Opens the given url in a hosted child frame.
+ */
+ public native boolean openURLInFrame(KURL url, URLArgs urlArgs);
+ /**
+ Queries <code>obj</code> for a child object which inherits from this
+ BrowserHostExtension class. Convenience method.
+ @short Queries <code>obj</code> for a child object which inherits from this BrowserHostExtension class.
+ */
+ public static native BrowserHostExtension childObject(QObject arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/BrowserInterface.java b/kdejava/koala/org/kde/koala/BrowserInterface.java
new file mode 100644
index 00000000..7a951e0e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/BrowserInterface.java
@@ -0,0 +1,55 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QVariant;
+import org.kde.qt.QObject;
+
+/**
+
+ The purpose of this interface is to allow a direct communication between
+ a KPart and the hosting browser shell (for example Konqueror) . A
+ shell implementing this interface can propagate it to embedded kpart
+ components by using the setBrowserInterface call of the part's
+ KParts.BrowserExtension object.
+ This interface looks not very rich, but the main functionality is
+ implemented using the callMethod method for part.shell
+ communication and using Qt properties for allowing a part to
+ to explicitly query information from the shell.
+ Konqueror in particular, as 'reference' implementation, provides
+ the following functionality through this interface:
+ Qt properties:
+ <code>
+ Q_PROPERTY( uint historyLength READ historyLength );
+ </code>
+ Callable methods:
+ <code>
+ void goHistory( int );
+ </code>
+ @short The purpose of this interface is to allow a direct communication between a KPart and the hosting browser shell (for example Konqueror) .
+
+*/
+public class BrowserInterface extends QObject {
+ protected BrowserInterface(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public BrowserInterface(QObject parent, String name) {
+ super((Class) null);
+ newBrowserInterface(parent,name);
+ }
+ private native void newBrowserInterface(QObject parent, String name);
+ public BrowserInterface(QObject parent) {
+ super((Class) null);
+ newBrowserInterface(parent);
+ }
+ private native void newBrowserInterface(QObject parent);
+ /**
+ Perform a dynamic invocation of a method in the BrowserInterface
+ implementation. Methods are to be implemented as simple Qt slots.
+ @short Perform a dynamic invocation of a method in the BrowserInterface implementation.
+ */
+ public native void callMethod(String name, QVariant argument);
+}
diff --git a/kdejava/koala/org/kde/koala/BrowserRun.java b/kdejava/koala/org/kde/koala/BrowserRun.java
new file mode 100644
index 00000000..b9675399
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/BrowserRun.java
@@ -0,0 +1,143 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ This class extends KRun to provide additional functionality for browsers:
+ <ul>
+ <li>"save or open" dialog boxes
+ <li>"save" functionality
+ <li>support for HTTP POST (including saving the result to a temp file if
+ opening a separate application)
+ <li>warning before launching executables off the web
+ <li>custom error handling (i.e. treating errors as HTML pages)
+ <li>generation of SSL metadata depending on the previous URL shown by the part
+ </ul>
+ @author David Faure <faure@kde.org>
+
+ @short This class extends KRun to provide additional functionality for browsers: <ul> <li>"save or open" dialog boxes <li>"save" functionality <li>support for HTTP POST (including saving the result to a temp file if opening a separate application) <li>warning before launching executables off the web <li>custom error handling (i.
+
+*/
+public class BrowserRun extends KRun {
+ protected BrowserRun(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ @param url the URL we're probing
+ @param args URL args - includes data for a HTTP POST, etc.
+ @param part the part going to open this URL - can be null if not created yet
+ @param window the mainwindow - passed to KIO.Job.setWindow()
+ @param removeReferrer if true, the "referrer" metadata from <code>args</code> isn't passed on
+ @param trustedSource if false, a warning will be shown before launching an executable
+ Always pass false for <code>trustedSource</code>, except for local directory views.
+ @short
+ */
+ public BrowserRun(KURL url, URLArgs args, ReadOnlyPart part, QWidget window, boolean removeReferrer, boolean trustedSource) {
+ super((Class) null);
+ newBrowserRun(url,args,part,window,removeReferrer,trustedSource);
+ }
+ private native void newBrowserRun(KURL url, URLArgs args, ReadOnlyPart part, QWidget window, boolean removeReferrer, boolean trustedSource);
+ /**
+ @param url the URL we're probing
+ @param args URL args - includes data for a HTTP POST, etc.
+ @param part the part going to open this URL - can be null if not created yet
+ @param window the mainwindow - passed to KIO.Job.setWindow()
+ @param removeReferrer if true, the "referrer" metadata from <code>args</code> isn't passed on
+ @param trustedSource if false, a warning will be shown before launching an executable
+ @param hideErrorDialog if true, no dialog will be shown in case of errors.
+ Always pass false for <code>trustedSource</code>, except for local directory views.
+ @short
+ */
+ public BrowserRun(KURL url, URLArgs args, ReadOnlyPart part, QWidget window, boolean removeReferrer, boolean trustedSource, boolean hideErrorDialog) {
+ super((Class) null);
+ newBrowserRun(url,args,part,window,removeReferrer,trustedSource,hideErrorDialog);
+ }
+ private native void newBrowserRun(KURL url, URLArgs args, ReadOnlyPart part, QWidget window, boolean removeReferrer, boolean trustedSource, boolean hideErrorDialog);
+ /**
+ @return the URL we're probing
+
+ @short
+ */
+ public native KURL url();
+ /**
+ @return true if no dialog will be shown in case of errors
+
+ @short
+ */
+ public native boolean hideErrorDialog();
+ /**
+ @return Suggested filename given by the server (e.g. HTTP content-disposition)
+
+ @short
+ */
+ public native String suggestedFilename();
+ public native void save(KURL url, String suggestedFilename);
+ /**
+ Ask the user whether to save or open a url in another application.
+ @param url the URL in question
+ @param offer the application that will be used to open the URL
+ @param mimeType the mimetype of the URL
+ @param suggestedFilename optional filename suggested by the server
+ @return Save, Open or Cancel.
+
+ @short Ask the user whether to save or open a url in another application.
+ */
+ // KParts::BrowserRun::AskSaveResult askSave(const KURL& arg1,KService::Ptr arg2,const QString& arg3,const QString& arg4); >>>> NOT CONVERTED
+ // KParts::BrowserRun::AskSaveResult askSave(const KURL& arg1,KService::Ptr arg2,const QString& arg3); >>>> NOT CONVERTED
+ /**
+ Similar to askSave() but for the case where the current application is
+ able to embed the url itself (instead of passing it to another app).
+ @param url the URL in question
+ @param mimeType the mimetype of the URL
+ @param suggestedFilename optional filename suggested by the server
+ @param flags reserved for later use
+ @return Save, Open or Cancel.
+
+ @short Similar to askSave() but for the case where the current application is able to embed the url itself (instead of passing it to another app).
+ */
+ // KParts::BrowserRun::AskSaveResult askEmbedOrSave(const KURL& arg1,const QString& arg2,const QString& arg3,int arg4); >>>> NOT CONVERTED
+ // KParts::BrowserRun::AskSaveResult askEmbedOrSave(const KURL& arg1,const QString& arg2,const QString& arg3); >>>> NOT CONVERTED
+ // KParts::BrowserRun::AskSaveResult askEmbedOrSave(const KURL& arg1,const QString& arg2); >>>> NOT CONVERTED
+ public static native void simpleSave(KURL url, String suggestedFilename, QWidget window);
+ /** BIC: Combine with the above function for KDE 4.0. @short BIC: Combine with the above function for KDE 4.
+ */
+ public static native void simpleSave(KURL url, String suggestedFilename);
+ public static native boolean allowExecution(String serviceType, KURL url);
+ /** BIC: Obsoleted by KRun.isExecutable( StringserviceType ); @short BIC: Obsoleted by KRun.isExecutable( StringserviceType );
+ */
+ public static native boolean isExecutable(String serviceType);
+ public static native boolean isTextExecutable(String serviceType);
+ /**
+ Reimplemented from KRun
+ @short Reimplemented from KRun
+ */
+ protected native void scanFile();
+ /**
+ Reimplemented from KRun
+ @short Reimplemented from KRun
+ */
+ protected native void init();
+ /**
+ Called when an error happens.
+ NOTE: <code>job</code> could be null, if you passed hideErrorDialog=true.
+ The default implementation shows a message box, but only when job != 0 ....
+ It is strongly recommended to reimplement this method if
+ you passed hideErrorDialog=true.
+ @short Called when an error happens.
+ */
+ protected native void handleError(Job job);
+ /**
+ Helper for foundMimeType: call this if the mimetype couldn't be embedded
+ @short Helper for foundMimeType: call this if the mimetype couldn't be embedded
+ */
+ // KParts::BrowserRun::NonEmbeddableResult handleNonEmbeddable(const QString& arg1); >>>> NOT CONVERTED
+ protected native void slotBrowserScanFinished(Job job);
+ protected native void slotBrowserMimetype(Job job, String type);
+ protected native void slotCopyToTempFileResult(Job job);
+ protected native void slotStatResult(Job job);
+}
diff --git a/kdejava/koala/org/kde/koala/CDATASection.java b/kdejava/koala/org/kde/koala/CDATASection.java
new file mode 100644
index 00000000..dd2e240f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CDATASection.java
@@ -0,0 +1,46 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ CDATA sections are used to escape blocks of text containing
+ characters that would otherwise be regarded as markup. The only
+ delimiter that is recognized in a CDATA section is the "]]&gt;"
+ string that ends the CDATA section. CDATA sections can not be
+ nested. The primary purpose is for including material such as XML
+ fragments, without needing to escape all the delimiters.
+ The <code>DOMString</code> attribute of the <code>Text</code>
+ node holds the text that is contained by the CDATA section. Note
+ that this may contain characters that need to be escaped outside of
+ CDATA sections and that, depending on the character encoding
+ ("charset") chosen for serialization, it may be impossible to write
+ out some characters as part of a CDATA section.
+ The <code>CDATASection</code> interface inherits the
+ <code>CharacterData</code> interface through the <code>Text</code>
+ interface. Adjacent <code>CDATASections</code> nodes are not
+ merged by use of the Element.normalize() method.
+ @short CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup.
+
+*/
+public class CDATASection extends Text {
+ protected CDATASection(Class dummy){super((Class) null);}
+ public CDATASection() {
+ super((Class) null);
+ newCDATASection();
+ }
+ private native void newCDATASection();
+ public CDATASection(CDATASection other) {
+ super((Class) null);
+ newCDATASection(other);
+ }
+ private native void newCDATASection(CDATASection other);
+ public CDATASection(Node other) {
+ super((Class) null);
+ newCDATASection(other);
+ }
+ private native void newCDATASection(Node other);
+ // DOM::CDATASection* CDATASection(DOM::CDATASectionImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/CSSCharsetRule.java b/kdejava/koala/org/kde/koala/CSSCharsetRule.java
new file mode 100644
index 00000000..d384b9eb
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSCharsetRule.java
@@ -0,0 +1,44 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CSSCharsetRule</code> interface a <a href=""> \@charset
+ rule </a> in a CSS style sheet. A <code>\@charset</code> rule can
+ be used to define the encoding of the style sheet.
+ @short The <code>CSSCharsetRule</code> interface a <a href=""> \@charset rule </a> in a CSS style sheet.
+
+*/
+public class CSSCharsetRule extends CSSRule {
+ protected CSSCharsetRule(Class dummy){super((Class) null);}
+ public CSSCharsetRule() {
+ super((Class) null);
+ newCSSCharsetRule();
+ }
+ private native void newCSSCharsetRule();
+ public CSSCharsetRule(CSSCharsetRule other) {
+ super((Class) null);
+ newCSSCharsetRule(other);
+ }
+ private native void newCSSCharsetRule(CSSCharsetRule other);
+ public CSSCharsetRule(CSSRule other) {
+ super((Class) null);
+ newCSSCharsetRule(other);
+ }
+ private native void newCSSCharsetRule(CSSRule other);
+ // DOM::CSSCharsetRule* CSSCharsetRule(DOM::CSSCharsetRuleImpl* arg1); >>>> NOT CONVERTED
+ /**
+ The encoding information used in this <code>\@charset</code>
+ rule.
+ @short The encoding information used in this <code>\@charset</code> rule.
+ */
+ public native String encoding();
+ /**
+ see encoding
+ @short see encoding
+ */
+ public native void setEncoding(String arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/CSSException.java b/kdejava/koala/org/kde/koala/CSSException.java
new file mode 100644
index 00000000..b8e000de
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSException.java
@@ -0,0 +1,27 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This exception is raised when a specific CSS operation is impossible
+ to perform.
+ @short This exception is raised when a specific CSS operation is impossible to perform.
+
+*/
+public class CSSException implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected CSSException(Class dummy){}
+
+ public CSSException(short _code) {
+ newCSSException(_code);
+ }
+ private native void newCSSException(short _code);
+ public CSSException(CSSException other) {
+ newCSSException(other);
+ }
+ private native void newCSSException(CSSException other);
+}
diff --git a/kdejava/koala/org/kde/koala/CSSFontFaceRule.java b/kdejava/koala/org/kde/koala/CSSFontFaceRule.java
new file mode 100644
index 00000000..3d9ccc89
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSFontFaceRule.java
@@ -0,0 +1,40 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CSSFontFaceRule</code> interface represents a <a
+ href="http://www.w3.org/TR/REC-CSS2/fonts.html#font-descriptions">
+ <code>\@font-face</code> rule </a> in a CSS style sheet. The <code>\@font-face</code>
+ rule is used to hold a set of font descriptions.
+ @short The <code>CSSFontFaceRule</code> interface represents a <a href="http://www.
+
+*/
+public class CSSFontFaceRule extends CSSRule {
+ protected CSSFontFaceRule(Class dummy){super((Class) null);}
+ public CSSFontFaceRule() {
+ super((Class) null);
+ newCSSFontFaceRule();
+ }
+ private native void newCSSFontFaceRule();
+ public CSSFontFaceRule(CSSFontFaceRule other) {
+ super((Class) null);
+ newCSSFontFaceRule(other);
+ }
+ private native void newCSSFontFaceRule(CSSFontFaceRule other);
+ public CSSFontFaceRule(CSSRule other) {
+ super((Class) null);
+ newCSSFontFaceRule(other);
+ }
+ private native void newCSSFontFaceRule(CSSRule other);
+ // DOM::CSSFontFaceRule* CSSFontFaceRule(DOM::CSSFontFaceRuleImpl* arg1); >>>> NOT CONVERTED
+ /**
+ The <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#q8">
+ declaration-block </a> of this rule.
+ @short The <a href="http://www.
+ */
+ public native CSSStyleDeclaration style();
+}
diff --git a/kdejava/koala/org/kde/koala/CSSImportRule.java b/kdejava/koala/org/kde/koala/CSSImportRule.java
new file mode 100644
index 00000000..ae10161c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSImportRule.java
@@ -0,0 +1,56 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import java.util.ArrayList;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CSSImportRule</code> interface represents a <a
+ href="http://www.w3.org/TR/REC-CSS2/cascade.html#at-import">
+ <code>\@import</code> rule </a> within a CSS style sheet. The <code>\@import</code>
+ rule is used to import style rules from other style sheets.
+ @short The <code>CSSImportRule</code> interface represents a <a href="http://www.
+
+*/
+public class CSSImportRule extends CSSRule {
+ protected CSSImportRule(Class dummy){super((Class) null);}
+ public CSSImportRule() {
+ super((Class) null);
+ newCSSImportRule();
+ }
+ private native void newCSSImportRule();
+ public CSSImportRule(CSSImportRule other) {
+ super((Class) null);
+ newCSSImportRule(other);
+ }
+ private native void newCSSImportRule(CSSImportRule other);
+ public CSSImportRule(CSSRule other) {
+ super((Class) null);
+ newCSSImportRule(other);
+ }
+ private native void newCSSImportRule(CSSRule other);
+ // DOM::CSSImportRule* CSSImportRule(DOM::CSSImportRuleImpl* arg1); >>>> NOT CONVERTED
+ /**
+ The location of the style sheet to be imported. The attribute
+ will not contain the <code>"url</code>(...)" specifier around
+ the URI.
+ @short The location of the style sheet to be imported.
+ */
+ public native String href();
+ /**
+ A list of media types for which this style sheet may be used.
+ @short A list of media types for which this style sheet may be used.
+ */
+ public native ArrayList media();
+ /**
+ The style sheet referred to by this rule, if it has been
+ loaded. The value of this attribute is null if the style sheet
+ has not yet been loaded or if it will not be loaded (e.g. if
+ the style sheet is for a media type not supported by the user
+ agent).
+ @short The style sheet referred to by this rule, if it has been loaded.
+ */
+ public native CSSStyleSheet styleSheet();
+}
diff --git a/kdejava/koala/org/kde/koala/CSSMediaRule.java b/kdejava/koala/org/kde/koala/CSSMediaRule.java
new file mode 100644
index 00000000..9c688f63
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSMediaRule.java
@@ -0,0 +1,87 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import java.util.ArrayList;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CSSMediaRule</code> interface represents a <a
+ href="http://www.w3.org/TR/REC-CSS2/media.html#at-media-rule">
+ \@media rule </a> in a CSS style sheet. A <code>\@media</code> rule
+ can be used to delimit style rules for specific media types.
+ @short The <code>CSSMediaRule</code> interface represents a <a href="http://www.
+
+*/
+public class CSSMediaRule extends CSSRule {
+ protected CSSMediaRule(Class dummy){super((Class) null);}
+ public CSSMediaRule() {
+ super((Class) null);
+ newCSSMediaRule();
+ }
+ private native void newCSSMediaRule();
+ public CSSMediaRule(CSSMediaRule other) {
+ super((Class) null);
+ newCSSMediaRule(other);
+ }
+ private native void newCSSMediaRule(CSSMediaRule other);
+ public CSSMediaRule(CSSRule other) {
+ super((Class) null);
+ newCSSMediaRule(other);
+ }
+ private native void newCSSMediaRule(CSSRule other);
+ // DOM::CSSMediaRule* CSSMediaRule(DOM::CSSMediaRuleImpl* arg1); >>>> NOT CONVERTED
+ /**
+ A list of <a
+ href="http://www.w3.org/TR/REC-CSS2/media.html#media-types">
+ media types </a> for this rule.
+ @short A list of <a href="http://www.
+ */
+ public native ArrayList media();
+ /**
+ A list of all CSS rules contained within the media block.
+ @short A list of all CSS rules contained within the media block.
+ */
+ public native CSSRuleList cssRules();
+ /**
+ Used to insert a new rule into the media block.
+ @param rule The parsable text representing the rule. For rule
+ sets this contains both the selector and the style declaration.
+ For at-rules, this specifies both the at-identifier and the
+ rule content.
+ @param index The index within the media block's rule collection
+ of the rule before which to insert the specified rule. If the
+ specified index is equal to the length of the media blocks's
+ rule collection, the rule will be added to the end of the media
+ block.
+ \exception DOMException
+ HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at
+ the specified index. e.g. if an <code>\@import</code> rule is
+ inserted after a standard rule set or other at-rule.
+ INDEX_SIZE_ERR: Raised if the specified index is not a valid
+ insertion point.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is
+ readonly.
+ \exception CSSException
+ SYNTAX_ERR: Raised if the specified rule has a syntax error
+ and is unparsable.
+ @return The index within the media block's rule collection of
+ the newly inserted rule.
+
+ @short Used to insert a new rule into the media block.
+ */
+ public native long insertRule(String rule, long index);
+ /**
+ Used to delete a rule from the media block.
+ @param index The index within the media block's rule collection
+ of the rule to remove.
+ \exception DOMException
+ INDEX_SIZE_ERR: Raised if the specified index does not
+ correspond to a rule in the media rule list.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is
+ readonly.
+ @short Used to delete a rule from the media block.
+ */
+ public native void deleteRule(long index);
+}
diff --git a/kdejava/koala/org/kde/koala/CSSPageRule.java b/kdejava/koala/org/kde/koala/CSSPageRule.java
new file mode 100644
index 00000000..03ca2fda
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSPageRule.java
@@ -0,0 +1,52 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CSSPageRule</code> interface represents a <a
+ href="http://www.w3.org/TR/REC-CSS2/page.html#page-box"> page rule
+ </a> within a CSS style sheet. The <code>@page</code> rule is
+ used to specify the dimensions, orientation, margins, etc. of a
+ page box for paged media.
+ @short The <code>CSSPageRule</code> interface represents a <a href="http://www.
+
+*/
+public class CSSPageRule extends CSSRule {
+ protected CSSPageRule(Class dummy){super((Class) null);}
+ public CSSPageRule() {
+ super((Class) null);
+ newCSSPageRule();
+ }
+ private native void newCSSPageRule();
+ public CSSPageRule(CSSPageRule other) {
+ super((Class) null);
+ newCSSPageRule(other);
+ }
+ private native void newCSSPageRule(CSSPageRule other);
+ public CSSPageRule(CSSRule other) {
+ super((Class) null);
+ newCSSPageRule(other);
+ }
+ private native void newCSSPageRule(CSSRule other);
+ // DOM::CSSPageRule* CSSPageRule(DOM::CSSPageRuleImpl* arg1); >>>> NOT CONVERTED
+ /**
+ The parsable textual representation of the page selector for
+ the rule.
+ @short The parsable textual representation of the page selector for the rule.
+ */
+ public native String selectorText();
+ /**
+ see selectorText
+ @short see selectorText
+ */
+ public native void setSelectorText(String arg1);
+ /**
+ The <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#q8">
+ declaration-block </a> of this rule.
+ @short The <a href="http://www.
+ */
+ public native CSSStyleDeclaration style();
+}
diff --git a/kdejava/koala/org/kde/koala/CSSPrimitiveValue.java b/kdejava/koala/org/kde/koala/CSSPrimitiveValue.java
new file mode 100644
index 00000000..650bc139
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSPrimitiveValue.java
@@ -0,0 +1,145 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CSSPrimitiveValue</code> interface represents a single
+ <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#values"> CSS
+ value </a> . This interface may be used to determine the value of a
+ specific style property currently set in a block or to set a
+ specific style properties explicitly within the block. An instance
+ of this interface can be obtained from the
+ <code>getPropertyCSSValue</code> method of the
+ <code>CSSStyleDeclaration</code> interface.
+ @short The <code>CSSPrimitiveValue</code> interface represents a single <a href="http://www.
+
+*/
+public class CSSPrimitiveValue extends CSSValue {
+ protected CSSPrimitiveValue(Class dummy){super((Class) null);}
+ public CSSPrimitiveValue() {
+ super((Class) null);
+ newCSSPrimitiveValue();
+ }
+ private native void newCSSPrimitiveValue();
+ public CSSPrimitiveValue(CSSPrimitiveValue other) {
+ super((Class) null);
+ newCSSPrimitiveValue(other);
+ }
+ private native void newCSSPrimitiveValue(CSSPrimitiveValue other);
+ public CSSPrimitiveValue(CSSValue other) {
+ super((Class) null);
+ newCSSPrimitiveValue(other);
+ }
+ private native void newCSSPrimitiveValue(CSSValue other);
+ // DOM::CSSPrimitiveValue* CSSPrimitiveValue(DOM::CSSPrimitiveValueImpl* arg1); >>>> NOT CONVERTED
+ /**
+ The type of the value as defined by the constants specified
+ above.
+ @short The type of the value as defined by the constants specified above.
+ */
+ public native short primitiveType();
+ /**
+ A method to set the float value with a specified unit. If the
+ property attached with this value can not accept the specified
+ unit or the float value, the value will be unchanged and a
+ <code>DOMException</code> will be raised.
+ @param unitType A unit code as defined above. The unit code can
+ only be a float unit type (e.g. <code>NUMBER</code> ,
+ <code>PERCENTAGE</code> , <code>CSS_EMS</code> , <code>CSS_EXS</code>
+ , <code>CSS_PX</code> , <code>CSS_PX</code> ,
+ <code>CSS_CM</code> , <code>CSS_MM</code> , <code>CSS_IN</code>
+ , <code>CSS_PT</code> , <code>CSS_PC</code> ,
+ <code>CSS_DEG</code> , <code>CSS_RAD</code> ,
+ <code>CSS_GRAD</code> , <code>CSS_MS</code> , <code>CSS_S</code>
+ , <code>CSS_HZ</code> , <code>CSS_KHZ</code> ,
+ <code>CSS_DIMENSION</code> ).
+ @param floatValue The new float value.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this property is
+ readonly.
+ @short A method to set the float value with a specified unit.
+ */
+ public native void setFloatValue(short unitType, float floatValue);
+ /**
+ This method is used to get a float value in a specified unit.
+ If this CSS value doesn't contain a float value or can't be
+ converted into the specified unit, a <code>DOMException</code>
+ is raised.
+ @param unitType A unit code to get the float value. The unit
+ code can only be a float unit type (e.g. <code>CSS_NUMBER</code>
+ , <code>CSS_PERCENTAGE</code> , <code>CSS_EMS</code>
+ , <code>CSS_EXS</code> , <code>CSS_PX</code> ,
+ <code>CSS_PX</code> , <code>CSS_CM</code> , <code>CSS_MM</code>
+ , <code>CSS_IN</code> , <code>CSS_PT</code> ,
+ <code>CSS_PC</code> , <code>CSS_DEG</code> , <code>CSS_RAD</code>
+ , <code>CSS_GRAD</code> , <code>CSS_MS</code> ,
+ <code>CSS_S</code> , <code>CSS_HZ</code> , <code>CSS_KHZ</code>
+ , <code>CSS_DIMENSION</code> ).
+ @return The float value in the specified unit.
+
+ @short This method is used to get a float value in a specified unit.
+ */
+ public native float getFloatValue(short unitType);
+ /**
+ A method to set the string value with a specified unit. If the
+ property attached to this value can't accept the specified unit
+ or the string value, the value will be unchanged and a
+ <code>DOMException</code> will be raised.
+ @param stringType A string code as defined above. The string
+ code can only be a string unit type (e.g. <code>CSS_URI</code>
+ , <code>CSS_IDENT</code> , <code>CSS_INHERIT</code>
+ and <code>CSS_ATTR</code> ).
+ @param stringValue The new string value. If the
+ <code>stringType</code> is equal to <code>CSS_INHERIT</code> , the
+ <code>stringValue</code> should be <code>inherit</code> .
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this property is
+ readonly.
+ @short A method to set the string value with a specified unit.
+ */
+ public native void setStringValue(short stringType, String stringValue);
+ /**
+ This method is used to get the string value in a specified
+ unit. If the CSS value doesn't contain a string value, a
+ <code>DOMException</code> is raised.
+ @return The string value in the current unit. The current
+ <code>valueType</code> can only be a string unit type (e.g.
+ <code>CSS_URI</code> , <code>CSS_IDENT</code> and
+ <code>CSS_ATTR</code> ).
+
+ @short This method is used to get the string value in a specified unit.
+ */
+ public native String getStringValue();
+ /**
+ This method is used to get the Counter value. If this CSS value
+ doesn't contain a counter value, a <code>DOMException</code>
+ is raised. Modification to the corresponding style property can
+ be achieved using the <code>Counter</code> interface.
+ @return The Counter value.
+
+ @short This method is used to get the Counter value.
+ */
+ public native Counter getCounterValue();
+ /**
+ This method is used to get the Rect value. If this CSS value
+ doesn't contain a rect value, a <code>DOMException</code> is
+ raised. Modification to the corresponding style property can be
+ achieved using the <code>Rect</code> interface.
+ @return The Rect value.
+
+ @short This method is used to get the Rect value.
+ */
+ public native Rect getRectValue();
+ /**
+ This method is used to get the RGB color. If this CSS value
+ doesn't contain a RGB color value, a <code>DOMException</code>
+ is raised. Modification to the corresponding style
+ property can be achieved using the <code>RGBColor</code>
+ interface.
+ @return the RGB color value.
+
+ @short This method is used to get the RGB color.
+ */
+ public native RGBColor getRGBColorValue();
+}
diff --git a/kdejava/koala/org/kde/koala/CSSRule.java b/kdejava/koala/org/kde/koala/CSSRule.java
new file mode 100644
index 00000000..a49a6900
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSRule.java
@@ -0,0 +1,82 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CSSRule</code> interface is the abstract base interface
+ for any type of CSS <a
+ href="http://www.w3.org/TR/REC-CSS2/syndata.html#q5"> statement
+ </a> . This includes both <a
+ href="http://www.w3.org/TR/REC-CSS2/syndata.html#q8"> rule sets
+ </a> and <a
+ href="http://www.w3.org/TR/REC-CSS2/syndata.html#at-rules">
+ at-rules </a> . An implementation is expected to preserve all rules
+ specified in a CSS style sheet, even if it is not recognized.
+ Unrecognized rules are represented using the <code>CSSUnknownRule</code>
+ interface.
+ @short The <code>CSSRule</code> interface is the abstract base interface for any type of CSS <a href="http://www.
+
+*/
+public class CSSRule implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected CSSRule(Class dummy){}
+
+ public CSSRule() {
+ newCSSRule();
+ }
+ private native void newCSSRule();
+ public CSSRule(CSSRule other) {
+ newCSSRule(other);
+ }
+ private native void newCSSRule(CSSRule other);
+ // DOM::CSSRule* CSSRule(DOM::CSSRuleImpl* arg1); >>>> NOT CONVERTED
+ /**
+ The type of the rule, as defined above. The expectation is that
+ binding-specific casting methods can be used to cast down from
+ an instance of the <code>CSSRule</code> interface to the
+ specific derived interface implied by the <code>type</code> .
+ @short The type of the rule, as defined above.
+ */
+ public native short type();
+ /**
+ The parsable textual representation of the rule. This reflects
+ the current state of the rule and not its initial value.
+ @short The parsable textual representation of the rule.
+ */
+ public native String cssText();
+ /**
+ see cssText
+ HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted
+ at this point in the style sheet.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is
+ readonly.
+ INVALID_MODIFICATION_ERR: Raised if the specified CSS string value
+ represents a different type of rule than the current one.
+ @short see cssText
+ */
+ public native void setCssText(String arg1);
+ /**
+ The style sheet that contains this rule.
+ @short The style sheet that contains this rule.
+ */
+ public native CSSStyleSheet parentStyleSheet();
+ /**
+ If this rule is contained inside another rule (e.g. a style
+ rule inside an \@media block), this is the containing rule. If
+ this rule is not nested inside any other rules, this returns
+ <code>null</code> .
+ @short If this rule is contained inside another rule (e.
+ */
+ public native CSSRule parentRule();
+ /**
+ not part of the DOM
+ @short
+ */
+ // DOM::CSSRuleImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+ // void assignOther(const DOM::CSSRule& arg1,DOM::CSSRule::RuleType arg2); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/CSSRuleList.java b/kdejava/koala/org/kde/koala/CSSRuleList.java
new file mode 100644
index 00000000..1887cc58
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSRuleList.java
@@ -0,0 +1,54 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CSSRuleList</code> interface provides the abstraction
+ of an ordered collection of CSS rules.
+ @short The <code>CSSRuleList</code> interface provides the abstraction of an ordered collection of CSS rules.
+
+*/
+public class CSSRuleList implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected CSSRuleList(Class dummy){}
+
+ public CSSRuleList() {
+ newCSSRuleList();
+ }
+ private native void newCSSRuleList();
+ public CSSRuleList(CSSRuleList other) {
+ newCSSRuleList(other);
+ }
+ private native void newCSSRuleList(CSSRuleList other);
+ // DOM::CSSRuleList* CSSRuleList(DOM::CSSRuleListImpl* arg1); >>>> NOT CONVERTED
+ // DOM::CSSRuleList* CSSRuleList(DOM::StyleListImpl* arg1); >>>> NOT CONVERTED
+ /**
+ The number of <code>CSSRule</code> s in the list. The range
+ of valid child rule indices is <code>0</code> to
+ <code>length-1</code> inclusive.
+ @short The number of <code>CSSRule</code> s in the list.
+ */
+ public native long length();
+ /**
+ Used to retrieve a CSS rule by ordinal index. The order in this
+ collection represents the order of the rules in the CSS style
+ sheet.
+ @param index Index into the collection
+ @return The style rule at the <code>index</code> position in
+ the <code>CSSRuleList</code> , or <code>null</code> if that
+ is not a valid index.
+
+ @short Used to retrieve a CSS rule by ordinal index.
+ */
+ public native CSSRule item(long index);
+ /**
+ not part of the DOM
+ @short
+ */
+ // DOM::CSSRuleListImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+}
diff --git a/kdejava/koala/org/kde/koala/CSSStyleDeclaration.java b/kdejava/koala/org/kde/koala/CSSStyleDeclaration.java
new file mode 100644
index 00000000..971c4b67
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSStyleDeclaration.java
@@ -0,0 +1,155 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CSSStyleDeclaration</code> interface represents a
+ single <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#block">
+ CSS declaration block </a> . This interface may be used to
+ determine the style properties currently set in a block or to set
+ style properties explicitly within the block.
+ While an implementation may not recognize all CSS properties
+ within a CSS declaration block, it is expected to provide access to
+ all specified properties through the <code>CSSStyleDeclaration</code>
+ interface. Furthermore, implementations that support a
+ specific level of CSS should correctly handle <a
+ href="http://www.w3.org/TR/REC-CSS2/about.html#shorthand"> CSS
+ shorthand </a> properties for that level. For a further discussion
+ of shorthand properties, see the <code>CSS2Properties</code>
+ interface.
+ @short The <code>CSSStyleDeclaration</code> interface represents a single <a href="http://www.
+
+*/
+public class CSSStyleDeclaration implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected CSSStyleDeclaration(Class dummy){}
+
+ public CSSStyleDeclaration() {
+ newCSSStyleDeclaration();
+ }
+ private native void newCSSStyleDeclaration();
+ public CSSStyleDeclaration(CSSStyleDeclaration other) {
+ newCSSStyleDeclaration(other);
+ }
+ private native void newCSSStyleDeclaration(CSSStyleDeclaration other);
+ // DOM::CSSStyleDeclaration* CSSStyleDeclaration(DOM::CSSStyleDeclarationImpl* arg1); >>>> NOT CONVERTED
+ /**
+ The parsable textual representation of the declaration block
+ (including the surrounding curly braces). Setting this
+ attribute will result in the parsing of the new value and
+ resetting of the properties in the declaration block.
+ @short The parsable textual representation of the declaration block (including the surrounding curly braces).
+ */
+ public native String cssText();
+ /**
+ see cssText
+ @short see cssText
+ */
+ public native void setCssText(String arg1);
+ /**
+ The number of properties that have been explicitly set in this
+ declaration block.
+ @short The number of properties that have been explicitly set in this declaration block.
+ */
+ public native long length();
+ /**
+ The CSS rule that contains this declaration block.
+ @short The CSS rule that contains this declaration block.
+ */
+ public native CSSRule parentRule();
+ /**
+ Used to retrieve the value of a CSS property if it has been
+ explicitly set within this declaration block.
+ @param propertyName The name of the CSS property. See the <a
+ href="http://www.w3.org/TR/REC-CSS2/propidx.html"> CSS property
+ index </a> .
+ @return Returns the value of the property if it has been
+ explicitly set for this declaration block. Returns the empty
+ string if the property has not been set.
+
+ @short Used to retrieve the value of a CSS property if it has been explicitly set within this declaration block.
+ */
+ public native String getPropertyValue(String propertyName);
+ /**
+ Used to retrieve the object representation of the value of a
+ CSS property if it has been explicitly set within this
+ declaration block. This method returns null if the property is
+ a <a href="http://www.w3.org/TR/REC-CSS2/about.html#shorthand">
+ shorthand </a> property. Shorthand property values can only be
+ accessed and modified as strings, using the
+ <code>getPropertyValue</code> and <code>setProperty</code>
+ methods.
+ @param propertyName The name of the CSS property. See the <a
+ href="http://www.w3.org/TR/REC-CSS2/propidx.html"> CSS property
+ index </a> .
+ @return Returns the value of the property if it has been
+ explicitly set for this declaration block. Returns the
+ <code>null</code> if the property has not been set.
+
+ @short Used to retrieve the object representation of the value of a CSS property if it has been explicitly set within this declaration block.
+ */
+ public native CSSValue getPropertyCSSValue(String propertyName);
+ /**
+ Used to remove a CSS property if it has been explicitly set
+ within this declaration block.
+ @param propertyName The name of the CSS property. See the <a
+ href="http://www.w3.org/TR/REC-CSS2/propidx.html"> CSS property
+ index </a> .
+ @return Returns the value of the property if it has been
+ explicitly set for this declaration block. Returns the empty
+ string if the property has not been set or the property name
+ does not correspond to a valid CSS2 property.
+
+ @short Used to remove a CSS property if it has been explicitly set within this declaration block.
+ */
+ public native String removeProperty(String propertyName);
+ /**
+ Used to retrieve the priority of a CSS property (e.g. the
+ <code>"important"</code> qualifier) if the property has been
+ explicitly set in this declaration block.
+ @param propertyName The name of the CSS property. See the <a
+ href="http://www.w3.org/TR/REC-CSS2/propidx.html"> CSS property
+ index </a> .
+ @return A string representing the priority (e.g.
+ <code>"important"</code> ) if one exists. The empty string if none
+ exists.
+
+ @short Used to retrieve the priority of a CSS property (e.
+ */
+ public native String getPropertyPriority(String propertyName);
+ /**
+ Used to set a property value and priority within this
+ declaration block.
+ @param propertyName The name of the CSS property. See the <a
+ href="http://www.w3.org/TR/REC-CSS2/propidx.html"> CSS property
+ index </a> .
+ @param value The new value of the property.
+ @param priority The new priority of the property (e.g.
+ <code>"important"</code> ).
+ @short Used to set a property value and priority within this declaration block.
+ */
+ public native void setProperty(String propertyName, String value, String priority);
+ /**
+ Used to retrieve the properties that have been explicitly set
+ in this declaration block. The order of the properties
+ retrieved using this method does not have to be the order in
+ which they were set. This method can be used to iterate over
+ all properties in this declaration block.
+ @param index Index of the property name to retrieve.
+ @return The name of the property at this ordinal position. The
+ empty string if no property exists at this position.
+
+ @short Used to retrieve the properties that have been explicitly set in this declaration block.
+ */
+ public native String item(long index);
+ /**
+ not part of the DOM
+ @short
+ */
+ // DOM::CSSStyleDeclarationImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+}
diff --git a/kdejava/koala/org/kde/koala/CSSStyleRule.java b/kdejava/koala/org/kde/koala/CSSStyleRule.java
new file mode 100644
index 00000000..bb22489c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSStyleRule.java
@@ -0,0 +1,52 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CSSStyleRule</code> interface represents a single <a
+ href="http://www.w3.org/TR/REC-CSS2/syndata.html#q8"> rule set </a>
+ in a CSS style sheet.
+ @short The <code>CSSStyleRule</code> interface represents a single <a href="http://www.
+
+*/
+public class CSSStyleRule extends CSSRule {
+ protected CSSStyleRule(Class dummy){super((Class) null);}
+ public CSSStyleRule() {
+ super((Class) null);
+ newCSSStyleRule();
+ }
+ private native void newCSSStyleRule();
+ public CSSStyleRule(CSSStyleRule other) {
+ super((Class) null);
+ newCSSStyleRule(other);
+ }
+ private native void newCSSStyleRule(CSSStyleRule other);
+ public CSSStyleRule(CSSRule other) {
+ super((Class) null);
+ newCSSStyleRule(other);
+ }
+ private native void newCSSStyleRule(CSSRule other);
+ // DOM::CSSStyleRule* CSSStyleRule(DOM::CSSStyleRuleImpl* arg1); >>>> NOT CONVERTED
+ /**
+ The textual representation of the <a
+ href="http://www.w3.org/TR/REC-CSS2/selector.html"> selector
+ </a> for the rule set. The implementation may have stripped out
+ insignificant whitespace while parsing the selector.
+ @short The textual representation of the <a href="http://www.
+ */
+ public native String selectorText();
+ /**
+ see selectorText
+ @short see selectorText
+ */
+ public native void setSelectorText(String arg1);
+ /**
+ The <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#q8">
+ declaration-block </a> of this rule set.
+ @short The <a href="http://www.
+ */
+ public native CSSStyleDeclaration style();
+}
diff --git a/kdejava/koala/org/kde/koala/CSSStyleSheet.java b/kdejava/koala/org/kde/koala/CSSStyleSheet.java
new file mode 100644
index 00000000..89c0ba5e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSStyleSheet.java
@@ -0,0 +1,86 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CSSStyleSheet</code> interface is a concrete interface
+ used to represent a CSS style sheet i.e. a style sheet whose
+ content type is "text/css".
+ @short The <code>CSSStyleSheet</code> interface is a concrete interface used to represent a CSS style sheet i.
+
+*/
+public class CSSStyleSheet extends StyleSheet {
+ protected CSSStyleSheet(Class dummy){super((Class) null);}
+ public CSSStyleSheet() {
+ super((Class) null);
+ newCSSStyleSheet();
+ }
+ private native void newCSSStyleSheet();
+ public CSSStyleSheet(CSSStyleSheet other) {
+ super((Class) null);
+ newCSSStyleSheet(other);
+ }
+ private native void newCSSStyleSheet(CSSStyleSheet other);
+ public CSSStyleSheet(StyleSheet other) {
+ super((Class) null);
+ newCSSStyleSheet(other);
+ }
+ private native void newCSSStyleSheet(StyleSheet other);
+ // DOM::CSSStyleSheet* CSSStyleSheet(DOM::CSSStyleSheetImpl* arg1); >>>> NOT CONVERTED
+ /**
+ If this style sheet comes from an <code>\@import</code> rule,
+ the <code>ownerRule</code> attribute will contain the
+ <code>CSSImportRule</code> . In that case, the <code>ownerNode</code>
+ attribute in the <code>StyleSheet</code> interface
+ will be <code>null</code> . If the style sheet comes from an
+ element or a processing instruction, the <code>ownerRule</code>
+ attribute will be <code>null</code> and the
+ <code>ownerNode</code> attribute will contain the <code>Node</code> .
+ @short If this style sheet comes from an <code>\@import</code> rule, the <code>ownerRule</code> attribute will contain the <code>CSSImportRule</code> .
+ */
+ public native CSSRule ownerRule();
+ /**
+ The list of all CSS rules contained within the style sheet.
+ This includes both <a
+ href="http://www.w3.org/TR/REC-CSS2/syndata.html#q8"> rule sets
+ </a> and <a
+ href="http://www.w3.org/TR/REC-CSS2/syndata.html#at-rules">
+ at-rules </a> .
+ @short The list of all CSS rules contained within the style sheet.
+ */
+ public native CSSRuleList cssRules();
+ /**
+ Used to insert a new rule into the style sheet. The new rule
+ now becomes part of the cascade.
+ @param rule The parsable text representing the rule. For rule
+ sets this contains both the selector and the style declaration.
+ For at-rules, this specifies both the at-identifier and the
+ rule content.
+ @param index The index within the style sheet's rule list of
+ the rule before which to insert the specified rule. If the
+ specified index is equal to the length of the style sheet's
+ rule collection, the rule will be added to the end of the style
+ sheet.
+ INDEX_SIZE_ERR: Raised if the specified index is not a valid
+ insertion point.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is
+ readonly.
+ @return The index within the style sheet's rule collection of
+ the newly inserted rule.
+
+ @short Used to insert a new rule into the style sheet.
+ */
+ public native long insertRule(String rule, long index);
+ /**
+ Used to delete a rule from the style sheet.
+ @param index The index within the style sheet's rule list of
+ the rule to remove.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is
+ readonly.
+ @short Used to delete a rule from the style sheet.
+ */
+ public native void deleteRule(long index);
+}
diff --git a/kdejava/koala/org/kde/koala/CSSUnknownRule.java b/kdejava/koala/org/kde/koala/CSSUnknownRule.java
new file mode 100644
index 00000000..22380fbc
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSUnknownRule.java
@@ -0,0 +1,32 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CSSUnkownRule</code> interface represents an at-rule
+ not supported by this user agent.
+ @short The <code>CSSUnkownRule</code> interface represents an at-rule not supported by this user agent.
+
+*/
+public class CSSUnknownRule extends CSSRule {
+ protected CSSUnknownRule(Class dummy){super((Class) null);}
+ public CSSUnknownRule() {
+ super((Class) null);
+ newCSSUnknownRule();
+ }
+ private native void newCSSUnknownRule();
+ public CSSUnknownRule(CSSUnknownRule other) {
+ super((Class) null);
+ newCSSUnknownRule(other);
+ }
+ private native void newCSSUnknownRule(CSSUnknownRule other);
+ public CSSUnknownRule(CSSRule other) {
+ super((Class) null);
+ newCSSUnknownRule(other);
+ }
+ private native void newCSSUnknownRule(CSSRule other);
+ // DOM::CSSUnknownRule* CSSUnknownRule(DOM::CSSUnknownRuleImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/CSSValue.java b/kdejava/koala/org/kde/koala/CSSValue.java
new file mode 100644
index 00000000..b933a7ab
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSValue.java
@@ -0,0 +1,51 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CSSValue</code> interface represents a simple or a
+ complexe value.
+ @short The <code>CSSValue</code> interface represents a simple or a complexe value.
+
+*/
+public class CSSValue implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected CSSValue(Class dummy){}
+
+ public CSSValue() {
+ newCSSValue();
+ }
+ private native void newCSSValue();
+ public CSSValue(CSSValue other) {
+ newCSSValue(other);
+ }
+ private native void newCSSValue(CSSValue other);
+ // DOM::CSSValue* CSSValue(DOM::CSSValueImpl* arg1); >>>> NOT CONVERTED
+ /**
+ A string representation of the current value.
+ @short A string representation of the current value.
+ */
+ public native String cssText();
+ /**
+ see cssText
+ @short see cssText
+ */
+ public native void setCssText(String arg1);
+ /**
+ A code defining the type of the value as defined above.
+ @short A code defining the type of the value as defined above.
+ */
+ public native short cssValueType();
+ /**
+ not part of the DOM
+ @short
+ */
+ public native boolean isCSSValueList();
+ public native boolean isCSSPrimitiveValue();
+ // DOM::CSSValueImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+}
diff --git a/kdejava/koala/org/kde/koala/CSSValueList.java b/kdejava/koala/org/kde/koala/CSSValueList.java
new file mode 100644
index 00000000..4a4fee00
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CSSValueList.java
@@ -0,0 +1,51 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CSSValueList</code> interface provides the absraction
+ of an ordered collection of CSS values.
+ @short The <code>CSSValueList</code> interface provides the absraction of an ordered collection of CSS values.
+
+*/
+public class CSSValueList extends CSSValue {
+ protected CSSValueList(Class dummy){super((Class) null);}
+ public CSSValueList() {
+ super((Class) null);
+ newCSSValueList();
+ }
+ private native void newCSSValueList();
+ public CSSValueList(CSSValueList other) {
+ super((Class) null);
+ newCSSValueList(other);
+ }
+ private native void newCSSValueList(CSSValueList other);
+ public CSSValueList(CSSValue other) {
+ super((Class) null);
+ newCSSValueList(other);
+ }
+ private native void newCSSValueList(CSSValue other);
+ // DOM::CSSValueList* CSSValueList(DOM::CSSValueListImpl* arg1); >>>> NOT CONVERTED
+ /**
+ The number of <code>CSSValue</code> s in the list. The range
+ of valid values indices is <code>0</code> to <code>length-1</code>
+ inclusive.
+ @short The number of <code>CSSValue</code> s in the list.
+ */
+ public native long length();
+ /**
+ Used to retrieve a CSS rule by ordinal index. The order in this
+ collection represents the order of the values in the CSS style
+ property.
+ @param index Index into the collection.
+ @return The style rule at the <code>index</code> position in
+ the <code>CSSValueList</code> , or <code>null</code> if
+ that is not valid index.
+
+ @short Used to retrieve a CSS rule by ordinal index.
+ */
+ public native CSSValue item(long index);
+}
diff --git a/kdejava/koala/org/kde/koala/CharacterData.java b/kdejava/koala/org/kde/koala/CharacterData.java
new file mode 100644
index 00000000..36a50458
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CharacterData.java
@@ -0,0 +1,122 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>CharacterData</code> interface extends Node with a set
+ of attributes and methods for accessing character data in the DOM.
+ For clarity this set is defined here rather than on each object
+ that uses these attributes and methods. No DOM objects correspond
+ directly to <code>CharacterData</code> , though <code>Text</code>
+ and others do inherit the interface from it. All
+ <code>offset</code>s in this interface start from 0.
+ @short The <code>CharacterData</code> interface extends Node with a set of attributes and methods for accessing character data in the DOM.
+
+*/
+public class CharacterData extends Node {
+ protected CharacterData(Class dummy){super((Class) null);}
+ public CharacterData() {
+ super((Class) null);
+ newCharacterData();
+ }
+ private native void newCharacterData();
+ public CharacterData(CharacterData other) {
+ super((Class) null);
+ newCharacterData(other);
+ }
+ private native void newCharacterData(CharacterData other);
+ public CharacterData(Node other) {
+ super((Class) null);
+ newCharacterData(other);
+ }
+ private native void newCharacterData(Node other);
+ /**
+ The character data of the node that implements this interface.
+ The DOM implementation may not put arbitrary limits on the
+ amount of data that may be stored in a <code>CharacterData</code>
+ node. However, implementation limits may mean that the
+ entirety of a node's data may not fit into a single
+ <code>DOMString</code> . In such cases, the user may call
+ <code>substringData</code> to retrieve the data in appropriately
+ sized pieces.
+ @short The character data of the node that implements this interface.
+ */
+ public native String data();
+ /**
+ see data
+ @short see data
+ */
+ public native void setData(String arg1);
+ /**
+ The number of characters that are available through <code>data</code>
+ and the <code>substringData</code> method below. This
+ may have the value zero, i.e., <code>CharacterData</code>
+ nodes may be empty.
+ @short The number of characters that are available through <code>data</code> and the <code>substringData</code> method below.
+ */
+ public native long length();
+ /**
+ Extracts a range of data from the node.
+ @param offset Start offset of substring to extract.
+ @param count The number of characters to extract.
+ DOMSTRING_SIZE_ERR: Raised if the specified range of text does
+ not fit into a <code>DOMString</code> .
+ @return The specified substring. If the sum of <code>offset</code>
+ and <code>count</code> exceeds the <code>length</code>
+ , then all characters to the end of the data are
+ returned.
+
+ @short Extracts a range of data from the node.
+ */
+ public native String substringData(long offset, long count);
+ /**
+ Append the string to the end of the character data of the node.
+ Upon success, <code>data</code> provides access to the
+ concatenation of <code>data</code> and the <code>DOMString</code>
+ specified.
+ @param arg The <code>DOMString</code> to append.
+ @short Append the string to the end of the character data of the node.
+ */
+ public native void appendData(String arg);
+ /**
+ Insert a string at the specified character offset.
+ @param offset The character offset at which to insert.
+ @param arg The <code>DOMString</code> to insert.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
+ @short Insert a string at the specified character offset.
+ */
+ public native void insertData(long offset, String arg);
+ /**
+ Remove a range of characters from the node. Upon success,
+ <code>data</code> and <code>length</code> reflect the
+ change.
+ @param offset The offset from which to remove characters.
+ @param count The number of characters to delete. If the sum of
+ <code>offset</code> and <code>count</code> exceeds
+ <code>length</code> then all characters from <code>offset</code>
+ to the end of the data are deleted.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
+ @short Remove a range of characters from the node.
+ */
+ public native void deleteData(long offset, long count);
+ /**
+ Replace the characters starting at the specified character
+ offset with the specified string.
+ @param offset The offset from which to start replacing.
+ @param count The number of characters to replace. If the sum of
+ <code>offset</code> and <code>count</code> exceeds
+ <code>length</code> , then all characters to the end of the data are
+ replaced (i.e., the effect is the same as a <code>remove</code>
+ method call with the same range, followed by an
+ <code>append</code> method invocation).
+ @param arg The <code>DOMString</code> with which the range
+ must be replaced.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
+ @short Replace the characters starting at the specified character offset with the specified string.
+ */
+ public native void replaceData(long offset, long count, String arg);
+ // DOM::CharacterData* CharacterData(DOM::CharacterDataImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/Comment.java b/kdejava/koala/org/kde/koala/Comment.java
new file mode 100644
index 00000000..6c370415
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Comment.java
@@ -0,0 +1,35 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This represents the content of a comment, i.e., all the characters
+ between the starting ' <code>&lt;</code>!-- ' and ending '
+ <code>--&gt;</code> '. Note that this is the definition of a comment in
+ XML, and, in practice, HTML, although some HTML tools may implement
+ the full SGML comment structure.
+ @short This represents the content of a comment, i.
+
+*/
+public class Comment extends CharacterData {
+ protected Comment(Class dummy){super((Class) null);}
+ public Comment() {
+ super((Class) null);
+ newComment();
+ }
+ private native void newComment();
+ public Comment(Comment other) {
+ super((Class) null);
+ newComment(other);
+ }
+ private native void newComment(Comment other);
+ public Comment(Node other) {
+ super((Class) null);
+ newComment(other);
+ }
+ private native void newComment(Node other);
+ // DOM::Comment* Comment(DOM::CommentImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/Connection.java b/kdejava/koala/org/kde/koala/Connection.java
new file mode 100644
index 00000000..82585243
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Connection.java
@@ -0,0 +1,120 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QObject;
+
+/**
+
+ This class provides a simple means for IPC between two applications
+ via a pipe.
+ It handles a queue of commands to be sent which makes it possible to
+ queue data before an actual connection has been established.
+ @short This class provides a simple means for IPC between two applications via a pipe.
+
+*/
+public class Connection extends QObject {
+ protected Connection(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a new connection.
+ @short Creates a new connection.
+ @see #init
+ */
+ public Connection() {
+ super((Class) null);
+ newConnection();
+ }
+ private native void newConnection();
+ /**
+ Initialize this connection to use the given socket.
+ @param sock the socket to use
+ @short Initialize this connection to use the given socket.
+ @see #inited
+ */
+ // void init(KSocket* arg1); >>>> NOT CONVERTED
+ /**
+ Initialize the connection to use the given file
+ descriptors.
+ @param fd_in the input file descriptor to use
+ @param fd_out the output file descriptor to use
+ @short Initialize the connection to use the given file descriptors.
+ @see #inited
+ */
+ public native void init(int fd_in, int fd_out);
+ public native void connect(QObject receiver, String member);
+ public native void connect(QObject receiver);
+ public native void connect();
+ public native void close();
+ /**
+ Returns the input file descriptor.
+ @return the input file descriptor
+
+ @short Returns the input file descriptor.
+ */
+ public native int fd_from();
+ /**
+ Returns the output file descriptor.
+ @return the output file descriptor
+
+ @short Returns the output file descriptor.
+ */
+ public native int fd_to();
+ /**
+ Checks whether the connection has been initialized.
+ @return true if the initialized
+
+ @short Checks whether the connection has been initialized.
+ @see #init
+ */
+ public native boolean inited();
+ /**
+ Sends/queues the given command to be sent.
+ @param cmd the command to set
+ @param arr the bytes to send
+ @short Sends/queues the given command to be sent.
+ */
+ public native void send(int cmd, byte[] arr);
+ public native void send(int cmd);
+ /**
+ Sends the given command immediately.
+ @param _cmd the command to set
+ @param data the bytes to send
+ @return true if successful, false otherwise
+
+ @short Sends the given command immediately.
+ */
+ public native boolean sendnow(int _cmd, byte[] data);
+ /**
+ Receive data.
+ @param _cmd the received command will be written here
+ @param data the received data will be written here
+ @return >=0 indicates the received data size upon success
+ -1 indicates error
+
+ @short Receive data.
+ */
+ public native int read(int[] _cmd, byte[] data);
+ /**
+ Don't handle incoming data until resumed.
+ @short Don't handle incoming data until resumed.
+ */
+ public native void suspend();
+ /**
+ Resume handling of incoming data.
+ @short Resume handling of incoming data.
+ */
+ public native void resume();
+ /**
+ Returns status of connection.
+ @return true if suspended, false otherwise
+
+ @short Returns status of connection.
+ */
+ public native boolean suspended();
+ protected native void dequeue();
+}
diff --git a/kdejava/koala/org/kde/koala/CopyJob.java b/kdejava/koala/org/kde/koala/CopyJob.java
new file mode 100644
index 00000000..28e93690
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CopyJob.java
@@ -0,0 +1,80 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ CopyJob is used to move, copy or symlink files and directories.
+ Don't create the job directly, but use KIO.copy(),
+ KIO.move(), KIO.link() and friends.
+ See {@link CopyJobSignals} for signals emitted by CopyJob
+ @short CopyJob is used to move, copy or symlink files and directories.
+ @see #copy
+ @see #copyAs
+ @see #move
+ @see #moveAs
+ @see #link
+ @see #linkAs
+
+*/
+public class CopyJob extends Job {
+ protected CopyJob(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Do not create a CopyJob directly. Use KIO.copy(),
+ KIO.move(), KIO.link() and friends instead.
+ @param src the list of source URLs
+ @param dest the destination URL
+ @param mode specifies whether the job should copy, move or link
+ @param asMethod if true, behaves like KIO.copyAs(),
+ KIO.moveAs() or KIO.linkAs()
+ @param showProgressInfo true to show progress information to the user
+ @short Do not create a CopyJob directly.
+ @see #copy
+ @see #copyAs
+ @see #move
+ @see #moveAs
+ @see #link
+ @see #linkAs
+ */
+ // KIO::CopyJob* CopyJob(const KURL::List& arg1,const KURL& arg2,KIO::CopyJob::CopyMode arg3,bool arg4,bool arg5); >>>> NOT CONVERTED
+ /**
+ Returns the list of source URLs.
+ @return the list of source URLs.
+
+ @short Returns the list of source URLs.
+ */
+ public native ArrayList srcURLs();
+ /**
+ Returns the destination URL.
+ @return the destination URL
+
+ @short Returns the destination URL.
+ */
+ public native KURL destURL();
+ /**
+ By default the permissions of the copied files will be those of the source files.
+ But when copying "template" files to "new" files, people prefer the umask
+ to apply, rather than the template's permissions.
+ For that case, call setDefaultPermissions(true)
+ TODO KDE4: consider adding this as boolean to copy/copyAs?
+ @short By default the permissions of the copied files will be those of the source files.
+ */
+ public native void setDefaultPermissions(boolean b);
+ /**
+ When an error happens while copying/moving a file, the user will be presented with
+ a dialog for skipping the file that can't be copied/moved.
+ Or if the error is that the destination file already exists, the standard
+ rename dialog is shown.
+ If the program doesn't want CopyJob to show dialogs, but to simply fail on error,
+ call setInteractive( false ).
+ KDE4: remove, already in Job
+ @short When an error happens while copying/moving a file, the user will be presented with a dialog for skipping the file that can't be copied/moved.
+ */
+ public native void setInteractive(boolean b);
+}
diff --git a/kdejava/koala/org/kde/koala/CopyJobSignals.java b/kdejava/koala/org/kde/koala/CopyJobSignals.java
new file mode 100644
index 00000000..bad5d247
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CopyJobSignals.java
@@ -0,0 +1,104 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+public interface CopyJobSignals {
+ /**
+ Emitted when the total number of files is known.
+ @param job the job that emitted this signal
+ @param files the total number of files
+ @short Emitted when the total number of files is known.
+ */
+ void totalFiles(Job job, long files);
+ /**
+ Emitted when the toal number of direcotries is known.
+ @param job the job that emitted this signal
+ @param dirs the total number of directories
+ @short Emitted when the toal number of direcotries is known.
+ */
+ void totalDirs(Job job, long dirs);
+ // void aboutToCreate(KIO::Job* arg1,const QValueList<KIO::CopyInfo>& arg2); >>>> NOT CONVERTED
+ /**
+ Sends the number of processed files.
+ @param job the job that emitted this signal
+ @param files the number of processed files
+ @short Sends the number of processed files.
+ */
+ void processedFiles(Job job, long files);
+ /**
+ Sends the number of processed directories.
+ @param job the job that emitted this signal
+ @param dirs the number of processed dirs
+ @short Sends the number of processed directories.
+ */
+ void processedDirs(Job job, long dirs);
+ /**
+ The job is copying a file or directory.
+ @param job the job that emitted this signal
+ @param from the URl of the file or directory that is currently
+ being copied
+ @param to the destination of the current operation
+ @short The job is copying a file or directory.
+ */
+ void copying(Job job, KURL from, KURL to);
+ /**
+ The job is creating a symbolic link.
+ @param job the job that emitted this signal
+ @param target the URl of the file or directory that is currently
+ being linked
+ @param to the destination of the current operation
+ @short The job is creating a symbolic link.
+ */
+ void linking(Job job, String target, KURL to);
+ /**
+ The job is moving a file or directory.
+ @param job the job that emitted this signal
+ @param from the URl of the file or directory that is currently
+ being moved
+ @param to the destination of the current operation
+ @short The job is moving a file or directory.
+ */
+ void moving(Job job, KURL from, KURL to);
+ /**
+ The job is creating the directory <code>dir.</code>
+ @param job the job that emitted this signal
+ @param dir the directory that is currently being created
+ @short The job is creating the directory <code>dir.</code>
+ */
+ void creatingDir(Job job, KURL dir);
+ /**
+ The user chose to rename <code>from</code> to <code>to.</code>
+ @param job the job that emitted this signal
+ @param from the original name
+ @param to the new name
+ @short The user chose to rename <code>from</code> to <code>to.</code>
+ */
+ void renamed(Job job, KURL from, KURL to);
+ /**
+ The job emits this signal when copying or moving a file or directory successfully finished.
+ This signal is mainly for the Undo feature.
+ @param job the job that emitted this signal
+ @param from the source URL
+ @param to the destination URL
+ @param directory indicates whether a file or directory was successfully copied/moved.
+ true for a directoy, false for file
+ @param renamed indicates that the destination URL was created using a
+ rename operation (i.e. fast directory moving). true if is has been renamed
+ @short The job emits this signal when copying or moving a file or directory successfully finished.
+ */
+ void copyingDone(Job job, KURL from, KURL to, boolean directory, boolean renamed);
+ /**
+ The job is copying or moving a symbolic link, that points to target.
+ The new link is created in <code>to.</code> The existing one is/was in <code>from.</code>
+ This signal is mainly for the Undo feature.
+ @param job the job that emitted this signal
+ @param from the source URL
+ @param target the target
+ @param to the destination URL
+ @short The job is copying or moving a symbolic link, that points to target.
+ */
+ void copyingLinkDone(Job job, KURL from, String target, KURL to);
+}
diff --git a/kdejava/koala/org/kde/koala/Counter.java b/kdejava/koala/org/kde/koala/Counter.java
new file mode 100644
index 00000000..b4a03fa6
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Counter.java
@@ -0,0 +1,52 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>Counter</code> interface is used to represent any <a
+ href="http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-counter">
+ counter or counters function </a> value. This interface reflects
+ the values in the underlying style property. Hence, modifications
+ made through this interface modify the style property.
+ @short The <code>Counter</code> interface is used to represent any <a href="http://www.
+
+*/
+public class Counter implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected Counter(Class dummy){}
+
+ public Counter() {
+ newCounter();
+ }
+ private native void newCounter();
+ public Counter(Counter other) {
+ newCounter(other);
+ }
+ private native void newCounter(Counter other);
+ /**
+ This attribute is used for the identifier of the counter.
+ @short This attribute is used for the identifier of the counter.
+ */
+ public native String identifier();
+ /**
+ This attribute is used for the style of the list.
+ @short This attribute is used for the style of the list.
+ */
+ public native String listStyle();
+ /**
+ This attribute is used for the separator of nested counters.
+ @short This attribute is used for the separator of nested counters.
+ */
+ public native String separator();
+ /**
+ not part of the DOM
+ @short
+ */
+ // DOM::CounterImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+ // DOM::Counter* Counter(DOM::CounterImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/CustomNodeFilter.java b/kdejava/koala/org/kde/koala/CustomNodeFilter.java
new file mode 100644
index 00000000..f032abc7
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/CustomNodeFilter.java
@@ -0,0 +1,49 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ CustomNodeFilter can be used to define your own NodeFilter for use
+ with NodeIterators and TreeWalkers. You can create a custom filter
+ by doing the following:
+ class MyCustomNodeFilter {
+ .....
+ short acceptNode (Noden);
+ .....
+ }
+ Then in your program:
+ short MyCustomNodeFilter.acceptNode (Noden)
+ {
+ if (condition)
+ return NodeFilter.FILTER_ACCEPT;
+ else
+ ....
+ }
+ MyCustomFilter filter = new MyCustomFilter();
+ NodeFilter nf = NodeFilter.createCustom(filter);
+ NodeIterator ni = document.createNodeIterator(document,NodeFilter.SHOW_ALL,nf,false);
+ The default implementation of acceptNode() returns NodeFilter.FILTER_ACCEPT
+ for all nodes.
+ @short CustomNodeFilter can be used to define your own NodeFilter for use with NodeIterators and TreeWalkers.
+
+*/
+public class CustomNodeFilter extends DomShared {
+ protected CustomNodeFilter(Class dummy){super((Class) null);}
+ public CustomNodeFilter() {
+ super((Class) null);
+ newCustomNodeFilter();
+ }
+ private native void newCustomNodeFilter();
+ public native short acceptNode(Node n);
+ public native boolean isNull();
+ /**
+ not part of the DOM
+ Returns a name specifying the type of custom node filter. Useful for checking
+ if an custom node filter is of a particular sublass.
+ @short
+ */
+ public native String customNodeFilterType();
+}
diff --git a/kdejava/koala/org/kde/koala/DCOPAnswer.java b/kdejava/koala/org/kde/koala/DCOPAnswer.java
new file mode 100644
index 00000000..87c93fed
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DCOPAnswer.java
@@ -0,0 +1,28 @@
+package org.kde.koala;
+
+import java.util.*;
+
+public class DCOPAnswer{
+ private byte[] replyData;
+ private String replyType;
+ private boolean succes;
+
+ public void setReplyData(byte[] data){
+ this.replyData = data;
+ }
+ public byte[] getReplyData(){
+ return this.replyData;
+ }
+ public void setReplyType(String type){
+ this.replyType = type;
+ }
+ public String getType(){
+ return this.replyType;
+ }
+ public void setSucces(boolean succes){
+ this.succes = succes;
+ }
+ public boolean getSucces(){
+ return this.succes;
+ }
+}
diff --git a/kdejava/koala/org/kde/koala/DCOPClient.java b/kdejava/koala/org/kde/koala/DCOPClient.java
new file mode 100644
index 00000000..117fe354
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DCOPClient.java
@@ -0,0 +1,632 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import java.util.ArrayList;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QObject;
+
+/**
+
+ Inter-process communication and remote procedure calls
+ for KDE applications.
+ This class provides IPC and RPC for KDE applications. Usually you
+ will not have to instantiate one yourself because KApplication
+ contains a method to return a pointer to a DCOPClient object which
+ can be used for your whole application.
+ Before being able to send or receive any DCOP messages, you will have
+ to attach your client object to the DCOP server, and then register
+ your application with a specific name. See attach()
+ and registerAs() for
+ more information.
+ Data to be sent should be serialized into a QDataStream which was
+ initialized with the byte[] that you actually intend to send
+ the data in. An example of how you might do this:
+ <pre>
+ byte[] data;
+ QDataStream arg(data, IO_WriteOnly);
+ arg << String("This is text I am serializing");
+ client.send("someApp", "someObject", "someFunction(String)", data);
+ </pre>
+ See {@link DCOPClientSignals} for signals emitted by DCOPClient
+ @author Preston Brown <pbrown@kde.org>, Matthias Ettrich <ettrich@kde.org>
+
+ @short Inter-process communication and remote procedure calls for KDE applications.
+ @see KApplication#dcopClient
+
+*/
+public class DCOPClient extends QObject {
+ protected DCOPClient(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a new DCOP client, but does not attach to any server. @short Constructs a new DCOP client, but does not attach to any server.
+ */
+ public DCOPClient() {
+ super((Class) null);
+ newDCOPClient();
+ }
+ private native void newDCOPClient();
+ /**
+ Attaches to the DCOP server.
+ If the connection was already attached,
+ the connection will be re-established with the current server address.
+ Naturally, only attached application can use DCOP services.
+ If a QApplication object exists then client registers itself as
+ QApplication.name() + "-" + \<pid\>.
+ If no QApplication object exists the client registers itself as
+ "anonymous".
+ If you want to register differently, you should use registerAs()
+ instead.
+ @return true if attaching was successful.
+
+ @short Attaches to the DCOP server.
+ */
+ public native boolean attach();
+ /**
+ Internal function for KUniqueApplication to register the DCOPClient
+ with the application in case the application didn't exist at the
+ time the DCOPClient was created.
+ @short
+ */
+ public native void bindToApp();
+ /**
+ Detaches from the DCOP server.
+ @return true if successful, false otherwise
+
+ @short Detaches from the DCOP server.
+ */
+ public native boolean detach();
+ /**
+ Returns whether or not the client is attached to the server.
+ @return true if attached, false if not
+
+ @short Returns whether or not the client is attached to the server.
+ */
+ public native boolean isAttached();
+ /**
+ Returns whether the client is attached to a server owned by
+ another user.
+ @return true if attached to a foreign server, false if not
+
+ @short Returns whether the client is attached to a server owned by another user.
+ */
+ public native boolean isAttachedToForeignServer();
+ /**
+ Returns whether the client handles incoming calls.
+ @return true if the client accepts calls
+
+ @short Returns whether the client handles incoming calls.
+ */
+ public native boolean acceptCalls();
+ /**
+ Specify whether the client should accept incoming calls.
+ By default clients accept incoming calls, but not when connected
+ to a foreign server.
+ @param b true to accept calls, false to reject them
+ @short Specify whether the client should accept incoming calls.
+ */
+ public native void setAcceptCalls(boolean b);
+ /**
+ Returns whether the DCOP - Qt bridge is enabled.
+ By default the DCOP - Qt bridge is enabled.
+ @return true if Qt objects are accessible over DCOP
+
+ @short Returns whether the DCOP - Qt bridge is enabled.
+ */
+ public native boolean qtBridgeEnabled();
+ /**
+ Specify whether Qt objects of the application should be accessible
+ via DCOP.
+ By default the DCOP - Qt bridge is enabled.
+ @param b true to make Qt objects accessible over DCOP
+ @short Specify whether Qt objects of the application should be accessible via DCOP.
+ */
+ public native void setQtBridgeEnabled(boolean b);
+ /**
+ Registers at the DCOP server.
+ If the application was already registered,
+ the registration will be re-done with the new appId.
+ <code>appId</code> is a <code>unique</code> application/program id that the server
+ will use to associate requests with. If there is already an application
+ registered with the same name, the server will add a number to the
+ id to unify it. If <code>addPID</code> is true, the PID of the current process
+ will be added to id.
+ Registration is necessary if you want to allow other clients to talk
+ to you. They can do so using your <code>appId</code> as first parameter
+ for send() or call(). If you just want to talk to
+ other clients, you
+ do not need to register at the server. In that case attach() is
+ enough.
+ It will implicitly register you as "anonymous".
+ @param appId the id of the application
+ @param addPID true to add the process id
+ @return The actual <code>appId</code> used for the registration or a null string
+ if the registration wasn't successful.
+
+ @short Registers at the DCOP server.
+ */
+ public native String registerAs(String appId, boolean addPID);
+ public native String registerAs(String appId);
+ /**
+ Returns whether or not the client is registered at the server.
+ @return true if registered at the server
+
+ @short Returns whether or not the client is registered at the server.
+ */
+ public native boolean isRegistered();
+ /**
+ Returns the current app id or a null string if the application
+ hasn't yet been registered.
+ @return the application id, or null if not registered
+
+ @short Returns the current app id or a null string if the application hasn't yet been registered.
+ */
+ public native String appId();
+ /**
+ Returns the socket fd that is used for communication with the server.
+ @return The socket over which DCOP is communicating with the server.
+
+ @short Returns the socket fd that is used for communication with the server.
+ */
+ public native int socket();
+ /**
+ Temporarily suspends processing of DCOP events.
+ This can be useful if you need to show e.g. a dialog before
+ your application is ready to accept DCOP requests. Normally the
+ dialog would start an event loop and in this event loop DCOP
+ requests will be handled.
+ Be aware that not responding to DCOP requests may cause other
+ programs that want to communicate with your application, to hang.
+ @short Temporarily suspends processing of DCOP events.
+ @see #resume
+ @see #isSuspended
+ */
+ public native void suspend();
+ /**
+ Resumes the processing of DCOP events.
+ @short Resumes the processing of DCOP events.
+ @see #suspend#
+ @see #isSuspended
+ */
+ public native void resume();
+ /**
+ Returns whether DCOP events are being processed.
+ @short Returns whether DCOP events are being processed.
+ @see #suspend
+ @see #resume#
+ */
+ public native boolean isSuspended();
+ /**
+ Sends a data block to the server.
+ @param remApp The remote application id.
+ @param remObj The name of the remote object.
+ @param remFun The remote function in the specified object to call.
+ @param data The data to provide to the remote function.
+ @return Whether or not the server was able to accept the send.
+
+ @short Sends a data block to the server.
+ */
+ public native boolean send(String remApp, String remObj, String remFun, byte[] data);
+ /**
+ This function acts exactly the same as the above, but the data
+ parameter can be specified as a String for convenience.
+ @param remApp The remote application id.
+ @param remObj The name of the remote object.
+ @param remFun The remote function in the specified object to call.
+ @param data The data to provide to the remote function.
+ @return Whether or not the server was able to accept the send.
+
+ @short This function acts exactly the same as the above, but the data parameter can be specified as a String for convenience.
+ */
+ public native boolean send(String remApp, String remObj, String remFun, String data);
+ /**
+ Performs a synchronous send and receive.
+ The parameters are the same as for send, with the exception of
+ another byte[] being provided for results to be
+ (optionally) returned in.
+ A call blocks the application until the process receives the
+ answer.
+ If <code>useEventLoop</code> is true, a local event loop will be started after
+ 1/10th of a second in order to keep the user interface updated
+ (by processing paint events and such) until an answer is received.
+ @param remApp the remote application's id
+ @param remObj the remote object id
+ @param remFun the remote function id
+ @param data the data to send
+ @param replyType the type of the reply will be written here
+ @param replyData the data of the reply will be written here
+ @param useEventLoop if true the event loop will be started when
+ the call blocks too long
+ @param timeout timeout for the call in miliseconds, or -1 for no timeout
+ @return true if successful, false otherwise
+
+ @short Performs a synchronous send and receive.
+ @see #send
+ */
+ public native boolean call(String remApp, String remObj, String remFun, byte[] data, StringBuffer replyType, byte[] replyData, boolean useEventLoop, int timeout);
+ /**
+ Performs a asynchronous send with receive callback.
+ The first four parameters are the same as for send.
+ <code>callBackObj</code> and <code>callBackSlot</code> specify a call back
+ slot that is called when an answer is received.
+ The slot should have the following signature:
+ callBackSlot(int callId, String replyType,
+ const byte[] &replyData);
+ @param remApp the remote application's id
+ @param remObj the remote object id
+ @param remFun the remote function id
+ @param data the data to send
+ @param callBackObj object to call back
+ @param callBackSlot slot to call back
+ @return 0 on failure, on success a callId > 0 is
+ returned that will be passed as first argument of
+ the result call back
+
+ @short Performs a asynchronous send with receive callback.
+ @see #send
+ @see #callback
+ */
+ public native int callAsync(String remApp, String remObj, String remFun, byte[] data, QObject callBackObj, String callBackSlot);
+ /**
+ Searches for an object which matches a criteria.
+ findObject calls <code>remFun</code> in the applications and objects identified
+ by <code>remApp</code> and <code>remObj</code> until <code>remFun</code> returns true. The name of
+ the application and object that returned true are returned in
+ <code>foundApp</code> and <code>foundObj</code> respectively.
+ If <code>remFun</code> is empty a default function is called in the object
+ which always returns <code>true.</code>
+ A findObject blocks the application until the process receives the
+ answer.
+ If <code>useEventLoop</code> is true, a local event loop will be started after
+ 1/10th of a second in order to keep the user interface updated
+ (by processing paint events and such) until an answer is received.
+ @param remApp The remote application id.
+ @param remObj The name of the remote object.
+ @param remFun The remote function in the specified object to call.
+ This function should return a boolean and is used as
+ criteria.
+ @param data The data to provide to the remote function.
+ @param foundApp The remote application id that matched the criteria.
+ @param foundObj The remote object that matched the criteria.
+ @param useEventLoop if true the event loop will be started when
+ the call blocks too long
+ @param timeout timeout for the call in miliseconds, or -1 for no timeout
+ @return true is returned when an object was found for which <code>remFun</code>
+ returned true. If no such object is the function returns false.
+
+ @short Searches for an object which matches a criteria.
+ @see #send
+ */
+ public native boolean findObject(String remApp, String remObj, String remFun, byte[] data, StringBuffer foundApp, StringBuffer foundObj, boolean useEventLoop, int timeout);
+ /**
+ Emits <code>signal</code> as DCOP signal from object <code>object</code> with <code>data</code> as
+ arguments.
+ @short Emits <code>signal</code> as DCOP signal from object <code>object</code> with <code>data</code> as arguments.
+ */
+ public native void emitDCOPSignal(String object, String signal, byte[] data);
+ public native void emitDCOPSignal(String signal, byte[] data);
+ /**
+ Connects to a DCOP signal.
+ @param sender the name of the client that emits the signal. When empty
+ the signal will be passed from any client.
+ @param senderObj the name of the sending object that emits the signal.
+ @param signal the name of the signal. The arguments should match with slot.
+ @param receiverObj The name of the object to call
+ @param slot The name of the slot to call. Its arguments should match with signal.
+ @param Volatile If true, the connection will not be reestablished when
+ <code>sender</code> unregisters and reregisters with DCOP. In this case the <code>sender</code>
+ must be registered when the connection is made.
+ If false, the connection will be reestablished when <code>sender</code> reregisters.
+ In this case the connection can be made even if <code>sender</code> is not registered
+ at that time.
+
+ <li>
+ <code>Volatile</code> is true and <code>sender</code> does not exist.
+ </li>
+
+ <li>
+ <code>signal</code> and <code>slot</code> do not have matching arguments.
+
+ </li> @return false if a connection could not be established.
+ This will be the case when
+
+ @short Connects to a DCOP signal.
+ */
+ public native boolean connectDCOPSignal(String sender, String senderObj, String signal, String receiverObj, String slot, boolean Volatile);
+ /**
+ Disconnects a DCOP signal.
+ A special case is when both <code>sender</code> & <code>signal</code> are empty. In this
+ case all connections related to <code>receiverObj</code> in the current client
+ are disconnected. (Both connections from as well as to this object!)
+ @param sender the name of the client that emits the signal.
+ @param senderObj the name of the object that emits the signal.
+ If empty all objects will be disconnected.
+ @param signal the name of the signal. The arguments should match with slot.
+ @param receiverObj The name of the object the signal is connected to.
+ If empty all objects will be disconnected.
+ @param slot The name of the slot the signal is connected to.
+ If empty all slots will be disconnected.
+ @return false if no connection(s) where removed.
+
+ @short Disconnects a DCOP signal.
+ */
+ public native boolean disconnectDCOPSignal(String sender, String senderObj, String signal, String receiverObj, String slot);
+ /**
+ Reimplement this function to handle app-wide function calls unassociated w/an object.
+ Note that <code>fun</code> is normalized. See normalizeFunctionSignature().
+ If you do not want to reimplement this function for whatever reason,
+ you can also use a default object or a DCOPObjectProxy.
+ @param fun the normalized function signature
+ @param data the received data
+ @param replyType write the reply type in this string
+ @param replyData write the reply data in this array
+ @return true if successful, false otherwise
+
+ @short Reimplement this function to handle app-wide function calls unassociated w/an object.
+ @see #setDefaultObject
+ */
+ public native boolean process(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ Delays the reply of the current function call
+ until endTransaction() is called.
+ This allows a server to queue requests.
+ Note: Should be called from inside process() only!
+ @short Delays the reply of the current function call until endTransaction() is called.
+ @see #endTransaction
+ */
+ // DCOPClientTransaction* beginTransaction(); >>>> NOT CONVERTED
+ /**
+ Sends the delayed reply of a function call.
+ @param t the transaction as received from beginTransaction()
+ @param replyType write the reply type in this string
+ @param replyData write the reply data in this array
+ @short Sends the delayed reply of a function call.
+ @see #beginTransaction
+ */
+ // void endTransaction(DCOPClientTransaction* arg1,QCString& arg2,QByteArray& arg3); >>>> NOT CONVERTED
+ /**
+ Test whether the current function call is delayed.
+ Note: Should be called from inside process() only!
+ @return The ID of the current transaction or
+ 0 if no transaction is going on.
+
+ @short Test whether the current function call is delayed.
+ @see #process
+ @see #beginTransaction
+ */
+ public native int transactionId();
+ /**
+ Checks whether <code>remApp</code> is registered with the DCOP server.
+ @param remApp the id of the remote application
+ @return true if the remote application is registered, otherwise <code>false.</code>
+
+ @short Checks whether <code>remApp</code> is registered with the DCOP server.
+ */
+ public native boolean isApplicationRegistered(String remApp);
+ /**
+ Retrieves the list of all currently registered applications
+ from dcopserver.
+ @return a list of all regietered applications
+
+ @short Retrieves the list of all currently registered applications from dcopserver.
+ */
+ public native ArrayList registeredApplications();
+ /**
+ Retrieves the list of objects of the remote application <code>remApp.</code>
+ @param remApp he id of the application
+ @param ok if not null, the function sets <code>ok</code> to true if successful
+ and false if an error occurred
+ @return the list of object ids
+
+ @short Retrieves the list of objects of the remote application <code>remApp.</code>
+ */
+ public native ArrayList remoteObjects(String remApp, boolean[] ok);
+ public native ArrayList remoteObjects(String remApp);
+ /**
+ Retrieves the list of interfaces of the remote object <code>remObj</code>
+ of application <code>remApp.</code>
+ @param remApp the id of the application
+ @param remObj the id of the object
+ @param ok if not null, the function sets <code>ok</code> to true if successful
+ and false if an error occurred
+ @return the list of interfaces
+
+ @short Retrieves the list of interfaces of the remote object <code>remObj</code> of application <code>remApp.</code>
+ */
+ public native ArrayList remoteInterfaces(String remApp, String remObj, boolean[] ok);
+ public native ArrayList remoteInterfaces(String remApp, String remObj);
+ /**
+ Retrieves the list of functions of the remote object <code>remObj</code>
+ of application <code>remApp</code>
+ @param remApp the id of the application
+ @param remObj the id of the object
+ @param ok if not null, the function sets <code>ok</code> to true if successful
+ and false if an error occurred
+ @return the list of function ids
+
+ @short Retrieves the list of functions of the remote object <code>remObj</code> of application <code>remApp</code>
+ */
+ public native ArrayList remoteFunctions(String remApp, String remObj, boolean[] ok);
+ public native ArrayList remoteFunctions(String remApp, String remObj);
+ /**
+ Receives a DCOPSend or DCOPCall message from the server.
+ @param app The application the message was intended for. Should be
+ equal to our appId that we passed when the DCOPClient was
+ created.
+ @param obj The name of the object to pass the data on to.
+ @param fun The name of the function in the object to call.
+ @param data The arguments for the function.
+ @param replyType write the reply type in this string
+ @param replyData write the reply data in this array
+ @return true if successful, false otherwise
+
+ @short
+ */
+ public native boolean receive(String app, String arg2, String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ Receives a <code>DCOPFind</code> message from the server.
+ @param app The application the message was intended for. Should be
+ equal to our appId that we passed when the DCOPClient was
+ created.
+ @param obj The name of the object to pass the data on to.
+ @param fun The name of the function in the object to call.
+ @param data The arguments for the function.
+ @param replyType write the reply type in this string
+ @param replyData write the reply data in this array
+ @short
+ */
+ public native boolean find(String app, String arg2, String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ Returns the appId of the last application that talked to us.
+ @return the application id of the last application that send a message
+ to this client
+
+ @short Returns the appId of the last application that talked to us.
+ */
+ public native String senderId();
+ /**
+ Installs object <code>objId</code> as application-wide default object.
+ All app-wide messages that have not been processed by the dcopclient
+ will be send further to <code>objId.</code>
+ @param objId the id of the new default object
+ @short Installs object <code>objId</code> as application-wide default object.
+ */
+ public native void setDefaultObject(String objId);
+ /**
+ Returns the current default object or an empty string if no object is
+ installed as default object.
+ A default object receives application-wide messages that have not
+ been processed by the DCOPClient itself.
+ @return the id of the new default object
+
+ @short Returns the current default object or an empty string if no object is installed as default object.
+ */
+ public native String defaultObject();
+ /**
+ Enables / disables the applicationRegistered() /
+ applicationRemoved() signals.
+ Note that a counter is maintained about how often this method
+ was called. If this method is called twice with <code>enabled</code> set to
+ true, notifications will be enabled until it was called with
+ <code>enabled</code> set to false as often.
+ They are disabled by default.
+ @param enabled true to enable notifications, false to disable
+ @short Enables / disables the applicationRegistered() / applicationRemoved() signals.
+ */
+ public native void setNotifications(boolean enabled);
+ /**
+ Tells the dcopserver to treat the client as daemon client, not
+ as regular client.
+ If the number of regular clients drops down to zero, the
+ dcopserver will emit a KDE termination signal after 10
+ seconds.
+ @param daemonMode true to enable daemon mode, false to disable
+ @short Tells the dcopserver to treat the client as daemon client, not as regular client.
+ */
+ public native void setDaemonMode(boolean daemonMode);
+ /**
+ Switch to priority call mode.
+ @short
+ */
+ public native void setPriorityCall(boolean arg1);
+ /**
+ @short
+ */
+ // void handleAsyncReply(DCOPClient::ReplyStruct* arg1); >>>> NOT CONVERTED
+ /**
+ Sets the address of a server to use upon attaching.
+ If no server address is ever specified, attach will try its best to
+ find the server anyway.
+ @param addr the new address of the server
+ @short Sets the address of a server to use upon attaching.
+ */
+ public static native void setServerAddress(String addr);
+ /**
+ Normalizes the function signature <code>fun.</code>
+ A normalized signature doesn't contain any unnecessary whitespace
+ anymore. The remaining whitespace consists of single blanks only (0x20).
+ Example for a normalized signature:
+ <pre>
+ "someFunction(String,int)"
+ </pre>
+ When using send() or call(), normalization is done
+ automatically for you.
+ @param fun the function signature to normalize
+ @return the normalized function
+
+ @short Normalizes the function signature <code>fun.</code>
+ */
+ public static native String normalizeFunctionSignature(String fun);
+ /**
+ Returns the application's main dcop client. The main client can
+ be used by objects that do not have any specific access to a dcop
+ client. In KDE applications, the main client usually is the same
+ as KApplication.dcopClient().
+ @return the application's main dcop client
+
+ @short Returns the application's main dcop client.
+ */
+ public static native DCOPClient mainClient();
+ /**
+ Sets the application's main dcop client. The main client can
+ be used by objects that do not have any specific access to a dcop
+ client. In KDE applications, the main client usually is the same
+ as KApplication.dcopClient().
+ @param mainClient the new main dcop client
+ @short Sets the application's main dcop client.
+ */
+ public static native void setMainClient(DCOPClient mainClient);
+ /**
+ Look for the given client only in this process. This can be used
+ to check whether a given client (by name) is running in the same
+ process or in another one.
+ @short Look for the given client only in this process.
+ */
+ public static native DCOPClient findLocalClient(String _appId);
+ /**
+ @short
+ */
+ public static native void emergencyClose();
+ /**
+ Provides information about the last DCOP call for debugging purposes.
+ @short
+ */
+ public static native String postMortemSender();
+ /** @internal @short @internal
+ */
+ public static native String postMortemObject();
+ /** @internal @short @internal
+ */
+ public static native String postMortemFunction();
+ /**
+ File with information how to reach the dcopserver.
+ @param hostname Hostname to use, if empty current hostname of
+ the system is used.
+ @return Filename that contains information how to contact the
+ DCOPserver.
+
+ @short File with information how to reach the dcopserver.
+ */
+ public static native String dcopServerFile(String hostname);
+ public static native String dcopServerFile();
+ /**
+ Return the path of iceauth or an empty string if not found.
+ @short Return the path of iceauth or an empty string if not found.
+ */
+ public static native String iceauthPath();
+ /**
+ Process data from the socket.
+ @param socknum the fd of the socket
+ @short Process data from the socket.
+ */
+ protected native void processSocketData(int socknum);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/DCOPClientSignals.java b/kdejava/koala/org/kde/koala/DCOPClientSignals.java
new file mode 100644
index 00000000..4ccb7b23
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DCOPClientSignals.java
@@ -0,0 +1,62 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import java.util.ArrayList;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+public interface DCOPClientSignals {
+ /**
+ Indicates that the application <code>appId</code> has been registered with
+ the server we are attached to.
+ You need to call setNotifications() first, to tell the DCOP server
+ that you want to get these events.
+ @param appId the id of the new application
+ @short Indicates that the application <code>appId</code> has been registered with the server we are attached to.
+ */
+ void applicationRegistered(String appId);
+ /**
+ Indicates that the formerly registered application <code>appId</code> has
+ been removed.
+ You need to call setNotifications() first, to tell the
+ DCOP server that you want to get these events.
+ @param appId the id of the removed application
+ @short Indicates that the formerly registered application <code>appId</code> has been removed.
+ */
+ void applicationRemoved(String appId);
+ /**
+ Indicates that the process of establishing DCOP communications failed
+ in some manner.
+ Usually attached to a dialog box or some other visual
+ aid.
+ @param msg the message tha contains further information
+ @short Indicates that the process of establishing DCOP communications failed in some manner.
+ */
+ void attachFailed(String msg);
+ /**
+ Indicates that user input shall be blocked or released,
+ depending on the argument.
+ The signal is emitted whenever the client has to wait too long
+ (i.e. more than 1/10 of a second) for an answer to a
+ synchronous call. In that case, it will enter a local event
+ loop to keep the GUI updated until finally an answer arrives.
+ In KDE, the KApplication object connects to this signal to be
+ able to block any user input (i.e. mouse and key events) while
+ we are waiting for an answer. If we did not do this, the
+ application might end up in an illegal state, as a keyboard
+ shortcut or a mouse action might cause another dcop call to be
+ issued.
+ @param block true to block user input, false otherwise
+ @short Indicates that user input shall be blocked or released, depending on the argument.
+ */
+ void blockUserInput(boolean block);
+ /**
+ Signal used for callbacks of async calls.
+ This signal is automatically connected to the call back
+ slot specified in the async call.
+ @short
+ @see #callAsync
+ */
+ void callBack(int arg1, String arg2, byte[] arg3);
+}
diff --git a/kdejava/koala/org/kde/koala/DCOPObject.java b/kdejava/koala/org/kde/koala/DCOPObject.java
new file mode 100644
index 00000000..3e30a6d2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DCOPObject.java
@@ -0,0 +1,289 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import java.util.ArrayList;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+/**
+
+ Provides an interface for receiving DCOP messages.
+ This class provides an interface for receiving DCOP messages. To use it,
+ simply multiply-inherit from DCOPObject and from some other class, and
+ then implement the DCOPObject.process() method. Because this method is
+ pure virtual, you must implement the method.
+ Note that it is usually more convenient to mark a section in the class with
+ "k_dcop:", add your DCOP methods there and let the IDL compiler do the rest.
+ Read the tutorials for more information.
+ @author Preston Brown <pbrown@kde.org>, Matthias Ettrich <ettrich@kde.org>
+
+ @short Provides an interface for receiving DCOP messages.
+ @see DCOPClient
+ @see DCOPObjectProxy
+
+*/
+public class DCOPObject implements QtSupport, DCOPObjectInterface {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected DCOPObject(Class dummy){}
+
+ /**
+ Creates a DCOPObject and calculates the object id
+ using its physical memory address.
+ @short Creates a DCOPObject and calculates the object id using its physical memory address.
+ */
+ public DCOPObject() {
+ newDCOPObject();
+ }
+ private native void newDCOPObject();
+ /**
+ Creates a DCOPObject and calculates the object id
+ using QObject.name().
+ @param obj the object to extract the name from
+ @short Creates a DCOPObject and calculates the object id using QObject.name().
+ */
+ public DCOPObject(QObject arg1) {
+ newDCOPObject(arg1);
+ }
+ private native void newDCOPObject(QObject arg1);
+ /**
+ Creates a DCOPObject with object Id <code>objId.</code>
+ @param objId the object id of the DCOP object
+ @short Creates a DCOPObject with object Id <code>objId.</code>
+ */
+ public DCOPObject(String objId) {
+ newDCOPObject(objId);
+ }
+ private native void newDCOPObject(String objId);
+ /**
+ Returns the object id of the DCOPObject.
+ @return the object's id
+
+ @short Returns the object id of the DCOPObject.
+ */
+ public native String objId();
+ /**
+ Renames a dcop object, if no other with the same name exists
+ Use with care, all dcop signals are disconnected
+ @param objId the new object id
+ @short Renames a dcop object, if no other with the same name exists Use with care, all dcop signals are disconnected
+ */
+ public native boolean setObjId(String objId);
+ /**
+ Dispatches a message.
+ Usually you want to use an IDL
+ compiler to automatically generate an implementation for
+ this function.
+ If this function returns false, then processDynamic()
+ is called.
+ Note to implementators: remember to call the baseclasses
+ implementation. It handles the functions "functions()" and
+ "interfaces()" which return the lists of supported functions
+ and interfaces, respectively.
+ @param fun is the normalized function signature.
+ Such a signature usually looks like
+ foobar(String,int). The return type,
+ qualifiers like "const" etc. are not part of
+ the signature.
+ @param data the received data
+ @param replyType write the reply type in this string
+ @param replyData write the reply data in this array
+ @return true if successful, false otherwise. The default implementation
+ returns false for all <code>fun</code> except "functions()" and
+ "interfaces()".
+
+ @short Dispatches a message.
+ @see DCOPClient#normalizeFunctionSignature
+ @see #functions
+ @see DCOPClient#process
+ */
+ public native boolean process(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for process() but
+ you still want to dispatch some functions dynamically.
+ Dynamically means that methods may appear and vanish
+ during runtime.
+ @param fun is the normalized function signature.
+ Such a signature usually looks like
+ foobar(String,int). The return type,
+ qualifiers like "const" etc. are not part of
+ the signature.
+ @param data the received data
+ @param replyType write the reply type in this string
+ @param replyData write the reply data in this array
+ @return true if successful, false otherwise. The default implementation
+ returns always false.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for process() but you still want to dispatch some functions dynamically.
+ @see #process
+ @see DCOPClient#normalizeFunctionSignature
+ @see #functions
+ @see DCOPClient#process
+ */
+ public native boolean processDynamic(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for functions() but
+ you still want to list some functions dynamically.
+ Dynamically means that the methods may appear and vanish
+ during runtime.
+ @return A list of the additional functions, default is an empty list.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for functions() but you still want to list some functions dynamically.
+ @see #functions
+ */
+ public native ArrayList functionsDynamic();
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for interfaces() but
+ you still want to list some interfaces dynamically.
+ Dynamically means that they may appear and vanish
+ during runtime.
+ @return A list of the additional interfaces, default is an empty list.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for interfaces() but you still want to list some interfaces dynamically.
+ @see #interfaces
+ */
+ public native ArrayList interfacesDynamic();
+ /**
+ Returns the names of the interfaces, specific ones last. The
+ functions gets reimplemented by the IDL compiler. If you don't
+ use the IDL compiler, consider implementing this function
+ manually if you want your object to be easily explorable.
+ @return a list of interfaces
+
+ @short Returns the names of the interfaces, specific ones last.
+ @see #functions
+ */
+ public native ArrayList interfaces();
+ /**
+ Returns the list of functions understood by the object. It gets
+ reimplemented by the IDL compiler. If you don't use the IDL
+ compiler, consider implementing this function manually if you
+ want your object to be easily scriptable.
+ Rationale: functions() allows an interpreter to do client-side
+ type-casting properly.
+ Note to implementators: remember to call the baseclasses
+ implementation.
+ @return a list of functions
+
+ @short Returns the list of functions understood by the object.
+ @see #interfaces
+ @see #process
+ @see #processDynamic
+ @see DCOPClient#normalizeFunctionSignature
+ */
+ public native ArrayList functions();
+ /**
+ Emit <code>signal</code> as DCOP signal from this object with <code>data</code> as
+ arguments
+ @param signal the signal to emit
+ @param data the data to send
+ @short Emit <code>signal</code> as DCOP signal from this object with <code>data</code> as arguments
+ */
+ public native void emitDCOPSignal(String signal, byte[] data);
+ /**
+ Connects to a DCOP signal.
+ @param sender the name of the client that emits the signal. When empty
+ the signal will be passed from any client.
+ @param senderObj the name of the sending object that emits the signal.
+ @param signal the name of the signal. The arguments should match with slot.
+ @param slot The name of the slot to call. Its arguments should match with signal.
+ @param Volatile If true, the connection will not be reestablished when
+ <code>sender</code> unregisters and reregisters with DCOP. In this case the <code>sender</code>
+ must be registered when the connection is made.
+ If false, the connection will be reestablished when <code>sender</code> reregisters.
+ In this case the connection can be made even if <code>sender</code> is not registered
+ at that time.
+
+ <li>
+ <code>Volatile</code> is true and <code>sender</code> does not exist.
+ </li>
+
+ <li>
+ <code>signal</code> and <code>slot</code> do not have matching arguments.
+
+ </li> @return false if a connection could not be established.
+ This will be the case when
+
+ @short Connects to a DCOP signal.
+ */
+ public native boolean connectDCOPSignal(String sender, String senderObj, String signal, String slot, boolean Volatile);
+ /**
+ Disconnects a DCOP signal.
+ A special case is when both <code>sender</code> & <code>signal</code> are empty. In this
+ case all connections related to this object in the current client
+ are disconnected. (Both connections from as well as to this object!)
+ @param sender the name of the client that emits the signal.
+ @param senderObj the name of the object that emits the signal.
+ If empty all objects will be disconnected.
+ @param signal the name of the signal. The arguments should match with slot.
+ If empty all objects will be disconnected.
+ @param slot The name of the slot the signal is connected to.
+ If empty all slots will be disconnected.
+ @return false if no connection(s) where removed.
+
+ @short Disconnects a DCOP signal.
+ */
+ public native boolean disconnectDCOPSignal(String sender, String senderObj, String signal, String slot);
+ /**
+ Returns the DCOPClient responsible for making the call.
+ Only call this function while you are handling a DCOP call.
+ @return the DCOPClient responsible for making the call.
+ This information is only guaranteed to be correct when
+ entering your DCOP function.
+
+ @short Returns the DCOPClient responsible for making the call.
+ */
+ public native DCOPClient callingDcopClient();
+ /**
+ @short
+ */
+ public native void setCallingDcopClient(DCOPClient arg1);
+ /**
+ Checks whether an object with the given id is known in this process.
+ DCOPObjectProxy
+ @return true if an object with the questionable <code>objId</code> is
+ known in this process. This query does not ask proxies.
+
+ @short Checks whether an object with the given id is known in this process.
+ */
+ public static native boolean hasObject(String objId);
+ /**
+ Try to find a dcop object with the given id.
+ This function does not query the DCOPObjectProxy.
+ @param objId the object id to search
+ @return the DCOPObject for the id <code>objId.</code>
+
+ @short Try to find a dcop object with the given id.
+ */
+ public static native DCOPObjectInterface find(String objId);
+ /**
+ Tries to find an object using a partial object id.
+ This function is used for multicasting a DCOP message to
+ several objects inside a single process.
+ @param partialId the partial object id to search for
+ @return a list of DCOPObjects beginning with the string
+ contained in <code>partialId.</code>
+
+ @short Tries to find an object using a partial object id.
+ */
+ // QPtrList<DCOPObject> match(const QCString& arg1); >>>> NOT CONVERTED
+ /**
+ Creates an object id for the QObject <code>obj.</code> This is done
+ using the QObject.name() function.
+ @param obj the object whose name will be used
+ @return the created object id
+
+ @short Creates an object id for the QObject <code>obj.</code>
+ */
+ public static native String objectName(QObject arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/DCOPObjectInterface.java b/kdejava/koala/org/kde/koala/DCOPObjectInterface.java
new file mode 100644
index 00000000..089e0df3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DCOPObjectInterface.java
@@ -0,0 +1,22 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import java.util.ArrayList;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+public interface DCOPObjectInterface {
+ String objId();
+ boolean setObjId(String objId);
+ boolean process(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ boolean processDynamic(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ ArrayList functionsDynamic();
+ ArrayList interfacesDynamic();
+ ArrayList interfaces();
+ ArrayList functions();
+ void emitDCOPSignal(String signal, byte[] data);
+ boolean connectDCOPSignal(String sender, String senderObj, String signal, String slot, boolean Volatile);
+ boolean disconnectDCOPSignal(String sender, String senderObj, String signal, String slot);
+ DCOPClient callingDcopClient();
+ void setCallingDcopClient(DCOPClient arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/DCOPObjectProxy.java b/kdejava/koala/org/kde/koala/DCOPObjectProxy.java
new file mode 100644
index 00000000..81216127
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DCOPObjectProxy.java
@@ -0,0 +1,60 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ You must use a proxy if you want to dispatch method calls for
+ object IDs which don't have (yet) a corresponding DCOPObject.
+ This is somewhat like object references in CORBA.
+ @author Matthias Ettrich <ettrich@kde.org>
+
+ @short You must use a proxy if you want to dispatch method calls for object IDs which don't have (yet) a corresponding DCOPObject.
+ @see DCOPObject
+ @see DCOPClient
+
+*/
+public class DCOPObjectProxy implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected DCOPObjectProxy(Class dummy){}
+
+ /**
+ Creates a new proxy.
+ @short Creates a new proxy.
+ */
+ public DCOPObjectProxy() {
+ newDCOPObjectProxy();
+ }
+ private native void newDCOPObjectProxy();
+ /**
+ Reimplement this method to dispatch method calls.
+ This method is called of all proxies if the DCOPClient
+ knows no object with the id <code>obj.</code> If the first proxy returns
+ <code>true</code>, the DCOPClient will no longer call other proxies.
+ The object id <code>obj</code> may be empty for app-wide function calls no
+ associated with any object.
+ @param obj the id of the object
+ @param fun is the normalized function signature.
+ Such a signature usually looks like
+ foobar(String,int). The return type,
+ qualifiers like "const" etc. are not part of
+ the signature.
+ @param data the received data
+ @param replyType write the reply type in this string
+ @param replyData write the reply data in this array
+ @return true if successful, false otherwise. The default implementation
+ returns always false.
+
+ @short Reimplement this method to dispatch method calls.
+ */
+ public native boolean process(String arg1, String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/DOMException.java b/kdejava/koala/org/kde/koala/DOMException.java
new file mode 100644
index 00000000..d51309cc
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DOMException.java
@@ -0,0 +1,40 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ DOM operations only raise exceptions in &quot;exceptional&quot;
+ circumstances, i.e., when an operation is impossible to perform
+ (either for logical reasons, because data is lost, or because the
+ implementation has become unstable). In general, DOM methods return
+ specific error values in ordinary processing situation, such as
+ out-of-bound errors when using <code>ArrayList</code> .
+ Implementations may raise other exceptions under other
+ circumstances. For example, implementations may raise an
+ implementation-dependent exception if a <code>null</code>
+ argument is passed.
+ Some languages and object systems do not support the concept of
+ exceptions. For such systems, error conditions may be indicated
+ using native error reporting mechanisms. For some bindings, for
+ example, methods may return error codes similar to those listed in
+ the corresponding method descriptions.
+ @short DOM operations only raise exceptions in &quot;exceptional&quot; circumstances, i.
+
+*/
+public class DOMException implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected DOMException(Class dummy){}
+
+ public DOMException(short _code) {
+ newDOMException(_code);
+ }
+ private native void newDOMException(short _code);
+ public DOMException(DOMException other) {
+ newDOMException(other);
+ }
+ private native void newDOMException(DOMException other);
+}
diff --git a/kdejava/koala/org/kde/koala/DOMImplementation.java b/kdejava/koala/org/kde/koala/DOMImplementation.java
new file mode 100644
index 00000000..16e80b21
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DOMImplementation.java
@@ -0,0 +1,134 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>DOMImplementation</code> interface provides a number of
+ methods for performing operations that are independent of any
+ particular instance of the document object model.
+ DOM Level 2 and newer provide means for creating documents directly,
+ which was not possible with DOM Level 1.
+ @short The <code>DOMImplementation</code> interface provides a number of methods for performing operations that are independent of any particular instance of the document object model.
+
+*/
+public class DOMImplementation implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected DOMImplementation(Class dummy){}
+
+ public DOMImplementation() {
+ newDOMImplementation();
+ }
+ private native void newDOMImplementation();
+ public DOMImplementation(DOMImplementation other) {
+ newDOMImplementation(other);
+ }
+ private native void newDOMImplementation(DOMImplementation other);
+ /**
+ Test if the DOM implementation implements a specific feature.
+ @param feature The package name of the feature to test. In
+ Level 1, the legal values are "HTML" and "XML"
+ (case-insensitive).
+ @param version This is the version number of the package name
+ to test. In Level 1, this is the string "1.0". If the version
+ is not specified, supporting any version of the feature will
+ cause the method to return <code>true</code> .
+ @return <code>true</code> if the feature is implemented in
+ the specified version, <code>false</code> otherwise.
+
+ @short Test if the DOM implementation implements a specific feature.
+ */
+ public native boolean hasFeature(String feature, String version);
+ /**
+ Introduced in DOM Level 2
+ Creates an empty DocumentType node. Entity declarations and notations
+ are not made available. Entity reference expansions and default
+ attribute additions do not occur. It is expected that a future version
+ of the DOM will provide a way for populating a DocumentType.
+ HTML-only DOM implementations do not need to implement this method.
+ @param qualifiedName The qualified name of the document type to be
+ created.
+ @param publicId The external subset public identifier.
+ @param systemId The external subset system identifier.
+ NAMESPACE_ERR: Raised if the qualifiedName is malformed.
+ @return A new DocumentType node with Node.ownerDocument set to null.
+
+ @short Introduced in DOM Level 2
+ */
+ public native DocumentType createDocumentType(String qualifiedName, String publicId, String systemId);
+ /**
+ Introduced in DOM Level 2
+ Creates an XML Document object of the specified type with its document
+ element. HTML-only DOM implementations do not need to implement this
+ method.
+ @param namespaceURI The namespace URI of the document element to create.
+ @param qualifiedName The qualified name of the document element to be
+ created.
+ @param doctype The type of document to be created or null. When doctype
+ is not null, its Node.ownerDocument attribute is set to the document
+ being created.
+ NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the
+ qualifiedName has a prefix and the namespaceURI is null, or if the
+ qualifiedName has a prefix that is "xml" and the namespaceURI is
+ different from "http://www.w3.org/XML/1998/namespace" [Namespaces].
+ WRONG_DOCUMENT_ERR: Raised if doctype has already been used with a
+ different document or was created from a different implementation.
+ @return A new Document object.
+
+ @short Introduced in DOM Level 2
+ */
+ public native Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype);
+ /**
+ Introduced in DOM Level 3
+ This method makes available a DOMImplementation's specialized
+ interface.
+ @param feature The name of the feature requested (case-insensitive)
+ @return Returns an alternate DOMImplementation which implements
+ the specialized APIs of the specified feature, if any, or null
+ if there is no alternate DOMImplementation object which implements
+ interfaces associated with that feature. Any alternate DOMImplementation
+ returned by this method must delegate to the primary core DOMImplementation
+ and not return results inconsistent with the primary DOMImplementation.
+
+ @short Introduced in DOM Level 3 This method makes available a DOMImplementation's specialized interface.
+ */
+ public native DOMImplementation getInterface(String feature);
+ /**
+ Introduced in DOM Level 2
+ This method is from the DOMImplementationCSS interface
+ Creates a new CSSStyleSheet.
+ @param title The advisory title. See also the Style Sheet Interfaces
+ section.
+ @param media The comma-separated list of media associated with the
+ new style sheet. See also the Style Sheet Interfaces section.
+ @return A new CSS style sheet.
+
+ @short Introduced in DOM Level 2 This method is from the DOMImplementationCSS interface
+ */
+ public native CSSStyleSheet createCSSStyleSheet(String title, String media);
+ /**
+ Introduced in DOM Level 2
+ This method is from the HTMLDOMImplementation interface
+ Creates an HTMLDocument with the minimal tree made of these
+ elements: HTML,HEAD,TITLE and BODY.
+ It extends the core interface which can be used to create an
+ XHTML document by passing the XHTML namespace as the namespace
+ for the root element.
+ @param title The title of the document to be set as the content
+ of the TITLE element, through a child Text node.
+ @return the HTMLdocument
+
+ @short Introduced in DOM Level 2 This method is from the HTMLDOMImplementation interface
+ */
+ public native HTMLDocument createHTMLDocument(String title);
+ /**
+ not part of the DOM
+ @short
+ */
+ // DOM::DOMImplementationImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+ // DOM::DOMImplementation* DOMImplementation(DOM::DOMImplementationImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/DavJob.java b/kdejava/koala/org/kde/koala/DavJob.java
new file mode 100644
index 00000000..60a8da58
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DavJob.java
@@ -0,0 +1,44 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QDomDocument;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The transfer job pumps data into and/or out of a Slave.
+ Data is sent to the slave on request of the slave ( dataReq).
+ If data coming from the slave can not be handled, the
+ reading of data from the slave should be suspended.
+ @short The transfer job pumps data into and/or out of a Slave.
+ @see #davPropFind
+ @see #davPropPatch
+ @see #davSearch
+
+*/
+public class DavJob extends TransferJob {
+ protected DavJob(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Use KIO.davPropFind(), KIO.davPropPatch() and
+ KIO.davSearch() to create a new DavJob.
+ @short Use KIO.davPropFind(), KIO.davPropPatch() and KIO.davSearch() to create a new DavJob.
+ */
+ public DavJob(KURL url, int method, String request, boolean showProgressInfo) {
+ super((Class) null);
+ newDavJob(url,method,request,showProgressInfo);
+ }
+ private native void newDavJob(KURL url, int method, String request, boolean showProgressInfo);
+ /**
+ Returns the response as a QDomDocument.
+ @return the response document
+
+ @short Returns the response as a QDomDocument.
+ */
+ public native QDomDocument response();
+ protected native void slotFinished();
+ protected native void slotData(byte[] data);
+}
diff --git a/kdejava/koala/org/kde/koala/DefaultProgress.java b/kdejava/koala/org/kde/koala/DefaultProgress.java
new file mode 100644
index 00000000..1cd00645
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DefaultProgress.java
@@ -0,0 +1,109 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+
+*/
+public class DefaultProgress extends ProgressBase {
+ protected DefaultProgress(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a new default progress dialog.
+ @param showNow true to show immediately, false to show when
+ needed
+ @short Creates a new default progress dialog.
+ */
+ public DefaultProgress(boolean showNow) {
+ super((Class) null);
+ newDefaultProgress(showNow);
+ }
+ private native void newDefaultProgress(boolean showNow);
+ public DefaultProgress() {
+ super((Class) null);
+ newDefaultProgress();
+ }
+ private native void newDefaultProgress();
+ /**
+ Creates a new default progress dialog.
+ @param parent the parent of the dialog (or 0 for top-level)
+ @param the name of the dialog, can be 0
+ @short Creates a new default progress dialog.
+ */
+ public DefaultProgress(QWidget parent, String name) {
+ super((Class) null);
+ newDefaultProgress(parent,name);
+ }
+ private native void newDefaultProgress(QWidget parent, String name);
+ public DefaultProgress(QWidget parent) {
+ super((Class) null);
+ newDefaultProgress(parent);
+ }
+ private native void newDefaultProgress(QWidget parent);
+ public native boolean keepOpen();
+ public native void slotTotalSize(Job arg1, long size);
+ public native void slotTotalFiles(Job arg1, long files);
+ public native void slotTotalDirs(Job arg1, long dirs);
+ public native void slotProcessedSize(Job arg1, long bytes);
+ public native void slotProcessedFiles(Job arg1, long files);
+ public native void slotProcessedDirs(Job arg1, long dirs);
+ public native void slotSpeed(Job arg1, long speed);
+ public native void slotPercent(Job arg1, long percent);
+ /**
+ Called to set an information message.
+ @param job the KIO.Job
+ @param msg the message to set
+ @short Called to set an information message.
+ */
+ public native void slotInfoMessage(Job job, String msg);
+ public native void slotCopying(Job arg1, KURL src, KURL dest);
+ public native void slotMoving(Job arg1, KURL src, KURL dest);
+ public native void slotDeleting(Job arg1, KURL url);
+ /**
+ Called when the job is transferring.
+ @param job the KIO.Job
+ @param url the url to transfer
+ @short Called when the job is transferring.
+ */
+ public native void slotTransferring(Job arg1, KURL url);
+ public native void slotCreatingDir(Job arg1, KURL dir);
+ /**
+ Called when the job is requesting a stat.
+ @param job the KIO.Job
+ @param dir the dir to stat
+ @short Called when the job is requesting a stat.
+ */
+ public native void slotStating(Job arg1, KURL dir);
+ /**
+ Called when the job is mounting.
+ @param job the KIO.Job
+ @param dev the device to mount
+ @param point the mount point
+ @short Called when the job is mounting.
+ */
+ public native void slotMounting(Job arg1, String dev, String point);
+ /**
+ Called when the job is unmounting.
+ @param job the KIO.Job
+ @param point the mount point
+ @short Called when the job is unmounting.
+ */
+ public native void slotUnmounting(Job arg1, String point);
+ public native void slotCanResume(Job arg1, long arg2);
+ /**
+ Called when the job is cleaned.
+ @short Called when the job is cleaned.
+ */
+ public native void slotClean();
+ public static native String makePercentString(long percent, long totalSize, long totalFiles);
+ protected native void init();
+ protected native void showTotals();
+ protected native void setDestVisible(boolean visible);
+ protected native void checkDestination(KURL dest);
+}
diff --git a/kdejava/koala/org/kde/koala/DeleteJob.java b/kdejava/koala/org/kde/koala/DeleteJob.java
new file mode 100644
index 00000000..ca1b62d2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DeleteJob.java
@@ -0,0 +1,52 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ A more complex Job to delete files and directories.
+ Don't create the job directly, but use KIO.del() instead.
+ See {@link DeleteJobSignals} for signals emitted by DeleteJob
+ @short A more complex Job to delete files and directories.
+ @see #del
+
+*/
+public class DeleteJob extends Job {
+ protected DeleteJob(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Do not create a DeleteJob directly. Use KIO.del()
+ instead.
+ @param src the list of URLs to delete
+ @param shred true to shred (make sure that data is not recoverable)a
+ @param showProgressInfo true to show progress information to the user
+ @short Do not create a DeleteJob directly.
+ @see #del
+ */
+ public DeleteJob(ArrayList src, boolean shred, boolean showProgressInfo) {
+ super((Class) null);
+ newDeleteJob(src,shred,showProgressInfo);
+ }
+ private native void newDeleteJob(ArrayList src, boolean shred, boolean showProgressInfo);
+ /**
+ Returns the list of URLs.
+ @return the list of URLs.
+
+ @short Returns the list of URLs.
+ */
+ public native ArrayList urls();
+ protected native void slotStart();
+ // void slotEntries(KIO::Job* arg1,const KIO::UDSEntryList& arg2); >>>> NOT CONVERTED
+ protected native void slotResult(Job job);
+ /**
+ Forward signal from subjob
+ @short Forward signal from subjob
+ */
+ protected native void slotProcessedSize(Job arg1, long data_size);
+ protected native void slotReport();
+}
diff --git a/kdejava/koala/org/kde/koala/DeleteJobSignals.java b/kdejava/koala/org/kde/koala/DeleteJobSignals.java
new file mode 100644
index 00000000..71aff1f3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DeleteJobSignals.java
@@ -0,0 +1,45 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+public interface DeleteJobSignals {
+ /**
+ Emitted when the total number of files is known.
+ @param job the job that emitted this signal
+ @param files the total number of files
+ @short Emitted when the total number of files is known.
+ */
+ void totalFiles(Job job, long files);
+ /**
+ Emitted when the toal number of direcotries is known.
+ @param job the job that emitted this signal
+ @param dirs the total number of directories
+ @short Emitted when the toal number of direcotries is known.
+ */
+ void totalDirs(Job job, long dirs);
+ /**
+ Sends the number of processed files.
+ @param job the job that emitted this signal
+ @param files the number of processed files
+ @short Sends the number of processed files.
+ */
+ void processedFiles(Job job, long files);
+ /**
+ Sends the number of processed directories.
+ @param job the job that emitted this signal
+ @param dirs the number of processed dirs
+ @short Sends the number of processed directories.
+ */
+ void processedDirs(Job job, long dirs);
+ /**
+ Sends the URL of the file that is currently being deleted.
+ @param job the job that emitted this signal
+ @param file the URL of the file or directory that is being
+ deleted
+ @short Sends the URL of the file that is currently being deleted.
+ */
+ void deleting(Job job, KURL file);
+}
diff --git a/kdejava/koala/org/kde/koala/DockMainWindow.java b/kdejava/koala/org/kde/koala/DockMainWindow.java
new file mode 100644
index 00000000..0076b8a8
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DockMainWindow.java
@@ -0,0 +1,113 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QWidget;
+
+/**
+
+ A KPart-aware main window with ability for docking widgets, whose user interface is described in XML.
+ Inherit your main dock-window from this class
+ and don't forget to call setXMLFile() in the inherited constructor.
+ It implements all internal interfaces in the case of a KDockMainWindow as host:
+ the builder and servant interface (for menu merging).
+ @short A KPart-aware main window with ability for docking widgets, whose user interface is described in XML.
+
+*/
+public class DockMainWindow extends KDockMainWindow implements PartBaseInterface {
+ protected DockMainWindow(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor, same signature as KDockMainWindow.
+ @short Constructor, same signature as KDockMainWindow.
+ */
+ public DockMainWindow(QWidget parent, String name, int f) {
+ super((Class) null);
+ newDockMainWindow(parent,name,f);
+ }
+ private native void newDockMainWindow(QWidget parent, String name, int f);
+ public DockMainWindow(QWidget parent, String name) {
+ super((Class) null);
+ newDockMainWindow(parent,name);
+ }
+ private native void newDockMainWindow(QWidget parent, String name);
+ public DockMainWindow(QWidget parent) {
+ super((Class) null);
+ newDockMainWindow(parent);
+ }
+ private native void newDockMainWindow(QWidget parent);
+ public DockMainWindow() {
+ super((Class) null);
+ newDockMainWindow();
+ }
+ private native void newDockMainWindow();
+ protected native void createShellGUI(boolean create);
+ protected native void createShellGUI();
+ /**
+ Create the GUI (by merging the host's and the active part's)
+ Called on startup and whenever the active part changes.
+ For this you need to connect this slot to the
+ PartManager.activePartChanged() signal
+ @param part The active part (set to null if no part).
+ @short Create the GUI (by merging the host's and the active part's)
+ */
+ protected native void createGUI(Part part);
+ /**
+ Called when the active part wants to change the statusbar message.
+ Reimplement if your dock-mainwindow has a complex statusbar
+ (with several items)
+ @short Called when the active part wants to change the statusbar message.
+ */
+ protected native void slotSetStatusBarText(String arg1);
+ /**
+ Internal method. Called by KParts.Part to specify the parent object for plugin objects.
+ @short Internal method.
+ */
+ public native void setPartObject(QObject object);
+ public native QObject partObject();
+ /**
+ Set the instance ( KInstance) for this part.
+ Call this first in the inherited class constructor,
+ because it loads the i18n catalogues.
+ @short Set the instance ( KInstance) for this part.
+ */
+ protected native void setInstance(KInstanceInterface instance);
+ /**
+ Set the instance ( KInstance) for this part.
+ Call this first in the inherited class constructor,
+ because it loads the i18n catalogues.
+ @short Set the instance ( KInstance) for this part.
+ */
+ protected native void setInstance(KInstanceInterface instance, boolean loadPlugins);
+ /**
+ Load the Plugins honoring the PluginLoadingMode.
+ If you call this method in an already constructed GUI (like when the user
+ has changed which plugins are enabled) you need to add the new plugins to
+ the KXMLGUIFactory:
+ <pre>
+ if( factory() )
+ {
+ QPtrList<KParts.Plugin> plugins = KParts.Plugin.pluginObjects( this );
+ QPtrListIterator<KParts.Plugin> it( plugins );
+ KParts.Plugin plugin;
+ while( ( plugin = it.current() ) != 0 )
+ {
+ ++it;
+ factory().addClient( plugin );
+ }
+ }
+ </pre>
+ @short Load the Plugins honoring the PluginLoadingMode.
+ */
+ protected native void loadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance);
+ /**
+ For a KParts.Part: call this before setInstance().
+ For a KParts.MainWindow: call this before createGUI().
+ @short For a KParts.Part: call this before setInstance().
+ */
+ // void setPluginLoadingMode(KParts::PartBase::PluginLoadingMode arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/Document.java b/kdejava/koala/org/kde/koala/Document.java
new file mode 100644
index 00000000..08acab8d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Document.java
@@ -0,0 +1,559 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ The <code>Document</code> interface represents the entire HTML or
+ XML document. Conceptually, it is the root of the document tree,
+ and provides the primary access to the document's data.
+ Since elements, text nodes, comments, processing instructions,
+ etc. cannot exist outside the context of a <code>Document</code>
+ , the <code>Document</code> interface also contains the factory
+ methods needed to create these objects. The <code>Node</code>
+ objects created have a <code>ownerDocument</code> attribute which
+ associates them with the <code>Document</code> within whose
+ context they were created.
+ @short The <code>Document</code> interface represents the entire HTML or XML document.
+
+*/
+public class Document extends Node {
+ protected Document(Class dummy){super((Class) null);}
+ public Document() {
+ super((Class) null);
+ newDocument();
+ }
+ private native void newDocument();
+ /**
+ don't create an implementation if false
+ use at own risk
+ @short don't create an implementation if false use at own risk
+ */
+ public Document(boolean arg1) {
+ super((Class) null);
+ newDocument(arg1);
+ }
+ private native void newDocument(boolean arg1);
+ public Document(Document other) {
+ super((Class) null);
+ newDocument(other);
+ }
+ private native void newDocument(Document other);
+ public Document(Node other) {
+ super((Class) null);
+ newDocument(other);
+ }
+ private native void newDocument(Node other);
+ /**
+ The Document Type Declaration (see <code>DocumentType</code>
+ ) associated with this document. For HTML documents as well as
+ XML documents without a document type declaration this returns
+ <code>null</code> . The DOM Level 1 does not support editing
+ the Document Type Declaration, therefore <code>docType</code>
+ cannot be altered in any way.
+ @short The Document Type Declaration (see <code>DocumentType</code> ) associated with this document.
+ */
+ public native DocumentType doctype();
+ /**
+ The <code>DOMImplementation</code> object that handles this
+ document. A DOM application may use objects from multiple
+ implementations.
+ @short The <code>DOMImplementation</code> object that handles this document.
+ */
+ public native DOMImplementation implementation();
+ /**
+ This is a convenience attribute that allows direct access to
+ the child node that is the root element of the document. For
+ HTML documents, this is the element with the tagName "HTML".
+ @short This is a convenience attribute that allows direct access to the child node that is the root element of the document.
+ */
+ public native Element documentElement();
+ /**
+ Creates an element of the type specified. Note that the
+ instance returned implements the Element interface, so
+ attributes can be specified directly on the returned object.
+ @param tagName The name of the element type to instantiate. For
+ XML, this is case-sensitive. For HTML, the <code>tagName</code>
+ parameter may be provided in any case, but it must be
+ mapped to the canonical uppercase form by the DOM
+ implementation.
+ @return A new <code>Element</code> object.
+
+ @short Creates an element of the type specified.
+ */
+ public native Element createElement(String tagName);
+ /**
+ Introduced in DOM Level 2
+ Creates an element of the given qualified name and namespace URI.
+ @param namespaceURI The namespace URI of the element to create.
+ @param qualifiedName The qualified name of the element type to instantiate.
+ @return A new Element object with the following attributes:
+
+ @short Introduced in DOM Level 2 Creates an element of the given qualified name and namespace URI.
+ */
+ public native Element createElementNS(String namespaceURI, String qualifiedName);
+ /**
+ Creates an empty <code>DocumentFragment</code> object.
+ @return A new <code>DocumentFragment</code> .
+
+ @short Creates an empty <code>DocumentFragment</code> object.
+ */
+ public native DocumentFragment createDocumentFragment();
+ /**
+ Creates a <code>Text</code> node given the specified string.
+ @param data The data for the node.
+ @return The new <code>Text</code> object.
+
+ @short Creates a <code>Text</code> node given the specified string.
+ */
+ public native Text createTextNode(String data);
+ /**
+ Creates a <code>Comment</code> node given the specified
+ string.
+ @param data The data for the node.
+ @return The new <code>Comment</code> object.
+
+ @short Creates a <code>Comment</code> node given the specified string.
+ */
+ public native Comment createComment(String data);
+ /**
+ Creates a <code>CDATASection</code> node whose value is the
+ specified string.
+ @param data The data for the <code>CDATASection</code>
+ contents.
+ @return The new <code>CDATASection</code> object.
+
+ @short Creates a <code>CDATASection</code> node whose value is the specified string.
+ */
+ public native CDATASection createCDATASection(String data);
+ /**
+ Creates a <code>ProcessingInstruction</code> node given the
+ specified name and data strings.
+ @param target The target part of the processing instruction.
+ @param data The data for the node.
+ NOT_SUPPORTED_ERR: Raised if this document is an HTML
+ document.
+ @return The new <code>ProcessingInstruction</code> object.
+
+ @short Creates a <code>ProcessingInstruction</code> node given the specified name and data strings.
+ */
+ public native ProcessingInstruction createProcessingInstruction(String target, String data);
+ /**
+ Creates an <code>Attr</code> of the given name. Note that the
+ <code>Attr</code> instance can then be set on an <code>Element</code>
+ using the <code>setAttribute</code> method.
+ @param name The name of the attribute.
+ @return A new <code>Attr</code> object.
+
+ @short Creates an <code>Attr</code> of the given name.
+ */
+ public native Attr createAttribute(String name);
+ /**
+ Introduced in DOM Level 2
+ Creates an attribute of the given qualified name and namespace URI.
+ HTML-only DOM implementations do not need to implement this method.
+ @param namespaceURI The namespace URI of the attribute to create.
+ @param qualifiedName The qualified name of the attribute to instantiate.
+ @return A new Attr object with the following attributes:
+ Node.nodeName - qualifiedName
+ Node.namespaceURI - namespaceURI
+ Node.prefix - prefix, extracted from qualifiedName, or null if there is
+ no prefix
+ Node.localName - local name, extracted from qualifiedName
+ Attr.name - qualifiedName
+ Node.nodeValue - the empty string
+
+ @short Introduced in DOM Level 2 Creates an attribute of the given qualified name and namespace URI.
+ */
+ public native Attr createAttributeNS(String namespaceURI, String qualifiedName);
+ /**
+ Creates an EntityReference object.
+ @param name The name of the entity to reference.
+ NOT_SUPPORTED_ERR: Raised if this document is an HTML
+ document.
+ @return The new <code>EntityReference</code> object.
+
+ @short Creates an EntityReference object.
+ */
+ public native EntityReference createEntityReference(String name);
+ /**
+ Moved from HTMLDocument in DOM Level 2
+ Returns the Element whose <code>id</code> is given by
+ elementId. If no such element exists, returns <code>null</code>
+ . Behavior is not defined if more than one element has
+ this <code>id</code> .
+ @param elementId The unique <code>id</code> value for an
+ element.
+ @return The matching element.
+
+ @short Moved from HTMLDocument in DOM Level 2 Returns the Element whose <code>id</code> is given by elementId.
+ */
+ public native Element getElementById(String elementId);
+ /**
+ No Exceptions.
+ Returns a <code>ArrayList</code> of all the <code>Element</code> 's
+ with a given tag name in the order in which they
+ would be encountered in a preorder traversal of the
+ <code>Document</code> tree.
+ @param tagname The name of the tag to match on. The special
+ value "*" matches all tags.
+ @return A new <code>NodeList</code> object containing all the
+ matched <code>Element</code> s.
+
+ @short No Exceptions.
+ */
+ public native ArrayList getElementsByTagName(String tagname);
+ /**
+ Introduced in DOM Level 2
+ No Exceptions
+ Returns an ArrayList of all the Elements with a given local name and
+ namespace URI in the order in which they are encountered in a preorder
+ traversal of the Document tree.
+ @param namespaceURI The namespace URI of the elements to match on. The
+ special value "*" matches all namespaces.
+ @param localName The local name of the elements to match on. The special
+ value "*" matches all local names.
+ @return A new NodeList object containing all the matched Elements.
+
+ @short Introduced in DOM Level 2 No Exceptions
+ */
+ public native ArrayList getElementsByTagNameNS(String namespaceURI, String localName);
+ /**
+ Introduced in DOM Level 2
+ Imports a node from another document to this document. The returned node
+ has no parent; (parentNode is null). The source node is not altered or
+ removed from the original document; this method creates a new copy of
+ the source node.
+ For all nodes, importing a node creates a node object owned by the
+ importing document, with attribute values identical to the source node's
+ nodeName and nodeType, plus the attributes related to namespaces
+ (prefix, localName, and namespaceURI).
+ As in the cloneNode operation on a Node, the source node is not altered.
+ Additional information is copied as appropriate to the nodeType,
+ attempting to mirror the behavior expected if a fragment of XML or HTML
+ source was copied from one document to another, recognizing that the two
+ documents may have different DTDs in the XML case. The following list
+ describes the specifics for each type of node.
+ ATTRIBUTE_NODE
+ The ownerElement attribute is set to null and the specified flag is set
+ to true on the generated Attr. The descendants of the source Attr are
+ recursively imported and the resulting nodes reassembled to form the
+ corresponding subtree. Note that the deep parameter has no effect on
+ Attr nodes; they always carry their children with them when imported.
+ DOCUMENT_FRAGMENT_NODE
+ If the deep option was set to true, the descendants of the source
+ element are recursively imported and the resulting nodes reassembled to
+ form the corresponding subtree. Otherwise, this simply generates an
+ empty DocumentFragment.
+ DOCUMENT_NODE
+ Document nodes cannot be imported.
+ DOCUMENT_TYPE_NODE
+ DocumentType nodes cannot be imported.
+ ELEMENT_NODE
+ Specified attribute nodes of the source element are imported, and the
+ generated Attr nodes are attached to the generated Element. Default
+ attributes are not copied, though if the document being imported into
+ defines default attributes for this element name, those are assigned. If
+ the importNode deep parameter was set to true, the descendants of the
+ source element are recursively imported and the resulting nodes
+ reassembled to form the corresponding subtree.
+ ENTITY_NODE
+ Entity nodes can be imported, however in the current release of the DOM
+ the DocumentType is readonly. Ability to add these imported nodes to a
+ DocumentType will be considered for addition to a future release of the
+ DOM.
+ On import, the publicId, systemId, and notationName attributes are
+ copied. If a deep import is requested, the descendants of the the source
+ Entity are recursively imported and the resulting nodes reassembled to
+ form the corresponding subtree.
+ ENTITY_REFERENCE_NODE Only the EntityReference itself is copied, even if
+ a deep import is requested, since the source and destination documents
+ might have defined the entity differently. If the document being
+ imported into provides a definition for this entity name, its value is
+ assigned.
+ NOTATION_NODE
+ Notation nodes can be imported, however in the current release of the
+ DOM the DocumentType is readonly. Ability to add these imported nodes to
+ a DocumentType will be considered for addition to a future release of
+ the DOM.
+ On import, the publicId and systemId attributes are copied.
+ Note that the deep parameter has no effect on Notation nodes since they
+ never have any children.
+ PROCESSING_INSTRUCTION_NODE
+ The imported node copies its target and data values from those of the
+ source node.
+ TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE
+ These three types of nodes inheriting from CharacterData copy their data
+ and length attributes from those of the source node.
+ @param importedNode The node to import.
+ @param deep If true, recursively import the subtree under the specified
+ node; if false, import only the node itself, as explained above. This
+ has no effect on Attr, EntityReference, and Notation nodes.
+ @return The imported node that belongs to this Document.
+
+ @short Introduced in DOM Level 2
+ */
+ public native Node importNode(Node importedNode, boolean deep);
+ /**
+ not part of the DOM
+ @short
+ */
+ public native boolean isHTMLDocument();
+ /**
+ Introduced in DOM Level 2
+ This method is from the DocumentRange interface
+ @return Range
+ The initial state of the Range returned from this method is such that
+ both of its boundary-points are positioned at the beginning of the
+ corresponding Document, before any content. The Range returned can only
+ be used to select content associated with this Document, or with
+ DocumentFragments and Attrs for which this Document is the ownerDocument.
+
+ @short Introduced in DOM Level 2 This method is from the DocumentRange interface
+ */
+ public native Range createRange();
+ /**
+ Introduced in DOM Level 2
+ This method is from the DocumentTraversal interface
+ Create a new NodeIterator over the subtree rooted at the specified node.
+ @param root The node which will be iterated together with its children.
+ The iterator is initially positioned just before this node. The
+ whatToShow flags and the filter, if any, are not considered when setting
+ this position. The root must not be null.
+ @param whatToShow This flag specifies which node types may appear in the
+ logical view of the tree presented by the iterator. See the description
+ of NodeFilter for the set of possible SHOW_ values. These flags can be
+ combined using OR.
+ @param filter The NodeFilter to be used with this NodeIterator, or null to
+ indicate no filter.
+ @param entityReferenceExpansion The value of this flag determines
+ whether entity reference nodes are expanded.
+ @return NodeIterator The newly created NodeIterator.
+
+ @short Introduced in DOM Level 2 This method is from the DocumentTraversal interface
+ */
+ public native NodeIterator createNodeIterator(Node root, long whatToShow, NodeFilter filter, boolean entityReferenceExpansion);
+ /**
+ Introduced in DOM Level 2
+ This method is from the DocumentTraversal interface
+ Create a new TreeWalker over the subtree rooted at the specified node.
+ @param root The node which will serve as the root for the TreeWalker.
+ The whatToShow flags and the NodeFilter are not considered when setting
+ this value; any node type will be accepted as the root. The currentNode
+ of the TreeWalker is initialized to this node, whether or not it is
+ visible. The root functions as a stopping point for traversal methods
+ that look upward in the document structure, such as parentNode and
+ nextNode. The root must not be null.
+ @param whatToShow This flag specifies which node types may appear in the
+ logical view of the tree presented by the tree-walker. See the
+ description of NodeFilter for the set of possible SHOW_ values. These
+ flags can be combined using OR.
+ @param filter The NodeFilter to be used with this TreeWalker, or null to
+ indicate no filter.
+ @param entityReferenceExpansion If this flag is false, the contents of
+ EntityReference nodes are not presented in the logical view.
+ @return The newly created TreeWalker.
+
+ @short Introduced in DOM Level 2 This method is from the DocumentTraversal interface
+ */
+ public native TreeWalker createTreeWalker(Node root, long whatToShow, NodeFilter filter, boolean entityReferenceExpansion);
+ /**
+ Introduced in DOM Level 2
+ This method is from the DocumentEvent interface
+ The createEvent method is used in creating Events when it is either
+ inconvenient or unnecessary for the user to create an Event themselves.
+ In cases where the implementation provided Event is insufficient, users
+ may supply their own Event implementations for use with the
+ dispatchEvent method.
+ @param eventType The eventType parameter specifies the type of Event
+ interface to be created. If the Event interface specified is supported
+ by the implementation this method will return a new Event of the
+ interface type requested. If the Event is to be dispatched via the
+ dispatchEvent method the appropriate event init method must be called
+ after creation in order to initialize the Event's values. As an example,
+ a user wishing to synthesize some kind of UIEvent would call createEvent
+ with the parameter "UIEvents". The initUIEvent method could then be
+ called on the newly created UIEvent to set the specific type of UIEvent
+ to be dispatched and set its context information.
+ @return The newly created EventExceptions
+
+ @short Introduced in DOM Level 2 This method is from the DocumentEvent interface
+ */
+ public native Event createEvent(String eventType);
+ /**
+ Introduced in DOM Level 2
+ This method is from the DocumentView interface
+ The default AbstractView for this Document, or null if none available.
+ @short Introduced in DOM Level 2 This method is from the DocumentView interface
+ */
+ public native AbstractView defaultView();
+ /**
+ Introduced in DOM Level 2
+ This method is from the DocumentStyle interface
+ A list containing all the style sheets explicitly linked into or
+ embedded in a document. For HTML documents, this includes external style
+ sheets, included via the HTML LINK element, and inline STYLE elements.
+ In XML, this includes external style sheets, included via style sheet
+ processing instructions (see [XML-StyleSheet]).
+ @short Introduced in DOM Level 2 This method is from the DocumentStyle interface
+ */
+ public native ArrayList styleSheets();
+ /**
+ CSS3 mechanism for selecting alternate stylesheets using the DOM.
+ Might change without further notice.
+ @short CSS3 mechanism for selecting alternate stylesheets using the DOM.
+ */
+ public native String preferredStylesheetSet();
+ public native String selectedStylesheetSet();
+ public native void setSelectedStylesheetSet(String aString);
+ /**
+ Adds a new style sheet to the list of style sheets.
+ The new style sheet will be applied after all author and implicit
+ style sheets, but before the user style sheet.
+ Create new style sheets with e. g.
+ <code>DOMImplementation</code>.createCSSStyleSheet
+ This is not part of the official DOM.
+ @param sheet style sheet
+ @short Adds a new style sheet to the list of style sheets.
+ */
+ public native void addStyleSheet(StyleSheet sheet);
+ /**
+ Removes a style sheet to the list of style sheets.
+ Only sheets added by <code>addStyleSheet</code> may be removed.
+ This is not part of the official DOM.
+ @param sheet style sheet to remove
+ @short Removes a style sheet to the list of style sheets.
+ */
+ public native void removeStyleSheet(StyleSheet sheet);
+ /**
+ @return The KHTML view widget of this document.
+
+ @short
+ */
+ public native KHTMLView view();
+ /**
+ Introduced in DOM Level 2
+ This method is from the DocumentCSS interface
+ This method is used to retrieve the override style declaration for a
+ specified element and a specified pseudo-element.
+ @param elt The element whose style is to be modified. This parameter
+ cannot be null.
+ @param pseudoElt The pseudo-element or null if none.
+ @return The override style declaration.
+
+ @short Introduced in DOM Level 2 This method is from the DocumentCSS interface
+ */
+ public native CSSStyleDeclaration getOverrideStyle(Element elt, String pseudoElt);
+ /**
+ Introduced in DOM Level 3
+ This method is from the DocumentLS interface
+ Indicates whether the method DocumentLS.load() should be synchronous or
+ asynchronous. When the async attribute is set to true the load method
+ returns control to the caller before the document has completed loading.
+ The default value of this attribute is true.
+ @short Introduced in DOM Level 3 This method is from the DocumentLS interface
+ */
+ public native boolean async();
+ /**
+ Introduced in DOM Level 3
+ This method is from the DocumentLS interface
+ see async
+ @short Introduced in DOM Level 3 This method is from the DocumentLS interface
+ */
+ public native void setAsync(boolean arg1);
+ /**
+ Introduced in DOM Level 3
+ This method is from the DocumentLS interface
+ If the document is currently being loaded as a result of the method load
+ being invoked the loading and parsing is immediately aborted. The
+ possibly partial result of parsing the document is discarded and the
+ document is cleared.
+ @short Introduced in DOM Level 3 This method is from the DocumentLS interface
+ */
+ public native void abort();
+ /**
+ Introduced in DOM Level 3
+ This method is from the DocumentLS interface
+ Replaces the content of the document with the result of parsing the
+ given URI. Invoking this method will either block the caller or return
+ to the caller immediately depending on the value of the async attribute.
+ Once the document is fully loaded a "load" event (as defined in
+ [DOM Level 3 Events], except that the Event.targetNode will be the
+ document, not an element) will be dispatched on the document. If an
+ error occurs, an implementation dependent "error" event will be
+ dispatched on the document. If this method is called on a document that
+ is currently loading, the current load is interrupted and the new URI
+ load is initiated.
+ When invoking this method the parameters used in the DOMParser interface
+ are assumed to have their default values with the exception that the
+ parameters "entities", "normalize-characters",
+ "check-character-normalization" are set to "false".
+ The result of a call to this method is the same the result of a call to
+ DOMParser.parseWithContext with an input stream referencing the URI that
+ was passed to this call, the document as the context node, and the
+ action ACTION_REPLACE_CHILDREN.
+ @param uri of type DOMString
+ The URI reference for the XML file to be loaded. If this is a relative
+ URI, the base URI used by the implementation is implementation dependent.
+ @return If async is set to true load returns true if the document load
+ was successfully initiated. If an error occurred when initiating the
+ document load, load returns false.
+ If async is set to false load returns true if the document was
+ successfully loaded and parsed. If an error occurred when either loading
+ or parsing the URI, load returns false.
+
+ @short Introduced in DOM Level 3 This method is from the DocumentLS interface
+ */
+ public native void load(String uri);
+ /**
+ Introduced in DOM Level 3
+ This method is from the DocumentLS interface
+ Replace the content of the document with the result of parsing the input
+ string, this method is always synchronous. This method always parses
+ from a DOMString, which means the data is always UTF-16. All other
+ encoding information is ignored.
+ The parameters used in the DOMParser interface are assumed to have their
+ default values when invoking this method.
+ The result of a call to this method is the same as the result of a call
+ to DOMParser.parseWithContext with an input stream containing the string
+ passed to this call, the document as the context node, and the action
+ ACTION_REPLACE_CHILDREN.
+ @param source A string containing an XML document.
+ @short Introduced in DOM Level 3 This method is from the DocumentLS interface
+ */
+ public native void loadXML(String source);
+ /**
+ not part of the official DOM
+ Documents are read-only by default, but they can be made editable by
+ entering "design mode".
+ @return whether this document is in design mode.
+
+ @short not part of the official DOM
+ */
+ public native boolean designMode();
+ /**
+ not part of the official DOM
+ @param enable <code>true</code> to enable design mode, <code>false</code> to disable.
+ @short not part of the official DOM
+ @see #designMode
+ */
+ public native void setDesignMode(boolean enable);
+ /**
+ not part of the DOM
+ completes a given URL
+ @short not part of the DOM
+ */
+ public native String completeURL(String url);
+ public native String toString();
+ /**
+ not part of the DOM
+ Updates the rendered display after one or more changes to
+ the DOM structure
+ @short not part of the DOM
+ */
+ public native void updateRendering();
+ // DOM::Document* Document(DOM::DocumentImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/DocumentFragment.java b/kdejava/koala/org/kde/koala/DocumentFragment.java
new file mode 100644
index 00000000..7f3b5201
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DocumentFragment.java
@@ -0,0 +1,66 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ <code>DocumentFragment</code> is a "lightweight" or "minimal"
+ <code>Document</code> object. It is very common to want to be
+ able to extract a portion of a document's tree or to create a new
+ fragment of a document. Imagine implementing a user command like
+ cut or rearranging a document by moving fragments around. It is
+ desirable to have an object which can hold such fragments and it is
+ quite natural to use a Node for this purpose. While it is true that
+ a <code>Document</code> object could fulfil this role, a
+ <code>Document</code> object can potentially be a heavyweight object,
+ depending on the underlying implementation. What is really needed
+ for this is a very lightweight object. <code>DocumentFragment</code>
+ is such an object.
+ Furthermore, various operations -- such as inserting nodes as
+ children of another <code>Node</code> -- may take
+ <code>DocumentFragment</code> objects as arguments; this results in all
+ the child nodes of the <code>DocumentFragment</code> being moved
+ to the child list of this node.
+ The children of a <code>DocumentFragment</code> node are zero or
+ more nodes representing the tops of any sub-trees defining the
+ structure of the document. <code>DocumentFragment</code> nodes do
+ not need to be well-formed XML documents (although they do need to
+ follow the rules imposed upon well-formed XML parsed entities,
+ which can have multiple top nodes). For example, a
+ <code>DocumentFragment</code> might have only one child and that child
+ node could be a <code>Text</code> node. Such a structure model
+ represents neither an HTML document nor a well-formed XML document.
+ When a <code>DocumentFragment</code> is inserted into a
+ <code>Document</code> (or indeed any other <code>Node</code> that may
+ take children) the children of the <code>DocumentFragment</code>
+ and not the <code>DocumentFragment</code> itself are inserted
+ into the <code>Node</code> . This makes the
+ <code>DocumentFragment</code> very useful when the user wishes to create
+ nodes that are siblings; the <code>DocumentFragment</code> acts
+ as the parent of these nodes so that the user can use the standard
+ methods from the <code>Node</code> interface, such as
+ <code>insertBefore</code>() and <code>appendChild</code>() .
+ @short <code>DocumentFragment</code> is a "lightweight" or "minimal" <code>Document</code> object.
+
+*/
+public class DocumentFragment extends Node {
+ protected DocumentFragment(Class dummy){super((Class) null);}
+ public DocumentFragment() {
+ super((Class) null);
+ newDocumentFragment();
+ }
+ private native void newDocumentFragment();
+ public DocumentFragment(DocumentFragment other) {
+ super((Class) null);
+ newDocumentFragment(other);
+ }
+ private native void newDocumentFragment(DocumentFragment other);
+ public DocumentFragment(Node other) {
+ super((Class) null);
+ newDocumentFragment(other);
+ }
+ private native void newDocumentFragment(Node other);
+ // DOM::DocumentFragment* DocumentFragment(DOM::DocumentFragmentImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/DocumentStyle.java b/kdejava/koala/org/kde/koala/DocumentStyle.java
new file mode 100644
index 00000000..e67faa7f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DocumentStyle.java
@@ -0,0 +1,30 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+
+*/
+public class DocumentStyle implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected DocumentStyle(Class dummy){}
+
+ public DocumentStyle() {
+ newDocumentStyle();
+ }
+ private native void newDocumentStyle();
+ public DocumentStyle(DocumentStyle other) {
+ newDocumentStyle(other);
+ }
+ private native void newDocumentStyle(DocumentStyle other);
+ public native ArrayList styleSheets();
+ public native String preferredStylesheetSet();
+ public native String selectedStylesheetSet();
+ public native void setSelectedStylesheetSet(String aString);
+ public native boolean isNull();
+}
diff --git a/kdejava/koala/org/kde/koala/DocumentType.java b/kdejava/koala/org/kde/koala/DocumentType.java
new file mode 100644
index 00000000..95d68909
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DocumentType.java
@@ -0,0 +1,89 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Each <code>Document</code> has a <code>doctype</code> attribute
+ whose value is either <code>null</code> or a <code>DocumentType</code>
+ object. The <code>DocumentType</code> interface in the
+ DOM Level 1 Core provides an interface to the list of entities that
+ are defined for the document, and little else because the effect of
+ namespaces and the various XML scheme efforts on DTD representation
+ are not clearly understood as of this writing.
+ The DOM Level 1 doesn't support editing <code>DocumentType</code>
+ nodes.
+ @short Each <code>Document</code> has a <code>doctype</code> attribute whose value is either <code>null</code> or a <code>DocumentType</code> object.
+
+*/
+public class DocumentType extends Node {
+ protected DocumentType(Class dummy){super((Class) null);}
+ public DocumentType() {
+ super((Class) null);
+ newDocumentType();
+ }
+ private native void newDocumentType();
+ public DocumentType(DocumentType other) {
+ super((Class) null);
+ newDocumentType(other);
+ }
+ private native void newDocumentType(DocumentType other);
+ public DocumentType(Node other) {
+ super((Class) null);
+ newDocumentType(other);
+ }
+ private native void newDocumentType(Node other);
+ /**
+ The name of DTD; i.e., the name immediately following the
+ <code>DOCTYPE</code> keyword.
+ @short The name of DTD; i.
+ */
+ public native String name();
+ /**
+ A <code>NamedNodeMap</code> containing the general entities,
+ both external and internal, declared in the DTD. Duplicates are
+ discarded. For example in: &lt;!DOCTYPE ex SYSTEM "ex.dtd" [
+ &lt;!ENTITY foo "foo"> &lt;!ENTITY bar "bar"> &lt;!ENTITY % baz
+ "baz"> ]> &lt;ex/> the interface provides access to <code>foo</code>
+ and <code>bar</code> but not <code>baz</code> .
+ Every node in this map also implements the <code>Entity</code>
+ interface.
+ The DOM Level 1 does not support editing entities, therefore
+ <code>entities</code> cannot be altered in any way.
+ @short A <code>NamedNodeMap</code> containing the general entities, both external and internal, declared in the DTD.
+ */
+ public native NamedNodeMap entities();
+ /**
+ A <code>NamedNodeMap</code> containing the notations declared
+ in the DTD. Duplicates are discarded. Every node in this map
+ also implements the <code>Notation</code> interface.
+ The DOM Level 1 does not support editing notations, therefore
+ <code>notations</code> cannot be altered in any way.
+ @short A <code>NamedNodeMap</code> containing the notations declared in the DTD.
+ */
+ public native NamedNodeMap notations();
+ /**
+ Introduced in DOM Level 2
+ The public identifier of the external subset.
+ @short Introduced in DOM Level 2
+ */
+ public native String publicId();
+ /**
+ Introduced in DOM Level 2
+ The system identifier of the external subset.
+ @short Introduced in DOM Level 2
+ */
+ public native String systemId();
+ /**
+ Introduced in DOM Level 2
+ The internal subset as a string.
+ Note: The actual content returned depends on how much information is
+ available to the implementation. This may vary depending on various
+ parameters, including the XML processor used to build the document.
+ @short Introduced in DOM Level 2
+ */
+ public native String internalSubset();
+ // DOM::DocumentType* DocumentType(DOM::DocumentTypeImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/DomShared.java b/kdejava/koala/org/kde/koala/DomShared.java
new file mode 100644
index 00000000..5bbc6078
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/DomShared.java
@@ -0,0 +1,25 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+
+*/
+public class DomShared implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected DomShared(Class dummy){}
+
+ public DomShared() {
+ newDomShared();
+ }
+ private native void newDomShared();
+ public native boolean deleteMe();
+ public native void ref();
+ public native void deref();
+ public native boolean hasOneRef();
+ public native int refCount();
+}
diff --git a/kdejava/koala/org/kde/koala/Element.java b/kdejava/koala/org/kde/koala/Element.java
new file mode 100644
index 00000000..4edb66e3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Element.java
@@ -0,0 +1,326 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ By far the vast majority of objects (apart from text) that authors
+ encounter when traversing a document are <code>Element</code>
+ nodes. Assume the following XML document: &lt;elementExample
+ id=&quot;demo&quot;&gt; &lt;subelement1/&gt;
+ &lt;subelement2&gt;&lt;subsubelement/&gt;&lt;/subelement2&gt;
+ &lt;/elementExample&gt;
+ When represented using DOM, the top node is an <code>Element</code>
+ node for &quot;elementExample&quot;, which contains two
+ child <code>Element</code> nodes, one for &quot;subelement1&quot;
+ and one for &quot;subelement2&quot;. &quot;subelement1&quot;
+ contains no child nodes.
+ Elements may have attributes associated with them; since the
+ <code>Element</code> interface inherits from <code>Node</code>
+ , the generic <code>Node</code> interface method
+ <code>getAttributes</code> may be used to retrieve the set of all
+ attributes for an element. There are methods on the <code>Element</code>
+ interface to retrieve either an <code>Attr</code> object
+ by name or an attribute value by name. In XML, where an attribute
+ value may contain entity references, an <code>Attr</code> object
+ should be retrieved to examine the possibly fairly complex sub-tree
+ representing the attribute value. On the other hand, in HTML, where
+ all attributes have simple string values, methods to directly
+ access an attribute value can safely be used as a convenience.
+ @short By far the vast majority of objects (apart from text) that authors encounter when traversing a document are <code>Element</code> nodes.
+
+*/
+public class Element extends Node {
+ protected Element(Class dummy){super((Class) null);}
+ public Element() {
+ super((Class) null);
+ newElement();
+ }
+ private native void newElement();
+ public Element(Node other) {
+ super((Class) null);
+ newElement(other);
+ }
+ private native void newElement(Node other);
+ public Element(Element other) {
+ super((Class) null);
+ newElement(other);
+ }
+ private native void newElement(Element other);
+ /**
+ The name of the element. For example, in: &lt;elementExample
+ id=&quot;demo&quot;&gt; ... &lt;/elementExample&gt; ,
+ <code>tagName</code> has the value <code>&quot;elementExample&quot;</code>
+ . Note that this is case-preserving in XML, as are all
+ of the operations of the DOM. The HTML DOM returns the
+ <code>tagName</code> of an HTML element in the canonical uppercase
+ form, regardless of the case in the source HTML document.
+ @short The name of the element.
+ */
+ public native String tagName();
+ /**
+ Retrieves an attribute value by name.
+ @param name The name of the attribute to retrieve.
+ @return The <code>Attr</code> value as a string, or the empty
+ string if that attribute does not have a specified or default
+ value.
+
+ @short Retrieves an attribute value by name.
+ */
+ public native String getAttribute(String name);
+ /**
+ Adds a new attribute. If an attribute with that name is already
+ present in the element, its value is changed to be that of the
+ value parameter. This value is a simple string, it is not
+ parsed as it is being set. So any markup (such as syntax to be
+ recognized as an entity reference) is treated as literal text,
+ and needs to be appropriately escaped by the implementation
+ when it is written out. In order to assign an attribute value
+ that contains entity references, the user must create an
+ <code>Attr</code> node plus any <code>Text</code> and
+ <code>EntityReference</code> nodes, build the appropriate subtree,
+ and use <code>setAttributeNode</code> to assign it as the
+ value of an attribute.
+ @param name The name of the attribute to create or alter.
+ @param value Value to set in string form.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
+ @short Adds a new attribute.
+ */
+ public native void setAttribute(String name, String value);
+ /**
+ Removes an attribute by name. If the removed attribute has a
+ default value it is immediately replaced.
+ @param name The name of the attribute to remove.
+ @short Removes an attribute by name.
+ */
+ public native void removeAttribute(String name);
+ /**
+ Retrieves an <code>Attr</code> node by name.
+ @param name The name of the attribute to retrieve.
+ @return The <code>Attr</code> node with the specified
+ attribute name or <code>null</code> if there is no such
+ attribute.
+
+ @short Retrieves an <code>Attr</code> node by name.
+ */
+ public native Attr getAttributeNode(String name);
+ /**
+ Adds a new attribute. If an attribute with that name is already
+ present in the element, it is replaced by the new one.
+ @param newAttr The <code>Attr</code> node to add to the
+ attribute list.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
+ INUSE_ATTRIBUTE_ERR: Raised if <code>newAttr</code> is
+ already an attribute of another <code>Element</code> object.
+ The DOM user must explicitly clone <code>Attr</code> nodes to
+ re-use them in other elements.
+ @return If the <code>newAttr</code> attribute replaces an
+ existing attribute with the same name, the previously existing
+ <code>Attr</code> node is returned, otherwise <code>null</code>
+ is returned.
+
+ @short Adds a new attribute.
+ */
+ public native Attr setAttributeNode(Attr newAttr);
+ /**
+ Removes the specified attribute.
+ @param oldAttr The <code>Attr</code> node to remove from the
+ attribute list. If the removed <code>Attr</code> has a
+ default value it is immediately replaced.
+ NOT_FOUND_ERR: Raised if <code>oldAttr</code> is not an
+ attribute of the element.
+ @return The <code>Attr</code> node that was removed.
+
+ @short Removes the specified attribute.
+ */
+ public native Attr removeAttributeNode(Attr oldAttr);
+ /**
+ Returns a <code>ArrayList</code> of all descendant elements
+ with a given tag name, in the order in which they would be
+ encountered in a preorder traversal of the <code>Element</code>
+ tree.
+ @param name The name of the tag to match on. The special value
+ "*" matches all tags.
+ @return A list of matching <code>Element</code> nodes.
+
+ @short Returns a <code>NodeList</code> of all descendant elements with a given tag name, in the order in which they would be encountered in a preorder traversal of the <code>Element</code> tree.
+ */
+ public native ArrayList getElementsByTagName(String name);
+ /**
+ Introduced in DOM Level 2
+ Returns an ArrayList of all the descendant Elements with a given local
+ name and namespace URI in the order in which they are encountered in a
+ preorder traversal of this Element tree.
+ @param namespaceURI The namespace URI of the elements to match on. The
+ special value "*" matches all namespaces.
+ @param localName The local name of the elements to match on. The special
+ value "*" matches all local names.
+ @return A new NodeList object containing all the matched Elements.
+
+ @short Introduced in DOM Level 2 Returns a NodeList of all the descendant Elements with a given local name and namespace URI in the order in which they are encountered in a preorder traversal of this Element tree.
+ */
+ public native ArrayList getElementsByTagNameNS(String namespaceURI, String localName);
+ /**
+ Introduced in DOM Level 2.
+ No Exceptions.
+ Retrieves an attribute value by local name and namespace URI. HTML-only
+ DOM implementations do not need to implement this method.
+ @param namespaceURI The namespace URI of the attribute to retrieve.
+ @param localName The local name of the attribute to retrieve.
+ @return The Attr value as a string, or the empty string if that
+ attribute does not have a specified or default value.
+
+ @short Introduced in DOM Level 2.
+ */
+ public native String getAttributeNS(String namespaceURI, String localName);
+ /**
+ Introduced in DOM Level 2
+ Adds a new attribute. If an attribute with the same local name and
+ namespace URI is already present on the element, its prefix is changed
+ to be the prefix part of the qualifiedName, and its value is changed to
+ be the value parameter. This value is a simple string; it is not parsed
+ as it is being set. So any markup (such as syntax to be recognized as an
+ entity reference) is treated as literal text, and needs to be
+ appropriately escaped by the implementation when it is written out. In
+ order to assign an attribute value that contains entity references, the
+ user must create an Attr node plus any Text and EntityReference nodes,
+ build the appropriate subtree, and use setAttributeNodeNS or
+ setAttributeNode to assign it as the value of an attribute.
+ HTML-only DOM implementations do not need to implement this method.
+ @param namespaceURI The namespace URI of the attribute to create or
+ alter.
+ @param qualifiedName The qualified name of the attribute to create or
+ alter.
+ @param value The value to set in string form.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
+ NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the
+ qualifiedName has a prefix and the namespaceURI is null, if the
+ qualifiedName has a prefix that is "xml" and the namespaceURI is
+ different from "http://www.w3.org/XML/1998/namespace", or if the
+ qualifiedName is "xmlns" and the namespaceURI is different from
+ "http://www.w3.org/2000/xmlns/".
+ @short Introduced in DOM Level 2
+ */
+ public native void setAttributeNS(String namespaceURI, String qualifiedName, String value);
+ /**
+ Introduced in DOM Level 2
+ Removes an attribute by local name and namespace URI. If the removed
+ attribute has a default value it is immediately replaced. The replacing
+ attribute has the same namespace URI and local name, as well as the
+ original prefix.
+ HTML-only DOM implementations do not need to implement this method.
+ @param namespaceURI The namespace URI of the attribute to remove.
+ @param localName The local name of the attribute to remove.
+ @short Introduced in DOM Level 2
+ */
+ public native void removeAttributeNS(String namespaceURI, String localName);
+ /**
+ Introduced in DOM Level 2
+ Retrieves an Attr node by local name and namespace URI. HTML-only DOM
+ implementations do not need to implement this method.
+ @param namespaceURI The namespace URI of the attribute to retrieve.
+ @param localName The local name of the attribute to retrieve.
+ @return The Attr node with the specified attribute local name and
+ namespace URI or null if there is no such attribute.
+
+ @short Introduced in DOM Level 2
+ */
+ public native Attr getAttributeNodeNS(String namespaceURI, String localName);
+ /**
+ Introduced in DOM Level 2
+ Adds a new attribute. If an attribute with that local name and that
+ namespace URI is already present in the element, it is replaced by the
+ new one.
+ HTML-only DOM implementations do not need to implement this method.
+ @param newAttr The Attr node to add to the attribute list.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
+ INUSE_ATTRIBUTE_ERR: Raised if newAttr is already an attribute of
+ another Element object. The DOM user must explicitly clone Attr nodes to
+ re-use them in other elements.
+ @return If the newAttr attribute replaces an existing attribute with the
+ same local name and namespace URI, the replaced Attr node is returned,
+ otherwise null is returned.
+
+ @short Introduced in DOM Level 2
+ */
+ public native Attr setAttributeNodeNS(Attr newAttr);
+ /**
+ Returns true when an attribute with a given name is specified on this
+ element or has a default value, false otherwise.
+ Introduced in DOM Level 2.
+ @param name The name of the attribute to look for.
+ @return true if an attribute with the given name is specified on this
+ element or has a default value, false otherwise.
+
+ @short Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.
+ */
+ public native boolean hasAttribute(String name);
+ /**
+ Introduced in DOM Level 2
+ Returns true when an attribute with a given local name and namespace URI
+ is specified on this element or has a default value, false otherwise.
+ HTML-only DOM implementations do not need to implement this method.
+ @param namespaceURI The namespace URI of the attribute to look for.
+ @param localName The local name of the attribute to look for.
+ @return true if an attribute with the given local name and namespace URI
+ is specified or has a default value on this element, false otherwise.
+
+ @short Introduced in DOM Level 2
+ */
+ public native boolean hasAttributeNS(String namespaceURI, String localName);
+ /**
+ Introduced in DOM Level 2
+ This method is from the CSSStyleDeclaration interface
+ The style attribute
+ @short Introduced in DOM Level 2 This method is from the CSSStyleDeclaration interface
+ */
+ public native CSSStyleDeclaration style();
+ /**
+ not part of the official DOM
+ This method will always reflect the editability setting of this
+ element as specified by a direct or indirect (that means, inherited)
+ assignment to contentEditable or the respective CSS rule, even if
+ design mode is active.
+ @return whether this element is editable.
+
+ @short not part of the official DOM
+ @see #setContentEditable
+ */
+ public native boolean contentEditable();
+ /**
+ not part of the official DOM
+ This element can be made editable by setting its contentEditable
+ property to <code>true.</code> The setting will be inherited to its children
+ as well.
+ Setting or clearing contentEditable when design mode is active will
+ take no effect. However, its status will still be propagated to all
+ child elements.
+ @param enabled <code>true</code> to make this element editable, <code>false</code>
+ otherwise.
+ @short not part of the official DOM
+ @see Document#designMode
+ */
+ public native void setContentEditable(boolean enabled);
+ /**
+ not part of the DOM
+ @short
+ */
+ public native boolean isHTMLElement();
+ /**
+ KHTML extension to DOM
+ This method returns the associated form element.
+ returns null if this element is not a form-like element
+ or if this elment is not in the scope of a form element.
+ @short KHTML extension to DOM This method returns the associated form element.
+ */
+ public native Element form();
+ public static native boolean khtmlValidAttrName(String name);
+ public static native boolean khtmlValidPrefix(String name);
+ public static native boolean khtmlValidQualifiedName(String name);
+ public static native boolean khtmlMalformedQualifiedName(String name);
+ public static native boolean khtmlMalformedPrefix(String name);
+ // DOM::Element* Element(DOM::ElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/Entity.java b/kdejava/koala/org/kde/koala/Entity.java
new file mode 100644
index 00000000..ae027275
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Entity.java
@@ -0,0 +1,78 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This interface represents an entity, either parsed or unparsed, in
+ an XML document. Note that this models the entity itself not the
+ entity declaration. <code>Entity</code> declaration modeling has
+ been left for a later Level of the DOM specification.
+ The <code>nodeName</code> attribute that is inherited from
+ <code>Node</code> contains the name of the entity.
+ An XML processor may choose to completely expand entities before
+ the structure model is passed to the DOM; in this case there will
+ be no <code>EntityReference</code> nodes in the document tree.
+ XML does not mandate that a non-validating XML processor read and
+ process entity declarations made in the external subset or declared
+ in external parameter entities. This means that parsed entities
+ declared in the external subset need not be expanded by some
+ classes of applications, and that the replacement value of the
+ entity may not be available. When the replacement value is
+ available, the corresponding <code>Entity</code> node's child
+ list represents the structure of that replacement text. Otherwise,
+ the child list is empty.
+ The resolution of the children of the <code>Entity</code> (the
+ replacement value) may be lazily evaluated; actions by the user
+ (such as calling the <code>childNodes</code> method on the
+ <code>Entity</code> Node) are assumed to trigger the evaluation.
+ The DOM Level 1 does not support editing <code>Entity</code>
+ nodes; if a user wants to make changes to the contents of an
+ <code>Entity</code> , every related <code>EntityReference</code> node
+ has to be replaced in the structure model by a clone of the
+ <code>Entity</code> 's contents, and then the desired changes must be
+ made to each of those clones instead. All the descendants of an
+ <code>Entity</code> node are readonly.
+ An <code>Entity</code> node does not have any parent.
+ @short This interface represents an entity, either parsed or unparsed, in an XML document.
+
+*/
+public class Entity extends Node {
+ protected Entity(Class dummy){super((Class) null);}
+ public Entity() {
+ super((Class) null);
+ newEntity();
+ }
+ private native void newEntity();
+ public Entity(Entity other) {
+ super((Class) null);
+ newEntity(other);
+ }
+ private native void newEntity(Entity other);
+ public Entity(Node other) {
+ super((Class) null);
+ newEntity(other);
+ }
+ private native void newEntity(Node other);
+ /**
+ The public identifier associated with the entity, if specified.
+ If the public identifier was not specified, this is <code>null</code> .
+ @short The public identifier associated with the entity, if specified.
+ */
+ public native String publicId();
+ /**
+ The system identifier associated with the entity, if specified.
+ If the system identifier was not specified, this is <code>null</code> .
+ @short The system identifier associated with the entity, if specified.
+ */
+ public native String systemId();
+ /**
+ For unparsed entities, the name of the notation for the entity.
+ For parsed entities, this is <code>null</code> .
+ @short For unparsed entities, the name of the notation for the entity.
+ */
+ public native String notationName();
+ // DOM::Entity* Entity(DOM::EntityImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/EntityReference.java b/kdejava/koala/org/kde/koala/EntityReference.java
new file mode 100644
index 00000000..8704755f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/EntityReference.java
@@ -0,0 +1,52 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ <code>EntityReference</code> objects may be inserted into the
+ structure model when an entity reference is in the source document,
+ or when the user wishes to insert an entity reference. Note that
+ character references and references to predefined entities are
+ considered to be expanded by the HTML or XML processor so that
+ characters are represented by their Unicode equivalent rather than
+ by an entity reference. Moreover, the XML processor may completely
+ expand references to entities while building the structure model,
+ instead of providing <code>EntityReference</code> objects. If it
+ does provide such objects, then for a given <code>EntityReference</code>
+ node, it may be that there is no <code>Entity</code> node
+ representing the referenced entity; but if such an <code>Entity</code>
+ exists, then the child list of the <code>EntityReference</code>
+ node is the same as that of the <code>Entity</code> node.
+ As with the <code>Entity</code> node, all descendants of the
+ <code>EntityReference</code> are readonly.
+ The resolution of the children of the <code>EntityReference</code>
+ (the replacement value of the referenced <code>Entity</code>
+ ) may be lazily evaluated; actions by the user (such as
+ calling the <code>childNodes</code> method on the
+ <code>EntityReference</code> node) are assumed to trigger the
+ evaluation.
+ @short <code>EntityReference</code> objects may be inserted into the structure model when an entity reference is in the source document, or when the user wishes to insert an entity reference.
+
+*/
+public class EntityReference extends Node {
+ protected EntityReference(Class dummy){super((Class) null);}
+ public EntityReference() {
+ super((Class) null);
+ newEntityReference();
+ }
+ private native void newEntityReference();
+ public EntityReference(EntityReference other) {
+ super((Class) null);
+ newEntityReference(other);
+ }
+ private native void newEntityReference(EntityReference other);
+ public EntityReference(Node other) {
+ super((Class) null);
+ newEntityReference(other);
+ }
+ private native void newEntityReference(Node other);
+ // DOM::EntityReference* EntityReference(DOM::EntityReferenceImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/Event.java b/kdejava/koala/org/kde/koala/Event.java
new file mode 100644
index 00000000..7fc05e7c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Event.java
@@ -0,0 +1,25 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QEvent;
+import org.kde.qt.QCustomEvent;
+
+/**
+
+ Base class for all KParts events.
+ @short Base class for all KParts events.
+
+*/
+public class Event extends QCustomEvent {
+ protected Event(Class dummy){super((Class) null);}
+ public Event(String eventName) {
+ super((Class) null);
+ newEvent(eventName);
+ }
+ private native void newEvent(String eventName);
+ public native String eventName();
+ public static native boolean test(QEvent event);
+ public static native boolean test(QEvent event, String name);
+}
diff --git a/kdejava/koala/org/kde/koala/EventException.java b/kdejava/koala/org/kde/koala/EventException.java
new file mode 100644
index 00000000..e5630dc7
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/EventException.java
@@ -0,0 +1,28 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Introduced in DOM Level 2:
+ Event operations may throw an EventException as specified in their method
+ descriptions.
+ @short Introduced in DOM Level 2:
+
+*/
+public class EventException implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected EventException(Class dummy){}
+
+ public EventException(short _code) {
+ newEventException(_code);
+ }
+ private native void newEventException(short _code);
+ public EventException(EventException other) {
+ newEventException(other);
+ }
+ private native void newEventException(EventException other);
+}
diff --git a/kdejava/koala/org/kde/koala/EventListener.java b/kdejava/koala/org/kde/koala/EventListener.java
new file mode 100644
index 00000000..a6fecfa0
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/EventListener.java
@@ -0,0 +1,45 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Introduced in DOM Level 2
+ The EventListener interface is the primary method for handling events.
+ Users implement the EventListener interface and register their listener on
+ an EventTarget using the AddEventListener method. The users should also
+ remove their EventListener from its EventTarget after they have completed
+ using the listener.
+ When a Node is copied using the cloneNode method the EventListeners attached
+ to the source Node are not attached to the copied Node. If the user wishes
+ the same EventListeners to be added to the newly created copy the user must
+ add them manually.
+ @short Introduced in DOM Level 2
+
+*/
+public class EventListener extends DomShared {
+ protected EventListener(Class dummy){super((Class) null);}
+ public EventListener() {
+ super((Class) null);
+ newEventListener();
+ }
+ private native void newEventListener();
+ /**
+ This method is called whenever an event occurs of the type for which the
+ EventListener interface was registered. Parameters
+ @param evt The Event contains contextual information about the event. It
+ also contains the stopPropagation and preventDefault methods which are
+ used in determining the event's flow and default action.
+ @short This method is called whenever an event occurs of the type for which the EventListener interface was registered.
+ */
+ public native void handleEvent(Event evt);
+ /**
+ not part of the DOM
+ Returns a name specifying the type of listener. Useful for checking
+ if an event is of a particular sublass.
+ @short
+ */
+ public native String eventListenerType();
+}
diff --git a/kdejava/koala/org/kde/koala/Factory.java b/kdejava/koala/org/kde/koala/Factory.java
new file mode 100644
index 00000000..f5f2d32e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Factory.java
@@ -0,0 +1,72 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QWidget;
+
+/**
+
+ A generic factory object to create a Part.
+ Factory is an abstract class. Reimplement the
+ createPartObject() method to give it functionality.
+ @short A generic factory object to create a Part.
+ @see KLibFactory#
+
+*/
+public class Factory extends KLibFactory {
+ protected Factory(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a part.
+ The ArrayList can be used to pass additional arguments to the part.
+ If the part needs additional arguments, it should take them as
+ name="value" pairs. This is the way additional arguments will get passed
+ to the part from eg. khtml. You can for example embed the part into HTML
+ by using the following code:
+ <pre>
+ <object type="my_mimetype" data="url_to_my_data">
+ <param name="name1" value="value1">
+ <param name="name2" value="value2">
+ </object>
+ </pre>
+ This could result in a call to
+ <pre>
+ createPart( parentWidget, name, parentObject, parentName, "KParts.Part",
+ ArrayList("name1="value1"", "name2="value2") );
+ </pre>
+ createPart() automatically emits a signal KLibFactory.objectCreated to tell
+ the library about its newly created object. This is very
+ important for reference counting, and allows unloading the
+ library automatically once all its objects have been destroyed.
+ @return the newly created part.
+
+ @short Creates a part.
+ */
+ public native Part createPart(QWidget parentWidget, String widgetName, QObject parent, String name, String classname, String[] args);
+ public native Part createPart(QWidget parentWidget, String widgetName, QObject parent, String name, String classname);
+ public native Part createPart(QWidget parentWidget, String widgetName, QObject parent, String name);
+ public native Part createPart(QWidget parentWidget, String widgetName, QObject parent);
+ public native Part createPart(QWidget parentWidget, String widgetName);
+ public native Part createPart(QWidget parentWidget);
+ public native Part createPart();
+ /**
+ If you have a part contained in a shared library you might want to query
+ for meta-information like the about-data, or the KInstance in general.
+ If the part is exported using KParts.GenericFactory then this method will
+ return the instance that belongs to the part without the need to instantiate
+ the part component.
+ @short If you have a part contained in a shared library you might want to query for meta-information like the about-data, or the KInstance in general.
+ */
+ public native KInstanceInterface partInstance();
+ /**
+ A convenience method for partInstance() that takes care of retrieving
+ the factory for a given library name and calling partInstance() on it.
+ @param libraryName name of the library to query the instance from
+ @short A convenience method for partInstance() that takes care of retrieving the factory for a given library name and calling partInstance() on it.
+ */
+ public static native KInstanceInterface partInstanceFromLibrary(String libraryName);
+}
diff --git a/kdejava/koala/org/kde/koala/FileCopyJob.java b/kdejava/koala/org/kde/koala/FileCopyJob.java
new file mode 100644
index 00000000..11c9aa0e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/FileCopyJob.java
@@ -0,0 +1,56 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The FileCopyJob copies data from one place to another.
+ @short The FileCopyJob copies data from one place to another.
+ @see #file_copy
+ @see #file_move
+
+*/
+public class FileCopyJob extends Job {
+ protected FileCopyJob(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Do not create a FileCopyJob directly. Use KIO.file_move()
+ or KIO.file_copy() instead.
+ @param src the source URL
+ @param dest the destination URL
+ @param permissions the permissions of the resulting resource
+ @param move true to move, false to copy
+ @param overwrite true to allow overwriting, false otherwise
+ @param resume true to resume an operation, false otherwise
+ @param showProgressInfo true to show progress information to the user
+ @short Do not create a FileCopyJob directly.
+ */
+ /**
+ If you know the size of the source file, call this method
+ to inform this job. It will be displayed in the "resume" dialog.
+ @param size the size of the source file
+ @short If you know the size of the source file, call this method to inform this job.
+ */
+ public native void setSourceSize64(long size);
+ /**
+ Returns the source URL.
+ @return the source URL
+
+ @short Returns the source URL.
+ */
+ public native KURL srcURL();
+ /**
+ Returns the destination URL.
+ @return the destination URL
+
+ @short Returns the destination URL.
+ */
+ public native KURL destURL();
+ public native void slotStart();
+ public native void slotData(Job arg1, byte[] data);
+ public native void slotDataReq(Job arg1, byte[] data);
+}
diff --git a/kdejava/koala/org/kde/koala/GUIActivateEvent.java b/kdejava/koala/org/kde/koala/GUIActivateEvent.java
new file mode 100644
index 00000000..ea9390ae
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/GUIActivateEvent.java
@@ -0,0 +1,27 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QEvent;
+
+/**
+
+ This event is sent to a Part when its GUI has been activated or deactivated.
+ This is related to PartActivateEvent, but the difference is that
+ GUIActivateEvent happens later (when the GUI is actually built),
+ only for parts that have GUI elements, and only if using KParts.MainWindow.
+ @short This event is sent to a Part when its GUI has been activated or deactivated.
+ @see Part#guiActivateEvent
+
+*/
+public class GUIActivateEvent extends Event {
+ protected GUIActivateEvent(Class dummy){super((Class) null);}
+ public GUIActivateEvent(boolean activated) {
+ super((Class) null);
+ newGUIActivateEvent(activated);
+ }
+ private native void newGUIActivateEvent(boolean activated);
+ public native boolean activated();
+ public static native boolean test(QEvent event);
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLAnchorElement.java b/kdejava/koala/org/kde/koala/HTMLAnchorElement.java
new file mode 100644
index 00000000..2c48684f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLAnchorElement.java
@@ -0,0 +1,192 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The anchor element. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#edef-A"> A
+ element definition </a> in HTML 4.0.
+ @short The anchor element.
+
+*/
+public class HTMLAnchorElement extends HTMLElement {
+ protected HTMLAnchorElement(Class dummy){super((Class) null);}
+ public HTMLAnchorElement() {
+ super((Class) null);
+ newHTMLAnchorElement();
+ }
+ private native void newHTMLAnchorElement();
+ public HTMLAnchorElement(HTMLAnchorElement other) {
+ super((Class) null);
+ newHTMLAnchorElement(other);
+ }
+ private native void newHTMLAnchorElement(HTMLAnchorElement other);
+ public HTMLAnchorElement(Node other) {
+ super((Class) null);
+ newHTMLAnchorElement(other);
+ }
+ private native void newHTMLAnchorElement(Node other);
+ /**
+ A single character access key to give access to the form
+ control. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accesskey">
+ accesskey attribute definition </a> in HTML 4.0.
+ @short A single character access key to give access to the form control.
+ */
+ public native String accessKey();
+ /**
+ see accessKey
+ @short see accessKey
+ */
+ public native void setAccessKey(String arg1);
+ /**
+ The character encoding of the linked resource. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-charset">
+ charset attribute definition </a> in HTML 4.0.
+ @short The character encoding of the linked resource.
+ */
+ public native String charset();
+ /**
+ see charset
+ @short see charset
+ */
+ public native void setCharset(String arg1);
+ /**
+ Comma-separated list of lengths, defining an active region
+ geometry. See also <code>shape</code> for the shape of the
+ region. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-coords">
+ coords attribute definition </a> in HTML 4.0.
+ @short Comma-separated list of lengths, defining an active region geometry.
+ */
+ public native String coords();
+ /**
+ see coords
+ @short see coords
+ */
+ public native void setCoords(String arg1);
+ /**
+ The URI of the linked resource. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-href">
+ href attribute definition </a> in HTML 4.0.
+ @short The URI of the linked resource.
+ */
+ public native String href();
+ /**
+ see href
+ @short see href
+ */
+ public native void setHref(String arg1);
+ /**
+ Language code of the linked resource. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-hreflang">
+ hreflang attribute definition </a> in HTML 4.0.
+ @short Language code of the linked resource.
+ */
+ public native String hreflang();
+ /**
+ see hreflang
+ @short see hreflang
+ */
+ public native void setHreflang(String arg1);
+ /**
+ Anchor name. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-name-A">
+ name attribute definition </a> in HTML 4.0.
+ @short Anchor name.
+ */
+ public native String name();
+ /**
+ see name
+ @short see name
+ */
+ public native void setName(String arg1);
+ /**
+ Forward link type. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-rel">
+ rel attribute definition </a> in HTML 4.0.
+ @short Forward link type.
+ */
+ public native String rel();
+ /**
+ see rel
+ @short see rel
+ */
+ public native void setRel(String arg1);
+ /**
+ Reverse link type. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-rev">
+ rev attribute definition </a> in HTML 4.0.
+ @short Reverse link type.
+ */
+ public native String rev();
+ /**
+ see rev
+ @short see rev
+ */
+ public native void setRev(String arg1);
+ /**
+ The shape of the active area. The coordinates are given by
+ <code>coords</code> . See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-shape">
+ shape attribute definition </a> in HTML 4.0.
+ @short The shape of the active area.
+ */
+ public native String shape();
+ /**
+ see shape
+ @short see shape
+ */
+ public native void setShape(String arg1);
+ /**
+ Index that represents the element's position in the tabbing
+ order. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-tabindex">
+ tabindex attribute definition </a> in HTML 4.0.
+ @short Index that represents the element's position in the tabbing order.
+ */
+ public native long tabIndex();
+ /**
+ see tabIndex
+ @short see tabIndex
+ */
+ public native void setTabIndex(long arg1);
+ /**
+ Frame to render the resource in. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-target">
+ target attribute definition </a> in HTML 4.0.
+ @short Frame to render the resource in.
+ */
+ public native String target();
+ /**
+ see target
+ @short see target
+ */
+ public native void setTarget(String arg1);
+ /**
+ Advisory content type. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-type-A">
+ type attribute definition </a> in HTML 4.0.
+ @short Advisory content type.
+ */
+ public native String type();
+ /**
+ see type
+ @short see type
+ */
+ public native void setType(String arg1);
+ /**
+ Removes keyboard focus from this element.
+ @short Removes keyboard focus from this element.
+ */
+ public native void blur();
+ /**
+ Gives keyboard focus to this element.
+ @short Gives keyboard focus to this element.
+ */
+ public native void focus();
+ // DOM::HTMLAnchorElement* HTMLAnchorElement(DOM::HTMLAnchorElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLAppletElement.java b/kdejava/koala/org/kde/koala/HTMLAppletElement.java
new file mode 100644
index 00000000..12338c28
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLAppletElement.java
@@ -0,0 +1,181 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ An embedded Java applet. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#edef-APPLET">
+ APPLET element definition </a> in HTML 4.0. This element is
+ deprecated in HTML 4.0.
+ @short An embedded Java applet.
+
+*/
+public class HTMLAppletElement extends HTMLElement {
+ protected HTMLAppletElement(Class dummy){super((Class) null);}
+ public HTMLAppletElement() {
+ super((Class) null);
+ newHTMLAppletElement();
+ }
+ private native void newHTMLAppletElement();
+ public HTMLAppletElement(HTMLAppletElement other) {
+ super((Class) null);
+ newHTMLAppletElement(other);
+ }
+ private native void newHTMLAppletElement(HTMLAppletElement other);
+ public HTMLAppletElement(Node other) {
+ super((Class) null);
+ newHTMLAppletElement(other);
+ }
+ private native void newHTMLAppletElement(Node other);
+ /**
+ Aligns this object (vertically or horizontally) with respect to
+ its surrounding text. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-align-IMG">
+ align attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Aligns this object (vertically or horizontally) with respect to its surrounding text.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ /**
+ Alternate text for user agents not rendering the normal content
+ of this element. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-alt">
+ alt attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Alternate text for user agents not rendering the normal content of this element.
+ */
+ public native String alt();
+ /**
+ see alt
+ @short see alt
+ */
+ public native void setAlt(String arg1);
+ /**
+ Comma-separated archive list. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-archive-APPLET">
+ archive attribute definition </a> in HTML 4.0. This attribute
+ is deprecated in HTML 4.0.
+ @short Comma-separated archive list.
+ */
+ public native String archive();
+ /**
+ see archive
+ @short see archive
+ */
+ public native void setArchive(String arg1);
+ /**
+ Applet class file. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-code">
+ code attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Applet class file.
+ */
+ public native String code();
+ /**
+ see code
+ @short see code
+ */
+ public native void setCode(String arg1);
+ /**
+ Optional base URI for applet. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-codebase-APPLET">
+ codebase attribute definition </a> in HTML 4.0. This attribute
+ is deprecated in HTML 4.0.
+ @short Optional base URI for applet.
+ */
+ public native String codeBase();
+ /**
+ see codeBase
+ @short see codeBase
+ */
+ public native void setCodeBase(String value);
+ /**
+ Override height. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-height-APPLET">
+ height attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Override height.
+ */
+ public native String height();
+ /**
+ see height
+ @short see height
+ */
+ public native void setHeight(String arg1);
+ /**
+ Horizontal space, in pixels, to the left and right of this image, applet,
+ or object. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-hspace">
+ hspace attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Horizontal space, in pixels, to the left and right of this image, applet, or object.
+ */
+ public native long getHspace();
+ /**
+ see hspace
+ @short see hspace
+ */
+ public native void setHspace(long arg1);
+ /**
+ The name of the applet. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-name-APPLET">
+ name attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short The name of the applet.
+ */
+ public native String name();
+ /**
+ see name
+ @short see name
+ */
+ public native void setName(String arg1);
+ /**
+ Serialized applet file. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-object">
+ object attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Serialized applet file.
+ */
+ public native String object();
+ /**
+ see object
+ @short see object
+ */
+ public native void setObject(String arg1);
+ /**
+ Vertical space, in pixels, above and below this image, applet, or object.
+ See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-vspace">
+ vspace attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Vertical space, in pixels, above and below this image, applet, or object.
+ */
+ public native long getVspace();
+ /**
+ see vspace
+ @short see vspace
+ */
+ public native void setVspace(long arg1);
+ /**
+ Override width. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-width-APPLET">
+ width attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Override width.
+ */
+ public native String width();
+ /**
+ see width
+ @short see width
+ */
+ public native void setWidth(String arg1);
+ // DOM::HTMLAppletElement* HTMLAppletElement(DOM::HTMLAppletElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLAreaElement.java b/kdejava/koala/org/kde/koala/HTMLAreaElement.java
new file mode 100644
index 00000000..11f4de56
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLAreaElement.java
@@ -0,0 +1,136 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Client-side image map area definition. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#edef-AREA">
+ AREA element definition </a> in HTML 4.0.
+ @short Client-side image map area definition.
+
+*/
+public class HTMLAreaElement extends HTMLElement {
+ protected HTMLAreaElement(Class dummy){super((Class) null);}
+ public HTMLAreaElement() {
+ super((Class) null);
+ newHTMLAreaElement();
+ }
+ private native void newHTMLAreaElement();
+ public HTMLAreaElement(HTMLAreaElement other) {
+ super((Class) null);
+ newHTMLAreaElement(other);
+ }
+ private native void newHTMLAreaElement(HTMLAreaElement other);
+ public HTMLAreaElement(Node other) {
+ super((Class) null);
+ newHTMLAreaElement(other);
+ }
+ private native void newHTMLAreaElement(Node other);
+ /**
+ A single character access key to give access to the form
+ control. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accesskey">
+ accesskey attribute definition </a> in HTML 4.0.
+ @short A single character access key to give access to the form control.
+ */
+ public native String accessKey();
+ /**
+ see accessKey
+ @short see accessKey
+ */
+ public native void setAccessKey(String arg1);
+ /**
+ Alternate text for user agents not rendering the normal content
+ of this element. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-alt">
+ alt attribute definition </a> in HTML 4.0.
+ @short Alternate text for user agents not rendering the normal content of this element.
+ */
+ public native String alt();
+ /**
+ see alt
+ @short see alt
+ */
+ public native void setAlt(String arg1);
+ /**
+ Comma-separated list of lengths, defining an active region
+ geometry. See also <code>shape</code> for the shape of the
+ region. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-coords">
+ coords attribute definition </a> in HTML 4.0.
+ @short Comma-separated list of lengths, defining an active region geometry.
+ */
+ public native String coords();
+ /**
+ see coords
+ @short see coords
+ */
+ public native void setCoords(String arg1);
+ /**
+ The URI of the linked resource. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-href">
+ href attribute definition </a> in HTML 4.0.
+ @short The URI of the linked resource.
+ */
+ public native String href();
+ /**
+ see href
+ @short see href
+ */
+ public native void setHref(String arg1);
+ /**
+ Specifies that this area is inactive, i.e., has no associated
+ action. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-nohref">
+ nohref attribute definition </a> in HTML 4.0.
+ @short Specifies that this area is inactive, i.
+ */
+ public native boolean noHref();
+ /**
+ see noHref
+ @short see noHref
+ */
+ public native void setNoHref(boolean arg1);
+ /**
+ The shape of the active area. The coordinates are given by
+ <code>coords</code> . See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-shape">
+ shape attribute definition </a> in HTML 4.0.
+ @short The shape of the active area.
+ */
+ public native String shape();
+ /**
+ see shape
+ @short see shape
+ */
+ public native void setShape(String arg1);
+ /**
+ Index that represents the element's position in the tabbing
+ order. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-tabindex">
+ tabindex attribute definition </a> in HTML 4.0.
+ @short Index that represents the element's position in the tabbing order.
+ */
+ public native long tabIndex();
+ /**
+ see tabIndex
+ @short see tabIndex
+ */
+ public native void setTabIndex(long arg1);
+ /**
+ Frame to render the resource in. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-target">
+ target attribute definition </a> in HTML 4.0.
+ @short Frame to render the resource in.
+ */
+ public native String target();
+ /**
+ see target
+ @short see target
+ */
+ public native void setTarget(String arg1);
+ // DOM::HTMLAreaElement* HTMLAreaElement(DOM::HTMLAreaElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLBRElement.java b/kdejava/koala/org/kde/koala/HTMLBRElement.java
new file mode 100644
index 00000000..e001a748
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLBRElement.java
@@ -0,0 +1,46 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Force a line break. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-BR"> BR
+ element definition </a> in HTML 4.0.
+ @short Force a line break.
+
+*/
+public class HTMLBRElement extends HTMLElement {
+ protected HTMLBRElement(Class dummy){super((Class) null);}
+ public HTMLBRElement() {
+ super((Class) null);
+ newHTMLBRElement();
+ }
+ private native void newHTMLBRElement();
+ public HTMLBRElement(HTMLBRElement other) {
+ super((Class) null);
+ newHTMLBRElement(other);
+ }
+ private native void newHTMLBRElement(HTMLBRElement other);
+ public HTMLBRElement(Node other) {
+ super((Class) null);
+ newHTMLBRElement(other);
+ }
+ private native void newHTMLBRElement(Node other);
+ /**
+ Control flow of text around floats. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-clear">
+ clear attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Control flow of text around floats.
+ */
+ public native String clear();
+ /**
+ see clear
+ @short see clear
+ */
+ public native void setClear(String arg1);
+ // DOM::HTMLBRElement* HTMLBRElement(DOM::HTMLBRElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLBaseElement.java b/kdejava/koala/org/kde/koala/HTMLBaseElement.java
new file mode 100644
index 00000000..16d82d36
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLBaseElement.java
@@ -0,0 +1,57 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Document base URI. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#edef-BASE">
+ BASE element definition </a> in HTML 4.0.
+ @short Document base URI.
+
+*/
+public class HTMLBaseElement extends HTMLElement {
+ protected HTMLBaseElement(Class dummy){super((Class) null);}
+ public HTMLBaseElement() {
+ super((Class) null);
+ newHTMLBaseElement();
+ }
+ private native void newHTMLBaseElement();
+ public HTMLBaseElement(HTMLBaseElement other) {
+ super((Class) null);
+ newHTMLBaseElement(other);
+ }
+ private native void newHTMLBaseElement(HTMLBaseElement other);
+ public HTMLBaseElement(Node other) {
+ super((Class) null);
+ newHTMLBaseElement(other);
+ }
+ private native void newHTMLBaseElement(Node other);
+ /**
+ The base URI See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-href-BASE">
+ href attribute definition </a> in HTML 4.0.
+ @short The base URI See the <a href="http://www.
+ */
+ public native String href();
+ /**
+ see href
+ @short see href
+ */
+ public native void setHref(String arg1);
+ /**
+ The default target frame. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-target">
+ target attribute definition </a> in HTML 4.0.
+ @short The default target frame.
+ */
+ public native String target();
+ /**
+ see target
+ @short see target
+ */
+ public native void setTarget(String arg1);
+ // DOM::HTMLBaseElement* HTMLBaseElement(DOM::HTMLBaseElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLBaseFontElement.java b/kdejava/koala/org/kde/koala/HTMLBaseFontElement.java
new file mode 100644
index 00000000..1c6032e3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLBaseFontElement.java
@@ -0,0 +1,72 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Base font. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#edef-BASEFONT">
+ BASEFONT element definition </a> in HTML 4.0. This element is
+ deprecated in HTML 4.0.
+ @short Base font.
+
+*/
+public class HTMLBaseFontElement extends HTMLElement {
+ protected HTMLBaseFontElement(Class dummy){super((Class) null);}
+ public HTMLBaseFontElement() {
+ super((Class) null);
+ newHTMLBaseFontElement();
+ }
+ private native void newHTMLBaseFontElement();
+ public HTMLBaseFontElement(HTMLBaseFontElement other) {
+ super((Class) null);
+ newHTMLBaseFontElement(other);
+ }
+ private native void newHTMLBaseFontElement(HTMLBaseFontElement other);
+ public HTMLBaseFontElement(Node other) {
+ super((Class) null);
+ newHTMLBaseFontElement(other);
+ }
+ private native void newHTMLBaseFontElement(Node other);
+ /**
+ Font color. See the <a href="http://www.w3.org/TR/REC-html40/">
+ color attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Font color.
+ */
+ public native String color();
+ /**
+ see color
+ @short see color
+ */
+ public native void setColor(String arg1);
+ /**
+ Font face identifier. See the <a
+ href="http://www.w3.org/TR/REC-html40/"> face attribute
+ definition </a> in HTML 4.0. This attribute is deprecated in
+ HTML 4.0.
+ @short Font face identifier.
+ */
+ public native String face();
+ /**
+ see face
+ @short see face
+ */
+ public native void setFace(String arg1);
+ /**
+ Computed Font size. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-size-BASEFONT">
+ size attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Computed Font size.
+ */
+ public native long getSize();
+ /**
+ see size
+ @short see size
+ */
+ public native void setSize(long arg1);
+ // DOM::HTMLBaseFontElement* HTMLBaseFontElement(DOM::HTMLBaseFontElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLBlockquoteElement.java b/kdejava/koala/org/kde/koala/HTMLBlockquoteElement.java
new file mode 100644
index 00000000..f38ea296
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLBlockquoteElement.java
@@ -0,0 +1,45 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ ??? See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-BLOCKQUOTE">
+ BLOCKQUOTE element definition </a> in HTML 4.0.
+ @short ??? See the <a href="http://www.
+
+*/
+public class HTMLBlockquoteElement extends HTMLElement {
+ protected HTMLBlockquoteElement(Class dummy){super((Class) null);}
+ public HTMLBlockquoteElement() {
+ super((Class) null);
+ newHTMLBlockquoteElement();
+ }
+ private native void newHTMLBlockquoteElement();
+ public HTMLBlockquoteElement(HTMLBlockquoteElement other) {
+ super((Class) null);
+ newHTMLBlockquoteElement(other);
+ }
+ private native void newHTMLBlockquoteElement(HTMLBlockquoteElement other);
+ public HTMLBlockquoteElement(Node other) {
+ super((Class) null);
+ newHTMLBlockquoteElement(other);
+ }
+ private native void newHTMLBlockquoteElement(Node other);
+ /**
+ A URI designating a document that describes the reason for the
+ change. See the <a href="http://www.w3.org/TR/REC-html40/">
+ cite attribute definition </a> in HTML 4.0.
+ @short A URI designating a document that describes the reason for the change.
+ */
+ public native String cite();
+ /**
+ see cite
+ @short see cite
+ */
+ public native void setCite(String arg1);
+ // DOM::HTMLBlockquoteElement* HTMLBlockquoteElement(DOM::HTMLElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLBodyElement.java b/kdejava/koala/org/kde/koala/HTMLBodyElement.java
new file mode 100644
index 00000000..3ad71cd2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLBodyElement.java
@@ -0,0 +1,114 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The HTML document body. This element is always present in the DOM
+ API, even if the tags are not present in the source document. See
+ the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#edef-BODY">
+ BODY element definition </a> in HTML 4.0.
+ @short The HTML document body.
+
+*/
+public class HTMLBodyElement extends HTMLElement {
+ protected HTMLBodyElement(Class dummy){super((Class) null);}
+ public HTMLBodyElement() {
+ super((Class) null);
+ newHTMLBodyElement();
+ }
+ private native void newHTMLBodyElement();
+ public HTMLBodyElement(HTMLBodyElement other) {
+ super((Class) null);
+ newHTMLBodyElement(other);
+ }
+ private native void newHTMLBodyElement(HTMLBodyElement other);
+ public HTMLBodyElement(Node other) {
+ super((Class) null);
+ newHTMLBodyElement(other);
+ }
+ private native void newHTMLBodyElement(Node other);
+ /**
+ Color of active links (after mouse-button down, but before
+ mouse-button up). See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-alink">
+ alink attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Color of active links (after mouse-button down, but before mouse-button up).
+ */
+ public native String aLink();
+ /**
+ see aLink
+ @short see aLink
+ */
+ public native void setALink(String arg1);
+ /**
+ URI of the background texture tile image. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-background">
+ background attribute definition </a> in HTML 4.0. This
+ attribute is deprecated in HTML 4.0.
+ @short URI of the background texture tile image.
+ */
+ public native String background();
+ /**
+ see background
+ @short see background
+ */
+ public native void setBackground(String arg1);
+ /**
+ Document background color. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-bgcolor">
+ bgcolor attribute definition </a> in HTML 4.0. This attribute
+ is deprecated in HTML 4.0.
+ @short Document background color.
+ */
+ public native String bgColor();
+ /**
+ see bgColor
+ @short see bgColor
+ */
+ public native void setBgColor(String arg1);
+ /**
+ Color of links that are not active and unvisited. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-link">
+ link attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Color of links that are not active and unvisited.
+ */
+ public native String link();
+ /**
+ see link
+ @short see link
+ */
+ public native void setLink(String arg1);
+ /**
+ Document text color. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-text">
+ text attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Document text color.
+ */
+ public native String text();
+ /**
+ see text
+ @short see text
+ */
+ public native void setText(String arg1);
+ /**
+ Color of links that have been visited by the user. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-vlink">
+ vlink attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Color of links that have been visited by the user.
+ */
+ public native String vLink();
+ /**
+ see vLink
+ @short see vLink
+ */
+ public native void setVLink(String arg1);
+ // DOM::HTMLBodyElement* HTMLBodyElement(DOM::HTMLBodyElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLButtonElement.java b/kdejava/koala/org/kde/koala/HTMLButtonElement.java
new file mode 100644
index 00000000..7468fd4e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLButtonElement.java
@@ -0,0 +1,120 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Push button. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-BUTTON">
+ BUTTON element definition </a> in HTML 4.0.
+ @short Push button.
+
+*/
+public class HTMLButtonElement extends HTMLElement {
+ protected HTMLButtonElement(Class dummy){super((Class) null);}
+ public HTMLButtonElement() {
+ super((Class) null);
+ newHTMLButtonElement();
+ }
+ private native void newHTMLButtonElement();
+ public HTMLButtonElement(HTMLButtonElement other) {
+ super((Class) null);
+ newHTMLButtonElement(other);
+ }
+ private native void newHTMLButtonElement(HTMLButtonElement other);
+ public HTMLButtonElement(Node other) {
+ super((Class) null);
+ newHTMLButtonElement(other);
+ }
+ private native void newHTMLButtonElement(Node other);
+ /**
+ Returns the <code>FORM</code> element containing this
+ control. Returns null if this control is not within the context
+ of a form.
+ @short Returns the <code>FORM</code> element containing this control.
+ */
+ public native HTMLFormElement formElement();
+ /**
+ A single character access key to give access to the form
+ control. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accesskey">
+ accesskey attribute definition </a> in HTML 4.0.
+ @short A single character access key to give access to the form control.
+ */
+ public native String accessKey();
+ /**
+ see accessKey
+ @short see accessKey
+ */
+ public native void setAccessKey(String arg1);
+ /**
+ The control is unavailable in this context. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-disabled">
+ disabled attribute definition </a> in HTML 4.0.
+ @short The control is unavailable in this context.
+ */
+ public native boolean disabled();
+ /**
+ see disabled
+ @short see disabled
+ */
+ public native void setDisabled(boolean arg1);
+ /**
+ Form control or object name when submitted with a form. See the
+ <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-name-BUTTON">
+ name attribute definition </a> in HTML 4.0.
+ @short Form control or object name when submitted with a form.
+ */
+ public native String name();
+ /**
+ see name
+ @short see name
+ */
+ public native void setName(String arg1);
+ /**
+ Index that represents the element's position in the tabbing
+ order. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-tabindex">
+ tabindex attribute definition </a> in HTML 4.0.
+ @short Index that represents the element's position in the tabbing order.
+ */
+ public native long tabIndex();
+ /**
+ see tabIndex
+ @short see tabIndex
+ */
+ public native void setTabIndex(long arg1);
+ /**
+ The type of button. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-type-BUTTON">
+ type attribute definition </a> in HTML 4.0.
+ @short The type of button.
+ */
+ public native String type();
+ /**
+ The current form control value. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-value-BUTTON">
+ value attribute definition </a> in HTML 4.0.
+ @short The current form control value.
+ */
+ public native String value();
+ /**
+ see value
+ @short see value
+ */
+ public native void setValue(String arg1);
+ /**
+ Removes keyboard focus from this element.
+ @short Removes keyboard focus from this element.
+ */
+ public native void blur();
+ /**
+ Gives keyboard focus to this element.
+ @short Gives keyboard focus to this element.
+ */
+ public native void focus();
+ // DOM::HTMLButtonElement* HTMLButtonElement(DOM::HTMLButtonElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLCollection.java b/kdejava/koala/org/kde/koala/HTMLCollection.java
new file mode 100644
index 00000000..a5eecbee
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLCollection.java
@@ -0,0 +1,74 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ An <code>HTMLCollection</code> is a list of nodes. An individual
+ node may be accessed by either ordinal index or the node's
+ <code>name</code> or <code>id</code> attributes. Note: Collections in
+ the HTML DOM are assumed to be live meaning that they are
+ automatically updated when the underlying document is changed.
+ @short An <code>HTMLCollection</code> is a list of nodes.
+
+*/
+public class HTMLCollection implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected HTMLCollection(Class dummy){}
+
+ public HTMLCollection() {
+ newHTMLCollection();
+ }
+ private native void newHTMLCollection();
+ public HTMLCollection(HTMLCollection other) {
+ newHTMLCollection(other);
+ }
+ private native void newHTMLCollection(HTMLCollection other);
+ /**
+ This attribute specifies the length or size of the list.
+ @short This attribute specifies the length or size of the list.
+ */
+ public native long length();
+ /**
+ This method retrieves a node specified by ordinal index. Nodes
+ are numbered in tree order (depth-first traversal order).
+ @param index The index of the node to be fetched. The index
+ origin is 0.
+ @return The <code>Node</code> at the corresponding position
+ upon success. A value of <code>null</code> is returned if the
+ index is out of range.
+
+ @short This method retrieves a node specified by ordinal index.
+ */
+ public native Node item(long index);
+ /**
+ This method retrieves a <code>Node</code> using a name. It
+ first searches for a <code>Node</code> with a matching
+ <code>id</code> attribute. If it doesn't find one, it then searches
+ for a <code>Node</code> with a matching <code>name</code>
+ attribute, but only on those elements that are allowed a name
+ attribute.
+ @param name The name of the <code>Node</code> to be fetched.
+ @return The <code>Node</code> with a <code>name</code> or
+ <code>id</code> attribute whose value corresponds to the
+ specified string. Upon failure (e.g., no node with this name
+ exists), returns <code>null</code> .
+
+ @short This method retrieves a <code>Node</code> using a name.
+ */
+ public native Node namedItem(String name);
+ /**
+ not part of the DOM
+ @short
+ */
+ public native Node base();
+ // DOM::HTMLCollectionImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+ public native Node firstItem();
+ public native Node nextItem();
+ public native Node nextNamedItem(String name);
+ // DOM::HTMLCollection* HTMLCollection(DOM::NodeImpl* arg1,int arg2); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLDListElement.java b/kdejava/koala/org/kde/koala/HTMLDListElement.java
new file mode 100644
index 00000000..1f31bdb9
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLDListElement.java
@@ -0,0 +1,46 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Definition list. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#edef-DL">
+ DL element definition </a> in HTML 4.0.
+ @short Definition list.
+
+*/
+public class HTMLDListElement extends HTMLElement {
+ protected HTMLDListElement(Class dummy){super((Class) null);}
+ public HTMLDListElement() {
+ super((Class) null);
+ newHTMLDListElement();
+ }
+ private native void newHTMLDListElement();
+ public HTMLDListElement(HTMLDListElement other) {
+ super((Class) null);
+ newHTMLDListElement(other);
+ }
+ private native void newHTMLDListElement(HTMLDListElement other);
+ public HTMLDListElement(Node other) {
+ super((Class) null);
+ newHTMLDListElement(other);
+ }
+ private native void newHTMLDListElement(Node other);
+ /**
+ Reduce spacing between list items. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#adef-compact">
+ compact attribute definition </a> in HTML 4.0. This attribute
+ is deprecated in HTML 4.0.
+ @short Reduce spacing between list items.
+ */
+ public native boolean compact();
+ /**
+ see compact
+ @short see compact
+ */
+ public native void setCompact(boolean arg1);
+ // DOM::HTMLDListElement* HTMLDListElement(DOM::HTMLDListElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLDirectoryElement.java b/kdejava/koala/org/kde/koala/HTMLDirectoryElement.java
new file mode 100644
index 00000000..18250cc5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLDirectoryElement.java
@@ -0,0 +1,47 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Directory list. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#edef-DIR">
+ DIR element definition </a> in HTML 4.0. This element is deprecated
+ in HTML 4.0.
+ @short Directory list.
+
+*/
+public class HTMLDirectoryElement extends HTMLElement {
+ protected HTMLDirectoryElement(Class dummy){super((Class) null);}
+ public HTMLDirectoryElement() {
+ super((Class) null);
+ newHTMLDirectoryElement();
+ }
+ private native void newHTMLDirectoryElement();
+ public HTMLDirectoryElement(HTMLDirectoryElement other) {
+ super((Class) null);
+ newHTMLDirectoryElement(other);
+ }
+ private native void newHTMLDirectoryElement(HTMLDirectoryElement other);
+ public HTMLDirectoryElement(Node other) {
+ super((Class) null);
+ newHTMLDirectoryElement(other);
+ }
+ private native void newHTMLDirectoryElement(Node other);
+ /**
+ Reduce spacing between list items. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#adef-compact">
+ compact attribute definition </a> in HTML 4.0. This attribute
+ is deprecated in HTML 4.0.
+ @short Reduce spacing between list items.
+ */
+ public native boolean compact();
+ /**
+ see compact
+ @short see compact
+ */
+ public native void setCompact(boolean arg1);
+ // DOM::HTMLDirectoryElement* HTMLDirectoryElement(DOM::HTMLDirectoryElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLDivElement.java b/kdejava/koala/org/kde/koala/HTMLDivElement.java
new file mode 100644
index 00000000..6c90e343
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLDivElement.java
@@ -0,0 +1,46 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Generic block container. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#edef-DIV">
+ DIV element definition </a> in HTML 4.0.
+ @short Generic block container.
+
+*/
+public class HTMLDivElement extends HTMLElement {
+ protected HTMLDivElement(Class dummy){super((Class) null);}
+ public HTMLDivElement() {
+ super((Class) null);
+ newHTMLDivElement();
+ }
+ private native void newHTMLDivElement();
+ public HTMLDivElement(HTMLDivElement other) {
+ super((Class) null);
+ newHTMLDivElement(other);
+ }
+ private native void newHTMLDivElement(HTMLDivElement other);
+ public HTMLDivElement(Node other) {
+ super((Class) null);
+ newHTMLDivElement(other);
+ }
+ private native void newHTMLDivElement(Node other);
+ /**
+ Horizontal text alignment. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-align">
+ align attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Horizontal text alignment.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ // DOM::HTMLDivElement* HTMLDivElement(DOM::HTMLDivElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLDocument.java b/kdejava/koala/org/kde/koala/HTMLDocument.java
new file mode 100644
index 00000000..be13ac14
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLDocument.java
@@ -0,0 +1,221 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ An <code>HTMLDocument</code> is the root of the HTML hierarchy
+ and holds the entire content. Beside providing access to the
+ hierarchy, it also provides some convenience methods for accessing
+ certain sets of information from the document.
+ The following properties have been deprecated in favor of the
+ corresponding ones for the BODY element:
+ \li <code>alinkColor</code>
+ \li <code>background</code>
+ \li <code>bgColor</code>
+ \li <code>fgColor</code>
+ \li <code>linkColor</code>
+ \li <code>vlinkColor</code>
+ @short An <code>HTMLDocument</code> is the root of the HTML hierarchy and holds the entire content.
+
+*/
+public class HTMLDocument extends Document {
+ protected HTMLDocument(Class dummy){super((Class) null);}
+ public HTMLDocument() {
+ super((Class) null);
+ newHTMLDocument();
+ }
+ private native void newHTMLDocument();
+ /**
+ The parent is the widget the document should render itself in.
+ Rendering information (like sizes, etc...) is only created if
+ parent != 0
+ @short The parent is the widget the document should render itself in.
+ */
+ public HTMLDocument(KHTMLView parent) {
+ super((Class) null);
+ newHTMLDocument(parent);
+ }
+ private native void newHTMLDocument(KHTMLView parent);
+ public HTMLDocument(HTMLDocument other) {
+ super((Class) null);
+ newHTMLDocument(other);
+ }
+ private native void newHTMLDocument(HTMLDocument other);
+ public HTMLDocument(Node other) {
+ super((Class) null);
+ newHTMLDocument(other);
+ }
+ private native void newHTMLDocument(Node other);
+ /**
+ The title of a document as specified by the <code>TITLE</code>
+ element in the head of the document.
+ @short The title of a document as specified by the <code>TITLE</code> element in the head of the document.
+ */
+ public native String title();
+ /**
+ see title
+ @short see title
+ */
+ public native void setTitle(String arg1);
+ /**
+ Returns the URI of the page that linked to this page. The value
+ is an empty string if the user navigated to the page directly
+ (not through a link, but, for example, via a bookmark).
+ @short Returns the URI of the page that linked to this page.
+ */
+ public native String referrer();
+ /**
+ The domain name of the server that served the document, or a
+ null string if the server cannot be identified by a domain
+ name.
+ @short The domain name of the server that served the document, or a null string if the server cannot be identified by a domain name.
+ */
+ public native String domain();
+ /**
+ The absolute URI of the document.
+ @short The absolute URI of the document.
+ */
+ public native String URL();
+ /**
+ The element that contains the content for the document. In
+ documents with <code>BODY</code> contents, returns the
+ <code>BODY</code> element, and in frameset documents, this returns
+ the outermost <code>FRAMESET</code> element.
+ @short The element that contains the content for the document.
+ */
+ public native HTMLElement body();
+ /**
+ see body
+ @short see body
+ */
+ public native void setBody(HTMLElement arg1);
+ /**
+ A collection of all the <code>IMG</code> elements in a
+ document. The behavior is limited to <code>IMG</code>
+ elements for backwards compatibility.
+ @short A collection of all the <code>IMG</code> elements in a document.
+ */
+ public native HTMLCollection images();
+ /**
+ A collection of all the <code>OBJECT</code> elements that
+ include applets and <code>APPLET</code> ( deprecated )
+ elements in a document.
+ @short A collection of all the <code>OBJECT</code> elements that include applets and <code>APPLET</code> ( deprecated ) elements in a document.
+ */
+ public native HTMLCollection applets();
+ /**
+ A collection of all <code>AREA</code> elements and anchor (
+ <code>A</code> ) elements in a document with a value for the
+ <code>href</code> attribute.
+ @short A collection of all <code>AREA</code> elements and anchor ( <code>A</code> ) elements in a document with a value for the <code>href</code> attribute.
+ */
+ public native HTMLCollection links();
+ /**
+ A collection of all the forms of a document.
+ @short A collection of all the forms of a document.
+ */
+ public native HTMLCollection forms();
+ /**
+ A collection of all the layers of a document.
+ @short A collection of all the layers of a document.
+ */
+ public native HTMLCollection layers();
+ /**
+ A collection of all the anchor ( <code>A</code> ) elements in
+ a document with a value for the <code>name</code> attribute.
+ Note. For reasons of backwards compatibility, the returned set
+ of anchors only contains those anchors created with the
+ <code>name</code> attribute, not those created with the <code>id</code>
+ attribute.
+ @short A collection of all the anchor ( <code>A</code> ) elements in a document with a value for the <code>name</code> attribute.
+ */
+ public native HTMLCollection anchors();
+ /**
+ The cookies associated with this document. If there are none,
+ the value is an empty string. Otherwise, the value is a string:
+ a semicolon-delimited list of "name, value" pairs for all the
+ cookies associated with the page. For example,
+ <code>name</code>=value;expires=date .
+ @short The cookies associated with this document.
+ */
+ public native String cookie();
+ /**
+ see cookie
+ @short see cookie
+ */
+ public native void setCookie(String arg1);
+ /**
+ Note. This method and the ones following allow a user to add to
+ or replace the structure model of a document using strings of
+ unparsed HTML. At the time of writing alternate methods for
+ providing similar functionality for both HTML and XML documents
+ were being considered. The following methods may be deprecated
+ at some point in the future in favor of a more general-purpose
+ mechanism.
+ Open a document stream for writing. If a document exists in
+ the target, this method clears it.
+ @short Note.
+ */
+ public native void open();
+ /**
+ Closes a document stream opened by <code>open</code>() and
+ forces rendering.
+ @short Closes a document stream opened by <code>open</code>() and forces rendering.
+ */
+ public native void close();
+ /**
+ Write a string of text to a document stream opened by
+ <code>open</code>() . The text is parsed into the document's
+ structure model.
+ @param text The string to be parsed into some structure in the
+ document structure model.
+ @short Write a string of text to a document stream opened by <code>open</code>() .
+ */
+ public native void write(String text);
+ /**
+ Write a string of text followed by a newline character to a
+ document stream opened by <code>open</code>() . The text is
+ parsed into the document's structure model.
+ @param text The string to be parsed into some structure in the
+ document structure model.
+ @short Write a string of text followed by a newline character to a document stream opened by <code>open</code>() .
+ */
+ public native void writeln(String text);
+ /**
+ Returns the (possibly empty) collection of elements whose
+ <code>name</code> value is given by <code>elementName</code> .
+ @param elementName The <code>name</code> attribute value for
+ an element.
+ @return The matching elements.
+
+ @short Returns the (possibly empty) collection of elements whose <code>name</code> value is given by <code>elementName</code> .
+ */
+ public native ArrayList getElementsByName(String elementName);
+ /**
+ not part of the DOM
+ converts the given (potentially relative) URL in a
+ full-qualified one, using the baseURL / document URL for
+ the missing parts.
+ @short not part of the DOM
+ */
+ public native String completeURL(String url);
+ /**
+ Not part of the DOM
+ The date the document was last modified.
+ @short Not part of the DOM
+ */
+ public native String lastModified();
+ /**
+ Not part of the DOM
+ A collection of all the <code>IMG</code>, <code>OBJECT</code>,
+ <code>AREA</code>, <code>A</code>, forms and anchor elements of
+ a document.
+ @short Not part of the DOM
+ */
+ public native HTMLCollection all();
+ // DOM::HTMLDocument* HTMLDocument(DOM::HTMLDocumentImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLElement.java b/kdejava/koala/org/kde/koala/HTMLElement.java
new file mode 100644
index 00000000..b719f463
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLElement.java
@@ -0,0 +1,144 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ All HTML element interfaces derive from this class. Elements that
+ only expose the HTML core attributes are represented by the base
+ <code>HTMLElement</code> interface. These elements are as
+ follows:
+ \li <code>HEAD</code>
+ <li>special</li>: <tt> SUB, SUP, SPAN, BDO </tt>
+ <li>font</li>: <tt> TT, I, B, U, S, STRIKE, BIG, SMALL </tt>
+ <li>phrase</li>: <tt> EM, STRONG, DFN, CODE, SAMP, KBD, VAR,
+ CITE, ACRONYM, ABBR</tt>
+ <li>list</li>: <tt> DD, DT </tt>
+ \li <tt> NOFRAMES, NOSCRIPT </tt>
+ \li <tt> ADDRESS, CENTER </tt>
+ Note: The <code>style</code> attribute for this
+ interface is reserved for future usage.
+ @short All HTML element interfaces derive from this class.
+
+*/
+public class HTMLElement extends Element {
+ protected HTMLElement(Class dummy){super((Class) null);}
+ public HTMLElement() {
+ super((Class) null);
+ newHTMLElement();
+ }
+ private native void newHTMLElement();
+ public HTMLElement(HTMLElement other) {
+ super((Class) null);
+ newHTMLElement(other);
+ }
+ private native void newHTMLElement(HTMLElement other);
+ public HTMLElement(Node other) {
+ super((Class) null);
+ newHTMLElement(other);
+ }
+ private native void newHTMLElement(Node other);
+ /**
+ The element's identifier. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-id">
+ id attribute definition </a> in HTML 4.0.
+ @short The element's identifier.
+ */
+ public native String id();
+ /**
+ see id
+ @short see id
+ */
+ public native void setId(String arg1);
+ /**
+ The element's advisory title. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-title">
+ title attribute definition </a> in HTML 4.0.
+ @short The element's advisory title.
+ */
+ public native String title();
+ /**
+ see title
+ @short see title
+ */
+ public native void setTitle(String arg1);
+ /**
+ Language code defined in RFC 1766. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/dirlang.html#adef-lang">
+ lang attribute definition </a> in HTML 4.0.
+ @short Language code defined in RFC 1766.
+ */
+ public native String lang();
+ /**
+ see lang
+ @short see lang
+ */
+ public native void setLang(String arg1);
+ /**
+ Specifies the base direction of directionally neutral text and
+ the directionality of tables. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/dirlang.html#adef-dir">
+ dir attribute definition </a> in HTML 4.0.
+ @short Specifies the base direction of directionally neutral text and the directionality of tables.
+ */
+ public native String dir();
+ /**
+ see dir
+ @short see dir
+ */
+ public native void setDir(String arg1);
+ /**
+ The class attribute of the element. This attribute has been
+ renamed due to conflicts with the "class" keyword exposed by
+ many languages. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-class">
+ class attribute definition </a> in HTML 4.0.
+ @short The class attribute of the element.
+ */
+ public native String className();
+ /**
+ see className
+ @short see className
+ */
+ public native void setClassName(String arg1);
+ /**
+ The HTML code contained in this element.
+ This function is not part of the DOM specifications as defined by the w3c.
+ @short The HTML code contained in this element.
+ */
+ public native String innerHTML();
+ /**
+ Set the HTML content of this node.
+ @short Set the HTML content of this node.
+ */
+ public native void setInnerHTML(String html);
+ /**
+ The text contained in this element.
+ This function is not part of the DOM specifications as defined by the w3c.
+ @short The text contained in this element.
+ */
+ public native String innerText();
+ /**
+ Set the text content of this node.
+ @short Set the text content of this node.
+ */
+ public native void setInnerText(String text);
+ /**
+ Retrieves a collection of nodes that are direct descendants of this node.
+ IE-specific extension.
+ @short Retrieves a collection of nodes that are direct descendants of this node.
+ */
+ public native HTMLCollection children();
+ /**
+ Retrieves a collection of all nodes that descend from this node.
+ IE-specific extension.
+ @short Retrieves a collection of all nodes that descend from this node.
+ */
+ public native HTMLCollection all();
+ public native void removeCSSProperty(String property);
+ public native void addCSSProperty(String property, String value);
+ // DOM::HTMLElement* HTMLElement(DOM::HTMLElementImpl* arg1); >>>> NOT CONVERTED
+ protected native void assignOther(Node other, int elementId);
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLFieldSetElement.java b/kdejava/koala/org/kde/koala/HTMLFieldSetElement.java
new file mode 100644
index 00000000..3028e9fe
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLFieldSetElement.java
@@ -0,0 +1,38 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Organizes form controls into logical groups. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-FIELDSET">
+ FIELDSET element definition </a> in HTML 4.0.
+ @short Organizes form controls into logical groups.
+
+*/
+public class HTMLFieldSetElement extends HTMLElement {
+ protected HTMLFieldSetElement(Class dummy){super((Class) null);}
+ public HTMLFieldSetElement() {
+ super((Class) null);
+ newHTMLFieldSetElement();
+ }
+ private native void newHTMLFieldSetElement();
+ public HTMLFieldSetElement(HTMLFieldSetElement other) {
+ super((Class) null);
+ newHTMLFieldSetElement(other);
+ }
+ private native void newHTMLFieldSetElement(HTMLFieldSetElement other);
+ public HTMLFieldSetElement(Node other) {
+ super((Class) null);
+ newHTMLFieldSetElement(other);
+ }
+ private native void newHTMLFieldSetElement(Node other);
+ /**
+ ### KDE 4.0: remove.
+ @short ### KDE 4.
+ */
+ public native HTMLFormElement formElement();
+ // DOM::HTMLFieldSetElement* HTMLFieldSetElement(DOM::HTMLFieldSetElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLFontElement.java b/kdejava/koala/org/kde/koala/HTMLFontElement.java
new file mode 100644
index 00000000..bfdc7359
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLFontElement.java
@@ -0,0 +1,73 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Local change to font. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#edef-FONT">
+ FONT element definition </a> in HTML 4.0. This element is
+ deprecated in HTML 4.0.
+ @short Local change to font.
+
+*/
+public class HTMLFontElement extends HTMLElement {
+ protected HTMLFontElement(Class dummy){super((Class) null);}
+ public HTMLFontElement() {
+ super((Class) null);
+ newHTMLFontElement();
+ }
+ private native void newHTMLFontElement();
+ public HTMLFontElement(HTMLFontElement other) {
+ super((Class) null);
+ newHTMLFontElement(other);
+ }
+ private native void newHTMLFontElement(HTMLFontElement other);
+ public HTMLFontElement(Node other) {
+ super((Class) null);
+ newHTMLFontElement(other);
+ }
+ private native void newHTMLFontElement(Node other);
+ /**
+ Font color. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-color-FONT">
+ color attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Font color.
+ */
+ public native String color();
+ /**
+ see color
+ @short see color
+ */
+ public native void setColor(String arg1);
+ /**
+ Font face identifier. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-face-FONT">
+ face attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Font face identifier.
+ */
+ public native String face();
+ /**
+ see face
+ @short see face
+ */
+ public native void setFace(String arg1);
+ /**
+ Font size. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-size-FONT">
+ size attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Font size.
+ */
+ public native String size();
+ /**
+ see size
+ @short see size
+ */
+ public native void setSize(String arg1);
+ // DOM::HTMLFontElement* HTMLFontElement(DOM::HTMLFontElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLFormCollection.java b/kdejava/koala/org/kde/koala/HTMLFormCollection.java
new file mode 100644
index 00000000..1d85f578
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLFormCollection.java
@@ -0,0 +1,14 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+
+*/
+public class HTMLFormCollection extends HTMLCollection {
+ protected HTMLFormCollection(Class dummy){super((Class) null);}
+ // DOM::HTMLFormCollection* HTMLFormCollection(DOM::NodeImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLFormElement.java b/kdejava/koala/org/kde/koala/HTMLFormElement.java
new file mode 100644
index 00000000..be44305c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLFormElement.java
@@ -0,0 +1,129 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>FORM</code> element encompasses behavior similar to a
+ collection and an element. It provides direct access to the
+ contained input elements as well as the attributes of the form
+ element. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-FORM">
+ FORM element definition </a> in HTML 4.0.
+ @short The <code>FORM</code> element encompasses behavior similar to a collection and an element.
+
+*/
+public class HTMLFormElement extends HTMLElement {
+ protected HTMLFormElement(Class dummy){super((Class) null);}
+ public HTMLFormElement() {
+ super((Class) null);
+ newHTMLFormElement();
+ }
+ private native void newHTMLFormElement();
+ public HTMLFormElement(HTMLFormElement other) {
+ super((Class) null);
+ newHTMLFormElement(other);
+ }
+ private native void newHTMLFormElement(HTMLFormElement other);
+ public HTMLFormElement(Node other) {
+ super((Class) null);
+ newHTMLFormElement(other);
+ }
+ private native void newHTMLFormElement(Node other);
+ /**
+ Returns a collection of all control elements in the form.
+ @short Returns a collection of all control elements in the form.
+ */
+ public native HTMLCollection elements();
+ /**
+ The number of form controls in the form.
+ @short The number of form controls in the form.
+ */
+ public native long length();
+ /**
+ Names the form.
+ @short Names the form.
+ */
+ public native String name();
+ /**
+ see name
+ @short see name
+ */
+ public native void setName(String arg1);
+ /**
+ List of character sets supported by the server. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accept-charset">
+ accept-charset attribute definition </a> in HTML 4.0.
+ @short List of character sets supported by the server.
+ */
+ public native String acceptCharset();
+ /**
+ see acceptCharset
+ @short see acceptCharset
+ */
+ public native void setAcceptCharset(String arg1);
+ /**
+ Server-side form handler. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-action">
+ action attribute definition </a> in HTML 4.0.
+ @short Server-side form handler.
+ */
+ public native String action();
+ /**
+ see action
+ @short see action
+ */
+ public native void setAction(String arg1);
+ /**
+ The content type of the submitted form, generally
+ "application/x-www-form-urlencoded". See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-enctype">
+ enctype attribute definition </a> in HTML 4.0.
+ @short The content type of the submitted form, generally "application/x-www-form-urlencoded".
+ */
+ public native String enctype();
+ /**
+ see enctype
+ @short see enctype
+ */
+ public native void setEnctype(String arg1);
+ /**
+ HTTP method used to submit form. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-method">
+ method attribute definition </a> in HTML 4.0.
+ @short HTTP method used to submit form.
+ */
+ public native String method();
+ /**
+ see method
+ @short see method
+ */
+ public native void setMethod(String arg1);
+ /**
+ Frame to render the resource in. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-target">
+ target attribute definition </a> in HTML 4.0.
+ @short Frame to render the resource in.
+ */
+ public native String target();
+ /**
+ see target
+ @short see target
+ */
+ public native void setTarget(String arg1);
+ /**
+ Submits the form. It performs the same action as a submit
+ button.
+ @short Submits the form.
+ */
+ public native void submit();
+ /**
+ Restores a form element's default values. It performs the same
+ action as a reset button.
+ @short Restores a form element's default values.
+ */
+ public native void reset();
+ // DOM::HTMLFormElement* HTMLFormElement(DOM::HTMLFormElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLFrameElement.java b/kdejava/koala/org/kde/koala/HTMLFrameElement.java
new file mode 100644
index 00000000..6e90ecb2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLFrameElement.java
@@ -0,0 +1,142 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Create a frame. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#edef-FRAME">
+ FRAME element definition </a> in HTML 4.0.
+ @short Create a frame.
+
+*/
+public class HTMLFrameElement extends HTMLElement {
+ protected HTMLFrameElement(Class dummy){super((Class) null);}
+ public HTMLFrameElement() {
+ super((Class) null);
+ newHTMLFrameElement();
+ }
+ private native void newHTMLFrameElement();
+ public HTMLFrameElement(HTMLFrameElement other) {
+ super((Class) null);
+ newHTMLFrameElement(other);
+ }
+ private native void newHTMLFrameElement(HTMLFrameElement other);
+ public HTMLFrameElement(Node other) {
+ super((Class) null);
+ newHTMLFrameElement(other);
+ }
+ private native void newHTMLFrameElement(Node other);
+ /**
+ Request frame borders. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-frameborder">
+ frameborder attribute definition </a> in HTML 4.0.
+ @short Request frame borders.
+ */
+ public native String frameBorder();
+ /**
+ see frameBorder
+ @short see frameBorder
+ */
+ public native void setFrameBorder(String arg1);
+ /**
+ URI designating a long description of this image or frame. See
+ the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-longdesc-FRAME">
+ longdesc attribute definition </a> in HTML 4.0.
+ @short URI designating a long description of this image or frame.
+ */
+ public native String longDesc();
+ /**
+ see longDesc
+ @short see longDesc
+ */
+ public native void setLongDesc(String arg1);
+ /**
+ Frame margin height, in pixels. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-marginheight">
+ marginheight attribute definition </a> in HTML 4.0.
+ @short Frame margin height, in pixels.
+ */
+ public native String marginHeight();
+ /**
+ see marginHeight
+ @short see marginHeight
+ */
+ public native void setMarginHeight(String arg1);
+ /**
+ Frame margin width, in pixels. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-marginwidth">
+ marginwidth attribute definition </a> in HTML 4.0.
+ @short Frame margin width, in pixels.
+ */
+ public native String marginWidth();
+ /**
+ see marginWidth
+ @short see marginWidth
+ */
+ public native void setMarginWidth(String arg1);
+ /**
+ The frame name (object of the <code>target</code> attribute).
+ See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-name-FRAME">
+ name attribute definition </a> in HTML 4.0.
+ @short The frame name (object of the <code>target</code> attribute).
+ */
+ public native String name();
+ /**
+ see name
+ @short see name
+ */
+ public native void setName(String arg1);
+ /**
+ When true, forbid user from resizing frame. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-noresize">
+ noresize attribute definition </a> in HTML 4.0.
+ @short When true, forbid user from resizing frame.
+ */
+ public native boolean noResize();
+ /**
+ see noResize
+ @short see noResize
+ */
+ public native void setNoResize(boolean arg1);
+ /**
+ Specify whether or not the frame should have scrollbars. See
+ the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-scrolling">
+ scrolling attribute definition </a> in HTML 4.0.
+ @short Specify whether or not the frame should have scrollbars.
+ */
+ public native String scrolling();
+ /**
+ see scrolling
+ @short see scrolling
+ */
+ public native void setScrolling(String arg1);
+ /**
+ A URI designating the initial frame contents. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-src-FRAME">
+ src attribute definition </a> in HTML 4.0.
+ @short A URI designating the initial frame contents.
+ */
+ public native String src();
+ /**
+ see src
+ @short see src
+ */
+ public native void setSrc(String arg1);
+ /**
+ Introduced in DOM Level 2
+ Returns the document this frame contains, if there is any and
+ it is available, a Null document otherwise. The attribute is
+ read-only.
+ @return The content Document if available.
+
+ @short Introduced in DOM Level 2
+ */
+ public native Document contentDocument();
+ // DOM::HTMLFrameElement* HTMLFrameElement(DOM::HTMLFrameElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLFrameSetElement.java b/kdejava/koala/org/kde/koala/HTMLFrameSetElement.java
new file mode 100644
index 00000000..a814dae1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLFrameSetElement.java
@@ -0,0 +1,57 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Create a grid of frames. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#edef-FRAMESET">
+ FRAMESET element definition </a> in HTML 4.0.
+ @short Create a grid of frames.
+
+*/
+public class HTMLFrameSetElement extends HTMLElement {
+ protected HTMLFrameSetElement(Class dummy){super((Class) null);}
+ public HTMLFrameSetElement() {
+ super((Class) null);
+ newHTMLFrameSetElement();
+ }
+ private native void newHTMLFrameSetElement();
+ public HTMLFrameSetElement(HTMLFrameSetElement other) {
+ super((Class) null);
+ newHTMLFrameSetElement(other);
+ }
+ private native void newHTMLFrameSetElement(HTMLFrameSetElement other);
+ public HTMLFrameSetElement(Node other) {
+ super((Class) null);
+ newHTMLFrameSetElement(other);
+ }
+ private native void newHTMLFrameSetElement(Node other);
+ /**
+ The number of columns of frames in the frameset. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-cols-FRAMESET">
+ cols attribute definition </a> in HTML 4.0.
+ @short The number of columns of frames in the frameset.
+ */
+ public native String cols();
+ /**
+ see cols
+ @short see cols
+ */
+ public native void setCols(String arg1);
+ /**
+ The number of rows of frames in the frameset. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-rows-FRAMESET">
+ rows attribute definition </a> in HTML 4.0.
+ @short The number of rows of frames in the frameset.
+ */
+ public native String rows();
+ /**
+ see rows
+ @short see rows
+ */
+ public native void setRows(String arg1);
+ // DOM::HTMLFrameSetElement* HTMLFrameSetElement(DOM::HTMLFrameSetElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLHRElement.java b/kdejava/koala/org/kde/koala/HTMLHRElement.java
new file mode 100644
index 00000000..ee727f02
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLHRElement.java
@@ -0,0 +1,86 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Create a horizontal rule. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#edef-HR">
+ HR element definition </a> in HTML 4.0.
+ @short Create a horizontal rule.
+
+*/
+public class HTMLHRElement extends HTMLElement {
+ protected HTMLHRElement(Class dummy){super((Class) null);}
+ public HTMLHRElement() {
+ super((Class) null);
+ newHTMLHRElement();
+ }
+ private native void newHTMLHRElement();
+ public HTMLHRElement(HTMLHRElement other) {
+ super((Class) null);
+ newHTMLHRElement(other);
+ }
+ private native void newHTMLHRElement(HTMLHRElement other);
+ public HTMLHRElement(Node other) {
+ super((Class) null);
+ newHTMLHRElement(other);
+ }
+ private native void newHTMLHRElement(Node other);
+ /**
+ Align the rule on the page. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-align-HR">
+ align attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Align the rule on the page.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ /**
+ Indicates to the user agent that there should be no shading in
+ the rendering of this element. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-noshade">
+ noshade attribute definition </a> in HTML 4.0. This attribute
+ is deprecated in HTML 4.0.
+ @short Indicates to the user agent that there should be no shading in the rendering of this element.
+ */
+ public native boolean noShade();
+ /**
+ see noShade
+ @short see noShade
+ */
+ public native void setNoShade(boolean arg1);
+ /**
+ The height of the rule. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-size-HR">
+ size attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short The height of the rule.
+ */
+ public native String size();
+ /**
+ see size
+ @short see size
+ */
+ public native void setSize(String arg1);
+ /**
+ The width of the rule. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-width-HR">
+ width attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short The width of the rule.
+ */
+ public native String width();
+ /**
+ see width
+ @short see width
+ */
+ public native void setWidth(String arg1);
+ // DOM::HTMLHRElement* HTMLHRElement(DOM::HTMLHRElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLHeadElement.java b/kdejava/koala/org/kde/koala/HTMLHeadElement.java
new file mode 100644
index 00000000..ba2a2c05
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLHeadElement.java
@@ -0,0 +1,45 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Document head information. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#edef-HEAD">
+ HEAD element definition </a> in HTML 4.0.
+ @short Document head information.
+
+*/
+public class HTMLHeadElement extends HTMLElement {
+ protected HTMLHeadElement(Class dummy){super((Class) null);}
+ public HTMLHeadElement() {
+ super((Class) null);
+ newHTMLHeadElement();
+ }
+ private native void newHTMLHeadElement();
+ public HTMLHeadElement(HTMLHeadElement other) {
+ super((Class) null);
+ newHTMLHeadElement(other);
+ }
+ private native void newHTMLHeadElement(HTMLHeadElement other);
+ public HTMLHeadElement(Node other) {
+ super((Class) null);
+ newHTMLHeadElement(other);
+ }
+ private native void newHTMLHeadElement(Node other);
+ /**
+ URI designating a metadata profile. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-profile">
+ profile attribute definition </a> in HTML 4.0.
+ @short URI designating a metadata profile.
+ */
+ public native String profile();
+ /**
+ see profile
+ @short see profile
+ */
+ public native void setProfile(String arg1);
+ // DOM::HTMLHeadElement* HTMLHeadElement(DOM::HTMLHeadElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLHeadingElement.java b/kdejava/koala/org/kde/koala/HTMLHeadingElement.java
new file mode 100644
index 00000000..07e92511
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLHeadingElement.java
@@ -0,0 +1,46 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ For the <code>H1</code> to <code>H6</code> elements. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#edef-H1">
+ H1 element definition </a> in HTML 4.0.
+ @short For the <code>H1</code> to <code>H6</code> elements.
+
+*/
+public class HTMLHeadingElement extends HTMLElement {
+ protected HTMLHeadingElement(Class dummy){super((Class) null);}
+ public HTMLHeadingElement() {
+ super((Class) null);
+ newHTMLHeadingElement();
+ }
+ private native void newHTMLHeadingElement();
+ public HTMLHeadingElement(HTMLHeadingElement other) {
+ super((Class) null);
+ newHTMLHeadingElement(other);
+ }
+ private native void newHTMLHeadingElement(HTMLHeadingElement other);
+ public HTMLHeadingElement(Node other) {
+ super((Class) null);
+ newHTMLHeadingElement(other);
+ }
+ private native void newHTMLHeadingElement(Node other);
+ /**
+ Horizontal text alignment. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-align">
+ align attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Horizontal text alignment.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ // DOM::HTMLHeadingElement* HTMLHeadingElement(DOM::HTMLElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLHtmlElement.java b/kdejava/koala/org/kde/koala/HTMLHtmlElement.java
new file mode 100644
index 00000000..264f3f79
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLHtmlElement.java
@@ -0,0 +1,46 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Root of an HTML document. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#edef-HTML">
+ HTML element definition </a> in HTML 4.0.
+ @short Root of an HTML document.
+
+*/
+public class HTMLHtmlElement extends HTMLElement {
+ protected HTMLHtmlElement(Class dummy){super((Class) null);}
+ public HTMLHtmlElement() {
+ super((Class) null);
+ newHTMLHtmlElement();
+ }
+ private native void newHTMLHtmlElement();
+ public HTMLHtmlElement(HTMLHtmlElement other) {
+ super((Class) null);
+ newHTMLHtmlElement(other);
+ }
+ private native void newHTMLHtmlElement(HTMLHtmlElement other);
+ public HTMLHtmlElement(Node other) {
+ super((Class) null);
+ newHTMLHtmlElement(other);
+ }
+ private native void newHTMLHtmlElement(Node other);
+ /**
+ Version information about the document's DTD. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-version">
+ version attribute definition </a> in HTML 4.0. This attribute
+ is deprecated in HTML 4.0.
+ @short Version information about the document's DTD.
+ */
+ public native String version();
+ /**
+ see version
+ @short see version
+ */
+ public native void setVersion(String arg1);
+ // DOM::HTMLHtmlElement* HTMLHtmlElement(DOM::HTMLHtmlElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLIFrameElement.java b/kdejava/koala/org/kde/koala/HTMLIFrameElement.java
new file mode 100644
index 00000000..591ed864
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLIFrameElement.java
@@ -0,0 +1,168 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Inline subwindows. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#edef-IFRAME">
+ IFRAME element definition </a> in HTML 4.0.
+ @short Inline subwindows.
+
+*/
+public class HTMLIFrameElement extends HTMLElement {
+ protected HTMLIFrameElement(Class dummy){super((Class) null);}
+ public HTMLIFrameElement() {
+ super((Class) null);
+ newHTMLIFrameElement();
+ }
+ private native void newHTMLIFrameElement();
+ public HTMLIFrameElement(HTMLIFrameElement other) {
+ super((Class) null);
+ newHTMLIFrameElement(other);
+ }
+ private native void newHTMLIFrameElement(HTMLIFrameElement other);
+ public HTMLIFrameElement(Node other) {
+ super((Class) null);
+ newHTMLIFrameElement(other);
+ }
+ private native void newHTMLIFrameElement(Node other);
+ /**
+ Aligns this object (vertically or horizontally) with respect to
+ its surrounding text. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-align-IMG">
+ align attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Aligns this object (vertically or horizontally) with respect to its surrounding text.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ /**
+ Request frame borders. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-frameborder">
+ frameborder attribute definition </a> in HTML 4.0.
+ @short Request frame borders.
+ */
+ public native String frameBorder();
+ /**
+ see frameBorder
+ @short see frameBorder
+ */
+ public native void setFrameBorder(String arg1);
+ /**
+ Frame height. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-height-IFRAME">
+ height attribute definition </a> in HTML 4.0.
+ @short Frame height.
+ */
+ public native String height();
+ /**
+ see height
+ @short see height
+ */
+ public native void setHeight(String arg1);
+ /**
+ URI designating a long description of this image or frame. See
+ the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-longdesc-IFRAME">
+ longdesc attribute definition </a> in HTML 4.0.
+ @short URI designating a long description of this image or frame.
+ */
+ public native String longDesc();
+ /**
+ see longDesc
+ @short see longDesc
+ */
+ public native void setLongDesc(String arg1);
+ /**
+ Frame margin height, in pixels. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-marginheight">
+ marginheight attribute definition </a> in HTML 4.0.
+ @short Frame margin height, in pixels.
+ */
+ public native String marginHeight();
+ /**
+ see marginHeight
+ @short see marginHeight
+ */
+ public native void setMarginHeight(String arg1);
+ /**
+ Frame margin width, in pixels. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-marginwidth">
+ marginwidth attribute definition </a> in HTML 4.0.
+ @short Frame margin width, in pixels.
+ */
+ public native String marginWidth();
+ /**
+ see marginWidth
+ @short see marginWidth
+ */
+ public native void setMarginWidth(String arg1);
+ /**
+ The frame name (object of the <code>target</code> attribute).
+ See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-name-IFRAME">
+ name attribute definition </a> in HTML 4.0.
+ @short The frame name (object of the <code>target</code> attribute).
+ */
+ public native String name();
+ /**
+ see name
+ @short see name
+ */
+ public native void setName(String arg1);
+ /**
+ Specify whether or not the frame should have scrollbars. See
+ the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-scrolling">
+ scrolling attribute definition </a> in HTML 4.0.
+ @short Specify whether or not the frame should have scrollbars.
+ */
+ public native String scrolling();
+ /**
+ see scrolling
+ @short see scrolling
+ */
+ public native void setScrolling(String arg1);
+ /**
+ A URI designating the initial frame contents. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-src-FRAME">
+ src attribute definition </a> in HTML 4.0.
+ @short A URI designating the initial frame contents.
+ */
+ public native String src();
+ /**
+ see src
+ @short see src
+ */
+ public native void setSrc(String arg1);
+ /**
+ Frame width. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-width-IFRAME">
+ width attribute definition </a> in HTML 4.0.
+ @short Frame width.
+ */
+ public native String width();
+ /**
+ see width
+ @short see width
+ */
+ public native void setWidth(String arg1);
+ /**
+ Introduced in DOM Level 2
+ Returns the document this iframe contains, if there is any and
+ it is available, a Null document otherwise. The attribute is
+ read-only.
+ @return The content Document if available.
+
+ @short Introduced in DOM Level 2
+ */
+ public native Document contentDocument();
+ // DOM::HTMLIFrameElement* HTMLIFrameElement(DOM::HTMLIFrameElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLImageElement.java b/kdejava/koala/org/kde/koala/HTMLImageElement.java
new file mode 100644
index 00000000..2e2e5301
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLImageElement.java
@@ -0,0 +1,189 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Embedded image. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#edef-IMG">
+ IMG element definition </a> in HTML 4.0.
+ @short Embedded image.
+
+*/
+public class HTMLImageElement extends HTMLElement {
+ protected HTMLImageElement(Class dummy){super((Class) null);}
+ public HTMLImageElement() {
+ super((Class) null);
+ newHTMLImageElement();
+ }
+ private native void newHTMLImageElement();
+ public HTMLImageElement(HTMLImageElement other) {
+ super((Class) null);
+ newHTMLImageElement(other);
+ }
+ private native void newHTMLImageElement(HTMLImageElement other);
+ public HTMLImageElement(Node other) {
+ super((Class) null);
+ newHTMLImageElement(other);
+ }
+ private native void newHTMLImageElement(Node other);
+ /**
+ The name of the element (for backwards compatibility).
+ @short The name of the element (for backwards compatibility).
+ */
+ public native String name();
+ /**
+ see name
+ @short see name
+ */
+ public native void setName(String arg1);
+ /**
+ Aligns this object (vertically or horizontally) with respect to
+ its surrounding text. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-align-IMG">
+ align attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Aligns this object (vertically or horizontally) with respect to its surrounding text.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ /**
+ Alternate text for user agents not rendering the normal content
+ of this element. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-alt">
+ alt attribute definition </a> in HTML 4.0.
+ @short Alternate text for user agents not rendering the normal content of this element.
+ */
+ public native String alt();
+ /**
+ see alt
+ @short see alt
+ */
+ public native void setAlt(String arg1);
+ /**
+ Width of border around image. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-border-IMG">
+ border attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Width of border around image.
+ */
+ public native String getBorder();
+ /**
+ see border
+ @short see border
+ */
+ public native void setBorder(String arg1);
+ /**
+ Override height. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-height-IMG">
+ height attribute definition </a> in HTML 4.0.
+ @short Override height.
+ */
+ public native long height();
+ /**
+ see height
+ @short see height
+ */
+ public native void setHeight(long arg1);
+ /**
+ Horizontal space to the left and right of this image. See the
+ <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-hspace">
+ hspace attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Horizontal space to the left and right of this image.
+ */
+ public native long hspace();
+ /**
+ see hspace
+ @short see hspace
+ */
+ public native void setHspace(long arg1);
+ /**
+ Use server-side image map. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-ismap">
+ ismap attribute definition </a> in HTML 4.0.
+ @short Use server-side image map.
+ */
+ public native boolean isMap();
+ /**
+ see isMap
+ @short see isMap
+ */
+ public native void setIsMap(boolean arg1);
+ /**
+ URI designating a long description of this image or frame. See
+ the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-longdesc-IMG">
+ longdesc attribute definition </a> in HTML 4.0.
+ @short URI designating a long description of this image or frame.
+ */
+ public native String longDesc();
+ /**
+ see longDesc
+ @short see longDesc
+ */
+ public native void setLongDesc(String arg1);
+ /**
+ URI designating the source of this image. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-src-IMG">
+ src attribute definition </a> in HTML 4.0.
+ @short URI designating the source of this image.
+ */
+ public native String src();
+ /**
+ see src
+ @short see src
+ */
+ public native void setSrc(String arg1);
+ /**
+ Use client-side image map. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-usemap">
+ usemap attribute definition </a> in HTML 4.0.
+ @short Use client-side image map.
+ */
+ public native String useMap();
+ /**
+ see useMap
+ @short see useMap
+ */
+ public native void setUseMap(String arg1);
+ /**
+ Vertical space above and below this image. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-vspace">
+ vspace attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Vertical space above and below this image.
+ */
+ public native long vspace();
+ /**
+ see vspace
+ @short see vspace
+ */
+ public native void setVspace(long arg1);
+ /**
+ Override width. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-width-IMG">
+ width attribute definition </a> in HTML 4.0.
+ @short Override width.
+ */
+ public native long width();
+ /**
+ see width
+ @short see width
+ */
+ public native void setWidth(long arg1);
+ /**
+ Nonstandard extension to DOM.ImgElement
+ @short Nonstandard extension to DOM.ImgElement
+ */
+ public native long x();
+ public native long y();
+ // DOM::HTMLImageElement* HTMLImageElement(DOM::HTMLImageElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLInputElement.java b/kdejava/koala/org/kde/koala/HTMLInputElement.java
new file mode 100644
index 00000000..1abbe641
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLInputElement.java
@@ -0,0 +1,284 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Form control. Note. Depending upon the environment the page is
+ being viewed, the value property may be read-only for the file
+ upload input type. For the "password" input type, the actual value
+ returned may be masked to prevent unauthorized use. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-INPUT">
+ INPUT element definition </a> in HTML 4.0.
+ @short Form control.
+
+*/
+public class HTMLInputElement extends HTMLElement {
+ protected HTMLInputElement(Class dummy){super((Class) null);}
+ public HTMLInputElement() {
+ super((Class) null);
+ newHTMLInputElement();
+ }
+ private native void newHTMLInputElement();
+ public HTMLInputElement(HTMLInputElement other) {
+ super((Class) null);
+ newHTMLInputElement(other);
+ }
+ private native void newHTMLInputElement(HTMLInputElement other);
+ public HTMLInputElement(Node other) {
+ super((Class) null);
+ newHTMLInputElement(other);
+ }
+ private native void newHTMLInputElement(Node other);
+ /**
+ Stores the initial control value (i.e., the initial value of
+ <code>value</code> ).
+ @short Stores the initial control value (i.
+ */
+ public native String defaultValue();
+ /**
+ see defaultValue
+ @short see defaultValue
+ */
+ public native void setDefaultValue(String arg1);
+ /**
+ When <code>type</code> has the value "Radio" or "Checkbox",
+ stores the initial value of the <code>checked</code>
+ attribute.
+ @short When <code>type</code> has the value "Radio" or "Checkbox", stores the initial value of the <code>checked</code> attribute.
+ */
+ public native boolean defaultChecked();
+ /**
+ see defaultChecked
+ @short see defaultChecked
+ */
+ public native void setDefaultChecked(boolean arg1);
+ /**
+ ### KDE 4.0: remove.
+ @short ### KDE 4.
+ */
+ public native HTMLFormElement formElement();
+ /**
+ A comma-separated list of content types that a server
+ processing this form will handle correctly. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accept">
+ accept attribute definition </a> in HTML 4.0.
+ @short A comma-separated list of content types that a server processing this form will handle correctly.
+ */
+ public native String accept();
+ /**
+ see accept
+ @short see accept
+ */
+ public native void setAccept(String arg1);
+ /**
+ A single character access key to give access to the form
+ control. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accesskey">
+ accesskey attribute definition </a> in HTML 4.0.
+ @short A single character access key to give access to the form control.
+ */
+ public native String accessKey();
+ /**
+ see accessKey
+ @short see accessKey
+ */
+ public native void setAccessKey(String arg1);
+ /**
+ Aligns this object (vertically or horizontally) with respect to
+ its surrounding text. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-align-IMG">
+ align attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Aligns this object (vertically or horizontally) with respect to its surrounding text.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ /**
+ Alternate text for user agents not rendering the normal content
+ of this element. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-alt">
+ alt attribute definition </a> in HTML 4.0.
+ @short Alternate text for user agents not rendering the normal content of this element.
+ */
+ public native String alt();
+ /**
+ see alt
+ @short see alt
+ */
+ public native void setAlt(String arg1);
+ /**
+ Describes whether a radio or check box is checked, when
+ <code>type</code> has the value "Radio" or "Checkbox". The value is
+ true if explicitly set. Represents the current state of the
+ checkbox or radio button. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-checked">
+ checked attribute definition </a> in HTML 4.0.
+ @short Describes whether a radio or check box is checked, when <code>type</code> has the value "Radio" or "Checkbox".
+ */
+ public native boolean checked();
+ /**
+ see checked
+ @short see checked
+ */
+ public native void setChecked(boolean arg1);
+ /**
+ The control is unavailable in this context. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-disabled">
+ disabled attribute definition </a> in HTML 4.0.
+ @short The control is unavailable in this context.
+ */
+ public native boolean disabled();
+ /**
+ see disabled
+ @short see disabled
+ */
+ public native void setDisabled(boolean arg1);
+ /**
+ Maximum number of characters for text fields, when <code>type</code>
+ has the value "Text" or "Password". See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-maxlength">
+ maxlength attribute definition </a> in HTML 4.0.
+ @short Maximum number of characters for text fields, when <code>type</code> has the value "Text" or "Password".
+ */
+ public native long maxLength();
+ /**
+ see maxLength
+ @short see maxLength
+ */
+ public native void setMaxLength(long arg1);
+ /**
+ Form control or object name when submitted with a form. See the
+ <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-name-INPUT">
+ name attribute definition </a> in HTML 4.0.
+ @short Form control or object name when submitted with a form.
+ */
+ public native String name();
+ /**
+ see name
+ @short see name
+ */
+ public native void setName(String arg1);
+ /**
+ This control is read-only. When <code>type</code> has the
+ value "text" or "password" only. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-readonly">
+ readonly attribute definition </a> in HTML 4.0.
+ @short This control is read-only.
+ */
+ public native boolean readOnly();
+ /**
+ see readOnly
+ @short see readOnly
+ */
+ public native void setReadOnly(boolean arg1);
+ /**
+ Size information. The precise meaning is specific to each type
+ of field. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-size-INPUT">
+ size attribute definition </a> in HTML 4.0.
+ @short Size information.
+ */
+ public native long getSize();
+ /**
+ see getSize
+ @short see getSize
+ */
+ public native void setSize(long arg1);
+ /**
+ When the <code>type</code> attribute has the value "Image",
+ this attribute specifies the location of the image to be used
+ to decorate the graphical submit button. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-src">
+ src attribute definition </a> in HTML 4.0.
+ @short When the <code>type</code> attribute has the value "Image", this attribute specifies the location of the image to be used to decorate the graphical submit button.
+ */
+ public native String src();
+ /**
+ see src
+ @short see src
+ */
+ public native void setSrc(String arg1);
+ /**
+ Index that represents the element's position in the tabbing
+ order. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-tabindex">
+ tabindex attribute definition </a> in HTML 4.0.
+ @short Index that represents the element's position in the tabbing order.
+ */
+ public native long tabIndex();
+ /**
+ see tabIndex
+ @short see tabIndex
+ */
+ public native void setTabIndex(long arg1);
+ /**
+ The type of control created. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-type-INPUT">
+ type attribute definition </a> in HTML 4.0.
+ @short The type of control created.
+ */
+ public native String type();
+ /**
+ see type
+ @short see type
+ */
+ public native void setType(String arg1);
+ /**
+ Use client-side image map. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-usemap">
+ usemap attribute definition </a> in HTML 4.0.
+ @short Use client-side image map.
+ */
+ public native String useMap();
+ /**
+ see useMap
+ @short see useMap
+ */
+ public native void setUseMap(String arg1);
+ /**
+ The current form control value. Used for radio buttons and
+ check boxes. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-value-INPUT">
+ value attribute definition </a> in HTML 4.0.
+ @short The current form control value.
+ */
+ public native String value();
+ /**
+ see value
+ @short see value
+ */
+ public native void setValue(String arg1);
+ /**
+ Removes keyboard focus from this element.
+ @short Removes keyboard focus from this element.
+ */
+ public native void blur();
+ /**
+ Gives keyboard focus to this element.
+ @short Gives keyboard focus to this element.
+ */
+ public native void focus();
+ /**
+ Select the contents of the text area. For <code>INPUT</code>
+ elements whose <code>type</code> attribute has one of the
+ following values: "Text", "File", or "Password".
+ @short Select the contents of the text area.
+ */
+ public native void select();
+ /**
+ Simulate a mouse-click. For <code>INPUT</code> elements whose
+ <code>type</code> attribute has one of the following values:
+ "Button", "Checkbox", "Radio", "Reset", or "Submit".
+ @short Simulate a mouse-click.
+ */
+ public native void click();
+ // DOM::HTMLInputElement* HTMLInputElement(DOM::HTMLInputElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLIsIndexElement.java b/kdejava/koala/org/kde/koala/HTMLIsIndexElement.java
new file mode 100644
index 00000000..2cc3eaa8
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLIsIndexElement.java
@@ -0,0 +1,52 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This element is used for single-line text input. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-ISINDEX">
+ ISINDEX element definition </a> in HTML 4.0. This element is
+ deprecated in HTML 4.0.
+ @short This element is used for single-line text input.
+
+*/
+public class HTMLIsIndexElement extends HTMLElement {
+ protected HTMLIsIndexElement(Class dummy){super((Class) null);}
+ public HTMLIsIndexElement() {
+ super((Class) null);
+ newHTMLIsIndexElement();
+ }
+ private native void newHTMLIsIndexElement();
+ public HTMLIsIndexElement(HTMLIsIndexElement other) {
+ super((Class) null);
+ newHTMLIsIndexElement(other);
+ }
+ private native void newHTMLIsIndexElement(HTMLIsIndexElement other);
+ public HTMLIsIndexElement(Node other) {
+ super((Class) null);
+ newHTMLIsIndexElement(other);
+ }
+ private native void newHTMLIsIndexElement(Node other);
+ /**
+ ### KDE 4.0: remove
+ @short ### KDE 4.
+ */
+ public native HTMLFormElement formElement();
+ /**
+ The prompt message. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-prompt">
+ prompt attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short The prompt message.
+ */
+ public native String prompt();
+ /**
+ see prompt
+ @short see prompt
+ */
+ public native void setPrompt(String arg1);
+ // DOM::HTMLIsIndexElement* HTMLIsIndexElement(DOM::HTMLIsIndexElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLLIElement.java b/kdejava/koala/org/kde/koala/HTMLLIElement.java
new file mode 100644
index 00000000..101e6db8
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLLIElement.java
@@ -0,0 +1,59 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ List item. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#edef-LI">
+ LI element definition </a> in HTML 4.0.
+ @short List item.
+
+*/
+public class HTMLLIElement extends HTMLElement {
+ protected HTMLLIElement(Class dummy){super((Class) null);}
+ public HTMLLIElement() {
+ super((Class) null);
+ newHTMLLIElement();
+ }
+ private native void newHTMLLIElement();
+ public HTMLLIElement(HTMLLIElement other) {
+ super((Class) null);
+ newHTMLLIElement(other);
+ }
+ private native void newHTMLLIElement(HTMLLIElement other);
+ public HTMLLIElement(Node other) {
+ super((Class) null);
+ newHTMLLIElement(other);
+ }
+ private native void newHTMLLIElement(Node other);
+ /**
+ List item bullet style. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#adef-type-LI">
+ type attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short List item bullet style.
+ */
+ public native String type();
+ /**
+ see type
+ @short see type
+ */
+ public native void setType(String arg1);
+ /**
+ Reset sequence number when used in <code>OL</code> See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#adef-value-LI">
+ value attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Reset sequence number when used in <code>OL</code> See the <a href="http://www.
+ */
+ public native long value();
+ /**
+ see value
+ @short see value
+ */
+ public native void setValue(long arg1);
+ // DOM::HTMLLIElement* HTMLLIElement(DOM::HTMLLIElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLLabelElement.java b/kdejava/koala/org/kde/koala/HTMLLabelElement.java
new file mode 100644
index 00000000..b8498e66
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLLabelElement.java
@@ -0,0 +1,59 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Form field label text. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-LABEL">
+ LABEL element definition </a> in HTML 4.0.
+ @short Form field label text.
+
+*/
+public class HTMLLabelElement extends HTMLElement {
+ protected HTMLLabelElement(Class dummy){super((Class) null);}
+ public HTMLLabelElement() {
+ super((Class) null);
+ newHTMLLabelElement();
+ }
+ private native void newHTMLLabelElement();
+ public HTMLLabelElement(HTMLLabelElement other) {
+ super((Class) null);
+ newHTMLLabelElement(other);
+ }
+ private native void newHTMLLabelElement(HTMLLabelElement other);
+ public HTMLLabelElement(Node other) {
+ super((Class) null);
+ newHTMLLabelElement(other);
+ }
+ private native void newHTMLLabelElement(Node other);
+ /**
+ A single character access key to give access to the form
+ control. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accesskey">
+ accesskey attribute definition </a> in HTML 4.0.
+ @short A single character access key to give access to the form control.
+ */
+ public native String accessKey();
+ /**
+ see accessKey
+ @short see accessKey
+ */
+ public native void setAccessKey(String arg1);
+ /**
+ This attribute links this label with another form control by
+ <code>id</code> attribute. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-for">
+ for attribute definition </a> in HTML 4.0.
+ @short This attribute links this label with another form control by <code>id</code> attribute.
+ */
+ public native String htmlFor();
+ /**
+ see htmlFor
+ @short see htmlFor
+ */
+ public native void setHtmlFor(String arg1);
+ // DOM::HTMLLabelElement* HTMLLabelElement(DOM::HTMLLabelElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLLegendElement.java b/kdejava/koala/org/kde/koala/HTMLLegendElement.java
new file mode 100644
index 00000000..21ca8a71
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLLegendElement.java
@@ -0,0 +1,65 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Provides a caption for a <code>FIELDSET</code> grouping. See the
+ <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-LEGEND">
+ LEGEND element definition </a> in HTML 4.0.
+ @short Provides a caption for a <code>FIELDSET</code> grouping.
+
+*/
+public class HTMLLegendElement extends HTMLElement {
+ protected HTMLLegendElement(Class dummy){super((Class) null);}
+ public HTMLLegendElement() {
+ super((Class) null);
+ newHTMLLegendElement();
+ }
+ private native void newHTMLLegendElement();
+ public HTMLLegendElement(HTMLLegendElement other) {
+ super((Class) null);
+ newHTMLLegendElement(other);
+ }
+ private native void newHTMLLegendElement(HTMLLegendElement other);
+ public HTMLLegendElement(Node other) {
+ super((Class) null);
+ newHTMLLegendElement(other);
+ }
+ private native void newHTMLLegendElement(Node other);
+ /**
+ ### KDE 4.0: remove
+ @short ### KDE 4.
+ */
+ public native HTMLFormElement formElement();
+ /**
+ A single character access key to give access to the form
+ control. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accesskey">
+ accesskey attribute definition </a> in HTML 4.0.
+ @short A single character access key to give access to the form control.
+ */
+ public native String accessKey();
+ /**
+ see accessKey
+ @short see accessKey
+ */
+ public native void setAccessKey(String arg1);
+ /**
+ Text alignment relative to <code>FIELDSET</code> . See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-align-LEGEND">
+ align attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Text alignment relative to <code>FIELDSET</code> .
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ // DOM::HTMLLegendElement* HTMLLegendElement(DOM::HTMLLegendElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLLinkElement.java b/kdejava/koala/org/kde/koala/HTMLLinkElement.java
new file mode 100644
index 00000000..87c08702
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLLinkElement.java
@@ -0,0 +1,151 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>LINK</code> element specifies a link to an external
+ resource, and defines this document's relationship to that resource
+ (or vice versa). See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#edef-LINK">
+ LINK element definition </a> in HTML 4.0.
+ @short The <code>LINK</code> element specifies a link to an external resource, and defines this document's relationship to that resource (or vice versa).
+
+*/
+public class HTMLLinkElement extends HTMLElement {
+ protected HTMLLinkElement(Class dummy){super((Class) null);}
+ public HTMLLinkElement() {
+ super((Class) null);
+ newHTMLLinkElement();
+ }
+ private native void newHTMLLinkElement();
+ public HTMLLinkElement(HTMLLinkElement other) {
+ super((Class) null);
+ newHTMLLinkElement(other);
+ }
+ private native void newHTMLLinkElement(HTMLLinkElement other);
+ public HTMLLinkElement(Node other) {
+ super((Class) null);
+ newHTMLLinkElement(other);
+ }
+ private native void newHTMLLinkElement(Node other);
+ /**
+ Enables/disables the link. This is currently only used for
+ style sheet links, and may be used to activate or deactivate
+ style sheets.
+ @short Enables/disables the link.
+ */
+ public native boolean disabled();
+ /**
+ see disabled
+ @short see disabled
+ */
+ public native void setDisabled(boolean arg1);
+ /**
+ The character encoding of the resource being linked to. See the
+ <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-charset">
+ charset attribute definition </a> in HTML 4.0.
+ @short The character encoding of the resource being linked to.
+ */
+ public native String charset();
+ /**
+ see charset
+ @short see charset
+ */
+ public native void setCharset(String arg1);
+ /**
+ The URI of the linked resource. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-href">
+ href attribute definition </a> in HTML 4.0.
+ @short The URI of the linked resource.
+ */
+ public native String href();
+ /**
+ see href
+ @short see href
+ */
+ public native void setHref(String arg1);
+ /**
+ Language code of the linked resource. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-hreflang">
+ hreflang attribute definition </a> in HTML 4.0.
+ @short Language code of the linked resource.
+ */
+ public native String hreflang();
+ /**
+ see hreflang
+ @short see hreflang
+ */
+ public native void setHreflang(String arg1);
+ /**
+ Designed for use with one or more target media. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/styles.html#adef-media">
+ media attribute definition </a> in HTML 4.0.
+ @short Designed for use with one or more target media.
+ */
+ public native String media();
+ /**
+ see media
+ @short see media
+ */
+ public native void setMedia(String arg1);
+ /**
+ Forward link type. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-rel">
+ rel attribute definition </a> in HTML 4.0.
+ @short Forward link type.
+ */
+ public native String rel();
+ /**
+ see rel
+ @short see rel
+ */
+ public native void setRel(String arg1);
+ /**
+ Reverse link type. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-rev">
+ rev attribute definition </a> in HTML 4.0.
+ @short Reverse link type.
+ */
+ public native String rev();
+ /**
+ see rev
+ @short see rev
+ */
+ public native void setRev(String arg1);
+ /**
+ Frame to render the resource in. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-target">
+ target attribute definition </a> in HTML 4.0.
+ @short Frame to render the resource in.
+ */
+ public native String target();
+ /**
+ see target
+ @short see target
+ */
+ public native void setTarget(String arg1);
+ /**
+ Advisory content type. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-type-A">
+ type attribute definition </a> in HTML 4.0.
+ @short Advisory content type.
+ */
+ public native String type();
+ /**
+ see type
+ @short see type
+ */
+ public native void setType(String arg1);
+ /**
+ Introduced in DOM Level 2
+ This method is from the LinkStyle interface
+ The style sheet.
+ @short Introduced in DOM Level 2 This method is from the LinkStyle interface
+ */
+ public native StyleSheet sheet();
+ // DOM::HTMLLinkElement* HTMLLinkElement(DOM::HTMLLinkElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLMapElement.java b/kdejava/koala/org/kde/koala/HTMLMapElement.java
new file mode 100644
index 00000000..7b542b9e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLMapElement.java
@@ -0,0 +1,50 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Client-side image map. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#edef-MAP">
+ MAP element definition </a> in HTML 4.0.
+ @short Client-side image map.
+
+*/
+public class HTMLMapElement extends HTMLElement {
+ protected HTMLMapElement(Class dummy){super((Class) null);}
+ public HTMLMapElement() {
+ super((Class) null);
+ newHTMLMapElement();
+ }
+ private native void newHTMLMapElement();
+ public HTMLMapElement(HTMLMapElement other) {
+ super((Class) null);
+ newHTMLMapElement(other);
+ }
+ private native void newHTMLMapElement(HTMLMapElement other);
+ public HTMLMapElement(Node other) {
+ super((Class) null);
+ newHTMLMapElement(other);
+ }
+ private native void newHTMLMapElement(Node other);
+ /**
+ The list of areas defined for the image map.
+ @short The list of areas defined for the image map.
+ */
+ public native HTMLCollection areas();
+ /**
+ Names the map (for use with <code>usemap</code> ). See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-name-MAP">
+ name attribute definition </a> in HTML 4.0.
+ @short Names the map (for use with <code>usemap</code> ).
+ */
+ public native String name();
+ /**
+ see name
+ @short see name
+ */
+ public native void setName(String arg1);
+ // DOM::HTMLMapElement* HTMLMapElement(DOM::HTMLMapElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLMenuElement.java b/kdejava/koala/org/kde/koala/HTMLMenuElement.java
new file mode 100644
index 00000000..fa1597e2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLMenuElement.java
@@ -0,0 +1,47 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Menu list. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#edef-MENU">
+ MENU element definition </a> in HTML 4.0. This element is
+ deprecated in HTML 4.0.
+ @short Menu list.
+
+*/
+public class HTMLMenuElement extends HTMLElement {
+ protected HTMLMenuElement(Class dummy){super((Class) null);}
+ public HTMLMenuElement() {
+ super((Class) null);
+ newHTMLMenuElement();
+ }
+ private native void newHTMLMenuElement();
+ public HTMLMenuElement(HTMLMenuElement other) {
+ super((Class) null);
+ newHTMLMenuElement(other);
+ }
+ private native void newHTMLMenuElement(HTMLMenuElement other);
+ public HTMLMenuElement(Node other) {
+ super((Class) null);
+ newHTMLMenuElement(other);
+ }
+ private native void newHTMLMenuElement(Node other);
+ /**
+ Reduce spacing between list items. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#adef-compact">
+ compact attribute definition </a> in HTML 4.0. This attribute
+ is deprecated in HTML 4.0.
+ @short Reduce spacing between list items.
+ */
+ public native boolean compact();
+ /**
+ see compact
+ @short see compact
+ */
+ public native void setCompact(boolean arg1);
+ // DOM::HTMLMenuElement* HTMLMenuElement(DOM::HTMLMenuElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLMetaElement.java b/kdejava/koala/org/kde/koala/HTMLMetaElement.java
new file mode 100644
index 00000000..3a586633
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLMetaElement.java
@@ -0,0 +1,82 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This contains generic meta-information about the document. See the
+ <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#edef-META">
+ META element definition </a> in HTML 4.0.
+ @short This contains generic meta-information about the document.
+
+*/
+public class HTMLMetaElement extends HTMLElement {
+ protected HTMLMetaElement(Class dummy){super((Class) null);}
+ public HTMLMetaElement() {
+ super((Class) null);
+ newHTMLMetaElement();
+ }
+ private native void newHTMLMetaElement();
+ public HTMLMetaElement(HTMLMetaElement other) {
+ super((Class) null);
+ newHTMLMetaElement(other);
+ }
+ private native void newHTMLMetaElement(HTMLMetaElement other);
+ public HTMLMetaElement(Node other) {
+ super((Class) null);
+ newHTMLMetaElement(other);
+ }
+ private native void newHTMLMetaElement(Node other);
+ /**
+ Associated information. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-content">
+ content attribute definition </a> in HTML 4.0.
+ @short Associated information.
+ */
+ public native String content();
+ /**
+ see content
+ @short see content
+ */
+ public native void setContent(String arg1);
+ /**
+ HTTP response header name. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-http-equiv">
+ http-equiv attribute definition </a> in HTML 4.0.
+ @short HTTP response header name.
+ */
+ public native String httpEquiv();
+ /**
+ see httpEquiv
+ @short see httpEquiv
+ */
+ public native void setHttpEquiv(String arg1);
+ /**
+ Meta information name. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-name-META">
+ name attribute definition </a> in HTML 4.0.
+ @short Meta information name.
+ */
+ public native String name();
+ /**
+ see name
+ @short see name
+ */
+ public native void setName(String arg1);
+ /**
+ Select form of content. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-scheme">
+ scheme attribute definition </a> in HTML 4.0.
+ @short Select form of content.
+ */
+ public native String scheme();
+ /**
+ see scheme
+ @short see scheme
+ */
+ public native void setScheme(String arg1);
+ // DOM::HTMLMetaElement* HTMLMetaElement(DOM::HTMLMetaElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLModElement.java b/kdejava/koala/org/kde/koala/HTMLModElement.java
new file mode 100644
index 00000000..47a570cf
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLModElement.java
@@ -0,0 +1,59 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Notice of modification to part of a document. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-ins">
+ INS </a> and <a
+ href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-del">
+ DEL </a> element definitions in HTML 4.0.
+ @short Notice of modification to part of a document.
+
+*/
+public class HTMLModElement extends HTMLElement {
+ protected HTMLModElement(Class dummy){super((Class) null);}
+ public HTMLModElement() {
+ super((Class) null);
+ newHTMLModElement();
+ }
+ private native void newHTMLModElement();
+ public HTMLModElement(HTMLModElement other) {
+ super((Class) null);
+ newHTMLModElement(other);
+ }
+ private native void newHTMLModElement(HTMLModElement other);
+ public HTMLModElement(Node other) {
+ super((Class) null);
+ newHTMLModElement(other);
+ }
+ private native void newHTMLModElement(Node other);
+ /**
+ A URI designating a document that describes the reason for the
+ change. See the <a href="http://www.w3.org/TR/REC-html40/">
+ cite attribute definition </a> in HTML 4.0.
+ @short A URI designating a document that describes the reason for the change.
+ */
+ public native String cite();
+ /**
+ see cite
+ @short see cite
+ */
+ public native void setCite(String arg1);
+ /**
+ The date and time of the change. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/text.html#adef-datetime">
+ datetime attribute definition </a> in HTML 4.0.
+ @short The date and time of the change.
+ */
+ public native String dateTime();
+ /**
+ see dateTime
+ @short see dateTime
+ */
+ public native void setDateTime(String arg1);
+ // DOM::HTMLModElement* HTMLModElement(DOM::HTMLElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLOListElement.java b/kdejava/koala/org/kde/koala/HTMLOListElement.java
new file mode 100644
index 00000000..81650e3b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLOListElement.java
@@ -0,0 +1,72 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Ordered list. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#edef-OL">
+ OL element definition </a> in HTML 4.0.
+ @short Ordered list.
+
+*/
+public class HTMLOListElement extends HTMLElement {
+ protected HTMLOListElement(Class dummy){super((Class) null);}
+ public HTMLOListElement() {
+ super((Class) null);
+ newHTMLOListElement();
+ }
+ private native void newHTMLOListElement();
+ public HTMLOListElement(HTMLOListElement other) {
+ super((Class) null);
+ newHTMLOListElement(other);
+ }
+ private native void newHTMLOListElement(HTMLOListElement other);
+ public HTMLOListElement(Node other) {
+ super((Class) null);
+ newHTMLOListElement(other);
+ }
+ private native void newHTMLOListElement(Node other);
+ /**
+ Reduce spacing between list items. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#adef-compact">
+ compact attribute definition </a> in HTML 4.0. This attribute
+ is deprecated in HTML 4.0.
+ @short Reduce spacing between list items.
+ */
+ public native boolean compact();
+ /**
+ see compact
+ @short see compact
+ */
+ public native void setCompact(boolean arg1);
+ /**
+ Starting sequence number. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#adef-start">
+ start attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Starting sequence number.
+ */
+ public native long start();
+ /**
+ see start
+ @short see start
+ */
+ public native void setStart(long arg1);
+ /**
+ Numbering style. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#adef-type-OL">
+ type attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Numbering style.
+ */
+ public native String type();
+ /**
+ see type
+ @short see type
+ */
+ public native void setType(String arg1);
+ // DOM::HTMLOListElement* HTMLOListElement(DOM::HTMLOListElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLObjectElement.java b/kdejava/koala/org/kde/koala/HTMLObjectElement.java
new file mode 100644
index 00000000..ee1a9505
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLObjectElement.java
@@ -0,0 +1,269 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Generic embedded object. Note. In principle, all properties on the
+ object element are read-write but in some environments some
+ properties may be read-only once the underlying object is
+ instantiated. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#edef-OBJECT">
+ OBJECT element definition </a> in HTML 4.0.
+ @short Generic embedded object.
+
+*/
+public class HTMLObjectElement extends HTMLElement {
+ protected HTMLObjectElement(Class dummy){super((Class) null);}
+ public HTMLObjectElement() {
+ super((Class) null);
+ newHTMLObjectElement();
+ }
+ private native void newHTMLObjectElement();
+ public HTMLObjectElement(HTMLObjectElement other) {
+ super((Class) null);
+ newHTMLObjectElement(other);
+ }
+ private native void newHTMLObjectElement(HTMLObjectElement other);
+ public HTMLObjectElement(Node other) {
+ super((Class) null);
+ newHTMLObjectElement(other);
+ }
+ private native void newHTMLObjectElement(Node other);
+ /**
+ Returns the <code>FORM</code> element containing this
+ control. Returns null if this control is not within the context
+ of a form.
+ @short Returns the <code>FORM</code> element containing this control.
+ */
+ public native HTMLFormElement formElement();
+ /**
+ Applet class file. See the <code>code</code> attribute for
+ HTMLAppletElement.
+ @short Applet class file.
+ */
+ public native String code();
+ /**
+ see code
+ @short see code
+ */
+ public native void setCode(String arg1);
+ /**
+ Aligns this object (vertically or horizontally) with respect to
+ its surrounding text. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-align-IMG">
+ align attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Aligns this object (vertically or horizontally) with respect to its surrounding text.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ /**
+ Space-separated list of archives. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-archive-OBJECT">
+ archive attribute definition </a> in HTML 4.0.
+ @short Space-separated list of archives.
+ */
+ public native String archive();
+ /**
+ see archive
+ @short see archive
+ */
+ public native void setArchive(String arg1);
+ /**
+ Width of border around the object. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-border">
+ border attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Width of border around the object.
+ */
+ public native String border();
+ /**
+ see border
+ @short see border
+ */
+ public native void setBorder(String arg1);
+ /**
+ Base URI for <code>classid</code> , <code>data</code> , and
+ <code>archive</code> attributes. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-codebase-OBJECT">
+ codebase attribute definition </a> in HTML 4.0.
+ @short Base URI for <code>classid</code> , <code>data</code> , and <code>archive</code> attributes.
+ */
+ public native String codeBase();
+ /**
+ see codeBase
+ @short see codeBase
+ */
+ public native void setCodeBase(String arg1);
+ /**
+ Content type for data downloaded via <code>classid</code>
+ attribute. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-codetype">
+ codetype attribute definition </a> in HTML 4.0.
+ @short Content type for data downloaded via <code>classid</code> attribute.
+ */
+ public native String codeType();
+ /**
+ see codeType
+ @short see codeType
+ */
+ public native void setCodeType(String arg1);
+ /**
+ A URI specifying the location of the object's data. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-data">
+ data attribute definition </a> in HTML 4.0.
+ @short A URI specifying the location of the object's data.
+ */
+ public native String data();
+ /**
+ see data
+ @short see data
+ */
+ public native void setData(String arg1);
+ /**
+ Declare (for future reference), but do not instantiate, this
+ object. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-declare">
+ declare attribute definition </a> in HTML 4.0.
+ @short Declare (for future reference), but do not instantiate, this object.
+ */
+ public native boolean declare();
+ /**
+ see declare
+ @short see declare
+ */
+ public native void setDeclare(boolean arg1);
+ /**
+ Override height. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-height-IMG">
+ height attribute definition </a> in HTML 4.0.
+ @short Override height.
+ */
+ public native String height();
+ /**
+ see height
+ @short see height
+ */
+ public native void setHeight(String arg1);
+ /**
+ Horizontal space, in pixels, to the left and right of this image, applet,
+ or object. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-hspace">
+ hspace attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Horizontal space, in pixels, to the left and right of this image, applet, or object.
+ */
+ public native long getHspace();
+ /**
+ see hspace
+ @short see hspace
+ */
+ public native void setHspace(long arg1);
+ /**
+ Form control or object name when submitted with a form. See the
+ <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-name-INPUT">
+ name attribute definition </a> in HTML 4.0.
+ @short Form control or object name when submitted with a form.
+ */
+ public native String name();
+ /**
+ see name
+ @short see name
+ */
+ public native void setName(String arg1);
+ /**
+ Message to render while loading the object. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-standby">
+ standby attribute definition </a> in HTML 4.0.
+ @short Message to render while loading the object.
+ */
+ public native String standby();
+ /**
+ see standby
+ @short see standby
+ */
+ public native void setStandby(String arg1);
+ /**
+ Index that represents the element's position in the tabbing
+ order. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-tabindex">
+ tabindex attribute definition </a> in HTML 4.0.
+ @short Index that represents the element's position in the tabbing order.
+ */
+ public native long tabIndex();
+ /**
+ see tabIndex
+ @short see tabIndex
+ */
+ public native void setTabIndex(long arg1);
+ /**
+ Content type for data downloaded via <code>data</code>
+ attribute. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-type-OBJECT">
+ type attribute definition </a> in HTML 4.0.
+ @short Content type for data downloaded via <code>data</code> attribute.
+ */
+ public native String type();
+ /**
+ see type
+ @short see type
+ */
+ public native void setType(String arg1);
+ /**
+ Use client-side image map. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-usemap">
+ usemap attribute definition </a> in HTML 4.0.
+ @short Use client-side image map.
+ */
+ public native String useMap();
+ /**
+ see useMap
+ @short see useMap
+ */
+ public native void setUseMap(String arg1);
+ /**
+ Vertical space, in pixels, above and below this image, applet, or object.
+ See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-vspace">
+ vspace attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Vertical space, in pixels, above and below this image, applet, or object.
+ */
+ public native long getVspace();
+ /**
+ see vspace
+ @short see vspace
+ */
+ public native void setVspace(long arg1);
+ /**
+ Override width. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-width-IMG">
+ width attribute definition </a> in HTML 4.0.
+ @short Override width.
+ */
+ public native String width();
+ /**
+ see width
+ @short see width
+ */
+ public native void setWidth(String arg1);
+ /**
+ Introduced in DOM Level 2
+ Returns the document this iframe contains, if there is any and
+ it is available, a Null document otherwise. The attribute is
+ read-only.
+ @return The content Document if available.
+
+ @short Introduced in DOM Level 2
+ */
+ public native Document contentDocument();
+ // DOM::HTMLObjectElement* HTMLObjectElement(DOM::HTMLObjectElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLOptGroupElement.java b/kdejava/koala/org/kde/koala/HTMLOptGroupElement.java
new file mode 100644
index 00000000..2bdab36f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLOptGroupElement.java
@@ -0,0 +1,57 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Group options together in logical subdivisions. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-OPTGROUP">
+ OPTGROUP element definition </a> in HTML 4.0.
+ @short Group options together in logical subdivisions.
+
+*/
+public class HTMLOptGroupElement extends HTMLElement {
+ protected HTMLOptGroupElement(Class dummy){super((Class) null);}
+ public HTMLOptGroupElement() {
+ super((Class) null);
+ newHTMLOptGroupElement();
+ }
+ private native void newHTMLOptGroupElement();
+ public HTMLOptGroupElement(HTMLOptGroupElement other) {
+ super((Class) null);
+ newHTMLOptGroupElement(other);
+ }
+ private native void newHTMLOptGroupElement(HTMLOptGroupElement other);
+ public HTMLOptGroupElement(Node other) {
+ super((Class) null);
+ newHTMLOptGroupElement(other);
+ }
+ private native void newHTMLOptGroupElement(Node other);
+ /**
+ The control is unavailable in this context. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-disabled">
+ disabled attribute definition </a> in HTML 4.0.
+ @short The control is unavailable in this context.
+ */
+ public native boolean disabled();
+ /**
+ see disabled
+ @short see disabled
+ */
+ public native void setDisabled(boolean arg1);
+ /**
+ Assigns a label to this option group. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-label-OPTGROUP">
+ label attribute definition </a> in HTML 4.0.
+ @short Assigns a label to this option group.
+ */
+ public native String label();
+ /**
+ see label
+ @short see label
+ */
+ public native void setLabel(String arg1);
+ // DOM::HTMLOptGroupElement* HTMLOptGroupElement(DOM::HTMLOptGroupElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLOptionElement.java b/kdejava/koala/org/kde/koala/HTMLOptionElement.java
new file mode 100644
index 00000000..7aeb1f77
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLOptionElement.java
@@ -0,0 +1,115 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A selectable choice. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-OPTION">
+ OPTION element definition </a> in HTML 4.0.
+ @short A selectable choice.
+
+*/
+public class HTMLOptionElement extends HTMLElement {
+ protected HTMLOptionElement(Class dummy){super((Class) null);}
+ public HTMLOptionElement() {
+ super((Class) null);
+ newHTMLOptionElement();
+ }
+ private native void newHTMLOptionElement();
+ public HTMLOptionElement(HTMLOptionElement other) {
+ super((Class) null);
+ newHTMLOptionElement(other);
+ }
+ private native void newHTMLOptionElement(HTMLOptionElement other);
+ public HTMLOptionElement(Node other) {
+ super((Class) null);
+ newHTMLOptionElement(other);
+ }
+ private native void newHTMLOptionElement(Node other);
+ /**
+ ### KDE 4.0: remove
+ @short ### KDE 4.
+ */
+ public native HTMLFormElement formElement();
+ /**
+ Stores the initial value of the <code>selected</code>
+ attribute.
+ @short Stores the initial value of the <code>selected</code> attribute.
+ */
+ public native boolean defaultSelected();
+ /**
+ see defaultSelected
+ @short see defaultSelected
+ */
+ public native void setDefaultSelected(boolean arg1);
+ /**
+ The text contained within the option element.
+ @short The text contained within the option element.
+ */
+ public native String text();
+ /**
+ The index of this <code>OPTION</code> in its parent
+ <code>SELECT</code> .
+ @short The index of this <code>OPTION</code> in its parent <code>SELECT</code> .
+ */
+ public native long index();
+ /**
+ see index
+ This function is obsolete - the index property is actually supposed to be read-only
+ (http://www.w3.org/DOM/updates/REC-DOM-Level-1-19981001-errata.html)
+ @short see index
+ */
+ public native void setIndex(long arg1);
+ /**
+ The control is unavailable in this context. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-disabled">
+ disabled attribute definition </a> in HTML 4.0.
+ @short The control is unavailable in this context.
+ */
+ public native boolean disabled();
+ /**
+ see disabled
+ @short see disabled
+ */
+ public native void setDisabled(boolean arg1);
+ /**
+ Option label for use in hierarchical menus. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-label-OPTION">
+ label attribute definition </a> in HTML 4.0.
+ @short Option label for use in hierarchical menus.
+ */
+ public native String label();
+ /**
+ see label
+ @short see label
+ */
+ public native void setLabel(String arg1);
+ /**
+ Means that this option is initially selected. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-selected">
+ selected attribute definition </a> in HTML 4.0.
+ @short Means that this option is initially selected.
+ */
+ public native boolean selected();
+ /**
+ see selected
+ @short see selected
+ */
+ public native void setSelected(boolean arg1);
+ /**
+ The current form control value. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-value-OPTION">
+ value attribute definition </a> in HTML 4.0.
+ @short The current form control value.
+ */
+ public native String value();
+ /**
+ see value
+ @short see value
+ */
+ public native void setValue(String arg1);
+ // DOM::HTMLOptionElement* HTMLOptionElement(DOM::HTMLOptionElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLParagraphElement.java b/kdejava/koala/org/kde/koala/HTMLParagraphElement.java
new file mode 100644
index 00000000..5f5358c2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLParagraphElement.java
@@ -0,0 +1,46 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Paragraphs. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-P"> P
+ element definition </a> in HTML 4.0.
+ @short Paragraphs.
+
+*/
+public class HTMLParagraphElement extends HTMLElement {
+ protected HTMLParagraphElement(Class dummy){super((Class) null);}
+ public HTMLParagraphElement() {
+ super((Class) null);
+ newHTMLParagraphElement();
+ }
+ private native void newHTMLParagraphElement();
+ public HTMLParagraphElement(HTMLParagraphElement other) {
+ super((Class) null);
+ newHTMLParagraphElement(other);
+ }
+ private native void newHTMLParagraphElement(HTMLParagraphElement other);
+ public HTMLParagraphElement(Node other) {
+ super((Class) null);
+ newHTMLParagraphElement(other);
+ }
+ private native void newHTMLParagraphElement(Node other);
+ /**
+ Horizontal text alignment. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-align">
+ align attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Horizontal text alignment.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ // DOM::HTMLParagraphElement* HTMLParagraphElement(DOM::HTMLElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLParamElement.java b/kdejava/koala/org/kde/koala/HTMLParamElement.java
new file mode 100644
index 00000000..f72bed39
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLParamElement.java
@@ -0,0 +1,83 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Parameters fed to the <code>OBJECT</code> element. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#edef-PARAM">
+ PARAM element definition </a> in HTML 4.0.
+ @short Parameters fed to the <code>OBJECT</code> element.
+
+*/
+public class HTMLParamElement extends HTMLElement {
+ protected HTMLParamElement(Class dummy){super((Class) null);}
+ public HTMLParamElement() {
+ super((Class) null);
+ newHTMLParamElement();
+ }
+ private native void newHTMLParamElement();
+ public HTMLParamElement(HTMLParamElement other) {
+ super((Class) null);
+ newHTMLParamElement(other);
+ }
+ private native void newHTMLParamElement(HTMLParamElement other);
+ public HTMLParamElement(Node other) {
+ super((Class) null);
+ newHTMLParamElement(other);
+ }
+ private native void newHTMLParamElement(Node other);
+ /**
+ The name of a run-time parameter. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-name-PARAM">
+ name attribute definition </a> in HTML 4.0.
+ @short The name of a run-time parameter.
+ */
+ public native String name();
+ /**
+ see name
+ @short see name
+ */
+ public native void setName(String arg1);
+ /**
+ Content type for the <code>value</code> attribute when
+ <code>valuetype</code> has the value "ref". See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-type-PARAM">
+ type attribute definition </a> in HTML 4.0.
+ @short Content type for the <code>value</code> attribute when <code>valuetype</code> has the value "ref".
+ */
+ public native String type();
+ /**
+ see type
+ @short see type
+ */
+ public native void setType(String arg1);
+ /**
+ The value of a run-time parameter. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-value-PARAM">
+ value attribute definition </a> in HTML 4.0.
+ @short The value of a run-time parameter.
+ */
+ public native String value();
+ /**
+ see value
+ @short see value
+ */
+ public native void setValue(String arg1);
+ /**
+ Information about the meaning of the <code>value</code>
+ attribute value. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-valuetype">
+ valuetype attribute definition </a> in HTML 4.0.
+ @short Information about the meaning of the <code>value</code> attribute value.
+ */
+ public native String valueType();
+ /**
+ see valueType
+ @short see valueType
+ */
+ public native void setValueType(String arg1);
+ // DOM::HTMLParamElement* HTMLParamElement(DOM::HTMLParamElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLPreElement.java b/kdejava/koala/org/kde/koala/HTMLPreElement.java
new file mode 100644
index 00000000..fadbe50c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLPreElement.java
@@ -0,0 +1,46 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Preformatted text. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-PRE">
+ PRE element definition </a> in HTML 4.0.
+ @short Preformatted text.
+
+*/
+public class HTMLPreElement extends HTMLElement {
+ protected HTMLPreElement(Class dummy){super((Class) null);}
+ public HTMLPreElement() {
+ super((Class) null);
+ newHTMLPreElement();
+ }
+ private native void newHTMLPreElement();
+ public HTMLPreElement(HTMLPreElement other) {
+ super((Class) null);
+ newHTMLPreElement(other);
+ }
+ private native void newHTMLPreElement(HTMLPreElement other);
+ public HTMLPreElement(Node other) {
+ super((Class) null);
+ newHTMLPreElement(other);
+ }
+ private native void newHTMLPreElement(Node other);
+ /**
+ Fixed width for content. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/text.html#adef-width-PRE">
+ width attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Fixed width for content.
+ */
+ public native long width();
+ /**
+ see width
+ @short see width
+ */
+ public native void setWidth(long arg1);
+ // DOM::HTMLPreElement* HTMLPreElement(DOM::HTMLPreElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLQuoteElement.java b/kdejava/koala/org/kde/koala/HTMLQuoteElement.java
new file mode 100644
index 00000000..ab9135aa
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLQuoteElement.java
@@ -0,0 +1,51 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ For the <code>Q</code> and <code>BLOCKQUOTE</code> elements.
+ See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-Q"> Q
+ element definition </a> in HTML 4.0.
+ Note: The DOM is not quite consistent here. They also define the
+ HTMLBlockQuoteElement interface, to represent the <code>BLOCKQUOTE</code>
+ element. To resolve ambiquities, we use this one for the <code>Q</code>
+ element only.
+ @short For the <code>Q</code> and <code>BLOCKQUOTE</code> elements.
+
+*/
+public class HTMLQuoteElement extends HTMLElement {
+ protected HTMLQuoteElement(Class dummy){super((Class) null);}
+ public HTMLQuoteElement() {
+ super((Class) null);
+ newHTMLQuoteElement();
+ }
+ private native void newHTMLQuoteElement();
+ public HTMLQuoteElement(HTMLQuoteElement other) {
+ super((Class) null);
+ newHTMLQuoteElement(other);
+ }
+ private native void newHTMLQuoteElement(HTMLQuoteElement other);
+ public HTMLQuoteElement(Node other) {
+ super((Class) null);
+ newHTMLQuoteElement(other);
+ }
+ private native void newHTMLQuoteElement(Node other);
+ /**
+ A URI designating a document that designates a source document
+ or message. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/text.html#adef-cite-Q">
+ cite attribute definition </a> in HTML 4.0.
+ @short A URI designating a document that designates a source document or message.
+ */
+ public native String cite();
+ /**
+ see cite
+ @short see cite
+ */
+ public native void setCite(String arg1);
+ // DOM::HTMLQuoteElement* HTMLQuoteElement(DOM::HTMLGenericElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLScriptElement.java b/kdejava/koala/org/kde/koala/HTMLScriptElement.java
new file mode 100644
index 00000000..4ad68792
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLScriptElement.java
@@ -0,0 +1,112 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Script statements. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/scripts.html#edef-SCRIPT">
+ SCRIPT element definition </a> in HTML 4.0.
+ @short Script statements.
+
+*/
+public class HTMLScriptElement extends HTMLElement {
+ protected HTMLScriptElement(Class dummy){super((Class) null);}
+ public HTMLScriptElement() {
+ super((Class) null);
+ newHTMLScriptElement();
+ }
+ private native void newHTMLScriptElement();
+ public HTMLScriptElement(HTMLScriptElement other) {
+ super((Class) null);
+ newHTMLScriptElement(other);
+ }
+ private native void newHTMLScriptElement(HTMLScriptElement other);
+ public HTMLScriptElement(Node other) {
+ super((Class) null);
+ newHTMLScriptElement(other);
+ }
+ private native void newHTMLScriptElement(Node other);
+ /**
+ The script content of the element.
+ @short The script content of the element.
+ */
+ public native String text();
+ /**
+ see text
+ @short see text
+ */
+ public native void setText(String arg1);
+ /**
+ Reserved for future use.
+ @short Reserved for future use.
+ */
+ public native String htmlFor();
+ /**
+ see htmlFor
+ @short see htmlFor
+ */
+ public native void setHtmlFor(String arg1);
+ /**
+ Reserved for future use.
+ @short Reserved for future use.
+ */
+ public native String event();
+ /**
+ see event
+ @short see event
+ */
+ public native void setEvent(String arg1);
+ /**
+ The character encoding of the linked resource. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-charset">
+ charset attribute definition </a> in HTML 4.0.
+ @short The character encoding of the linked resource.
+ */
+ public native String charset();
+ /**
+ see charset
+ @short see charset
+ */
+ public native void setCharset(String arg1);
+ /**
+ Indicates that the user agent can defer processing of the
+ script. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/scripts.html#adef-defer">
+ defer attribute definition </a> in HTML 4.0.
+ @short Indicates that the user agent can defer processing of the script.
+ */
+ public native boolean defer();
+ /**
+ see defer
+ @short see defer
+ */
+ public native void setDefer(boolean arg1);
+ /**
+ URI designating an external script. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/scripts.html#adef-src-SCRIPT">
+ src attribute definition </a> in HTML 4.0.
+ @short URI designating an external script.
+ */
+ public native String src();
+ /**
+ see src
+ @short see src
+ */
+ public native void setSrc(String arg1);
+ /**
+ The content type of the script language. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/scripts.html#adef-type-SCRIPT">
+ type attribute definition </a> in HTML 4.0.
+ @short The content type of the script language.
+ */
+ public native String type();
+ /**
+ see type
+ @short see type
+ */
+ public native void setType(String arg1);
+ // DOM::HTMLScriptElement* HTMLScriptElement(DOM::HTMLScriptElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLSelectElement.java b/kdejava/koala/org/kde/koala/HTMLSelectElement.java
new file mode 100644
index 00000000..f9b11d4e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLSelectElement.java
@@ -0,0 +1,168 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The select element allows the selection of an option. The contained
+ options can be directly accessed through the select element as a
+ collection. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-SELECT">
+ SELECT element definition </a> in HTML 4.0.
+ @short The select element allows the selection of an option.
+
+*/
+public class HTMLSelectElement extends HTMLElement {
+ protected HTMLSelectElement(Class dummy){super((Class) null);}
+ public HTMLSelectElement() {
+ super((Class) null);
+ newHTMLSelectElement();
+ }
+ private native void newHTMLSelectElement();
+ public HTMLSelectElement(HTMLSelectElement other) {
+ super((Class) null);
+ newHTMLSelectElement(other);
+ }
+ private native void newHTMLSelectElement(HTMLSelectElement other);
+ public HTMLSelectElement(Node other) {
+ super((Class) null);
+ newHTMLSelectElement(other);
+ }
+ private native void newHTMLSelectElement(Node other);
+ /**
+ The type of control created.
+ @short The type of control created.
+ */
+ public native String type();
+ /**
+ The ordinal index of the selected option. The value -1 is
+ returned if no element is selected. If multiple options are
+ selected, the index of the first selected option is returned.
+ @short The ordinal index of the selected option.
+ */
+ public native long selectedIndex();
+ /**
+ see selectedIndex
+ @short see selectedIndex
+ */
+ public native void setSelectedIndex(long arg1);
+ /**
+ The current form control value.
+ @short The current form control value.
+ */
+ public native String value();
+ /**
+ see value
+ @short see value
+ */
+ public native void setValue(String arg1);
+ /**
+ The number of options in this <code>SELECT</code> .
+ @short The number of options in this <code>SELECT</code> .
+ */
+ public native long length();
+ /**
+ ### KDE 4.0: remove.
+ @short ### KDE 4.
+ */
+ public native HTMLFormElement formElement();
+ /**
+ The collection of <code>OPTION</code> elements contained by
+ this element.
+ @short The collection of <code>OPTION</code> elements contained by this element.
+ */
+ public native HTMLCollection options();
+ /**
+ The control is unavailable in this context. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-disabled">
+ disabled attribute definition </a> in HTML 4.0.
+ @short The control is unavailable in this context.
+ */
+ public native boolean disabled();
+ /**
+ see disabled
+ @short see disabled
+ */
+ public native void setDisabled(boolean arg1);
+ /**
+ If true, multiple <code>OPTION</code> elements may be
+ selected in this <code>SELECT</code> . See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-multiple">
+ multiple attribute definition </a> in HTML 4.0.
+ @short If true, multiple <code>OPTION</code> elements may be selected in this <code>SELECT</code> .
+ */
+ public native boolean multiple();
+ /**
+ see multiple
+ @short see multiple
+ */
+ public native void setMultiple(boolean arg1);
+ /**
+ Form control or object name when submitted with a form. See the
+ <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-name-SELECT">
+ name attribute definition </a> in HTML 4.0.
+ @short Form control or object name when submitted with a form.
+ */
+ public native String name();
+ /**
+ see name
+ @short see name
+ */
+ public native void setName(String arg1);
+ /**
+ Number of visible rows. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-size-SELECT">
+ size attribute definition </a> in HTML 4.0.
+ @short Number of visible rows.
+ */
+ public native long size();
+ /**
+ see size
+ @short see size
+ */
+ public native void setSize(long arg1);
+ /**
+ Index that represents the element's position in the tabbing
+ order. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-tabindex">
+ tabindex attribute definition </a> in HTML 4.0.
+ @short Index that represents the element's position in the tabbing order.
+ */
+ public native long tabIndex();
+ /**
+ see tabIndex
+ @short see tabIndex
+ */
+ public native void setTabIndex(long arg1);
+ /**
+ Add a new element to the collection of <code>OPTION</code>
+ elements for this <code>SELECT</code> .
+ @param element The element to add.
+ @param before The element to insert before, or 0 for the
+ tail of the list.
+ @short Add a new element to the collection of <code>OPTION</code> elements for this <code>SELECT</code> .
+ */
+ public native void add(HTMLElement element, HTMLElement before);
+ /**
+ Remove an element from the collection of <code>OPTION</code>
+ elements for this <code>SELECT</code> . Does nothing if no
+ element has the given index.
+ @param index The index of the item to remove.
+ @short Remove an element from the collection of <code>OPTION</code> elements for this <code>SELECT</code> .
+ */
+ public native void remove(long index);
+ /**
+ Removes keyboard focus from this element.
+ @short Removes keyboard focus from this element.
+ */
+ public native void blur();
+ /**
+ Gives keyboard focus to this element.
+ @short Gives keyboard focus to this element.
+ */
+ public native void focus();
+ // DOM::HTMLSelectElement* HTMLSelectElement(DOM::HTMLSelectElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLStyleElement.java b/kdejava/koala/org/kde/koala/HTMLStyleElement.java
new file mode 100644
index 00000000..060dd1a1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLStyleElement.java
@@ -0,0 +1,75 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Style information. A more detailed style sheet object model is
+ planned to be defined in a separate document. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/styles.html#edef-STYLE">
+ STYLE element definition </a> in HTML 4.0.
+ @short Style information.
+
+*/
+public class HTMLStyleElement extends HTMLElement {
+ protected HTMLStyleElement(Class dummy){super((Class) null);}
+ public HTMLStyleElement() {
+ super((Class) null);
+ newHTMLStyleElement();
+ }
+ private native void newHTMLStyleElement();
+ public HTMLStyleElement(HTMLStyleElement other) {
+ super((Class) null);
+ newHTMLStyleElement(other);
+ }
+ private native void newHTMLStyleElement(HTMLStyleElement other);
+ public HTMLStyleElement(Node other) {
+ super((Class) null);
+ newHTMLStyleElement(other);
+ }
+ private native void newHTMLStyleElement(Node other);
+ /**
+ Enables/disables the style sheet.
+ @short Enables/disables the style sheet.
+ */
+ public native boolean disabled();
+ /**
+ see disabled
+ @short see disabled
+ */
+ public native void setDisabled(boolean arg1);
+ /**
+ Designed for use with one or more target media. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/styles.html#adef-media">
+ media attribute definition </a> in HTML 4.0.
+ @short Designed for use with one or more target media.
+ */
+ public native String media();
+ /**
+ see media
+ @short see media
+ */
+ public native void setMedia(String arg1);
+ /**
+ The style sheet language (Internet media type). See the <a
+ href="http://www.w3.org/TR/REC-html40/present/styles.html#adef-type-STYLE">
+ type attribute definition </a> in HTML 4.0.
+ @short The style sheet language (Internet media type).
+ */
+ public native String type();
+ /**
+ see type
+ @short see type
+ */
+ public native void setType(String arg1);
+ /**
+ Introduced in DOM Level 2
+ This method is from the LinkStyle interface
+ The style sheet.
+ @short Introduced in DOM Level 2 This method is from the LinkStyle interface
+ */
+ public native StyleSheet sheet();
+ // DOM::HTMLStyleElement* HTMLStyleElement(DOM::HTMLStyleElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLTableCaptionElement.java b/kdejava/koala/org/kde/koala/HTMLTableCaptionElement.java
new file mode 100644
index 00000000..22460679
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLTableCaptionElement.java
@@ -0,0 +1,46 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Table caption See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#edef-CAPTION">
+ CAPTION element definition </a> in HTML 4.0.
+ @short Table caption See the <a href="http://www.
+
+*/
+public class HTMLTableCaptionElement extends HTMLElement {
+ protected HTMLTableCaptionElement(Class dummy){super((Class) null);}
+ public HTMLTableCaptionElement() {
+ super((Class) null);
+ newHTMLTableCaptionElement();
+ }
+ private native void newHTMLTableCaptionElement();
+ public HTMLTableCaptionElement(HTMLTableCaptionElement other) {
+ super((Class) null);
+ newHTMLTableCaptionElement(other);
+ }
+ private native void newHTMLTableCaptionElement(HTMLTableCaptionElement other);
+ public HTMLTableCaptionElement(Node other) {
+ super((Class) null);
+ newHTMLTableCaptionElement(other);
+ }
+ private native void newHTMLTableCaptionElement(Node other);
+ /**
+ Caption alignment with respect to the table. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-align-CAPTION">
+ align attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Caption alignment with respect to the table.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ // DOM::HTMLTableCaptionElement* HTMLTableCaptionElement(DOM::HTMLTableCaptionElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLTableCellElement.java b/kdejava/koala/org/kde/koala/HTMLTableCellElement.java
new file mode 100644
index 00000000..3802b597
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLTableCellElement.java
@@ -0,0 +1,219 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The object used to represent the <code>TH</code> and <code>TD</code>
+ elements. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#edef-TD">
+ TD element definition </a> in HTML 4.0.
+ @short The object used to represent the <code>TH</code> and <code>TD</code> elements.
+
+*/
+public class HTMLTableCellElement extends HTMLElement {
+ protected HTMLTableCellElement(Class dummy){super((Class) null);}
+ public HTMLTableCellElement() {
+ super((Class) null);
+ newHTMLTableCellElement();
+ }
+ private native void newHTMLTableCellElement();
+ public HTMLTableCellElement(HTMLTableCellElement other) {
+ super((Class) null);
+ newHTMLTableCellElement(other);
+ }
+ private native void newHTMLTableCellElement(HTMLTableCellElement other);
+ public HTMLTableCellElement(Node other) {
+ super((Class) null);
+ newHTMLTableCellElement(other);
+ }
+ private native void newHTMLTableCellElement(Node other);
+ /**
+ The index of this cell in the row.
+ @short The index of this cell in the row.
+ */
+ public native long cellIndex();
+ /**
+ see cellIndex
+ This function is obsolete - the cellIndex property is actually supposed to be read-only
+ (http://www.w3.org/DOM/updates/REC-DOM-Level-1-19981001-errata.html)
+ @short see cellIndex
+ */
+ public native void setCellIndex(long arg1);
+ /**
+ Abbreviation for header cells. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-abbr">
+ abbr attribute definition </a> in HTML 4.0.
+ @short Abbreviation for header cells.
+ */
+ public native String abbr();
+ /**
+ see abbr
+ @short see abbr
+ */
+ public native void setAbbr(String arg1);
+ /**
+ Horizontal alignment of data in cell. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-align-TD">
+ align attribute definition </a> in HTML 4.0.
+ @short Horizontal alignment of data in cell.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ /**
+ Names group of related headers. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-axis">
+ axis attribute definition </a> in HTML 4.0.
+ @short Names group of related headers.
+ */
+ public native String axis();
+ /**
+ see axis
+ @short see axis
+ */
+ public native void setAxis(String arg1);
+ /**
+ Cell background color. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-bgcolor">
+ bgcolor attribute definition </a> in HTML 4.0. This attribute
+ is deprecated in HTML 4.0.
+ @short Cell background color.
+ */
+ public native String bgColor();
+ /**
+ see bgColor
+ @short see bgColor
+ */
+ public native void setBgColor(String arg1);
+ /**
+ Alignment character for cells in a column. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-char">
+ char attribute definition </a> in HTML 4.0.
+ @short Alignment character for cells in a column.
+ */
+ public native String ch();
+ /**
+ see ch
+ @short see ch
+ */
+ public native void setCh(String arg1);
+ /**
+ Offset of alignment character. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-charoff">
+ charoff attribute definition </a> in HTML 4.0.
+ @short Offset of alignment character.
+ */
+ public native String chOff();
+ /**
+ see chOff
+ @short see chOff
+ */
+ public native void setChOff(String arg1);
+ /**
+ Number of columns spanned by cell. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-colspan">
+ colspan attribute definition </a> in HTML 4.0.
+ @short Number of columns spanned by cell.
+ */
+ public native long colSpan();
+ /**
+ see colSpan
+ @short see colSpan
+ */
+ public native void setColSpan(long arg1);
+ /**
+ List of <code>id</code> attribute values for header cells.
+ See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-headers">
+ headers attribute definition </a> in HTML 4.0.
+ @short List of <code>id</code> attribute values for header cells.
+ */
+ public native String headers();
+ /**
+ see headers
+ @short see headers
+ */
+ public native void setHeaders(String arg1);
+ /**
+ Cell height. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-height-TH">
+ height attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Cell height.
+ */
+ public native String height();
+ /**
+ see height
+ @short see height
+ */
+ public native void setHeight(String arg1);
+ /**
+ Suppress word wrapping. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-nowrap">
+ nowrap attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Suppress word wrapping.
+ */
+ public native boolean noWrap();
+ /**
+ see noWrap
+ @short see noWrap
+ */
+ public native void setNoWrap(boolean arg1);
+ /**
+ Number of rows spanned by cell. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-rowspan">
+ rowspan attribute definition </a> in HTML 4.0.
+ @short Number of rows spanned by cell.
+ */
+ public native long rowSpan();
+ /**
+ see rowSpan
+ @short see rowSpan
+ */
+ public native void setRowSpan(long arg1);
+ /**
+ Scope covered by header cells. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-scope">
+ scope attribute definition </a> in HTML 4.0.
+ @short Scope covered by header cells.
+ */
+ public native String scope();
+ /**
+ see scope
+ @short see scope
+ */
+ public native void setScope(String arg1);
+ /**
+ Vertical alignment of data in cell. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-valign">
+ valign attribute definition </a> in HTML 4.0.
+ @short Vertical alignment of data in cell.
+ */
+ public native String vAlign();
+ /**
+ see vAlign
+ @short see vAlign
+ */
+ public native void setVAlign(String arg1);
+ /**
+ Cell width. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-width-TH">
+ width attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Cell width.
+ */
+ public native String width();
+ /**
+ see width
+ @short see width
+ */
+ public native void setWidth(String arg1);
+ // DOM::HTMLTableCellElement* HTMLTableCellElement(DOM::HTMLTableCellElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLTableColElement.java b/kdejava/koala/org/kde/koala/HTMLTableColElement.java
new file mode 100644
index 00000000..d8875248
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLTableColElement.java
@@ -0,0 +1,107 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Regroups the <code>COL</code> and <code>COLGROUP</code>
+ elements. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#edef-COL">
+ COL element definition </a> in HTML 4.0.
+ @short Regroups the <code>COL</code> and <code>COLGROUP</code> elements.
+
+*/
+public class HTMLTableColElement extends HTMLElement {
+ protected HTMLTableColElement(Class dummy){super((Class) null);}
+ public HTMLTableColElement() {
+ super((Class) null);
+ newHTMLTableColElement();
+ }
+ private native void newHTMLTableColElement();
+ public HTMLTableColElement(HTMLTableColElement other) {
+ super((Class) null);
+ newHTMLTableColElement(other);
+ }
+ private native void newHTMLTableColElement(HTMLTableColElement other);
+ public HTMLTableColElement(Node other) {
+ super((Class) null);
+ newHTMLTableColElement(other);
+ }
+ private native void newHTMLTableColElement(Node other);
+ /**
+ Horizontal alignment of cell data in column. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-align-TD">
+ align attribute definition </a> in HTML 4.0.
+ @short Horizontal alignment of cell data in column.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ /**
+ Alignment character for cells in a column. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-char">
+ char attribute definition </a> in HTML 4.0.
+ @short Alignment character for cells in a column.
+ */
+ public native String ch();
+ /**
+ see ch
+ @short see ch
+ */
+ public native void setCh(String arg1);
+ /**
+ Offset of alignment character. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-charoff">
+ charoff attribute definition </a> in HTML 4.0.
+ @short Offset of alignment character.
+ */
+ public native String chOff();
+ /**
+ see chOff
+ @short see chOff
+ */
+ public native void setChOff(String arg1);
+ /**
+ Indicates the number of columns in a group or affected by a
+ grouping. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-span-COL">
+ span attribute definition </a> in HTML 4.0.
+ @short Indicates the number of columns in a group or affected by a grouping.
+ */
+ public native long span();
+ /**
+ see span
+ @short see span
+ */
+ public native void setSpan(long arg1);
+ /**
+ Vertical alignment of cell data in column. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-valign">
+ valign attribute definition </a> in HTML 4.0.
+ @short Vertical alignment of cell data in column.
+ */
+ public native String vAlign();
+ /**
+ see vAlign
+ @short see vAlign
+ */
+ public native void setVAlign(String arg1);
+ /**
+ Default column width. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-width-COL">
+ width attribute definition </a> in HTML 4.0.
+ @short Default column width.
+ */
+ public native String width();
+ /**
+ see width
+ @short see width
+ */
+ public native void setWidth(String arg1);
+ // DOM::HTMLTableColElement* HTMLTableColElement(DOM::HTMLTableColElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLTableElement.java b/kdejava/koala/org/kde/koala/HTMLTableElement.java
new file mode 100644
index 00000000..dbcadcd0
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLTableElement.java
@@ -0,0 +1,260 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The create and delete methods on the table allow authors to
+ construct and modify tables. HTML 4.0 specifies that only one of
+ each of the <code>CAPTION</code> , <code>THEAD</code> , and
+ <code>TFOOT</code> elements may exist in a table. Therefore, if
+ one exists, and the createTHead() or createTFoot() method is
+ called, the method returns the existing THead or TFoot element. See
+ the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#edef-TABLE">
+ TABLE element definition </a> in HTML 4.0.
+ @short The create and delete methods on the table allow authors to construct and modify tables.
+
+*/
+public class HTMLTableElement extends HTMLElement {
+ protected HTMLTableElement(Class dummy){super((Class) null);}
+ public HTMLTableElement() {
+ super((Class) null);
+ newHTMLTableElement();
+ }
+ private native void newHTMLTableElement();
+ public HTMLTableElement(HTMLTableElement other) {
+ super((Class) null);
+ newHTMLTableElement(other);
+ }
+ private native void newHTMLTableElement(HTMLTableElement other);
+ public HTMLTableElement(Node other) {
+ super((Class) null);
+ newHTMLTableElement(other);
+ }
+ private native void newHTMLTableElement(Node other);
+ /**
+ Returns the table's <code>CAPTION</code> , or void if none
+ exists.
+ @short Returns the table's <code>CAPTION</code> , or void if none exists.
+ */
+ public native HTMLTableCaptionElement caption();
+ /**
+ see caption
+ @short see caption
+ */
+ public native void setCaption(HTMLTableCaptionElement arg1);
+ /**
+ Returns the table's <code>THEAD</code> , or <code>null</code>
+ if none exists.
+ @short Returns the table's <code>THEAD</code> , or <code>null</code> if none exists.
+ */
+ public native HTMLTableSectionElement tHead();
+ /**
+ see tHead
+ @short see tHead
+ */
+ public native void setTHead(HTMLTableSectionElement arg1);
+ /**
+ Returns the table's <code>TFOOT</code> , or <code>null</code>
+ if none exists.
+ @short Returns the table's <code>TFOOT</code> , or <code>null</code> if none exists.
+ */
+ public native HTMLTableSectionElement tFoot();
+ /**
+ see tFoot
+ @short see tFoot
+ */
+ public native void setTFoot(HTMLTableSectionElement arg1);
+ /**
+ Returns a collection of all the rows in the table, including
+ all in <code>THEAD</code> , <code>TFOOT</code> , all
+ <code>TBODY</code> elements.
+ @short Returns a collection of all the rows in the table, including all in <code>THEAD</code> , <code>TFOOT</code> , all <code>TBODY</code> elements.
+ */
+ public native HTMLCollection rows();
+ /**
+ Returns a collection of the table bodies (including implicit ones).
+ @short Returns a collection of the table bodies (including implicit ones).
+ */
+ public native HTMLCollection tBodies();
+ /**
+ Specifies the table's position with respect to the rest of the
+ document. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-align-TABLE">
+ align attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Specifies the table's position with respect to the rest of the document.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ /**
+ Cell background color. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-bgcolor">
+ bgcolor attribute definition </a> in HTML 4.0. This attribute
+ is deprecated in HTML 4.0.
+ @short Cell background color.
+ */
+ public native String bgColor();
+ /**
+ see bgColor
+ @short see bgColor
+ */
+ public native void setBgColor(String arg1);
+ /**
+ The width of the border around the table. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-border-TABLE">
+ border attribute definition </a> in HTML 4.0.
+ @short The width of the border around the table.
+ */
+ public native String border();
+ /**
+ see border
+ @short see border
+ */
+ public native void setBorder(String arg1);
+ /**
+ Specifies the horizontal and vertical space between cell
+ content and cell borders. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-cellpadding">
+ cellpadding attribute definition </a> in HTML 4.0.
+ @short Specifies the horizontal and vertical space between cell content and cell borders.
+ */
+ public native String cellPadding();
+ /**
+ see cellPadding
+ @short see cellPadding
+ */
+ public native void setCellPadding(String arg1);
+ /**
+ Specifies the horizontal and vertical separation between cells.
+ See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-cellspacing">
+ cellspacing attribute definition </a> in HTML 4.0.
+ @short Specifies the horizontal and vertical separation between cells.
+ */
+ public native String cellSpacing();
+ /**
+ see cellSpacing
+ @short see cellSpacing
+ */
+ public native void setCellSpacing(String arg1);
+ /**
+ Specifies which external table borders to render. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-frame">
+ frame attribute definition </a> in HTML 4.0.
+ @short Specifies which external table borders to render.
+ */
+ public native String frame();
+ /**
+ see frame
+ @short see frame
+ */
+ public native void setFrame(String arg1);
+ /**
+ Specifies which internal table borders to render. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-rules">
+ rules attribute definition </a> in HTML 4.0.
+ @short Specifies which internal table borders to render.
+ */
+ public native String rules();
+ /**
+ see rules
+ @short see rules
+ */
+ public native void setRules(String arg1);
+ /**
+ Supplementary description about the purpose or structure of a
+ table. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-summary">
+ summary attribute definition </a> in HTML 4.0.
+ @short Supplementary description about the purpose or structure of a table.
+ */
+ public native String summary();
+ /**
+ see summary
+ @short see summary
+ */
+ public native void setSummary(String arg1);
+ /**
+ Specifies the desired table width. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-width-TABLE">
+ width attribute definition </a> in HTML 4.0.
+ @short Specifies the desired table width.
+ */
+ public native String width();
+ /**
+ see width
+ @short see width
+ */
+ public native void setWidth(String arg1);
+ /**
+ Create a table header row or return an existing one.
+ @return A new table header element ( <code>THEAD</code> ).
+
+ @short Create a table header row or return an existing one.
+ */
+ public native HTMLElement createTHead();
+ /**
+ Delete the header from the table, if one exists.
+ @short Delete the header from the table, if one exists.
+ */
+ public native void deleteTHead();
+ /**
+ Create a table footer row or return an existing one.
+ @return A footer element ( <code>TFOOT</code> ).
+
+ @short Create a table footer row or return an existing one.
+ */
+ public native HTMLElement createTFoot();
+ /**
+ Delete the footer from the table, if one exists.
+ @short Delete the footer from the table, if one exists.
+ */
+ public native void deleteTFoot();
+ /**
+ Create a new table caption object or return an existing one.
+ @return A <code>CAPTION</code> element.
+
+ @short Create a new table caption object or return an existing one.
+ */
+ public native HTMLElement createCaption();
+ /**
+ Delete the table caption, if one exists.
+ @short Delete the table caption, if one exists.
+ */
+ public native void deleteCaption();
+ /**
+ Insert a new empty row in the table.
+ The new row is inserted immediately before and in the same section
+ as the current indexth row in the table. If index is -1 or equal
+ to the number of rows, the new row is appended. In addition, when
+ the table is empty the row is inserted into a TBODY which is created
+ and inserted into the table.
+ Note. A table row cannot
+ be empty according to HTML 4.0 Recommendation.
+ @param index The row number where to insert a new row.
+ The index starts from 0 and is relative to the logical order
+ (not document order) of all the rows contained inside the table.
+ @return The newly created row.
+
+ @short Insert a new empty row in the table.
+ */
+ public native HTMLElement insertRow(long index);
+ /**
+ Delete a table row.
+ @param index The index of the row to be deleted.
+ This index starts from 0 and is relative to the logical order
+ (not document order) of all the rows contained inside the table.
+ If the index is -1 the last row in the table is deleted.
+ @short Delete a table row.
+ */
+ public native void deleteRow(long index);
+ // DOM::HTMLTableElement* HTMLTableElement(DOM::HTMLTableElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLTableRowElement.java b/kdejava/koala/org/kde/koala/HTMLTableRowElement.java
new file mode 100644
index 00000000..1ad81abf
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLTableRowElement.java
@@ -0,0 +1,155 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A row in a table. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#edef-TR">
+ TR element definition </a> in HTML 4.0.
+ @short A row in a table.
+
+*/
+public class HTMLTableRowElement extends HTMLElement {
+ protected HTMLTableRowElement(Class dummy){super((Class) null);}
+ public HTMLTableRowElement() {
+ super((Class) null);
+ newHTMLTableRowElement();
+ }
+ private native void newHTMLTableRowElement();
+ public HTMLTableRowElement(HTMLTableRowElement other) {
+ super((Class) null);
+ newHTMLTableRowElement(other);
+ }
+ private native void newHTMLTableRowElement(HTMLTableRowElement other);
+ public HTMLTableRowElement(Node other) {
+ super((Class) null);
+ newHTMLTableRowElement(other);
+ }
+ private native void newHTMLTableRowElement(Node other);
+ /**
+ The index of this row, relative to the entire table.
+ This is in logical order and not in document order.
+ The rowIndex does take into account sections
+ (THEAD, TFOOT or TBODY) within the table,
+ placing THEAD rows first in the index, followed by
+ TBODY rows, followed by TFOOT rows.
+ @short The index of this row, relative to the entire table.
+ */
+ public native long rowIndex();
+ /**
+ see rowIndex
+ This function is obsolete - the rowIndex property is actually supposed to be read-only
+ (http://www.w3.org/DOM/updates/REC-DOM-Level-1-19981001-errata.html)
+ @short see rowIndex
+ */
+ public native void setRowIndex(long arg1);
+ /**
+ The index of this row, relative to the current section (
+ <code>THEAD</code> , <code>TFOOT</code> , or <code>TBODY</code>
+ ).
+ @short The index of this row, relative to the current section ( <code>THEAD</code> , <code>TFOOT</code> , or <code>TBODY</code> ).
+ */
+ public native long sectionRowIndex();
+ /**
+ see sectionRowIndex
+ This function is obsolete - the sectionRowIndex property is actually supposed to be read-only
+ (http://www.w3.org/DOM/updates/REC-DOM-Level-1-19981001-errata.html)
+ @short see sectionRowIndex
+ */
+ public native void setSectionRowIndex(long arg1);
+ /**
+ The collection of cells in this row.
+ @short The collection of cells in this row.
+ */
+ public native HTMLCollection cells();
+ /**
+ see cells
+ This function is obsolete - the cells property is actually supposed to be read-only
+ (http://www.w3.org/DOM/updates/REC-DOM-Level-1-19981001-errata.html)
+ @short see cells
+ */
+ public native void setCells(HTMLCollection arg1);
+ /**
+ Horizontal alignment of data within cells of this row. See the
+ <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-align-TD">
+ align attribute definition </a> in HTML 4.0.
+ @short Horizontal alignment of data within cells of this row.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ /**
+ Background color for rows. See the <a
+ href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-bgcolor">
+ bgcolor attribute definition </a> in HTML 4.0. This attribute
+ is deprecated in HTML 4.0.
+ @short Background color for rows.
+ */
+ public native String bgColor();
+ /**
+ see bgColor
+ @short see bgColor
+ */
+ public native void setBgColor(String arg1);
+ /**
+ Alignment character for cells in a column. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-char">
+ char attribute definition </a> in HTML 4.0.
+ @short Alignment character for cells in a column.
+ */
+ public native String ch();
+ /**
+ see ch
+ @short see ch
+ */
+ public native void setCh(String arg1);
+ /**
+ Offset of alignment character. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-charoff">
+ charoff attribute definition </a> in HTML 4.0.
+ @short Offset of alignment character.
+ */
+ public native String chOff();
+ /**
+ see chOff
+ @short see chOff
+ */
+ public native void setChOff(String arg1);
+ /**
+ Vertical alignment of data within cells of this row. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-valign">
+ valign attribute definition </a> in HTML 4.0.
+ @short Vertical alignment of data within cells of this row.
+ */
+ public native String vAlign();
+ /**
+ see vAlign
+ @short see vAlign
+ */
+ public native void setVAlign(String arg1);
+ /**
+ Insert an empty <code>TD</code> cell into this row.
+ If index is -1 or equal to the number of cells, the new
+ cell is appended.
+ @param index The place to insert the cell.
+ @return The newly created cell.
+
+ @short Insert an empty <code>TD</code> cell into this row.
+ */
+ public native HTMLElement insertCell(long index);
+ /**
+ Delete a cell from the current row.
+ @param index The index of the cell to delete, starting from 0.
+ If the index is -1 the last cell in the row is deleted.
+ @short Delete a cell from the current row.
+ */
+ public native void deleteCell(long index);
+ // DOM::HTMLTableRowElement* HTMLTableRowElement(DOM::HTMLTableRowElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLTableSectionElement.java b/kdejava/koala/org/kde/koala/HTMLTableSectionElement.java
new file mode 100644
index 00000000..b697f61b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLTableSectionElement.java
@@ -0,0 +1,102 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>THEAD</code> , <code>TFOOT</code> , and <code>TBODY</code>
+ elements.
+ @short The <code>THEAD</code> , <code>TFOOT</code> , and <code>TBODY</code> elements.
+
+*/
+public class HTMLTableSectionElement extends HTMLElement {
+ protected HTMLTableSectionElement(Class dummy){super((Class) null);}
+ public HTMLTableSectionElement() {
+ super((Class) null);
+ newHTMLTableSectionElement();
+ }
+ private native void newHTMLTableSectionElement();
+ public HTMLTableSectionElement(HTMLTableSectionElement other) {
+ super((Class) null);
+ newHTMLTableSectionElement(other);
+ }
+ private native void newHTMLTableSectionElement(HTMLTableSectionElement other);
+ public HTMLTableSectionElement(Node other) {
+ super((Class) null);
+ newHTMLTableSectionElement(other);
+ }
+ private native void newHTMLTableSectionElement(Node other);
+ /**
+ Horizontal alignment of data in cells. See the <code>align</code>
+ attribute for HTMLTheadElement for details.
+ @short Horizontal alignment of data in cells.
+ */
+ public native String align();
+ /**
+ see align
+ @short see align
+ */
+ public native void setAlign(String arg1);
+ /**
+ Alignment character for cells in a column. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-char">
+ char attribute definition </a> in HTML 4.0.
+ @short Alignment character for cells in a column.
+ */
+ public native String ch();
+ /**
+ see ch
+ @short see ch
+ */
+ public native void setCh(String arg1);
+ /**
+ Offset of alignment character. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-charoff">
+ charoff attribute definition </a> in HTML 4.0.
+ @short Offset of alignment character.
+ */
+ public native String chOff();
+ /**
+ see chOff
+ @short see chOff
+ */
+ public native void setChOff(String arg1);
+ /**
+ Vertical alignment of data in cells. See the <code>valign</code>
+ attribute for HTMLTheadElement for details.
+ @short Vertical alignment of data in cells.
+ */
+ public native String vAlign();
+ /**
+ see vAlign
+ @short see vAlign
+ */
+ public native void setVAlign(String arg1);
+ /**
+ The collection of rows in this table section.
+ @short The collection of rows in this table section.
+ */
+ public native HTMLCollection rows();
+ /**
+ Insert a row into this section.
+ The new row is inserted immediately before the current indexth
+ row in this section. If index is -1 or equal to the number of rows
+ in this sectino, the new row is appended.
+ @param index The row number where to insert a new row.
+ @return The newly created row.
+
+ @short Insert a row into this section.
+ */
+ public native HTMLElement insertRow(long index);
+ /**
+ Delete a row from this section.
+ @param index The index of the row to be deleted,
+ or -1 to delete the last row. This index starts from 0 and is relative only
+ to the rows contained inside this section, not all the rows in the table.
+ @short Delete a row from this section.
+ */
+ public native void deleteRow(long index);
+ // DOM::HTMLTableSectionElement* HTMLTableSectionElement(DOM::HTMLTableSectionElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLTextAreaElement.java b/kdejava/koala/org/kde/koala/HTMLTextAreaElement.java
new file mode 100644
index 00000000..4d8d6d46
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLTextAreaElement.java
@@ -0,0 +1,168 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Multi-line text field. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-TEXTAREA">
+ TEXTAREA element definition </a> in HTML 4.0.
+ @short Multi-line text field.
+
+*/
+public class HTMLTextAreaElement extends HTMLElement {
+ protected HTMLTextAreaElement(Class dummy){super((Class) null);}
+ public HTMLTextAreaElement() {
+ super((Class) null);
+ newHTMLTextAreaElement();
+ }
+ private native void newHTMLTextAreaElement();
+ public HTMLTextAreaElement(HTMLTextAreaElement other) {
+ super((Class) null);
+ newHTMLTextAreaElement(other);
+ }
+ private native void newHTMLTextAreaElement(HTMLTextAreaElement other);
+ public HTMLTextAreaElement(Node other) {
+ super((Class) null);
+ newHTMLTextAreaElement(other);
+ }
+ private native void newHTMLTextAreaElement(Node other);
+ /**
+ Stores the initial control value (i.e., the initial value of
+ <code>value</code> ).
+ @short Stores the initial control value (i.
+ */
+ public native String defaultValue();
+ /**
+ see defaultValue
+ @short see defaultValue
+ */
+ public native void setDefaultValue(String arg1);
+ /**
+ ### KDE 4.0: remove.
+ @short ### KDE 4.
+ */
+ public native HTMLFormElement formElement();
+ /**
+ A single character access key to give access to the form
+ control. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accesskey">
+ accesskey attribute definition </a> in HTML 4.0.
+ @short A single character access key to give access to the form control.
+ */
+ public native String accessKey();
+ /**
+ see accessKey
+ @short see accessKey
+ */
+ public native void setAccessKey(String arg1);
+ /**
+ Width of control (in characters). See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-cols-TEXTAREA">
+ cols attribute definition </a> in HTML 4.0.
+ @short Width of control (in characters).
+ */
+ public native long cols();
+ /**
+ see cols
+ @short see cols
+ */
+ public native void setCols(long arg1);
+ /**
+ The control is unavailable in this context. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-disabled">
+ disabled attribute definition </a> in HTML 4.0.
+ @short The control is unavailable in this context.
+ */
+ public native boolean disabled();
+ /**
+ see disabled
+ @short see disabled
+ */
+ public native void setDisabled(boolean arg1);
+ /**
+ Form control or object name when submitted with a form. See the
+ <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-name-TEXTAREA">
+ name attribute definition </a> in HTML 4.0.
+ @short Form control or object name when submitted with a form.
+ */
+ public native String name();
+ /**
+ see name
+ @short see name
+ */
+ public native void setName(String arg1);
+ /**
+ This control is read-only. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-readonly">
+ readonly attribute definition </a> in HTML 4.0.
+ @short This control is read-only.
+ */
+ public native boolean readOnly();
+ /**
+ see readOnly
+ @short see readOnly
+ */
+ public native void setReadOnly(boolean arg1);
+ /**
+ Number of text rows. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-rows-TEXTAREA">
+ rows attribute definition </a> in HTML 4.0.
+ @short Number of text rows.
+ */
+ public native long rows();
+ /**
+ see rows
+ @short see rows
+ */
+ public native void setRows(long arg1);
+ /**
+ Index that represents the element's position in the tabbing
+ order. See the <a
+ href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-tabindex">
+ tabindex attribute definition </a> in HTML 4.0.
+ @short Index that represents the element's position in the tabbing order.
+ */
+ public native long tabIndex();
+ /**
+ see tabIndex
+ @short see tabIndex
+ */
+ public native void setTabIndex(long arg1);
+ /**
+ The type of this form control.
+ @short The type of this form control.
+ */
+ public native String type();
+ /**
+ The current textual content of the multi-line text field. If
+ the entirety of the data can not fit into a single wstring, the
+ implementation may truncate the data.
+ @short The current textual content of the multi-line text field.
+ */
+ public native String value();
+ /**
+ see value
+ @short see value
+ */
+ public native void setValue(String arg1);
+ /**
+ Removes keyboard focus from this element.
+ @short Removes keyboard focus from this element.
+ */
+ public native void blur();
+ /**
+ Gives keyboard focus to this element.
+ @short Gives keyboard focus to this element.
+ */
+ public native void focus();
+ /**
+ Select the contents of the <code>TEXTAREA</code> .
+ @short Select the contents of the <code>TEXTAREA</code> .
+ */
+ public native void select();
+ // DOM::HTMLTextAreaElement* HTMLTextAreaElement(DOM::HTMLTextAreaElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLTitleElement.java b/kdejava/koala/org/kde/koala/HTMLTitleElement.java
new file mode 100644
index 00000000..b0ea8a09
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLTitleElement.java
@@ -0,0 +1,43 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The document title. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#edef-TITLE">
+ TITLE element definition </a> in HTML 4.0.
+ @short The document title.
+
+*/
+public class HTMLTitleElement extends HTMLElement {
+ protected HTMLTitleElement(Class dummy){super((Class) null);}
+ public HTMLTitleElement() {
+ super((Class) null);
+ newHTMLTitleElement();
+ }
+ private native void newHTMLTitleElement();
+ public HTMLTitleElement(HTMLTitleElement other) {
+ super((Class) null);
+ newHTMLTitleElement(other);
+ }
+ private native void newHTMLTitleElement(HTMLTitleElement other);
+ public HTMLTitleElement(Node other) {
+ super((Class) null);
+ newHTMLTitleElement(other);
+ }
+ private native void newHTMLTitleElement(Node other);
+ /**
+ The specified title as a string.
+ @short The specified title as a string.
+ */
+ public native String text();
+ /**
+ see text
+ @short see text
+ */
+ public native void setText(String arg1);
+ // DOM::HTMLTitleElement* HTMLTitleElement(DOM::HTMLTitleElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HTMLUListElement.java b/kdejava/koala/org/kde/koala/HTMLUListElement.java
new file mode 100644
index 00000000..46dfdec5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HTMLUListElement.java
@@ -0,0 +1,59 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Unordered list. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#edef-UL">
+ UL element definition </a> in HTML 4.0.
+ @short Unordered list.
+
+*/
+public class HTMLUListElement extends HTMLElement {
+ protected HTMLUListElement(Class dummy){super((Class) null);}
+ public HTMLUListElement() {
+ super((Class) null);
+ newHTMLUListElement();
+ }
+ private native void newHTMLUListElement();
+ public HTMLUListElement(HTMLUListElement other) {
+ super((Class) null);
+ newHTMLUListElement(other);
+ }
+ private native void newHTMLUListElement(HTMLUListElement other);
+ public HTMLUListElement(Node other) {
+ super((Class) null);
+ newHTMLUListElement(other);
+ }
+ private native void newHTMLUListElement(Node other);
+ /**
+ Reduce spacing between list items. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#adef-compact">
+ compact attribute definition </a> in HTML 4.0. This attribute
+ is deprecated in HTML 4.0.
+ @short Reduce spacing between list items.
+ */
+ public native boolean compact();
+ /**
+ see compact
+ @short see compact
+ */
+ public native void setCompact(boolean arg1);
+ /**
+ Bullet style. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/lists.html#adef-type-UL">
+ type attribute definition </a> in HTML 4.0. This attribute is
+ deprecated in HTML 4.0.
+ @short Bullet style.
+ */
+ public native String type();
+ /**
+ see type
+ @short see type
+ */
+ public native void setType(String arg1);
+ // DOM::HTMLUListElement* HTMLUListElement(DOM::HTMLUListElementImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/HistoryProvider.java b/kdejava/koala/org/kde/koala/HistoryProvider.java
new file mode 100644
index 00000000..bb568d67
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HistoryProvider.java
@@ -0,0 +1,69 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QObject;
+
+/**
+
+ Basic class to manage a history of "items". This class is only meant
+ for fast lookup, if an item is in the history or not.
+ May be subclassed to implement a persistent history for example.
+ For usage with khtml, just create your provider and call the
+ HistoryProvider constructor _before_ you do any khtml stuff. That way,
+ khtml, using the self()-method, will use your subclassed provider.
+ See {@link HistoryProviderSignals} for signals emitted by HistoryProvider
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short Basic class to manage a history of "items".
+
+*/
+public class HistoryProvider extends QObject {
+ protected HistoryProvider(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a KHistoryProvider with an optional parent and name
+ @short Creates a KHistoryProvider with an optional parent and name
+ */
+ public HistoryProvider(QObject parent, String name) {
+ super((Class) null);
+ newHistoryProvider(parent,name);
+ }
+ private native void newHistoryProvider(QObject parent, String name);
+ public HistoryProvider(QObject parent) {
+ super((Class) null);
+ newHistoryProvider(parent);
+ }
+ private native void newHistoryProvider(QObject parent);
+ public HistoryProvider() {
+ super((Class) null);
+ newHistoryProvider();
+ }
+ private native void newHistoryProvider();
+ /**
+ @return true if <code>item</code> is present in the history.
+
+ @short
+ */
+ public native boolean contains(String item);
+ /**
+ Inserts <code>item</code> into the history.
+ @short Inserts <code>item</code> into the history.
+ */
+ public native void insert(String item);
+ /**
+ Removes <code>item</code> from the history.
+ @short Removes <code>item</code> from the history.
+ */
+ public native void remove(String item);
+ /**
+ Clears the history. The cleared() signal is emitted after clearing.
+ @short Clears the history.
+ */
+ public native void clear();
+ public static native HistoryProvider self();
+}
diff --git a/kdejava/koala/org/kde/koala/HistoryProviderSignals.java b/kdejava/koala/org/kde/koala/HistoryProviderSignals.java
new file mode 100644
index 00000000..d8255f27
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/HistoryProviderSignals.java
@@ -0,0 +1,22 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+public interface HistoryProviderSignals {
+ /**
+ Emitted after the history has been cleared.
+ @short Emitted after the history has been cleared.
+ */
+ void cleared();
+ /**
+ This signal is never emitted from this class, it is only meant as an
+ interface for subclasses. Emit this signal to notify others that the
+ history has changed. Put those items that were added or removed from the
+ history into <code>items.</code>
+ @short This signal is never emitted from this class, it is only meant as an interface for subclasses.
+ */
+ void updated(String[] items);
+}
diff --git a/kdejava/koala/org/kde/koala/Invocation.java b/kdejava/koala/org/kde/koala/Invocation.java
new file mode 100644
index 00000000..a3814ef2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Invocation.java
@@ -0,0 +1,69 @@
+/***************************************************************************
+ Invocation.java - description
+ -------------------
+ begin : Tue Oct 31 06:12:14 2000
+ copyright : (C) Gert-Jan van der Heiden. All rights reserved.
+ written by : Gert-Jan van der Heiden.
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU Library General Public License as published by*
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+package org.kde.koala;
+
+import java.util.*;
+import java.lang.reflect.*;
+import org.kde.qt.qtjava;
+
+/** A utility class for creating a closure to invoke later
+*/
+class Invocation{
+public static ArrayList invokeInterfaces(long qtObject){
+ return invokeArrayOperation(qtObject, "interfaces");
+ }
+ public static ArrayList invokeFunctions(long qtObject){
+ return invokeArrayOperation(qtObject, "functions");
+ }
+ public static ArrayList invokeArrayOperation(long qtObject, String operationName){
+ try{
+ Object onThis = qtjava.objectForQtKey(qtObject, "java.lang.object", true);
+ if(onThis != null){
+ Object[] arguments = new Object[0];
+ Class[] objectTypes = new Class[0];
+ Method method = onThis.getClass().getMethod(operationName, objectTypes);
+ return (ArrayList) method.invoke(onThis,arguments);
+ }else {
+ System.out.println("Invocation.invokeArrayOperation() : object not found!");
+ }
+ }catch(Exception e){
+ e.printStackTrace();
+ }
+ return new ArrayList();
+ }
+ public static DCOPAnswer invokeProcess(long qtObject, String fun, byte[] data){
+ try{
+ Object onThis = qtjava.objectForQtKey(qtObject, "java.lang.object", true);
+ if(onThis != null){
+ Object[] arguments = {fun, data};
+ Class[] objectTypes = { String.class,
+ data.getClass()};
+
+ Method method = onThis.getClass().getMethod("javaProcess", objectTypes);
+ return (DCOPAnswer) method.invoke(onThis,arguments);
+ }else {
+ System.out.println("Invocation.invokeArrayOperation() : object not found!");
+ }
+ }catch(Exception e){
+ e.printStackTrace();
+ }
+ DCOPAnswer answer = new DCOPAnswer();
+ answer.setSucces(false);
+ return answer;
+ }
+}
diff --git a/kdejava/koala/org/kde/koala/Job.java b/kdejava/koala/org/kde/koala/Job.java
new file mode 100644
index 00000000..37074a2c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Job.java
@@ -0,0 +1,368 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ The base class for all jobs.
+ For all jobs created in an application, the code looks like
+ <pre>
+ KIO.Job job = KIO.someoperation( some parameters );
+ connect( job, SIGNAL("result( KIO.Job )"),
+ this, SLOT("slotResult( KIO.Job )") );
+ </pre>
+ (other connects, specific to the job)
+ And slotResult is usually at least:
+ <pre>
+ if ( job.error() )
+ job.showErrorDialog( this or null );
+ </pre>
+ See {@link JobSignals} for signals emitted by Job
+ @short The base class for all jobs.
+ @see Scheduler
+ @see Slave
+
+*/
+public class Job extends QObject {
+ protected Job(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Abort this job.
+ This kills all subjobs and deletes the job.
+ @param quietly if false, Job will emit signal result
+ and ask kio_uiserver to close the progress window.
+ <code>quietly</code> is set to true for subjobs. Whether applications
+ should call with true or false depends on whether they rely
+ on result being emitted or not.
+ @short Abort this job.
+ */
+ public native void kill(boolean quietly);
+ public native void kill();
+ /**
+ Returns the error code, if there has been an error.
+ Only call this method from the slot connected to result().
+ @return the error code for this job, 0 if no error.
+ Error codes are defined in KIO.Error.
+
+ @short Returns the error code, if there has been an error.
+ */
+ public native int error();
+ /**
+ Returns the progress id for this job.
+ @return the progress id for this job, as returned by uiserver
+
+ @short Returns the progress id for this job.
+ */
+ public native int progressId();
+ /**
+ Returns the error text if there has been an error.
+ Only call if error is not 0.
+ This is really internal, better use errorString() or errorDialog().
+ @return a string to help understand the error, usually the url
+ related to the error. Only valid if error() is not 0.
+
+ @short Returns the error text if there has been an error.
+ */
+ public native String errorText();
+ /**
+ Converts an error code and a non-i18n error message into an
+ error message in the current language. The low level (non-i18n)
+ error message (usually a url) is put into the translated error
+ message using %1.
+ Example for errid == ERR_CANNOT_OPEN_FOR_READING:
+ <pre>
+ i18n( "Could not read\n%1" ).arg( errortext );
+ </pre>
+ Use this to display the error yourself, but for a dialog box
+ use Job.showErrorDialog. Do not call it if error()
+ is not 0.
+ @return the error message and if there is no error, a message
+ telling the user that the app is broken, so check with
+ error() whether there is an error
+
+ @short Converts an error code and a non-i18n error message into an error message in the current language.
+ */
+ public native String errorString();
+ /**
+ Converts an error code and a non-i18n error message into i18n
+ strings suitable for presentation in a detailed error message box.
+ @param reqUrl the request URL that generated this error message
+ @param method the method that generated this error message
+ (unimplemented)
+ @return the following strings: caption, error + description,
+ causes+solutions
+
+ @short Converts an error code and a non-i18n error message into i18n strings suitable for presentation in a detailed error message box.
+ */
+ public native ArrayList detailedErrorStrings(KURL reqUrl, int method);
+ public native ArrayList detailedErrorStrings(KURL reqUrl);
+ public native ArrayList detailedErrorStrings();
+ /**
+ Display a dialog box to inform the user of the error given by
+ this job.
+ Only call if error is not 0, and only in the slot connected
+ to result.
+ @param parent the parent widget for the dialog box, can be 0 for
+ top-level
+ @short Display a dialog box to inform the user of the error given by this job.
+ */
+ public native void showErrorDialog(QWidget parent);
+ public native void showErrorDialog();
+ /**
+ Enable or disable the automatic error handling. When automatic
+ error handling is enabled and an error occurs, then showErrorDialog()
+ is called with the specified <code>parentWidget</code> (if supplied) , right before
+ the emission of the result signal.
+ The default is false.
+ @param enable enable or disable automatic error handling
+ @param parentWidget the parent widget, passed to showErrorDialog.
+ Can be 0 for top-level
+ @short Enable or disable the automatic error handling.
+ @see #isAutoErrorHandlingEnabled
+ @see #showErrorDialog
+ */
+ public native void setAutoErrorHandlingEnabled(boolean enable, QWidget parentWidget);
+ public native void setAutoErrorHandlingEnabled(boolean enable);
+ /**
+ Returns whether automatic error handling is enabled or disabled.
+ @return true if automatic error handling is enabled
+
+ @short Returns whether automatic error handling is enabled or disabled.
+ @see #setAutoErrorHandlingEnabled
+ */
+ public native boolean isAutoErrorHandlingEnabled();
+ /**
+ Enable or disable the automatic warning handling. When automatic
+ warning handling is enabled and an error occurs, then a message box
+ is displayed with the warning message
+ The default is true.
+ See also isAutoWarningHandlingEnabled , showErrorDialog
+ @param enable enable or disable automatic warning handling
+ @short Enable or disable the automatic warning handling.
+ @see #isAutoWarningHandlingEnabled
+ */
+ public native void setAutoWarningHandlingEnabled(boolean enable);
+ /**
+ Returns whether automatic warning handling is enabled or disabled.
+ See also setAutoWarningHandlingEnabled .
+ @return true if automatic warning handling is enabled
+
+ @short Returns whether automatic warning handling is enabled or disabled.
+ @see #setAutoWarningHandlingEnabled
+ */
+ public native boolean isAutoWarningHandlingEnabled();
+ /**
+ Enable or disable the message display from the job.
+ The default is true.
+ @param enable enable or disable message display
+ @short Enable or disable the message display from the job.
+ */
+ public native void setInteractive(boolean enable);
+ /**
+ Returns whether message display is enabled or disabled.
+ @return true if message display is enabled
+
+ @short Returns whether message display is enabled or disabled.
+ @see #setInteractive
+ */
+ public native boolean isInteractive();
+ /**
+ Associate this job with a window given by <code>window.</code>
+ @param window the window to associate to
+ @short Associate this job with a window given by <code>window.</code>
+ @see #window
+ */
+ public native void setWindow(QWidget window);
+ /**
+ Returns the window this job is associated with.
+ @return the associated window
+
+ @short Returns the window this job is associated with.
+ @see #setWindow
+ */
+ public native QWidget window();
+ /**
+ Set the parent Job.
+ One example use of this is when FileCopyJob calls open_RenameDlg,
+ it must pass the correct progress ID of the parent CopyJob
+ (to hide the progress dialog).
+ You can set the parent job only once. By default a job does not
+ have a parent job.
+ @param parentJob the new parent job
+ @short Set the parent Job.
+ */
+ public native void setParentJob(Job parentJob);
+ /**
+ Returns the parent job, if there is one.
+ @return the parent job, or 0 if there is none
+
+ @short Returns the parent job, if there is one.
+ @see #setParentJob
+ */
+ public native Job parentJob();
+ /**
+ Set meta data to be sent to the slave, replacing existing
+ meta data.
+ @param metaData the meta data to set
+ @short Set meta data to be sent to the slave, replacing existing meta data.
+ @see #addMetaData
+ @see #mergeMetaData
+ */
+ // void setMetaData(const KIO::MetaData& arg1); >>>> NOT CONVERTED
+ /**
+ Add key/value pair to the meta data that is sent to the slave.
+ @param key the key of the meta data
+ @param value the value of the meta data
+ @short Add key/value pair to the meta data that is sent to the slave.
+ @see #setMetaData
+ @see #mergeMetaData
+ */
+ public native void addMetaData(String key, String value);
+ /**
+ Add key/value pairs to the meta data that is sent to the slave.
+ If a certain key already existed, it will be overridden.
+ @param values the meta data to add
+ @short Add key/value pairs to the meta data that is sent to the slave.
+ @see #setMetaData
+ @see #mergeMetaData
+ */
+ // void addMetaData(const QMap<QString, QString>& arg1); >>>> NOT CONVERTED
+ /**
+ Add key/value pairs to the meta data that is sent to the slave.
+ If a certain key already existed, it will remain unchanged.
+ @param values the meta data to merge
+ @short Add key/value pairs to the meta data that is sent to the slave.
+ @see #setMetaData
+ @see #addMetaData
+ */
+ // void mergeMetaData(const QMap<QString, QString>& arg1); >>>> NOT CONVERTED
+ /**
+ @short
+ */
+ // KIO::MetaData outgoingMetaData(); >>>> NOT CONVERTED
+ /**
+ Get meta data received from the slave.
+ (Valid when first data is received and/or slave is finished)
+ @return the job's meta data
+
+ @short Get meta data received from the slave.
+ */
+ // KIO::MetaData metaData(); >>>> NOT CONVERTED
+ /**
+ Query meta data received from the slave.
+ (Valid when first data is received and/or slave is finished)
+ @param key the key of the meta data to retrieve
+ @return the value of the meta data, or null if the
+ <code>key</code> does not exist
+
+ @short Query meta data received from the slave.
+ */
+ public native String queryMetaData(String key);
+ /**
+ Returns the processed size for this job.
+ @short Returns the processed size for this job.
+ @see #processedSize
+ */
+ public native long getProcessedSize();
+ public Job(boolean showProgressInfo) {
+ super((Class) null);
+ newJob(showProgressInfo);
+ }
+ private native void newJob(boolean showProgressInfo);
+ /**
+ Add a job that has to be finished before a result
+ is emitted. This has obviously to be called before
+ the finish signal is emitted by the slave.
+ @param job the subjob to add
+ @param inheritMetaData if true, the subjob will
+ inherit the meta data from this job.
+ @short Add a job that has to be finished before a result is emitted.
+ */
+ protected native void addSubjob(Job job, boolean inheritMetaData);
+ protected native void addSubjob(Job job);
+ /**
+ Mark a sub job as being done. If it's the last to
+ wait on the job will emit a result - jobs with
+ two steps might want to override slotResult
+ in order to avoid calling this method.
+ @param job the subjob to add
+ @short Mark a sub job as being done.
+ */
+ protected native void removeSubjob(Job job);
+ /**
+ Overloaded version of removeSubjob
+ @param job the subjob to remove
+ @param mergeMetaData if set, the metadata received by the subjob is
+ merged into this job.
+ @param emitResultIfLast if this was the last subjob, emit result,
+ i.e. terminate this job.
+ @short Overloaded version of removeSubjob
+ */
+ protected native void removeSubjob(Job job, boolean mergeMetaData, boolean emitResultIfLast);
+ /**
+ Utility function for inherited jobs.
+ Emits the percent signal if bigger than m_percent,
+ after calculating it from the parameters.
+ @param processedSize the processed size in bytes
+ @param totalSize the total size in bytes
+ @short Utility function for inherited jobs.
+ */
+ protected native void emitPercent(long processedSize, long totalSize);
+ /**
+ Utility function for inherited jobs.
+ Emits the speed signal and starts the timer for removing that info
+ @param speed the speed in bytes/s
+ @short Utility function for inherited jobs.
+ */
+ protected native void emitSpeed(long speed);
+ /**
+ Utility function to emit the result signal, and suicide this job.
+ It first tells the observer to hide the progress dialog for this job.
+ @short Utility function to emit the result signal, and suicide this job.
+ */
+ protected native void emitResult();
+ /**
+ Set the processed size, does not emit processedSize
+ @short Set the processed size, does not emit processedSize
+ */
+ protected native void setProcessedSize(long size);
+ protected native int extraFlags();
+ /**
+ Called whenever a subjob finishes.
+ Default implementation checks for errors and propagates
+ to parent job, then calls removeSubjob.
+ Override if you don't want subjobs errors to be propagated.
+ @param job the subjob
+ @short Called whenever a subjob finishes.
+ @see #result
+ */
+ protected native void slotResult(Job job);
+ /**
+ Forward signal from subjob.
+ @param job the subjob
+ @param speed the speed in bytes/s
+ @short Forward signal from subjob.
+ @see #speed
+ */
+ protected native void slotSpeed(Job job, long speed);
+ /**
+ Forward signal from subjob.
+ @param job the subjob
+ @param msg the info message
+ @short Forward signal from subjob.
+ @see #infoMessage
+ */
+ protected native void slotInfoMessage(Job job, String msg);
+ /**
+ Remove speed information.
+ @short Remove speed information.
+ */
+ protected native void slotSpeedTimeout();
+}
diff --git a/kdejava/koala/org/kde/koala/JobSignals.java b/kdejava/koala/org/kde/koala/JobSignals.java
new file mode 100644
index 00000000..e64ec0d1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/JobSignals.java
@@ -0,0 +1,73 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+
+public interface JobSignals {
+ /**
+ Emitted when the job is finished, in any case (completed, canceled,
+ failed...). Use error to know the result.
+ @param job the job that emitted this signal
+ @short Emitted when the job is finished, in any case (completed, canceled, failed.
+ */
+ void result(Job job);
+ /**
+ Emitted to display information about this job, as sent by the slave.
+ Examples of message are "Resolving host", "Connecting to host...", etc.
+ @param job the job that emitted this signal
+ @param msg the info message
+ @short Emitted to display information about this job, as sent by the slave.
+ */
+ void infoMessage(Job job, String msg);
+ /**
+ Emitted to display a warning about this job, as sent by the slave.
+ @param job the job that emitted this signal
+ @param msg the info message
+ @short Emitted to display a warning about this job, as sent by the slave.
+ */
+ void warning(Job job, String msg);
+ /**
+ Emitted when the slave successfully connected to the host.
+ There is no guarantee the slave will send this, and this is
+ currently unused (in the applications).
+ @param job the job that emitted this signal
+ @short Emitted when the slave successfully connected to the host.
+ */
+ void connected(Job job);
+ /**
+ Progress signal showing the overall progress of the job
+ This is valid for any kind of job, and allows using a
+ a progress bar very easily. (see KProgress).
+ Note that this signal is not emitted for finished jobs.
+ @param job the job that emitted this signal
+ @param percent the percentage
+ @short Progress signal showing the overall progress of the job This is valid for any kind of job, and allows using a a progress bar very easily.
+ */
+ void percent(Job job, long percent);
+ /**
+ Emitted when we know the size of this job (data size for transfers,
+ number of entries for listings).
+ @param job the job that emitted this signal
+ @param size the total size in bytes
+ @short Emitted when we know the size of this job (data size for transfers, number of entries for listings).
+ */
+ void totalSize(Job job, long size);
+ /**
+ Regularly emitted to show the progress of this job
+ (current data size for transfers, entries listed).
+ @param job the job that emitted this signal
+ @param size the processed size in bytes
+ @short Regularly emitted to show the progress of this job (current data size for transfers, entries listed).
+ */
+ void processedSize(Job job, long size);
+ /**
+ Emitted to display information about the speed of this job.
+ @param job the job that emitted this signal
+ @param speed the speed in bytes/s
+ @short Emitted to display information about the speed of this job.
+ */
+ void speed(Job job, long speed);
+}
diff --git a/kdejava/koala/org/kde/koala/KAboutApplication.java b/kdejava/koala/org/kde/koala/KAboutApplication.java
new file mode 100644
index 00000000..b1fa9d2e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAboutApplication.java
@@ -0,0 +1,102 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ This class provides the standard "About Application" dialog box
+ that is used by KHelpMenu. It uses the information of the global
+ KAboutData that is specified at the start of your program in
+ main(). Normally you should not use this class directly but rather
+ the KHelpMenu class or even better just subclass your toplevel
+ window from KMainWindow. If you do the latter, the help menu and
+ thereby this dialog box is available through the
+ KMainWindow.helpMenu() function.
+ @author Waldo Bastian (bastian@kde.org) and Espen Sand (espen@kde.org)
+
+ @short Standard "About Application" dialog box.
+
+*/
+public class KAboutApplication extends KAboutDialog {
+ protected KAboutApplication(Class dummy){super((Class) null);}
+ /**
+ Constructor. Creates a fully featured "About Application" dialog box.
+ Note that this dialog is made modeless in the KHelpMenu class so
+ the users may expect a modeless dialog.
+ @param parent The parent of the dialog box. You should use the
+ toplevel window so that the dialog becomes centered.
+ @param name Internal name of the widget. This name is not used in the
+ caption.
+ @param modal If false, this widget will be modeless and must be
+ made visible using QWidget.show(). Otherwise it will be
+ modal and must be made visible using QWidget.exec().
+ @short Constructor.
+ */
+ public KAboutApplication(QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKAboutApplication(parent,name,modal);
+ }
+ private native void newKAboutApplication(QWidget parent, String name, boolean modal);
+ public KAboutApplication(QWidget parent, String name) {
+ super((Class) null);
+ newKAboutApplication(parent,name);
+ }
+ private native void newKAboutApplication(QWidget parent, String name);
+ public KAboutApplication(QWidget parent) {
+ super((Class) null);
+ newKAboutApplication(parent);
+ }
+ private native void newKAboutApplication(QWidget parent);
+ public KAboutApplication() {
+ super((Class) null);
+ newKAboutApplication();
+ }
+ private native void newKAboutApplication();
+ /**
+ Constructor. Mostly does the same stuff as the previous constructor, except
+ that it can take a custom KAboutData object instead of the one specified
+ in your main() function. This is especially useful for applications
+ which are implemented as (dynamically loaded) libraries, e.g. panel
+ applets.
+ @param aboutData A pointer to a KAboutData object which data
+ will be used for filling the dialog.
+ @param parent The parent of the dialog box. You should use the
+ toplevel window so that the dialog becomes centered.
+ @param name Internal name of the widget. This name is not used in the
+ caption.
+ @param modal If false, this widget will be modeless and must be
+ made visible using QWidget.show(). Otherwise it will be
+ modal and must be made visible using QWidget.exec().
+ @short Constructor.
+ */
+ public KAboutApplication(KAboutData aboutData, QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKAboutApplication(aboutData,parent,name,modal);
+ }
+ private native void newKAboutApplication(KAboutData aboutData, QWidget parent, String name, boolean modal);
+ public KAboutApplication(KAboutData aboutData, QWidget parent, String name) {
+ super((Class) null);
+ newKAboutApplication(aboutData,parent,name);
+ }
+ private native void newKAboutApplication(KAboutData aboutData, QWidget parent, String name);
+ public KAboutApplication(KAboutData aboutData, QWidget parent) {
+ super((Class) null);
+ newKAboutApplication(aboutData,parent);
+ }
+ private native void newKAboutApplication(KAboutData aboutData, QWidget parent);
+ public KAboutApplication(KAboutData aboutData) {
+ super((Class) null);
+ newKAboutApplication(aboutData);
+ }
+ private native void newKAboutApplication(KAboutData aboutData);
+ protected native void buildDialog(KAboutData aboutData);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAboutContainer.java b/kdejava/koala/org/kde/koala/KAboutContainer.java
new file mode 100644
index 00000000..d27dc501
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAboutContainer.java
@@ -0,0 +1,78 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QChildEvent;
+import org.kde.qt.QFrame;
+
+/**
+
+ KAboutContainer can be used to make a application specific AboutDialog.
+ See {@link KAboutContainerSignals} for signals emitted by KAboutContainer
+ @short KAboutContainer can be used to make a application specific AboutDialog.
+
+*/
+public class KAboutContainer extends QFrame {
+ protected KAboutContainer(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KAboutContainer(QWidget parent, String name, int margin, int spacing, int childAlignment, int innerAlignment) {
+ super((Class) null);
+ newKAboutContainer(parent,name,margin,spacing,childAlignment,innerAlignment);
+ }
+ private native void newKAboutContainer(QWidget parent, String name, int margin, int spacing, int childAlignment, int innerAlignment);
+ public KAboutContainer(QWidget parent, String name, int margin, int spacing, int childAlignment) {
+ super((Class) null);
+ newKAboutContainer(parent,name,margin,spacing,childAlignment);
+ }
+ private native void newKAboutContainer(QWidget parent, String name, int margin, int spacing, int childAlignment);
+ public KAboutContainer(QWidget parent, String name, int margin, int spacing) {
+ super((Class) null);
+ newKAboutContainer(parent,name,margin,spacing);
+ }
+ private native void newKAboutContainer(QWidget parent, String name, int margin, int spacing);
+ public KAboutContainer(QWidget parent, String name, int margin) {
+ super((Class) null);
+ newKAboutContainer(parent,name,margin);
+ }
+ private native void newKAboutContainer(QWidget parent, String name, int margin);
+ public KAboutContainer(QWidget parent, String name) {
+ super((Class) null);
+ newKAboutContainer(parent,name);
+ }
+ private native void newKAboutContainer(QWidget parent, String name);
+ public KAboutContainer(QWidget parent) {
+ super((Class) null);
+ newKAboutContainer(parent);
+ }
+ private native void newKAboutContainer(QWidget parent);
+ public KAboutContainer() {
+ super((Class) null);
+ newKAboutContainer();
+ }
+ private native void newKAboutContainer();
+ public native void addWidget(QWidget widget);
+ public native void addPerson(String name, String email, String url, String task, boolean showHeader, boolean showframe, boolean showBold);
+ public native void addPerson(String name, String email, String url, String task, boolean showHeader, boolean showframe);
+ public native void addPerson(String name, String email, String url, String task, boolean showHeader);
+ public native void addPerson(String name, String email, String url, String task);
+ public native void addTitle(String title, int alignment, boolean showframe, boolean showBold);
+ public native void addTitle(String title, int alignment, boolean showframe);
+ public native void addTitle(String title, int alignment);
+ public native void addTitle(String title);
+ public native void addImage(String fileName, int alignment);
+ public native void addImage(String fileName);
+ public native QSize sizeHint();
+ public native QSize minimumSizeHint();
+ protected native void childEvent(QChildEvent e);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAboutContainerSignals.java b/kdejava/koala/org/kde/koala/KAboutContainerSignals.java
new file mode 100644
index 00000000..1d25e21d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAboutContainerSignals.java
@@ -0,0 +1,13 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QChildEvent;
+
+public interface KAboutContainerSignals {
+ void urlClick(String url);
+ void mailClick(String name, String address);
+}
diff --git a/kdejava/koala/org/kde/koala/KAboutContributor.java b/kdejava/koala/org/kde/koala/KAboutContributor.java
new file mode 100644
index 00000000..885ec536
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAboutContributor.java
@@ -0,0 +1,99 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QFrame;
+
+/**
+
+ Used internally by KAboutWidget
+ See {@link KAboutContributorSignals} for signals emitted by KAboutContributor
+ @short Used internally by KAboutWidget
+
+*/
+public class KAboutContributor extends QFrame {
+ protected KAboutContributor(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KAboutContributor(QWidget parent, String name, String username, String email, String url, String work, boolean showHeader, boolean showFrame, boolean showBold) {
+ super((Class) null);
+ newKAboutContributor(parent,name,username,email,url,work,showHeader,showFrame,showBold);
+ }
+ private native void newKAboutContributor(QWidget parent, String name, String username, String email, String url, String work, boolean showHeader, boolean showFrame, boolean showBold);
+ public KAboutContributor(QWidget parent, String name, String username, String email, String url, String work, boolean showHeader, boolean showFrame) {
+ super((Class) null);
+ newKAboutContributor(parent,name,username,email,url,work,showHeader,showFrame);
+ }
+ private native void newKAboutContributor(QWidget parent, String name, String username, String email, String url, String work, boolean showHeader, boolean showFrame);
+ public KAboutContributor(QWidget parent, String name, String username, String email, String url, String work, boolean showHeader) {
+ super((Class) null);
+ newKAboutContributor(parent,name,username,email,url,work,showHeader);
+ }
+ private native void newKAboutContributor(QWidget parent, String name, String username, String email, String url, String work, boolean showHeader);
+ public KAboutContributor(QWidget parent, String name, String username, String email, String url, String work) {
+ super((Class) null);
+ newKAboutContributor(parent,name,username,email,url,work);
+ }
+ private native void newKAboutContributor(QWidget parent, String name, String username, String email, String url, String work);
+ public KAboutContributor(QWidget parent, String name, String username, String email, String url) {
+ super((Class) null);
+ newKAboutContributor(parent,name,username,email,url);
+ }
+ private native void newKAboutContributor(QWidget parent, String name, String username, String email, String url);
+ public KAboutContributor(QWidget parent, String name, String username, String email) {
+ super((Class) null);
+ newKAboutContributor(parent,name,username,email);
+ }
+ private native void newKAboutContributor(QWidget parent, String name, String username, String email);
+ public KAboutContributor(QWidget parent, String name, String username) {
+ super((Class) null);
+ newKAboutContributor(parent,name,username);
+ }
+ private native void newKAboutContributor(QWidget parent, String name, String username);
+ public KAboutContributor(QWidget parent, String name) {
+ super((Class) null);
+ newKAboutContributor(parent,name);
+ }
+ private native void newKAboutContributor(QWidget parent, String name);
+ public KAboutContributor(QWidget parent) {
+ super((Class) null);
+ newKAboutContributor(parent);
+ }
+ private native void newKAboutContributor(QWidget parent);
+ public KAboutContributor() {
+ super((Class) null);
+ newKAboutContributor();
+ }
+ private native void newKAboutContributor();
+ public native void setName(String text, String header, boolean update);
+ public native void setName(String text, String header);
+ public native void setName(String text);
+ public native void setEmail(String text, String header, boolean update);
+ public native void setEmail(String text, String header);
+ public native void setEmail(String text);
+ public native void setURL(String text, String header, boolean update);
+ public native void setURL(String text, String header);
+ public native void setURL(String text);
+ public native void setWork(String text, String header, boolean update);
+ public native void setWork(String text, String header);
+ public native void setWork(String text);
+ public native String getName();
+ public native String getEmail();
+ public native String getURL();
+ public native String getWork();
+ public native QSize sizeHint();
+ protected native void fontChange(QFont oldFont);
+ protected native void urlClickedSlot(String arg1);
+ protected native void emailClickedSlot(String emailaddress);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAboutContributorSignals.java b/kdejava/koala/org/kde/koala/KAboutContributorSignals.java
new file mode 100644
index 00000000..7bd260d8
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAboutContributorSignals.java
@@ -0,0 +1,13 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+
+public interface KAboutContributorSignals {
+ void sendEmail(String name, String email);
+ void openURL(String url);
+}
diff --git a/kdejava/koala/org/kde/koala/KAboutData.java b/kdejava/koala/org/kde/koala/KAboutData.java
new file mode 100644
index 00000000..9ccbd0f7
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAboutData.java
@@ -0,0 +1,421 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QImage;
+
+/**
+
+ This class is used to store information about a program. It can store
+ such values as version number, program name, home page, email address
+ for bug reporting, multiple authors and contributors
+ (using KAboutPerson), license and copyright information.
+ Currently, the values set here are shown by the "About" box
+ (see KAboutDialog), used by the bug report dialog (see KBugReport),
+ and by the help shown on command line (see KCmdLineArgs).
+ @author Espen Sand (espen@kde.org), David Faure (faure@kde.org)
+
+ @short Holds information needed by the "About" box and other classes.
+
+*/
+public class KAboutData implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KAboutData(Class dummy){}
+
+ /**
+ Descibes the license of the software.
+ @short Descibes the license of the software.
+ */
+ public static final int License_Custom = -2;
+ public static final int License_File = -1;
+ public static final int License_Unknown = 0;
+ public static final int License_GPL = 1;
+ public static final int License_GPL_V2 = 1;
+ public static final int License_LGPL = 2;
+ public static final int License_LGPL_V2 = 2;
+ public static final int License_BSD = 3;
+ public static final int License_Artistic = 4;
+ public static final int License_QPL = 5;
+ public static final int License_QPL_V1_0 = 5;
+
+ /**
+ Constructor.
+ @param appName The program name used internally. Example: "kedit"
+ @param programName A displayable program name string. This string
+ should be marked for translation. Example: I18N_NOOP("KEdit")
+ @param version The program version string.
+ @param shortDescription A short description of what the program does.
+ This string should be marked for translation.
+ Example: I18N_NOOP("A simple text editor.")
+ @param licenseType The license identifier. Use setLicenseText if
+ you use a license not predefined here.
+ @param copyrightStatement A copyright statement, that can look like this:
+ "(c) 1999-2000, Name". The string specified here is not modified
+ in any manner. The author information from addAuthor is not
+ used.
+ @param text Some free form text, that can contain any kind of
+ information. The text can contain newlines. This string
+ should be marked for translation.
+ @param homePageAddress The program homepage string.
+ Start the address with "http://". "http://some.domain" is
+ is correct, "some.domain" is not.
+ @param bugsEmailAddress The bug report email address string.
+ This defaults to the kde.org bug system.
+ @short Constructor.
+ */
+ public KAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text, String homePageAddress, String bugsEmailAddress) {
+ newKAboutData(appName,programName,version,shortDescription,licenseType,copyrightStatement,text,homePageAddress,bugsEmailAddress);
+ }
+ private native void newKAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text, String homePageAddress, String bugsEmailAddress);
+ public KAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text, String homePageAddress) {
+ newKAboutData(appName,programName,version,shortDescription,licenseType,copyrightStatement,text,homePageAddress);
+ }
+ private native void newKAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text, String homePageAddress);
+ public KAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text) {
+ newKAboutData(appName,programName,version,shortDescription,licenseType,copyrightStatement,text);
+ }
+ private native void newKAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text);
+ public KAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement) {
+ newKAboutData(appName,programName,version,shortDescription,licenseType,copyrightStatement);
+ }
+ private native void newKAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement);
+ public KAboutData(String appName, String programName, String version, String shortDescription, int licenseType) {
+ newKAboutData(appName,programName,version,shortDescription,licenseType);
+ }
+ private native void newKAboutData(String appName, String programName, String version, String shortDescription, int licenseType);
+ public KAboutData(String appName, String programName, String version, String shortDescription) {
+ newKAboutData(appName,programName,version,shortDescription);
+ }
+ private native void newKAboutData(String appName, String programName, String version, String shortDescription);
+ public KAboutData(String appName, String programName, String version) {
+ newKAboutData(appName,programName,version);
+ }
+ private native void newKAboutData(String appName, String programName, String version);
+ /**
+ Defines an author. You can call this function as many times you
+ need. Each entry is appended to a list. The person in the first entry
+ is assumed to be the leader of the project.
+ @param name The developer's name in UTF-8 encoding.
+ @param task What the person is responsible for. This text can contain
+ newlines. It should be marked for translation like this:
+ I18N_NOOP("Task description..."). Can be 0.
+ @param emailAddress An Email address where the person can be reached.
+ Can be 0.
+ @param webAddress The person's homepage or a relevant link.
+ Start the address with "http://". "http://some.domain" is
+ correct, "some.domain" is not. Can be 0.
+ @short Defines an author.
+ */
+ public native void addAuthor(String name, String task, String emailAddress, String webAddress);
+ public native void addAuthor(String name, String task, String emailAddress);
+ public native void addAuthor(String name, String task);
+ public native void addAuthor(String name);
+ /**
+ Defines a person that deserves credit. You can call this function
+ as many times you need. Each entry is appended to a list.
+ @param name The person's name in UTF-8 encoding.
+ @param task What the person has done to deserve the honor. The
+ text can contain newlines. It should be marked for
+ translation like this: I18N_NOOP("Task description...")
+ Can be 0.
+ @param emailAddress An Email address when the person can be reached.
+ Can be 0.
+ @param webAddress The person's homepage or a relevant link.
+ Start the address with "http://". "http://some.domain" is
+ is correct, "some.domain" is not. Can be 0.
+ @short Defines a person that deserves credit.
+ */
+ public native void addCredit(String name, String task, String emailAddress, String webAddress);
+ public native void addCredit(String name, String task, String emailAddress);
+ public native void addCredit(String name, String task);
+ public native void addCredit(String name);
+ /**
+ Sets the name of the translator of the gui. Since this depends
+ on the language, just use a dummy text marked for translation.
+ For example:
+ <pre>
+ setTranslator(I18N_NOOP("_: NAME OF TRANSLATORS\\nYour names")
+ ,I18N_NOOP("_: EMAIL OF TRANSLATORS\\nYour emails"));
+ </pre>
+ The translator can then translate this dummy text with his name
+ or with a list of names separated with ",".
+ If there is no translation or the application is used with the
+ default language, this function call is ignored.
+ Note: If you are using the default KDE automake environment,
+ there is no need to use this function, because the two
+ default strings above are added to the applications po file
+ automatically.
+ @param name the name of the translator
+ @param emailAddress the email address of the translator
+ @short Sets the name of the translator of the gui.
+ @see KAboutTranslator
+ */
+ public native void setTranslator(String name, String emailAddress);
+ /**
+ Defines a license text.
+ The text will be translated if it got marked for
+ translations with the I18N_NOOP() macro.
+ Example:
+ <pre>
+ setLicenseText( I18N_NOOP("This is my license"));
+ </pre>
+ NOTE: No copy of the text is made.
+ @param license The license text in utf8 encoding.
+ @short Defines a license text.
+ */
+ public native void setLicenseText(String license);
+ /**
+ Defines a license text.
+ @param file File containing the license text.
+ @short Defines a license text.
+ */
+ public native void setLicenseTextFile(String file);
+ /**
+ Defines the program name used internally.
+ @param appName The application name. Example: "kate".
+ @short Defines the program name used internally.
+ */
+ public native void setAppName(String appName);
+ /**
+ Defines the displayable program name string.
+ @param programName The program name. This string should be
+ marked for translation.
+ Example: I18N_NOOP("Advanced Text Editor").
+ @short Defines the displayable program name string.
+ */
+ public native void setProgramName(String programName);
+ /**
+ Defines the program logo.
+ Use this if you need to have application logo
+ in AboutData other than application icon.
+ @param image logo image.
+ @short Defines the program logo.
+ @see #programLogo
+ */
+ public native void setProgramLogo(QImage image);
+ /**
+ Defines the program version string.
+ @param version The program version.
+ @short Defines the program version string.
+ */
+ public native void setVersion(String version);
+ /**
+ Defines a short description of what the program does.
+ @param shortDescription The program description This string should be marked
+ for translation. Example: I18N_NOOP("An advanced text editor
+ with syntax highlithing support.").
+ @short Defines a short description of what the program does.
+ */
+ public native void setShortDescription(String shortDescription);
+ /**
+ Defines the license identifier.
+ @param licenseKey The license identifier.
+ @short Defines the license identifier.
+ */
+ public native void setLicense(int licenseKey);
+ /**
+ Defines the copyright statement to show when displaying the license.
+ @param copyrightStatement A copyright statement, that can look like
+ this: "(c) 1999-2000, Name". The string specified here is not
+ modified in any manner. The author information from addAuthor
+ is not used.
+ @short Defines the copyright statement to show when displaying the license.
+ */
+ public native void setCopyrightStatement(String copyrightStatement);
+ /**
+ Defines the additional text to show in the about dialog.
+ @param otherText Some free form text, that can contain any kind of
+ information. The text can contain newlines. This string
+ should be marked for translation.
+ @short Defines the additional text to show in the about dialog.
+ */
+ public native void setOtherText(String otherText);
+ /**
+ Defines the program homepage.
+ @param homepage The program homepage string.
+ Start the address with "http://". "http://kate.kde.org" is
+ is correct, "kde.kde.org" is not.
+ @short Defines the program homepage.
+ */
+ public native void setHomepage(String homepage);
+ /**
+ Defines the address where bug reports should be sent.
+ @param bugAddress The bug report email address string.
+ This defaults to the kde.org bug system.
+ @short Defines the address where bug reports should be sent.
+ */
+ public native void setBugAddress(String bugAddress);
+ /**
+ Defines the product name wich will be used in the KBugReport dialog.
+ By default it's the appName, but you can overwrite it here to provide
+ support for special components e.g. 'product/component' like
+ 'kontact/summary'.
+ @param name The name of product
+ @short Defines the product name wich will be used in the KBugReport dialog.
+ */
+ public native void setProductName(String name);
+ /**
+ Returns the application's internal name.
+ @return the internal program name.
+
+ @short Returns the application's internal name.
+ */
+ public native String appName();
+ /**
+ Returns the application's product name, which will be used in KBugReport
+ dialog. By default it returns appName(), otherwise the one which is set
+ with setProductName()
+ @return the product name.
+
+ @short Returns the application's product name, which will be used in KBugReport dialog.
+ */
+ public native String productName();
+ /**
+ Returns the translated program name.
+ @return the program name (translated).
+
+ @short Returns the translated program name.
+ */
+ public native String programName();
+ /**
+ Returns the program logo image.
+ @return the program logo data or null image if there is
+ no custom application logo defined.
+
+ @short Returns the program logo image.
+ */
+ public native QImage programLogo();
+ /**
+ Returns the program's version.
+ @return the version string.
+
+ @short Returns the program's version.
+ */
+ public native String version();
+ /**
+ Returns a short, translated description.
+ @return the short description (translated). Can be
+ null if not set.
+
+ @short Returns a short, translated description.
+ */
+ public native String shortDescription();
+ /**
+ Returns the application homepage.
+ @return the application homepage URL. Can be null if
+ not set.
+
+ @short Returns the application homepage.
+ */
+ public native String homepage();
+ /**
+ Returns the email address for bugs.
+ @return the email address where to report bugs.
+
+ @short Returns the email address for bugs.
+ */
+ public native String bugAddress();
+ /**
+ Returns a list of authors.
+ @return author information (list of persons).
+
+ @short Returns a list of authors.
+ */
+ // const QValueList<KAboutPerson> authors(); >>>> NOT CONVERTED
+ /**
+ Returns a list of persons who contributed.
+ @return credit information (list of persons).
+
+ @short Returns a list of persons who contributed.
+ */
+ // const QValueList<KAboutPerson> credits(); >>>> NOT CONVERTED
+ /**
+ Returns a list of translators.
+ @return translators information (list of persons)
+
+ @short Returns a list of translators.
+ */
+ // const QValueList<KAboutTranslator> translators(); >>>> NOT CONVERTED
+ /**
+ Returns a translated, free form text.
+ @return the free form text (translated). Can be null if not set.
+
+ @short Returns a translated, free form text.
+ */
+ public native String otherText();
+ /**
+ Returns the license. If the licenseType argument of the constructor has been
+ used, any text defined by setLicenseText is ignored,
+ and the standard text for the chosen license will be returned.
+ @return The license text.
+
+ @short Returns the license.
+ */
+ public native String license();
+ /**
+ Returns the copyright statement.
+ @return the copyright statement. Can be null if not set.
+
+ @short Returns the copyright statement.
+ */
+ public native String copyrightStatement();
+ /**
+ Returns the plain text displayed around the list of authors instead
+ of the default message telling users to send bug reports to bugAddress().
+ @return the plain text displayed around the list of authors instead
+ of the default message. Can be null.
+
+ @short Returns the plain text displayed around the list of authors instead of the default message telling users to send bug reports to bugAddress().
+ */
+ public native String customAuthorPlainText();
+ /**
+ Returns the rich text displayed around the list of authors instead
+ of the default message telling users to send bug reports to bugAddress().
+ @return the rich text displayed around the list of authors instead
+ of the default message. Can be null.
+
+ @short Returns the rich text displayed around the list of authors instead of the default message telling users to send bug reports to bugAddress().
+ */
+ public native String customAuthorRichText();
+ /**
+ Returns whether custom text should be displayed around the list of
+ authors.
+ @return whether custom text should be displayed around the list of
+ authors.
+
+ @short Returns whether custom text should be displayed around the list of authors.
+ */
+ public native boolean customAuthorTextEnabled();
+ /**
+ Sets the custom text displayed around the list of authors instead
+ of the default message telling users to send bug reports to bugAddress().
+ @param plainText The plain text.
+ @param richText The rich text.
+ Both parameters can be null to not display any message at
+ all. Call unsetCustomAuthorText() to revert to the default mesage.
+ @short Sets the custom text displayed around the list of authors instead of the default message telling users to send bug reports to bugAddress().
+ */
+ public native void setCustomAuthorText(String plainText, String richText);
+ /**
+ Clears any custom text displayed around the list of authors and falls
+ back to the default message telling users to send bug reports to
+ bugAddress().
+ @short Clears any custom text displayed around the list of authors and falls back to the default message telling users to send bug reports to bugAddress().
+ */
+ public native void unsetCustomAuthorText();
+ /**
+ Returns a message about the translation team.
+ @return a message about the translation team
+
+ @short Returns a message about the translation team.
+ */
+ public static native String aboutTranslationTeam();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAboutDialog.java b/kdejava/koala/org/kde/koala/KAboutDialog.java
new file mode 100644
index 00000000..6326f3b0
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAboutDialog.java
@@ -0,0 +1,379 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QFrame;
+
+/**
+
+ A KDialogBase with predefined main widget.
+ As a KDialogBase it uses your application wide settings
+ for KDialogBase
+ objects (base frame tiles, main frame tiles etc).
+ To use it, simply create a KAboutDialog object, set all (or some) of its
+ properties and show it. Do not derive it to create your own about dialog
+ until you need some cool features that are unsupported and you have
+ contacted me to add them.
+ The dialog can be created using two different constructors. The
+ difference between these constructors is the available components that
+ can be used to build the contents of the dialog. The first (Constructor I)
+ provides a number of easy to use methods. Basically it allows you
+ to add the components of choice, and the components are placed in a
+ predefined layout. You do not have to plan the layout. Everything is
+ taken care of.
+ The second constructor (Constructor II) works in quite the same manner
+ as the first, but you have better control on where the components
+ are postioned in the layout and you have access to an extended number
+ of components you can install such as titles, product information,
+ a tabbed pages (where you can display rich text with url links) and
+ a person (developer) information field. The "About KDE" dialog box is
+ created with Constructor II.
+ For the derived features, see the basic class KDialogBase.
+ See {@link KAboutDialogSignals} for signals emitted by KAboutDialog
+ @author Mirko Boehm (mirko@kde.org) and Espen Sand (espensa@online.no)
+
+ @short A KDialogBase with predefined main widget.
+ @see KDialogBase
+
+*/
+public class KAboutDialog extends KDialogBase {
+ protected KAboutDialog(Class dummy){super((Class) null);}
+ /**
+ Layout formats.
+ @short Layout formats.
+ */
+ public static final int AbtPlain = 0x0001;
+ public static final int AbtTabbed = 0x0002;
+ public static final int AbtTitle = 0x0004;
+ public static final int AbtImageLeft = 0x0008;
+ public static final int AbtImageRight = 0x0010;
+ public static final int AbtImageOnly = 0x0020;
+ public static final int AbtProduct = 0x0040;
+ public static final int AbtKDEStandard = AbtTabbed|AbtTitle|AbtImageLeft;
+ public static final int AbtAppStandard = AbtTabbed|AbtTitle|AbtProduct;
+ public static final int AbtImageAndTitle = AbtPlain|AbtTitle|AbtImageOnly;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ The standard Qt constructor (Constructor I).
+ Add components with the following methods:
+ setLogo(), setAuthor(), setMaintainer(),
+ addContributor(), or setVersion().
+ The dialog will be laid out automatically.
+ @short The standard Qt constructor (Constructor I).
+ */
+ public KAboutDialog(QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKAboutDialog(parent,name,modal);
+ }
+ private native void newKAboutDialog(QWidget parent, String name, boolean modal);
+ public KAboutDialog(QWidget parent, String name) {
+ super((Class) null);
+ newKAboutDialog(parent,name);
+ }
+ private native void newKAboutDialog(QWidget parent, String name);
+ public KAboutDialog(QWidget parent) {
+ super((Class) null);
+ newKAboutDialog(parent);
+ }
+ private native void newKAboutDialog(QWidget parent);
+ public KAboutDialog() {
+ super((Class) null);
+ newKAboutDialog();
+ }
+ private native void newKAboutDialog();
+ /**
+ The extended constructor. (Constructor II).
+ Add components with the methods:
+ setTitle(), setImage(), setImageBackgroundColor(),
+ setImageFrame(), setProduct(), addTextPage(),
+ addContainerPage(), addContainer(), or addPage().
+ @param dialogLayout Use a mask of LayoutType flags.
+ @param caption The dialog caption. The text you specify is prepended
+ by i18n("About").
+ @param buttonMask Specifies what buttons will be visible.
+ @param defaultButton Specifies what button will be marked as the default.
+ @param parent Parent of the dialog.
+ @param name Dialog name (for internal use only)
+ @param modal Sets dialog modality. If false, the rest of the
+ program interface (other dialogs, for example) is accessible while
+ the dialog is open.
+ @param separator If true, a separator line is drawn between the action
+ buttons an the main widget.
+ @param user1 User button1 text.
+ @param user2 User button2 text.
+ @param user3 User button3 text.
+ @short The extended constructor.
+ */
+ public KAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator, String user1, String user2, String user3) {
+ super((Class) null);
+ newKAboutDialog(dialogLayout,caption,buttonMask,defaultButton,parent,name,modal,separator,user1,user2,user3);
+ }
+ private native void newKAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator, String user1, String user2, String user3);
+ public KAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator, String user1, String user2) {
+ super((Class) null);
+ newKAboutDialog(dialogLayout,caption,buttonMask,defaultButton,parent,name,modal,separator,user1,user2);
+ }
+ private native void newKAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator, String user1, String user2);
+ public KAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator, String user1) {
+ super((Class) null);
+ newKAboutDialog(dialogLayout,caption,buttonMask,defaultButton,parent,name,modal,separator,user1);
+ }
+ private native void newKAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator, String user1);
+ public KAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator) {
+ super((Class) null);
+ newKAboutDialog(dialogLayout,caption,buttonMask,defaultButton,parent,name,modal,separator);
+ }
+ private native void newKAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator);
+ public KAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKAboutDialog(dialogLayout,caption,buttonMask,defaultButton,parent,name,modal);
+ }
+ private native void newKAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal);
+ public KAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton, QWidget parent, String name) {
+ super((Class) null);
+ newKAboutDialog(dialogLayout,caption,buttonMask,defaultButton,parent,name);
+ }
+ private native void newKAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton, QWidget parent, String name);
+ public KAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton, QWidget parent) {
+ super((Class) null);
+ newKAboutDialog(dialogLayout,caption,buttonMask,defaultButton,parent);
+ }
+ private native void newKAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton, QWidget parent);
+ public KAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton) {
+ super((Class) null);
+ newKAboutDialog(dialogLayout,caption,buttonMask,defaultButton);
+ }
+ private native void newKAboutDialog(int dialogLayout, String caption, int buttonMask, int defaultButton);
+ /**
+ Adjusts the dialog.
+ You can call this method after you have set up all
+ the contents but it is not required. It is done automatically when
+ show() is executed.
+ @short Adjusts the dialog.
+ */
+ public native void adjust();
+ /**
+ Makes a modeless (modal = false in constructor) dialog visible.
+ If you reimplement this method make sure you run it
+ in the new method (e.g., show()). Reimplemented
+ from KDialogBase.
+ @short Makes a modeless (modal = false in constructor) dialog visible.
+ */
+ public native void show();
+ /**
+ Makes a modeless (modal = false in constructor) dialog visible.
+ If you reimplmement this method make sure you run it
+ in the new method (i.e., show( parent )).
+ @param centerParent Center the dialog with respect to this widget.
+ @short Makes a modeless (modal = false in constructor) dialog visible.
+ */
+ public native void show(QWidget centerParent);
+ /**
+ (Constructor II only)
+ Sets a title (not caption) in the uppermost area of the dialog.
+ @param title Title string.
+ @short (Constructor II only) Sets a title (not caption) in the uppermost area of the dialog.
+ */
+ public native void setTitle(String title);
+ /**
+ (Constructor II only)
+ Define an image to be shown in the dialog. The position is dependent
+ on the <code>dialogLayout</code> in the constructor
+ @param fileName Path to image file.
+ @short (Constructor II only) Define an image to be shown in the dialog.
+ */
+ public native void setImage(String fileName);
+ /**
+ Overloaded version of setProgramLogo(QPixmap pixmap).
+ @short Overloaded version of setProgramLogo(QPixmap pixmap).
+ */
+ public native void setProgramLogo(String fileName);
+ /**
+ (Constructor II only)
+ Define the program logo to be shown in the dialog. Use this to override the
+ default program logo. For example, use this function if the
+ KAboutDialog is for a panel applet and you want to override the
+ appletproxy logo with your own pixmap.
+ @param pixmap The logo pixmap.
+ @short (Constructor II only) Define the program logo to be shown in the dialog.
+ */
+ public native void setProgramLogo(QPixmap pixmap);
+ /**
+ (Constructor II only)
+ The image has a minimum size, but is centered within an area if the
+ dialog box is enlarged by the user. You set the background color
+ of the area with this method.
+ @param color Background color.
+ @short (Constructor II only) The image has a minimum size, but is centered within an area if the dialog box is enlarged by the user.
+ */
+ public native void setImageBackgroundColor(QColor color);
+ /**
+ (Constructor II only)
+ Enables or disables a frame around the image. The frame is, by default,
+ enabled in the constructor
+ @param state A value of <code>true</code> enables the frame
+ @short (Constructor II only) Enables or disables a frame around the image.
+ */
+ public native void setImageFrame(boolean state);
+ /**
+ (Constructor II only)
+ Prints the application name, KDE version, author, a copyright sign
+ and a year string. To the left of the text the standard application
+ icon is displayed.
+ @param appName The application name.
+ @param version Application version.
+ @param author One or more authors.
+ @param year A string telling when the application was made.
+ @short (Constructor II only) Prints the application name, KDE version, author, a copyright sign and a year string.
+ */
+ public native void setProduct(String appName, String version, String author, String year);
+ /**
+ (Constructor II only)
+ Adds a text page to a tab box. The text can be regular text or
+ rich text. The rich text can contain URLs and mail links.
+ @param title Tab name.
+ @param text The text to display.
+ @param richText Set this to <code>true</code> if 'text' is rich text.
+ @param numLines The text area height will be adjusted so that this
+ is the minimum number of lines of text that are visible.
+ @return The frame that contains the page.
+
+ @short (Constructor II only) Adds a text page to a tab box.
+ */
+ public native QFrame addTextPage(String title, String text, boolean richText, int numLines);
+ public native QFrame addTextPage(String title, String text, boolean richText);
+ public native QFrame addTextPage(String title, String text);
+ /**
+ (Constructor II only)
+ Adds a license page to a tab box.
+ @param title Tab name.
+ @param text The text to display.
+ @param numLines The text area height will be adjusted so that this
+ is the minimum number of lines of text that are visible.
+ @return The frame that contains the page.
+
+ @short (Constructor II only) Adds a license page to a tab box.
+ */
+ public native QFrame addLicensePage(String title, String text, int numLines);
+ public native QFrame addLicensePage(String title, String text);
+ /**
+ (Constructor II only)
+ Adds a container to a tab box. You can add text and images to a
+ container.
+ @param title Tab name.
+ @param childAlignment Specifies how the children of the container are
+ aligned with respect to the container.
+ @param innerAlignment Specifies how the children are aligned with
+ respect to each other.
+ @return The new container.
+
+ @short (Constructor II only) Adds a container to a tab box.
+ */
+ public native KAboutContainer addContainerPage(String title, int childAlignment, int innerAlignment);
+ public native KAboutContainer addContainerPage(String title, int childAlignment);
+ public native KAboutContainer addContainerPage(String title);
+ /**
+ (Constructor II only)
+ Adds a container inside a QScrollView to a tab box. You can add text
+ and images to a container.
+ @param title Tab name.
+ @param childAlignment Specifies how the children of the container are
+ aligned with respect to the container.
+ @param innerAlignment Specifies how the children are aligned with
+ respect to each other.
+ @return The new container.
+
+ @short (Constructor II only) Adds a container inside a QScrollView to a tab box.
+ */
+ public native KAboutContainer addScrolledContainerPage(String title, int childAlignment, int innerAlignment);
+ public native KAboutContainer addScrolledContainerPage(String title, int childAlignment);
+ public native KAboutContainer addScrolledContainerPage(String title);
+ /**
+ (Constructor II only)
+ Adds a container. You can add text and images to a container.
+ @param childAlignment Specifies how the children of the container are
+ aligned with respect to the container.
+ @param innerAlignment Specifies how the children are aligned with
+ respect to each other.
+ @return The new container.
+
+ @short (Constructor II only) Adds a container.
+ */
+ public native KAboutContainer addContainer(int childAlignment, int innerAlignment);
+ /**
+ (Constructor II only)
+ Adds an empty page to a tab box.
+ @param title Tab name
+ @return The new page.
+
+ @short (Constructor II only) Adds an empty page to a tab box.
+ */
+ public native QFrame addPage(String title);
+ /**
+ (Constructor I only)
+ Sets the image as the application logo.
+ @short (Constructor I only) Sets the image as the application logo.
+ */
+ public native void setLogo(QPixmap arg1);
+ /**
+ (Constructor I only)
+ Sets the author's name and email address.
+ @short (Constructor I only) Sets the author's name and email address.
+ */
+ public native void setAuthor(String name, String email, String url, String work);
+ /**
+ (Constructor I only)
+ Sets the maintainer's name and email address.
+ @short (Constructor I only) Sets the maintainer's name and email address.
+ */
+ public native void setMaintainer(String name, String email, String url, String work);
+ /**
+ (Constructor I only)
+ Show this person as one of the major contributors.
+ @short (Constructor I only) Show this person as one of the major contributors.
+ */
+ public native void addContributor(String name, String email, String url, String work);
+ /**
+ (Constructor I only)
+ Sets the text describing the version.
+ @short (Constructor I only) Sets the text describing the version.
+ */
+ public native void setVersion(String name);
+ /**
+ Create a modal dialog with an image in the upper area with a
+ URL link below.
+ @short Create a modal dialog with an image in the upper area with a URL link below.
+ */
+ public static native void imageURL(QWidget parent, String caption, String path, QColor imageColor, String url);
+ /**
+ Connected to widget.sendEmail.
+ @short Connected to widget.sendEmail.
+ */
+ protected native void sendEmailSlot(String name, String email);
+ /**
+ Open this URL.
+ @short Open this URL.
+ */
+ protected native void openURLSlot(String url);
+ /**
+ (Constructor II only)
+ Tells the position of the mouse cursor when the left mouse button
+ is pressed above an image
+ @short (Constructor II only) Tells the position of the mouse cursor when the left mouse button is pressed above an image
+ */
+ protected native void mouseTrackSlot(int mode, QMouseEvent e);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAboutDialogSignals.java b/kdejava/koala/org/kde/koala/KAboutDialogSignals.java
new file mode 100644
index 00000000..c2f2d69b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAboutDialogSignals.java
@@ -0,0 +1,25 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QFrame;
+
+public interface KAboutDialogSignals {
+ /**
+ Send an email to this person.
+ The application must provide the
+ functionality.
+ @short Send an email to this person.
+ */
+ void sendEmail(String name, String email);
+ /**
+ Open the selected URL.
+ @short Open the selected URL.
+ */
+ void openURL(String url);
+}
diff --git a/kdejava/koala/org/kde/koala/KAboutKDE.java b/kdejava/koala/org/kde/koala/KAboutKDE.java
new file mode 100644
index 00000000..2ccfca6f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAboutKDE.java
@@ -0,0 +1,62 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ This class provides the standard "About KDE" dialog box that is used
+ KHelpMenu Normally you should not use this class directly but
+ rather the KHelpMenu class or even better just subclass your
+ toplevel window from KMainWindow. If you do the latter, the help
+ menu and thereby this dialog box is available through the
+ KMainWindow.helpMenu() function.
+ @author Espen Sand (espen@kde.org)
+
+ @short Standard "About KDE" dialog box,.
+
+*/
+public class KAboutKDE extends KAboutDialog {
+ protected KAboutKDE(Class dummy){super((Class) null);}
+ /**
+ Constructor. Creates a fully featured "About KDE" dialog box.
+ Note that this dialog is made modeless in the KHelpMenu class so
+ the users may expect a modeless dialog.
+ @param parent The parent of the dialog box. You should use the
+ toplevel window so that the dialog becomes centered.
+ @param name Internal name of the widget. This name in not used in the
+ caption.
+ @param modal If false, this widget will be modeless and must be
+ made visible using QWidget.show(). Otherwise it will be
+ modal and must be made visible using QWidget.exec()
+ @short Constructor.
+ */
+ public KAboutKDE(QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKAboutKDE(parent,name,modal);
+ }
+ private native void newKAboutKDE(QWidget parent, String name, boolean modal);
+ public KAboutKDE(QWidget parent, String name) {
+ super((Class) null);
+ newKAboutKDE(parent,name);
+ }
+ private native void newKAboutKDE(QWidget parent, String name);
+ public KAboutKDE(QWidget parent) {
+ super((Class) null);
+ newKAboutKDE(parent);
+ }
+ private native void newKAboutKDE(QWidget parent);
+ public KAboutKDE() {
+ super((Class) null);
+ newKAboutKDE();
+ }
+ private native void newKAboutKDE();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAboutPerson.java b/kdejava/koala/org/kde/koala/KAboutPerson.java
new file mode 100644
index 00000000..b1969eb5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAboutPerson.java
@@ -0,0 +1,93 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This structure is used to store information about a person or developer.
+ It can store the person's name, a task, an email address and a
+ link to a home page. This class is intended for use in the
+ KAboutData class, but it can be used elsewhere as well.
+ Normally you should at least define the person's name.
+ Example Usage within a main():
+ <pre>
+ KAboutData about("khello", I18N_NOOP("KHello"), "0.1",
+ I18N_NOOP("A KDE version of Hello, world!"),
+ KAboutData.License_LGPL,
+ I18N_NOOP("Copyright (c) 2003 Developer"));
+ about.addAuthor("Joe Developer", I18N_NOOP("developer"), "joe@host.com", 0);
+ about.addCredit("Joe User", I18N_NOOP("A lot of bug reports"),
+ "joe.user@host.org", 0);
+ KCmdLineArgs.init(args, &about);
+ </pre>
+ @short This structure is used to store information about a person or developer.
+
+*/
+public class KAboutPerson implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KAboutPerson(Class dummy){}
+
+ /**
+ Convenience constructor
+ @param name The name of the person.
+ @param task The task of this person. This string should be
+ marked for translation, e.g.
+ I18N_NOOP("Task description....")
+ @param emailAddress The email address of the person.
+ @param webAddress Home page of the person.
+ @short Convenience constructor
+ */
+ public KAboutPerson(String name, String task, String emailAddress, String webAddress) {
+ newKAboutPerson(name,task,emailAddress,webAddress);
+ }
+ private native void newKAboutPerson(String name, String task, String emailAddress, String webAddress);
+ /**
+ Don't use. Required by QValueList
+ @short
+ */
+ public KAboutPerson() {
+ newKAboutPerson();
+ }
+ private native void newKAboutPerson();
+ /**
+ The person's name
+ @return the person's name (can be null, if it has been
+ constructed with a null name)
+
+ @short The person's name
+ */
+ public native String name();
+ /**
+ The person's task
+ @return the person's task (can be null, if it has been
+ constructed with a null task)
+
+ @short The person's task
+ */
+ public native String task();
+ /**
+ The person's email address
+ @return the person's email address (can be null, if it has been
+ constructed with a null email)
+
+ @short The person's email address
+ */
+ public native String emailAddress();
+ /**
+ The home page or a relevant link
+ @return the persons home page (can be null, if it has been
+ constructed with a null home page)
+
+ @short The home page or a relevant link
+ */
+ public native String webAddress();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAboutTranslator.java b/kdejava/koala/org/kde/koala/KAboutTranslator.java
new file mode 100644
index 00000000..e0d07940
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAboutTranslator.java
@@ -0,0 +1,66 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This structure is used to store information about a translator.
+ It can store the translator's name and an email address.
+ This class is intended for use in the KAboutData class,
+ but it can be used elsewhere as well.
+ Normally you should at least define the translator's name.
+ It's not possible to use KAboutPerson for this, because
+ KAboutPerson stores internally only String pointers, but the
+ translator information is generated dynamically from the translation
+ of a dummy string.
+ @short This structure is used to store information about a translator.
+
+*/
+public class KAboutTranslator implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KAboutTranslator(Class dummy){}
+
+ /**
+ Convenience constructor
+ @param name The name of the person.
+ @param emailAddress The email address of the person.
+ @short Convenience constructor
+ */
+ public KAboutTranslator(String name, String emailAddress) {
+ newKAboutTranslator(name,emailAddress);
+ }
+ private native void newKAboutTranslator(String name, String emailAddress);
+ public KAboutTranslator(String name) {
+ newKAboutTranslator(name);
+ }
+ private native void newKAboutTranslator(String name);
+ public KAboutTranslator() {
+ newKAboutTranslator();
+ }
+ private native void newKAboutTranslator();
+ /**
+ The translator's name
+ @return the translators's name (can be null, if it has been
+ constructed with a null name)
+
+ @short The translator's name
+ */
+ public native String name();
+ /**
+ The translator's email
+ @return the translator's email address (can be null, if it has been
+ constructed with a null email)
+
+ @short The translator's email
+ */
+ public native String emailAddress();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAboutWidget.java b/kdejava/koala/org/kde/koala/KAboutWidget.java
new file mode 100644
index 00000000..75db7b44
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAboutWidget.java
@@ -0,0 +1,95 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ KAboutWidget is the main widget for KAboutDialog.
+ It has a minimum size set.
+ See {@link KAboutWidgetSignals} for signals emitted by KAboutWidget
+ @short KAboutWidget is the main widget for KAboutDialog.
+
+*/
+public class KAboutWidget extends QWidget {
+ protected KAboutWidget(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ The Qt constructor.
+ @short The Qt constructor.
+ */
+ public KAboutWidget(QWidget parent, String name) {
+ super((Class) null);
+ newKAboutWidget(parent,name);
+ }
+ private native void newKAboutWidget(QWidget parent, String name);
+ public KAboutWidget(QWidget parent) {
+ super((Class) null);
+ newKAboutWidget(parent);
+ }
+ private native void newKAboutWidget(QWidget parent);
+ public KAboutWidget() {
+ super((Class) null);
+ newKAboutWidget();
+ }
+ private native void newKAboutWidget();
+ /**
+ Adjust the minimum size (after setting the properties of the image and
+ the labels.
+ @short Adjust the minimum size (after setting the properties of the image and the labels.
+ */
+ public native void adjust();
+ /**
+ Sets the image as the application logo.
+ @short Sets the image as the application logo.
+ */
+ public native void setLogo(QPixmap arg1);
+ /**
+ Sets the author's name and email address.
+ @short Sets the author's name and email address.
+ */
+ public native void setAuthor(String name, String email, String url, String work);
+ /**
+ Sets the maintainers name and email address.
+ @short Sets the maintainers name and email address.
+ */
+ public native void setMaintainer(String name, String email, String url, String work);
+ /**
+ Shows this person as one of the major contributors.
+ @short Shows this person as one of the major contributors.
+ */
+ public native void addContributor(String name, String email, String url, String work);
+ /**
+ Sets the text describing the version.
+ @short Sets the text describing the version.
+ */
+ public native void setVersion(String name);
+ /**
+ The resize event.
+ @short The resize event.
+ */
+ protected native void resizeEvent(QResizeEvent arg1);
+ /**
+ Catches the signals from the contributors elements.
+ @short Catches the signals from the contributors elements.
+ */
+ protected native void sendEmailSlot(String name, String email);
+ /**
+ Catches the clicked URLs.
+ @short Catches the clicked URLs.
+ */
+ protected native void openURLSlot(String url);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAboutWidgetSignals.java b/kdejava/koala/org/kde/koala/KAboutWidgetSignals.java
new file mode 100644
index 00000000..e234f987
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAboutWidgetSignals.java
@@ -0,0 +1,21 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+public interface KAboutWidgetSignals {
+ /**
+ An email address has been selected by the user.
+ @short An email address has been selected by the user.
+ */
+ void sendEmail(String name, String email);
+ /**
+ An URL has been clicked.
+ @short An URL has been clicked.
+ */
+ void openURL(String url);
+}
diff --git a/kdejava/koala/org/kde/koala/KAccel.java b/kdejava/koala/org/kde/koala/KAccel.java
new file mode 100644
index 00000000..2400b2da
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAccel.java
@@ -0,0 +1,299 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QWidget;
+import org.kde.qt.QAccel;
+
+/**
+
+ Handle shortcuts.
+ Allow a user to configure shortcuts
+ through application configuration files or through the
+ KKeyChooser GUI.
+ A KAccel contains a list of accelerator actions.
+ For example, CTRL+Key_P could be a shortcut for printing a document. The key
+ codes are listed in qnamespace.h. "Print" could be the action name for printing.
+ The action name identifies the shortcut in configuration files and the
+ KKeyChooser GUI.
+ A KAccel object handles key events sent to its parent widget and to all
+ children of this parent widget. The most recently created KAccel object
+ has precedence over any KAccel objects created before it.
+ When a shortcut pressed, KAccel calls the slot to which it has been
+ connected. If you want to set global accelerators, independent of the window
+ which has the focus, use KGlobalAccel.
+ Reconfiguration of a given shortcut can be prevented by specifying
+ that an accelerator item is not configurable when it is inserted. A special
+ group of non-configurable key bindings are known as the
+ standard accelerators.
+ The standard accelerators appear repeatedly in applications for
+ standard document actions such as printing and saving. A convenience method is
+ available to insert and connect these accelerators which are configurable on
+ a desktop-wide basis.
+ It is possible for a user to choose to have no key associated with
+ an action.
+ The translated first argument for insertItem() is used only
+ in the configuration dialog.
+<pre>
+ KAccel pAccel = new KAccel( this );
+ // Insert an action "Scroll Up" which is associated with the "Up" key:
+ pAccel.insert( "Scroll Up", i18n("Scroll up"),
+ i18n("Scroll up the current document by one line."),
+ Qt.Key_Up, this, SLOT("slotScrollUp()") );
+ // Insert an standard acclerator action.
+ pAccel.insert( KStdAccel.Print, this, SLOT("slotPrint()") );
+ // Update the shortcuts by read any user-defined settings from the
+ // application's config file.
+ pAccel.readSettings();
+ </pre>
+ See {@link KAccelSignals} for signals emitted by KAccel
+ @short Configurable shortcut support for widgets.
+ @see KGlobalAccel
+ @see KAccelShortcutList
+ @see KKeyChooser
+ @see KKeyDialog
+
+*/
+public class KAccel extends QAccel {
+ protected KAccel(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a new KAccel that watches <code>pParent</code>, which is also
+ the QObject's parent.
+ @param pParent the parent and widget to watch for key strokes
+ @param psName the name of the QObject
+ @short Creates a new KAccel that watches <code>pParent</code>, which is also the QObject's parent.
+ */
+ public KAccel(QWidget pParent, String psName) {
+ super((Class) null);
+ newKAccel(pParent,psName);
+ }
+ private native void newKAccel(QWidget pParent, String psName);
+ public KAccel(QWidget pParent) {
+ super((Class) null);
+ newKAccel(pParent);
+ }
+ private native void newKAccel(QWidget pParent);
+ /**
+ Creates a new KAccel that watches <code>watch.</code>
+ @param watch the widget to watch for key strokes
+ @param parent the parent of the QObject
+ @param psName the name of the QObject
+ @short Creates a new KAccel that watches <code>watch.</code>
+ */
+ public KAccel(QWidget watch, QObject parent, String psName) {
+ super((Class) null);
+ newKAccel(watch,parent,psName);
+ }
+ private native void newKAccel(QWidget watch, QObject parent, String psName);
+ public KAccel(QWidget watch, QObject parent) {
+ super((Class) null);
+ newKAccel(watch,parent);
+ }
+ private native void newKAccel(QWidget watch, QObject parent);
+ /**
+ Returns the KAccel's <code>KAccelActions</code>, a list of <code>KAccelAction.</code>
+ @return the KAccelActions of the KAccel
+
+ @short
+ */
+ public native KAccelActions actions();
+ /**
+ Checks whether the KAccel is active.
+ @return true if the QAccel is enabled
+
+ @short Checks whether the KAccel is active.
+ */
+ public native boolean isEnabled();
+ /**
+ Enables or disables the KAccel.
+ @param bEnabled true to enable, false to disable
+ @short Enables or disables the KAccel.
+ */
+ public native void setEnabled(boolean bEnabled);
+ /**
+ Enable auto-update of connections. This means that the signals
+ are automatically disconnected when you disable an action, and
+ re-enabled when you enable it. By default auto update is turned
+ on. If you disable auto-update, you need to call
+ updateConnections() after changing actions.
+ @param bAuto true to enable, false to disable
+ @return the value of the flag before this call
+
+ @short Enable auto-update of connections.
+ */
+ public native boolean setAutoUpdate(boolean bAuto);
+ /**
+ Create an accelerator action.
+ Usage:
+ <pre>
+ insert( "Do Something", i18n("Do Something"),
+ i18n("This action allows you to do something really great with this program to "
+ "the currently open document."),
+ ALT+Key_D, this, SLOT("slotDoSomething()") );
+ </pre>
+ @param sAction The internal name of the action.
+ @param sLabel An i18n'ized short description of the action displayed when
+ using KKeyChooser to reconfigure the shortcuts.
+ @param sWhatsThis An extended description of the action.
+ @param cutDef The default shortcut.
+ @param pObjSlot Pointer to the slot object.
+ @param psMethodSlot Pointer to the slot method.
+ @param bConfigurable Allow the user to change this shortcut if set to 'true'.
+ @param bEnabled The action will be activated by the shortcut if set to 'true'.
+ @short Create an accelerator action.
+ */
+ public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef, QObject pObjSlot, String psMethodSlot, boolean bConfigurable, boolean bEnabled);
+ public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef, QObject pObjSlot, String psMethodSlot, boolean bConfigurable);
+ public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef, QObject pObjSlot, String psMethodSlot);
+ /**
+ Same as first insert(), but with separate shortcuts defined for
+ 3- and 4- modifier defaults.
+ @short Same as first insert(), but with separate shortcuts defined for 3- and 4- modifier defaults.
+ */
+ public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, QObject pObjSlot, String psMethodSlot, boolean bConfigurable, boolean bEnabled);
+ public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, QObject pObjSlot, String psMethodSlot, boolean bConfigurable);
+ public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, QObject pObjSlot, String psMethodSlot);
+ /**
+ This is an overloaded function provided for convenience.
+ The advantage of this is when you want to use the same text for the name
+ of the action as for the user-visible label.
+ Usage:
+ <pre>
+ insert( i18n("Do Something"), ALT+Key_D, this, SLOT("slotDoSomething()") );
+ </pre>
+ @param psAction The name AND label of the action.
+ @param cutDef The default shortcut for this action.
+ @param pObjSlot Pointer to the slot object.
+ @param psMethodSlot Pointer to the slot method.
+ @param bConfigurable Allow the user to change this shortcut if set to 'true'.
+ @param bEnabled The action will be activated by the shortcut if set to 'true'.
+ @short This is an overloaded function provided for convenience.
+ */
+ public native KAccelAction insert(String psAction, KShortcut cutDef, QObject pObjSlot, String psMethodSlot, boolean bConfigurable, boolean bEnabled);
+ public native KAccelAction insert(String psAction, KShortcut cutDef, QObject pObjSlot, String psMethodSlot, boolean bConfigurable);
+ public native KAccelAction insert(String psAction, KShortcut cutDef, QObject pObjSlot, String psMethodSlot);
+ /**
+ Similar to the first insert() method, but with the action
+ name, short description, help text, and default shortcuts all
+ set according to one of the standard accelerators.
+ @short Similar to the first insert() method, but with the action name, short description, help text, and default shortcuts all set according to one of the standard accelerators.
+ @see KStdAccel#
+ */
+ public native KAccelAction insert(int id, QObject pObjSlot, String psMethodSlot, boolean bConfigurable, boolean bEnabled);
+ public native KAccelAction insert(int id, QObject pObjSlot, String psMethodSlot, boolean bConfigurable);
+ public native KAccelAction insert(int id, QObject pObjSlot, String psMethodSlot);
+ /**
+ Removes the accelerator action identified by the name.
+ Remember to also call updateConnections().
+ @param sAction the name of the action to remove
+ @return true if successful, false otherwise
+
+ @short Removes the accelerator action identified by the name.
+ */
+ public native boolean remove(String sAction);
+ /**
+ Updates the connections of the accelerations after changing them.
+ This is only necessary if you have disabled auto updates which are
+ on by default.
+ @return true if successful, false otherwise
+
+ @short Updates the connections of the accelerations after changing them.
+ @see #setAutoUpdate
+ @see #getAutoUpdate
+ */
+ public native boolean updateConnections();
+ /**
+ Return the shortcut associated with the action named by <code>sAction.</code>
+ @param sAction the name of the action
+ @return the action's shortcut, or a null shortcut if not found
+
+ @short Return the shortcut associated with the action named by <code>sAction.</code>
+ */
+ public native KShortcut shortcut(String sAction);
+ /**
+ Set the shortcut to be associated with the action named by <code>sAction.</code>
+ @param sAction the name of the action
+ @param shortcut the shortcut to set
+ @return true if successful, false otherwise
+
+ @short Set the shortcut to be associated with the action named by <code>sAction.</code>
+ */
+ public native boolean setShortcut(String sAction, KShortcut shortcut);
+ /**
+ Set the slot to be called when the shortcut of the action named
+ by <code>sAction</code> is pressed.
+ @param sAction the name of the action
+ @param pObjSlot the owner of the slot
+ @param psMethodSlot the name of the slot
+ @return true if successful, false otherwise
+
+ @short Set the slot to be called when the shortcut of the action named by <code>sAction</code> is pressed.
+ */
+ public native boolean setSlot(String sAction, QObject pObjSlot, String psMethodSlot);
+ /**
+ Enable or disable the action named by <code>sAction.</code>
+ @param sAction the action to en-/disable
+ @param bEnabled true to enable, false to disable
+ @return true if successful, false otherwise
+
+ @short Enable or disable the action named by <code>sAction.</code>
+ */
+ public native boolean setEnabled(String sAction, boolean bEnabled);
+ /**
+ Returns the configuration group of the settings.
+ @return the configuration group
+
+ @short Returns the configuration group of the settings.
+ @see KConfig
+ */
+ public native String configGroup();
+ /**
+ Returns the configuration group of the settings.
+ @param name the new configuration group
+ @short Returns the configuration group of the settings.
+ @see KConfig
+ */
+ public native void setConfigGroup(String name);
+ /**
+ Read all shortcuts from <code>pConfig</code>, or (if <code>pConfig</code>
+ is zero) from the application's configuration file
+ KGlobal.config().
+ The group in which the configuration is stored can be
+ set with setConfigGroup().
+ @param pConfig the configuration file, or 0 for the application
+ configuration file
+ @return true if successful, false otherwise
+
+ @short Read all shortcuts from <code>pConfig</code>, or (if <code>pConfig</code> is zero) from the application's configuration file KGlobal.config().
+ */
+ public native boolean readSettings(KConfigBase pConfig);
+ public native boolean readSettings();
+ /**
+ Write the current shortcuts to <code>pConfig</code>,
+ or (if <code>pConfig</code> is zero) to the application's
+ configuration file.
+ @param pConfig the configuration file, or 0 for the application
+ configuration file
+ @return true if successful, false otherwise
+
+ @short Write the current shortcuts to <code>pConfig</code>, or (if <code>pConfig</code> is zero) to the application's configuration file.
+ */
+ public native boolean writeSettings(KConfigBase pConfig);
+ public native boolean writeSettings();
+ /**
+ Emits the keycodeChanged() signal.
+ @short Emits the keycodeChanged() signal.
+ */
+ public native void emitKeycodeChanged();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAccelAction.java b/kdejava/koala/org/kde/koala/KAccelAction.java
new file mode 100644
index 00000000..ab4b54e9
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAccelAction.java
@@ -0,0 +1,30 @@
+/***************************************************************************
+ KAccelAction.java - description
+ -------------------
+ begin : Wed Jan 30 16:02:13 2002
+ copyright : (C) 2000-2001 Lost Highway Ltd.
+ email : Richard_Dale@tipitina.demon.co.uk
+ generated by : duke@tipitina on Wed Jan 30 16:02:13 2002, using kalyptus 0.9.
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU Library General Public License as published by*
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+***************************************************************************/
+
+package org.kde.koala;
+
+import org.kde.qt.*;
+import java.util.*;
+import java.lang.Error;
+
+public class KAccelAction implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+
+ protected KAccelAction(Class dummy){}
+}
diff --git a/kdejava/koala/org/kde/koala/KAccelActions.java b/kdejava/koala/org/kde/koala/KAccelActions.java
new file mode 100644
index 00000000..8c2f4022
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAccelActions.java
@@ -0,0 +1,30 @@
+/***************************************************************************
+ KAccelActions.java - description
+ -------------------
+ begin : Wed Jan 30 16:02:13 2002
+ copyright : (C) 2000-2001 Lost Highway Ltd.
+ email : Richard_Dale@tipitina.demon.co.uk
+ generated by : duke@tipitina on Wed Jan 30 16:02:13 2002, using kalyptus 0.9.
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU Library General Public License as published by*
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+***************************************************************************/
+
+package org.kde.koala;
+
+import org.kde.qt.*;
+import java.util.*;
+import java.lang.Error;
+
+public class KAccelActions implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+
+ protected KAccelActions(Class dummy){}
+}
diff --git a/kdejava/koala/org/kde/koala/KAccelShortcutList.java b/kdejava/koala/org/kde/koala/KAccelShortcutList.java
new file mode 100644
index 00000000..7d9f0e29
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAccelShortcutList.java
@@ -0,0 +1,73 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QVariant;
+
+/**
+
+ KShortcutList implementation to access KAccel and
+ KGlobalAccel lists.
+ @short KShortcutList implementation to access KAccel and KGlobalAccel lists.
+
+*/
+public class KAccelShortcutList extends KShortcutList {
+ protected KAccelShortcutList(Class dummy){super((Class) null);}
+ /**
+ Creates a new KShortcutList that accesses the given KAccel.
+ @param accel the accelerators to access
+ @short Creates a new KShortcutList that accesses the given KAccel.
+ */
+ public KAccelShortcutList(KAccel accel) {
+ super((Class) null);
+ newKAccelShortcutList(accel);
+ }
+ private native void newKAccelShortcutList(KAccel accel);
+ /**
+ Creates a new KShortcutList that accesses the given
+ KGlobalAccel.
+ @param accel the accelerators to access
+ @short Creates a new KShortcutList that accesses the given KGlobalAccel.
+ */
+ public KAccelShortcutList(KGlobalAccel accel) {
+ super((Class) null);
+ newKAccelShortcutList(accel);
+ }
+ private native void newKAccelShortcutList(KGlobalAccel accel);
+ /**
+ Creates a new KShortcutList that accesses the given
+ KAccelActions collection.
+ @param actions the actions to access
+ @param bGlobal true to save the actions in the global
+ configuration file
+ @short
+ */
+ public KAccelShortcutList(KAccelActions actions, boolean bGlobal) {
+ super((Class) null);
+ newKAccelShortcutList(actions,bGlobal);
+ }
+ private native void newKAccelShortcutList(KAccelActions actions, boolean bGlobal);
+ public native int count();
+ public native String name(int index);
+ public native String label(int index);
+ public native String whatsThis(int index);
+ public native KShortcut shortcut(int index);
+ public native KShortcut shortcutDefault(int index);
+ public native boolean isConfigurable(int index);
+ public native boolean setShortcut(int index, KShortcut shortcut);
+ public native boolean isGlobal(int index);
+ /** \internal @short \internal
+ */
+ public native QVariant getOther(int arg1, int index);
+ /** \internal @short \internal
+ */
+ public native boolean setOther(int arg1, int index, QVariant arg3);
+ public native boolean save();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAccelSignals.java b/kdejava/koala/org/kde/koala/KAccelSignals.java
new file mode 100644
index 00000000..1518be84
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAccelSignals.java
@@ -0,0 +1,15 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QWidget;
+
+public interface KAccelSignals {
+ /**
+ Emitted when one of the key codes has changed.
+ @short Emitted when one of the key codes has changed.
+ */
+ void keycodeChanged();
+}
diff --git a/kdejava/koala/org/kde/koala/KAction.java b/kdejava/koala/org/kde/koala/KAction.java
new file mode 100644
index 00000000..e7027803
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAction.java
@@ -0,0 +1,455 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ The KAction class (and derived and super classes) provides a way to
+ easily encapsulate a "real" user-selected action or event in your
+ program.
+ For instance, a user may want to <code>paste</code> the contents of
+ the clipboard or <code>scroll</code> <code>down</code> a document or <code>quit</code> the
+ application. These are all <code>actions</code> -- events that the
+ user causes to happen. The KAction class allows the developer to
+ deal with these actions in an easy and intuitive manner.
+ Specifically, the KAction class encapsulated the various attributes
+ to an event/action. For instance, an action might have an icon
+ that goes along with it (a clipboard for a "paste" action or
+ scissors for a "cut" action). The action might have some text to
+ describe the action. It will certainly have a method or function
+ that actually <code>executes</code> the action! All these attributes
+ are contained within the KAction object.
+ The advantage of dealing with Actions is that you can manipulate
+ the Action without regard to the GUI representation of it. For
+ instance, in the "normal" way of dealing with actions like "cut",
+ you would manually insert a item for Cut into a menu and a button
+ into a toolbar. If you want to disable the cut action for a moment
+ (maybe nothing is selected), you would have to hunt down the pointer
+ to the menu item and the toolbar button and disable both
+ individually. Setting the menu item and toolbar item up uses very
+ similar code - but has to be done twice!
+ With the Action concept, you simply "plug" the Action into whatever
+ GUI element you want. The KAction class will then take care of
+ correctly defining the menu item (with icons, accelerators, text,
+ etc) or toolbar button.. or whatever. From then on, if you
+ manipulate the Action at all, the effect will propogate through all
+ GUI representations of it. Back to the "cut" example: if you want
+ to disable the Cut Action, you would simply do
+ 'cutAction.setEnabled(false)' and the menuitem and button would
+ instantly be disabled!
+ This is the biggest advantage to the Action concept -- there is a
+ one-to-one relationship between the "real" action and <code>all</code>
+ GUI representations of it.
+ KAction emits the activated() signal if the user activated the
+ corresponding GUI element ( menu item, toolbar button, etc. )
+ If you are in the situation of wanting to map the activated()
+ signal of multiple action objects to one slot, with a special
+ argument bound to each action, then you might consider using
+ QSignalMapper . A tiny example:
+ <pre>
+ QSignalMapper desktopNumberMapper = new QSignalMapper( this );
+ connect( desktopNumberMapper, SIGNAL("mapped( int )"),
+ this, SLOT("moveWindowToDesktop( int )") );
+ for ( uint i = 0; i < numberOfDesktops; ++i ) {
+ KAction desktopAction = new KAction( i18n( "Move Window to Desktop %i" ).arg( i ), ... );
+ connect( desktopAction, SIGNAL("activated()"), desktopNumberMapper, SLOT("map()") );
+ desktopNumberMapper.setMapping( desktopAction, i );
+ }
+ </pre>
+ <li><b>General Usage:</b></li>
+ The steps to using actions are roughly as follows
+
+ <li>
+ Decide which attributes you want to associate with a given
+ action (icons, text, keyboard shortcut, etc)
+ </li>
+
+ <li>
+ Create the action using KAction (or derived or super class).
+ </li>
+
+ <li>
+ "Plug" the Action into whatever GUI element you want. Typically,
+ this will be a menu or toolbar.
+ </li>
+ <li><b>Detailed Example:</b></li>
+ Here is an example of enabling a "New [document]" action
+ <pre>
+ KAction newAct = new KAction(i18n("&New"), "filenew",
+ KStdAccel.shortcut(KStdAccel.New),
+ this, SLOT("fileNew()"),
+ actionCollection(), "new");
+ </pre>
+ This line creates our action. It says that wherever this action is
+ displayed, it will use "&New" as the text, the standard icon, and
+ the standard shortcut. It further says that whenever this action
+ is invoked, it will use the fileNew() slot to execute it.
+ <pre>
+ QPopupMenu file = new QPopupMenu;
+ newAct.plug(file);
+ </pre>
+ That just inserted the action into the File menu. The point is, it's not
+ important in which menu it is: all manipulation of the item is
+ done through the newAct object.
+ <pre>
+ newAct.plug(toolBar());
+ </pre>
+ And this inserted the Action into the main toolbar as a button.
+ That's it!
+ If you want to disable that action sometime later, you can do so
+ with
+ <pre>
+ newAct.setEnabled(false)
+ </pre>
+ and both the menuitem in File and the toolbar button will instantly
+ be disabled.
+ Do not delete a KAction object without unplugging it from all its
+ containers. The simplest way to do that is to use the unplugAll()
+ as in the following example:
+ <pre>
+ newAct.unplugAll();
+ delete newAct;
+ </pre>
+ Normally you will not need to do this as KActionCollection manages
+ everything for you.
+ Note: if you are using a "standard" action like "new", "paste",
+ "quit", or any other action described in the KDE UI Standards,
+ please use the methods in the KStdAction class rather than
+ defining your own.
+ <li><b>Usage Within the XML Framework:</b></li>
+ If you are using KAction within the context of the XML menu and
+ toolbar building framework, then there are a few tiny changes. The
+ first is that you must insert your new action into an action
+ collection. The action collection (a KActionCollection) is,
+ logically enough, a central collection of all of the actions
+ defined in your application. The XML UI framework code in KXMLGUI
+ classes needs access to this collection in order to build up the
+ GUI (it's how the builder code knows which actions are valid and
+ which aren't).
+ Also, if you use the XML builder framework, then you do not ever
+ have to plug your actions into containers manually. The framework
+ does that for you.
+ See {@link KActionSignals} for signals emitted by KAction
+ @short Class to encapsulate user-driven action or event.
+ @see KStdAction
+
+*/
+public class KAction extends QObject {
+ protected KAction(Class dummy){super((Class) null);}
+ /**
+ @short
+ */
+ public static final int UnknownActivation = 0;
+ public static final int EmulatedActivation = 1;
+ public static final int AccelActivation = 2;
+ public static final int PopupMenuActivation = 3;
+ public static final int ToolBarActivation = 4;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs an action with text, potential keyboard
+ shortcut, and a SLOT to call when this action is invoked by
+ the user.
+ If you do not want or have a keyboard shortcut,
+ set the <code>cut</code> param to 0.
+ This is the most common KAction used when you do not have a
+ corresponding icon (note that it won't appear in the current version
+ of the "Edit ToolBar" dialog, because an action needs an icon to be
+ plugged in a toolbar...).
+ @param text The text that will be displayed.
+ @param cut The corresponding keyboard shortcut.
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short Constructs an action with text, potential keyboard shortcut, and a SLOT to call when this action is invoked by the user.
+ */
+ public KAction(String text, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name) {
+ super((Class) null);
+ newKAction(text,cut,receiver,slot,parent,name);
+ }
+ private native void newKAction(String text, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name);
+ /**
+ Constructs an action with text, icon, potential keyboard
+ shortcut, and a SLOT to call when this action is invoked by
+ the user.
+ If you do not want or have a keyboard shortcut, set the
+ <code>cut</code> param to 0.
+ This is the other common KAction used. Use it when you
+ <code>do</code> have a corresponding icon.
+ @param text The text that will be displayed.
+ @param pix The icon to display.
+ @param cut The corresponding keyboard shortcut.
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short Constructs an action with text, icon, potential keyboard shortcut, and a SLOT to call when this action is invoked by the user.
+ */
+ public KAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name) {
+ super((Class) null);
+ newKAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name);
+ /**
+ Constructs an action with text, icon, potential keyboard
+ shortcut, and a SLOT to call when this action is invoked by
+ the user. The icon is loaded on demand later based on where it
+ is plugged in.
+ If you do not want or have a keyboard shortcut, set the
+ <code>cut</code> param to 0.
+ This is the other common KAction used. Use it when you
+ <code>do</code> have a corresponding icon.
+ @param text The text that will be displayed.
+ @param pix The icon to display.
+ @param cut The corresponding keyboard shortcut (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short Constructs an action with text, icon, potential keyboard shortcut, and a SLOT to call when this action is invoked by the user.
+ */
+ public KAction(String text, String pix, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name) {
+ super((Class) null);
+ newKAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKAction(String text, String pix, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name);
+ /**
+ The same as the above constructor, but with a KGuiItem providing
+ the text and icon.
+ @param item The KGuiItem with the label and (optional) icon.
+ @param cut The corresponding keyboard shortcut (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short The same as the above constructor, but with a KGuiItem providing the text and icon.
+ */
+ public KAction(KGuiItem item, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name) {
+ super((Class) null);
+ newKAction(item,cut,receiver,slot,parent,name);
+ }
+ private native void newKAction(KGuiItem item, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name);
+ /**
+ "Plug" or insert this action into a given widget.
+ This will
+ typically be a menu or a toolbar. From this point on, you will
+ never need to directly manipulate the item in the menu or
+ toolbar. You do all enabling/disabling/manipulation directly
+ with your KAction object.
+ @param widget The GUI element to display this action
+ @param index The position into which the action is plugged. If
+ this is negative, the action is inserted at the end.
+ @short "Plug" or insert this action into a given widget.
+ */
+ public native int plug(QWidget widget, int index);
+ public native int plug(QWidget widget);
+ /**
+ "Unplug" or remove this action from a given widget.
+ This will typically be a menu or a toolbar. This is rarely
+ used in "normal" application. Typically, it would be used if
+ your application has several views or modes, each with a
+ completely different menu structure. If you simply want to
+ disable an action for a given period, use setEnabled()
+ instead.
+ @param w Remove the action from this GUI element.
+ @short "Unplug" or remove this action from a given widget.
+ */
+ public native void unplug(QWidget w);
+ /**
+ returns whether the action is plugged into any container widget or not.
+ @short returns whether the action is plugged into any container widget or not.
+ */
+ public native boolean isPlugged();
+ /**
+ returns whether the action is plugged into the given container
+ @short returns whether the action is plugged into the given container
+ */
+ public native boolean isPlugged(QWidget container);
+ /**
+ returns whether the action is plugged into the given container with the given, container specific, id (often
+ menu or toolbar id ) .
+ @short returns whether the action is plugged into the given container with the given, container specific, id (often menu or toolbar id ) .
+ */
+ public native boolean isPlugged(QWidget container, int id);
+ /**
+ returns whether the action is plugged into the given container with the given, container specific, representative
+ container widget item.
+ @short returns whether the action is plugged into the given container with the given, container specific, representative container widget item.
+ */
+ public native boolean isPlugged(QWidget container, QWidget _representative);
+ public native QWidget container(int index);
+ public native int itemId(int index);
+ public native QWidget representative(int index);
+ public native int containerCount();
+ public native int kaccelCount();
+ public native boolean hasIcon();
+ public native boolean hasIconSet();
+ public native String plainText();
+ /**
+ Get the text associated with this action.
+ @short Get the text associated with this action.
+ */
+ public native String text();
+ /**
+ Get the keyboard shortcut associated with this action.
+ @short Get the keyboard shortcut associated with this action.
+ */
+ public native KShortcut shortcut();
+ /**
+ Get the default shortcut for this action.
+ @short Get the default shortcut for this action.
+ */
+ public native KShortcut shortcutDefault();
+ public native String shortcutText();
+ public native void setShortcutText(String arg1);
+ /**
+ Returns true if this action is enabled.
+ @short Returns true if this action is enabled.
+ */
+ public native boolean isEnabled();
+ /**
+ Returns true if this action's shortcut is configurable.
+ @short Returns true if this action's shortcut is configurable.
+ */
+ public native boolean isShortcutConfigurable();
+ public native String group();
+ /**
+ Get the What's this text for the action.
+ @short Get the What's this text for the action.
+ */
+ public native String whatsThis();
+ /**
+ Get the tooltip text for the action.
+ @short Get the tooltip text for the action.
+ */
+ public native String toolTip();
+ /**
+ Get the QIconSet from which the icons used to display this action will
+ be chosen.
+ In KDE4 set group default to KIcon.Small while removing the other
+ iconSet() function.
+ @short Get the QIconSet from which the icons used to display this action will be chosen.
+ */
+ public native QIconSet iconSet(int group, int size);
+ public native QIconSet iconSet(int group);
+ /**
+ Remove in KDE4
+ @short Remove in KDE4
+ */
+ public native QIconSet iconSet();
+ public native String icon();
+ public native KActionCollection parentCollection();
+ public native void unplugAll();
+ public native String statusText();
+ /**
+ Sets the text associated with this action. The text is used for menu
+ and toolbar labels etc.
+ @short Sets the text associated with this action.
+ */
+ public native void setText(String text);
+ /**
+ Sets the keyboard shortcut associated with this action.
+ @short Sets the keyboard shortcut associated with this action.
+ */
+ public native boolean setShortcut(KShortcut arg1);
+ public native void setGroup(String arg1);
+ /**
+ Sets the What's this text for the action. This text will be displayed when
+ a widget that has been created by plugging this action into a container
+ is clicked on in What's this mode.
+ The What's this text can include QML markup as well as raw text.
+ @short Sets the What's this text for the action.
+ */
+ public native void setWhatsThis(String text);
+ /**
+ Sets the tooltip text for the action.
+ This will be used as a tooltip for a toolbar button, as a
+ statusbar help-text for a menu item, and it also appears
+ in the toolbar editor, to describe the action.
+ For the tooltip to show up on the statusbar you will need to connect
+ a couple of the actionclass signals to the toolbar.
+ The easiest way of doing this is in your main window class, when you create
+ a statusbar. See the KActionCollection class for more details.
+ @short Sets the tooltip text for the action.
+ @see KActionCollection
+ */
+ public native void setToolTip(String arg1);
+ /**
+ Sets the QIconSet from which the icons used to display this action will
+ be chosen.
+ @short Sets the QIconSet from which the icons used to display this action will be chosen.
+ */
+ public native void setIconSet(QIconSet iconSet);
+ public native void setIcon(String icon);
+ /**
+ Enables or disables this action. All uses of this action (eg. in menus
+ or toolbars) will be updated to reflect the state of the action.
+ @short Enables or disables this action.
+ */
+ public native void setEnabled(boolean enable);
+ /**
+ Calls setEnabled( !disable ).
+ @short Calls setEnabled( !disable ).
+ */
+ public native void setDisabled(boolean disable);
+ /**
+ Indicate whether the user may configure the action's shortcut.
+ @short Indicate whether the user may configure the action's shortcut.
+ */
+ public native void setShortcutConfigurable(boolean arg1);
+ /**
+ Emulate user's interaction programmatically, by activating the action.
+ The implementation simply emits activated().
+ @short Emulate user's interaction programmatically, by activating the action.
+ */
+ public native void activate();
+ /**
+ Generate a toolbar button id. Made public for reimplementations.
+ @short
+ */
+ public static native int getToolButtonID();
+ protected native KToolBar toolBar(int index);
+ protected native QPopupMenu popupMenu(int index);
+ protected native void removeContainer(int index);
+ protected native int findContainer(QWidget widget);
+ protected native int findContainer(int id);
+ protected native void plugMainWindowAccel(QWidget w);
+ protected native void addContainer(QWidget parent, int id);
+ protected native void addContainer(QWidget parent, QWidget representative);
+ protected native void updateShortcut(int i);
+ protected native void updateShortcut(QPopupMenu menu, int id);
+ protected native void updateGroup(int id);
+ protected native void updateText(int i);
+ protected native void updateEnabled(int i);
+ protected native void updateIconSet(int i);
+ protected native void updateIcon(int i);
+ protected native void updateToolTip(int id);
+ protected native void updateWhatsThis(int i);
+ protected native String whatsThisWithIcon();
+ /**
+ Return the underlying KGuiItem
+ @short Return the underlying KGuiItem
+ */
+ protected native KGuiItem guiItem();
+ protected native void slotDestroyed();
+ protected native void slotKeycodeChanged();
+ protected native void slotActivated();
+ protected native void slotPopupActivated();
+ protected native void slotButtonClicked(int arg1, int state);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KActionCollection.java b/kdejava/koala/org/kde/koala/KActionCollection.java
new file mode 100644
index 00000000..20898710
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KActionCollection.java
@@ -0,0 +1,279 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ A managed set of KAction objects.
+ If you set the tooltips on KActions and want the tooltip to show in statusbar
+ (recommended) then you will need to connect a couple of the actionclass signals
+ to the toolbar.
+ The easiest way of doing this is in your KMainWindow subclass, where you create
+ a statusbar, do:
+ <pre>
+ actionCollection().setHighlightingEnabled(true);
+ connect(actionCollection(), SIGNAL("actionStatusText( String )"),
+ statusBar(), SLOT("message( String )") );
+ connect(actionCollection(), SIGNAL("clearStatusText()"),
+ statusBar(), SLOT("clear()") );
+ </pre>
+ See {@link KActionCollectionSignals} for signals emitted by KActionCollection
+ @short A managed set of KAction objects.
+
+*/
+public class KActionCollection extends QObject {
+ protected KActionCollection(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KActionCollection(QWidget parent, String name, KInstanceInterface instance) {
+ super((Class) null);
+ newKActionCollection(parent,name,instance);
+ }
+ private native void newKActionCollection(QWidget parent, String name, KInstanceInterface instance);
+ public KActionCollection(QWidget parent, String name) {
+ super((Class) null);
+ newKActionCollection(parent,name);
+ }
+ private native void newKActionCollection(QWidget parent, String name);
+ public KActionCollection(QWidget parent) {
+ super((Class) null);
+ newKActionCollection(parent);
+ }
+ private native void newKActionCollection(QWidget parent);
+ /**
+ Use this constructor if you want the collection's actions to restrict
+ their accelerator keys to <code>watch</code> rather than the <code>parent.</code> If
+ you don't require shortcuts, you can pass a null to the <code>watch</code> parameter.
+ @short Use this constructor if you want the collection's actions to restrict their accelerator keys to <code>watch</code> rather than the <code>parent.</code>
+ */
+ public KActionCollection(QWidget watch, QObject parent, String name, KInstanceInterface instance) {
+ super((Class) null);
+ newKActionCollection(watch,parent,name,instance);
+ }
+ private native void newKActionCollection(QWidget watch, QObject parent, String name, KInstanceInterface instance);
+ public KActionCollection(QWidget watch, QObject parent, String name) {
+ super((Class) null);
+ newKActionCollection(watch,parent,name);
+ }
+ private native void newKActionCollection(QWidget watch, QObject parent, String name);
+ public KActionCollection(QWidget watch, QObject parent) {
+ super((Class) null);
+ newKActionCollection(watch,parent);
+ }
+ private native void newKActionCollection(QWidget watch, QObject parent);
+ public KActionCollection(KActionCollection copy) {
+ super((Class) null);
+ newKActionCollection(copy);
+ }
+ private native void newKActionCollection(KActionCollection copy);
+ /**
+ This sets the widget to which the keyboard shortcuts should be attached.
+ You only need to call this if a null pointer was passed in the constructor.
+ @short This sets the widget to which the keyboard shortcuts should be attached.
+ */
+ public native void setWidget(QWidget widget);
+ /**
+ This indicates whether new actions which are created in this collection
+ should have their keyboard shortcuts automatically connected on
+ construction. Set to 'false' if you will be loading XML-based settings.
+ This is automatically done by KParts. The default is 'true'.
+ @short This indicates whether new actions which are created in this collection should have their keyboard shortcuts automatically connected on construction.
+ @see #isAutoConnectShortcuts
+ */
+ public native void setAutoConnectShortcuts(boolean arg1);
+ /**
+ This indicates whether new actions which are created in this collection
+ have their keyboard shortcuts automatically connected on
+ construction.
+ @short This indicates whether new actions which are created in this collection have their keyboard shortcuts automatically connected on construction.
+ @see #setAutoConnectShortcuts
+ */
+ public native boolean isAutoConnectShortcuts();
+ /**
+ Doc/View model. This lets you add the action collection of a document
+ to a view's action collection.
+ @short Doc/View model.
+ */
+ public native boolean addDocCollection(KActionCollection pDoc);
+ /** Returns the KAccel object of the most recently set widget. @short Returns the KAccel object of the most recently set widget.
+ */
+ public native KAccel kaccel();
+ /** @internal, for KAction.kaccelCurrent() @short @internal, for KAction.kaccelCurrent()
+ */
+ public native KAccel builderKAccel();
+ /** Returns the number of actions in the collection @short Returns the number of actions in the collection
+ */
+ public native int count();
+ public native boolean isEmpty();
+ /**
+ Return the KAction at position "index" in the action collection.
+ @short Return the KAction at position "index" in the action collection.
+ @see #count
+ */
+ public native KAction action(int index);
+ /**
+ Find an action (optionally, of a given subclass of KAction) in the action collection.
+ @param name Name of the KAction.
+ @param classname Name of the KAction subclass.
+ @return A pointer to the first KAction in the collection which matches the parameters or
+ null if nothing matches.
+
+ @short Find an action (optionally, of a given subclass of KAction) in the action collection.
+ */
+ public native KAction action(String name, String classname);
+ public native KAction action(String name);
+ /** Returns a list of all the groups of all the KActions in this action collection.
+ @short Returns a list of all the groups of all the KActions in this action collection.
+ @see KAction#group
+ @see KAction#setGroup
+ */
+ public native ArrayList groups();
+ /**
+ Returns the list of actions in a particular group managed by this action collection.
+ @param group The name of the group.
+ @short Returns the list of actions in a particular group managed by this action collection.
+ */
+ // KActionPtrList actions(const QString& arg1); >>>> NOT CONVERTED
+ /** Returns the list of actions managed by this action collection. @short Returns the list of actions managed by this action collection.
+ */
+ // KActionPtrList actions(); >>>> NOT CONVERTED
+ /**
+ Used for reading shortcut configuration from a non-XML rc file.
+ @short Used for reading shortcut configuration from a non-XML rc file.
+ */
+ public native boolean readShortcutSettings(String sConfigGroup, KConfigBase pConfig);
+ public native boolean readShortcutSettings(String sConfigGroup);
+ public native boolean readShortcutSettings();
+ /**
+ Used for writing shortcut configuration to a non-XML rc file.
+ @short Used for writing shortcut configuration to a non-XML rc file.
+ */
+ public native boolean writeShortcutSettings(String sConfigGroup, KConfigBase pConfig);
+ public native boolean writeShortcutSettings(String sConfigGroup);
+ public native boolean writeShortcutSettings();
+ public native void setInstance(KInstanceInterface instance);
+ /** The instance with which this class is associated. @short The instance with which this class is associated.
+ */
+ public native KInstanceInterface instance();
+ /**
+ Enable highlighting notification for specific KActions.
+ This is false by default, so, by default, the highlighting
+ signals will not be emitted.
+ @short Enable highlighting notification for specific KActions.
+ @see #connectHighlight
+ @see #disconnectHighlight
+ @see #actionHighlighted
+ @see #actionHighlighted
+ @see #highlightingEnabled
+ */
+ public native void setHighlightingEnabled(boolean enable);
+ /**
+ Return whether highlighting notifications are enabled.
+ @short Return whether highlighting notifications are enabled.
+ @see #connectHighlight
+ @see #disconnectHighlight
+ @see #actionHighlighted
+ @see #setHighlightingEnabled
+ @see #actionHighlighted
+ */
+ public native boolean highlightingEnabled();
+ /**
+ Call this function if you want to receive a signal whenever a KAction is highlighted in a menu or a toolbar.
+ This is only needed if you do not add this action to this container.
+ You will generally not need to call this function.
+ @param container A container in which the KAction is plugged (must inherit QPopupMenu or KToolBar)
+ @param action The action you are interested in
+ @short Call this function if you want to receive a signal whenever a KAction is highlighted in a menu or a toolbar.
+ @see #disconnectHighlight
+ @see #actionHighlighted
+ @see #setHighlightingEnabled
+ @see #highlightingEnabled
+ @see #actionHighlighted
+ */
+ public native void connectHighlight(QWidget container, KAction action);
+ /**
+ Disconnect highlight notifications for a particular pair of contianer and action.
+ This is only needed if you do not add this action to this container.
+ You will generally not need to call this function.
+ @param container A container in which the KAction is plugged (must inherit QPopupMenu or KToolBar)
+ @param action The action you are interested in
+ @short Disconnect highlight notifications for a particular pair of contianer and action.
+ @see #connectHighlight
+ @see #actionHighlighted
+ @see #setHighlightingEnabled
+ @see #highlightingEnabled
+ @see #actionHighlighted
+ */
+ public native void disconnectHighlight(QWidget container, KAction action);
+ /**
+ The parent KXMLGUIClient, return null if not available.
+ @short The parent KXMLGUIClient, return 0L if not available.
+ */
+ public native KXMLGUIClientInterface parentGUIClient();
+ public KActionCollection(QObject parent, String name, KInstanceInterface instance) {
+ super((Class) null);
+ newKActionCollection(parent,name,instance);
+ }
+ private native void newKActionCollection(QObject parent, String name, KInstanceInterface instance);
+ public KActionCollection(QObject parent, String name) {
+ super((Class) null);
+ newKActionCollection(parent,name);
+ }
+ private native void newKActionCollection(QObject parent, String name);
+ public KActionCollection(QObject parent) {
+ super((Class) null);
+ newKActionCollection(parent);
+ }
+ private native void newKActionCollection(QObject parent);
+ /**
+ Add an action to the collection.
+ Generally you don't have to call this. The action inserts itself automatically
+ into its parent collection. This can be useful however for a short-lived
+ collection (e.g. for a popupmenu, where the signals from the collection are needed too).
+ (don't forget that in the simple case, a list of actions should be a simple KActionPtrList).
+ If you manually insert actions into a 2nd collection, don't forget to take them out
+ again before destroying the collection.
+ @param action The KAction to add.
+ @short Add an action to the collection.
+ */
+ public native void insert(KAction action);
+ /**
+ Removes an action from the collection and deletes it.
+ Since the KAction destructor removes the action from the collection, you generally
+ don't have to call this.
+ @param action The KAction to remove.
+ @short Removes an action from the collection and deletes it.
+ */
+ public native void remove(KAction action);
+ /**
+ Removes an action from the collection.
+ Since the KAction destructor removes the action from the collection, you generally
+ don't have to call this.
+ @param action the KAction to remove.
+ @return NULL if not found else returns action.
+
+ @short Removes an action from the collection.
+ */
+ public native KAction take(KAction action);
+ public native KActionCollection op_plus(KActionCollection arg1);
+ public native KActionCollection op_plus_assign(KActionCollection arg1);
+ /**
+ Clears the entire actionCollection, deleting all actions.
+ @short Clears the entire actionCollection, deleting all actions.
+ @see #remove
+ */
+ public native void clear();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KActionCollectionSignals.java b/kdejava/koala/org/kde/koala/KActionCollectionSignals.java
new file mode 100644
index 00000000..ecea57eb
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KActionCollectionSignals.java
@@ -0,0 +1,48 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+
+public interface KActionCollectionSignals {
+ void inserted(KAction arg1);
+ void removed(KAction arg1);
+ /** Emitted when <code>action</code> is highlighted.
+ This is only emitted if you have setHighlightingEnabled()
+ @short Emitted when <code>action</code> is highlighted.
+ @see #connectHighlight
+ @see #disconnectHighlight
+ @see #actionHighlighted
+ @see #setHighlightingEnabled
+ @see #highlightingEnabled
+ */
+ void actionHighlighted(KAction action);
+ /** Emitted when <code>action</code> is highlighed or loses highlighting.
+ This is only emitted if you have setHighlightingEnabled()
+ @short Emitted when <code>action</code> is highlighed or loses highlighting.
+ @see #connectHighlight
+ @see #disconnectHighlight
+ @see #actionHighlighted
+ @see #setHighlightingEnabled
+ @see #highlightingEnabled
+ */
+ void actionHighlighted(KAction action, boolean highlight);
+ /** Emitted when an action is highlighted, with text
+ being the tooltip for the action.
+ This is only emitted if you have setHighlightingEnabled()
+ This is useful to connect to KStatusBar.message(). See
+ this class overview for more information.
+ @short Emitted when an action is highlighted, with text being the tooltip for the action.
+ @see #setHighlightingEnabled
+ */
+ void actionStatusText(String text);
+ /** Emitted when an action loses highlighting.
+ This is only emitted if you have setHighlightingEnabled()
+ @short Emitted when an action loses highlighting.
+ @see #setHighlightingEnabled
+ */
+ void clearStatusText();
+}
diff --git a/kdejava/koala/org/kde/koala/KActionMenu.java b/kdejava/koala/org/kde/koala/KActionMenu.java
new file mode 100644
index 00000000..a6a35fef
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KActionMenu.java
@@ -0,0 +1,136 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPoint;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+
+/**
+
+ A KActionMenu is an action that holds a sub-menu of other actions.
+ insert() and remove() allow to insert and remove actions into this action-menu.
+ Plugged in a popupmenu, it will create a submenu.
+ Plugged in a toolbar, it will create a button with a popup menu.
+ This is the action used by the XMLGUI since it holds other actions.
+ If you want a submenu for selecting one tool among many (without icons), see KSelectAction.
+ See also setDelayed about the main action.
+ @short A KActionMenu is an action that holds a sub-menu of other actions.
+
+*/
+public class KActionMenu extends KAction {
+ protected KActionMenu(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KActionMenu(String text, QObject parent, String name) {
+ super((Class) null);
+ newKActionMenu(text,parent,name);
+ }
+ private native void newKActionMenu(String text, QObject parent, String name);
+ public KActionMenu(String text, QObject parent) {
+ super((Class) null);
+ newKActionMenu(text,parent);
+ }
+ private native void newKActionMenu(String text, QObject parent);
+ public KActionMenu(String text) {
+ super((Class) null);
+ newKActionMenu(text);
+ }
+ private native void newKActionMenu(String text);
+ public KActionMenu(String text, QIconSet icon, QObject parent, String name) {
+ super((Class) null);
+ newKActionMenu(text,icon,parent,name);
+ }
+ private native void newKActionMenu(String text, QIconSet icon, QObject parent, String name);
+ public KActionMenu(String text, QIconSet icon, QObject parent) {
+ super((Class) null);
+ newKActionMenu(text,icon,parent);
+ }
+ private native void newKActionMenu(String text, QIconSet icon, QObject parent);
+ public KActionMenu(String text, QIconSet icon) {
+ super((Class) null);
+ newKActionMenu(text,icon);
+ }
+ private native void newKActionMenu(String text, QIconSet icon);
+ public KActionMenu(String text, String icon, QObject parent, String name) {
+ super((Class) null);
+ newKActionMenu(text,icon,parent,name);
+ }
+ private native void newKActionMenu(String text, String icon, QObject parent, String name);
+ public KActionMenu(String text, String icon, QObject parent) {
+ super((Class) null);
+ newKActionMenu(text,icon,parent);
+ }
+ private native void newKActionMenu(String text, String icon, QObject parent);
+ public KActionMenu(String text, String icon) {
+ super((Class) null);
+ newKActionMenu(text,icon);
+ }
+ private native void newKActionMenu(String text, String icon);
+ public KActionMenu(QObject parent, String name) {
+ super((Class) null);
+ newKActionMenu(parent,name);
+ }
+ private native void newKActionMenu(QObject parent, String name);
+ public KActionMenu(QObject parent) {
+ super((Class) null);
+ newKActionMenu(parent);
+ }
+ private native void newKActionMenu(QObject parent);
+ public KActionMenu() {
+ super((Class) null);
+ newKActionMenu();
+ }
+ private native void newKActionMenu();
+ public native void insert(KAction arg1, int index);
+ public native void insert(KAction arg1);
+ public native void remove(KAction arg1);
+ public native KPopupMenu popupMenu();
+ public native void popup(QPoint global);
+ /**
+ Returns true if this action creates a delayed popup menu
+ when plugged in a KToolbar.
+ @short Returns true if this action creates a delayed popup menu when plugged in a KToolbar.
+ */
+ public native boolean delayed();
+ /**
+ If set to true, this action will create a delayed popup menu
+ when plugged in a KToolbar. Otherwise it creates a normal popup.
+ Default: delayed
+ Remember that if the "main" action (the toolbar button itself)
+ cannot be clicked, then you should call setDelayed(false).
+ On the opposite, if the main action can be clicked, it can only happen
+ in a toolbar: in a menu, the parent of a submenu can't be activated.
+ To get a "normal" menu item when plugged a menu (and no submenu)
+ use KToolBarPopupAction.
+ @short If set to true, this action will create a delayed popup menu when plugged in a KToolbar.
+ */
+ public native void setDelayed(boolean _delayed);
+ /**
+ Returns true if this action creates a sticky popup menu.
+ See setStickyMenu().
+ @short Returns true if this action creates a sticky popup menu.
+ */
+ public native boolean stickyMenu();
+ /**
+ If set to true, this action will create a sticky popup menu
+ when plugged in a KToolbar.
+ "Sticky", means it's visible until a selection is made or the mouse is
+ clicked elsewhere. This feature allows you to make a selection without
+ having to press and hold down the mouse while making a selection.
+ Default: sticky.
+ @short If set to true, this action will create a sticky popup menu when plugged in a KToolbar.
+ */
+ public native void setStickyMenu(boolean sticky);
+ public native int plug(QWidget widget, int index);
+ public native int plug(QWidget widget);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KActionSeparator.java b/kdejava/koala/org/kde/koala/KActionSeparator.java
new file mode 100644
index 00000000..7218e4d0
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KActionSeparator.java
@@ -0,0 +1,39 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QWidget;
+
+/**
+*/
+public class KActionSeparator extends KAction {
+ protected KActionSeparator(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KActionSeparator(QObject parent, String name) {
+ super((Class) null);
+ newKActionSeparator(parent,name);
+ }
+ private native void newKActionSeparator(QObject parent, String name);
+ public KActionSeparator(QObject parent) {
+ super((Class) null);
+ newKActionSeparator(parent);
+ }
+ private native void newKActionSeparator(QObject parent);
+ public KActionSeparator() {
+ super((Class) null);
+ newKActionSeparator();
+ }
+ private native void newKActionSeparator();
+ public native int plug(QWidget widget, int index);
+ public native int plug(QWidget widget);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KActionShortcutList.java b/kdejava/koala/org/kde/koala/KActionShortcutList.java
new file mode 100644
index 00000000..725ea931
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KActionShortcutList.java
@@ -0,0 +1,36 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QVariant;
+
+/**
+*/
+public class KActionShortcutList extends KShortcutList {
+ protected KActionShortcutList(Class dummy){super((Class) null);}
+ public KActionShortcutList(KActionCollection arg1) {
+ super((Class) null);
+ newKActionShortcutList(arg1);
+ }
+ private native void newKActionShortcutList(KActionCollection arg1);
+ public native int count();
+ public native String name(int i);
+ public native String label(int arg1);
+ public native String whatsThis(int arg1);
+ public native KShortcut shortcut(int arg1);
+ public native KShortcut shortcutDefault(int arg1);
+ public native boolean isConfigurable(int arg1);
+ public native boolean setShortcut(int arg1, KShortcut arg2);
+ public native KInstanceInterface instance();
+ public native QVariant getOther(int arg1, int index);
+ public native boolean setOther(int arg1, int index, QVariant arg3);
+ public native boolean save();
+ public native KAction action(int arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KActionSignals.java b/kdejava/koala/org/kde/koala/KActionSignals.java
new file mode 100644
index 00000000..45715d95
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KActionSignals.java
@@ -0,0 +1,31 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+
+public interface KActionSignals {
+ /**
+ Emitted when this action is activated
+ @short Emitted when this action is activated
+ */
+ void activated();
+ /**
+ This signal allows to know the reason why an action was activated:
+ whether it was due to a toolbar button, popupmenu, keyboard accel, or programmatically.
+ In the first two cases, it also allows to know which mouse button was
+ used (Left or Middle), and whether keyboard modifiers were pressed (e.g. CTRL).
+ Note that this signal is emitted before the normal activated() signal.
+ Yes, BOTH signals are always emitted, so that connecting to activated() still works.
+ Applications which care about reason and state can either ignore the activated()
+ signal for a given action and react to this one instead, or store the
+ reason and state until the activated() signal is emitted.
+ @short This signal allows to know the reason why an action was activated: whether it was due to a toolbar button, popupmenu, keyboard accel, or programmatically.
+ */
+ void activated(int reason, int state);
+ void enabled(boolean arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KActiveLabel.java b/kdejava/koala/org/kde/koala/KActiveLabel.java
new file mode 100644
index 00000000..b2c42e33
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KActiveLabel.java
@@ -0,0 +1,82 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QTextBrowser;
+
+/**
+
+ Label with support for selection and clickable links.
+ openLink() the actions that will be taken when the user
+ clicks on a link.
+ @author Waldo Bastian (bastian@kde.org)
+
+ @version $Id$
+
+ @short Label with support for selection and clickable links.
+
+*/
+public class KActiveLabel extends QTextBrowser {
+ protected KActiveLabel(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor.
+ It connects the "linkClicked(String)" signal to the
+ "openLink(String)" slot. You will need to disconnect
+ this if you want to process linkClicked() yourself.
+ @short Constructor.
+ */
+ public KActiveLabel(QWidget parent, String name) {
+ super((Class) null);
+ newKActiveLabel(parent,name);
+ }
+ private native void newKActiveLabel(QWidget parent, String name);
+ public KActiveLabel(QWidget parent) {
+ super((Class) null);
+ newKActiveLabel(parent);
+ }
+ private native void newKActiveLabel(QWidget parent);
+ /**
+ Constructor.
+ It connects the "linkClicked(String)" signal to the
+ "openLink(String)" slot. You will need to disconnect
+ this if you want to process linkClicked() yourself.
+ @short Constructor.
+ */
+ public KActiveLabel(String text, QWidget parent, String name) {
+ super((Class) null);
+ newKActiveLabel(text,parent,name);
+ }
+ private native void newKActiveLabel(String text, QWidget parent, String name);
+ public KActiveLabel(String text, QWidget parent) {
+ super((Class) null);
+ newKActiveLabel(text,parent);
+ }
+ private native void newKActiveLabel(String text, QWidget parent);
+ public native QSize minimumSizeHint();
+ public native QSize sizeHint();
+ /**
+ Opens <code>link</code> in the default browser.
+ If <code>link</code> starts with the text "whatsthis:" a QWhatsThis
+ box will appear and then display the rest of the text. The WhatsThis
+ functionality is available since KDE 3.2.
+ @short Opens <code>link</code> in the default browser.
+ */
+ public native void openLink(String link);
+ protected native void focusInEvent(QFocusEvent fe);
+ protected native void focusOutEvent(QFocusEvent fe);
+ protected native void keyPressEvent(QKeyEvent e);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAnimWidget.java b/kdejava/koala/org/kde/koala/KAnimWidget.java
new file mode 100644
index 00000000..fd966ba5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAnimWidget.java
@@ -0,0 +1,126 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QHideEvent;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPainter;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QFrame;
+
+/**
+
+ This is a widget used to display animation using multiple
+ individual pixmaps. This widget allows you to deal with variable
+ size icons (e.g., ones that will change based on a global setting)
+ as it loads the icons internally. All you need to do is pass along
+ a list of icon names and their size and everything else is taken
+ care of.
+ This widget also emits a 'clicked()' signal when it received a
+ mouse press event.
+ A quick example:
+ <pre>
+ KAnimWidget anim = new KAnimWidget("kde", 0, this);
+ anim.start();
+ </pre>
+ That example will search for the pixmaps "one.png", "two.png", and
+ "three.png" in the share/icons/small/ directories as well as the
+ app's pics directory.
+ See {@link KAnimWidgetSignals} for signals emitted by KAnimWidget
+ @author Kurt Granroth <granroth@kde.org>
+
+ @short Standard "About KDE" dialog box.
+
+*/
+public class KAnimWidget extends QFrame {
+ protected KAnimWidget(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ This is the most common constructor. Pass along the name of the
+ animated icons to use (e.g., "kde") for the animation and an
+ optional size to load and you're set. If you omit the size, the
+ default size will be used.
+ @param icons The icons name (e.g., "kde") to use for the animation
+ @param size The size to load
+ You don't have to set it if the parent is a
+ KToolBar; in this case it will use the toolbar's
+ size.
+ @param parent The standard parent
+ @param name The standard internal name
+ @short This is the most common constructor.
+ */
+ public KAnimWidget(String icons, int size, QWidget parent, String name) {
+ super((Class) null);
+ newKAnimWidget(icons,size,parent,name);
+ }
+ private native void newKAnimWidget(String icons, int size, QWidget parent, String name);
+ public KAnimWidget(String icons, int size, QWidget parent) {
+ super((Class) null);
+ newKAnimWidget(icons,size,parent);
+ }
+ private native void newKAnimWidget(String icons, int size, QWidget parent);
+ public KAnimWidget(String icons, int size) {
+ super((Class) null);
+ newKAnimWidget(icons,size);
+ }
+ private native void newKAnimWidget(String icons, int size);
+ public KAnimWidget(String icons) {
+ super((Class) null);
+ newKAnimWidget(icons);
+ }
+ private native void newKAnimWidget(String icons);
+ /**
+ Sets the size of the icons.
+ @param size The size of the icons
+ @short Sets the size of the icons.
+ */
+ public native void setSize(int size);
+ /**
+ Returns the current size.
+ @short Returns the current size.
+ */
+ public native int iconSize();
+ /**
+ Returns the current icons
+ since 3.4
+ @short Returns the current icons since 3.
+ */
+ public native String icons();
+ /**
+ Sets the name of the animated icons to load. This will use the
+ KIconLoader.loadAnimated method for the actual loading.
+ @param icons The name of the icons to use for the animation
+ @short Sets the name of the animated icons to load.
+ */
+ public native void setIcons(String icons);
+ /**
+ Starts the animation from frame 1
+ @short Starts the animation from frame 1
+ */
+ public native void start();
+ /**
+ Stops the animation. This will also reset the widget to frame 1.
+ @short Stops the animation.
+ */
+ public native void stop();
+ protected native void drawContents(QPainter p);
+ protected native void leaveEvent(QEvent e);
+ protected native void enterEvent(QEvent e);
+ protected native void hideEvent(QHideEvent e);
+ public native void showEvent(QShowEvent e);
+ protected native void mousePressEvent(QMouseEvent e);
+ protected native void mouseReleaseEvent(QMouseEvent e);
+ protected native void slotTimerUpdate();
+ protected native void updateIcons();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAnimWidgetSignals.java b/kdejava/koala/org/kde/koala/KAnimWidgetSignals.java
new file mode 100644
index 00000000..344e9edc
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAnimWidgetSignals.java
@@ -0,0 +1,15 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QHideEvent;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPainter;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+public interface KAnimWidgetSignals {
+ void clicked();
+}
diff --git a/kdejava/koala/org/kde/koala/KApplication.java b/kdejava/koala/org/kde/koala/KApplication.java
new file mode 100644
index 00000000..ba9e7e01
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KApplication.java
@@ -0,0 +1,1088 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSessionManager;
+import java.util.ArrayList;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QPalette;
+import org.kde.qt.QApplication;
+
+/**
+
+ Controls and provides information to all KDE applications.
+ Only one object of this class can be instantiated in a single app.
+ This instance is always accessible via the 'kapp' global variable.
+ See cut() for an example.
+ This class provides the following services to all KDE applications.
+
+ <li>
+ It controls the event queue (see QApplication ).
+ </li>
+
+ <li>
+ It provides the application with KDE resources such as
+ accelerators, common menu entries, a KConfig object. session
+ management events, help invocation etc.
+ </li>
+
+ <li>
+ Installs a signal handler for the SIGCHLD signal in order to
+ avoid zombie children. If you want to catch this signal yourself or
+ don't want it to be caught at all, you have set a new signal handler
+ (or SIG_IGN) after KApplication's constructor has run.
+ </li>
+
+ <li>
+ Installs an empty signal handler for the SIGPIPE signal using
+ installSigpipeHandler(). If you want to catch this signal
+ yourself, you have set a new signal handler after KApplication's
+ constructor has run.
+ </li>
+
+ <li>
+ It can start new services
+ </li>
+ The way a service gets started depends on the 'X-DCOP-ServiceType'
+ entry in the desktop file of the service:
+ There are three possibilities:
+
+ <li>
+ X-DCOP-ServiceType=None (default)
+ Always start a new service,
+ don't wait till the service registers with dcop.
+ </li>
+
+ <li>
+ X-DCOP-ServiceType=Multi
+ Always start a new service,
+ wait until the service has registered with dcop.
+ </li>
+
+ <li>
+ X-DCOP-ServiceType=Unique
+ Only start the service if it isn't already running,
+ wait until the service has registered with dcop.
+ </li>
+ See {@link KApplicationSignals} for signals emitted by KApplication
+ @author Matthias Kalle Dalheimer <kalle@kde.org>
+
+ @short Controls and provides information to all KDE applications.
+
+*/
+public class KApplication extends QApplication implements KInstanceInterface {
+ protected KApplication(Class dummy){super((Class) null);}
+ public static final int ShiftModifier = 1<<0;
+ public static final int LockModifier = 1<<1;
+ public static final int ControlModifier = 1<<2;
+ public static final int Modifier1 = 1<<3;
+ public static final int Modifier2 = 1<<4;
+ public static final int Modifier3 = 1<<5;
+ public static final int Modifier4 = 1<<6;
+ public static final int Modifier5 = 1<<7;
+
+ /** @deprecated Same values as Button1Mask etc. in X.h @short @deprecated Same values as Button1Mask etc.
+ */
+ public static final int Button1Pressed = 1<<8;
+ public static final int Button2Pressed = 1<<9;
+ public static final int Button3Pressed = 1<<10;
+ public static final int Button4Pressed = 1<<11;
+ public static final int Button5Pressed = 1<<12;
+
+ /** Position of the caption (presumably in the application window's
+ title bar). This enum appears to be unused.
+ @todo Find out if this is used anywhere.
+ @short Position of the caption (presumably in the application window's title bar).
+ */
+ public static final int CaptionAppLast = 1;
+ public static final int CaptionAppFirst = 2;
+ public static final int CaptionNoApp = 3;
+
+ /**
+ The possible values for the <code>confirm</code> parameter of requestShutDown().
+ @short The possible values for the <code>confirm</code> parameter of requestShutDown().
+ */
+ public static final int ShutdownConfirmDefault = -1;
+ public static final int ShutdownConfirmNo = 0;
+ public static final int ShutdownConfirmYes = 1;
+
+ /**
+ The possible values for the <code>sdtype</code> parameter of requestShutDown().
+ @short The possible values for the <code>sdtype</code> parameter of requestShutDown().
+ */
+ public static final int ShutdownTypeDefault = -1;
+ public static final int ShutdownTypeNone = 0;
+ public static final int ShutdownTypeReboot = 1;
+ public static final int ShutdownTypeHalt = 2;
+
+ /**
+ The possible values for the <code>sdmode</code> parameter of requestShutDown().
+ @short The possible values for the <code>sdmode</code> parameter of requestShutDown().
+ */
+ public static final int ShutdownModeDefault = -1;
+ public static final int ShutdownModeSchedule = 0;
+ public static final int ShutdownModeTryNow = 1;
+ public static final int ShutdownModeForceNow = 2;
+ public static final int ShutdownModeInteractive = 3;
+
+ /**
+ Valid values for the settingsChanged signal
+ @short Valid values for the settingsChanged signal
+ */
+ public static final int SETTINGS_MOUSE = 0;
+ public static final int SETTINGS_COMPLETION = 1;
+ public static final int SETTINGS_PATHS = 2;
+ public static final int SETTINGS_POPUPMENU = 3;
+ public static final int SETTINGS_QT = 4;
+ public static final int SETTINGS_SHORTCUTS = 5;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ This constructor takes aboutData and command line
+ arguments from KCmdLineArgs.
+ @param allowStyles Set to false to disable the loading on plugin based
+ styles. This is only useful to applications that do not display a GUI
+ normally. If you do create an application with <code>allowStyles</code> set to false
+ it normally runs in the background but under special circumstances
+ displays widgets. Call enableStyles() before displaying any widgets.
+ @param GUIenabled Set to false to disable all GUI stuff. This implies
+ no styles either.
+ @short This constructor takes aboutData and command line arguments from KCmdLineArgs.
+ */
+ public KApplication(boolean allowStyles, boolean GUIenabled) {
+ super((Class) null);
+ newKApplication(allowStyles,GUIenabled);
+ }
+ private native void newKApplication(boolean allowStyles, boolean GUIenabled);
+ public KApplication(boolean allowStyles) {
+ super((Class) null);
+ newKApplication(allowStyles);
+ }
+ private native void newKApplication(boolean allowStyles);
+ public KApplication() {
+ super((Class) null);
+ newKApplication();
+ }
+ private native void newKApplication();
+ /**
+ Returns the application session config object.
+ @return A pointer to the application's instance specific
+ KConfig object.
+
+ @short Returns the application session config object.
+ @see KConfig
+ */
+ public native KConfig sessionConfig();
+ /**
+ Is the application restored from the session manager?
+ @return If true, this application was restored by the session manager.
+ Note that this may mean the config object returned by
+ sessionConfig() contains data saved by a session closedown.
+
+ @short Is the application restored from the session manager?
+ @see #sessionConfig
+ */
+ public native boolean isRestored();
+ /**
+ Disables session management for this application.
+ Useful in case your application is started by the
+ initial "startkde" script.
+ @short Disables session management for this application.
+ */
+ public native void disableSessionManagement();
+ /**
+ Enables again session management for this application, formerly
+ disabled by calling disableSessionManagement(). You usually
+ shouldn't call this function, as the session management is enabled
+ by default.
+ @short Enables again session management for this application, formerly disabled by calling disableSessionManagement().
+ */
+ public native void enableSessionManagement();
+ /**
+ Asks the session manager to shut the session down.
+ Using <code>confirm</code> == ShutdownConfirmYes or <code>sdtype</code> != ShutdownTypeDefault or
+ <code>sdmode</code> != ShutdownModeDefault causes the use of ksmserver's DCOP
+ interface. The remaining two combinations use the standard XSMP and
+ will work with any session manager compliant with it.
+ @param confirm Whether to ask the user if he really wants to log out.
+ ShutdownConfirm
+ @param sdtype The action to take after logging out. ShutdownType
+ @param sdmode If/When the action should be taken. ShutdownMode
+ @return true on success, false if the session manager could not be
+ contacted.
+
+ @short Asks the session manager to shut the session down.
+ */
+ public native boolean requestShutDown(int confirm, int sdtype, int sdmode);
+ public native boolean requestShutDown(int confirm, int sdtype);
+ public native boolean requestShutDown(int confirm);
+ public native boolean requestShutDown();
+ /**
+ Propagates the network address of the session manager in the
+ SESSION_MANAGER environment variable so that child processes can
+ pick it up.
+ If SESSION_MANAGER isn't defined yet, the address is searched in
+ $HOME/.KSMserver.
+ This function is called by clients that are started outside the
+ session ( i.e. before ksmserver is started), but want to launch
+ other processes that should participate in the session. Examples
+ are kdesktop or kicker.
+ @short Propagates the network address of the session manager in the SESSION_MANAGER environment variable so that child processes can pick it up.
+ */
+ public native void propagateSessionManager();
+ /**
+ Reimplemented for internal purposes, mainly the highlevel
+ handling of session management with KSessionManaged.
+ @short Reimplemented for internal purposes, mainly the highlevel handling of session management with KSessionManaged.
+ */
+ public native void commitData(QSessionManager sm);
+ /**
+ Reimplemented for internal purposes, mainly the highlevel
+ handling of session management with KSessionManaged.
+ @short Reimplemented for internal purposes, mainly the highlevel handling of session management with KSessionManaged.
+ */
+ public native void saveState(QSessionManager sm);
+ /**
+ Returns true if the application is currently saving its session
+ data (most probably before KDE logout). This is intended for use
+ mainly in KMainWindow.queryClose() and KMainWindow.queryExit().
+ @short Returns true if the application is currently saving its session data (most probably before KDE logout).
+ @see KMainWindow#queryClose
+ @see KMainWindow#queryExit
+ */
+ public native boolean sessionSaving();
+ /**
+ Returns a QPixmap with the application icon.
+ @return the application icon
+
+ @short Returns a QPixmap with the application icon.
+ */
+ public native QPixmap icon();
+ /**
+ Returns the name of the application icon.
+ @return the icon's name
+
+ @short Returns the name of the application icon.
+ */
+ public native String iconName();
+ /**
+ Returns the mini-icon for the application as a QPixmap.
+ @return the application's mini icon
+
+ @short Returns the mini-icon for the application as a QPixmap.
+ */
+ public native QPixmap miniIcon();
+ /**
+ Returns the name of the mini-icon for the application.
+ @return the mini icon's name
+
+ @short Returns the name of the mini-icon for the application.
+ */
+ public native String miniIconName();
+ /**
+ Sets the top widget of the application.
+ This means basically applying the right window caption and
+ icon. An application may have several top widgets. You don't
+ need to call this function manually when using KMainWindow.
+ @param topWidget A top widget of the application.
+ @short Sets the top widget of the application.
+ @see #icon
+ @see #caption
+ */
+ public native void setTopWidget(QWidget topWidget);
+ /**
+ Invokes the KHelpCenter HTML help viewer from docbook sources.
+ @param anchor This has to be a defined anchor in your
+ docbook sources. If empty the main index
+ is loaded
+ @param appname This allows you to show the help of another
+ application. If empty the current name() is
+ used
+ @param startup_id for app startup notification, "0" for none,
+ "" ( empty string ) is the default
+ @short Invokes the KHelpCenter HTML help viewer from docbook sources.
+ */
+ public native void invokeHelp(String anchor, String appname, String startup_id);
+ public native void invokeHelp(String anchor, String appname);
+ public native void invokeHelp(String anchor);
+ public native void invokeHelp();
+ /**
+ Convenience method; invokes the standard email application.
+ @param address The destination address
+ @param subject Subject string. Can be null.
+ @param startup_id for app startup notification, "0" for none,
+ "" ( empty string ) is the default
+ @short Convenience method; invokes the standard email application.
+ */
+ public native void invokeMailer(String address, String subject, String startup_id);
+ public native void invokeMailer(String address, String subject);
+ /**
+ Invokes the standard email application.
+ @param mailtoURL A mailto URL.
+ @param startup_id for app startup notification, "0" for none,
+ "" ( empty string ) is the default
+ @param allowAttachments whether attachments specified in mailtoURL should be honoured.
+ The default is false; do not honour requests for attachments.
+ @short Invokes the standard email application.
+ */
+ public native void invokeMailer(KURL mailtoURL, String startup_id, boolean allowAttachments);
+ public native void invokeMailer(KURL mailtoURL, String startup_id);
+ public native void invokeMailer(KURL mailtoURL);
+ /**
+ Convenience method; invokes the standard email application.
+ All parameters are optional.
+ @param to The destination address.
+ @param cc The Cc field
+ @param bcc The Bcc field
+ @param subject Subject string
+ @param body A string containing the body of the mail (exclusive with messageFile)
+ @param messageFile A file (URL) containing the body of the mail (exclusive with body) - currently unsupported
+ @param attachURLs List of URLs to be attached to the mail.
+ @param startup_id for app startup notification, "0" for none,
+ "" ( empty string ) is the default
+ @short Convenience method; invokes the standard email application.
+ */
+ public native void invokeMailer(String to, String cc, String bcc, String subject, String body, String messageFile, String[] attachURLs, String startup_id);
+ public native void invokeMailer(String to, String cc, String bcc, String subject, String body, String messageFile, String[] attachURLs);
+ public native void invokeMailer(String to, String cc, String bcc, String subject, String body, String messageFile);
+ public native void invokeMailer(String to, String cc, String bcc, String subject, String body);
+ /**
+ Returns a text for the window caption.
+ This may be set by
+ "-caption", otherwise it will be equivalent to the name of the
+ executable.
+ @return the text for the window caption
+
+ @short Returns a text for the window caption.
+ */
+ public native String caption();
+ /**
+ Builds a caption that contains the application name along with the
+ userCaption using a standard layout.
+ To make a compliant caption
+ for your window, simply do: <code>setCaption</code>(kapp.makeStdCaption(yourCaption));
+ @param userCaption The caption string you want to display in the
+ window caption area. Do not include the application name!
+ @param withAppName Indicates that the method shall include or ignore
+ the application name when making the caption string. You are not
+ compliant if you set this to <code>false.</code>
+ @param modified If true, a 'modified' sign will be included in the
+ returned string. This is useful when indicating that a file is
+ modified, i.e., it contains data that has not been saved.
+ @return the created caption
+
+ @short Builds a caption that contains the application name along with the userCaption using a standard layout.
+ */
+ public native String makeStdCaption(String userCaption, boolean withAppName, boolean modified);
+ public native String makeStdCaption(String userCaption, boolean withAppName);
+ public native String makeStdCaption(String userCaption);
+ /**
+ Get a file name in order to make a temporary copy of your document.
+ @param pFilename The full path to the current file of your
+ document.
+ @return A new filename for auto-saving.
+
+ @short Get a file name in order to make a temporary copy of your document.
+ */
+ public native String tempSaveName(String pFilename);
+ /**
+ Check whether an auto-save file exists for the document you want to
+ open.
+ @param pFilename The full path to the document you want to open.
+ @param bRecover This gets set to true if there was a recover
+ file.
+ @return The full path of the file to open.
+
+ @short Check whether an auto-save file exists for the document you want to open.
+ */
+ public native String checkRecoverFile(String pFilename, boolean bRecover);
+ /**
+ Enables style plugins.
+ This is useful only to applications that normally
+ do not display a GUI and create the KApplication with
+ allowStyles set to false.
+ @short Enables style plugins.
+ */
+ public native void enableStyles();
+ /**
+ Disables style plugins.
+ Current style plugins do not get unloaded.
+ This is only useful when used in combination with enableStyles().
+ @short Disables style plugins.
+ */
+ public native void disableStyles();
+ /**
+ Installs widget filter as global X11 event filter.
+ The widget
+ filter receives XEvents in its standard QWidget.x11Event() function.
+ Warning: Only do this when absolutely necessary. An installed X11 filter
+ can slow things down.
+ @short Installs widget filter as global X11 event filter.
+ */
+ public native void installX11EventFilter(QWidget filter);
+ /**
+ Removes global X11 event filter previously installed by
+ installX11EventFilter().
+ @short Removes global X11 event filter previously installed by installX11EventFilter().
+ */
+ public native void removeX11EventFilter(QWidget filter);
+ /**
+ Adds a message type to the KIPC event mask. You can only add "system
+ messages" to the event mask. These are the messages with id < 32.
+ Messages with id >= 32 are user messages.
+ @param id The message id. See KIPC.Message.
+ @short Adds a message type to the KIPC event mask.
+ @see KIPC
+ @see #removeKipcEventMask
+ @see #kipcMessage
+ */
+ public native void addKipcEventMask(int id);
+ /**
+ Removes a message type from the KIPC event mask. This message will
+ not be handled anymore.
+ @param id The message id.
+ @short Removes a message type from the KIPC event mask.
+ @see KIPC
+ @see #addKipcEventMask
+ @see #kipcMessage
+ */
+ public native void removeKipcEventMask(int id);
+ /**
+ Returns the app startup notification identifier for this running
+ application.
+ @return the startup notification identifier
+
+ @short Returns the app startup notification identifier for this running application.
+ */
+ public native String startupId();
+ /**
+ Sets a new value for the application startup notification window property for newly
+ created toplevel windows.
+ @param startup_id the startup notification identifier
+ @short
+ @see KStartupInfo#setNewStartupId
+ */
+ public native void setStartupId(String startup_id);
+ /**
+ Updates the last user action timestamp to the given time, or to the current time,
+ if 0 is given. Do not use unless you're really sure what you're doing.
+ Consult focus stealing prevention section in kdebase/kwin/README.
+ @short Updates the last user action timestamp to the given time, or to the current time, if 0 is given.
+ */
+ public native void updateUserTimestamp(long time);
+ public native void updateUserTimestamp();
+ /**
+ Returns the last user action timestamp or 0 if no user activity has taken place yet.
+ @short Returns the last user action timestamp or 0 if no user activity has taken place yet.
+ @see #updateuserTimestamp
+ */
+ public native long userTimestamp();
+ /**
+ Updates the last user action timestamp in the application registered to DCOP with dcopId
+ to the given time, or to this application's user time, if 0 is given.
+ Use before causing user interaction in the remote application, e.g. invoking a dialog
+ in the application using a DCOP call.
+ Consult focus stealing prevention section in kdebase/kwin/README.
+ @short Updates the last user action timestamp in the application registered to DCOP with dcopId to the given time, or to this application's user time, if 0 is given.
+ */
+ public native void updateRemoteUserTimestamp(String dcopId, long time);
+ public native void updateRemoteUserTimestamp(String dcopId);
+ /**
+ Returns the argument to --geometry if any, so the geometry can be set
+ wherever necessary
+ @return the geometry argument, or null if there is none
+
+ @short Returns the argument to --geometry if any, so the geometry can be set wherever necessary
+ */
+ public native String geometryArgument();
+ /**
+ Install a Qt SQL property map with entries for all KDE widgets
+ Call this in any application using KDE widgets in QSqlForm or QDataView.
+ @short Install a Qt SQL property map with entries for all KDE widgets Call this in any application using KDE widgets in QSqlForm or QDataView.
+ */
+ public native void installKDEPropertyMap();
+ /**
+ Returns whether a certain action is authorized
+ @param genericAction The name of a generic action
+ @return true if the action is authorized
+
+ @short Returns whether a certain action is authorized
+ */
+ public native boolean authorize(String genericAction);
+ /**
+ Returns whether a certain KAction is authorized.
+ @param action The name of a KAction action. The name is prepended
+ with "action/" before being passed to authorize()
+ @return true if the KAction is authorized
+
+ @short Returns whether a certain KAction is authorized.
+ */
+ public native boolean authorizeKAction(String action);
+ /**
+ Returns whether a certain URL related action is authorized.
+ @param action The name of the action. Known actions are
+ list (may be listed (e.g. in file selection dialog)),
+ link (may be linked to),
+ open (may open) and
+ redirect (may be redirected to)
+ @param baseURL The url where the action originates from
+ @param destURL The object of the action
+ @return true when the action is authorized, false otherwise.
+
+ @short Returns whether a certain URL related action is authorized.
+ */
+ public native boolean authorizeURLAction(String action, KURL baseURL, KURL destURL);
+ /**
+ Allow a certain URL action. This can be useful if your application
+ needs to ensure access to an application specific directory that may
+ otherwise be subject to KIOSK restrictions.
+ @param action The name of the action.
+ @param _baseURL The url where the action originates from
+ @param _destURL The object of the action
+ @short Allow a certain URL action.
+ */
+ public native void allowURLAction(String action, KURL _baseURL, KURL _destURL);
+ /**
+ Returns whether access to a certain control module is authorized.
+ @param menuId identifying the control module, e.g. kde-mouse.desktop
+ @return true if access to the module is authorized, false otherwise.
+
+ @short Returns whether access to a certain control module is authorized.
+ */
+ public native boolean authorizeControlModule(String menuId);
+ /**
+ Returns whether access to a certain control modules is authorized.
+ @param menuIds list of menu-ids of control module,
+ an example of a menu-id is kde-mouse.desktop.
+ @return Those control modules for which access has been authorized.
+
+ @short Returns whether access to a certain control modules is authorized.
+ */
+ public native ArrayList authorizeControlModules(String[] menuIds);
+ /**
+ @short
+ */
+ public native boolean notify(QObject receiver, QEvent event);
+ /**
+ @short
+ */
+ // int xErrhandler(Display* arg1,void* arg2); >>>> NOT CONVERTED
+ /**
+ @short
+ */
+ // int xioErrhandler(Display* arg1); >>>> NOT CONVERTED
+ /**
+ @short
+ */
+ // void iceIOErrorHandler(_IceConn* arg1); >>>> NOT CONVERTED
+ /**
+ Invokes the standard browser.
+ Note that you should only do this when you know for sure that the browser can
+ handle the URL (i.e. its mimetype). In doubt, if the URL can point to an image
+ or anything else than directory or HTML, prefer to use new KRun( url ).
+ @param url The destination address
+ @param startup_id for app startup notification, "0" for none,
+ "" ( empty string ) is the default
+ @short Invokes the standard browser.
+ */
+ public native void invokeBrowser(String url, String startup_id);
+ /**
+ Invoke the standard browser. Uses a <code>startup_id</code> of "" (empty)
+ and is otherwise the same as the above function.
+ @short Invoke the standard browser.
+ */
+ public native void invokeBrowser(String url);
+ /**
+ If the widget with focus provides a cut() slot, call that slot. Thus for a
+ simple application cut can be implemented as:
+ <pre>
+ KStdAction.cut( kapp, SLOT("cut()"), actionCollection() );
+ </pre>
+ @short If the widget with focus provides a cut() slot, call that slot.
+ */
+ public native void cut();
+ /**
+ If the widget with focus provides a copy() slot, call that slot. Thus for a
+ simple application copy can be implemented as:
+ <pre>
+ KStdAction.copy( kapp, SLOT("copy()"), actionCollection() );
+ </pre>
+ @short If the widget with focus provides a copy() slot, call that slot.
+ */
+ public native void copy();
+ /**
+ If the widget with focus provides a paste() slot, call that slot. Thus for a
+ simple application copy can be implemented as:
+ <pre>
+ KStdAction.paste( kapp, SLOT("paste()"), actionCollection() );
+ </pre>
+ @short If the widget with focus provides a paste() slot, call that slot.
+ */
+ public native void paste();
+ /**
+ If the widget with focus provides a clear() slot, call that slot. Thus for a
+ simple application clear() can be implemented as:
+ <pre>
+ new KAction( i18n( "Clear" ), "editclear", 0, kapp, SLOT("clear()"), actionCollection(), "clear" );
+ </pre>
+ Note that for some widgets, this may not provide the intended bahavior. For
+ example if you make use of the code above and a KListView has the focus, clear()
+ will clear all of the items in the list. If this is not the intened behavior
+ and you want to make use of this slot, you can subclass KListView and reimplement
+ this slot. For example the following code would implement a KListView without this
+ behavior:
+ <pre>
+ public class MyListView implements KListView {
+ public MyListView( QWidget parent = 0, String name = 0, WFlags f = 0 ) {}
+
+ public void clear() {}
+ }
+ </pre>
+ @short If the widget with focus provides a clear() slot, call that slot.
+ */
+ public native void clear();
+ /**
+ If the widget with focus provides a selectAll() slot, call that slot. Thus for a
+ simple application select all can be implemented as:
+ <pre>
+ KStdAction.selectAll( kapp, SLOT("selectAll()"), actionCollection() );
+ </pre>
+ @short If the widget with focus provides a selectAll() slot, call that slot.
+ */
+ public native void selectAll();
+ /**
+ Tells KApplication about one more operation that should be finished
+ before the application exits. The standard behavior is to exit on the
+ "last window closed" event, but some events should outlive the last window closed
+ (e.g. a file copy for a file manager, or 'compacting folders on exit' for a mail client).
+ @short Tells KApplication about one more operation that should be finished before the application exits.
+ */
+ public native void ref();
+ /**
+ Tells KApplication that one operation such as those described in ref() just finished.
+ The application exits if the counter is back to 0.
+ @short Tells KApplication that one operation such as those described in ref() just finished.
+ */
+ public native void deref();
+ /**
+ Add Qt and KDE command line options to KCmdLineArgs.
+ @short Add Qt and KDE command line options to KCmdLineArgs.
+ */
+ public static native void addCmdLineOptions();
+ /**
+ Returns the current application object.
+ This is similar to the global QApplication pointer qApp. It
+ allows access to the single global KApplication object, since
+ more than one cannot be created in the same application. It
+ saves you the trouble of having to pass the pointer explicitly
+ to every function that may require it.
+ @return the current application object
+
+ @short Returns the current application object.
+ */
+ public static native KApplication kApplication();
+ /**
+ Returns a pointer to a DCOPClient for the application.
+ If a client does not exist yet, it is created when this
+ function is called.
+ @return the DCOPClient for the application
+
+ @short Returns a pointer to a DCOPClient for the application.
+ */
+ public static native DCOPClient dcopClient();
+ /**
+ Disable automatic dcop registration
+ Must be called before creating a KApplication instance to have an effect.
+ @short Disable automatic dcop registration Must be called before creating a KApplication instance to have an effect.
+ */
+ public static native void disableAutoDcopRegistration();
+ /**
+ Returns the DCOP name of the service launcher. This will be something like
+ klaucher_$host_$uid.
+ @return the name of the service launcher
+
+ @short Returns the DCOP name of the service launcher.
+ */
+ public static native String launcher();
+ /**
+ Starts a service based on the (translated) name of the service.
+ E.g. "Web Browser"
+ @param _name the name of the service
+ @param URL if not empty this URL is passed to the service
+ @param error On failure, <code>error</code> contains a description of the error
+ that occurred. If the pointer is 0, the argument will be
+ ignored
+ @param dcopService On success, <code>dcopService</code> contains the DCOP name
+ under which this service is available. If empty, the service does
+ not provide DCOP services. If the pointer is 0 the argument
+ will be ignored
+ @param pid On success, the process id of the new service will be written
+ here. If the pointer is 0, the argument will be ignored.
+ @param startup_id for app startup notification, "0" for none,
+ "" ( empty string ) is the default
+ @param noWait if set, the function does not wait till the service is running.
+ @return an error code indicating success (== 0) or failure (> 0).
+
+ @short Starts a service based on the (translated) name of the service.
+ */
+ public static native int startServiceByName(String _name, String URL, StringBuffer error, StringBuffer dcopService, int[] pid, String startup_id, boolean noWait);
+ public static native int startServiceByName(String _name, String URL, StringBuffer error, StringBuffer dcopService, int[] pid, String startup_id);
+ public static native int startServiceByName(String _name, String URL, StringBuffer error, StringBuffer dcopService, int[] pid);
+ public static native int startServiceByName(String _name, String URL, StringBuffer error, StringBuffer dcopService);
+ public static native int startServiceByName(String _name, String URL, StringBuffer error);
+ public static native int startServiceByName(String _name, String URL);
+ /**
+ Starts a service based on the (translated) name of the service.
+ E.g. "Web Browser"
+ @param _name the name of the service
+ @param URLs if not empty these URLs will be passed to the service
+ @param error On failure, <code>error</code> contains a description of the error
+ that occurred. If the pointer is 0, the argument will be
+ ignored
+ @param dcopService On success, <code>dcopService</code> contains the DCOP name
+ under which this service is available. If empty, the service does
+ not provide DCOP services. If the pointer is 0 the argument
+ will be ignored
+ @param pid On success, the process id of the new service will be written
+ here. If the pointer is 0, the argument will be ignored.
+ @param startup_id for app startup notification, "0" for none,
+ "" ( empty string ) is the default
+ @param noWait if set, the function does not wait till the service is running.
+ @return an error code indicating success (== 0) or failure (> 0).
+
+ @short Starts a service based on the (translated) name of the service.
+ */
+ public static native int startServiceByName(String _name, String[] URLs, StringBuffer error, StringBuffer dcopService, int[] pid, String startup_id, boolean noWait);
+ public static native int startServiceByName(String _name, String[] URLs, StringBuffer error, StringBuffer dcopService, int[] pid, String startup_id);
+ public static native int startServiceByName(String _name, String[] URLs, StringBuffer error, StringBuffer dcopService, int[] pid);
+ public static native int startServiceByName(String _name, String[] URLs, StringBuffer error, StringBuffer dcopService);
+ public static native int startServiceByName(String _name, String[] URLs, StringBuffer error);
+ public static native int startServiceByName(String _name, String[] URLs);
+ public static native int startServiceByName(String _name);
+ /**
+ Starts a service based on the desktop path of the service.
+ E.g. "Applications/konqueror.desktop" or "/home/user/bla/myfile.desktop"
+ @param _name the path of the desktop file
+ @param URL if not empty this URL is passed to the service
+ @param error On failure, <code>error</code> contains a description of the error
+ that occurred. If the pointer is 0, the argument will be
+ ignored
+ @param dcopService On success, <code>dcopService</code> contains the DCOP name
+ under which this service is available. If empty, the service does
+ not provide DCOP services. If the pointer is 0 the argument
+ will be ignored
+ @param pid On success, the process id of the new service will be written
+ here. If the pointer is 0, the argument will be ignored.
+ @param startup_id for app startup notification, "0" for none,
+ "" ( empty string ) is the default
+ @param noWait if set, the function does not wait till the service is running.
+ @return an error code indicating success (== 0) or failure (> 0).
+
+ @short Starts a service based on the desktop path of the service.
+ */
+ public static native int startServiceByDesktopPath(String _name, String URL, StringBuffer error, StringBuffer dcopService, int[] pid, String startup_id, boolean noWait);
+ public static native int startServiceByDesktopPath(String _name, String URL, StringBuffer error, StringBuffer dcopService, int[] pid, String startup_id);
+ public static native int startServiceByDesktopPath(String _name, String URL, StringBuffer error, StringBuffer dcopService, int[] pid);
+ public static native int startServiceByDesktopPath(String _name, String URL, StringBuffer error, StringBuffer dcopService);
+ public static native int startServiceByDesktopPath(String _name, String URL, StringBuffer error);
+ public static native int startServiceByDesktopPath(String _name, String URL);
+ /**
+ Starts a service based on the desktop path of the service.
+ E.g. "Applications/konqueror.desktop" or "/home/user/bla/myfile.desktop"
+ @param _name the path of the desktop file
+ @param URLs if not empty these URLs will be passed to the service
+ @param error On failure, <code>error</code> contains a description of the error
+ that occurred. If the pointer is 0, the argument will be
+ ignored
+ @param dcopService On success, <code>dcopService</code> contains the DCOP name
+ under which this service is available. If empty, the service does
+ not provide DCOP services. If the pointer is 0 the argument
+ will be ignored
+ @param pid On success, the process id of the new service will be written
+ here. If the pointer is 0, the argument will be ignored.
+ @param startup_id for app startup notification, "0" for none,
+ "" ( empty string ) is the default
+ @param noWait if set, the function does not wait till the service is running.
+ @return an error code indicating success (== 0) or failure (> 0).
+
+ @short Starts a service based on the desktop path of the service.
+ */
+ public static native int startServiceByDesktopPath(String _name, String[] URLs, StringBuffer error, StringBuffer dcopService, int[] pid, String startup_id, boolean noWait);
+ public static native int startServiceByDesktopPath(String _name, String[] URLs, StringBuffer error, StringBuffer dcopService, int[] pid, String startup_id);
+ public static native int startServiceByDesktopPath(String _name, String[] URLs, StringBuffer error, StringBuffer dcopService, int[] pid);
+ public static native int startServiceByDesktopPath(String _name, String[] URLs, StringBuffer error, StringBuffer dcopService);
+ public static native int startServiceByDesktopPath(String _name, String[] URLs, StringBuffer error);
+ public static native int startServiceByDesktopPath(String _name, String[] URLs);
+ public static native int startServiceByDesktopPath(String _name);
+ /**
+ Starts a service based on the desktop name of the service.
+ E.g. "konqueror"
+ @param _name the desktop name of the service
+ @param URL if not empty this URL is passed to the service
+ @param error On failure, <code>error</code> contains a description of the error
+ that occurred. If the pointer is 0, the argument will be
+ ignored
+ @param dcopService On success, <code>dcopService</code> contains the DCOP name
+ under which this service is available. If empty, the service does
+ not provide DCOP services. If the pointer is 0 the argument
+ will be ignored
+ @param pid On success, the process id of the new service will be written
+ here. If the pointer is 0, the argument will be ignored.
+ @param startup_id for app startup notification, "0" for none,
+ "" ( empty string ) is the default
+ @param noWait if set, the function does not wait till the service is running.
+ @return an error code indicating success (== 0) or failure (> 0).
+
+ @short Starts a service based on the desktop name of the service.
+ */
+ public static native int startServiceByDesktopName(String _name, String URL, StringBuffer error, StringBuffer dcopService, int[] pid, String startup_id, boolean noWait);
+ public static native int startServiceByDesktopName(String _name, String URL, StringBuffer error, StringBuffer dcopService, int[] pid, String startup_id);
+ public static native int startServiceByDesktopName(String _name, String URL, StringBuffer error, StringBuffer dcopService, int[] pid);
+ public static native int startServiceByDesktopName(String _name, String URL, StringBuffer error, StringBuffer dcopService);
+ public static native int startServiceByDesktopName(String _name, String URL, StringBuffer error);
+ public static native int startServiceByDesktopName(String _name, String URL);
+ /**
+ Starts a service based on the desktop name of the service.
+ E.g. "konqueror"
+ @param _name the desktop name of the service
+ @param URLs if not empty these URLs will be passed to the service
+ @param error On failure, <code>error</code> contains a description of the error
+ that occurred. If the pointer is 0, the argument will be
+ ignored
+ @param dcopService On success, <code>dcopService</code> contains the DCOP name
+ under which this service is available. If empty, the service does
+ not provide DCOP services. If the pointer is 0 the argument
+ will be ignored
+ @param pid On success, the process id of the new service will be written
+ here. If the pointer is 0, the argument will be ignored.
+ @param startup_id for app startup notification, "0" for none,
+ "" ( empty string ) is the default
+ @param noWait if set, the function does not wait till the service is running.
+ @return an error code indicating success (== 0) or failure (> 0).
+
+ @short Starts a service based on the desktop name of the service.
+ */
+ public static native int startServiceByDesktopName(String _name, String[] URLs, StringBuffer error, StringBuffer dcopService, int[] pid, String startup_id, boolean noWait);
+ public static native int startServiceByDesktopName(String _name, String[] URLs, StringBuffer error, StringBuffer dcopService, int[] pid, String startup_id);
+ public static native int startServiceByDesktopName(String _name, String[] URLs, StringBuffer error, StringBuffer dcopService, int[] pid);
+ public static native int startServiceByDesktopName(String _name, String[] URLs, StringBuffer error, StringBuffer dcopService);
+ public static native int startServiceByDesktopName(String _name, String[] URLs, StringBuffer error);
+ public static native int startServiceByDesktopName(String _name, String[] URLs);
+ public static native int startServiceByDesktopName(String _name);
+ /**
+ Starts a program via kdeinit.
+ program name and arguments are converted to according to the
+ local encoding and passed as is to kdeinit.
+ @param name Name of the program to start
+ @param args Arguments to pass to the program
+ @param error On failure, <code>error</code> contains a description of the error
+ that occurred. If the pointer is 0, the argument will be
+ ignored
+ @param pid On success, the process id of the new service will be written
+ here. If the pointer is 0, the argument will be ignored.
+ @param startup_id for app startup notification, "0" for none,
+ "" ( empty string ) is the default
+ @return an error code indicating success (== 0) or failure (> 0).
+
+ @short Starts a program via kdeinit.
+ */
+ public static native int kdeinitExec(String name, String[] args, StringBuffer error, int[] pid, String startup_id);
+ public static native int kdeinitExec(String name, String[] args, StringBuffer error, int[] pid);
+ public static native int kdeinitExec(String name, String[] args, StringBuffer error);
+ public static native int kdeinitExec(String name, String[] args);
+ public static native int kdeinitExec(String name);
+ /**
+ Starts a program via kdeinit and wait for it to finish.
+ Like kdeinitExec(), but it waits till the program is finished.
+ As such it behaves similar to the system(...) function.
+ @param name Name of the program to start
+ @param args Arguments to pass to the program
+ @param error On failure, <code>error</code> contains a description of the error
+ that occurred. If the pointer is 0, the argument will be
+ ignored
+ @param pid On success, the process id of the new service will be written
+ here. If the pointer is 0, the argument will be ignored.
+ @param startup_id for app startup notification, "0" for none,
+ "" ( empty string ) is the default
+ @return an error code indicating success (== 0) or failure (> 0).
+
+ @short Starts a program via kdeinit and wait for it to finish.
+ */
+ public static native int kdeinitExecWait(String name, String[] args, StringBuffer error, int[] pid, String startup_id);
+ public static native int kdeinitExecWait(String name, String[] args, StringBuffer error, int[] pid);
+ public static native int kdeinitExecWait(String name, String[] args, StringBuffer error);
+ public static native int kdeinitExecWait(String name, String[] args);
+ public static native int kdeinitExecWait(String name);
+ /**
+ Generates a uniform random number.
+ @return A truly unpredictable number in the range [0, RAND_MAX)
+
+ @short Generates a uniform random number.
+ */
+ public static native int random();
+ /**
+ Generates a random string. It operates in the range [A-Za-z0-9]
+ @param length Generate a string of this length.
+ @return the random string
+
+ @short Generates a random string.
+ */
+ public static native String randomString(int length);
+ /**
+ Returns the state of the currently pressed keyboard modifiers (e.g. shift, control, etc.)
+ and mouse buttons, similarly to QKeyEvent.state() and QMouseEvent.state().
+ You usually should simply use the information provided by QKeyEvent and QMouseEvent,
+ but it can be useful to query for the status of the modifiers at another moment
+ (e.g. some KDE apps do that upon a drop event).
+ @return the keyboard modifiers and mouse buttons state
+
+ @short Returns the state of the currently pressed keyboard modifiers (e.
+ */
+ public static native int keyboardMouseState();
+ /**
+ @short
+ */
+ public static native void startKdeinit();
+ /**
+ Used to obtain the QPalette that will be used to set the application palette.
+ This is only useful for configuration modules such as krdb and should not be
+ used in normal circumstances.
+ @return the QPalette
+
+ @short Used to obtain the QPalette that will be used to set the application palette.
+ */
+ public static native QPalette createApplicationPalette();
+ /**
+ Raw access for use by KDM.
+ @short
+ */
+ public static native QPalette createApplicationPalette(KConfig config, int contrast);
+ /**
+ Installs a handler for the SIGPIPE signal. It is thrown when you write to
+ a pipe or socket that has been closed.
+ The handler is installed automatically in the constructor, but you may
+ need it if your application or component does not have a KApplication
+ instance.
+ @short Installs a handler for the SIGPIPE signal.
+ */
+ public static native void installSigpipeHandler();
+ /**
+ Whether widgets can be used.
+ @short
+ */
+ public static native boolean guiEnabled();
+ /**
+ @short
+ */
+ public KApplication(boolean allowStyles, boolean GUIenabled, KInstanceInterface _instance) {
+ super((Class) null);
+ newKApplication(allowStyles,GUIenabled,_instance);
+ }
+ private native void newKApplication(boolean allowStyles, boolean GUIenabled, KInstanceInterface _instance);
+ /**
+ This method is used internally to determine which edit slots are implemented
+ by the widget that has the focus, and to invoke those slots if available.
+ @param slot is the slot as returned using the SLOT() macro, for example SLOT("cut()")
+ This method can be used in KApplication subclasses to implement application wide
+ edit actions not supported by the KApplication class. For example (in your subclass):
+ <pre>
+ void MyApplication.deselect()
+ {
+ invokeEditSlot( SLOT("deselect()") );
+ }
+ </pre>
+ Now in your application calls to MyApplication.deselect() will call this slot on the
+ focused widget if it provides this slot. You can combine this with KAction with:
+ <pre>
+ KStdAction.deselect( (MyApplication)( kapp ), SLOT("cut()"), actionCollection() );
+ </pre>
+ @short This method is used internally to determine which edit slots are implemented by the widget that has the focus, and to invoke those slots if available.
+ @see #cut
+ @see #copy
+ @see #paste
+ @see #clear
+ @see #selectAll
+ */
+ protected native void invokeEditSlot(String slot);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+ /**
+ Returns the application standard dirs object.
+ @return The KStandardDirs of the application.
+
+ @short Returns the application standard dirs object.
+ */
+ public native KStandardDirs dirs();
+ /**
+ Returns the general config object ("appnamerc").
+ @return the KConfig object for the instance.
+
+ @short Returns the general config object ("appnamerc").
+ */
+ public native KConfig config();
+ /**
+ Returns the general config object ("appnamerc").
+ @return the KConfig object for the instance.
+
+ @short Returns the general config object ("appnamerc").
+ */
+ public native KSharedConfig sharedConfig();
+ /**
+ Returns an iconloader object.
+ @return the iconloader object.
+
+ @short Returns an iconloader object.
+ */
+ public native KIconLoader iconLoader();
+ /**
+ Re-allocate the global iconloader.
+ @short Re-allocate the global iconloader.
+ */
+ public native void newIconLoader();
+ /**
+ Returns the about data of this instance
+ Warning, can be null
+ @return the about data of the instance, or 0 if it has
+ not been set yet
+
+ @short Returns the about data of this instance Warning, can be 0L
+ */
+ public native KAboutData aboutData();
+ /**
+ Returns the name of the instance
+ @return the instance name, can be null if the KInstance has been
+ created with a null name
+
+ @short Returns the name of the instance
+ */
+ public native String instanceName();
+ /**
+ Returns the KMimeSourceFactory of the instance.
+ Mainly added for API completeness and future extensibility.
+ @return the KMimeSourceFactory set as default for this application.
+
+ @short Returns the KMimeSourceFactory of the instance.
+ */
+ public native KMimeSourceFactory mimeSourceFactory();
+ /**
+ Set name of default config file.
+ @param name the name of the default config file
+ @short Set name of default config file.
+ */
+ protected native void setConfigName(String name);
+ /**
+ Used internally by the KDE Koala Java bindings runtime
+ */
+ public static native void setJavaSlotFactory();
+
+}
diff --git a/kdejava/koala/org/kde/koala/KApplicationSignals.java b/kdejava/koala/org/kde/koala/KApplicationSignals.java
new file mode 100644
index 00000000..d44e3cce
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KApplicationSignals.java
@@ -0,0 +1,116 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSessionManager;
+import java.util.ArrayList;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QPalette;
+
+public interface KApplicationSignals {
+ /**
+ Emitted when KApplication has changed its palette due to a KControl request.
+ Normally, widgets will update their palette automatically, but you
+ should connect to this to program special behavior.
+ @short Emitted when KApplication has changed its palette due to a KControl request.
+ */
+ void kdisplayPaletteChanged();
+ /**
+ Emitted when KApplication has changed its GUI style in response to a KControl request.
+ Normally, widgets will update their styles automatically (as they would
+ respond to an explicit setGUIStyle() call), but you should connect to
+ this to program special behavior.
+ @short Emitted when KApplication has changed its GUI style in response to a KControl request.
+ */
+ void kdisplayStyleChanged();
+ /**
+ Emitted when KApplication has changed its font in response to a KControl request.
+ Normally widgets will update their fonts automatically, but you should
+ connect to this to monitor global font changes, especially if you are
+ using explicit fonts.
+ Note: If you derive from a QWidget-based class, a faster method is to
+ reimplement QWidget.fontChange(). This is the preferred way
+ to get informed about font updates.
+ @short Emitted when KApplication has changed its font in response to a KControl request.
+ */
+ void kdisplayFontChanged();
+ /**
+ Emitted when KApplication has changed either its GUI style, its font or its palette
+ in response to a kdisplay request. Normally, widgets will update their styles
+ automatically, but you should connect to this to program special
+ behavior. @short Emitted when KApplication has changed either its GUI style, its font or its palette in response to a kdisplay request.
+ */
+ void appearanceChanged();
+ /**
+ Emitted when the settings for toolbars have been changed. KToolBar will know what to do.
+ @short Emitted when the settings for toolbars have been changed.
+ */
+ void toolbarAppearanceChanged(int arg1);
+ /**
+ Emitted when the desktop background has been changed by <code>kcmdisplay.</code>
+ @param desk The desktop whose background has changed.
+ @short Emitted when the desktop background has been changed by <code>kcmdisplay.</code>
+ */
+ void backgroundChanged(int desk);
+ /**
+ Emitted when the global settings have been changed - see KGlobalSettings
+ KApplication takes care of calling reparseConfiguration on KGlobal.config()
+ so that applications/classes using this only have to re-read the configuration
+ @param category the category among the enum above
+ @short Emitted when the global settings have been changed - see KGlobalSettings KApplication takes care of calling reparseConfiguration on KGlobal.config() so that applications/classes using this only have to re-read the configuration
+ */
+ void settingsChanged(int category);
+ /**
+ Emitted when the global icon settings have been changed.
+ @param group the new group
+ @short Emitted when the global icon settings have been changed.
+ */
+ void iconChanged(int group);
+ /**
+ Emitted when a KIPC user message has been received.
+ @param id the message id
+ @param data the data
+ @short Emitted when a KIPC user message has been received.
+ @see KIPC
+ @see KIPC#Message
+ @see #addKipcEventMask
+ @see #removeKipcEventMask
+ */
+ void kipcMessage(int id, int data);
+ /**
+ Session management asks you to save the state of your application.
+ This signal is provided for compatibility only. For new
+ applications, simply use KMainWindow. By reimplementing
+ KMainWindow.queryClose(), KMainWindow.saveProperties() and
+ KMainWindow.readProperties() you can simply handle session
+ management for applications with multiple toplevel windows.
+ For purposes without KMainWindow, create an instance of
+ KSessionManaged and reimplement the functions
+ KSessionManaged.commitData() and/or
+ KSessionManaged.saveState()
+ If you still want to use this signal, here is what you should do:
+ Connect to this signal in order to save your data. Do NOT
+ manipulate the UI in that slot, it is blocked by the session
+ manager.
+ Use the sessionConfig() KConfig object to store all your
+ instance specific data.
+ Do not do any closing at this point! The user may still select
+ Cancel wanting to continue working with your
+ application. Cleanups could be done after shutDown() (see
+ the following).
+ @short Session management asks you to save the state of your application.
+ */
+ void saveYourself();
+ /** Your application is killed. Either by your program itself,
+ <code>xkill</code> or (the usual case) by KDE's logout.
+ The signal is particularly useful if your application has to do some
+ last-second cleanups. Note that no user interaction is possible at
+ this state.
+ @short Your application is killed.
+ */
+ void shutDown();
+}
diff --git a/kdejava/koala/org/kde/koala/KAr.java b/kdejava/koala/org/kde/koala/KAr.java
new file mode 100644
index 00000000..4ed75176
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAr.java
@@ -0,0 +1,65 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QIODevice;
+import org.kde.qt.QIODeviceInterface;
+
+/**
+
+ KAr is a class for reading archives in ar format. Writing
+ is not supported.
+ @author Laurence Anderson <l.d.anderson@warwick.ac.uk>
+
+ @short A class for reading ar archives.
+
+*/
+public class KAr extends KArchive {
+ protected KAr(Class dummy){super((Class) null);}
+ /**
+ Creates an instance that operates on the given filename.
+ @param filename is a local path (e.g. "/home/holger/myfile.ar")
+ @short Creates an instance that operates on the given filename.
+ */
+ public KAr(String filename) {
+ super((Class) null);
+ newKAr(filename);
+ }
+ private native void newKAr(String filename);
+ /**
+ Creates an instance that operates on the given device.
+ The device can be compressed (KFilterDev) or not (QFile, etc.).
+ @param dev the device to read from
+ @short Creates an instance that operates on the given device.
+ */
+ public KAr(QIODeviceInterface dev) {
+ super((Class) null);
+ newKAr(dev);
+ }
+ private native void newKAr(QIODeviceInterface dev);
+ /**
+ The name of the ar file, as passed to the constructor.
+ @return the filename. Null if you used the QIODevice constructor
+
+ @short The name of the ar file, as passed to the constructor.
+ */
+ public native String fileName();
+ public native boolean prepareWriting(String name, String user, String group, int size);
+ public native boolean doneWriting(int size);
+ public native boolean writeDir(String name, String user, String group);
+ /**
+ Opens the archive for reading.
+ Parses the directory listing of the archive
+ and creates the KArchiveDirectory/KArchiveFile entries.
+ @short Opens the archive for reading.
+ */
+ protected native boolean openArchive(int mode);
+ protected native boolean closeArchive();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KArchive.java b/kdejava/koala/org/kde/koala/KArchive.java
new file mode 100644
index 00000000..437d9677
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KArchive.java
@@ -0,0 +1,229 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QIODevice;
+import org.kde.qt.QIODeviceInterface;
+
+/**
+
+ KArchive is a base class for reading and writing archives.
+ @author David Faure <faure@kde.org>
+
+ @short generic class for reading/writing archives.
+
+*/
+public class KArchive implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KArchive(Class dummy){}
+
+ public static final int VIRTUAL_WRITE_DATA = 1;
+ public static final int VIRTUAL_WRITE_SYMLINK = 2;
+ public static final int VIRTUAL_WRITE_DIR = 3;
+ public static final int VIRTUAL_WRITE_FILE = 4;
+ public static final int VIRTUAL_PREPARE_WRITING = 5;
+
+ /**
+ Opens the archive for reading or writing.
+ Inherited classes might want to reimplement openArchive instead.
+ @param mode may be IO_ReadOnly or IO_WriteOnly
+ @short Opens the archive for reading or writing.
+ @see #close
+ */
+ public native boolean open(int mode);
+ /**
+ Closes the archive.
+ Inherited classes might want to reimplement closeArchive instead.
+ @short Closes the archive.
+ @see #open
+ */
+ public native void close();
+ /**
+ Use to check if close had any problem
+ @return true if close succeded without problems
+
+ @short Use to check if close had any problem
+ */
+ public native boolean closeSucceeded();
+ /**
+ Checks whether the archive is open.
+ @return true if the archive is opened
+
+ @short Checks whether the archive is open.
+ */
+ public native boolean isOpened();
+ /**
+ Returns the mode in which the archive was opened
+ @return the mode in which the archive was opened (IO_ReadOnly or IO_WriteOnly)
+
+ @short Returns the mode in which the archive was opened
+ @see #open
+ */
+ public native int mode();
+ /**
+ The underlying device.
+ @return the underlying device.
+
+ @short The underlying device.
+ */
+ public native QIODeviceInterface device();
+ /**
+ If an archive is opened for reading, then the contents
+ of the archive can be accessed via this function.
+ @return the directory of the archive
+
+ @short If an archive is opened for reading, then the contents of the archive can be accessed via this function.
+ */
+ public native KArchiveDirectory directory();
+ /**
+ Writes a local file into the archive. The main difference with writeFile,
+ is that this method minimizes memory usage, by not loading the whole file
+ into memory in one go.
+ If <code>fileName</code> is a symbolic link, it will be written as is, i. e.
+ it will not be resolved before.
+ @param fileName full path to an existing local file, to be added to the archive.
+ @param destName the resulting name (or relative path) of the file in the archive.
+ @short Writes a local file into the archive.
+ */
+ public native boolean addLocalFile(String fileName, String destName);
+ /**
+ Writes a local directory into the archive, including all its contents, recursively.
+ Calls addLocalFile for each file to be added.
+ Since KDE 3.2 it will also add a <code>path</code> that is a symbolic link to a
+ directory. The symbolic link will be dereferenced and the content of the
+ directory it is pointing to added recursively. However, symbolic links
+ under <code>path</code> will be stored as is.
+ @param path full path to an existing local directory, to be added to the archive.
+ @param destName the resulting name (or relative path) of the file in the archive.
+ @short Writes a local directory into the archive, including all its contents, recursively.
+ */
+ public native boolean addLocalDirectory(String path, String destName);
+ /**
+ If an archive is opened for writing then you can add new directories
+ using this function. KArchive won't write one directory twice.
+ @param name the name of the directory
+ @param user the user that owns the directory
+ @param group the group that owns the directory
+ @todo TODO(BIC): make this a thin wrapper around
+ writeDir(name,user,group,perm,atime,mtime,ctime)
+ or eliminate it
+ @short If an archive is opened for writing then you can add new directories using this function.
+ */
+ public native boolean writeDir(String name, String user, String group);
+ /**
+ If an archive is opened for writing then you can add new directories
+ using this function. KArchive won't write one directory twice.
+ This method also allows some file metadata to be
+ set. However, depending on the archive type not all metadata might be
+ regarded.
+ @param name the name of the directory
+ @param user the user that owns the directory
+ @param group the group that owns the directory
+ @param perm permissions of the directory
+ @param atime time the file was last accessed
+ @param mtime modification time of the file
+ @param ctime creation time of the file
+ @short If an archive is opened for writing then you can add new directories using this function.
+ */
+ public native boolean writeDir(String name, String user, String group, long perm, int atime, int mtime, int ctime);
+ /**
+ Writes a symbolic link to the archive if the archive must be opened for
+ writing.
+ @param name name of symbolic link
+ @param target target of symbolic link
+ @param user the user that owns the directory
+ @param group the group that owns the directory
+ @param perm permissions of the directory
+ @param atime time the file was last accessed
+ @param mtime modification time of the file
+ @param ctime creation time of the file
+ @short Writes a symbolic link to the archive if the archive must be opened for writing.
+ */
+ public native boolean writeSymLink(String name, String target, String user, String group, long perm, int atime, int mtime, int ctime);
+ /**
+ If an archive is opened for writing then you can add a new file
+ using this function. If the file name is for example "mydir/test1" then
+ the directory "mydir" is automatically appended first if that did not
+ happen yet.
+ @param name the name of the file
+ @param user the user that owns the file
+ @param group the group that owns the file
+ @param size the size of the file
+ @param data the data to write (<code>size</code> bytes)
+ @todo TODO(BIC): make this a thin non-wrapper around
+ writeFile(name,user,group,size,perm,atime,mtime,ctime,data)
+ @short If an archive is opened for writing then you can add a new file using this function.
+ */
+ public native boolean writeFile(String name, String user, String group, int size, String data);
+ /**
+ If an archive is opened for writing then you can add a new file
+ using this function. If the file name is for example "mydir/test1" then
+ the directory "mydir" is automatically appended first if that did not
+ happen yet.
+ This method also allows some file metadata to be
+ set. However, depending on the archive type not all metadata might be
+ regarded.
+ @param name the name of the file
+ @param user the user that owns the file
+ @param group the group that owns the file
+ @param size the size of the file
+ @param perm permissions of the file
+ @param atime time the file was last accessed
+ @param mtime modification time of the file
+ @param ctime creation time of the file
+ @param data the data to write (<code>size</code> bytes)
+ @short If an archive is opened for writing then you can add a new file using this function.
+ */
+ public native boolean writeFile(String name, String user, String group, int size, long perm, int atime, int mtime, int ctime, String data);
+ /**
+ Here's another way of writing a file into an archive:
+ Call prepareWriting, then call writeData()
+ as many times as wanted then call doneWriting( totalSize ).
+ For tar.gz files, you need to know the size before hand, since it is needed in the header.
+ For zip files, size isn't used.
+ @param name the name of the file
+ @param user the user that owns the file
+ @param group the group that owns the file
+ @param size the size of the file
+ @todo TODO(BIC): make this a thin non-wrapper around
+ prepareWriting(name,user,group,size,perm,atime,mtime,ctime)
+ or eliminate it.
+ @short Here's another way of writing a file into an archive: Call prepareWriting, then call writeData() as many times as wanted then call doneWriting( totalSize ).
+ */
+ public native boolean prepareWriting(String name, String user, String group, int size);
+ /**
+ Here's another way of writing a file into an archive:
+ Call prepareWriting, then call writeData()
+ as many times as wanted then call doneWriting( totalSize ).
+ For tar.gz files, you need to know the size before hand, it is needed in the header!
+ For zip files, size isn't used.
+ This method also allows some file metadata to be
+ set. However, depending on the archive type not all metadata might be
+ regarded.
+ @param name the name of the file
+ @param user the user that owns the file
+ @param group the group that owns the file
+ @param size the size of the file
+ @param perm permissions of the file
+ @param atime time the file was last accessed
+ @param mtime modification time of the file
+ @param ctime creation time of the file
+ @short Here's another way of writing a file into an archive: Call prepareWriting, then call writeData() as many times as wanted then call doneWriting( totalSize ).
+ */
+ public native boolean prepareWriting(String name, String user, String group, int size, long perm, int atime, int mtime, int ctime);
+ /**
+ Write data into the current file - to be called after calling prepareWriting
+ @todo TODO(BIC) make virtual. For now virtual_hook allows reimplementing it.
+ @short Write data into the current file - to be called after calling prepareWriting @todo TODO(BIC) make virtual.
+ */
+ public native boolean writeData(String data, int size);
+ /**
+ Call doneWriting after writing the data.
+ @param size the size of the file
+ @short Call doneWriting after writing the data.
+ @see #prepareWriting
+ */
+ public native boolean doneWriting(int size);
+}
diff --git a/kdejava/koala/org/kde/koala/KArchiveDirectory.java b/kdejava/koala/org/kde/koala/KArchiveDirectory.java
new file mode 100644
index 00000000..26e2a784
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KArchiveDirectory.java
@@ -0,0 +1,76 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ Represents a directory entry in a KArchive.
+ @short A directory in an archive.
+ @see KArchive
+ @see KArchiveFile
+
+*/
+public class KArchiveDirectory extends KArchiveEntry {
+ protected KArchiveDirectory(Class dummy){super((Class) null);}
+ /**
+ Creates a new directory entry.
+ @param archive the entries archive
+ @param name the name of the entry
+ @param access the permissions in unix format
+ @param date the date (in seconds since 1970)
+ @param user the user that owns the entry
+ @param group the group that owns the entry
+ @param symlink the symlink, or null
+ @short Creates a new directory entry.
+ */
+ public KArchiveDirectory(KArchive archive, String name, int access, int date, String user, String group, String symlink) {
+ super((Class) null);
+ newKArchiveDirectory(archive,name,access,date,user,group,symlink);
+ }
+ private native void newKArchiveDirectory(KArchive archive, String name, int access, int date, String user, String group, String symlink);
+ /**
+ Returns a list of sub-entries.
+ @return the names of all entries in this directory (filenames, no path).
+
+ @short Returns a list of sub-entries.
+ */
+ public native ArrayList entries();
+ /**
+ Returns the entry with the given name.
+ @param name may be "test1", "mydir/test3", "mydir/mysubdir/test3", etc.
+ @return a pointer to the entry in the directory.
+
+ @short Returns the entry with the given name.
+ */
+ public native KArchiveEntry entry(String name);
+ /**
+ Adds a new entry to the directory.
+ @short
+ */
+ public native void addEntry(KArchiveEntry arg1);
+ /**
+ Checks whether this entry is a directory.
+ @return true, since this entry is a directory
+
+ @short Checks whether this entry is a directory.
+ */
+ public native boolean isDirectory();
+ /**
+ Extracts all entries in this archive directory to the directory
+ <code>dest.</code>
+ @param dest the directory to extract to
+ @param recursive if set to true, subdirectories are extracted as well
+ @short Extracts all entries in this archive directory to the directory <code>dest.</code>
+ */
+ public native void copyTo(String dest, boolean recursive);
+ public native void copyTo(String dest);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KArchiveEntry.java b/kdejava/koala/org/kde/koala/KArchiveEntry.java
new file mode 100644
index 00000000..cf824a3a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KArchiveEntry.java
@@ -0,0 +1,107 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.Calendar;
+
+/**
+
+ A base class for entries in an KArchive.
+ @short Base class for the archive-file's directory structure.
+ @see KArchiveFile
+ @see KArchiveDirectory
+
+*/
+public class KArchiveEntry implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KArchiveEntry(Class dummy){}
+
+ /**
+ Creates a new entry.
+ @param archive the entries archive
+ @param name the name of the entry
+ @param access the permissions in unix format
+ @param date the date (in seconds since 1970)
+ @param user the user that owns the entry
+ @param group the group that owns the entry
+ @param symlink the symlink, or null
+ @short Creates a new entry.
+ */
+ public KArchiveEntry(KArchive archive, String name, int access, int date, String user, String group, String symlink) {
+ newKArchiveEntry(archive,name,access,date,user,group,symlink);
+ }
+ private native void newKArchiveEntry(KArchive archive, String name, int access, int date, String user, String group, String symlink);
+ /**
+ Creation date of the file.
+ @return the creation date
+
+ @short Creation date of the file.
+ */
+ public native Calendar datetime();
+ /**
+ Creation date of the file.
+ @return the creation date in seconds since 1970
+
+ @short Creation date of the file.
+ */
+ public native int date();
+ /**
+ Name of the file without path.
+ @return the file name without path
+
+ @short Name of the file without path.
+ */
+ public native String name();
+ /**
+ The permissions and mode flags as returned by the stat() function
+ in st_mode.
+ @return the permissions
+
+ @short The permissions and mode flags as returned by the stat() function in st_mode.
+ */
+ public native long permissions();
+ /**
+ User who created the file.
+ @return the owner of the file
+
+ @short User who created the file.
+ */
+ public native String user();
+ /**
+ Group of the user who created the file.
+ @return the group of the file
+
+ @short Group of the user who created the file.
+ */
+ public native String group();
+ /**
+ Symlink if there is one.
+ @return the symlink, or null
+
+ @short Symlink if there is one.
+ */
+ public native String symlink();
+ /**
+ Checks whether the entry is a file.
+ @return true if this entry is a file
+
+ @short Checks whether the entry is a file.
+ */
+ public native boolean isFile();
+ /**
+ Checks whether the entry is a directory.
+ @return true if this entry is a directory
+
+ @short Checks whether the entry is a directory.
+ */
+ public native boolean isDirectory();
+ protected native KArchive archive();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KArchiveFile.java b/kdejava/koala/org/kde/koala/KArchiveFile.java
new file mode 100644
index 00000000..a653e470
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KArchiveFile.java
@@ -0,0 +1,95 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QIODevice;
+import org.kde.qt.QIODeviceInterface;
+
+/**
+
+ Represents a file entry in a KArchive.
+ @short A file in an archive.
+ @see KArchive
+ @see KArchiveDirectory
+
+*/
+public class KArchiveFile extends KArchiveEntry {
+ protected KArchiveFile(Class dummy){super((Class) null);}
+ /**
+ Creates a new file entry.
+ @param archive the entries archive
+ @param name the name of the entry
+ @param access the permissions in unix format
+ @param date the date (in seconds since 1970)
+ @param user the user that owns the entry
+ @param group the group that owns the entry
+ @param symlink the symlink, or null
+ @param pos the position of the file in the directory
+ @param size the size of the file
+ @short Creates a new file entry.
+ */
+ public KArchiveFile(KArchive archive, String name, int access, int date, String user, String group, String symlink, int pos, int size) {
+ super((Class) null);
+ newKArchiveFile(archive,name,access,date,user,group,symlink,pos,size);
+ }
+ private native void newKArchiveFile(KArchive archive, String name, int access, int date, String user, String group, String symlink, int pos, int size);
+ /**
+ Position of the data in the [uncompressed] archive.
+ @return the position of the file
+
+ @short Position of the data in the [uncompressed] archive.
+ */
+ public native int position();
+ /**
+ Size of the data.
+ @return the size of the file
+
+ @short Size of the data.
+ */
+ public native int size();
+ /**
+ Set size of data, usually after writing the file.
+ @param s the new size of the file
+ @short Set size of data, usually after writing the file.
+ */
+ public native void setSize(int s);
+ /**
+ Returns the data of the file.
+ Call data() with care (only once per file), this data isn't cached.
+ @return the content of this file.
+
+ @short Returns the data of the file.
+ */
+ public native byte[] data();
+ /**
+ This method returns QIODevice (internal class: KLimitedIODevice)
+ on top of the underlying QIODevice. This is obviously for reading only.
+ Note that the ownership of the device is being transferred to the caller,
+ who will have to delete it.
+ The returned device auto-opens (in readonly mode), no need to open it.
+ @return the QIODevice of the file
+
+ @short This method returns QIODevice (internal class: KLimitedIODevice) on top of the underlying QIODevice.
+ */
+ public native QIODeviceInterface device();
+ /**
+ Checks whether this entry is a file.
+ @return true, since this entry is a file
+
+ @short Checks whether this entry is a file.
+ */
+ public native boolean isFile();
+ /**
+ Extracts the file to the directory <code>dest</code>
+ @param dest the directory to extract to
+ @short Extracts the file to the directory <code>dest</code>
+ */
+ public native void copyTo(String dest);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KArrowButton.java b/kdejava/koala/org/kde/koala/KArrowButton.java
new file mode 100644
index 00000000..449c3206
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KArrowButton.java
@@ -0,0 +1,85 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QPainter;
+import org.kde.qt.QWidget;
+import org.kde.qt.QPushButton;
+
+/**
+
+ Draws a button which shows an arrow pointing into a certain direction. The
+ arrow's alignment on the button depends on the direction it's pointing to,
+ e.g. a left arrow is aligned at the left border, a upwards arrow at the top
+ border. This class honors the currently configured KStyle when drawing
+ the arrow.
+ @author Frerich Raabe
+
+ @short Draws a button with an arrow.
+
+*/
+public class KArrowButton extends QPushButton {
+ protected KArrowButton(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs an arrow button.
+ @param parent This button's parent
+ @param arrow The direction the arrrow should be pointing in
+ @param name An internal name for this widget
+ @short Constructs an arrow button.
+ */
+ public KArrowButton(QWidget parent, int arrow, String name) {
+ super((Class) null);
+ newKArrowButton(parent,arrow,name);
+ }
+ private native void newKArrowButton(QWidget parent, int arrow, String name);
+ public KArrowButton(QWidget parent, int arrow) {
+ super((Class) null);
+ newKArrowButton(parent,arrow);
+ }
+ private native void newKArrowButton(QWidget parent, int arrow);
+ public KArrowButton(QWidget parent) {
+ super((Class) null);
+ newKArrowButton(parent);
+ }
+ private native void newKArrowButton(QWidget parent);
+ public KArrowButton() {
+ super((Class) null);
+ newKArrowButton();
+ }
+ private native void newKArrowButton();
+ /**
+ Reimplemented from QPushButton.
+ @short Reimplemented from QPushButton.
+ */
+ public native QSize sizeHint();
+ /**
+ Returns the arrow type
+ @short Returns the arrow type
+ */
+ public native int arrowType();
+ public native int arrowTp();
+ public native void setArrowTp(int tp);
+ /**
+ Defines in what direction the arrow is pointing to. Will repaint the
+ button if necessary.
+ @param a The direction this arrow should be pointing in
+ @short Defines in what direction the arrow is pointing to.
+ */
+ public native void setArrowType(int a);
+ /**
+ Reimplemented from QPushButton.
+ @short Reimplemented from QPushButton.
+ */
+ protected native void drawButton(QPainter arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAsyncIO.java b/kdejava/koala/org/kde/koala/KAsyncIO.java
new file mode 100644
index 00000000..3f7c7fd6
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAsyncIO.java
@@ -0,0 +1,76 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QIODevice;
+import org.kde.qt.QIODeviceInterface;
+import org.kde.qt.QObject;
+
+/**
+
+ Asynchronous I/O Support
+ This abstract class provides basic functionality for asynchronous I/O
+ support on top of QIODevice.
+ See {@link KAsyncIOSignals} for signals emitted by KAsyncIO
+ @author Thiago Macieira <thiago.macieira@kdemail.net>
+
+ @short Asynchronous I/O support.
+
+*/
+public class KAsyncIO extends QObject implements QIODeviceInterface {
+ protected KAsyncIO(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Toggles the emission of the readyRead() signal whenever the device
+ is ready for reading. This is useful if you want to know the first time
+ the device is ready for reading and you don't want to read it now.
+ @param enable true to enable, false to disable the readyRead() signal
+ @short Toggles the emission of the readyRead() signal whenever the device is ready for reading.
+ */
+ public native void enableRead(boolean enable);
+ /**
+ Toggles the emission of the readyWrite() signal whenever the device
+ is ready for writing. This is useful if you want to know the first time
+ the device is ready for writing and you don't want to write to it now.
+ @param enable true to enable, false to disable the readyWrite() signal
+ @short Toggles the emission of the readyWrite() signal whenever the device is ready for writing.
+ */
+ public native void enableWrite(boolean enable);
+ public native int flags();
+ public native int mode();
+ public native int state();
+ public native boolean isDirectAccess();
+ public native boolean isSequentialAccess();
+ public native boolean isCombinedAccess();
+ public native boolean isBuffered();
+ public native boolean isRaw();
+ public native boolean isSynchronous();
+ public native boolean isAsynchronous();
+ public native boolean isTranslated();
+ public native boolean isReadable();
+ public native boolean isWritable();
+ public native boolean isReadWrite();
+ public native boolean isInactive();
+ public native boolean isOpen();
+ public native int status();
+ public native void resetStatus();
+ public native boolean open(int mode);
+ public native void close();
+ public native void flush();
+ public native long size();
+ public native long at();
+ public native boolean at(long arg1);
+ public native boolean atEnd();
+ public native boolean reset();
+ public native long readBlock(StringBuffer data, long maxlen);
+ public native long writeBlock(String data, long len);
+ public native long readLine(String data, long maxlen);
+ public native long writeBlock(byte[] data);
+ public native byte[] readAll();
+ public native int getch();
+ public native int putch(int arg1);
+ public native int ungetch(int arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KAsyncIOSignals.java b/kdejava/koala/org/kde/koala/KAsyncIOSignals.java
new file mode 100644
index 00000000..5d6374b7
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAsyncIOSignals.java
@@ -0,0 +1,20 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QIODevice;
+import org.kde.qt.QIODeviceInterface;
+
+public interface KAsyncIOSignals {
+ /**
+ This signal gets sent when the device is ready for reading.
+ @short This signal gets sent when the device is ready for reading.
+ */
+ void readyRead();
+ /**
+ This signal gets sent when the device is ready for writing.
+ @short This signal gets sent when the device is ready for writing.
+ */
+ void readyWrite();
+}
diff --git a/kdejava/koala/org/kde/koala/KAudioPlayer.java b/kdejava/koala/org/kde/koala/KAudioPlayer.java
new file mode 100644
index 00000000..3915dd2a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAudioPlayer.java
@@ -0,0 +1,76 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QObject;
+
+/**
+
+ This class provides one-shot-and-forget audio playing. You will never
+ know if what you wanted to play really got played.
+ It doesn't require linking any special libraries, as it operates over
+ DCOP. In the current implementation, it only indirectly communicates
+ with the aRts soundserver, using knotify as DCOP . MCOP bridge.
+ Due to that fact, if you need "fast" response times, more control or
+ feedback, use the MCOP interfaces rather than this.
+ An example of using this class is:
+ <pre>
+ KAudioPlayer.play("/var/share/foo.wav");
+ </pre>
+ If you want to use signals & slots, you can do something like:
+ <pre>
+ KAudioPlayer player("/var/share/foo.wav");
+ connect(&button, SIGNAL("clicked()"), &player, SLOT("play()"));
+ </pre>
+ @short This class provides one-shot-and-forget audio playing.
+
+*/
+public class KAudioPlayer extends QObject {
+ protected KAudioPlayer(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor.
+ @param filename Absolute path to the filename of the sound file to play
+ @param parent A parent QObject for this KAudioPlayer
+ @param name An internal name for this KAudioPlayer
+ @short Constructor.
+ */
+ public KAudioPlayer(String filename, QObject parent, String name) {
+ super((Class) null);
+ newKAudioPlayer(filename,parent,name);
+ }
+ private native void newKAudioPlayer(String filename, QObject parent, String name);
+ public KAudioPlayer(String filename, QObject parent) {
+ super((Class) null);
+ newKAudioPlayer(filename,parent);
+ }
+ private native void newKAudioPlayer(String filename, QObject parent);
+ public KAudioPlayer(String filename) {
+ super((Class) null);
+ newKAudioPlayer(filename);
+ }
+ private native void newKAudioPlayer(String filename);
+ /**
+ Play function as slot.
+ Plays the soundfile given to the constructor.
+ @short Play function as slot.
+ */
+ public native void play();
+ /**
+ Static play function.
+ @param filename Absolute path to the filename of the sound file to play.
+ if not absolute, goes off KDEDIR/share/sounds/ (preferred)
+ @short Static play function.
+ */
+ public static native void play(String filename);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KAuthIcon.java b/kdejava/koala/org/kde/koala/KAuthIcon.java
new file mode 100644
index 00000000..b3794b6b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAuthIcon.java
@@ -0,0 +1,48 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ This is the base class from which different authorization icon widget
+ which actually do something should be derived. You can use these
+ widgets to show that the user has (or doesn't have) the ability to do
+ something, and why that is.
+ One of the most useful things you can do with this is connect
+ authChanged(boolean) to setEnabled(boolean) for a widget to turn it on and
+ off depending on the status of whatever it is you are monitoring.
+ See {@link KAuthIconSignals} for signals emitted by KAuthIcon
+ @author Preston Brown <pbrown@kde.org>
+
+ @short A base class for authorization icon widgets.
+ @see KRootPermsIcon
+ @see KWritePermsIcon
+
+*/
+public class KAuthIcon extends QWidget {
+ protected KAuthIcon(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor.
+ @short Constructor.
+ */
+ public native QSize sizeHint();
+ /**
+ return the status of whatever is being monitored.
+ @short return the status of whatever is being monitored.
+ */
+ public native boolean status();
+ /**
+ Re-implement this method if you want the icon to update itself
+ when something external has changed (i.e. a file on disk, uid/gid).
+ @short Re-implement this method if you want the icon to update itself when something external has changed (i.
+ */
+ public native void updateStatus();
+}
diff --git a/kdejava/koala/org/kde/koala/KAuthIconSignals.java b/kdejava/koala/org/kde/koala/KAuthIconSignals.java
new file mode 100644
index 00000000..23255d20
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KAuthIconSignals.java
@@ -0,0 +1,18 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+
+public interface KAuthIconSignals {
+ /**
+ this signal is emitted when authorization has changed from
+ its previous state.
+ @param authorized will be true if the type of authorization
+ described by the icon is true, otherwise it will be false.
+ @short this signal is emitted when authorization has changed from its previous state.
+ */
+ void authChanged(boolean authorized);
+}
diff --git a/kdejava/koala/org/kde/koala/KBufferedIO.java b/kdejava/koala/org/kde/koala/KBufferedIO.java
new file mode 100644
index 00000000..a952a639
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KBufferedIO.java
@@ -0,0 +1,144 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This abstract class implements basic functionality for buffered
+ input/output.
+ Through the available methods, you can find out how many bytes are
+ available for reading, how many are still unsent and you can peek at
+ the buffered data.
+ This class was intentionally written to resemble QSocket, because
+ KExtendedSocket is a subclass of this one. This is so that applications
+ written using QSocket's buffering characteristics will be more easily
+ ported to the more powerful KExtendedSocket class.
+ KBufferedIO already provides a powerful internal buffering algorithm. However,
+ this does not include the I/O itself, which must be implemented in
+ derived classes. Thus, to implement a class that does some I/O, you must
+ override, in addition to the pure QIODevice methods, these two:
+
+ <li>
+ closeNow()
+ </li>
+
+ <li>
+ waitForMore()
+ </li>
+ If your derived class reimplements the buffering algorithm, you must then
+ decide which buffering functions to override. For instance, you may want to
+ change the protected functions like feedReadBuffer() and consumeReadBuffer().
+ See {@link KBufferedIOSignals} for signals emitted by KBufferedIO
+ @author Thiago Macieira <thiagom@mail.com>
+
+ @short Buffered I/O.
+
+*/
+public class KBufferedIO extends KAsyncIO {
+ protected KBufferedIO(Class dummy){super((Class) null);}
+ /**
+ The modes for closed() signal
+ @short The modes for closed() signal
+ */
+ public static final int availRead = 0x01;
+ public static final int dirtyWrite = 0x02;
+ public static final int involuntary = 0x10;
+ public static final int delayed = 0x20;
+ public static final int closedNow = 0x40;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Closes the stream now, discarding the contents of the
+ write buffer. That is, we won't try to flush that
+ buffer before closing. If you want that buffer to be
+ flushed, you can call QIODevice.flush(), which is blocking, and
+ then closeNow, or you can call QIODevice.close() for a delayed
+ close.
+ @short Closes the stream now, discarding the contents of the write buffer.
+ */
+ public native void closeNow();
+ /**
+ Sets the internal buffer size to value.
+ Not all implementations support this.
+ The parameters may be 0 to make the class unbuffered or -1
+ to let the class choose the size (which may be unlimited) or
+ -2 to leave the buffer size untouched.
+ Note that setting the write buffer size to any value smaller than
+ the current size of the buffer will force it to flush first,
+ which can make this call blocking.
+ The default implementation does not support setting the buffer
+ sizes. You can only call this function with values -1 for "don't care"
+ or -2 for "unchanged"
+ @param rsize the size of the read buffer
+ @param wsize the size of the write buffer
+ @return true if setting both was ok. If false is returned, the
+ buffers were left unchanged.
+
+ @short Sets the internal buffer size to value.
+ */
+ public native boolean setBufferSize(int rsize, int wsize);
+ public native boolean setBufferSize(int rsize);
+ /**
+ Returns the number of bytes available for reading in the read buffer
+ @return the number of bytes available for reading
+
+ @short Returns the number of bytes available for reading in the read buffer
+ */
+ public native int bytesAvailable();
+ /**
+ Waits for more data to be available and returns the amount of available data then.
+ @param msec number of milliseconds to wait, -1 to wait forever
+ @return -1 if we cannot wait (e.g., that doesn't make sense in this stream)
+
+ @short Waits for more data to be available and returns the amount of available data then.
+ */
+ public native int waitForMore(int msec);
+ /**
+ Returns the number of bytes yet to write, still in the write buffer
+ @return the number of unwritten bytes in the write buffer
+
+ @short Returns the number of bytes yet to write, still in the write buffer
+ */
+ public native int bytesToWrite();
+ /**
+ Checks whether there is enough data in the buffer to read a line
+ The default implementation reads directly from inBuf, so if your
+ implementation changes the meaning of that member, then you must override
+ this function.
+ @return true when there is enough data in the buffer to read a line
+
+ @short Checks whether there is enough data in the buffer to read a line
+ */
+ public native boolean canReadLine();
+ /**
+ Reads into the user buffer at most maxlen bytes, but does not
+ consume that data from the read buffer. This is useful to check
+ whether we already have the needed data to process something.
+ This function may want to try and read more data from the system
+ provided it won't block.
+ @param data the user buffer pointer, at least maxlen bytes long
+ @param maxlen the maximum length to be peeked
+ @return the number of bytes actually copied.
+
+ @short Reads into the user buffer at most maxlen bytes, but does not consume that data from the read buffer.
+ */
+ public native int peekBlock(String data, int maxlen);
+ /**
+ Unreads some data. That is, write the data to the beginning of the
+ read buffer, so that next calls to readBlock or peekBlock will see
+ this data instead.
+ Note not all devices implement this since this could mean a semantic
+ problem. For instance, sockets are sequential devices, so they won't
+ accept unreading.
+ @param data the data to be unread
+ @param len the size of the data
+ @return the number of bytes actually unread
+
+ @short Unreads some data.
+ */
+ public native int unreadBlock(String data, int len);
+}
diff --git a/kdejava/koala/org/kde/koala/KBufferedIOSignals.java b/kdejava/koala/org/kde/koala/KBufferedIOSignals.java
new file mode 100644
index 00000000..2ed67f11
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KBufferedIOSignals.java
@@ -0,0 +1,45 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+public interface KBufferedIOSignals {
+ /**
+ This signal gets sent whenever bytes are written from the buffer.
+ @param nbytes the number of bytes sent.
+ @short This signal gets sent whenever bytes are written from the buffer.
+ */
+ void bytesWritten(int nbytes);
+ /**
+ This signal gets sent when the stream is closed. The <code>state</code> parameter
+ will give the current state, in OR-ed bits:
+
+ <li>
+ availRead: read buffer contains data to be read
+ </li>
+
+ <li>
+ dirtyWrite: write buffer wasn't empty when the stream closed
+ </li>
+
+ <li>
+ involuntary: the stream wasn't closed due to user request
+ (i.e., call to close). Probably remote end closed it
+ </li>
+
+ <li>
+ delayed: the stream was closed voluntarily by the user, but it
+ happened only after the write buffer was emptied
+ </li>
+
+ <li>
+ closedNow: the stream was closed voluntarily by the user, by
+ explicitly calling closeNow, which means the
+ write buffer's contents may have been discarded
+ </li>
+ @param state the state (see function description)
+ @short This signal gets sent when the stream is closed.
+ */
+ void closed(int state);
+}
diff --git a/kdejava/koala/org/kde/koala/KBugReport.java b/kdejava/koala/org/kde/koala/KBugReport.java
new file mode 100644
index 00000000..bd4c5b9b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KBugReport.java
@@ -0,0 +1,103 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ All the information needed by the dialog box
+ (program name, version, bug-report address, etc.)
+ comes from the KAboutData class.
+ Make sure you create an instance of KAboutData and pass it
+ to KCmdLineArgs.
+ @author David Faure <faure@kde.org>
+
+ @short A dialog box for sending bug reports.
+
+*/
+public class KBugReport extends KDialogBase {
+ protected KBugReport(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a bug-report dialog.
+ Note that you shouldn't have to do this manually,
+ since KHelpMenu takes care of the menu item
+ for "Report Bug..." and of creating a KBugReport dialog.
+ @short Creates a bug-report dialog.
+ */
+ public KBugReport(QWidget parent, boolean modal, KAboutData aboutData) {
+ super((Class) null);
+ newKBugReport(parent,modal,aboutData);
+ }
+ private native void newKBugReport(QWidget parent, boolean modal, KAboutData aboutData);
+ public KBugReport(QWidget parent, boolean modal) {
+ super((Class) null);
+ newKBugReport(parent,modal);
+ }
+ private native void newKBugReport(QWidget parent, boolean modal);
+ public KBugReport(QWidget parent) {
+ super((Class) null);
+ newKBugReport(parent);
+ }
+ private native void newKBugReport(QWidget parent);
+ public KBugReport() {
+ super((Class) null);
+ newKBugReport();
+ }
+ private native void newKBugReport();
+ /**
+ A complete copy of the bug report
+ @return String copy of the bug report.
+
+ @short A complete copy of the bug report
+ */
+ protected native String text();
+ /**
+ Attempt to e-mail the bug report.
+ @return true on success
+
+ @short Attempt to e-mail the bug report.
+ */
+ protected native boolean sendBugReport();
+ /**
+ "Configure email" has been clicked - this calls kcmshell System/email
+ @short "Configure email" has been clicked - this calls kcmshell System/email
+ */
+ protected native void slotConfigureEmail();
+ /**
+ Sets the "From" field from the e-mail configuration
+ Called at creation time, but also after "Configure email" is closed.
+ @short Sets the "From" field from the e-mail configuration Called at creation time, but also after "Configure email" is closed.
+ */
+ protected native void slotSetFrom();
+ /**
+ OK has been clicked
+ @short OK has been clicked
+ */
+ protected native void slotOk();
+ /**
+ Cancel has been clicked
+ @short Cancel has been clicked
+ */
+ protected native void slotCancel();
+ /**
+ Application combo selection changed (and was activated)
+ @short Application combo selection changed (and was activated)
+ */
+ protected native void appChanged(int arg1);
+ /**
+ Update the url to match the current os, compiler, selected app, etc
+ @short Update the url to match the current os, compiler, selected app, etc
+ */
+ protected native void updateURL();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KButtonBox.java b/kdejava/koala/org/kde/koala/KButtonBox.java
new file mode 100644
index 00000000..f9eb6067
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KButtonBox.java
@@ -0,0 +1,160 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QSize;
+import org.kde.qt.QSizePolicy;
+import org.kde.qt.QPushButton;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ Container widget for buttons.
+ This class uses Qt layout control to place the buttons; can handle
+ both vertical and horizontal button placement. The default border
+ is now <code>0</code> (making it easier to deal with layouts). The space
+ between buttons is now more Motif compliant.
+ @author Mario Weilguni <mweilguni@sime.com>
+
+ @version $Id$
+
+ @short Container widget for buttons.
+
+*/
+public class KButtonBox extends QWidget {
+ protected KButtonBox(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create an empty container for buttons.
+ If <code>_orientation</code> is <code>Vertical</code>, the buttons inserted with
+ addButton() are laid out from top to bottom, otherwise they
+ are laid out from left to right.
+ @short Create an empty container for buttons.
+ */
+ public KButtonBox(QWidget parent, int _orientation, int border, int _autoborder) {
+ super((Class) null);
+ newKButtonBox(parent,_orientation,border,_autoborder);
+ }
+ private native void newKButtonBox(QWidget parent, int _orientation, int border, int _autoborder);
+ public KButtonBox(QWidget parent, int _orientation, int border) {
+ super((Class) null);
+ newKButtonBox(parent,_orientation,border);
+ }
+ private native void newKButtonBox(QWidget parent, int _orientation, int border);
+ public KButtonBox(QWidget parent, int _orientation) {
+ super((Class) null);
+ newKButtonBox(parent,_orientation);
+ }
+ private native void newKButtonBox(QWidget parent, int _orientation);
+ public KButtonBox(QWidget parent) {
+ super((Class) null);
+ newKButtonBox(parent);
+ }
+ private native void newKButtonBox(QWidget parent);
+ /**
+ This size is
+ calculated by the width/height of all buttons plus border/autoborder.
+ @return The minimum size needed to fit all buttons.
+
+ @short
+ */
+ public native QSize sizeHint();
+ public native QSizePolicy sizePolicy();
+ public native void resizeEvent(QResizeEvent arg1);
+ /**
+ Add a new QPushButton.
+ @param text the text of the button to add
+ @param noexpand If <code>noexpand</code> is <code>false</code>, the width
+ of the button is adjusted to fit the other buttons (the maximum
+ of all buttons is taken). If <code>noexpand</code> is <code>true</code>, the width of this
+ button will be set to the minimum width needed for the given text).
+ @return A pointer to the new button.
+
+ @short Add a new QPushButton.
+ */
+ public native QPushButton addButton(String text, boolean noexpand);
+ public native QPushButton addButton(String text);
+ /**
+ Add a new QPushButton.
+ @param text the text of the button to add.
+ @param receiver An object to connect to.
+ @param slot A Qt slot to connect the 'clicked()' signal to.
+ @param noexpand If <code>noexpand</code> is <code>false</code>, the width
+ of the button is adjusted to fit the other buttons (the maximum
+ of all buttons is taken). If <code>noexpand</code> <code>true</code>, the width of this
+ button will be set to the minimum width needed for the given text).
+ @return A pointer to the new button.
+
+ @short Add a new QPushButton.
+ */
+ public native QPushButton addButton(String text, QObject receiver, String slot, boolean noexpand);
+ public native QPushButton addButton(String text, QObject receiver, String slot);
+ /**
+ Add a new QPushButton.
+ @param guiitem text and icon on the button
+ @param noexpand If <code>noexpand</code> is <code>false</code>, the width
+ of the button is adjusted to fit the other buttons (the maximum
+ of all buttons is taken). If <code>noexpand</code> is <code>true</code>, the width of this
+ button will be set to the minimum width needed for the given text).
+ @return A pointer to the new button.
+
+ @short Add a new QPushButton.
+ */
+ public native QPushButton addButton(KGuiItem guiitem, boolean noexpand);
+ public native QPushButton addButton(KGuiItem guiitem);
+ /**
+ Add a new QPushButton.
+ @param guiitem text and icon on the button
+ @param receiver An object to connect to.
+ @param slot A Qt slot to connect the 'clicked()' signal to.
+ @param noexpand If <code>noexpand</code> is <code>false</code>, the width
+ of the button is adjusted to fit the other buttons (the maximum
+ of all buttons is taken). If <code>noexpand</code> <code>true</code>, the width of this
+ button will be set to the minimum width needed for the given text).
+ @return A pointer to the new button.
+
+ @short Add a new QPushButton.
+ */
+ public native QPushButton addButton(KGuiItem guiitem, QObject receiver, String slot, boolean noexpand);
+ public native QPushButton addButton(KGuiItem guiitem, QObject receiver, String slot);
+ /**
+ Add a stretch to the buttonbox.
+ Can be used to separate buttons. That is, if you add the
+ buttons OK and Cancel, add a stretch, and then add the button Help,
+ the buttons OK and Cancel will be left-aligned (or top-aligned
+ for vertical) whereas Help will be right-aligned (or
+ bottom-aligned for vertical).
+ @short Add a stretch to the buttonbox.
+ @see org.kde.qt.QBoxLayout
+ */
+ public native void addStretch(int scale);
+ public native void addStretch();
+ /**
+ This function must be called <b>once</b> after all buttons have been
+ inserted.
+ It will start layout control.
+ @short This function must be called @em once after all buttons have been inserted.
+ */
+ public native void updateLayout();
+ /**
+ @return the best size for a button. Checks all buttons and takes
+ the maximum width/height.
+
+ @short
+ */
+ protected native QSize bestButtonSize();
+ protected native void placeButtons();
+ protected native QSize buttonSizeHint(QPushButton arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCModule.java b/kdejava/koala/org/kde/koala/KCModule.java
new file mode 100644
index 00000000..c7d641c0
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCModule.java
@@ -0,0 +1,275 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ The base class for control center modules.
+ Starting from KDE 2.0, control center modules are realized as shared
+ libraries that are loaded into the control center at runtime.
+ The module in principle is a simple widget displaying the
+ item to be changed. The module has a very small interface.
+ All the necessary glue logic and the GUI bells and whistles
+ are provided by the control center and must not concern
+ the module author.
+ To write a config module, you have to create a library
+ that contains at one factory function like this:
+ <pre>
+ #include <kgenericfactory.h>
+ typedef KGenericFactory<YourKCModule, QWidget> YourKCModuleFactory;
+ K_EXPORT_COMPONENT_FACTORY( yourLibName, YourKCModuleFactory("name_of_the_po_file") );
+ </pre>
+ The parameter "name_of_the_po_file" has to correspond with the messages target
+ that you created in your Makefile.am.
+ See http://developer.kde.org/documentation/other/kcm_howto.html
+ for more detailed documentation.
+ See {@link KCModuleSignals} for signals emitted by KCModule
+ @author Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
+
+ @short The base class for control center modules.
+
+*/
+public class KCModule extends QWidget {
+ protected KCModule(Class dummy){super((Class) null);}
+ /**
+ An enumeration type for the buttons used by this module.
+ You should only use Help, Default and Apply. The rest is obsolete.
+ @short An enumeration type for the buttons used by this module.
+ @see KCModule#buttons
+ @see @see
+ @see KCModule#setButtons
+ */
+ public static final int Help = 1;
+ public static final int Default = 2;
+ public static final int Apply = 16;
+ public static final int Reset = 4;
+ public static final int Cancel = 8;
+ public static final int Ok = 32;
+ public static final int SysDefault = 64;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ public KCModule(QWidget parent, String name, String[] args) {
+ super((Class) null);
+ newKCModule(parent,name,args);
+ }
+ private native void newKCModule(QWidget parent, String name, String[] args);
+ public KCModule(QWidget parent, String name) {
+ super((Class) null);
+ newKCModule(parent,name);
+ }
+ private native void newKCModule(QWidget parent, String name);
+ public KCModule(QWidget parent) {
+ super((Class) null);
+ newKCModule(parent);
+ }
+ private native void newKCModule(QWidget parent);
+ public KCModule() {
+ super((Class) null);
+ newKCModule();
+ }
+ private native void newKCModule();
+ public KCModule(KInstanceInterface instance, QWidget parent, String[] args) {
+ super((Class) null);
+ newKCModule(instance,parent,args);
+ }
+ private native void newKCModule(KInstanceInterface instance, QWidget parent, String[] args);
+ public KCModule(KInstanceInterface instance, QWidget parent) {
+ super((Class) null);
+ newKCModule(instance,parent);
+ }
+ private native void newKCModule(KInstanceInterface instance, QWidget parent);
+ public KCModule(KInstanceInterface instance) {
+ super((Class) null);
+ newKCModule(instance);
+ }
+ private native void newKCModule(KInstanceInterface instance);
+ /**
+ Load the configuration data into the module.
+ The load method sets the user interface elements of the
+ module to reflect the current settings stored in the
+ configuration files.
+ This method is invoked whenever the module should read its configuration
+ (most of the times from a config file) and update the user interface.
+ This happens when the user clicks the "Reset" button in the control
+ center, to undo all of his changes and restore the currently valid
+ settings.
+ If you use KConfigXT, loading is taken care of automatically and
+ you do not need to do it manually. However, if you for some reason reimplement it and
+ also are using KConfigXT, you must call this function otherwise the loading of KConfigXT
+ options will not work.
+ @short Load the configuration data into the module.
+ */
+ public native void load();
+ /**
+ Save the configuration data.
+ The save method stores the config information as shown
+ in the user interface in the config files.
+ If necessary, this method also updates the running system,
+ e.g. by restarting applications. This normally does not apply for
+ KSettings.Dialog modules where the updating is taken care of by
+ KSettings.Dispatcher.
+ save is called when the user clicks "Apply" or "Ok".
+ If you use KConfigXT, saving is taken care off automatically and
+ you do not need to load manually. However, if you for some reason reimplement it and
+ also are using KConfigXT, you must call this function, otherwise the saving of KConfigXT
+ options will not work. Call it at the very end of your reimplementation, to avoid
+ changed() signals getting emitted when you modify widgets.
+ @short Save the configuration data.
+ */
+ public native void save();
+ /**
+ Sets the configuration to sensible default values.
+ This method is called when the user clicks the "Default"
+ button. It should set the display to useful values.
+ If you use KConfigXT, you do not have to reimplement this function since
+ the fetching and settings of default values is done automatically. However, if you
+ reimplement and also are using KConfigXT, remember to call the base function at the
+ very end of your reimplementation.
+ @short Sets the configuration to sensible default values.
+ */
+ public native void defaults();
+ /**
+ Set the configuration to system default values.
+ This method is called when the user clicks the "System-Default"
+ button. It should set the display to the system default values.
+ @note The default behavior is to call defaults().
+ @short Set the configuration to system default values.
+ */
+ public native void sysdefaults();
+ /**
+ Return a quick-help text.
+ This method is called when the module is docked.
+ The quick-help text should contain a short description of the module and
+ links to the module's help files. You can use QML formatting tags in the text.
+ @note make sure the quick help text gets translated (use i18n()).
+ @short Return a quick-help text.
+ */
+ public native String quickHelp();
+ /**
+ This is generally only called for the KBugReport.
+ If you override you should have it return a pointer to a constant.
+ @return the KAboutData for this module
+
+ @short This is generally only called for the KBugReport.
+ */
+ public native KAboutData aboutData();
+ /**
+ This sets the KAboutData returned by aboutData()
+ @short This sets the KAboutData returned by aboutData()
+ */
+ public native void setAboutData(KAboutData about);
+ /**
+ Indicate which buttons will be used.
+ The return value is a value or'ed together from
+ the Button enumeration type.
+ @short Indicate which buttons will be used.
+ @see KCModule#setButtons
+ */
+ public native int buttons();
+ /**
+ Get the RootOnly message for this module.
+ When the module must be run as root, or acts differently
+ for root and a normal user, it is sometimes useful to
+ customize the message that appears at the top of the module
+ when used as a normal user. This function returns this
+ customized message. If none has been set, a default message
+ will be used.
+ @short Get the RootOnly message for this module.
+ @see KCModule#setRootOnlyMsg
+ */
+ public native String rootOnlyMsg();
+ /**
+ Tell if KControl should show a RootOnly message when run as
+ a normal user.
+ In some cases, the module don't want a RootOnly message to
+ appear (for example if it has already one). This function
+ tells KControl if a RootOnly message should be shown
+ @short Tell if KControl should show a RootOnly message when run as a normal user.
+ @see KCModule#setUseRootOnlyMsg
+ */
+ public native boolean useRootOnlyMsg();
+ public native KInstanceInterface instance();
+ /**
+ @return a list of @ref KConfigDialogManager's in use, if any.
+
+ @short
+ */
+ // const QPtrList<KConfigDialogManager>& configs(); >>>> NOT CONVERTED
+ /**
+ Adds a KConfigskeleton <code>config</code> to watch the widget <code>widget</code>
+ This function is useful if you need to handle multiple configuration files.
+ @param config the KConfigSkeleton to use
+ @param widget the widget to watch
+ @return a pointer to the KConfigDialogManager in use
+
+ @short Adds a KConfigskeleton <code>config</code> to watch the widget <code>widget</code>
+ */
+ // KConfigDialogManager* addConfig(KConfigSkeleton* arg1,QWidget* arg2); >>>> NOT CONVERTED
+ /**
+ Sets the quick help.
+ @short Sets the quick help.
+ */
+ protected native void setQuickHelp(String help);
+ /**
+ Sets the buttons to display.
+ Help: shows a "Help" button.
+ Default: shows a "Use Defaults" button
+ Apply: in kcontrol this will show an "Apply" and "Reset" button
+ in kcmshell this will show an "Ok", "Apply" and "Cancel" button
+ If Apply is not specified, kcmshell will show a "Close" button.
+ @short Sets the buttons to display.
+ @see KCModule#buttons
+ */
+ protected native void setButtons(int btn);
+ /**
+ Sets the RootOnly message.
+ This message will be shown at the top of the module of the
+ corresponding desktop file contains the line X-KDE-RootOnly=true.
+ If no message is set, a default one will be used.
+ @short Sets the RootOnly message.
+ @see KCModule#rootOnlyMsg
+ */
+ protected native void setRootOnlyMsg(String msg);
+ /**
+ Change whether or not the RootOnly message should be shown.
+ Following the value of <code>on</code>, the RootOnly message will be
+ shown or not.
+ @short Change whether or not the RootOnly message should be shown.
+ @see KCModule#useRootOnlyMsg
+ */
+ protected native void setUseRootOnlyMsg(boolean on);
+ /**
+ Returns the changed state of automatically managed widgets in this dialog
+ @short Returns the changed state of automatically managed widgets in this dialog
+ */
+ protected native boolean managedWidgetChangeState();
+ /**
+ Call this method when your manually managed widgets change state between
+ changed and not changed
+ @short Call this method when your manually managed widgets change state between changed and not changed
+ */
+ protected native void unmanagedWidgetChangeState(boolean arg1);
+ /**
+ Calling this slot is equivalent to emitting changed(true).
+ @short Calling this slot is equivalent to emitting changed(true).
+ */
+ protected native void changed();
+ /**
+ A managed widget was changed, the widget settings and the current
+ settings are compared and a corresponding changed() signal is emitted
+ @short A managed widget was changed, the widget settings and the current settings are compared and a corresponding changed() signal is emitted
+ */
+ protected native void widgetChanged();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCModuleInfo.java b/kdejava/koala/org/kde/koala/KCModuleInfo.java
new file mode 100644
index 00000000..a5faf1c4
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCModuleInfo.java
@@ -0,0 +1,231 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ A class that provides information about a KCModule
+ KCModuleInfo provides various technical information, such as icon, library
+ etc. about a KCModule.n
+ @note Any values set with the set functions is not
+ written back with KCModuleInfo it only reads value from the desktop file.
+ @author Daniel Molkentin <molkentin@kde.org>
+
+ @short A class that provides information about a KCModule
+
+*/
+public class KCModuleInfo implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KCModuleInfo(Class dummy){}
+
+ /**
+ Constructs a KCModuleInfo.
+ @note a KCModuleInfo object will have to be manually deleted, it is not
+ done automatically for you.
+ @param desktopFile the desktop file representing the module, or
+ the name of the module.
+ @short Constructs a KCModuleInfo.
+ */
+ public KCModuleInfo(String desktopFile) {
+ newKCModuleInfo(desktopFile);
+ }
+ private native void newKCModuleInfo(String desktopFile);
+ /**
+ Same as above but takes a KService.Ptr as argument.
+ @note <code>moduleInfo</code> must be a valid pointer.
+ @param moduleInfo specifies the module
+ @short Same as above but takes a KService.Ptr as argument.
+ */
+ // KCModuleInfo* KCModuleInfo(KService::Ptr arg1); >>>> NOT CONVERTED
+ /**
+ Same as above but takes a KCModuleInfo as argument.
+ @param rhs specifies the module
+ @short Same as above but takes a KCModuleInfo as argument.
+ */
+ public KCModuleInfo(KCModuleInfo rhs) {
+ newKCModuleInfo(rhs);
+ }
+ private native void newKCModuleInfo(KCModuleInfo rhs);
+ /**
+ Same as above but creates an empty KCModuleInfo.
+ You should not normally call this.
+ @short Same as above but creates an empty KCModuleInfo.
+ */
+ public KCModuleInfo() {
+ newKCModuleInfo();
+ }
+ private native void newKCModuleInfo();
+ /**
+ Equal operator
+ @return true if <code>rhs</code> equals itself
+
+ @short Equal operator
+ */
+ public native boolean op_equals(KCModuleInfo rhs);
+ /**
+ @return true if <code>rhs</code> is not equal itself
+
+ @short
+ */
+ public native boolean op_not_equals(KCModuleInfo rhs);
+ /**
+ @return the filename of the .desktop file that describes the KCM
+
+ @short
+ */
+ public native String fileName();
+ /**
+ @return the keywords associated with this KCM.
+
+ @short
+ */
+ public native ArrayList keywords();
+ /**
+ Returns the module's factory name, if it's set. If not, the library
+ name is returned.
+ @return the module's factory name
+
+ @short Returns the module's factory name, if it's set.
+ */
+ public native String factoryName();
+ /**
+ @return the module\'s (translated) name
+
+ @short
+ */
+ public native String moduleName();
+ /**
+ @return a KSharedPtr to KService created from the modules .desktop file
+
+ @short
+ */
+ // KService::Ptr service(); >>>> NOT CONVERTED
+ /**
+ @return the module's (translated) comment field
+
+ @short
+ */
+ public native String comment();
+ /**
+ @return the module's icon name
+
+ @short
+ */
+ public native String icon();
+ /**
+ @return the path of the module's documentation
+
+ @short
+ */
+ public native String docPath();
+ /**
+ @return the library name
+
+ @short
+ */
+ public native String library();
+ /**
+ @return a handle (usually the contents of the FactoryName field)
+
+ @short
+ */
+ public native String handle();
+ /**
+ @return the weight of the module which determines the order of the pages in
+ the KCMultiDialog. It's set by the X-KDE-Weight field.
+
+ @short
+ */
+ public native int weight();
+ /**
+ @return whether the module might require root permissions
+
+ @short
+ */
+ public native boolean needsRootPrivileges();
+ /**
+ @return true if the module should be conditionally
+ loaded.
+
+ @short
+ */
+ public native boolean needsTest();
+ /**
+ Sets the object's keywords.
+ @param keyword the new keywords
+ @short Sets the object's keywords.
+ */
+ protected native void setKeywords(String[] keyword);
+ /**
+ Sets the object's name.
+ @param name the new name
+ @short Sets the object's name.
+ */
+ protected native void setName(String name);
+ /**
+ Sets the object's name.
+ @param comment the new comment
+ @short Sets the object's name.
+ */
+ protected native void setComment(String comment);
+ /**
+ Sets the object's icon.
+ @param icon the name of the new icon
+ @short Sets the object's icon.
+ */
+ protected native void setIcon(String icon);
+ /**
+ Set the object's library
+ @param lib the name of the new library without any extensions or prefixs.
+ @short Set the object's library
+ */
+ protected native void setLibrary(String lib);
+ /**
+ Sets the factory name
+ @param handle The new factory name
+ @short Sets the factory name
+ */
+ protected native void setHandle(String handle);
+ /**
+ Sets the object's weight property which determines in what
+ order modules will be displayed. Default is 100.
+ @param weight the new weight
+ @short Sets the object's weight property which determines in what order modules will be displayed.
+ */
+ protected native void setWeight(int weight);
+ /**
+ Sets if the module should be tested for loading.
+ @param val the value to set
+ @short Sets if the module should be tested for loading.
+ */
+ protected native void setNeedsTest(boolean val);
+ /**
+ Toggles whether the represented module needs root privileges.
+ Use with caution.
+ @param needsRootPrivileges if module needs root privilges
+ @short Toggles whether the represented module needs root privileges.
+ */
+ protected native void setNeedsRootPrivileges(boolean needsRootPrivileges);
+ /**
+ Sets the object's documentation path
+ @param p the new documentation path
+ @short Sets the object's documentation path
+ */
+ protected native void setDocPath(String p);
+ /**
+ Reads the service entries specific for KCModule from the desktop file.
+ The usual desktop entries are read in init.
+ @short Reads the service entries specific for KCModule from the desktop file.
+ */
+ protected native void loadAll();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCModuleLoader.java b/kdejava/koala/org/kde/koala/KCModuleLoader.java
new file mode 100644
index 00000000..2c330b00
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCModuleLoader.java
@@ -0,0 +1,120 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ @class Loads a KControl Module.
+ KCModuleLoader tries in several ways
+ to locate and load a KCModule. If loading fails a
+ zero pointer is returned. \n
+ It is very unlikely KCModuleLoader is what you want
+ and {@link KCModuleProxy} suits your needs.
+ @author Frans Englich <frans.englich@telia.com>
+
+ @short @class Loads a KControl Module.
+
+*/
+public class KCModuleLoader implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KCModuleLoader(Class dummy){}
+
+ /**
+ Determines the way errors are reported
+ @short Determines the way errors are reported
+ */
+ public static final int None = 0;
+ public static final int Inline = 1;
+ public static final int Dialog = 2;
+ public static final int Both = 3;
+
+ public KCModuleLoader() {
+ newKCModuleLoader();
+ }
+ private native void newKCModuleLoader();
+ /**
+ Loads a {@link KCModule}. If loading fails a zero pointer is returned.
+ @param module what module to load
+ @param report see ErrorReporting
+ @param withFallback if true and loading failed a separate window
+ with the module may appear and a zero pointer is a returned
+ @return a pointer to the loaded @ref KCModule
+
+ @short Loads a @ref KCModule.
+ */
+ public static native KCModule loadModule(KCModuleInfo module, int report, boolean withFallback, QWidget parent, String name, String[] args);
+ public static native KCModule loadModule(KCModuleInfo module, int report, boolean withFallback, QWidget parent, String name);
+ public static native KCModule loadModule(KCModuleInfo module, int report, boolean withFallback, QWidget parent);
+ public static native KCModule loadModule(KCModuleInfo module, int report, boolean withFallback);
+ public static native KCModule loadModule(KCModuleInfo module, int report);
+ /**
+ Loads a {@link KCModule}. If loading fails a zero pointer is returned.
+ @param module what module to load
+ @param report see ErrorReporting
+ with the module may appear and a zero pointer is a returned
+ @return a pointer to the loaded @ref KCModule
+
+ @short Loads a @ref KCModule.
+ */
+ public static native KCModule loadModule(String module, int report, QWidget parent, String name, String[] args);
+ public static native KCModule loadModule(String module, int report, QWidget parent, String name);
+ public static native KCModule loadModule(String module, int report, QWidget parent);
+ public static native KCModule loadModule(String module, int report);
+ /**
+ Unloads the module's library
+ @param mod What module to unload for
+ @short Unloads the module's library
+ */
+ public static native void unloadModule(KCModuleInfo mod);
+ /**
+ Checks whether an KCModule should be shown by running its
+ test function. If it is unsure whether a module should be shown, it should
+ be made available, leaving the decision to the user.
+ If false is returned, the module should not be loaded in any interface.
+ A module declares it needs to be tested by having "X-KDE-Test-Module=true" in
+ its desktop file. When that line exists, the following code must be available
+ in the module's library:
+ <pre>
+ extern "C"
+ {
+ boolean test_moduleName()
+ {
+ // Code testing for hardware/software presence.
+ return true; // and the modue will be loaded.
+ }
+ }
+ </pre>
+ where moduleName is the library name for the module.
+ @param module the module to check
+ @return true if the module should be loaded
+
+ @short Checks whether an KCModule should be shown by running its test function.
+ */
+ public static native boolean testModule(String module);
+ /**
+ Convenience function, essentially the same as above.
+ @param module the module to check
+ @return true if the module should be loaded
+
+ @short Convenience function, essentially the same as above.
+ */
+ public static native boolean testModule(KCModuleInfo module);
+ /**
+ Returns a KCModule containing the messages <code>report</code> and <code>text.</code>
+ @param report the type of error reporting, see ErrorReporting
+ @param text the main message
+ @param details any additional details
+ @short Returns a KCModule containing the messages <code>report</code> and <code>text.</code>
+ */
+ public static native KCModule reportError(int report, String text, String details, QWidget parent);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCModuleSignals.java b/kdejava/koala/org/kde/koala/KCModuleSignals.java
new file mode 100644
index 00000000..c4b828e1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCModuleSignals.java
@@ -0,0 +1,25 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KCModuleSignals {
+ /**
+ Indicate that the state of the modules contents has changed.
+ This signal is emitted whenever the state of the configuration
+ shown in the module changes. It allows the control center to
+ keep track of unsaved changes.
+ @short Indicate that the state of the modules contents has changed.
+ */
+ void changed(boolean state);
+ /**
+ Indicate that the module's quickhelp has changed.
+ Emit this signal whenever the module's quickhelp changes.
+ Modules implemented as tabbed dialogs might want to implement
+ per-tab quickhelp for example.
+ @short Indicate that the module's quickhelp has changed.
+ */
+ void quickHelpChanged();
+}
diff --git a/kdejava/koala/org/kde/koala/KCMultiDialog.java b/kdejava/koala/org/kde/koala/KCMultiDialog.java
new file mode 100644
index 00000000..6203f498
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCMultiDialog.java
@@ -0,0 +1,161 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ See {@link KCMultiDialogSignals} for signals emitted by KCMultiDialog
+ @author Matthias Elter <elter@kde.org>, Daniel Molkentin <molkentin@kde.org>
+
+ @short A method that offers a KDialogBase containing arbitrary KControl Modules.
+
+*/
+public class KCMultiDialog extends KDialogBase {
+ protected KCMultiDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a new KCMultiDialog
+ @param parent The parent widget
+ @param name The widget name
+ @param modal If you pass true here, the dialog will be modal
+ @short Constructs a new KCMultiDialog
+ */
+ public KCMultiDialog(QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKCMultiDialog(parent,name,modal);
+ }
+ private native void newKCMultiDialog(QWidget parent, String name, boolean modal);
+ public KCMultiDialog(QWidget parent, String name) {
+ super((Class) null);
+ newKCMultiDialog(parent,name);
+ }
+ private native void newKCMultiDialog(QWidget parent, String name);
+ public KCMultiDialog(QWidget parent) {
+ super((Class) null);
+ newKCMultiDialog(parent);
+ }
+ private native void newKCMultiDialog(QWidget parent);
+ public KCMultiDialog() {
+ super((Class) null);
+ newKCMultiDialog();
+ }
+ private native void newKCMultiDialog();
+ /**
+ Construct a personalized KCMultiDialog.
+ @param dialogFace You can use TreeList, Tabbed, Plain, Swallow or
+ IconList.
+ @param caption The dialog caption. Do not specify the application name
+ here. The class will take care of that.
+ @param parent Parent of the dialog.
+ @param name Dialog name (for internal use only).
+ @param modal Controls dialog modality. If <code>false</code>, the rest of the
+ program interface (example: other dialogs) is accessible while
+ the dialog is open.
+ @short Construct a personalized KCMultiDialog.
+ */
+ public KCMultiDialog(int dialogFace, String caption, QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKCMultiDialog(dialogFace,caption,parent,name,modal);
+ }
+ private native void newKCMultiDialog(int dialogFace, String caption, QWidget parent, String name, boolean modal);
+ public KCMultiDialog(int dialogFace, String caption, QWidget parent, String name) {
+ super((Class) null);
+ newKCMultiDialog(dialogFace,caption,parent,name);
+ }
+ private native void newKCMultiDialog(int dialogFace, String caption, QWidget parent, String name);
+ public KCMultiDialog(int dialogFace, String caption, QWidget parent) {
+ super((Class) null);
+ newKCMultiDialog(dialogFace,caption,parent);
+ }
+ private native void newKCMultiDialog(int dialogFace, String caption, QWidget parent);
+ public KCMultiDialog(int dialogFace, String caption) {
+ super((Class) null);
+ newKCMultiDialog(dialogFace,caption);
+ }
+ private native void newKCMultiDialog(int dialogFace, String caption);
+ /**
+ Add a module.
+ @param module Specify the name of the module that is to be added
+ to the list of modules the dialog will show.
+ @param withfallback Try harder to load the module. Might result
+ in the module appearing outside the dialog.
+ @short Add a module.
+ */
+ public native void addModule(String module, boolean withfallback);
+ public native void addModule(String module);
+ /**
+ Add a module.
+ @param moduleinfo Pass a KCModuleInfo object which will be
+ used for creating the module. It will be added
+ to the list of modules the dialog will show.
+ @param parentmodulenames The names of the modules that should appear as
+ parents in the TreeList. Look at the
+ KDialogBase.addPage documentation for more info
+ on this.
+ @param withfallback Try harder to load the module. Might result
+ in the module appearing outside the dialog.
+ @short Add a module.
+ */
+ public native void addModule(KCModuleInfo moduleinfo, String[] parentmodulenames, boolean withfallback);
+ public native void addModule(KCModuleInfo moduleinfo, String[] parentmodulenames);
+ public native void addModule(KCModuleInfo moduleinfo);
+ /**
+ Remove all modules from the dialog.
+ @short Remove all modules from the dialog.
+ */
+ public native void removeAllModules();
+ /**
+ Re-implemented for internal reasons.
+ @short
+ */
+ public native void show();
+ /**
+ This slot is called when the user presses the "Default" Button.
+ You can reimplement it if needed.
+ @note Make sure you call the original implementation.
+ @short This slot is called when the user presses the "Default" Button.
+ */
+ protected native void slotDefault();
+ /**
+ This slot is called when the user presses the "Reset" Button.
+ You can reimplement it if needed.
+ @note Make sure you call the original implementation.
+ @short This slot is called when the user presses the "Reset" Button.
+ */
+ protected native void slotUser1();
+ /**
+ This slot is called when the user presses the "Apply" Button.
+ You can reimplement it if needed.
+ @note Make sure you call the original implementation.
+ @short This slot is called when the user presses the "Apply" Button.
+ */
+ protected native void slotApply();
+ /**
+ This slot is called when the user presses the "OK" Button.
+ You can reimplement it if needed.
+ @note Make sure you call the original implementation.
+ @short This slot is called when the user presses the "OK" Button.
+ */
+ protected native void slotOk();
+ /**
+ This slot is called when the user presses the "Help" Button.
+ It reads the DocPath field of the currently selected KControl
+ module's .desktop file to find the path to the documentation,
+ which it then attempts to load.
+ You can reimplement this slot if needed.
+ @note Make sure you call the original implementation.
+ @short This slot is called when the user presses the "Help" Button.
+ */
+ protected native void slotHelp();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCMultiDialogSignals.java b/kdejava/koala/org/kde/koala/KCMultiDialogSignals.java
new file mode 100644
index 00000000..28a64927
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCMultiDialogSignals.java
@@ -0,0 +1,30 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KCMultiDialogSignals {
+ /**
+ Emitted after all KCModules have been told to save their configuration.
+ The applyClicked and okClicked signals are emitted before the
+ configuration is saved.
+ @short Emitted after all KCModules have been told to save their configuration.
+ */
+ void configCommitted();
+ /**
+ Emitted after the KCModules have been told to save their configuration.
+ It is emitted once for every instance the KCMs that were changed belong
+ to.
+ You can make use of this if you have more than one component in your
+ application. instanceName tells you the instance that has to reload its
+ configuration.
+ The applyClicked and okClicked signals are emitted before the
+ configuration is saved.
+ @param instanceName The name of the instance that needs to reload its
+ configuration.
+ @short Emitted after the KCModules have been told to save their configuration.
+ */
+ void configCommitted(String instanceName);
+}
diff --git a/kdejava/koala/org/kde/koala/KCPUInfo.java b/kdejava/koala/org/kde/koala/KCPUInfo.java
new file mode 100644
index 00000000..bfd33d28
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCPUInfo.java
@@ -0,0 +1,51 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This class provides a means for applications to obtain information at
+ runtime about processor support for certain architecture extensions,
+ such as MMX, SSE, 3DNow and AltiVec.
+ @short This class provides a means for applications to obtain information at runtime about processor support for certain architecture extensions, such as MMX, SSE, 3DNow and AltiVec.
+
+*/
+public class KCPUInfo implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KCPUInfo(Class dummy){}
+
+ /**
+ This enum contains the list of architecture extensions you
+ can query.
+ @short This enum contains the list of architecture extensions you can query.
+ */
+ public static final int IntelMMX = 1<<0;
+ public static final int IntelSSE = 1<<1;
+ public static final int IntelSSE2 = 1<<2;
+ public static final int AMD3DNOW = 1<<3;
+ public static final int AltiVec = 1<<4;
+
+ public KCPUInfo() {
+ newKCPUInfo();
+ }
+ private native void newKCPUInfo();
+ /**
+ Returns true if the processor supports <code>extension</code>,
+ and false otherwise.
+ @param extension the feature to query.
+ @return If true, the processor supports <code>extension.</code>
+
+ @short Returns true if the processor supports <code>extension</code>, and false otherwise.
+ @see Extensions
+ */
+ public static native boolean haveExtension(int extension);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCalendarSystem.java b/kdejava/koala/org/kde/koala/KCalendarSystem.java
new file mode 100644
index 00000000..b27ac513
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCalendarSystem.java
@@ -0,0 +1,323 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.Calendar;
+
+/**
+
+ CalendarSystem abstract class, default derived kde gregorian class and
+ factory class. Provides support for different calendar types for kde
+ calendar widget and related stuff.
+ Derived classes must be created through KCalendarFactory class
+ @author Carlos Moro <cfmoro@correo.uniovi.es>
+
+ @short CalendarSystem abstract class, default derived kde gregorian class and factory class.
+
+*/
+public class KCalendarSystem implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KCalendarSystem(Class dummy){}
+
+ /**
+ Constructor of abstract calendar class. This will be called by the derived classes.
+ @param locale It will use this locale for translations, 0 means global.
+ @short Constructor of abstract calendar class.
+ */
+ /**
+ Gets specific calendar type year for a given gregorian date
+ @param date gregorian date
+ @return year
+
+ @short Gets specific calendar type year for a given gregorian date
+ */
+ public native int year(Calendar date);
+ /**
+ Converts a date into a year literal
+ @param pDate The date to convert
+ @param bShort If the short version of should be used
+ @return The year literal of the date
+
+ @short Converts a date into a year literal
+ */
+ public native String yearString(Calendar pDate, boolean bShort);
+ /**
+ Converts a year literal of a part of a string into a integer starting at the beginning of the string
+ @param sNum The string to parse
+ @param iLength The number of chars used, and 0 if no valid symbols was found in the string
+ @return An integer corresponding to the year
+
+ @short Converts a year literal of a part of a string into a integer starting at the beginning of the string
+ */
+ public native int yearStringToInteger(String sNum, int[] iLength);
+ /**
+ Gets specific calendar type month for a given gregorian date
+ @param date gregorian date
+ @return month number
+
+ @short Gets specific calendar type month for a given gregorian date
+ */
+ public native int month(Calendar date);
+ /**
+ Converts a date into a month literal
+ @param pDate The date to convert
+ @param bShort If the short version of should be used
+ @return The month literal of the date
+
+ @short Converts a date into a month literal
+ */
+ public native String monthString(Calendar pDate, boolean bShort);
+ /**
+ Converts a month literal of a part of a string into a integer starting at the beginning of the string
+ @param sNum The string to parse
+ @param iLength The number of chars used, and 0 if no valid symbols was found in the string
+ @return An integer corresponding to the month
+
+ @short Converts a month literal of a part of a string into a integer starting at the beginning of the string
+ */
+ public native int monthStringToInteger(String sNum, int[] iLength);
+ /**
+ Gets specific calendar type day number of month for a given date
+ @param date gregorian date equivalent to the specific one
+ @return day of the month
+
+ @short Gets specific calendar type day number of month for a given date
+ */
+ public native int day(Calendar date);
+ /**
+ Converts a date into a day literal
+ @param pDate The date to convert
+ @param bShort If the short version of should be used
+ @return The day literal of the date
+
+ @short Converts a date into a day literal
+ */
+ public native String dayString(Calendar pDate, boolean bShort);
+ /**
+ Converts a day literal of a part of a string into a integer starting at the beginning of the string
+ @param sNum The string to parse
+ @param iLength The number of chars used, and 0 if no valid symbols was found in the string
+ @return An integer corresponding to the day
+
+ @short Converts a day literal of a part of a string into a integer starting at the beginning of the string
+ */
+ public native int dayStringToInteger(String sNum, int[] iLength);
+ /**
+ Gets specific calendar type number of day of week number for a given
+ date
+ @param date gregorian date
+ @return day of week
+
+ @short Gets specific calendar type number of day of week number for a given date
+ */
+ public native int dayOfWeek(Calendar date);
+ /**
+ Gets specific calendar type day number of year for a given date
+ @param date gregorian date equivalent to the specific one
+ @return day number
+
+ @short Gets specific calendar type day number of year for a given date
+ */
+ public native int dayOfYear(Calendar date);
+ /**
+ Changes the date's year, month and day. The range of the year, month
+ and day depends on which calendar is being used.
+ @param date Date to change
+ @param y Year
+ @param m Month number
+ @param d Day of month
+ @return true if the date is valid; otherwise returns false.
+
+ @short Changes the date's year, month and day.
+ */
+ public native boolean setYMD(Calendar date, int y, int m, int d);
+ /**
+ Returns a Calendar object containing a date nyears later.
+ @param date The old date
+ @param nyears The number of years to add
+ @return The new date
+
+ @short Returns a QDate object containing a date nyears later.
+ */
+ public native Calendar addYears(Calendar date, int nyears);
+ /**
+ Returns a Calendar object containing a date nmonths later.
+ @param date The old date
+ @param nmonths The number of months to add
+ @return The new date
+
+ @short Returns a QDate object containing a date nmonths later.
+ */
+ public native Calendar addMonths(Calendar date, int nmonths);
+ /**
+ Returns a Calendar object containing a date ndays later.
+ @param date The old date
+ @param ndays The number of days to add
+ @return The new date
+
+ @short Returns a QDate object containing a date ndays later.
+ */
+ public native Calendar addDays(Calendar date, int ndays);
+ /**
+ Gets specific calendar type number of month for a given year
+ @param date The date whose year to use
+ @return The number of months in that year
+
+ @short Gets specific calendar type number of month for a given year
+ */
+ public native int monthsInYear(Calendar date);
+ /**
+ Gets the number of days in date whose years specified.
+ @param date Gregorian date equivalent to the specific one
+ @return The number of days in year
+
+ @short Gets the number of days in date whose years specified.
+ */
+ public native int daysInYear(Calendar date);
+ /**
+ Gets specific calendar type number of days in month for a given date
+ @param date gregorian date
+ @return number of days for month in date
+
+ @short Gets specific calendar type number of days in month for a given date
+ */
+ public native int daysInMonth(Calendar date);
+ /**
+ Gets the number of weeks in a specified year
+ @param year the year
+ @return number of weeks in year
+
+ @short Gets the number of weeks in a specified year
+ */
+ public native int weeksInYear(int year);
+ /**
+ Gets specific calendar type week number for a given date
+ @param date gregorian date
+ @param yearNum The year the date belongs to
+ @return week number
+
+ @short Gets specific calendar type week number for a given date
+ */
+ public native int weekNumber(Calendar date, int[] yearNum);
+ public native int weekNumber(Calendar date);
+ /**
+ Gets specific calendar type month name for a given month number
+ If an invalid month is specified, null is returned.
+ @param month The month number
+ @param year The year the month belongs to
+ @param shortName Specifies if the short month name should be used
+ @return The name of the month
+
+ @short Gets specific calendar type month name for a given month number If an invalid month is specified, String.null is returned.
+ */
+ public native String monthName(int month, int year, boolean shortName);
+ public native String monthName(int month, int year);
+ /**
+ Gets specific calendar type month name for a given gregorian date
+ @param date Gregorian date
+ @param shortName Specifies if the short month name should be used
+ @return The name of the month
+
+ @short Gets specific calendar type month name for a given gregorian date
+ */
+ public native String monthName(Calendar date, boolean shortName);
+ public native String monthName(Calendar date);
+ /**
+ Returns a string containing the possessive form of the month name.
+ ("of January", "of February", etc.)
+ It's needed in long format dates in some languages.
+ If an invalid month is specified, null is returned.
+ @param month The month number
+ @param year The year the month belongs to
+ @param shortName Specifies if the short month name should be used
+ @return The possessive form of the name of the month
+
+ @short Returns a string containing the possessive form of the month name.
+ */
+ public native String monthNamePossessive(int month, int year, boolean shortName);
+ public native String monthNamePossessive(int month, int year);
+ /**
+ Returns a string containing the possessive form of the month name.
+ ("of January", "of February", etc.)
+ It's needed in long format dates in some languages.
+ @param date Gregorian date
+ @param shortName Specifies if the short month name should be used
+ @return The possessive form of the name of the month
+
+ @short Returns a string containing the possessive form of the month name.
+ */
+ public native String monthNamePossessive(Calendar date, boolean shortName);
+ public native String monthNamePossessive(Calendar date);
+ /**
+ Gets specific calendar type week day name
+ If an invalid week day is specified, null is returned.
+ @param weekDay number of day in week (1 . Monday)
+ @param shortName short or complete day name
+ @return day name
+
+ @short Gets specific calendar type week day name If an invalid week day is specified, String.null is returned.
+ */
+ public native String weekDayName(int weekDay, boolean shortName);
+ public native String weekDayName(int weekDay);
+ /**
+ Gets specific calendar type week day name
+ @param date the date
+ @param shortName short or complete day name
+ @return day name
+
+ @short Gets specific calendar type week day name
+ */
+ public native String weekDayName(Calendar date, boolean shortName);
+ public native String weekDayName(Calendar date);
+ /**
+ Gets the first year value supported by specific calendar type
+ algorithms.
+ @return first year supported
+
+ @short Gets the first year value supported by specific calendar type algorithms.
+ */
+ public native int minValidYear();
+ /**
+ Gets the maximum year value supported by specific calendar type
+ algorithms (Calendar, 8000)
+ @return maximum year supported
+
+ @short Gets the maximum year value supported by specific calendar type algorithms (QDate, 8000)
+ */
+ public native int maxValidYear();
+ /**
+ Gets the day of the week traditionaly associated with pray
+ @return day number
+
+ @short Gets the day of the week traditionaly associated with pray
+ */
+ public native int weekDayOfPray();
+ /**
+ Gets the string representing the calendar
+ @short Gets the string representing the calendar
+ */
+ public native String calendarName();
+ /**
+ Gets if the calendar is lunar based
+ @return if the calendar is lunar based
+
+ @short Gets if the calendar is lunar based
+ */
+ public native boolean isLunar();
+ /**
+ Gets if the calendar is lunisolar based
+ @return if the calendar is lunisolar based
+
+ @short Gets if the calendar is lunisolar based
+ */
+ public native boolean isLunisolar();
+ /**
+ Gets if the calendar is solar based
+ @return if the calendar is solar based
+
+ @short Gets if the calendar is solar based
+ */
+ public native boolean isSolar();
+}
diff --git a/kdejava/koala/org/kde/koala/KCalendarSystemFactory.java b/kdejava/koala/org/kde/koala/KCalendarSystemFactory.java
new file mode 100644
index 00000000..b7786311
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCalendarSystemFactory.java
@@ -0,0 +1,52 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ Factory class for calendar types
+ @author Carlos Moro <cfmoro@correo.uniovi.es>
+
+ @short Factory class for calendar types
+
+*/
+public class KCalendarSystemFactory implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KCalendarSystemFactory(Class dummy){}
+
+ public KCalendarSystemFactory() {
+ newKCalendarSystemFactory();
+ }
+ private native void newKCalendarSystemFactory();
+ /**
+ Gets specific calendar type number of days in previous month for a
+ given date
+ @param calType string identification of the specific calendar type
+ to be constructed
+ @param locale Locale used for translations. Use the global locale when
+ 0 is specified.
+ @return a KCalendarSystem object
+
+ @short Gets specific calendar type number of days in previous month for a given date
+ */
+ public static native KCalendarSystem create(String calType, KLocale locale);
+ public static native KCalendarSystem create(String calType);
+ public static native KCalendarSystem create();
+ /**
+ Gets list of names of supported calendar systems
+ @return An ArrayList object
+
+ @short Gets list of names of supported calendar systems
+ */
+ public static native ArrayList calendarSystems();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCatalogue.java b/kdejava/koala/org/kde/koala/KCatalogue.java
new file mode 100644
index 00000000..69edbb15
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCatalogue.java
@@ -0,0 +1,91 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This class abstracts a gettext message catalog. It will take care of
+ opening the file and reading the catalog.
+ @short This class abstracts a gettext message catalog.
+ @see KLocale
+
+*/
+public class KCatalogue implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KCatalogue(Class dummy){}
+
+ /**
+ Constructor.
+ @param name The name of the catalog
+ @param language The language of this catalog
+ @short Constructor.
+ */
+ public KCatalogue(String name, String language) {
+ newKCatalogue(name,language);
+ }
+ private native void newKCatalogue(String name, String language);
+ public KCatalogue(String name) {
+ newKCatalogue(name);
+ }
+ private native void newKCatalogue(String name);
+ public KCatalogue() {
+ newKCatalogue();
+ }
+ private native void newKCatalogue();
+ /**
+ Copy constructor.
+ @short Copy constructor.
+ */
+ public KCatalogue(KCatalogue rhs) {
+ newKCatalogue(rhs);
+ }
+ private native void newKCatalogue(KCatalogue rhs);
+ /**
+ Returns the name of the catalog.
+ @return The name of the catalog
+
+ @short Returns the name of the catalog.
+ */
+ public native String name();
+ /**
+ Returns the language of the catalog.
+ @return The language of the catalog
+
+ @short Returns the language of the catalog.
+ */
+ public native String language();
+ /**
+ Returns the plural type for the catalog. This type is based on the language of the catalog
+ and is cached for performance.
+ @return The plural type for the catalog
+
+ @short Returns the plural type for the catalog.
+ */
+ public native int pluralType();
+ /**
+ Sets the plural type for the catalog. The caller has probably looked it up in a kdelibs.mo-catalog
+ for the appropriate language
+ @return The plural type for the catalog
+
+ @short Sets the plural type for the catalog.
+ */
+ public native void setPluralType(int pluralType);
+ /**
+ Retrieves a translation of the specified message id.
+ Do not pass 0 or "" strings as message ids.
+ @param msgid The message id
+ @return The translated message, in utf8 encoding, or 0 if not found
+
+ @short Retrieves a translation of the specified message id.
+ */
+ public native String translate(String msgid);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCharSelect.java b/kdejava/koala/org/kde/koala/KCharSelect.java
new file mode 100644
index 00000000..82658b2e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCharSelect.java
@@ -0,0 +1,151 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QFontDatabase;
+import org.kde.qt.QVBox;
+
+/**
+
+ This widget allows the user to select a character of a
+ specified font in a table
+ \image html kcharselect.png "Character Selection Widget"
+ You can specify the font whose characters should be displayed via
+ setFont() or in the constructor. Using enableFontCombo() you can allow the
+ user to choose the font from a combob-box. As only 256 characters
+ are displayed at once in the table, using the spinbox on the top
+ the user can choose starting from which character the table
+ displays them. This spinbox also can be enabled or disabled using
+ enableTableSpinBox().
+ KCharSelect supports keyboard and mouse navigation. Click+Move
+ always selects the character below the mouse cursor. Using the
+ arrow keys moves the focus mark around and pressing RETURN
+ or SPACE selects the cell which contains the focus mark.
+ To get the current selected character, use the chr()
+ method. You can set the character which should be displayed with
+ setChar() and the table number which should be displayed with
+ setTableNum().
+ See {@link KCharSelectSignals} for signals emitted by KCharSelect
+ @author Reginald Stadlbauer <reggie@kde.org>
+
+ @short Character selection widget.
+
+*/
+public class KCharSelect extends QVBox {
+ protected KCharSelect(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor. <code>font</code> specifies which font should be displayed, <code>chr</code> which character should be selected and <code>tableNum</code> specifies
+ the number of the table which should be displayed.
+ @short Constructor.
+ */
+ public KCharSelect(QWidget parent, String name, String font, char chr, int tableNum) {
+ super((Class) null);
+ newKCharSelect(parent,name,font,chr,tableNum);
+ }
+ private native void newKCharSelect(QWidget parent, String name, String font, char chr, int tableNum);
+ public KCharSelect(QWidget parent, String name, String font, char chr) {
+ super((Class) null);
+ newKCharSelect(parent,name,font,chr);
+ }
+ private native void newKCharSelect(QWidget parent, String name, String font, char chr);
+ public KCharSelect(QWidget parent, String name, String font) {
+ super((Class) null);
+ newKCharSelect(parent,name,font);
+ }
+ private native void newKCharSelect(QWidget parent, String name, String font);
+ public KCharSelect(QWidget parent, String name) {
+ super((Class) null);
+ newKCharSelect(parent,name);
+ }
+ private native void newKCharSelect(QWidget parent, String name);
+ /**
+ Reimplemented.
+ @short Reimplemented.
+ */
+ public native QSize sizeHint();
+ /**
+ Sets the font which is displayed to <code>font</code>
+ @short Sets the font which is displayed to <code>font</code>
+ */
+ public native void setFont(String font);
+ /**
+ Sets the currently selected character to <code>chr.</code>
+ @short Sets the currently selected character to <code>chr.</code>
+ */
+ public native void setChar(char chr);
+ /**
+ Sets the currently displayed table to <code>tableNum.</code>
+ @short Sets the currently displayed table to <code>tableNum.</code>
+ */
+ public native void setTableNum(int tableNum);
+ /**
+ Returns the currently selected character.
+ @short Returns the currently selected character.
+ */
+ public native char chr();
+ /**
+ Returns the currently displayed font.
+ @short Returns the currently displayed font.
+ */
+ public native String fontName();
+ /**
+ Returns the currently displayed table
+ @short Returns the currently displayed table
+ */
+ public native int tableNum();
+ /**
+ If <code>e</code> is set to true, the combobox which allows the user to
+ select the font which should be displayed is enabled, else
+ disabled.
+ @short If <code>e</code> is set to true, the combobox which allows the user to select the font which should be displayed is enabled, else disabled.
+ */
+ public native void enableFontCombo(boolean e);
+ /**
+ If <code>e</code> is set to true, the spinbox which allows the user to
+ specify which characters of the font should be displayed, is
+ enabled, else disabled.
+ @short
+ */
+ public native void enableTableSpinBox(boolean e);
+ /**
+ Returns wether the font combobox on the top is enabled or
+ disabled.
+ @short Returns wether the font combobox on the top is enabled or disabled.
+ @see #enableFontCombo
+ */
+ public native boolean isFontComboEnabled();
+ /**
+ Returns wether the table spinbox on the top is enabled or
+ disabled.
+ @short Returns wether the table spinbox on the top is enabled or disabled.
+ @see #enableTableSpinBox
+ */
+ public native boolean isTableSpinBoxEnabled();
+ protected native void fillFontCombo();
+ protected native void fontSelected(String _font);
+ protected native void tableChanged(int _value);
+ protected native void charHighlighted(char c);
+ protected native void charHighlighted();
+ protected native void charActivated(char c);
+ protected native void charActivated();
+ protected native void charFocusItemChanged();
+ protected native void charFocusItemChanged(char c);
+ protected native void charTableUp();
+ protected native void charTableDown();
+ protected native void slotDoubleClicked();
+ protected native void slotUnicodeEntered();
+ protected native void slotUpdateUnicode(char c);
+ protected static native void cleanupFontDatabase();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCharSelectSignals.java b/kdejava/koala/org/kde/koala/KCharSelectSignals.java
new file mode 100644
index 00000000..f925cbce
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCharSelectSignals.java
@@ -0,0 +1,19 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QFontDatabase;
+
+public interface KCharSelectSignals {
+ void highlighted(char c);
+ void highlighted();
+ void activated(char c);
+ void activated();
+ void fontChanged(String _font);
+ void focusItemChanged();
+ void focusItemChanged(char c);
+ void doubleClicked();
+}
diff --git a/kdejava/koala/org/kde/koala/KCharSelectTable.java b/kdejava/koala/org/kde/koala/KCharSelectTable.java
new file mode 100644
index 00000000..496c6cd7
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCharSelectTable.java
@@ -0,0 +1,55 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QGridView;
+
+/**
+
+ A table widget which displays the characters of a font. Internally
+ used by KCharSelect. See the KCharSelect documentation for further
+ details.
+ See {@link KCharSelectTableSignals} for signals emitted by KCharSelectTable
+ @author Reginald Stadlbauer <reggie@kde.org>
+
+ @short Character selection table.
+
+*/
+public class KCharSelectTable extends QGridView {
+ protected KCharSelectTable(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KCharSelectTable(QWidget parent, String name, String _font, char _chr, int _tableNum) {
+ super((Class) null);
+ newKCharSelectTable(parent,name,_font,_chr,_tableNum);
+ }
+ private native void newKCharSelectTable(QWidget parent, String name, String _font, char _chr, int _tableNum);
+ public native QSize sizeHint();
+ public native void resizeEvent(QResizeEvent arg1);
+ public native void setFont(String _font);
+ public native void setChar(char _chr);
+ public native void setTableNum(int _tableNum);
+ public native char chr();
+ protected native void mousePressEvent(QMouseEvent e);
+ protected native void mouseDoubleClickEvent(QMouseEvent e);
+ protected native void mouseReleaseEvent(QMouseEvent e);
+ protected native void mouseMoveEvent(QMouseEvent e);
+ protected native void keyPressEvent(QKeyEvent e);
+ protected native void gotoLeft();
+ protected native void gotoRight();
+ protected native void gotoUp();
+ protected native void gotoDown();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCharSelectTableSignals.java b/kdejava/koala/org/kde/koala/KCharSelectTableSignals.java
new file mode 100644
index 00000000..a4f766fe
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCharSelectTableSignals.java
@@ -0,0 +1,22 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+public interface KCharSelectTableSignals {
+ void highlighted(char c);
+ void highlighted();
+ void activated(char c);
+ void activated();
+ void focusItemChanged();
+ void focusItemChanged(char c);
+ void tableUp();
+ void tableDown();
+ void doubleClicked();
+}
diff --git a/kdejava/koala/org/kde/koala/KCharsets.java b/kdejava/koala/org/kde/koala/KCharsets.java
new file mode 100644
index 00000000..0d57ca40
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCharsets.java
@@ -0,0 +1,128 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QTextCodec;
+
+/**
+
+ Charset font and encoder/decoder handling.
+ This is needed, because Qt's font matching algorithm gives the font
+ family a higher priority than the charset. For many applications
+ this is not acceptable, since it can totally obscure the output,
+ in languages which use non iso-8859-1 charsets.
+ @author Lars Knoll <knoll@kde.org>
+
+ @short Charset font and encoder/decoder handling.
+
+*/
+public class KCharsets implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KCharsets(Class dummy){}
+
+ /**
+ Provided for compatibility.
+ @param name the name of the codec
+ @return the QTextCodec. If the desired codec could not be found,
+ it returns a default (Latin-1) codec
+
+ @short Provided for compatibility.
+ */
+ public native QTextCodec codecForName(String name);
+ /**
+ Tries to find a QTextCodec to convert the given encoding from and to
+ Unicode. If no codec could be found the latin1 codec will be returned an
+ <code>ok</code> will be set to false.
+ @return the QTextCodec. If the desired codec could not be found,
+ it returns a default (Latin-1) codec
+
+ @short Tries to find a QTextCodec to convert the given encoding from and to Unicode.
+ */
+ public native QTextCodec codecForName(String n, boolean ok);
+ /**
+ Lists all available encodings as names.
+ @return the list of all encodings
+
+ @short Lists all available encodings as names.
+ */
+ public native ArrayList availableEncodingNames();
+ /**
+ Lists the available encoding names together with a more descriptive language.
+ @return the list of descriptive encoding names
+
+ @short Lists the available encoding names together with a more descriptive language.
+ */
+ public native ArrayList descriptiveEncodingNames();
+ /**
+ Returns the language the encoding is used for.
+ @param encoding the encoding for the language
+ @return the language of the encoding
+
+ @short Returns the language the encoding is used for.
+ */
+ public native String languageForEncoding(String encoding);
+ /**
+ Returns the encoding for a string obtained with descriptiveEncodingNames().
+ @param descriptiveName the descriptive name for the encoding
+ @return the name of the encoding
+
+ @short Returns the encoding for a string obtained with descriptiveEncodingNames().
+ */
+ public native String encodingForName(String descriptiveName);
+ /**
+ Converts an entity to a character. The string must contain only the
+ entity without the trailing ';'.
+ @param str the entity
+ @return char.null if the entity could not be decoded.
+
+ @short Converts an entity to a character.
+ */
+ public static native char fromEntity(String str);
+ /**
+ Overloaded member function. Tries to find an entity in the
+ String str.
+ @param str the string containing entified
+ @param len is a return value, that gives the length of the decoded
+ entity.
+ @return a decoded entity if one could be found, char.null
+ otherwise
+
+ @short Overloaded member function.
+ */
+ public static native char fromEntity(String str, int[] len);
+ /**
+ Converts a char to an entity. The returned string does already
+ contain the leading '&' and the trailing ';'.
+ @param ch the char to convert
+ @return the entity
+
+ @short Converts a char to an entity.
+ */
+ public static native String toEntity(char ch);
+ /**
+ Scans the given string for entities (like &amp;amp;) and resolves them
+ using fromEntity.
+ @param text the string containing the entities
+ @return the clean string
+
+ @short Scans the given string for entities (like &amp;amp;) and resolves them using fromEntity.
+ */
+ public static native String resolveEntities(String text);
+ /** Protected constructor. If you need the kcharsets object, use
+ KGlobal.charsets() instead.
+ @short Protected constructor.
+ */
+ public KCharsets() {
+ newKCharsets();
+ }
+ private native void newKCharsets();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCmdLineArgs.java b/kdejava/koala/org/kde/koala/KCmdLineArgs.java
new file mode 100644
index 00000000..747d7420
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCmdLineArgs.java
@@ -0,0 +1,478 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+import java.util.ArrayList;
+
+/**
+
+ KCmdLineArgs provides simple access to the command-line arguments
+ for an application. It takes into account Qt-specific options,
+ KDE-specific options and application specific options.
+ This class is used in %main() via the static method
+ init().
+ A typical %KDE application using %KCmdLineArgs should look like this:
+ <pre>
+ int main(String[] args)
+ {
+ // Initialize command line args
+ KCmdLineArgs.init(args, appName, programName, description, version);
+ // Tell which options are supported
+ KCmdLineArgs.addCmdLineOptions( options );
+ // Add options from other components
+ KUniqueApplication.addCmdLineOptions();
+ ....
+ // Create application object without passing 'argc' and 'argv' again.
+ KUniqueApplication app;
+ ....
+ // Handle our own options/arguments
+ // A KApplication will usually do this in main but this is not
+ // necessary.
+ // A KUniqueApplication might want to handle it in newInstance().
+ KCmdLineArgs args = KCmdLineArgs.parsedArgs();
+ // A binary option (on / off)
+ if (args.isSet("some-option"))
+ ....
+ // An option which takes an additional argument
+ String anotherOptionArg = args.getOption("another-option");
+ // Arguments (e.g. files to open)
+ for(int i = 0; i < args.count(); i++) // Counting start at 0!
+ {
+ // don't forget to convert to Unicode!
+ openFile( QFile.decodeName( args.arg(i)));
+ // Or more convenient:
+ // openURL( args.url(i));
+ }
+ args.clear(); // Free up some memory.
+ ....
+ }
+ </pre>
+ The options that an application supports are configured using the
+ String[][] class. An example is shown below:
+ <pre>
+ static String[][] options =
+ {
+ { "a", I18N_NOOP("A short binary option"), 0 },
+ { "b \<file>", I18N_NOOP("A short option which takes an argument"), 0 },
+ { "c \<speed>", I18N_NOOP("As above but with a default value"), "9600" },
+ { "option1", I18N_NOOP("A long binary option, off by default"), 0 },
+ { "nooption2", I18N_NOOP("A long binary option, on by default"), 0 },
+ { ":", I18N_NOOP("Extra options:"), 0 },
+ { "option3 \<file>", I18N_NOOP("A long option which takes an argument"), 0 },
+ { "option4 \<speed>", I18N_NOOP("A long option which takes an argument, defaulting to 9600"), "9600" },
+ { "d", 0, 0 },
+ { "option5", I18N_NOOP("A long option which has a short option as alias"), 0 },
+ { "e", 0, 0 },
+ { "nooption6", I18N_NOOP("Another long option with an alias"), 0 },
+ { "f", 0, 0 },
+ { "option7 \<speed>", I18N_NOOP("'--option7 speed' is the same as '-f speed'"), 0 },
+ { "!option8 \<cmd>", I18N_NOOP("All options following this one will be treated as arguments"), 0 },
+ { "+file", I18N_NOOP("A required argument 'file'"), 0 },
+ { "+[arg1]", I18N_NOOP("An optional argument 'arg1'"), 0 },
+ { "!+command", I18N_NOOP("A required argument 'command', that can contain multiple words, even starting with '-'"), 0 },
+ { "", I18N_NOOP("Additional help text not associated with any particular option") 0 },
+ // End of options.
+ }
+ </pre>
+ The I18N_NOOP macro is used to indicate that these strings should be
+ marked for translation. The actual translation is done by KCmdLineArgs.
+ You can't use i18n() here because we are setting up a static data
+ structure and can't do translations at compile time.
+ Note that a program should define the options before any arguments.
+ When a long option has a short option as an alias, a program should
+ only test for the long option.
+ With the above options a command line could look like:
+ <pre>
+ myapp -a -c 4800 --display localhost:0.0 --nooption5 -d /tmp/file
+ </pre>
+ Long binary options can be in the form 'option' and 'nooption'.
+ A command line may contain the same binary option multiple times,
+ the last option determines the outcome:
+ <pre>
+ myapp --nooption4 --option4 --nooption4
+ </pre>
+ is the same as:
+ <pre>
+ myapp --nooption4
+ </pre>
+ If an option value is provided multiple times, normally only the last
+ value is used:
+ <pre>
+ myapp -c 1200 -c 2400 -c 4800
+ </pre>
+ is usually the same as:
+ <pre>
+ myapp -c 4800
+ </pre>
+ However, an application can choose to use all values specified as well.
+ As an example of this, consider that you may wish to specify a
+ number of directories to use:
+ <pre>
+ myapp -I /usr/include -I /opt/kde/include -I /usr/X11/include
+ </pre>
+ When an application does this it should mention this in the description
+ of the option. To access these options, use getOptionList()
+ Tips for end-users:
+
+ <li>
+ Single char options like "-a -b -c" may be combined into "-abc"
+ </li>
+
+ <li>
+ The option "--foo bar" may also be written "--foo=bar"
+ </li>
+
+ <li>
+ The option "-P lp1" may also be written "-P=lp1" or "-Plp1"
+ </li>
+
+ <li>
+ The option "--foo bar" may also be written "-foo bar"
+ </li>
+ @author Waldo Bastian
+
+ @version 0.0.4
+
+ @short A class for command-line argument handling.
+
+*/
+public class KCmdLineArgs implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KCmdLineArgs(Class dummy){}
+
+ /**
+ Read out a string option.
+ The option must have a corresponding String[][] entry
+ of the form:
+ <pre>
+ { "option \<argument>", I18N_NOOP("Description"), "default" }
+ </pre>
+ You cannot test for the presence of an alias - you must always
+ test for the full option.
+ @param option The name of the option without '-'.
+ @return The value of the option. If the option was not
+ present on the command line the default is returned.
+ If the option was present more than the value of the
+ last occurrence is used.
+
+ @short Read out a string option.
+ */
+ public native String getOption(String option);
+ /**
+ Read out all occurrences of a string option.
+ The option must have a corresponding String[][] entry
+ of the form:
+ <pre>
+ { "option \<argument>", I18N_NOOP("Description"), "default" }
+ </pre>
+ You cannot test for the presence of an alias - you must always
+ test for the full option.
+ @param option The name of the option, without '-' or '-no'.
+ @return A list of all option values. If no option was present
+ on the command line, an empty list is returned.
+
+ @short Read out all occurrences of a string option.
+ */
+ public native ArrayList getOptionList(String option);
+ /**
+ Read out a booleanean option or check for the presence of string option.
+ @param option The name of the option without '-' or '-no'.
+ @return The value of the option. It will be true if the option
+ was specifically turned on in the command line, or if the option
+ is turned on by default (in the String[][] list) and was
+ not specifically turned off in the command line. Equivalently,
+ it will be false if the option was specifically turned off in
+ the command line, or if the option is turned off by default (in
+ the KCmdLineOptions list) and was not specifically turned on in
+ the command line.
+
+ @short Read out a boolean option or check for the presence of string option.
+ */
+ public native boolean isSet(String option);
+ /**
+ Read the number of arguments that aren't options (but,
+ for example, filenames).
+ @return The number of arguments that aren't options
+
+ @short Read the number of arguments that aren't options (but, for example, filenames).
+ */
+ public native int count();
+ /**
+ Read out an argument.
+ @param n The argument to read. 0 is the first argument.
+ count()-1 is the last argument.
+ @return A <code>const</code> <code>char</code> <code></code>* pointer to the n'th argument.
+
+ @short Read out an argument.
+ */
+ public native String arg(int n);
+ /**
+ Read out an argument representing a URL.
+ The argument can be
+
+ <li>
+ an absolute filename
+ </li>
+
+ <li>
+ a relative filename
+ </li>
+
+ <li>
+ a URL
+ </li>
+ @param n The argument to read. 0 is the first argument.
+ count()-1 is the last argument.
+ @return a URL representing the n'th argument.
+
+ @short Read out an argument representing a URL.
+ */
+ public native KURL url(int n);
+ /**
+ Clear all options and arguments.
+ @short Clear all options and arguments.
+ */
+ public native void clear();
+ /**
+ Initialize class.
+ This function should be called as the very first thing in
+ your application.
+ @param _argv As passed to <code>main</code>(...).
+ @param _appname The untranslated name of your application. This should
+ match with <code>argv</code>[0].
+ @param programName A program name string to be used for display
+ purposes. This string should be marked for
+ translation. Example: I18N_NOOP("KEdit")
+ @param _description A short description of what your application is about.
+ @param _version A version.
+ @param noKApp Set this true to not add commandline options for
+ QApplication / KApplication
+ @short Initialize class.
+ */
+ public static native void init(String[] _argv, String _appname, String programName, String _description, String _version, boolean noKApp);
+ public static native void init(String[] _argv, String _appname, String programName, String _description, String _version);
+ /**
+ Initialize class.
+ This function should be called as the very first thing in
+ your application. It uses KAboutData to replace some of the
+ arguments that would otherwise be required.
+ @param _argv As passed to <code>main</code>(...).
+ @param about A KAboutData object describing your program.
+ @param noKApp Set this true to not add commandline options for
+ QApplication / KApplication
+ @short Initialize class.
+ */
+ public static native void init(String[] _argv, KAboutData about, boolean noKApp);
+ public static native void init(String[] _argv, KAboutData about);
+ /**
+ Initialize Class
+ This function should be called as the very first thing in your
+ application. This method will rarely be used, since it doesn't
+ provide any argument parsing. It does provide access to the
+ KAboutData information.
+ This method is exactly the same as calling
+ init(0,0, const KAboutData about, true).
+ @param about the about data.
+ \see KAboutData
+ @short Initialize Class
+ */
+ public static native void init(KAboutData about);
+ /**
+ Add options to your application.
+ You must make sure that all possible options have been added before
+ any class uses the command line arguments.
+ The list of options should look like this:
+ <pre>
+ static String[][] options =
+ {
+ { "option1 \<argument>", I18N_NOOP("Description 1"), "my_extra_arg" },
+ { "o", 0, 0 },
+ { "option2", I18N_NOOP("Description 2"), 0 },
+ { "nooption3", I18N_NOOP("Description 3"), 0 },
+
+ }
+ </pre>
+
+ <li>
+ "option1" is an option that requires an additional argument,
+ but if one is not provided, it uses "my_extra_arg".
+ </li>
+
+ <li>
+ "option2" is an option that can be turned on. The default is off.
+ </li>
+
+ <li>
+ "option3" is an option that can be turned off. The default is on.
+ </li>
+
+ <li>
+ "o" does not have a description. It is an alias for the option
+ that follows. In this case "option2".
+ </li>
+
+ <li>
+ "+file" specifies an argument. The '+' is removed. If your program
+ doesn't specify that it can use arguments your program will abort
+ when an argument is passed to it. Note that the reverse is not
+ true. If required, you must check yourself the number of arguments
+ specified by the user:
+ <pre>
+ KCmdLineArgs args = KCmdLineArgs.parsedArgs();
+ if (args.count() == 0) KCmdLineArgs.usage(i18n("No file specified!"));
+ </pre>
+ </li>
+ In BNF:
+ <pre>
+ cmd = myapp [options] file
+ options = (option)
+ option = --option1 \<argument> |
+ (-o | --option2 | --nooption2) |
+ ( --option3 | --nooption3 )
+ </pre>
+ Instead of "--option3" one may also use "-option3"
+ Usage examples:
+
+ <li>
+ "myapp --option1 test"
+ </li>
+
+ <li>
+ "myapp" (same as "myapp --option1 my_extra_arg")
+ </li>
+
+ <li>
+ "myapp --option2"
+ </li>
+
+ <li>
+ "myapp --nooption2" (same as "myapp", since it is off by default)
+ </li>
+
+ <li>
+ "myapp -o" (same as "myapp --option2")
+ </li>
+
+ <li>
+ "myapp --nooption3"
+ </li>
+
+ <li>
+ "myapp --option3 (same as "myapp", since it is on by default)
+ </li>
+
+ <li>
+ "myapp --option2 --nooption2" (same as "myapp", because it
+ option2 is off by default, and the last usage applies)
+ </li>
+
+ <li>
+ "myapp /tmp/file"
+ </li>
+ @param options A list of options that your code supplies.
+ @param name the name of the option, can be 0.
+ @param id A name with which these options can be identified, can be 0.
+ @param afterId The options are inserted after this set of options, can be 0.
+ @short Add options to your application.
+ */
+ public static native void addCmdLineOptions(String[][] options, String name, String id, String afterId);
+ public static native void addCmdLineOptions(String[][] options, String name, String id);
+ public static native void addCmdLineOptions(String[][] options, String name);
+ public static native void addCmdLineOptions(String[][] options);
+ /**
+ Access parsed arguments.
+ This function returns all command line arguments that your code
+ handles. If unknown command-line arguments are encountered the program
+ is aborted and usage information is shown.
+ @param id The name of the options you are interested in, can be 0.
+ @short Access parsed arguments.
+ */
+ public static native KCmdLineArgs parsedArgs(String id);
+ public static native KCmdLineArgs parsedArgs();
+ /**
+ Get the CWD (Current Working Directory) associated with the
+ current command line arguments.
+ Typically this is needed in KUniqueApplication.newInstance()
+ since the CWD of the process may be different from the CWD
+ where the user started a second instance.
+ @return the current working directory
+
+ @short Get the CWD (Current Working Directory) associated with the current command line arguments.
+ */
+ public static native String cwd();
+ /**
+ Get the appname according to argv[0].
+ @return the name of the application
+
+ @short Get the appname according to argv[0].
+ */
+ public static native String appName();
+ /**
+ Print the usage help to stdout and exit.
+ @param id if 0, print all options. If id is set, only print the
+ option specified by id. The id is the value set by
+ addCmdLineOptions().
+ @short Print the usage help to stdout and exit.
+ */
+ public static native void usage(String id);
+ public static native void usage();
+ /**
+ Enable i18n to be able to print a translated error message.
+ N.B.: This function leaks memory, therefore you are expected to exit
+ afterwards (e.g., by calling usage()).
+ @short Enable i18n to be able to print a translated error message.
+ */
+ public static native void enable_i18n();
+ /**
+ Used by url().
+ Made public for apps that don't use KCmdLineArgs
+ @param urlArg the argument
+ @return the url.
+
+ @short Used by url().
+ */
+ public static native KURL makeURL(String urlArg);
+ /**
+ Made public for apps that don't use KCmdLineArgs
+ To be done before makeURL, to set the current working
+ directory in case makeURL needs it.
+ @param cwd the new working directory
+ @short Made public for apps that don't use KCmdLineArgs To be done before makeURL, to set the current working directory in case makeURL needs it.
+ */
+ public static native void setCwd(String cwd);
+ /**
+ Reset all option definitions, i.e. cancel all addCmdLineOptions calls.
+ Note that KApplication's options are removed too, you might want to
+ call KApplication.addCmdLineOptions if you want them back.
+ You usually don't want to call this method.
+ @short Reset all option definitions, i.
+ */
+ public static native void reset();
+ /**
+ Load arguments from a stream.
+ @short Load arguments from a stream.
+ */
+ public static native void loadAppArgs(QDataStream arg1);
+ /**
+ Add standard option --tempfile
+ @short Add standard option --tempfile
+ */
+ public static native void addTempFileOption();
+ /**
+ @return true if --tempfile was set
+
+ @short
+ */
+ public static native boolean isTempFileSet();
+ /**
+ Constructor.
+ @short
+ */
+ public KCmdLineArgs(String[][] _options, String _name, String _id) {
+ newKCmdLineArgs(_options,_name,_id);
+ }
+ private native void newKCmdLineArgs(String[][] _options, String _name, String _id);
+}
diff --git a/kdejava/koala/org/kde/koala/KCodecs.java b/kdejava/koala/org/kde/koala/KCodecs.java
new file mode 100644
index 00000000..5d266db3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCodecs.java
@@ -0,0 +1,272 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A wrapper class for the most commonly used encoding and
+ decoding algorithms. Currently there is support for encoding
+ and decoding input using base64, uu and the quoted-printable
+ specifications.
+ <b></b>sage:
+ <pre>
+ String input = "Aladdin:open sesame";
+ String result = KCodecs.base64Encode(input);
+ cout << "Result: " << result.data() << endl;
+ </pre>
+ <pre>
+ Output should be
+ Result: QWxhZGRpbjpvcGVuIHNlc2FtZQ==
+ </pre>
+ The above example makes use of the convenience functions
+ (ones that accept/return null-terminated strings) to encode/decode
+ a string. If what you need is to encode or decode binary data, then
+ it is highly recommended that you use the functions that take an input
+ and output byte[] as arguments. These functions are specifically
+ tailored for encoding and decoding binary data.
+ @author Rik Hemsley <rik@kde.org>
+
+ @short A collection of commonly used encoding and decoding algorithms.
+
+*/
+public class KCodecs implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KCodecs(Class dummy){}
+
+ /**
+ Encodes the given data using the quoted-printable algorithm.
+ @param in data to be encoded.
+ @param useCRLF if true the input data is expected to have
+ CRLF line breaks and the output will have CRLF line
+ breaks, too.
+ @return quoted-printable encoded string.
+
+ @short Encodes the given data using the quoted-printable algorithm.
+ */
+ public static native String quotedPrintableEncode(byte[] in, boolean useCRLF);
+ public static native String quotedPrintableEncode(byte[] in);
+ /**
+ @overload
+ Same as above except it accepts a null terminated
+ string instead an array.
+ @param str string to be encoded.
+ @param useCRLF if true the input data is expected to have
+ CRLF line breaks and the output will have CRLF line
+ breaks, too.
+ @return quoted-printable encoded string.
+
+ @short @overload
+ */
+ public static native String quotedPrintableEncode(String str, boolean useCRLF);
+ public static native String quotedPrintableEncode(String str);
+ /**
+ Encodes the given data using the quoted-printable algorithm.
+ Use this function if you want the result of the encoding
+ to be placed in another array which cuts down the number
+ of copy operation that have to be performed in the process.
+ This is also the preferred method for encoding binary data.
+ NOTE: the output array is first reset and then resized
+ appropriately before use, hence, all data stored in the
+ output array will be lost.
+ @param in data to be encoded.
+ @param out encoded data.
+ @param useCRLF if true the input data is expected to have
+ CRLF line breaks and the output will have CRLF line
+ breaks, too.
+ @short Encodes the given data using the quoted-printable algorithm.
+ */
+ public static native void quotedPrintableEncode(byte[] in, byte[] out, boolean useCRLF);
+ /**
+ Decodes a quoted-printable encoded data.
+ Accepts data with CRLF or standard unix line breaks.
+ @param in data to be decoded.
+ @return decoded string.
+
+ @short Decodes a quoted-printable encoded data.
+ */
+ public static native String quotedPrintableDecode(byte[] in);
+ /**
+ @overload
+ Same as above except it accepts a null terminated
+ string instead an array.
+ @param str string to be decoded.
+ @return decoded string.
+
+ @short @overload
+ */
+ public static native String quotedPrintableDecode(String str);
+ /**
+ Decodes a quoted-printable encoded data.
+ Accepts data with CRLF or standard unix line breaks.
+ Use this function if you want the result of the decoding
+ to be placed in another array which cuts down the number
+ of copy operation that have to be performed in the process.
+ This is also the preferred method for decoding an encoded
+ binary data.
+ NOTE: the output array is first reset and then resized
+ appropriately before use, hence, all data stored in the
+ output array will be lost.
+ @param in data to be decoded.
+ @param out decoded data.
+ @short Decodes a quoted-printable encoded data.
+ */
+ public static native void quotedPrintableDecode(byte[] in, byte[] out);
+ /**
+ Encodes the given data using the uuencode algorithm.
+ The output is split into lines starting with the number of
+ encoded octets in the line and ending with a newline. No
+ line is longer than 45 octets (60 characters), excluding the
+ line terminator.
+ @param in data to be uuencoded
+ @return uuencoded string.
+
+ @short Encodes the given data using the uuencode algorithm.
+ */
+ public static native String uuencode(byte[] in);
+ /**
+ @overload
+ Same as the above functions except it accepts
+ a null terminated string instead an array.
+ @param str string to be uuencoded.
+ @return encoded string.
+
+ @short @overload
+ */
+ public static native String uuencode(String str);
+ /**
+ Encodes the given data using the uuencode algorithm.
+ Use this function if you want the result of the encoding
+ to be placed in another array and cut down the number of
+ copy operation that have to be performed in the process.
+ This is the preffered method for encoding binary data.
+ NOTE: the output array is first reset and then resized
+ appropriately before use, hence, all data stored in the
+ output array will be lost.
+ @param in data to be uuencoded.
+ @param out uudecoded data.
+ @short Encodes the given data using the uuencode algorithm.
+ */
+ public static native void uuencode(byte[] in, byte[] out);
+ /**
+ Decodes the given data using the uudecode algorithm.
+ Any 'begin' and 'end' lines like those generated by
+ the utilities in unix and unix-like OS will be
+ automatically ignored.
+ @param in data to be decoded.
+ @return decoded string.
+
+ @short Decodes the given data using the uudecode algorithm.
+ */
+ public static native String uudecode(byte[] in);
+ /**
+ @overload
+ Same as the above functions except it accepts
+ a null terminated string instead an array.
+ @param str string to be decoded.
+ @return uudecoded string.
+
+ @short @overload
+ */
+ public static native String uudecode(String str);
+ /**
+ Decodes the given data using the uudecode algorithm.
+ Use this function if you want the result of the decoding
+ to be placed in another array which cuts down the number
+ of copy operation that have to be performed in the process.
+ This is the preferred method for decoding binary data.
+ Any 'begin' and 'end' lines like those generated by
+ the utilities in unix and unix-like OS will be
+ automatically ignored.
+ NOTE: the output array is first reset and then resized
+ appropriately before use, hence, all data stored in the
+ output array will be lost.
+ @param in data to be decoded.
+ @param out uudecoded data.
+ @short Decodes the given data using the uudecode algorithm.
+ */
+ public static native void uudecode(byte[] in, byte[] out);
+ /**
+ Encodes the given data using the base64 algorithm.
+ The booleanean argument determines if the encoded data is
+ going to be restricted to 76 characters or less per line
+ as specified by RFC 2045. If <code>insertLFs</code> is true, then
+ there will be 76 characters or less per line.
+ @param in data to be encoded.
+ @param insertLFs limit the number of characters per line.
+ @return base64 encoded string.
+
+ @short Encodes the given data using the base64 algorithm.
+ */
+ public static native String base64Encode(byte[] in, boolean insertLFs);
+ public static native String base64Encode(byte[] in);
+ /**
+ @overload
+ Same as the above functions except it accepts
+ a null terminated string instead an array.
+ @param str string to be encoded.
+ @param insertLFs limit the number of characters per line.
+ @return decoded string.
+
+ @short @overload
+ */
+ public static native String base64Encode(String str, boolean insertLFs);
+ public static native String base64Encode(String str);
+ /**
+ Encodes the given data using the base64 algorithm.
+ Use this function if you want the result of the encoding
+ to be placed in another array which cuts down the number
+ of copy operation that have to be performed in the process.
+ This is also the preferred method for encoding binary data.
+ The booleanean argument determines if the encoded data is going
+ to be restricted to 76 characters or less per line as specified
+ by RFC 2045. If <code>insertLFs</code> is true, then there will be 76
+ characters or less per line.
+ NOTE: the output array is first reset and then resized
+ appropriately before use, hence, all data stored in the
+ output array will be lost.
+ @param in data to be encoded.
+ @param out encoded data.
+ @param insertLFs limit the number of characters per line.
+ @short Encodes the given data using the base64 algorithm.
+ */
+ public static native void base64Encode(byte[] in, byte[] out, boolean insertLFs);
+ public static native void base64Encode(byte[] in, byte[] out);
+ /**
+ Decodes the given data that was encoded using the
+ base64 algorithm.
+ @param in data to be decoded.
+ @return decoded string.
+
+ @short Decodes the given data that was encoded using the base64 algorithm.
+ */
+ public static native String base64Decode(byte[] in);
+ /**
+ @overload
+ Same as the above functions except it accepts
+ a null terminated string instead an array.
+ @param str string to be decoded.
+ @return decoded string.
+
+ @short @overload
+ */
+ public static native String base64Decode(String str);
+ /**
+ Decodes the given data that was encoded with the base64
+ algorithm.
+ Use this function if you want the result of the decoding
+ to be placed in another array which cuts down the number
+ of copy operation that have to be performed in the process.
+ This is also the preferred method for decoding an encoded
+ binary data.
+ NOTE: the output array is first reset and then resized
+ appropriately before use, hence, all data stored in the
+ output array will be lost.
+ @param in data to be decoded.
+ @param out decoded data.
+ @short Decodes the given data that was encoded with the base64 algorithm.
+ */
+ public static native void base64Decode(byte[] in, byte[] out);
+}
diff --git a/kdejava/koala/org/kde/koala/KColor.java b/kdejava/koala/org/kde/koala/KColor.java
new file mode 100644
index 00000000..82cd66b2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KColor.java
@@ -0,0 +1,49 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QColor;
+
+/**
+
+ A color class that preserves both RGB and HSV values.
+ This is
+ unlike QColor which only preserves RGB values and recalculates HSV
+ values. The QColor behavior leads to an accumulation of rounding
+ errors when working in the HSV color space.
+ @author Waldo Bastian <bastian@kde.org>
+
+ @short A color class that preserves both RGB and HSV values.
+
+*/
+public class KColor extends QColor {
+ protected KColor(Class dummy){super((Class) null);}
+ public KColor() {
+ super((Class) null);
+ newKColor();
+ }
+ private native void newKColor();
+ public KColor(KColor col) {
+ super((Class) null);
+ newKColor(col);
+ }
+ private native void newKColor(KColor col);
+ public KColor(QColor col) {
+ super((Class) null);
+ newKColor(col);
+ }
+ private native void newKColor(QColor col);
+ public native boolean op_equals(KColor col);
+ public native void setHsv(int _h, int _s, int _v);
+ public native void setRgb(int _r, int _g, int _b);
+ public native void rgb(int[] _r, int[] _g, int[] _b);
+ public native void hsv(int[] _h, int[] _s, int[] _v);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KColorButton.java b/kdejava/koala/org/kde/koala/KColorButton.java
new file mode 100644
index 00000000..610249e1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KColorButton.java
@@ -0,0 +1,103 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QSize;
+import org.kde.qt.QPainter;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QPushButton;
+
+/**
+
+ This widget can be used to display or allow user selection of a color.
+ \image html kcolorbutton.png "KDE Color Button"
+ See {@link KColorButtonSignals} for signals emitted by KColorButton
+ @short A pushbutton to display or allow user selection of a color.
+ @see KColorDialog
+
+*/
+public class KColorButton extends QPushButton {
+ protected KColorButton(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a color button.
+ @short Creates a color button.
+ */
+ public KColorButton(QWidget parent, String name) {
+ super((Class) null);
+ newKColorButton(parent,name);
+ }
+ private native void newKColorButton(QWidget parent, String name);
+ public KColorButton(QWidget parent) {
+ super((Class) null);
+ newKColorButton(parent);
+ }
+ private native void newKColorButton(QWidget parent);
+ /**
+ Creates a color button with an initial color <code>c.</code>
+ @short Creates a color button with an initial color <code>c.</code>
+ */
+ public KColorButton(QColor c, QWidget parent, String name) {
+ super((Class) null);
+ newKColorButton(c,parent,name);
+ }
+ private native void newKColorButton(QColor c, QWidget parent, String name);
+ public KColorButton(QColor c, QWidget parent) {
+ super((Class) null);
+ newKColorButton(c,parent);
+ }
+ private native void newKColorButton(QColor c, QWidget parent);
+ public KColorButton(QColor c, QColor defaultColor, QWidget parent, String name) {
+ super((Class) null);
+ newKColorButton(c,defaultColor,parent,name);
+ }
+ private native void newKColorButton(QColor c, QColor defaultColor, QWidget parent, String name);
+ public KColorButton(QColor c, QColor defaultColor, QWidget parent) {
+ super((Class) null);
+ newKColorButton(c,defaultColor,parent);
+ }
+ private native void newKColorButton(QColor c, QColor defaultColor, QWidget parent);
+ /**
+ Returns the currently chosen color.
+ @short Returns the currently chosen color.
+ */
+ public native QColor color();
+ /**
+ Sets the current color to <code>c.</code>
+ @short Sets the current color to <code>c.</code>
+ */
+ public native void setColor(QColor c);
+ /**
+ Returns the default color or an invalid color
+ if no default color is set.
+ @short Returns the default color or an invalid color if no default color is set.
+ */
+ public native QColor defaultColor();
+ /**
+ Sets the default color to <code>c.</code>
+ @short Sets the default color to <code>c.</code>
+ */
+ public native void setDefaultColor(QColor c);
+ public native QSize sizeHint();
+ protected native void drawButtonLabel(QPainter p);
+ protected native void dragEnterEvent(QDragEnterEvent arg1);
+ protected native void dropEvent(QDropEvent arg1);
+ protected native void mousePressEvent(QMouseEvent e);
+ protected native void mouseMoveEvent(QMouseEvent e);
+ protected native void keyPressEvent(QKeyEvent e);
+ protected native void chooseColor();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KColorButtonSignals.java b/kdejava/koala/org/kde/koala/KColorButtonSignals.java
new file mode 100644
index 00000000..488ed575
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KColorButtonSignals.java
@@ -0,0 +1,22 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QSize;
+import org.kde.qt.QPainter;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+
+public interface KColorButtonSignals {
+ /**
+ Emitted when the color of the widget
+ is changed, either with setColor() or via user selection.
+ @short Emitted when the color of the widget is changed, either with setColor() or via user selection.
+ */
+ void changed(QColor newColor);
+}
diff --git a/kdejava/koala/org/kde/koala/KColorCells.java b/kdejava/koala/org/kde/koala/KColorCells.java
new file mode 100644
index 00000000..b7fad405
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KColorCells.java
@@ -0,0 +1,57 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QPainter;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QGridView;
+
+/**
+
+ A table of editable color cells.
+ See {@link KColorCellsSignals} for signals emitted by KColorCells
+ @author Martin Jones <mjones@kde.org>
+
+ @short A table of editable color cells.
+
+*/
+public class KColorCells extends QGridView {
+ protected KColorCells(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KColorCells(QWidget parent, int rows, int cols) {
+ super((Class) null);
+ newKColorCells(parent,rows,cols);
+ }
+ private native void newKColorCells(QWidget parent, int rows, int cols);
+ public native void setColor(int colNum, QColor col);
+ public native QColor color(int indx);
+ public native int numCells();
+ public native void setShading(boolean _shade);
+ public native void setAcceptDrags(boolean _acceptDrags);
+ public native int getSelected();
+ public native void paintCell(QPainter painter, int row, int col);
+ protected native void resizeEvent(QResizeEvent arg1);
+ protected native void mouseReleaseEvent(QMouseEvent arg1);
+ protected native void mousePressEvent(QMouseEvent arg1);
+ protected native void mouseMoveEvent(QMouseEvent arg1);
+ protected native void dragEnterEvent(QDragEnterEvent arg1);
+ protected native void dropEvent(QDropEvent arg1);
+ protected native void mouseDoubleClickEvent(QMouseEvent arg1);
+ protected native int posToCell(QPoint pos, boolean ignoreBorders);
+ protected native int posToCell(QPoint pos);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KColorCellsSignals.java b/kdejava/koala/org/kde/koala/KColorCellsSignals.java
new file mode 100644
index 00000000..a7a13184
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KColorCellsSignals.java
@@ -0,0 +1,18 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QPainter;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+public interface KColorCellsSignals {
+ void colorSelected(int col);
+ void colorDoubleClicked(int col);
+}
diff --git a/kdejava/koala/org/kde/koala/KColorCombo.java b/kdejava/koala/org/kde/koala/KColorCombo.java
new file mode 100644
index 00000000..e7ecdfaf
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KColorCombo.java
@@ -0,0 +1,59 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QComboBox;
+
+/**
+
+ Combobox for colors.
+ See {@link KColorComboSignals} for signals emitted by KColorCombo
+ @short Combobox for colors.
+
+*/
+public class KColorCombo extends QComboBox {
+ protected KColorCombo(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a color combo box.
+ @short Constructs a color combo box.
+ */
+ public KColorCombo(QWidget parent, String name) {
+ super((Class) null);
+ newKColorCombo(parent,name);
+ }
+ private native void newKColorCombo(QWidget parent, String name);
+ public KColorCombo(QWidget parent) {
+ super((Class) null);
+ newKColorCombo(parent);
+ }
+ private native void newKColorCombo(QWidget parent);
+ /**
+ Selects the color <code>col.</code>
+ @short Selects the color <code>col.</code>
+ */
+ public native void setColor(QColor col);
+ /**
+ Returns the currently selected color.
+ @short Returns the currently selected color.
+ */
+ public native QColor color();
+ /**
+ Clear the color list and don't show it, till the next setColor() call
+ @short Clear the color list and don't show it, till the next setColor() call
+ */
+ public native void showEmptyList();
+ protected native void resizeEvent(QResizeEvent re);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KColorComboSignals.java b/kdejava/koala/org/kde/koala/KColorComboSignals.java
new file mode 100644
index 00000000..3a9a7e78
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KColorComboSignals.java
@@ -0,0 +1,21 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+public interface KColorComboSignals {
+ /**
+ Emitted when a new color box has been selected.
+ @short Emitted when a new color box has been selected.
+ */
+ void activated(QColor col);
+ /**
+ Emitted when a new item has been highlighted.
+ @short Emitted when a new item has been highlighted.
+ */
+ void highlighted(QColor col);
+}
diff --git a/kdejava/koala/org/kde/koala/KColorDialog.java b/kdejava/koala/org/kde/koala/KColorDialog.java
new file mode 100644
index 00000000..3bcda11c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KColorDialog.java
@@ -0,0 +1,145 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPoint;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ <li><b>Features:</b></li>
+
+ <li>
+ Color selection from a wide range of palettes.
+ </li>
+
+ <li>
+ Color selection from a palette of H vs S and V selectors.
+ </li>
+
+ <li>
+ Direct input of HSV or RGB values.
+ </li>
+
+ <li>
+ Saving of custom colors
+ </li>
+ In most cases, you will want to use the static method KColorDialog.getColor().
+ This pops up the dialog (with an initial selection provided by you), lets the
+ user choose a color, and returns.
+ Example:
+ <pre>
+ QColor myColor;
+ int result = KColorDialog.getColor( myColor );
+ if ( result == KColorDialog.Accepted )
+ ...
+ </pre>
+ The color dialog is really a collection of several widgets which can
+ you can also use separately: the quadratic plane in the top left of
+ the dialog is a KXYSelector. Right next to it is a KHSSelector
+ for choosing hue/saturation.
+ On the right side of the dialog you see a KPaletteTable showing
+ up to 40 colors with a combo box which offers several predefined
+ palettes or a palette configured by the user. The small field showing
+ the currently selected color is a KColorPatch.
+ See {@link KColorDialogSignals} for signals emitted by KColorDialog
+ @short A color selection dialog.
+
+*/
+public class KColorDialog extends KDialogBase {
+ protected KColorDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a color selection dialog.
+ @short Constructs a color selection dialog.
+ */
+ public KColorDialog(QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKColorDialog(parent,name,modal);
+ }
+ private native void newKColorDialog(QWidget parent, String name, boolean modal);
+ public KColorDialog(QWidget parent, String name) {
+ super((Class) null);
+ newKColorDialog(parent,name);
+ }
+ private native void newKColorDialog(QWidget parent, String name);
+ public KColorDialog(QWidget parent) {
+ super((Class) null);
+ newKColorDialog(parent);
+ }
+ private native void newKColorDialog(QWidget parent);
+ public KColorDialog() {
+ super((Class) null);
+ newKColorDialog();
+ }
+ private native void newKColorDialog();
+ /**
+ Returns the currently selected color.
+ @short Returns the currently selected color.
+ */
+ public native QColor color();
+ /**
+ Call this to make the dialog show a "Default Color" checkbox.
+ If this checkbox is selected, the dialog will return an "invalid" color (QColor()).
+ This can be used to mean "the default text color", for instance,
+ the one with the KDE text color on screen, but black when printing.
+ @short Call this to make the dialog show a "Default Color" checkbox.
+ */
+ public native void setDefaultColor(QColor defaultCol);
+ /**
+ @return the value passed to setDefaultColor
+
+ @short
+ */
+ public native QColor defaultColor();
+ /**
+ Preselects a color.
+ @short Preselects a color.
+ */
+ public native void setColor(QColor col);
+ /**
+ Creates a modal color dialog, let the user choose a
+ color, and returns when the dialog is closed.
+ The selected color is returned in the argument <code>theColor.</code>
+ @return QDialog.result().
+
+ @short Creates a modal color dialog, let the user choose a color, and returns when the dialog is closed.
+ */
+ public static native int getColor(QColor theColor, QWidget parent);
+ public static native int getColor(QColor theColor);
+ /**
+ Creates a modal color dialog, lets the user choose a
+ color, and returns when the dialog is closed.
+ The selected color is returned in the argument <code>theColor.</code>
+ This version takes a <code>defaultColor</code> argument, which sets the color
+ selected by the "default color" checkbox. When this checkbox is checked,
+ the invalid color (QColor()) is returned into <code>theColor.</code>
+ @return QDialog.result().
+
+ @short Creates a modal color dialog, lets the user choose a color, and returns when the dialog is closed.
+ */
+ public static native int getColor(QColor theColor, QColor defaultColor, QWidget parent);
+ public static native int getColor(QColor theColor, QColor defaultColor);
+ /**
+ Gets the color from the pixel at point p on the screen.
+ @short Gets the color from the pixel at point p on the screen.
+ */
+ public static native QColor grabColor(QPoint p);
+ protected native void mouseReleaseEvent(QMouseEvent arg1);
+ protected native void keyPressEvent(QKeyEvent arg1);
+ public native boolean eventFilter(QObject arg1, QEvent ev);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KColorDialogSignals.java b/kdejava/koala/org/kde/koala/KColorDialogSignals.java
new file mode 100644
index 00000000..f5bb0221
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KColorDialogSignals.java
@@ -0,0 +1,22 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPoint;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+public interface KColorDialogSignals {
+ /**
+ Emitted when a color is selected.
+ Connect to this to monitor the color as it as selected if you are
+ not running modal.
+ @short Emitted when a color is selected.
+ */
+ void colorSelected(QColor col);
+}
diff --git a/kdejava/koala/org/kde/koala/KColorDrag.java b/kdejava/koala/org/kde/koala/KColorDrag.java
new file mode 100644
index 00000000..60c4733b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KColorDrag.java
@@ -0,0 +1,86 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QMimeSourceInterface;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QMimeSource;
+import org.kde.qt.QWidget;
+import org.kde.qt.QStoredDrag;
+
+/**
+
+ A drag-and-drop object for colors. The according MIME type
+ is set to application/x-color.
+ See the Qt drag'n'drop documentation.
+ @short A drag-and-drop object for colors.
+
+*/
+public class KColorDrag extends QStoredDrag {
+ protected KColorDrag(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a color drag with a white color.
+ @short Constructs a color drag with a white color.
+ */
+ public KColorDrag(QWidget dragsource, String name) {
+ super((Class) null);
+ newKColorDrag(dragsource,name);
+ }
+ private native void newKColorDrag(QWidget dragsource, String name);
+ public KColorDrag(QWidget dragsource) {
+ super((Class) null);
+ newKColorDrag(dragsource);
+ }
+ private native void newKColorDrag(QWidget dragsource);
+ public KColorDrag() {
+ super((Class) null);
+ newKColorDrag();
+ }
+ private native void newKColorDrag();
+ /**
+ Constructs a color drag with the color <code>col.</code>
+ @short Constructs a color drag with the color <code>col.</code>
+ */
+ public KColorDrag(QColor col, QWidget dragsource, String name) {
+ super((Class) null);
+ newKColorDrag(col,dragsource,name);
+ }
+ private native void newKColorDrag(QColor col, QWidget dragsource, String name);
+ public KColorDrag(QColor col, QWidget dragsource) {
+ super((Class) null);
+ newKColorDrag(col,dragsource);
+ }
+ private native void newKColorDrag(QColor col, QWidget dragsource);
+ public KColorDrag(QColor col) {
+ super((Class) null);
+ newKColorDrag(col);
+ }
+ private native void newKColorDrag(QColor col);
+ public native String format(int i);
+ public native byte[] encodedData(String m);
+ /**
+ Sets the color of the drag to <code>col.</code>
+ @short Sets the color of the drag to <code>col.</code>
+ */
+ public native void setColor(QColor col);
+ /**
+ Returns true if the MIME source <code>e</code> contains a color object.
+ @short Returns true if the MIME source <code>e</code> contains a color object.
+ */
+ public static native boolean canDecode(QMimeSourceInterface e);
+ /**
+ Decodes the MIME source <code>e</code> and puts the resulting color into <code>col.</code>
+ @short Decodes the MIME source <code>e</code> and puts the resulting color into <code>col.</code>
+ */
+ public static native boolean decode(QMimeSourceInterface e, QColor col);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KColorPatch.java b/kdejava/koala/org/kde/koala/KColorPatch.java
new file mode 100644
index 00000000..6a77af84
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KColorPatch.java
@@ -0,0 +1,44 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QPainter;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QFrame;
+
+/**
+
+ The KColorPatch widget is a (usually small) widget showing
+ a selected color e. g. in the KColorDialog. It
+ automatically handles drag and drop from and on the widget.
+ See {@link KColorPatchSignals} for signals emitted by KColorPatch
+ @short A color displayer.
+
+*/
+public class KColorPatch extends QFrame {
+ protected KColorPatch(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KColorPatch(QWidget parent) {
+ super((Class) null);
+ newKColorPatch(parent);
+ }
+ private native void newKColorPatch(QWidget parent);
+ public native void setColor(QColor col);
+ protected native void drawContents(QPainter painter);
+ protected native void mouseMoveEvent(QMouseEvent arg1);
+ protected native void dragEnterEvent(QDragEnterEvent arg1);
+ protected native void dropEvent(QDropEvent arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KColorPatchSignals.java b/kdejava/koala/org/kde/koala/KColorPatchSignals.java
new file mode 100644
index 00000000..a4b77290
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KColorPatchSignals.java
@@ -0,0 +1,15 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QPainter;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+
+public interface KColorPatchSignals {
+ void colorChanged(QColor arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KCombiView.java b/kdejava/koala/org/kde/koala/KCombiView.java
new file mode 100644
index 00000000..9214a8e3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCombiView.java
@@ -0,0 +1,218 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.ArrayList;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QSplitter;
+
+/**
+
+ This view is designed to combine two KFileViews into one widget, to show
+ directories on the left side and files on the right side.
+ Methods like selectedItems() to query status _only_ work on the right side,
+ i.e. on the files.
+ After creating the KCombiView, you need to supply the view shown in the
+ right, (see setRight()). Available KFileView implementations are
+ KFileIconView and KFileDetailView.
+ Most of the below methods are just implementations of the baseclass
+ KFileView, so look there for documentation.
+ @short This view is designed to combine two KFileViews into one widget, to show directories on the left side and files on the right side.
+ @see KFileView
+ @see KFileIconView
+ @see KFileDetailView
+ @see KDirOperator
+
+*/
+public class KCombiView extends QSplitter implements KFileViewInterface {
+ protected KCombiView(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KCombiView(QWidget parent, String name) {
+ super((Class) null);
+ newKCombiView(parent,name);
+ }
+ private native void newKCombiView(QWidget parent, String name);
+ public native QWidget widget();
+ public native void clearView();
+ public native void updateView(boolean arg1);
+ public native void updateView(KFileItem arg1);
+ public native void removeItem(KFileItem arg1);
+ public native void listingCompleted();
+ /**
+ Sets the view to be shown in the right. You need to call this before
+ doing anything else with this widget.
+ @short Sets the view to be shown in the right.
+ */
+ public native void setRight(KFileViewInterface view);
+ public native void setSelectionMode(int sm);
+ public native void setSelected(KFileItem arg1, boolean arg2);
+ public native boolean isSelected(KFileItem arg1);
+ public native void clearSelection();
+ public native void selectAll();
+ public native void invertSelection();
+ public native void setCurrentItem(KFileItem arg1);
+ public native KFileItem currentFileItem();
+ public native KFileItem firstFileItem();
+ public native KFileItem nextItem(KFileItem arg1);
+ public native KFileItem prevItem(KFileItem arg1);
+ public native void insertItem(KFileItem i);
+ public native void clear();
+ public native void setSorting(int sort);
+ public native void readConfig(KConfig arg1, String group);
+ public native void readConfig(KConfig arg1);
+ public native void writeConfig(KConfig arg1, String group);
+ public native void writeConfig(KConfig arg1);
+ public native void ensureItemVisible(KFileItem arg1);
+ public native KActionCollection actionCollection();
+ public native void setAcceptDrops(boolean b);
+ public native boolean eventFilter(QObject o, QEvent e);
+ protected native void setDropOptions_impl(int options);
+ protected native void slotSortingChanged(int arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+ /**
+ inserts a list of items.
+ @short inserts a list of items.
+ */
+ public native void addItemList(ArrayList list);
+ /**
+ Sets <code>filename</code> the current item in the view, if available.
+ @short Sets <code>filename</code> the current item in the view, if available.
+ */
+ public native void setCurrentItem(String filename);
+ public native void updateView();
+ /**
+ Returns the sorting order of the internal list. Newly added files
+ are added through this sorting.
+ @short Returns the sorting order of the internal list.
+ */
+ public native int sorting();
+ /**
+ Tells whether the current items are in reversed order (shortcut to
+ sorting() & QDir.Reversed).
+ @short Tells whether the current items are in reversed order (shortcut to sorting() & QDir.Reversed).
+ */
+ public native boolean isReversed();
+ public native void sortReversed();
+ /**
+ @return the number of dirs and files
+
+ @short
+ */
+ public native int count();
+ /**
+ @return the number of files.
+
+ @short
+ */
+ public native int numFiles();
+ /**
+ @return the number of directories
+
+ @short
+ */
+ public native int numDirs();
+ public native void setViewMode(int vm);
+ public native int viewMode();
+ /**
+ @return the localized name of the view, which could be displayed
+ somewhere, e.g. in a menu, where the user can choose between views.
+
+ @short
+ @see #setViewName
+ */
+ public native String viewName();
+ /**
+ Sets the name of the view, which could be displayed somewhere.
+ E.g. "Image Preview".
+ @short Sets the name of the view, which could be displayed somewhere.
+ */
+ public native void setViewName(String name);
+ public native void setParentView(KFileViewInterface parent);
+ /**
+ @return all currently highlighted items.
+
+ @short
+ */
+ public native ArrayList selectedItems();
+ /**
+ @return all items currently available in the current sort-order
+
+ @short
+ */
+ public native ArrayList items();
+ /**
+ This is a KFileDialog specific hack: we want to select directories with
+ single click, but not files. But as a generic class, we have to be able
+ to select files on single click as well.
+ This gives us the opportunity to do both.
+ Every view has to decide when to call select( item ) when a file was
+ single-clicked, based on onlyDoubleClickSelectsFiles().
+ @short This is a KFileDialog specific hack: we want to select directories with single click, but not files.
+ */
+ public native void setOnlyDoubleClickSelectsFiles(boolean enable);
+ /**
+ @return whether files (not directories) should only be select()ed by
+ double-clicks.
+
+ @short
+ @see #setOnlyDoubleClickSelectsFiles
+ */
+ public native boolean onlyDoubleClickSelectsFiles();
+ /**
+ increases the number of dirs and files.
+ @return true if the item fits the view mode
+
+ @short increases the number of dirs and files.
+ */
+ public native boolean updateNumbers(KFileItem i);
+ public native KFileViewSignaler signaler();
+ /**
+ Specify DND options. See DropOptions for details.
+ All options are disabled by default.
+ @short Specify DND options.
+ */
+ public native void setDropOptions(int options);
+ /**
+ Returns the DND options in effect.
+ See DropOptions for details.
+ @short Returns the DND options in effect.
+ */
+ public native int dropOptions();
+ /**
+ This method calculates a String from the given parameters, that is
+ suitable for sorting with e.g. QIconView or QListView. Their
+ Item-classes usually have a setKey( String ) method or a virtual
+ method String key() that is used for sorting.
+ @param value Any string that should be used as sort criterion
+ @param isDir Tells whether the key is computed for an item representing
+ a directory (directories are usually sorted before files)
+ @param sortSpec An ORed combination of QDir.SortSpec flags.
+ Currently, the values IgnoreCase, Reversed and
+ DirsFirst are taken into account.
+ @short This method calculates a String from the given parameters, that is suitable for sorting with e.
+ */
+ public static native String sortingKey(String value, boolean isDir, int sortSpec);
+ /**
+ An overloaded method that takes not a String, but a number as sort
+ criterion. You can use this for file-sizes or dates/times for example.
+ If you use a time_t, you need to cast that to KIO.filesize_t because
+ of ambiguity problems.
+ @short An overloaded method that takes not a String, but a number as sort criterion.
+ */
+ public static native String sortingKey(long value, boolean isDir, int sortSpec);
+ /**
+ delay before auto opening a directory
+ @short
+ */
+ public static native int autoOpenDelay();
+}
diff --git a/kdejava/koala/org/kde/koala/KComboBox.java b/kdejava/koala/org/kde/koala/KComboBox.java
new file mode 100644
index 00000000..4f4e150a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KComboBox.java
@@ -0,0 +1,626 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QLineEdit;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWheelEvent;
+import org.kde.qt.QComboBox;
+
+/**
+
+ A combined button, line-edit and a popup list widget.
+ <li><b>Detail </b></li>
+ This widget inherits from QComboBox and implements the following
+ additional functionalities: a completion object that provides both automatic
+ and manual text completion as well as text rotation features, configurable
+ key-bindings to activate these features, and a popup-menu item that can be
+ used to allow the user to change the text completion mode on the fly.
+ To support these new features KComboBox emits a few additional signals
+ such as completion( String ) and textRotation( KeyBindgingType ).
+ The completion signal can be connected to a slot that will assist the user in
+ filling out the remaining text while the rotation signal can be used to traverse
+ through all possible matches whenever text completion results in multiple matches.
+ Additionally, a returnPressed() and a returnPressed( String )
+ signals are emitted when the user presses the Enter/Return key.
+ KCombobox by default creates a completion object when you invoke the
+ completionObject( boolean ) member function for the first time or
+ explicitly use setCompletionObject( KCompletion, boolean ) to assign your
+ own completion object. Additionally, to make this widget more functional,
+ KComboBox will by default handle text rotation and completion events
+ internally whenever a completion object is created through either one of the
+ methods mentioned above. If you do not need this functionality, simply use
+ KCompletionBase.setHandleSignals(boolean) or alternatively set the booleanean
+ parameter in the <code>setCompletionObject</code> call to false.
+ Beware: The completion object can be deleted on you, especially if a call
+ such as setEditable(false) is made. Store the pointer at your own risk,
+ and consider using QGuardedPtr<KCompletion>.
+ The default key-bindings for completion and rotation is determined from the
+ global settings in KStdAccel. These values, however, can be overridden
+ locally by invoking KCompletionBase.setKeyBinding(). The values can
+ easily be reverted back to the default setting, by simply calling
+ useGlobalSettings(). An alternate method would be to default individual
+ key-bindings by usning setKeyBinding() with the default second argument.
+ A non-editable combobox only has one completion mode, <code>CompletionAuto.</code>
+ Unlike an editable combobox the CompletionAuto mode, works by matching
+ any typed key with the first letter of entries in the combobox. Please note
+ that if you call setEditable( false ) to change an editable combobox to a
+ non-editable one, the text completion object associated with the combobox will
+ no longer exist unless you created the completion object yourself and assigned
+ it to this widget or you called setAutoDeleteCompletionObject( false ). In other
+ words do not do the following:
+ <pre>
+ KComboBox combo = new KCompletionBox(true, this, "mywidget");
+ KCompletion comp = combo.completionObject();
+ combo.setEditable( false );
+ comp.clear(); // CRASH: completion object does not exist anymore.
+ </pre>
+ A read-only KComboBox will have the same background color as a
+ disabled KComboBox, but its foreground color will be the one used for
+ the read-write mode. This differs from QComboBox's implementation
+ and is done to give visual distinction between the three different modes:
+ disabled, read-only, and read-write.
+ <li><b>Usage </b></li>
+ To enable the basic completion feature:
+ <pre>
+ KComboBox combo = new KComboBox( true, this, "mywidget" );
+ KCompletion comp = combo.completionObject();
+ // Connect to the return pressed signal - optional
+ connect(combo,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)"));
+ // Provide the to be completed strings. Note that those are separate from the combo's
+ // contents.
+ comp.insertItems( someArrayList );
+ </pre>
+ To use your own completion object:
+ <pre>
+ KComboBox combo = new KComboBox( this,"mywidget" );
+ KURLCompletion comp = new KURLCompletion();
+ combo.setCompletionObject( comp );
+ // Connect to the return pressed signal - optional
+ connect(combo,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)"));
+ </pre>
+ Note that you have to either delete the allocated completion object
+ when you don't need it anymore, or call
+ setAutoDeleteCompletionObject( true );
+ Miscellaneous function calls:
+ <pre>
+ // Tell the widget not to handle completion and rotation
+ combo.setHandleSignals( false );
+ // Set your own completion key for manual completions.
+ combo.setKeyBinding( KCompletionBase.TextCompletion, Qt.End );
+ // Hide the context (popup) menu
+ combo.setContextMenuEnabled( false );
+ </pre>
+ See {@link KComboBoxSignals} for signals emitted by KComboBox
+ @author Dawit Alemayehu <adawit@kde.org>
+
+ @short An enhanced combo box.
+
+*/
+public class KComboBox extends QComboBox implements KCompletionBaseInterface {
+ protected KComboBox(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a read-only or rather select-only combo box with a
+ parent object and a name.
+ @param parent The parent object of this widget
+ @param name The name of this widget
+ @short Constructs a read-only or rather select-only combo box with a parent object and a name.
+ */
+ public KComboBox(QWidget parent, String name) {
+ super((Class) null);
+ newKComboBox(parent,name);
+ }
+ private native void newKComboBox(QWidget parent, String name);
+ public KComboBox(QWidget parent) {
+ super((Class) null);
+ newKComboBox(parent);
+ }
+ private native void newKComboBox(QWidget parent);
+ public KComboBox() {
+ super((Class) null);
+ newKComboBox();
+ }
+ private native void newKComboBox();
+ /**
+ Constructs a "read-write" or "read-only" combo box depending on
+ the value of the first argument( <code>rw</code> ) with a parent, a
+ name.
+ @param rw When <code>true</code>, widget will be editable.
+ @param parent The parent object of this widget.
+ @param name The name of this widget.
+ @short Constructs a "read-write" or "read-only" combo box depending on the value of the first argument( <code>rw</code> ) with a parent, a name.
+ */
+ public KComboBox(boolean rw, QWidget parent, String name) {
+ super((Class) null);
+ newKComboBox(rw,parent,name);
+ }
+ private native void newKComboBox(boolean rw, QWidget parent, String name);
+ public KComboBox(boolean rw, QWidget parent) {
+ super((Class) null);
+ newKComboBox(rw,parent);
+ }
+ private native void newKComboBox(boolean rw, QWidget parent);
+ public KComboBox(boolean rw) {
+ super((Class) null);
+ newKComboBox(rw);
+ }
+ private native void newKComboBox(boolean rw);
+ /**
+ Sets <code>url</code> into the edit field of the combobox. It uses
+ KURL.prettyURL() so that the url is properly decoded for
+ displaying.
+ @short Sets <code>url</code> into the edit field of the combobox.
+ */
+ public native void setEditURL(KURL url);
+ /**
+ Inserts <code>url</code> at position <code>index</code> into the combobox. The item will
+ be appended if <code>index</code> is negative. KURL.prettyURL() is used
+ so that the url is properly decoded for displaying.
+ @short Inserts <code>url</code> at position <code>index</code> into the combobox.
+ */
+ public native void insertURL(KURL url, int index);
+ public native void insertURL(KURL url);
+ /**
+ Inserts <code>url</code> with the pixmap &p pixmap at position <code>index</code> into
+ the combobox. The item will be appended if <code>index</code> is negative.
+ KURL.prettyURL() is used so that the url is properly decoded
+ for displaying.
+ @short Inserts <code>url</code> with the pixmap &p pixmap at position <code>index</code> into the combobox.
+ */
+ public native void insertURL(QPixmap pixmap, KURL url, int index);
+ public native void insertURL(QPixmap pixmap, KURL url);
+ /**
+ Replaces the item at position <code>index</code> with <code>url.</code>
+ KURL.prettyURL() is used so that the url is properly decoded
+ for displaying.
+ @short Replaces the item at position <code>index</code> with <code>url.</code>
+ */
+ public native void changeURL(KURL url, int index);
+ /**
+ Replaces the item at position <code>index</code> with <code>url</code> and pixmap <code>pixmap.</code>
+ KURL.prettyURL() is used so that the url is properly decoded
+ for displaying.
+ @short Replaces the item at position <code>index</code> with <code>url</code> and pixmap <code>pixmap.</code>
+ */
+ public native void changeURL(QPixmap pixmap, KURL url, int index);
+ /**
+ Returns the current cursor position.
+ This method always returns a -1 if the combo-box is <b>not</b>
+ editable (read-write).
+ @return Current cursor position.
+
+ @short Returns the current cursor position.
+ */
+ public native int cursorPosition();
+ /**
+ Re-implemented from QComboBox.
+ If <code>true</code>, the completion mode will be set to automatic.
+ Otherwise, it is defaulted to the global setting. This
+ method has been replaced by the more comprehensive
+ setCompletionMode().
+ @param autocomplete Flag to enable/disable automatic completion mode.
+ @short Re-implemented from QComboBox.
+ */
+ public native void setAutoCompletion(boolean autocomplete);
+ /**
+ Re-implemented from QComboBox.
+ Returns <code>true</code> if the current completion mode is set
+ to automatic. See its more comprehensive replacement
+ completionMode().
+ @return <code>true</code> when completion mode is automatic.
+
+ @short Re-implemented from QComboBox.
+ */
+ public native boolean autoCompletion();
+ /**
+ Enables or disable the popup (context) menu.
+ This method only works if this widget is editable, i.e.
+ read-write and allows you to enable/disable the context
+ menu. It does nothing if invoked for a none-editable
+ combo-box. Note that by default the mode changer item
+ is made visiable whenever the context menu is enabled.
+ Use hideModechanger() if you want to hide this
+ item. Also by default, the context menu is created if
+ this widget is editable. Call this function with the
+ argument set to false to disable the popup menu.
+ @param showMenu If <code>true</code>, show the context menu.
+ @short Enables or disable the popup (context) menu.
+ */
+ public native void setContextMenuEnabled(boolean showMenu);
+ /**
+ Returns <code>true</code> when the context menu is enabled.
+ @short Returns <code>true</code> when the context menu is enabled.
+ */
+ public native boolean isContextMenuEnabled();
+ /**
+ Enables/Disables handling of URL drops. If enabled and the user
+ drops an URL, the decoded URL will be inserted. Otherwise the default
+ behavior of QComboBox is used, which inserts the encoded URL.
+ @param enable If <code>true</code>, insert decoded URLs
+ @short Enables/Disables handling of URL drops.
+ */
+ public native void setURLDropsEnabled(boolean enable);
+ /**
+ Returns <code>true</code> when decoded URL drops are enabled
+ @short Returns <code>true</code> when decoded URL drops are enabled
+ */
+ public native boolean isURLDropsEnabled();
+ /**
+ Convenience method which iterates over all items and checks if
+ any of them is equal to <code>text.</code>
+ If <code>text</code> is an empty string, <code>false</code>
+ is returned.
+ @return <code>true</code> if an item with the string <code>text</code> is in the combobox.
+
+ @short Convenience method which iterates over all items and checks if any of them is equal to <code>text.</code>
+ */
+ public native boolean contains(String text);
+ /**
+ By default, KComboBox recognizes Key_Return and Key_Enter
+ and emits the returnPressed() signals, but it also lets the
+ event pass, for example causing a dialog's default-button to
+ be called.
+ Call this method with <code>trap</code> equal to true to make KComboBox
+ stop these events. The signals will still be emitted of course.
+ Only affects read-writable comboboxes.
+ @short By default, KComboBox recognizes Key_Return and Key_Enter and emits the returnPressed() signals, but it also lets the event pass, for example causing a dialog's default-button to be called.
+ @see #setTrapReturnKey
+ */
+ public native void setTrapReturnKey(boolean trap);
+ /**
+ @return <code>true</code> if keyevents of Key_Return or Key_Enter will
+ be stopped or if they will be propagated.
+
+ @short
+ @see #setTrapReturnKey
+ */
+ public native boolean trapReturnKey();
+ /**
+ Re-implemented for internal reasons. API not affected.
+ @short Re-implemented for internal reasons.
+ */
+ public native boolean eventFilter(QObject arg1, QEvent arg2);
+ /**
+ @param create Set this to false if you don't want the box to be created
+ i.e. to test if it is available.
+ @return the completion-box, that is used in completion mode
+ KGlobalSettings.CompletionPopup and KGlobalSettings.CompletionPopupAuto.
+ This method will create a completion-box by calling
+ KLineEdit.completionBox, if none is there, yet.
+
+ @short
+ */
+ public native KCompletionBox completionBox(boolean create);
+ public native KCompletionBox completionBox();
+ /**
+ Re-implemented for internal reasons. API remains unaffected.
+ NOTE: Only editable comboboxes can have a line editor. As such
+ any attempt to assign a line-edit to a non-editable combobox will
+ simply be ignored.
+ @short Re-implemented for internal reasons.
+ */
+ public native void setLineEdit(QLineEdit arg1);
+ /**
+ Iterates through all possible matches of the completed text
+ or the history list.
+ Depending on the value of the argument, this function either
+ iterates through the history list of this widget or the all
+ possible matches in whenever multiple matches result from a
+ text completion request. Note that the all-possible-match
+ iteration will not work if there are no previous matches, i.e.
+ no text has been completed and the nix shell history list
+ rotation is only available if the insertion policy for this
+ widget is set either <code>QComobBox</code>.AtTop or <code>QComboBox</code>.AtBottom.
+ For other insertion modes whatever has been typed by the user
+ when the rotation event was initiated will be lost.
+ @param type The key-binding invoked.
+ @short Iterates through all possible matches of the completed text or the history list.
+ */
+ public native void rotateText(int type);
+ /**
+ Sets the completed text in the line-edit appropriately.
+ This function is an implementation for
+ KCompletionBase.setCompletedText.
+ @short Sets the completed text in the line-edit appropriately.
+ */
+ public native void setCompletedText(String arg1);
+ /**
+ Sets <code>items</code> into the completion-box if completionMode() is
+ CompletionPopup. The popup will be shown immediately.
+ @short Sets <code>items</code> into the completion-box if completionMode() is CompletionPopup.
+ */
+ public native void setCompletedItems(String[] items);
+ /**
+ Selects the first item that matches <code>item.</code> If there is no such item,
+ it is inserted at position <code>index</code> if <code>insert</code> is true. Otherwise,
+ no item is selected.
+ @short Selects the first item that matches <code>item.</code>
+ */
+ public native void setCurrentItem(String item, boolean insert, int index);
+ public native void setCurrentItem(String item, boolean insert);
+ public native void setCurrentItem(String item);
+ /**
+ Simply calls QComboBox' implementation. Only here to not become
+ shadowed.
+ @short Simply calls QComboBox' implementation.
+ */
+ public native void setCurrentItem(int index);
+ protected native void setCompletedText(String arg1, boolean arg2);
+ /**
+ Reimplemented for internal reasons, the API is not affected.
+ @short Reimplemented for internal reasons, the API is not affected.
+ */
+ protected native void create(long arg1, boolean initializeWindow, boolean destroyOldWindow);
+ protected native void create(long arg1, boolean initializeWindow);
+ protected native void create(long arg1);
+ protected native void create();
+ protected native void wheelEvent(QWheelEvent ev);
+ /**
+ Completes text according to the completion mode.
+ Note: this method is <code>not</code> invoked if the completion mode is
+ set to CompletionNone. Also if the mode is set to <code>CompletionShell</code>
+ and multiple matches are found, this method will complete the
+ text to the first match with a beep to inidicate that there are
+ more matches. Then any successive completion key event iterates
+ through the remaining matches. This way the rotation functionality
+ is left to iterate through the list as usual.
+ @short Completes text according to the completion mode.
+ */
+ protected native void makeCompletion(String arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+ /**
+ Returns a pointer to the current completion object.
+ If the completion object does not exist, it is automatically created and
+ by default handles all the completion signals internally unless <code>hsig</code>
+ is set to false. It is also automatically destroyed when the destructor
+ is called. You can change this default behavior using the
+ {@link #setAutoDeleteCompletionObject} and {@link #setHandleSignals} member
+ functions.
+ See also {@link #compObj}.
+ @param hsig if true, handles completion signals internally.
+ @return a pointer the completion object.
+
+ @short Returns a pointer to the current completion object.
+ */
+ public native KCompletion completionObject(boolean hsig);
+ public native KCompletion completionObject();
+ /**
+ Sets up the completion object to be used.
+ This method assigns the completion object and sets it up to automatically
+ handle the completion and rotation signals internally. You should use
+ this function if you want to share one completion object among your
+ widgets or need to use a customized completion object.
+ The object assigned through this method is not deleted when this object's
+ destructor is invoked unless you explicitly call {@link #setAutoDeleteCompletionObject}
+ after calling this method. Be sure to set the boolean argument to false, if
+ you want to handle the completion signals yourself.
+ @param compObj a KCompletion() or a derived child object.
+ @param hsig if true, handles completion signals internally.
+ @short Sets up the completion object to be used.
+ */
+ public native void setCompletionObject(KCompletion compObj, boolean hsig);
+ public native void setCompletionObject(KCompletion compObj);
+ /**
+ Enables this object to handle completion and rotation
+ events internally.
+ This function simply assigns a booleanean value that
+ indicates whether it should handle rotation and
+ completion events or not. Note that this does not
+ stop the object from emitting signals when these
+ events occur.
+ @param handle if true, handle completion & rotation internally.
+ @short Enables this object to handle completion and rotation events internally.
+ */
+ public native void setHandleSignals(boolean handle);
+ /**
+ Returns true if the completion object is deleted
+ upon this widget's destruction.
+ See setCompletionObject() and enableCompletion()
+ for details.
+ @return true if the completion object will be deleted
+ automatically
+
+ @short Returns true if the completion object is deleted upon this widget's destruction.
+ */
+ public native boolean isCompletionObjectAutoDeleted();
+ /**
+ Sets the completion object when this widget's destructor
+ is called.
+ If the argument is set to true, the completion object
+ is deleted when this widget's destructor is called.
+ @param autoDelete if true, delete completion object on destruction.
+ @short Sets the completion object when this widget's destructor is called.
+ */
+ public native void setAutoDeleteCompletionObject(boolean autoDelete);
+ /**
+ Sets the widget's ability to emit text completion and
+ rotation signals.
+ Invoking this function with <code>enable</code> set to <code>false</code> will
+ cause the completion & rotation signals not to be emitted.
+ However, unlike setting the completion object to <code>NULL</code>
+ using setCompletionObject, disabling the emition of
+ the signals through this method does not affect the current
+ completion object.
+ There is no need to invoke this function by default. When a
+ completion object is created through completionObject or
+ setCompletionObject, these signals are set to emit
+ automatically. Also note that disabling this signals will not
+ necessarily interfere with the objects ability to handle these
+ events internally. See setHandleSignals.
+ @param enable if false, disables the emition of completion & rotation signals.
+ @short Sets the widget's ability to emit text completion and rotation signals.
+ */
+ public native void setEnableSignals(boolean enable);
+ /**
+ Returns true if the object handles the signals.
+ @return true if this signals are handled internally.
+
+ @short Returns true if the object handles the signals.
+ */
+ public native boolean handleSignals();
+ /**
+ Returns true if the object emits the signals.
+ @return true if signals are emitted
+
+ @short Returns true if the object emits the signals.
+ */
+ public native boolean emitSignals();
+ /**
+ Sets the type of completion to be used.
+ The completion modes supported are those defined in
+ KGlobalSettings(). See below.
+ @param mode Completion type:
+
+ <li>
+ CompletionNone: Disables completion feature.
+ </li>
+
+ <li>
+ CompletionAuto: Attempts to find a match &
+ fills-in the remaining text.
+ </li>
+
+ <li>
+ CompletionMan: Acts the same as the above
+ except the action has to be
+ manually triggered through
+ pre-defined completion key.
+ </li>
+
+ <li>
+ CompletionShell: Mimics the completion feature
+ found in typical nix shell
+ environments.
+ </li>
+
+ <li>
+ CompletionPopup: Shows all available completions at once,
+ in a listbox popping up.
+
+ </li> @short Sets the type of completion to be used.
+ */
+ public native void setCompletionMode(int mode);
+ /**
+ Returns the current completion mode.
+ The return values are of type KGlobalSettings.Completion.
+ See setCompletionMode() for details.
+ @return the completion mode.
+
+ @short Returns the current completion mode.
+ */
+ public native int completionMode();
+ /**
+ Sets the key-binding to be used for manual text
+ completion, text rotation in a history list as
+ well as a completion list.
+ When the keys set by this function are pressed, a
+ signal defined by the inheriting widget will be activated.
+ If the default value or 0 is specified by the second
+ parameter, then the key-binding as defined in the global
+ setting should be used. This method returns false value
+ for <code>key</code> is negative or the supplied key-binding conflicts
+ with the ones set for one of the other features.
+ NOTE: To use a modifier key (Shift, Ctrl, Alt) as part of
+ the key-binding simply simply <code>sum</code> up the values of the
+ modifier and the actual key. For example, to use CTRL+E as
+ a key binding for one of the items, you would simply supply
+ <code></code>"Qt.CtrlButton + Qt.Key_E" as the second argument to this
+ function.
+ @param item the feature whose key-binding needs to be set:
+
+ <li>
+ TextCompletion the manual completion key-binding.
+ </li>
+
+ <li>
+ PrevCompletionMatch the previous match key for multiple completion.
+ </li>
+
+ <li>
+ NextCompletionMatch the next match key for for multiple completion.
+ </li>
+
+ <li>
+ SubstringCompletion the key for substring completion
+ </li>
+ @param key key-binding used to rotate down in a list.
+ @return true if key-binding can successfully be set.
+
+ @short Sets the key-binding to be used for manual text completion, text rotation in a history list as well as a completion list.
+ @see #getKeyBinding
+ */
+ public native boolean setKeyBinding(int item, KShortcut key);
+ /**
+ Returns the key-binding used for the specified item.
+ This methods returns the key-binding used to activate
+ the feature feature given by <code>item.</code> If the binding
+ contains modifier key(s), the SUM of the modifier key
+ and the actual key code are returned.
+ @param item the item to check
+ @return the key-binding used for the feature given by <code>item.</code>
+
+ @short Returns the key-binding used for the specified item.
+ @see #setKeyBinding
+ */
+ public native KShortcut getKeyBinding(int item);
+ /**
+ Sets this object to use global values for key-bindings.
+ This method changes the values of the key bindings for
+ rotation and completion features to the default values
+ provided in KGlobalSettings.
+ NOTE: By default inheriting widgets should uses the
+ global key-bindings so that there will be no need to
+ call this method.
+ @short Sets this object to use global values for key-bindings.
+ */
+ public native void useGlobalKeyBindings();
+ /**
+ Returns a pointer to the completion object.
+ This method is only different from completionObject()
+ in that it does not create a new KCompletion object even if
+ the internal pointer is <code>NULL.</code> Use this method to get the
+ pointer to a completion object when inheriting so that you
+ won't inadvertently create it!!
+ @return the completion object or NULL if one does not exist.
+
+ @short Returns a pointer to the completion object.
+ */
+ public native KCompletion compObj();
+ /**
+ Returns a key-binding map.
+ This method is the same as getKeyBinding() except it
+ returns the whole keymap containing the key-bindings.
+ @return the key-binding used for the feature given by <code>item.</code>
+
+ @short Returns a key-binding map.
+ */
+ // KCompletionBase::KeyBindingMap getKeyBindings(); >>>> NOT CONVERTED
+ /**
+ Sets or removes the delegation object. If a delegation object is
+ set, all function calls will be forwarded to the delegation object.
+ @param delegate the delegation object, or 0 to remove it
+ @short Sets or removes the delegation object.
+ */
+ protected native void setDelegate(KCompletionBaseInterface delegate);
+ /**
+ Returns the delegation object.
+ @return the delegation object, or 0 if there is none
+
+ @short Returns the delegation object.
+ @see #setDelegate
+ */
+ protected native KCompletionBaseInterface delegate();
+}
diff --git a/kdejava/koala/org/kde/koala/KComboBoxSignals.java b/kdejava/koala/org/kde/koala/KComboBoxSignals.java
new file mode 100644
index 00000000..d6b07462
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KComboBoxSignals.java
@@ -0,0 +1,69 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QLineEdit;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWheelEvent;
+
+public interface KComboBoxSignals {
+ /**
+ Emitted when the user presses the Enter key.
+ Note that this signal is only emitted when the widget is editable.
+ @short Emitted when the user presses the Enter key.
+ */
+ void returnPressed();
+ /**
+ Emitted when the user presses the Enter key.
+ The argument is the current text being edited. This signal is just like
+ returnPressed() except it contains the current text as its argument.
+ Note that this signal is only emitted when the
+ widget is editable.
+ @short Emitted when the user presses the Enter key.
+ */
+ void returnPressed(String arg1);
+ /**
+ Emitted when the completion key is pressed.
+ The argument is the current text being edited.
+ Note that this signal is <b>not</b> available when the widget is non-editable
+ or the completion mode is set to <code>KGlobalSettings</code>.CompletionNone.
+ @short Emitted when the completion key is pressed.
+ */
+ void completion(String arg1);
+ /**
+ Emitted when the shortcut for substring completion is pressed.
+ @short Emitted when the shortcut for substring completion is pressed.
+ */
+ void substringCompletion(String arg1);
+ /**
+ Emitted when the text rotation key-bindings are pressed.
+ The argument indicates which key-binding was pressed. In this case this
+ can be either one of four values: <code>PrevCompletionMatch</code>,
+ <code>NextCompletionMatch</code>, <code>RotateUp</code> or <code>RotateDown.</code> See
+ KCompletionBase.setKeyBinding() for details.
+ Note that this signal is <b>NOT</b> emitted if the completion
+ mode is set to CompletionNone.
+ @short Emitted when the text rotation key-bindings are pressed.
+ */
+ void textRotation(int arg1);
+ /**
+ Emitted whenever the completion mode is changed by the user
+ through the context menu.
+ @short Emitted whenever the completion mode is changed by the user through the context menu.
+ */
+ void completionModeChanged(int arg1);
+ /**
+ Emitted before the context menu is displayed.
+ The signal allows you to add your own entries into the context menu.
+ Note that you MUST NOT store the pointer to the QPopupMenu since it is
+ created and deleted on demand. Otherwise, you can crash your app.
+ @param p the context menu about to be displayed
+ @short Emitted before the context menu is displayed.
+ */
+ void aboutToShowContextMenu(QPopupMenu p);
+}
diff --git a/kdejava/koala/org/kde/koala/KCommand.java b/kdejava/koala/org/kde/koala/KCommand.java
new file mode 100644
index 00000000..2c33f28d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCommand.java
@@ -0,0 +1,43 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The abstract base class for all Commands. Commands are used to
+ store information needed for Undo/Redo functionality...
+ @short The abstract base class for all Commands.
+
+*/
+public class KCommand implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KCommand(Class dummy){}
+
+ /**
+ The main method: executes this command.
+ Implement here what this command is about, and remember to
+ record any information that will be helpful for #unexecute.
+ @short The main method: executes this command.
+ */
+ public native void execute();
+ /**
+ Unexecutes (undo) this command.
+ Implement here the steps to take for undoing the command.
+ If your application uses actions for everything (it should),
+ and if you implement unexecute correctly, the application is in the same
+ state after unexecute as it was before execute. This means, the next
+ call to execute will do the same thing as it did the first time.
+ @short Unexecutes (undo) this command.
+ */
+ public native void unexecute();
+ /**
+ @return the name of this command, translated, since it will appear
+ in the menus.
+
+ @short
+ */
+ public native String name();
+}
diff --git a/kdejava/koala/org/kde/koala/KCommandHistory.java b/kdejava/koala/org/kde/koala/KCommandHistory.java
new file mode 100644
index 00000000..4129743f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCommandHistory.java
@@ -0,0 +1,136 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+/**
+
+ The command history stores a (user) configurable amount of
+ Commands. It keeps track of its size and deletes commands
+ if it gets too large. The user can set a maximum undo and
+ a maximum redo limit (e.g. max. 50 undo / 30 redo commands).
+ The KCommandHistory keeps track of the "borders" and deletes
+ commands, if appropriate. It also activates/deactivates the
+ undo/redo actions in the menu and changes the text according
+ to the name of the command.
+ See {@link KCommandHistorySignals} for signals emitted by KCommandHistory
+ @short The command history stores a (user) configurable amount of Commands.
+
+*/
+public class KCommandHistory extends QObject {
+ protected KCommandHistory(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a command history, to store commands.
+ This constructor doesn't create actions, so you need to call
+ #undo and #redo yourself.
+ @short Creates a command history, to store commands.
+ */
+ public KCommandHistory() {
+ super((Class) null);
+ newKCommandHistory();
+ }
+ private native void newKCommandHistory();
+ /**
+ Creates a command history, to store commands.
+ This also creates an undo and a redo action, in the <code>actionCollection</code>,
+ using the standard names ("edit_undo" and "edit_redo").
+ @param withMenus if true, the actions will display a menu when plugged
+ into a toolbar.
+ @param actionCollection the parent collection
+ @short Creates a command history, to store commands.
+ */
+ public KCommandHistory(KActionCollection actionCollection, boolean withMenus) {
+ super((Class) null);
+ newKCommandHistory(actionCollection,withMenus);
+ }
+ private native void newKCommandHistory(KActionCollection actionCollection, boolean withMenus);
+ public KCommandHistory(KActionCollection actionCollection) {
+ super((Class) null);
+ newKCommandHistory(actionCollection);
+ }
+ private native void newKCommandHistory(KActionCollection actionCollection);
+ /**
+ Erases all the undo/redo history.
+ Use this when reloading the data, for instance, since this invalidates
+ all the commands.
+ @short Erases all the undo/redo history.
+ */
+ public native void clear();
+ /**
+ Adds a command to the history. Call this for each <code>command</code> you create.
+ Unless you set <code>execute</code> to false, this will also execute the command.
+ This means, most of the application's code will look like
+ MyCommand cmd = new MyCommand(i18n("Capitalized Name"), parameters);
+ m_historyCommand.addCommand( cmd );
+ @short Adds a command to the history.
+ */
+ public native void addCommand(KCommand command, boolean execute);
+ public native void addCommand(KCommand command);
+ /**
+ @return the maximum number of items in the undo history
+
+ @short
+ */
+ public native int undoLimit();
+ /**
+ Sets the maximum number of items in the undo history.
+ @short Sets the maximum number of items in the undo history.
+ */
+ public native void setUndoLimit(int limit);
+ /**
+ @return the maximum number of items in the redo history
+
+ @short
+ */
+ public native int redoLimit();
+ /**
+ Sets the maximum number of items in the redo history.
+ @short Sets the maximum number of items in the redo history.
+ */
+ public native void setRedoLimit(int limit);
+ /**
+ Enable or disable the undo and redo actions.
+ This isn't usually necessary, but this method can be useful if
+ you disable all actions (to go to a "readonly" state), and then
+ want to come back to a readwrite mode.
+ @short Enable or disable the undo and redo actions.
+ */
+ public native void updateActions();
+ /**
+ Undoes the last action.
+ Call this if you don't use the builtin KActions.
+ @short Undoes the last action.
+ */
+ public native void undo();
+ /**
+ Redoes the last undone action.
+ Call this if you don't use the builtin KActions.
+ @short Redoes the last undone action.
+ */
+ public native void redo();
+ /**
+ Remembers when you saved the document.
+ Call this right after saving the document. As soon as
+ the history reaches the current index again (via some
+ undo/redo operations) it will emit documentRestored
+ If you implemented undo/redo properly the document is
+ the same you saved before.
+ @short Remembers when you saved the document.
+ */
+ public native void documentSaved();
+ protected native void slotUndoAboutToShow();
+ protected native void slotUndoActivated(int arg1);
+ protected native void slotRedoAboutToShow();
+ protected native void slotRedoActivated(int arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCommandHistorySignals.java b/kdejava/koala/org/kde/koala/KCommandHistorySignals.java
new file mode 100644
index 00000000..c31503c8
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCommandHistorySignals.java
@@ -0,0 +1,30 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+public interface KCommandHistorySignals {
+ /**
+ Emitted every time a command is executed
+ (whether by addCommand, undo or redo).
+ You can use this to update the GUI, for instance.
+ KDE4 TODO: remove
+ @short Emitted every time a command is executed (whether by addCommand, undo or redo).
+ */
+ void commandExecuted();
+ /**
+ Emitted every time a command is executed
+ (whether by addCommand, undo or redo).
+ You can use this to update the GUI, for instance.
+ @param command was executed
+ @short Emitted every time a command is executed (whether by addCommand, undo or redo).
+ */
+ void commandExecuted(KCommand command);
+ /**
+ Emitted every time we reach the index where you
+ saved the document for the last time. See documentSaved
+ @short Emitted every time we reach the index where you saved the document for the last time.
+ */
+ void documentRestored();
+}
diff --git a/kdejava/koala/org/kde/koala/KCompletion.java b/kdejava/koala/org/kde/koala/KCompletion.java
new file mode 100644
index 00000000..f36ac561
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCompletion.java
@@ -0,0 +1,482 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QObject;
+
+/**
+
+ This class offers easy use of "auto-completion", "manual-completion" or
+ "shell completion" on String objects. A common use is completing filenames
+ or URLs (see KURLCompletion()).
+ But it is not limited to URL-completion -- everything should be completable!
+ The user should be able to complete email-addresses, telephone-numbers,
+ commands, SQL queries, ...
+ Every time your program knows what the user can type into an edit-field, you
+ should offer completion. With KCompletion, this is very easy, and if you are
+ using a line edit widget ( KLineEdit), it is even more easy.
+ Basically, you tell a KCompletion object what strings should be completable
+ and whenever completion should be invoked, you call makeCompletion().
+ KLineEdit and (an editable) KComboBox even do this automatically for you.
+ KCompletion offers the completed string via the signal match() and
+ all matching strings (when the result is ambiguous) via the method
+ allMatches().
+ Notice: auto-completion, shell completion and manual completion work
+ slightly differently:
+
+ <li>
+ auto-completion always returns a complete item as match.
+ When more than one matching items are available, it will deliver just
+ the first (depending on sorting order) item. Iterating over all matches
+ is possible via nextMatch() and previousMatch().
+ </li>
+
+ <li>
+ popup-completion works in the same way, the only difference being that
+ the completed items are not put into the edit-widget, but into a
+ separate popup-box.
+ </li>
+
+ <li>
+ manual completion works the same way as auto-completion, the
+ subtle difference is, that it isn't invoked automatically while the user
+ is typing, but only when the user presses a special key. The difference
+ of manual and auto-completion is therefore only visible in UI classes,
+ KCompletion needs to know whether to deliver partial matches
+ (shell completion) or whole matches (auto/manual completion), therefore
+ KGlobalSettings.CompletionMan and
+ KGlobalSettings.CompletionAuto have the exact same effect in
+ KCompletion.
+ </li>
+
+ <li>
+ shell completion works like how shells complete filenames:
+ when multiple matches are available, the longest possible string of all
+ matches is returned (i.e. only a partial item).
+ Iterating over all matching items (complete, not partial) is possible
+ via nextMatch() and previousMatch().
+ </li>
+ You don't have to worry much about that though, KCompletion handles
+ that for you, according to the setting setCompletionMode().
+ The default setting is globally configured by the user and read
+ from KGlobalSettings.completionMode().
+ A short example:
+ <pre>
+ KCompletion completion;
+ completion.setOrder( KCompletion.Sorted );
+ completion.addItem( "pfeiffer@kde.org" );
+ completion.addItem( "coolo@kde.org" );
+ completion.addItem( "carpdjih@sp.zrz.tu-berlin.de" );
+ completion.addItem( "carp@cs.tu-berlin.de" );
+ cout << completion.makeCompletion( "ca" ).latin1() << endl;
+ </pre>
+ In shell-completion-mode, this will be "carp"; in auto-completion-
+ mode it will be "carp\@cs.tu-berlin.de", as that is alphabetically
+ smaller.
+ If setOrder was set to Insertion, "carpdjih\@sp.zrz.tu-berlin.de"
+ would be completed in auto-completion-mode, as that was inserted before
+ "carp\@cs.tu-berlin.de".
+ You can dynamically update the completable items by removing and adding them
+ whenever you want.
+ For advanced usage, you could even use multiple KCompletion objects. E.g.
+ imagine an editor like kwrite with multiple open files. You could store
+ items of each file in a different KCompletion object, so that you know (and
+ tell the user) where a completion comes from.
+ Note: KCompletion does not work with strings that contain 0x0 characters
+ (unicode nul), as this is used internally as a delimiter.
+ You may inherit from KCompletion and override makeCompletion() in
+ special cases (like reading directories/urls and then supplying the
+ contents to KCompletion, as KURLCompletion does), but generally, this is
+ not necessary.
+ See {@link KCompletionSignals} for signals emitted by KCompletion
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short A generic class for completing Strings.
+
+*/
+public class KCompletion extends QObject {
+ protected KCompletion(Class dummy){super((Class) null);}
+ /**
+ Constants that represent the order in which KCompletion performs
+ completion-lookups.
+ @short Constants that represent the order in which KCompletion performs completion-lookups.
+ */
+ public static final int Sorted = 0;
+ public static final int Insertion = 1;
+ public static final int Weighted = 2;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor, nothing special here :)
+ @short Constructor, nothing special here :)
+ */
+ public KCompletion() {
+ super((Class) null);
+ newKCompletion();
+ }
+ private native void newKCompletion();
+ /**
+ Attempts to find an item in the list of available completions,
+ that begins with <code>string.</code> Will either return the first matching item
+ (if there is more than one match) or null, if no match was
+ found.
+ In the latter case, a sound will be issued, depending on
+ isSoundsEnabled().
+ If a match was found, it will also be emitted via the signal
+ match().
+ If this is called twice or more often with the same string while no
+ items were added or removed in the meantime, all available completions
+ will be emitted via the signal #matches().
+ This happens only in shell-completion-mode.
+ @param string the string to complete
+ @return the matching item, or null if there is no matching
+ item.
+
+ @short Attempts to find an item in the list of available completions, that begins with <code>string.</code>
+ @see #slotMakeCompletion
+ @see #substringCompletion
+ */
+ public native String makeCompletion(String string);
+ /**
+ Returns a list of all completion items that contain the given <code>string.</code>
+ @param string the string to complete
+ @return a list of items which all contain <code>text</code> as a substring,
+ i.e. not necessarily at the beginning.
+
+ @short Returns a list of all completion items that contain the given <code>string.</code>
+ @see #makeCompletion
+ */
+ public native ArrayList substringCompletion(String string);
+ /**
+ Returns the next item from the matching-items-list.
+ When reaching the beginning, the list is rotated so it will return the
+ last match and a sound is issued (depending on isSoundsEnabled()).
+ @return the next item from the matching-items-list.
+ When there is no match, null is returned and
+ a sound is be issued.
+
+ @short Returns the next item from the matching-items-list.
+ @see #slotPreviousMatch
+ */
+ public native String previousMatch();
+ /**
+ Returns the next item from the matching-items-list.
+ When reaching the last item, the list is rotated, so it will return
+ the first match and a sound is issued (depending on
+ isSoundsEnabled()).
+ @return the next item from the matching-items-list. When there is no
+ match, null is returned and a sound is issued
+
+ @short Returns the next item from the matching-items-list.
+ @see #slotNextMatch
+ */
+ public native String nextMatch();
+ /**
+ Returns the last match. Might be useful if you need to check whether
+ a completion is different from the last one.
+ @return the last match. null is returned when there is no
+ last match.
+
+ @short Returns the last match.
+ */
+ public native String lastMatch();
+ /**
+ Returns a list of all items inserted into KCompletion. This is useful
+ if you need to save the state of a KCompletion object and restore it
+ later.
+ Important note: when order() == Weighted, then every item in the
+ stringlist has its weight appended, delimited by a colon. E.g. an item
+ "www.kde.org" might look like "www.kde.org:4", where 4 is the weight.
+ This is necessary so that you can save the items along with its
+ weighting on disk and load them back with setItems(), restoring its
+ weight as well. If you really don't want the appended weightings, call
+ setOrder( KCompletion.Insertion )
+ before calling items().
+ @return a list of all items
+
+ @short Returns a list of all items inserted into KCompletion.
+ @see #setItems
+ */
+ public native ArrayList items();
+ /**
+ Returns true when the completion object contains no entries.
+ @short Returns true when the completion object contains no entries.
+ */
+ public native boolean isEmpty();
+ /**
+ Sets the completion mode to Auto/Manual, Shell or None.
+ If you don't set the mode explicitly, the global default value
+ KGlobalSettings.completionMode() is used.
+ KGlobalSettings.CompletionNone disables completion.
+ @param mode the completion mode
+ @short Sets the completion mode to Auto/Manual, Shell or None.
+ @see #completionMode
+ @see KGlobalSettings#completionMode
+ */
+ public native void setCompletionMode(int mode);
+ /**
+ Return the current completion mode.
+ May be different from KGlobalSettings.completionMode(), if you
+ explicitly called setCompletionMode().
+ @return the current completion mode
+
+ @short Return the current completion mode.
+ @see #setCompletionMode
+ */
+ public native int completionMode();
+ /**
+ KCompletion offers three different ways in which it offers its items:
+
+ <li>
+ in the order of insertion
+ </li>
+
+ <li>
+ sorted alphabetically
+ </li>
+
+ <li>
+ weighted
+ </li>
+ Choosing weighted makes KCompletion perform an implicit weighting based
+ on how often an item is inserted. Imagine a web browser with a location
+ bar, where the user enters URLs. The more often a URL is entered, the
+ higher priority it gets.
+ Note: Setting the order to sorted only affects new inserted items,
+ already existing items will stay in the current order. So you probably
+ want to call setOrder( Sorted ) before inserting items, when you want
+ everything sorted.
+ Default is insertion order.
+ @param order the new order
+ @short KCompletion offers three different ways in which it offers its items:
+ @see #order
+ */
+ public native void setOrder(int order);
+ /**
+ Returns the completion order.
+ @return the current completion order.
+
+ @short Returns the completion order.
+ @see #setOrder
+ */
+ public native int order();
+ /**
+ Setting this to true makes KCompletion behave case insensitively.
+ E.g. makeCompletion( "CA" ); might return "carp\@cs.tu-berlin.de".
+ Default is false (case sensitive).
+ @param ignoreCase true to ignore the case
+ @short Setting this to true makes KCompletion behave case insensitively.
+ @see #ignoreCase
+ */
+ public native void setIgnoreCase(boolean ignoreCase);
+ /**
+ Return whether KCompletion acts case insensitively or not.
+ Default is false (case sensitive).
+ @return true if the case will be ignored
+
+ @short Return whether KCompletion acts case insensitively or not.
+ @see #setIgnoreCase
+ */
+ public native boolean ignoreCase();
+ /**
+ Returns a list of all items matching the last completed string.
+ Might take some time, when you have LOTS of items.
+ @return a list of all matches for the last completed string.
+
+ @short Returns a list of all items matching the last completed string.
+ @see #substringCompletion
+ */
+ public native ArrayList allMatches();
+ /**
+ Returns a list of all items matching <code>string.</code>
+ @param string the string to match
+ @return the list of all matches
+
+ @short Returns a list of all items matching <code>string.</code>
+ */
+ public native ArrayList allMatches(String string);
+ /**
+ Returns a list of all items matching the last completed string.
+ Might take some time, when you have LOTS of items.
+ The matches are returned as KCompletionMatches, which also
+ keeps the weight of the matches, allowing
+ you to modify some matches or merge them with matches
+ from another call to allWeightedMatches(), and sort the matches
+ after that in order to have the matches ordered correctly.
+ @return a list of all completion matches
+
+ @short Returns a list of all items matching the last completed string.
+ @see #substringCompletion
+ */
+ // KCompletionMatches allWeightedMatches(); >>>> NOT CONVERTED
+ /**
+ Returns a list of all items matching <code>string.</code>
+ @param string the string to match
+ @return a list of all matches
+
+ @short Returns a list of all items matching <code>string.</code>
+ */
+ // KCompletionMatches allWeightedMatches(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Enables/disables playing a sound when
+
+ <li>
+ makeCompletion() can't find a match
+ </li>
+
+ <li>
+ there is a partial completion (= multiple matches in
+ Shell-completion mode)
+ </li>
+
+ <li>
+ nextMatch() or previousMatch() hit the last possible
+ match . rotation
+ </li>
+ For playing the sounds, KNotifyClient() is used.
+ @param enable true to enable sounds
+ @short Enables/disables playing a sound when
+ @see #isSoundsEnabled
+ */
+ public native void setEnableSounds(boolean enable);
+ /**
+ Tells you whether KCompletion will play sounds on certain occasions.
+ Default is enabled.
+ @return true if sounds are enabled
+
+ @short Tells you whether KCompletion will play sounds on certain occasions.
+ @see #enableSounds
+ @see #disableSounds
+ */
+ public native boolean isSoundsEnabled();
+ /**
+ Returns true when more than one match is found.
+ @return true if there are more than one match
+
+ @short Returns true when more than one match is found.
+ @see #multipleMatches
+ */
+ public native boolean hasMultipleMatches();
+ /**
+ Attempts to complete "string" and emits the completion via match().
+ Same as makeCompletion() (just as a slot).
+ @param string the string to complete
+ @short Attempts to complete "string" and emits the completion via match().
+ @see #makeCompletion
+ */
+ public native void slotMakeCompletion(String string);
+ /**
+ Searches the previous matching item and emits it via match().
+ Same as previousMatch() (just as a slot).
+ @short Searches the previous matching item and emits it via match().
+ @see #previousMatch
+ */
+ public native void slotPreviousMatch();
+ /**
+ Searches the next matching item and emits it via match().
+ Same as nextMatch() (just as a slot).
+ @short Searches the next matching item and emits it via match().
+ @see #nextMatch
+ */
+ public native void slotNextMatch();
+ /**
+ Inserts <code>items</code> into the list of possible completions.
+ Does the same as setItems(), but does not call clear() before.
+ @param items the items to insert
+ @short Inserts <code>items</code> into the list of possible completions.
+ */
+ public native void insertItems(String[] items);
+ /**
+ Sets the list of items available for completion. Removes all previous
+ items.
+ Notice: when order() == Weighted, then the weighting is looked up for
+ every item in the stringlist. Every item should have ":number" appended,
+ where number is an unsigned integer, specifying the weighting.
+ If you don't like this, call
+ setOrder( KCompletion.Insertion )
+ before calling setItems().
+ @param list the list of items that are available for completion
+ @short Sets the list of items available for completion.
+ @see #items
+ */
+ public native void setItems(String[] list);
+ /**
+ Adds an item to the list of available completions.
+ Resets the current item-state ( previousMatch() and nextMatch()
+ won't work anymore).
+ @param item the item to add
+ @short Adds an item to the list of available completions.
+ */
+ public native void addItem(String item);
+ /**
+ Adds an item to the list of available completions.
+ Resets the current item-state ( previousMatch() and nextMatch()
+ won't work anymore).
+ Sets the weighting of the item to <code>weight</code> or adds it to the current
+ weighting if the item is already available. The weight has to be greater
+ than 1 to take effect (default weight is 1).
+ @param item the item to add
+ @param weight the weight of the item, default is 1
+ @short Adds an item to the list of available completions.
+ */
+ public native void addItem(String item, int weight);
+ /**
+ Removes an item from the list of available completions.
+ Resets the current item-state ( previousMatch() and nextMatch()
+ won't work anymore).
+ @param item the item to remove
+ @short Removes an item from the list of available completions.
+ */
+ public native void removeItem(String item);
+ /**
+ Removes all inserted items.
+ @short Removes all inserted items.
+ */
+ public native void clear();
+ /**
+ This method is called after a completion is found and before the
+ matching string is emitted. You can override this method to modify the
+ string that will be emitted.
+ This is necessary e.g. in KURLCompletion(), where files with spaces
+ in their names are shown escaped ("filename\ with\ spaces"), but stored
+ unescaped inside KCompletion.
+ Never delete that pointer!
+ Default implementation does nothing.
+ @param match the match to process
+ @short This method is called after a completion is found and before the matching string is emitted.
+ @see #postProcessMatches
+ */
+ protected native void postProcessMatch(StringBuffer match);
+ /**
+ This method is called before a list of all available completions is
+ emitted via #matches. You can override this method to modify the
+ found items before match() or #matches are emitted.
+ Never delete that pointer!
+ Default implementation does nothing.
+ @param matches the matches to process
+ @short This method is called before a list of all available completions is emitted via #matches.
+ @see #postProcessMatch
+ */
+ protected native void postProcessMatches(String[] matches);
+ /**
+ This method is called before a list of all available completions is
+ emitted via #matches. You can override this method to modify the
+ found items before #match() or #matches() are emitted.
+ Never delete that pointer!
+ Default implementation does nothing.
+ @param matches the matches to process
+ @short This method is called before a list of all available completions is emitted via #matches.
+ @see #postProcessMatch
+ */
+ // void postProcessMatches(KCompletionMatches* arg1); >>>> NOT CONVERTED
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCompletionBase.java b/kdejava/koala/org/kde/koala/KCompletionBase.java
new file mode 100644
index 00000000..3ae9fa93
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCompletionBase.java
@@ -0,0 +1,281 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ An abstract base class for adding a completion feature
+ into widgets.
+ This is a convenience class that provides the basic functions
+ needed to add text completion support into widgets. All that
+ is required is an implementation for the pure function
+ setCompletedText. Refer to KLineEdit or KComboBox
+ to see how easily such support can be added using this as a base
+ class.
+ @author Dawit Alemayehu <adawit@kde.org>
+
+ @short An abstract class for adding text completion support to widgets.
+
+*/
+public class KCompletionBase implements QtSupport, KCompletionBaseInterface {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KCompletionBase(Class dummy){}
+
+ /**
+ Constants that represent the items whose short-cut
+ key-binding is programmable. The default key-bindings
+ for these items are defined in KStdAccel.
+ @short Constants that represent the items whose short-cut key-binding is programmable.
+ */
+ public static final int TextCompletion = 0;
+ public static final int PrevCompletionMatch = 1;
+ public static final int NextCompletionMatch = 2;
+ public static final int SubstringCompletion = 3;
+
+ /**
+ Default constructor.
+ @short Default constructor.
+ */
+ /**
+ Returns a pointer to the current completion object.
+ If the completion object does not exist, it is automatically created and
+ by default handles all the completion signals internally unless <code>hsig</code>
+ is set to false. It is also automatically destroyed when the destructor
+ is called. You can change this default behavior using the
+ {@link #setAutoDeleteCompletionObject} and {@link #setHandleSignals} member
+ functions.
+ See also {@link #compObj}.
+ @param hsig if true, handles completion signals internally.
+ @return a pointer the completion object.
+
+ @short Returns a pointer to the current completion object.
+ */
+ public native KCompletion completionObject(boolean hsig);
+ public native KCompletion completionObject();
+ /**
+ Sets up the completion object to be used.
+ This method assigns the completion object and sets it up to automatically
+ handle the completion and rotation signals internally. You should use
+ this function if you want to share one completion object among your
+ widgets or need to use a customized completion object.
+ The object assigned through this method is not deleted when this object's
+ destructor is invoked unless you explicitly call {@link #setAutoDeleteCompletionObject}
+ after calling this method. Be sure to set the boolean argument to false, if
+ you want to handle the completion signals yourself.
+ @param compObj a KCompletion() or a derived child object.
+ @param hsig if true, handles completion signals internally.
+ @short Sets up the completion object to be used.
+ */
+ public native void setCompletionObject(KCompletion compObj, boolean hsig);
+ public native void setCompletionObject(KCompletion compObj);
+ /**
+ Enables this object to handle completion and rotation
+ events internally.
+ This function simply assigns a booleanean value that
+ indicates whether it should handle rotation and
+ completion events or not. Note that this does not
+ stop the object from emitting signals when these
+ events occur.
+ @param handle if true, handle completion & rotation internally.
+ @short Enables this object to handle completion and rotation events internally.
+ */
+ public native void setHandleSignals(boolean handle);
+ /**
+ Returns true if the completion object is deleted
+ upon this widget's destruction.
+ See setCompletionObject() and enableCompletion()
+ for details.
+ @return true if the completion object will be deleted
+ automatically
+
+ @short Returns true if the completion object is deleted upon this widget's destruction.
+ */
+ public native boolean isCompletionObjectAutoDeleted();
+ /**
+ Sets the completion object when this widget's destructor
+ is called.
+ If the argument is set to true, the completion object
+ is deleted when this widget's destructor is called.
+ @param autoDelete if true, delete completion object on destruction.
+ @short Sets the completion object when this widget's destructor is called.
+ */
+ public native void setAutoDeleteCompletionObject(boolean autoDelete);
+ /**
+ Sets the widget's ability to emit text completion and
+ rotation signals.
+ Invoking this function with <code>enable</code> set to <code>false</code> will
+ cause the completion & rotation signals not to be emitted.
+ However, unlike setting the completion object to <code>NULL</code>
+ using setCompletionObject, disabling the emition of
+ the signals through this method does not affect the current
+ completion object.
+ There is no need to invoke this function by default. When a
+ completion object is created through completionObject or
+ setCompletionObject, these signals are set to emit
+ automatically. Also note that disabling this signals will not
+ necessarily interfere with the objects ability to handle these
+ events internally. See setHandleSignals.
+ @param enable if false, disables the emition of completion & rotation signals.
+ @short Sets the widget's ability to emit text completion and rotation signals.
+ */
+ public native void setEnableSignals(boolean enable);
+ /**
+ Returns true if the object handles the signals.
+ @return true if this signals are handled internally.
+
+ @short Returns true if the object handles the signals.
+ */
+ public native boolean handleSignals();
+ /**
+ Returns true if the object emits the signals.
+ @return true if signals are emitted
+
+ @short Returns true if the object emits the signals.
+ */
+ public native boolean emitSignals();
+ /**
+ Sets the type of completion to be used.
+ The completion modes supported are those defined in
+ KGlobalSettings(). See below.
+ @param mode Completion type:
+
+ <li>
+ CompletionNone: Disables completion feature.
+ </li>
+
+ <li>
+ CompletionAuto: Attempts to find a match &
+ fills-in the remaining text.
+ </li>
+
+ <li>
+ CompletionMan: Acts the same as the above
+ except the action has to be
+ manually triggered through
+ pre-defined completion key.
+ </li>
+
+ <li>
+ CompletionShell: Mimics the completion feature
+ found in typical nix shell
+ environments.
+ </li>
+
+ <li>
+ CompletionPopup: Shows all available completions at once,
+ in a listbox popping up.
+
+ </li> @short Sets the type of completion to be used.
+ */
+ public native void setCompletionMode(int mode);
+ /**
+ Returns the current completion mode.
+ The return values are of type KGlobalSettings.Completion.
+ See setCompletionMode() for details.
+ @return the completion mode.
+
+ @short Returns the current completion mode.
+ */
+ public native int completionMode();
+ /**
+ Sets the key-binding to be used for manual text
+ completion, text rotation in a history list as
+ well as a completion list.
+ When the keys set by this function are pressed, a
+ signal defined by the inheriting widget will be activated.
+ If the default value or 0 is specified by the second
+ parameter, then the key-binding as defined in the global
+ setting should be used. This method returns false value
+ for <code>key</code> is negative or the supplied key-binding conflicts
+ with the ones set for one of the other features.
+ NOTE: To use a modifier key (Shift, Ctrl, Alt) as part of
+ the key-binding simply simply <code>sum</code> up the values of the
+ modifier and the actual key. For example, to use CTRL+E as
+ a key binding for one of the items, you would simply supply
+ <code></code>"Qt.CtrlButton + Qt.Key_E" as the second argument to this
+ function.
+ @param item the feature whose key-binding needs to be set:
+
+ <li>
+ TextCompletion the manual completion key-binding.
+ </li>
+
+ <li>
+ PrevCompletionMatch the previous match key for multiple completion.
+ </li>
+
+ <li>
+ NextCompletionMatch the next match key for for multiple completion.
+ </li>
+
+ <li>
+ SubstringCompletion the key for substring completion
+ </li>
+ @param key key-binding used to rotate down in a list.
+ @return true if key-binding can successfully be set.
+
+ @short Sets the key-binding to be used for manual text completion, text rotation in a history list as well as a completion list.
+ @see #getKeyBinding
+ */
+ public native boolean setKeyBinding(int item, KShortcut key);
+ /**
+ Returns the key-binding used for the specified item.
+ This methods returns the key-binding used to activate
+ the feature feature given by <code>item.</code> If the binding
+ contains modifier key(s), the SUM of the modifier key
+ and the actual key code are returned.
+ @param item the item to check
+ @return the key-binding used for the feature given by <code>item.</code>
+
+ @short Returns the key-binding used for the specified item.
+ @see #setKeyBinding
+ */
+ public native KShortcut getKeyBinding(int item);
+ /**
+ Sets this object to use global values for key-bindings.
+ This method changes the values of the key bindings for
+ rotation and completion features to the default values
+ provided in KGlobalSettings.
+ NOTE: By default inheriting widgets should uses the
+ global key-bindings so that there will be no need to
+ call this method.
+ @short Sets this object to use global values for key-bindings.
+ */
+ public native void useGlobalKeyBindings();
+ /**
+ A pure function that must be implemented by
+ all inheriting classes.
+ This function is intended to allow external completion
+ implementations to set completed text appropriately. It
+ is mostly relevant when the completion mode is set to
+ CompletionAuto and CompletionManual modes. See
+ KCompletionBase.setCompletedText.
+ Does nothing in CompletionPopup mode, as all available
+ matches will be shown in the popup.
+ @param text the completed text to be set in the widget.
+ @short A pure virtual function that must be implemented by all inheriting classes.
+ */
+ public native void setCompletedText(String text);
+ /**
+ A pure function that must be implemented by
+ all inheriting classes.
+ @param items the list of completed items
+ @short A pure virtual function that must be implemented by all inheriting classes.
+ */
+ public native void setCompletedItems(String[] items);
+ /**
+ Returns a pointer to the completion object.
+ This method is only different from completionObject()
+ in that it does not create a new KCompletion object even if
+ the internal pointer is <code>NULL.</code> Use this method to get the
+ pointer to a completion object when inheriting so that you
+ won't inadvertently create it!!
+ @return the completion object or NULL if one does not exist.
+
+ @short Returns a pointer to the completion object.
+ */
+ public native KCompletion compObj();
+}
diff --git a/kdejava/koala/org/kde/koala/KCompletionBaseInterface.java b/kdejava/koala/org/kde/koala/KCompletionBaseInterface.java
new file mode 100644
index 00000000..9e0fa101
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCompletionBaseInterface.java
@@ -0,0 +1,25 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QtSupport;
+
+public interface KCompletionBaseInterface {
+ KCompletion completionObject(boolean hsig);
+ KCompletion completionObject();
+ void setCompletionObject(KCompletion compObj, boolean hsig);
+ void setCompletionObject(KCompletion compObj);
+ void setHandleSignals(boolean handle);
+ boolean isCompletionObjectAutoDeleted();
+ void setAutoDeleteCompletionObject(boolean autoDelete);
+ void setEnableSignals(boolean enable);
+ boolean handleSignals();
+ boolean emitSignals();
+ void setCompletionMode(int mode);
+ int completionMode();
+ boolean setKeyBinding(int item, KShortcut key);
+ KShortcut getKeyBinding(int item);
+ void useGlobalKeyBindings();
+ void setCompletedText(String text);
+ void setCompletedItems(String[] items);
+ KCompletion compObj();
+}
diff --git a/kdejava/koala/org/kde/koala/KCompletionBox.java b/kdejava/koala/org/kde/koala/KCompletionBox.java
new file mode 100644
index 00000000..1bc48bc2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCompletionBox.java
@@ -0,0 +1,197 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QListBoxItem;
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QSize;
+import java.util.ArrayList;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ A little utility class for "completion-widgets", like KLineEdit or
+ KComboBox. KCompletionBox is a listbox, displayed as a rectangle without
+ any window decoration, usually directly under the lineedit or combobox.
+ It is filled with all possible matches for a completion, so the user
+ can select the one he wants.
+ It is used when KGlobalSettings.Completion == CompletionPopup or CompletionPopupAuto.
+ See {@link KCompletionBoxSignals} for signals emitted by KCompletionBox
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short A helper widget for "completion-widgets" (KLineEdit, KComboBox)).
+
+*/
+public class KCompletionBox extends KListBox {
+ protected KCompletionBox(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KCompletionBox.
+ The parent widget is used to give the focus back when pressing the
+ up-button on the very first item.
+ @short Constructs a KCompletionBox.
+ */
+ public KCompletionBox(QWidget parent, String name) {
+ super((Class) null);
+ newKCompletionBox(parent,name);
+ }
+ private native void newKCompletionBox(QWidget parent, String name);
+ public KCompletionBox(QWidget parent) {
+ super((Class) null);
+ newKCompletionBox(parent);
+ }
+ private native void newKCompletionBox(QWidget parent);
+ public native QSize sizeHint();
+ /**
+ @return true if selecting an item results in the emition of the selected signal.
+
+ @short
+ */
+ public native boolean activateOnSelect();
+ /**
+ Returns a list of all items currently in the box.
+ @short Returns a list of all items currently in the box.
+ */
+ public native ArrayList items();
+ /**
+ Inserts <code>items</code> into the box. Does not clear the items before.
+ <code>index</code> determines at which position <code>items</code> will be inserted.
+ (defaults to appending them at the end)
+ @short Inserts <code>items</code> into the box.
+ */
+ public native void insertItems(String[] items, int index);
+ public native void insertItems(String[] items);
+ /**
+ Clears the box and inserts <code>items.</code>
+ @short Clears the box and inserts <code>items.</code>
+ */
+ public native void setItems(String[] items);
+ /**
+ Adjusts the size of the box to fit the width of the parent given in the
+ constructor and pops it up at the most appropriate place, relative to
+ the parent.
+ Depending on the screensize and the position of the parent, this may
+ be a different place, however the default is to pop it up and the
+ lower left corner of the parent.
+ Make sure to hide() the box when appropriate.
+ @short Adjusts the size of the box to fit the width of the parent given in the constructor and pops it up at the most appropriate place, relative to the parent.
+ */
+ public native void popup();
+ /**
+ Makes this widget (when visible) capture Tab-key events to traverse the
+ items in the dropdown list.
+ Default off, as it conflicts with the usual behavior of Tab to traverse
+ widgets. It is useful for cases like Konqueror's Location Bar, though.
+ @short Makes this widget (when visible) capture Tab-key events to traverse the items in the dropdown list.
+ @see #isTabHandling
+ */
+ public native void setTabHandling(boolean enable);
+ /**
+ Default is false.
+ @return true if this widget is handling Tab-key events to traverse the
+ items in the dropdown list, otherwise false.
+
+ @short
+ @see #setTabHandling
+ */
+ public native boolean isTabHandling();
+ /**
+ Sets the text to be emitted if the user chooses not to
+ pick from the available matches.
+ If the canceled text is not set through this function, the
+ userCancelled signal will not be emitted.
+ @param txt the text to be emitted if the user cancels this box
+ @short Sets the text to be emitted if the user chooses not to pick from the available matches.
+ @see #userCancelled(
+ @see #const
+ */
+ public native void setCancelledText(String txt);
+ /**
+ @return the text set via setCancelledText() or null.
+
+ @short
+ */
+ public native String cancelledText();
+ /**
+ Set whether or not the selected signal should be emitted when an
+ item is selected. By default the selected signal is emitted.
+ @param state false if the signal should not be emitted.
+ @short Set whether or not the selected signal should be emitted when an item is selected.
+ */
+ public native void setActivateOnSelect(boolean state);
+ /**
+ Moves the selection one line down or select the first item if nothing is selected yet.
+ @short Moves the selection one line down or select the first item if nothing is selected yet.
+ */
+ public native void down();
+ /**
+ Moves the selection one line up or select the first item if nothing is selected yet.
+ @short Moves the selection one line up or select the first item if nothing is selected yet.
+ */
+ public native void up();
+ /**
+ Moves the selection one page down.
+ @short Moves the selection one page down.
+ */
+ public native void pageDown();
+ /**
+ Moves the selection one page up.
+ @short Moves the selection one page up.
+ */
+ public native void pageUp();
+ /**
+ Moves the selection up to the first item.
+ @short Moves the selection up to the first item.
+ */
+ public native void home();
+ /**
+ Moves the selection down to the last item.
+ @short Moves the selection down to the last item.
+ */
+ public native void end();
+ /**
+ Re-implemented for internal reasons. API is unaffected.
+ @short Re-implemented for internal reasons.
+ */
+ public native void show();
+ /**
+ Re-implemented for internal reasons. API is unaffected.
+ @short Re-implemented for internal reasons.
+ */
+ public native void hide();
+ /**
+ This calculates the size of the dropdown and the relative position of the top
+ left corner with respect to the parent widget. This matches the geometry and position
+ normally used by K/QComboBox when used with one.
+ @short This calculates the size of the dropdown and the relative position of the top left corner with respect to the parent widget.
+ */
+ protected native QRect calculateGeometry();
+ /**
+ This properly sizes and positions the listbox.
+ @short This properly sizes and positions the listbox.
+ */
+ protected native void sizeAndPosition();
+ /**
+ Reimplemented from KListBox to get events from the viewport (to hide
+ this widget on mouse-click, Escape-presses, etc.
+ @short Reimplemented from KListBox to get events from the viewport (to hide this widget on mouse-click, Escape-presses, etc.
+ */
+ public native boolean eventFilter(QObject arg1, QEvent arg2);
+ /**
+ Called when an item was activated. Emits
+ activated() with the item.
+ @short Called when an item was activated.
+ */
+ protected native void slotActivated(QListBoxItem arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCompletionBoxSignals.java b/kdejava/koala/org/kde/koala/KCompletionBoxSignals.java
new file mode 100644
index 00000000..9ddf0cc5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCompletionBoxSignals.java
@@ -0,0 +1,27 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QListBoxItem;
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QSize;
+import java.util.ArrayList;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+public interface KCompletionBoxSignals {
+ /**
+ Emitted when an item was selected, contains the text of
+ the selected item.
+ @short Emitted when an item was selected, contains the text of the selected item.
+ */
+ void activated(String arg1);
+ /**
+ Emitted whenever the user chooses to ignore the available
+ selections and close the this box.
+ @short Emitted whenever the user chooses to ignore the available selections and close the this box.
+ */
+ void userCancelled(String arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KCompletionSignals.java b/kdejava/koala/org/kde/koala/KCompletionSignals.java
new file mode 100644
index 00000000..75a9b3d6
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCompletionSignals.java
@@ -0,0 +1,32 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+public interface KCompletionSignals {
+ /**
+ The matching item. Will be emitted by makeCompletion(),
+ previousMatch() or nextMatch(). May be null if there
+ is no matching item.
+ @param item the match, or null if there is none
+ @short The matching item.
+ */
+ void match(String item);
+ /**
+ All matching items. Will be emitted by makeCompletion() in shell-
+ completion-mode, when the same string is passed to makeCompletion twice
+ or more often.
+ @param matchlist the list of matches
+ @short All matching items.
+ */
+ void matches(String[] matchlist);
+ /**
+ This signal is emitted, when calling makeCompletion() and more than
+ one matching item is found.
+ @short This signal is emitted, when calling makeCompletion() and more than one matching item is found.
+ @see #hasMultipleMatches
+ */
+ void multipleMatches();
+}
diff --git a/kdejava/koala/org/kde/koala/KConfig.java b/kdejava/koala/org/kde/koala/KConfig.java
new file mode 100644
index 00000000..91f012da
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KConfig.java
@@ -0,0 +1,232 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ Access KDE Configuration entries.
+ This class implements KDE's default configuration system.
+ @author Kalle Dalheimer <kalle@kde.org>, Preston Brown <pbrown@kde.org>
+
+ @short KDE Configuration Management class.
+ @see KGlobal#config
+ @see KConfigBase
+ @see KSimpleConfig
+
+*/
+public class KConfig extends KConfigBase {
+ protected KConfig(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KConfig object.
+ @param fileName A file to parse in addition to the
+ system-wide file(s). If it is not provided, only global
+ KDE configuration data will be read (depending on the value of
+ <code>bUseKDEGlobals</code>).
+ @param bReadOnly Set the config object's read-only status. Note that the
+ object will automatically become read-only if either the user does not have
+ write permission to <code>fileName</code> or if no file was specified.
+ @param bUseKDEGlobals Toggle reading the global KDE configuration file.
+ @param resType the place to look in (config, data, etc) See KStandardDirs.
+ @short Constructs a KConfig object.
+ */
+ public KConfig(String fileName, boolean bReadOnly, boolean bUseKDEGlobals, String resType) {
+ super((Class) null);
+ newKConfig(fileName,bReadOnly,bUseKDEGlobals,resType);
+ }
+ private native void newKConfig(String fileName, boolean bReadOnly, boolean bUseKDEGlobals, String resType);
+ public KConfig(String fileName, boolean bReadOnly, boolean bUseKDEGlobals) {
+ super((Class) null);
+ newKConfig(fileName,bReadOnly,bUseKDEGlobals);
+ }
+ private native void newKConfig(String fileName, boolean bReadOnly, boolean bUseKDEGlobals);
+ public KConfig(String fileName, boolean bReadOnly) {
+ super((Class) null);
+ newKConfig(fileName,bReadOnly);
+ }
+ private native void newKConfig(String fileName, boolean bReadOnly);
+ public KConfig(String fileName) {
+ super((Class) null);
+ newKConfig(fileName);
+ }
+ private native void newKConfig(String fileName);
+ public KConfig() {
+ super((Class) null);
+ newKConfig();
+ }
+ private native void newKConfig();
+ public KConfig(KConfigBackEnd backEnd, boolean bReadOnly) {
+ super((Class) null);
+ newKConfig(backEnd,bReadOnly);
+ }
+ private native void newKConfig(KConfigBackEnd backEnd, boolean bReadOnly);
+ public KConfig(KConfigBackEnd backEnd) {
+ super((Class) null);
+ newKConfig(backEnd);
+ }
+ private native void newKConfig(KConfigBackEnd backEnd);
+ /**
+ Clears all entries out of the <code>dirtyEntryMap</code>, so the
+ values will not be written to disk on a later call to
+ sync().
+ @param bDeep If true, the dirty map is actually emptied.
+ otherwise, the config object's global dirty flag is set to
+ false, but the dirty entries remain in the dirty entry
+ map.
+ @short Clears all entries out of the <code>dirtyEntryMap</code>, so the values will not be written to disk on a later call to sync().
+ @see KConfigBase#rollback
+ */
+ public native void rollback(boolean bDeep);
+ public native void rollback();
+ /**
+ Returns a list of groups that are known.
+ @return a list of of groups
+
+ @short Returns a list of groups that are known.
+ */
+ public native ArrayList groupList();
+ /**
+ Returns a map (tree) of entries for all entries in a particular
+ group.
+ Only the actual entry string is returned, none of the
+ other internal data should be included.
+ @param pGroup A group to get keys from.
+ @return A map of entries in the group specified, indexed by key.
+ The returned map may be empty if the group is not found.
+
+ @short Returns a map (tree) of entries for all entries in a particular group.
+ */
+ // QMap<QString, QString> entryMap(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Clears all internal data structures and then reread
+ configuration information from disk.
+ @short Clears all internal data structures and then reread configuration information from disk.
+ */
+ public native void reparseConfiguration();
+ /**
+ Set the file mode for newly created files.
+ @param mode the mode for new files as described in chmod(2)
+ @short Set the file mode for newly created files.
+ @see #man:chmod(2)
+ @see #for
+ @see #a
+ @see #description
+ @see #of
+ @see <code></code>@see #mode
+ */
+ public native void setFileWriteMode(int mode);
+ /**
+ Forces all following write-operations being performed on kdeglobals,
+ independent of the bGlobal flag in writeEntry().
+ @param force true to force writing in kdeglobals
+ @short Forces all following write-operations being performed on kdeglobals, independent of the bGlobal flag in writeEntry().
+ @see #forceGlobal
+ */
+ public native void setForceGlobal(boolean force);
+ /**
+ Returns true if all entries are being written into kdeglobals.
+ @return true if all entries are being written into kdeglobals
+
+ @short Returns true if all entries are being written into kdeglobals.
+ @see #setForceGlobal
+ */
+ public native boolean forceGlobal();
+ /**
+ Checks whether the config file contains the update <code>id</code>
+ as contained in <code>updateFile.</code> If not, it runs kconf_update
+ to update the config file.
+ If you install config update files with critical fixes
+ you may wish to use this method to verify that a critical
+ update has indeed been performed to catch the case where
+ a user restores an old config file from backup that has
+ not been updated yet.
+ @param id the update to check
+ @param updateFile the file containing the update
+ @short Checks whether the config file contains the update <code>id</code> as contained in <code>updateFile.</code>
+ */
+ public native void checkUpdate(String id, String updateFile);
+ /**
+ Copies all entries from this config object to a new config
+ object that will save itself to <code>file.</code>
+ Actual saving to <code>file</code> happens when the returned object is
+ destructed or when sync() is called upon it.
+ @param file the new config object will save itself to.
+ @param config optional config object to reuse
+ @short Copies all entries from this config object to a new config object that will save itself to <code>file.</code>
+ */
+ public native KConfig copyTo(String file, KConfig config);
+ public native KConfig copyTo(String file);
+ /**
+ Returns a lock file object for the configuration file or 0 if
+ the backend does not support locking.
+ @param bGlobal if true, return the lock file for the global config file
+ NOTE: KConfig.sync() requires a lock on both the normal and global
+ config file. When calling KConfig.sync() while having a lock on the
+ global config file, the normal config file MUST be locked AS WELL and the
+ normal config file MUST be locked BEFORE the global config file!
+ Otherwise there is a risk of deadlock.
+ @short Returns a lock file object for the configuration file or 0 if the backend does not support locking.
+ */
+ // KLockFile::Ptr lockFile(bool arg1); >>>> NOT CONVERTED
+ // KLockFile::Ptr lockFile(); >>>> NOT CONVERTED
+ /**
+ Returns true if the specified group is known.
+ @param group The group to search for.
+ @return true if the group exists.
+
+ @short Returns true if the specified group is known.
+ */
+ protected native boolean internalHasGroup(String group);
+ /**
+ Returns a map (tree) of the entries in the specified group.
+ Do not use this function, the implementation / return type are
+ subject to change.
+ @param pGroup the group to provide a KEntryMap for.
+ @return The map of the entries in the group.
+
+ @short
+ */
+ // KEntryMap internalEntryMap(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Returns a copy of the internal map used to hold all entries.
+ Do not use this function, the implementation / return type are
+ subject to change.
+ @return The map of the entries in the group.
+
+ @short
+ */
+ // KEntryMap internalEntryMap(); >>>> NOT CONVERTED
+ /**
+ Inserts a (key, value) pair into the internal storage mechanism of
+ the configuration object.
+ @param _key The key to insert. It contains information both on
+ the group of the key and the key itself. If the key already
+ exists, the old value will be replaced.
+ @param _data the KEntry that is to be stored.
+ @param _checkGroup When false, assume that the group already exists.
+ @short Inserts a (key, value) pair into the internal storage mechanism of the configuration object.
+ */
+ protected native void putData(KEntryKey _key, KEntry _data, boolean _checkGroup);
+ protected native void putData(KEntryKey _key, KEntry _data);
+ /**
+ Looks up an entry in the config object's internal structure.
+ @param _key The key to look up It contains information both on
+ the group of the key and the entry's key itself.
+ @return the KEntry value (data) found for the key. KEntry.aValue
+ will be the null string if nothing was located.
+
+ @short Looks up an entry in the config object's internal structure.
+ */
+ protected native KEntry lookupData(KEntryKey _key);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KConfigBackEnd.java b/kdejava/koala/org/kde/koala/KConfigBackEnd.java
new file mode 100644
index 00000000..e210532f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KConfigBackEnd.java
@@ -0,0 +1,120 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Abstract base class for KDE configuration file loading/saving.
+ This class forms the base for all classes that implement some
+ manner of loading/saving to configuration files. It is an
+ abstract base class, meaning that you cannot directly instantiate
+ objects of this class. As of right now, the only back end available
+ is one to read/write to INI-style files, but in the future, other
+ formats may be available, such as XML or a database.
+ @author Preston Brown <pbrown@kde.org>,
+ Matthias Kalle Dalheimer <kalle@kde.org>
+
+ @short KDE Configuration file loading/saving abstract base class.
+
+*/
+public class KConfigBackEnd implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KConfigBackEnd(Class dummy){}
+
+ /**
+ Constructs a configuration back end.
+ @param _config Specifies the configuration object which values
+ will be passed to as they are read, or from where values
+ to be written to will be obtained from.
+ @param _fileName The name of the file in which config
+ data is stored. All registered configuration directories
+ will be looked in in order of decreasing relevance.
+ @param _resType the resource type of the fileName specified, _if_
+ it is not an absolute path (otherwise this parameter is ignored).
+ @param _useKDEGlobals If true, the user's system-wide kdeglobals file
+ will be imported into the config object. If false, only
+ the filename specified will be dealt with.
+ @short Constructs a configuration back end.
+ */
+ /**
+ Parses all configuration files for a configuration object. This
+ method must be reimplemented by the derived classes.
+ @return Whether or not parsing was successful.
+
+ @short Parses all configuration files for a configuration object.
+ */
+ public native boolean parseConfigFiles();
+ /**
+ Writes configuration data to file(s). This method must be
+ reimplemented by the derived classes.
+ @param bMerge Specifies whether the old config file already
+ on disk should be merged in with the data in memory. If true,
+ data is read off the disk and merged. If false, the on-disk
+ file is removed and only in-memory data is written out.
+ @short Writes configuration data to file(s).
+ */
+ public native void sync(boolean bMerge);
+ public native void sync();
+ /**
+ Changes the filenames associated with this back end. You should
+ probably reparse your config info after doing this.
+ @param _fileName the new filename to use
+ @param _resType the resource type of the fileName specified, _if_
+ it is not an absolute path (otherwise this parameter is ignored).
+ @param _useKDEGlobals specifies whether or not to also parse the
+ global KDE configuration files.
+ @short Changes the filenames associated with this back end.
+ */
+ public native void changeFileName(String _fileName, String _resType, boolean _useKDEGlobals);
+ /**
+ Returns the state of the app-config object.
+ @short Returns the state of the app-config object.
+ @see KConfig#getConfigState
+ */
+ public native int getConfigState();
+ /**
+ Returns the filename as passed to the constructor.
+ @return the filename as passed to the constructor.
+
+ @short Returns the filename as passed to the constructor.
+ */
+ public native String fileName();
+ /**
+ Returns the resource type as passed to the constructor.
+ @return the resource type as passed to the constructor.
+
+ @short Returns the resource type as passed to the constructor.
+ */
+ public native String resource();
+ /**
+ Set the locale string that defines the current language.
+ @param _localeString the identifier of the language
+ @short Set the locale string that defines the current language.
+ @see KLocale
+ */
+ public native void setLocaleString(String _localeString);
+ /**
+ Set the file mode for newly created files.
+ @param mode the filemode (as in chmod)
+ @short Set the file mode for newly created files.
+ */
+ public native void setFileWriteMode(int mode);
+ /**
+ Check whether the config files are writable.
+ @param warnUser Warn the user if the configuration files are not writable.
+ @return Indicates that all of the configuration files used are writable.
+
+ @short Check whether the config files are writable.
+ */
+ public native boolean checkConfigFilesWritable(boolean warnUser);
+ /**
+ Returns a lock file object for the configuration file
+ @param bGlobal If true, returns a lock file object for kdeglobals
+ @short Returns a lock file object for the configuration file
+ */
+ // KLockFile::Ptr lockFile(bool arg1); >>>> NOT CONVERTED
+ // KLockFile::Ptr lockFile(); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/KConfigBase.java b/kdejava/koala/org/kde/koala/KConfigBase.java
new file mode 100644
index 00000000..86538f6e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KConfigBase.java
@@ -0,0 +1,936 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QRect;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import java.util.Calendar;
+import org.kde.qt.QSize;
+import java.util.ArrayList;
+import org.kde.qt.QVariant;
+import org.kde.qt.QObject;
+
+/**
+
+ This class forms the base for all %KDE configuration. It is an
+ abstract base class, meaning that you cannot directly instantiate
+ objects of this class. Either use KConfig (for usual %KDE
+ configuration) or KSimpleConfig (for special needs as in ksamba), or
+ even KSharedConfig (stores values in shared memory).
+ All configuration entries are key, value pairs. Each entry also
+ belongs to a specific group of related entries. All configuration
+ entries that do not explicitly specify which group they are in are
+ in a special group called the default group.
+ If there is a $ character in an entry, KConfigBase tries to expand
+ environment variable and uses its value instead of its name. You
+ can avoid this feature by having two consecutive $ characters in
+ your config file which get expanded to one.
+ <b>Note:<> the '=' char is not allowed in keys and the ']' char is not allowed in
+ a group name.
+ @author Kalle Dalheimer <kalle@kde.org>, Preston Brown <pbrown@kde.org>
+
+ @short KDE Configuration Management abstract base class.
+ @see KGlobal#config
+ @see KConfig
+ @see KSimpleConfig
+ @see KSharedConfig
+
+*/
+public class KConfigBase extends QObject {
+ protected KConfigBase(Class dummy){super((Class) null);}
+ /**
+ Possible return values for getConfigState().
+ @short Possible return values for getConfigState().
+ @see #getConfigState
+ */
+ public static final int NoAccess = 0;
+ public static final int ReadOnly = 1;
+ public static final int ReadWrite = 2;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a KConfigBase object.
+ @short Construct a KConfigBase object.
+ */
+ /**
+ Specifies the group in which keys will be read and written.
+ Subsequent
+ calls to readEntry() and writeEntry() will be applied only in the
+ activated group.
+ Switch back to the default group by passing a null string.
+ @param group The name of the new group.
+ @short Specifies the group in which keys will be read and written.
+ */
+ public native void setGroup(String group);
+ /**
+ Sets the group to the "Desktop Entry" group used for
+ desktop configuration files for applications, mime types, etc.
+ @short Sets the group to the "Desktop Entry" group used for desktop configuration files for applications, mime types, etc.
+ */
+ public native void setDesktopGroup();
+ /**
+ Returns the name of the group in which we are
+ searching for keys and from which we are retrieving entries.
+ @return The current group.
+
+ @short Returns the name of the group in which we are searching for keys and from which we are retrieving entries.
+ */
+ public native String group();
+ /**
+ Returns true if the specified group is known about.
+ @param group The group to search for.
+ @return true if the group exists.
+
+ @short Returns true if the specified group is known about.
+ */
+ public native boolean hasGroup(String group);
+ /**
+ Returns a list of groups that are known about.
+ @return The list of groups.
+
+ @short Returns a list of groups that are known about.
+ */
+ public native ArrayList groupList();
+ /**
+ Returns a the current locale.
+ @return A string representing the current locale.
+
+ @short Returns a the current locale.
+ */
+ public native String locale();
+ /**
+ Reads the value of an entry specified by <code>pKey</code> in the current group.
+ If you want to read a path, please use readPathEntry().
+ @param pKey The key to search for.
+ @param aDefault A default value returned if the key was not found.
+ @return The value for this key. Can be null if aDefault is null.
+
+ @short Reads the value of an entry specified by <code>pKey</code> in the current group.
+ */
+ public native String readEntry(String pKey, String aDefault);
+ public native String readEntry(String pKey);
+ /**
+ Reads the value of an entry specified by <code>pKey</code> in the current group.
+ The value is treated as if it is of the type of the given default value.
+ Note that only the following QVariant types are allowed : String,
+ StringList, List, Font, Point, Rect, Size, Color, Int, UInt, Bool,
+ Double, DateTime and Date.
+ @param pKey The key to search for.
+ @param aDefault A default value returned if the key was not found or
+ if the read value cannot be converted to the QVariant.Type.
+ @return The value for the key or the default value if the key was not
+ found.
+
+ @short Reads the value of an entry specified by <code>pKey</code> in the current group.
+ */
+ public native QVariant readPropertyEntry(String pKey, QVariant aDefault);
+ /**
+ Reads a list of strings.
+ @param pKey The key to search for.
+ @param sep The list separator (default is ",").
+ @return The list. Empty if the entry does not exist.
+
+ @short Reads a list of strings.
+ */
+ public native ArrayList readListEntry(String pKey, char sep);
+ public native ArrayList readListEntry(String pKey);
+ /**
+ Reads a list of strings, but returns a default if the key
+ did not exist.
+ @param pKey The key to search for.
+ @param aDefault The default value to use if the key does not exist.
+ @param sep The list separator (default is ",").
+ @return The list. Contains <code>aDefault</code> if the Key does not exist.
+
+ @short Reads a list of strings, but returns a default if the key did not exist.
+ */
+ public native ArrayList readListEntry(String pKey, String[] aDefault, char sep);
+ public native ArrayList readListEntry(String pKey, String[] aDefault);
+ /**
+ Reads a list of Integers.
+ @param pKey The key to search for.
+ @return The list. Empty if the entry does not exist.
+
+ @short Reads a list of Integers.
+ */
+ public native int[] readIntListEntry(String pKey);
+ /**
+ Reads a path.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it as a path. This means, dollar expansion is activated
+ for this value, so that e.g. $HOME gets expanded.
+ @param pKey The key to search for.
+ @param aDefault A default value returned if the key was not found.
+ @return The value for this key. Can be null if aDefault is null.
+
+ @short Reads a path.
+ */
+ public native String readPathEntry(String pKey, String aDefault);
+ public native String readPathEntry(String pKey);
+ /**
+ Reads a list of string paths.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it as a list of paths. This means, dollar expansion is activated
+ for this value, so that e.g. $HOME gets expanded.
+ @param pKey The key to search for.
+ @param sep The list separator (default is ",").
+ @return The list. Empty if the entry does not exist.
+
+ @short Reads a list of string paths.
+ */
+ public native ArrayList readPathListEntry(String pKey, char sep);
+ public native ArrayList readPathListEntry(String pKey);
+ /**
+ Reads a numerical value.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it numerically.
+ @param pKey The key to search for.
+ @param nDefault A default value returned if the key was not found or if
+ the read value cannot be interpreted.
+ @return The value for this key.
+
+ @short Reads a numerical value.
+ */
+ public native int readNumEntry(String pKey, int nDefault);
+ public native int readNumEntry(String pKey);
+ /**
+ Reads an unsigned numerical value.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it numerically.
+ @param pKey The key to search for.
+ @param nDefault A default value returned if the key was not found or if
+ the read value cannot be interpreted.
+ @return The value for this key.
+
+ @short Reads an unsigned numerical value.
+ */
+ public native int readUnsignedNumEntry(String pKey, int nDefault);
+ public native int readUnsignedNumEntry(String pKey);
+ /**
+ Reads a numerical value.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it numerically.
+ @param pKey The key to search for.
+ @param nDefault A default value returned if the key was not found or if
+ the read value cannot be interpreted.
+ @return The value for this key.
+
+ @short Reads a numerical value.
+ */
+ public native long readLongNumEntry(String pKey, long nDefault);
+ public native long readLongNumEntry(String pKey);
+ /**
+ Read an unsigned numerical value.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it numerically.
+ @param pKey The key to search for.
+ @param nDefault A default value returned if the key was not found or if
+ the read value cannot be interpreted.
+ @return The value for this key.
+
+ @short Read an unsigned numerical value.
+ */
+ public native long readUnsignedLongNumEntry(String pKey, long nDefault);
+ public native long readUnsignedLongNumEntry(String pKey);
+ /**
+ Reads a 64-bit numerical value.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it numerically.
+ @param pKey The key to search for.
+ @param nDefault A default value returned if the key was not found or if
+ the read value cannot be interpreted.
+ @return The value for this key.
+
+ @short Reads a 64-bit numerical value.
+ */
+ public native long readNum64Entry(String pKey, long nDefault);
+ public native long readNum64Entry(String pKey);
+ /**
+ Read an 64-bit unsigned numerical value.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it numerically.
+ @param pKey The key to search for.
+ @param nDefault A default value returned if the key was not found or if
+ the read value cannot be interpreted.
+ @return The value for this key.
+
+ @short Read an 64-bit unsigned numerical value.
+ */
+ public native long readUnsignedNum64Entry(String pKey, long nDefault);
+ public native long readUnsignedNum64Entry(String pKey);
+ /**
+ Reads a floating point value.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it numerically.
+ @param pKey The key to search for.
+ @param nDefault A default value returned if the key was not found or if
+ the read value cannot be interpreted.
+ @return The value for this key.
+
+ @short Reads a floating point value.
+ */
+ public native double readDoubleNumEntry(String pKey, double nDefault);
+ public native double readDoubleNumEntry(String pKey);
+ /**
+ Reads a QFont value.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it as a font object.
+ @param pKey The key to search for.
+ @param pDefault A default value (null QFont by default) returned if the
+ key was not found or if the read value cannot be interpreted.
+ @return The value for this key.
+
+ @short Reads a QFont value.
+ */
+ public native QFont readFontEntry(String pKey, QFont pDefault);
+ public native QFont readFontEntry(String pKey);
+ /**
+ Reads a booleanean entry.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it as a booleanean value. Currently "on" and "true" are
+ accepted as true, everything else if false.
+ @param pKey The key to search for
+ @param bDefault A default value returned if the key was not found.
+ @return The value for this key.
+
+ @short Reads a boolean entry.
+ */
+ public native boolean readBoolEntry(String pKey, boolean bDefault);
+ public native boolean readBoolEntry(String pKey);
+ /**
+ Reads a QRect entry.
+ Read the value of an entry specified by pKey in the current group
+ and interpret it as a QRect object.
+ @param pKey The key to search for
+ @param pDefault A default value (null QRect by default) returned if the
+ key was not found or if the read value cannot be interpreted.
+ @return The value for this key.
+
+ @short Reads a QRect entry.
+ */
+ public native QRect readRectEntry(String pKey, QRect pDefault);
+ public native QRect readRectEntry(String pKey);
+ /**
+ Reads a QPoint entry.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it as a QPoint object.
+ @param pKey The key to search for
+ @param pDefault A default value (null QPoint by default) returned if the
+ key was not found or if the read value cannot be interpreted.
+ @return The value for this key.
+
+ @short Reads a QPoint entry.
+ */
+ public native QPoint readPointEntry(String pKey, QPoint pDefault);
+ public native QPoint readPointEntry(String pKey);
+ /**
+ Reads a QSize entry.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it as a QSize object.
+ @param pKey The key to search for
+ @param pDefault A default value (null QSize by default) returned if the
+ key was not found or if the read value cannot be interpreted.
+ @return The value for this key.
+
+ @short Reads a QSize entry.
+ */
+ public native QSize readSizeEntry(String pKey, QSize pDefault);
+ public native QSize readSizeEntry(String pKey);
+ /**
+ Reads a QColor entry.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it as a color.
+ @param pKey The key to search for.
+ @param pDefault A default value (null QColor by default) returned if the
+ key was not found or if the value cannot be interpreted.
+ @return The value for this key.
+
+ @short Reads a QColor entry.
+ */
+ public native QColor readColorEntry(String pKey, QColor pDefault);
+ public native QColor readColorEntry(String pKey);
+ /**
+ Reads a Calendar entry.
+ Read the value of an entry specified by <code>pKey</code> in the current group
+ and interpret it as a date and time.
+ @param pKey The key to search for.
+ @param pDefault A default value ( currentDateTime() by default)
+ returned if the key was not found or if the read value cannot be
+ interpreted.
+ @return The value for this key.
+
+ @short Reads a QDateTime entry.
+ */
+ public native Calendar readDateTimeEntry(String pKey, Calendar pDefault);
+ public native Calendar readDateTimeEntry(String pKey);
+ /**
+ Reads the value of an entry specified by <code>pKey</code> in the current group.
+ The untranslated entry is returned, you normally do not need this.
+ @param pKey The key to search for.
+ @param aDefault A default value returned if the key was not found.
+ @return The value for this key.
+
+ @short Reads the value of an entry specified by <code>pKey</code> in the current group.
+ */
+ public native String readEntryUntranslated(String pKey, String aDefault);
+ public native String readEntryUntranslated(String pKey);
+ /**
+ Writes a key/value pair.
+ This is stored in the most specific config file when destroying the
+ config object or when calling sync().
+ If you want to write a path, please use writePathEntry().
+ @param pKey The key to write.
+ @param pValue The value to write.
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty
+ flag will not be set and thus the entry will
+ not be written to disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the
+ global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short Writes a key/value pair.
+ */
+ public native void writeEntry(String pKey, String pValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, String pValue, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, String pValue, boolean bPersistent);
+ public native void writeEntry(String pKey, String pValue);
+ /**
+ writeEntry() Overridden to accept a property.
+ Note: Unlike the other writeEntry() functions, the old value is
+ _not_ returned here!
+ @param pKey The key to write
+ @param rValue The property to write
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty flag
+ will not be set and thus the entry will not be
+ written to disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the
+ global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short writeEntry() Overridden to accept a property.
+ @see #writeEntry
+ */
+ public native void writeEntry(String pKey, QVariant rValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, QVariant rValue, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, QVariant rValue, boolean bPersistent);
+ public native void writeEntry(String pKey, QVariant rValue);
+ /**
+ writeEntry() overridden to accept a list of strings.
+ Note: Unlike the other writeEntry() functions, the old value is
+ _not_ returned here!
+ @param pKey The key to write
+ @param rValue The list to write
+ @param sep The list separator (default is ",").
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty flag
+ will not be set and thus the entry will not be
+ written to disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the
+ global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short writeEntry() overridden to accept a list of strings.
+ @see #writeEntry
+ */
+ public native void writeEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, String[] rValue, char sep, boolean bPersistent);
+ public native void writeEntry(String pKey, String[] rValue, char sep);
+ public native void writeEntry(String pKey, String[] rValue);
+ /**
+ writeEntry() overridden to accept a list of Integers.
+ Note: Unlike the other writeEntry() functions, the old value is
+ _not_ returned here!
+ @param pKey The key to write
+ @param rValue The list to write
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty flag
+ will not be set and thus the entry will not be
+ written to disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the
+ global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short writeEntry() overridden to accept a list of Integers.
+ @see #writeEntry
+ */
+ public native void writeEntry(String pKey, int[] rValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, int[] rValue, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, int[] rValue, boolean bPersistent);
+ public native void writeEntry(String pKey, int[] rValue);
+ /**
+ Write a (key/value) pair.
+ Same as above, but writes a numerical value.
+ @param pKey The key to write.
+ @param nValue The value to write.
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty
+ flag will not be set and thus the entry will not be written to
+ disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the
+ global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short Write a (key/value) pair.
+ */
+ public native void writeEntry(String pKey, int nValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, int nValue, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, int nValue, boolean bPersistent);
+ public native void writeEntry(String pKey, int nValue);
+ /**
+ Writes a (key/value) pair.
+ Same as above, but write a long numerical value.
+ @param pKey The key to write.
+ @param nValue The value to write.
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty
+ flag will not be set and thus the entry will not be written to
+ disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short Writes a (key/value) pair.
+ */
+ public native void writeEntry(String pKey, long nValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, long nValue, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, long nValue, boolean bPersistent);
+ public native void writeEntry(String pKey, long nValue);
+ /**
+ Writes a (key/value) pair.
+ Same as above, but writes a floating-point value.
+ @param pKey The key to write.
+ @param nValue The value to write.
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty
+ flag will not be set and thus the entry will not be written to
+ disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the global KDE config file.
+ @param format <code>format</code> determines the format to which the value
+ is converted. Default is 'g'.
+ @param precision <code>precision</code> sets the precision with which the
+ value is converted. Default is 6 as in String.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short Writes a (key/value) pair.
+ */
+ public native void writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal, char format, int precision, boolean bNLS);
+ public native void writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal, char format, int precision);
+ public native void writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal, char format);
+ public native void writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, double nValue, boolean bPersistent);
+ public native void writeEntry(String pKey, double nValue);
+ /**
+ Writes a (key/value) pair.
+ Same as above, but writes a booleanean value.
+ @param pKey The key to write.
+ @param bValue The value to write.
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty
+ flag will not be set and thus the entry will not be written to
+ disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short Writes a (key/value) pair.
+ */
+ public native void writeEntry(String pKey, boolean bValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, boolean bValue, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, boolean bValue, boolean bPersistent);
+ public native void writeEntry(String pKey, boolean bValue);
+ /**
+ Writes a (key/value) pair.
+ Same as above, but writes a font value.
+ @param pKey The key to write.
+ @param rFont The font value to write.
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty
+ flag will not be set and thus the entry will not be written to
+ disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short Writes a (key/value) pair.
+ */
+ public native void writeEntry(String pKey, QFont rFont, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, QFont rFont, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, QFont rFont, boolean bPersistent);
+ public native void writeEntry(String pKey, QFont rFont);
+ /**
+ Writes a (key/value) pair.
+ Same as above, but write a color entry.
+ Note: Unlike the other writeEntry() functions, the old value is
+ _not_ returned here!
+ @param pKey The key to write.
+ @param rColor The color value to write.
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty
+ flag will not be set and thus the entry will not be written to
+ disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short Writes a (key/value) pair.
+ */
+ public native void writeEntry(String pKey, QColor rColor, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, QColor rColor, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, QColor rColor, boolean bPersistent);
+ public native void writeEntry(String pKey, QColor rColor);
+ /**
+ Writes a (key/value) pair.
+ Same as above, but writes a date and time entry.
+ Note: Unlike the other writeEntry() functions, the old value is
+ <b>not</b> returned here!
+ @param pKey The key to write.
+ @param rDateTime The date and time value to write.
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty
+ flag will not be set and thus the entry will not be written to
+ disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short Writes a (key/value) pair.
+ */
+ public native void writeEntry(String pKey, Calendar rDateTime, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, Calendar rDateTime, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, Calendar rDateTime, boolean bPersistent);
+ public native void writeEntry(String pKey, Calendar rDateTime);
+ /**
+ Writes a (key/value) pair.
+ Same as above, but writes a rectangle.
+ Note: Unlike the other writeEntry() functions, the old value is
+ _not_ returned here!
+ @param pKey The key to write.
+ @param rValue The rectangle value to write.
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty
+ flag will not be set and thus the entry will not be written to
+ disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short Writes a (key/value) pair.
+ */
+ public native void writeEntry(String pKey, QRect rValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, QRect rValue, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, QRect rValue, boolean bPersistent);
+ public native void writeEntry(String pKey, QRect rValue);
+ /**
+ Writes a (key/value) pair.
+ Same as above, but writes a point.
+ Note: Unlike the other writeEntry() functions, the old value is
+ _not_ returned here!
+ @param pKey The key to write.
+ @param rValue The point value to write.
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty
+ flag will not be set and thus the entry will not be written to
+ disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short Writes a (key/value) pair.
+ */
+ public native void writeEntry(String pKey, QPoint rValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, QPoint rValue, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, QPoint rValue, boolean bPersistent);
+ public native void writeEntry(String pKey, QPoint rValue);
+ /**
+ Writes a (key/value) pair.
+ Same as above, but writes a size.
+ Note: Unlike the other writeEntry() functions, the old value is
+ _not_ returned here!
+ @param pKey The key to write.
+ @param rValue The size value to write.
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty
+ flag will not be set and thus the entry will not be written to
+ disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short Writes a (key/value) pair.
+ */
+ public native void writeEntry(String pKey, QSize rValue, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writeEntry(String pKey, QSize rValue, boolean bPersistent, boolean bGlobal);
+ public native void writeEntry(String pKey, QSize rValue, boolean bPersistent);
+ public native void writeEntry(String pKey, QSize rValue);
+ /**
+ Writes a file path.
+ It is checked whether the path is located under $HOME. If so the
+ path is written out with the user's home-directory replaced with
+ $HOME. The path should be read back with readPathEntry()
+ @param pKey The key to write.
+ @param path The path to write.
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty
+ flag will not be set and thus the entry will not be written to
+ disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short Writes a file path.
+ */
+ public native void writePathEntry(String pKey, String path, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writePathEntry(String pKey, String path, boolean bPersistent, boolean bGlobal);
+ public native void writePathEntry(String pKey, String path, boolean bPersistent);
+ public native void writePathEntry(String pKey, String path);
+ /**
+ writePathEntry() overridden to accept a list of paths (strings).
+ It is checked whether the paths are located under $HOME. If so each of
+ the paths are written out with the user's home-directory replaced with
+ $HOME. The paths should be read back with readPathListEntry()
+ @param pKey The key to write
+ @param rValue The list to write
+ @param sep The list separator (default is ",").
+ @param bPersistent If <code>bPersistent</code> is false, the entry's dirty flag
+ will not be set and thus the entry will not be
+ written to disk at deletion time.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not saved to the
+ application specific config file, but to the
+ global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the locale tag is added to the key
+ when writing it back.
+ @short writePathEntry() overridden to accept a list of paths (strings).
+ @see #writePathEntry
+ @see #readPathListEntry
+ */
+ public native void writePathEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal, boolean bNLS);
+ public native void writePathEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal);
+ public native void writePathEntry(String pKey, String[] rValue, char sep, boolean bPersistent);
+ public native void writePathEntry(String pKey, String[] rValue, char sep);
+ public native void writePathEntry(String pKey, String[] rValue);
+ /**
+ Deletes the entry specified by <code>pKey</code> in the current group.
+ @param pKey The key to delete.
+ @param bGlobal If <code>bGlobal</code> is true, the pair is not removed from the
+ application specific config file, but to the global KDE config file.
+ @param bNLS If <code>bNLS</code> is true, the key with the locale tag is removed.
+ @short Deletes the entry specified by <code>pKey</code> in the current group.
+ */
+ public native void deleteEntry(String pKey, boolean bNLS, boolean bGlobal);
+ public native void deleteEntry(String pKey, boolean bNLS);
+ public native void deleteEntry(String pKey);
+ /**
+ Deletes a configuration entry group
+ If the group is not empty and bDeep is false, nothing gets
+ deleted and false is returned.
+ If this group is the current group and it is deleted, the
+ current group is undefined and should be set with setGroup()
+ before the next operation on the configuration object.
+ @param group The name of the group
+ @param bDeep Specify whether non-empty groups should be completely
+ deleted (including their entries).
+ @param bGlobal If <code>bGlobal</code> is true, the group is not removed from the
+ application specific config file, but from the global KDE config file.
+ @return If the group is not empty and bDeep is false,
+ deleteGroup returns false.
+
+ @short Deletes a configuration entry group
+ */
+ public native boolean deleteGroup(String group, boolean bDeep, boolean bGlobal);
+ public native boolean deleteGroup(String group, boolean bDeep);
+ public native boolean deleteGroup(String group);
+ /**
+ Turns on or off "dollar expansion" (see KConfigBase introduction)
+ when reading config entries.
+ Dollar sign expansion is initially OFF.
+ @param _bExpand Tf true, dollar expansion is turned on.
+ @short Turns on or off "dollar expansion" (see KConfigBase introduction) when reading config entries.
+ */
+ public native void setDollarExpansion(boolean _bExpand);
+ public native void setDollarExpansion();
+ /**
+ Returns whether dollar expansion is on or off. It is initially OFF.
+ @return true if dollar expansion is on.
+
+ @short Returns whether dollar expansion is on or off.
+ */
+ public native boolean isDollarExpansion();
+ /**
+ Mark the config object as "clean," i.e. don't write dirty entries
+ at destruction time. If <code>bDeep</code> is false, only the global dirty
+ flag of the KConfig object gets cleared. If you then call
+ writeEntry() again, the global dirty flag is set again and all
+ dirty entries will be written at a subsequent sync() call.
+ Classes that derive from KConfigBase should override this
+ method and implement storage-specific behavior, as well as
+ calling the KConfigBase.rollback() explicitly in the initializer.
+ @param bDeep If true, the dirty flags of all entries are cleared,
+ as well as the global dirty flag.
+ @short Mark the config object as "clean," i.
+ */
+ public native void rollback(boolean bDeep);
+ public native void rollback();
+ /**
+ Flushes all changes that currently reside only in memory
+ back to disk / permanent storage. Dirty configuration entries are
+ written to the most specific file available.
+ Asks the back end to flush out all pending writes, and then calls
+ rollback(). No changes are made if the object has <code>readOnly</code>
+ status.
+ You should call this from your destructor in derivative classes.
+ @short Flushes all changes that currently reside only in memory back to disk / permanent storage.
+ @see #rollback
+ @see #isReadOnly
+ */
+ public native void sync();
+ /**
+ Checks whether the config file has any dirty (modified) entries.
+ @return true if the config file has any dirty (modified) entries.
+
+ @short Checks whether the config file has any dirty (modified) entries.
+ */
+ public native boolean isDirty();
+ /**
+ Sets the config object's read-only status.
+ @param _ro If true, the config object will not write out any
+ changes to disk even if it is destroyed or sync() is called.
+ @short Sets the config object's read-only status.
+ */
+ public native void setReadOnly(boolean _ro);
+ /**
+ Returns the read-only status of the config object.
+ @return The read-only status.
+
+ @short Returns the read-only status of the config object.
+ */
+ public native boolean isReadOnly();
+ /**
+ Checks whether the key has an entry in the currently active group.
+ Use this to determine whether a key is not specified for the current
+ group (hasKey() returns false). Keys with null data are considered
+ nonexistent.
+ @param key The key to search for.
+ @return If true, the key is available.
+
+ @short Checks whether the key has an entry in the currently active group.
+ */
+ public native boolean hasKey(String key);
+ /**
+ Returns a map (tree) of entries for all entries in a particular
+ group. Only the actual entry string is returned, none of the
+ other internal data should be included.
+ @param group A group to get keys from.
+ @return A map of entries in the group specified, indexed by key.
+ The returned map may be empty if the group is not found.
+
+ @short Returns a map (tree) of entries for all entries in a particular group.
+ @see org.kde.qt.QMap
+ */
+ // QMap<QString, QString> entryMap(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Reparses all configuration files. This is useful for programs
+ that use stand alone graphical configuration tools. The base
+ method implemented here only clears the group list and then
+ appends the default group.
+ Derivative classes should clear any internal data structures and
+ then simply call parseConfigFiles() when implementing this
+ method.
+ @short Reparses all configuration files.
+ @see #parseConfigFiles
+ */
+ public native void reparseConfiguration();
+ /**
+ Checks whether this configuration file can be modified.
+ @return whether changes may be made to this configuration file.
+
+ @short Checks whether this configuration file can be modified.
+ */
+ public native boolean isImmutable();
+ /**
+ Checks whether it is possible to change the given group.
+ @param group the group to check
+ @return whether changes may be made to <code>group</code> in this configuration
+ file.
+
+ @short Checks whether it is possible to change the given group.
+ */
+ public native boolean groupIsImmutable(String group);
+ /**
+ Checks whether it is possible to change the given entry.
+ @param key the key to check
+ @return whether the entry <code>key</code> may be changed in the current group
+ in this configuration file.
+
+ @short Checks whether it is possible to change the given entry.
+ */
+ public native boolean entryIsImmutable(String key);
+ /**
+ Returns the state of the app-config object.
+ Possible return values
+ are NoAccess (the application-specific config file could not be
+ opened neither read-write nor read-only), ReadOnly (the
+ application-specific config file is opened read-only, but not
+ read-write) and ReadWrite (the application-specific config
+ file is opened read-write).
+ @return the state of the app-config object
+
+ @short Returns the state of the app-config object.
+ @see ConfigState
+ */
+ public native int getConfigState();
+ /**
+ Check whether the config files are writable.
+ @param warnUser Warn the user if the configuration files are not writable.
+ @return Indicates that all of the configuration files used are writable.
+
+ @short Check whether the config files are writable.
+ */
+ public native boolean checkConfigFilesWritable(boolean warnUser);
+ /**
+ When set, all readEntry and readXXXEntry calls return the system
+ wide (default) values instead of the user's preference.
+ This is off by default.
+ @short When set, all readEntry and readXXXEntry calls return the system wide (default) values instead of the user's preference.
+ */
+ public native void setReadDefaults(boolean b);
+ /**
+ @return true if all readEntry and readXXXEntry calls return the system
+ wide (default) values instead of the user's preference.
+
+ @short
+ */
+ public native boolean readDefaults();
+ /**
+ Reverts the entry with key <code>key</code> in the current group in the
+ application specific config file to either the system wide (default)
+ value or the value specified in the global KDE config file.
+ To revert entries in the global KDE config file, the global KDE config
+ file should be opened explicitly in a separate config object.
+ @param key The key of the entry to revert.
+ @short Reverts the entry with key <code>key</code> in the current group in the application specific config file to either the system wide (default) value or the value specified in the global KDE config file.
+ */
+ public native void revertToDefault(String key);
+ /**
+ Returns whether a default is specified for an entry in either the
+ system wide configuration file or the global KDE config file.
+ If an application computes a default value at runtime for
+ a certain entry, e.g. like:
+ <pre>
+ QColor computedDefault = kapp.palette().color(QPalette.Active, QColorGroup.Text)
+ QColor color = config.readEntry(key, computedDefault);
+ \encode
+ Then it may wish to make the following check before
+ writing back changes:
+ <pre>
+ if ( (value == computedDefault) && !config.hasDefault(key) )
+ config.revertToDefault(key)
+ else
+ config.writeEntry(key, value)
+ </pre>
+ This ensures that as long as the entry is not modified to differ from
+ the computed default, the application will keep using the computed default
+ and will follow changes the computed default makes over time.
+ @param key The key of the entry to check.
+ @short Returns whether a default is specified for an entry in either the system wide configuration file or the global KDE config file.
+ */
+ public native boolean hasDefault(String key);
+}
diff --git a/kdejava/koala/org/kde/koala/KConfigGroup.java b/kdejava/koala/org/kde/koala/KConfigGroup.java
new file mode 100644
index 00000000..668d57e2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KConfigGroup.java
@@ -0,0 +1,53 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A KConfigBase derived class for one specific group in a KConfig object.
+ @short A KConfigBase derived class for one specific group in a KConfig object.
+
+*/
+public class KConfigGroup extends KConfigBase {
+ protected KConfigGroup(Class dummy){super((Class) null);}
+ /**
+ Construct a config group corresponding to <code>group</code> in <code>master.</code>
+ <code>group</code> is the group name encoded in UTF-8.
+ @short Construct a config group corresponding to <code>group</code> in <code>master.</code>
+ */
+ public KConfigGroup(KConfigBase master, String group) {
+ super((Class) null);
+ newKConfigGroup(master,group);
+ }
+ private native void newKConfigGroup(KConfigBase master, String group);
+ /**
+ Delete all entries in the entire group
+ @param bGlobal If <code>bGlobal</code> is true, the entries are not removed
+ from the application specific config file, but from the global
+ KDE config file.
+ @short Delete all entries in the entire group
+ */
+ public native void deleteGroup(boolean bGlobal);
+ public native void deleteGroup();
+ /**
+ Checks whether it is possible to change this group.
+ @return whether changes may be made to this group in this configuration
+ file.
+
+ @short Checks whether it is possible to change this group.
+ */
+ public native boolean groupIsImmutable();
+ public native void setDirty(boolean b);
+ public native void putData(KEntryKey _key, KEntry _data, boolean _checkGroup);
+ public native void putData(KEntryKey _key, KEntry _data);
+ public native KEntry lookupData(KEntryKey _key);
+ public native void sync();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KConfigGroupSaver.java b/kdejava/koala/org/kde/koala/KConfigGroupSaver.java
new file mode 100644
index 00000000..36ab2044
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KConfigGroupSaver.java
@@ -0,0 +1,66 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Helper class to facilitate working with KConfig / KSimpleConfig
+ groups.
+ Careful programmers always set the group of a
+ KConfig KSimpleConfig object to the group they want to read from
+ and set it back to the old one of afterwards. This is usually
+ written as:
+ <pre>
+ String oldgroup config.group();
+ config.setGroup( "TheGroupThatIWant" );
+ ...
+ config.writeEntry( "Blah", "Blubb" );
+ config.setGroup( oldgroup );
+ </pre>
+ In order to facilitate this task, you can use
+ KConfigGroupSaver. Simply construct such an object ON THE STACK
+ when you want to switch to a new group. Then, when the object goes
+ out of scope, the group will automatically be restored. If you
+ want to use several different groups within a function or method,
+ you can still use KConfigGroupSaver: Simply enclose all work with
+ one group (including the creation of the KConfigGroupSaver object)
+ in one block.
+ KConfigGroup provides similar functionality in a more object oriented
+ way.
+ @author Matthias Kalle Dalheimer <kalle@kde.org>
+
+ @short Helper class for easier use of KConfig/KSimpleConfig groups.
+ @see KConfigBase
+ @see KConfig
+ @see KSimpleConfig
+ @see KConfigGroup
+
+*/
+public class KConfigGroupSaver implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KConfigGroupSaver(Class dummy){}
+
+ /**
+ Constructor. You pass a pointer to the KConfigBase-derived
+ object you want to work with and a string indicating the _new_
+ group.
+ @param config The KConfigBase-derived object this
+ KConfigGroupSaver works on.
+ @param group The new group that the config object should switch to.
+ @short Constructor.
+ */
+ public KConfigGroupSaver(KConfigBase config, String group) {
+ newKConfigGroupSaver(config,group);
+ }
+ private native void newKConfigGroupSaver(KConfigBase config, String group);
+ public native KConfigBase config();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KConfigINIBackEnd.java b/kdejava/koala/org/kde/koala/KConfigINIBackEnd.java
new file mode 100644
index 00000000..4897b36e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KConfigINIBackEnd.java
@@ -0,0 +1,117 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QFile;
+
+/**
+
+ Class for KDE INI-style configuration file loading/saving.
+ @author Preston Brown <pbrown@kde.org>,
+ Matthias Kalle Dalheimer <kalle@kde.org>
+
+ @short Class for KDE INI-style configuration file loading/saving.
+
+*/
+public class KConfigINIBackEnd extends KConfigBackEnd {
+ protected KConfigINIBackEnd(Class dummy){super((Class) null);}
+ /**
+ Constructs an ini-style configuration back end.
+ @param _config Specifies the configuration object which values
+ will be passed to as they are read, or from where values
+ to be written to will be obtained from.
+ @param _fileName The name of the file in which config
+ data is stored. All registered configuration directories
+ will be looked in in order of decreasing relevance.
+ @param _resType the resource type of the fileName specified, _if_
+ it is not an absolute path (otherwise this parameter is ignored).
+ @param _useKDEGlobals If true, the user's system-wide kdeglobals file
+ will be imported into the config object. If false, only
+ the filename specified will be dealt with.
+ @short Constructs an ini-style configuration back end.
+ */
+ public KConfigINIBackEnd(KConfigBase _config, String _fileName, String _resType, boolean _useKDEGlobals) {
+ super((Class) null);
+ newKConfigINIBackEnd(_config,_fileName,_resType,_useKDEGlobals);
+ }
+ private native void newKConfigINIBackEnd(KConfigBase _config, String _fileName, String _resType, boolean _useKDEGlobals);
+ public KConfigINIBackEnd(KConfigBase _config, String _fileName, String _resType) {
+ super((Class) null);
+ newKConfigINIBackEnd(_config,_fileName,_resType);
+ }
+ private native void newKConfigINIBackEnd(KConfigBase _config, String _fileName, String _resType);
+ /**
+ Parses all INI-style configuration files for a config object.
+ @return Whether or not parsing was successful.
+
+ @short Parses all INI-style configuration files for a config object.
+ */
+ public native boolean parseConfigFiles();
+ /**
+ Writes configuration data to file(s).
+ @param bMerge Specifies whether the old config file already
+ on disk should be merged in with the data in memory. If true,
+ data is read off the disk and merged. If false, the on-disk
+ file is removed and only in-memory data is written out.
+ @short Writes configuration data to file(s).
+ */
+ public native void sync(boolean bMerge);
+ public native void sync();
+ /**
+ Parses one configuration file.
+ @param rFile The configuration file to parse
+ @param pWriteBackMap If specified, points to a KEntryMap where
+ the data read from the file should be stored, instead of
+ inserting them directly into the configuration object.
+ Use this area as a "scratchpad" when you need to know what is
+ on disk but don't want to effect the configuration object.
+ @param bGlobal Specifies whether entries should be marked as
+ belonging to the global KDE configuration file rather
+ than the application-specific KDE configuration file(s).
+ @param bDefault Specifies whether entries should be marked as
+ being default values.
+ @short Parses one configuration file.
+ */
+ // void parseSingleConfigFile(QFile& arg1,KEntryMap* arg2,bool arg3,bool arg4); >>>> NOT CONVERTED
+ // void parseSingleConfigFile(QFile& arg1,KEntryMap* arg2,bool arg3); >>>> NOT CONVERTED
+ // void parseSingleConfigFile(QFile& arg1,KEntryMap* arg2); >>>> NOT CONVERTED
+ protected native void parseSingleConfigFile(QFile rFile);
+ /**
+ Writes configuration file back.
+ @param filename The name of the file to write.
+ @param bGlobal Specifies whether to write only entries which
+ are marked as belonging to the global KDE config file.
+ If this is false, it skips those entries.
+ @param bMerge Specifies whether the old config file already
+ on disk should be merged in with the data in memory. If true,
+ data is read off the disk and merged. If false, the on-disk
+ file is removed and only in-memory data is written out.
+ @return Whether some entries are left to be written to other
+ files.
+
+ @short Writes configuration file back.
+ */
+ protected native boolean writeConfigFile(String filename, boolean bGlobal, boolean bMerge);
+ protected native boolean writeConfigFile(String filename, boolean bGlobal);
+ protected native boolean writeConfigFile(String filename);
+ /** Get the entry map.
+ @param map the entries will be stored in this object.
+ @param bGlobal Specifies whether to get only entries which
+ are marked as belonging to the global KDE config file.
+ If this is false, it skips those entries.
+ @param mergeFile if not null, the dirty entries for this file will
+ be merged.
+ @return Whether there will be some entries left for writing to other
+ files.
+
+ @short Get the entry map.
+ */
+ // bool getEntryMap(KEntryMap& arg1,bool arg2,QFile* arg3); >>>> NOT CONVERTED
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KContextMenuManager.java b/kdejava/koala/org/kde/koala/KContextMenuManager.java
new file mode 100644
index 00000000..08c073f1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KContextMenuManager.java
@@ -0,0 +1,69 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+KContextMenuManager manages configurable context popup menus. Instead
+of reimplementing QWidget.mousePressEvent() or
+ QWidget.mouseReleaseEvent() and/or QWidget.keyPressEvent(), simply
+create the popup menu and insert it into the context menu manager with
+the static function insert().
+Example:
+<pre>
+ KContextMenuManager.insert( myWidget, myPopupMenu );
+</pre>
+Context menus are invoked with either a special shortcut key (usually
+the menu key) or the right mouse button.
+Menus are configurable in the [ContextMenus] group of the application's
+configuration file, usually in kdeglobals:
+<pre>
+ [ContextMenus]
+ ShowOnPress=true|false
+</pre>
+<code>ShowOnPress</code> defines whether the menu shall be shown on mouse
+press or on mouse release.
+The shortcut key to invoke the context menu is defined in the standard
+[Keys] section of the application configuration:
+<pre>
+ [Keys]
+ ...
+ PopupContextMenu=Menu
+ ...
+</pre>
+The key can be configured with the standard keys module in the KDE control center.
+If the popup menu is invoked with the keyboard shortcut, it's shown at
+the position of the micro focus hint of the widget ( QWidget.microFocusHint() ).
+ @author Matthias Ettrich <ettrich@kde.org>
+
+ @short Convenience class to mangage context menus.
+
+*/
+public class KContextMenuManager extends QObject {
+ protected KContextMenuManager(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Makes <code>popup</code> a context popup menu for widget <code>widget.</code>
+ Ownership of the popup menu is not transferred to the context
+ menu manager.
+ @short Makes <code>popup</code> a context popup menu for widget <code>widget.</code>
+ */
+ public static native void insert(QWidget widget, QPopupMenu popup);
+ /**
+ Use this method to get information about when a popup menu
+ should be activated. This can be useful if the popup menu is
+ to be activated from a listview.
+ @return true if the menu should be made visible on a button press
+ or false after a button press-release sequence.
+
+ @short Use this method to get information about when a popup menu should be activated.
+ */
+ public static native boolean showOnButtonPress();
+}
diff --git a/kdejava/koala/org/kde/koala/KCursor.java b/kdejava/koala/org/kde/koala/KCursor.java
new file mode 100644
index 00000000..d54f24b3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCursor.java
@@ -0,0 +1,200 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QCursor;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.Qt;
+
+/**
+
+ A wrapper around QCursor that allows for "themed" cursors.
+ Currently, the only themed cursor is a hand shaped cursor.
+ A typical usage would be
+ <pre>
+ setCursor(KCursor.handCursor());
+ </pre>
+ @author Kurt Granroth <granroth@kde.org>
+
+ @short A QCursor wrapper allowing "themed" cursors and auto-hiding cursors.
+
+*/
+public class KCursor extends Qt {
+ protected KCursor(Class dummy){super((Class) null);}
+ /**
+ Constructor.
+ Does not do anything so far.
+ @short Constructor.
+ */
+ public KCursor() {
+ super((Class) null);
+ newKCursor();
+ }
+ private native void newKCursor();
+ /**
+ Returns the proper hand cursor according to
+ the current GUI style (static function).
+ @short Returns the proper hand cursor according to the current GUI style (static function).
+ */
+ public static native QCursor handCursor();
+ /**
+ Returns the proper arrow+hourglass cursor according to
+ the current GUI style (static function).
+ @short Returns the proper arrow+hourglass cursor according to the current GUI style (static function).
+ */
+ public static native QCursor workingCursor();
+ /**
+ Returns the proper arrow cursor according to
+ the current GUI style (static function).
+ @short Returns the proper arrow cursor according to the current GUI style (static function).
+ */
+ public static native QCursor arrowCursor();
+ /**
+ Returns the proper up arrow cursor according to
+ the current GUI style (static function).
+ @short Returns the proper up arrow cursor according to the current GUI style (static function).
+ */
+ public static native QCursor upArrowCursor();
+ /**
+ Returns the proper cross-hair cursor according to
+ the current GUI style (static function).
+ @short Returns the proper cross-hair cursor according to the current GUI style (static function).
+ */
+ public static native QCursor crossCursor();
+ /**
+ Returns the proper hourglass cursor according to
+ the current GUI style (static function).
+ @short Returns the proper hourglass cursor according to the current GUI style (static function).
+ */
+ public static native QCursor waitCursor();
+ /**
+ Returns the proper text cursor according to
+ the current GUI style (static function).
+ @short Returns the proper text cursor according to the current GUI style (static function).
+ */
+ public static native QCursor ibeamCursor();
+ /**
+ Returns the proper vertical resize cursor
+ according to the current GUI style (static function).
+ @short Returns the proper vertical resize cursor according to the current GUI style (static function).
+ */
+ public static native QCursor sizeVerCursor();
+ /**
+ Returns the proper horizontal resize cursor
+ according to the current GUI style (static function).
+ @short Returns the proper horizontal resize cursor according to the current GUI style (static function).
+ */
+ public static native QCursor sizeHorCursor();
+ /**
+ Returns the proper diagonal resize (/) cursor
+ according to the current GUI style (static function).
+ @short Returns the proper diagonal resize (/) cursor according to the current GUI style (static function).
+ */
+ public static native QCursor sizeBDiagCursor();
+ /**
+ Returns the proper diagonal resize (\) cursor
+ according to the current GUI style (static function).
+ @short Returns the proper diagonal resize (\) cursor according to the current GUI style (static function).
+ */
+ public static native QCursor sizeFDiagCursor();
+ /**
+ Returns the proper all-directions resize cursor
+ according to the current GUI style (static function).
+ @short Returns the proper all-directions resize cursor according to the current GUI style (static function).
+ */
+ public static native QCursor sizeAllCursor();
+ /**
+ Returns a blank or invisible cursor (static function).
+ @short Returns a blank or invisible cursor (static function).
+ */
+ public static native QCursor blankCursor();
+ /**
+ Returns a WhatsThis cursor (static function).
+ @short Returns a WhatsThis cursor (static function).
+ */
+ public static native QCursor whatsThisCursor();
+ /**
+ Sets auto-hiding the cursor for widget <code>w.</code> Enabling it will result in
+ the cursor being hidden when
+
+ <li>
+ a key-event happens
+ </li>
+
+ <li>
+ there are no key-events for a configured time-frame (see
+ setHideCursorDelay())
+ </li>
+ The cursor will be shown again when the focus is lost or a mouse-event
+ happens.
+ Side effect: when enabling auto-hide, mouseTracking is enabled for the
+ specified widget, because it's needed to get mouse-move-events. So
+ don't disable mouseTracking for a widget while using auto-hide for it.
+ When disabling auto-hide, mouseTracking will be disabled, so if you need
+ mouseTracking after disabling auto-hide, you have to reenable
+ mouseTracking.
+ If you want to use auto-hiding for widgets that don't take focus, e.g.
+ a QCanvasView, then you have to pass all key-events that should trigger
+ auto-hiding to autoHideEventFilter().
+ @short Sets auto-hiding the cursor for widget <code>w.</code>
+ */
+ public static native void setAutoHideCursor(QWidget w, boolean enable);
+ /**
+ Overloaded method for the case where you have an event-filter installed
+ on the widget you want to enable auto-cursor-hiding.
+ In this case set <code>customEventFilter</code> to true and call
+ autoHideEventFilter() from the beginning of your eventFilter().
+ @short Overloaded method for the case where you have an event-filter installed on the widget you want to enable auto-cursor-hiding.
+ @see #autoHideEventFilter
+ */
+ public static native void setAutoHideCursor(QWidget w, boolean enable, boolean customEventFilter);
+ /**
+ Sets the delay time in milliseconds for auto-hiding. When no keyboard
+ events arrive for that time-frame, the cursor will be hidden.
+ Default is 5000, i.e. 5 seconds.
+ @short Sets the delay time in milliseconds for auto-hiding.
+ */
+ public static native void setHideCursorDelay(int ms);
+ /**
+ Default is 5000, i.e. 5 seconds.
+ @return the current auto-hide delay time.
+
+ @short
+ */
+ public static native int hideCursorDelay();
+ /**
+ KCursor has to install an eventFilter over the widget you want to
+ auto-hide. If you have an own eventFilter() on that widget and stop
+ some events by returning true, you might break auto-hiding, because
+ KCursor doesn't get those events.
+ In this case, you need to call setAutoHideCursor( widget, true, true );
+ to tell KCursor not to install an eventFilter. Then you call this method
+ from the beginning of your eventFilter, for example:
+ <pre>
+ edit = new KEdit( this, "some edit widget" );
+ edit.installEventFilter( this );
+ KCursor.setAutoHideCursor( edit, true, true );
+ [...]
+ boolean YourClass.eventFilter( QObject o, QEvent e )
+ {
+ if ( o == edit ) // only that widget where you enabled auto-hide!
+ KCursor.autoHideEventFilter( o, e );
+ // now you can do your own event-processing
+ [...]
+ }
+ </pre>
+ Note that you must not call KCursor.autoHideEventFilter() when you
+ didn't enable or after disabling auto-hiding.
+ @short KCursor has to install an eventFilter over the widget you want to auto-hide.
+ */
+ public static native void autoHideEventFilter(QObject arg1, QEvent arg2);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KCustomMenuEditor.java b/kdejava/koala/org/kde/koala/KCustomMenuEditor.java
new file mode 100644
index 00000000..9984324d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KCustomMenuEditor.java
@@ -0,0 +1,45 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+*/
+public class KCustomMenuEditor extends KDialogBase {
+ protected KCustomMenuEditor(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create a dialog for editing a custom menu
+ @short Create a dialog for editing a custom menu
+ */
+ public KCustomMenuEditor(QWidget parent) {
+ super((Class) null);
+ newKCustomMenuEditor(parent);
+ }
+ private native void newKCustomMenuEditor(QWidget parent);
+ /**
+ load the custom menu
+ @short load the custom menu
+ */
+ public native void load(KConfigBase arg1);
+ /**
+ save the custom menu
+ @short save the custom menu
+ */
+ public native void save(KConfigBase arg1);
+ public native void slotNewItem();
+ public native void slotRemoveItem();
+ public native void slotMoveUp();
+ public native void slotMoveDown();
+ public native void refreshButton();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDCOPActionProxy.java b/kdejava/koala/org/kde/koala/KDCOPActionProxy.java
new file mode 100644
index 00000000..1dfd1129
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDCOPActionProxy.java
@@ -0,0 +1,83 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The KDCOPActionProxy class provides an easy way to publish a collection of KAction objects
+ through DCOP. For the DCOP client the exported actions behave like full-fledged DCOP objects,
+ providing full access to the KAction object functionality in the server.
+ This class can generate DCOP object ids for given action objects, which it automatically
+ processes, as being a DCOPObjectProxy .
+ @short A proxy class publishing a DCOP interface for actions.
+
+*/
+public class KDCOPActionProxy extends DCOPObjectProxy {
+ protected KDCOPActionProxy(Class dummy){super((Class) null);}
+ /**
+ Constructs a dcop action proxy, being able to export the actions of the provided
+ KActionCollection through DCOP, using the parent DCOPObject's object id to
+ generate unique object ids for the actions.
+ @short Constructs a dcop action proxy, being able to export the actions of the provided KActionCollection through DCOP, using the parent DCOPObject's object id to generate unique object ids for the actions.
+ */
+ public KDCOPActionProxy(KActionCollection actionCollection, DCOPObjectInterface parent) {
+ super((Class) null);
+ newKDCOPActionProxy(actionCollection,parent);
+ }
+ private native void newKDCOPActionProxy(KActionCollection actionCollection, DCOPObjectInterface parent);
+ /**
+ Use this constructor if do not want to provide the exportable actions through a
+ KActionCollection . You have to reimplement the actions() and
+ action() methods if you use this constructor.
+ @short Use this constructor if do not want to provide the exportable actions through a KActionCollection .
+ */
+ public KDCOPActionProxy(DCOPObjectInterface parent) {
+ super((Class) null);
+ newKDCOPActionProxy(parent);
+ }
+ private native void newKDCOPActionProxy(DCOPObjectInterface parent);
+ /**
+ Returns an action object with the given name. The default implementation queries the action object
+ from the KActionCollection, if the first constructor has been used.
+ @short Returns an action object with the given name.
+ */
+ public native KAction action(String name);
+ /**
+ Use this method to retrieve a DCOP object id for an action with the given name.
+ This class automatically takes care of processing DCOP object requests for the returned
+ object id.
+ You can construct a global DCOP object referenence using DCOPRef. For example like
+ DCOPRef( kapp.dcopClient().appId, actionProxy.actionObjectId( actionName ) );
+ The action with the given name has to be available through the #action method.
+ @short Use this method to retrieve a DCOP object id for an action with the given name.
+ */
+ public native String actionObjectId(String name);
+ /**
+ Returns a map of all exported actions, with the action name as keys and a global DCOP reference
+ as data entries.
+ The appId argument is used to specify the appid component of the DCOP reference. By default the
+ global application id is used ( kapp.dcopClient().appId() ) .
+ @short Returns a map of all exported actions, with the action name as keys and a global DCOP reference as data entries.
+ */
+ // QMap<QCString, DCOPRef> actionMap(const QCString& arg1); >>>> NOT CONVERTED
+ // QMap<QCString, DCOPRef> actionMap(); >>>> NOT CONVERTED
+ /**
+ Internal reimplementation of DCOPObjectProxy.process .
+ @short Internal reimplementation of DCOPObjectProxy.process .
+ */
+ public native boolean process(String arg1, String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ Called by the #process method and takes care of processing the object request for an
+ action object.
+ @short Called by the #process method and takes care of processing the object request for an action object.
+ */
+ public native boolean processAction(String arg1, String fun, byte[] data, StringBuffer replyType, byte[] replyData, KAction action);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDCOPPropertyProxy.java b/kdejava/koala/org/kde/koala/KDCOPPropertyProxy.java
new file mode 100644
index 00000000..82ee6dfa
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDCOPPropertyProxy.java
@@ -0,0 +1,83 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+/**
+
+ The KDCOPPropertyProxy class provides an easy way to publish Qt properties of a
+ QObject through DCOP.
+ The class provides DCOP equivalents for the Qt property methods setProperty() ,
+ property() and propertyNames() and also provides automatic set/get methods for
+ the properties of a QObject. That means for example if your object provides a
+ String property called foo , then KDCOPPropertyProxy translates DCOP calls
+ "setFoo( String )" and "String foo()" automatically into the corresponding
+ setProperty/property calls.
+ @short The KDCOPPropertyProxy class provides an easy way to publish Qt properties of a QObject through DCOP.
+
+*/
+public class KDCOPPropertyProxy implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KDCOPPropertyProxy(Class dummy){}
+
+ /**
+ Convenience constructor. Use it if you want to use this class as object, in contrary
+ to using the static methods of this class and providing a QObject argument for each
+ call.
+ @short Convenience constructor.
+ */
+ public KDCOPPropertyProxy(QObject object) {
+ newKDCOPPropertyProxy(object);
+ }
+ private native void newKDCOPPropertyProxy(QObject object);
+ /**
+ Convenience method, when using this class as object. See documentation of the constructor and
+ static isPropertyRequest method.
+ @short Convenience method, when using this class as object.
+ */
+ public native boolean isPropertyRequest(String fun);
+ /**
+ Convenience method, when using this class as object. See documentation of the constructor and
+ static processPropertyRequest method.
+ @short Convenience method, when using this class as object.
+ */
+ public native boolean processPropertyRequest(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ Convenience method, when using this class as object. See documentation of the constructor and
+ static functions method.
+ @short Convenience method, when using this class as object.
+ */
+ // QValueList<QCString> functions(); >>>> NOT CONVERTED
+ /**
+ Returns a semicolon-separated list of functions understood by the PropertyProxy for the given
+ QObject argument.
+ Returns "property(String);setProperty(String,QVariant);propertyNames();" plus set/get
+ methods for the properties of the given object argument.
+ @short Returns a semicolon-separated list of functions understood by the PropertyProxy for the given QObject argument.
+ @see DCOPObject#functions
+ */
+ // QValueList<QCString> functions(QObject* arg1); >>>> NOT CONVERTED
+ /**
+ Returns true if the method request in the fun argument matches the signature of the three standard
+ property methods or set/get methods for the properties of the object argument.
+ Use this method in your own DCOPObject dispatcher to check if the DCOP request is a property
+ request which can be handled by this class.
+ @short Returns true if the method request in the fun argument matches the signature of the three standard property methods or set/get methods for the properties of the object argument.
+ */
+ public static native boolean isPropertyRequest(String fun, QObject object);
+ /**
+ Processes the given DCOP method request by translating the request into a setProperty/property call
+ on the given QObject argument.
+ @short Processes the given DCOP method request by translating the request into a setProperty/property call on the given QObject argument.
+ */
+ public static native boolean processPropertyRequest(String fun, byte[] data, StringBuffer replyType, byte[] replyData, QObject object);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDCOPServiceStarter.java b/kdejava/koala/org/kde/koala/KDCOPServiceStarter.java
new file mode 100644
index 00000000..c6dd539a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDCOPServiceStarter.java
@@ -0,0 +1,80 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A generic DCOP service starter, using KTrader.
+ The default implementation starts new processes, but this interface can
+ also be reimplemented by specific applications to provide dlopened in-process DCOP objects.
+ @author David Faure <faure@kde.org>
+
+ @short A generic DCOP service starter, using KTrader.
+
+*/
+public class KDCOPServiceStarter implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KDCOPServiceStarter(Class dummy){}
+
+ /**
+ Check if a given DCOP interface is available - from the serviceType it's supposed to implement.
+ The trader is queried to find the preferred application for this serviceType,
+ with the constraint that its X-DCOP-ServiceName property must be defined.
+ Then the DCOP server is checked. If the service is not available,
+ this method will call startServiceFor to start it.
+ @param serviceType the type of service we're looking for
+ @param constraint see KTrader
+ @param preferences see KTrader
+ @param error On failure, <code>error</code> contains a description of the error
+ that occurred. If the pointer is 0, the argument will be
+ ignored
+ @param dcopService On success, <code>dcopService</code> contains the DCOP name
+ under which this service is available. If the pointer is 0 the argument
+ will be ignored
+ @param flags for future extensions (currently unused)
+ @return an error code indicating success (== 0) or failure (> 0).
+
+ @short Check if a given DCOP interface is available - from the serviceType it's supposed to implement.
+ */
+ public native int findServiceFor(String serviceType, String constraint, String preferences, StringBuffer error, StringBuffer dcopService, int flags);
+ public native int findServiceFor(String serviceType, String constraint, String preferences, StringBuffer error, StringBuffer dcopService);
+ public native int findServiceFor(String serviceType, String constraint, String preferences, StringBuffer error);
+ public native int findServiceFor(String serviceType, String constraint, String preferences);
+ public native int findServiceFor(String serviceType, String constraint);
+ public native int findServiceFor(String serviceType);
+ /**
+ Find an implementation of the given <code>serviceType</code>,
+ and start it, to use its DCOP interface.
+ The default implementation uses KTrader to find the preferred Application,
+ and then starts it using kapp.startService...
+ However applications (like kontact) can reimplement this method, to provide
+ an in-process way of loading the implementation for this service type.
+ @param serviceType the type of service we're looking for
+ @param constraint see KTrader
+ @param preferences see KTrader
+ @param error On failure, <code>error</code> contains a description of the error
+ that occurred. If the pointer is 0, the argument will be
+ ignored
+ @param dcopService On success, <code>dcopService</code> contains the DCOP name
+ under which this service is available. If the pointer is 0 the argument
+ will be ignored
+ @param flags for future extensions (currently unused)
+ @return an error code indicating success (== 0) or failure (> 0).
+
+ @short Find an implementation of the given <code>serviceType</code>, and start it, to use its DCOP interface.
+ */
+ public native int startServiceFor(String serviceType, String constraint, String preferences, StringBuffer error, StringBuffer dcopService, int flags);
+ public native int startServiceFor(String serviceType, String constraint, String preferences, StringBuffer error, StringBuffer dcopService);
+ public native int startServiceFor(String serviceType, String constraint, String preferences, StringBuffer error);
+ public native int startServiceFor(String serviceType, String constraint, String preferences);
+ public native int startServiceFor(String serviceType, String constraint);
+ public native int startServiceFor(String serviceType);
+ public static native KDCOPServiceStarter self();
+ public KDCOPServiceStarter() {
+ newKDCOPServiceStarter();
+ }
+ private native void newKDCOPServiceStarter();
+}
diff --git a/kdejava/koala/org/kde/koala/KDE.java b/kdejava/koala/org/kde/koala/KDE.java
new file mode 100644
index 00000000..3a867484
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDE.java
@@ -0,0 +1,536 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+import org.kde.qt.QRegion;
+import org.kde.qt.QPixmap;
+import java.util.Calendar;
+import org.kde.qt.QPainter;
+import org.kde.qt.QBitmap;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QBrush;
+import org.kde.qt.QColorGroup;
+
+/**
+
+ Namespace for general KDE functions.
+ @short Namespace for general KDE functions.
+
+*/
+public class KDE {
+ /**
+ Returns the encoded number of KDE's version, see the KDE_VERSION macro.
+ In contrary to that macro this function returns the number of the actully
+ installed KDE version, not the number of the KDE version that was
+ installed when the program was compiled.
+ @return the version number, encoded in a single uint
+
+ @short Returns the encoded number of KDE's version, see the KDE_VERSION macro.
+ */
+ public static native int version();
+ /**
+ Returns the major number of KDE's version, e.g.
+ 3 for KDE 3.1.2.
+ @return the major version number
+
+ @short Returns the major number of KDE's version, e.
+ */
+ public static native int versionMajor();
+ /**
+ Returns the minor number of KDE's version, e.g.
+ 1 for KDE 3.1.2.
+ @return the minor version number
+
+ @short Returns the minor number of KDE's version, e.
+ */
+ public static native int versionMinor();
+ /**
+ Returns the release of KDE's version, e.g.
+ 2 for KDE 3.1.2.
+ @return the release number
+
+ @short Returns the release of KDE's version, e.
+ */
+ public static native int versionRelease();
+ /**
+ Returns the KDE version as string, e.g. "3.1.2".
+ @return the KDE version. You can keep the string forever
+
+ @short Returns the KDE version as string, e.
+ */
+ public static native String versionString();
+ // int KSSLPemCallback(char* arg1,int arg2,int arg3,void* arg4); >>>> NOT CONVERTED
+ /**
+ {@link KLocale}
+ i18n is the function that does everything you need to translate
+ a string. You just wrap around every user visible string a i18n
+ call to get a String with the string in the user's preferred
+ language.
+ The argument must be an UTF-8 encoded string (If you only use
+ characters that are in US-ASCII, you're on the safe side. But
+ for e.g. German umlauts or French accents should be recoded to
+ UTF-8)
+ @short {@link KLocale} i18n is the function that does everything you need to translate a string.
+ */
+ public static native String i18n(String text);
+ /**
+ {@link KLocale}
+ If the string is too ambiguous to be translated well to a non-english
+ language, use this form of i18n to separate lookup string and english
+ text.
+ @short {@link KLocale} If the string is too ambiguous to be translated well to a non-english language, use this form of i18n to separate lookup string and english text.
+ @see #translate
+ */
+ public static native String i18n(String comment, String text);
+ /**
+ {@link KLocale}
+ If you want to handle plural forms, use this form of i18n.
+ @param singular the singular form of the word, for example "file".
+ @param plural the plural form of the word. Must contain a "%n" that will
+ be replaced by the number <code>n</code>, for example "%n files"
+ @param n the number
+ @return the correct singular or plural for the selected language,
+ depending on n
+
+ @short {@link KLocale} If you want to handle plural forms, use this form of i18n.
+ @see #translate
+ */
+ public static native String i18n(String singular, String plural, long n);
+ /**
+ {@link KLocale}
+ Qt3's uic generates i18n( "msg", "comment" ) calls which conflict
+ with our i18n method. We use uic -tr tr2i18n to redirect
+ to the right i18n() function
+ @short {@link KLocale} Qt3's uic generates i18n( "msg", "comment" ) calls which conflict with our i18n method.
+ */
+ public static native String tr2i18n(String message, String arg2);
+ public static native String tr2i18n(String message);
+ public static native QDataStream op_write(QDataStream s, KFileItem a);
+ public static native QDataStream op_read(QDataStream s, KFileItem a);
+ public static native int pageNameToPageSize(String name);
+ public static native String pageSizeToPageName(int s);
+ /**
+ {@link KURL}
+ Compares URLs. They are parsed, split and compared.
+ Two malformed URLs with the same string representation
+ are nevertheless considered to be unequal.
+ That means no malformed URL equals anything else.
+ @short {@link KURL} Compares URLs.
+ */
+ public static native boolean urlcmp(String _url1, String _url2);
+ /**
+ {@link KURL}
+ Compares URLs. They are parsed, split and compared.
+ Two malformed URLs with the same string representation
+ are nevertheless considered to be unequal.
+ That means no malformed URL equals anything else.
+ @param _url1 A reference URL
+ @param _url2 A URL that will be compared with the reference URL
+ @param _ignore_trailing Described in KURL.cmp
+ @param _ignore_ref If true, disables comparison of HTML-style references.
+ @short {@link KURL} Compares URLs.
+ */
+ public static native boolean urlcmp(String _url1, String _url2, boolean _ignore_trailing, boolean _ignore_ref);
+ public static native QDataStream op_write(QDataStream s, KURL a);
+ public static native QDataStream op_read(QDataStream s, KURL a);
+ /**
+ Locale-independent qstricmp. Use this for comparing ascii keywords
+ in a case-insensitive way.
+ qstricmp fails with e.g. the Turkish locale where 'I'.lower() != 'i'
+ @short Locale-independent qstricmp.
+ */
+ public static native int kasciistricmp(String str1, String str2);
+ public static native QDataStream op_write(QDataStream s, KSSLCertificate r);
+ public static native QDataStream op_read(QDataStream s, KSSLCertificate r);
+ public static native int op_equals(KSSLCertificate x, KSSLCertificate y);
+ public static native int op_not_equals(KSSLCertificate x, KSSLCertificate y);
+ // QDataStream& op_read(QDataStream& arg1,KProtocolInfo::ExtraField& arg2); >>>> NOT CONVERTED
+ // QDataStream& op_write(QDataStream& arg1,const KProtocolInfo::ExtraField& arg2); >>>> NOT CONVERTED
+ /**
+ {@link KGlobal}
+ Check, if a file may be accessed in a given mode.
+ This is a wrapper around the access() system call.
+ checkAccess() calls access() with the given parameters.
+ If this is OK, checkAccess() returns true. If not, and W_OK
+ is part of mode, it is checked if there is write access to
+ the directory. If yes, checkAccess() returns true.
+ In all other cases checkAccess() returns false.
+ Other than access() this function EXPLICITLY ignores non-existant
+ files if checking for write access.
+ @param pathname The full path of the file you want to test
+ @param mode The access mode, as in the access() system call.
+ @return Whether the access is allowed, true = Access allowed
+
+ @short {@link KGlobal} Check, if a file may be accessed in a given mode.
+ */
+ public static native boolean checkAccess(String pathname, int mode);
+ public static native QDataStream op_write(QDataStream s, KSSLCertDlgRet r);
+ public static native QDataStream op_read(QDataStream s, KSSLCertDlgRet r);
+ public static native QDataStream op_write(QDataStream str, boolean b);
+ public static native QDataStream op_read(QDataStream str, boolean b);
+ public static native QDataStream op_write(QDataStream str, long ll);
+ // QDataStream& op_read(QDataStream& arg1,long long int& arg2); >>>> NOT CONVERTED
+ // QDataStream& op_read(QDataStream& arg1,unsigned long long int& arg2); >>>> NOT CONVERTED
+ /**
+ Convert an ASN1 UTCTIME value to a string. Uses KLocale settings.
+ @param tm the OpenSSL ASN1_UTCTIME pointer
+ @return the date formatted in a String
+
+ @short Convert an ASN1 UTCTIME value to a string.
+ @see ASN1_UTCTIME_QDateTime
+ */
+ // QString ASN1_UTCTIME_QString(ASN1_UTCTIME* arg1); >>>> NOT CONVERTED
+ /**
+ Convert an ASN1 UTCTIME value to a Calendar. Uses KLocale settings.
+ @param tm the OpenSSL ASN1_UTCTIME pointer
+ @param isGmt set to 1 if the date is set to GMT
+ @return the date formatted in a QDateTime
+
+ @short Convert an ASN1 UTCTIME value to a QDateTime.
+ */
+ // QDateTime ASN1_UTCTIME_QDateTime(ASN1_UTCTIME* arg1,int* arg2); >>>> NOT CONVERTED
+ /**
+ Convert an ASN1 INTEGER value to a string.
+ @param aint the OpenSSL ASN1_INTEGER pointer
+ @return the number formatted in a String
+
+ @short Convert an ASN1 INTEGER value to a string.
+ */
+ // QString ASN1_INTEGER_QString(ASN1_INTEGER* arg1); >>>> NOT CONVERTED
+ /**
+ {@link KIconLoader}
+ Load a desktop icon.
+ @short {@link KIconLoader} Load a desktop icon.
+ */
+ public static native QPixmap DesktopIcon(String name, int size, int state, KInstanceInterface instance);
+ public static native QPixmap DesktopIcon(String name, int size, int state);
+ public static native QPixmap DesktopIcon(String name, int size);
+ public static native QPixmap DesktopIcon(String name);
+ /**
+ {@link KIconLoader}
+ Load a desktop icon.
+ @short {@link KIconLoader} Load a desktop icon.
+ */
+ public static native QPixmap DesktopIcon(String name, KInstanceInterface instance);
+ /**
+ {@link KIconLoader}
+ Load a desktop icon, and apply the necessary effects to get an IconSet.
+ @short {@link KIconLoader} Load a desktop icon, and apply the necessary effects to get an IconSet.
+ */
+ public static native QIconSet DesktopIconSet(String name, int size, KInstanceInterface instance);
+ public static native QIconSet DesktopIconSet(String name, int size);
+ public static native QIconSet DesktopIconSet(String name);
+ /**
+ {@link KIconLoader}
+ Load a toolbar icon.
+ @short {@link KIconLoader} Load a toolbar icon.
+ */
+ public static native QPixmap BarIcon(String name, int size, int state, KInstanceInterface instance);
+ public static native QPixmap BarIcon(String name, int size, int state);
+ public static native QPixmap BarIcon(String name, int size);
+ public static native QPixmap BarIcon(String name);
+ /**
+ {@link KIconLoader}
+ Load a toolbar icon.
+ @short {@link KIconLoader} Load a toolbar icon.
+ */
+ public static native QPixmap BarIcon(String name, KInstanceInterface instance);
+ /**
+ {@link KIconLoader}
+ Load a toolbar icon, and apply the necessary effects to get an IconSet.
+ @short {@link KIconLoader} Load a toolbar icon, and apply the necessary effects to get an IconSet.
+ */
+ public static native QIconSet BarIconSet(String name, int size, KInstanceInterface instance);
+ public static native QIconSet BarIconSet(String name, int size);
+ public static native QIconSet BarIconSet(String name);
+ /**
+ {@link KIconLoader}
+ Load a small icon.
+ @short {@link KIconLoader} Load a small icon.
+ */
+ public static native QPixmap SmallIcon(String name, int size, int state, KInstanceInterface instance);
+ public static native QPixmap SmallIcon(String name, int size, int state);
+ public static native QPixmap SmallIcon(String name, int size);
+ public static native QPixmap SmallIcon(String name);
+ /**
+ {@link KIconLoader}
+ Load a small icon.
+ @short {@link KIconLoader} Load a small icon.
+ */
+ public static native QPixmap SmallIcon(String name, KInstanceInterface instance);
+ /**
+ {@link KIconLoader}
+ Load a small icon, and apply the necessary effects to get an IconSet.
+ @short {@link KIconLoader} Load a small icon, and apply the necessary effects to get an IconSet.
+ */
+ public static native QIconSet SmallIconSet(String name, int size, KInstanceInterface instance);
+ public static native QIconSet SmallIconSet(String name, int size);
+ public static native QIconSet SmallIconSet(String name);
+ /**
+ {@link KIconLoader}
+ Load a main toolbar icon.
+ @short {@link KIconLoader} Load a main toolbar icon.
+ */
+ public static native QPixmap MainBarIcon(String name, int size, int state, KInstanceInterface instance);
+ public static native QPixmap MainBarIcon(String name, int size, int state);
+ public static native QPixmap MainBarIcon(String name, int size);
+ public static native QPixmap MainBarIcon(String name);
+ /**
+ {@link KIconLoader}
+ Load a main toolbar icon.
+ @short {@link KIconLoader} Load a main toolbar icon.
+ */
+ public static native QPixmap MainBarIcon(String name, KInstanceInterface instance);
+ /**
+ {@link KIconLoader}
+ Load a main toolbar icon, and apply the effects to get an IconSet.
+ @short {@link KIconLoader} Load a main toolbar icon, and apply the effects to get an IconSet.
+ */
+ public static native QIconSet MainBarIconSet(String name, int size, KInstanceInterface instance);
+ public static native QIconSet MainBarIconSet(String name, int size);
+ public static native QIconSet MainBarIconSet(String name);
+ /**
+ {@link KIconLoader}
+ Load a user icon. User icons are searched in $appdir/pics.
+ @short {@link KIconLoader} Load a user icon.
+ */
+ public static native QPixmap UserIcon(String name, int state, KInstanceInterface instance);
+ public static native QPixmap UserIcon(String name, int state);
+ public static native QPixmap UserIcon(String name);
+ /**
+ {@link KIconLoader}
+ Load a user icon. User icons are searched in $appdir/pics.
+ @short {@link KIconLoader} Load a user icon.
+ */
+ public static native QPixmap UserIcon(String name, KInstanceInterface instance);
+ /**
+ {@link KIconLoader}
+ Load a user icon, and apply the effects to get an IconSet.
+ @short {@link KIconLoader} Load a user icon, and apply the effects to get an IconSet.
+ */
+ public static native QIconSet UserIconSet(String name, KInstanceInterface instance);
+ public static native QIconSet UserIconSet(String name);
+ /**
+ {@link KIconLoader}
+ Returns the current icon size for a specific group.
+ @short {@link KIconLoader} Returns the current icon size for a specific group.
+ */
+ public static native int IconSize(int group, KInstanceInterface instance);
+ public static native int IconSize(int group);
+ /**
+ \addtogroup locates Locate Functions
+ @{
+ On The Usage Of 'locate' and 'locateLocal'
+ Typical KDE applications use resource files in one out of
+ three ways:
+ 1) A resource file is read but is never written. A system
+ default is supplied but the user can override this
+ default in his local .kde directory:
+ <pre>
+ // Code example
+ myFile = locate("appdata", "groups.lst");
+ myData = myReadGroups(myFile); // myFile may be null
+ </pre>
+ 2) A resource file is read and written. If the user has no
+ local version of the file the system default is used.
+ The resource file is always written to the users local
+ .kde directory.
+ <pre>
+ // Code example
+ myFile = locate("appdata", "groups.lst")
+ myData = myReadGroups(myFile);
+ ...
+ doSomething(myData);
+ ...
+ myFile = locateLocal("appdata", "groups.lst");
+ myWriteGroups(myFile, myData);
+ </pre>
+ 3) A resource file is read and written. No system default
+ is used if the user has no local version of the file.
+ The resource file is always written to the users local
+ .kde directory.
+ <pre>
+ // Code example
+ myFile = locateLocal("appdata", "groups.lst");
+ myData = myReadGroups(myFile);
+ ...
+ doSomething(myData);
+ ...
+ myFile = locateLocal("appdata", "groups.lst");
+ myWriteGroups(myFile, myData);
+ </pre>
+ @short \addtogroup locates Locate Functions @{ On The Usage Of 'locate' and 'locateLocal'
+ */
+ public static native String locate(String type, String filename, KInstanceInterface instance);
+ public static native String locate(String type, String filename);
+ public static native String locateLocal(String type, String filename, KInstanceInterface instance);
+ public static native String locateLocal(String type, String filename);
+ public static native String locateLocal(String type, String filename, boolean createDir, KInstanceInterface instance);
+ public static native String locateLocal(String type, String filename, boolean createDir);
+ public static native int op_incr(int group);
+ public static native int op_incr(int group, int arg2);
+ public static native QDataStream op_write(QDataStream s, int p);
+ public static native QDataStream op_read(QDataStream s, int p);
+ /**
+ {@link KStyle}
+ <code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
+ Draws a Next-style button (solid black shadow with light and midlight highlight).
+ @param p The painter to use for drawing the button.
+ @param r Specifies the rect in which to draw the button.
+ @param g Specifies the shading colors.
+ @param sunken Whether to draw the button as sunken (pressed) or not.
+ @param fill The brush to use for filling the interior of the button.
+ Pass <b>null</b> to prevent the button from being filled.
+ @short {@link KStyle} @c \#include @c <kdrawutil.
+ */
+ public static native void kDrawNextButton(QPainter p, QRect r, QColorGroup g, boolean sunken, QBrush fill);
+ public static native void kDrawNextButton(QPainter p, QRect r, QColorGroup g, boolean sunken);
+ public static native void kDrawNextButton(QPainter p, QRect r, QColorGroup g);
+ /**
+ {@link KStyle}
+ @overload
+ @short {@link KStyle} @overload
+ */
+ public static native void kDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken, QBrush fill);
+ public static native void kDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken);
+ public static native void kDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g);
+ /**
+ {@link KStyle}
+ <code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
+ Draws a Be-style button.
+ @param p The painter to use for drawing the button.
+ @param r Specifies the rect in which to draw the button.
+ @param g Specifies the shading colors.
+ @param sunken Whether to draw the button as sunken (pressed) or not.
+ @param fill The brush to use for filling the interior of the button.
+ Pass <b>null</b> to prevent the button from being filled.
+ @short {@link KStyle} @c \#include @c <kdrawutil.
+ */
+ public static native void kDrawBeButton(QPainter p, QRect r, QColorGroup g, boolean sunken, QBrush fill);
+ public static native void kDrawBeButton(QPainter p, QRect r, QColorGroup g, boolean sunken);
+ public static native void kDrawBeButton(QPainter p, QRect r, QColorGroup g);
+ /**
+ {@link KStyle}
+ <code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
+ @overload
+ @short {@link KStyle} @c \#include @c <kdrawutil.
+ */
+ public static native void kDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken, QBrush fill);
+ public static native void kDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken);
+ public static native void kDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g);
+ /**
+ {@link KStyle}
+ <code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
+ Draws a rounded oval button. This function doesn't fill the button.
+ See kRoundMaskRegion() for setting masks for fills.
+ @param p The painter to use for drawing the button.
+ @param r Specifies the rect in which to draw the button.
+ @param g Specifies the shading colors.
+ @param sunken Whether to draw the button as sunken (pressed) or not.
+ @short {@link KStyle} @c \#include @c <kdrawutil.
+ */
+ public static native void kDrawRoundButton(QPainter p, QRect r, QColorGroup g, boolean sunken);
+ public static native void kDrawRoundButton(QPainter p, QRect r, QColorGroup g);
+ /**
+ {@link KStyle}
+ @overload
+ @short {@link KStyle} @overload
+ */
+ public static native void kDrawRoundButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken);
+ public static native void kDrawRoundButton(QPainter p, int x, int y, int w, int h, QColorGroup g);
+ /**
+ {@link KStyle}
+ <code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
+ Sets a region to the pixels covered by a round button of the given
+ size. You can use this to set clipping regions.
+ @param r Reference to the region to set.
+ @param x The X coordinate of the button.
+ @param y The Y coordinate of the button.
+ @param w The width of the button.
+ @param h The height of the button.
+ @short {@link KStyle} @c \#include @c <kdrawutil.
+ @see #kDrawRoundButton
+ @see #kDrawRoundMask
+ */
+ public static native void kRoundMaskRegion(QRegion r, int x, int y, int w, int h);
+ /**
+ {@link KStyle}
+ <code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
+ Paints the pixels covered by a round button of the given size with
+ Qt.color1. This function is useful in QStyle.drawControlMask().
+ @param p The painter to use for drawing the button.
+ @param x The X coordinate of the button.
+ @param y The Y coordinate of the button.
+ @param w The width of the button.
+ @param h The height of the button.
+ @param clear Whether to clear the rectangle specified by <code></code>(x, y, w, h) to
+ Qt.color0 before drawing the mask.
+ @short {@link KStyle} @c \#include @c <kdrawutil.
+ */
+ public static native void kDrawRoundMask(QPainter p, int x, int y, int w, int h, boolean clear);
+ public static native void kDrawRoundMask(QPainter p, int x, int y, int w, int h);
+ /**
+ {@link KStyle}
+ <code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
+ Paints the provided bitmaps in the painter, using the supplied colorgroup for
+ the foreground colors. There's one bitmap for each color. If you want to skip
+ a color, pass <b>null</b> for the corresponding bitmap.
+ @note The bitmaps will be self-masked automatically if not masked
+ prior to calling this routine.
+ @param p The painter to use for drawing the bitmaps.
+ @param g Specifies the shading colors.
+ @param x The X coordinate at which to draw the bitmaps.
+ @param y The Y coordinate at which to draw the bitmaps.
+ @param lightColor The bitmap to use for the light part.
+ @param midColor The bitmap to use for the mid part.
+ @param midlightColor The bitmap to use for the midlight part.
+ @param darkColor The bitmap to use for the dark part.
+ @param blackColor The bitmap to use for the black part.
+ @param whiteColor The bitmap to use for the white part.
+ @short {@link KStyle} @c \#include @c <kdrawutil.
+ @see org.kde.qt.QColorGroup
+ */
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor, QBitmap darkColor, QBitmap blackColor, QBitmap whiteColor);
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor, QBitmap darkColor, QBitmap blackColor);
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor, QBitmap darkColor);
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor);
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor);
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor);
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y);
+ /**
+ {@link KStyle}
+ <code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
+ @overload
+ @short {@link KStyle} @c \#include @c <kdrawutil.
+ */
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor, char[] darkColor, char[] blackColor, char[] whiteColor);
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor, char[] darkColor, char[] blackColor);
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor, char[] darkColor);
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor);
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor);
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor);
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps);
+ public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h);
+ /**
+ compares two KEntryKeys (needed for QMap).
+ @short compares two KEntryKeys (needed for QMap).
+ */
+ public static native boolean op_lt(KEntryKey k1, KEntryKey k2);
+ // const char* dcopTypeName(const DCOPArg& arg1); >>>> NOT CONVERTED
+ // QDataStream& op_write(QDataStream& arg1,const DCOPArg& arg2); >>>> NOT CONVERTED
+ // QDataStream& op_write(QDataStream& arg1,const DCOPRef& arg2); >>>> NOT CONVERTED
+ // QDataStream& op_read(QDataStream& arg1,DCOPRef& arg2); >>>> NOT CONVERTED
+ public static native QDataStream op_write(QDataStream s, KFileMetaInfoItem arg2);
+ public static native QDataStream op_read(QDataStream s, KFileMetaInfoItem arg2);
+ public static native QDataStream op_write(QDataStream s, KFileMetaInfoGroup arg2);
+ public static native QDataStream op_read(QDataStream s, KFileMetaInfoGroup arg2);
+ public static native QDataStream op_write(QDataStream s, KFileMetaInfo arg2);
+ public static native QDataStream op_read(QDataStream s, KFileMetaInfo arg2);
+ // QDataStream& op_read(QDataStream& arg1,KIO::UDSAtom& arg2); >>>> NOT CONVERTED
+ // QDataStream& op_write(QDataStream& arg1,const KIO::UDSAtom& arg2); >>>> NOT CONVERTED
+ // QDataStream& op_write(QDataStream& arg1,const KIO::UDSEntry& arg2); >>>> NOT CONVERTED
+ // QDataStream& op_read(QDataStream& arg1,KIO::UDSEntry& arg2); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/KDEDesktopMimeType.java b/kdejava/koala/org/kde/koala/KDEDesktopMimeType.java
new file mode 100644
index 00000000..fbd96250
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDEDesktopMimeType.java
@@ -0,0 +1,116 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+import org.kde.qt.QPixmap;
+import java.util.ArrayList;
+
+/**
+
+ Mime type for desktop files.
+ Handles mount/umount icon, and user-defined properties.
+ @short Mimetype for a .desktop file.
+
+*/
+public class KDEDesktopMimeType extends KMimeType {
+ protected KDEDesktopMimeType(Class dummy){super((Class) null);}
+ public static final int ST_MOUNT = 0;
+ public static final int ST_UNMOUNT = 1;
+ public static final int ST_USER_DEFINED = 2;
+
+ /**
+ Construct a desktop mimetype and take all information from a desktop file.
+ @param config the desktop configuration file that describes the mime type
+ @short Construct a desktop mimetype and take all information from a desktop file.
+ */
+ public KDEDesktopMimeType(KDesktopFile config) {
+ super((Class) null);
+ newKDEDesktopMimeType(config);
+ }
+ private native void newKDEDesktopMimeType(KDesktopFile config);
+ /** \internal @short \internal
+ */
+ public KDEDesktopMimeType(QDataStream _str, int offset) {
+ super((Class) null);
+ newKDEDesktopMimeType(_str,offset);
+ }
+ private native void newKDEDesktopMimeType(QDataStream _str, int offset);
+ public native String icon(String _url, boolean _is_local);
+ public native String icon(KURL _url, boolean _is_local);
+ public native QPixmap pixmap(KURL _url, int _group, int _force_size, int _state, StringBuffer _path);
+ public native QPixmap pixmap(KURL _url, int _group, int _force_size, int _state);
+ public native QPixmap pixmap(KURL _url, int _group, int _force_size);
+ public native QPixmap pixmap(KURL _url, int _group);
+ public native String comment(String _url, boolean _is_local);
+ public native String comment(KURL _url, boolean _is_local);
+ /**
+ Returns a list of services for the given .desktop file that are handled
+ by kio itself. Namely mount/unmount for FSDevice files.
+ @return the list of services
+
+ @short Returns a list of services for the given .
+ */
+ // QValueList<KDEDesktopMimeType::Service> builtinServices(const KURL& arg1); >>>> NOT CONVERTED
+ /**
+ Returns a list of services defined by the user as possible actions
+ on the given .desktop file. May include empty actions which represent where
+ visual separators should appear in user-visible representations of those actions,
+ such as separators in a menu.
+ @param path the path to the desktop file describing the services
+ @param bLocalFiles true if those services are to be applied to local files only
+ (if false, services that don't have %u or %U in the Exec line won't be taken into account).
+ @return the list of user deviced actions
+
+ @short Returns a list of services defined by the user as possible actions on the given .
+ */
+ // QValueList<KDEDesktopMimeType::Service> userDefinedServices(const QString& arg1,bool arg2); >>>> NOT CONVERTED
+ /**
+ Overload of userDefinedServices for speed purposes: it takes a KConfig so that
+ the caller can check things in the file without having it parsed twice.
+ @short Overload of userDefinedServices for speed purposes: it takes a KConfig so that the caller can check things in the file without having it parsed twice.
+ */
+ // QValueList<KDEDesktopMimeType::Service> userDefinedServices(const QString& arg1,KConfig& arg2,bool arg3); >>>> NOT CONVERTED
+ /**
+ Overload of userDefinedServices but also allows you to pass a list of urls for this file.
+ This allows for the menu to be changed depending on the exact files via
+ the X-KDE-GetActionMenu extension.
+ @short Overload of userDefinedServices but also allows you to pass a list of urls for this file.
+ */
+ // QValueList<KDEDesktopMimeType::Service> userDefinedServices(const QString& arg1,KConfig& arg2,bool arg3,const KURL::List& arg4); >>>> NOT CONVERTED
+ /**
+ Execute <code>service</code> on the list of <code>urls.</code>
+ @param urls the list of urls
+ @param service the service to execute
+ @short Execute <code>service</code> on the list of <code>urls.</code>
+ */
+ // void executeService(const KURL::List& arg1,KDEDesktopMimeType::Service& arg2); >>>> NOT CONVERTED
+ /**
+ Invokes the default action for the desktop entry. If the desktop
+ entry is not local, then only false is returned. Otherwise we
+ would create a security problem. Only types Link and Mimetype
+ could be followed.
+ @param _url the url to run
+ @param _is_local true if the URL is local, false otherwise
+ @return true on success and false on failure.
+
+ @short Invokes the default action for the desktop entry.
+ @see KRun#runURL
+ */
+ public static native int run(KURL _url, boolean _is_local);
+ public native QPixmap pixmap(int group, int force_size, int state, StringBuffer path);
+ public native QPixmap pixmap(int group, int force_size, int state);
+ public native QPixmap pixmap(int group, int force_size);
+ public native QPixmap pixmap(int group);
+ protected static native int runFSDevice(KURL _url, KSimpleConfig cfg);
+ protected static native int runApplication(KURL _url, String _serviceFile);
+ protected static native int runLink(KURL _url, KSimpleConfig cfg);
+ protected static native int runMimeType(KURL _url, KSimpleConfig cfg);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDataTool.java b/kdejava/koala/org/kde/koala/KDataTool.java
new file mode 100644
index 00000000..a8bdc27b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDataTool.java
@@ -0,0 +1,74 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QObject;
+
+/**
+
+ A generic tool that processes data.
+ A data-tool is a "plugin" for an application, that acts (reads/modifies)
+ on a portion of the data present in the document (e.g. a text document,
+ a single word or paragraph, a KSpread cell, an image, etc.)
+ The application has some generic code for presenting the tools in a popupmenu
+ @short A generic tool that processes data.
+ @see KDataToolAction
+ @see #for
+ @see #activating
+ @see #a
+ @see #tool
+ @see #passing
+ @see #it
+ @see #the
+ @see #data
+ @see (and
+ @see #possibly
+ @see #getting
+ @see #modified
+ @see #data
+ @see #from
+ @see #it)#
+
+*/
+public class KDataTool extends QObject {
+ protected KDataTool(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor
+ The data-tool is only created when a menu-item, that relates to it, is activated.
+ @param parent the parent of the QObject (or 0 for parent-less KDataTools)
+ @param name the name of the QObject, can be 0
+ @short Constructor The data-tool is only created when a menu-item, that relates to it, is activated.
+ */
+ /**
+ @short
+ */
+ public native void setInstance(KInstanceInterface instance);
+ /**
+ Returns the instance of the part that created this tool.
+ Usually used if the tool wants to read its configuration in the app's config file.
+ @return the instance of the part that created this tool.
+
+ @short Returns the instance of the part that created this tool.
+ */
+ public native KInstanceInterface instance();
+ /**
+ Interface for 'running' this tool.
+ This is the method that the data-tool must implement.
+ @param command is the command that was selected (see KDataToolInfo.commands())
+ @param data the data provided by the application, on which to run the tool.
+ The application is responsible for setting that data before running the tool,
+ and for getting it back and updating itself with it, after the tool ran.
+ @param datatype defines the type of <code>data.</code>
+ @param mimetype defines the mimetype of the data (for instance datatype may be
+ String, but the mimetype can be text/plain, text/html etc.)
+ @return true if successful, false otherwise
+
+ @short Interface for 'running' this tool.
+ */
+ // bool run(const QString& arg1,void* arg2,const QString& arg3,const QString& arg4); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/KDataToolAction.java b/kdejava/koala/org/kde/koala/KDataToolAction.java
new file mode 100644
index 00000000..3296dceb
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDataToolAction.java
@@ -0,0 +1,78 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+/**
+
+ This class helps applications implement support for KDataTool.
+ The steps to follow are simple:
+
+ <li>
+ query for the available tools using KDataToolInfo.query
+ </li>
+
+ <li>
+ pass the result to KDataToolAction.dataToolActionList (with a slot)
+ </li>
+
+ <li>
+ plug the resulting actions, either using KXMLGUIClient.plugActionList, or by hand.
+ </li>
+ The slot defined for step 2 is called when the action is activated, and
+ that's where the tool should be created and run.
+ See {@link KDataToolActionSignals} for signals emitted by KDataToolAction
+ @short This class helps applications implement support for KDataTool.
+
+*/
+public class KDataToolAction extends KAction {
+ protected KDataToolAction(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a new KDataToolAction.
+ @param text The text that will be displayed.
+ @param info the corresponding KDataToolInfo
+ @param command the command of the action
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short Constructs a new KDataToolAction.
+ */
+ public KDataToolAction(String text, KDataToolInfo info, String command, QObject parent, String name) {
+ super((Class) null);
+ newKDataToolAction(text,info,command,parent,name);
+ }
+ private native void newKDataToolAction(String text, KDataToolInfo info, String command, QObject parent, String name);
+ public KDataToolAction(String text, KDataToolInfo info, String command, QObject parent) {
+ super((Class) null);
+ newKDataToolAction(text,info,command,parent);
+ }
+ private native void newKDataToolAction(String text, KDataToolInfo info, String command, QObject parent);
+ public KDataToolAction(String text, KDataToolInfo info, String command) {
+ super((Class) null);
+ newKDataToolAction(text,info,command);
+ }
+ private native void newKDataToolAction(String text, KDataToolInfo info, String command);
+ /**
+ Creates a list of actions from a list of information about data-tools.
+ The slot must have a signature corresponding to the toolActivated signal.
+ Note that it's the caller's responsibility to delete the actions when they're not needed anymore.
+ @param tools the list of data tool descriptions
+ @param receiver the receiver for toolActivated() signals
+ @param slot the slot that will receive the toolActivated() signals
+ @return the KActions
+
+ @short Creates a list of actions from a list of information about data-tools.
+ */
+ // QPtrList<KAction> dataToolActionList(const QValueList<KDataToolInfo>& arg1,const QObject* arg2,const char* arg3); >>>> NOT CONVERTED
+ protected native void slotActivated();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDataToolActionSignals.java b/kdejava/koala/org/kde/koala/KDataToolActionSignals.java
new file mode 100644
index 00000000..59ca5286
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDataToolActionSignals.java
@@ -0,0 +1,16 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+public interface KDataToolActionSignals {
+ /**
+ Emitted when a tool has been activated.
+ @param info a description of the activated tools
+ @param command the command for the tool
+ @short Emitted when a tool has been activated.
+ */
+ void toolActivated(KDataToolInfo info, String command);
+}
diff --git a/kdejava/koala/org/kde/koala/KDataToolInfo.java b/kdejava/koala/org/kde/koala/KDataToolInfo.java
new file mode 100644
index 00000000..7b678164
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDataToolInfo.java
@@ -0,0 +1,160 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.ArrayList;
+
+/**
+
+ This is a convenience class for KService. You can use it if you have
+ a KService describing a KDataTool. In this case the KDataToolInfo class
+ is more convenient to work with.
+ Especially useful is the method createTool which creates the datatool
+ described by the service.
+ @short This is a convenience class for KService.
+ @see KDataTool
+
+*/
+public class KDataToolInfo implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KDataToolInfo(Class dummy){}
+
+ /**
+ Create an invalid KDataToolInfo.
+ @short Create an invalid KDataToolInfo.
+ */
+ public KDataToolInfo() {
+ newKDataToolInfo();
+ }
+ private native void newKDataToolInfo();
+ /**
+ Create a valid KDataToolInfo.
+ @param service the corresponding service
+ @param instance the instance to use
+ @short Create a valid KDataToolInfo.
+ */
+ // KDataToolInfo* KDataToolInfo(const KService::Ptr& arg1,KInstance* arg2); >>>> NOT CONVERTED
+ /**
+ Copy constructor.
+ @short Copy constructor.
+ */
+ public KDataToolInfo(KDataToolInfo info) {
+ newKDataToolInfo(info);
+ }
+ private native void newKDataToolInfo(KDataToolInfo info);
+ /**
+ Returns the data type that the DataTool can accept.
+ @return the C++ data type that this DataTool accepts.
+ For example "String" or "QImage" or something more
+ complicated.
+
+ @short Returns the data type that the DataTool can accept.
+ */
+ public native String dataType();
+ /**
+ Returns a list of mime type that will be accepted by the DataTool.
+ The mimetypes are only used if the dataType can be used to store
+ different mimetypes. For example in a "String" you could save "text/plain"
+ or "text/html" or "text/xml".
+ @return the mime types accepted by this DataTool. For example
+ "image/gif" or "text/plain". In some cases the dataType
+ determines the accepted type of data perfectly. In this cases
+ this list may be empty.
+
+ @short Returns a list of mime type that will be accepted by the DataTool.
+ */
+ public native ArrayList mimeTypes();
+ /**
+ Checks whether the DataTool is read-only.
+ @return true if the DataTool does not modify the data passed to it by KDataTool.run.
+
+ @short Checks whether the DataTool is read-only.
+ */
+ public native boolean isReadOnly();
+ /**
+ Returns the icon name for this DataTool.
+ @return the name of the icon for the DataTool
+
+ @short Returns the icon name for this DataTool.
+ */
+ public native String iconName();
+ /**
+ Returns a list of strings that you can put in a QPopupMenu item, for example to
+ offer the DataTools services to the user. The returned value
+ is usually something like "Spell checking", "Shrink Image", "Rotate Image"
+ or something like that.
+ This list comes from the Comment field of the tool's desktop file
+ (so that it can be translated).
+ Each of the strings returned corresponds to a string in the list returned by
+ commands.
+ @return a list of strings that you can put in a QPopupMenu item
+
+ @short Returns a list of strings that you can put in a QPopupMenu item, for example to offer the DataTools services to the user.
+ */
+ public native ArrayList userCommands();
+ /**
+ Returns the list of commands the DataTool can execute. The application
+ passes the command to the KDataTool.run method.
+ This list comes from the Commands field of the tool's desktop file.
+ Each of the strings returned corresponds to a string in the list returned by
+ userCommands.
+ @return the list of commands the DataTool can execute, suitable for
+ the KDataTool.run method.
+
+ @short Returns the list of commands the DataTool can execute.
+ */
+ public native ArrayList commands();
+ /**
+ Creates the data tool described by this KDataToolInfo.
+ @param parent the parent of the QObject (or 0 for parent-less KDataTools)
+ @param name the name of the QObject, can be 0
+ @return a pointer to the created data tool or 0 on error.
+
+ @short Creates the data tool described by this KDataToolInfo.
+ */
+ public native KDataTool createTool(QObject parent, String name);
+ public native KDataTool createTool(QObject parent);
+ public native KDataTool createTool();
+ /**
+ The KDataToolInfo's service that is represented by this class.
+ @return the service
+
+ @short The KDataToolInfo's service that is represented by this class.
+ */
+ // KService::Ptr service(); >>>> NOT CONVERTED
+ /**
+ The instance of the service.
+ @return the instance
+
+ @short The instance of the service.
+ */
+ public native KInstanceInterface instance();
+ /**
+ A DataToolInfo may be invalid if the KService passed to its constructor does
+ not feature the service type "KDataTool".
+ @return true if valid, false otherwise
+
+ @short A DataToolInfo may be invalid if the KService passed to its constructor does not feature the service type "KDataTool".
+ */
+ public native boolean isValid();
+ /**
+ Queries the KTrader about installed KDataTool implementations.
+ @param datatype a type that the application can 'export' to the tools (e.g. String)
+ @param mimetype the mimetype of the data (e.g. text/plain)
+ @param instance the application (or the part)'s instance (to check if a tool is excluded from this part,
+ and also used if the tool wants to read its configuration in the app's config file).
+ @return the list of results
+
+ @short Queries the KTrader about installed KDataTool implementations.
+ */
+ // QValueList<KDataToolInfo> query(const QString& arg1,const QString& arg2,KInstance* arg3); >>>> NOT CONVERTED
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDatePicker.java b/kdejava/koala/org/kde/koala/KDatePicker.java
new file mode 100644
index 00000000..61a621fb
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDatePicker.java
@@ -0,0 +1,176 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QSize;
+import java.util.Calendar;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QFrame;
+
+/**
+
+ Provides a widget for calendar date input.
+ Different from the
+ previous versions, it now emits two types of signals, either
+ dateSelected() or dateEntered() (see documentation for both
+ signals).
+ A line edit has been added in the newer versions to allow the user
+ to select a date directly by entering numbers like 19990101
+ or 990101.
+ \image html kdatepicker.png "KDE Date Widget"
+ See {@link KDatePickerSignals} for signals emitted by KDatePicker
+ @author Tim Gilman, Mirko Boehm
+
+ @version $Id$
+
+ @short A date selection widget.
+
+*/
+public class KDatePicker extends QFrame {
+ protected KDatePicker(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /** The usual constructor. The given date will be displayed
+ initially.
+ @short The usual constructor.
+ */
+ public KDatePicker(QWidget parent, Calendar arg2, String name) {
+ super((Class) null);
+ newKDatePicker(parent,arg2,name);
+ }
+ private native void newKDatePicker(QWidget parent, Calendar arg2, String name);
+ public KDatePicker(QWidget parent, Calendar arg2) {
+ super((Class) null);
+ newKDatePicker(parent,arg2);
+ }
+ private native void newKDatePicker(QWidget parent, Calendar arg2);
+ public KDatePicker(QWidget parent) {
+ super((Class) null);
+ newKDatePicker(parent);
+ }
+ private native void newKDatePicker(QWidget parent);
+ public KDatePicker() {
+ super((Class) null);
+ newKDatePicker();
+ }
+ private native void newKDatePicker();
+ /** The usual constructor. The given date will be displayed
+ initially.
+ @short The usual constructor.
+ */
+ public KDatePicker(QWidget parent, Calendar arg2, String name, int f) {
+ super((Class) null);
+ newKDatePicker(parent,arg2,name,f);
+ }
+ private native void newKDatePicker(QWidget parent, Calendar arg2, String name, int f);
+ /**
+ Standard qt widget constructor. The initial date will be the
+ current date.
+ @short Standard qt widget constructor.
+ */
+ public KDatePicker(QWidget parent, String name) {
+ super((Class) null);
+ newKDatePicker(parent,name);
+ }
+ private native void newKDatePicker(QWidget parent, String name);
+ /** The size hint for date pickers. The size hint recommends the
+ minimum size of the widget so that all elements may be placed
+ without clipping. This sometimes looks ugly, so when using the
+ size hint, try adding 28 to each of the reported numbers of
+ pixels.
+ @short The size hint for date pickers.
+ */
+ public native QSize sizeHint();
+ /**
+ Sets the date.
+ @return <code>false</code> and does not change anything
+ if the date given is invalid.
+
+ @short Sets the date.
+ */
+ public native boolean setDate(Calendar arg1);
+ /**
+ @return the selected date.
+
+ @short
+ */
+ public native Calendar date();
+ /**
+ Enables or disables the widget.
+ @short Enables or disables the widget.
+ */
+ public native void setEnabled(boolean arg1);
+ /**
+ @return the KDateTable widget child of this KDatePicker
+ widget.
+
+ @short
+ */
+ public native KDateTable dateTable();
+ /**
+ Sets the font size of the widgets elements.
+ @short Sets the font size of the widgets elements.
+ */
+ public native void setFontSize(int arg1);
+ /**
+ Returns the font size of the widget elements.
+ @short Returns the font size of the widget elements.
+ */
+ public native int fontSize();
+ /**
+ By calling this method with <code>enable</code> = true, KDatePicker will show
+ a little close-button in the upper button-row. Clicking the
+ close-button will cause the KDatePicker's topLevelWidget()'s close()
+ method being called. This is mostly useful for toplevel datepickers
+ without a window manager decoration.
+ @short By calling this method with <code>enable</code> = true, KDatePicker will show a little close-button in the upper button-row.
+ @see #hasCloseButton
+ */
+ public native void setCloseButton(boolean enable);
+ /**
+ @return true if a KDatePicker shows a close-button.
+
+ @short
+ @see #setCloseButton
+ */
+ public native boolean hasCloseButton();
+ public native boolean eventFilter(QObject o, QEvent e);
+ protected native void resizeEvent(QResizeEvent arg1);
+ protected native void dateChangedSlot(Calendar arg1);
+ protected native void tableClickedSlot();
+ protected native void monthForwardClicked();
+ protected native void monthBackwardClicked();
+ protected native void yearForwardClicked();
+ protected native void yearBackwardClicked();
+ /**
+ @short
+ */
+ protected native void selectMonthClicked();
+ /**
+ @short
+ */
+ protected native void selectYearClicked();
+ /**
+ @short
+ */
+ protected native void lineEnterPressed();
+ /**
+ @short
+ */
+ protected native void todayButtonClicked();
+ /**
+ @short
+ */
+ protected native void weekSelected(int arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDatePickerSignals.java b/kdejava/koala/org/kde/koala/KDatePickerSignals.java
new file mode 100644
index 00000000..523a164b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDatePickerSignals.java
@@ -0,0 +1,41 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QSize;
+import java.util.Calendar;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+public interface KDatePickerSignals {
+ /** This signal is emitted each time the selected date is changed.
+ Usually, this does not mean that the date has been entered,
+ since the date also changes, for example, when another month is
+ selected.
+ @short This signal is emitted each time the selected date is changed.
+ @see #dateSelected
+ */
+ void dateChanged(Calendar arg1);
+ /** This signal is emitted each time a day has been selected by
+ clicking on the table (hitting a day in the current month). It
+ has the same meaning as dateSelected() in older versions of
+ KDatePicker.
+ @short This signal is emitted each time a day has been selected by clicking on the table (hitting a day in the current month).
+ */
+ void dateSelected(Calendar arg1);
+ /** This signal is emitted when enter is pressed and a VALID date
+ has been entered before into the line edit. Connect to both
+ dateEntered() and dateSelected() to receive all events where the
+ user really enters a date.
+ @short This signal is emitted when enter is pressed and a VALID date has been entered before into the line edit.
+ */
+ void dateEntered(Calendar arg1);
+ /** This signal is emitted when the day has been selected by
+ clicking on it in the table.
+ @short This signal is emitted when the day has been selected by clicking on it in the table.
+ */
+ void tableClicked();
+}
diff --git a/kdejava/koala/org/kde/koala/KDateTable.java b/kdejava/koala/org/kde/koala/KDateTable.java
new file mode 100644
index 00000000..11fc2bf0
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDateTable.java
@@ -0,0 +1,167 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import java.util.Calendar;
+import org.kde.qt.QPainter;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QWheelEvent;
+import org.kde.qt.QGridView;
+
+/**
+
+ Date selection table.
+ This is a support class for the KDatePicker class. It just
+ draws the calender table without titles, but could theoretically
+ be used as a standalone.
+ When a date is selected by the user, it emits a signal:
+ dateSelected(Calendar)
+ See {@link KDateTableSignals} for signals emitted by KDateTable
+ @author Tim Gilman, Mirko Boehm
+
+ @version $Id$
+
+ @short Date selection table.
+
+*/
+public class KDateTable extends QGridView {
+ protected KDateTable(Class dummy){super((Class) null);}
+ public static final int NoBgMode = 0;
+ public static final int RectangleMode = 1;
+ public static final int CircleMode = 2;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ The constructor.
+ @short The constructor.
+ */
+ public KDateTable(QWidget parent, Calendar date, String name, int f) {
+ super((Class) null);
+ newKDateTable(parent,date,name,f);
+ }
+ private native void newKDateTable(QWidget parent, Calendar date, String name, int f);
+ public KDateTable(QWidget parent, Calendar date, String name) {
+ super((Class) null);
+ newKDateTable(parent,date,name);
+ }
+ private native void newKDateTable(QWidget parent, Calendar date, String name);
+ public KDateTable(QWidget parent, Calendar date) {
+ super((Class) null);
+ newKDateTable(parent,date);
+ }
+ private native void newKDateTable(QWidget parent, Calendar date);
+ public KDateTable(QWidget parent) {
+ super((Class) null);
+ newKDateTable(parent);
+ }
+ private native void newKDateTable(QWidget parent);
+ public KDateTable() {
+ super((Class) null);
+ newKDateTable();
+ }
+ private native void newKDateTable();
+ /**
+ The constructor.
+ @short The constructor.
+ */
+ public KDateTable(QWidget parent, String name, int f) {
+ super((Class) null);
+ newKDateTable(parent,name,f);
+ }
+ private native void newKDateTable(QWidget parent, String name, int f);
+ public KDateTable(QWidget parent, String name) {
+ super((Class) null);
+ newKDateTable(parent,name);
+ }
+ private native void newKDateTable(QWidget parent, String name);
+ /**
+ Returns a recommended size for the widget.
+ To save some time, the size of the largest used cell content is
+ calculated in each paintCell() call, since all calculations have
+ to be done there anyway. The size is stored in maxCell. The
+ sizeHint() simply returns a multiple of maxCell.
+ @short Returns a recommended size for the widget.
+ */
+ public native QSize sizeHint();
+ /**
+ Set the font size of the date table.
+ @short Set the font size of the date table.
+ */
+ public native void setFontSize(int size);
+ /**
+ Select and display this date.
+ @short Select and display this date.
+ */
+ public native boolean setDate(Calendar arg1);
+ public native Calendar getDate();
+ /**
+ Enables a popup menu when right clicking on a date.
+ When it's enabled, this object emits a aboutToShowContextMenu signal
+ where you can fill in the menu items.
+ @short Enables a popup menu when right clicking on a date.
+ */
+ public native void setPopupMenuEnabled(boolean enable);
+ /**
+ Returns if the popup menu is enabled or not
+ @short Returns if the popup menu is enabled or not
+ */
+ public native boolean popupMenuEnabled();
+ /**
+ Makes a given date be painted with a given foregroundColor, and background
+ (a rectangle, or a circle/ellipse) in a given color.
+ @short Makes a given date be painted with a given foregroundColor, and background (a rectangle, or a circle/ellipse) in a given color.
+ */
+ public native void setCustomDatePainting(Calendar date, QColor fgColor, int bgMode, QColor bgColor);
+ public native void setCustomDatePainting(Calendar date, QColor fgColor, int bgMode);
+ public native void setCustomDatePainting(Calendar date, QColor fgColor);
+ /**
+ Unsets the custom painting of a date so that the date is painted as usual.
+ @short Unsets the custom painting of a date so that the date is painted as usual.
+ */
+ public native void unsetCustomDatePainting(Calendar date);
+ /**
+ calculate the position of the cell in the matrix for the given date. The result is the 0-based index.
+ @short calculate the position of the cell in the matrix for the given date.
+ */
+ protected native int posFromDate(Calendar date);
+ /**
+ calculate the date that is displayed at a given cell in the matrix. pos is the
+ 0-based index in the matrix. Inverse function to posForDate().
+ @short calculate the date that is displayed at a given cell in the matrix.
+ */
+ protected native Calendar dateFromPos(int pos);
+ /**
+ Paint a cell.
+ @short Paint a cell.
+ */
+ public native void paintCell(QPainter arg1, int arg2, int arg3);
+ /**
+ Handle the resize events.
+ @short Handle the resize events.
+ */
+ protected native void viewportResizeEvent(QResizeEvent arg1);
+ /**
+ React on mouse clicks that select a date.
+ @short React on mouse clicks that select a date.
+ */
+ protected native void contentsMousePressEvent(QMouseEvent arg1);
+ protected native void wheelEvent(QWheelEvent e);
+ protected native void keyPressEvent(QKeyEvent e);
+ protected native void focusInEvent(QFocusEvent e);
+ protected native void focusOutEvent(QFocusEvent e);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDateTableSignals.java b/kdejava/koala/org/kde/koala/KDateTableSignals.java
new file mode 100644
index 00000000..8aae964f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDateTableSignals.java
@@ -0,0 +1,43 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import java.util.Calendar;
+import org.kde.qt.QPainter;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QWheelEvent;
+
+public interface KDateTableSignals {
+ /**
+ The selected date changed.
+ @short The selected date changed.
+ */
+ void dateChanged(Calendar arg1);
+ /**
+ This function behaves essentially like the one above.
+ The selected date changed.
+ @param cur The current date
+ @param old The date before the date was changed
+ @short This function behaves essentially like the one above.
+ */
+ void dateChanged(Calendar cur, Calendar old);
+ /**
+ A date has been selected by clicking on the table.
+ @short A date has been selected by clicking on the table.
+ */
+ void tableClicked();
+ /**
+ A popup menu for a given date is about to be shown (as when the user
+ right clicks on that date and the popup menu is enabled). Connect
+ the slot where you fill the menu to this signal.
+ @short A popup menu for a given date is about to be shown (as when the user right clicks on that date and the popup menu is enabled).
+ */
+ void aboutToShowContextMenu(KPopupMenu menu, Calendar date);
+}
diff --git a/kdejava/koala/org/kde/koala/KDateTimeWidget.java b/kdejava/koala/org/kde/koala/KDateTimeWidget.java
new file mode 100644
index 00000000..b4669f18
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDateTimeWidget.java
@@ -0,0 +1,83 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.Calendar;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ This widget can be used to display or allow user selection of date and time.
+ \image html kdatetimewidget.png "KDE Date Time Widget"
+ See {@link KDateTimeWidgetSignals} for signals emitted by KDateTimeWidget
+ @author Hans Petter Bieker <bieker@kde.org>
+
+ @version $Id$
+
+ @short A combination of a date and a time selection widget.
+ @see KDateWidget
+
+*/
+public class KDateTimeWidget extends QWidget {
+ protected KDateTimeWidget(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a date and time selection widget.
+ @short Constructs a date and time selection widget.
+ */
+ public KDateTimeWidget(QWidget parent, String name) {
+ super((Class) null);
+ newKDateTimeWidget(parent,name);
+ }
+ private native void newKDateTimeWidget(QWidget parent, String name);
+ public KDateTimeWidget(QWidget parent) {
+ super((Class) null);
+ newKDateTimeWidget(parent);
+ }
+ private native void newKDateTimeWidget(QWidget parent);
+ public KDateTimeWidget() {
+ super((Class) null);
+ newKDateTimeWidget();
+ }
+ private native void newKDateTimeWidget();
+ /**
+ Constructs a date and time selection widget with the initial date and
+ time set to <code>datetime.</code>
+ @short Constructs a date and time selection widget with the initial date and time set to <code>datetime.</code>
+ */
+ public KDateTimeWidget(Calendar datetime, QWidget parent, String name) {
+ super((Class) null);
+ newKDateTimeWidget(datetime,parent,name);
+ }
+ private native void newKDateTimeWidget(Calendar datetime, QWidget parent, String name);
+ public KDateTimeWidget(Calendar datetime, QWidget parent) {
+ super((Class) null);
+ newKDateTimeWidget(datetime,parent);
+ }
+ private native void newKDateTimeWidget(Calendar datetime, QWidget parent);
+ public KDateTimeWidget(Calendar datetime) {
+ super((Class) null);
+ newKDateTimeWidget(datetime);
+ }
+ private native void newKDateTimeWidget(Calendar datetime);
+ /**
+ Returns the currently selected date and time.
+ @short Returns the currently selected date and time.
+ */
+ public native Calendar dateTime();
+ /**
+ Changes the selected date and time to <code>datetime.</code>
+ @short Changes the selected date and time to <code>datetime.</code>
+ */
+ public native void setDateTime(Calendar datetime);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDateTimeWidgetSignals.java b/kdejava/koala/org/kde/koala/KDateTimeWidgetSignals.java
new file mode 100644
index 00000000..26939306
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDateTimeWidgetSignals.java
@@ -0,0 +1,16 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.Calendar;
+import org.kde.qt.QWidget;
+
+public interface KDateTimeWidgetSignals {
+ /**
+ Emitted whenever the date or time of the widget
+ is changed, either with setDateTime() or via user selection.
+ @short Emitted whenever the date or time of the widget is changed, either with setDateTime() or via user selection.
+ */
+ void valueChanged(Calendar datetime);
+}
diff --git a/kdejava/koala/org/kde/koala/KDateValidator.java b/kdejava/koala/org/kde/koala/KDateValidator.java
new file mode 100644
index 00000000..0dc471c5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDateValidator.java
@@ -0,0 +1,42 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.Calendar;
+import org.kde.qt.QWidget;
+import org.kde.qt.QValidator;
+
+/**
+
+ Validates user-entered dates.
+ @short Validates user-entered dates.
+
+*/
+public class KDateValidator extends QValidator {
+ protected KDateValidator(Class dummy){super((Class) null);}
+ public KDateValidator(QWidget parent, String name) {
+ super((Class) null);
+ newKDateValidator(parent,name);
+ }
+ private native void newKDateValidator(QWidget parent, String name);
+ public KDateValidator(QWidget parent) {
+ super((Class) null);
+ newKDateValidator(parent);
+ }
+ private native void newKDateValidator(QWidget parent);
+ public KDateValidator() {
+ super((Class) null);
+ newKDateValidator();
+ }
+ private native void newKDateValidator();
+ public native int validate(StringBuffer arg1, int[] arg2);
+ public native void fixup(StringBuffer input);
+ public native int date(String arg1, Calendar arg2);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDateWidget.java b/kdejava/koala/org/kde/koala/KDateWidget.java
new file mode 100644
index 00000000..83efdfd3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDateWidget.java
@@ -0,0 +1,82 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.Calendar;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ This widget can be used to display or allow user selection of a date.
+ See {@link KDateWidgetSignals} for signals emitted by KDateWidget
+ @version $Id$
+
+ @short A pushbutton to display or allow user selection of a date.
+ @see KDatePicker
+
+*/
+public class KDateWidget extends QWidget {
+ protected KDateWidget(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a date selection widget.
+ @short Constructs a date selection widget.
+ */
+ public KDateWidget(QWidget parent, String name) {
+ super((Class) null);
+ newKDateWidget(parent,name);
+ }
+ private native void newKDateWidget(QWidget parent, String name);
+ public KDateWidget(QWidget parent) {
+ super((Class) null);
+ newKDateWidget(parent);
+ }
+ private native void newKDateWidget(QWidget parent);
+ public KDateWidget() {
+ super((Class) null);
+ newKDateWidget();
+ }
+ private native void newKDateWidget();
+ /**
+ Constructs a date selection widget with the initial date set to <code>date.</code>
+ @short Constructs a date selection widget with the initial date set to <code>date.</code>
+ */
+ public KDateWidget(Calendar date, QWidget parent, String name) {
+ super((Class) null);
+ newKDateWidget(date,parent,name);
+ }
+ private native void newKDateWidget(Calendar date, QWidget parent, String name);
+ public KDateWidget(Calendar date, QWidget parent) {
+ super((Class) null);
+ newKDateWidget(date,parent);
+ }
+ private native void newKDateWidget(Calendar date, QWidget parent);
+ public KDateWidget(Calendar date) {
+ super((Class) null);
+ newKDateWidget(date);
+ }
+ private native void newKDateWidget(Calendar date);
+ /**
+ Returns the currently selected date.
+ @short Returns the currently selected date.
+ */
+ public native Calendar date();
+ /**
+ Changes the selected date to <code>date.</code>
+ @short Changes the selected date to <code>date.</code>
+ */
+ public native void setDate(Calendar date);
+ protected native void init();
+ protected native void init(Calendar arg1);
+ protected native void slotDateChanged();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDateWidgetSignals.java b/kdejava/koala/org/kde/koala/KDateWidgetSignals.java
new file mode 100644
index 00000000..4cc6d41d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDateWidgetSignals.java
@@ -0,0 +1,16 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.Calendar;
+import org.kde.qt.QWidget;
+
+public interface KDateWidgetSignals {
+ /**
+ Emitted whenever the date of the widget
+ is changed, either with setDate() or via user selection.
+ @short Emitted whenever the date of the widget is changed, either with setDate() or via user selection.
+ */
+ void changed(Calendar arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KDesktopFile.java b/kdejava/koala/org/kde/koala/KDesktopFile.java
new file mode 100644
index 00000000..7ca43df7
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDesktopFile.java
@@ -0,0 +1,237 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ KDE Desktop File Management.
+ @author Pietro Iglio <iglio@kde.org>
+
+ @short KDE Desktop File Management class.
+ @see KConfigBase
+ @see KConfig
+
+*/
+public class KDesktopFile extends KConfig {
+ protected KDesktopFile(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KDesktopFile object and make it either read-write
+ or read-only.
+ @param fileName The name or path of the desktop file. If it
+ is not absolute, it will be located
+ using the resource type <code>resType.</code>
+ @param readOnly Whether the object should be read-only.
+ @param resType Allows you to change what sort of resource
+ to search for if <code>fileName</code> is not absolute. For
+ instance, you might want to specify "config".
+ @short Constructs a KDesktopFile object and make it either read-write or read-only.
+ */
+ public KDesktopFile(String fileName, boolean readOnly, String resType) {
+ super((Class) null);
+ newKDesktopFile(fileName,readOnly,resType);
+ }
+ private native void newKDesktopFile(String fileName, boolean readOnly, String resType);
+ public KDesktopFile(String fileName, boolean readOnly) {
+ super((Class) null);
+ newKDesktopFile(fileName,readOnly);
+ }
+ private native void newKDesktopFile(String fileName, boolean readOnly);
+ public KDesktopFile(String fileName) {
+ super((Class) null);
+ newKDesktopFile(fileName);
+ }
+ private native void newKDesktopFile(String fileName);
+ /**
+ Returns the value of the "Type=" entry.
+ @return the type or null if not specified
+
+ @short Returns the value of the "Type=" entry.
+ */
+ public native String readType();
+ /**
+ Returns the value of the "Icon=" entry.
+ @return the icon or null if not specified
+
+ @short Returns the value of the "Icon=" entry.
+ */
+ public native String readIcon();
+ /**
+ Returns the value of the "Name=" entry.
+ @return the name or null if not specified
+
+ @short Returns the value of the "Name=" entry.
+ */
+ public native String readName();
+ /**
+ Returns the value of the "Comment=" entry.
+ @return the comment or null if not specified
+
+ @short Returns the value of the "Comment=" entry.
+ */
+ public native String readComment();
+ /**
+ Returns the value of the "GenericName=" entry.
+ @return the generic name or null if not specified
+
+ @short Returns the value of the "GenericName=" entry.
+ */
+ public native String readGenericName();
+ /**
+ Returns the value of the "Path=" entry.
+ @return the path or null if not specified
+
+ @short Returns the value of the "Path=" entry.
+ */
+ public native String readPath();
+ /**
+ Returns the value of the "Dev=" entry.
+ @return the device or null if not specified
+
+ @short Returns the value of the "Dev=" entry.
+ */
+ public native String readDevice();
+ /**
+ Returns the value of the "URL=" entry.
+ @return the URL or null if not specified
+
+ @short Returns the value of the "URL=" entry.
+ */
+ public native String readURL();
+ /**
+ Returns a list of the "Actions=" entries.
+ @return the list of actions
+
+ @short Returns a list of the "Actions=" entries.
+ */
+ public native ArrayList readActions();
+ /**
+ Sets the desktop action group.
+ @param group the new action group
+ @short Sets the desktop action group.
+ */
+ public native void setActionGroup(String group);
+ /**
+ Returns true if the action group exists, false otherwise
+ @param group the action group to test
+ @return true if the action group exists
+
+ @short Returns true if the action group exists, false otherwise
+ */
+ public native boolean hasActionGroup(String group);
+ /**
+ Checks whether there is a "Type=Link" entry.
+ The link points to the "URL=" entry.
+ @return true if there is a "Type=Link" entry
+
+ @short Checks whether there is a "Type=Link" entry.
+ */
+ public native boolean hasLinkType();
+ /**
+ Checks whether there is an entry "Type=Application".
+ @return true if there is a "Type=Application" entry
+
+ @short Checks whether there is an entry "Type=Application".
+ */
+ public native boolean hasApplicationType();
+ /**
+ Checks whether there is an entry "Type=MimeType".
+ @return true if there is a "Type=MimeType" entry
+
+ @short Checks whether there is an entry "Type=MimeType".
+ */
+ public native boolean hasMimeTypeType();
+ /**
+ Checks whether there is an entry "Type=FSDev".
+ @return true if there is a "Type=FSDev" entry
+
+ @short Checks whether there is an entry "Type=FSDev".
+ */
+ public native boolean hasDeviceType();
+ /**
+ Checks whether the TryExec field contains a binary
+ which is found on the local system.
+ @return true if TryExec contains an existing binary
+
+ @short Checks whether the TryExec field contains a binary which is found on the local system.
+ */
+ public native boolean tryExec();
+ /**
+ Returns the file name.
+ @return The filename as passed to the constructor.
+
+ @short Returns the file name.
+ */
+ public native String fileName();
+ /**
+ Returns the resource.
+ @return The resource type as passed to the constructor.
+
+ @short Returns the resource.
+ */
+ public native String resource();
+ /**
+ Returns the value of the "X-DocPath=" Or "DocPath=" entry.
+ X-DocPath should be used and DocPath is depreciated and will
+ one day be not supported.
+ @return The value of the "X-DocPath=" Or "DocPath=" entry.
+
+ @short Returns the value of the "X-DocPath=" Or "DocPath=" entry.
+ */
+ public native String readDocPath();
+ /**
+ Returns the entry of the "SortOrder=" entry.
+ @return the value of the "SortOrder=" entry.
+
+ @short Returns the entry of the "SortOrder=" entry.
+ */
+ public native ArrayList sortOrder();
+ /**
+ Copies all entries from this config object to a new
+ KDesktopFile object that will save itself to <code>file.</code>
+ Actual saving to <code>file</code> happens when the returned object is
+ destructed or when sync() is called upon it.
+ @param file the new KDesktopFile object it will save itself to.
+ @short Copies all entries from this config object to a new KDesktopFile object that will save itself to <code>file.</code>
+ */
+ public native KConfig copyTo(String file);
+ /**
+ Checks whether this is really a desktop file.
+ The check is performed looking at the file extension (the file is not
+ opened).
+ Currently, valid extensions are ".kdelnk" and ".desktop".
+ @param path the path of the file to check
+ @return true if the file appears to be a desktop file.
+
+ @short Checks whether this is really a desktop file.
+ */
+ public static native boolean isDesktopFile(String path);
+ /**
+ Checks whether the user is authorized to run this desktop file.
+ By default users are authorized to run all desktop files but
+ the KIOSK framework can be used to activate certain restrictions.
+ See README.kiosk for more information.
+ @param path the file to check
+ @return true if the user is authorized to run the file
+
+ @short Checks whether the user is authorized to run this desktop file.
+ */
+ public static native boolean isAuthorizedDesktopFile(String path);
+ /**
+ Returns the location where changes for the .desktop file <code>path</code>
+ should be written to.
+ @short Returns the location where changes for the .
+ */
+ public static native String locateLocal(String path);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDialog.java b/kdejava/koala/org/kde/koala/KDialog.java
new file mode 100644
index 00000000..a7985804
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDialog.java
@@ -0,0 +1,154 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QLayoutItem;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QLayoutItemInterface;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDialog;
+
+/**
+
+ Dialog with extended non-modal support and methods for %KDE standard
+ compliance.
+ Generally, you should not use this class directly, but KDialogBase
+ which inherits KDialog.
+ If the dialog is non-modal and has a parent, the default keybindings
+ (<code>escape</code> = <code>reject</code>(), <code>enter</code> = <code>accept</code>(), etc.) are disabled.
+ The marginHint() and spacingHint() sizes shall be used
+ whenever you layout the interior of a dialog. One special note. If
+ you make your own action buttons (OK, Cancel etc), the space
+ beteween the buttons shall be spacingHint(), whereas the space
+ above, below, to the right and to the left shall be marginHint().
+ If you add a separator line above the buttons, there shall be a
+ marginHint() between the buttons and the separator and a
+ marginHint() above the separator as well.
+ See {@link KDialogSignals} for signals emitted by KDialog
+ @author Thomas Tanghus <tanghus@earthling.net>, Espen Sand <espensa@online.no>
+
+ @short Dialog with extended non-modal support and methods for %KDE standard compliance.
+ @see KDialogBase
+
+*/
+public class KDialog extends QDialog {
+ protected KDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor.
+ Takes the same arguments as QDialog.
+ @short Constructor.
+ */
+ public KDialog(QWidget parent, String name, boolean modal, int f) {
+ super((Class) null);
+ newKDialog(parent,name,modal,f);
+ }
+ private native void newKDialog(QWidget parent, String name, boolean modal, int f);
+ public KDialog(QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKDialog(parent,name,modal);
+ }
+ private native void newKDialog(QWidget parent, String name, boolean modal);
+ public KDialog(QWidget parent, String name) {
+ super((Class) null);
+ newKDialog(parent,name);
+ }
+ private native void newKDialog(QWidget parent, String name);
+ public KDialog(QWidget parent) {
+ super((Class) null);
+ newKDialog(parent);
+ }
+ private native void newKDialog(QWidget parent);
+ public KDialog() {
+ super((Class) null);
+ newKDialog();
+ }
+ private native void newKDialog();
+ /**
+ If the dialog starts with focus in a QLineEdit child,
+ then call selectAll() on the child.
+ @short If the dialog starts with focus in a QLineEdit child, then call selectAll() on the child.
+ */
+ public native void polish();
+ /**
+ Make a KDE compliant caption.
+ @param caption Your caption. Do <code>not</code> include the application name
+ in this string. It will be added automatically according to the KDE
+ standard.
+ @short Make a KDE compliant caption.
+ */
+ public native void setCaption(String caption);
+ /**
+ Make a plain caption without any modifications.
+ @param caption Your caption. This is the string that will be
+ displayed in the window title.
+ @short Make a plain caption without any modifications.
+ */
+ public native void setPlainCaption(String caption);
+ /**
+ Return the number of pixels you shall use between a
+ dialog edge and the outermost widget(s) according to the KDE standard.
+ @short Return the number of pixels you shall use between a dialog edge and the outermost widget(s) according to the KDE standard.
+ */
+ public static native int marginHint();
+ /**
+ Return the number of pixels you shall use between
+ widgets inside a dialog according to the KDE standard.
+ @short Return the number of pixels you shall use between widgets inside a dialog according to the KDE standard.
+ */
+ public static native int spacingHint();
+ /**
+ Resize every layout manager used in <code>widget</code> and its nested children.
+ @param widget The widget used.
+ @param margin The new layout margin.
+ @param spacing The new layout spacing.
+ @short Resize every layout manager used in <code>widget</code> and its nested children.
+ */
+ public static native void resizeLayout(QWidget widget, int margin, int spacing);
+ /**
+ Resize every layout associated with <code>lay</code> and its children.
+ @param lay layout to be resized
+ @param margin The new layout margin
+ @param spacing The new layout spacing
+ @short Resize every layout associated with <code>lay</code> and its children.
+ */
+ public static native void resizeLayout(QLayoutItemInterface lay, int margin, int spacing);
+ /**
+ Centers <code>widget</code> on the desktop, taking multi-head setups into
+ account. If <code>screen</code> is -1, <code>widget</code> will be centered on its
+ current screen (if it was shown already) or on the primary screen.
+ If <code>screen</code> is -3, <code>widget</code> will be centered on the screen that
+ currently contains the mouse pointer.
+ <code>screen</code> will be ignored if a merged display (like Xinerama) is not
+ in use, or merged display placement is not enabled in kdeglobals.
+ @short Centers <code>widget</code> on the desktop, taking multi-head setups into account.
+ */
+ public static native void centerOnScreen(QWidget widget, int screen);
+ public static native void centerOnScreen(QWidget widget);
+ /**
+ Places <code>widget</code> so that it doesn't cover a certain <code>area</code> of the screen.
+ This is typically used by the "find dialog" so that the match it finds can
+ be read.
+ For <code>screen</code>, see centerOnScreen
+ @return true on success (widget doesn't cover area anymore, or never did),
+ false on failure (not enough space found)
+
+ @short Places <code>widget</code> so that it doesn't cover a certain <code>area</code> of the screen.
+ */
+ public static native boolean avoidArea(QWidget widget, QRect area, int screen);
+ public static native boolean avoidArea(QWidget widget, QRect area);
+ /**
+ @short
+ */
+ protected native void keyPressEvent(QKeyEvent arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDialogBase.java b/kdejava/koala/org/kde/koala/KDialogBase.java
new file mode 100644
index 00000000..83dee0dd
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDialogBase.java
@@ -0,0 +1,1338 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QHideEvent;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QCloseEvent;
+import org.kde.qt.QObject;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSize;
+import org.kde.qt.QGrid;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QPushButton;
+import org.kde.qt.QWidget;
+import org.kde.qt.QVBox;
+import org.kde.qt.QFrame;
+import org.kde.qt.QHBox;
+
+/**
+
+ Provides basic functionality needed by nearly all dialogs.
+ It offers the standard action buttons you'd expect to find in a
+ dialog as well as the capability to define at most three configurable
+ buttons. You can define a main widget that contains your specific
+ dialog layout or you can use a predefined layout. Currently, <code>TreeList</code>/Paged, <code>Tabbed</code>, <code>Plain</code>, <code>Swallow</code> and <code>IconList</code>
+ mode layouts (faces) are available.
+ The class takes care of the geometry management. You only need to define
+ a minimum size for the widget you want to use as the main widget.
+ You can set a background tile (pixmap) for parts of the dialog. The
+ tile you select is shared by all instances of this class in your
+ application so that they all get the same look and feel.
+ There is a tutorial available on http://developer.kde.org/ (NOT YET)
+ that contains
+ copy/paste examples as well a screenshots on how to use this class.
+ <li><b>Standard buttons (action buttons):</b></li>
+ You select which buttons should be displayed, but you do not choose the
+ order in which they are displayed. This ensures a standard interface in
+ KDE. The button order can be changed, but this ability is only available
+ for a central KDE control tool. The following buttons are available:
+ OK, Cancel/Close, Apply/Try, Default, Help and three user definable
+ buttons: User1, User2 and User3. You must specify the text of the UserN
+ buttons. Each button has a slot so you can overload the method
+ when required. The default slots emit a signal as well, so you can choose
+ to connect a signal instead of overriding the slot.
+ The default implementation of slotHelp() will automatically enable
+ the help system if you have provided a path to the help text.
+ slotCancel() and slotClose() will run QDialog.reject()
+ while slotOk() will run QDialog.accept(). You define a default
+ button in the constructor.
+ If you don't want any buttons at all because your dialog is special
+ in some way, then set the buttonMask argument in the constructor to zero
+ (0). The optional button box separator line should not be enabled
+ in this case. Note that the KDialogBase will animate a button press
+ when the user press Escape. The button that is enabled is either Cancel,
+ Close or the button that is defined by setEscapeButton() The
+ animation will not take place when the buttonMask is zero. Your
+ custom dialog code should reimplement the keyPressEvent and
+ animate the cancel button so that the dialog behaves like regular
+ dialogs. NOTE: None of the regular slots (like slotOk() ) or
+ signals that are related to the standard action buttons will be used
+ when you don't use these buttons.
+ <li><b>Dialog shapes:</b></li>
+ You can either use one of the prebuilt, easy to use, faces or
+ define your own main widget. The dialog provides ready to use
+ TreeList, Tabbed, Plain, Swallow and IconList faces. KDialogBase uses
+ the KJanusWidget class internally to accomplish this. If you
+ use TreeList, Tabbed or IconList mode, then add pages with addPage().
+ Pages that have been added can be removed again by simply deleting
+ the page.
+ If you want complete control of how the dialog contents should look,
+ then you can define a main widget by using setMainWidget(). You
+ only need to set the minimum size of that widget and the dialog will
+ resize itself to fit this minimum size. The dialog is resizeable, but
+ cannot be made smaller than its minimum size.
+ <li><b>Layout:</b></li>
+ The dialog consists of a help area on top (becomes visible if you define
+ a help path and use enableLinkedHelp()), the main area which is
+ the built-in dialog face or your own widget in the middle and by default
+ a button box at the bottom. The button box can also be placed at the
+ right edge (to the right of the main widget). Use
+ setButtonBoxOrientation() to control this behavior. A separator
+ can be placed above the button box (or to the left when the button box
+ is at the right edge). Normally you specify that you want a separator
+ in the constructor, but you can use enableButtonSeparator() as well.
+ <li><b>Standard compliance:</b></li>
+ The class is derived from KDialog, so you get automatic access to
+ the KDialog.marginHint(), KDialog.spacingHint() and the
+ extended KDialog.setCaption() method. NOTE: The main widget you
+ use will be positioned inside the dialog using a margin (or border)
+ equal to KDialog.marginHint(). You should not add a margin yourself,
+ since one will be added automatically.
+ The example below (from kedit) shows how you use the top level widget
+ and its layout. The second argument (the border) to QVBoxLayout
+ is 0. This situation is valid for addPage , addVBoxPage ,
+ addHBoxPage , addGridPage , makeMainWidget ,
+ makeVBoxMainWidget , makeHBoxMainWidget and
+ makeGridMainWidget as well.
+ Example:
+ <pre>
+ UrlDlg.UrlDlg( QWidget parent, String caption,
+ String urltext)
+ {
+ QWidget page = new QWidget( this );
+ setMainWidget(page);
+ QVBoxLayout topLayout = new QVBoxLayout( page, 0, spacingHint() );
+ QLabel label = new QLabel( caption, page, "caption" );
+ topLayout.addWidget( label );
+ lineedit = new QLineEdit( urltext, page, "lineedit" );
+ lineedit.setMinimumWidth(fontMetrics().maxWidth()*20);
+ topLayout.addWidget( lineedit );
+ topLayout.addStretch(10);
+ }
+ </pre>
+ If you use makeVBoxMainWidget(), then the dialog above can be made
+ simpler but you lose the ability to add a stretchable area:
+ <pre>
+ UrlDlg.UrlDlg( QWidget parent, String caption,
+ String urltext)
+ {
+ QVBox page = makeVBoxMainWidget();
+ QLabel label = new QLabel( caption, page, "caption" );
+ lineedit = new QLineEdit( urltext, page, "lineedit" );
+ lineedit.setMinimumWidth(fontMetrics().maxWidth()*20);
+ }
+ </pre>
+ This class can be used in many ways. Note that most KDE ui widgets
+ and many of KDE core applications use the KDialogBase so for more
+ inspiration you should study the code for these.
+ See {@link KDialogBaseSignals} for signals emitted by KDialogBase
+ @author Mirko Boehm (mirko@kde.org) and Espen Sand (espen@kde.org)
+
+ @short A dialog base class with standard buttons and predefined layouts.
+
+*/
+public class KDialogBase extends KDialog {
+ protected KDialogBase(Class dummy){super((Class) null);}
+ public static final int Help = 0x00000001;
+ public static final int Default = 0x00000002;
+ public static final int Ok = 0x00000004;
+ public static final int Apply = 0x00000008;
+ public static final int Try = 0x00000010;
+ public static final int Cancel = 0x00000020;
+ public static final int Close = 0x00000040;
+ public static final int User1 = 0x00000080;
+ public static final int User2 = 0x00000100;
+ public static final int User3 = 0x00000200;
+ public static final int No = 0x00000080;
+ public static final int Yes = 0x00000100;
+ public static final int Details = 0x00000400;
+ public static final int Filler = 0x40000000;
+ public static final int Stretch = 0x80000000;
+ public static final int NoDefault = 0;
+
+ public static final int ActionStyle0 = 0;
+ public static final int ActionStyle1 = 1;
+ public static final int ActionStyle2 = 2;
+ public static final int ActionStyle3 = 3;
+ public static final int ActionStyle4 = 4;
+ public static final int ActionStyleMAX = 5;
+
+ /**
+
+ <li>
+ <code>TreeList</code> - A dialog with a tree on the left side and a
+ representation of the contents on the right side.
+ </li>
+
+ <li>
+ <code>Tabbed</code> - A dialog using a QTabWidget.
+ </li>
+
+ <li>
+ <code>Plain</code> - A normal dialog. Use plainPage() as parent for widgets.
+ </li>
+
+ <li>
+ <code>Swallow</code> - Simplifes the usage of existing widgets. You specify
+ the widget to be displayed by setMainWidget().
+ </li>
+
+ <li>
+ <code>IconList</code> - A dialog with an iconlist on the left side and a
+ representation of the contents on the right side.
+
+ </li> @short
+ */
+ public static final int TreeList = KJanusWidget.TreeList;
+ public static final int Tabbed = KJanusWidget.Tabbed;
+ public static final int Plain = KJanusWidget.Plain;
+ public static final int Swallow = KJanusWidget.Swallow;
+ public static final int IconList = KJanusWidget.IconList;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor for the standard mode where you must specify the main
+ widget with setMainWidget() .
+ @param parent Parent of the dialog.
+ @param name Dialog name (for internal use only)
+ @param modal Controls dialog modality. If <code>false</code>, the rest of the
+ program interface (example: other dialogs) is accessible while
+ the dialog is open.
+ @param caption The dialog caption. Do not specify the application name
+ here. The class will take care of that.
+ @param buttonMask Specifies which buttons will be visible. If zero
+ (0) no button box will be made.
+ @param defaultButton Specifies which button will be marked as
+ the default. Use ButtonCode.NoDefault to indicate that no button
+ should be marked as the default button.
+ @param separator If <code>true</code>, a separator line is drawn between the
+ action buttons and the main widget.
+ @param user1 User button1 item.
+ @param user2 User button2 item.
+ @param user3 User button3 item.
+ @short Constructor for the standard mode where you must specify the main widget with setMainWidget() .
+ */
+ public KDialogBase(QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2, KGuiItem user3) {
+ super((Class) null);
+ newKDialogBase(parent,name,modal,caption,buttonMask,defaultButton,separator,user1,user2,user3);
+ }
+ private native void newKDialogBase(QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2, KGuiItem user3);
+ public KDialogBase(QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2) {
+ super((Class) null);
+ newKDialogBase(parent,name,modal,caption,buttonMask,defaultButton,separator,user1,user2);
+ }
+ private native void newKDialogBase(QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2);
+ public KDialogBase(QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1) {
+ super((Class) null);
+ newKDialogBase(parent,name,modal,caption,buttonMask,defaultButton,separator,user1);
+ }
+ private native void newKDialogBase(QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1);
+ public KDialogBase(QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator) {
+ super((Class) null);
+ newKDialogBase(parent,name,modal,caption,buttonMask,defaultButton,separator);
+ }
+ private native void newKDialogBase(QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator);
+ public KDialogBase(QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton) {
+ super((Class) null);
+ newKDialogBase(parent,name,modal,caption,buttonMask,defaultButton);
+ }
+ private native void newKDialogBase(QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton);
+ public KDialogBase(QWidget parent, String name, boolean modal, String caption, int buttonMask) {
+ super((Class) null);
+ newKDialogBase(parent,name,modal,caption,buttonMask);
+ }
+ private native void newKDialogBase(QWidget parent, String name, boolean modal, String caption, int buttonMask);
+ public KDialogBase(QWidget parent, String name, boolean modal, String caption) {
+ super((Class) null);
+ newKDialogBase(parent,name,modal,caption);
+ }
+ private native void newKDialogBase(QWidget parent, String name, boolean modal, String caption);
+ public KDialogBase(QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKDialogBase(parent,name,modal);
+ }
+ private native void newKDialogBase(QWidget parent, String name, boolean modal);
+ public KDialogBase(QWidget parent, String name) {
+ super((Class) null);
+ newKDialogBase(parent,name);
+ }
+ private native void newKDialogBase(QWidget parent, String name);
+ public KDialogBase(QWidget parent) {
+ super((Class) null);
+ newKDialogBase(parent);
+ }
+ private native void newKDialogBase(QWidget parent);
+ public KDialogBase() {
+ super((Class) null);
+ newKDialogBase();
+ }
+ private native void newKDialogBase();
+ /**
+ In KDE4 a WFlag paramater should be added after modal and next
+ function can be removed.
+ Constructor for the predefined layout mode where you specify the
+ kind of layout (face).
+ @param dialogFace You can use TreeList, Tabbed, Plain, Swallow or
+ IconList.
+ @param caption The dialog caption. Do not specify the application name
+ here. The class will take care of that.
+ @param buttonMask Specifies which buttons will be visible. If zero
+ (0) no button box will be made.
+ @param defaultButton Specifies which button will be marked as
+ the default. Use ButtonCode.NoDefault to indicate that no button
+ should be marked as the default button.
+ @param parent Parent of the dialog.
+ @param name Dialog name (for internal use only).
+ @param modal Controls dialog modality. If <code>false</code>, the rest of the
+ program interface (example: other dialogs) is accessible while
+ the dialog is open.
+ @param separator If <code>true</code>, a separator line is drawn between the
+ action buttons and the main widget.
+ @param user1 User button1 text item.
+ @param user2 User button2 text item.
+ @param user3 User button3 text item.
+ @short In KDE4 a WFlag paramater should be added after modal and next function can be removed.
+ */
+ public KDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator, KGuiItem user1, KGuiItem user2, KGuiItem user3) {
+ super((Class) null);
+ newKDialogBase(dialogFace,caption,buttonMask,defaultButton,parent,name,modal,separator,user1,user2,user3);
+ }
+ private native void newKDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator, KGuiItem user1, KGuiItem user2, KGuiItem user3);
+ public KDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator, KGuiItem user1, KGuiItem user2) {
+ super((Class) null);
+ newKDialogBase(dialogFace,caption,buttonMask,defaultButton,parent,name,modal,separator,user1,user2);
+ }
+ private native void newKDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator, KGuiItem user1, KGuiItem user2);
+ public KDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator, KGuiItem user1) {
+ super((Class) null);
+ newKDialogBase(dialogFace,caption,buttonMask,defaultButton,parent,name,modal,separator,user1);
+ }
+ private native void newKDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator, KGuiItem user1);
+ public KDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator) {
+ super((Class) null);
+ newKDialogBase(dialogFace,caption,buttonMask,defaultButton,parent,name,modal,separator);
+ }
+ private native void newKDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal, boolean separator);
+ public KDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKDialogBase(dialogFace,caption,buttonMask,defaultButton,parent,name,modal);
+ }
+ private native void newKDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, QWidget parent, String name, boolean modal);
+ public KDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, QWidget parent, String name) {
+ super((Class) null);
+ newKDialogBase(dialogFace,caption,buttonMask,defaultButton,parent,name);
+ }
+ private native void newKDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, QWidget parent, String name);
+ public KDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, QWidget parent) {
+ super((Class) null);
+ newKDialogBase(dialogFace,caption,buttonMask,defaultButton,parent);
+ }
+ private native void newKDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, QWidget parent);
+ public KDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton) {
+ super((Class) null);
+ newKDialogBase(dialogFace,caption,buttonMask,defaultButton);
+ }
+ private native void newKDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton);
+ /**
+ Constructor for the predefined layout mode where you specify the
+ kind of layout (face).
+ @param dialogFace You can use TreeList, Tabbed, Plain, Swallow or
+ IconList.
+ @param f widget flags, by default it is just set to WStyle_DialogBorder.
+ @param caption The dialog caption. Do not specify the application name
+ here. The class will take care of that.
+ @param parent Parent of the dialog.
+ @param name Dialog name (for internal use only).
+ @param modal Controls dialog modality. If <code>false</code>, the rest of the
+ program interface (example: other dialogs) is accessible while
+ the dialog is open.
+ @param buttonMask Specifies which buttons will be visible. If zero
+ (0) no button box will be made.
+ @param defaultButton Specifies which button will be marked as
+ the default. Use ButtonCode.NoDefault to indicate that no button
+ should be marked as the default button.
+ @param separator If <code>true</code>, a separator line is drawn between the
+ action buttons and the main widget.
+ @param user1 User button1 text item.
+ @param user2 User button2 text item.
+ @param user3 User button3 text item.
+ @short Constructor for the predefined layout mode where you specify the kind of layout (face).
+ */
+ public KDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2, KGuiItem user3) {
+ super((Class) null);
+ newKDialogBase(dialogFace,f,parent,name,modal,caption,buttonMask,defaultButton,separator,user1,user2,user3);
+ }
+ private native void newKDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2, KGuiItem user3);
+ public KDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2) {
+ super((Class) null);
+ newKDialogBase(dialogFace,f,parent,name,modal,caption,buttonMask,defaultButton,separator,user1,user2);
+ }
+ private native void newKDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2);
+ public KDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1) {
+ super((Class) null);
+ newKDialogBase(dialogFace,f,parent,name,modal,caption,buttonMask,defaultButton,separator,user1);
+ }
+ private native void newKDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1);
+ public KDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator) {
+ super((Class) null);
+ newKDialogBase(dialogFace,f,parent,name,modal,caption,buttonMask,defaultButton,separator);
+ }
+ private native void newKDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator);
+ public KDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton) {
+ super((Class) null);
+ newKDialogBase(dialogFace,f,parent,name,modal,caption,buttonMask,defaultButton);
+ }
+ private native void newKDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton);
+ public KDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal, String caption, int buttonMask) {
+ super((Class) null);
+ newKDialogBase(dialogFace,f,parent,name,modal,caption,buttonMask);
+ }
+ private native void newKDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal, String caption, int buttonMask);
+ public KDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal, String caption) {
+ super((Class) null);
+ newKDialogBase(dialogFace,f,parent,name,modal,caption);
+ }
+ private native void newKDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal, String caption);
+ public KDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKDialogBase(dialogFace,f,parent,name,modal);
+ }
+ private native void newKDialogBase(int dialogFace, int f, QWidget parent, String name, boolean modal);
+ public KDialogBase(int dialogFace, int f, QWidget parent, String name) {
+ super((Class) null);
+ newKDialogBase(dialogFace,f,parent,name);
+ }
+ private native void newKDialogBase(int dialogFace, int f, QWidget parent, String name);
+ public KDialogBase(int dialogFace, int f, QWidget parent) {
+ super((Class) null);
+ newKDialogBase(dialogFace,f,parent);
+ }
+ private native void newKDialogBase(int dialogFace, int f, QWidget parent);
+ public KDialogBase(int dialogFace, int f) {
+ super((Class) null);
+ newKDialogBase(dialogFace,f);
+ }
+ private native void newKDialogBase(int dialogFace, int f);
+ /**
+ Constructor for a message box mode where the <code>buttonMask</code> can only
+ contain Yes, No, or Cancel.
+ If you need other names you can rename
+ the buttons with setButtonText(). The dialog box is not resizable
+ by default but this can be changed by setInitialSize(). If you
+ select 'modal' to be true, the dialog will return Yes, No, or Cancel
+ when closed otherwise you can use the signals yesClicked(),
+ noClicked(), or cancelClicked() to determine the state.
+ @param caption The dialog caption. Do not specify the application name
+ here. The class will take care of that.
+ @param buttonMask Specifies which buttons will be visible. If zero
+ (0) no button box will be made.
+ @param defaultButton Specifies which button will be marked as
+ the default. Use ButtonCode.NoDefault to indicate that no button
+ should be marked as the default button.
+ @param escapeButton Specifies which button will be activated by
+ when the dialog receives a <code>Key_Escape</code> keypress.
+ @param parent Parent of the dialog.
+ @param name Dialog name (for internal use only).
+ @param modal Controls dialog modality. If <code>false</code>, the rest of the
+ program interface (example: other dialogs) is accessible
+ while the dialog is open.
+ @param separator If <code>true</code>, a separator line is drawn between the
+ action buttons and the main widget.
+ @param yes Text to use for the first button (defaults to i18n("Yes"))
+ @param no Text to use for the second button (defaults to i18n("No"))
+ @param cancel Text to use for the third button (defaults to i18n("Cancel"))
+ @short Constructor for a message box mode where the <code>buttonMask</code> can only contain Yes, No, or Cancel.
+ */
+ public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, QWidget parent, String name, boolean modal, boolean separator, KGuiItem yes, KGuiItem no, KGuiItem cancel) {
+ super((Class) null);
+ newKDialogBase(caption,buttonMask,defaultButton,escapeButton,parent,name,modal,separator,yes,no,cancel);
+ }
+ private native void newKDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, QWidget parent, String name, boolean modal, boolean separator, KGuiItem yes, KGuiItem no, KGuiItem cancel);
+ public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, QWidget parent, String name, boolean modal, boolean separator, KGuiItem yes, KGuiItem no) {
+ super((Class) null);
+ newKDialogBase(caption,buttonMask,defaultButton,escapeButton,parent,name,modal,separator,yes,no);
+ }
+ private native void newKDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, QWidget parent, String name, boolean modal, boolean separator, KGuiItem yes, KGuiItem no);
+ public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, QWidget parent, String name, boolean modal, boolean separator, KGuiItem yes) {
+ super((Class) null);
+ newKDialogBase(caption,buttonMask,defaultButton,escapeButton,parent,name,modal,separator,yes);
+ }
+ private native void newKDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, QWidget parent, String name, boolean modal, boolean separator, KGuiItem yes);
+ public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, QWidget parent, String name, boolean modal, boolean separator) {
+ super((Class) null);
+ newKDialogBase(caption,buttonMask,defaultButton,escapeButton,parent,name,modal,separator);
+ }
+ private native void newKDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, QWidget parent, String name, boolean modal, boolean separator);
+ public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKDialogBase(caption,buttonMask,defaultButton,escapeButton,parent,name,modal);
+ }
+ private native void newKDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, QWidget parent, String name, boolean modal);
+ public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, QWidget parent, String name) {
+ super((Class) null);
+ newKDialogBase(caption,buttonMask,defaultButton,escapeButton,parent,name);
+ }
+ private native void newKDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, QWidget parent, String name);
+ public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, QWidget parent) {
+ super((Class) null);
+ newKDialogBase(caption,buttonMask,defaultButton,escapeButton,parent);
+ }
+ private native void newKDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, QWidget parent);
+ public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton) {
+ super((Class) null);
+ newKDialogBase(caption,buttonMask,defaultButton,escapeButton);
+ }
+ private native void newKDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton);
+ public KDialogBase(String caption, int buttonMask, int defaultButton) {
+ super((Class) null);
+ newKDialogBase(caption,buttonMask,defaultButton);
+ }
+ private native void newKDialogBase(String caption, int buttonMask, int defaultButton);
+ public KDialogBase(String caption, int buttonMask) {
+ super((Class) null);
+ newKDialogBase(caption,buttonMask);
+ }
+ private native void newKDialogBase(String caption, int buttonMask);
+ public KDialogBase(String caption) {
+ super((Class) null);
+ newKDialogBase(caption);
+ }
+ private native void newKDialogBase(String caption);
+ /**
+ Sets the orientation of the button box.
+ It can be <code>Vertical</code> or <code>Horizontal.</code> If <code>Horizontal</code>
+ (default), the button box is positioned at the bottom of the
+ dialog. If <code>Vertical</code> it will be placed at the right edge of the
+ dialog.
+ @param orientation The button box orientation.
+ @short Sets the orientation of the button box.
+ */
+ public native void setButtonBoxOrientation(int orientation);
+ /**
+ Sets the button that will be activated when the Escape key
+ is pressed.
+ Normally you should not use this function. By default,
+ the Escape key is mapped to either the Cancel or the Close button
+ if one of these buttons are defined. The user expects that Escape will
+ cancel an operation so use this function with caution.
+ @param id The button code.
+ @short Sets the button that will be activated when the Escape key is pressed.
+ */
+ public native void setEscapeButton(int id);
+ /**
+ Adjust the size of the dialog to fit the contents just before
+ QDialog.exec() or QDialog.show() is called.
+ This method will not be called if the dialog has been explicitly
+ resized before showing it.
+ @short Adjust the size of the dialog to fit the contents just before QDialog.exec() or QDialog.show() is called.
+ */
+ public native void adjustSize();
+ public native QSize sizeHint();
+ public native QSize minimumSizeHint();
+ /**
+ Retrieve the empty page when the predefined layout is used in <code>Plain</code>
+ mode.
+ This widget must be used as the toplevel widget of your dialog
+ code.
+ @return The widget or 0 if the predefined layout mode is not <code>Plain</code>
+ or if you don't use any predefined layout.
+
+ @short Retrieve the empty page when the predefined layout is used in <code>Plain</code> mode.
+ */
+ public native QFrame plainPage();
+ /**
+ Add a page to the dialog when the class is used in <code>TreeList</code> ,
+ <code>IconList</code> or <code>Tabbed</code> mode.
+ The returned widget must be used as the
+ toplevel widget for this particular page.
+ Note: The returned frame widget has no
+ layout manager associated with it. In order to use it you must
+ create a layout yourself as the example below illustrates:
+ <pre>
+ QFrame page = addPage( i18n("Layout") );
+ QVBoxLayout topLayout = new QVBoxLayout( page, 0, KDialog.spacingHint() );
+ QLabel label = new QLabel( i18n("Layout type"), page );
+ topLayout.addWidget( label );
+ ..
+ </pre>
+ @param itemName String used in the list or as tab item name.
+ @param header Header text use in the list modes. Ignored in <code>Tabbed</code>
+ mode. If empty, the item text is used instead.
+ @param pixmap Used in <code>IconList</code> mode. You should prefer a pixmap
+ with size 32x32 pixels.
+ @return The page widget which must be used as the toplevel widget for
+ the page.
+
+ @short Add a page to the dialog when the class is used in <code>TreeList</code> , <code>IconList</code> or <code>Tabbed</code> mode.
+ */
+ public native QFrame addPage(String itemName, String header, QPixmap pixmap);
+ public native QFrame addPage(String itemName, String header);
+ public native QFrame addPage(String itemName);
+ /**
+ This is like addPage() just above, with the difference that the first
+ element is a list of strings.
+ These strings are used to form a path
+ of folders down to the given page. The initial elements are names
+ for the folders, while the last element is the name of the page.
+ Note: This does yet only work for the <code>TreeList</code> face. Later this may
+ be added for the <code>IconList</code> face too. In other faces than the
+ <code>TreeList</code>, all the strings except the last one is ignored.
+ @short This is like addPage() just above, with the difference that the first element is a list of strings.
+ */
+ public native QFrame addPage(String[] items, String header, QPixmap pixmap);
+ public native QFrame addPage(String[] items, String header);
+ public native QFrame addPage(String[] items);
+ /**
+ Add a page to the dialog when the class is used in <code>TreeList</code>,
+ <code>IconList</code> or <code>Tabbed</code> mode.
+ The returned widget must be used as the toplevel widget for
+ this particular page. The widget contains a QVBoxLayout
+ layout so the widget children are lined up vertically. You can
+ use it as follows:
+ <pre>
+ QVBox page = addVBoxPage( i18n("Layout") );
+ QLabel label = new QLabel( i18n("Layout type"), page );
+ ..
+ </pre>
+ @param itemName String used in the list or as tab item name.
+ @param header Header text use in the list modes. Ignored in <code>Tabbed</code>
+ mode. If empty, the item text is used instead.
+ @param pixmap Used in <code>IconList</code> mode. You should prefer a pixmap
+ with size 32x32 pixels.
+ @return The page widget which must be used as the toplevel widget for
+ the page.
+
+ @short Add a page to the dialog when the class is used in <code>TreeList</code>, <code>IconList</code> or <code>Tabbed</code> mode.
+ */
+ public native QVBox addVBoxPage(String itemName, String header, QPixmap pixmap);
+ public native QVBox addVBoxPage(String itemName, String header);
+ public native QVBox addVBoxPage(String itemName);
+ /**
+ This is like addVBoxPage() just above, with the difference
+ that the first element is a list of strings.
+ These strings are used to form a path
+ of folders down to the given page. The initial elements are names
+ for the folders, while the last element is the name of the page.
+ Note: This does yet only work for the <code>TreeList</code> face. Later this may
+ be added for the <code>IconList</code> face too. In other faces than the
+ <code>TreeList</code>, all the strings except the last one is ignored.
+ @short This is like addVBoxPage() just above, with the difference that the first element is a list of strings.
+ */
+ public native QVBox addVBoxPage(String[] items, String header, QPixmap pixmap);
+ public native QVBox addVBoxPage(String[] items, String header);
+ public native QVBox addVBoxPage(String[] items);
+ /**
+ Add a page to the dialog when the class is used in <code>TreeList</code>,
+ <code>IconList</code> or <code>Tabbed</code> mode.
+ The returned widget must be used as the
+ toplevel widget for this particular page. The widget contains a
+ QHBoxLayout layout so the widget children are lined up horizontally.
+ You can use it as follows:
+ @param itemName String used in the list or as tab item name.
+ @param header Header text use in the list modes. Ignored in Tabbed
+ mode. If empty, the item text is used instead.
+ @param pixmap Used in IconList mode. You should prefer a pixmap
+ with size 32x32 pixels.
+ @return The page widget which must be used as the toplevel widget for
+ the page.
+
+ @short Add a page to the dialog when the class is used in <code>TreeList</code>, <code>IconList</code> or <code>Tabbed</code> mode.
+ */
+ public native QHBox addHBoxPage(String itemName, String header, QPixmap pixmap);
+ public native QHBox addHBoxPage(String itemName, String header);
+ public native QHBox addHBoxPage(String itemName);
+ /**
+ This is like addHBoxPage() just above, with the
+ difference that the first element is a list of strings.
+ These strings are used to form a path
+ of folders down to the given page. The initial elements are names
+ for the folders, while the last element is the name of the page.
+ Note: This does yet only work for the <code>TreeList</code> face. Later this may
+ be added for the <code>IconList</code> face too. In other faces than the
+ <code>TreeList</code>, all the strings except the last one is ignored.
+ @short This is like addHBoxPage() just above, with the difference that the first element is a list of strings.
+ */
+ public native QHBox addHBoxPage(String[] items, String header, QPixmap pixmap);
+ public native QHBox addHBoxPage(String[] items, String header);
+ public native QHBox addHBoxPage(String[] items);
+ /**
+ Add a page to the dialog when the class is used in <code>TreeList</code>,
+ <code>IconList</code> or <code>Tabbed</code> mode.
+ The returned widget must be used as the
+ toplevel widget for this particular page. The widget contains a
+ QGridLayout layout so the widget children are positioned in a grid.
+ @param n Specifies the number of columns if <code>dir</code> is Qt.Horizontal
+ or the number of rows if <code>dir</code> is Qt.Vertical.
+ @param dir Can be Qt.Horizontal or Qt.Vertical.
+ @param itemName String used in the list or as tab item name.
+ @param header Header text use in the list modes <code>Ignored</code> in <code>Tabbed</code>
+ mode. If empty, the item text is used instead.
+ @param pixmap Used in <code>IconList</code> mode. You should prefer a pixmap
+ with size 32x32 pixels.
+ @return The page widget which must be used as the toplevel widget for
+ the page.
+
+ @short Add a page to the dialog when the class is used in <code>TreeList</code>, <code>IconList</code> or <code>Tabbed</code> mode.
+ */
+ public native QGrid addGridPage(int n, int dir, String itemName, String header, QPixmap pixmap);
+ public native QGrid addGridPage(int n, int dir, String itemName, String header);
+ public native QGrid addGridPage(int n, int dir, String itemName);
+ /**
+ This is like addGridPage() just above, with the difference
+ that the first element is a list of strings.
+ These strings are used to form a path
+ of folders down to the given page. The initial elements are names
+ for the folders, while the last element is the name of the page.
+ Note: This does yet only work for the <code>TreeList</code> face. Later this may
+ be added for the <code>IconList</code> face too. In other faces than the
+ <code>TreeList</code>, all the strings except the last one is ignored.
+ @short This is like addGridPage() just above, with the difference that the first element is a list of strings.
+ */
+ public native QGrid addGridPage(int n, int dir, String[] items, String header, QPixmap pixmap);
+ public native QGrid addGridPage(int n, int dir, String[] items, String header);
+ public native QGrid addGridPage(int n, int dir, String[] items);
+ /**
+ Sets the icon used in <code>TreeList</code> Mode for the given path.
+ @param path The path for which this icon should be shown.
+ @param pixmap The icon used.
+ @short Sets the icon used in <code>TreeList</code> Mode for the given path.
+ */
+ public native void setFolderIcon(String[] path, QPixmap pixmap);
+ /**
+ Make a main widget.
+ The function will make a QFrame widget
+ and use setMainWidget() to register it. You can <b>not</b> use this
+ function more than once, <b>not</b> if you have already defined a
+ main widget with setMainWidget() and <b>not</b> if you have used the
+ constructor where you define the face (<code>Plain</code>, <code>Swallow</code>, <code>Tabbed</code>,
+ <code>TreeList</code>).
+ @return The main widget or 0 if any of the rules described above
+ were broken.
+
+ @short Make a main widget.
+ */
+ public native QFrame makeMainWidget();
+ /**
+ Make a main widget.
+ The function will make a QVBox widget
+ and use setMainWidget() to register it. You <b>can</b> use this
+ function more than once, but <b>not</b> if you have already defined a
+ main widget with setMainWidget() and <b>not</b> if you have used the
+ constructor where you define the face (<code>Plain</code>, <code>Swallow</code>, <code>Tabbed</code>,
+ <code>TreeList</code>, <code>IconList</code>).
+ @return The main widget or 0 if any of the rules described above
+ were broken.
+
+ @short Make a main widget.
+ */
+ public native QVBox makeVBoxMainWidget();
+ /**
+ Make a main widget.
+ The function will make a QHBox widget
+ and use setMainWidget() to register it. You can <b>not</b> use this
+ function more than once, <b>not</b> if you have already defined a
+ main widget with setMainWidget() and <code>not</code> if you have used the
+ constructor where you define the face (<code>Plain</code>, <code>Swallow</code>, <code>Tabbed</code>,
+ <code>TreeList</code>, <code>IconList</code>).
+ @return The main widget or 0 if any of the rules described above
+ were broken.
+
+ @short Make a main widget.
+ */
+ public native QHBox makeHBoxMainWidget();
+ /**
+ Make a main widget.
+ The function will make a QGrid widget
+ and use setMainWidget() to register it. You can <b>not</b> use this
+ function more than once, <b>not</b> if you have already defined a
+ main widget with setMainWidget and <b>not</b> if you have used the
+ constructor where you define the face (Plain, Swallow, Tabbed,
+ TreeList, IconList).
+ @param n Specifies the number of columns if 'dir' is Qt.Horizontal
+ or the number of rows if 'dir' is Qt.Vertical.
+ @param dir Can be Qt.Horizontal or Qt.Vertical.
+ @return The main widget or 0 if any of the rules described above
+ were broken.
+
+ @short Make a main widget.
+ */
+ public native QGrid makeGridMainWidget(int n, int dir);
+ /**
+ Hide or display the a separator line drawn between the action
+ buttons an the main widget.
+ @short Hide or display the a separator line drawn between the action buttons an the main widget.
+ */
+ public native void enableButtonSeparator(boolean state);
+ /**
+ Hide or display a general action button.
+ Only buttons that have
+ been created in the constructor can be displayed. This method will
+ not create a new button.
+ @param id Button identifier.
+ @param state true display the button(s).
+ @short Hide or display a general action button.
+ */
+ public native void showButton(int id, boolean state);
+ /**
+ Hide or display the OK button.
+ The OK button must have
+ been created in the constructor to be displayed.
+ @param state If <code>true</code>, display the button(s).
+ @short Hide or display the OK button.
+ */
+ public native void showButtonOK(boolean state);
+ /**
+ Hide or display the Apply button.
+ The Apply button must have
+ been created in the constructor to be displayed.
+ @param state true display the button(s).
+ @short Hide or display the Apply button.
+ */
+ public native void showButtonApply(boolean state);
+ /**
+ Hide or display the Cancel button. The Cancel button must have
+ been created in the constructor to be displayed.
+ @param state <code>true</code> display the button(s).
+ @short Hide or display the Cancel button.
+ */
+ public native void showButtonCancel(boolean state);
+ /**
+ Sets the page with <code>index</code> to be displayed.
+ This method will only
+ work when the dialog is using the predefined shape of TreeList,
+ IconList or Tabbed.
+ @param index Index of the page to be shown.
+ @return <code>true</code> if the page is shown, <code>false</code> otherwise.
+
+ @short Sets the page with <code>index</code> to be displayed.
+ */
+ public native boolean showPage(int index);
+ /**
+ Returns the index of the active page.
+ This method will only work when the dialog is using the
+ predefined shape of Tabbed, TreeList or IconList.
+ @return The page index or -1 if there is no active page.
+
+ @short Returns the index of the active page.
+ */
+ public native int activePageIndex();
+ /**
+ Returns the index of a page created with addPage(),
+ addVBoxPage(), addHBoxPage() or addGridPage().
+ You can can compare this index with the value returned from
+ activePageIndex() if you need to do some page specific actions
+ in your code.
+ The returned index will never change so you can safely use this
+ function once and save the value.
+ @param widget The widget returned by addPage(), addVBoxPage(),
+ addHBoxPage() or addGridPage().
+ @return The index or -1 if the face is not Tabbed, TreeList or
+ IconList
+
+ @short Returns the index of a page created with addPage(), addVBoxPage(), addHBoxPage() or addGridPage().
+ */
+ public native int pageIndex(QWidget widget);
+ /**
+ Sets the main user definable widget.
+ If the dialog is using the predefined Swallow mode, the widget will
+ be reparented to the internal swallow control widget. If the dialog
+ is being used in the standard mode then the <code>widget</code> must have the
+ dialog as parent.
+ @param widget The widget to be displayed as main widget. If it
+ is 0, then the dialog will show an empty space of 100x100 pixels
+ instead.
+ @short Sets the main user definable widget.
+ */
+ public native void setMainWidget(QWidget widget);
+ /**
+ Returns the main widget if any.
+ @return The current main widget. Can be 0 if no widget has been defined.
+
+ @short Returns the main widget if any.
+ */
+ public native QWidget mainWidget();
+ /**
+ Convenience method.
+ Freezes the dialog size using the minimum size
+ of the dialog. This method should only be called right before
+ show() or exec().
+ @short Convenience method.
+ */
+ public native void disableResize();
+ /**
+ Convenience method. Sets the initial dialog size.
+ This method should
+ only be called right before show() or exec(). The initial
+ size will be
+ ignored if smaller than the dialog's minimum size.
+ @param s Startup size.
+ @param noResize If <code>true</code> the dialog cannot be resized.
+ @short Convenience method.
+ */
+ public native void setInitialSize(QSize s, boolean noResize);
+ public native void setInitialSize(QSize s);
+ /**
+ Convenience method. Add a size to the default minimum size of a
+ dialog.
+ This method should only be called right before show() or
+ exec().
+ @param s Size added to minimum size.
+ @param noResize If <code>true</code> the dialog cannot be resized.
+ @short Convenience method.
+ */
+ public native void incInitialSize(QSize s, boolean noResize);
+ public native void incInitialSize(QSize s);
+ /**
+ read the dialogs size from the configuration according to the screen size.
+ If no size is saved for one dimension of the screen, sizeHint() is returned.
+ @param groupName Name of the group to read from. The old group
+ of KGlobal.config is preserved.
+ @short read the dialogs size from the configuration according to the screen size.
+ */
+ public native QSize configDialogSize(String groupName);
+ /**
+ read the dialogs size from the configuration according to the screen size.
+ If no size is saved for one dimension of the screen, sizeHint() is returned.
+ @param config The KConfig object to read from
+ @param groupName Name of the group to read from. The old group
+ of KGlobal.config is preserved.
+ @short read the dialogs size from the configuration according to the screen size.
+ */
+ public native QSize configDialogSize(KConfig config, String groupName);
+ /**
+ save the dialogs size dependant on the screen dimension either to the
+ global or application config file.
+ @param groupName The group to which the dialogs size is saved. See configDialogSize
+ to read the size.
+ @param global Set to true if the entry should go to the global config rather
+ than to the applications config. Default is false.
+ @short save the dialogs size dependant on the screen dimension either to the global or application config file.
+ */
+ public native void saveDialogSize(String groupName, boolean global);
+ public native void saveDialogSize(String groupName);
+ /**
+ save the dialogs size dependant on the screen dimension.
+ @param config The KConfig object to write to.
+ @param groupName The group to which the dialogs size is saved. See
+ configDialogSize to read the size.
+ @param global Set to true if the entry should go to the global config.
+ Default is false.
+ @short save the dialogs size dependant on the screen dimension.
+ */
+ public native void saveDialogSize(KConfig config, String groupName, boolean global);
+ public native void saveDialogSize(KConfig config, String groupName);
+ /**
+ Sets the appearance of the OK button.
+ If the default parameters are used
+ (that is, if no KGuiItem is given) KStdGuiItem.ok() is used.
+ @param item KGuiItem.
+ @short Sets the appearance of the OK button.
+ */
+ public native void setButtonOK(KGuiItem item);
+ public native void setButtonOK();
+ /**
+ Sets the appearance of the Apply button.
+ If the default parameters are used
+ (that is, if no KGuiItem is given) KStdGuiItem.apply() is used.
+ @param item KGuiItem.
+ @short Sets the appearance of the Apply button.
+ */
+ public native void setButtonApply(KGuiItem item);
+ public native void setButtonApply();
+ /**
+ Sets the appearance of the Cancel button.
+ If the default parameters are used
+ (that is, if no KGuiItem is given) KStdGuiItem.cancel() is used.
+ @param item KGuiItem.
+ @short Sets the appearance of the Cancel button.
+ */
+ public native void setButtonCancel(KGuiItem item);
+ public native void setButtonCancel();
+ /**
+ Sets the text of any button.
+ @param id The button identifier.
+ @param text Button text.
+ @short Sets the text of any button.
+ */
+ public native void setButtonText(int id, String text);
+ /**
+ Sets the tooltip text of any button.
+ @param id The button identifier.
+ @param text Button text.
+ @short Sets the tooltip text of any button.
+ */
+ public native void setButtonTip(int id, String text);
+ /**
+ Sets the "What's this?" text of any button.
+ @param id The button identifier.
+ @param text Button text.
+ @short Sets the "What's this?" text of any button.
+ */
+ public native void setButtonWhatsThis(int id, String text);
+ /**
+ Sets the KGuiItem directly for the button instead of using 3 methods to
+ set the text, tooltip and whatsthis strings. This also allows to set an
+ icon for the button which is otherwise not possible for the extra
+ buttons beside Ok, Cancel and Apply.
+ @param id The button identifier.
+ @param item The KGuiItem for the button.
+ @short Sets the KGuiItem directly for the button instead of using 3 methods to set the text, tooltip and whatsthis strings.
+ */
+ public native void setButtonGuiItem(int id, KGuiItem item);
+ /**
+ This function has only effect in TreeList mode.
+ Defines how the tree list widget is resized when the dialog is
+ resized horizontally. By default the tree list keeps its width
+ when the dialog becomes wider.
+ @param state The resize mode. If false (default) the tree list keeps
+ its current width when the dialog becomes wider.
+ @short This function has only effect in TreeList mode.
+ */
+ public native void setTreeListAutoResize(boolean state);
+ /**
+ This function has only effect in TreeList mode.
+ This tells the widgets whether the icons given in the addPage,
+ addVBoxPage, addHBoxPage, or addGridPage methods should
+ be shown in the TreeList.
+ Note: This method must be called before calling any of the methods
+ which add icons to the page.
+ @param state If true the icons are shown.
+ @short This function has only effect in TreeList mode.
+ */
+ public native void setShowIconsInTreeList(boolean state);
+ /**
+ This function has only effect in TreeList mode.
+ This tells the widgets whether the root should be decorated.
+ For details see QListView.setRootIsDecorated
+ @param state Root will be decorated if true.
+ @short This function has only effect in TreeList mode.
+ */
+ public native void setRootIsDecorated(boolean state);
+ /**
+ This function has only effect in TreeList mode.
+ This tells the TreeList to unfold the whole tree so that all entries
+ are visible.
+ If the list is empty when you call this method newly created entries
+ will not automatically be opened. If the <code>persist</code> flag is set opened
+ entries cannot be closed again, though.
+ @param persist If true the tree always stays unfolded.
+ @short This function has only effect in TreeList mode.
+ */
+ public native void unfoldTreeList(boolean persist);
+ public native void unfoldTreeList();
+ /**
+ Add a widget at the bottom of the TreeList/IconList.
+ @param widget The widget to be added. It will be reparented into the
+ KJanusWidget, therefor it will be deleted with the
+ KJanusWidget, too. To be on the save side just don't keep
+ the pointer to this widget.
+ @short Add a widget at the bottom of the TreeList/IconList.
+ */
+ public native void addWidgetBelowList(QWidget widget);
+ /**
+ Add a button at the bottom of the TreeList/IconList.
+ @param text The text on the PushButton.
+ @param recv The object that is to receive the signal when the button
+ is clicked.
+ @param slot The slot to connect to the clicked signal of the button.
+ @short Add a button at the bottom of the TreeList/IconList.
+ */
+ public native void addButtonBelowList(String text, QObject recv, String slot);
+ /**
+ The same as the above function, but with a KGuiItem providing the text
+ and icon for the button at the bottom of the TreeList/IconList.
+ @param guiitem The text and icon on the PushButton.
+ @param recv The object that is to receive the signal when the button
+ is clicked.
+ @param slot The slot to connect to the clicked signal of the button.
+ @short The same as the above function, but with a KGuiItem providing the text and icon for the button at the bottom of the TreeList/IconList.
+ */
+ public native void addButtonBelowList(KGuiItem guiitem, QObject recv, String slot);
+ /**
+ This function has only effect in IconList mode.
+ Defines how the icon list widget is displayed. By default it is
+ the widgets in the dialog pages that decide the minimum height
+ of the dialog. A vertical scrollbar can be used in the icon list
+ area.
+ @param state The visibility mode. If true, the minimum height is
+ adjusted so that every icon in the list is visible at the
+ same time. The vertical scrollbar will never be visible.
+ @short This function has only effect in IconList mode.
+ */
+ public native void setIconListAllVisible(boolean state);
+ /**
+ Enable hiding of the background tile (if any).
+ @param state <code>true</code> will make the tile visible.
+ @short Enable hiding of the background tile (if any).
+ */
+ public native void showTile(boolean state);
+ /**
+ Calculate the size hint for the dialog.
+ With this method it is easy to calculate a size hint for a
+ dialog derived from KDialogBase if you know the width and height of
+ the elements you add to the widget. The rectangle returned is
+ calculated so that all elements exactly fit into it. Thus, you may
+ set it as a minimum size for the resulting dialog.
+ You should not need to use this method and never if you use one of
+ the predefined shapes.
+ @param w The width of you special widget.
+ @param h The height of you special widget.
+ @return The minimum width and height of the dialog using <code>w</code> and <code>h</code>
+ as the size of the main widget.
+
+ @short Calculate the size hint for the dialog.
+ */
+ public native QSize calculateSize(int w, int h);
+ /**
+ Returns the help link text.
+ If no text has been defined,
+ "Get help..." (internationalized) is returned.
+ @return The help link text.
+
+ @short Returns the help link text.
+ */
+ public native String helpLinkText();
+ /**
+ Returns the action button that corresponds to the <code>id.</code>
+ Normally
+ you should not use this function. <b>Never</b> delete the object returned
+ by this function. See also enableButton(), showButton(),
+ setButtonTip(), setButtonWhatsThis(), and setButtonText().
+ @param id Integer identifier of the button.
+ FIXME KDE 4: Return the actual KPushButton instead of QPushButton (Martijn)
+ @return The action button or 0 if the button does not exists.
+
+ @short Returns the action button that corresponds to the <code>id.</code>
+ */
+ public native QPushButton actionButton(int id);
+ /**
+ Enable or disable (gray out) a general action button.
+ @param id Button identifier.
+ @param state <code>true</code> enables the button(s).
+ @short Enable or disable (gray out) a general action button.
+ */
+ public native void enableButton(int id, boolean state);
+ /**
+ Enable or disable (gray out) the OK button.
+ @param state <code>true</code> enables the button.
+ @short Enable or disable (gray out) the OK button.
+ */
+ public native void enableButtonOK(boolean state);
+ /**
+ Enable or disable (gray out) the Apply button.
+ @param state true enables the button.
+ @short Enable or disable (gray out) the Apply button.
+ */
+ public native void enableButtonApply(boolean state);
+ /**
+ Enable or disable (gray out) the Cancel button.
+ @param state true enables the button.
+ @short Enable or disable (gray out) the Cancel button.
+ */
+ public native void enableButtonCancel(boolean state);
+ /**
+ Display or hide the help link area on the top of the dialog.
+ @param state <code>true</code> will display the area.
+ @short Display or hide the help link area on the top of the dialog.
+ */
+ public native void enableLinkedHelp(boolean state);
+ /**
+ Destruct the Dialog delayed.
+ You can call this function from
+ slots like closeClicked() and hidden().
+ You should not use the dialog any more after
+ calling this function.
+ @short Destruct the Dialog delayed.
+ */
+ public native void delayedDestruct();
+ /**
+ Sets the text that is shown as the linked text.
+ If text is empty,
+ the text "Get help..." (internationalized) is used instead.
+ @param text The link text.
+ @short Sets the text that is shown as the linked text.
+ */
+ public native void setHelpLinkText(String text);
+ /**
+ Sets the help path and topic.
+ @param anchor Defined anchor in your docbook sources
+ @param appname Defines the appname the help belongs to
+ If empty it's the current one
+ @note The help button works differently for the class
+ KCMultiDialog, so it does not make sense to call this
+ function for Dialogs of that type. See
+ KCMultiDialog.slotHelp() for more information.
+ @short Sets the help path and topic.
+ */
+ public native void setHelp(String anchor, String appname);
+ public native void setHelp(String anchor);
+ /**
+ Connected to help link label.
+ @short Connected to help link label.
+ */
+ public native void helpClickedSlot(String arg1);
+ /**
+ Sets the status of the Details button.
+ @short Sets the status of the Details button.
+ */
+ public native void setDetails(boolean showDetails);
+ /**
+ Sets the widget that gets shown when "Details" is enabled.
+ The dialog takes over ownership of the widget.
+ Any previously set widget gets deleted.
+ @short Sets the widget that gets shown when "Details" is enabled.
+ */
+ public native void setDetailsWidget(QWidget detailsWidget);
+ /**
+ This method is called automatically whenever the background has
+ changed. You do not need to use this method.
+ @short This method is called automatically whenever the background has changed.
+ */
+ public native void updateBackground();
+ /**
+ Force closing the dialog, setting its result code to the one Esc would set.
+ You shouldn't use this, generally (let the user make his choice!)
+ but it can be useful when you need to make a choice after a timeout
+ has happened, or when the parent widget has to go somewhere else
+ (e.g. html redirections).
+ @short Force closing the dialog, setting its result code to the one Esc would set.
+ */
+ public native void cancel();
+ /**
+ Check whether the background tile is set or not.
+ @return <code>true</code> if there is defined a background tile.
+
+ @short Check whether the background tile is set or not.
+ */
+ public static native boolean haveBackgroundTile();
+ /**
+ Returns a pointer to the background tile if there is one.
+ @return The tile pointer or 0 if no tile is defined.
+
+ @short Returns a pointer to the background tile if there is one.
+ */
+ public static native QPixmap backgroundTile();
+ /**
+ Sets the background tile.
+ If it is Null (0), the background image is deleted.
+ @param pix The background tile.
+ @short Sets the background tile.
+ */
+ public static native void setBackgroundTile(QPixmap pix);
+ /**
+ Maps some keys to the actions buttons. F1 is mapped to the Help
+ button if present and Escape to the Cancel or Close if present. The
+ button action event is animated.
+ @short Maps some keys to the actions buttons.
+ */
+ protected native void keyPressEvent(QKeyEvent e);
+ /**
+ Emits the #hidden signal. You can connect to that signal to
+ detect when a dialog has been closed.
+ @short Emits the #hidden signal.
+ */
+ protected native void hideEvent(QHideEvent arg1);
+ /**
+ Detects when a dialog is being closed from the window manager
+ controls. If the Cancel or Close button is present then the button
+ is activated. Otherwise standard QDialog behavior
+ will take place.
+ @short Detects when a dialog is being closed from the window manager controls.
+ */
+ protected native void closeEvent(QCloseEvent e);
+ /**
+ Activated when the Help button has been clicked. If a help
+ text has been defined, the help system will be activated.
+ @short Activated when the Help button has been clicked.
+ */
+ protected native void slotHelp();
+ /**
+ Activated when the Default button has been clicked.
+ @short Activated when the Default button has been clicked.
+ */
+ protected native void slotDefault();
+ /**
+ Activated when the Details button has been clicked.
+ @short Activated when the Details button has been clicked.
+ @see #detailsClicked(boolean)
+ */
+ protected native void slotDetails();
+ /**
+ Activated when the User3 button has been clicked.
+ @short Activated when the User3 button has been clicked.
+ */
+ protected native void slotUser3();
+ /**
+ Activated when the User2 button has been clicked.
+ @short Activated when the User2 button has been clicked.
+ */
+ protected native void slotUser2();
+ /**
+ Activated when the User1 button has been clicked.
+ @short Activated when the User1 button has been clicked.
+ */
+ protected native void slotUser1();
+ /**
+ Activated when the Ok button has been clicked. The
+ QDialog.accept() is activated.
+ @short Activated when the Ok button has been clicked.
+ */
+ protected native void slotOk();
+ /**
+ Activated when the Apply button has been clicked.
+ @short Activated when the Apply button has been clicked.
+ */
+ protected native void slotApply();
+ /**
+ Activated when the Try button has been clicked.
+ @short Activated when the Try button has been clicked.
+ */
+ protected native void slotTry();
+ /**
+ Activated when the Yes button has been clicked. The
+ QDialog.done( Yes ) is activated.
+ @short Activated when the Yes button has been clicked.
+ */
+ protected native void slotYes();
+ /**
+ Activated when the Yes button has been clicked. The
+ QDialog.done( No ) is activated.
+ @short Activated when the Yes button has been clicked.
+ */
+ protected native void slotNo();
+ /**
+ Activated when the Cancel button has been clicked. The
+ QDialog.reject() is activated in regular mode and
+ QDialog.done( Cancel ) when in message box mode.
+ @short Activated when the Cancel button has been clicked.
+ */
+ protected native void slotCancel();
+ /**
+ Activated when the Close button has been clicked. The
+ QDialog.reject() is activated.
+ @short Activated when the Close button has been clicked.
+ */
+ protected native void slotClose();
+ /**
+ Updates the margins and spacings.
+ @short Updates the margins and spacings.
+ */
+ public native void updateGeometry();
+ /**
+ Deletes the dialog immediately. If you want to delete the dialog
+ delayed use delayedDestruct() or QObject.deleteLater().
+ Attention: Do no use connect this slot to signals from user
+ actions!
+ @short Deletes the dialog immediately.
+ */
+ protected native void slotDelayedDestruct();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDialogBaseSignals.java b/kdejava/koala/org/kde/koala/KDialogBaseSignals.java
new file mode 100644
index 00000000..ac961638
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDialogBaseSignals.java
@@ -0,0 +1,129 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QHideEvent;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QCloseEvent;
+import org.kde.qt.QObject;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSize;
+import org.kde.qt.QGrid;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QPushButton;
+import org.kde.qt.QWidget;
+import org.kde.qt.QVBox;
+import org.kde.qt.QFrame;
+import org.kde.qt.QHBox;
+
+public interface KDialogBaseSignals {
+ /**
+ The Help button was pressed. This signal is only emitted if
+ slotHelp() is not replaced.
+ @short The Help button was pressed.
+ */
+ void helpClicked();
+ /**
+ The Default button was pressed. This signal is only emitted if
+ slotDefault() is not replaced.
+ @short The Default button was pressed.
+ */
+ void defaultClicked();
+ /**
+ The User3 button was pressed. This signal is only emitted if
+ slotUser3() is not replaced.
+ @short The User3 button was pressed.
+ */
+ void user3Clicked();
+ /**
+ The User2 button was pressed. This signal is only emitted if
+ slotUser2() is not replaced.
+ @short The User2 button was pressed.
+ */
+ void user2Clicked();
+ /**
+ The User1 button was pressed. This signal is only emitted if
+ slotUser1() is not replaced.
+ @short The User1 button was pressed.
+ */
+ void user1Clicked();
+ /**
+ The Apply button was pressed. This signal is only emitted if
+ slotApply() is not replaced.
+ @short The Apply button was pressed.
+ */
+ void applyClicked();
+ /**
+ The Try button was pressed. This signal is only emitted if
+ slotTry() is not replaced.
+ @short The Try button was pressed.
+ */
+ void tryClicked();
+ /**
+ The OK button was pressed. This signal is only emitted if
+ slotOk() is not replaced.
+ @short The OK button was pressed.
+ */
+ void okClicked();
+ /**
+ The Yes button was pressed. This signal is only emitted if
+ slotYes() is not replaced.
+ @short The Yes button was pressed.
+ */
+ void yesClicked();
+ /**
+ The No button was pressed. This signal is only emitted if
+ slotNo() is not replaced.
+ @short The No button was pressed.
+ */
+ void noClicked();
+ /**
+ The Cancel button was pressed. This signal is only emitted if
+ slotCancel() is not replaced.
+ @short The Cancel button was pressed.
+ */
+ void cancelClicked();
+ /**
+ The Close button was pressed. This signal is only emitted if
+ slotClose() is not replaced.
+ @short The Close button was pressed.
+ */
+ void closeClicked();
+ /**
+ The background tile has changed.
+ @short The background tile has changed.
+ */
+ void backgroundChanged();
+ /**
+ The dialog is about to be hidden.
+ A dialog is hidden after a user clicks a button that ends
+ the dialog or when the user switches to another desktop or
+ minimizes the dialog.
+ @short The dialog is about to be hidden.
+ */
+ void hidden();
+ /**
+ The dialog has finished.
+ A dialog emits finished after a user clicks a button that ends
+ the dialog.
+ This signal is also emitted when you call hide()
+ If you have stored a pointer to the
+ dialog do <b>not</b> try to delete the pointer in the slot that is
+ connected to this signal.
+ You should use delayedDestruct() instead.
+ @short The dialog has finished.
+ */
+ void finished();
+ /**
+ The detailsWidget is about to get shown. This is your last chance
+ to call setDetailsWidget if you haven't done so yet.
+ @short The detailsWidget is about to get shown.
+ */
+ void aboutToShowDetails();
+ /**
+ A page is about to be shown. This signal is only emitted for the TreeList
+ and IconList faces.
+ @short A page is about to be shown.
+ */
+ void aboutToShowPage(QWidget page);
+}
diff --git a/kdejava/koala/org/kde/koala/KDialogQueue.java b/kdejava/koala/org/kde/koala/KDialogQueue.java
new file mode 100644
index 00000000..2c55fa21
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDialogQueue.java
@@ -0,0 +1,29 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QDialog;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+/**
+*/
+public class KDialogQueue extends QObject {
+ protected KDialogQueue(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public static native void queueDialog(QDialog arg1);
+ public KDialogQueue() {
+ super((Class) null);
+ newKDialogQueue();
+ }
+ private native void newKDialogQueue();
+ protected static native KDialogQueue self();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDialogSignals.java b/kdejava/koala/org/kde/koala/KDialogSignals.java
new file mode 100644
index 00000000..1abd56b3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDialogSignals.java
@@ -0,0 +1,21 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QRect;
+import org.kde.qt.QLayoutItem;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QLayoutItemInterface;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+
+public interface KDialogSignals {
+ /**
+ Emitted when the margin size and/or spacing size
+ have changed.
+ Use marginHint() and spacingHint() in your slot
+ to get the new values.
+ @short Emitted when the margin size and/or spacing size have changed.
+ */
+ void layoutHintChanged();
+}
diff --git a/kdejava/koala/org/kde/koala/KDirLister.java b/kdejava/koala/org/kde/koala/KDirLister.java
new file mode 100644
index 00000000..283340d9
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDirLister.java
@@ -0,0 +1,458 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ The dir lister deals with the kiojob used to list and update a directory
+ and has signals for the user of this class (e.g. konqueror view or
+ kdesktop) to create/destroy its items when asked.
+ This class is independent from the graphical representation of the dir
+ (icon container, tree view, ...) and it stores the items (as KFileItems).
+ Typical usage :
+
+ <li>
+ Create an instance.
+ </li>
+
+ <li>
+ Connect to at least update, clear, newItem, and deleteItem.
+ </li>
+
+ <li>
+ Call openURL - the signals will be called.
+ </li>
+
+ <li>
+ Reuse the instance when opening a new url (openURL).
+ </li>
+
+ <li>
+ Destroy the instance when not needed anymore (usually destructor).
+ </li>
+ Advanced usage : call openURL with _keep = true to list directories
+ without forgetting the ones previously read (e.g. for a tree view)
+ See {@link KDirListerSignals} for signals emitted by KDirLister
+ @author Michael Brade <brade@kde.org>
+
+ @short Helper class for the kiojob used to list and update a directory.
+
+*/
+public class KDirLister extends QObject {
+ protected KDirLister(Class dummy){super((Class) null);}
+ /**
+ Used by items() and itemsForDir() to specify whether you want
+ all items for a directory or just the filtered ones.
+ @short Used by items() and itemsForDir() to specify whether you want all items for a directory or just the filtered ones.
+ */
+ public static final int AllItems = 0;
+ public static final int FilteredItems = 1;
+
+ public static final int NONE = 0;
+ public static final int NAME_FILTER = 1;
+ public static final int MIME_FILTER = 2;
+ public static final int DOT_FILES = 4;
+ public static final int DIR_ONLY_MODE = 8;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create a directory lister.
+ @param _delayedMimeTypes if true, mime types will be fetched on demand. If false,
+ they will always be fetched immediately
+ @short Create a directory lister.
+ */
+ public KDirLister(boolean _delayedMimeTypes) {
+ super((Class) null);
+ newKDirLister(_delayedMimeTypes);
+ }
+ private native void newKDirLister(boolean _delayedMimeTypes);
+ public KDirLister() {
+ super((Class) null);
+ newKDirLister();
+ }
+ private native void newKDirLister();
+ /**
+ Run the directory lister on the given url.
+ This method causes KDirLister to emit _all_ the items of <code>_url</code>, in any case.
+ Depending on <code>_keep</code> either clear() or clear(KURL) will be
+ emitted first.
+ The newItems() signal may be emitted more than once to supply you
+ with KFileItems, up until the signal completed() is emitted
+ (and isFinished() returns true).
+ @param _url the directory URL.
+ @param _keep if true the previous directories aren't forgotten
+ (they are still watched by kdirwatch and their items
+ are kept for this KDirLister). This is useful for e.g.
+ a treeview.
+ @param _reload indicates wether to use the cache (false) or to reread the
+ directory from the disk.
+ Use only when opening a dir not yet listed by this lister
+ without using the cache. Otherwise use updateDirectory.
+ @return true if successful,
+ false otherwise (e.g. invalid <code>_url</code>)
+
+ @short Run the directory lister on the given url.
+ */
+ public native boolean openURL(KURL _url, boolean _keep, boolean _reload);
+ public native boolean openURL(KURL _url, boolean _keep);
+ public native boolean openURL(KURL _url);
+ /**
+ Stop listing all directories currently being listed.
+ Emits canceled() if there was at least one job running.
+ Emits canceled( KURL ) for each stopped job if
+ there are at least two dirctories being watched by KDirLister.
+ @short Stop listing all directories currently being listed.
+ */
+ public native void stop();
+ /**
+ Stop listing the given directory.
+ Emits canceled() if the killed job was the last running one.
+ Emits canceled( KURL ) for the killed job if
+ there are at least two directories being watched by KDirLister.
+ No signal is emitted if there was no job running for <code>_url.</code>
+ @param _url the directory URL
+ @short Stop listing the given directory.
+ */
+ public native void stop(KURL _url);
+ /**
+ Checks whether KDirWatch will automatically update directories. This is
+ enabled by default.
+ @return true if KDirWatch is used to automatically update directories.
+
+ @short Checks whether KDirWatch will automatically update directories.
+ */
+ public native boolean autoUpdate();
+ /**
+ Enable/disable automatic directory updating, when a directory changes
+ (using KDirWatch).
+ @param enable true to enable, false to disable
+ @short Enable/disable automatic directory updating, when a directory changes (using KDirWatch).
+ */
+ public native void setAutoUpdate(boolean enable);
+ /**
+ Check whether auto error handling is enabled.
+ If enabled, it will show an error dialog to the user when an
+ error occurs. It is turned on by default.
+ @return true if auto error handling is enabled, false otherwise
+
+ @short Check whether auto error handling is enabled.
+ @see #setAutoErrorHandlingEnabled
+ */
+ public native boolean autoErrorHandlingEnabled();
+ /**
+ Enable or disable auto error handling is enabled.
+ If enabled, it will show an error dialog to the user when an
+ error occurs. It is turned on by default.
+ @param enable true to enable auto error handling, false to disable
+ @param parent the parent widget for the error dialogs, can be 0 for
+ top-level
+ @short Enable or disable auto error handling is enabled.
+ @see #autoErrorHandlingEnabled
+ */
+ public native void setAutoErrorHandlingEnabled(boolean enable, QWidget parent);
+ /**
+ Checks whether hidden files (files beginning with a dot) will be
+ shown.
+ By default this option is disabled (hidden files will be not shown).
+ @return true if dot files are shown, false otherwise
+
+ @short Checks whether hidden files (files beginning with a dot) will be shown.
+ @see #setShowingDotFiles
+ */
+ public native boolean showingDotFiles();
+ /**
+ Changes the "is viewing dot files" setting.
+ Calls updateDirectory() if setting changed.
+ By default this option is disabled (hidden files will not be shown).
+ @param _showDotFiles true to enable showing hidden files, false to
+ disable
+ @short Changes the "is viewing dot files" setting.
+ @see #showingDotFiles
+ */
+ public native void setShowingDotFiles(boolean _showDotFiles);
+ /**
+ Checks whether the KDirLister only lists directories or all
+ files.
+ By default this option is disabled (all files will be shown).
+ @return true if setDirOnlyMode(true) was called
+
+ @short Checks whether the KDirLister only lists directories or all files.
+ */
+ public native boolean dirOnlyMode();
+ /**
+ Call this to list only directories.
+ By default this option is disabled (all files will be shown).
+ @param dirsOnly true to list only directories
+ @short Call this to list only directories.
+ */
+ public native void setDirOnlyMode(boolean dirsOnly);
+ /**
+ Returns the top level URL that is listed by this KDirLister.
+ It might be different from the one given with openURL() if there was a
+ redirection. If you called openURL() with <code>_keep</code> == true this is the
+ first url opened (e.g. in a treeview this is the root).
+ @return the url used by this instance to list the files.
+
+ @short Returns the top level URL that is listed by this KDirLister.
+ */
+ public native KURL url();
+ /**
+ Returns all URLs that are listed by this KDirLister. This is only
+ useful if you called openURL() with <code>_keep</code> == true, as it happens in a
+ treeview, for example. (Note that the base url is included in the list
+ as well, of course.)
+ @return the list of all listed URLs
+
+ @short Returns all URLs that are listed by this KDirLister.
+ */
+ public native ArrayList directories();
+ /**
+ Actually emit the changes made with setShowingDotFiles, setDirOnlyMode,
+ setNameFilter and setMimeFilter.
+ @short Actually emit the changes made with setShowingDotFiles, setDirOnlyMode, setNameFilter and setMimeFilter.
+ */
+ public native void emitChanges();
+ /**
+ Update the directory <code>_dir.</code> This method causes KDirLister to _only_ emit
+ the items of <code>_dir</code> that actually changed compared to the current state in the
+ cache and updates the cache.
+ The current implementation calls updateDirectory automatically for
+ local files, using KDirWatch (if autoUpdate() is true), but it might be
+ useful to force an update manually.
+ @param _dir the directory URL
+ @short Update the directory <code>_dir.</code>
+ */
+ public native void updateDirectory(KURL _dir);
+ /**
+ Returns true if no io operation is currently in progress.
+ @return true if finished, false otherwise
+
+ @short Returns true if no io operation is currently in progress.
+ */
+ public native boolean isFinished();
+ /**
+ Returns the file item of the URL.
+ @return the file item for url() itself (".")
+
+ @short Returns the file item of the URL.
+ */
+ public native KFileItem rootItem();
+ /**
+ Find an item by its URL.
+ @param _url the item URL
+ @return the pointer to the KFileItem
+
+ @short Find an item by its URL.
+ */
+ public native KFileItem findByURL(KURL _url);
+ public native KFileItem find(KURL _url);
+ /**
+ Find an item by its name.
+ @param name the item name
+ @return the pointer to the KFileItem
+
+ @short Find an item by its name.
+ */
+ public native KFileItem findByName(String name);
+ /**
+ Set a name filter to only list items matching this name, e.g. "*.cpp".
+ You can set more than one filter by separating them with whitespace, e.g
+ "*.cpp .h".
+ Note: the direcory is not automatically reloaded.
+ @param filter the new filter, null to disable filtering
+ @short Set a name filter to only list items matching this name, e.
+ @see #matchesFilter
+ */
+ public native void setNameFilter(String filter);
+ /**
+ Returns the current name filter, as set via setNameFilter()
+ @return the current name filter, can be null if filtering
+ is turned off
+
+ @short Returns the current name filter, as set via setNameFilter()
+ */
+ public native String nameFilter();
+ /**
+ Set mime-based filter to only list items matching the given mimetypes.
+ NOTE: setting the filter does not automatically reload direcory.
+ Also calling this function will not affect any named filter already set.
+ @param mimeList a list of mime-types.
+ @short Set mime-based filter to only list items matching the given mimetypes.
+ @see #clearMimeFilter
+ @see #matchesMimeFilter
+ */
+ public native void setMimeFilter(String[] mimeList);
+ /**
+ Filtering should be done with KFileFilter. This will be implemented in a later
+ revision of KDirLister. This method may be removed then.
+ Set mime-based exclude filter to only list items not matching the given mimetypes
+ NOTE: setting the filter does not automatically reload direcory.
+ Also calling this function will not affect any named filter already set.
+ @param mimeList a list of mime-types.
+ @short Filtering should be done with KFileFilter.
+ @see #clearMimeFilter
+ @see #matchesMimeFilter
+ */
+ public native void setMimeExcludeFilter(String[] mimeList);
+ /**
+ Clears the mime based filter.
+ @short Clears the mime based filter.
+ @see #setMimeFilter
+ */
+ public native void clearMimeFilter();
+ /**
+ Returns the list of mime based filters, as set via setMimeFilter().
+ @return the list of mime based filters. Empty, when no mime filter is set.
+
+ @short Returns the list of mime based filters, as set via setMimeFilter().
+ */
+ public native ArrayList mimeFilters();
+ /**
+ Checks whether <code>name</code> matches a filter in the list of name filters.
+ @return true if <code>name</code> matches a filter in the list,
+ otherwise false.
+
+ @short Checks whether <code>name</code> matches a filter in the list of name filters.
+ @see #setNameFilter
+ */
+ public native boolean matchesFilter(String name);
+ /**
+ Checks whether <code>mime</code> matches a filter in the list of mime types
+ @param mime the mimetype to find in the filter list.
+ @return true if <code>name</code> matches a filter in the list,
+ otherwise false.
+
+ @short Checks whether <code>mime</code> matches a filter in the list of mime types
+ @see #setMimeFilter#
+ */
+ public native boolean matchesMimeFilter(String mime);
+ /**
+ Pass the main window this object is associated with
+ this is used for caching authentication data
+ @param window the window to associate with, 0 to disassociate
+ @short Pass the main window this object is associated with this is used for caching authentication data
+ */
+ public native void setMainWindow(QWidget window);
+ /**
+ Returns the main window associated with this object.
+ @return the associated main window, or 0 if there is none
+
+ @short Returns the main window associated with this object.
+ */
+ public native QWidget mainWindow();
+ /**
+ Returns the items listed for the current url().
+ This method will NOT start listing a directory, you should only call
+ this when receiving the finished() signal.
+ The items in the KFileItemList are references to the items used
+ by KDirLister, so e.g. an item gets destroyed when the deleteItem()
+ signal is emitted.
+ @param which specifies whether the returned list will contain all entries
+ or only the ones that passed the nameFilter(), mimeFilter(),
+ etc. Note that the latter causes iteration over all the
+ items, filtering them. If this is too slow for you, use the
+ newItems() signal, sending out filtered items in chunks.
+ @return the items listed for the current url().
+
+ @short Returns the items listed for the current url().
+ */
+ public native ArrayList items(int which);
+ public native ArrayList items();
+ /**
+ Returns the items listed for the given <code>dir.</code>
+ This method will NOT start listing <code>dir</code>, you should only call
+ this when receiving the finished() signal.
+ The items in the KFileItemList are references to the items used
+ by KDirLister, so e.g. an item gets destroyed when the deleteItem()
+ signal is emitted.
+ @param dir specifies the url for which the items should be returned. This
+ is only useful if you use KDirLister with multiple URLs
+ i.e. using boolean keep = true in openURL().
+ @param which specifies whether the returned list will contain all entries
+ or only the ones that passed the nameFilter, mimeFilter, etc.
+ Note that the latter causes iteration over all the items,
+ filtering them. If this is too slow for you, use the
+ newItems() signal, sending out filtered items in chunks.
+ @return the items listed for <code>dir.</code>
+
+ @short Returns the items listed for the given <code>dir.</code>
+ */
+ public native ArrayList itemsForDir(KURL dir, int which);
+ public native ArrayList itemsForDir(KURL dir);
+ /**
+ Called for every new item before emitting newItems().
+ You may reimplement this method in a subclass to implement your own
+ filtering.
+ The default implementation filters out ".." and everything not matching
+ the name filter(s)
+ @return true if the item is "ok".
+ false if the item shall not be shown in a view, e.g.
+ files not matching a pattern *.cpp ( KFileItem.isHidden())
+
+ @short Called for every new item before emitting newItems().
+ @see #matchesFilter
+ @see #setNameFilter
+ */
+ protected native boolean matchesFilter(KFileItem arg1);
+ /**
+ Called for every new item before emitting newItems().
+ You may reimplement this method in a subclass to implement your own
+ filtering.
+ The default implementation filters out ".." and everything not matching
+ the name filter(s)
+ @return true if the item is "ok".
+ false if the item shall not be shown in a view, e.g.
+ files not matching a pattern *.cpp ( KFileItem.isHidden())
+
+ @short Called for every new item before emitting newItems().
+ @see #matchesMimeFilter
+ @see #setMimeFilter
+ */
+ protected native boolean matchesMimeFilter(KFileItem arg1);
+ /**
+ Called by the public matchesFilter() to do the
+ actual filtering. Those methods may be reimplemented to customize
+ filtering.
+ @param name the name to filter
+ @param filters a list of regular expressions for filtering
+ @short Called by the public matchesFilter() to do the actual filtering.
+ */
+ // bool doNameFilter(const QString& arg1,const QPtrList<QRegExp>& arg2); >>>> NOT CONVERTED
+ /**
+ Called by the public matchesMimeFilter() to do the
+ actual filtering. Those methods may be reimplemented to customize
+ filtering.
+ @param mime the mime type to filter
+ @param filters the list of mime types to filter
+ @short Called by the public matchesMimeFilter() to do the actual filtering.
+ */
+ protected native boolean doMimeFilter(String mime, String[] filters);
+ /**
+ @short
+ */
+ protected native boolean doMimeExcludeFilter(String mimeExclude, String[] filters);
+ /**
+ Checks if an url is malformed or not and displays an error message
+ if it is and autoErrorHandling is set to true.
+ @return true if url is valid, otherwise false.
+
+ @short Checks if an url is malformed or not and displays an error message if it is and autoErrorHandling is set to true.
+ */
+ protected native boolean validURL(KURL arg1);
+ /** Reimplement to customize error handling @short Reimplement to customize error handling
+ */
+ protected native void handleError(Job arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDirListerSignals.java b/kdejava/koala/org/kde/koala/KDirListerSignals.java
new file mode 100644
index 00000000..28302b85
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDirListerSignals.java
@@ -0,0 +1,135 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+
+public interface KDirListerSignals {
+ /**
+ Tell the view that we started to list <code>_url.</code> NOTE: this does _not_ imply that there
+ is really a job running! I.e. KDirLister.jobs() may return an empty list. In this case
+ the items are taken from the cache.
+ The view knows that openURL should start it, so it might seem useless,
+ but the view also needs to know when an automatic update happens.
+ @param _url the URL to list
+ @short Tell the view that we started to list <code>_url.</code>
+ */
+ void started(KURL _url);
+ /**
+ Tell the view that listing is finished. There are no jobs running anymore.
+ @short Tell the view that listing is finished.
+ */
+ void completed();
+ /**
+ Tell the view that the listing of the directory <code>_url</code> is finished.
+ There might be other running jobs left.
+ This signal is only emitted if KDirLister is watching more than one directory.
+ @param _url the directory URL
+ @short Tell the view that the listing of the directory <code>_url</code> is finished.
+ */
+ void completed(KURL _url);
+ /**
+ Tell the view that the user canceled the listing. No running jobs are left.
+ @short Tell the view that the user canceled the listing.
+ */
+ void canceled();
+ /**
+ Tell the view that the listing of the directory <code>_url</code> was canceled.
+ There might be other running jobs left.
+ This signal is only emitted if KDirLister is watching more than one directory.
+ @param _url the directory URL
+ @short Tell the view that the listing of the directory <code>_url</code> was canceled.
+ */
+ void canceled(KURL _url);
+ /**
+ Signal a redirection.
+ Only emitted if there's just one directory to list, i.e. most
+ probably openURL() has been called with <code>_keep</code> == <code>false.</code>
+ @param _url the new URL
+ @short Signal a redirection.
+ */
+ void redirection(KURL _url);
+ /**
+ Signal a redirection.
+ @param oldUrl the original URL
+ @param newUrl the new URL
+ @short Signal a redirection.
+ */
+ void redirection(KURL oldUrl, KURL newUrl);
+ /**
+ Signal to clear all items.
+ It must always be connected to this signal to avoid doubled items!
+ @short Signal to clear all items.
+ */
+ void clear();
+ /**
+ Signal to empty the directory <code>_url.</code>
+ It is only emitted if the lister is holding more than one directory.
+ @param _url the directory that will be emptied
+ @short Signal to empty the directory <code>_url.</code>
+ */
+ void clear(KURL _url);
+ /**
+ Signal new items.
+ @param items a list of new items
+ @short Signal new items.
+ */
+ void newItems(ArrayList items);
+ /**
+ Send a list of items filtered-out by mime-type.
+ @param items the list of filtered items
+ @short Send a list of items filtered-out by mime-type.
+ */
+ void itemsFilteredByMime(ArrayList items);
+ /**
+ Signal an item to remove.
+ ATTENTION: if <code>_fileItem</code> == rootItem() the directory this lister
+ is holding was deleted and you HAVE to release especially the
+ rootItem() of this lister, otherwise your app will CRASH!!
+ The clear() signals have been emitted already.
+ @param _fileItem the fileItem to delete
+ @short Signal an item to remove.
+ */
+ void deleteItem(KFileItem _fileItem);
+ /**
+ Signal an item to refresh (its mimetype/icon/name has changed).
+ Note: KFileItem.refresh has already been called on those items.
+ @param items the items to refresh
+ @short Signal an item to refresh (its mimetype/icon/name has changed).
+ */
+ void refreshItems(ArrayList items);
+ /**
+ Emitted to display information about running jobs.
+ Examples of message are "Resolving host", "Connecting to host...", etc.
+ @param msg the info message
+ @short Emitted to display information about running jobs.
+ */
+ void infoMessage(String msg);
+ /**
+ Progress signal showing the overall progress of the KDirLister.
+ This allows using a progress bar very easily. (see KProgress)
+ @param percent the progress in percent
+ @short Progress signal showing the overall progress of the KDirLister.
+ */
+ void percent(int percent);
+ /**
+ Emitted when we know the size of the jobs.
+ @param size the total size in bytes
+ @short Emitted when we know the size of the jobs.
+ */
+ void totalSize(long size);
+ /**
+ Regularly emitted to show the progress of this KDirLister.
+ @param size the processed size in bytes
+ @short Regularly emitted to show the progress of this KDirLister.
+ */
+ void processedSize(long size);
+ /**
+ Emitted to display information about the speed of the jobs.
+ @param bytes_per_second the speed in bytes/s
+ @short Emitted to display information about the speed of the jobs.
+ */
+ void speed(int bytes_per_second);
+}
diff --git a/kdejava/koala/org/kde/koala/KDirNotify.java b/kdejava/koala/org/kde/koala/KDirNotify.java
new file mode 100644
index 00000000..28c97604
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDirNotify.java
@@ -0,0 +1,50 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ An abstract class that receives notifications of added and removed files
+ in any directory, local or remote.
+ The information comes from the konqueror/kdesktop instance where the
+ operation was done, and can interest KDirListers, bookmark handlers, etc.
+ @short An abstract class that receives notifications of added and removed files in any directory, local or remote.
+
+*/
+public class KDirNotify extends DCOPObject {
+ protected KDirNotify(Class dummy){super((Class) null);}
+ /**
+ Notify that files have been added in <code>directory</code>
+ Note: this is ASYNC so that it can be used with a broadcast.
+ @param directory the directory that contains the new files
+ @short Notify that files have been added in <code>directory</code> Note: this is ASYNC so that it can be used with a broadcast.
+ */
+ // void FilesAdded(const KURL& arg1); >>>> NOT CONVERTED
+ /**
+ Notify that files have been deleted.
+ Note: this is ASYNC so that it can be used with a broadcast
+ @param fileList the files that have been deleted
+ @short Notify that files have been deleted.
+ */
+ // void FilesRemoved(const KURL::List& arg1); >>>> NOT CONVERTED
+ /**
+ Notify that files have been changed.
+ At the moment, this is only used for new icon, but it could be
+ used for size etc. as well.
+ Note: this is ASYNC so that it can be used with a broadcast.
+ @param fileList the list of changed files
+ @short Notify that files have been changed.
+ */
+ // void FilesChanged(const KURL::List& arg1); >>>> NOT CONVERTED
+ /**
+ Notify that a file has been renamed.
+ Note: this is ASYNC so that it can be used with a broadcast
+ @param src a list containing original names of the renamed files
+ @param dst a list of original names of the renamed files
+ @short Notify that a file has been renamed.
+ */
+ // void FileRenamed(const KURL& arg1,const KURL& arg2); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/KDirNotifyInterface.java b/kdejava/koala/org/kde/koala/KDirNotifyInterface.java
new file mode 100644
index 00000000..41e8cde3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDirNotifyInterface.java
@@ -0,0 +1,8 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+public interface KDirNotifyInterface {
+}
diff --git a/kdejava/koala/org/kde/koala/KDirOperator.java b/kdejava/koala/org/kde/koala/KDirOperator.java
new file mode 100644
index 00000000..337ebec2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDirOperator.java
@@ -0,0 +1,820 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import java.util.ArrayList;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ This widget works as a network transparent filebrowser. You specify a URL
+ to display and this url will be loaded via KDirLister. The user can
+ browse through directories, highlight and select files, delete or rename
+ files.
+ It supports different views, e.g. a detailed view (see KFileDetailView),
+ a simple icon view (see KFileIconView), a combination of two views,
+ separating directories and files ( KCombiView).
+ Additionally, a preview view is available (see KFilePreview), which can
+ show either a simple or detailed view and additionally a preview widget
+ (see setPreviewWidget()). KImageFilePreview is one implementation
+ of a preview widget, that displays previews for all supported filetypes
+ utilizing KIO.PreviewJob.
+ Currently, those classes don't support Drag&Drop out of the box -- there
+ you have to use your own view-classes. You can use some DnD-aware views
+ from Bj�n Sahlstr� <bjorn@kbear.org> until they will be integrated
+ into this library. See http://devel-home.kde.org/~pfeiffer/DnD-classes.tar.gz
+ This widget is the one used in the KFileDialog.
+ Basic usage is like this:
+ <pre>
+ KDirOperator op = new KDirOperator( KURL( "file:/home/gis" ), this );
+ // some signals you might be interested in
+ connect(op, SIGNAL("urlEntered(KURL)"),
+ SLOT("urlEntered(KURL)"));
+ connect(op, SIGNAL("fileHighlighted(const KFileItem )"),
+ SLOT("fileHighlighted(const KFileItem )"));
+ connect(op, SIGNAL("fileSelected(const KFileItem )"),
+ SLOT("fileSelected(const KFileItem )"));
+ connect(op, SIGNAL("finishedLoading()"),
+ SLOT("slotLoadingFinished()"));
+ op.readConfig( KGlobal.config(), "Your KDiroperator ConfigGroup" );
+ op.setView(KFile.Default);
+ </pre>
+ This will create a childwidget of 'this' showing the directory contents
+ of /home/gis in the default-view. The view is determined by the readConfig()
+ call, which will read the KDirOperator settings, the user left your program
+ with (and which you saved with op.writeConfig()).
+ See {@link KDirOperatorSignals} for signals emitted by KDirOperator
+ @author Stephan Kulow <coolo@kde.org>, Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short A widget for displaying files and browsing directories.
+
+*/
+public class KDirOperator extends QWidget {
+ protected KDirOperator(Class dummy){super((Class) null);}
+ /**
+ The various action types. These values can be or'd together
+ @short The various action types.
+ */
+ public static final int SortActions = 1;
+ public static final int ViewActions = 2;
+ public static final int NavActions = 4;
+ public static final int FileActions = 8;
+ public static final int AllActions = 15;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs the KDirOperator with no initial view. As the views are
+ configurable, call readConfig() to load the user's configuration
+ and then setView to explicitly set a view.
+ This constructor doesn't start loading the url, setView will do it.
+ @short Constructs the KDirOperator with no initial view.
+ */
+ public KDirOperator(KURL urlName, QWidget parent, String name) {
+ super((Class) null);
+ newKDirOperator(urlName,parent,name);
+ }
+ private native void newKDirOperator(KURL urlName, QWidget parent, String name);
+ public KDirOperator(KURL urlName, QWidget parent) {
+ super((Class) null);
+ newKDirOperator(urlName,parent);
+ }
+ private native void newKDirOperator(KURL urlName, QWidget parent);
+ public KDirOperator(KURL urlName) {
+ super((Class) null);
+ newKDirOperator(urlName);
+ }
+ private native void newKDirOperator(KURL urlName);
+ public KDirOperator() {
+ super((Class) null);
+ newKDirOperator();
+ }
+ private native void newKDirOperator();
+ /**
+ Enables/disables showing hidden files.
+ @short Enables/disables showing hidden files.
+ */
+ public native void setShowHiddenFiles(boolean s);
+ /**
+ @return true when hidden files are shown or false otherwise.
+
+ @short
+ */
+ public native boolean showHiddenFiles();
+ /**
+ Stops loading immediately. You don't need to call this, usually.
+ @short Stops loading immediately.
+ */
+ public native void closeLoading();
+ public native boolean close(boolean alsoDelete);
+ /**
+ Sets a filter like "*.cpp .h .o". Only files matching that filter
+ will be shown. Call updateDir() to apply it.
+ @short Sets a filter like " .
+ @see KDirLister#setNameFilter
+ @see #nameFilter
+ */
+ public native void setNameFilter(String filter);
+ /**
+ @return the current namefilter.
+
+ @short
+ @see #setNameFilter
+ */
+ public native String nameFilter();
+ /**
+ Sets a list of mimetypes as filter. Only files of those mimetypes
+ will be shown.
+ Example:
+ <pre>
+ ArrayList filter;
+ filter << "text/html" << "image/png" << "inode/directory";
+ dirOperator.setMimefilter( filter );
+ </pre>
+ Node: Without the mimetype inode/directory, only files would be shown.
+ Call updateDir() to apply it.
+ @short Sets a list of mimetypes as filter.
+ @see KDirLister#setMimeFilter
+ @see #mimeFilter
+ */
+ public native void setMimeFilter(String[] mimetypes);
+ /**
+ @return the current mime filter.
+
+ @short
+ */
+ public native ArrayList mimeFilter();
+ /**
+ Clears both the namefilter and mimetype filter, so that all files and
+ directories will be shown. Call updateDir() to apply it.
+ @short Clears both the namefilter and mimetype filter, so that all files and directories will be shown.
+ @see #setMimeFilter
+ @see #setNameFilter
+ */
+ public native void clearFilter();
+ /**
+ @return the current url
+
+ @short
+ */
+ public native KURL url();
+ /**
+ Sets a new url to list.
+ @param clearforward specifies whether the "forward" history should be cleared.
+ @param url the URL to set
+ @short Sets a new url to list.
+ */
+ public native void setURL(KURL url, boolean clearforward);
+ /**
+ Clears the current selection and attempts to set <code>filename</code>
+ the current file. filename is just the name, no path or url.
+ @short Clears the current selection and attempts to set <code>filename</code> the current file.
+ */
+ public native void setCurrentItem(String filename);
+ /**
+ Sets a new KFileView to be used for showing and browsing files.
+ Note: this will read the current url() to fill the view.
+ @short Sets a new KFileView to be used for showing and browsing files.
+ @see KFileView
+ @see KFileIconView
+ @see KFileDetailView
+ @see KCombiView
+ @see #view
+ */
+ public native void setView(KFileViewInterface view);
+ /**
+ @return the currently used view.
+
+ @short
+ @see #setView
+ */
+ public native KFileViewInterface view();
+ /**
+ Returns the widget of the current view. null if there is no view/widget.
+ (KFileView itself is not a widget.)
+ @short Returns the widget of the current view.
+ */
+ public native QWidget viewWidget();
+ /**
+ Sets one of the predefined fileviews
+ @short Sets one of the predefined fileviews
+ @see KFile#FileView
+ */
+ public native void setView(int view);
+ /**
+ Sets the way to sort files and directories.
+ @short Sets the way to sort files and directories.
+ */
+ public native void setSorting(int arg1);
+ /**
+ @return the current way of sorting files and directories
+
+ @short
+ */
+ public native int sorting();
+ /**
+ @return true if we are displaying the root directory of the current url
+
+ @short
+ */
+ public native boolean isRoot();
+ /**
+ @return the object listing the directory
+
+ @short
+ */
+ public native KDirLister dirLister();
+ /**
+ @return the progress widget, that is shown during directory listing.
+ You can for example reparent() it to put it into a statusbar.
+
+ @short
+ */
+ public native KProgress progressBar();
+ /**
+ Sets the listing/selection mode for the views, an OR'ed combination of
+
+ <li>
+ File
+ </li>
+
+ <li>
+ Directory
+ </li>
+
+ <li>
+ Files
+ </li>
+
+ <li>
+ ExistingOnly
+ </li>
+
+ <li>
+ LocalOnly
+ </li>
+ You cannot mix File and Files of course, as the former means
+ single-selection mode, the latter multi-selection.
+ @short Sets the listing/selection mode for the views, an OR'ed combination of
+ */
+ public native void setMode(int m);
+ /**
+ @return the listing/selection mode.
+
+ @short
+ */
+ public native int mode();
+ /**
+ Sets a preview-widget to be shown next to the file-view.
+ The ownership of <code>w</code> is transferred to KDirOperator, so don't
+ delete it yourself!
+ @short Sets a preview-widget to be shown next to the file-view.
+ */
+ public native void setPreviewWidget(QWidget w);
+ /**
+ @return a list of all currently selected items. If there is no view,
+ then 0L is returned.
+
+ @short
+ */
+ public native ArrayList selectedItems();
+ /**
+ @return true if <code>item</code> is currently selected, or false otherwise.
+
+ @short
+ */
+ public native boolean isSelected(KFileItem item);
+ /**
+ @return the number of directories in the currently listed url.
+ Returns 0 if there is no view.
+
+ @short
+ */
+ public native int numDirs();
+ /**
+ @return the number of files in the currently listed url.
+ Returns 0 if there is no view.
+
+ @short
+ */
+ public native int numFiles();
+ /**
+ @return a KCompletion object, containing all filenames and
+ directories of the current directory/URL.
+ You can use it to insert it into a KLineEdit or KComboBox
+ Note: it will only contain files, after prepareCompletionObjects()
+ has been called. It will be implicitly called from makeCompletion()
+ or makeDirCompletion()
+
+ @short
+ */
+ public native KCompletion completionObject();
+ /**
+ @return a KCompletion object, containing only all directories of the
+ current directory/URL.
+ You can use it to insert it into a KLineEdit or KComboBox
+ Note: it will only contain directories, after
+ prepareCompletionObjects() has been called. It will be implicitly
+ called from makeCompletion() or makeDirCompletion()
+
+ @short
+ */
+ public native KCompletion dirCompletionObject();
+ /**
+ an accessor to a collection of all available Actions. The actions
+ are static, they will be there all the time (no need to connect to
+ the signals KActionCollection.inserted() or removed().
+ There are the following actions:
+
+ <li>
+ popupMenu : an ActionMenu presenting a popupmenu with all actions
+ </li>
+
+ <li>
+ up : changes to the parent directory
+ </li>
+
+ <li>
+ back : goes back to the previous directory
+ </li>
+
+ <li>
+ forward : goes forward in the history
+ </li>
+
+ <li>
+ home : changes to the user's home directory
+ </li>
+
+ <li>
+ reload : reloads the current directory
+ </li>
+
+ <li>
+ separator : a separator
+ </li>
+
+ <li>
+ mkdir : opens a dialog box to create a directory
+ </li>
+
+ <li>
+ delete : deletes the selected files/directories
+ </li>
+
+ <li>
+ sorting menu : an ActionMenu containing all sort-options
+ </li>
+
+ <li>
+ by name : sorts by name
+ </li>
+
+ <li>
+ by date : sorts by date
+ </li>
+
+ <li>
+ by size : sorts by size
+ </li>
+
+ <li>
+ reversed : reverses the sort order
+ </li>
+
+ <li>
+ dirs first : sorts directories before files
+ </li>
+
+ <li>
+ case insensitive : sorts case insensitively
+ </li>
+
+ <li>
+ view menu : an ActionMenu containing all actions concerning the view
+ </li>
+
+ <li>
+ short view : shows a simple fileview
+ </li>
+
+ <li>
+ detailed view : shows a detailed fileview (dates, permissions ,...)
+ </li>
+
+ <li>
+ show hidden : shows hidden files
+ </li>
+
+ <li>
+ separate dirs : shows directories in a separate pane
+ </li>
+
+ <li>
+ preview : shows a preview next to the fileview
+ </li>
+
+ <li>
+ single : hides the separate view for directories or the preview
+ </li>
+
+ <li>
+ properties : shows a KPropertiesDialog for the selected files
+ </li>
+ The short and detailed view are in an exclusive group. The sort-by
+ actions are in an exclusive group as well. Also the "separate dirs",
+ "preview" and "single" actions are in an exclusive group.
+ You can e.g. use
+ <pre>
+ actionCollection().action( "up" ).plug( someToolBar );
+ </pre>
+ to add a button into a toolbar, which makes the dirOperator change to
+ its parent directory.
+ @return all available Actions
+
+ @short an accessor to a collection of all available Actions.
+ */
+ public native KActionCollection actionCollection();
+ /**
+ Sets the config object and the to be used group in KDirOperator. This
+ will be used to store the view's configuration via
+ KFileView.writeConfig() (and for KFileView.readConfig()).
+ If you don't set this, the views cannot save and restore their
+ configuration.
+ Usually you call this right after KDirOperator creation so that the view
+ instantiation can make use of it already.
+ Note that KDirOperator does NOT take ownership of that object (typically
+ it's KGlobal.config() anyway.
+ @short Sets the config object and the to be used group in KDirOperator.
+ @see #viewConfig
+ @see #viewConfigGroup
+ */
+ public native void setViewConfig(KConfig config, String group);
+ /**
+ Returns the KConfig object used for saving and restoring view's
+ configuration.
+ @return the KConfig object used for saving and restoring view's
+ configuration.
+
+ @short Returns the KConfig object used for saving and restoring view's configuration.
+ */
+ public native KConfig viewConfig();
+ /**
+ Returns the group name used for saving and restoring view's
+ configuration.
+ @return the group name used for saving and restoring view's
+ configuration.
+
+ @short Returns the group name used for saving and restoring view's configuration.
+ */
+ public native String viewConfigGroup();
+ /**
+ Reads the default settings for a view, i.e. the default KFile.FileView.
+ Also reads the sorting and whether hidden files should be shown.
+ Note: the default view will not be set - you have to call
+ <pre>
+ setView( KFile.Default )
+ </pre>
+ to apply it.
+ @short Reads the default settings for a view, i.
+ @see #setView
+ @see #setViewConfig
+ @see #writeConfig
+ */
+ public native void readConfig(KConfig arg1, String group);
+ public native void readConfig(KConfig arg1);
+ /**
+ Saves the current settings like sorting, simple or detailed view.
+ @short Saves the current settings like sorting, simple or detailed view.
+ @see #readConfig
+ @see #setViewConfig
+ */
+ public native void writeConfig(KConfig arg1, String group);
+ public native void writeConfig(KConfig arg1);
+ /**
+ This is a KFileDialog specific hack: we want to select directories with
+ single click, but not files. But as a generic class, we have to be able
+ to select files on single click as well.
+ This gives us the opportunity to do both.
+ The default is false, set it to true if you don't want files selected
+ with single click.
+ @short This is a KFileDialog specific hack: we want to select directories with single click, but not files.
+ */
+ public native void setOnlyDoubleClickSelectsFiles(boolean enable);
+ /**
+ @return whether files (not directories) should only be select()ed by
+ double-clicks.
+
+ @short
+ @see #setOnlyDoubleClickSelectsFiles
+ */
+ public native boolean onlyDoubleClickSelectsFiles();
+ /**
+ Creates the given directory/url. If it is a relative path,
+ it will be completed with the current directory.
+ If enterDirectory is true, the directory will be entered after a
+ successful operation. If unsuccessful, a messagebox will be presented
+ to the user.
+ @return true if the directory could be created.
+
+ @short Creates the given directory/url.
+ */
+ public native boolean mkdir(String directory, boolean enterDirectory);
+ public native boolean mkdir(String directory);
+ /**
+ Starts and returns a KIO.DeleteJob to delete the given <code>items.</code>
+ @param items the list of items to be deleted
+ @param ask specifies whether a confirmation dialog should be shown
+ @param showProgress passed to the DeleteJob to show a progress dialog
+ @short Starts and returns a KIO.DeleteJob to delete the given <code>items.</code>
+ */
+ public native DeleteJob del(ArrayList items, boolean ask, boolean showProgress);
+ public native DeleteJob del(ArrayList items, boolean ask);
+ public native DeleteJob del(ArrayList items);
+ /**
+ Starts and returns a KIO.DeleteJob to delete the given <code>items.</code>
+ @param items the list of items to be deleted
+ @param parent the parent widget used for the confirmation dialog
+ @param ask specifies whether a confirmation dialog should be shown
+ @param showProgress passed to the DeleteJob to show a progress dialog
+ @short Starts and returns a KIO.DeleteJob to delete the given <code>items.</code>
+ */
+ public native DeleteJob del(ArrayList items, QWidget parent, boolean ask, boolean showProgress);
+ public native DeleteJob del(ArrayList items, QWidget parent, boolean ask);
+ public native DeleteJob del(ArrayList items, QWidget parent);
+ /**
+ Clears the forward and backward history.
+ @short Clears the forward and backward history.
+ */
+ public native void clearHistory();
+ /**
+ When going up in the directory hierarchy, KDirOperator can highlight
+ the directory that was just left.
+ I.e. when you go from /home/gis/src to /home/gis, the item "src" will
+ be made the current item.
+ Default is off.
+ @short When going up in the directory hierarchy, KDirOperator can highlight the directory that was just left.
+ */
+ public native void setEnableDirHighlighting(boolean enable);
+ /**
+ Default is false.
+ @return whether the last directory will be made the current item
+ when going up in the directory hierarchy.
+
+ @short
+ */
+ public native boolean dirHighlighting();
+ /**
+ @return true if we are in directory-only mode, that is, no files are
+ shown.
+
+ @short
+ */
+ public native boolean dirOnlyMode();
+ /**
+ Sets up the action menu.
+ @param whichActions is an value of OR'd ActionTypes that controls which actions to show in the action menu
+ @short Sets up the action menu.
+ */
+ public native void setupMenu(int whichActions);
+ /**
+ Reimplemented - allow dropping of files if <code>b</code> is true
+ @param b true if the widget should allow dropping of files
+ @short Reimplemented - allow dropping of files if <code>b</code> is true
+ */
+ public native void setAcceptDrops(boolean b);
+ /**
+ Sets the options for dropping files.
+ @short Sets the options for dropping files.
+ @see KFileView#DropOptions
+ */
+ public native void setDropOptions(int options);
+ /**
+ Starts and returns a KIO.CopyJob to trash the given <code>items.</code>
+ @param items the list of items to be trashed
+ @param parent the parent widget used for the confirmation dialog
+ @param ask specifies whether a confirmation dialog should be shown
+ @param showProgress passed to the CopyJob to show a progress dialog
+ @short Starts and returns a KIO.CopyJob to trash the given <code>items.</code>
+ */
+ public native CopyJob trash(ArrayList items, QWidget parent, boolean ask, boolean showProgress);
+ public native CopyJob trash(ArrayList items, QWidget parent, boolean ask);
+ public native CopyJob trash(ArrayList items, QWidget parent);
+ /**
+ Goes one step back in the history and opens that url.
+ @short Goes one step back in the history and opens that url.
+ */
+ public native void back();
+ /**
+ Goes one step forward in the history and opens that url.
+ @short Goes one step forward in the history and opens that url.
+ */
+ public native void forward();
+ /**
+ Enters the home directory.
+ @short Enters the home directory.
+ */
+ public native void home();
+ /**
+ Goes one directory up from the current url.
+ @short Goes one directory up from the current url.
+ */
+ public native void cdUp();
+ /**
+ to update the view after changing the settings
+ @short to update the view after changing the settings
+ */
+ public native void updateDir();
+ /**
+ Re-reads the current url.
+ @short Re-reads the current url.
+ */
+ public native void rereadDir();
+ /**
+ Opens a dialog to create a new directory.
+ @short Opens a dialog to create a new directory.
+ */
+ public native void mkdir();
+ /**
+ Deletes the currently selected files/directories.
+ @short Deletes the currently selected files/directories.
+ */
+ public native void deleteSelected();
+ /**
+ Enables/disables actions that are selection dependent. Call this e.g.
+ when you are about to show a popup menu using some of KDirOperators
+ actions.
+ @short Enables/disables actions that are selection dependent.
+ */
+ public native void updateSelectionDependentActions();
+ /**
+ Tries to complete the given string (only completes files).
+ @short Tries to complete the given string (only completes files).
+ */
+ public native String makeCompletion(String arg1);
+ /**
+ Tries to complete the given string (only completes directores).
+ @short Tries to complete the given string (only completes directores).
+ */
+ public native String makeDirCompletion(String arg1);
+ /**
+ Trashes the currently selected files/directories.
+ @short Trashes the currently selected files/directories.
+ */
+ public native void trashSelected(int arg1, int arg2);
+ public static native boolean dirOnlyMode(int mode);
+ /**
+ A view factory for creating predefined fileviews. Called internally by setView
+ , but you can also call it directly. Reimplement this if you depend on self defined fileviews.
+ @param parent is the QWidget to be set as parent
+ @param view is the predefined view to be set, note: this can be several ones OR:ed together.
+ @return the created KFileView
+
+ @short A view factory for creating predefined fileviews.
+ @see KFileView
+ @see KCombiView
+ @see KFileDetailView
+ @see KFileIconView
+ @see KFilePreview
+ @see KFile#FileView
+ @see #setView
+ */
+ protected native KFileViewInterface createView(QWidget parent, int view);
+ /**
+ Sets a custom KDirLister to list directories.
+ @short Sets a custom KDirLister to list directories.
+ */
+ protected native void setDirLister(KDirLister lister);
+ protected native void resizeEvent(QResizeEvent arg1);
+ /**
+ Sets up all the actions. Called from the constructor, you usually
+ better not call this.
+ @short Sets up all the actions.
+ */
+ protected native void setupActions();
+ /**
+ Updates the sorting-related actions to comply with the current sorting
+ @short Updates the sorting-related actions to comply with the current sorting
+ @see #sorting
+ */
+ protected native void updateSortActions();
+ /**
+ Updates the view-related actions to comply with the current
+ KFile.FileView
+ @short Updates the view-related actions to comply with the current KFile.FileView
+ */
+ protected native void updateViewActions();
+ /**
+ Sets up the context-menu with all the necessary actions. Called from the
+ constructor, you usually don't need to call this.
+ @short Sets up the context-menu with all the necessary actions.
+ */
+ protected native void setupMenu();
+ /**
+ Synchronizes the completion objects with the entries of the
+ currently listed url.
+ Automatically called from makeCompletion() and
+ makeDirCompletion()
+ @short Synchronizes the completion objects with the entries of the currently listed url.
+ */
+ protected native void prepareCompletionObjects();
+ /**
+ Checks if there support from KIO.PreviewJob for the currently
+ shown files, taking mimeFilter() and nameFilter() into account
+ Enables/disables the preview-action accordingly.
+ @short Checks if there support from KIO.PreviewJob for the currently shown files, taking mimeFilter() and nameFilter() into account Enables/disables the preview-action accordingly.
+ */
+ protected native boolean checkPreviewSupport();
+ /**
+ Restores the normal cursor after showing the busy-cursor. Also hides
+ the progressbar.
+ @short Restores the normal cursor after showing the busy-cursor.
+ */
+ protected native void resetCursor();
+ /**
+ Called after setURL() to load the directory, update the history,
+ etc.
+ @short Called after setURL() to load the directory, update the history, etc.
+ */
+ protected native void pathChanged();
+ /**
+ Adds a new list of KFileItems to the view
+ (coming from KDirLister)
+ @short Adds a new list of KFileItems to the view (coming from KDirLister)
+ */
+ protected native void insertNewFiles(ArrayList newone);
+ /**
+ Removes the given KFileItem item from the view (usually called from
+ KDirLister).
+ @short Removes the given KFileItem item from the view (usually called from KDirLister).
+ */
+ protected native void itemDeleted(KFileItem arg1);
+ /**
+ Enters the directory specified by the given <code>item.</code>
+ @short Enters the directory specified by the given <code>item.</code>
+ */
+ protected native void selectDir(KFileItem item);
+ /**
+ Emits fileSelected( item )
+ @short Emits fileSelected( item )
+ */
+ protected native void selectFile(KFileItem item);
+ /**
+ Emits fileHighlighted( i )
+ @short Emits fileHighlighted( i )
+ */
+ protected native void highlightFile(KFileItem i);
+ /**
+ Called upon right-click to activate the popupmenu.
+ @short Called upon right-click to activate the popupmenu.
+ */
+ protected native void activatedMenu(KFileItem arg1, QPoint pos);
+ /**
+ Changes sorting to sort by name
+ @short Changes sorting to sort by name
+ */
+ protected native void sortByName();
+ /**
+ Changes sorting to sort by size
+ @short Changes sorting to sort by size
+ */
+ protected native void sortBySize();
+ /**
+ Changes sorting to sort by date
+ @short Changes sorting to sort by date
+ */
+ protected native void sortByDate();
+ /**
+ Changes sorting to reverse sorting
+ @short Changes sorting to reverse sorting
+ */
+ protected native void sortReversed();
+ /**
+ Toggles showing directories first / having them sorted like files.
+ @short Toggles showing directories first / having them sorted like files.
+ */
+ protected native void toggleDirsFirst();
+ /**
+ Toggles case sensitive / case insensitive sorting
+ @short Toggles case sensitive / case insensitive sorting
+ */
+ protected native void toggleIgnoreCase();
+ /**
+ Tries to make the given <code>match</code> as current item in the view and emits
+ completion( match )
+ @short Tries to make the given <code>match</code> as current item in the view and emits completion( match )
+ */
+ protected native void slotCompletionMatch(String match);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDirOperatorSignals.java b/kdejava/koala/org/kde/koala/KDirOperatorSignals.java
new file mode 100644
index 00000000..77a967ba
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDirOperatorSignals.java
@@ -0,0 +1,42 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import java.util.ArrayList;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+public interface KDirOperatorSignals {
+ void urlEntered(KURL arg1);
+ void updateInformation(int files, int dirs);
+ void completion(String arg1);
+ void finishedLoading();
+ /**
+ Emitted whenever the current fileview is changed, either by an explicit
+ call to setView() or by the user selecting a different view thru
+ the GUI.
+ @short Emitted whenever the current fileview is changed, either by an explicit call to setView() or by the user selecting a different view thru the GUI.
+ */
+ void viewChanged(KFileViewInterface newView);
+ /**
+ Emitted when a file is highlighted or generally the selection changes in
+ multiselection mode. In the latter case, <code>item</code> is null. You can access
+ the selected items with selectedItems().
+ @short Emitted when a file is highlighted or generally the selection changes in multiselection mode.
+ */
+ void fileHighlighted(KFileItem item);
+ void dirActivated(KFileItem item);
+ void fileSelected(KFileItem item);
+ /**
+ Emitted when files are dropped. Dropping files is disabled by
+ default. You need to enable it with setAcceptDrops()
+ @param item the item on which the drop occurred or 0.
+ @param event the drop event itself.
+ @param urls the urls that where dropped.
+ @short Emitted when files are dropped.
+ */
+ void dropped(KFileItem item, QDropEvent event, ArrayList urls);
+}
diff --git a/kdejava/koala/org/kde/koala/KDirSelectDialog.java b/kdejava/koala/org/kde/koala/KDirSelectDialog.java
new file mode 100644
index 00000000..3c219e20
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDirSelectDialog.java
@@ -0,0 +1,102 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ A pretty dialog for a KDirSelect control for selecting directories.
+ @author Michael Jarrett <michaelj@corel.com>
+
+ @short A pretty dialog for a KDirSelect control for selecting directories.
+ @see KFileDialog
+
+*/
+public class KDirSelectDialog extends KDialogBase {
+ protected KDirSelectDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ The constructor. Creates a dialog to select a directory (url).
+ @param startDir the directory, initially shown
+ @param localOnly unused. You can only select paths below the startDir
+ @param parent the parent for the dialog, usually null
+ @param name the QObject.name
+ @param modal if the dialog is modal or not
+ @short The constructor.
+ */
+ public KDirSelectDialog(String startDir, boolean localOnly, QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKDirSelectDialog(startDir,localOnly,parent,name,modal);
+ }
+ private native void newKDirSelectDialog(String startDir, boolean localOnly, QWidget parent, String name, boolean modal);
+ public KDirSelectDialog(String startDir, boolean localOnly, QWidget parent, String name) {
+ super((Class) null);
+ newKDirSelectDialog(startDir,localOnly,parent,name);
+ }
+ private native void newKDirSelectDialog(String startDir, boolean localOnly, QWidget parent, String name);
+ public KDirSelectDialog(String startDir, boolean localOnly, QWidget parent) {
+ super((Class) null);
+ newKDirSelectDialog(startDir,localOnly,parent);
+ }
+ private native void newKDirSelectDialog(String startDir, boolean localOnly, QWidget parent);
+ public KDirSelectDialog(String startDir, boolean localOnly) {
+ super((Class) null);
+ newKDirSelectDialog(startDir,localOnly);
+ }
+ private native void newKDirSelectDialog(String startDir, boolean localOnly);
+ public KDirSelectDialog(String startDir) {
+ super((Class) null);
+ newKDirSelectDialog(startDir);
+ }
+ private native void newKDirSelectDialog(String startDir);
+ public KDirSelectDialog() {
+ super((Class) null);
+ newKDirSelectDialog();
+ }
+ private native void newKDirSelectDialog();
+ /**
+ Returns the currently-selected URL, or a blank URL if none is selected.
+ @return The currently-selected URL, if one was selected.
+
+ @short Returns the currently-selected URL, or a blank URL if none is selected.
+ */
+ public native KURL url();
+ public native KFileTreeView view();
+ public native boolean localOnly();
+ /**
+ @return The path for the root node
+
+ @short
+ */
+ public native String startDir();
+ public native void setCurrentURL(KURL url);
+ /**
+ Creates a KDirSelectDialog, and returns the result.
+ @param startDir the directory, initially shown
+ The tree will display this directory and subdirectories of it.
+ @param localOnly unused. You can only select paths below the startDir
+ @param parent the parent widget to use for the dialog, or NULL to create a parent-less dialog
+ @param caption the caption to use for the dialog, or null for the default caption
+ @return The URL selected, or an empty URL if the user canceled
+ or no URL was selected.
+
+ @short Creates a KDirSelectDialog, and returns the result.
+ */
+ public static native KURL selectDirectory(String startDir, boolean localOnly, QWidget parent, String caption);
+ public static native KURL selectDirectory(String startDir, boolean localOnly, QWidget parent);
+ public static native KURL selectDirectory(String startDir, boolean localOnly);
+ public static native KURL selectDirectory(String startDir);
+ public static native KURL selectDirectory();
+ protected native void accept();
+ protected native void slotUser1();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDirSize.java b/kdejava/koala/org/kde/koala/KDirSize.java
new file mode 100644
index 00000000..21db1c56
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDirSize.java
@@ -0,0 +1,80 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ Computes a directory size (similar to "du", but doesn't give the same results
+ since we simply sum up the dir and file sizes, whereas du speaks disk blocks)
+ @short Computes a directory size (similar to "du", but doesn't give the same results since we simply sum up the dir and file sizes, whereas du speaks disk blocks)
+
+*/
+public class KDirSize extends Job {
+ protected KDirSize(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ @return the size we found
+
+ @short
+ */
+ public native long totalSize();
+ /**
+ @return the total number of files (counting symlinks to files, sockets
+ and character devices as files) in this directory and all sub-directories
+
+ @short
+ */
+ public native long totalFiles();
+ /**
+ @return the total number of sub-directories found (not including the
+ directory the search started from and treating symlinks to directories
+ as directories)
+
+ @short
+ */
+ public native long totalSubdirs();
+ /**
+ Asynchronous method. Connect to the result signal.
+ This one lists a single directory.
+ @short Asynchronous method.
+ */
+ public static native KDirSize dirSizeJob(KURL directory);
+ /**
+ Asynchronous method. Connect to the result signal.
+ This one lists the items from <code>lstItems.</code>
+ The reason we asks for items instead of just urls, is so that
+ we directly know if the item is a file or a directory,
+ and in case of a file, we already have its size.
+ @short Asynchronous method.
+ */
+ public static native KDirSize dirSizeJob(ArrayList lstItems);
+ /**
+ Synchronous method - you get the result as soon as
+ the call returns.
+ @short Synchronous method - you get the result as soon as the call returns.
+ */
+ public static native long dirSize(KURL directory);
+ public KDirSize(KURL directory) {
+ super((Class) null);
+ newKDirSize(directory);
+ }
+ private native void newKDirSize(KURL directory);
+ public KDirSize(ArrayList lstItems) {
+ super((Class) null);
+ newKDirSize(lstItems);
+ }
+ private native void newKDirSize(ArrayList lstItems);
+ /**
+ @short
+ */
+ protected native void setSync();
+ protected native void startNextJob(KURL url);
+ protected native void slotResult(Job job);
+ // void slotEntries(KIO::Job* arg1,const KIO::UDSEntryList& arg2); >>>> NOT CONVERTED
+ protected native void processList();
+}
diff --git a/kdejava/koala/org/kde/koala/KDirWatch.java b/kdejava/koala/org/kde/koala/KDirWatch.java
new file mode 100644
index 00000000..9a94f052
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDirWatch.java
@@ -0,0 +1,238 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.Calendar;
+import org.kde.qt.QObject;
+
+/**
+
+ Watch directories and files for changes.
+ The watched directories or files don't have to exist yet.
+ When a watched directory is changed, i.e. when files therein are
+ created or deleted, KDirWatch will emit the signal dirty().
+ When a watched, but previously not existing directory gets created,
+ KDirWatch will emit the signal created().
+ When a watched directory gets deleted, KDirWatch will emit the
+ signal deleted(). The directory is still watched for new
+ creation.
+ When a watched file is changed, i.e. attributes changed or written
+ to, KDirWatch will emit the signal dirty().
+ Scanning of particular directories or files can be stopped temporarily
+ and restarted. The whole class can be stopped and restarted.
+ Directories and files can be added/removed from the list in any state.
+ The implementation uses the FAM service when available;
+ if FAM is not available, the DNOTIFY functionality is used on LINUX.
+ As a last resort, a regular polling for change of modification times
+ is done; the polling interval is a global config option:
+ DirWatch/PollInterval and DirWatch/NFSPollInterval for NFS mounted
+ directories.
+ See {@link KDirWatchSignals} for signals emitted by KDirWatch
+ @author Sven Radej <sven@lisa.exp.univie.ac.at>
+
+ @short Class for watching directory and file changes.
+ @see #self
+
+*/
+public class KDirWatch extends QObject {
+ protected KDirWatch(Class dummy){super((Class) null);}
+ public static final int FAM = 0;
+ public static final int DNotify = 1;
+ public static final int Stat = 2;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor.
+ Scanning begins immediately when a dir/file watch
+ is added.
+ @param parent the parent of the QObject (or 0 for parent-less KDataTools)
+ @param name the name of the QObject, can be 0
+ @short Constructor.
+ */
+ public KDirWatch(QObject parent, String name) {
+ super((Class) null);
+ newKDirWatch(parent,name);
+ }
+ private native void newKDirWatch(QObject parent, String name);
+ public KDirWatch(QObject parent) {
+ super((Class) null);
+ newKDirWatch(parent);
+ }
+ private native void newKDirWatch(QObject parent);
+ public KDirWatch() {
+ super((Class) null);
+ newKDirWatch();
+ }
+ private native void newKDirWatch();
+ /**
+ Adds a directory to be watched.
+ The directory does not have to exist. When <code>watchFiles</code> is
+ false (the default), the signals dirty(), created(), deleted()
+ can be emitted, all for the watched directory.
+ When <code>watchFiles</code> is true, all files in the watched directory
+ are watched for changes, too. Thus, the signals dirty(),
+ created(), deleted() can be emitted.
+ @param path the path to watch
+ @param watchFiles if true, the KDirWatch will also watch files - NOT IMPLEMENTED YET
+ @param recursive if true, all sub directories are also watched - NOT IMPLEMENTED YET
+ @short Adds a directory to be watched.
+ */
+ public native void addDir(String path, boolean watchFiles, boolean recursive);
+ public native void addDir(String path, boolean watchFiles);
+ public native void addDir(String path);
+ /**
+ Adds a file to be watched.
+ @param file the file to watch
+ @short Adds a file to be watched.
+ */
+ public native void addFile(String file);
+ /**
+ Returns the time the directory/file was last changed.
+ @param path the file to check
+ @return the date of the last modification
+
+ @short Returns the time the directory/file was last changed.
+ */
+ public native Calendar ctime(String path);
+ /**
+ Removes a directory from the list of scanned directories.
+ If specified path is not in the list this does nothing.
+ @param path the path of the dir to be removed from the list
+ @short Removes a directory from the list of scanned directories.
+ */
+ public native void removeDir(String path);
+ /**
+ Removes a file from the list of watched files.
+ If specified path is not in the list this does nothing.
+ @param file the file to be removed from the list
+ @short Removes a file from the list of watched files.
+ */
+ public native void removeFile(String file);
+ /**
+ Stops scanning the specified path.
+ The <code>path</code> is not deleted from the interal just, it is just skipped.
+ Call this function when you perform an huge operation
+ on this directory (copy/move big files or many files). When finished,
+ call restartDirScan(path).
+ @param path the path to skip
+ @return true if the <code>path</code> is being watched, otherwise false
+
+ @short Stops scanning the specified path.
+ @see #restartDirScanning
+ */
+ public native boolean stopDirScan(String path);
+ /**
+ Restarts scanning for specified path.
+ Resets ctime. It doesn't notify
+ the change (by emitted a signal), since the ctime value is reset.
+ Call it when you are finished with big operations on that path,
+ <b>and</b> when <b>you</b> have refreshed that path.
+ @param path the path to restart scanning
+ @return true if the <code>path</code> is being watched, otherwise false
+
+ @short Restarts scanning for specified path.
+ @see #stopDirScanning
+ */
+ public native boolean restartDirScan(String path);
+ /**
+ Starts scanning of all dirs in list.
+ @param notify If true, all changed directories (since
+ stopScan() call) will be notified for refresh. If notify is
+ false, all ctimes will be reset (except those who are stopped,
+ but only if <code>skippedToo</code> is false) and changed dirs won't be
+ notified. You can start scanning even if the list is
+ empty. First call should be called with <code>false</code> or else all
+ directories
+ in list will be notified.
+ @param skippedToo if true, the skipped directoris (scanning of which was
+ stopped with stopDirScan() ) will be reset and notified
+ for change. Otherwise, stopped directories will continue to be
+ unnotified.
+ @short Starts scanning of all dirs in list.
+ */
+ public native void startScan(boolean notify, boolean skippedToo);
+ public native void startScan(boolean notify);
+ public native void startScan();
+ /**
+ Stops scanning of all directories in internal list.
+ The timer is stopped, but the list is not cleared.
+ @short Stops scanning of all directories in internal list.
+ */
+ public native void stopScan();
+ /**
+ Is scanning stopped?
+ After creation of a KDirWatch instance, this is false.
+ @return true when scanning stopped
+
+ @short Is scanning stopped? After creation of a KDirWatch instance, this is false.
+ */
+ public native boolean isStopped();
+ /**
+ Check if a directory is being watched by this KDirWatch instance
+ @param path the directory to check
+ @return true if the directory is being watched
+
+ @short Check if a directory is being watched by this KDirWatch instance
+ */
+ public native boolean contains(String path);
+ /**
+ Emits created().
+ @param path the path of the file or directory
+ @short Emits created().
+ */
+ public native void setCreated(String path);
+ /**
+ Emits dirty().
+ @param path the path of the file or directory
+ @short Emits dirty().
+ */
+ public native void setDirty(String path);
+ /**
+ Emits deleted().
+ @param path the path of the file or directory
+ @short Emits deleted().
+ */
+ public native void setDeleted(String path);
+ /**
+ Returns the preferred internal method to
+ watch for changes.
+ @short Returns the preferred internal method to watch for changes.
+ */
+ public native int internalMethod();
+ /**
+ Dump statistic information about all KDirWatch instances.
+ This checks for consistency, too.
+ @short Dump statistic information about all KDirWatch instances.
+ */
+ public static native void statistics();
+ /**
+ The KDirWatch instance usually globally used in an application.
+ It is automatically deleted when the application exits.
+ However, you can create an arbitrary number of KDirWatch instances
+ aside from this one - for those you have to take care of memory management.
+ This function returns an instance of KDirWatch. If there is none, it
+ will be created.
+ @return a KDirWatch instance
+
+ @short The KDirWatch instance usually globally used in an application.
+ */
+ public static native KDirWatch self();
+ /**
+ Returns true if there is an instance of KDirWatch.
+ @return true if there is an instance of KDirWatch.
+
+ @short Returns true if there is an instance of KDirWatch.
+ @see KDirWatch#self
+ */
+ public static native boolean exists();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDirWatchSignals.java b/kdejava/koala/org/kde/koala/KDirWatchSignals.java
new file mode 100644
index 00000000..23f6a6a3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDirWatchSignals.java
@@ -0,0 +1,36 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.Calendar;
+
+public interface KDirWatchSignals {
+ /**
+ Emitted when a watched object is changed.
+ For a directory this signal is emitted when files
+ therein are created or deleted.
+ For a file this signal is emitted when its size or attributes change.
+ When you watch a directory, changes in the size or attributes of
+ contained files may or may not trigger this signal to be emitted
+ depending on which backend is used by KDirWatch.
+ The new ctime is set before the signal is emitted.
+ @param path the path of the file or directory
+ @short Emitted when a watched object is changed.
+ */
+ void dirty(String path);
+ /**
+ Emitted when a file or directory is created.
+ @param path the path of the file or directory
+ @short Emitted when a file or directory is created.
+ */
+ void created(String path);
+ /**
+ Emitted when a file or directory is deleted.
+ The object is still watched for new creation.
+ @param path the path of the file or directory
+ @short Emitted when a file or directory is deleted.
+ */
+ void deleted(String path);
+}
diff --git a/kdejava/koala/org/kde/koala/KDiskFreeSp.java b/kdejava/koala/org/kde/koala/KDiskFreeSp.java
new file mode 100644
index 00000000..32efa15a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDiskFreeSp.java
@@ -0,0 +1,57 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QObject;
+
+/**
+
+ This class parses the output of "df" to find the disk usage
+ information for a given partition (mount point).
+ See {@link KDiskFreeSpSignals} for signals emitted by KDiskFreeSp
+ @short This class parses the output of "df" to find the disk usage information for a given partition (mount point).
+
+*/
+public class KDiskFreeSp extends QObject {
+ protected KDiskFreeSp(Class dummy){super((Class) null);}
+ public KDiskFreeSp(QObject parent, String name) {
+ super((Class) null);
+ newKDiskFreeSp(parent,name);
+ }
+ private native void newKDiskFreeSp(QObject parent, String name);
+ public KDiskFreeSp(QObject parent) {
+ super((Class) null);
+ newKDiskFreeSp(parent);
+ }
+ private native void newKDiskFreeSp(QObject parent);
+ public KDiskFreeSp() {
+ super((Class) null);
+ newKDiskFreeSp();
+ }
+ private native void newKDiskFreeSp();
+ /**
+ Call this to fire a search on the disk usage information
+ for <code>mountPoint.</code> foundMountPoint will be emitted
+ if this mount point is found, with the info requested.
+ done is emitted in any case.
+ @short Call this to fire a search on the disk usage information for <code>mountPoint.</code>
+ */
+ public native int readDF(String mountPoint);
+ /**
+ Call this to fire a search on the disk usage information
+ for the mount point containing <code>path.</code>
+ foundMountPoint will be emitted
+ if this mount point is found, with the info requested.
+ done is emitted in any case.
+ @short Call this to fire a search on the disk usage information for the mount point containing <code>path.</code>
+ */
+ public static native KDiskFreeSp findUsageInfo(String path);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDiskFreeSpSignals.java b/kdejava/koala/org/kde/koala/KDiskFreeSpSignals.java
new file mode 100644
index 00000000..7c2ee803
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDiskFreeSpSignals.java
@@ -0,0 +1,11 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+public interface KDiskFreeSpSignals {
+ void foundMountPoint(String mountPoint, long kBSize, long kBUsed, long kBAvail);
+ void foundMountPoint(long arg1, long arg2, long arg3, String arg4);
+ void done();
+}
diff --git a/kdejava/koala/org/kde/koala/KDockArea.java b/kdejava/koala/org/kde/koala/KDockArea.java
new file mode 100644
index 00000000..6f39e9e9
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDockArea.java
@@ -0,0 +1,64 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QDomElement;
+import org.kde.qt.QWidget;
+
+/**
+ See {@link KDockAreaSignals} for signals emitted by KDockArea
+*/
+public class KDockArea extends QWidget {
+ protected KDockArea(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KDockArea(QWidget parent, String name) {
+ super((Class) null);
+ newKDockArea(parent,name);
+ }
+ private native void newKDockArea(QWidget parent, String name);
+ public KDockArea(QWidget parent) {
+ super((Class) null);
+ newKDockArea(parent);
+ }
+ private native void newKDockArea(QWidget parent);
+ public KDockArea() {
+ super((Class) null);
+ newKDockArea();
+ }
+ private native void newKDockArea();
+ public native KDockManager manager();
+ public native void setMainDockWidget(KDockWidget arg1);
+ public native KDockWidget getMainDockWidget();
+ public native KDockWidget createDockWidget(String name, QPixmap pixmap, QWidget parent, String strCaption, String strTabPageLabel);
+ public native KDockWidget createDockWidget(String name, QPixmap pixmap, QWidget parent, String strCaption);
+ public native KDockWidget createDockWidget(String name, QPixmap pixmap, QWidget parent);
+ public native KDockWidget createDockWidget(String name, QPixmap pixmap);
+ public native void writeDockConfig(QDomElement base);
+ public native void readDockConfig(QDomElement base);
+ public native void writeDockConfig(KConfig c, String group);
+ public native void writeDockConfig(KConfig c);
+ public native void writeDockConfig();
+ public native void readDockConfig(KConfig c, String group);
+ public native void readDockConfig(KConfig c);
+ public native void readDockConfig();
+ public native void activateDock();
+ public native QPopupMenu dockHideShowMenu();
+ public native void makeDockVisible(KDockWidget dock);
+ public native void makeDockInvisible(KDockWidget dock);
+ public native void makeWidgetDockVisible(QWidget widget);
+ public native void resizeEvent(QResizeEvent arg1);
+ protected native void slotDockWidgetUndocked();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDockAreaSignals.java b/kdejava/koala/org/kde/koala/KDockAreaSignals.java
new file mode 100644
index 00000000..8fb724cd
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDockAreaSignals.java
@@ -0,0 +1,18 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QDomElement;
+
+public interface KDockAreaSignals {
+ /**
+ Signals a certain dockwidget is undocked now.
+ @short Signals a certain dockwidget is undocked now.
+ */
+ void dockWidgetHasUndocked(KDockWidget arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KDockMainWindow.java b/kdejava/koala/org/kde/koala/KDockMainWindow.java
new file mode 100644
index 00000000..0809f81c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDockMainWindow.java
@@ -0,0 +1,221 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDomElement;
+
+/**
+
+ A special kind of KMainWindow that is able to have dockwidget child widgets (and member of the dockwidget class set).
+ The main widget should be a KDockWidget where other KDockWidget can be docked to
+ the left, right, top, bottom or to the middle.
+ Note: dock to the middle means to drop on a dockwidget and to unite them to a new widget, a tab control.
+ Furthermore, the KDockMainWindow has got the KDockManager and some data about the dock states.
+ If you've got some dockwidgets, you can dock them to the dockmainwindow to initialize a start scene:
+ Here an example:
+ <pre>
+ DockApplication.DockApplication( String name)
+ {
+ ...
+ KDockWidget mainDock;
+ mainDock = createDockWidget( "Falk's MainDockWidget", mainPixmap, null, "main_dock_widget");
+ AnyContentsWidget cw = new AnyContentsWidget( mainDock);
+ mainDock.setWidget( cw);
+ // allow others to dock to the 4 sides
+ mainDock.setDockSite(KDockWidget.DockCorner);
+ // forbit docking abilities of mainDock itself
+ mainDock.setEnableDocking(KDockWidget.DockNone);
+ setView( mainDock); // central widget in a KDE mainwindow
+ setMainDockWidget( mainDock); // master dockwidget
+ ...
+ KDockWidget dockLeft;
+ dockLeft = createDockWidget( "Intially left one", anyOtherPixmap, null, i18n("The left dockwidget"));
+ AnotherWidget aw = new AnotherWidget( dockLeft);
+ dockLeft.setWidget( aw);
+ dockLeft.manualDock( mainDock, // dock target
+ KDockWidget.DockLeft, // dock site
+ 20 ); // relation target/this (in percent)
+ ...
+ </pre>
+ Docking is fully dynamic at runtime. That means you can always move dockwidgets via drag and drop.
+ And last but not least you can use the popupmenu for showing or hiding any controlled dockwidget
+ of this class and insert it to your main menu bar or anywhere else.
+ See {@link KDockMainWindowSignals} for signals emitted by KDockMainWindow
+ @author Max Judin (documentation: Falk Brettschneider).
+
+ @short A special kind of KMainWindow that is able to have dockwidget child widgets (and member of the dockwidget class set).
+
+*/
+public class KDockMainWindow extends KMainWindow {
+ protected KDockMainWindow(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a dockmainwindow. It calls its base class constructor and does additional things concerning
+ to the dock stuff:
+
+ <li>
+ information about the dock state of this' children gets initialized
+ </li>
+
+ <li>
+ a dockmanager is created...
+ </li>
+
+ <li>
+ ...and gets initialized
+ </li>
+
+ <li>
+ the main dockwidget is set to 0
+ </li>
+ @param parent Parent widget for the dock main widget
+ @param name internal object name
+ @param f Qt.WidgetFlags widget flags
+ @short Constructs a dockmainwindow.
+ */
+ public KDockMainWindow(QWidget parent, String name, int f) {
+ super((Class) null);
+ newKDockMainWindow(parent,name,f);
+ }
+ private native void newKDockMainWindow(QWidget parent, String name, int f);
+ public KDockMainWindow(QWidget parent, String name) {
+ super((Class) null);
+ newKDockMainWindow(parent,name);
+ }
+ private native void newKDockMainWindow(QWidget parent, String name);
+ public KDockMainWindow(QWidget parent) {
+ super((Class) null);
+ newKDockMainWindow(parent);
+ }
+ private native void newKDockMainWindow(QWidget parent);
+ public KDockMainWindow() {
+ super((Class) null);
+ newKDockMainWindow();
+ }
+ private native void newKDockMainWindow();
+ /**
+ Returns the dockmanager of this. (see KDockManager)
+ @return pointer to the wanted dockmanager
+
+ @short Returns the dockmanager of this.
+ */
+ public native KDockManager manager();
+ /**
+ Sets a new main dockwidget.
+ Additionally, the toolbar is re-initialized.
+ @param dockwidget dockwidget that become the new main dockwidget
+ @short Sets a new main dockwidget.
+ */
+ public native void setMainDockWidget(KDockWidget dockwidget);
+ /**
+ Returns the main dockwidget.
+ @return pointer to the main dockwidget
+
+ @short Returns the main dockwidget.
+ */
+ public native KDockWidget getMainDockWidget();
+ /**
+ This is one of the most important methods!
+ The KDockMainWindow creates a new dockwidget object here that usually should encapsulate the user's widget.
+ The new dockwidget is automatically taken under control by the dockmanager of the dockmainwindow.
+ @param name QObject name (default dockwidget caption)
+ @param pixmap window icon (for instance shown when docked as tabwidget entry)
+ @param parent parent widget for the new dockwidget
+ @param strCaption window title (shown when toplevel)
+ @param strTabPageLabel title of the tab page (visible when in tab page mode), if it is "", only the icon will be shown; if it is null, the label is set to strCaption
+ @return a pointer to the new created dockwidget
+
+ @short This is one of the most important methods! The KDockMainWindow creates a new dockwidget object here that usually should encapsulate the user's widget.
+ */
+ public native KDockWidget createDockWidget(String name, QPixmap pixmap, QWidget parent, String strCaption, String strTabPageLabel);
+ public native KDockWidget createDockWidget(String name, QPixmap pixmap, QWidget parent, String strCaption);
+ public native KDockWidget createDockWidget(String name, QPixmap pixmap, QWidget parent);
+ public native KDockWidget createDockWidget(String name, QPixmap pixmap);
+ /**
+ Saves the current dock window layout into a DOM tree below the given element.
+ @short Saves the current dock window layout into a DOM tree below the given element.
+ */
+ public native void writeDockConfig(QDomElement base);
+ /**
+ Reads the current dock window layout from a DOM tree below the given element.
+ @short Reads the current dock window layout from a DOM tree below the given element.
+ */
+ public native void readDockConfig(QDomElement base);
+ /**
+ It writes the current dock state in the given section of KConfig.
+ @param c KDE class for saving configurations
+ @param group name of section to write to
+ @short It writes the current dock state in the given section of KConfig.
+ */
+ public native void writeDockConfig(KConfig c, String group);
+ public native void writeDockConfig(KConfig c);
+ public native void writeDockConfig();
+ /**
+ It reads the current dock state from the given section of KConfig.
+ @param c KDE class for saving configurations
+ @param group name of section to read from
+ @short It reads the current dock state from the given section of KConfig.
+ */
+ public native void readDockConfig(KConfig c, String group);
+ public native void readDockConfig(KConfig c);
+ public native void readDockConfig();
+ /**
+ It runs through all dockwidgets which are under control of the dockmanager and calls show() for every
+ encapsulated widget and show() for the dockwidget itself if it is not in tab mode.
+ Additionally, if the main dockwidget is not a QDialog, it will be shown.
+ @short It runs through all dockwidgets which are under control of the dockmanager and calls show() for every encapsulated widget and show() for the dockwidget itself if it is not in tab mode.
+ */
+ public native void activateDock();
+ /**
+ Returns a popup menu that contains entries for all controlled dockwidgets making hiding and showing
+ them possible.
+ @return the wanted popup menu
+
+ @short Returns a popup menu that contains entries for all controlled dockwidgets making hiding and showing them possible.
+ */
+ public native QPopupMenu dockHideShowMenu();
+ /**
+ This method shows the given dockwidget.
+ The clue is that it also considers the dockwidget could be a tab page
+ and must set to be the activate one.
+ @param dock the dockwidget that is to be shown
+ @short This method shows the given dockwidget.
+ */
+ public native void makeDockVisible(KDockWidget dock);
+ /**
+ This method hides the given dockwidget.
+ @param dock the dockwidget that is to be shown
+ @short This method hides the given dockwidget.
+ */
+ public native void makeDockInvisible(KDockWidget dock);
+ /**
+ This is an overloaded member function, provided for convenience.
+ It differs from the above function only in what argument(s) it accepts.
+ @short This is an overloaded member function, provided for convenience.
+ */
+ public native void makeWidgetDockVisible(QWidget widget);
+ /**
+ This method calls the base class method.
+ If the given widget inherits KDockWidget, applyToWidget(this) is called.
+ @param widget any widget that should become the main view
+ @short This method calls the base class method.
+ */
+ public native void setView(QWidget widget);
+ /**
+ Called whenever one of the dockwidgets of this has been undocked.
+ @short Called whenever one of the dockwidgets of this has been undocked.
+ */
+ protected native void slotDockWidgetUndocked();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDockMainWindowSignals.java b/kdejava/koala/org/kde/koala/KDockMainWindowSignals.java
new file mode 100644
index 00000000..cc5c3649
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDockMainWindowSignals.java
@@ -0,0 +1,17 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDomElement;
+
+public interface KDockMainWindowSignals {
+ /**
+ Signals a certain dockwidget is undocked now.
+ @short Signals a certain dockwidget is undocked now.
+ */
+ void dockWidgetHasUndocked(KDockWidget arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KDockManager.java b/kdejava/koala/org/kde/koala/KDockManager.java
new file mode 100644
index 00000000..181c589b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDockManager.java
@@ -0,0 +1,211 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDomElement;
+import org.kde.qt.QObject;
+
+/**
+
+ The manager that knows all dockwidgets and handles the dock process (and member of the dockwidget class set).
+ More or less a helper class for the KDockWidget class set but of interest for some functionality
+ that can be called within a KDockMainWindow or a KDockWidget .
+ An important feature is the ability to read or save the current state of all things concerning to
+ dockwidgets to KConfig .
+ The dockmanager is also often used when a certain dockwidget or a child of such dockwidget must be found.
+ See {@link KDockManagerSignals} for signals emitted by KDockManager
+ @author Max Judin (documentation: Falk Brettschneider).
+
+ @short The manager that knows all dockwidgets and handles the dock process (and member of the dockwidget class set).
+
+*/
+public class KDockManager extends QObject {
+ protected KDockManager(Class dummy){super((Class) null);}
+ public static final int Unknown = 0;
+ public static final int WrapExistingWidgetsOnly = 1;
+ public static final int RestoreAllDockwidgets = 2;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a dockmanager. Some initialization happen:
+
+ <li>
+ It installs an event filter for the main window,
+ </li>
+
+ <li>
+ a control list for dock objects
+ </li>
+
+ <li>
+ a control list for menu items concerning to menus provided by the dockmanager
+ </li>
+
+ <li>
+ Some state variables are set
+ </li>
+ @param mainWindow the main window controlled by this
+ @param name the internal QOject name
+ @short Constructs a dockmanager.
+ */
+ public KDockManager(QWidget mainWindow, String name) {
+ super((Class) null);
+ newKDockManager(mainWindow,name);
+ }
+ private native void newKDockManager(QWidget mainWindow, String name);
+ public KDockManager(QWidget mainWindow) {
+ super((Class) null);
+ newKDockManager(mainWindow);
+ }
+ private native void newKDockManager(QWidget mainWindow);
+ public native void dumpDockWidgets();
+ /**
+ Saves the current state of the dockmanager and of all controlled widgets.
+ State means here to save the geometry, visibility, parents, internal object names, orientation,
+ separator positions, dockwidget-group information, tab widget states (if it is a tab group) and
+ last but not least some necessary things for recovering the dockmainwindow state.
+ @param c the KDE configuration saver
+ @param group the name of the section in KConfig
+ @short Saves the current state of the dockmanager and of all controlled widgets.
+ */
+ public native void writeConfig(KConfig c, String group);
+ public native void writeConfig(KConfig c);
+ public native void writeConfig();
+ /**
+ Like writeConfig but reads the whole stuff in.
+ In order to restore a window configuration
+ from a config file, it looks up widgets by name
+ (QObject.name) in the childDock variable of
+ KDockManager. This list in turn contains all
+ KDockWidgets (according to the KDockWidget constructor).
+ So in principle, in order to restore a window layout,
+ one must first construct all widgets, put each of them in a
+ KDockWidget and then call readConfig(). And for all that
+ to work, each widget must have a unique name.
+ @param c the KDE configuration saver
+ @param group the name of the section in KConfig
+ @short Like writeConfig but reads the whole stuff in.
+ */
+ public native void readConfig(KConfig c, String group);
+ public native void readConfig(KConfig c);
+ public native void readConfig();
+ public native void setMainDockWidget2(KDockWidget arg1);
+ /**
+ Saves the current dock window layout into a DOM tree below the given element.
+ @short Saves the current dock window layout into a DOM tree below the given element.
+ */
+ public native void writeConfig(QDomElement base);
+ /**
+ Reads the current dock window layout from a DOM tree below the given element.
+ @short Reads the current dock window layout from a DOM tree below the given element.
+ */
+ public native void readConfig(QDomElement base);
+ /**
+ Shows all encapsulated widgets of all controlled dockwidgets and shows all dockwidgets which are
+ parent of a dockwidget tab group.
+ @short Shows all encapsulated widgets of all controlled dockwidgets and shows all dockwidgets which are parent of a dockwidget tab group.
+ */
+ public native void activate();
+ /**
+ It's more or less a method that catches several events which are interesting for the dockmanager.
+ Mainly mouse events during the drag process of a dockwidgets are of interest here.
+ @param object the object that sends the event
+ @param event the event
+ @return the return value of the method call of the base class method
+
+ @short It's more or less a method that catches several events which are interesting for the dockmanager.
+ */
+ public native boolean eventFilter(QObject object, QEvent event);
+ /**
+ This method finds out what a widgets' dockwidget is. That means the dockmanager has a look at all
+ dockwidgets it knows and tells you when one of those dockwidgets covers the given widget.
+ @param w any widget that is supposed to be encapsulated by one of the controlled dockwidgets
+ @return the dockwidget that encapsulates that widget, otherwise 0
+
+ @short This method finds out what a widgets' dockwidget is.
+ */
+ public native KDockWidget findWidgetParentDock(QWidget w);
+ /**
+ Works like makeDockVisible() but can be called for widgets that covered by a dockwidget.
+ @param w the widget that is encapsulated by a dockwidget that turns to visible.
+ @short Works like makeDockVisible() but can be called for widgets that covered by a dockwidget.
+ */
+ public native void makeWidgetDockVisible(QWidget w);
+ /**
+ @return the popupmenu for showing/hiding dockwidgets
+
+ @short
+ */
+ public native QPopupMenu dockHideShowMenu();
+ /**
+ @param dockName an internal QObject name
+ @return the dockwidget that has got that internal QObject name
+
+ @short
+ */
+ public native KDockWidget getDockWidgetFromName(String dockName);
+ /**
+ Enables opaque resizing. Opaque resizing defaults to KGlobalSettings.opaqueResize().
+ Call this method before you create any dock widgets!
+ @short Enables opaque resizing.
+ */
+ public native void setSplitterOpaqueResize(boolean b);
+ public native void setSplitterOpaqueResize();
+ /**
+ Returns true if opaque resizing is enabled, false otherwise.
+ @short Returns true if opaque resizing is enabled, false otherwise.
+ */
+ public native boolean splitterOpaqueResize();
+ /**
+ Try to preserve the widget's size. Works like KeepSize resize mode
+ of QSplitter. Off by default.
+ Call this method before you create any dock widgets!
+ @short Try to preserve the widget's size.
+ */
+ public native void setSplitterKeepSize(boolean b);
+ public native void setSplitterKeepSize();
+ /**
+ Returns true if the KeepSize is enabled, false otherwise.
+ @short Returns true if the KeepSize is enabled, false otherwise.
+ */
+ public native boolean splitterKeepSize();
+ /**
+ Operate the splitter with a higher resolution. Off by default.
+ Call this method before you create any dock widgets!
+ If high resolution is used all splitter position parameters
+ are percent*100 instead of percent.
+ @note Since KDE 3.5 this is ignored. Internally the splitter always
+ calcualtes in high resolution values. For KDE 4, this will be removed.
+ @short Operate the splitter with a higher resolution.
+ */
+ public native void setSplitterHighResolution(boolean b);
+ public native void setSplitterHighResolution();
+ /**
+ Returns true if the splitter uses the high resolution, false otherwise.
+ @short Returns true if the splitter uses the high resolution, false otherwise.
+ */
+ public native boolean splitterHighResolution();
+ /**
+ @short
+ */
+ public native void setSpecialLeftDockContainer(KDockWidget container);
+ public native void setSpecialTopDockContainer(KDockWidget container);
+ public native void setSpecialRightDockContainer(KDockWidget container);
+ public native void setSpecialBottomDockContainer(KDockWidget container);
+ public native void removeFromAutoCreateList(KDockWidget pDockWidget);
+ public native void finishReadDockConfig();
+ public native void setReadDockConfigMode(int mode);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDockManagerSignals.java b/kdejava/koala/org/kde/koala/KDockManagerSignals.java
new file mode 100644
index 00000000..cfbf1755
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDockManagerSignals.java
@@ -0,0 +1,28 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDomElement;
+
+public interface KDockManagerSignals {
+ /**
+ Signals changes of the docking state of a dockwidget. Usually the dock-toolbar will be updated then.
+ @short Signals changes of the docking state of a dockwidget.
+ */
+ void change();
+ /**
+ Signals a dockwidget is replaced with another one.
+ @short Signals a dockwidget is replaced with another one.
+ */
+ void replaceDock(KDockWidget oldDock, KDockWidget newDock);
+ /**
+ Signals a dockwidget without parent (toplevel) is shown.
+ @short Signals a dockwidget without parent (toplevel) is shown.
+ */
+ void setDockDefaultPos(KDockWidget arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KDockTabGroup.java b/kdejava/koala/org/kde/koala/KDockTabGroup.java
new file mode 100644
index 00000000..3d660b59
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDockTabGroup.java
@@ -0,0 +1,51 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QTabWidget;
+
+/**
+
+ It just hides the special implementation of a dockwidget tab groups (and is member of the dockwidget class set).
+ An abstraction what it is currently.
+ In general it is like QTabWidget but is more useful for the dockwidget class set.
+ More or less a minor helper class for the dockwidget class set.
+ @author Max Judin (documentation: Falk Brettschneider).
+
+ @short It just hides the special implementation of a dockwidget tab groups (and is member of the dockwidget class set).
+
+*/
+public class KDockTabGroup extends QTabWidget {
+ protected KDockTabGroup(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs this. It just calls the method of the base class.
+ @short Constructs this.
+ */
+ public KDockTabGroup(QWidget parent, String name) {
+ super((Class) null);
+ newKDockTabGroup(parent,name);
+ }
+ private native void newKDockTabGroup(QWidget parent, String name);
+ public KDockTabGroup(QWidget parent) {
+ super((Class) null);
+ newKDockTabGroup(parent);
+ }
+ private native void newKDockTabGroup(QWidget parent);
+ public KDockTabGroup() {
+ super((Class) null);
+ newKDockTabGroup();
+ }
+ private native void newKDockTabGroup();
+ public native QWidget transientTo();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDockWidget.java b/kdejava/koala/org/kde/koala/KDockWidget.java
new file mode 100644
index 00000000..7bd3868c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDockWidget.java
@@ -0,0 +1,406 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QPoint;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ Floatable widget that can be dragged around with the mouse and
+ encapsulate the actual widgets (and member of the dockwidget class
+ set).
+ You just grip the double-lined panel, tear it off its parent
+ widget, drag it somewhere and let it loose. Depending on the
+ position where you leave it, the dockwidget becomes a toplevel
+ window on the desktop (floating mode) or docks to a new widget
+ (dock mode). Note: A KDockWidget can only be docked to a
+ KDockWidget.
+ If you want to use this kind of widget, your main application
+ window has to be a KDockMainWindow. That is because it has
+ got several additional dock management features, for instance a
+ KDockManager that has an overview over all dockwidgets and and
+ a dockmovemanager (internal class) that handles the dock process.
+ Usually you create an KDockWidget that covers the actual widget in this way:
+ <pre>
+ ...
+ KDockMainWindow mainWidget;
+ ...
+ KDockWidget dock = null;
+ dock = mainWidget.createDockWidget( "Any window caption", nicePixmap, null, i18n("window caption")); // null==no parent
+ QWidget actualWidget = new QWidget( dock);
+ dock.setWidget( actualWidget); // embed it
+ dock.setToolTipString(i18n("That's me")); // available when appearing as tab page
+ ...
+ </pre>
+ See KDockMainWindow how a dockwidget is docked in.
+ See {@link KDockWidgetSignals} for signals emitted by KDockWidget
+ @author Max Judin (documentation: Falk Brettschneider).
+
+ @short Floatable widget that can be dragged around with the mouse and encapsulate the actual widgets (and member of the dockwidget class set).
+
+*/
+public class KDockWidget extends QWidget {
+ protected KDockWidget(Class dummy){super((Class) null);}
+ /**
+ The possible positions where a dockwidget can dock to another dockwidget
+ @short The possible positions where a dockwidget can dock to another dockwidget
+ */
+ public static final int DockNone = 0;
+ public static final int DockTop = 0x0001;
+ public static final int DockLeft = 0x0002;
+ public static final int DockRight = 0x0004;
+ public static final int DockBottom = 0x0008;
+ public static final int DockCenter = 0x0010;
+ public static final int DockDesktop = 0x0020;
+ public static final int DockToSpecialSites = 0x0040;
+ public static final int DockCorner = DockTop|DockLeft|DockRight|DockBottom;
+ public static final int DockFullSite = DockCorner|DockCenter;
+ public static final int DockFullDocking = DockFullSite|DockDesktop;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a dockwidget.
+ Initially, docking to another and docking to this is allowed for
+ every <code>DockPosition.</code> It is supposed to be no (tab) group. It will
+ taken under control of its dockmanager.
+ @param dockManager The responsible manager (dock helper)
+ @param name Object instance name
+ @param pixmap An icon (for instance shown when docked centered)
+ @param parent Parent widget
+ @param strCaption Title of the dockwidget window (shown when toplevel)
+ @param strTabPageLabel The title of the tab page (shown when in tab page mode), if it is "", only the icon will be shown, if it is null, the label is set to strCaption
+ @param f Qt.WidgetFlags widget flags
+ @short Construct a dockwidget.
+ */
+ public KDockWidget(KDockManager dockManager, String name, QPixmap pixmap, QWidget parent, String strCaption, String strTabPageLabel, int f) {
+ super((Class) null);
+ newKDockWidget(dockManager,name,pixmap,parent,strCaption,strTabPageLabel,f);
+ }
+ private native void newKDockWidget(KDockManager dockManager, String name, QPixmap pixmap, QWidget parent, String strCaption, String strTabPageLabel, int f);
+ public KDockWidget(KDockManager dockManager, String name, QPixmap pixmap, QWidget parent, String strCaption, String strTabPageLabel) {
+ super((Class) null);
+ newKDockWidget(dockManager,name,pixmap,parent,strCaption,strTabPageLabel);
+ }
+ private native void newKDockWidget(KDockManager dockManager, String name, QPixmap pixmap, QWidget parent, String strCaption, String strTabPageLabel);
+ public KDockWidget(KDockManager dockManager, String name, QPixmap pixmap, QWidget parent, String strCaption) {
+ super((Class) null);
+ newKDockWidget(dockManager,name,pixmap,parent,strCaption);
+ }
+ private native void newKDockWidget(KDockManager dockManager, String name, QPixmap pixmap, QWidget parent, String strCaption);
+ public KDockWidget(KDockManager dockManager, String name, QPixmap pixmap, QWidget parent) {
+ super((Class) null);
+ newKDockWidget(dockManager,name,pixmap,parent);
+ }
+ private native void newKDockWidget(KDockManager dockManager, String name, QPixmap pixmap, QWidget parent);
+ public KDockWidget(KDockManager dockManager, String name, QPixmap pixmap) {
+ super((Class) null);
+ newKDockWidget(dockManager,name,pixmap);
+ }
+ private native void newKDockWidget(KDockManager dockManager, String name, QPixmap pixmap);
+ /**
+ This is a key method of this class! Use it to dock dockwidgets to
+ another dockwidget at the right position within its
+ KDockMainWindow or a toplevel dockwidget.
+ If the target is null, it will become a toplevel dockwidget at position pos;
+ Note: Docking to another dockwidget means exactly:
+ A new parent dockwidget will be created, that replaces the target dockwidget and contains another single helper widget (tab widget or panner)
+ which contains both dockwidgets, this and the target dockwidget. So consider parent<.child relationships change completely during such actions.
+ @param target The dockwidget to dock to
+ @param dockPos One of the DockPositions this is going to dock to
+ @param spliPos The split relation (in percent, or percent*100 in high resolution) between both dockwidgets, target and this
+ @param pos The dock position, mainly of interest for docking to the desktop (as toplevel dockwidget)
+ @param check Only for internal use;
+ @param tabIndex The position index of the tab widget (when in tab page mode), -1 (default) means append
+ @note Since KDE 3.5 the splitter position <code>spliPos</code> is always a value between [0..100]. If
+ the value is > 100, it will be treated like the old code and normalized to a value between
+ 0 and 100. Example: If the value was 4000, it will be fixed to 40. In short: The old and
+ the new behavior both work, so it is compatible with older KDE-versions.
+ @return result The group dockwidget that replaces the target dockwidget and will be grandparent of target and <code>this.</code>
+
+ @short This is a key method of this class! Use it to dock dockwidgets to another dockwidget at the right position within its KDockMainWindow or a toplevel dockwidget.
+ */
+ public native KDockWidget manualDock(KDockWidget target, int dockPos, int spliPos, QPoint pos, boolean check, int tabIndex);
+ public native KDockWidget manualDock(KDockWidget target, int dockPos, int spliPos, QPoint pos, boolean check);
+ public native KDockWidget manualDock(KDockWidget target, int dockPos, int spliPos, QPoint pos);
+ public native KDockWidget manualDock(KDockWidget target, int dockPos, int spliPos);
+ public native KDockWidget manualDock(KDockWidget target, int dockPos);
+ /**
+ Specify where it is either possible or impossible for this to dock to another dockwidget.
+ @param pos An OR'ed set of <code>DockPositions</code>
+ @short Specify where it is either possible or impossible for this to dock to another dockwidget.
+ */
+ public native void setEnableDocking(int pos);
+ /**
+ @return Where it is either possible or impossible for this to dock to another dockwidget (an OR'ed set of DockPositions).
+
+ @short
+ */
+ public native int enableDocking();
+ /**
+ Specify where it is either possible or impossible for another dockwidget to dock to this.
+ @param pos An OR'ed set of <code>DockPositions</code>
+ @short Specify where it is either possible or impossible for another dockwidget to dock to this.
+ */
+ public native void setDockSite(int pos);
+ /**
+ @return There it is either possible or impossible for another dockwidget to dock to this (an OR'ed set of <code>DockPositions</code>).
+
+ @short
+ */
+ public native int dockSite();
+ /**
+ Sets the embedded widget.
+ A QLayout takes care about proper resizing, automatically.
+ @param w The pointer to the dockwidget's child widget.
+ @short Sets the embedded widget.
+ */
+ public native void setWidget(QWidget w);
+ /**
+ Get the embedded widget.
+ @return The pointer to the dockwidget's child widget, 0L if there's no such child.
+
+ @short Get the embedded widget.
+ */
+ public native QWidget getWidget();
+ /**
+ Sets the header of this dockwidget.
+ A QLayout takes care about proper resizing, automatically.
+ The header contains the drag panel, the close button and the stay button.
+ @param ah A base class pointer to the dockwidget header
+ @short Sets the header of this dockwidget.
+ */
+ public native void setHeader(KDockWidgetAbstractHeader ah);
+ /** @since 3.2
+ get the pointer to the header widget
+ @short @since 3.
+ */
+ public native KDockWidgetAbstractHeader getHeader();
+ /**
+ Normally it simply shows the dockwidget.
+ But additionally, if it is docked to a tab widget (<code>DockCenter</code>), it is set as the active (visible) tab page.
+ @short Normally it simply shows the dockwidget.
+ */
+ public native void makeDockVisible();
+ /**
+ There are reasons that it's impossible:
+
+ <li>
+ It is a (tab) group.
+ </li>
+
+ <li>
+ It is already invisible ;-)
+ </li>
+
+ <li>
+ The parent of this is the KDockMainWindow.
+ </li>
+
+ <li>
+ It isn't able to dock to another widget.
+
+ </li> @return If it may be possible to hide this.
+
+ @short
+ */
+ public native boolean mayBeHide();
+ /**
+
+ <li>
+ It is a (tab) group.
+ </li>
+
+ <li>
+ It is already visible ;-)
+ </li>
+
+ <li>
+ The parent of this is the <code>KDockMainWindow.</code>
+
+ </li> @return If it may be possible to show this.
+ There are reasons that it's impossible:
+
+ @short
+ */
+ public native boolean mayBeShow();
+ /**
+ @return The dockmanager that is responsible for this.
+
+ @short
+ */
+ public native KDockManager dockManager();
+ /**
+ Stores a string for a tooltip.
+ That tooltip string has only a meaning when this dockwidget is shown as tab page.
+ In this case the tooltip is shown when one holds the mouse cursor on the tab page header.
+ Such tooltip will for instance be useful, if you use only icons there.
+ Note: Setting an empty string switches the tooltip off.
+ @param ttStr A string for the tooltip on the tab.
+ @short Stores a string for a tooltip.
+ */
+ public native void setToolTipString(String ttStr);
+ /**
+ @return The tooltip string being shown on the appropriate tab page header when in dock-centered mode.
+
+ @short
+ */
+ public native String toolTipString();
+ /**
+ @return result <code>true</code>, if a dockback is possible, otherwise <code>false.</code>
+
+ @short
+ */
+ public native boolean isDockBackPossible();
+ /**
+ Sets a string that is used for the label of the tab page when in tab page mode
+ @param label The new tab page label.
+ @short Sets a string that is used for the label of the tab page when in tab page mode
+ */
+ public native void setTabPageLabel(String label);
+ /**
+ @return A string that is used for the label of the tab page when in tab page mode.
+
+ @short
+ */
+ public native String tabPageLabel();
+ /**
+ Catches and processes some QWidget events that are interesting for dockwidgets.
+ @short Catches and processes some QWidget events that are interesting for dockwidgets.
+ */
+ public native boolean event(QEvent arg1);
+ /**
+ Add dockwidget management actions to QWidget.show.
+ @short Add dockwidget management actions to QWidget.show.
+ */
+ public native void show();
+ /**
+ @return the parent widget of this if it inherits class KDockTabGroup
+
+ @short
+ */
+ public native KDockTabGroup parentDockTabGroup();
+ public native QWidget parentDockContainer();
+ /**
+ Sets the type of the dock window
+ @param windowType is type of dock window
+ @short Sets the type of the dock window
+ */
+ public native void setDockWindowType(int windowType);
+ public native void setDockWindowTransient(QWidget parent, boolean transientEnabled);
+ /**
+ Returns the widget this dockwidget is set transient to, otherwise 0
+ @short Returns the widget this dockwidget is set transient to, otherwise 0
+ */
+ public native QWidget transientTo();
+ /**
+ Lookup the nearest dockwidget docked left/right/top/bottom to this one or return 0
+ @param pos is the position the wanted widget is docked to this one
+ @short Lookup the nearest dockwidget docked left/right/top/bottom to this one or return 0
+ */
+ public native KDockWidget findNearestDockWidget(int pos);
+ /**
+ Allows changing the pixmap which is used for the caption or dock tabs
+ @param pixmap is the pixmap to set
+ @short Allows changing the pixmap which is used for the caption or dock tabs
+ */
+ public native void setPixmap(QPixmap pixmap);
+ public native void setPixmap();
+ /**
+ Returns the dockwidget's associated caption/dock tab pixmap
+ @short Returns the dockwidget's associated caption/dock tab pixmap
+ */
+ public native QPixmap pixmap();
+ /**
+ @return the current dock position.
+
+ @short
+ */
+ public native int currentDockPosition();
+ /**
+ subject to changes. It doesn't completely work yet without small hacks from within the calling application (Perhaps
+ KDE 3.1.x oder 3.2
+ width is in pixel. It only affects a widget, which is placed directly into a horizontal KDockSplitter
+ @short subject to changes.
+ */
+ public native void setForcedFixedWidth(int arg1);
+ /**
+ subject to changes. It doesn't completely work yet without small hacks from within the calling application (Perhaps
+ KDE 3.1.x oder 3.2
+ height is in pixel. It only affects a widget, which is placed directly into a vertical KDockSplitter
+ @short subject to changes.
+ */
+ public native void setForcedFixedHeight(int arg1);
+ public native void restoreFromForcedFixedSize();
+ public native int forcedFixedWidth();
+ public native int forcedFixedHeight();
+ /**
+ Docks a dockwidget back to the dockwidget that was the neighbor
+ widget before the current dock position.
+ @short Docks a dockwidget back to the dockwidget that was the neighbor widget before the current dock position.
+ */
+ public native void dockBack();
+ /**
+ Toggles the visibility state of the dockwidget if it is able to be shown or to be hidden.
+ @short Toggles the visibility state of the dockwidget if it is able to be shown or to be hidden.
+ */
+ public native void changeHideShowState();
+ /**
+ Undocks this. It means it becomes a toplevel widget framed by the system window manager.
+ A small panel at the top of this undocked widget gives the possibility to drag it into
+ another dockwidget by mouse (docking).
+ @short Undocks this.
+ */
+ public native void undock();
+ /**
+ Docks the widget to the desktop (as a toplevel widget)
+ @short Docks the widget to the desktop (as a toplevel widget)
+ */
+ public native void toDesktop();
+ /**
+ Checks some conditions and shows or hides the dockwidget header (drag panel).
+ The header is hidden if:
+
+ <li>
+ the parent widget is the KDockMainWindow
+ </li>
+
+ <li>
+ this is a (tab) group dockwidget
+ </li>
+
+ <li>
+ it is not able to dock to another dockwidget
+
+ </li> @short Checks some conditions and shows or hides the dockwidget header (drag panel).
+ */
+ protected native void updateHeader();
+ protected native void setLatestKDockContainer(QWidget arg1);
+ protected native QWidget latestKDockContainer();
+ protected native void setFormerBrotherDockWidget(KDockWidget arg1);
+ /** Does several things here when it has noticed that the former brother widget (closest neighbor) gets lost.
+ The former brother widget is needed for a possible dockback action, to speak with the Beatles:
+ "To get back to where you once belonged" ;-)
+ @short Does several things here when it has noticed that the former brother widget (closest neighbor) gets lost.
+ */
+ protected native void loseFormerBrotherDockWidget();
+ protected native void paintEvent(QPaintEvent arg1);
+ protected native void mousePressEvent(QMouseEvent arg1);
+ protected native void mouseReleaseEvent(QMouseEvent arg1);
+ protected native void mouseMoveEvent(QMouseEvent arg1);
+ protected native void leaveEvent(QEvent arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDockWidgetAbstractHeader.java b/kdejava/koala/org/kde/koala/KDockWidgetAbstractHeader.java
new file mode 100644
index 00000000..980b9ac6
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDockWidgetAbstractHeader.java
@@ -0,0 +1,60 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QFrame;
+
+/**
+
+ An abstract base clase for all dockwidget headers (and member of the dockwidget class set).
+ See the class description of KDockWidgetHeader!
+ More or less a minor helper class for the dockwidget class set.
+ @author Max Judin (documentation: Falk Brettschneider).
+
+ @short An abstract base clase for all dockwidget headers (and member of the dockwidget class set).
+
+*/
+public class KDockWidgetAbstractHeader extends QFrame {
+ protected KDockWidgetAbstractHeader(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs this.
+ @param parent the parent widget (usually a dockwidget)
+ @param name the object instance name
+ @short Constructs this.
+ */
+ public KDockWidgetAbstractHeader(KDockWidget parent, String name) {
+ super((Class) null);
+ newKDockWidgetAbstractHeader(parent,name);
+ }
+ private native void newKDockWidgetAbstractHeader(KDockWidget parent, String name);
+ public KDockWidgetAbstractHeader(KDockWidget parent) {
+ super((Class) null);
+ newKDockWidgetAbstractHeader(parent);
+ }
+ private native void newKDockWidgetAbstractHeader(KDockWidget parent);
+ /**
+ Provides things concerning to switching to toplevel mode. Must be overridden by an inheriting class.
+ @short Provides things concerning to switching to toplevel mode.
+ */
+ public native void setTopLevel(boolean arg1);
+ /**
+ Provides saving the current configuration. Must be overridden by an inheriting class.
+ @short Provides saving the current configuration.
+ */
+ public native void saveConfig(KConfig arg1);
+ /**
+ Provides loading the current configuration. Must be overridden by an inheriting class
+ @short Provides loading the current configuration.
+ */
+ public native void loadConfig(KConfig arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDockWidgetAbstractHeaderDrag.java b/kdejava/koala/org/kde/koala/KDockWidgetAbstractHeaderDrag.java
new file mode 100644
index 00000000..f421d07b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDockWidgetAbstractHeaderDrag.java
@@ -0,0 +1,52 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QFrame;
+
+/**
+
+ An abstract class for all dockwidget drag-panels of a dockwidgets (and member of the dockwidget class set).
+ See the class description of KDockWidgetHeaderDrag!
+ More or less a minor helper class for the dockwidget class set.
+ @author Max Judin (documentation: Falk Brettschneider).
+
+ @short An abstract class for all dockwidget drag-panels of a dockwidgets (and member of the dockwidget class set).
+
+*/
+public class KDockWidgetAbstractHeaderDrag extends QFrame {
+ protected KDockWidgetAbstractHeaderDrag(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs this.
+ @param parent the parent widget (usually a dockwidget header)
+ @param dock the dockwidget where it belongs to
+ @param name the object instance name
+ @short Constructs this.
+ */
+ public KDockWidgetAbstractHeaderDrag(KDockWidgetAbstractHeader parent, KDockWidget dock, String name) {
+ super((Class) null);
+ newKDockWidgetAbstractHeaderDrag(parent,dock,name);
+ }
+ private native void newKDockWidgetAbstractHeaderDrag(KDockWidgetAbstractHeader parent, KDockWidget dock, String name);
+ public KDockWidgetAbstractHeaderDrag(KDockWidgetAbstractHeader parent, KDockWidget dock) {
+ super((Class) null);
+ newKDockWidgetAbstractHeaderDrag(parent,dock);
+ }
+ private native void newKDockWidgetAbstractHeaderDrag(KDockWidgetAbstractHeader parent, KDockWidget dock);
+ /**
+ @return the dockwidget where this belongs to
+
+ @short
+ */
+ public native KDockWidget dockWidget();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDockWidgetHeader.java b/kdejava/koala/org/kde/koala/KDockWidgetHeader.java
new file mode 100644
index 00000000..97c19bbb
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDockWidgetHeader.java
@@ -0,0 +1,85 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The header (additional bar) for a KDockWidget s (and member of the dockwidget class set).
+ It have got the buttons located there. And it is for recording and reading the button states.
+ More or less a minor helper class for the dockwidget class set.
+ @author Max Judin (documentation: Falk Brettschneider).
+
+ @short The header (additional bar) for a KDockWidget s (and member of the dockwidget class set).
+
+*/
+public class KDockWidgetHeader extends KDockWidgetAbstractHeader {
+ protected KDockWidgetHeader(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs this.
+ @param parent the parent widget (usually a dockwidget)
+ @param name the object instance name
+ @short Constructs this.
+ */
+ public KDockWidgetHeader(KDockWidget parent, String name) {
+ super((Class) null);
+ newKDockWidgetHeader(parent,name);
+ }
+ private native void newKDockWidgetHeader(KDockWidget parent, String name);
+ public KDockWidgetHeader(KDockWidget parent) {
+ super((Class) null);
+ newKDockWidgetHeader(parent);
+ }
+ private native void newKDockWidgetHeader(KDockWidget parent);
+ /**
+ Hides the close button and stay button when switching to toplevel or vice versa shows them.
+ @param t toplevel or not
+ @short Hides the close button and stay button when switching to toplevel or vice versa shows them.
+ */
+ public native void setTopLevel(boolean t);
+ /**
+ Sets the drag panel of this header.
+ @param nd A pointer to the new drag panel
+ @short Sets the drag panel of this header.
+ */
+ public native void setDragPanel(KDockWidgetHeaderDrag nd);
+ /**
+ Get the drag panel of this header.
+ @short Get the drag panel of this header.
+ */
+ public native KDockWidgetHeaderDrag dragPanel();
+ public native boolean dragEnabled();
+ public native void setDragEnabled(boolean b);
+ public native void showUndockButton(boolean show);
+ public native void forceCloseButtonHidden(boolean enable);
+ public native void forceCloseButtonHidden();
+ /**
+ Saves the current button state to a KDE config container object.
+ @param c the configuration safe
+ @short Saves the current button state to a KDE config container object.
+ */
+ public native void saveConfig(KConfig c);
+ /**
+ Loads the current button state from a KDE config container object.
+ @param c the configuration safe
+ @short Loads the current button state from a KDE config container object.
+ */
+ public native void loadConfig(KConfig c);
+ // void addButton(KDockButton_Private* arg1); >>>> NOT CONVERTED
+ // void removeButton(KDockButton_Private* arg1); >>>> NOT CONVERTED
+ /**
+ Sets dragging the dockwidget off when the stay button is pressed down and vice versa.
+ @short Sets dragging the dockwidget off when the stay button is pressed down and vice versa.
+ */
+ protected native void slotStayClicked();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDockWidgetHeaderDrag.java b/kdejava/koala/org/kde/koala/KDockWidgetHeaderDrag.java
new file mode 100644
index 00000000..f42f2e78
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDockWidgetHeaderDrag.java
@@ -0,0 +1,52 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPaintEvent;
+
+/**
+
+ This special widget is the panel one can grip with the mouses (and member of the dockwidget class set).
+ The widget for dragging, so to speak.
+ Usually it is located in the KDockWidgetHeader.
+ More or less a minor helper class for the dockwidget class set.
+ @author Max Judin (documentation: Falk Brettschneider).
+
+ @short This special widget is the panel one can grip with the mouses (and member of the dockwidget class set).
+
+*/
+public class KDockWidgetHeaderDrag extends KDockWidgetAbstractHeaderDrag {
+ protected KDockWidgetHeaderDrag(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs this.
+ @param parent the parent widget (usually a dockwidget header)
+ @param dock the dockwidget where it belongs to
+ @param name the object instance name
+ @short Constructs this.
+ */
+ public KDockWidgetHeaderDrag(KDockWidgetAbstractHeader parent, KDockWidget dock, String name) {
+ super((Class) null);
+ newKDockWidgetHeaderDrag(parent,dock,name);
+ }
+ private native void newKDockWidgetHeaderDrag(KDockWidgetAbstractHeader parent, KDockWidget dock, String name);
+ public KDockWidgetHeaderDrag(KDockWidgetAbstractHeader parent, KDockWidget dock) {
+ super((Class) null);
+ newKDockWidgetHeaderDrag(parent,dock);
+ }
+ private native void newKDockWidgetHeaderDrag(KDockWidgetAbstractHeader parent, KDockWidget dock);
+ /**
+ Draws the drag panel (a double line)
+ @short Draws the drag panel (a double line)
+ */
+ protected native void paintEvent(QPaintEvent arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDockWidgetSignals.java b/kdejava/koala/org/kde/koala/KDockWidgetSignals.java
new file mode 100644
index 00000000..a0c594d5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDockWidgetSignals.java
@@ -0,0 +1,50 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QPoint;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+public interface KDockWidgetSignals {
+ /**
+ @short
+ */
+ void widgetSet(QWidget arg1);
+ /**
+ Emitted when another dock widget is docking to this.
+ @param dw the dockwidget that is docking to this
+ @param dp the DockPosition where it wants to dock to
+ @short Emitted when another dock widget is docking to this.
+ */
+ void docking(KDockWidget dw, int dp);
+ /**
+ Signals that the dock default position is set.
+ @short Signals that the dock default position is set.
+ */
+ void setDockDefaultPos();
+ /**
+ Emitted when the close button of the panel ( KDockWidgetHeader) has been clicked.
+ @short Emitted when the close button of the panel ( KDockWidgetHeader) has been clicked.
+ */
+ void headerCloseButtonClicked();
+ /**
+ Emitted when the dockback button of the panel ( KDockWidgetHeader) has been clicked.
+ @short Emitted when the dockback button of the panel ( KDockWidgetHeader) has been clicked.
+ */
+ void headerDockbackButtonClicked();
+ /**
+ Emitted when the widget processes a close event.
+ @short Emitted when the widget processes a close event.
+ */
+ void iMBeingClosed();
+ /**
+ Emitted when the widget has undocked.
+ @short Emitted when the widget has undocked.
+ */
+ void hasUndocked();
+}
diff --git a/kdejava/koala/org/kde/koala/KDoubleNumInput.java b/kdejava/koala/org/kde/koala/KDoubleNumInput.java
new file mode 100644
index 00000000..9b5bfe21
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDoubleNumInput.java
@@ -0,0 +1,280 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QSize;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+/**
+
+ KDoubleNumInput combines a QSpinBox and optionally a QSlider
+ with a label to make an easy to use control for setting some float
+ parameter. This is especially nice for configuration dialogs,
+ which can have many such combinated controls.
+ The slider is created only when the user specifies a range
+ for the control using the setRange function with the slider
+ parameter set to "true".
+ A special feature of KDoubleNumInput, designed specifically for
+ the situation when there are several instances in a column,
+ is that you can specify what portion of the control is taken by the
+ QSpinBox (the remaining portion is used by the slider). This makes
+ it very simple to have all the sliders in a column be the same size.
+ It uses the KDoubleValidator validator class. KDoubleNumInput
+ enforces the value to be in the given range, but see the class
+ documentation of KDoubleSpinBox for the tricky
+ interrelationship of precision and values. All of what is said
+ there applies here, too.
+ See {@link KDoubleNumInputSignals} for signals emitted by KDoubleNumInput
+ @short An input control for real numbers, consisting of a spinbox and a slider.
+ @see KIntNumInput
+ @see KDoubleSpinBox
+
+*/
+public class KDoubleNumInput extends KNumInput {
+ protected KDoubleNumInput(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs an input control for double values
+ with initial value 0.00.
+ @short Constructs an input control for double values with initial value 0.
+ */
+ public KDoubleNumInput(QWidget parent, String name) {
+ super((Class) null);
+ newKDoubleNumInput(parent,name);
+ }
+ private native void newKDoubleNumInput(QWidget parent, String name);
+ public KDoubleNumInput(QWidget parent) {
+ super((Class) null);
+ newKDoubleNumInput(parent);
+ }
+ private native void newKDoubleNumInput(QWidget parent);
+ public KDoubleNumInput() {
+ super((Class) null);
+ newKDoubleNumInput();
+ }
+ private native void newKDoubleNumInput();
+ /**
+ Constructor
+ @param lower lower boundary value
+ @param upper upper boundary value
+ @param value initial value for the control
+ @param step step size to use for up/down arrow clicks
+ @param precision number of digits after the decimal point
+ @param parent parent QWidget
+ @param name internal name for this widget
+ @short Constructor
+ */
+ public KDoubleNumInput(double lower, double upper, double value, double step, int precision, QWidget parent, String name) {
+ super((Class) null);
+ newKDoubleNumInput(lower,upper,value,step,precision,parent,name);
+ }
+ private native void newKDoubleNumInput(double lower, double upper, double value, double step, int precision, QWidget parent, String name);
+ public KDoubleNumInput(double lower, double upper, double value, double step, int precision, QWidget parent) {
+ super((Class) null);
+ newKDoubleNumInput(lower,upper,value,step,precision,parent);
+ }
+ private native void newKDoubleNumInput(double lower, double upper, double value, double step, int precision, QWidget parent);
+ public KDoubleNumInput(double lower, double upper, double value, double step, int precision) {
+ super((Class) null);
+ newKDoubleNumInput(lower,upper,value,step,precision);
+ }
+ private native void newKDoubleNumInput(double lower, double upper, double value, double step, int precision);
+ public KDoubleNumInput(double lower, double upper, double value, double step) {
+ super((Class) null);
+ newKDoubleNumInput(lower,upper,value,step);
+ }
+ private native void newKDoubleNumInput(double lower, double upper, double value, double step);
+ public KDoubleNumInput(double lower, double upper, double value) {
+ super((Class) null);
+ newKDoubleNumInput(lower,upper,value);
+ }
+ private native void newKDoubleNumInput(double lower, double upper, double value);
+ /**
+ Constructor
+ the difference here is the "below" parameter. It tells this
+ instance that it is visually put below some other KNumInput
+ widget. Note that these two KNumInput's need not to have the
+ same parent widget or be in the same layout group. The effect
+ is that it'll adjust it's layout in correspondence with the
+ layout of the other KNumInput's (you can build an arbitrary long
+ chain).
+ @param below append KDoubleNumInput to the KDoubleNumInput chain
+ @param lower lower boundary value
+ @param upper upper boundary value
+ @param value initial value for the control
+ @param step step size to use for up/down arrow clicks
+ @param precision number of digits after the decimal point
+ @param parent parent QWidget
+ @param name internal name for this widget
+ @short Constructor
+ */
+ public KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision, QWidget parent, String name) {
+ super((Class) null);
+ newKDoubleNumInput(below,lower,upper,value,step,precision,parent,name);
+ }
+ private native void newKDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision, QWidget parent, String name);
+ public KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision, QWidget parent) {
+ super((Class) null);
+ newKDoubleNumInput(below,lower,upper,value,step,precision,parent);
+ }
+ private native void newKDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision, QWidget parent);
+ public KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision) {
+ super((Class) null);
+ newKDoubleNumInput(below,lower,upper,value,step,precision);
+ }
+ private native void newKDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision);
+ public KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step) {
+ super((Class) null);
+ newKDoubleNumInput(below,lower,upper,value,step);
+ }
+ private native void newKDoubleNumInput(KNumInput below, double lower, double upper, double value, double step);
+ public KDoubleNumInput(KNumInput below, double lower, double upper, double value) {
+ super((Class) null);
+ newKDoubleNumInput(below,lower,upper,value);
+ }
+ private native void newKDoubleNumInput(KNumInput below, double lower, double upper, double value);
+ /**
+ @return the current value.
+
+ @short
+ */
+ public native double value();
+ /**
+ @return the suffix.
+
+ @short
+ @see #setSuffix
+ */
+ public native String suffix();
+ /**
+ @return the prefix.
+
+ @short
+ @see #setPrefix
+ */
+ public native String prefix();
+ /**
+ @return the precision.
+
+ @short
+ @see #setPrecision
+ */
+ public native int precision();
+ /**
+ @return the string displayed for a special value.
+
+ @short
+ @see #setSpecialValueText
+ */
+ public native String specialValueText();
+ /**
+ @param min minimum value
+ @param max maximum value
+ @param step step size for the QSlider
+ @param slider whether the slider is created or not
+ @short
+ */
+ public native void setRange(double min, double max, double step, boolean slider);
+ public native void setRange(double min, double max, double step);
+ public native void setRange(double min, double max);
+ /**
+ Sets the minimum value.
+ @short Sets the minimum value.
+ */
+ public native void setMinValue(double min);
+ /**
+ @return the minimum value.
+
+ @short
+ */
+ public native double minValue();
+ /**
+ Sets the maximum value.
+ @short Sets the maximum value.
+ */
+ public native void setMaxValue(double max);
+ /**
+ @return the maximum value.
+
+ @short
+ */
+ public native double maxValue();
+ /**
+ Specifies the number of digits to use.
+ @short Specifies the number of digits to use.
+ */
+ public native void setPrecision(int precision);
+ /**
+ @return the reference point for relativeValue calculation
+
+ @short
+ */
+ public native double referencePoint();
+ /**
+ @return the current value in units of referencePoint.
+
+ @short
+ */
+ public native double relativeValue();
+ /**
+ Sets the special value text. If set, the spin box will display
+ this text instead of the numeric value whenever the current
+ value is equal to minVal(). Typically this is used for indicating
+ that the choice has a special (default) meaning.
+ @short Sets the special value text.
+ */
+ public native void setSpecialValueText(String text);
+ public native void setLabel(String label, int a);
+ public native void setLabel(String label);
+ public native QSize minimumSizeHint();
+ public native boolean eventFilter(QObject arg1, QEvent arg2);
+ /**
+ Sets the value of the control.
+ @short Sets the value of the control.
+ */
+ public native void setValue(double arg1);
+ /**
+ Sets the value in units of referencePoint.
+ @short Sets the value in units of referencePoint.
+ */
+ public native void setRelativeValue(double arg1);
+ /**
+ Sets the reference Point to <code>ref.</code> It <code>ref</code> == 0, emitting of
+ relativeValueChanged is blocked and relativeValue
+ just returns 0.
+ @short Sets the reference Point to <code>ref.</code>
+ */
+ public native void setReferencePoint(double ref);
+ /**
+ Sets the suffix to be displayed to <code>suffix.</code> Use null to disable
+ this feature. Note that the suffix is attached to the value without any
+ spacing. So if you prefer to display a space separator, set suffix
+ to something like " cm".
+ @short Sets the suffix to be displayed to <code>suffix.</code>
+ @see #setSuffix
+ */
+ public native void setSuffix(String suffix);
+ /**
+ Sets the prefix to be displayed to <code>prefix.</code> Use null to disable
+ this feature. Note that the prefix is attached to the value without any
+ spacing.
+ @short Sets the prefix to be displayed to <code>prefix.</code>
+ @see #setPrefix
+ */
+ public native void setPrefix(String prefix);
+ protected native void doLayout();
+ protected native void resizeEvent(QResizeEvent arg1);
+ protected native void resetEditBox();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDoubleNumInputSignals.java b/kdejava/koala/org/kde/koala/KDoubleNumInputSignals.java
new file mode 100644
index 00000000..c99bf669
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDoubleNumInputSignals.java
@@ -0,0 +1,26 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QSize;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+public interface KDoubleNumInputSignals {
+ /**
+ Emitted every time the value changes (by calling setValue() or
+ by user interaction).
+ @short Emitted every time the value changes (by calling setValue() or by user interaction).
+ */
+ void valueChanged(double arg1);
+ /**
+ This is an overloaded member function, provided for
+ convenience. It essentially behaves like the above function.
+ Contains the value in units of referencePoint.
+ @short This is an overloaded member function, provided for convenience.
+ */
+ void relativeValueChanged(double arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KDoubleValidator.java b/kdejava/koala/org/kde/koala/KDoubleValidator.java
new file mode 100644
index 00000000..003b1d07
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDoubleValidator.java
@@ -0,0 +1,68 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QDoubleValidator;
+
+/**
+
+ KDoubleValidator extends QDoubleValidator to be
+ locale-aware. That means that - subject to not being disabled -
+ KLocale.decimalSymbol(), KLocale.thousandsSeparator()
+ and KLocale.positiveSign() and KLocale.negativeSign()
+ are respected.
+ @author Marc Mutz <mutz@kde.org>
+
+ @short A locale-aware QDoubleValidator.
+ @see KIntValidator
+
+*/
+public class KDoubleValidator extends QDoubleValidator {
+ protected KDoubleValidator(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /** Constuct a locale-aware KDoubleValidator with default range
+ (whatever QDoubleValidator uses for that) and parent <code>parent</code> @short Constuct a locale-aware KDoubleValidator with default range (whatever QDoubleValidator uses for that) and parent <code>parent</code>
+ */
+ public KDoubleValidator(QObject parent, String name) {
+ super((Class) null);
+ newKDoubleValidator(parent,name);
+ }
+ private native void newKDoubleValidator(QObject parent, String name);
+ public KDoubleValidator(QObject parent) {
+ super((Class) null);
+ newKDoubleValidator(parent);
+ }
+ private native void newKDoubleValidator(QObject parent);
+ /** Constuct a locale-aware KDoubleValidator for range [<code>bottom</code>,<code>top</code>] and a precision of <code>decimals</code> decimals after the decimal
+ point. @short Constuct a locale-aware KDoubleValidator for range [<code>bottom</code>,<code>top</code>] and a precision of <code>decimals</code> decimals after the decimal point.
+ */
+ public KDoubleValidator(double bottom, double top, int decimals, QObject parent, String name) {
+ super((Class) null);
+ newKDoubleValidator(bottom,top,decimals,parent,name);
+ }
+ private native void newKDoubleValidator(double bottom, double top, int decimals, QObject parent, String name);
+ public KDoubleValidator(double bottom, double top, int decimals, QObject parent) {
+ super((Class) null);
+ newKDoubleValidator(bottom,top,decimals,parent);
+ }
+ private native void newKDoubleValidator(double bottom, double top, int decimals, QObject parent);
+ /** Overloaded for internal reasons. The API is not affected. @short Overloaded for internal reasons.
+ */
+ public native int validate(StringBuffer input, int[] pos);
+ /** @return whether localized numbers are accepted (default: true) @short @return whether localized numbers are accepted (default: true)
+ */
+ public native boolean acceptLocalizedNumbers();
+ /** Sets whether to accept localized numbers (default: true) @short Sets whether to accept localized numbers (default: true)
+ */
+ public native void setAcceptLocalizedNumbers(boolean accept);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDualColorButton.java b/kdejava/koala/org/kde/koala/KDualColorButton.java
new file mode 100644
index 00000000..48ebbba9
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDualColorButton.java
@@ -0,0 +1,161 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QSize;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ KDualColorButton allows the user to select two cascaded colors (usually a
+ foreground and background color). Other features include drag and drop
+ from other KDE color widgets, a reset to black and white control, and a
+ swap colors control.
+ When the user clicks on the foreground or background rectangle the
+ rectangle is first sunken and the currentChanged() signal is emitted.
+ Further clicks will present a color dialog and emit either the fgChanged()
+ or bgChanged() if a new color is selected.
+ Note: With drag and drop when dropping a color the current selected color
+ will be set, while when dragging a color it will use whatever color
+ rectangle the mouse was pressed inside.
+ \image html kdualcolorbutton.png "KDE Dual Color Button"
+ See {@link KDualColorButtonSignals} for signals emitted by KDualColorButton
+ @author Daniel M. Duley <mosfet@kde.org>
+
+ @short A widget for selecting two related colors.
+
+*/
+public class KDualColorButton extends QWidget {
+ protected KDualColorButton(Class dummy){super((Class) null);}
+ public static final int Foreground = 0;
+ public static final int Background = 1;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a new KDualColorButton using the default black and white
+ colors.
+ @short Constructs a new KDualColorButton using the default black and white colors.
+ */
+ public KDualColorButton(QWidget parent, String name, QWidget dialogParent) {
+ super((Class) null);
+ newKDualColorButton(parent,name,dialogParent);
+ }
+ private native void newKDualColorButton(QWidget parent, String name, QWidget dialogParent);
+ public KDualColorButton(QWidget parent, String name) {
+ super((Class) null);
+ newKDualColorButton(parent,name);
+ }
+ private native void newKDualColorButton(QWidget parent, String name);
+ public KDualColorButton(QWidget parent) {
+ super((Class) null);
+ newKDualColorButton(parent);
+ }
+ private native void newKDualColorButton(QWidget parent);
+ public KDualColorButton() {
+ super((Class) null);
+ newKDualColorButton();
+ }
+ private native void newKDualColorButton();
+ /**
+ Constructs a new KDualColorButton with the supplied foreground and
+ background colors.
+ @short Constructs a new KDualColorButton with the supplied foreground and background colors.
+ */
+ public KDualColorButton(QColor fgColor, QColor bgColor, QWidget parent, String name, QWidget dialogParent) {
+ super((Class) null);
+ newKDualColorButton(fgColor,bgColor,parent,name,dialogParent);
+ }
+ private native void newKDualColorButton(QColor fgColor, QColor bgColor, QWidget parent, String name, QWidget dialogParent);
+ public KDualColorButton(QColor fgColor, QColor bgColor, QWidget parent, String name) {
+ super((Class) null);
+ newKDualColorButton(fgColor,bgColor,parent,name);
+ }
+ private native void newKDualColorButton(QColor fgColor, QColor bgColor, QWidget parent, String name);
+ public KDualColorButton(QColor fgColor, QColor bgColor, QWidget parent) {
+ super((Class) null);
+ newKDualColorButton(fgColor,bgColor,parent);
+ }
+ private native void newKDualColorButton(QColor fgColor, QColor bgColor, QWidget parent);
+ public KDualColorButton(QColor fgColor, QColor bgColor) {
+ super((Class) null);
+ newKDualColorButton(fgColor,bgColor);
+ }
+ private native void newKDualColorButton(QColor fgColor, QColor bgColor);
+ /**
+ Returns the current foreground color.
+ @short Returns the current foreground color.
+ */
+ public native QColor foreground();
+ /**
+ Returns the current background color.
+ @short Returns the current background color.
+ */
+ public native QColor background();
+ /**
+ Returns the current color item selected by the user.
+ @short Returns the current color item selected by the user.
+ */
+ public native int current();
+ /**
+ Returns the color of the selected item.
+ @short Returns the color of the selected item.
+ */
+ public native QColor currentColor();
+ /**
+ Returns the minimum size needed to display the widget and all its
+ controls.
+ @short Returns the minimum size needed to display the widget and all its controls.
+ */
+ public native QSize sizeHint();
+ /**
+ Sets the foreground color.
+ @short Sets the foreground color.
+ */
+ public native void setForeground(QColor c);
+ /**
+ Sets the background color.
+ @short Sets the background color.
+ */
+ public native void setBackground(QColor c);
+ /**
+ Sets the current selected color item.
+ @short Sets the current selected color item.
+ */
+ public native void setCurrent(int s);
+ /**
+ Sets the color of the selected item.
+ @short Sets the color of the selected item.
+ */
+ public native void setCurrentColor(QColor c);
+ /**
+ Sets the supplied rectangles to the proper size and position for the
+ current widget size. You can reimplement this to change the layout
+ of the widget. Restrictions are that the swap control will always
+ be at the top right, the reset control will always be at the bottom
+ left, and you must leave at least a 14x14 space in those corners.
+ @short Sets the supplied rectangles to the proper size and position for the current widget size.
+ */
+ protected native void metrics(QRect fgRect, QRect bgRect);
+ protected native void paintEvent(QPaintEvent ev);
+ protected native void mousePressEvent(QMouseEvent ev);
+ protected native void mouseMoveEvent(QMouseEvent ev);
+ protected native void mouseReleaseEvent(QMouseEvent ev);
+ protected native void dragEnterEvent(QDragEnterEvent ev);
+ protected native void dropEvent(QDropEvent ev);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KDualColorButtonSignals.java b/kdejava/koala/org/kde/koala/KDualColorButtonSignals.java
new file mode 100644
index 00000000..311f056b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDualColorButtonSignals.java
@@ -0,0 +1,31 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QSize;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+
+public interface KDualColorButtonSignals {
+ /**
+ Emitted when the foreground color is changed.
+ @short Emitted when the foreground color is changed.
+ */
+ void fgChanged(QColor c);
+ /**
+ Emitted when the background color is changed.
+ @short Emitted when the background color is changed.
+ */
+ void bgChanged(QColor c);
+ /**
+ Emitted when the user changes the current color selection.
+ @short Emitted when the user changes the current color selection.
+ */
+ void currentChanged(int s);
+}
diff --git a/kdejava/koala/org/kde/koala/KEMailSettings.java b/kdejava/koala/org/kde/koala/KEMailSettings.java
new file mode 100644
index 00000000..88b0f7f5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEMailSettings.java
@@ -0,0 +1,124 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ This is just a small class to facilitate accessing e-mail settings in
+ a sane way, and allowing any program to manage multiple e-mail
+ profiles effortlessly
+ @author Alex Zepeda zipzippy@sonic.net
+
+ @short This is just a small class to facilitate accessing e-mail settings in a sane way, and allowing any program to manage multiple e-mail profiles effortlessly
+
+*/
+public class KEMailSettings implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KEMailSettings(Class dummy){}
+
+ /**
+ The list of settings that I thought of when I wrote this
+ class. Any extra settings thought of later can be accessed
+ easily with getExtendedSetting and setExtendedSetting.
+ @short The list of settings that I thought of when I wrote this class.
+ @see #getSetting
+ @see #setSetting
+ @see #getExtendedSetting
+ @see #setExtendedSetting
+ */
+ public static final int ClientProgram = 0;
+ public static final int ClientTerminal = 1;
+ public static final int RealName = 2;
+ public static final int EmailAddress = 3;
+ public static final int ReplyToAddress = 4;
+ public static final int Organization = 5;
+ public static final int OutServer = 6;
+ public static final int OutServerLogin = 7;
+ public static final int OutServerPass = 8;
+ public static final int OutServerType = 9;
+ public static final int OutServerCommand = 10;
+ public static final int OutServerTLS = 11;
+ public static final int InServer = 12;
+ public static final int InServerLogin = 13;
+ public static final int InServerPass = 14;
+ public static final int InServerType = 15;
+ public static final int InServerMBXType = 16;
+ public static final int InServerTLS = 17;
+
+ /**
+ The various extensions allowed.
+ @short The various extensions allowed.
+ */
+ public static final int POP3 = 0;
+ public static final int SMTP = 1;
+ public static final int OTHER = 2;
+
+ /**
+ Default constructor, just sets things up.
+ @short Default constructor, just sets things up.
+ */
+ public KEMailSettings() {
+ newKEMailSettings();
+ }
+ private native void newKEMailSettings();
+ /**
+ List of profiles available.
+ @return the list of profiles
+
+ @short List of profiles available.
+ */
+ public native ArrayList profiles();
+ /**
+ Returns the name of the current profile.
+ @return what profile we're currently using
+
+ @short Returns the name of the current profile.
+ */
+ public native String currentProfileName();
+ /**
+ Change the current profile.
+ @param s the name of the new profile
+ @short Change the current profile.
+ */
+ public native void setProfile(String s);
+ /**
+ Returns the name of the default profile.
+ @return the name of the one that's currently default null if none
+
+ @short Returns the name of the default profile.
+ */
+ public native String defaultProfileName();
+ /**
+ Sets a new default.
+ @param def the new default
+ @short Sets a new default.
+ */
+ public native void setDefault(String def);
+ /**
+ Get one of the predefined "basic" settings.
+ @param s the setting to get
+ @return the value of the setting, or null if not
+ set
+
+ @short Get one of the predefined "basic" settings.
+ */
+ public native String getSetting(int s);
+ /**
+ Set one of the predefined "basic" settings.
+ @param s the setting to set
+ @param v the new value of the setting, or null to
+ unset
+ @short Set one of the predefined "basic" settings.
+ */
+ public native void setSetting(int s, String v);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KEdFind.java b/kdejava/koala/org/kde/koala/KEdFind.java
new file mode 100644
index 00000000..2b240618
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEdFind.java
@@ -0,0 +1,58 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+ See {@link KEdFindSignals} for signals emitted by KEdFind
+*/
+public class KEdFind extends KDialogBase {
+ protected KEdFind(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KEdFind(QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKEdFind(parent,name,modal);
+ }
+ private native void newKEdFind(QWidget parent, String name, boolean modal);
+ public KEdFind(QWidget parent, String name) {
+ super((Class) null);
+ newKEdFind(parent,name);
+ }
+ private native void newKEdFind(QWidget parent, String name);
+ public KEdFind(QWidget parent) {
+ super((Class) null);
+ newKEdFind(parent);
+ }
+ private native void newKEdFind(QWidget parent);
+ public KEdFind() {
+ super((Class) null);
+ newKEdFind();
+ }
+ private native void newKEdFind();
+ public native String getText();
+ public native void setText(String string);
+ public native void setCaseSensitive(boolean b);
+ public native boolean case_sensitive();
+ public native void setDirection(boolean b);
+ public native boolean get_direction();
+ /**
+ @return the combobox containing the history of searches. Can be used
+ to save and restore the history.
+
+ @short
+ */
+ public native KHistoryCombo searchCombo();
+ protected native void slotCancel();
+ protected native void slotUser1();
+ protected native void textSearchChanged(String arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KEdFindSignals.java b/kdejava/koala/org/kde/koala/KEdFindSignals.java
new file mode 100644
index 00000000..2320603e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEdFindSignals.java
@@ -0,0 +1,11 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KEdFindSignals {
+ void search();
+ void done();
+}
diff --git a/kdejava/koala/org/kde/koala/KEdGotoLine.java b/kdejava/koala/org/kde/koala/KEdGotoLine.java
new file mode 100644
index 00000000..dad2bdcb
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEdGotoLine.java
@@ -0,0 +1,43 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+*/
+public class KEdGotoLine extends KDialogBase {
+ protected KEdGotoLine(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KEdGotoLine(QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKEdGotoLine(parent,name,modal);
+ }
+ private native void newKEdGotoLine(QWidget parent, String name, boolean modal);
+ public KEdGotoLine(QWidget parent, String name) {
+ super((Class) null);
+ newKEdGotoLine(parent,name);
+ }
+ private native void newKEdGotoLine(QWidget parent, String name);
+ public KEdGotoLine(QWidget parent) {
+ super((Class) null);
+ newKEdGotoLine(parent);
+ }
+ private native void newKEdGotoLine(QWidget parent);
+ public KEdGotoLine() {
+ super((Class) null);
+ newKEdGotoLine();
+ }
+ private native void newKEdGotoLine();
+ public native int getLineNumber();
+ public native void selected(int arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KEdReplace.java b/kdejava/koala/org/kde/koala/KEdReplace.java
new file mode 100644
index 00000000..f57387da
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEdReplace.java
@@ -0,0 +1,67 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+ See {@link KEdReplaceSignals} for signals emitted by KEdReplace
+*/
+public class KEdReplace extends KDialogBase {
+ protected KEdReplace(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KEdReplace(QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKEdReplace(parent,name,modal);
+ }
+ private native void newKEdReplace(QWidget parent, String name, boolean modal);
+ public KEdReplace(QWidget parent, String name) {
+ super((Class) null);
+ newKEdReplace(parent,name);
+ }
+ private native void newKEdReplace(QWidget parent, String name);
+ public KEdReplace(QWidget parent) {
+ super((Class) null);
+ newKEdReplace(parent);
+ }
+ private native void newKEdReplace(QWidget parent);
+ public KEdReplace() {
+ super((Class) null);
+ newKEdReplace();
+ }
+ private native void newKEdReplace();
+ public native String getText();
+ public native String getReplaceText();
+ public native void setText(String arg1);
+ /**
+ @return the combobox containing the history of searches. Can be used
+ to save and restore the history.
+
+ @short
+ */
+ public native KHistoryCombo searchCombo();
+ /**
+ @return the combobox containing the history of replaces. Can be used
+ to save and restore the history.
+
+ @short
+ */
+ public native KHistoryCombo replaceCombo();
+ public native boolean case_sensitive();
+ public native boolean get_direction();
+ protected native void slotCancel();
+ protected native void slotClose();
+ protected native void slotUser1();
+ protected native void slotUser2();
+ protected native void slotUser3();
+ protected native void textSearchChanged(String arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KEdReplaceSignals.java b/kdejava/koala/org/kde/koala/KEdReplaceSignals.java
new file mode 100644
index 00000000..bd7cc525
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEdReplaceSignals.java
@@ -0,0 +1,13 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KEdReplaceSignals {
+ void replace();
+ void find();
+ void replaceAll();
+ void done();
+}
diff --git a/kdejava/koala/org/kde/koala/KEdit.java b/kdejava/koala/org/kde/koala/KEdit.java
new file mode 100644
index 00000000..4b6d9cb3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEdit.java
@@ -0,0 +1,193 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QPoint;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QCursor;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QTextStream;
+import org.kde.qt.QWidget;
+import org.kde.qt.QMultiLineEdit;
+
+/**
+
+ A simple text editor for the %KDE project.
+ See {@link KEditSignals} for signals emitted by KEdit
+ @author Bernd Johannes Wuebben <wuebben@math.cornell.edu>, Waldo Bastian <bastian@kde.org>
+
+ @short A simple text editor for the %KDE project.
+
+*/
+public class KEdit extends QMultiLineEdit {
+ protected KEdit(Class dummy){super((Class) null);}
+ /**
+ Search directions.
+ @short Search directions.
+ */
+ public static final int NONE = 0;
+ public static final int FORWARD = 1;
+ public static final int BACKWARD = 2;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ The usual constructor.
+ @short The usual constructor.
+ */
+ public KEdit(QWidget _parent, String name) {
+ super((Class) null);
+ newKEdit(_parent,name);
+ }
+ private native void newKEdit(QWidget _parent, String name);
+ public KEdit(QWidget _parent) {
+ super((Class) null);
+ newKEdit(_parent);
+ }
+ private native void newKEdit(QWidget _parent);
+ public KEdit() {
+ super((Class) null);
+ newKEdit();
+ }
+ private native void newKEdit();
+ /**
+ Insert text from the text stream into the edit widget.
+ @short Insert text from the text stream into the edit widget.
+ */
+ public native void insertText(QTextStream arg1);
+ /**
+ Save text from the edit widget to a text stream.
+ If <code>softWrap</code> is false soft line wrappings are replaced with line-feeds
+ If <code>softWrap</code> is true soft line wrappings are ignored.
+ @short Save text from the edit widget to a text stream.
+ */
+ public native void saveText(QTextStream arg1, boolean softWrap);
+ public native void saveText(QTextStream arg1);
+ /**
+ Let the user select a font and set the font of the textwidget to that
+ selected font.
+ @short Let the user select a font and set the font of the textwidget to that selected font.
+ */
+ public native void selectFont();
+ /**
+ Present a search dialog to the user
+ @short Present a search dialog to the user
+ */
+ public native void search();
+ /**
+ Repeat the last search specified on the search dialog.
+ If the user hasn't searched for anything until now, this method
+ will simply return without doing anything.
+ @return <code>true</code> if a search was done. <code>false</code> if no search was done.
+
+ @short Repeat the last search specified on the search dialog.
+ */
+ public native boolean repeatSearch();
+ /**
+ Present a Search and Replace Dialog to the user.
+ @short Present a Search and Replace Dialog to the user.
+ */
+ public native void replace();
+ /**
+ Present a "Goto Line" dialog to the user.
+ @short Present a "Goto Line" dialog to the user.
+ */
+ public native void doGotoLine();
+ /**
+ Clean up redundant whitespace from selected text.
+ @short Clean up redundant whitespace from selected text.
+ */
+ public native void cleanWhiteSpace();
+ /**
+ Install a context menu for KEdit.
+ The Popup Menu will be activated on a right mouse button press event.
+ @short Install a context menu for KEdit.
+ */
+ public native void installRBPopup(QPopupMenu arg1);
+ /**
+ Retrieve the current line number.
+ The current line is the line the cursor is on.
+ @short Retrieve the current line number.
+ */
+ public native int currentLine();
+ /**
+ Retrieve the actual column number the cursor is on.
+ This call differs
+ from QMultiLineEdit.getCursorPosition() in that it returns the actual cursor
+ position and not the character position. Use currentLine() and currentColumn()
+ if you want to display the current line or column in the status bar for
+ example.
+ @short Retrieve the actual column number the cursor is on.
+ */
+ public native int currentColumn();
+ /**
+ Start spellchecking mode.
+ @short Start spellchecking mode.
+ */
+ public native void spellcheck_start();
+ /**
+ Exit spellchecking mode.
+ @short Exit spellchecking mode.
+ */
+ public native void spellcheck_stop();
+ /**
+ Allow the user to toggle between insert mode and overwrite mode with
+ the "Insert" key. See also toggle_overwrite_signal();
+ The default is false: the user can not toggle.
+ @short Allow the user to toggle between insert mode and overwrite mode with the "Insert" key.
+ */
+ public native void setOverwriteEnabled(boolean b);
+ public native String selectWordUnderCursor();
+ public native QPopupMenu createPopupMenu(QPoint pos);
+ public native void setAutoUpdate(boolean b);
+ /**
+ @short
+ */
+ public native void corrected(String originalword, String newword, int pos);
+ /**
+ @short
+ */
+ public native void misspelling(String word, String[] arg2, int pos);
+ protected native void computePosition();
+ protected native int doSearch(String s_pattern, boolean case_sensitive, boolean regex, boolean forward, int line, int col);
+ protected native int doReplace(String s_pattern, boolean case_sensitive, boolean regex, boolean forward, int line, int col, boolean replace);
+ /**
+ Sets line and col to the position pos, considering word wrap.
+ @short Sets line and col to the position pos, considering word wrap.
+ */
+ protected native void posToRowCol(int pos, int line, int col);
+ /**
+ Reimplemented for internal reasons, the API is not affected.
+ @short Reimplemented for internal reasons, the API is not affected.
+ */
+ protected native void create(long arg1, boolean initializeWindow, boolean destroyOldWindow);
+ protected native void create(long arg1, boolean initializeWindow);
+ protected native void create(long arg1);
+ protected native void create();
+ /**
+ Reimplemented for internal reasons, the API is not affected.
+ @short Reimplemented for internal reasons, the API is not affected.
+ */
+ public native void ensureCursorVisible();
+ public native void setCursor(QCursor arg1);
+ protected native void viewportPaintEvent(QPaintEvent arg1);
+ protected native void keyPressEvent(QKeyEvent arg1);
+ protected native void dragMoveEvent(QDragMoveEvent e);
+ protected native void dragEnterEvent(QDragEnterEvent e);
+ protected native void dropEvent(QDropEvent e);
+ protected native void contentsDragMoveEvent(QDragMoveEvent e);
+ protected native void contentsDragEnterEvent(QDragEnterEvent e);
+ protected native void contentsDropEvent(QDropEvent e);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KEditListBox.java b/kdejava/koala/org/kde/koala/KEditListBox.java
new file mode 100644
index 00000000..ed816112
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEditListBox.java
@@ -0,0 +1,236 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QListBox;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QPushButton;
+import org.kde.qt.QWidget;
+import org.kde.qt.QGroupBox;
+
+/**
+
+ An editable listbox
+ This class provides a editable listbox ;-), this means
+ a listbox which is accompanied by a line edit to enter new
+ items into the listbox and pushbuttons to add and remove
+ items from the listbox and two buttons to move items up and down.
+ \image html keditlistbox.png "KDE Edit List Box Widget"
+ See {@link KEditListBoxSignals} for signals emitted by KEditListBox
+ @short An editable listbox
+
+*/
+public class KEditListBox extends QGroupBox {
+ protected KEditListBox(Class dummy){super((Class) null);}
+
+ /**
+ Enumeration of the buttons, the listbox offers. Specify them in the
+ constructor in the buttons parameter, or in setButtons.
+ @short Enumeration of the buttons, the listbox offers.
+ */
+ public static final int Add = 1;
+ public static final int Remove = 2;
+ public static final int UpDown = 4;
+
+ public static final int All = Add|Remove|UpDown;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create an editable listbox.
+ If <code>checkAtEntering</code> is true, after every character you type
+ in the line edit KEditListBox will enable or disable
+ the Add-button, depending whether the current content of the
+ line edit is already in the listbox. Maybe this can become a
+ performance hit with large lists on slow machines.
+ If <code>checkAtEntering</code> is false,
+ it will be checked if you press the Add-button. It is not
+ possible to enter items twice into the listbox.
+ @short Create an editable listbox.
+ */
+ public KEditListBox(QWidget parent, String name, boolean checkAtEntering, int buttons) {
+ super((Class) null);
+ newKEditListBox(parent,name,checkAtEntering,buttons);
+ }
+ private native void newKEditListBox(QWidget parent, String name, boolean checkAtEntering, int buttons);
+ public KEditListBox(QWidget parent, String name, boolean checkAtEntering) {
+ super((Class) null);
+ newKEditListBox(parent,name,checkAtEntering);
+ }
+ private native void newKEditListBox(QWidget parent, String name, boolean checkAtEntering);
+ public KEditListBox(QWidget parent, String name) {
+ super((Class) null);
+ newKEditListBox(parent,name);
+ }
+ private native void newKEditListBox(QWidget parent, String name);
+ public KEditListBox(QWidget parent) {
+ super((Class) null);
+ newKEditListBox(parent);
+ }
+ private native void newKEditListBox(QWidget parent);
+ public KEditListBox() {
+ super((Class) null);
+ newKEditListBox();
+ }
+ private native void newKEditListBox();
+ /**
+ Create an editable listbox.
+ The same as the other constructor, additionally it takes
+ <code>title</code>, which will be the title of the frame around the listbox.
+ @short Create an editable listbox.
+ */
+ public KEditListBox(String title, QWidget parent, String name, boolean checkAtEntering, int buttons) {
+ super((Class) null);
+ newKEditListBox(title,parent,name,checkAtEntering,buttons);
+ }
+ private native void newKEditListBox(String title, QWidget parent, String name, boolean checkAtEntering, int buttons);
+ public KEditListBox(String title, QWidget parent, String name, boolean checkAtEntering) {
+ super((Class) null);
+ newKEditListBox(title,parent,name,checkAtEntering);
+ }
+ private native void newKEditListBox(String title, QWidget parent, String name, boolean checkAtEntering);
+ public KEditListBox(String title, QWidget parent, String name) {
+ super((Class) null);
+ newKEditListBox(title,parent,name);
+ }
+ private native void newKEditListBox(String title, QWidget parent, String name);
+ public KEditListBox(String title, QWidget parent) {
+ super((Class) null);
+ newKEditListBox(title,parent);
+ }
+ private native void newKEditListBox(String title, QWidget parent);
+ public KEditListBox(String title) {
+ super((Class) null);
+ newKEditListBox(title);
+ }
+ private native void newKEditListBox(String title);
+ /**
+ Another constructor, which allows to use a custom editing widget
+ instead of the standard KLineEdit widget. E.g. you can use a
+ KURLRequester or a KComboBox as input widget. The custom
+ editor must consist of a lineedit and optionally another widget that
+ is used as representation. A KComboBox or a KURLRequester have a
+ KLineEdit as child-widget for example, so the KComboBox is used as
+ the representation widget.
+ @short Another constructor, which allows to use a custom editing widget instead of the standard KLineEdit widget.
+ @see KURLRequester#customEditor
+ */
+ // KEditListBox* KEditListBox(const QString& arg1,const KEditListBox::CustomEditor& arg2,QWidget* arg3,const char* arg4,bool arg5,int arg6); >>>> NOT CONVERTED
+ // KEditListBox* KEditListBox(const QString& arg1,const KEditListBox::CustomEditor& arg2,QWidget* arg3,const char* arg4,bool arg5); >>>> NOT CONVERTED
+ // KEditListBox* KEditListBox(const QString& arg1,const KEditListBox::CustomEditor& arg2,QWidget* arg3,const char* arg4); >>>> NOT CONVERTED
+ // KEditListBox* KEditListBox(const QString& arg1,const KEditListBox::CustomEditor& arg2,QWidget* arg3); >>>> NOT CONVERTED
+ // KEditListBox* KEditListBox(const QString& arg1,const KEditListBox::CustomEditor& arg2); >>>> NOT CONVERTED
+ /**
+ Return a pointer to the embedded QListBox.
+ @short Return a pointer to the embedded QListBox.
+ */
+ public native QListBox listBox();
+ /**
+ Return a pointer to the embedded QLineEdit.
+ @short Return a pointer to the embedded QLineEdit.
+ */
+ public native KLineEdit lineEdit();
+ /**
+ Return a pointer to the Add button
+ @short Return a pointer to the Add button
+ */
+ public native QPushButton addButton();
+ /**
+ Return a pointer to the Remove button
+ @short Return a pointer to the Remove button
+ */
+ public native QPushButton removeButton();
+ /**
+ Return a pointer to the Up button
+ @short Return a pointer to the Up button
+ */
+ public native QPushButton upButton();
+ /**
+ Return a pointer to the Down button
+ @short Return a pointer to the Down button
+ */
+ public native QPushButton downButton();
+ /**
+ See QListBox.count()
+ @short See QListBox.count()
+ */
+ public native int count();
+ /**
+ See QListBox.insertStringList()
+ @short See QListBox.insertStringList()
+ */
+ public native void insertStringList(String[] list, int index);
+ public native void insertStringList(String[] list);
+ /**
+ See QListBox.insertStringList()
+ @short See QListBox.insertStringList()
+ */
+ public native void insertStrList(String[] list, int index);
+ public native void insertStrList(String[] list);
+ /**
+ See QListBox.insertStrList()
+ @short See QListBox.insertStrList()
+ */
+ public native void insertStrList(String[] list, int numStrings, int index);
+ /**
+ See QListBox.insertItem()
+ @short See QListBox.insertItem()
+ */
+ public native void insertItem(String text, int index);
+ public native void insertItem(String text);
+ /**
+ Clears both the listbox and the line edit.
+ @short Clears both the listbox and the line edit.
+ */
+ public native void clear();
+ /**
+ See QListBox.text()
+ @short See QListBox.text()
+ */
+ public native String text(int index);
+ /**
+ See QListBox.currentItem()
+ @short See QListBox.currentItem()
+ */
+ public native int currentItem();
+ /**
+ See QListBox.currentText()
+ @short See QListBox.currentText()
+ */
+ public native String currentText();
+ /**
+ @return a stringlist of all items in the listbox
+
+ @short
+ */
+ public native ArrayList items();
+ /**
+ Clears the listbox and sets the contents to <code>items</code>
+ @short Clears the listbox and sets the contents to <code>items</code>
+ */
+ public native void setItems(String[] items);
+ /**
+ Returns which buttons are visible
+ @short Returns which buttons are visible
+ */
+ public native int buttons();
+ /**
+ Specifies which buttons should be visible
+ @short Specifies which buttons should be visible
+ */
+ public native void setButtons(int buttons);
+ protected native void moveItemUp();
+ protected native void moveItemDown();
+ protected native void addItem();
+ protected native void removeItem();
+ protected native void enableMoveButtons(int index);
+ protected native void typedSomething(String text);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KEditListBoxSignals.java b/kdejava/koala/org/kde/koala/KEditListBoxSignals.java
new file mode 100644
index 00000000..9ca5ac26
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEditListBoxSignals.java
@@ -0,0 +1,25 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QListBox;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QPushButton;
+import org.kde.qt.QWidget;
+
+public interface KEditListBoxSignals {
+ void changed();
+ /**
+ This signal is emitted when the user adds a new string to the list,
+ the parameter is the added string.
+ @short This signal is emitted when the user adds a new string to the list, the parameter is the added string.
+ */
+ void added(String text);
+ /**
+ This signal is emitted when the user removes a string from the list,
+ the parameter is the removed string.
+ @short This signal is emitted when the user removes a string from the list, the parameter is the removed string.
+ */
+ void removed(String text);
+}
diff --git a/kdejava/koala/org/kde/koala/KEditSignals.java b/kdejava/koala/org/kde/koala/KEditSignals.java
new file mode 100644
index 00000000..eb5f03bd
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEditSignals.java
@@ -0,0 +1,40 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QPoint;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QCursor;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QTextStream;
+import org.kde.qt.QWidget;
+
+public interface KEditSignals {
+ /** This signal is emitted if the user dropped a URL over the text editor
+ QMultiLineEdit widget.
+ Note that the user can drop also Text on it, but
+ this is already handled internally by QMultiLineEdit.
+ @short This signal is emitted if the user dropped a URL over the text editor QMultiLineEdit widget.
+ */
+ void gotUrlDrop(QDropEvent e);
+ /** This signal is emitted whenever the cursor position changes.
+ Use this in conjunction with currentLine(), currentColumn()
+ if you need to know the cursor position.
+ @short This signal is emitted whenever the cursor position changes.
+ */
+ void CursorPositionChanged();
+ /**
+ This signal is emitted if the user toggles from insert to overwrite mode
+ or vice versa.
+ The user can do so by pressing the "Insert" button on a PC keyboard.
+ This feature must be activated by calling setOverwriteEnabled(true)
+ first.
+ @short This signal is emitted if the user toggles from insert to overwrite mode or vice versa.
+ */
+ void toggle_overwrite_signal();
+}
diff --git a/kdejava/koala/org/kde/koala/KEditToolbar.java b/kdejava/koala/org/kde/koala/KEditToolbar.java
new file mode 100644
index 00000000..683aa830
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEditToolbar.java
@@ -0,0 +1,242 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ This dialog only works if your application uses the XML UI
+ framework for creating menus and toolbars. It depends on the XML
+ files to describe the toolbar layouts and it requires the actions
+ to determine which buttons are active.
+ Typically, you would include the KStdAction.configureToolbars()
+ standard action in your application. In your slot to this action,
+ you would have something like so:
+ <pre>
+ KEditToolbar dlg(actionCollection());
+ if (dlg.exec())
+ {
+ createGUI();
+ }
+ </pre>
+ That code snippet also takes care of redrawing the menu and
+ toolbars if you have made any changes.
+ If you are using KMainWindow's settings methods (either save/apply manually
+ or autoSaveSettings), you should write something like:
+ <pre>
+ void MyClass.slotConfigureToolbars()
+ {
+ saveMainWindowSettings( KGlobal.config(), "MainWindow" );
+ KEditToolbar dlg(actionCollection());
+ connect(&dlg,SIGNAL("newToolbarConfig()"),this,SLOT("slotNewToolbarConfig()"));
+ dlg.exec();
+ }
+ void MyClass.slotNewToolbarConfig() // This is called when OK, Apply or Defaults is clicked
+ {
+ ...if you use any action list, use plugActionList on each here...
+ createGUI();
+ applyMainWindowSettings( KGlobal.config(), "MainWindow" );
+ }
+ </pre>
+ Note that the procedure is a bit different for KParts applications.
+ In this case, you need only pass along a pointer to your
+ application's KXMLGUIFactory object. The editor will take care of
+ finding all of the action collections and XML files. The editor
+ aims to be semi-intelligent about where it assigns any
+ modifications. In other words, it will not write out part specific
+ changes to your shell's XML file.
+ An example would be:
+ <pre>
+ saveMainWindowSettings( KGlobal.config(), "MainWindow" );
+ KEditToolbar dlg(factory());
+ connect(&dlg,SIGNAL("newToolbarConfig()"),this,SLOT("slotNewToolbarConfig()"));
+ dlg.exec();
+ void MyClass.slotNewToolbarConfig() // This is called when OK, Apply or Defaults is clicked
+ {
+ ...if you use any action list, use plugActionList on each here...
+ // Do NOT call createGUI()!
+ applyMainWindowSettings( KGlobal.config(), "MainWindow" );
+ }
+ </pre>
+ See {@link KEditToolbarSignals} for signals emitted by KEditToolbar
+ @author Kurt Granroth <granroth@kde.org>
+
+ @version $Id$
+
+ @short A dialog used to customize or configure toolbars.
+
+*/
+public class KEditToolbar extends KDialogBase {
+ protected KEditToolbar(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor for apps that do not use components.
+ This is the
+ only entry point to this class. You <b>must</b> pass along your
+ collection of actions (some of which appear in your toolbars).
+ The other two parameters are optional.
+ The second parameter, xmlfile(), is the name (absolute or
+ relative) of your application's UI resource file. If it is
+ left blank, then the resource file: share/apps/appname/appnameui.rc
+ is used. This is the same resource file that is used by the
+ default createGUI() function in KMainWindow so you're usually
+ pretty safe in leaving it blank.
+ The third parameter, global(), controls whether or not the
+ global resource file is used. If this is <code>true</code>, then you may
+ edit all of the actions in your toolbars -- global ones and
+ local one. If it is <code>false</code>, then you may edit only your
+ application's entries. The only time you should set this to
+ false is if your application does not use the global resource
+ file at all (very rare).
+ @param collection The collection of actions to work on.
+ @param xmlfile The application's local resource file.
+ @param global If <code>true</code>, then the global resource file will also
+ be parsed.
+ @param parent The parent of the dialog.
+ @param name An internal name.
+ @short Constructor for apps that do not use components.
+ */
+ public KEditToolbar(KActionCollection collection, String xmlfile, boolean global, QWidget parent, String name) {
+ super((Class) null);
+ newKEditToolbar(collection,xmlfile,global,parent,name);
+ }
+ private native void newKEditToolbar(KActionCollection collection, String xmlfile, boolean global, QWidget parent, String name);
+ public KEditToolbar(KActionCollection collection, String xmlfile, boolean global, QWidget parent) {
+ super((Class) null);
+ newKEditToolbar(collection,xmlfile,global,parent);
+ }
+ private native void newKEditToolbar(KActionCollection collection, String xmlfile, boolean global, QWidget parent);
+ public KEditToolbar(KActionCollection collection, String xmlfile, boolean global) {
+ super((Class) null);
+ newKEditToolbar(collection,xmlfile,global);
+ }
+ private native void newKEditToolbar(KActionCollection collection, String xmlfile, boolean global);
+ public KEditToolbar(KActionCollection collection, String xmlfile) {
+ super((Class) null);
+ newKEditToolbar(collection,xmlfile);
+ }
+ private native void newKEditToolbar(KActionCollection collection, String xmlfile);
+ public KEditToolbar(KActionCollection collection) {
+ super((Class) null);
+ newKEditToolbar(collection);
+ }
+ private native void newKEditToolbar(KActionCollection collection);
+ public KEditToolbar(String defaultToolbar, KActionCollection collection, String xmlfile, boolean global, QWidget parent, String name) {
+ super((Class) null);
+ newKEditToolbar(defaultToolbar,collection,xmlfile,global,parent,name);
+ }
+ private native void newKEditToolbar(String defaultToolbar, KActionCollection collection, String xmlfile, boolean global, QWidget parent, String name);
+ public KEditToolbar(String defaultToolbar, KActionCollection collection, String xmlfile, boolean global, QWidget parent) {
+ super((Class) null);
+ newKEditToolbar(defaultToolbar,collection,xmlfile,global,parent);
+ }
+ private native void newKEditToolbar(String defaultToolbar, KActionCollection collection, String xmlfile, boolean global, QWidget parent);
+ public KEditToolbar(String defaultToolbar, KActionCollection collection, String xmlfile, boolean global) {
+ super((Class) null);
+ newKEditToolbar(defaultToolbar,collection,xmlfile,global);
+ }
+ private native void newKEditToolbar(String defaultToolbar, KActionCollection collection, String xmlfile, boolean global);
+ public KEditToolbar(String defaultToolbar, KActionCollection collection, String xmlfile) {
+ super((Class) null);
+ newKEditToolbar(defaultToolbar,collection,xmlfile);
+ }
+ private native void newKEditToolbar(String defaultToolbar, KActionCollection collection, String xmlfile);
+ public KEditToolbar(String defaultToolbar, KActionCollection collection) {
+ super((Class) null);
+ newKEditToolbar(defaultToolbar,collection);
+ }
+ private native void newKEditToolbar(String defaultToolbar, KActionCollection collection);
+ /**
+ Constructor for KParts based apps.
+ The main parameter, factory(), is a pointer to the
+ XML GUI factory object for your application. It contains a list
+ of all of the GUI clients (along with the action collections and
+ xml files) and the toolbar editor uses that.
+ Use this like so:
+ <pre>
+ KEditToolbar edit(factory());
+ if ( edit.exec() )
+ ...
+ </pre>
+ @param factory Your application's factory object
+ @param parent The usual parent for the dialog.
+ @param name An internal name.
+ Some people seem tempted to use this also in non-KParts apps, using KMainWindow.guiFactory().
+ This works, but only _if_ setting conserveMemory to false when calling
+ KMainWindow.createGUI()! If not, use the other KEditToolbar constructor.
+ @short Constructor for KParts based apps.
+ */
+ public KEditToolbar(KXMLGUIFactory factory, QWidget parent, String name) {
+ super((Class) null);
+ newKEditToolbar(factory,parent,name);
+ }
+ private native void newKEditToolbar(KXMLGUIFactory factory, QWidget parent, String name);
+ public KEditToolbar(KXMLGUIFactory factory, QWidget parent) {
+ super((Class) null);
+ newKEditToolbar(factory,parent);
+ }
+ private native void newKEditToolbar(KXMLGUIFactory factory, QWidget parent);
+ public KEditToolbar(KXMLGUIFactory factory) {
+ super((Class) null);
+ newKEditToolbar(factory);
+ }
+ private native void newKEditToolbar(KXMLGUIFactory factory);
+ /** Constructor for KParts based apps, which has an extra argument
+ specifying the toolbar to be shown.
+ @param defaultToolbar The toolbar with this name will appear for editing.
+ @param factory Your application's factory object
+ @param parent The usual parent for the dialog.
+ @param name An internal name.
+ @short Constructor for KParts based apps, which has an extra argument specifying the toolbar to be shown.
+ */
+ public KEditToolbar(String defaultToolbar, KXMLGUIFactory factory, QWidget parent, String name) {
+ super((Class) null);
+ newKEditToolbar(defaultToolbar,factory,parent,name);
+ }
+ private native void newKEditToolbar(String defaultToolbar, KXMLGUIFactory factory, QWidget parent, String name);
+ public KEditToolbar(String defaultToolbar, KXMLGUIFactory factory, QWidget parent) {
+ super((Class) null);
+ newKEditToolbar(defaultToolbar,factory,parent);
+ }
+ private native void newKEditToolbar(String defaultToolbar, KXMLGUIFactory factory, QWidget parent);
+ public KEditToolbar(String defaultToolbar, KXMLGUIFactory factory) {
+ super((Class) null);
+ newKEditToolbar(defaultToolbar,factory);
+ }
+ private native void newKEditToolbar(String defaultToolbar, KXMLGUIFactory factory);
+ /** Sets the default toolbar, which will be auto-selected when the constructor without the
+ defaultToolbar argument is used.
+ @param toolbarName the name of the toolbar
+ @short Sets the default toolbar, which will be auto-selected when the constructor without the defaultToolbar argument is used.
+ */
+ public static native void setDefaultToolbar(String toolbarName);
+ /**
+ Overridden in order to save any changes made to the toolbars
+ @short Overridden in order to save any changes made to the toolbars
+ */
+ protected native void slotOk();
+ /**
+ idem
+ @short idem
+ */
+ protected native void slotApply();
+ /** should OK really save?
+ @short should OK really save?
+ */
+ protected native void acceptOK(boolean b);
+ /**
+ Set toolbars to default value
+ @short Set toolbars to default value
+ */
+ protected native void slotDefault();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KEditToolbarSignals.java b/kdejava/koala/org/kde/koala/KEditToolbarSignals.java
new file mode 100644
index 00000000..76b84c1d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEditToolbarSignals.java
@@ -0,0 +1,16 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KEditToolbarSignals {
+ /**
+ Signal emitted when 'apply' or 'ok' is clicked or toolbars were resetted.
+ Connect to it, to plug action lists and to call applyMainWindowSettings
+ (see sample code in this class's documentation)
+ @short Signal emitted when 'apply' or 'ok' is clicked or toolbars were resetted.
+ */
+ void newToolbarConfig();
+}
diff --git a/kdejava/koala/org/kde/koala/KEditToolbarWidget.java b/kdejava/koala/org/kde/koala/KEditToolbarWidget.java
new file mode 100644
index 00000000..e77d2753
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEditToolbarWidget.java
@@ -0,0 +1,410 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QDomDocument;
+import org.kde.qt.QListViewItem;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDomElement;
+import org.kde.qt.QWidget;
+
+/**
+
+ This is the widget that does all of the work for the
+ KEditToolbar dialog. In most cases, you will want to use the
+ dialog instead of this widget directly.
+ Typically, you would use this widget only if you wanted to embed
+ the toolbar editing directly into your existing configure or
+ preferences dialog.
+ This widget only works if your application uses the XML UI
+ framework for creating menus and toolbars. It depends on the XML
+ files to describe the toolbar layouts and it requires the actions
+ to determine which buttons are active.
+ See {@link KEditToolbarWidgetSignals} for signals emitted by KEditToolbarWidget
+ @author Kurt Granroth <granroth@kde.org>
+
+ @version $Id$
+
+ @short A widget used to customize or configure toolbars.
+
+*/
+public class KEditToolbarWidget extends QWidget implements KXMLGUIClientInterface {
+ protected KEditToolbarWidget(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor. This is the only entry point to this class. You
+ <code>must</code> pass along your collection of actions (some of which
+ appear in your toolbars). The other three parameters are
+ optional.
+ The second parameter, xmlfile, is the name (absolute or
+ relative) of your application's UI resource file. If it is
+ left blank, then the resource file: share/apps/appname/appnameui.rc
+ is used. This is the same resource file that is used by the
+ default createGUI function in KMainWindow so you're usually
+ pretty safe in leaving it blank.
+ The third parameter, global, controls whether or not the
+ global resource file is used. If this is true, then you may
+ edit all of the actions in your toolbars -- global ones and
+ local one. If it is false, then you may edit only your
+ application's entries. The only time you should set this to
+ false is if your application does not use the global resource
+ file at all (very rare)
+ The last parameter, parent, is the standard parent stuff.
+ @param collection The collection of actions to work on
+ @param xmlfile The application's local resource file
+ @param global If true, then the global resource file will also
+ be parsed
+ @param parent This widget's parent
+ @short Constructor.
+ */
+ public KEditToolbarWidget(KActionCollection collection, String xmlfile, boolean global, QWidget parent) {
+ super((Class) null);
+ newKEditToolbarWidget(collection,xmlfile,global,parent);
+ }
+ private native void newKEditToolbarWidget(KActionCollection collection, String xmlfile, boolean global, QWidget parent);
+ public KEditToolbarWidget(KActionCollection collection, String xmlfile, boolean global) {
+ super((Class) null);
+ newKEditToolbarWidget(collection,xmlfile,global);
+ }
+ private native void newKEditToolbarWidget(KActionCollection collection, String xmlfile, boolean global);
+ public KEditToolbarWidget(KActionCollection collection, String xmlfile) {
+ super((Class) null);
+ newKEditToolbarWidget(collection,xmlfile);
+ }
+ private native void newKEditToolbarWidget(KActionCollection collection, String xmlfile);
+ public KEditToolbarWidget(KActionCollection collection) {
+ super((Class) null);
+ newKEditToolbarWidget(collection);
+ }
+ private native void newKEditToolbarWidget(KActionCollection collection);
+ public KEditToolbarWidget(String defaultToolbar, KActionCollection collection, String file, boolean global, QWidget parent) {
+ super((Class) null);
+ newKEditToolbarWidget(defaultToolbar,collection,file,global,parent);
+ }
+ private native void newKEditToolbarWidget(String defaultToolbar, KActionCollection collection, String file, boolean global, QWidget parent);
+ public KEditToolbarWidget(String defaultToolbar, KActionCollection collection, String file, boolean global) {
+ super((Class) null);
+ newKEditToolbarWidget(defaultToolbar,collection,file,global);
+ }
+ private native void newKEditToolbarWidget(String defaultToolbar, KActionCollection collection, String file, boolean global);
+ public KEditToolbarWidget(String defaultToolbar, KActionCollection collection, String file) {
+ super((Class) null);
+ newKEditToolbarWidget(defaultToolbar,collection,file);
+ }
+ private native void newKEditToolbarWidget(String defaultToolbar, KActionCollection collection, String file);
+ public KEditToolbarWidget(String defaultToolbar, KActionCollection collection) {
+ super((Class) null);
+ newKEditToolbarWidget(defaultToolbar,collection);
+ }
+ private native void newKEditToolbarWidget(String defaultToolbar, KActionCollection collection);
+ /**
+ Constructor for KParts based apps.
+ The first parameter, factory, is a pointer to the XML GUI
+ factory object for your application. It contains a list of all
+ of the GUI clients (along with the action collections and xml
+ files) and the toolbar editor uses that.
+ The second parameter, parent, is the standard parent
+ Use this like so:
+ <pre>
+ KEditToolbar edit(factory());
+ if ( edit.exec() )
+ ...
+ </pre>
+ @param factory Your application's factory object
+ @param parent This widget's parent
+ @short Constructor for KParts based apps.
+ */
+ public KEditToolbarWidget(KXMLGUIFactory factory, QWidget parent) {
+ super((Class) null);
+ newKEditToolbarWidget(factory,parent);
+ }
+ private native void newKEditToolbarWidget(KXMLGUIFactory factory, QWidget parent);
+ public KEditToolbarWidget(KXMLGUIFactory factory) {
+ super((Class) null);
+ newKEditToolbarWidget(factory);
+ }
+ private native void newKEditToolbarWidget(KXMLGUIFactory factory);
+ public KEditToolbarWidget(String defaultToolbar, KXMLGUIFactory factory, QWidget parent) {
+ super((Class) null);
+ newKEditToolbarWidget(defaultToolbar,factory,parent);
+ }
+ private native void newKEditToolbarWidget(String defaultToolbar, KXMLGUIFactory factory, QWidget parent);
+ public KEditToolbarWidget(String defaultToolbar, KXMLGUIFactory factory) {
+ super((Class) null);
+ newKEditToolbarWidget(defaultToolbar,factory);
+ }
+ private native void newKEditToolbarWidget(String defaultToolbar, KXMLGUIFactory factory);
+ /**
+ @short
+ */
+ public native KActionCollection actionCollection();
+ /**
+ Save any changes the user made. The file will be in the user's
+ local directory (usually $HOME/.kde/share/apps/\<appname\>). The
+ filename will be the one specified in the constructor.. or the
+ made up one if the filename was NULL.
+ @return The status of whether or not the save succeeded.
+
+ @short Save any changes the user made.
+ */
+ public native boolean save();
+ /**
+ Remove and readd all KMXLGUIClients to update the GUI
+ @short Remove and readd all KMXLGUIClients to update the GUI
+ */
+ public native void rebuildKXMLGUIClients();
+ protected native void setupLayout();
+ // void insertActive(ToolbarItem* arg1,QListViewItem* arg2,bool arg3); >>>> NOT CONVERTED
+ // void insertActive(ToolbarItem* arg1,QListViewItem* arg2); >>>> NOT CONVERTED
+ // void removeActive(ToolbarItem* arg1); >>>> NOT CONVERTED
+ // void moveActive(ToolbarItem* arg1,QListViewItem* arg2); >>>> NOT CONVERTED
+ protected native void initNonKPart(KActionCollection collection, String file, boolean global);
+ protected native void initKPart(KXMLGUIFactory factory);
+ protected native void loadToolbarCombo(String defaultToolbar);
+ protected native void loadToolbarCombo();
+ protected native void loadActionList(QDomElement elem);
+ protected native void updateLocal(QDomElement elem);
+ protected native void slotToolbarSelected(String text);
+ protected native void slotInactiveSelected(QListViewItem item);
+ protected native void slotActiveSelected(QListViewItem item);
+ protected native void slotDropped(KListView list, QDropEvent e, QListViewItem after);
+ protected native void slotInsertButton();
+ protected native void slotRemoveButton();
+ protected native void slotUpButton();
+ protected native void slotDownButton();
+ protected native void slotChangeIcon();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+ /**
+ Retrieves an action of the client by name. If not found, it looks in its child clients.
+ This method is provided for convenience, as it uses actionCollection()
+ to get the action object.
+ @short Retrieves an action of the client by name.
+ */
+ public native KAction action(String name);
+ /**
+ Retrieves an action for a given QDomElement. The default
+ implementation uses the "name" attribute to query the action
+ object via the other action() method.
+ @short Retrieves an action for a given QDomElement.
+ */
+ public native KAction action(QDomElement element);
+ /**
+ @return The instance ( KInstance ) for this GUI client.
+
+ @short
+ */
+ public native KInstanceInterface instance();
+ /**
+ @return The parsed XML in a QDomDocument, set by
+ setXMLFile() or setXML().
+ This document describes the layout of the GUI.
+
+ @short
+ */
+ public native QDomDocument domDocument();
+ /**
+ This will return the name of the XML file as set by setXMLFile().
+ If setXML() is used directly, then this will return NULL.
+ The filename that this returns is obvious for components as each
+ component has exactly one XML file. In non-components, however,
+ there are usually two: the global file and the local file. This
+ function doesn't really care about that, though. It will always
+ return the last XML file set. This, in almost all cases, will
+ be the local XML file.
+ @return The name of the XML file or null
+
+ @short This will return the name of the XML file as set by setXMLFile().
+ */
+ public native String xmlFile();
+ public native String localXMLFile();
+ /**
+ @short
+ */
+ public native void setXMLGUIBuildDocument(QDomDocument doc);
+ /**
+ @short
+ */
+ public native QDomDocument xmlguiBuildDocument();
+ /**
+ This method is called by the KXMLGUIFactory as soon as the client
+ is added to the KXMLGUIFactory's GUI.
+ @short This method is called by the KXMLGUIFactory as soon as the client is added to the KXMLGUIFactory's GUI.
+ */
+ public native void setFactory(KXMLGUIFactory factory);
+ /**
+ Retrieves a pointer to the KXMLGUIFactory this client is
+ associated with (will return null if the client's GUI has not been built
+ by a KXMLGUIFactory.
+ @short Retrieves a pointer to the KXMLGUIFactory this client is associated with (will return 0L if the client's GUI has not been built by a KXMLGUIFactory.
+ */
+ public native KXMLGUIFactory factory();
+ /**
+ KXMLGUIClients can form a simple child/parent object tree. This
+ method returns a pointer to the parent client or null if it has no
+ parent client assigned.
+ @short KXMLGUIClients can form a simple child/parent object tree.
+ */
+ public native KXMLGUIClientInterface parentClient();
+ /**
+ Use this method to make a client a child client of another client.
+ Usually you don't need to call this method, as it is called
+ automatically when using the second constructor, which takes a
+ parent argument.
+ @short Use this method to make a client a child client of another client.
+ */
+ public native void insertChildClient(KXMLGUIClientInterface child);
+ /**
+ Removes the given <code>child</code> from the client's children list.
+ @short Removes the given <code>child</code> from the client's children list.
+ */
+ public native void removeChildClient(KXMLGUIClientInterface child);
+ /**
+ Retrieves a list of all child clients.
+ @short Retrieves a list of all child clients.
+ */
+ // const QPtrList<KXMLGUIClient>* childClients(); >>>> NOT CONVERTED
+ /**
+ A client can have an own KXMLGUIBuilder.
+ Use this method to assign your builder instance to the client (so that the
+ KXMLGUIFactory can use it when building the client's GUI)
+ Client specific guibuilders are useful if you want to create
+ custom container widgets for your GUI.
+ @short A client can have an own KXMLGUIBuilder.
+ */
+ public native void setClientBuilder(KXMLGUIBuilderInterface builder);
+ /**
+ Retrieves the client's GUI builder or null if no client specific
+ builder has been assigned via setClientBuilder()
+ @short Retrieves the client's GUI builder or 0L if no client specific builder has been assigned via setClientBuilder()
+ */
+ public native KXMLGUIBuilderInterface clientBuilder();
+ /**
+ Forces this client to re-read its XML resource file. This is
+ intended to be used when you know that the resource file has
+ changed and you will soon be rebuilding the GUI. It has no
+ useful effect with non-KParts GUIs, so don't bother using it
+ unless your app is component based.
+ @short Forces this client to re-read its XML resource file.
+ */
+ public native void reloadXML();
+ /**
+ ActionLists are a way for XMLGUI to support dynamic lists of
+ actions. E.g. if you are writing a file manager, and there is a
+ menu file whose contents depend on the mimetype of the file that
+ is selected, then you can achieve this using ActionLists. It
+ works as follows:
+ In your xxxui.rc file ( the one that you set in setXMLFile()
+ ), you put an <p>\<ActionList name="xxx"\></p> tag. E.g.
+ <pre>
+ <kpartgui name="xxx_part" version="1">
+ <MenuBar>
+ <Menu name="file">
+ ... <!-- some useful actions-.
+ <ActionList name="xxx_file_actionlist" />
+ ... <!-- even more useful actions-.
+ </Menu>
+ ...
+ </MenuBar>
+ </kpartgui>
+ </pre>
+ This tag will get expanded to a list of actions. In the example
+ above ( a file manager with a dynamic file menu ), you would call
+ <pre>
+ QPtrList<KAction> file_actions;
+ for( ... )
+ if( ... )
+ file_actions.append( cool_action );
+ unplugActionList( "xxx_file_actionlist" );
+ plugActionList( "xxx_file_actionlist", file_actions );
+ </pre>
+ every time a file is selected, unselected or ...
+ <b>Note:<> You should not call createGUI() after calling this
+ function. In fact, that would remove the newly added
+ actionlists again...
+ <b>Note:<> Forgetting to call unplugActionList() before
+ plugActionList() would leave the previous actions in the
+ menu too..
+ @short ActionLists are a way for XMLGUI to support dynamic lists of actions.
+ */
+ // void plugActionList(const QString& arg1,const QPtrList<KAction>& arg2); >>>> NOT CONVERTED
+ /**
+ The complement of plugActionList() ...
+ @short The complement of plugActionList() .
+ */
+ public native void unplugActionList(String name);
+ public native void addStateActionEnabled(String state, String action);
+ public native void addStateActionDisabled(String state, String action);
+ // KXMLGUIClient::StateChange getActionsToChangeForState(const QString& arg1); >>>> NOT CONVERTED
+ public native void beginXMLPlug(QWidget arg1);
+ public native void endXMLPlug();
+ public native void prepareXMLUnplug(QWidget arg1);
+ public static native String findMostRecentXMLFile(String[] files, StringBuffer doc);
+ /**
+ Sets the instance ( KInstance) for this part.
+ Call this first in the inherited class constructor.
+ (At least before setXMLFile().)
+ @short Sets the instance ( KInstance) for this part.
+ */
+ protected native void setInstance(KInstanceInterface instance);
+ /**
+ Sets the name of the rc file containing the XML for the part.
+ Call this in the Part-inherited class constructor.
+ @param file Either an absolute path for the file, or simply the
+ filename, which will then be assumed to be installed
+ in the "data" resource, under a directory named like
+ the instance.
+ @param merge Whether to merge with the global document.
+ @param setXMLDoc Specify whether to call setXML. Default is true.
+ and the DOM document at once.
+ @short Sets the name of the rc file containing the XML for the part.
+ */
+ protected native void setXMLFile(String file, boolean merge, boolean setXMLDoc);
+ protected native void setXMLFile(String file, boolean merge);
+ protected native void setXMLFile(String file);
+ protected native void setLocalXMLFile(String file);
+ /**
+ Sets the XML for the part.
+ Call this in the Part-inherited class constructor if you
+ don't call setXMLFile().
+ @short Sets the XML for the part.
+ */
+ protected native void setXML(String document, boolean merge);
+ protected native void setXML(String document);
+ /**
+ Sets the Document for the part, describing the layout of the GUI.
+ Call this in the Part-inherited class constructor if you don't call
+ setXMLFile or setXML .
+ @short Sets the Document for the part, describing the layout of the GUI.
+ */
+ protected native void setDOMDocument(QDomDocument document, boolean merge);
+ protected native void setDOMDocument(QDomDocument document);
+ /**
+ This function will attempt to give up some memory after the GUI
+ is built. It should never be used in apps where the GUI may be
+ rebuilt at some later time (components, for instance).
+ @short This function will attempt to give up some memory after the GUI is built.
+ */
+ protected native void conserveMemory();
+ /**
+ Actions can collectively be assigned a "State". To accomplish this
+ the respective actions are tagged as \<enable\> or \<disable\> in
+ a \<State\> \</State\> group of the XMLfile. During program execution the
+ programmer can call stateChanged() to set actions to a defined state.
+ @param newstate Name of a State in the XMLfile.
+ @param reverse If the flag reverse is set to StateReverse, the State is reversed.
+ (actions to be enabled will be disabled and action to be disabled will be enabled)
+ Default is reverse=false.
+ @short Actions can collectively be assigned a "State".
+ */
+ protected native void stateChanged(String newstate, int reverse);
+ protected native void stateChanged(String newstate);
+}
diff --git a/kdejava/koala/org/kde/koala/KEditToolbarWidgetSignals.java b/kdejava/koala/org/kde/koala/KEditToolbarWidgetSignals.java
new file mode 100644
index 00000000..e64be7e0
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEditToolbarWidgetSignals.java
@@ -0,0 +1,18 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QDomDocument;
+import org.kde.qt.QListViewItem;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDomElement;
+
+public interface KEditToolbarWidgetSignals {
+ /**
+ Emitted whenever any modifications are made by the user.
+ @short Emitted whenever any modifications are made by the user.
+ */
+ void enableOk(boolean arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KEntry.java b/kdejava/koala/org/kde/koala/KEntry.java
new file mode 100644
index 00000000..3e620bb1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEntry.java
@@ -0,0 +1,28 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ map/dict/list config node entry.
+ @short map/dict/list config node entry.
+
+*/
+public class KEntry implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KEntry(Class dummy){}
+
+ public KEntry() {
+ newKEntry();
+ }
+ private native void newKEntry();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KEntryKey.java b/kdejava/koala/org/kde/koala/KEntryKey.java
new file mode 100644
index 00000000..c2181298
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KEntryKey.java
@@ -0,0 +1,37 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ key structure holding both the actual key and the the group
+ to which it belongs.
+ @short key structure holding both the actual key and the the group to which it belongs.
+
+*/
+public class KEntryKey implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KEntryKey(Class dummy){}
+
+ public KEntryKey(String _group, String _key) {
+ newKEntryKey(_group,_key);
+ }
+ private native void newKEntryKey(String _group, String _key);
+ public KEntryKey(String _group) {
+ newKEntryKey(_group);
+ }
+ private native void newKEntryKey(String _group);
+ public KEntryKey() {
+ newKEntryKey();
+ }
+ private native void newKEntryKey();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KExecMimeType.java b/kdejava/koala/org/kde/koala/KExecMimeType.java
new file mode 100644
index 00000000..045ef65d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KExecMimeType.java
@@ -0,0 +1,39 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+
+/**
+
+ The mime type for executable files.
+ @short MimeType for any executable, like /bin/ls.
+
+*/
+public class KExecMimeType extends KMimeType {
+ protected KExecMimeType(Class dummy){super((Class) null);}
+ /**
+ Construct a executable mimetype and take all information from a desktop file.
+ @param config the desktop configuration file that describes the mime type
+ @short Construct a executable mimetype and take all information from a desktop file.
+ */
+ public KExecMimeType(KDesktopFile config) {
+ super((Class) null);
+ newKExecMimeType(config);
+ }
+ private native void newKExecMimeType(KDesktopFile config);
+ /** \internal @short \internal
+ */
+ public KExecMimeType(QDataStream _str, int offset) {
+ super((Class) null);
+ newKExecMimeType(_str,offset);
+ }
+ private native void newKExecMimeType(QDataStream _str, int offset);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFile.java b/kdejava/koala/org/kde/koala/KFile.java
new file mode 100644
index 00000000..96ddfa2c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFile.java
@@ -0,0 +1,88 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ KFile is a class which provides a namespace for some enumerated
+ values associated with the kfile library. You will never need to
+ construct a KFile object itself.
+ @short KFile is a class which provides a namespace for some enumerated values associated with the kfile library.
+
+*/
+public class KFile implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KFile(Class dummy){}
+
+ /**
+ Modes of operation for the dialog.
+
+ <li>
+ <code>File</code> - Get a single file name from the user.
+ </li>
+
+ <li>
+ <code>Directory</code> - Get a directory name from the user.
+ </li>
+
+ <li>
+ <code>Files</code> - Get multiple file names from the user.
+ </li>
+
+ <li>
+ <code>ExistingOnly</code> - Never return a filename which does not exist yet
+ </li>
+
+ <li>
+ <code>LocalOnly</code> - Don't return remote filenames
+
+ </li> @short Modes of operation for the dialog.
+ */
+ public static final int File = 1;
+ public static final int Directory = 2;
+ public static final int Files = 4;
+ public static final int ExistingOnly = 8;
+ public static final int LocalOnly = 16;
+ public static final int ModeMax = 65536;
+
+ public static final int Default = 0;
+ public static final int Simple = 1;
+ public static final int Detail = 2;
+ public static final int SeparateDirs = 4;
+ public static final int PreviewContents = 8;
+ public static final int PreviewInfo = 16;
+ public static final int FileViewMax = 65536;
+
+ public static final int Single = 1;
+ public static final int Multi = 2;
+ public static final int Extended = 4;
+ public static final int NoSelection = 8;
+
+ public KFile() {
+ newKFile();
+ }
+ private native void newKFile();
+ public static native boolean isSortByName(int sort);
+ public static native boolean isSortBySize(int sort);
+ public static native boolean isSortByDate(int sort);
+ public static native boolean isSortDirsFirst(int sort);
+ public static native boolean isSortCaseInsensitive(int sort);
+ public static native boolean isDefaultView(int view);
+ public static native boolean isSimpleView(int view);
+ public static native boolean isDetailView(int view);
+ public static native boolean isSeparateDirs(int view);
+ public static native boolean isPreviewContents(int view);
+ /**
+ @short
+ */
+ public static native boolean isPreviewInfo(int view);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileDetailView.java b/kdejava/koala/org/kde/koala/KFileDetailView.java
new file mode 100644
index 00000000..62d1f3b8
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileDetailView.java
@@ -0,0 +1,229 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QScrollView;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QDragLeaveEvent;
+import java.util.ArrayList;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDragObject;
+
+/**
+
+ A list-view capable of showing KFileItem'. Used in the filedialog
+ for example. Most of the documentation is in KFileView class.
+ See {@link KFileDetailViewSignals} for signals emitted by KFileDetailView
+ @short A list-view capable of showing KFileItem'.
+ @see KDirOperator
+ @see KCombiView
+ @see KFileIconView
+
+*/
+public class KFileDetailView extends KListView implements KFileViewInterface {
+ protected KFileDetailView(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KFileDetailView(QWidget parent, String name) {
+ super((Class) null);
+ newKFileDetailView(parent,name);
+ }
+ private native void newKFileDetailView(QWidget parent, String name);
+ public native QWidget widget();
+ public native void clearView();
+ public native void setAutoUpdate(boolean arg1);
+ public native void setSelectionMode(int sm);
+ public native void updateView(boolean arg1);
+ public native void updateView(KFileItem arg1);
+ public native void removeItem(KFileItem arg1);
+ public native void listingCompleted();
+ public native void setSelected(KFileItem arg1, boolean arg2);
+ public native boolean isSelected(KFileItem i);
+ public native void clearSelection();
+ public native void selectAll();
+ public native void invertSelection();
+ public native void setCurrentItem(KFileItem arg1);
+ public native KFileItem currentFileItem();
+ public native KFileItem firstFileItem();
+ public native KFileItem nextItem(KFileItem arg1);
+ public native KFileItem prevItem(KFileItem arg1);
+ public native void insertItem(KFileItem i);
+ public native void setSorting(int arg1);
+ public native void ensureItemVisible(KFileItem arg1);
+ public native void mimeTypeDeterminationFinished();
+ public native void determineIcon(KFileListViewItem item);
+ public native QScrollView scrollWidget();
+ public native void readConfig(KConfig arg1, String group);
+ public native void readConfig(KConfig arg1);
+ public native void writeConfig(KConfig arg1, String group);
+ public native void writeConfig(KConfig arg1);
+ protected native void keyPressEvent(QKeyEvent arg1);
+ protected native QDragObject dragObject();
+ protected native void contentsDragEnterEvent(QDragEnterEvent e);
+ protected native void contentsDragMoveEvent(QDragMoveEvent e);
+ protected native void contentsDragLeaveEvent(QDragLeaveEvent e);
+ protected native void contentsDropEvent(QDropEvent ev);
+ protected native boolean acceptDrag(QDropEvent e);
+ protected native void slotSelectionChanged();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+ /**
+ inserts a list of items.
+ @short inserts a list of items.
+ */
+ public native void addItemList(ArrayList list);
+ /**
+ Sets <code>filename</code> the current item in the view, if available.
+ @short Sets <code>filename</code> the current item in the view, if available.
+ */
+ public native void setCurrentItem(String filename);
+ /**
+ Clears the view and all item lists.
+ @short Clears the view and all item lists.
+ */
+ public native void clear();
+ public native void updateView();
+ /**
+ Returns the sorting order of the internal list. Newly added files
+ are added through this sorting.
+ @short Returns the sorting order of the internal list.
+ */
+ public native int sorting();
+ /**
+ Tells whether the current items are in reversed order (shortcut to
+ sorting() & QDir.Reversed).
+ @short Tells whether the current items are in reversed order (shortcut to sorting() & QDir.Reversed).
+ */
+ public native boolean isReversed();
+ public native void sortReversed();
+ /**
+ @return the number of dirs and files
+
+ @short
+ */
+ public native int count();
+ /**
+ @return the number of files.
+
+ @short
+ */
+ public native int numFiles();
+ /**
+ @return the number of directories
+
+ @short
+ */
+ public native int numDirs();
+ public native void setViewMode(int vm);
+ public native int viewMode();
+ /**
+ @return the localized name of the view, which could be displayed
+ somewhere, e.g. in a menu, where the user can choose between views.
+
+ @short
+ @see #setViewName
+ */
+ public native String viewName();
+ /**
+ Sets the name of the view, which could be displayed somewhere.
+ E.g. "Image Preview".
+ @short Sets the name of the view, which could be displayed somewhere.
+ */
+ public native void setViewName(String name);
+ public native void setParentView(KFileViewInterface parent);
+ /**
+ @return all currently highlighted items.
+
+ @short
+ */
+ public native ArrayList selectedItems();
+ /**
+ @return all items currently available in the current sort-order
+
+ @short
+ */
+ public native ArrayList items();
+ /**
+ This is a KFileDialog specific hack: we want to select directories with
+ single click, but not files. But as a generic class, we have to be able
+ to select files on single click as well.
+ This gives us the opportunity to do both.
+ Every view has to decide when to call select( item ) when a file was
+ single-clicked, based on onlyDoubleClickSelectsFiles().
+ @short This is a KFileDialog specific hack: we want to select directories with single click, but not files.
+ */
+ public native void setOnlyDoubleClickSelectsFiles(boolean enable);
+ /**
+ @return whether files (not directories) should only be select()ed by
+ double-clicks.
+
+ @short
+ @see #setOnlyDoubleClickSelectsFiles
+ */
+ public native boolean onlyDoubleClickSelectsFiles();
+ /**
+ increases the number of dirs and files.
+ @return true if the item fits the view mode
+
+ @short increases the number of dirs and files.
+ */
+ public native boolean updateNumbers(KFileItem i);
+ /**
+ @return the view-specific action-collection. Every view should
+ add its actions here (if it has any) to make them available to
+ e.g. the KDirOperator's popup-menu.
+
+ @short
+ */
+ public native KActionCollection actionCollection();
+ public native KFileViewSignaler signaler();
+ /**
+ Specify DND options. See DropOptions for details.
+ All options are disabled by default.
+ @short Specify DND options.
+ */
+ public native void setDropOptions(int options);
+ /**
+ Returns the DND options in effect.
+ See DropOptions for details.
+ @short Returns the DND options in effect.
+ */
+ public native int dropOptions();
+ /**
+ This method calculates a String from the given parameters, that is
+ suitable for sorting with e.g. QIconView or QListView. Their
+ Item-classes usually have a setKey( String ) method or a virtual
+ method String key() that is used for sorting.
+ @param value Any string that should be used as sort criterion
+ @param isDir Tells whether the key is computed for an item representing
+ a directory (directories are usually sorted before files)
+ @param sortSpec An ORed combination of QDir.SortSpec flags.
+ Currently, the values IgnoreCase, Reversed and
+ DirsFirst are taken into account.
+ @short This method calculates a String from the given parameters, that is suitable for sorting with e.
+ */
+ public static native String sortingKey(String value, boolean isDir, int sortSpec);
+ /**
+ An overloaded method that takes not a String, but a number as sort
+ criterion. You can use this for file-sizes or dates/times for example.
+ If you use a time_t, you need to cast that to KIO.filesize_t because
+ of ambiguity problems.
+ @short An overloaded method that takes not a String, but a number as sort criterion.
+ */
+ public static native String sortingKey(long value, boolean isDir, int sortSpec);
+ /**
+ delay before auto opening a directory
+ @short
+ */
+ public static native int autoOpenDelay();
+ protected native void setDropOptions_impl(int options);
+}
diff --git a/kdejava/koala/org/kde/koala/KFileDetailViewSignals.java b/kdejava/koala/org/kde/koala/KFileDetailViewSignals.java
new file mode 100644
index 00000000..4b2f28f8
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileDetailViewSignals.java
@@ -0,0 +1,31 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QScrollView;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QDragLeaveEvent;
+import java.util.ArrayList;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDragObject;
+
+public interface KFileDetailViewSignals {
+ /**
+ The user dropped something.
+ <code>fileItem</code> points to the item dropped on or can be 0 if the
+ user dropped on empty space.
+ @short The user dropped something.
+ */
+ void dropped(QDropEvent event, KFileItem fileItem);
+ /**
+ The user dropped the URLs <code>urls.</code>
+ <code>url</code> points to the item dropped on or can be empty if the
+ user dropped on empty space.
+ @short The user dropped the URLs <code>urls.</code>
+ */
+ void dropped(QDropEvent event, ArrayList urls, KURL url);
+}
diff --git a/kdejava/koala/org/kde/koala/KFileDialog.java b/kdejava/koala/org/kde/koala/KFileDialog.java
new file mode 100644
index 00000000..78a38cac
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileDialog.java
@@ -0,0 +1,874 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ Provides a user (and developer) friendly way to
+ select files and directories.
+ The widget can be used as a drop in replacement for the
+ QFileDialog widget, but has greater functionality and a nicer GUI.
+ You will usually want to use one of the static methods
+ getOpenFileName(), getSaveFileName(), getOpenURL()
+ or for multiple files getOpenFileNames() or getOpenURLs().
+ The dialog has been designed to allow applications to customise it
+ by subclassing. It uses geometry management to ensure that subclasses
+ can easily add children that will be incorporated into the layout.
+ \image html kfiledialog.png "KDE File Dialog"
+ See {@link KFileDialogSignals} for signals emitted by KFileDialog
+ @author Richard J. Moore <rich@kde.org>, Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short A file selection dialog.
+
+*/
+public class KFileDialog extends KDialogBase {
+ protected KFileDialog(Class dummy){super((Class) null);}
+ /**
+ Defines some default behavior of the filedialog.
+ E.g. in mode <code>Opening</code> and <code>Saving</code>, the selected files/urls will
+ be added to the "recent documents" list. The Saving mode also implies
+ setKeepLocation() being set.
+ <code>Other</code> means that no default actions are performed.
+ @short Defines some default behavior of the filedialog.
+ @see #setOperationMode
+ @see #operationMode
+ */
+ public static final int Other = 0;
+ public static final int Opening = 1;
+ public static final int Saving = 2;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a file dialog.
+ @param startDir This can either be
+
+ <li>
+ The URL of the directory to start in.
+ </li>
+
+ <li>
+ null to start in the current working
+ directory, or the last directory where a file has been
+ selected.
+ </li>
+
+ <li>
+ ':&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in the same application that specified
+ the same keyword.
+ </li>
+
+ <li>
+ '.&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in any application that specified the
+ same keyword.
+ </li>
+ @param filter A shell glob or a mime-type-filter that specifies
+ which files to display.
+ @param parent The parent widget of this dialog
+ @param name The name of this object
+ @param modal Whether to create a modal dialog or not
+ See setFilter() for details on how to use this argument.
+ @short Constructs a file dialog.
+ */
+ public KFileDialog(String startDir, String filter, QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKFileDialog(startDir,filter,parent,name,modal);
+ }
+ private native void newKFileDialog(String startDir, String filter, QWidget parent, String name, boolean modal);
+ /**
+ Constructs a file dialog.
+ The parameters here are identical to the first constructor except
+ for the addition of a QWidget parameter.
+ Historical note: The original version of KFileDialog did not have this extra
+ parameter. It was added later, and, in order to maintain binary compatibility,
+ it was placed in a new constructor instead of added to the original one.
+ @param startDir This can either be
+
+ <li>
+ The URL of the directory to start in.
+ </li>
+
+ <li>
+ null to start in the current working
+ directory, or the last directory where a file has been
+ selected.
+ </li>
+
+ <li>
+ ':&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in the same application that specified
+ the same keyword.
+ </li>
+
+ <li>
+ '.&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in any application that specified the
+ same keyword.
+ </li>
+ @param filter A shell glob or a mime-type-filter that specifies
+ which files to display.
+ See setFilter() for details on how to use this argument.
+ @param widget A widget, or a widget of widgets, for displaying custom
+ data in the dialog. This can be used, for example, to
+ display a check box with the caption "Open as read-only".
+ When creating this widget, you don't need to specify a parent,
+ since the widget's parent will be set automatically by KFileDialog.
+ @param parent The parent widget of this dialog
+ @param name The name of this object
+ @param modal Whether to create a modal dialog or not
+ @short Constructs a file dialog.
+ */
+ public KFileDialog(String startDir, String filter, QWidget parent, String name, boolean modal, QWidget widget) {
+ super((Class) null);
+ newKFileDialog(startDir,filter,parent,name,modal,widget);
+ }
+ private native void newKFileDialog(String startDir, String filter, QWidget parent, String name, boolean modal, QWidget widget);
+ /**
+ @return The selected fully qualified filename.
+
+ @short
+ */
+ public native KURL selectedURL();
+ /**
+ @return The list of selected URLs.
+
+ @short
+ */
+ public native ArrayList selectedURLs();
+ /**
+ @return the currently shown directory.
+
+ @short
+ */
+ public native KURL baseURL();
+ /**
+ Returns the full path of the selected file in the local filesystem.
+ (Local files only)
+ @short Returns the full path of the selected file in the local filesystem.
+ */
+ public native String selectedFile();
+ /**
+ Returns a list of all selected local files.
+ @short Returns a list of all selected local files.
+ */
+ public native ArrayList selectedFiles();
+ /**
+ Sets the directory to view.
+ @param url URL to show.
+ @param clearforward Indicates whether the forward queue
+ should be cleared.
+ @short Sets the directory to view.
+ */
+ public native void setURL(KURL url, boolean clearforward);
+ public native void setURL(KURL url);
+ /**
+ Sets the file name to preselect to <code>name</code>
+ This takes absolute URLs and relative file names.
+ @short Sets the file name to preselect to <code>name</code>
+ */
+ public native void setSelection(String name);
+ /**
+ Sets the operational mode of the filedialog to <code>Saving</code>, <code>Opening</code>
+ or <code>Other.</code> This will set some flags that are specific to loading
+ or saving files. E.g. setKeepLocation() makes mostly sense for
+ a save-as dialog. So setOperationMode( KFileDialog.Saving ); sets
+ setKeepLocation for example.
+ The mode <code>Saving</code>, together with a default filter set via
+ setMimeFilter() will make the filter combobox read-only.
+ The default mode is <code>Opening.</code>
+ Call this method right after instantiating KFileDialog.
+ @short Sets the operational mode of the filedialog to <code>Saving</code>, <code>Opening</code> or <code>Other.</code>
+ @see #operationMode
+ @see KFileDialog#OperationMode
+ */
+ public native void setOperationMode(int arg1);
+ /**
+ @return the current operation mode, Opening, Saving or Other. Default
+ is Other.
+
+ @short
+ @see #operationMode
+ @see KFileDialog#OperationMode
+ */
+ public native int operationMode();
+ /**
+ Sets whether the filename/url should be kept when changing directories.
+ This is for example useful when having a predefined filename where
+ the full path for that file is searched.
+ This is implicitly set when operationMode() is KFileDialog.Saving
+ getSaveFileName() and getSaveURL() set this to true by default, so that
+ you can type in the filename and change the directory without having
+ to type the name again.
+ @short Sets whether the filename/url should be kept when changing directories.
+ */
+ public native void setKeepLocation(boolean keep);
+ /**
+ @return whether the contents of the location edit are kept when
+ changing directories.
+
+ @short
+ */
+ public native boolean keepsLocation();
+ /**
+ Sets the filter to be used to <code>filter.</code>
+ You can set more
+ filters for the user to select separated by '\n'. Every
+ filter entry is defined through namefilter|text to diplay.
+ If no | is found in the expression, just the namefilter is
+ shown. Examples:
+ <pre>
+ kfile.setFilter("*.cpp|C++ Source Files\n.h|Header files");
+ kfile.setFilter("*.cpp");
+ kfile.setFilter("*.cpp|Sources (.cpp)");
+ kfile.setFilter("*.cpp|" + i18n("Sources (.cpp)"));
+ kfile.setFilter("*.cpp .cc .C|C++ Source Files\n.h .H|Header files");
+ </pre>
+ Note: The text to display is not parsed in any way. So, if you
+ want to show the suffix to select by a specific filter, you must
+ repeat it.
+ If the filter contains an unescaped '/', a mimetype-filter is assumed.
+ If you would like a '/' visible in your filter it can be escaped with
+ a '\'. You can specify multiple mimetypes like this (separated with
+ space):
+ <pre>
+ kfile.setFilter( "image/png text/html text/plain" );
+ kfile.setFilter( "*.cue|CUE\\/BIN Files (.cue)" );
+ </pre>
+ @short Sets the filter to be used to <code>filter.</code>
+ @see #filterChanged
+ @see #setMimeFilter
+ */
+ public native void setFilter(String filter);
+ /**
+ Returns the current filter as entered by the user or one of the
+ predefined set via setFilter().
+ @short Returns the current filter as entered by the user or one of the predefined set via setFilter().
+ @see #setFilter
+ @see #filterChanged
+ */
+ public native String currentFilter();
+ /**
+ Returns the mimetype for the desired output format.
+ This is only valid if setFilterMimeType() has been called
+ previously.
+ @short Returns the mimetype for the desired output format.
+ @see #setFilterMimeType
+ */
+ // KMimeType::Ptr currentFilterMimeType(); >>>> NOT CONVERTED
+ /**
+ Sets the filter up to specify the output type.
+ @param types a list of mimetypes that can be used as output format
+ @param defaultType the default mimetype to use as output format, if any.
+ If <code>defaultType</code> is set, it will be set as the current item.
+ Otherwise, a first item showing all the mimetypes will be created.
+ Typically, <code>defaultType</code> should be empty for loading and set for saving.
+ Do not use in conjunction with setFilter()
+ @short Sets the filter up to specify the output type.
+ */
+ public native void setMimeFilter(String[] types, String defaultType);
+ public native void setMimeFilter(String[] types);
+ /**
+ The mimetype for the desired output format.
+ This is only valid if setMimeFilter() has been called
+ previously.
+ @short The mimetype for the desired output format.
+ @see #setMimeFilter
+ */
+ public native String currentMimeFilter();
+ /**
+ Clears any mime- or namefilter. Does not reload the directory.
+ @short Clears any mime- or namefilter.
+ */
+ public native void clearFilter();
+ /**
+ Adds a preview widget and enters the preview mode.
+ In this mode the dialog is split and the right part contains your
+ preview widget.
+ Ownership is transferred to KFileDialog. You need to create the
+ preview-widget with "new", i.e. on the heap.
+ @param w The widget to be used for the preview.
+ @short Adds a preview widget and enters the preview mode.
+ */
+ public native void setPreviewWidget(KPreviewWidgetBase w);
+ public native void show();
+ /**
+ Convenient overload of the other setMode(unsigned int) method.
+ @short Convenient overload of the other setMode(unsigned int) method.
+ */
+ public native void setMode(int m);
+ /**
+ Returns the mode of the filedialog.
+ @short Returns the mode of the filedialog.
+ @see #setMode
+ */
+ public native int mode();
+ /**
+ Sets the text to be displayed in front of the selection.
+ The default is "Location".
+ Most useful if you want to make clear what
+ the location is used for.
+ @short Sets the text to be displayed in front of the selection.
+ */
+ public native void setLocationLabel(String text);
+ /**
+ Returns a pointer to the toolbar.
+ You can use this to insert custom
+ items into it, e.g.:
+ <pre>
+ yourAction = new KAction( i18n("Your Action"), 0,
+ this, SLOT("yourSlot()"),
+ this, "action name" );
+ yourAction.plug( kfileDialog.toolBar() );
+ </pre>
+ @short Returns a pointer to the toolbar.
+ */
+ public native KToolBar toolBar();
+ /**
+ @return a pointer to the OK-Button in the filedialog. You may use it
+ e.g. to set a custom text to it.
+
+ @short
+ */
+ public native KPushButton okButton();
+ /**
+ @return a pointer to the Cancel-Button in the filedialog. You may use
+ it e.g. to set a custom text to it.
+
+ @short
+ */
+ public native KPushButton cancelButton();
+ /**
+ Note that this method may return a null-pointer if the user configured
+ to not use the speed-bar.
+ @return the KURLBar object used as the "speed bar". You can add custom
+ entries to it like that:
+ <pre>
+ KURLBar *urlBar = fileDialog.speedBar();
+ if ( urlBar )
+ urlBar.insertDynamicItem( someURL, i18n("The URL's description") );
+ </pre>
+
+ @short
+ @see KURLBar
+ @see KURLBar#insertDynamicItem
+ */
+ public native KURLBar speedBar();
+ /**
+ @return a pointer to the action collection, holding all the used
+ KActions.
+
+ @short
+ */
+ public native KActionCollection actionCollection();
+ /**
+ @return the index of the path combobox so when inserting widgets into
+ the dialog (e.g. subclasses) they can do so without hardcoding in an index
+
+ @short
+ */
+ public native int pathComboIndex();
+ /**
+ Creates a modal file dialog and return the selected
+ filename or an empty string if none was chosen.
+ Note that with
+ this method the user must select an existing filename.
+ @param startDir This can either be
+
+ <li>
+ The URL of the directory to start in.
+ </li>
+
+ <li>
+ null to start in the current working
+ directory, or the last directory where a file has been
+ selected.
+ </li>
+
+ <li>
+ ':&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in the same application that specified
+ the same keyword.
+ </li>
+
+ <li>
+ '.&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in any application that specified the
+ same keyword.
+ </li>
+ @param filter This is a space separated list of shell globs.
+ You can set the text to be displayed for the glob, and
+ provide multiple globs. See setFilter() for details on
+ how to do this...
+ @param parent The widget the dialog will be centered on initially.
+ @param caption The name of the dialog widget.
+ @short Creates a modal file dialog and return the selected filename or an empty string if none was chosen.
+ */
+ public static native String getOpenFileName(String startDir, String filter, QWidget parent, String caption);
+ public static native String getOpenFileName(String startDir, String filter, QWidget parent);
+ public static native String getOpenFileName(String startDir, String filter);
+ public static native String getOpenFileName(String startDir);
+ public static native String getOpenFileName();
+ /**
+ Use this version only if you have no QWidget available as
+ parent widget. This can be the case if the parent widget is
+ a widget in another process or if the parent widget is a
+ non-Qt widget. For example, in a GTK program.
+ @short Use this version only if you have no QWidget available as parent widget.
+ */
+ public static native String getOpenFileNameWId(String startDir, String filter, long parent_id, String caption);
+ /**
+ Creates a modal file dialog and returns the selected
+ filenames or an empty list if none was chosen.
+ Note that with
+ this method the user must select an existing filename.
+ @param startDir This can either be
+
+ <li>
+ The URL of the directory to start in.
+ </li>
+
+ <li>
+ null to start in the current working
+ directory, or the last directory where a file has been
+ selected.
+ </li>
+
+ <li>
+ ':&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in the same application that specified
+ the same keyword.
+ </li>
+
+ <li>
+ '.&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in any application that specified the
+ same keyword.
+ </li>
+ @param filter This is a space separated list of shell globs.
+ You can set the text to be displayed for the glob, and
+ provide multiple globs. See setFilter() for details on
+ how to do this...
+ @param parent The widget the dialog will be centered on initially.
+ @param caption The name of the dialog widget.
+ @short Creates a modal file dialog and returns the selected filenames or an empty list if none was chosen.
+ */
+ public static native ArrayList getOpenFileNames(String startDir, String filter, QWidget parent, String caption);
+ public static native ArrayList getOpenFileNames(String startDir, String filter, QWidget parent);
+ public static native ArrayList getOpenFileNames(String startDir, String filter);
+ public static native ArrayList getOpenFileNames(String startDir);
+ public static native ArrayList getOpenFileNames();
+ /**
+ Creates a modal file dialog and returns the selected
+ URL or an empty string if none was chosen.
+ Note that with
+ this method the user must select an existing URL.
+ @param startDir This can either be
+
+ <li>
+ The URL of the directory to start in.
+ </li>
+
+ <li>
+ null to start in the current working
+ directory, or the last directory where a file has been
+ selected.
+ </li>
+
+ <li>
+ ':&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in the same application that specified
+ the same keyword.
+ </li>
+
+ <li>
+ '.&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in any application that specified the
+ same keyword.
+ </li>
+ @param filter This is a space separated list of shell globs.
+ You can set the text to be displayed for the glob, and
+ provide multiple globs. See setFilter() for details on
+ how to do this...
+ @param parent The widget the dialog will be centered on initially.
+ @param caption The name of the dialog widget.
+ @short Creates a modal file dialog and returns the selected URL or an empty string if none was chosen.
+ */
+ public static native KURL getOpenURL(String startDir, String filter, QWidget parent, String caption);
+ public static native KURL getOpenURL(String startDir, String filter, QWidget parent);
+ public static native KURL getOpenURL(String startDir, String filter);
+ public static native KURL getOpenURL(String startDir);
+ public static native KURL getOpenURL();
+ /**
+ Creates a modal file dialog and returns the selected
+ URLs or an empty list if none was chosen.
+ Note that with
+ this method the user must select an existing filename.
+ @param startDir This can either be
+
+ <li>
+ The URL of the directory to start in.
+ </li>
+
+ <li>
+ null to start in the current working
+ directory, or the last directory where a file has been
+ selected.
+ </li>
+
+ <li>
+ ':&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in the same application that specified
+ the same keyword.
+ </li>
+
+ <li>
+ '.&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in any application that specified the
+ same keyword.
+ </li>
+ @param filter This is a space separated list of shell globs.
+ You can set the text to be displayed for the glob, and
+ provide multiple globs. See setFilter() for details on
+ how to do this...
+ @param parent The widget the dialog will be centered on initially.
+ @param caption The name of the dialog widget.
+ @short Creates a modal file dialog and returns the selected URLs or an empty list if none was chosen.
+ */
+ public static native ArrayList getOpenURLs(String startDir, String filter, QWidget parent, String caption);
+ public static native ArrayList getOpenURLs(String startDir, String filter, QWidget parent);
+ public static native ArrayList getOpenURLs(String startDir, String filter);
+ public static native ArrayList getOpenURLs(String startDir);
+ public static native ArrayList getOpenURLs();
+ /**
+ Creates a modal file dialog and returns the selected
+ filename or an empty string if none was chosen.
+ Note that with this
+ method the user need not select an existing filename.
+ @param startDir This can either be
+
+ <li>
+ The URL of the directory to start in.
+ </li>
+
+ <li>
+ a relative path or a filename determining the
+ directory to start in and the file to be selected.
+ </li>
+
+ <li>
+ null to start in the current working
+ directory, or the last directory where a file has been
+ selected.
+ </li>
+
+ <li>
+ ':&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in the same application that specified
+ the same keyword.
+ </li>
+
+ <li>
+ '.&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in any application that specified the
+ same keyword.
+ </li>
+ @param filter This is a space separated list of shell globs.
+ You can set the text to be displayed for the glob, and
+ provide multiple globs. See setFilter() for details on
+ how to do this...
+ @param parent The widget the dialog will be centered on initially.
+ @param caption The name of the dialog widget.
+ @short Creates a modal file dialog and returns the selected filename or an empty string if none was chosen.
+ */
+ public static native String getSaveFileName(String startDir, String filter, QWidget parent, String caption);
+ public static native String getSaveFileName(String startDir, String filter, QWidget parent);
+ public static native String getSaveFileName(String startDir, String filter);
+ public static native String getSaveFileName(String startDir);
+ public static native String getSaveFileName();
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native String getSaveFileNameWId(String dir, String filter, long parent_id, String caption);
+ /**
+ Creates a modal file dialog and returns the selected
+ filename or an empty string if none was chosen.
+ Note that with this
+ method the user need not select an existing filename.
+ @param startDir This can either be
+
+ <li>
+ The URL of the directory to start in.
+ </li>
+
+ <li>
+ a relative path or a filename determining the
+ directory to start in and the file to be selected.
+ </li>
+
+ <li>
+ null to start in the current working
+ directory, or the last directory where a file has been
+ selected.
+ </li>
+
+ <li>
+ ':&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in the same application that specified
+ the same keyword.
+ </li>
+
+ <li>
+ '.&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in any application that specified the
+ same keyword.
+ </li>
+ @param filter This is a space separated list of shell globs.
+ You can set the text to be displayed for the glob, and
+ provide multiple globs. See setFilter() for details on
+ how to do this...
+ @param parent The widget the dialog will be centered on initially.
+ @param caption The name of the dialog widget.
+ @short Creates a modal file dialog and returns the selected filename or an empty string if none was chosen.
+ */
+ public static native KURL getSaveURL(String startDir, String filter, QWidget parent, String caption);
+ public static native KURL getSaveURL(String startDir, String filter, QWidget parent);
+ public static native KURL getSaveURL(String startDir, String filter);
+ public static native KURL getSaveURL(String startDir);
+ public static native KURL getSaveURL();
+ /**
+ Creates a modal file dialog and returns the selected
+ directory or an empty string if none was chosen.
+ @param startDir This can either be
+
+ <li>
+ The URL of the directory to start in.
+ </li>
+
+ <li>
+ null to start in the current working
+ directory, or the last directory where a file has been
+ selected.
+ </li>
+
+ <li>
+ ':&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in the same application that specified
+ the same keyword.
+ </li>
+
+ <li>
+ '.&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in any application that specified the
+ same keyword.
+ </li>
+ @param parent The widget the dialog will be centered on initially.
+ @param caption The name of the dialog widget.
+ @short Creates a modal file dialog and returns the selected directory or an empty string if none was chosen.
+ */
+ public static native String getExistingDirectory(String startDir, QWidget parent, String caption);
+ public static native String getExistingDirectory(String startDir, QWidget parent);
+ public static native String getExistingDirectory(String startDir);
+ public static native String getExistingDirectory();
+ /**
+ Creates a modal file dialog and returns the selected
+ directory or an empty string if none was chosen.
+ Contrary to getExistingDirectory(), this method allows the
+ selection of a remote directory.
+ @param startDir This can either be
+
+ <li>
+ The URL of the directory to start in.
+ </li>
+
+ <li>
+ null to start in the current working
+ directory, or the last directory where a file has been
+ selected.
+ </li>
+
+ <li>
+ ':&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in the same application that specified
+ the same keyword.
+ </li>
+
+ <li>
+ '.&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in any application that specified the
+ same keyword.
+ </li>
+ @param parent The widget the dialog will be centered on initially.
+ @param caption The name of the dialog widget.
+ @short Creates a modal file dialog and returns the selected directory or an empty string if none was chosen.
+ */
+ public static native KURL getExistingURL(String startDir, QWidget parent, String caption);
+ public static native KURL getExistingURL(String startDir, QWidget parent);
+ public static native KURL getExistingURL(String startDir);
+ public static native KURL getExistingURL();
+ /**
+ Creates a modal file dialog with an image previewer and returns the
+ selected url or an empty string if none was chosen.
+ @param startDir This can either be
+
+ <li>
+ The URL of the directory to start in.
+ </li>
+
+ <li>
+ null to start in the current working
+ directory, or the last directory where a file has been
+ selected.
+ </li>
+
+ <li>
+ ':&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in the same application that specified
+ the same keyword.
+ </li>
+
+ <li>
+ '.&lt;keyword&gt;' to start in the directory last used
+ by a filedialog in any application that specified the
+ same keyword.
+ </li>
+ @param parent The widget the dialog will be centered on initially.
+ @param caption The name of the dialog widget.
+ @short Creates a modal file dialog with an image previewer and returns the selected url or an empty string if none was chosen.
+ */
+ public static native KURL getImageOpenURL(String startDir, QWidget parent, String caption);
+ public static native KURL getImageOpenURL(String startDir, QWidget parent);
+ public static native KURL getImageOpenURL(String startDir);
+ public static native KURL getImageOpenURL();
+ /**
+ This method implements the logic to determine the user's default directory
+ to be listed. E.g. the documents direcory, home directory or a recently
+ used directory.
+ @param startDir A url/directory, to be used. May use the ':' and '.' syntax
+ as documented in the KFileDialog() constructor.
+ @param recentDirClass If the ':' or '.' syntax is used, recentDirClass
+ will contain the string to be used later for KRecentDir.dir()
+ @return The URL that should be listed by default (e.g. by KFileDialog or
+ KDirSelectDialog).
+
+ @short This method implements the logic to determine the user's default directory to be listed.
+ */
+ public static native KURL getStartURL(String startDir, StringBuffer recentDirClass);
+ /**
+ Used by KDirSelectDialog to share the dialog's start directory.
+ @short
+ */
+ public static native void setStartDir(KURL directory);
+ /**
+ Reimplemented to animate the cancel button.
+ @short Reimplemented to animate the cancel button.
+ */
+ protected native void keyPressEvent(QKeyEvent e);
+ /**
+ Perform basic initialization tasks. Called by constructors.
+ @short Perform basic initialization tasks.
+ */
+ protected native void init(String startDir, String filter, QWidget widget);
+ /**
+ rebuild geometry management.
+ @short rebuild geometry management.
+ */
+ protected native void initGUI();
+ /**
+ called when an item is highlighted/selected in multiselection mode.
+ handles setting the locationEdit.
+ @short called when an item is highlighted/selected in multiselection mode.
+ */
+ protected native void multiSelectionChanged();
+ /**
+ Reads configuration and applies it (size, recent directories, ...)
+ @short Reads configuration and applies it (size, recent directories, .
+ */
+ protected native void readConfig(KConfig arg1, String group);
+ protected native void readConfig(KConfig arg1);
+ /**
+ Saves the current configuration
+ @short Saves the current configuration
+ */
+ protected native void writeConfig(KConfig arg1, String group);
+ protected native void writeConfig(KConfig arg1);
+ /**
+ Reads the recent used files and inserts them into the location combobox
+ @short Reads the recent used files and inserts them into the location combobox
+ */
+ protected native void readRecentFiles(KConfig arg1);
+ /**
+ Saves the entries from the location combobox.
+ @short Saves the entries from the location combobox.
+ */
+ protected native void saveRecentFiles(KConfig arg1);
+ /**
+ Parses the string "line" for files. If line doesn't contain any ", the
+ whole line will be interpreted as one file. If the number of " is odd,
+ an empty list will be returned. Otherwise, all items enclosed in " "
+ will be returned as correct urls.
+ @short Parses the string "line" for files.
+ */
+ protected native ArrayList tokenize(String line);
+ /**
+ Returns the absolute version of the URL specified in locationEdit.
+ @short Returns the absolute version of the URL specified in locationEdit.
+ */
+ protected native KURL getCompleteURL(String arg1);
+ /**
+ Returns the filename extension associated with the currentFilter().
+ null is returned if an extension is not available or if
+ operationMode() != Saving.
+ @short Returns the filename extension associated with the currentFilter().
+ */
+ protected native String currentFilterExtension();
+ /**
+ Updates the currentFilterExtension and the availability of the
+ Automatically Select Extension Checkbox (visible if operationMode()
+ == Saving and enabled if an extension _will_ be associated with the
+ currentFilter(), _after_ this call). You should call this after
+ filterWidget.setCurrentItem().
+ @short Updates the currentFilterExtension and the availability of the Automatically Select Extension Checkbox (visible if operationMode() == Saving and enabled if an extension _will_ be associated with the currentFilter(), _after_ this call).
+ */
+ protected native void updateAutoSelectExtension();
+ protected native ArrayList parseSelectedURLs();
+ protected native void urlEntered(KURL arg1);
+ protected native void enterURL(KURL url);
+ protected native void enterURL(String url);
+ protected native void locationActivated(String url);
+ protected native void slotFilterChanged();
+ protected native void fileHighlighted(KFileItem i);
+ protected native void fileSelected(KFileItem i);
+ protected native void slotStatResult(Job job);
+ protected native void slotLoadingFinished();
+ protected native void fileCompletion(String arg1);
+ /**
+ @short
+ */
+ protected native void toggleSpeedbar(boolean arg1);
+ /**
+ @short
+ */
+ protected native void toggleBookmarks(boolean show);
+ protected native void slotOk();
+ protected native void accept();
+ protected native void slotCancel();
+ protected native void slotAutoSelectExtClicked();
+ protected native void addToRecentDocuments();
+ protected native void initSpeedbar();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileDialogSignals.java b/kdejava/koala/org/kde/koala/KFileDialogSignals.java
new file mode 100644
index 00000000..4fc3f6f1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileDialogSignals.java
@@ -0,0 +1,44 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+
+public interface KFileDialogSignals {
+ /**
+ Emitted when the user selects a file. It is only emitted in single-
+ selection mode. The best way to get notified about selected file(s)
+ is to connect to the okClicked() signal inherited from KDialogBase
+ and call selectedFile(), selectedFiles(),
+ selectedURL() or selectedURLs().
+ @short Emitted when the user selects a file.
+ */
+ void fileSelected(String arg1);
+ /**
+ Emitted when the user highlights a file.
+ @short Emitted when the user highlights a file.
+ */
+ void fileHighlighted(String arg1);
+ /**
+ Emitted when the user hilights one or more files in multiselection mode.
+ Note: fileHighlighted() or fileSelected() are <b>not</b>
+ emitted in multiselection mode. You may use selectedItems() to
+ ask for the current highlighted items.
+ @short Emitted when the user hilights one or more files in multiselection mode.
+ @see #fileSelected
+ */
+ void selectionChanged();
+ /**
+ Emitted when the filter changed, i.e. the user entered an own filter
+ or chose one of the predefined set via setFilter().
+ @param filter contains the new filter (only the extension part,
+ not the explanation), i.e. "*.cpp" or "*.cpp .cc".
+ @short Emitted when the filter changed, i.
+ @see #setFilter
+ @see #currentFilter
+ */
+ void filterChanged(String filter);
+}
diff --git a/kdejava/koala/org/kde/koala/KFileFilter.java b/kdejava/koala/org/kde/koala/KFileFilter.java
new file mode 100644
index 00000000..89602543
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileFilter.java
@@ -0,0 +1,27 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A KFileFilter is a simple base class for file filters. Just
+ reimplement passesFilter().
+ @short Base class for file filters.
+
+*/
+public class KFileFilter implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KFileFilter(Class dummy){}
+
+ /**
+ Checks the given <code>item.</code>
+ @param item the item to filter
+ @return true if the <code>item</code> passes the filter, false otherwise
+
+ @short Checks the given <code>item.</code>
+ */
+ public native boolean passesFilter(KFileItem item);
+}
diff --git a/kdejava/koala/org/kde/koala/KFileFilterCombo.java b/kdejava/koala/org/kde/koala/KFileFilterCombo.java
new file mode 100644
index 00000000..9b54c41b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileFilterCombo.java
@@ -0,0 +1,84 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+/**
+ See {@link KFileFilterComboSignals} for signals emitted by KFileFilterCombo
+*/
+public class KFileFilterCombo extends KComboBox {
+ protected KFileFilterCombo(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KFileFilterCombo(QWidget parent, String name) {
+ super((Class) null);
+ newKFileFilterCombo(parent,name);
+ }
+ private native void newKFileFilterCombo(QWidget parent, String name);
+ public KFileFilterCombo(QWidget parent) {
+ super((Class) null);
+ newKFileFilterCombo(parent);
+ }
+ private native void newKFileFilterCombo(QWidget parent);
+ public KFileFilterCombo() {
+ super((Class) null);
+ newKFileFilterCombo();
+ }
+ private native void newKFileFilterCombo();
+ public native void setFilter(String filter);
+ /**
+ @return the current filter, either something like "*.cpp *.h"
+ or the current mimetype, like "text/html", or a list of those, like
+ " "text/html text/plain image/png", all separated with one space.
+
+ @short
+ */
+ public native String currentFilter();
+ /**
+ Sets the current filter. Filter must match one of the filter items
+ passed before to this widget.
+ @short Sets the current filter.
+ */
+ public native void setCurrentFilter(String filter);
+ /**
+ Sets a list of mimetypes.
+ If <code>defaultType</code> is set, it will be set as the current item.
+ Otherwise, a first item showing all the mimetypes will be created.
+ @short Sets a list of mimetypes.
+ */
+ public native void setMimeFilter(String[] types, String defaultType);
+ /**
+ @return true if the filter's first item is the list of all mimetypes
+
+ @short
+ */
+ public native boolean showsAllTypes();
+ /**
+ This method allows you to set a default-filter, that is used when an
+ empty filter is set. Make sure you call this before calling
+ setFilter().
+ By default, this is set to i18n("*|All Files")
+ @short This method allows you to set a default-filter, that is used when an empty filter is set.
+ @see #defaultFilter
+ */
+ public native void setDefaultFilter(String filter);
+ /**
+ @return the default filter, used when an empty filter is set.
+
+ @short
+ @see #setDefaultFilter
+ */
+ public native String defaultFilter();
+ public native boolean eventFilter(QObject o, QEvent e);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileFilterComboSignals.java b/kdejava/koala/org/kde/koala/KFileFilterComboSignals.java
new file mode 100644
index 00000000..47df5f89
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileFilterComboSignals.java
@@ -0,0 +1,12 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+public interface KFileFilterComboSignals {
+ void filterChanged();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileIconView.java b/kdejava/koala/org/kde/koala/KFileIconView.java
new file mode 100644
index 00000000..1a35f977
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileIconView.java
@@ -0,0 +1,282 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QHideEvent;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QScrollView;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QDragLeaveEvent;
+import java.util.ArrayList;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDragObject;
+
+/**
+
+ An icon-view capable of showing KFileItem's. Used in the filedialog
+ for example. Most of the documentation is in KFileView class.
+ See {@link KFileIconViewSignals} for signals emitted by KFileIconView
+ @short An icon-view capable of showing KFileItem's.
+ @see KDirOperator
+ @see KCombiView
+ @see KFileDetailView
+
+*/
+public class KFileIconView extends KIconView implements KFileViewInterface {
+ protected KFileIconView(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KFileIconView(QWidget parent, String name) {
+ super((Class) null);
+ newKFileIconView(parent,name);
+ }
+ private native void newKFileIconView(QWidget parent, String name);
+ public native QWidget widget();
+ public native void clearView();
+ public native void setAutoUpdate(boolean arg1);
+ public native void updateView(boolean arg1);
+ public native void updateView(KFileItem arg1);
+ public native void removeItem(KFileItem arg1);
+ public native void listingCompleted();
+ public native void insertItem(KFileItem i);
+ public native void setSelectionMode(int sm);
+ public native void setSelected(KFileItem arg1, boolean arg2);
+ public native boolean isSelected(KFileItem i);
+ public native void clearSelection();
+ public native void selectAll();
+ public native void invertSelection();
+ public native void setCurrentItem(KFileItem arg1);
+ public native KFileItem currentFileItem();
+ public native KFileItem firstFileItem();
+ public native KFileItem nextItem(KFileItem arg1);
+ public native KFileItem prevItem(KFileItem arg1);
+ /**
+ Sets the size of the icons to show. Defaults to KIcon.SizeSmall.
+ @short Sets the size of the icons to show.
+ */
+ public native void setIconSize(int size);
+ /**
+ Sets the size of the previews. Defaults to KIcon.SizeLarge.
+ @short Sets the size of the previews.
+ */
+ public native void setPreviewSize(int size);
+ /**
+ Disables the "Maximum file size" configuration option for previews
+ Set this before calling showPreviews()
+ @short Disables the "Maximum file size" configuration option for previews
+ */
+ public native void setIgnoreMaximumSize(boolean ignoreSize);
+ public native void setIgnoreMaximumSize();
+ /**
+ @return the current size used for icons.
+
+ @short
+ */
+ public native int iconSize();
+ public native void ensureItemVisible(KFileItem arg1);
+ public native void setSorting(int sort);
+ public native void readConfig(KConfig arg1, String group);
+ public native void readConfig(KConfig arg1);
+ public native void writeConfig(KConfig arg1, String group);
+ public native void writeConfig(KConfig arg1);
+ public native void mimeTypeDeterminationFinished();
+ public native void determineIcon(KFileIconViewItem item);
+ public native QScrollView scrollWidget();
+ public native void setAcceptDrops(boolean b);
+ /**
+ Starts loading previews for all files shown and shows them. Switches
+ into 'large rows' mode, if that isn't the current mode yet.
+ @sa setIgnoreMaximumSize
+ @short Starts loading previews for all files shown and shows them.
+ */
+ public native void showPreviews();
+ public native void zoomIn();
+ public native void zoomOut();
+ /**
+ Reimplemented for performance reasons.
+ @short Reimplemented for performance reasons.
+ */
+ public native void arrangeItemsInGrid(boolean updated);
+ public native void arrangeItemsInGrid();
+ /**
+ Reimplemented to not let QIconView eat return-key events
+ @short Reimplemented to not let QIconView eat return-key events
+ */
+ protected native void keyPressEvent(QKeyEvent arg1);
+ /**
+ Reimplemented to remove an eventual tooltip
+ @short Reimplemented to remove an eventual tooltip
+ */
+ protected native void hideEvent(QHideEvent arg1);
+ public native void showEvent(QShowEvent arg1);
+ public native boolean eventFilter(QObject o, QEvent e);
+ protected native QDragObject dragObject();
+ protected native void contentsDragEnterEvent(QDragEnterEvent e);
+ protected native void contentsDragMoveEvent(QDragMoveEvent e);
+ protected native void contentsDragLeaveEvent(QDragLeaveEvent e);
+ protected native void contentsDropEvent(QDropEvent ev);
+ protected native boolean acceptDrag(QDropEvent e);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+ /**
+ inserts a list of items.
+ @short inserts a list of items.
+ */
+ public native void addItemList(ArrayList list);
+ /**
+ Sets <code>filename</code> the current item in the view, if available.
+ @short Sets <code>filename</code> the current item in the view, if available.
+ */
+ public native void setCurrentItem(String filename);
+ /**
+ Clears the view and all item lists.
+ @short Clears the view and all item lists.
+ */
+ public native void clear();
+ public native void updateView();
+ /**
+ Returns the sorting order of the internal list. Newly added files
+ are added through this sorting.
+ @short Returns the sorting order of the internal list.
+ */
+ public native int sorting();
+ /**
+ Tells whether the current items are in reversed order (shortcut to
+ sorting() & QDir.Reversed).
+ @short Tells whether the current items are in reversed order (shortcut to sorting() & QDir.Reversed).
+ */
+ public native boolean isReversed();
+ public native void sortReversed();
+ /**
+ @return the number of dirs and files
+
+ @short
+ */
+ public native int count();
+ /**
+ @return the number of files.
+
+ @short
+ */
+ public native int numFiles();
+ /**
+ @return the number of directories
+
+ @short
+ */
+ public native int numDirs();
+ public native void setViewMode(int vm);
+ public native int viewMode();
+ /**
+ @return the localized name of the view, which could be displayed
+ somewhere, e.g. in a menu, where the user can choose between views.
+
+ @short
+ @see #setViewName
+ */
+ public native String viewName();
+ /**
+ Sets the name of the view, which could be displayed somewhere.
+ E.g. "Image Preview".
+ @short Sets the name of the view, which could be displayed somewhere.
+ */
+ public native void setViewName(String name);
+ public native void setParentView(KFileViewInterface parent);
+ /**
+ @return all currently highlighted items.
+
+ @short
+ */
+ public native ArrayList selectedItems();
+ /**
+ @return all items currently available in the current sort-order
+
+ @short
+ */
+ public native ArrayList items();
+ /**
+ This is a KFileDialog specific hack: we want to select directories with
+ single click, but not files. But as a generic class, we have to be able
+ to select files on single click as well.
+ This gives us the opportunity to do both.
+ Every view has to decide when to call select( item ) when a file was
+ single-clicked, based on onlyDoubleClickSelectsFiles().
+ @short This is a KFileDialog specific hack: we want to select directories with single click, but not files.
+ */
+ public native void setOnlyDoubleClickSelectsFiles(boolean enable);
+ /**
+ @return whether files (not directories) should only be select()ed by
+ double-clicks.
+
+ @short
+ @see #setOnlyDoubleClickSelectsFiles
+ */
+ public native boolean onlyDoubleClickSelectsFiles();
+ /**
+ increases the number of dirs and files.
+ @return true if the item fits the view mode
+
+ @short increases the number of dirs and files.
+ */
+ public native boolean updateNumbers(KFileItem i);
+ /**
+ @return the view-specific action-collection. Every view should
+ add its actions here (if it has any) to make them available to
+ e.g. the KDirOperator's popup-menu.
+
+ @short
+ */
+ public native KActionCollection actionCollection();
+ public native KFileViewSignaler signaler();
+ /**
+ Specify DND options. See DropOptions for details.
+ All options are disabled by default.
+ @short Specify DND options.
+ */
+ public native void setDropOptions(int options);
+ /**
+ Returns the DND options in effect.
+ See DropOptions for details.
+ @short Returns the DND options in effect.
+ */
+ public native int dropOptions();
+ /**
+ This method calculates a String from the given parameters, that is
+ suitable for sorting with e.g. QIconView or QListView. Their
+ Item-classes usually have a setKey( String ) method or a virtual
+ method String key() that is used for sorting.
+ @param value Any string that should be used as sort criterion
+ @param isDir Tells whether the key is computed for an item representing
+ a directory (directories are usually sorted before files)
+ @param sortSpec An ORed combination of QDir.SortSpec flags.
+ Currently, the values IgnoreCase, Reversed and
+ DirsFirst are taken into account.
+ @short This method calculates a String from the given parameters, that is suitable for sorting with e.
+ */
+ public static native String sortingKey(String value, boolean isDir, int sortSpec);
+ /**
+ An overloaded method that takes not a String, but a number as sort
+ criterion. You can use this for file-sizes or dates/times for example.
+ If you use a time_t, you need to cast that to KIO.filesize_t because
+ of ambiguity problems.
+ @short An overloaded method that takes not a String, but a number as sort criterion.
+ */
+ public static native String sortingKey(long value, boolean isDir, int sortSpec);
+ /**
+ delay before auto opening a directory
+ @short
+ */
+ public static native int autoOpenDelay();
+ protected native void setDropOptions_impl(int options);
+}
diff --git a/kdejava/koala/org/kde/koala/KFileIconViewItem.java b/kdejava/koala/org/kde/koala/KFileIconViewItem.java
new file mode 100644
index 00000000..8a3abdfa
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileIconViewItem.java
@@ -0,0 +1,43 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QIconView;
+
+/**
+
+ An item for the iconview, that has a reference to its corresponding
+ KFileItem.
+ @short An item for the iconview, that has a reference to its corresponding KFileItem.
+
+*/
+public class KFileIconViewItem extends KIconViewItem {
+ protected KFileIconViewItem(Class dummy){super((Class) null);}
+ public KFileIconViewItem(QIconView parent, String text, QPixmap pixmap, KFileItem fi) {
+ super((Class) null);
+ newKFileIconViewItem(parent,text,pixmap,fi);
+ }
+ private native void newKFileIconViewItem(QIconView parent, String text, QPixmap pixmap, KFileItem fi);
+ /**
+ @short
+ */
+ public KFileIconViewItem(QIconView parent, KFileItem fi) {
+ super((Class) null);
+ newKFileIconViewItem(parent,fi);
+ }
+ private native void newKFileIconViewItem(QIconView parent, KFileItem fi);
+ /**
+ @return the corresponding KFileItem
+
+ @short
+ */
+ public native KFileItem fileInfo();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileIconViewSignals.java b/kdejava/koala/org/kde/koala/KFileIconViewSignals.java
new file mode 100644
index 00000000..52a50bc5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileIconViewSignals.java
@@ -0,0 +1,35 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QHideEvent;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QScrollView;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QDragLeaveEvent;
+import java.util.ArrayList;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDragObject;
+
+public interface KFileIconViewSignals {
+ /**
+ The user dropped something.
+ <code>fileItem</code> points to the item dropped on or can be 0 if the
+ user dropped on empty space.
+ @short The user dropped something.
+ */
+ void dropped(QDropEvent event, KFileItem fileItem);
+ /**
+ The user dropped the URLs <code>urls.</code>
+ <code>url</code> points to the item dropped on or can be empty if the
+ user dropped on empty space.
+ @short The user dropped the URLs <code>urls.</code>
+ */
+ void dropped(QDropEvent event, ArrayList urls, KURL url);
+}
diff --git a/kdejava/koala/org/kde/koala/KFileItem.java b/kdejava/koala/org/kde/koala/KFileItem.java
new file mode 100644
index 00000000..09da9800
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileItem.java
@@ -0,0 +1,565 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+
+/**
+
+ A KFileItem is a generic class to handle a file, local or remote.
+ In particular, it makes it easier to handle the result of KIO.listDir
+ (UDSEntry isn't very friendly to use).
+ It includes many file attributes such as mimetype, icon, text, mode, link...
+ @short A KFileItem is a generic class to handle a file, local or remote.
+
+*/
+public class KFileItem implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KFileItem(Class dummy){}
+
+ public static final int Unknown = -1;
+
+ public static final int Modification = 0;
+ public static final int Access = 1;
+ public static final int Creation = 2;
+ public static final int NumFlags = 3;
+
+ /**
+ Creates an item representing a file, from a UDSEntry.
+ This is the preferred constructor when using KIO.listDir().
+ @param _entry the KIO entry used to get the file, contains info about it
+ @param _url the file url
+ @param _determineMimeTypeOnDemand specifies if the mimetype of the given
+ URL should be determined immediately or on demand
+ @param _urlIsDirectory specifies if the url is just the directory of the
+ fileitem and the filename from the UDSEntry should be used.
+ @short Creates an item representing a file, from a UDSEntry.
+ */
+ // KFileItem* KFileItem(const KIO::UDSEntry& arg1,const KURL& arg2,bool arg3,bool arg4); >>>> NOT CONVERTED
+ // KFileItem* KFileItem(const KIO::UDSEntry& arg1,const KURL& arg2,bool arg3); >>>> NOT CONVERTED
+ // KFileItem* KFileItem(const KIO::UDSEntry& arg1,const KURL& arg2); >>>> NOT CONVERTED
+ /**
+ Creates an item representing a file, from all the necessary info for it.
+ @param _mode the file mode (according to stat() (e.g. S_IFDIR...)
+ Set to KFileItem.Unknown if unknown. For local files, KFileItem will use stat().
+ @param _permissions the access permissions
+ If you set both the mode and the permissions, you save a .stat() for
+ local files.
+ Set to KFileItem.Unknown if you don't know the mode or the permission.
+ @param _url the file url
+ @param _determineMimeTypeOnDemand specify if the mimetype of the given URL
+ should be determined immediately or on demand
+ @short Creates an item representing a file, from all the necessary info for it.
+ */
+ public KFileItem(long _mode, long _permissions, KURL _url, boolean _determineMimeTypeOnDemand) {
+ newKFileItem(_mode,_permissions,_url,_determineMimeTypeOnDemand);
+ }
+ private native void newKFileItem(long _mode, long _permissions, KURL _url, boolean _determineMimeTypeOnDemand);
+ public KFileItem(long _mode, long _permissions, KURL _url) {
+ newKFileItem(_mode,_permissions,_url);
+ }
+ private native void newKFileItem(long _mode, long _permissions, KURL _url);
+ /**
+ Creates an item representing a file, for which the mimetype is already known.
+ @param url the file url
+ @param mimeType the name of the file's mimetype
+ @param mode the mode (S_IFDIR...)
+ @short Creates an item representing a file, for which the mimetype is already known.
+ */
+ public KFileItem(KURL url, String mimeType, long mode) {
+ newKFileItem(url,mimeType,mode);
+ }
+ private native void newKFileItem(KURL url, String mimeType, long mode);
+ /**
+ Copy constructor. Note that extra-data set via setExtraData() is not
+ deeply copied -- just the pointers are copied.
+ @short Copy constructor.
+ */
+ public KFileItem(KFileItem item) {
+ newKFileItem(item);
+ }
+ private native void newKFileItem(KFileItem item);
+ /**
+ Throw away and re-read (for local files) all information about the file.
+ This is called when the _file_ changes.
+ @short Throw away and re-read (for local files) all information about the file.
+ */
+ public native void refresh();
+ /**
+ Re-reads mimetype information.
+ This is called when the mimetype database changes.
+ @short Re-reads mimetype information.
+ */
+ public native void refreshMimeType();
+ /**
+ Returns the url of the file.
+ @return the url of the file
+
+ @short Returns the url of the file.
+ */
+ public native KURL url();
+ /**
+ Sets the item's URL. Do not call unless you know what you are doing!
+ (used for example when an item got renamed).
+ @param url the item's URL
+ @short Sets the item's URL.
+ */
+ public native void setURL(KURL url);
+ /**
+ Sets the item's name (i.e. the filename).
+ This is automatically done by setURL, to set the name from the URL's fileName().
+ This method is provided for some special cases like relative paths as names (KFindPart)
+ @param name the item's name
+ @short Sets the item's name (i.
+ */
+ public native void setName(String name);
+ /**
+ Returns the permissions of the file (stat.st_mode containing only permissions).
+ @return the permissions of the file
+
+ @short Returns the permissions of the file (stat.
+ */
+ public native long permissions();
+ /**
+ Returns the access permissions for the file as a string.
+ @return the access persmission as string
+
+ @short Returns the access permissions for the file as a string.
+ */
+ public native String permissionsString();
+ /**
+ Tells if the file has extended access level information ( Posix ACL )
+ @return true if the file has extend ACL information or false if it hasn't
+
+ @short Tells if the file has extended access level information ( Posix ACL )
+ */
+ public native boolean hasExtendedACL();
+ /**
+ Returns the access control list for the file.
+ @return the access control list as a KACL
+
+ @short Returns the access control list for the file.
+ */
+ // KACL ACL(); >>>> NOT CONVERTED
+ /**
+ Returns the default access control list for the directory.
+ @return the default access control list as a KACL
+
+ @short Returns the default access control list for the directory.
+ */
+ // KACL defaultACL(); >>>> NOT CONVERTED
+ /**
+ Returns the file type (stat.st_mode containing only S_IFDIR, S_IFLNK, ...).
+ @return the file type
+
+ @short Returns the file type (stat.
+ */
+ public native long mode();
+ /**
+ Returns the owner of the file.
+ @return the file's owner
+
+ @short Returns the owner of the file.
+ */
+ public native String user();
+ /**
+ Returns the group of the file.
+ @return the file's group
+
+ @short Returns the group of the file.
+ */
+ public native String group();
+ /**
+ Returns true if this item represents a link in the UNIX sense of
+ a link.
+ @return true if the file is a link
+
+ @short Returns true if this item represents a link in the UNIX sense of a link.
+ */
+ public native boolean isLink();
+ /**
+ Returns true if this item represents a directory.
+ @return true if the item is a directory
+
+ @short Returns true if this item represents a directory.
+ */
+ public native boolean isDir();
+ /**
+ Returns true if this item represents a file (and not a a directory)
+ @return true if the item is a file
+
+ @short Returns true if this item represents a file (and not a a directory)
+ */
+ public native boolean isFile();
+ /**
+ Checks whether the file or directory is readable. In some cases
+ (remote files), we may return true even though it can't be read.
+ @return true if the file can be read - more precisely,
+ false if we know for sure it can't
+
+ @short Checks whether the file or directory is readable.
+ */
+ public native boolean isReadable();
+ /**
+ Checks whether the file or directory is writable. In some cases
+ (remote files), we may return true even though it can't be written to.
+ @return true if the file or directory can be written to - more precisely,
+ false if we know for sure it can't
+
+ @short Checks whether the file or directory is writable.
+ */
+ public native boolean isWritable();
+ /**
+ Checks whether the file is hidden.
+ @return true if the file is hidden.
+
+ @short Checks whether the file is hidden.
+ */
+ public native boolean isHidden();
+ /**
+ Returns the link destination if isLink() == true.
+ @return the link destination. null if the item is not a link
+
+ @short Returns the link destination if isLink() == true.
+ */
+ public native String linkDest();
+ /**
+ Returns the local path if isLocalFile() == true or the KIO item has
+ a UDS_LOCAL_PATH atom.
+ @return the item local path, or null if not known
+
+ @short Returns the local path if isLocalFile() == true or the KIO item has a UDS_LOCAL_PATH atom.
+ */
+ public native String localPath();
+ /**
+ Returns the size of the file, if known.
+ @return the file size, or 0 if not known
+
+ @short Returns the size of the file, if known.
+ */
+ public native long size();
+ /**
+ Returns the size of the file, if known, and sets <code>hasSize</code> to false if not known
+ @param @hasSize This is set to true if the size is known, and false if not known
+ @return the file size, or 0 if not known
+
+ @short Returns the size of the file, if known, and sets <code>hasSize</code> to false if not known @param @hasSize This is set to true if the size is known, and false if not known
+ */
+ public native long size(boolean hasSize);
+ /**
+ Requests the modification, access or creation time, depending on <code>which.</code>
+ @param which UDS_MODIFICATION_TIME, UDS_ACCESS_TIME or UDS_CREATION_TIME
+ @return the time asked for, (time_t)0 if not available
+
+ @short Requests the modification, access or creation time, depending on <code>which.</code>
+ @see #timeString
+ */
+ public native int time(int which);
+ /**
+ Requests the modification, access or creation time, depending on <code>which.</code>
+ @param which UDS_MODIFICATION_TIME, UDS_ACCESS_TIME or UDS_CREATION_TIME
+ @param hasTime This is set to true is the time is known, and false if not known
+ @return the time asked for, (time_t)0 if not known/available
+
+ @short Requests the modification, access or creation time, depending on <code>which.</code>
+ @see #timeString
+ */
+ public native int time(int which, boolean hasTime);
+ /**
+ Requests the modification, access or creation time as a string, depending
+ on <code>which.</code>
+ @param which UDS_MODIFICATION_TIME, UDS_ACCESS_TIME or UDS_CREATION_TIME
+ @return a formatted string of the requested time, null if time is not known
+
+ @short Requests the modification, access or creation time as a string, depending on <code>which.</code>
+ @see #time
+ */
+ public native String timeString(int which);
+ public native String timeString();
+ /**
+ Returns true if the file is a local file.
+ @return true if the file is local, false otherwise
+
+ @short Returns true if the file is a local file.
+ */
+ public native boolean isLocalFile();
+ /**
+ Returns the text of the file item.
+ It's not exactly the filename since some decoding happens ('%2F'.'/').
+ @return the text of the file item
+
+ @short Returns the text of the file item.
+ */
+ public native String text();
+ /**
+ Return the name of the file item (without a path).
+ Similar to text(), but unencoded, i.e. the original name.
+ @param lowerCase if true, the name will be returned in lower case,
+ which is useful to speed up sorting by name, case insensitively.
+ @return the file's name
+
+ @short Return the name of the file item (without a path).
+ */
+ public native String name(boolean lowerCase);
+ public native String name();
+ /**
+ Returns the mimetype of the file item.
+ If <code>_determineMimeTypeOnDemand</code> was used in the constructor, this will determine
+ the mimetype first. Equivalent to determineMimeType().name()
+ @return the mime type of the file
+
+ @short Returns the mimetype of the file item.
+ */
+ public native String mimetype();
+ /**
+ Returns the mimetype of the file item.
+ If _determineMimeTypeOnDemand was used in the constructor, this will determine
+ the mimetype first.
+ @return the mime type
+
+ @short Returns the mimetype of the file item.
+ */
+ // KMimeType::Ptr determineMimeType(); >>>> NOT CONVERTED
+ /**
+ Returns the currently known mimetype of the file item.
+ This will not try to determine the mimetype if unknown.
+ @return the known mime type
+
+ @short Returns the currently known mimetype of the file item.
+ */
+ // KMimeType::Ptr mimeTypePtr(); >>>> NOT CONVERTED
+ public native boolean isMimeTypeKnown();
+ /**
+ Returns the descriptive comment for this mime type, or
+ the mime type itself if none is present.
+ @return the mime type description, or the mime type itself
+
+ @short Returns the descriptive comment for this mime type, or the mime type itself if none is present.
+ */
+ public native String mimeComment();
+ /**
+ Returns the full path name to the icon that represents
+ this mime type.
+ @return iconName the name of the file's icon
+
+ @short Returns the full path name to the icon that represents this mime type.
+ */
+ public native String iconName();
+ /**
+ Returns a pixmap representing the file.
+ @param _size Size for the pixmap in pixels. Zero will return the
+ globally configured default size.
+ @param _state The state of the icon: KIcon.DefaultState,
+ KIcon.ActiveState or KIcon.DisabledState.
+ @return the pixmap
+
+ @short Returns a pixmap representing the file.
+ */
+ public native QPixmap pixmap(int _size, int _state);
+ public native QPixmap pixmap(int _size);
+ /**
+ Returns the overlays (bitfield of KIcon.Overlay flags) that are used
+ for this item's pixmap. Overlays are used to show for example, whether
+ a file can be modified.
+ @return the overlays of the pixmap
+
+ @short Returns the overlays (bitfield of KIcon. Overlay flags) that are used for this item's pixmap.
+ */
+ public native int overlays();
+ /**
+ Returns the string to be displayed in the statusbar,
+ e.g. when the mouse is over this item
+ @return the status bar information
+
+ @short Returns the string to be displayed in the statusbar, e.
+ */
+ public native String getStatusBarInfo();
+ /**
+ Returns the string to be displayed in the tool tip when the mouse
+ is over this item. This may load a plugin to determine additional
+ information specific to the mimetype of the file.
+ @param maxcount the maximum number of entries shown
+ @return the tool tip string
+
+ @short Returns the string to be displayed in the tool tip when the mouse is over this item.
+ */
+ public native String getToolTipText(int maxcount);
+ public native String getToolTipText();
+ /**
+ Returns true if files can be dropped over this item.
+ Contrary to popular belief, not only dirs will return true :)
+ Executables, .desktop files, will do so as well.
+ @return true if you can drop files over the item
+
+ @short Returns true if files can be dropped over this item.
+ */
+ public native boolean acceptsDrops();
+ /**
+ Let's "KRun" this file !
+ (e.g. when file is clicked or double-clicked or return is pressed)
+ @short Let's "KRun" this file ! (e.
+ */
+ public native void run();
+ /**
+ Returns the UDS entry. Used by the tree view to access all details
+ by position.
+ @return the UDS entry
+
+ @short Returns the UDS entry.
+ */
+ // const KIO::UDSEntry& entry(); >>>> NOT CONVERTED
+ /**
+ Used when updating a directory. marked == seen when refreshing.
+ @return true if the file item is marked
+
+ @short Used when updating a directory.
+ */
+ public native boolean isMarked();
+ /**
+ Marks the item.
+ @short Marks the item.
+ @see #isMarked
+ */
+ public native void mark();
+ /**
+ Unmarks the item.
+ @short Unmarks the item.
+ @see #isMarked
+ */
+ public native void unmark();
+ /**
+ Somewhat like a comparison operator, but more explicit.
+ @param item the item to compare
+ @return true if all values are equal
+
+ @short Somewhat like a comparison operator, but more explicit.
+ */
+ public native boolean cmp(KFileItem item);
+ /**
+ This allows to associate some "extra" data to a KFileItem. As one
+ KFileItem can be used by several objects (often views) which all need
+ to add some data, you have to use a key to reference your extra data
+ within the KFileItem.
+ That way a KFileItem can hold and provide access to all those views
+ separately.
+ I.e. a KFileIconView that associates a KFileIconViewItem (an item suitable
+ for use with QIconView) does
+ <pre>
+ kfileItem.setExtraData( this, iconViewItem );
+ </pre>
+ and can later access the iconViewItem by doing
+ <pre>
+ KFileIconViewItem iconViewItem = (KFileIconViewItem)( kfileItem.extraData( this ));
+ </pre>
+ This is usually more efficient then having every view associate data to
+ items by using a separate QDict or QMap.
+ Note: you have to remove and destroy the data you associated yourself
+ when you don't need it anymore!
+ @param key the key of the extra data
+ @param value the value of the extra data
+ @short This allows to associate some "extra" data to a KFileItem.
+ @see #extraData
+ @see #removeExtraData
+ */
+ // void setExtraData(const void* arg1,void* arg2); >>>> NOT CONVERTED
+ /**
+ Retrieves the extra data with the given <code>key.</code>
+ @param key the key of the extra data
+ @return the extra data associated to an item with <code>key</code> via
+ setExtraData. 0L if nothing was associated with <code>key.</code>
+
+ @short Retrieves the extra data with the given <code>key.</code>
+ @see #extraData
+ */
+ // const void* extraData(const void* arg1); >>>> NOT CONVERTED
+ // void* extraData(const void* arg1); >>>> NOT CONVERTED
+ /**
+ Removes the extra data associated with an item via <code>key.</code>
+ @param key the key of the extra data to remove
+ @short Removes the extra data associated with an item via <code>key.</code>
+ */
+ // void removeExtraData(const void* arg1); >>>> NOT CONVERTED
+ /**
+ Sets the metainfo of this item to <code>info.</code>
+ @param info the new meta info
+ @short Sets the metainfo of this item to <code>info.</code>
+ */
+ public native void setMetaInfo(KFileMetaInfo info);
+ /**
+ Sets the file type (stat.st_mode containing only S_IFDIR, S_IFLNK, ...).
+ @param m the new file type
+ @short Sets the file type (stat.
+ */
+ public native void setFileMode(long m);
+ /**
+ Sets new mimetype for item
+ @param mimetype the new mimetype
+ @short Sets new mimetype for item
+ */
+ public native void setMimeType(String mimetype);
+ /**
+ Returns the metainfo of this item.
+ @param autoget if true, the metainfo will automatically be created
+ @param what ignored
+ @short Returns the metainfo of this item.
+ */
+ public native KFileMetaInfo metaInfo(boolean autoget, int what);
+ public native KFileMetaInfo metaInfo(boolean autoget);
+ public native KFileMetaInfo metaInfo();
+ /**
+ Somewhat like an assignment operator, but more explicit.
+ Note: extra-data set with setExtraData() is not copied, so be careful
+ what you do!
+ @param item the item to copy
+ @short Somewhat like an assignment operator, but more explicit.
+ */
+ public native void assign(KFileItem item);
+ /**
+ Reinitialize KFileItem with a new UDSEntry.
+ Note: extra-data set with setExtraData() is not changed or deleted, so
+ be careful what you do!
+ KDirListerCache uses it to save new/delete calls by updating existing
+ items that are otherwise not needed anymore.
+ @param entry the UDSEntry to assign to this KFileItem
+ @param url the file url
+ @param determineMimeTypeOnDemand specifies if the mimetype of the given
+ URL should be determined immediately or on demand
+ @param urlIsDirectory specifies if the url is just the directory of the
+ fileitem and the filename from the UDSEntry should be used.
+ @short Reinitialize KFileItem with a new UDSEntry.
+ */
+ // void setUDSEntry(const KIO::UDSEntry& arg1,const KURL& arg2,bool arg3,bool arg4); >>>> NOT CONVERTED
+ // void setUDSEntry(const KIO::UDSEntry& arg1,const KURL& arg2,bool arg3); >>>> NOT CONVERTED
+ // void setUDSEntry(const KIO::UDSEntry& arg1,const KURL& arg2); >>>> NOT CONVERTED
+ /**
+ Tries to give a local URL for this file item if possible.
+ The given booleanean indicates if the returned url is local or not.
+ @short Tries to give a local URL for this file item if possible.
+ */
+ public native KURL mostLocalURL(boolean local);
+ /**
+ Computes the text, mode, and mimetype from the UDSEntry
+ Called by constructor, but can be called again later
+ @short Computes the text, mode, and mimetype from the UDSEntry Called by constructor, but can be called again later
+ */
+ protected native void init(boolean _determineMimeTypeOnDemand);
+ /**
+ Extracts the data from the UDSEntry member and updates the KFileItem
+ accordingly.
+ @short Extracts the data from the UDSEntry member and updates the KFileItem accordingly.
+ */
+ protected native void readUDSEntry(boolean _urlIsDirectory);
+ /**
+ Parses the given permission set and provides it for access()
+ @short Parses the given permission set and provides it for access()
+ */
+ protected native String parsePermissions(long perm);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileListViewItem.java b/kdejava/koala/org/kde/koala/KFileListViewItem.java
new file mode 100644
index 00000000..42033792
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileListViewItem.java
@@ -0,0 +1,57 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QListViewItem;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QListView;
+
+/**
+
+ An item for the listiew, that has a reference to its corresponding
+ KFileItem.
+ @short An item for the listiew, that has a reference to its corresponding KFileItem.
+
+*/
+public class KFileListViewItem extends KListViewItem {
+ protected KFileListViewItem(Class dummy){super((Class) null);}
+ public KFileListViewItem(QListView parent, String text, QPixmap icon, KFileItem fi) {
+ super((Class) null);
+ newKFileListViewItem(parent,text,icon,fi);
+ }
+ private native void newKFileListViewItem(QListView parent, String text, QPixmap icon, KFileItem fi);
+ /**
+ @short
+ */
+ public KFileListViewItem(QListView parent, KFileItem fi) {
+ super((Class) null);
+ newKFileListViewItem(parent,fi);
+ }
+ private native void newKFileListViewItem(QListView parent, KFileItem fi);
+ public KFileListViewItem(QListView parent, String text, QPixmap icon, KFileItem fi, QListViewItem after) {
+ super((Class) null);
+ newKFileListViewItem(parent,text,icon,fi,after);
+ }
+ private native void newKFileListViewItem(QListView parent, String text, QPixmap icon, KFileItem fi, QListViewItem after);
+ /**
+ @return the corresponding KFileItem
+
+ @short
+ */
+ public native KFileItem fileInfo();
+ public native String key(int arg1, boolean arg2);
+ public native void setKey(String key);
+ public native QRect rect();
+ /**
+ @short
+ */
+ public native void init();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileMetaInfo.java b/kdejava/koala/org/kde/koala/KFileMetaInfo.java
new file mode 100644
index 00000000..a298e652
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileMetaInfo.java
@@ -0,0 +1,314 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QVariant;
+
+/**
+
+ @brief Meta Information about a file
+ This is the class for objects that hold meta information about a file.
+ The information is kept in form of a system of key/value pairs. See also
+ KFileMetaInfoItem.
+ This information is retrieved from the file through a plugin system, and
+ this class is the main interface to it.
+ If you want to write your own plugin, have a look at KFilePlugin.
+ There are basically two different kinds of meta information: Fixed ones
+ that the plugin knows about (e.g. an mp3 id3v1 tag has a well defined
+ fixed list of fields), and variable keys that exist in mimetypes that
+ support their own key/value system (comments in png files are of this type).
+ Almost every file has fixed keys, but some also have variable keys.
+ The groups and the What enum are not yet supported, but already added to
+ the interface so that adding support doesn't break compatibility.
+ @short @brief Meta Information about a file
+
+*/
+public class KFileMetaInfo implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KFileMetaInfo(Class dummy){}
+
+ /**
+ This is used to specify what a KFileMetaInfo object should read, so
+ you can specify if you want to read "expensive" items or not.
+ @short This is used to specify what a KFileMetaInfo object should read, so you can specify if you want to read "expensive" items or not.
+ */
+ public static final int Fastest = 0x1;
+ public static final int DontCare = 0x2;
+ public static final int TechnicalInfo = 0x4;
+ public static final int ContentInfo = 0x8;
+ public static final int ExtenedAttr = 0x10;
+ public static final int Thumbnail = 0x20;
+ public static final int Preferred = 0x40;
+ public static final int Everything = 0xffff;
+
+ /**
+ The constructor.
+ creating a KFileMetaInfo item through this will autoload the plugin
+ belonging to the mimetype and try to get meta information about
+ the specified file.
+ If no info is available, you'll get an empty (not invalid) object.
+ You can test for it with the isEmpty() method.
+ @param path The file name. This must be the path to a local file.
+ @param mimeType The name of the file's mimetype. If ommited, the
+ mimetype is autodetected
+ @param what one or more of the What enum values. It gives some
+ hint to the plugin what information is desired. The plugin
+ may still return more items.
+ @note This version will <b></b>nly work for <b></b>ocal (file:/) files.
+ @short The constructor.
+ */
+ public KFileMetaInfo(String path, String mimeType, int what) {
+ newKFileMetaInfo(path,mimeType,what);
+ }
+ private native void newKFileMetaInfo(String path, String mimeType, int what);
+ public KFileMetaInfo(String path, String mimeType) {
+ newKFileMetaInfo(path,mimeType);
+ }
+ private native void newKFileMetaInfo(String path, String mimeType);
+ public KFileMetaInfo(String path) {
+ newKFileMetaInfo(path);
+ }
+ private native void newKFileMetaInfo(String path);
+ /**
+ Another constructor
+ Similar to the above, but takes a URL so that meta-data may be retrieved
+ over other protocols (ftp, etc.)
+ @short Another constructor
+ */
+ public KFileMetaInfo(KURL url, String mimeType, int what) {
+ newKFileMetaInfo(url,mimeType,what);
+ }
+ private native void newKFileMetaInfo(KURL url, String mimeType, int what);
+ public KFileMetaInfo(KURL url, String mimeType) {
+ newKFileMetaInfo(url,mimeType);
+ }
+ private native void newKFileMetaInfo(KURL url, String mimeType);
+ public KFileMetaInfo(KURL url) {
+ newKFileMetaInfo(url);
+ }
+ private native void newKFileMetaInfo(KURL url);
+ /**
+ Default constructor. This will create an invalid object (see
+ isValid().
+ @short Default constructor.
+ */
+ public KFileMetaInfo() {
+ newKFileMetaInfo();
+ }
+ private native void newKFileMetaInfo();
+ /**
+ Copy constructor. This creates a copy of the original object, but
+ that copy will point to the same data, so if you change the original,
+ the copy will be changed, too. After all, they are referring to the same
+ file.
+ @short Copy constructor.
+ */
+ public KFileMetaInfo(KFileMetaInfo original) {
+ newKFileMetaInfo(original);
+ }
+ private native void newKFileMetaInfo(KFileMetaInfo original);
+ /**
+ Returns a list of all groups.
+ @return the keys of the groups that the file has.
+
+ @short Returns a list of all groups.
+ */
+ public native ArrayList groups();
+ /**
+ Returns a list of all supported groups.
+ @return the supported keys of the groups that the file has.
+
+ @short Returns a list of all supported groups.
+ */
+ public native ArrayList supportedGroups();
+ /**
+ Returns a list of the preferred groups.
+ @return the keys of the preferred groups that the file has.
+
+ @short Returns a list of the preferred groups.
+ */
+ public native ArrayList preferredGroups();
+ /**
+ Returns a list of all preferred keys.
+ @return a list of all preferred keys.
+
+ @short Returns a list of all preferred keys.
+ */
+ public native ArrayList preferredKeys();
+ /**
+ Returns a list of supported keys.
+ @return a list of supported keys
+
+ @short Returns a list of supported keys.
+ */
+ public native ArrayList supportedKeys();
+ /**
+ Returns the list of groups that you can add or remove from the file.
+ @return the groups can be added or removed
+
+ @short Returns the list of groups that you can add or remove from the file.
+ */
+ public native ArrayList editableGroups();
+ /**
+ Returns the KFileMetaInfoItem with the given <code>key.</code>
+ @param key the key of the item
+ @return the item. Invalid if there is no item with the given <code>key.</code>
+
+ @short Returns the KFileMetaInfoItem with the given <code>key.</code>
+ */
+ public native KFileMetaInfoItem item(String key);
+ /**
+ Returns the KFileMetaInfoItem with the given <code>hint.</code>
+ @param hint the hint of the item
+ @return the item. Invalid if there is no item with the given <code>hint.</code>
+
+ @short Returns the KFileMetaInfoItem with the given <code>hint.</code>
+ */
+ // KFileMetaInfoItem item(const KFileMetaInfoItem::Hint arg1); >>>> NOT CONVERTED
+ /**
+ Saves the item with the given <code>key.</code>
+ @param key the key of the item
+ @param preferredGroup the preferred group, or null
+ @param createGroup true to create the group if necessary
+ @return the saved item
+
+ @short Saves the item with the given <code>key.</code>
+ */
+ public native KFileMetaInfoItem saveItem(String key, String preferredGroup, boolean createGroup);
+ public native KFileMetaInfoItem saveItem(String key, String preferredGroup);
+ public native KFileMetaInfoItem saveItem(String key);
+ /**
+ Returns the KFileMetaInfoGroup with the given <code>key.</code>
+ @param key the key of the item
+ @return the group. Invalid if there is no group with the given <code>key.</code>
+
+ @short Returns the KFileMetaInfoGroup with the given <code>key.</code>
+ */
+ public native KFileMetaInfoGroup group(String key);
+ /**
+ Returns the KFileMetaInfoGroup with the given <code>key.</code>
+ @param key the key of the item
+ @return the group. Invalid if there is no group with the given <code>key.</code>
+
+ @short Returns the KFileMetaInfoGroup with the given <code>key.</code>
+ */
+ public native KFileMetaInfoGroup op_at(String key);
+ /**
+ Try to add the specified group. This will only succeed if it is
+ in the list of editableGroups().
+ @note that all non-variable items that belong to this group are
+ automatically added as empty item.
+ @param name the name of the group to add
+ @return true if successful, false if not
+
+ @short Try to add the specified group.
+ */
+ public native boolean addGroup(String name);
+ /**
+ Remove the specified group. This will only succeed if it is
+ in the list of editableGroups(). Beware that this also
+ removes all the items in that group, so always ask the user
+ before removing it!
+ @param name the name of the group to remove
+ @return true if successful, false if not
+
+ @short Remove the specified group.
+ */
+ public native boolean removeGroup(String name);
+ /**
+ Returns a list of removed groups.
+ @return a list of removed groups.
+
+ @short Returns a list of removed groups.
+ */
+ public native ArrayList removedGroups();
+ /**
+ This method writes all pending changes of the meta info back to the file.
+ If any items are marked as removed, they are really removed from the
+ list. The info object as well as all items are updated.
+ @return true if successful, false if not
+
+ @short This method writes all pending changes of the meta info back to the file.
+ */
+ public native boolean applyChanges();
+ /**
+ Checks whether an item with the given <code>key</code> exists.
+ @param key the key to check
+ @return whether an item for this <code>key</code> exists.
+
+ @short Checks whether an item with the given <code>key</code> exists.
+ */
+ public native boolean contains(String key);
+ /**
+ Checks whether a group with the given <code>key</code> exists.
+ @param key the key to check
+ @return whether a group with this name exists.
+
+ @short Checks whether a group with the given <code>key</code> exists.
+ */
+ public native boolean containsGroup(String key);
+ /**
+ Returns the value with the given <code>key.</code>
+ @param key the key to retrieve
+ @return the value. Invalid if it does not exist
+
+ @short Returns the value with the given <code>key.</code>
+ */
+ public native QVariant value(String key);
+ /**
+ Returns true if the item is valid, i.e. if actually represents the info
+ about a file, false if the object is uninitialized.
+ @return true if valid, false otherwise
+
+ @short Returns true if the item is valid, i.
+ */
+ public native boolean isValid();
+ /**
+ Returns false if the object contains data, true if it's empty. You'll
+ get an empty object if no plugin for the file could be found.
+ @return true if empty, false otherwise
+
+ @short Returns false if the object contains data, true if it's empty.
+ */
+ public native boolean isEmpty();
+ /**
+ Returns the mime type of file.
+ @return the file's mime type
+
+ @short Returns the mime type of file.
+ */
+ public native String mimeType();
+ /**
+ Returns the path of file - or null if file is non-local
+ @return the file's path - or null if file is non-local
+
+ @short Returns the path of file - or String.null if file is non-local
+ */
+ public native String path();
+ /**
+ Returns the url of file
+ @return the file's url
+
+ @short Returns the url of file
+ */
+ public native KURL url();
+ protected native KFileMetaInfoGroup appendGroup(String name);
+ /**
+ @return a pointer to the plugin that belogs to this object's mimetype.
+ It will be auto-loaded if it's currently not loaded
+
+ @short
+ */
+ // KFilePlugin * const plugin(); >>>> NOT CONVERTED
+ protected native void ref();
+ protected native void deref();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileMetaInfoGroup.java b/kdejava/koala/org/kde/koala/KFileMetaInfoGroup.java
new file mode 100644
index 00000000..fe8989ab
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileMetaInfoGroup.java
@@ -0,0 +1,201 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QVariant;
+
+/**
+
+ @brief A group of meta information items about a file
+ This is one group of meta information items about a file (see
+ KFileMetaInfo).
+ @short @brief A group of meta information items about a file
+
+*/
+public class KFileMetaInfoGroup implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KFileMetaInfoGroup(Class dummy){}
+
+ /**
+ You usually don't need to use this constructor yourself. Let
+ KFileMetaInfo do it for you.
+ @short
+ */
+ // KFileMetaInfoGroup* KFileMetaInfoGroup(const QString& arg1,const KFileMimeTypeInfo* arg2); >>>> NOT CONVERTED
+ /**
+ Copy constructor
+ @short Copy constructor
+ */
+ public KFileMetaInfoGroup(KFileMetaInfoGroup original) {
+ newKFileMetaInfoGroup(original);
+ }
+ private native void newKFileMetaInfoGroup(KFileMetaInfoGroup original);
+ /**
+ Default constructor. This creates an "invalid" item
+ @short Default constructor.
+ */
+ public KFileMetaInfoGroup() {
+ newKFileMetaInfoGroup();
+ }
+ private native void newKFileMetaInfoGroup();
+ /**
+ Returns true if the item is valid, i.e. if it contains data, false
+ if it's invalid (created with the default constructor and not been
+ assigned anything), or if KFileMetaInfoGroup.item() didn't find
+ your requested item).
+ @return true if valid, false if invalid
+
+ @short Returns true if the item is valid, i.
+ */
+ public native boolean isValid();
+ /**
+ Returns false if the object contains data, true if it's empty. An
+ empty group is a group with no items (amazing, isn't it?).
+ @return true if empty, false otherwise
+
+ @short Returns false if the object contains data, true if it's empty.
+ */
+ public native boolean isEmpty();
+ /**
+ Returns true if an item as added or removed from the group.
+ @return true if an item was added or removed from the group, otherwise
+ false.
+
+ @short Returns true if an item as added or removed from the group.
+ */
+ public native boolean isModified();
+ /**
+ Operator for convenience. It does the same as item(),
+ but you cannot specify a group to search in
+ @short Operator for convenience.
+ */
+ public native KFileMetaInfoItem op_at(String key);
+ /**
+ This method searches for the specified item.
+ @param key the key of the item to search
+ @return the specified item if found, an invalid item, if not
+
+ @short This method searches for the specified item.
+ */
+ public native KFileMetaInfoItem item(String key);
+ /**
+ Returns the item with the given <code>hint.</code>
+ @param hint the hint of the item
+ @return the item with the specified <code>hint</code>
+
+ @short Returns the item with the given <code>hint.</code>
+ */
+ public native KFileMetaInfoItem item(int hint);
+ /**
+ Convenience function. Returns the value of the specified key.
+ It does the same as item(key).value().
+ @param key the key of the item to search
+ @return the value with the given key
+
+ @short Convenience function.
+ */
+ public native QVariant value(String key);
+ /**
+ Use this method to get a list of keys in the specified group that
+ the plugin knows about. No variable keys.
+ For a group that doesn't support variable keys, all keys that this
+ group may have are returned. For a group that does support them, the
+ non-variable ones are returned. See KFileMetaInfo about variable
+ keys
+ @return the list of keys supported for this mimetype
+
+ @short Use this method to get a list of keys in the specified group that the plugin knows about.
+ */
+ public native ArrayList supportedKeys();
+ /**
+ Returns true if this group supports adding or removing arbitrary
+ keys, false if not.
+ @return true is variable keys are supported, false otherwise
+
+ @short Returns true if this group supports adding or removing arbitrary keys, false if not.
+ */
+ public native boolean supportsVariableKeys();
+ /**
+ Checks whether an item with the given <code>key</code> exists.
+ @return true if an item for this <code>key</code> exists.
+
+ @short Checks whether an item with the given <code>key</code> exists.
+ */
+ public native boolean contains(String key);
+ /**
+ Returns a list of all keys.
+ @return a list of all keys in the order they were inserted.
+
+ @short Returns a list of all keys.
+ */
+ public native ArrayList keys();
+ /**
+ Returns a list of all keys in preference order.
+ @return a list of all keys in preference order.
+
+ @short Returns a list of all keys in preference order.
+ */
+ public native ArrayList preferredKeys();
+ /**
+ Add an item to the info. This is only possible if the specified <code>key</code>
+ is in the supportedKeys list and not yet defined or if
+ the group supports variable keys.
+ @param key the key of the item
+ @return the KFileMetaInfoItem for the given <code>key</code>
+
+ @short Add an item to the info.
+ */
+ public native KFileMetaInfoItem addItem(String key);
+ /**
+ Remove this item from the meta info of the file. You cannot query
+ KFileMetaInfo for a removed object, but you can query for a list of
+ removed items with removedItems() if you need to.
+ If you re-add it, its value will be cleared.
+ @param key the key of the removed item
+ @return true if successful, false otherwise
+
+ @short Remove this item from the meta info of the file.
+ */
+ public native boolean removeItem(String key);
+ /**
+ Returns a list of all removed items.
+ @return a list of all removed items
+
+ @short Returns a list of all removed items.
+ */
+ public native ArrayList removedItems();
+ /**
+ The name of this group.
+ @return the name of this group
+
+ @short The name of this group.
+ */
+ public native String name();
+ /**
+ The translated name of this group.
+ @return the translated name of this group
+
+ @short The translated name of this group.
+ */
+ public native String translatedName();
+ /**
+ Returns the attributes of this item.
+ @return the attributes
+
+ @short Returns the attributes of this item.
+ */
+ public native int attributes();
+ protected native void setAdded();
+ protected native KFileMetaInfoItem appendItem(String key, QVariant value);
+ protected native void ref();
+ protected native void deref();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileMetaInfoItem.java b/kdejava/koala/org/kde/koala/KFileMetaInfoItem.java
new file mode 100644
index 00000000..37b80258
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileMetaInfoItem.java
@@ -0,0 +1,172 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QVariant;
+
+/**
+
+ @brief A meta information item about a file
+ This is one item of the meta information about a file (see
+ KFileMetaInfo).
+ @short @brief A meta information item about a file
+
+*/
+public class KFileMetaInfoItem implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KFileMetaInfoItem(Class dummy){}
+
+ /**
+ You usually don't need to use this constructor yourself. Let
+ KFileMetaInfo do it for you.
+ @short
+ */
+ // KFileMetaInfoItem* KFileMetaInfoItem(const KFileMimeTypeInfo::ItemInfo* arg1,const QString& arg2,const QVariant& arg3); >>>> NOT CONVERTED
+ /**
+ Copy constructor
+ @short Copy constructor
+ */
+ public KFileMetaInfoItem(KFileMetaInfoItem item) {
+ newKFileMetaInfoItem(item);
+ }
+ private native void newKFileMetaInfoItem(KFileMetaInfoItem item);
+ /**
+ Default constructor. This creates an "invalid" item
+ @short Default constructor.
+ */
+ public KFileMetaInfoItem() {
+ newKFileMetaInfoItem();
+ }
+ private native void newKFileMetaInfoItem();
+ /**
+ Returns the key of the item.
+ @return the key of this item
+
+ @short Returns the key of the item.
+ */
+ public native String key();
+ /**
+ Returns a translation of the key for displaying to the user. If the
+ plugin provides translation to the key, it's also in the user's language
+ @return the translated key
+
+ @short Returns a translation of the key for displaying to the user.
+ */
+ public native String translatedKey();
+ /**
+ Returns the value of the item.
+ @return the value of the item.
+
+ @short Returns the value of the item.
+ */
+ public native QVariant value();
+ /**
+ Returns a string containing the value, if possible. If not,
+ null is returned.
+ @param mangle if true, the string will already contain prefix and
+ suffix
+ @return the value string, or null if not possible
+
+ @short Returns a string containing the value, if possible.
+ */
+ public native String string(boolean mangle);
+ public native String string();
+ /**
+ Changes the value of the item.
+ @param value the new value
+ @return true if successful, false otherwise
+
+ @short Changes the value of the item.
+ */
+ public native boolean setValue(QVariant value);
+ /**
+ Return the type of the item.
+ @return the type of the item
+
+ @short Return the type of the item.
+ */
+ public native int type();
+ /**
+ You can query if the application can edit the item and write it back to
+ the file with this method.
+ @note This doesn't ensure that you have write access to the file and
+ that enough space is available.
+ @return true if the item's value can be changed, false if not
+
+ @short You can query if the application can edit the item and write it back to the file with this method.
+ */
+ public native boolean isEditable();
+ /**
+ If you remove an item, it is only marked for removal for the file. On
+ the next KFileMetaInfo.applyChanges() , it will be removed from
+ the file. With this method, you can ask if the item is marked for
+ removal.
+ @return true if the item was removed, false if not
+
+ @short If you remove an item, it is only marked for removal for the file.
+ */
+ public native boolean isRemoved();
+ /**
+ If you change an item, it is marked as "dirty". On the next
+ KFileMetaInfo.applyChanges() , the change will be written to the
+ file. With this method, you can ask if this item is dirty.
+ @return true if the item contains changes that have not yet been written
+ back into the file. Removing or adding an item counts as such a change
+
+ @short If you change an item, it is marked as "dirty".
+ */
+ public native boolean isModified();
+ /**
+ This method returns a translated prefix to be displayed before the
+ value. Think e.g. of the $ in $30
+ @return the prefix
+
+ @short This method returns a translated prefix to be displayed before the value.
+ */
+ public native String prefix();
+ /**
+ This method returns a translated suffix to be displayed after the
+ value. Think of the kbps in 128kbps
+ @return the suffix
+
+ @short This method returns a translated suffix to be displayed after the value.
+ */
+ public native String suffix();
+ /**
+ Returns the hint for this item. See KFileMimeTypeInfo.Hint.
+ @return the hint
+
+ @short Returns the hint for this item.
+ */
+ public native int hint();
+ /**
+ Returns the attributes for this item. See
+ KFileMimeTypeInfo.Attributes.
+ @return the attributes
+
+ @short Returns the attributes for this item.
+ */
+ public native int attributes();
+ /**
+ Return true if the item is valid, i.e. if it contains data, false
+ if it's invalid (created with the default constructor and not been
+ assigned anything), or if KFileMetaInfoGroup.item() didn't find
+ your requested item).
+ @return true if valid, false if invalid
+
+ @short Return true if the item is valid, i.
+ */
+ public native boolean isValid();
+ protected native void setAdded();
+ protected native void setRemoved();
+ protected native void ref();
+ protected native void deref();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFilePlugin.java b/kdejava/koala/org/kde/koala/KFilePlugin.java
new file mode 100644
index 00000000..0dd2ca43
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFilePlugin.java
@@ -0,0 +1,179 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QValidator;
+import org.kde.qt.QObject;
+
+/**
+
+ @brief Base class for a meta information plugin
+ Meta information plugins are used to extract useful information from files
+ of a given type. These plugins are used in Konqueror's file properties
+ dialog, for example.
+ If you want to write your own plugin, you need to derive from this class.
+ In the constructor of your class, you need to call addMimeTypeInfo() to tell
+ the KFile framework which mimetype(s) your plugin supports. For each
+ mimetype, use the addGroupInfo() and addItemInfo() methods to declare the
+ meta information items the plugin calculates and to group them accordingly.
+ For groups, use setAttributes() to customize your group (see
+ KFileMimeTypeInfo.Attributes). For items, use setAttributes() to define the
+ behaviour of the item; use setHint() to define the meaning of the item; use
+ setUnit() to define the Unit, such as KFileMimeTypeInfo.Seconds or
+ KFileMimeTypeInfo.KiloBytes. In short, the constructor defines the data
+ structure of the meta information supported by your plugin.
+ Example:
+ @code
+ FooPlugin.FooPlugin(QObject parent, String name,
+ ArrayListargs)
+ {
+ KFileMimeTypeInfo info = addMimeTypeInfo( "application/x-foo" );
+ // our new group
+ KFileMimeTypeInfo.GroupInfo group = null;
+ group = addGroupInfo(info, "FooInfo", i18n("Foo Information"));
+ KFileMimeTypeInfo.ItemInfo item;
+ // our new items in the group
+ item = addItemInfo(group, "Items", i18n("Items"), QVariant.Int);
+ item = addItemInfo(group, "Size", i18n("Size"), QVariant.Int);
+ setUnit(item, KFileMimeTypeInfo.KiloBytes);
+ // strings are possible, too:
+ //addItemInfo(group, "Document Type", i18n("Document type"), QVariant.String);
+ }
+ @endcode
+ Some meta information items are likely to be available in several different
+ file formats, such as @c "Author", @c "Title" (for documents), and
+ @c "Length" (for multimedia files). Be sure to use the naming scheme from
+ existing plugins for your meta information items if possible. If, for
+ example, the meta information of a group of files is shown in a table view,
+ this will allow two files to share the same column (say "Length") even if
+ they are of a different file type.
+ You must overwrite the readInfo() method. In this method you need to extract
+ the meta information of the given file. You can use a third-party library to
+ achieve this task. This might be the best way for binary files, since a
+ change in the file format is likely to be supported by subsequent releases
+ of that library. Alternatively, for text-based file formats, you can use
+ QTextStream to parse the file. For simple file formats, QRegExp can be of
+ great help, too.
+ After you extracted the relevant information, use appendGroup() and
+ appendItem() to fill the meta information data structure (as defined in the
+ constructor) with values. Note that you can leave out groups or items
+ which are not appropriate for a particular file.
+ Example:
+ @code
+ boolean FooPlugin.readInfo( KFileMetaInfo& info, uint what)
+ {
+ int numItems = 0;
+ int size = 0;
+ // do your calculations here, e.g. using a third-party
+ // library or by writing an own parser using e.g. QTextStream
+ // calculate numItems and size ...
+ // note: use the same key strings as in the constructor
+ KFileMetaInfoGroup group = appendGroup(info, "FooInfo");
+ appendItem(group, "Items", numItems);
+ appendItem(group, "Size", size);
+ return true;
+ }
+ @endcode
+ If you want to define mutable meta information items, you need to overwrite
+ the writeInfo() method. In this method, you can use third-party library
+ (appropriate mostly for binary files, see above) or QTextStream to write the
+ information back to the file. If you use QTextStream, be sure to write all
+ file contents back.
+ For some items, it might be that not all possible values are allowed. You
+ can overwrite the createValidator() method to define constraints for a meta
+ information item. For example, the @c "Year" field for an MP3 file could
+ reject values outside the range 1500 - 2050 (at least for now). The
+ validator is used to check values before the writeInfo() method is called so
+ that writeInfo() is only provided correct values.
+ In your plugin, you need to create a factory for the KFilePlugin
+ Example:
+ @code
+ typedef KGenericFactory<FooPlugin> FooFactory;
+ K_EXPORT_COMPONENT_FACTORY(kfile_foo, FooFactory("kfile_foo"));
+ @endcode
+ To make your plugin available within KDE, you also need to provide a
+ <code>.desktop</code> file which describes your plugin. The required fields in the
+ file are:
+ - <code>Type</code>: must be @c "Service"
+ - <code>Name</code>: the name of the plugin
+ - <code>ServiceTypes</code>: must contain @c "KFilePlugin"
+ - <code>X</code>-KDE-Library: the name of the library containing the KFile plugin
+ - <code>MimeType</code>: the mimetype(s) which are supported by the plugin
+ - <code>PreferredGroups</code>: a comma-separated list of the most important groups.
+ This list defines the order in which the meta information groups should be
+ displayed
+ - <code>PreferredItems</code>: a comma-separated list of the most important items.
+ This list defines the order in which the meta information items should be
+ displayed
+ Example:
+ @code
+ [Desktop Entry]
+ Encoding=UTF-8
+ Type=Service
+ Name=Foo Info
+ ServiceTypes=KFilePlugin
+ X-KDE-Library=kfile_foo
+ MimeType=application/x-foo
+ PreferredGroups=FooInfo
+ PreferredItems=Items,Size
+ @endcode
+ @short @brief Base class for a meta information plugin
+
+*/
+public class KFilePlugin extends QObject {
+ protected KFilePlugin(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a new KFilePlugin instance. You need to implement a constructor
+ with the same argument list as this is required by KGenericFactory
+ @param parent the parent of the QObject, can be <code>0</code>
+ @param name the name of the QObject, can be <code>0</code>
+ @param args currently ignored
+ @short Creates a new KFilePlugin instance.
+ @see #addMimeTypeInfo
+ @see #addGroupInfo
+ @see #addItemInfo
+ @see org.kde.qt.QObject
+ */
+ /**
+ Read the info from the file in this method and insert it into the
+ provided KFileMetaInfo object. You can get the path to the file with
+ KFileMetaInfo.path(). Use appendGroup() and appendItem() to fill
+ <code>info</code> with the extracted values
+ @param info the information will be written here
+ @param what defines what to read, see KFileMetaInfo.What
+ @return @c true if successful, @c false if it failed
+
+ @short Read the info from the file in this method and insert it into the provided KFileMetaInfo object.
+ @see #writeInfo
+ */
+ public native boolean readInfo(KFileMetaInfo info, int what);
+ public native boolean readInfo(KFileMetaInfo info);
+ /**
+ Similar to the readInfo() but for writing the info back to the file.
+ If you don't have any writable keys, don't implement this method
+ @param info the information that will be written
+ @return @c true if successful, @c false if it failed
+
+ @short Similar to the readInfo() but for writing the info back to the file.
+ */
+ public native boolean writeInfo(KFileMetaInfo info);
+ /**
+ This method should create an appropriate validator for the specified
+ item if it's editable or return a null pointer if not. If you don't have
+ any editable items, you don't need to implement this method.
+ If you you don't need any validation, e.g. you accept any input, you can
+ simply return <code>null</code>, or not reimplement this method at all.
+ @param mimeType the mime type
+ @param group the group name of the validator item
+ @param key the key name of the validator item
+ @param parent the QObject parent, can be <code>0</code>
+ @param name the name of the QObject, can be <code>0</code>
+ @short This method should create an appropriate validator for the specified item if it's editable or return a null pointer if not.
+ */
+ public native QValidator createValidator(String mimeType, String group, String key, QObject parent, String name);
+}
diff --git a/kdejava/koala/org/kde/koala/KFilePreview.java b/kdejava/koala/org/kde/koala/KFilePreview.java
new file mode 100644
index 00000000..423692e7
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFilePreview.java
@@ -0,0 +1,218 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+import org.kde.qt.QSplitter;
+
+/**
+ See {@link KFilePreviewSignals} for signals emitted by KFilePreview
+*/
+public class KFilePreview extends QSplitter implements KFileViewInterface {
+ protected KFilePreview(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KFilePreview(QWidget parent, String name) {
+ super((Class) null);
+ newKFilePreview(parent,name);
+ }
+ private native void newKFilePreview(QWidget parent, String name);
+ public KFilePreview(KFileViewInterface view, QWidget parent, String name) {
+ super((Class) null);
+ newKFilePreview(view,parent,name);
+ }
+ private native void newKFilePreview(KFileViewInterface view, QWidget parent, String name);
+ public native QWidget widget();
+ public native void clearView();
+ /**
+ Delets the current view and sets the view to the given <code>view.</code>
+ The view is reparented to have this as parent, if necessary.
+ @short Delets the current view and sets the view to the given <code>view.</code>
+ */
+ public native void setFileView(KFileViewInterface view);
+ /**
+ @return the current fileview
+
+ @short
+ */
+ public native KFileViewInterface fileView();
+ public native void updateView(boolean arg1);
+ public native void updateView(KFileItem arg1);
+ public native void removeItem(KFileItem arg1);
+ public native void listingCompleted();
+ public native void setSelectionMode(int sm);
+ public native void setSelected(KFileItem arg1, boolean arg2);
+ public native boolean isSelected(KFileItem arg1);
+ public native void clearSelection();
+ public native void selectAll();
+ public native void invertSelection();
+ public native void insertItem(KFileItem arg1);
+ public native void clear();
+ public native void setCurrentItem(KFileItem arg1);
+ public native KFileItem currentFileItem();
+ public native KFileItem firstFileItem();
+ public native KFileItem nextItem(KFileItem arg1);
+ public native KFileItem prevItem(KFileItem arg1);
+ public native void setSorting(int sort);
+ public native void readConfig(KConfig arg1, String group);
+ public native void readConfig(KConfig arg1);
+ public native void writeConfig(KConfig arg1, String group);
+ public native void writeConfig(KConfig arg1);
+ /**
+ This overrides KFileView.actionCollection() by returning
+ the actionCollection() of the KFileView (member left) it contains.
+ This means that KFilePreview will never create a KActionCollection
+ object of its own.
+ @short This overrides KFileView.actionCollection() by returning the actionCollection() of the KFileView (member left) it contains.
+ */
+ public native KActionCollection actionCollection();
+ public native void ensureItemVisible(KFileItem arg1);
+ public native void setPreviewWidget(QWidget w, KURL u);
+ protected native void slotHighlighted(KFileItem arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+ /**
+ inserts a list of items.
+ @short inserts a list of items.
+ */
+ public native void addItemList(ArrayList list);
+ /**
+ Sets <code>filename</code> the current item in the view, if available.
+ @short Sets <code>filename</code> the current item in the view, if available.
+ */
+ public native void setCurrentItem(String filename);
+ public native void updateView();
+ /**
+ Returns the sorting order of the internal list. Newly added files
+ are added through this sorting.
+ @short Returns the sorting order of the internal list.
+ */
+ public native int sorting();
+ /**
+ Tells whether the current items are in reversed order (shortcut to
+ sorting() & QDir.Reversed).
+ @short Tells whether the current items are in reversed order (shortcut to sorting() & QDir.Reversed).
+ */
+ public native boolean isReversed();
+ public native void sortReversed();
+ /**
+ @return the number of dirs and files
+
+ @short
+ */
+ public native int count();
+ /**
+ @return the number of files.
+
+ @short
+ */
+ public native int numFiles();
+ /**
+ @return the number of directories
+
+ @short
+ */
+ public native int numDirs();
+ public native void setViewMode(int vm);
+ public native int viewMode();
+ /**
+ @return the localized name of the view, which could be displayed
+ somewhere, e.g. in a menu, where the user can choose between views.
+
+ @short
+ @see #setViewName
+ */
+ public native String viewName();
+ /**
+ Sets the name of the view, which could be displayed somewhere.
+ E.g. "Image Preview".
+ @short Sets the name of the view, which could be displayed somewhere.
+ */
+ public native void setViewName(String name);
+ public native void setParentView(KFileViewInterface parent);
+ /**
+ @return all currently highlighted items.
+
+ @short
+ */
+ public native ArrayList selectedItems();
+ /**
+ @return all items currently available in the current sort-order
+
+ @short
+ */
+ public native ArrayList items();
+ /**
+ This is a KFileDialog specific hack: we want to select directories with
+ single click, but not files. But as a generic class, we have to be able
+ to select files on single click as well.
+ This gives us the opportunity to do both.
+ Every view has to decide when to call select( item ) when a file was
+ single-clicked, based on onlyDoubleClickSelectsFiles().
+ @short This is a KFileDialog specific hack: we want to select directories with single click, but not files.
+ */
+ public native void setOnlyDoubleClickSelectsFiles(boolean enable);
+ /**
+ @return whether files (not directories) should only be select()ed by
+ double-clicks.
+
+ @short
+ @see #setOnlyDoubleClickSelectsFiles
+ */
+ public native boolean onlyDoubleClickSelectsFiles();
+ /**
+ increases the number of dirs and files.
+ @return true if the item fits the view mode
+
+ @short increases the number of dirs and files.
+ */
+ public native boolean updateNumbers(KFileItem i);
+ public native KFileViewSignaler signaler();
+ /**
+ Specify DND options. See DropOptions for details.
+ All options are disabled by default.
+ @short Specify DND options.
+ */
+ public native void setDropOptions(int options);
+ /**
+ Returns the DND options in effect.
+ See DropOptions for details.
+ @short Returns the DND options in effect.
+ */
+ public native int dropOptions();
+ /**
+ This method calculates a String from the given parameters, that is
+ suitable for sorting with e.g. QIconView or QListView. Their
+ Item-classes usually have a setKey( String ) method or a virtual
+ method String key() that is used for sorting.
+ @param value Any string that should be used as sort criterion
+ @param isDir Tells whether the key is computed for an item representing
+ a directory (directories are usually sorted before files)
+ @param sortSpec An ORed combination of QDir.SortSpec flags.
+ Currently, the values IgnoreCase, Reversed and
+ DirsFirst are taken into account.
+ @short This method calculates a String from the given parameters, that is suitable for sorting with e.
+ */
+ public static native String sortingKey(String value, boolean isDir, int sortSpec);
+ /**
+ An overloaded method that takes not a String, but a number as sort
+ criterion. You can use this for file-sizes or dates/times for example.
+ If you use a time_t, you need to cast that to KIO.filesize_t because
+ of ambiguity problems.
+ @short An overloaded method that takes not a String, but a number as sort criterion.
+ */
+ public static native String sortingKey(long value, boolean isDir, int sortSpec);
+ /**
+ delay before auto opening a directory
+ @short
+ */
+ public static native int autoOpenDelay();
+ protected native void setDropOptions_impl(int options);
+}
diff --git a/kdejava/koala/org/kde/koala/KFilePreviewSignals.java b/kdejava/koala/org/kde/koala/KFilePreviewSignals.java
new file mode 100644
index 00000000..6332452b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFilePreviewSignals.java
@@ -0,0 +1,12 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+
+public interface KFilePreviewSignals {
+ void showPreview(KURL arg1);
+ void clearPreview();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileShare.java b/kdejava/koala/org/kde/koala/KFileShare.java
new file mode 100644
index 00000000..64ce86d9
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileShare.java
@@ -0,0 +1,113 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Common functionality for the file sharing
+ (communication with the backend)
+ @short Common functionality for the file sharing (communication with the backend)
+
+*/
+public class KFileShare implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KFileShare(Class dummy){}
+
+ public static final int NotInitialized = 0;
+ public static final int ErrorNotFound = 1;
+ public static final int Authorized = 2;
+ public static final int UserNotAllowed = 3;
+
+ /**
+ The used share mode.
+ Simple means that the simple sharing dialog is used and
+ users can share only folders from there HOME folder.
+ Advanced means that the advanced sharing dialog is used and
+ users can share any folder.
+ @short The used share mode.
+ */
+ public static final int Simple = 0;
+ public static final int Advanced = 1;
+
+ public KFileShare() {
+ newKFileShare();
+ }
+ private native void newKFileShare();
+ /**
+ Reads the file share configuration file
+ @short Reads the file share configuration file
+ */
+ public static native void readConfig();
+ /**
+ Reads the list of shared folders
+ @short Reads the list of shared folders
+ */
+ public static native void readShareList();
+ /**
+ Call this to know if a directory is currently shared
+ @short Call this to know if a directory is currently shared
+ */
+ public static native boolean isDirectoryShared(String path);
+ /**
+ Call this to know if the current user is authorized to share directories
+ @short Call this to know if the current user is authorized to share directories
+ */
+ public static native int authorization();
+ public static native String findExe(String exeName);
+ /**
+ Uses a suid perl script to share the given path
+ with NFS and Samba
+ @param path the path to share
+ @param shared whether the path should be shared or not
+ @return whether the perl script was successful
+
+ @short Uses a suid perl script to share the given path with NFS and Samba
+ */
+ public static native boolean setShared(String path, boolean shared);
+ /**
+ Returns whether sharing is enabled
+ If this is false, file sharing is disabled and
+ nobody can share files.
+ @short Returns whether sharing is enabled If this is false, file sharing is disabled and nobody can share files.
+ */
+ public static native boolean sharingEnabled();
+ /**
+ Returns whether file sharing is restricted.
+ If it is not restricted every user can shar files.
+ If it is restricted only users in the configured
+ file share group can share files.
+ @short Returns whether file sharing is restricted.
+ */
+ public static native boolean isRestricted();
+ /**
+ Returns the group that is used for file sharing.
+ That is, all users in that group are allowed to
+ share files if file sharing is restricted.
+ @short Returns the group that is used for file sharing.
+ */
+ public static native String fileShareGroup();
+ /**
+ Returns the configured share mode
+ @short Returns the configured share mode
+ */
+ public static native int shareMode();
+ /**
+ Returns whether Samba is enabled
+ @short Returns whether Samba is enabled
+ */
+ public static native boolean sambaEnabled();
+ /**
+ Returns whether NFS is enabled
+ @short Returns whether NFS is enabled
+ */
+ public static native boolean nfsEnabled();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileTreeBranch.java b/kdejava/koala/org/kde/koala/KFileTreeBranch.java
new file mode 100644
index 00000000..13b9e251
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileTreeBranch.java
@@ -0,0 +1,148 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+
+/**
+
+ This is the branch class of the KFileTreeView, which represents one
+ branch in the treeview. Every branch has a root which is an url. The branch
+ lists the files under the root. Every branch uses its own dirlister and can
+ have its own filter etc.
+ See {@link KFileTreeBranchSignals} for signals emitted by KFileTreeBranch
+ @short Branch object for KFileTreeView object.
+
+*/
+public class KFileTreeBranch extends KDirLister {
+ protected KFileTreeBranch(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ constructs a branch for KFileTreeView. Does not yet start to list it.
+ @param url start url of the branch.
+ @param name the name of the branch, which is displayed in the first column of the treeview.
+ @param pix is a pixmap to display as an icon of the branch.
+ @param showHidden flag to make hidden files visible or not.
+ @param branchRoot is the KFileTreeViewItem to use as the root of the
+ branch, with the default 0 meaning to let KFileTreeBranch create
+ it for you.
+ @short constructs a branch for KFileTreeView.
+ */
+ public KFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix, boolean showHidden, KFileTreeViewItem branchRoot) {
+ super((Class) null);
+ newKFileTreeBranch(arg1,url,name,pix,showHidden,branchRoot);
+ }
+ private native void newKFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix, boolean showHidden, KFileTreeViewItem branchRoot);
+ public KFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix, boolean showHidden) {
+ super((Class) null);
+ newKFileTreeBranch(arg1,url,name,pix,showHidden);
+ }
+ private native void newKFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix, boolean showHidden);
+ public KFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix) {
+ super((Class) null);
+ newKFileTreeBranch(arg1,url,name,pix);
+ }
+ private native void newKFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix);
+ /**
+ @return the root url of the branch.
+
+ @short
+ */
+ public native KURL rootUrl();
+ /**
+ sets a KFileTreeViewItem as root widget for the branch.
+ That must be created outside of the branch. All KFileTreeViewItems
+ the branch is allocating will become children of that object.
+ @param r the KFileTreeViewItem to become the root item.
+ @short sets a KFileTreeViewItem as root widget for the branch.
+ */
+ public native void setRoot(KFileTreeViewItem r);
+ /**
+ @return the root item.
+
+ @short
+ */
+ public native KFileTreeViewItem root();
+ /**
+ @return the name of the branch.
+
+ @short
+ */
+ public native String name();
+ /**
+ sets the name of the branch.
+ @short sets the name of the branch.
+ */
+ public native void setName(String n);
+ public native QPixmap pixmap();
+ public native QPixmap openPixmap();
+ /**
+ @return whether the items in the branch show their file extensions in the
+ tree or not. See setShowExtensions for more information.
+
+ @short
+ */
+ public native boolean showExtensions();
+ /**
+ sets the root of the branch open or closed.
+ @short sets the root of the branch open or closed.
+ */
+ public native void setOpen(boolean setopen);
+ public native void setOpen();
+ /**
+ sets if children recursion is wanted or not. If this is switched off, the
+ child directories of a just opened directory are not listed internally.
+ That means that it can not be determined if the sub directories are
+ expandable or not. If this is switched off there will be no call to
+ setExpandable.
+ @param t set to true to switch on child recursion
+ @short sets if children recursion is wanted or not.
+ */
+ public native void setChildRecurse(boolean t);
+ public native void setChildRecurse();
+ /**
+ @return if child recursion is on or off.
+
+ @short
+ @see #setChildRecurse
+ */
+ public native boolean childRecurse();
+ /**
+ find the according KFileTreeViewItem by an url
+ @short find the according KFileTreeViewItem by an url
+ */
+ public native KFileTreeViewItem findTVIByURL(KURL arg1);
+ /**
+ populates a branch. This method must be called after a branch was added
+ to a KFileTreeView using method addBranch.
+ @param url is the url of the root item where the branch starts.
+ @param currItem is the current parent.
+ @short populates a branch.
+ */
+ public native boolean populate(KURL url, KFileTreeViewItem currItem);
+ /**
+ sets printing of the file extensions on or off. If you pass false to this
+ slot, all items of this branch will not show their file extensions in the
+ tree.
+ @param visible flags if the extensions should be visible or not.
+ @short sets printing of the file extensions on or off.
+ */
+ public native void setShowExtensions(boolean visible);
+ public native void setShowExtensions();
+ public native void setOpenPixmap(QPixmap pix);
+ /**
+ allocates a KFileTreeViewItem for the branch
+ for new items.
+ @short allocates a KFileTreeViewItem for the branch for new items.
+ */
+ protected native KFileTreeViewItem createTreeViewItem(KFileTreeViewItem parent, KFileItem fileItem);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileTreeBranchSignals.java b/kdejava/koala/org/kde/koala/KFileTreeBranchSignals.java
new file mode 100644
index 00000000..5cc86082
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileTreeBranchSignals.java
@@ -0,0 +1,20 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+
+public interface KFileTreeBranchSignals {
+ /**
+ emitted with the item of a directory which was finished to populate
+ @short emitted with the item of a directory which was finished to populate
+ */
+ void populateFinished(KFileTreeViewItem arg1);
+ // void newTreeViewItems(KFileTreeBranch* arg1,const KFileTreeViewItemList& arg2); >>>> NOT CONVERTED
+ /**
+ emitted with the exact count of children for a directory.
+ @short emitted with the exact count of children for a directory.
+ */
+ void directoryChildCount(KFileTreeViewItem item, int count);
+}
diff --git a/kdejava/koala/org/kde/koala/KFileTreeView.java b/kdejava/koala/org/kde/koala/KFileTreeView.java
new file mode 100644
index 00000000..6d697ec7
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileTreeView.java
@@ -0,0 +1,168 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QListViewItem;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QDragLeaveEvent;
+import java.util.ArrayList;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDragObject;
+
+/**
+
+ The filetreeview offers a treeview on the file system which behaves like
+ a QTreeView showing files and/or directories in the file system.
+ KFileTreeView is able to handle more than one URL, represented by
+ KFileTreeBranch.
+ Typical usage:
+ 1. create a KFileTreeView fitting in your layout and add columns to it
+ 2. call addBranch to create one or more branches
+ 3. retrieve the root item with KFileTreeBranch.root() and set it open
+ if desired. That starts the listing.
+ See {@link KFileTreeViewSignals} for signals emitted by KFileTreeView
+ @short The filetreeview offers a treeview on the file system which behaves like a QTreeView showing files and/or directories in the file system.
+
+*/
+public class KFileTreeView extends KListView {
+ protected KFileTreeView(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KFileTreeView(QWidget parent, String name) {
+ super((Class) null);
+ newKFileTreeView(parent,name);
+ }
+ private native void newKFileTreeView(QWidget parent, String name);
+ public KFileTreeView(QWidget parent) {
+ super((Class) null);
+ newKFileTreeView(parent);
+ }
+ private native void newKFileTreeView(QWidget parent);
+ /**
+ @return the current (i.e. selected) item
+
+ @short
+ */
+ public native KFileTreeViewItem currentKFileTreeViewItem();
+ /**
+ @return the URL of the current selected item.
+
+ @short
+ */
+ public native KURL currentURL();
+ /**
+ Adds a branch to the treeview item.
+ This high-level function creates the branch, adds it to the treeview and
+ connects some signals. Note that directory listing does not start until
+ a branch is expanded either by opening the root item by user or by setOpen
+ on the root item.
+ @param path is the base url of the branch
+ @param name is the name of the branch, which will be the text for column 0
+ @param showHidden says if hidden files and directories should be visible
+ @return a pointer to the new branch or zero
+
+ @short Adds a branch to the treeview item.
+ */
+ public native KFileTreeBranch addBranch(KURL path, String name, boolean showHidden);
+ public native KFileTreeBranch addBranch(KURL path, String name);
+ /**
+ same as the function above but with a pixmap to set for the branch.
+ @short same as the function above but with a pixmap to set for the branch.
+ */
+ public native KFileTreeBranch addBranch(KURL path, String name, QPixmap pix, boolean showHidden);
+ public native KFileTreeBranch addBranch(KURL path, String name, QPixmap pix);
+ /**
+ same as the function above but letting the user create the branch.
+ @short same as the function above but letting the user create the branch.
+ */
+ public native KFileTreeBranch addBranch(KFileTreeBranch arg1);
+ /**
+ removes the branch from the treeview.
+ @param branch is a pointer to the branch
+ @return true on success.
+
+ @short removes the branch from the treeview.
+ */
+ public native boolean removeBranch(KFileTreeBranch branch);
+ /**
+ @param searchName is the name of a branch
+ @return a pointer to the KFileTreeBranch in the KFileTreeView or zero on failure.
+
+ @short
+ */
+ public native KFileTreeBranch branch(String searchName);
+ /**
+ @return a list of pointers to all existing branches in the treeview.
+
+ @short
+ */
+ // KFileTreeBranchList& branches(); >>>> NOT CONVERTED
+ /**
+ set the directory mode for branches. If true is passed, only directories will be loaded.
+ @param branch is a pointer to a KFileTreeBranch
+ @short set the directory mode for branches.
+ */
+ public native void setDirOnlyMode(KFileTreeBranch branch, boolean arg2);
+ /**
+ searches a branch for a KFileTreeViewItem identified by the relative url given as
+ second parameter. The method adds the branches base url to the relative path and finds
+ the item.
+ @param brnch is a pointer to the branch to search in
+ @param relUrl is the branch relativ url
+ @return a pointer to the item or zero if the item does not exist.
+
+ @short searches a branch for a KFileTreeViewItem identified by the relative url given as second parameter.
+ */
+ public native KFileTreeViewItem findItem(KFileTreeBranch brnch, String relUrl);
+ /**
+ see method above, differs only in the first parameter. Finds the branch by its name.
+ @short see method above, differs only in the first parameter.
+ */
+ public native KFileTreeViewItem findItem(String branchName, String relUrl);
+ /**
+ @return a flag indicating if extended folder pixmaps are displayed or not.
+
+ @short
+ */
+ public native boolean showFolderOpenPixmap();
+ /**
+ set the flag to show 'extended' folder icons on or off. If switched on, folders will
+ have an open folder pixmap displayed if their children are visible, and the standard
+ closed folder pixmap (from mimetype folder) if they are closed.
+ If switched off, the plain mime pixmap is displayed.
+ @param showIt = false displays mime type pixmap only
+ @short set the flag to show 'extended' folder icons on or off.
+ */
+ public native void setShowFolderOpenPixmap(boolean showIt);
+ public native void setShowFolderOpenPixmap();
+ /**
+ @return true if we can decode the drag and support the action
+
+ @short
+ */
+ protected native boolean acceptDrag(QDropEvent event);
+ protected native QDragObject dragObject();
+ protected native void startAnimation(KFileTreeViewItem item, String iconBaseName, int iconCount);
+ protected native void startAnimation(KFileTreeViewItem item, String iconBaseName);
+ protected native void startAnimation(KFileTreeViewItem item);
+ protected native void stopAnimation(KFileTreeViewItem item);
+ protected native void contentsDragEnterEvent(QDragEnterEvent e);
+ protected native void contentsDragMoveEvent(QDragMoveEvent e);
+ protected native void contentsDragLeaveEvent(QDragLeaveEvent e);
+ protected native void contentsDropEvent(QDropEvent ev);
+ // void slotNewTreeViewItems(KFileTreeBranch* arg1,const KFileTreeViewItemList& arg2); >>>> NOT CONVERTED
+ protected native void slotSetNextUrlToSelect(KURL url);
+ protected native QPixmap itemIcon(KFileTreeViewItem arg1, int gap);
+ protected native QPixmap itemIcon(KFileTreeViewItem arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileTreeViewItem.java b/kdejava/koala/org/kde/koala/KFileTreeViewItem.java
new file mode 100644
index 00000000..f4a42bf2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileTreeViewItem.java
@@ -0,0 +1,72 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ An item for a KFileTreeView that knows about its own KFileItem.
+ @short An item for a KFileTreeView that knows about its own KFileItem.
+
+*/
+public class KFileTreeViewItem extends KListViewItem {
+ protected KFileTreeViewItem(Class dummy){super((Class) null);}
+ public KFileTreeViewItem(KFileTreeViewItem arg1, KFileItem arg2, KFileTreeBranch arg3) {
+ super((Class) null);
+ newKFileTreeViewItem(arg1,arg2,arg3);
+ }
+ private native void newKFileTreeViewItem(KFileTreeViewItem arg1, KFileItem arg2, KFileTreeBranch arg3);
+ public KFileTreeViewItem(KFileTreeView arg1, KFileItem arg2, KFileTreeBranch arg3) {
+ super((Class) null);
+ newKFileTreeViewItem(arg1,arg2,arg3);
+ }
+ private native void newKFileTreeViewItem(KFileTreeView arg1, KFileItem arg2, KFileTreeBranch arg3);
+ /**
+ @return the KFileTreeBranch the item is sorted in.
+
+ @short
+ */
+ public native KFileTreeBranch branch();
+ /**
+ @return the KFileItem the viewitem is representing.
+
+ @short
+ */
+ public native KFileItem fileItem();
+ /**
+ @return the path of the item.
+
+ @short
+ */
+ public native String path();
+ /**
+ @return the items KURL
+
+ @short
+ */
+ public native KURL url();
+ /**
+ @return if the item represents a directory
+
+ @short
+ */
+ public native boolean isDir();
+ /**
+ @return if this directory was already seen by a KDirLister.
+
+ @short
+ */
+ public native boolean alreadyListed();
+ /**
+ set the flag if the directory was already listed.
+ @short set the flag if the directory was already listed.
+ */
+ public native void setListed(boolean wasListed);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileTreeViewSignals.java b/kdejava/koala/org/kde/koala/KFileTreeViewSignals.java
new file mode 100644
index 00000000..6ddc4179
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileTreeViewSignals.java
@@ -0,0 +1,26 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QListViewItem;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QDragLeaveEvent;
+import java.util.ArrayList;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDragObject;
+
+public interface KFileTreeViewSignals {
+ void onItem(String arg1);
+ void dropped(QWidget arg1, QDropEvent arg2);
+ void dropped(QWidget arg1, QDropEvent arg2, ArrayList arg3);
+ void dropped(ArrayList arg1, KURL arg2);
+ void dropped(QWidget arg1, QDropEvent arg2, ArrayList arg3, KURL arg4);
+ void dropped(QDropEvent arg1, QListViewItem arg2);
+ void dropped(KFileTreeView arg1, QDropEvent arg2, QListViewItem arg3);
+ void dropped(QDropEvent arg1, QListViewItem arg2, QListViewItem arg3);
+ void dropped(KFileTreeView arg1, QDropEvent arg2, QListViewItem arg3, QListViewItem arg4);
+}
diff --git a/kdejava/koala/org/kde/koala/KFileTreeViewToolTip.java b/kdejava/koala/org/kde/koala/KFileTreeViewToolTip.java
new file mode 100644
index 00000000..b78565c4
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileTreeViewToolTip.java
@@ -0,0 +1,26 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QListView;
+import org.kde.qt.QToolTip;
+
+/**
+*/
+public class KFileTreeViewToolTip extends QToolTip {
+ protected KFileTreeViewToolTip(Class dummy){super((Class) null);}
+ public KFileTreeViewToolTip(QListView view) {
+ super((Class) null);
+ newKFileTreeViewToolTip(view);
+ }
+ private native void newKFileTreeViewToolTip(QListView view);
+ protected native void maybeTip(QPoint arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileView.java b/kdejava/koala/org/kde/koala/KFileView.java
new file mode 100644
index 00000000..23c1254a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileView.java
@@ -0,0 +1,312 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+
+/**
+
+ This class defines an interface to all file views. Its intent is
+ to allow to switch the view of the files in the selector very easily.
+ It defines some pure functions, that must be implemented to
+ make a file view working.
+ Since this class is not a widget, but it's meant to be added to other
+ widgets, its most important function is widget. This should return
+ a pointer to the implemented widget.
+ @author Stephan Kulow <coolo@kde.org>
+
+ @short A base class for views of the KDE file selector.
+
+*/
+public class KFileView implements QtSupport, KFileViewInterface {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KFileView(Class dummy){}
+
+ public static final int VIRTUAL_SET_DROP_OPTIONS = 1;
+
+ public static final int Files = 1;
+ public static final int Directories = 2;
+ public static final int All = Files|Directories;
+
+ /**
+ Various options for drag and drop support.
+ These values can be or'd together.
+
+ <li>
+ <code>AutoOpenDirs</code> Automatically open directory after hovering above it
+ for a short while while dragging.
+ </li>
+ @short Various options for drag and drop support.
+ */
+ public static final int AutoOpenDirs = 1;
+
+ /**
+ inserts a list of items.
+ @short inserts a list of items.
+ */
+ public native void addItemList(ArrayList list);
+ /**
+ a pure function to get a QWidget, that can be added to
+ other widgets. This function is needed to make it possible for
+ derived classes to derive from other widgets.
+ @short a pure virtual function to get a QWidget, that can be added to other widgets.
+ */
+ public native QWidget widget();
+ /**
+ Sets <code>filename</code> the current item in the view, if available.
+ @short Sets <code>filename</code> the current item in the view, if available.
+ */
+ public native void setCurrentItem(String filename);
+ /**
+ Reimplement this to set <code>item</code> the current item in the view, e.g.
+ the item having focus.
+ @short Reimplement this to set <code>item</code> the current item in the view, e.
+ */
+ public native void setCurrentItem(KFileItem item);
+ /**
+ @return the "current" KFileItem, e.g. where the cursor is.
+ Returns 0L when there is no current item (e.g. in an empty view).
+ Subclasses have to implement this.
+
+ @short
+ */
+ public native KFileItem currentFileItem();
+ /**
+ Clears the view and all item lists.
+ @short Clears the view and all item lists.
+ */
+ public native void clear();
+ /**
+ does a repaint of the view.
+ The default implementation calls
+ <pre>
+ widget().repaint(f)
+ </pre>
+ @short does a repaint of the view.
+ */
+ public native void updateView(boolean f);
+ public native void updateView();
+ public native void updateView(KFileItem arg1);
+ /**
+ Removes an item from the list; has to be implemented by the view.
+ Call KFileView.removeItem( item ) after removing it.
+ @short Removes an item from the list; has to be implemented by the view.
+ */
+ public native void removeItem(KFileItem item);
+ /**
+ This hook is called when all items of the currently listed directory
+ are listed and inserted into the view, i.e. there won't come any new
+ items anymore.
+ @short This hook is called when all items of the currently listed directory are listed and inserted into the view, i.
+ */
+ public native void listingCompleted();
+ /**
+ Returns the sorting order of the internal list. Newly added files
+ are added through this sorting.
+ @short Returns the sorting order of the internal list.
+ */
+ public native int sorting();
+ /**
+ Sets the sorting order of the view.
+ Default is QDir.Name | QDir.IgnoreCase | QDir.DirsFirst
+ Override this in your subclass and sort accordingly (usually by
+ setting the sorting-key for every item and telling QIconView
+ or QListView to sort.
+ A view may choose to use a different sorting than QDir.Name, Time
+ or Size. E.g. to sort by mimetype or any possible string. Set the
+ sorting to QDir.Unsorted for that and do the rest internally.
+ @short Sets the sorting order of the view.
+ @see #sortingKey
+ */
+ public native void setSorting(int sort);
+ /**
+ Tells whether the current items are in reversed order (shortcut to
+ sorting() & QDir.Reversed).
+ @short Tells whether the current items are in reversed order (shortcut to sorting() & QDir.Reversed).
+ */
+ public native boolean isReversed();
+ public native void sortReversed();
+ /**
+ @return the number of dirs and files
+
+ @short
+ */
+ public native int count();
+ /**
+ @return the number of files.
+
+ @short
+ */
+ public native int numFiles();
+ /**
+ @return the number of directories
+
+ @short
+ */
+ public native int numDirs();
+ public native void setSelectionMode(int sm);
+ public native void setViewMode(int vm);
+ public native int viewMode();
+ /**
+ @return the localized name of the view, which could be displayed
+ somewhere, e.g. in a menu, where the user can choose between views.
+
+ @short
+ @see #setViewName
+ */
+ public native String viewName();
+ /**
+ Sets the name of the view, which could be displayed somewhere.
+ E.g. "Image Preview".
+ @short Sets the name of the view, which could be displayed somewhere.
+ */
+ public native void setViewName(String name);
+ public native void setParentView(KFileViewInterface parent);
+ /**
+ The derived view must implement this function to add
+ the file in the widget.
+ Make sure to call this implementation, i.e.
+ KFileView.insertItem( i );
+ @short The derived view must implement this function to add the file in the widget.
+ */
+ public native void insertItem(KFileItem i);
+ /**
+ pure function, that should be implemented to clear
+ the view. At this moment the list is already empty
+ @short pure virtual function, that should be implemented to clear the view.
+ */
+ public native void clearView();
+ /**
+ pure function, that should be implemented to make item i
+ visible, i.e. by scrolling the view appropriately.
+ @short pure virtual function, that should be implemented to make item i visible, i.
+ */
+ public native void ensureItemVisible(KFileItem i);
+ /**
+ Clears any selection, unhighlights everything. Must be implemented by
+ the view.
+ @short Clears any selection, unhighlights everything.
+ */
+ public native void clearSelection();
+ /**
+ Selects all items. You may want to override this, if you can implement
+ it more efficiently than calling setSelected() with every item.
+ This works only in Multiselection mode of course.
+ @short Selects all items.
+ */
+ public native void selectAll();
+ /**
+ Inverts the current selection, i.e. selects all items, that were up to
+ now not selected and deselects the other.
+ @short Inverts the current selection, i.
+ */
+ public native void invertSelection();
+ /**
+ Tells the view that it should highlight the item.
+ This function must be implemented by the view.
+ @short Tells the view that it should highlight the item.
+ */
+ public native void setSelected(KFileItem arg1, boolean enable);
+ /**
+ @return whether the given item is currently selected.
+ Must be implemented by the view.
+
+ @short
+ */
+ public native boolean isSelected(KFileItem arg1);
+ /**
+ @return all currently highlighted items.
+
+ @short
+ */
+ public native ArrayList selectedItems();
+ /**
+ @return all items currently available in the current sort-order
+
+ @short
+ */
+ public native ArrayList items();
+ public native KFileItem firstFileItem();
+ public native KFileItem nextItem(KFileItem arg1);
+ public native KFileItem prevItem(KFileItem arg1);
+ /**
+ This is a KFileDialog specific hack: we want to select directories with
+ single click, but not files. But as a generic class, we have to be able
+ to select files on single click as well.
+ This gives us the opportunity to do both.
+ Every view has to decide when to call select( item ) when a file was
+ single-clicked, based on onlyDoubleClickSelectsFiles().
+ @short This is a KFileDialog specific hack: we want to select directories with single click, but not files.
+ */
+ public native void setOnlyDoubleClickSelectsFiles(boolean enable);
+ /**
+ @return whether files (not directories) should only be select()ed by
+ double-clicks.
+
+ @short
+ @see #setOnlyDoubleClickSelectsFiles
+ */
+ public native boolean onlyDoubleClickSelectsFiles();
+ /**
+ increases the number of dirs and files.
+ @return true if the item fits the view mode
+
+ @short increases the number of dirs and files.
+ */
+ public native boolean updateNumbers(KFileItem i);
+ /**
+ @return the view-specific action-collection. Every view should
+ add its actions here (if it has any) to make them available to
+ e.g. the KDirOperator's popup-menu.
+
+ @short
+ */
+ public native KActionCollection actionCollection();
+ public native KFileViewSignaler signaler();
+ public native void readConfig(KConfig arg1, String group);
+ public native void readConfig(KConfig arg1);
+ public native void writeConfig(KConfig arg1, String group);
+ public native void writeConfig(KConfig arg1);
+ /**
+ Specify DND options. See DropOptions for details.
+ All options are disabled by default.
+ @short Specify DND options.
+ */
+ public native void setDropOptions(int options);
+ /**
+ Returns the DND options in effect.
+ See DropOptions for details.
+ @short Returns the DND options in effect.
+ */
+ public native int dropOptions();
+ /**
+ This method calculates a String from the given parameters, that is
+ suitable for sorting with e.g. QIconView or QListView. Their
+ Item-classes usually have a setKey( String ) method or a virtual
+ method String key() that is used for sorting.
+ @param value Any string that should be used as sort criterion
+ @param isDir Tells whether the key is computed for an item representing
+ a directory (directories are usually sorted before files)
+ @param sortSpec An ORed combination of QDir.SortSpec flags.
+ Currently, the values IgnoreCase, Reversed and
+ DirsFirst are taken into account.
+ @short This method calculates a String from the given parameters, that is suitable for sorting with e.
+ */
+ public static native String sortingKey(String value, boolean isDir, int sortSpec);
+ /**
+ An overloaded method that takes not a String, but a number as sort
+ criterion. You can use this for file-sizes or dates/times for example.
+ If you use a time_t, you need to cast that to KIO.filesize_t because
+ of ambiguity problems.
+ @short An overloaded method that takes not a String, but a number as sort criterion.
+ */
+ public static native String sortingKey(long value, boolean isDir, int sortSpec);
+ /**
+ delay before auto opening a directory
+ @short
+ */
+ public static native int autoOpenDelay();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileViewInterface.java b/kdejava/koala/org/kde/koala/KFileViewInterface.java
new file mode 100644
index 00000000..7c0db042
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileViewInterface.java
@@ -0,0 +1,57 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+
+public interface KFileViewInterface {
+ void addItemList(ArrayList list);
+ QWidget widget();
+ void setCurrentItem(String filename);
+ void setCurrentItem(KFileItem item);
+ KFileItem currentFileItem();
+ void clear();
+ void updateView(boolean f);
+ void updateView();
+ void updateView(KFileItem arg1);
+ void removeItem(KFileItem item);
+ void listingCompleted();
+ int sorting();
+ void setSorting(int sort);
+ boolean isReversed();
+ void sortReversed();
+ int count();
+ int numFiles();
+ int numDirs();
+ void setSelectionMode(int sm);
+ void setViewMode(int vm);
+ int viewMode();
+ String viewName();
+ void setViewName(String name);
+ void setParentView(KFileViewInterface parent);
+ void insertItem(KFileItem i);
+ void clearView();
+ void ensureItemVisible(KFileItem i);
+ void clearSelection();
+ void selectAll();
+ void invertSelection();
+ void setSelected(KFileItem arg1, boolean enable);
+ boolean isSelected(KFileItem arg1);
+ ArrayList selectedItems();
+ ArrayList items();
+ KFileItem firstFileItem();
+ KFileItem nextItem(KFileItem arg1);
+ KFileItem prevItem(KFileItem arg1);
+ void setOnlyDoubleClickSelectsFiles(boolean enable);
+ boolean onlyDoubleClickSelectsFiles();
+ boolean updateNumbers(KFileItem i);
+ KActionCollection actionCollection();
+ KFileViewSignaler signaler();
+ void readConfig(KConfig arg1, String group);
+ void readConfig(KConfig arg1);
+ void writeConfig(KConfig arg1, String group);
+ void writeConfig(KConfig arg1);
+ void setDropOptions(int options);
+ int dropOptions();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileViewSignaler.java b/kdejava/koala/org/kde/koala/KFileViewSignaler.java
new file mode 100644
index 00000000..bf655da3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileViewSignaler.java
@@ -0,0 +1,49 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import java.util.ArrayList;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QObject;
+
+/**
+
+ internal class to make easier to use signals possible
+ See {@link KFileViewSignalerSignals} for signals emitted by KFileViewSignaler
+ @short internal class to make easier to use signals possible
+
+*/
+public class KFileViewSignaler extends QObject {
+ protected KFileViewSignaler(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Call this method when an item is selected (depends on single click /
+ double click configuration). Emits the appropriate signal.
+ @short Call this method when an item is selected (depends on single click / double click configuration).
+ */
+ public native void activate(KFileItem item);
+ /**
+ emits the highlighted signal for item. Call this in your view class
+ whenever the selection changes.
+ @short emits the highlighted signal for item.
+ */
+ public native void highlightFile(KFileItem i);
+ public native void activateMenu(KFileItem i, QPoint pos);
+ public native void changeSorting(int sorting);
+ public native void dropURLs(KFileItem i, QDropEvent e, ArrayList urls);
+ public KFileViewSignaler() {
+ super((Class) null);
+ newKFileViewSignaler();
+ }
+ private native void newKFileViewSignaler();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFileViewSignalerSignals.java b/kdejava/koala/org/kde/koala/KFileViewSignalerSignals.java
new file mode 100644
index 00000000..a8297700
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFileViewSignalerSignals.java
@@ -0,0 +1,22 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import java.util.ArrayList;
+import org.kde.qt.QDropEvent;
+
+public interface KFileViewSignalerSignals {
+ void dirActivated(KFileItem arg1);
+ void sortingChanged(int arg1);
+ /**
+ the item maybe be null, indicating that we're in multiselection mode and
+ the selection has changed.
+ @short the item maybe be 0L, indicating that we're in multiselection mode and the selection has changed.
+ */
+ void fileHighlighted(KFileItem arg1);
+ void fileSelected(KFileItem arg1);
+ void activatedMenu(KFileItem i, QPoint arg2);
+ void dropped(KFileItem arg1, QDropEvent arg2, ArrayList arg3);
+}
diff --git a/kdejava/koala/org/kde/koala/KFilterBase.java b/kdejava/koala/org/kde/koala/KFilterBase.java
new file mode 100644
index 00000000..90558605
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFilterBase.java
@@ -0,0 +1,104 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QIODevice;
+import org.kde.qt.QIODeviceInterface;
+import org.kde.qt.QObject;
+
+/**
+
+ This is the base class for compression filters
+ such as gzip and bzip2. It's pretty much internal.
+ Don't use directly, use KFilterDev instead.
+ @short This is the base class for compression filters such as gzip and bzip2.
+
+*/
+public class KFilterBase extends QObject {
+ protected KFilterBase(Class dummy){super((Class) null);}
+ /** \internal @short \internal
+ */
+ public static final int OK = 0;
+ public static final int END = 1;
+ public static final int ERROR = 2;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Sets the device on which the filter will work
+ @param dev the device on which the filter will work
+ @param autodelete if true, <code>dev</code> is deleted when the filter is deleted
+ @short Sets the device on which the filter will work
+ */
+ public native void setDevice(QIODeviceInterface dev, boolean autodelete);
+ public native void setDevice(QIODeviceInterface dev);
+ /**
+ Returns the device on which the filter will work.
+ @return the device on which the filter will work
+
+ @short Returns the device on which the filter will work.
+ */
+ public native QIODeviceInterface device();
+ /** \internal @short \internal
+ */
+ public native void init(int mode);
+ /** \internal @short \internal
+ */
+ public native int mode();
+ /** \internal @short \internal
+ */
+ public native void terminate();
+ /** \internal @short \internal
+ */
+ public native void reset();
+ /** \internal @short \internal
+ */
+ public native boolean readHeader();
+ /** \internal @short \internal
+ */
+ public native boolean writeHeader(String filename);
+ /** \internal @short \internal
+ */
+ public native void setOutBuffer(String data, int maxlen);
+ /** \internal @short \internal
+ */
+ public native void setInBuffer(String data, int size);
+ /** \internal @short \internal
+ */
+ public native boolean inBufferEmpty();
+ /** \internal @short \internal
+ */
+ public native int inBufferAvailable();
+ /** \internal @short \internal
+ */
+ public native boolean outBufferFull();
+ /** \internal @short \internal
+ */
+ public native int outBufferAvailable();
+ /** \internal @short \internal
+ */
+ public native int uncompress();
+ /** \internal @short \internal
+ */
+ public native int compress(boolean finish);
+ /**
+ Call this to create the appropriate filter for the file
+ named <code>fileName.</code>
+ @param fileName the name of the file to filter
+ @return the filter for the <code>fileName</code>, or 0 if not found
+
+ @short Call this to create the appropriate filter for the file named <code>fileName.</code>
+ */
+ public static native KFilterBase findFilterByFileName(String fileName);
+ /**
+ Call this to create the appropriate filter for the mimetype
+ <code>mimeType.</code> For instance application/x-gzip.
+ @param mimeType the mime type of the file to filter
+ @return the filter for the <code>mimeType</code>, or 0 if not found
+
+ @short Call this to create the appropriate filter for the mimetype <code>mimeType.</code>
+ */
+ public static native KFilterBase findFilterByMimeType(String mimeType);
+}
diff --git a/kdejava/koala/org/kde/koala/KFilterDev.java b/kdejava/koala/org/kde/koala/KFilterDev.java
new file mode 100644
index 00000000..a20c7244
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFilterDev.java
@@ -0,0 +1,149 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QIODevice;
+import org.kde.qt.QIODeviceInterface;
+import org.kde.qt.QIODevice;
+
+/**
+
+ A class for reading and writing compressed data onto a device
+ (e.g. file, but other usages are possible, like a buffer or a socket).
+ To simply read/write compressed files, see deviceForFile.
+ @author David Faure <faure@kde.org>
+
+ @short A class for reading and writing compressed data onto a device (e.
+
+*/
+public class KFilterDev extends QIODevice {
+ protected KFilterDev(Class dummy){super((Class) null);}
+ /**
+ Constructs a KFilterDev for a given filter (e.g. gzip, bzip2 etc.).
+ @param filter the KFilterBase to use
+ @param autoDeleteFilterBase when true this object will become the
+ owner of <code>filter.</code>
+ @short Constructs a KFilterDev for a given filter (e.
+ */
+ public KFilterDev(KFilterBase filter, boolean autoDeleteFilterBase) {
+ super((Class) null);
+ newKFilterDev(filter,autoDeleteFilterBase);
+ }
+ private native void newKFilterDev(KFilterBase filter, boolean autoDeleteFilterBase);
+ public KFilterDev(KFilterBase filter) {
+ super((Class) null);
+ newKFilterDev(filter);
+ }
+ private native void newKFilterDev(KFilterBase filter);
+ /**
+ Open for reading or writing.
+ If the KFilterBase's device is not opened, it will be opened.
+ @short Open for reading or writing.
+ */
+ public native boolean open(int mode);
+ /**
+ Close after reading or writing.
+ If the KFilterBase's device was opened by open(), it will be closed.
+ @short Close after reading or writing.
+ */
+ public native void close();
+ public native void flush();
+ /**
+ For writing gzip compressed files only:
+ set the name of the original file, to be used in the gzip header.
+ @param fileName the name of the original file
+ @short For writing gzip compressed files only: set the name of the original file, to be used in the gzip header.
+ */
+ public native void setOrigFileName(String fileName);
+ /**
+ Call this let this device skip the gzip headers when reading/writing.
+ This way KFilterDev (with gzip filter) can be used as a direct wrapper
+ around zlib - this is used by KZip.
+ @short Call this let this device skip the gzip headers when reading/writing.
+ */
+ public native void setSkipHeaders();
+ public native long size();
+ public native long at();
+ /**
+ That one can be quite slow, when going back. Use with care.
+ @short That one can be quite slow, when going back.
+ */
+ public native boolean at(long arg1);
+ public native boolean atEnd();
+ public native long readBlock(StringBuffer data, long maxlen);
+ public native long writeBlock(String data, long len);
+ public native int getch();
+ public native int putch(int arg1);
+ public native int ungetch(int arg1);
+ /**
+ Creates an i/o device that is able to read from <code>fileName</code>,
+ whether it's compressed or not. Available compression filters
+ (gzip/bzip2 etc.) will automatically be used.
+ The compression filter to be used is determined from the <code>fileName</code>
+ if <code>mimetype</code> is empty. Pass "application/x-gzip" or "application/x-bzip2"
+ to force the corresponding decompression filter, if available.
+ Warning: application/x-bzip2 may not be available.
+ In that case a QFile opened on the compressed data will be returned !
+ Use KFilterBase.findFilterByMimeType and code similar to what
+ deviceForFile is doing, to better control what's happening.
+ The returned QIODevice has to be deleted after using.
+ @param fileName the name of the file to filter
+ @param mimetype the mime type of the file to filter, or null if unknown
+ @param forceFilter if true, the function will either find a compression filter, or return 0.
+ If false, it will always return a QIODevice. If no
+ filter is available it will return a simple QFile.
+ This can be useful if the file is usable without a filter.
+ @return if a filter has been found, the QIODevice for the filter. If the
+ filter does not exist, the return value depends on <code>forceFilter.</code>
+ The returned QIODevice has to be deleted after using.
+
+ @short Creates an i/o device that is able to read from <code>fileName</code>, whether it's compressed or not.
+ */
+ public static native QIODeviceInterface deviceForFile(String fileName, String mimetype, boolean forceFilter);
+ public static native QIODeviceInterface deviceForFile(String fileName, String mimetype);
+ public static native QIODeviceInterface deviceForFile(String fileName);
+ /**
+ Creates an i/o device that is able to read from the QIODevice <code>inDevice</code>,
+ whether the data is compressed or not. Available compression filters
+ (gzip/bzip2 etc.) will automatically be used.
+ The compression filter to be used is determined <code>mimetype</code> .
+ Pass "application/x-gzip" or "application/x-bzip2"
+ to use the corresponding decompression filter.
+ Warning: application/x-bzip2 may not be available.
+ In that case 0 will be returned !
+ The returned QIODevice has to be deleted after using.
+ @param inDevice input device, becomes owned by this device! Automatically deleted!
+ @param mimetype the mime type for the filter
+ @return a QIODevice that filters the original stream. Must be deleted after
+ using
+
+ @short Creates an i/o device that is able to read from the QIODevice <code>inDevice</code>, whether the data is compressed or not.
+ */
+ public static native QIODeviceInterface device(QIODeviceInterface inDevice, String mimetype);
+ /**
+ Creates an i/o device that is able to read from the QIODevice <code>inDevice</code>,
+ whether the data is compressed or not. Available compression filters
+ (gzip/bzip2 etc.) will automatically be used.
+ The compression filter to be used is determined <code>mimetype</code> .
+ Pass "application/x-gzip" or "application/x-bzip2"
+ to use the corresponding decompression filter.
+ Warning: application/x-bzip2 may not be available.
+ In that case 0 will be returned !
+ The returned QIODevice has to be deleted after using.
+ @param inDevice input device. Won't be deleted if <code>autoDeleteInDevice</code> = false
+ @param mimetype the mime type for the filter
+ @param autoDeleteInDevice if true, <code>inDevice</code> will be deleted automatically
+ @return a QIODevice that filters the original stream. Must be deleted after
+ using
+
+ @short Creates an i/o device that is able to read from the QIODevice <code>inDevice</code>, whether the data is compressed or not.
+ */
+ public static native QIODeviceInterface device(QIODeviceInterface inDevice, String mimetype, boolean autoDeleteInDevice);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFind.java b/kdejava/koala/org/kde/koala/KFind.java
new file mode 100644
index 00000000..fcdd0b0e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFind.java
@@ -0,0 +1,259 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QRegExp;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ @brief A generic implementation of the "find" function.
+ <b></b>etail:
+ This class includes prompt handling etc. Also provides some
+ static functions which can be used to create custom behavior
+ instead of using the class directly.
+ <b></b>xample:
+ To use the class to implement a complete find feature:
+ In the slot connected to the find action, after using KFindDialog:
+ <pre>
+ // This creates a find-next-prompt dialog if needed.
+ m_find = new KFind(pattern, options, this);
+ // Connect highlight signal to code which handles highlighting
+ // of found text.
+ connect( m_find, SIGNAL("highlight( String, int, int )"),
+ this, SLOT("slotHighlight( String, int, int )") );
+ // Connect findNext signal - called when pressing the button in the dialog
+ connect( m_find, SIGNAL("findNext()"),
+ this, SLOT("slotFindNext()") );
+ </pre>
+ If you are using a non-modal find dialog (the recommended new way
+ in KDE-3.2), you should call right away m_find.closeFindNextDialog().
+ Then initialize the variables determining the "current position"
+ (to the cursor, if the option FromCursor is set,
+ to the beginning of the selection if the option SelectedText is set,
+ and to the beginning of the document otherwise).
+ Initialize the "end of search" variables as well (end of doc or end of selection).
+ Swap begin and end if FindBackwards.
+ Finally, call slotFindNext();
+ <pre>
+ void slotFindNext()
+ {
+ KFind.Result res = KFind.NoMatch;
+ while ( res == KFind.NoMatch && <position not at end> ) {
+ if ( m_find.needData() )
+ m_find.setData( <current text fragment> );
+ // Let KFind inspect the text fragment, and display a dialog if a match is found
+ res = m_find.find();
+ if ( res == KFind.NoMatch ) {
+ <Move to the next text fragment, honoring the FindBackwards setting for the direction>
+ }
+ }
+ if ( res == KFind.NoMatch ) // i.e. at end
+ <Call either m_find.displayFinalDialog(); delete m_find; m_find = null;
+ or if ( m_find.shouldRestart() ) { reinit (w/o FromCursor) and call slotFindNext(); }
+ else { m_find.closeFindNextDialog(); }>
+ }
+ </pre>
+ Don't forget to delete m_find in the destructor of your class,
+ unless you gave it a parent widget on construction.
+ This implementation allows to have a "Find Next" action, which resumes the
+ search, even if the user closed the "Find Next" dialog.
+ A "Find Previous" action can simply switch temporarily the value of
+ FindBackwards and call slotFindNext() - and reset the value afterwards.
+ See {@link KFindSignals} for signals emitted by KFind
+ @author S.R.Haque <srhaque@iee.org>, David Faure <faure@kde.org>,
+ Arend van Beelen jr. <arend@auton.nl>
+
+ @short @brief A generic implementation of the "find" function.
+
+*/
+public class KFind extends QObject {
+ protected KFind(Class dummy){super((Class) null);}
+ public static final int NoMatch = 0;
+ public static final int Match = 1;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Only use this constructor if you don't use KFindDialog, or if
+ you use it as a modal dialog.
+ @short Only use this constructor if you don't use KFindDialog, or if you use it as a modal dialog.
+ */
+ public KFind(String pattern, long options, QWidget parent) {
+ super((Class) null);
+ newKFind(pattern,options,parent);
+ }
+ private native void newKFind(String pattern, long options, QWidget parent);
+ /**
+ @return true if the application must supply a new text fragment
+ It also means the last call returned "NoMatch". But by storing this here
+ the application doesn't have to store it in a member variable (between
+ calls to slotFindNext()).
+
+ @short
+ */
+ public native boolean needData();
+ /**
+ Call this when needData returns true, before calling find().
+ @param data the text fragment (line)
+ @param startPos if set, the index at which the search should start.
+ This is only necessary for the very first call to setData usually,
+ for the 'find in selection' feature. A value of -1 (the default value)
+ means "process all the data", i.e. either 0 or data.length()-1 depending
+ on FindBackwards.
+ @short Call this when needData returns true, before calling find().
+ */
+ public native void setData(String data, int startPos);
+ public native void setData(String data);
+ /**
+ Call this when needData returns true, before calling find(). The use of
+ ID's is especially useful if you're using the FindIncremental option.
+ @param id the id of the text fragment
+ @param data the text fragment (line)
+ @param startPos if set, the index at which the search should start.
+ This is only necessary for the very first call to setData usually,
+ for the 'find in selection' feature. A value of -1 (the default value)
+ means "process all the data", i.e. either 0 or data.length()-1 depending
+ on FindBackwards.
+ @short Call this when needData returns true, before calling find().
+ */
+ public native void setData(int id, String data, int startPos);
+ public native void setData(int id, String data);
+ /**
+ Walk the text fragment (e.g. text-processor line, kspread cell) looking for matches.
+ For each match, emits the highlight() signal and displays the find-again dialog
+ proceeding.
+ @short Walk the text fragment (e.
+ */
+ public native int find();
+ /**
+ Return the current options.
+ Warning: this is usually the same value as the one passed to the constructor,
+ but options might change _during_ the replace operation:
+ e.g. the "All" button resets the PromptOnReplace flag.
+ @short Return the current options.
+ */
+ public native long options();
+ /**
+ Set new options. Usually this is used for setting or clearing the
+ FindBackwards options.
+ @short Set new options.
+ */
+ public native void setOptions(long options);
+ /**
+ @return the pattern we're currently looking for
+
+ @short
+ */
+ public native String pattern();
+ /**
+ Change the pattern we're looking for
+ @short Change the pattern we're looking for
+ */
+ public native void setPattern(String pattern);
+ /**
+ Return the number of matches found (i.e. the number of times
+ the highlight signal was emitted).
+ If 0, can be used in a dialog box to tell the user "no match was found".
+ The final dialog does so already, unless you used setDisplayFinalDialog(false).
+ @short Return the number of matches found (i.
+ */
+ public native int numMatches();
+ /**
+ Call this to reset the numMatches count
+ (and the numReplacements count for a KReplace).
+ Can be useful if reusing the same KReplace for different operations,
+ or when restarting from the beginning of the document.
+ @short Call this to reset the numMatches count (and the numReplacements count for a KReplace).
+ */
+ public native void resetCounts();
+ /**
+ Virtual method, which allows applications to add extra checks for
+ validating a candidate match. It's only necessary to reimplement this
+ if the find dialog extension has been used to provide additional
+ criterias.
+ @param text The current text fragment
+ @param index The starting index where the candidate match was found
+ @param matchedlength The length of the candidate match
+ @short Virtual method, which allows applications to add extra checks for validating a candidate match.
+ */
+ public native boolean validateMatch(String text, int index, int matchedlength);
+ /**
+ Returns true if we should restart the search from scratch.
+ Can ask the user, or return false (if we already searched the whole document).
+ @param forceAsking set to true if the user modified the document during the
+ search. In that case it makes sense to restart the search again.
+ @param showNumMatches set to true if the dialog should show the number of
+ matches. Set to false if the application provides a "find previous" action,
+ in which case the match count will be erroneous when hitting the end,
+ and we could even be hitting the beginning of the document (so not all
+ matches have even been seen).
+ @short Returns true if we should restart the search from scratch.
+ */
+ public native boolean shouldRestart(boolean forceAsking, boolean showNumMatches);
+ public native boolean shouldRestart(boolean forceAsking);
+ public native boolean shouldRestart();
+ /**
+ Displays the final dialog saying "no match was found", if that was the case.
+ Call either this or shouldRestart().
+ @short Displays the final dialog saying "no match was found", if that was the case.
+ */
+ public native void displayFinalDialog();
+ /**
+ Return (or create) the dialog that shows the "find next?" prompt.
+ Usually you don't need to call this.
+ One case where it can be useful, is when the user selects the "Find"
+ menu item while a find operation is under way. In that case, the
+ program may want to call setActiveWindow() on that dialog.
+ @short Return (or create) the dialog that shows the "find next?" prompt.
+ */
+ public native KDialogBase findNextDialog(boolean create);
+ public native KDialogBase findNextDialog();
+ /**
+ Close the "find next?" dialog. The application should do this when
+ the last match was hit. If the application deletes the KFind, then
+ "find previous" won't be possible anymore.
+ IMPORTANT: you should also call this if you are using a non-modal
+ find dialog, to tell KFind not to pop up its own dialog.
+ @short Close the "find next?" dialog.
+ */
+ public native void closeFindNextDialog();
+ /**
+ @return the current matching index ( or -1 ).
+ Same as the matchingIndex parameter passed to highlight.
+ You usually don't need to use this, except maybe when updating the current data,
+ so you need to call setData( newData, index() ).
+
+ @short
+ */
+ public native int index();
+ /**
+ Search the given string, and returns whether a match was found. If one is,
+ the length of the string matched is also returned.
+ A performance optimised version of the function is provided for use
+ with regular expressions.
+ @param text The string to search.
+ @param pattern The pattern to look for.
+ @param index The starting index into the string.
+ @param options The options to use.
+ @param matchedlength The length of the string that was matched
+ @return The index at which a match was found, or -1 if no match was found.
+
+ @short Search the given string, and returns whether a match was found.
+ */
+ public static native int find(String text, String pattern, int index, long options, int[] matchedlength);
+ public static native int find(String text, QRegExp pattern, int index, long options, int[] matchedlength);
+ protected native QWidget parentWidget();
+ protected native QWidget dialogsParent();
+ protected native void slotFindNext();
+ protected native void slotDialogClosed();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFindDialog.java b/kdejava/koala/org/kde/koala/KFindDialog.java
new file mode 100644
index 00000000..f84e6a04
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFindDialog.java
@@ -0,0 +1,241 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ @brief A generic "find" dialog.
+ <b></b>etail:
+ This widget inherits from KDialogBase and implements
+ the following additional functionalities: a find string
+ object and an area for a user-defined widget to extend the dialog.
+ <b></b>xample:
+ To use the basic modal find dialog, and then run the search:
+ <pre>
+ KFindDialog dlg(....)
+ if ( dlg.exec() != QDialog.Accepted )
+ return;
+ // proceed with KFind from here
+ </pre>
+ To create a non-modal find dialog:
+ <pre>
+ if ( m_findDia )
+ KWin.setActiveWindow( m_findDia.winId() );
+ else
+ {
+ m_findDia = new KFindDialog(false,...);
+ connect( m_findDia, SIGNAL("okClicked()"), this, SLOT("findTextNext()") );
+ }
+ </pre>
+ Don't forget to delete and reset m_findDia when closed.
+ (But do NOT delete your KFind object at that point, it's needed for "Find Next")
+ To use your own extensions: see findExtension().
+ @author S.R.Haque <srhaque@iee.org>
+
+ @short @brief A generic "find" dialog.
+
+*/
+public class KFindDialog extends KDialogBase {
+ protected KFindDialog(Class dummy){super((Class) null);}
+ public static final int WholeWordsOnly = 1;
+ public static final int FromCursor = 2;
+ public static final int SelectedText = 4;
+ public static final int CaseSensitive = 8;
+ public static final int FindBackwards = 16;
+ public static final int RegularExpression = 32;
+ public static final int FindIncremental = 64;
+ public static final int MinimumUserOption = 65536;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a modal find dialog
+ @param parent The parent object of this widget.
+ @param name The name of this widget.
+ @param options A bitfield of the Options to be checked.
+ @param findStrings The find history, see findHistory()
+ @param hasSelection Whether a selection exists
+ @short Construct a modal find dialog
+ */
+ public KFindDialog(QWidget parent, String name, long options, String[] findStrings, boolean hasSelection) {
+ super((Class) null);
+ newKFindDialog(parent,name,options,findStrings,hasSelection);
+ }
+ private native void newKFindDialog(QWidget parent, String name, long options, String[] findStrings, boolean hasSelection);
+ public KFindDialog(QWidget parent, String name, long options, String[] findStrings) {
+ super((Class) null);
+ newKFindDialog(parent,name,options,findStrings);
+ }
+ private native void newKFindDialog(QWidget parent, String name, long options, String[] findStrings);
+ public KFindDialog(QWidget parent, String name, long options) {
+ super((Class) null);
+ newKFindDialog(parent,name,options);
+ }
+ private native void newKFindDialog(QWidget parent, String name, long options);
+ public KFindDialog(QWidget parent, String name) {
+ super((Class) null);
+ newKFindDialog(parent,name);
+ }
+ private native void newKFindDialog(QWidget parent, String name);
+ public KFindDialog(QWidget parent) {
+ super((Class) null);
+ newKFindDialog(parent);
+ }
+ private native void newKFindDialog(QWidget parent);
+ public KFindDialog() {
+ super((Class) null);
+ newKFindDialog();
+ }
+ private native void newKFindDialog();
+ /**
+ Construct a non-modal find dialog
+ @param modal set to false to get a non-modal dialog
+ @param parent The parent object of this widget.
+ @param name The name of this widget.
+ @param options A bitfield of the Options to be checked.
+ @param findStrings The find history, see findHistory()
+ @param hasSelection Whether a selection exists
+ @short Construct a non-modal find dialog
+ */
+ public KFindDialog(boolean modal, QWidget parent, String name, long options, String[] findStrings, boolean hasSelection) {
+ super((Class) null);
+ newKFindDialog(modal,parent,name,options,findStrings,hasSelection);
+ }
+ private native void newKFindDialog(boolean modal, QWidget parent, String name, long options, String[] findStrings, boolean hasSelection);
+ public KFindDialog(boolean modal, QWidget parent, String name, long options, String[] findStrings) {
+ super((Class) null);
+ newKFindDialog(modal,parent,name,options,findStrings);
+ }
+ private native void newKFindDialog(boolean modal, QWidget parent, String name, long options, String[] findStrings);
+ public KFindDialog(boolean modal, QWidget parent, String name, long options) {
+ super((Class) null);
+ newKFindDialog(modal,parent,name,options);
+ }
+ private native void newKFindDialog(boolean modal, QWidget parent, String name, long options);
+ public KFindDialog(boolean modal, QWidget parent, String name) {
+ super((Class) null);
+ newKFindDialog(modal,parent,name);
+ }
+ private native void newKFindDialog(boolean modal, QWidget parent, String name);
+ public KFindDialog(boolean modal, QWidget parent) {
+ super((Class) null);
+ newKFindDialog(modal,parent);
+ }
+ private native void newKFindDialog(boolean modal, QWidget parent);
+ public KFindDialog(boolean modal) {
+ super((Class) null);
+ newKFindDialog(modal);
+ }
+ private native void newKFindDialog(boolean modal);
+ /**
+ Provide the list of <code>strings</code> to be displayed as the history
+ of find strings. <code>strings</code> might get truncated if it is
+ too long.
+ @param history The find history.
+ @short Provide the list of <code>strings</code> to be displayed as the history of find strings.
+ @see #findHistory
+ */
+ public native void setFindHistory(String[] history);
+ /**
+ Returns the list of history items.
+ @short Returns the list of history items.
+ @see #setFindHistory
+ */
+ public native ArrayList findHistory();
+ /**
+ Enable/disable the 'search in selection' option, depending
+ on whether there actually is a selection.
+ @param hasSelection true if a selection exists
+ @short Enable/disable the 'search in selection' option, depending on whether there actually is a selection.
+ */
+ public native void setHasSelection(boolean hasSelection);
+ /**
+ Hide/show the 'from cursor' option, depending
+ on whether the application implements a cursor.
+ @param hasCursor true if the application features a cursor
+ This is assumed to be the case by default.
+ @short Hide/show the 'from cursor' option, depending on whether the application implements a cursor.
+ */
+ public native void setHasCursor(boolean hasCursor);
+ /**
+ Enable/disable the 'Find backwards' option, depending
+ on whether the application supports it.
+ @param supports true if the application supports backwards find
+ This is assumed to be the case by default.
+ @short Enable/disable the 'Find backwards' option, depending on whether the application supports it.
+ */
+ public native void setSupportsBackwardsFind(boolean supports);
+ /**
+ Enable/disable the 'Case sensitive' option, depending
+ on whether the application supports it.
+ @param supports true if the application supports case sensitive find
+ This is assumed to be the case by default.
+ @short Enable/disable the 'Case sensitive' option, depending on whether the application supports it.
+ */
+ public native void setSupportsCaseSensitiveFind(boolean supports);
+ /**
+ Enable/disable the 'Whole words only' option, depending
+ on whether the application supports it.
+ @param supports true if the application supports whole words only find
+ This is assumed to be the case by default.
+ @short Enable/disable the 'Whole words only' option, depending on whether the application supports it.
+ */
+ public native void setSupportsWholeWordsFind(boolean supports);
+ /**
+ Enable/disable the 'Regular expression' option, depending
+ on whether the application supports it.
+ @param supports true if the application supports regular expression find
+ This is assumed to be the case by default.
+ @short Enable/disable the 'Regular expression' option, depending on whether the application supports it.
+ */
+ public native void setSupportsRegularExpressionFind(boolean supports);
+ /**
+ Set the options which are checked.
+ @param options The setting of the Options.
+ @short Set the options which are checked.
+ */
+ public native void setOptions(long options);
+ /**
+ Returns the state of the options. Disabled options may be returned in
+ an indeterminate state.
+ @short Returns the state of the options.
+ @see #setOptions
+ */
+ public native long options();
+ /**
+ Returns the pattern to find.
+ @short Returns the pattern to find.
+ */
+ public native String pattern();
+ /**
+ Sets the pattern to find
+ @short Sets the pattern to find
+ */
+ public native void setPattern(String pattern);
+ /**
+ Returns an empty widget which the user may fill with additional UI
+ elements as required. The widget occupies the width of the dialog,
+ and is positioned immediately below the regular expression support
+ widgets for the pattern string.
+ @short Returns an empty widget which the user may fill with additional UI elements as required.
+ */
+ public native QWidget findExtension();
+ public native void showEvent(QShowEvent arg1);
+ protected native void slotOk();
+ protected native void slotSelectedTextToggled(boolean arg1);
+ protected native void showPatterns();
+ protected native void showPlaceholders();
+ protected native void textSearchChanged(String arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFindSignals.java b/kdejava/koala/org/kde/koala/KFindSignals.java
new file mode 100644
index 00000000..6e289b38
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFindSignals.java
@@ -0,0 +1,50 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QRegExp;
+import org.kde.qt.QWidget;
+
+public interface KFindSignals {
+ /**
+ Connect to this signal to implement highlighting of found text during the find
+ operation.
+ If you've set data with setData(id, text), use the signal highlight(id,
+ matchingIndex, matchedLength)
+ WARNING: If you're using the FindIncremental option, the text argument
+ passed by this signal is not necessarily the data last set through
+ setData(), but can also be an earlier set data block.
+ @short Connect to this signal to implement highlighting of found text during the find operation.
+ @see #setData
+ */
+ void highlight(String text, int matchingIndex, int matchedLength);
+ /**
+ Connect to this signal to implement highlighting of found text during the find
+ operation.
+ Use this signal if you've set your data with setData(id, text), otherwise
+ use the signal with highlight(text, matchingIndex, matchedLength).
+ WARNING: If you're using the FindIncremental option, the id argument
+ passed by this signal is not necessarily the id of the data last set
+ through setData(), but can also be of an earlier set data block.
+ @short Connect to this signal to implement highlighting of found text during the find operation.
+ @see #setData
+ */
+ void highlight(int id, int matchingIndex, int matchedLength);
+ void findNext();
+ /**
+ Emitted when the options have changed.
+ This can happen e.g. with "Replace All", or if our 'find next' dialog
+ gets a "find previous" one day.
+ @short Emitted when the options have changed.
+ */
+ void optionsChanged();
+ /**
+ Emitted when the 'find next' dialog is being closed.
+ Some apps might want to remove the highlighted text when this happens.
+ Apps without support for "Find Next" can also do m_find.deleteLater()
+ to terminate the find operation.
+ @short Emitted when the 'find next' dialog is being closed.
+ */
+ void dialogClosed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFloatValidator.java b/kdejava/koala/org/kde/koala/KFloatValidator.java
new file mode 100644
index 00000000..029f9eff
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFloatValidator.java
@@ -0,0 +1,110 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QValidator;
+
+/**
+
+ \brief QValidator for floating point entry (Obsolete)
+ Extends the QValidator class to properly validate double numeric data.
+ This can be used by QLineEdit or subclass to provide validated
+ text entry.
+ @author Glen Parker <glenebob@nwlink.com>
+
+ @version 0.0.1
+
+ @short \brief QValidator for floating point entry (Obsolete)
+
+*/
+public class KFloatValidator extends QValidator {
+ protected KFloatValidator(Class dummy){super((Class) null);}
+ /**
+ Constructor.
+ @short Constructor.
+ */
+ public KFloatValidator(QWidget parent, String name) {
+ super((Class) null);
+ newKFloatValidator(parent,name);
+ }
+ private native void newKFloatValidator(QWidget parent, String name);
+ public KFloatValidator(QWidget parent) {
+ super((Class) null);
+ newKFloatValidator(parent);
+ }
+ private native void newKFloatValidator(QWidget parent);
+ /**
+ Constructor. Also sets the minimum and maximum values.
+ @short Constructor.
+ */
+ public KFloatValidator(double bottom, double top, QWidget parent, String name) {
+ super((Class) null);
+ newKFloatValidator(bottom,top,parent,name);
+ }
+ private native void newKFloatValidator(double bottom, double top, QWidget parent, String name);
+ public KFloatValidator(double bottom, double top, QWidget parent) {
+ super((Class) null);
+ newKFloatValidator(bottom,top,parent);
+ }
+ private native void newKFloatValidator(double bottom, double top, QWidget parent);
+ /**
+ Constructor. Sets the validator to be locale aware if <code>localeAware</code> is true.
+ @short Constructor.
+ */
+ public KFloatValidator(double bottom, double top, boolean localeAware, QWidget parent, String name) {
+ super((Class) null);
+ newKFloatValidator(bottom,top,localeAware,parent,name);
+ }
+ private native void newKFloatValidator(double bottom, double top, boolean localeAware, QWidget parent, String name);
+ public KFloatValidator(double bottom, double top, boolean localeAware, QWidget parent) {
+ super((Class) null);
+ newKFloatValidator(bottom,top,localeAware,parent);
+ }
+ private native void newKFloatValidator(double bottom, double top, boolean localeAware, QWidget parent);
+ /**
+ Validates the text, and return the result. Does not modify the parameters.
+ @short Validates the text, and return the result.
+ */
+ public native int validate(StringBuffer arg1, int[] arg2);
+ /**
+ Fixes the text if possible, providing a valid string. The parameter may be modified.
+ @short Fixes the text if possible, providing a valid string.
+ */
+ public native void fixup(StringBuffer arg1);
+ /**
+ Sets the minimum and maximum value allowed.
+ @short Sets the minimum and maximum value allowed.
+ */
+ public native void setRange(double bottom, double top);
+ /**
+ Returns the current minimum value allowed.
+ @short Returns the current minimum value allowed.
+ */
+ public native double bottom();
+ /**
+ Returns the current maximum value allowed.
+ @short Returns the current maximum value allowed.
+ */
+ public native double top();
+ /**
+ Sets the validator to be locale aware if <code>is</code> true. In this case, the
+ character KLocale.decimalSymbol() from the global locale is recognized
+ as decimal separator.
+ @short Sets the validator to be locale aware if <code>is</code> true.
+ */
+ public native void setAcceptLocalizedNumbers(boolean b);
+ /**
+ Returns true if the validator is locale aware.
+ @short Returns true if the validator is locale aware.
+ @see #setAcceptLocalizedNumbers#
+ */
+ public native boolean acceptLocalizedNumbers();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFolderType.java b/kdejava/koala/org/kde/koala/KFolderType.java
new file mode 100644
index 00000000..ef9ce910
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFolderType.java
@@ -0,0 +1,43 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+
+/**
+
+ Folder mime type. Handles locked folders, for instance.
+ @short Mimetype for a folder (inode/directory).
+
+*/
+public class KFolderType extends KMimeType {
+ protected KFolderType(Class dummy){super((Class) null);}
+ /**
+ Construct a folder mimetype and take all information from a desktop file.
+ @param config the desktop configuration file that describes the mime type
+ @short Construct a folder mimetype and take all information from a desktop file.
+ */
+ public KFolderType(KDesktopFile config) {
+ super((Class) null);
+ newKFolderType(config);
+ }
+ private native void newKFolderType(KDesktopFile config);
+ /** \internal @short \internal
+ */
+ public KFolderType(QDataStream _str, int offset) {
+ super((Class) null);
+ newKFolderType(_str,offset);
+ }
+ private native void newKFolderType(QDataStream _str, int offset);
+ public native String icon(String _url, boolean _is_local);
+ public native String icon(KURL _url, boolean _is_local);
+ public native String comment(String _url, boolean _is_local);
+ public native String comment(KURL _url, boolean _is_local);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFontAction.java b/kdejava/koala/org/kde/koala/KFontAction.java
new file mode 100644
index 00000000..e23f0ecc
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFontAction.java
@@ -0,0 +1,172 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+
+/**
+*/
+public class KFontAction extends KSelectAction {
+ protected KFontAction(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KFontAction(String text, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKFontAction(text,cut,parent,name);
+ }
+ private native void newKFontAction(String text, KShortcut cut, QObject parent, String name);
+ public KFontAction(String text, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKFontAction(text,cut,parent);
+ }
+ private native void newKFontAction(String text, KShortcut cut, QObject parent);
+ public KFontAction(String text, KShortcut cut) {
+ super((Class) null);
+ newKFontAction(text,cut);
+ }
+ private native void newKFontAction(String text, KShortcut cut);
+ public KFontAction(String text) {
+ super((Class) null);
+ newKFontAction(text);
+ }
+ private native void newKFontAction(String text);
+ public KFontAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKFontAction(text,cut,receiver,slot,parent,name);
+ }
+ private native void newKFontAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KFontAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKFontAction(text,cut,receiver,slot,parent);
+ }
+ private native void newKFontAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent);
+ public KFontAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKFontAction(text,pix,cut,parent,name);
+ }
+ private native void newKFontAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name);
+ public KFontAction(String text, QIconSet pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKFontAction(text,pix,cut,parent);
+ }
+ private native void newKFontAction(String text, QIconSet pix, KShortcut cut, QObject parent);
+ public KFontAction(String text, QIconSet pix, KShortcut cut) {
+ super((Class) null);
+ newKFontAction(text,pix,cut);
+ }
+ private native void newKFontAction(String text, QIconSet pix, KShortcut cut);
+ public KFontAction(String text, QIconSet pix) {
+ super((Class) null);
+ newKFontAction(text,pix);
+ }
+ private native void newKFontAction(String text, QIconSet pix);
+ public KFontAction(String text, String pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKFontAction(text,pix,cut,parent,name);
+ }
+ private native void newKFontAction(String text, String pix, KShortcut cut, QObject parent, String name);
+ public KFontAction(String text, String pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKFontAction(text,pix,cut,parent);
+ }
+ private native void newKFontAction(String text, String pix, KShortcut cut, QObject parent);
+ public KFontAction(String text, String pix, KShortcut cut) {
+ super((Class) null);
+ newKFontAction(text,pix,cut);
+ }
+ private native void newKFontAction(String text, String pix, KShortcut cut);
+ public KFontAction(String text, String pix) {
+ super((Class) null);
+ newKFontAction(text,pix);
+ }
+ private native void newKFontAction(String text, String pix);
+ public KFontAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKFontAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKFontAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KFontAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKFontAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKFontAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent);
+ public KFontAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKFontAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKFontAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KFontAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKFontAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKFontAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent);
+ public KFontAction(int fontListCriteria, String text, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKFontAction(fontListCriteria,text,cut,parent,name);
+ }
+ private native void newKFontAction(int fontListCriteria, String text, KShortcut cut, QObject parent, String name);
+ public KFontAction(int fontListCriteria, String text, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKFontAction(fontListCriteria,text,cut,parent);
+ }
+ private native void newKFontAction(int fontListCriteria, String text, KShortcut cut, QObject parent);
+ public KFontAction(int fontListCriteria, String text, KShortcut cut) {
+ super((Class) null);
+ newKFontAction(fontListCriteria,text,cut);
+ }
+ private native void newKFontAction(int fontListCriteria, String text, KShortcut cut);
+ public KFontAction(int fontListCriteria, String text) {
+ super((Class) null);
+ newKFontAction(fontListCriteria,text);
+ }
+ private native void newKFontAction(int fontListCriteria, String text);
+ public KFontAction(int fontListCriteria, String text, String pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKFontAction(fontListCriteria,text,pix,cut,parent,name);
+ }
+ private native void newKFontAction(int fontListCriteria, String text, String pix, KShortcut cut, QObject parent, String name);
+ public KFontAction(int fontListCriteria, String text, String pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKFontAction(fontListCriteria,text,pix,cut,parent);
+ }
+ private native void newKFontAction(int fontListCriteria, String text, String pix, KShortcut cut, QObject parent);
+ public KFontAction(int fontListCriteria, String text, String pix, KShortcut cut) {
+ super((Class) null);
+ newKFontAction(fontListCriteria,text,pix,cut);
+ }
+ private native void newKFontAction(int fontListCriteria, String text, String pix, KShortcut cut);
+ public KFontAction(int fontListCriteria, String text, String pix) {
+ super((Class) null);
+ newKFontAction(fontListCriteria,text,pix);
+ }
+ private native void newKFontAction(int fontListCriteria, String text, String pix);
+ public KFontAction(QObject parent, String name) {
+ super((Class) null);
+ newKFontAction(parent,name);
+ }
+ private native void newKFontAction(QObject parent, String name);
+ public KFontAction(QObject parent) {
+ super((Class) null);
+ newKFontAction(parent);
+ }
+ private native void newKFontAction(QObject parent);
+ public KFontAction() {
+ super((Class) null);
+ newKFontAction();
+ }
+ private native void newKFontAction();
+ public native String font();
+ public native int plug(QWidget arg1, int index);
+ public native int plug(QWidget arg1);
+ public native void setFont(String family);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFontChooser.java b/kdejava/koala/org/kde/koala/KFontChooser.java
new file mode 100644
index 00000000..2389e668
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFontChooser.java
@@ -0,0 +1,300 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ While KFontChooser as an ordinary widget can be embedded in
+ custom dialogs and therefore is very flexible, in most cases
+ it is preferable to use the convenience functions in
+ KFontDialog.
+ \image html kfontchooser.png "KDE Font Chooser"
+ See {@link KFontChooserSignals} for signals emitted by KFontChooser
+ @author Preston Brown <pbrown@kde.org>, Bernd Wuebben <wuebben@kde.org>
+
+ @version $Id$
+
+ @short A font selection widget.
+
+*/
+public class KFontChooser extends QWidget {
+ protected KFontChooser(Class dummy){super((Class) null);}
+ /**
+
+ <li>
+ <code>FamilyList</code> - Identifies the family (leftmost) list.
+ </li>
+
+ <li>
+ <code>StyleList</code> - Identifies the style (center) list.
+ </li>
+
+ <li>
+ <code>SizeList</code> - Identifies the size (rightmost) list.
+
+ </li> @short
+ */
+ public static final int FamilyList = 0x01;
+ public static final int StyleList = 0x02;
+ public static final int SizeList = 0x04;
+
+ /**
+
+ <li>
+ <code>FontDiffFamily</code> - Identifies a requested change in the font family.
+ </li>
+
+ <li>
+ <code>FontDiffStyle</code> - Identifies a requested change in the font style.
+ </li>
+
+ <li>
+ <code>FontDiffSize</code> - Identifies a requested change in the font size.
+
+ </li> @short
+ */
+ public static final int FontDiffFamily = 0x01;
+ public static final int FontDiffStyle = 0x02;
+ public static final int FontDiffSize = 0x04;
+
+ /**
+ The selection criteria for the font families shown in the dialog.
+
+ <li>
+ <code>FixedWidthFont</code> when included only fixed-width fonts are returned.
+ The fonts where the width of every character is equal.
+ </li>
+
+ <li>
+ <code>ScalableFont</code> when included only scalable fonts are returned;
+ certain configurations allow bitmap fonts to remain unscaled and
+ thus these fonts have limited number of sizes.
+ </li>
+
+ <li>
+ <code>SmoothScalableFont</code> when included only return smooth scalable fonts.
+ this will return only non-bitmap fonts which are scalable to any size requested.
+ Setting this option to true will mean the "scalable" flag is irrelavant.
+
+ </li> @short The selection criteria for the font families shown in the dialog.
+ */
+ public static final int FixedWidthFonts = 0x01;
+ public static final int ScalableFonts = 0x02;
+ public static final int SmoothScalableFonts = 0x04;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a font picker widget.
+ It normally comes up with all font families present on the system; the
+ getFont method below does allow some more fine-tuning of the selection of fonts
+ that will be displayed in the dialog.
+ <p>Consider the following code snippet;
+ <pre>
+ ArrayList list;
+ KFontChooser.getFontList(list,SmoothScalableFonts);
+ KFontChooser chooseFont = new KFontChooser(0, "FontList", false, list);
+ </pre>
+ <p>
+ The above creates a font chooser dialog with only SmoothScaleble fonts.
+ @param parent The parent widget.
+ @param name The widget name.
+ @param onlyFixed Only display fonts which have fixed-width
+ character sizes.
+ @param fontList A list of fonts to display, in XLFD format. If
+ no list is formatted, the internal KDE font list is used.
+ If that has not been created, X is queried, and all fonts
+ available on the system are displayed.
+ @param diff Display the difference version dialog.
+ See KFontDialog.getFontDiff().
+ @param makeFrame Draws a frame with titles around the contents.
+ @param visibleListSize The minimum number of visible entries in the
+ fontlists.
+ @param sizeIsRelativeState If not zero the widget will show a
+ checkbox where the user may choose whether the font size
+ is to be interpreted as relative size.
+ Initial state of this checkbox will be set according to
+ sizeIsRelativeState, user choice may be retrieved by
+ calling sizeIsRelative().
+ @short Constructs a font picker widget.
+ */
+ public KFontChooser(QWidget parent, String name, boolean onlyFixed, String[] fontList, boolean makeFrame, int visibleListSize, boolean diff, int sizeIsRelativeState) {
+ super((Class) null);
+ newKFontChooser(parent,name,onlyFixed,fontList,makeFrame,visibleListSize,diff,sizeIsRelativeState);
+ }
+ private native void newKFontChooser(QWidget parent, String name, boolean onlyFixed, String[] fontList, boolean makeFrame, int visibleListSize, boolean diff, int sizeIsRelativeState);
+ public KFontChooser(QWidget parent, String name, boolean onlyFixed, String[] fontList, boolean makeFrame, int visibleListSize, boolean diff) {
+ super((Class) null);
+ newKFontChooser(parent,name,onlyFixed,fontList,makeFrame,visibleListSize,diff);
+ }
+ private native void newKFontChooser(QWidget parent, String name, boolean onlyFixed, String[] fontList, boolean makeFrame, int visibleListSize, boolean diff);
+ public KFontChooser(QWidget parent, String name, boolean onlyFixed, String[] fontList, boolean makeFrame, int visibleListSize) {
+ super((Class) null);
+ newKFontChooser(parent,name,onlyFixed,fontList,makeFrame,visibleListSize);
+ }
+ private native void newKFontChooser(QWidget parent, String name, boolean onlyFixed, String[] fontList, boolean makeFrame, int visibleListSize);
+ public KFontChooser(QWidget parent, String name, boolean onlyFixed, String[] fontList, boolean makeFrame) {
+ super((Class) null);
+ newKFontChooser(parent,name,onlyFixed,fontList,makeFrame);
+ }
+ private native void newKFontChooser(QWidget parent, String name, boolean onlyFixed, String[] fontList, boolean makeFrame);
+ public KFontChooser(QWidget parent, String name, boolean onlyFixed, String[] fontList) {
+ super((Class) null);
+ newKFontChooser(parent,name,onlyFixed,fontList);
+ }
+ private native void newKFontChooser(QWidget parent, String name, boolean onlyFixed, String[] fontList);
+ public KFontChooser(QWidget parent, String name, boolean onlyFixed) {
+ super((Class) null);
+ newKFontChooser(parent,name,onlyFixed);
+ }
+ private native void newKFontChooser(QWidget parent, String name, boolean onlyFixed);
+ public KFontChooser(QWidget parent, String name) {
+ super((Class) null);
+ newKFontChooser(parent,name);
+ }
+ private native void newKFontChooser(QWidget parent, String name);
+ public KFontChooser(QWidget parent) {
+ super((Class) null);
+ newKFontChooser(parent);
+ }
+ private native void newKFontChooser(QWidget parent);
+ public KFontChooser() {
+ super((Class) null);
+ newKFontChooser();
+ }
+ private native void newKFontChooser();
+ /**
+ Enables or disable a font column in the chooser.
+ Use this
+ function if your application does not need or supports all font
+ properties.
+ @param column Specify the columns. An or'ed combination of
+ <code>FamilyList</code>, <code>StyleList</code> and <code>SizeList</code> is possible.
+ @param state If <code>false</code> the columns are disabled.
+ @short Enables or disable a font column in the chooser.
+ */
+ public native void enableColumn(int column, boolean state);
+ /**
+ Sets the currently selected font in the chooser.
+ @param font The font to select.
+ @param onlyFixed Readjust the font list to display only fixed
+ width fonts if <code>true</code>, or vice-versa.
+ @short Sets the currently selected font in the chooser.
+ */
+ public native void setFont(QFont font, boolean onlyFixed);
+ public native void setFont(QFont font);
+ /**
+ @return The bitmask corresponding to the attributes the user
+ wishes to change.
+
+ @short
+ */
+ public native int fontDiffFlags();
+ /**
+ @return The currently selected font in the chooser.
+
+ @short
+ */
+ public native QFont font();
+ /**
+ Sets the color to use in the preview.
+ @short Sets the color to use in the preview.
+ */
+ public native void setColor(QColor col);
+ /**
+ @return The color currently used in the preview (default: the text
+ color of the active color group)
+
+ @short
+ */
+ public native QColor color();
+ /**
+ Sets the background color to use in the preview.
+ @short Sets the background color to use in the preview.
+ */
+ public native void setBackgroundColor(QColor col);
+ /**
+ @return The background color currently used in the preview (default:
+ the base color of the active colorgroup)
+
+ @short
+ */
+ public native QColor backgroundColor();
+ /**
+ Sets the state of the checkbox indicating whether the font size
+ is to be interpreted as relative size.
+ NOTE: If parameter sizeIsRelative was not set in the constructor
+ of the widget this setting will be ignored.
+ @short Sets the state of the checkbox indicating whether the font size is to be interpreted as relative size.
+ */
+ public native void setSizeIsRelative(int relative);
+ /**
+ @return Whether the font size is to be interpreted as relative size
+ (default: QButton:Off)
+
+ @short
+ */
+ public native int sizeIsRelative();
+ /**
+ @return The current text in the sample text input area.
+
+ @short
+ */
+ public native String sampleText();
+ /**
+ Sets the sample text.
+ Normally you should not change this
+ text, but it can be better to do this if the default text is
+ too large for the edit area when using the default font of your
+ application.
+ @param text The new sample text. The current will be removed.
+ @short Sets the sample text.
+ */
+ public native void setSampleText(String text);
+ /**
+ Shows or hides the sample text box.
+ @param visible Set it to true to show the box, to false to hide it.
+ @short Shows or hides the sample text box.
+ */
+ public native void setSampleBoxVisible(boolean visible);
+ /**
+ Reimplemented for internal reasons.
+ @short Reimplemented for internal reasons.
+ */
+ public native QSize sizeHint();
+ /**
+ Converts a QFont into the corresponding X Logical Font
+ Description (XLFD).
+ @param theFont The font to convert.
+ @return A string representing the given font in XLFD format.
+
+ @short Converts a QFont into the corresponding X Logical Font Description (XLFD).
+ */
+ public static native String getXLFD(QFont theFont);
+ /**
+ Creates a list of font strings.
+ @param list The list is returned here.
+ @param fontListCriteria should contain all the restrictions for font selection as OR-ed values
+ @short Creates a list of font strings.
+ @see KFontChooser#FontListCriteria
+ @see #for
+ @see #the
+ @see #individual
+ @see #values
+ */
+ public static native void getFontList(String[] list, int fontListCriteria);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFontChooserSignals.java b/kdejava/koala/org/kde/koala/KFontChooserSignals.java
new file mode 100644
index 00000000..c404ce5f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFontChooserSignals.java
@@ -0,0 +1,17 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+
+public interface KFontChooserSignals {
+ /**
+ Emitted whenever the selected font changes.
+ @short Emitted whenever the selected font changes.
+ */
+ void fontSelected(QFont font);
+}
diff --git a/kdejava/koala/org/kde/koala/KFontCombo.java b/kdejava/koala/org/kde/koala/KFontCombo.java
new file mode 100644
index 00000000..d25f2093
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFontCombo.java
@@ -0,0 +1,165 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ The items are painted using the respective font itself, so the user
+ can easily choose a font based on its look. This can be turned off
+ globally if the user wishes so.
+ @author Malte Starostik <malte@kde.org>
+
+ @short A combobox that lists the available fonts.
+
+*/
+public class KFontCombo extends KComboBox {
+ protected KFontCombo(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor
+ @param parent The parent widget
+ @param name The object name for the widget
+ @short Constructor
+ */
+ public KFontCombo(QWidget parent, String name) {
+ super((Class) null);
+ newKFontCombo(parent,name);
+ }
+ private native void newKFontCombo(QWidget parent, String name);
+ public KFontCombo(QWidget parent) {
+ super((Class) null);
+ newKFontCombo(parent);
+ }
+ private native void newKFontCombo(QWidget parent);
+ /**
+ Constructor that takes an already initialzed font list
+ @param fonts A list of fonts to show
+ @param parent The parent widget
+ @param name The object name for the widget
+ @short Constructor that takes an already initialzed font list
+ */
+ public KFontCombo(String[] fonts, QWidget parent, String name) {
+ super((Class) null);
+ newKFontCombo(fonts,parent,name);
+ }
+ private native void newKFontCombo(String[] fonts, QWidget parent, String name);
+ public KFontCombo(String[] fonts, QWidget parent) {
+ super((Class) null);
+ newKFontCombo(fonts,parent);
+ }
+ private native void newKFontCombo(String[] fonts, QWidget parent);
+ /**
+ Sets the font list.
+ @param fonts Font list to show
+ @short Sets the font list.
+ */
+ public native void setFonts(String[] fonts);
+ /**
+ Sets the currently selected font.
+ @param family Font to select.
+ @short Sets the currently selected font.
+ */
+ public native void setCurrentFont(String family);
+ /**
+ @return the currently selected font.
+
+ @short
+ */
+ public native String currentFont();
+ /**
+ Sets the listed fonts to bold or normal.
+ @param bold Set to true to display fonts in bold
+ @short Sets the listed fonts to bold or normal.
+ */
+ public native void setBold(boolean bold);
+ /**
+ Returns the current bold status.
+ @return true if fonts are bold
+
+ @short Returns the current bold status.
+ */
+ public native boolean bold();
+ /**
+ Sets the listed fonts to italic or regular.
+ @param italic Set to true to display fonts italic
+ @short Sets the listed fonts to italic or regular.
+ */
+ public native void setItalic(boolean italic);
+ /**
+ Returns the current italic status
+ @return True if fonts are italic
+
+ @short Returns the current italic status
+ */
+ public native boolean italic();
+ /**
+ Sets the listed fonts to underlined or not underlined
+ @param underline Set to true to display fonts underlined
+ @short Sets the listed fonts to underlined or not underlined
+ */
+ public native void setUnderline(boolean underline);
+ /**
+ Returns the current underline status
+ @return True if fonts are underlined
+
+ @short Returns the current underline status
+ */
+ public native boolean underline();
+ /**
+ Sets the listed fonts to striked out or not
+ @param strikeOut Set to true to display fonts striked out
+ @short Sets the listed fonts to striked out or not
+ */
+ public native void setStrikeOut(boolean strikeOut);
+ /**
+ Returns the current strike out status
+ @return True if fonts are striked out
+
+ @short Returns the current strike out status
+ */
+ public native boolean strikeOut();
+ /**
+ Sets the listed fonts' size
+ @param size Set to the point size to display the fonts in
+ @short Sets the listed fonts' size
+ */
+ public native void setSize(int size);
+ /**
+ Returns the current font size
+ @return The point size of the fonts
+
+ @short Returns the current font size
+ */
+ public native int pointSize();
+ public native void setCurrentItem(int i);
+ /**
+ Returns the user's setting of whether the items should be painted
+ in the respective fonts or not
+ @return True if the respective fonts are used for painting
+
+ @short Returns the user's setting of whether the items should be painted in the respective fonts or not
+ */
+ public static native boolean displayFonts();
+ /**
+ Updated the combo's listBox() to reflect changes made to the
+ fonts' attributed
+ @short Updated the combo's listBox() to reflect changes made to the fonts' attributed
+ */
+ protected native void updateFonts();
+ /**
+ Listens to highlighted(int)
+ @short
+ */
+ protected native void slotModified(int i);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFontDialog.java b/kdejava/koala/org/kde/koala/KFontDialog.java
new file mode 100644
index 00000000..6f50d454
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFontDialog.java
@@ -0,0 +1,226 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ The KFontDialog provides a dialog for interactive font selection.
+ It is basically a thin wrapper around the KFontChooser widget,
+ which can also be used standalone. In most cases, the simplest
+ use of this class is the static method KFontDialog.getFont(),
+ which pops up the dialog, allows the user to select a font, and
+ returns when the dialog is closed.
+ Example:
+ <pre>
+ QFont myFont;
+ int result = KFontDialog.getFont( myFont );
+ if ( result == KFontDialog.Accepted )
+ ...
+ </pre>
+ \image html kfontdialog.png "KDE Font Dialog"
+ See {@link KFontDialogSignals} for signals emitted by KFontDialog
+ @author Preston Brown <pbrown@kde.org>, Bernd Wuebben <wuebben@kde.org>
+
+ @version $Id$
+
+ @short A font selection dialog.
+
+*/
+public class KFontDialog extends KDialogBase {
+ protected KFontDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a font selection dialog.
+ @param parent The parent widget of the dialog, if any.
+ @param name The name of the dialog.
+ @param modal Specifies whether the dialog is modal or not.
+ @param onlyFixed only display fonts which have fixed-width
+ character sizes.
+ @param fontlist a list of fonts to display, in XLFD format. If
+ no list is formatted, the internal KDE font list is used.
+ If that has not been created, X is queried, and all fonts
+ available on the system are displayed.
+ @param makeFrame Draws a frame with titles around the contents.
+ @param diff Display the difference version dialog. See getFontDiff().
+ @param sizeIsRelativeState If not zero the widget will show a
+ checkbox where the user may choose whether the font size
+ is to be interpreted as relative size.
+ Initial state of this checkbox will be set according to
+ sizeIsRelativeState, user choice may be retrieved by
+ calling sizeIsRelative().
+ @short Constructs a font selection dialog.
+ */
+ public KFontDialog(QWidget parent, String name, boolean onlyFixed, boolean modal, String[] fontlist, boolean makeFrame, boolean diff, int sizeIsRelativeState) {
+ super((Class) null);
+ newKFontDialog(parent,name,onlyFixed,modal,fontlist,makeFrame,diff,sizeIsRelativeState);
+ }
+ private native void newKFontDialog(QWidget parent, String name, boolean onlyFixed, boolean modal, String[] fontlist, boolean makeFrame, boolean diff, int sizeIsRelativeState);
+ public KFontDialog(QWidget parent, String name, boolean onlyFixed, boolean modal, String[] fontlist, boolean makeFrame, boolean diff) {
+ super((Class) null);
+ newKFontDialog(parent,name,onlyFixed,modal,fontlist,makeFrame,diff);
+ }
+ private native void newKFontDialog(QWidget parent, String name, boolean onlyFixed, boolean modal, String[] fontlist, boolean makeFrame, boolean diff);
+ public KFontDialog(QWidget parent, String name, boolean onlyFixed, boolean modal, String[] fontlist, boolean makeFrame) {
+ super((Class) null);
+ newKFontDialog(parent,name,onlyFixed,modal,fontlist,makeFrame);
+ }
+ private native void newKFontDialog(QWidget parent, String name, boolean onlyFixed, boolean modal, String[] fontlist, boolean makeFrame);
+ public KFontDialog(QWidget parent, String name, boolean onlyFixed, boolean modal, String[] fontlist) {
+ super((Class) null);
+ newKFontDialog(parent,name,onlyFixed,modal,fontlist);
+ }
+ private native void newKFontDialog(QWidget parent, String name, boolean onlyFixed, boolean modal, String[] fontlist);
+ public KFontDialog(QWidget parent, String name, boolean onlyFixed, boolean modal) {
+ super((Class) null);
+ newKFontDialog(parent,name,onlyFixed,modal);
+ }
+ private native void newKFontDialog(QWidget parent, String name, boolean onlyFixed, boolean modal);
+ public KFontDialog(QWidget parent, String name, boolean onlyFixed) {
+ super((Class) null);
+ newKFontDialog(parent,name,onlyFixed);
+ }
+ private native void newKFontDialog(QWidget parent, String name, boolean onlyFixed);
+ public KFontDialog(QWidget parent, String name) {
+ super((Class) null);
+ newKFontDialog(parent,name);
+ }
+ private native void newKFontDialog(QWidget parent, String name);
+ public KFontDialog(QWidget parent) {
+ super((Class) null);
+ newKFontDialog(parent);
+ }
+ private native void newKFontDialog(QWidget parent);
+ public KFontDialog() {
+ super((Class) null);
+ newKFontDialog();
+ }
+ private native void newKFontDialog();
+ /**
+ Sets the currently selected font in the dialog.
+ @param font The font to select.
+ @param onlyFixed readjust the font list to display only fixed
+ width fonts if true, or vice-versa
+ @short Sets the currently selected font in the dialog.
+ */
+ public native void setFont(QFont font, boolean onlyFixed);
+ public native void setFont(QFont font);
+ /**
+ @return The currently selected font in the dialog.
+
+ @short
+ */
+ public native QFont font();
+ /**
+ Sets the state of the checkbox indicating whether the font size
+ is to be interpreted as relative size.
+ NOTE: If parameter sizeIsRelative was not set in the constructor
+ of the dialog this setting will be ignored.
+ @short Sets the state of the checkbox indicating whether the font size is to be interpreted as relative size.
+ */
+ public native void setSizeIsRelative(int relative);
+ /**
+ @return Whether the font size is to be interpreted as relative size
+ (default: false)
+
+ @short
+ */
+ public native int sizeIsRelative();
+ /**
+ Creates a modal font dialog, lets the user choose a font,
+ and returns when the dialog is closed.
+ @param theFont a reference to the font to write the chosen font
+ into.
+ @param onlyFixed if true, only select from fixed-width fonts.
+ @param parent Parent widget of the dialog. Specifying a widget different
+ from 0 (Null) improves centering (looks better).
+ @param makeFrame Draws a frame with titles around the contents.
+ @param sizeIsRelativeState If not zero the widget will show a
+ checkbox where the user may choose whether the font size
+ is to be interpreted as relative size.
+ Initial state of this checkbox will be set according to
+ sizeIsRelativeState and user choice will be returned
+ therein.
+ @return QDialog.result().
+
+ @short Creates a modal font dialog, lets the user choose a font, and returns when the dialog is closed.
+ */
+ public static native int getFont(QFont theFont, boolean onlyFixed, QWidget parent, boolean makeFrame, int sizeIsRelativeState);
+ public static native int getFont(QFont theFont, boolean onlyFixed, QWidget parent, boolean makeFrame);
+ public static native int getFont(QFont theFont, boolean onlyFixed, QWidget parent);
+ public static native int getFont(QFont theFont, boolean onlyFixed);
+ public static native int getFont(QFont theFont);
+ /**
+ Creates a modal font difference dialog, lets the user choose a selection
+ of changes that should be made to a set of fonts, and returns when the
+ dialog is closed. Useful for choosing slight adjustments to the font set
+ when the user would otherwise have to manually edit a number of fonts.
+ @param theFont a reference to the font to write the chosen font
+ into.
+ @param diffFlags a reference to the int into which the chosen
+ difference selection bitmask should be written.
+ Check the returned bitmask like:
+ <pre>
+ if ( diffFlags & KFontChooser.FontDiffFamily )
+ [...]
+ if ( diffFlags & KFontChooser.FontDiffStyle )
+ [...]
+ if ( diffFlags & KFontChooser.FontDiffSize )
+ [...]
+ </pre>
+ @param onlyFixed if true, only select from fixed-width fonts.
+ @param parent Parent widget of the dialog. Specifying a widget different
+ from 0 (Null) improves centering (looks better).
+ @param makeFrame Draws a frame with titles around the contents.
+ @param sizeIsRelativeState If not zero the widget will show a
+ checkbox where the user may choose whether the font size
+ is to be interpreted as relative size.
+ Initial state of this checkbox will be set according to
+ sizeIsRelativeState and user choice will be returned
+ therein.
+ @return QDialog.result().
+
+ @short Creates a modal font difference dialog, lets the user choose a selection of changes that should be made to a set of fonts, and returns when the dialog is closed.
+ */
+ public static native int getFontDiff(QFont theFont, int[] diffFlags, boolean onlyFixed, QWidget parent, boolean makeFrame, int sizeIsRelativeState);
+ public static native int getFontDiff(QFont theFont, int[] diffFlags, boolean onlyFixed, QWidget parent, boolean makeFrame);
+ public static native int getFontDiff(QFont theFont, int[] diffFlags, boolean onlyFixed, QWidget parent);
+ public static native int getFontDiff(QFont theFont, int[] diffFlags, boolean onlyFixed);
+ public static native int getFontDiff(QFont theFont, int[] diffFlags);
+ /**
+ When you are not only interested in the font selected, but also
+ in the example string typed in, you can call this method.
+ @param theFont a reference to the font to write the chosen font
+ into.
+ @param theString a reference to the example text that was typed.
+ @param onlyFixed if true, only select from fixed-width fonts.
+ @param parent Parent widget of the dialog. Specifying a widget different
+ from 0 (Null) improves centering (looks better).
+ @param makeFrame Draws a frame with titles around the contents.
+ @param sizeIsRelativeState If not zero the widget will show a
+ checkbox where the user may choose whether the font size
+ is to be interpreted as relative size.
+ Initial state of this checkbox will be set according to
+ sizeIsRelativeState and user choice will be returned
+ therein.
+ @return The result of the dialog.
+
+ @short When you are not only interested in the font selected, but also in the example string typed in, you can call this method.
+ */
+ public static native int getFontAndText(QFont theFont, StringBuffer theString, boolean onlyFixed, QWidget parent, boolean makeFrame, int sizeIsRelativeState);
+ public static native int getFontAndText(QFont theFont, StringBuffer theString, boolean onlyFixed, QWidget parent, boolean makeFrame);
+ public static native int getFontAndText(QFont theFont, StringBuffer theString, boolean onlyFixed, QWidget parent);
+ public static native int getFontAndText(QFont theFont, StringBuffer theString, boolean onlyFixed);
+ public static native int getFontAndText(QFont theFont, StringBuffer theString);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFontDialogSignals.java b/kdejava/koala/org/kde/koala/KFontDialogSignals.java
new file mode 100644
index 00000000..e5477d08
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFontDialogSignals.java
@@ -0,0 +1,17 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KFontDialogSignals {
+ /**
+ Emitted whenever the currently selected font changes.
+ Connect to this to monitor the font as it is selected if you are
+ not running modal.
+ @short Emitted whenever the currently selected font changes.
+ */
+ void fontSelected(QFont font);
+}
diff --git a/kdejava/koala/org/kde/koala/KFontRequester.java b/kdejava/koala/org/kde/koala/KFontRequester.java
new file mode 100644
index 00000000..2938bde1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFontRequester.java
@@ -0,0 +1,130 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPushButton;
+import org.kde.qt.QWidget;
+import org.kde.qt.QLabel;
+import org.kde.qt.QWidget;
+
+/**
+
+ This class provides a widget with a lineedit and a button, which invokes
+ a font dialog (KFontDialog).
+ The lineedit provides a preview of the selected font. The preview text can
+ be customized. You can also have the font dialog show only the fixed fonts.
+ \image html kfontrequester.png "KDE Font Requester"
+ See {@link KFontRequesterSignals} for signals emitted by KFontRequester
+ @author Nadeem Hasan <nhasan@kde.org>
+
+ @short This class provides a widget with a lineedit and a button, which invokes a font dialog (KFontDialog).
+
+*/
+public class KFontRequester extends QWidget {
+ protected KFontRequester(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a font requester widget.
+ @param parent The parent widget.
+ @param name The widget name.
+ @param onlyFixed Only display fonts which have fixed-width character
+ sizes.
+ @short Constructs a font requester widget.
+ */
+ public KFontRequester(QWidget parent, String name, boolean onlyFixed) {
+ super((Class) null);
+ newKFontRequester(parent,name,onlyFixed);
+ }
+ private native void newKFontRequester(QWidget parent, String name, boolean onlyFixed);
+ public KFontRequester(QWidget parent, String name) {
+ super((Class) null);
+ newKFontRequester(parent,name);
+ }
+ private native void newKFontRequester(QWidget parent, String name);
+ public KFontRequester(QWidget parent) {
+ super((Class) null);
+ newKFontRequester(parent);
+ }
+ private native void newKFontRequester(QWidget parent);
+ public KFontRequester() {
+ super((Class) null);
+ newKFontRequester();
+ }
+ private native void newKFontRequester();
+ /**
+ @return The currently selected font in the requester.
+
+ @short
+ */
+ public native QFont font();
+ /**
+ @return Returns true if only fixed fonts are displayed.
+
+ @short
+ */
+ public native boolean isFixedOnly();
+ /**
+ @return The current text in the sample text input area.
+
+ @short
+ */
+ public native String sampleText();
+ /**
+ @return The current title of the widget.
+
+ @short
+ */
+ public native String title();
+ /**
+ @return Pointer to the label used for preview.
+
+ @short
+ */
+ public native QLabel label();
+ /**
+ @return Pointer to the pushbutton in the widget.
+
+ @short
+ */
+ public native QPushButton button();
+ /**
+ Sets the currently selected font in the requester.
+ @param font The font to select.
+ @param onlyFixed Display only fixed-width fonts in the font dialog
+ if <code>true</code>, or vice-versa.
+ @short Sets the currently selected font in the requester.
+ */
+ public native void setFont(QFont font, boolean onlyFixed);
+ public native void setFont(QFont font);
+ /**
+ Sets the sample text.
+ Normally you should not change this
+ text, but it can be better to do this if the default text is
+ too large for the edit area when using the default font of your
+ application. Default text is current font name and size. Setting
+ the text to null will restore the default.
+ @param text The new sample text. The current will be removed.
+ @short Sets the sample text.
+ */
+ public native void setSampleText(String text);
+ /**
+ Set the title for the widget that will be used in the tooltip and
+ what's this text.
+ @param title The title to be set.
+ @short Set the title for the widget that will be used in the tooltip and what's this text.
+ */
+ public native void setTitle(String title);
+ protected native void displaySampleText();
+ protected native void setToolTip();
+ protected native void buttonClicked();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFontRequesterSignals.java b/kdejava/koala/org/kde/koala/KFontRequesterSignals.java
new file mode 100644
index 00000000..435782e3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFontRequesterSignals.java
@@ -0,0 +1,17 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPushButton;
+import org.kde.qt.QWidget;
+import org.kde.qt.QLabel;
+
+public interface KFontRequesterSignals {
+ /**
+ Emitted when a new <code>font</code> has been selected in the underlying dialog
+ @short Emitted when a new <code>font</code> has been selected in the underlying dialog
+ */
+ void fontSelected(QFont font);
+}
diff --git a/kdejava/koala/org/kde/koala/KFontSizeAction.java b/kdejava/koala/org/kde/koala/KFontSizeAction.java
new file mode 100644
index 00000000..76ef6362
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFontSizeAction.java
@@ -0,0 +1,133 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QIconSet;
+
+/**
+ See {@link KFontSizeActionSignals} for signals emitted by KFontSizeAction
+*/
+public class KFontSizeAction extends KSelectAction {
+ protected KFontSizeAction(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KFontSizeAction(String text, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKFontSizeAction(text,cut,parent,name);
+ }
+ private native void newKFontSizeAction(String text, KShortcut cut, QObject parent, String name);
+ public KFontSizeAction(String text, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKFontSizeAction(text,cut,parent);
+ }
+ private native void newKFontSizeAction(String text, KShortcut cut, QObject parent);
+ public KFontSizeAction(String text, KShortcut cut) {
+ super((Class) null);
+ newKFontSizeAction(text,cut);
+ }
+ private native void newKFontSizeAction(String text, KShortcut cut);
+ public KFontSizeAction(String text) {
+ super((Class) null);
+ newKFontSizeAction(text);
+ }
+ private native void newKFontSizeAction(String text);
+ public KFontSizeAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKFontSizeAction(text,cut,receiver,slot,parent,name);
+ }
+ private native void newKFontSizeAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KFontSizeAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKFontSizeAction(text,cut,receiver,slot,parent);
+ }
+ private native void newKFontSizeAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent);
+ public KFontSizeAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKFontSizeAction(text,pix,cut,parent,name);
+ }
+ private native void newKFontSizeAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name);
+ public KFontSizeAction(String text, QIconSet pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKFontSizeAction(text,pix,cut,parent);
+ }
+ private native void newKFontSizeAction(String text, QIconSet pix, KShortcut cut, QObject parent);
+ public KFontSizeAction(String text, QIconSet pix, KShortcut cut) {
+ super((Class) null);
+ newKFontSizeAction(text,pix,cut);
+ }
+ private native void newKFontSizeAction(String text, QIconSet pix, KShortcut cut);
+ public KFontSizeAction(String text, QIconSet pix) {
+ super((Class) null);
+ newKFontSizeAction(text,pix);
+ }
+ private native void newKFontSizeAction(String text, QIconSet pix);
+ public KFontSizeAction(String text, String pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKFontSizeAction(text,pix,cut,parent,name);
+ }
+ private native void newKFontSizeAction(String text, String pix, KShortcut cut, QObject parent, String name);
+ public KFontSizeAction(String text, String pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKFontSizeAction(text,pix,cut,parent);
+ }
+ private native void newKFontSizeAction(String text, String pix, KShortcut cut, QObject parent);
+ public KFontSizeAction(String text, String pix, KShortcut cut) {
+ super((Class) null);
+ newKFontSizeAction(text,pix,cut);
+ }
+ private native void newKFontSizeAction(String text, String pix, KShortcut cut);
+ public KFontSizeAction(String text, String pix) {
+ super((Class) null);
+ newKFontSizeAction(text,pix);
+ }
+ private native void newKFontSizeAction(String text, String pix);
+ public KFontSizeAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKFontSizeAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKFontSizeAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KFontSizeAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKFontSizeAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKFontSizeAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent);
+ public KFontSizeAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKFontSizeAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKFontSizeAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KFontSizeAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKFontSizeAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKFontSizeAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent);
+ public KFontSizeAction(QObject parent, String name) {
+ super((Class) null);
+ newKFontSizeAction(parent,name);
+ }
+ private native void newKFontSizeAction(QObject parent, String name);
+ public KFontSizeAction(QObject parent) {
+ super((Class) null);
+ newKFontSizeAction(parent);
+ }
+ private native void newKFontSizeAction(QObject parent);
+ public KFontSizeAction() {
+ super((Class) null);
+ newKFontSizeAction();
+ }
+ private native void newKFontSizeAction();
+ public native int fontSize();
+ public native void setFontSize(int size);
+ protected native void slotActivated(int arg1);
+ protected native void slotActivated(String arg1);
+ protected native void slotActivated();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KFontSizeActionSignals.java b/kdejava/koala/org/kde/koala/KFontSizeActionSignals.java
new file mode 100644
index 00000000..b7df8936
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFontSizeActionSignals.java
@@ -0,0 +1,11 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QIconSet;
+
+public interface KFontSizeActionSignals {
+ void fontSizeChanged(int arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KGlobal.java b/kdejava/koala/org/kde/koala/KGlobal.java
new file mode 100644
index 00000000..707e4b48
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KGlobal.java
@@ -0,0 +1,135 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Access to the KDE global objects.
+ KGlobal provides you with pointers of many central
+ objects that exist only once in the process. It is also
+ responsible for managing instances of KStaticDeleterBase.
+ @author Sirtaj Singh Kang (taj@kde.org)
+
+ @short Access to the KDE global objects.
+ @see KStaticDeleterBase
+
+*/
+public class KGlobal implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KGlobal(Class dummy){}
+
+ public KGlobal() {
+ newKGlobal();
+ }
+ private native void newKGlobal();
+ /**
+ Returns the global instance. There is always at least
+ one instance of a component in one application (in most
+ cases the application itself).
+ @return the global instance
+
+ @short Returns the global instance.
+ */
+ public static native KInstanceInterface instance();
+ /**
+ Returns the application standard dirs object.
+ @return the global standard dir object
+
+ @short Returns the application standard dirs object.
+ */
+ public static native KStandardDirs dirs();
+ /**
+ Returns the general config object.
+ @return the global configuration object.
+
+ @short Returns the general config object.
+ */
+ public static native KConfig config();
+ /**
+ Returns the general config object.
+ @return the global configuration object.
+
+ @short Returns the general config object.
+ */
+ public static native KSharedConfig sharedConfig();
+ /**
+ Returns an iconloader object.
+ @return the global iconloader object
+
+ @short Returns an iconloader object.
+ */
+ public static native KIconLoader iconLoader();
+ /**
+ Returns the global locale object.
+ @return the global locale object
+
+ @short Returns the global locale object.
+ */
+ public static native KLocale locale();
+ /**
+ The global charset manager.
+ @return the global charset manager
+
+ @short The global charset manager.
+ */
+ public static native KCharsets charsets();
+ /**
+ Creates a static String.
+ To be used inside functions(!) like:
+ <pre>
+ static StringmyString = KGlobal.staticString("myText");
+ </pre>
+ !!! Do _NOT_ use: !!!
+ <pre>
+ static String myString = KGlobal.staticString("myText");
+ </pre>
+ This creates a static object (instead of a static reference)
+ and as you know static objects are EVIL.
+ @param str the string to create
+ @return the static string
+
+ @short Creates a static String.
+ */
+ public static native String staticQString(String str);
+ /**
+ Registers a static deleter.
+ @param d the static deleter to register
+ @short Registers a static deleter.
+ @see KStaticDeleterBase
+ @see KStaticDeleter
+ */
+ public static native void registerStaticDeleter(KStaticDeleterBase d);
+ /**
+ Unregisters a static deleter.
+ @param d the static deleter to unregister
+ @short Unregisters a static deleter.
+ @see KStaticDeleterBase
+ @see KStaticDeleter
+ */
+ public static native void unregisterStaticDeleter(KStaticDeleterBase d);
+ /**
+ Calls KStaticDeleterBase.destructObject() on all
+ registered static deleters and unregisters them all.
+ @short Calls KStaticDeleterBase.destructObject() on all registered static deleters and unregisters them all.
+ @see KStaticDeleterBase
+ @see KStaticDeleter
+ */
+ public static native void deleteStaticDeleters();
+ /**
+ The instance currently active (useful in a multi-instance
+ application, such as a KParts application).
+ Don't use this - it's mainly for KAboutDialog and KBugReport.
+ @short The instance currently active (useful in a multi-instance application, such as a KParts application).
+ */
+ public static native void setActiveInstance(KInstanceInterface d);
+ public static native KInstanceInterface activeInstance();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KGlobalAccel.java b/kdejava/koala/org/kde/koala/KGlobalAccel.java
new file mode 100644
index 00000000..f9081cc3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KGlobalAccel.java
@@ -0,0 +1,210 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QObject;
+
+/**
+
+ KGlobalAccel allows you to have global accelerators that are independent of
+ the focused window. Unlike KAccel it does not matter which window is
+ currently active.
+ @short Configurable global shortcut support.
+ @see KAccel
+ @see KAccelShortcutList
+ @see KKeyChooser
+ @see KKeyDialog
+
+*/
+public class KGlobalAccel extends QObject {
+ protected KGlobalAccel(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a new KGlobalAccel object with the given pParent and
+ psName.
+ @param pParent the parent of the QObject
+ @param psName the name of the QObject
+ @short Creates a new KGlobalAccel object with the given pParent and psName.
+ */
+ public KGlobalAccel(QObject pParent, String psName) {
+ super((Class) null);
+ newKGlobalAccel(pParent,psName);
+ }
+ private native void newKGlobalAccel(QObject pParent, String psName);
+ public KGlobalAccel(QObject pParent) {
+ super((Class) null);
+ newKGlobalAccel(pParent);
+ }
+ private native void newKGlobalAccel(QObject pParent);
+ /**
+ Checks whether the accelerators are enabled.
+ @return true if the KGlobalAccel is enabled
+
+ @short Checks whether the accelerators are enabled.
+ */
+ public native boolean isEnabled();
+ /**
+ Create an accelerator action.
+ Usage:
+ <pre>
+ insert( "Do Something", i18n("Do Something"),
+ i18n("This action allows you to do something really great with this program to "
+ "the currently open document."),
+ ALT+CTRL+Key_Q, KKey.QtWIN+CTRL+Key_Q, this, SLOT("slotDoSomething()") );
+ </pre>
+ @param sAction The internal name of the action.
+ @param sLabel An i18n'ized short description of the action displayed when
+ using KKeyChooser to reconfigure the shortcuts.
+ @param sWhatsThis An extended description of the action.
+ @param cutDef3 The default 3 modifier scheme shortcut.
+ @param cutDef4 The default 4 modifier scheme shortcut.
+ @param pObjSlot Pointer to the slot object.
+ @param psMethodSlot Pointer to the slot method.
+ @param bConfigurable Allow the user to change this shortcut if set to 'true'.
+ @param bEnabled The action will be activated by the shortcut if set to 'true'.
+ @short Create an accelerator action.
+ */
+ public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, QObject pObjSlot, String psMethodSlot, boolean bConfigurable, boolean bEnabled);
+ public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, QObject pObjSlot, String psMethodSlot, boolean bConfigurable);
+ public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, QObject pObjSlot, String psMethodSlot);
+ /**
+ Removes the accelerator action identified by the name.
+ Remember to also call updateConnections().
+ @param sAction the name of the action to remove
+ @short Removes the accelerator action identified by the name.
+ */
+ public native boolean remove(String sAction);
+ /**
+ Use this to insert a label into the action list. This will be
+ displayed when the user configures shortcuts.
+ @param sName of the of the action to insert
+ @param sLabel a user-readable (i18n!) name for the action
+ @return the KAccelAction of the action
+
+ @short Use this to insert a label into the action list.
+ */
+ public native KAccelAction insert(String sName, String sLabel);
+ /**
+ Updates the connections of the accelerations after changing them.
+ @return true if successful, false otherwise
+
+ @short Updates the connections of the accelerations after changing them.
+ */
+ public native boolean updateConnections();
+ /**
+ Return the shortcut associated with the action named by <code>sAction.</code>
+ @param sAction the name of the action
+ @return the shortcut. If the action does not exist a null shortcut will be returned.
+
+ @short Return the shortcut associated with the action named by <code>sAction.</code>
+ */
+ public native KShortcut shortcut(String sAction);
+ /**
+ Set the shortcut to be associated with the action named by <code>sAction.</code>
+ @param sAction the name of the action
+ @param shortcut the shortcut for the action
+ @return true if successful, false otherwise
+
+ @short Set the shortcut to be associated with the action named by <code>sAction.</code>
+ */
+ public native boolean setShortcut(String sAction, KShortcut shortcut);
+ /**
+ Set the slot to be called when the shortcut of the action named
+ by <code>sAction</code> is pressed.
+ @param sAction the name of the action
+ @param pObjSlot the receiver of the signal
+ @param psMethodSlot the slot to receive the signal
+ @return true if successful, false otherwise
+
+ @short Set the slot to be called when the shortcut of the action named by <code>sAction</code> is pressed.
+ */
+ public native boolean setSlot(String sAction, QObject pObjSlot, String psMethodSlot);
+ /**
+ Enables or disables action <code>sAction.</code>
+ @short Enables or disables action <code>sAction.</code>
+ */
+ public native boolean setActionEnabled(String sAction, boolean bEnable);
+ /**
+ Return the label (i18n'ized short description) associated with the action named by <code>sAction.</code>
+ @param sAction the name of the action
+ @return the label
+
+ @short Return the label (i18n'ized short description) associated with the action named by <code>sAction.</code>
+ */
+ public native String label(String sAction);
+ /**
+ Returns the configuration group that is used to save the accelerators.
+ @return the configuration group
+
+ @short Returns the configuration group that is used to save the accelerators.
+ @see KConfig
+ */
+ public native String configGroup();
+ /**
+ Sets the configuration group that is used to save the accelerators.
+ @param cg the configuration group
+ @short Sets the configuration group that is used to save the accelerators.
+ @see KConfig
+ */
+ public native void setConfigGroup(String cg);
+ /**
+ Read all shortcuts from <code>pConfig</code>, or (if <code>pConfig</code>
+ is zero) from the application's configuration file
+ KGlobal.config().
+ @param pConfig the configuration file to read from, or 0 for the application
+ configuration file
+ @return true if successful, false otherwise
+
+ @short Read all shortcuts from <code>pConfig</code>, or (if <code>pConfig</code> is zero) from the application's configuration file KGlobal.config().
+ */
+ public native boolean readSettings(KConfigBase pConfig);
+ public native boolean readSettings();
+ /**
+ Write the current shortcuts to <code>pConfig</code>,
+ or (if <code>pConfig</code> is zero) to the application's
+ configuration file.
+ @param pConfig the configuration file to read from, or 0 for the application
+ configuration file
+ @return true if successful, false otherwise
+
+ @short Write the current shortcuts to <code>pConfig</code>, or (if <code>pConfig</code> is zero) to the application's configuration file.
+ */
+ public native boolean writeSettings(KConfigBase pConfig);
+ public native boolean writeSettings();
+ /**
+ Write the current shortcuts to <code>pConfig</code>,
+ or (if <code>pConfig</code> is zero) to the application's
+ configuration file. Alternatively, if bGlobal is true, then write
+ to kdeglobals.
+ @param pConfig the configuration file to read from, or 0 for the application
+ configuration file
+ @param bGlobal if true write the configuration to the kde global settings
+ @return true if successful, false otherwise
+
+ @short Write the current shortcuts to <code>pConfig</code>, or (if <code>pConfig</code> is zero) to the application's configuration file.
+ */
+ public native boolean writeSettings(KConfigBase pConfig, boolean bGlobal);
+ /**
+ @short
+ */
+ public native void disableBlocking(boolean disable);
+ /**
+ KAccelActions.useFourModifierKeys().
+ @short
+ */
+ public static native boolean useFourModifierKeys();
+ /**
+ @short
+ */
+ public static native void blockShortcuts(boolean block);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KGlobalSettings.java b/kdejava/koala/org/kde/koala/KGlobalSettings.java
new file mode 100644
index 00000000..e7db8734
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KGlobalSettings.java
@@ -0,0 +1,481 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QRect;
+import org.kde.qt.QFont;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QWidget;
+
+/**
+
+ Access the KDE global configuration.
+ @author David Faure <faure@kde.org>
+
+ @short Access the KDE global configuration.
+
+*/
+public class KGlobalSettings implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KGlobalSettings(Class dummy){}
+
+ /**
+ This enum describes the return type for insertTearOffHandle() whether to insert
+ a handle or not. Applications who independently want to use handles in their popup menus
+ should test for Application level before calling the appropriate function in KPopupMenu.
+ @short This enum describes the return type for insertTearOffHandle() whether to insert a handle or not.
+ */
+ public static final int Disable = 0;
+ public static final int ApplicationLevel = 1;
+ public static final int Enable = 2;
+
+ /**
+ This enum describes the completion mode used for by the KCompletion class.
+ See <a href="http://developer.kde.org/documentation/standards/kde/style/keys/completion.html">
+ the styleguide</a>.
+ @short This enum describes the completion mode used for by the KCompletion class.
+ */
+ public static final int CompletionNone = 1;
+ public static final int CompletionAuto = 2;
+ public static final int CompletionMan = 3;
+ public static final int CompletionShell = 4;
+ public static final int CompletionPopup = 5;
+ public static final int CompletionPopupAuto = 6;
+
+ public KGlobalSettings() {
+ newKGlobalSettings();
+ }
+ private native void newKGlobalSettings();
+ /**
+ Returns a threshold in pixels for drag & drop operations.
+ As long as the mouse movement has not exceeded this number
+ of pixels in either X or Y direction no drag operation may
+ be started. This prevents spurious drags when the user intended
+ to click on something but moved the mouse a bit while doing so.
+ For this to work you must save the position of the mouse (oldPos)
+ in the QWidget.mousePressEvent().
+ When the position of the mouse (newPos)
+ in a QWidget.mouseMoveEvent() exceeds this threshold
+ you may start a drag
+ which should originate from oldPos.
+ Example code:
+ <pre>
+ void KColorCells.mousePressEvent( QMouseEvent e )
+ {
+ mOldPos = e.pos();
+ }
+ void KColorCells.mouseMoveEvent( QMouseEvent e )
+ {
+ if( !(e.state() && LeftButton)) return;
+ int delay = KGlobalSettings.dndEventDelay();
+ QPoint newPos = e.pos();
+ if(newPos.x() > mOldPos.x()+delay || newPos.x() < mOldPos.x()-delay ||
+ newPos.y() > mOldPos.y()+delay || newPos.y() < mOldPos.y()-delay)
+ {
+ // Drag color object
+ int cell = posToCell(mOldPos); // Find color at mOldPos
+ if ((cell != -1) && colors[cell].isValid())
+ {
+ KColorDrag d = KColorDrag.makeDrag( colors[cell], this);
+ d.dragCopy();
+ }
+ }
+ }
+ </pre>
+ @return the threshold for drag & drop in pixels
+
+ @short Returns a threshold in pixels for drag & drop operations.
+ */
+ public static native int dndEventDelay();
+ /**
+ Returns whether KDE runs in single (default) or double click
+ mode.
+ see http://developer.kde.org/documentation/standards/kde/style/mouse/index.html
+ @return true if single click mode, or false if double click mode.
+
+ @short Returns whether KDE runs in single (default) or double click mode.
+ */
+ public static native boolean singleClick();
+ /**
+ Returns whether tear-off handles are inserted in KPopupMenus.
+ @return whether tear-off handles are inserted in KPopupMenus.
+
+ @short Returns whether tear-off handles are inserted in KPopupMenus.
+ */
+ public static native int insertTearOffHandle();
+ /**
+ Checks whether the cursor changes over icons.
+ @return the KDE setting for "change cursor over icon"
+
+ @short Checks whether the cursor changes over icons.
+ */
+ public static native boolean changeCursorOverIcon();
+ /**
+ Checks whether to show feedback when in item (specifically an
+ icon) is activated.
+ @return whether to show some feedback when an item is activated.
+
+ @short Checks whether to show feedback when in item (specifically an icon) is activated.
+ */
+ public static native boolean visualActivate();
+ /**
+ Returns the speed of the visual activation feedback.
+ @return the speed of the visual activation feedback, between
+ 0 for minimum and 100 for maximum speed
+
+ @short Returns the speed of the visual activation feedback.
+ */
+ public static native int visualActivateSpeed();
+ /**
+ Returns the KDE setting for the auto-select option.
+ @return the auto-select delay or -1 if auto-select is disabled.
+
+ @short Returns the KDE setting for the auto-select option.
+ */
+ public static native int autoSelectDelay();
+ /**
+ Returns the KDE setting for the shortcut key to open
+ context menus.
+ @return the key that pops up context menus.
+
+ @short Returns the KDE setting for the shortcut key to open context menus.
+ */
+ public static native int contextMenuKey();
+ /**
+ Returns the KDE setting for context menus.
+ @return whether context menus should be shown on button press
+ or button release (click).
+
+ @short Returns the KDE setting for context menus.
+ */
+ public static native boolean showContextMenusOnPress();
+ /**
+ Returns the preferred completion mode setting.
+ @return Completion. Default is <code>CompletionPopup.</code>
+
+ @short Returns the preferred completion mode setting.
+ */
+ public static native int completionMode();
+ /**
+ This returns the current mouse settings.
+ On Windows, settings are retrieved from the system.
+ @return the current mouse settings
+
+ @short This returns the current mouse settings.
+ */
+ // KGlobalSettings::KMouseSettings& mouseSettings(); >>>> NOT CONVERTED
+ /**
+ The path to the desktop directory of the current user.
+ @return the user's desktop directory
+
+ @short The path to the desktop directory of the current user.
+ */
+ public static native String desktopPath();
+ /**
+ The path to the autostart directory of the current user.
+ @return the path of the autostart directory
+
+ @short The path to the autostart directory of the current user.
+ */
+ public static native String autostartPath();
+ /**
+ DEPRECATED (starting from kde-3.4).
+ This isn't where the trash contents is, anymore.
+ Use KIO.trash() to trash files, "trash:/" to list the trash contents.
+ @short DEPRECATED (starting from kde-3.
+ */
+ public static native String trashPath();
+ /**
+ The path where documents are stored of the current user.
+ @return the path of the document directory
+
+ @short The path where documents are stored of the current user.
+ */
+ public static native String documentPath();
+ /**
+ The default color to use when highlighting toolbar buttons.
+ @return the toolbar highlight color
+
+ @short The default color to use when highlighting toolbar buttons.
+ */
+ public static native QColor toolBarHighlightColor();
+ /**
+ The default color to use for inactive titles.
+ @return the inactive title color
+
+ @short The default color to use for inactive titles.
+ */
+ public static native QColor inactiveTitleColor();
+ /**
+ The default color to use for inactive texts.
+ @return the inactive text color
+
+ @short The default color to use for inactive texts.
+ */
+ public static native QColor inactiveTextColor();
+ /**
+ The default color to use for active titles.
+ @return the active title color
+
+ @short The default color to use for active titles.
+ */
+ public static native QColor activeTitleColor();
+ /**
+ The default color to use for active texts.
+ @return the active text color
+
+ @short The default color to use for active texts.
+ */
+ public static native QColor activeTextColor();
+ /**
+ Returns the contrast for borders.
+ @return the contrast (between 0 for minimum and 10 for maximum
+ contrast)
+
+ @short Returns the contrast for borders.
+ */
+ public static native int contrast();
+ /**
+ Returns the button background color
+ @return the button background color
+
+ @short Returns the button background color
+ */
+ public static native QColor buttonBackground();
+ /**
+ Returns the button text color
+ @return the button text color
+
+ @short Returns the button text color
+ */
+ public static native QColor buttonTextColor();
+ /**
+ Returns the default base (background) color.
+ @return the default base (background) color
+
+ @short Returns the default base (background) color.
+ @see org.kde.qt.QColorGroup#base
+ */
+ public static native QColor baseColor();
+ /**
+ Returns the default text color.
+ @return the default text color
+
+ @short Returns the default text color.
+ @see org.kde.qt.QColorGroup#text
+ */
+ public static native QColor textColor();
+ /**
+ Returns the default link color.
+ @return the default link color
+
+ @short Returns the default link color.
+ */
+ public static native QColor linkColor();
+ /**
+ Returns the default color for visited links.
+ @return the default color for visited links
+
+ @short Returns the default color for visited links.
+ */
+ public static native QColor visitedLinkColor();
+ /**
+ Returns the default color for highlighted text.
+ @return the default color for highlighted text
+
+ @short Returns the default color for highlighted text.
+ @see org.kde.qt.QColorGroup#hightlightedText
+ */
+ public static native QColor highlightedTextColor();
+ /**
+ Returns the default color for text highlights.
+ @return the default color for text highlights
+
+ @short Returns the default color for text highlights.
+ @see org.kde.qt.QColorGroup#hightlight
+ */
+ public static native QColor highlightColor();
+ /**
+ Returns the alternate background color used by KListView with
+ KListViewItem. Any other list that uses alternating background
+ colors should use this too, to obey to the user's preferences. Returns
+ an invalid color if the user doesn't want alternating backgrounds.
+ @return the alternate background color
+
+ @short Returns the alternate background color used by KListView with KListViewItem.
+ @see #calculateAlternateBackgroundColor
+ */
+ public static native QColor alternateBackgroundColor();
+ /**
+ Calculates a color based on <code>base</code> to be used as alternating
+ color for e.g. listviews.
+ @param base the base for the calculation
+ @return the calculated color
+
+ @short Calculates a color based on <code>base</code> to be used as alternating color for e.
+ @see #alternateBackgroundColor
+ */
+ public static native QColor calculateAlternateBackgroundColor(QColor base);
+ /**
+ Returns if the sorted column in a KListView shall be drawn with a
+ shaded background color.
+ @return true if the sorted column shall be shaded
+
+ @short Returns if the sorted column in a KListView shall be drawn with a shaded background color.
+ */
+ public static native boolean shadeSortColumn();
+ /**
+ Returns the default general font.
+ @return the default general font.
+
+ @short Returns the default general font.
+ */
+ public static native QFont generalFont();
+ /**
+ Returns the default fixed font.
+ @return the default fixed font.
+
+ @short Returns the default fixed font.
+ */
+ public static native QFont fixedFont();
+ /**
+ Returns the default toolbar font.
+ @return the default toolbar font.
+
+ @short Returns the default toolbar font.
+ */
+ public static native QFont toolBarFont();
+ /**
+ Returns the default menu font.
+ @return the default menu font.
+
+ @short Returns the default menu font.
+ */
+ public static native QFont menuFont();
+ /**
+ Returns the default window title font.
+ @return the default window title font.
+
+ @short Returns the default window title font.
+ */
+ public static native QFont windowTitleFont();
+ /**
+ Returns the default taskbar font.
+ @return the default taskbar font.
+
+ @short Returns the default taskbar font.
+ */
+ public static native QFont taskbarFont();
+ /**
+ Returns a font of approx. 48 pt. capable of showing <code>text.</code>
+ @param text the text to test
+ @return the font that is capable to show the text with 48 pt
+
+ @short Returns a font of approx.
+ */
+ public static native QFont largeFont(String text);
+ public static native QFont largeFont();
+ /**
+ Returns if the user specified multihead. In case the display
+ has multiple screens, the return value of this function specifies
+ if the user wants KDE to run on all of them or just on the primary
+ On Windows, settings are retrieved from the system.
+ @return true if the user chose multi head
+
+ @short Returns if the user specified multihead.
+ */
+ public static native boolean isMultiHead();
+ /**
+ Typically, QScrollView derived classes can be scrolled fast by
+ holding down the Ctrl-button during wheel-scrolling.
+ But QTextEdit and derived classes perform zooming instead of fast
+ scrolling.
+ This value determines whether the user wants to zoom or scroll fast
+ with Ctrl-wheelscroll.
+ @return true if the user wishes to zoom with the mouse wheel,
+ false for scrolling
+
+ @short Typically, QScrollView derived classes can be scrolled fast by holding down the Ctrl-button during wheel-scrolling.
+ */
+ public static native boolean wheelMouseZooms();
+ /**
+ This function returns the desktop geometry for an application's splash
+ screen. It takes into account the user's display settings (number of
+ screens, Xinerama, etc), and the user's preferences (if KDE should be
+ Xinerama aware).
+ @return the geometry to use for the desktop. Note that it might not
+ start at (0,0).
+
+ @short This function returns the desktop geometry for an application's splash screen.
+ */
+ public static native QRect splashScreenDesktopGeometry();
+ /**
+ This function returns the desktop geometry for an application that needs
+ to set the geometry of a widget on the screen manually. It takes into
+ account the user's display settings (number of screens, Xinerama, etc),
+ and the user's preferences (if KDE should be Xinerama aware).
+ Note that this can break in multi-head (not Xinerama) mode because this
+ point could be on multiple screens. Use with care.
+ @param point a reference point for the widget, for instance one that the
+ widget should be adjacent or on top of.
+ @return the geometry to use for the desktop. Note that it might not
+ start at (0,0).
+
+ @short This function returns the desktop geometry for an application that needs to set the geometry of a widget on the screen manually.
+ */
+ public static native QRect desktopGeometry(QPoint point);
+ /**
+ This function returns the desktop geometry for an application that needs
+ to set the geometry of a widget on the screen manually. It takes into
+ account the user's display settings (number of screens, Xinerama, etc),
+ and the user's preferences (if KDE should be Xinerama aware).
+ @param w the widget in question. This is used to determine which screen
+ to use in Xinerama or multi-head mode.
+ @return the geometry to use for the desktop. Note that it might not
+ start at (0,0).
+
+ @short This function returns the desktop geometry for an application that needs to set the geometry of a widget on the screen manually.
+ */
+ public static native QRect desktopGeometry(QWidget w);
+ /**
+ This function determines if the user wishes to see icons on the
+ push buttons.
+ @return Returns true if user wants to show icons.
+
+ @short This function determines if the user wishes to see icons on the push buttons.
+ */
+ public static native boolean showIconsOnPushButtons();
+ /**
+ This function determines if the user wishes to see previews
+ for the selected url
+ @return Returns true if user wants to show previews.
+
+ @short This function determines if the user wishes to see previews for the selected url
+ */
+ public static native boolean showFilePreview(KURL arg1);
+ /**
+ Whether the user wishes to use opaque resizing. Primarily
+ intended for QSplitter.setOpaqueResize()
+ @return Returns true if user wants to use opaque resizing.
+
+ @short Whether the user wishes to use opaque resizing.
+ */
+ public static native boolean opaqueResize();
+ /**
+ The layout scheme to use for dialog buttons
+ @return Returns the number of the scheme to use.
+
+ @short The layout scheme to use for dialog buttons
+ @see KDialogBase#setButtonStyle
+ */
+ public static native int buttonLayout();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KGradientSelector.java b/kdejava/koala/org/kde/koala/KGradientSelector.java
new file mode 100644
index 00000000..ad502882
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KGradientSelector.java
@@ -0,0 +1,95 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QPainter;
+import org.kde.qt.QWidget;
+
+/**
+
+ The KGradientSelector widget allows the user to choose
+ from a one-dimensional range of colors which is given as a
+ gradient between two colors provided by the programmer.
+ \image html kgradientselector.png "KDE Gradient Selector Widget"
+ @short The KGradientSelector widget allows the user to choose from a one-dimensional range of colors which is given as a gradient between two colors provided by the programmer.
+
+*/
+public class KGradientSelector extends KSelector {
+ protected KGradientSelector(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a horizontal color selector which
+ contains a gradient between white and black.
+ @short Constructs a horizontal color selector which contains a gradient between white and black.
+ */
+ public KGradientSelector(QWidget parent, String name) {
+ super((Class) null);
+ newKGradientSelector(parent,name);
+ }
+ private native void newKGradientSelector(QWidget parent, String name);
+ public KGradientSelector(QWidget parent) {
+ super((Class) null);
+ newKGradientSelector(parent);
+ }
+ private native void newKGradientSelector(QWidget parent);
+ public KGradientSelector() {
+ super((Class) null);
+ newKGradientSelector();
+ }
+ private native void newKGradientSelector();
+ /**
+ Constructs a colors selector with orientation o which
+ contains a gradient between white and black.
+ @short Constructs a colors selector with orientation o which contains a gradient between white and black.
+ */
+ public KGradientSelector(int o, QWidget parent, String name) {
+ super((Class) null);
+ newKGradientSelector(o,parent,name);
+ }
+ private native void newKGradientSelector(int o, QWidget parent, String name);
+ public KGradientSelector(int o, QWidget parent) {
+ super((Class) null);
+ newKGradientSelector(o,parent);
+ }
+ private native void newKGradientSelector(int o, QWidget parent);
+ public KGradientSelector(int o) {
+ super((Class) null);
+ newKGradientSelector(o);
+ }
+ private native void newKGradientSelector(int o);
+ /**
+ Sets the two colors which span the gradient.
+ @short Sets the two colors which span the gradient.
+ */
+ public native void setColors(QColor col1, QColor col2);
+ public native void setText(String t1, String t2);
+ /**
+ Set each color on its own.
+ @short Set each color on its own.
+ */
+ public native void setFirstColor(QColor col);
+ public native void setSecondColor(QColor col);
+ /**
+ Set each description on its own
+ @short Set each description on its own
+ */
+ public native void setFirstText(String t);
+ public native void setSecondText(String t);
+ public native QColor firstColor();
+ public native QColor secondColor();
+ public native String firstText();
+ public native String secondText();
+ protected native void drawContents(QPainter arg1);
+ public native QSize minimumSize();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KGuiItem.java b/kdejava/koala/org/kde/koala/KGuiItem.java
new file mode 100644
index 00000000..29adae20
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KGuiItem.java
@@ -0,0 +1,84 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QIconSet;
+
+/**
+
+ @author Holger Freyther <freyher@yahoo.com>
+
+ @short An abstract class for GUI data such as ToolTip and Icon.
+
+*/
+public class KGuiItem implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KGuiItem(Class dummy){}
+
+ public KGuiItem() {
+ newKGuiItem();
+ }
+ private native void newKGuiItem();
+ public KGuiItem(String text, String iconName, String toolTip, String whatsThis) {
+ newKGuiItem(text,iconName,toolTip,whatsThis);
+ }
+ private native void newKGuiItem(String text, String iconName, String toolTip, String whatsThis);
+ public KGuiItem(String text, String iconName, String toolTip) {
+ newKGuiItem(text,iconName,toolTip);
+ }
+ private native void newKGuiItem(String text, String iconName, String toolTip);
+ public KGuiItem(String text, String iconName) {
+ newKGuiItem(text,iconName);
+ }
+ private native void newKGuiItem(String text, String iconName);
+ public KGuiItem(String text) {
+ newKGuiItem(text);
+ }
+ private native void newKGuiItem(String text);
+ public KGuiItem(String text, QIconSet iconSet, String toolTip, String whatsThis) {
+ newKGuiItem(text,iconSet,toolTip,whatsThis);
+ }
+ private native void newKGuiItem(String text, QIconSet iconSet, String toolTip, String whatsThis);
+ public KGuiItem(String text, QIconSet iconSet, String toolTip) {
+ newKGuiItem(text,iconSet,toolTip);
+ }
+ private native void newKGuiItem(String text, QIconSet iconSet, String toolTip);
+ public KGuiItem(String text, QIconSet iconSet) {
+ newKGuiItem(text,iconSet);
+ }
+ private native void newKGuiItem(String text, QIconSet iconSet);
+ public KGuiItem(KGuiItem rhs) {
+ newKGuiItem(rhs);
+ }
+ private native void newKGuiItem(KGuiItem rhs);
+ public native String text();
+ public native String plainText();
+ public native QIconSet iconSet(int arg1, int size, KInstanceInterface instance);
+ public native QIconSet iconSet(int arg1, int size);
+ public native QIconSet iconSet(int arg1);
+ public native QIconSet iconSet();
+ public native String iconName();
+ public native String toolTip();
+ public native String whatsThis();
+ public native boolean isEnabled();
+ /**
+ returns whether an icon is defined, doesn't tell if it really exists
+ @short returns whether an icon is defined, doesn't tell if it really exists
+ */
+ public native boolean hasIcon();
+ public native boolean hasIconSet();
+ public native void setText(String text);
+ public native void setIconSet(QIconSet iconset);
+ public native void setIconName(String iconName);
+ public native void setToolTip(String tooltip);
+ public native void setWhatsThis(String whatsThis);
+ public native void setEnabled(boolean enable);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KHSSelector.java b/kdejava/koala/org/kde/koala/KHSSelector.java
new file mode 100644
index 00000000..0c8c8469
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KHSSelector.java
@@ -0,0 +1,69 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QPainter;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+/**
+
+ Widget for Hue/Saturation colour selection.
+ The actual values can be fetched using the inherited xValue and yValue
+ methods.
+ \image html khsselector.png "KDE Hue/Saturation Selection Widget"
+ @author Martin Jones (mjones@kde.org)
+
+ @short Widget for Hue/Saturation colour selection.
+ @see KXYSelector
+ @see KValueSelector
+ @see KColorDialog
+
+*/
+public class KHSSelector extends KXYSelector {
+ protected KHSSelector(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a hue/saturation selection widget.
+ @short Constructs a hue/saturation selection widget.
+ */
+ public KHSSelector(QWidget parent, String name) {
+ super((Class) null);
+ newKHSSelector(parent,name);
+ }
+ private native void newKHSSelector(QWidget parent, String name);
+ public KHSSelector(QWidget parent) {
+ super((Class) null);
+ newKHSSelector(parent);
+ }
+ private native void newKHSSelector(QWidget parent);
+ public KHSSelector() {
+ super((Class) null);
+ newKHSSelector();
+ }
+ private native void newKHSSelector();
+ /**
+ Draws the contents of the widget on a pixmap,
+ which is used for buffering.
+ @short Draws the contents of the widget on a pixmap, which is used for buffering.
+ */
+ protected native void drawPalette(QPixmap pixmap);
+ protected native void resizeEvent(QResizeEvent arg1);
+ /**
+ Reimplemented from KXYSelector. This drawing is
+ buffered in a pixmap here. As real drawing
+ routine, drawPalette() is used.
+ @short Reimplemented from KXYSelector.
+ */
+ protected native void drawContents(QPainter painter);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KHTMLPart.java b/kdejava/koala/org/kde/koala/KHTMLPart.java
new file mode 100644
index 00000000..f5b3660c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KHTMLPart.java
@@ -0,0 +1,1004 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+import org.kde.qt.QObject;
+import org.kde.qt.QPoint;
+import java.util.ArrayList;
+import org.kde.qt.QPainter;
+import org.kde.qt.QCustomEvent;
+import org.kde.qt.QCursor;
+import org.kde.qt.QVariant;
+import org.kde.qt.QWidget;
+
+/**
+
+ This class is khtml's main class. It features an almost complete
+ web browser, and html renderer.
+ The easiest way to use this class (if you just want to display an HTML
+ page at some URL) is the following:
+ <pre>
+ KURL url = "http://www.kde.org";
+ KHTMLPart w = new KHTMLPart();
+ w.openURL(url);
+ w.view().resize(500, 400);
+ w.show();
+ </pre>
+ Java and JavaScript are enabled by default depending on the user's
+ settings. If you do not need them, and especially if you display
+ unfiltered data from untrusted sources, it is strongly recommended to
+ turn them off. In that case, you should also turn off the automatic
+ redirect and plugins:
+ <pre>
+ w.setJScriptEnabled(false);
+ w.setJavaEnabled(false);
+ w.setMetaRefreshEnabled(false);
+ w.setPluginsEnabled(false);
+ </pre>
+ You may also wish to disable external references. This will prevent KHTML
+ from loading images, frames, etc, or redirecting to external sites.
+ <pre>
+ w.setOnlyLocalReferences(true);
+ </pre>
+ Some apps want to write their HTML code directly into the widget instead of
+ opening an url. You can do this in the following way:
+ <pre>
+ String myHTMLCode = ...;
+ KHTMLPart w = new KHTMLPart();
+ w.begin();
+ w.write(myHTMLCode);
+ ...
+ w.end();
+ </pre>
+ You can do as many calls to write() as you wish. There are two
+ write() methods, one accepting a String and one accepting a
+ <code>char</code> <code>argument.</code> You should use one or the other
+ (but not both) since the method using
+ the <code>char</code> <code>argument</code> does an additional decoding step to convert the
+ written data to Unicode.
+ It is also possible to write content to the HTML part using the
+ standard streaming API from KParts.ReadOnlyPart. The usage of
+ the API is similar to that of the begin(), write(), end() process
+ described above as the following example shows:
+ <pre>
+ KHTMLPart doc = new KHTMLPart();
+ doc.openStream( "text/html", KURL() );
+ doc.writeStream( String( "<html><body><p>KHTML Rocks!</p></body></html>" ) );
+ doc.closeStream();
+ </pre>
+ See {@link KHTMLPartSignals} for signals emitted by KHTMLPart
+ @author Lars Knoll (knoll@kde.org)
+
+ @short HTML Browser Widget.
+
+*/
+public class KHTMLPart extends ReadOnlyPart {
+ protected KHTMLPart(Class dummy){super((Class) null);}
+ public static final int DefaultGUI = 0;
+ public static final int BrowserViewGUI = 1;
+
+ /**
+ Enumeration for displaying the caret.
+ @param Visible caret is displayed
+ @param Invisible caret is not displayed
+ @param Blink caret toggles between visible and invisible
+ @short Enumeration for displaying the caret.
+ */
+ public static final int CaretVisible = 0;
+ public static final int CaretInvisible = 1;
+ public static final int CaretBlink = 2;
+
+ /**
+ Extra Find options that can be used when calling the extended findText().
+ @short Extra Find options that can be used when calling the extended findText().
+ */
+ public static final int FindLinksOnly = 1*KFindDialog.MinimumUserOption;
+ public static final int FindNoPopups = 2*KFindDialog.MinimumUserOption;
+
+ public static final int NoNotification = 0;
+ public static final int Before = 1;
+ public static final int Only = 2;
+ public static final int Unused = 255;
+
+ public static final int NotCrypted = 0;
+ public static final int Encrypted = 1;
+ public static final int Mixed = 2;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a new KHTMLPart.
+ KHTML basically consists of two objects: The KHTMLPart itself,
+ holding the document data (DOM document), and the KHTMLView,
+ derived from QScrollView, in which the document content is
+ rendered in. You can specify two different parent objects for a
+ KHTMLPart, one parent for the KHTMLPart document and on parent
+ for the KHTMLView. If the second <code>parent</code> argument is null, then
+ <code>parentWidget</code> is used as parent for both objects, the part and
+ the view.
+ @short Constructs a new KHTMLPart.
+ */
+ public KHTMLPart(QWidget parentWidget, String widgetname, QObject parent, String name, int prof) {
+ super((Class) null);
+ newKHTMLPart(parentWidget,widgetname,parent,name,prof);
+ }
+ private native void newKHTMLPart(QWidget parentWidget, String widgetname, QObject parent, String name, int prof);
+ public KHTMLPart(QWidget parentWidget, String widgetname, QObject parent, String name) {
+ super((Class) null);
+ newKHTMLPart(parentWidget,widgetname,parent,name);
+ }
+ private native void newKHTMLPart(QWidget parentWidget, String widgetname, QObject parent, String name);
+ public KHTMLPart(QWidget parentWidget, String widgetname, QObject parent) {
+ super((Class) null);
+ newKHTMLPart(parentWidget,widgetname,parent);
+ }
+ private native void newKHTMLPart(QWidget parentWidget, String widgetname, QObject parent);
+ public KHTMLPart(QWidget parentWidget, String widgetname) {
+ super((Class) null);
+ newKHTMLPart(parentWidget,widgetname);
+ }
+ private native void newKHTMLPart(QWidget parentWidget, String widgetname);
+ public KHTMLPart(QWidget parentWidget) {
+ super((Class) null);
+ newKHTMLPart(parentWidget);
+ }
+ private native void newKHTMLPart(QWidget parentWidget);
+ public KHTMLPart() {
+ super((Class) null);
+ newKHTMLPart();
+ }
+ private native void newKHTMLPart();
+ public KHTMLPart(KHTMLView view, QObject parent, String name, int prof) {
+ super((Class) null);
+ newKHTMLPart(view,parent,name,prof);
+ }
+ private native void newKHTMLPart(KHTMLView view, QObject parent, String name, int prof);
+ public KHTMLPart(KHTMLView view, QObject parent, String name) {
+ super((Class) null);
+ newKHTMLPart(view,parent,name);
+ }
+ private native void newKHTMLPart(KHTMLView view, QObject parent, String name);
+ public KHTMLPart(KHTMLView view, QObject parent) {
+ super((Class) null);
+ newKHTMLPart(view,parent);
+ }
+ private native void newKHTMLPart(KHTMLView view, QObject parent);
+ public KHTMLPart(KHTMLView view) {
+ super((Class) null);
+ newKHTMLPart(view);
+ }
+ private native void newKHTMLPart(KHTMLView view);
+ /**
+ Opens the specified URL <code>url.</code>
+ Reimplemented from KParts.ReadOnlyPart.openURL .
+ @short Opens the specified URL <code>url.</code>
+ */
+ public native boolean openURL(KURL url);
+ /**
+ Stops loading the document and kills all data requests (for images, etc.)
+ @short Stops loading the document and kills all data requests (for images, etc.
+ */
+ public native boolean closeURL();
+ /**
+ Called when a certain error situation (i.e. connection timed out) occurred.
+ The default implementation either shows a KIO error dialog or loads a more
+ verbose error description a as page, depending on the users configuration.
+ <code>job</code> is the job that signaled the error situation
+ @short Called when a certain error situation (i.
+ */
+ public native void showError(Job job);
+ /**
+ Returns a reference to the DOM HTML document (for non-HTML documents, returns null)
+ @short Returns a reference to the DOM HTML document (for non-HTML documents, returns null)
+ */
+ public native HTMLDocument htmlDocument();
+ /**
+ Returns a reference to the DOM document.
+ @short Returns a reference to the DOM document.
+ */
+ public native Document document();
+ /**
+ Returns the content of the source document.
+ @short Returns the content of the source document.
+ */
+ public native String documentSource();
+ /**
+ Returns the node that has the keyboard focus.
+ @short Returns the node that has the keyboard focus.
+ */
+ public native Node activeNode();
+ /**
+ Returns a pointer to the KParts.BrowserExtension.
+ @short Returns a pointer to the KParts.BrowserExtension.
+ */
+ public native BrowserExtension browserExtension();
+ // KParts::LiveConnectExtension* liveConnectExtension(const khtml::RenderPart* arg1); >>>> NOT CONVERTED
+ public native BrowserHostExtension browserHostExtension();
+ /**
+ Returns a pointer to the HTML document's view.
+ @short Returns a pointer to the HTML document's view.
+ */
+ public native KHTMLView view();
+ /**
+ Enable/disable Javascript support. Note that this will
+ in either case permanently override the default usersetting.
+ If you want to have the default UserSettings, don't call this
+ method.
+ @short Enable/disable Javascript support.
+ */
+ public native void setJScriptEnabled(boolean enable);
+ /**
+ Returns <code>true</code> if Javascript support is enabled or <code>false</code>
+ otherwise.
+ @short Returns <code>true</code> if Javascript support is enabled or <code>false</code> otherwise.
+ */
+ public native boolean jScriptEnabled();
+ /**
+ Returns the JavaScript interpreter the part is using. This method is
+ mainly intended for applications which embed and extend the part and
+ provides a mechanism for adding additional native objects to the
+ interpreter (or removing the built-ins).
+ One thing people using this method to add things to the interpreter must
+ consider, is that when you start writing new content to the part, the
+ interpreter is cleared. This includes both use of the
+ begin( KURL, int, int ) method, and the openURL( KURL )
+ method. If you want your objects to have a longer lifespan, then you must
+ retain a KJS.Object yourself to ensure that the reference count of your
+ custom objects never reaches 0. You will also need to re-add your
+ bindings everytime this happens - one way to detect the need for this is
+ to connect to the docCreated() signal, another is to reimplement the
+ begin() method.
+ @short Returns the JavaScript interpreter the part is using.
+ */
+ // KJS::Interpreter* jScriptInterpreter(); >>>> NOT CONVERTED
+ /**
+ Enable/disable statusbar messages.
+ When this class wants to set the statusbar text, it emits
+ setStatusBarText(String text)
+ If you want to catch this for your own statusbar, note that it returns
+ back a rich text string, starting with "<qt>". This you need to
+ either pass this into your own QLabel or to strip out the tags
+ before passing it to QStatusBar.message(String message)
+ @short Enable/disable statusbar messages.
+ @see Part#setStatusBarText(
+ @see #const
+ @see #text
+ */
+ public native void setStatusMessagesEnabled(boolean enable);
+ /**
+ Returns <code>true</code> if status messages are enabled.
+ @short Returns <code>true</code> if status messages are enabled.
+ */
+ public native boolean statusMessagesEnabled();
+ /**
+ Enable/disable automatic forwarding by &lt;meta http-equiv="refresh" ....&gt;
+ @short Enable/disable automatic forwarding by &lt;meta http-equiv="refresh" .
+ */
+ public native void setMetaRefreshEnabled(boolean enable);
+ /**
+ Returns <code>true</code> if automatic forwarding is enabled.
+ @short Returns <code>true</code> if automatic forwarding is enabled.
+ */
+ public native boolean metaRefreshEnabled();
+ /**
+ Same as executeScript( String ) except with the Node parameter
+ specifying the 'this' value.
+ @short Same as executeScript( String ) except with the Node parameter specifying the 'this' value.
+ */
+ public native QVariant executeScript(Node n, String script);
+ /**
+ Enables or disables Drag'n'Drop support. A drag operation is started if
+ the users drags a link.
+ @short Enables or disables Drag'n'Drop support.
+ */
+ public native void setDNDEnabled(boolean b);
+ /**
+ Returns whether Dragn'n'Drop support is enabled or not.
+ @short Returns whether Dragn'n'Drop support is enabled or not.
+ */
+ public native boolean dndEnabled();
+ /**
+ Enables/disables Java applet support. Note that calling this function
+ will permanently override the User settings about Java applet support.
+ Not calling this function is the only way to let the default settings
+ apply.
+ @short Enables/disables Java applet support.
+ */
+ public native void setJavaEnabled(boolean enable);
+ /**
+ Return true if Java applet support is enabled, false if disabled
+ @short Return true if Java applet support is enabled, false if disabled
+ */
+ public native boolean javaEnabled();
+ /**
+ Returns the java context of the applets. If no applet exists, 0 is returned.
+ @short Returns the java context of the applets.
+ */
+ // KJavaAppletContext* javaContext(); >>>> NOT CONVERTED
+ /**
+ Returns the java context of the applets. If no context exists yet, a
+ new one is created.
+ @short Returns the java context of the applets.
+ */
+ // KJavaAppletContext* createJavaContext(); >>>> NOT CONVERTED
+ /**
+ Enables or disables plugins, default is enabled
+ @short Enables or disables plugins, default is enabled
+ */
+ public native void setPluginsEnabled(boolean enable);
+ /**
+ Returns true if plugins are enabled/disabled.
+ @short Returns true if plugins are enabled/disabled.
+ */
+ public native boolean pluginsEnabled();
+ /**
+ Specifies whether images contained in the document should be loaded
+ automatically or not.
+ @note Request will be ignored if called before begin().
+ @short Specifies whether images contained in the document should be loaded automatically or not.
+ */
+ public native void setAutoloadImages(boolean enable);
+ /**
+ Returns whether images contained in the document are loaded automatically
+ or not.
+ @note that the returned information is unrelieable as long as no begin()
+ was called.
+ @short Returns whether images contained in the document are loaded automatically or not.
+ */
+ public native boolean autoloadImages();
+ /**
+ Security option.
+ Specify whether only file:/ or data:/ urls are allowed to be loaded without
+ user confirmation by KHTML.
+ ( for example referenced by stylesheets, images, scripts, subdocuments, embedded elements ).
+ This option is mainly intended for enabling the "mail reader mode", where you load untrusted
+ content with a file:/ url.
+ Please note that enabling this option currently automatically disables Javascript,
+ Java and Plugins support. This might change in the future if the security model
+ is becoming more sophisticated, so don't rely on this behaviour.
+ ( default false - everything is loaded unless forbidden by KApplication.authorizeURLAction).
+ @short Security option.
+ */
+ public native void setOnlyLocalReferences(boolean enable);
+ /**
+ Returns whether only file:/ or data:/ references are allowed
+ to be loaded ( default false ). See setOnlyLocalReferences.
+ @short Returns whether only file:/ or data:/ references are allowed to be loaded ( default false ).
+ */
+ public native boolean onlyLocalReferences();
+ /** Returns whether caret mode is on/off.
+ @short Returns whether caret mode is on/off.
+ */
+ public native boolean isCaretMode();
+ /**
+ Returns <code>true</code> if the document is editable, <code>false</code> otherwise.
+ @short Returns <code>true</code> if the document is editable, <code>false</code> otherwise.
+ */
+ public native boolean isEditable();
+ /**
+ Sets the caret to the given position.
+ If the given location is invalid, it will snap to the nearest valid
+ location. Immediately afterwards a <code>caretPositionChanged</code> signal
+ containing the effective position is emitted
+ @param node node to set to
+ @param offset zero-based offset within the node
+ @param extendSelection If <code>true</code>, a selection will be spanned from the
+ last caret position to the given one. Otherwise, any existing selection
+ will be deselected.
+ @short Sets the caret to the given position.
+ */
+ public native void setCaretPosition(Node node, long offset, boolean extendSelection);
+ public native void setCaretPosition(Node node, long offset);
+ /**
+ Returns the current caret policy when the view is not focused.
+ @short Returns the current caret policy when the view is not focused.
+ */
+ public native int caretDisplayPolicyNonFocused();
+ /**
+ Sets the caret display policy when the view is not focused.
+ Whenever the caret is in use, this property determines how the
+ caret should be displayed when the document view is not focused.
+ The default policy is CaretInvisible.
+ @param policy new display policy
+ @short Sets the caret display policy when the view is not focused.
+ */
+ public native void setCaretDisplayPolicyNonFocused(int policy);
+ public native void enableJScript(boolean e);
+ public native void enableJava(boolean e);
+ public native void enablePlugins(boolean e);
+ public native void autoloadImages(boolean e);
+ public native void enableMetaRefresh(boolean e);
+ public native boolean setCharset(String arg1, boolean arg2);
+ public native KURL baseURL();
+ public native String baseTarget();
+ /**
+ Returns the URL for the background Image (used by save background)
+ @short Returns the URL for the background Image (used by save background)
+ */
+ public native KURL backgroundURL();
+ /**
+ Schedules a redirection after <code>delay</code> seconds.
+ @short Schedules a redirection after <code>delay</code> seconds.
+ */
+ public native void scheduleRedirection(int delay, String url, boolean lockHistory);
+ public native void scheduleRedirection(int delay, String url);
+ /**
+ Clears the widget and prepares it for new content.
+ If you want url() to return
+ for example "file:/tmp/test.html", you can use the following code:
+ <pre>
+ view.begin( KURL("file:/tmp/test.html" ) );
+ </pre>
+ @param url is the url of the document to be displayed. Even if you
+ are generating the HTML on the fly, it may be useful to specify
+ a directory so that any pixmaps are found.
+ @param xOffset is the initial horizontal scrollbar value. Usually
+ you don't want to use this.
+ @param yOffset is the initial vertical scrollbar value. Usually
+ you don't want to use this.
+ All child frames and the old document are removed if you call
+ this method.
+ @short Clears the widget and prepares it for new content.
+ */
+ public native void begin(KURL url, int xOffset, int yOffset);
+ public native void begin(KURL url, int xOffset);
+ public native void begin(KURL url);
+ public native void begin();
+ /**
+ Writes another part of the HTML code to the widget.
+ You may call
+ this function many times in sequence. But remember: The fewer calls
+ you make, the faster the widget will be.
+ The HTML code is send through a decoder which decodes the stream to
+ Unicode.
+ The <code>len</code> parameter is needed for streams encoded in utf-16,
+ since these can have \\0 chars in them. In case the encoding
+ you're using isn't utf-16, you can safely leave out the length
+ parameter.
+ Attention: Don't mix calls to write( String ) with calls
+ to write( String ).
+ The result might not be what you want.
+ @short Writes another part of the HTML code to the widget.
+ */
+ public native void write(String str, int len);
+ public native void write(String str);
+ /**
+ Call this after your last call to write().
+ @short Call this after your last call to write().
+ */
+ public native void end();
+ /**
+ Paints the HTML page to a QPainter. See KHTMLView.paint for details
+ @short Paints the HTML page to a QPainter.
+ */
+ public native void paint(QPainter arg1, QRect arg2, int arg3, boolean[] arg4);
+ public native void paint(QPainter arg1, QRect arg2, int arg3);
+ public native void paint(QPainter arg1, QRect arg2);
+ /**
+ Sets the encoding the page uses.
+ This can be different from the charset. The widget will try to reload the current page in the new
+ encoding, if url() is not empty.
+ @short Sets the encoding the page uses.
+ */
+ public native boolean setEncoding(String name, boolean override);
+ public native boolean setEncoding(String name);
+ /**
+ Returns the encoding the page currently uses.
+ Note that the encoding might be different from the charset.
+ @short Returns the encoding the page currently uses.
+ */
+ public native String encoding();
+ /**
+ Sets a user defined style sheet to be used on top of the HTML 4
+ default style sheet.
+ This gives a wide range of possibilities to
+ change the layout of the page.
+ To have an effect this function has to be called after calling begin().
+ @short Sets a user defined style sheet to be used on top of the HTML 4 default style sheet.
+ */
+ public native void setUserStyleSheet(KURL url);
+ /**
+ Sets a user defined style sheet to be used on top of the HTML 4
+ default style sheet.
+ This gives a wide range of possibilities to
+ change the layout of the page.
+ To have an effect this function has to be called after calling begin().
+ @short Sets a user defined style sheet to be used on top of the HTML 4 default style sheet.
+ */
+ public native void setUserStyleSheet(String styleSheet);
+ /**
+ Sets the standard font style.
+ @param name The font name to use for standard text.
+ @short Sets the standard font style.
+ */
+ public native void setStandardFont(String name);
+ /**
+ Sets the fixed font style.
+ @param name The font name to use for fixed text, e.g.
+ the <tt>&lt;pre&gt;</tt> tag.
+ @short Sets the fixed font style.
+ */
+ public native void setFixedFont(String name);
+ /**
+ Finds the anchor named <code>name.</code>
+ If the anchor is found, the widget
+ scrolls to the closest position. Returns <code>if</code> the anchor has
+ been found.
+ @short Finds the anchor named <code>name.</code>
+ */
+ public native boolean gotoAnchor(String name);
+ /**
+ Go to the next anchor
+ This is useful to navigate from outside the navigator
+ @short Go to the next anchor
+ */
+ public native boolean nextAnchor();
+ /**
+ Go to previous anchor
+ @short Go to previous anchor
+ */
+ public native boolean prevAnchor();
+ /**
+ Sets the cursor to use when the cursor is on a link.
+ @short Sets the cursor to use when the cursor is on a link.
+ */
+ public native void setURLCursor(QCursor c);
+ /**
+ Returns the cursor which is used when the cursor is on a link.
+ @short Returns the cursor which is used when the cursor is on a link.
+ */
+ public native QCursor urlCursor();
+ /**
+ Starts a new search by popping up a dialog asking the user what he wants to
+ search for.
+ @short Starts a new search by popping up a dialog asking the user what he wants to search for.
+ */
+ public native void findText();
+ /**
+ Starts a new search, but bypasses the user dialog.
+ @param str The string to search for.
+ @param options Find options.
+ @param parent Parent used for centering popups like "string not found".
+ @param findDialog Optionally, you can supply your own dialog.
+ @short Starts a new search, but bypasses the user dialog.
+ */
+ public native void findText(String str, long options, QWidget parent, KFindDialog findDialog);
+ public native void findText(String str, long options, QWidget parent);
+ public native void findText(String str, long options);
+ /**
+ Initiates a text search.
+ @short Initiates a text search.
+ */
+ public native void findTextBegin();
+ /**
+ Finds the next occurence of a string set by {@link #findText}
+ @return true if a new match was found.
+
+ @short Finds the next occurence of a string set by @ref findText()
+ */
+ public native boolean findTextNext();
+ /**
+ Finds the next occurence of a string set by {@link #findText}
+ @param reverse if true, revert seach direction (only if no find dialog is used)
+ @return true if a new match was found.
+
+ @short Finds the next occurence of a string set by @ref findText()
+ */
+ public native boolean findTextNext(boolean reverse);
+ /**
+ Sets the Zoom factor. The value is given in percent, larger values mean a
+ generally larger font and larger page contents. It is not guaranteed that
+ all parts of the page are scaled with the same factor though.
+ The given value should be in the range of 20..300, values outside that
+ range are not guaranteed to work. A value of 100 will disable all zooming
+ and show the page with the sizes determined via the given lengths in the
+ stylesheets.
+ @short Sets the Zoom factor.
+ */
+ public native void setZoomFactor(int percent);
+ /**
+ Returns the current zoom factor.
+ @short Returns the current zoom factor.
+ */
+ public native int zoomFactor();
+ /**
+ Returns the text the user has marked.
+ @short Returns the text the user has marked.
+ */
+ public native String selectedText();
+ /**
+ Return the text the user has marked. This is guaranteed to be valid xml,
+ and to contain the \<html> and \<body> tags.
+ FIXME probably should make for 4.0 ?
+ @short Return the text the user has marked.
+ */
+ public native String selectedTextAsHTML();
+ /**
+ Returns the selected part of the HTML.
+ @short Returns the selected part of the HTML.
+ */
+ public native Range selection();
+ /**
+ Returns the selected part of the HTML by returning the starting and end
+ position.
+ If there is no selection, both nodes and offsets are equal.
+ @param startNode returns node selection starts in
+ @param startOffset returns offset within starting node
+ @param endNode returns node selection ends in
+ @param endOffset returns offset within end node.
+ @short Returns the selected part of the HTML by returning the starting and end position.
+ */
+ public native void selection(Node startNode, long startOffset, Node endNode, long endOffset);
+ /**
+ Sets the current selection.
+ @short Sets the current selection.
+ */
+ public native void setSelection(Range arg1);
+ /**
+ Has the user selected anything?
+ Call selectedText() to
+ retrieve the selected text.
+ @return <code>true</code> if there is text selected.
+
+ @short Has the user selected anything?
+ */
+ public native boolean hasSelection();
+ /**
+ Marks all text in the document as selected.
+ @short Marks all text in the document as selected.
+ */
+ public native void selectAll();
+ /**
+ Convenience method to show the document's view.
+ Equivalent to widget().show() or view().show() .
+ @short Convenience method to show the document's view.
+ */
+ public native void show();
+ /**
+ Convenience method to hide the document's view.
+ Equivalent to widget().hide() or view().hide().
+ @short Convenience method to hide the document's view.
+ */
+ public native void hide();
+ /**
+ Returns a reference to the partmanager instance which
+ manages html frame objects.
+ @short Returns a reference to the partmanager instance which manages html frame objects.
+ */
+ public native PartManager partManager();
+ /**
+ Saves the KHTMLPart's complete state (including child frame
+ objects) to the provided QDataStream.
+ This is called from the saveState() method of the
+ browserExtension().
+ @short Saves the KHTMLPart's complete state (including child frame objects) to the provided QDataStream.
+ */
+ public native void saveState(QDataStream stream);
+ /**
+ Restores the KHTMLPart's previously saved state (including
+ child frame objects) from the provided QDataStream.
+ This is called from the restoreState() method of the
+ browserExtension() .
+ @short Restores the KHTMLPart's previously saved state (including child frame objects) from the provided QDataStream.
+ @see #saveState
+ */
+ public native void restoreState(QDataStream stream);
+ /**
+ Returns the <code>Node</code> currently under the mouse.
+ The returned node may be a shared node (e. g. an \<area> node if the
+ mouse is hovering over an image map).
+ @short Returns the <code>Node</code> currently under the mouse.
+ */
+ public native Node nodeUnderMouse();
+ /**
+ Returns the <code>Node</code> currently under the mouse that is not shared.
+ The returned node is always the node that is physically under the mouse
+ pointer (irrespective of logically overlying elements like, e. g.,
+ \<area> on image maps).
+ @short Returns the <code>Node</code> currently under the mouse that is not shared.
+ */
+ public native Node nonSharedNodeUnderMouse();
+ /**
+ @short
+ */
+ public native KHTMLSettings settings();
+ /**
+ Returns a pointer to the parent KHTMLPart if the part is a frame
+ in an HTML frameset.
+ Returns null otherwise.
+ @short Returns a pointer to the parent KHTMLPart if the part is a frame in an HTML frameset.
+ */
+ public native KHTMLPart parentPart();
+ /**
+ Returns a list of names of all frame (including iframe) objects of
+ the current document. Note that this method is not working recursively
+ for sub-frames.
+ @short Returns a list of names of all frame (including iframe) objects of the current document.
+ */
+ public native ArrayList frameNames();
+ // QPtrList<KParts::ReadOnlyPart> frames(); >>>> NOT CONVERTED
+ /**
+ Finds a frame by name. Returns null if frame can't be found.
+ @short Finds a frame by name.
+ */
+ public native KHTMLPart findFrame(String f);
+ /**
+ Recursively finds the part containing the frame with name <code>f</code>
+ and checks if it is accessible by <code>callingPart</code>
+ Returns null if no suitable frame can't be found.
+ Returns parent part if a suitable frame was found and
+ frame info in <code>childFrame</code>
+ @short Recursively finds the part containing the frame with name <code>f</code> and checks if it is accessible by <code>callingPart</code> Returns 0L if no suitable frame can't be found.
+ */
+ // KHTMLPart* findFrameParent(KParts::ReadOnlyPart* arg1,const QString& arg2,khtml::ChildFrame** arg3); >>>> NOT CONVERTED
+ public native KHTMLPart findFrameParent(ReadOnlyPart callingPart, String f);
+ /**
+ Return the current frame (the one that has focus)
+ Not necessarily a direct child of ours, framesets can be nested.
+ Returns "this" if this part isn't a frameset.
+ @short Return the current frame (the one that has focus) Not necessarily a direct child of ours, framesets can be nested.
+ */
+ public native ReadOnlyPart currentFrame();
+ /**
+ Returns whether a frame with the specified name is exists or not.
+ In contrary to the findFrame method this one also returns true
+ if the frame is defined but no displaying component has been
+ found/loaded, yet.
+ @short Returns whether a frame with the specified name is exists or not.
+ */
+ public native boolean frameExists(String frameName);
+ /**
+ Returns child frame framePart its script interpreter
+ @short Returns child frame framePart its script interpreter
+ */
+ // KJSProxy* framejScript(KParts::ReadOnlyPart* arg1); >>>> NOT CONVERTED
+ /**
+ Finds a frame by name. Returns null if frame can't be found.
+ @short Finds a frame by name.
+ */
+ public native ReadOnlyPart findFramePart(String f);
+ /**
+ Called by KJS.
+ Sets the StatusBarText assigned
+ via window.status
+ @short Called by KJS.
+ */
+ public native void setJSStatusBarText(String text);
+ /**
+ Called by KJS.
+ Sets the DefaultStatusBarText assigned
+ via window.defaultStatus
+ @short Called by KJS.
+ */
+ public native void setJSDefaultStatusBarText(String text);
+ /**
+ Called by KJS.
+ Returns the StatusBarText assigned
+ via window.status
+ @short Called by KJS.
+ */
+ public native String jsStatusBarText();
+ /**
+ Called by KJS.
+ Returns the DefaultStatusBarText assigned
+ via window.defaultStatus
+ @short Called by KJS.
+ */
+ public native String jsDefaultStatusBarText();
+ /**
+ Referrer used for links in this page.
+ @short Referrer used for links in this page.
+ */
+ public native String referrer();
+ /**
+ Referrer used to obtain this page.
+ @short Referrer used to obtain this page.
+ */
+ public native String pageReferrer();
+ /**
+ Last-modified date (in raw string format), if received in the [HTTP] headers.
+ @short Last-modified date (in raw string format), if received in the [HTTP] headers.
+ */
+ public native String lastModified();
+ /**
+ Loads a style sheet into the stylesheet cache.
+ @short Loads a style sheet into the stylesheet cache.
+ */
+ public native void preloadStyleSheet(String url, String stylesheet);
+ /**
+ Loads a script into the script cache.
+ @short Loads a script into the script cache.
+ */
+ public native void preloadScript(String url, String script);
+ /**
+ @short
+ */
+ public native boolean restored();
+ /**
+ Determine if signal should be emitted before, instead or never when a
+ submitForm() happens.
+ @short Determine if signal should be emitted before, instead or never when a submitForm() happens.
+ */
+ public native void setFormNotification(int fn);
+ /**
+ Determine if signal should be emitted before, instead or never when a
+ submitForm() happens.
+ ### KDE4 remove me
+ @short Determine if signal should be emitted before, instead or never when a submitForm() happens.
+ */
+ public native int formNotification();
+ /**
+ Returns the toplevel (origin) URL of this document, even if this
+ part is a frame or an iframe.
+ @return the actual original url.
+
+ @short Returns the toplevel (origin) URL of this document, even if this part is a frame or an iframe.
+ */
+ public native KURL toplevelURL();
+ /**
+ Checks whether the page contains unsubmitted form changes.
+ @return true if form changes exist
+
+ @short Checks whether the page contains unsubmitted form changes.
+ */
+ public native boolean isModified();
+ /**
+ Shows or hides the suppressed popup indicator
+ @short Shows or hides the suppressed popup indicator
+ */
+ public native void setSuppressedPopupIndicator(boolean enable, KHTMLPart originPart);
+ /**
+ @short
+ */
+ public native boolean inProgress();
+ /**
+ Sets the focused node of the document to the specified node. If the node is a form control, the control will
+ receive focus in the same way that it would if the user had clicked on it or tabbed to it with the keyboard. For
+ most other types of elements, there is no visual indication of whether or not they are focused.
+ See activeNode
+ @param node The node to focus
+ @short Sets the focused node of the document to the specified node.
+ */
+ public native void setActiveNode(Node node);
+ /**
+ Stops all animated images on the current and child pages
+ @short Stops all animated images on the current and child pages
+ */
+ public native void stopAnimations();
+ public native String dcopObjectId();
+ /**
+ Enables/disables caret mode.
+ Enabling caret mode displays a caret which can be used to navigate
+ the document using the keyboard only. Caret mode is switched off by
+ default.
+ @param enable <code>true</code> to enable, <code>false</code> to disable caret mode.
+ @short Enables/disables caret mode.
+ */
+ public native void setCaretMode(boolean enable);
+ /**
+ Makes the document editable.
+ Setting this property to <code>true</code> makes the document, and its
+ subdocuments (such as frames, iframes, objects) editable as a whole.
+ FIXME: insert more information about navigation, features etc. as seen fit
+ @param enable <code>true</code> to set document editable, <code>false</code> to set it
+ read-only.
+ @short Makes the document editable.
+ */
+ public native void setEditable(boolean enable);
+ /**
+ Sets the visibility of the caret.
+ This methods displays or hides the caret regardless of the current
+ caret display policy (see setCaretDisplayNonFocused), and regardless
+ of focus.
+ The caret will be shown/hidden only under at least one of
+ the following conditions:
+
+ <li>
+ the document is editable
+ </li>
+
+ <li>
+ the document is in caret mode
+ </li>
+
+ <li>
+ the document's currently focused element is editable
+ </li>
+ @param show <code>true</code> to make visible, <code>false</code> to hide.
+ @short Sets the visibility of the caret.
+ */
+ public native void setCaretVisible(boolean show);
+ public native void submitFormProxy(String action, String url, byte[] formData, String target, String contentType, String boundary);
+ public native void submitFormProxy(String action, String url, byte[] formData, String target, String contentType);
+ public native void submitFormProxy(String action, String url, byte[] formData, String target);
+ /**
+ returns a KURL object for the given url. Use when
+ you know what you're doing.
+ @short returns a KURL object for the given url.
+ */
+ protected native KURL completeURL(String url);
+ /**
+ presents a detailed error message to the user.
+ <code>errorCode</code> kio error code, eg KIO.ERR_SERVER_TIMEOUT.
+ <code>text</code> kio additional information text.
+ <code>url</code> the url that triggered the error.
+ @short presents a detailed error message to the user.
+ */
+ protected native void htmlError(int errorCode, String text, KURL reqUrl);
+ protected native void customEvent(QCustomEvent event);
+ /**
+ Eventhandler of the khtml.MousePressEvent.
+ @short Eventhandler of the khtml.MousePressEvent.
+ */
+ // void khtmlMousePressEvent(khtml::MousePressEvent* arg1); >>>> NOT CONVERTED
+ /**
+ Eventhandler for the khtml.MouseDoubleClickEvent.
+ @short Eventhandler for the khtml.MouseDoubleClickEvent.
+ */
+ // void khtmlMouseDoubleClickEvent(khtml::MouseDoubleClickEvent* arg1); >>>> NOT CONVERTED
+ /**
+ Eventhandler for the khtml.MouseMouseMoveEvent.
+ @short Eventhandler for the khtml.MouseMouseMoveEvent.
+ */
+ // void khtmlMouseMoveEvent(khtml::MouseMoveEvent* arg1); >>>> NOT CONVERTED
+ /**
+ Eventhandler for the khtml.MouseMouseReleaseEvent.
+ @short Eventhandler for the khtml.MouseMouseReleaseEvent.
+ */
+ // void khtmlMouseReleaseEvent(khtml::MouseReleaseEvent* arg1); >>>> NOT CONVERTED
+ /**
+ Eventhandler for the khtml.DrawContentsEvent.
+ @short Eventhandler for the khtml.DrawContentsEvent.
+ */
+ // void khtmlDrawContentsEvent(khtml::DrawContentsEvent* arg1); >>>> NOT CONVERTED
+ /**
+ Internal reimplementation of KParts.Part.guiActivateEvent .
+ @short Internal reimplementation of KParts.Part.guiActivateEvent .
+ */
+ protected native void guiActivateEvent(GUIActivateEvent event);
+ /**
+ Internal empty reimplementation of KParts.ReadOnlyPart.openFile .
+ @short Internal empty reimplementation of KParts.ReadOnlyPart.openFile .
+ */
+ protected native boolean openFile();
+ protected native void urlSelected(String url, int button, int state, String _target, URLArgs args);
+ protected native void urlSelected(String url, int button, int state, String _target);
+ /**
+ This method is called when a new embedded object (include html frames) is to be created.
+ Reimplement it if you want to add support for certain embeddable objects without registering
+ them in the KDE wide registry system (KSyCoCa) . Another reason for re-implementing this
+ method could be if you want to derive from KTHMLPart and also want all html frame objects
+ to be a object of your derived type, in which case you should return a new instance for
+ the mimetype 'text/html' .
+ @short This method is called when a new embedded object (include html frames) is to be created.
+ */
+ protected native ReadOnlyPart createPart(QWidget parentWidget, String widgetName, QObject parent, String name, String mimetype, StringBuffer serviceName, String[] serviceTypes, String[] params);
+ protected native boolean pluginPageQuestionAsked(String mimetype);
+ protected native void setPluginPageQuestionAsked(String mimetype);
+ // void setPageSecurity(KHTMLPart::PageSecurity arg1); >>>> NOT CONVERTED
+ /**
+ Implements the streaming API of KParts.ReadOnlyPart.
+ @short Implements the streaming API of KParts.ReadOnlyPart.
+ */
+ protected native boolean doOpenStream(String mimeType);
+ /**
+ Implements the streaming API of KParts.ReadOnlyPart.
+ @short Implements the streaming API of KParts.ReadOnlyPart.
+ */
+ protected native boolean doWriteStream(byte[] data);
+ /**
+ Implements the streaming API of KParts.ReadOnlyPart.
+ @short Implements the streaming API of KParts.ReadOnlyPart.
+ */
+ protected native boolean doCloseStream();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KHTMLPartSignals.java b/kdejava/koala/org/kde/koala/KHTMLPartSignals.java
new file mode 100644
index 00000000..1130933a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KHTMLPartSignals.java
@@ -0,0 +1,61 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+import org.kde.qt.QObject;
+import org.kde.qt.QPoint;
+import java.util.ArrayList;
+import org.kde.qt.QPainter;
+import org.kde.qt.QCustomEvent;
+import org.kde.qt.QCursor;
+import org.kde.qt.QVariant;
+import org.kde.qt.QWidget;
+
+public interface KHTMLPartSignals {
+ /**
+ Emitted if the cursor is moved over an URL.
+ @short Emitted if the cursor is moved over an URL.
+ */
+ void onURL(String url);
+ /**
+ Emitted when the user clicks the right mouse button on the document.
+ @short Emitted when the user clicks the right mouse button on the document.
+ */
+ void popupMenu(String url, QPoint point);
+ /**
+ This signal is emitted when the selection changes.
+ @short This signal is emitted when the selection changes.
+ */
+ void selectionChanged();
+ /**
+ This signal is emitted when an element retrieves the
+ keyboard focus. Note that the signal argument can be
+ a null node if no element is active, meaning a node
+ has explicitly been deactivated without a new one
+ becoming active.
+ @short This signal is emitted when an element retrieves the keyboard focus.
+ */
+ void nodeActivated(Node arg1);
+ /**
+ void docCreated();
+ /*
+ This signal is emitted whenever the caret position has been changed.
+ The signal transmits the position the DOM.Range way, the node and
+ the zero-based offset within this node.
+ @param node node which the caret is in. This can be null if the caret
+ has been deactivated.
+ @param offset offset within the node. If the node is null, the offset
+ is meaningless.
+ @short
+ */
+ void caretPositionChanged(Node node, long offset);
+ /**
+ If form notification is on, this will be emitted either for a form
+ submit or before the form submit according to the setting.
+ @short If form notification is on, this will be emitted either for a form submit or before the form submit according to the setting.
+ */
+ void formSubmitNotification(String action, String url, byte[] formData, String target, String contentType, String boundary);
+}
diff --git a/kdejava/koala/org/kde/koala/KHTMLSettings.java b/kdejava/koala/org/kde/koala/KHTMLSettings.java
new file mode 100644
index 00000000..358737a2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KHTMLSettings.java
@@ -0,0 +1,173 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Settings for the HTML view.
+ @short Settings for the HTML view.
+
+*/
+public class KHTMLSettings implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KHTMLSettings(Class dummy){}
+
+ /**
+ This enum specifies whether Java/JavaScript execution is allowed.
+ @short This enum specifies whether Java/JavaScript execution is allowed.
+ */
+ public static final int KJavaScriptDunno = 0;
+ public static final int KJavaScriptAccept = 1;
+ public static final int KJavaScriptReject = 2;
+
+ public static final int KAnimationDisabled = 0;
+ public static final int KAnimationLoopOnce = 1;
+ public static final int KAnimationEnabled = 2;
+
+ /**
+ This enum specifies the policy for window.open
+ @short This enum specifies the policy for window.
+ */
+ public static final int KJSWindowOpenAllow = 0;
+ public static final int KJSWindowOpenAsk = 1;
+ public static final int KJSWindowOpenDeny = 2;
+ public static final int KJSWindowOpenSmart = 3;
+
+ /**
+ This enum specifies the policy for window.status and .defaultStatus
+ @short This enum specifies the policy for window.
+ */
+ public static final int KJSWindowStatusAllow = 0;
+ public static final int KJSWindowStatusIgnore = 1;
+
+ /**
+ This enum specifies the policy for window.moveBy and .moveTo
+ @short This enum specifies the policy for window.
+ */
+ public static final int KJSWindowMoveAllow = 0;
+ public static final int KJSWindowMoveIgnore = 1;
+
+ /**
+ This enum specifies the policy for window.resizeBy and .resizeTo
+ @short This enum specifies the policy for window.
+ */
+ public static final int KJSWindowResizeAllow = 0;
+ public static final int KJSWindowResizeIgnore = 1;
+
+ /**
+ This enum specifies the policy for window.focus
+ @short This enum specifies the policy for window.
+ */
+ public static final int KJSWindowFocusAllow = 0;
+ public static final int KJSWindowFocusIgnore = 1;
+
+ /**
+ @short
+ */
+ public KHTMLSettings() {
+ newKHTMLSettings();
+ }
+ private native void newKHTMLSettings();
+ public KHTMLSettings(KHTMLSettings other) {
+ newKHTMLSettings(other);
+ }
+ private native void newKHTMLSettings(KHTMLSettings other);
+ /**
+ Called by constructor and reparseConfiguration
+ @short Called by constructor and reparseConfiguration
+ */
+ public native void init();
+ /** Read settings from <code>config.</code>
+ @param config is a pointer to KConfig object.
+ @param reset if true, settings are always set; if false,
+ settings are only set if the config file has a corresponding key.
+ @short Read settings from <code>config.</code>
+ */
+ public native void init(KConfig config, boolean reset);
+ public native void init(KConfig config);
+ public native boolean changeCursor();
+ public native boolean underlineLink();
+ public native boolean hoverLink();
+ public native boolean allowTabulation();
+ public native boolean autoSpellCheck();
+ public native int showAnimations();
+ public native String stdFontName();
+ public native String fixedFontName();
+ public native String serifFontName();
+ public native String sansSerifFontName();
+ public native String cursiveFontName();
+ public native String fantasyFontName();
+ public native void setStdFontName(String n);
+ public native void setFixedFontName(String n);
+ public native int minFontSize();
+ public native int mediumFontSize();
+ public native boolean jsErrorsEnabled();
+ public native void setJSErrorsEnabled(boolean enabled);
+ public native String encoding();
+ public native boolean followSystemColors();
+ public native QColor textColor();
+ public native QColor baseColor();
+ public native QColor linkColor();
+ public native QColor vLinkColor();
+ public native boolean autoLoadImages();
+ public native boolean unfinishedImageFrame();
+ public native boolean isOpenMiddleClickEnabled();
+ public native boolean isBackRightClickEnabled();
+ public native boolean isJavaEnabled(String hostname);
+ public native boolean isJavaEnabled();
+ public native boolean isJavaScriptEnabled(String hostname);
+ public native boolean isJavaScriptEnabled();
+ public native boolean isJavaScriptDebugEnabled(String hostname);
+ public native boolean isJavaScriptDebugEnabled();
+ public native boolean isJavaScriptErrorReportingEnabled(String hostname);
+ public native boolean isJavaScriptErrorReportingEnabled();
+ public native boolean isPluginsEnabled(String hostname);
+ public native boolean isPluginsEnabled();
+ public native boolean isAdFiltered(String url);
+ public native boolean isAdFilterEnabled();
+ public native boolean isHideAdsEnabled();
+ public native void addAdFilter(String url);
+ public native boolean accessKeysEnabled();
+ public native int windowOpenPolicy(String hostname);
+ public native int windowOpenPolicy();
+ public native int windowMovePolicy(String hostname);
+ public native int windowMovePolicy();
+ public native int windowResizePolicy(String hostname);
+ public native int windowResizePolicy();
+ public native int windowStatusPolicy(String hostname);
+ public native int windowStatusPolicy();
+ public native int windowFocusPolicy(String hostname);
+ public native int windowFocusPolicy();
+ /** reads from <code>config</code>'s current group, forcing initialization
+ if <code>reset</code> is true.
+ @param config is a pointer to KConfig object.
+ @param reset true if initialization is to be forced.
+ @param global true if the global domain is to be read.
+ @param pd_settings will be initialised with the computed (inherited)
+ settings.
+ @short reads from <code>config</code>'s current group, forcing initialization if <code>reset</code> is true.
+ */
+ // void readDomainSettings(KConfig* arg1,bool arg2,bool arg3,KPerDomainSettings& arg4); >>>> NOT CONVERTED
+ public native String settingsToCSS();
+ public native String userStyleSheet();
+ public native boolean isFormCompletionEnabled();
+ public native int maxFormCompletionItems();
+ public native boolean isAutoDelayedActionsEnabled();
+ public native String fallbackAccessKeysAssignments();
+ public native void setJSPopupBlockerPassivePopup(boolean enabled);
+ public native boolean jsPopupBlockerPassivePopup();
+ public static native int strToAdvice(String _str);
+ public static native void splitDomainAdvice(String configStr, StringBuffer domain, int javaAdvice, int javaScriptAdvice);
+ public static native String adviceToStr(int _advice);
+ public static native String availableFamilies();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KHTMLView.java b/kdejava/koala/org/kde/koala/KHTMLView.java
new file mode 100644
index 00000000..fff1a853
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KHTMLView.java
@@ -0,0 +1,139 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QHideEvent;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QCloseEvent;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QContextMenuEvent;
+import org.kde.qt.QPainter;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QTimerEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QWheelEvent;
+import org.kde.qt.QScrollView;
+
+/**
+
+ Renders and displays HTML in a QScrollView.
+ Suitable for use as an application's main view.
+ See {@link KHTMLViewSignals} for signals emitted by KHTMLView
+ @short Renders and displays HTML in a QScrollView.
+
+*/
+public class KHTMLView extends QScrollView {
+ protected KHTMLView(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KHTMLView.
+ @short Constructs a KHTMLView.
+ */
+ public KHTMLView(KHTMLPart part, QWidget parent, String name) {
+ super((Class) null);
+ newKHTMLView(part,parent,name);
+ }
+ private native void newKHTMLView(KHTMLPart part, QWidget parent, String name);
+ public KHTMLView(KHTMLPart part, QWidget parent) {
+ super((Class) null);
+ newKHTMLView(part,parent);
+ }
+ private native void newKHTMLView(KHTMLPart part, QWidget parent);
+ /**
+ Returns a pointer to the KHTMLPart that is
+ rendering the page.
+ @short Returns a pointer to the KHTMLPart that is rendering the page.
+ */
+ public native KHTMLPart part();
+ public native int frameWidth();
+ /**
+ Sets a margin in x direction.
+ @short Sets a margin in x direction.
+ */
+ public native void setMarginWidth(int x);
+ /**
+ Returns the margin width.
+ A return value of -1 means the default value will be used.
+ @short Returns the margin width.
+ */
+ public native int marginWidth();
+ public native void setMarginHeight(int y);
+ /**
+ Returns the margin height.
+ A return value of -1 means the default value will be used.
+ @short Returns the margin height.
+ */
+ public native int marginHeight();
+ /**
+ Sets verticals scrollbar mode. Reimplemented for internal reasons.
+ @short Sets verticals scrollbar mode.
+ */
+ public native void setVScrollBarMode(int mode);
+ /**
+ Sets horizontal scrollbar mode. Reimplemented for internal reasons.
+ @short Sets horizontal scrollbar mode.
+ */
+ public native void setHScrollBarMode(int mode);
+ /**
+ Prints the HTML document.
+ @short Prints the HTML document.
+ */
+ public native void print();
+ /**
+ Prints the HTML document.
+ @param quick if true, fully automated printing, without print dialog
+ @short Prints the HTML document.
+ */
+ public native void print(boolean quick);
+ /**
+ ensure the display is up to date
+ @short ensure the display is up to date
+ */
+ public native void updateLayout();
+ /**
+ Display all accesskeys in small tooltips
+ @short Display all accesskeys in small tooltips
+ */
+ public native void displayAccessKeys();
+ protected native void clear();
+ protected native void resizeEvent(QResizeEvent event);
+ public native void showEvent(QShowEvent arg1);
+ protected native void hideEvent(QHideEvent arg1);
+ protected native boolean focusNextPrevChild(boolean next);
+ protected native void drawContents(QPainter p, int clipx, int clipy, int clipw, int cliph);
+ protected native void drawContents(QPainter arg1);
+ protected native void viewportMousePressEvent(QMouseEvent arg1);
+ protected native void focusInEvent(QFocusEvent arg1);
+ protected native void focusOutEvent(QFocusEvent arg1);
+ protected native void viewportMouseDoubleClickEvent(QMouseEvent arg1);
+ protected native void viewportMouseMoveEvent(QMouseEvent arg1);
+ protected native void viewportMouseReleaseEvent(QMouseEvent arg1);
+ protected native void viewportResizeEvent(QResizeEvent arg1);
+ protected native void viewportWheelEvent(QWheelEvent arg1);
+ protected native void dragEnterEvent(QDragEnterEvent arg1);
+ protected native void dropEvent(QDropEvent arg1);
+ protected native void closeEvent(QCloseEvent arg1);
+ public native boolean eventFilter(QObject arg1, QEvent arg2);
+ protected native void keyPressEvent(QKeyEvent _ke);
+ protected native void keyReleaseEvent(QKeyEvent _ke);
+ protected native void contentsContextMenuEvent(QContextMenuEvent _ce);
+ protected native void doAutoScroll();
+ protected native void timerEvent(QTimerEvent arg1);
+ protected native void slotPaletteChanged();
+ protected native void slotScrollBarMoved();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KHTMLViewSignals.java b/kdejava/koala/org/kde/koala/KHTMLViewSignals.java
new file mode 100644
index 00000000..95441733
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KHTMLViewSignals.java
@@ -0,0 +1,30 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QHideEvent;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QCloseEvent;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QContextMenuEvent;
+import org.kde.qt.QPainter;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QTimerEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QWheelEvent;
+
+public interface KHTMLViewSignals {
+ void finishedLayout();
+ void cleared();
+ void zoomView(int arg1);
+ void hideAccessKeys();
+ void repaintAccessKeys();
+ void findAheadActive(boolean arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KHelpMenu.java b/kdejava/koala/org/kde/koala/KHelpMenu.java
new file mode 100644
index 00000000..2f448c71
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KHelpMenu.java
@@ -0,0 +1,197 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ This class provides the standard %KDE help menu with the default "about"
+ dialog boxes and help entry.
+ This class is used in KMainWindow so
+ normally you don't need to use this class yourself. However, if you
+ need the help menu or any of its dialog boxes in your code that is
+ not subclassed from KMainWindow you should use this class.
+ The usage is simple:
+ <pre>
+ mHelpMenu = new KHelpMenu( this, <someText> );
+ kmenubar.insertItem(i18n("&Help"), mHelpMenu.menu() );
+ </pre>
+ or if you just want to open a dialog box:
+ <pre>
+ mHelpMenu = new KHelpMenu( this, <someText> );
+ connect( this, SIGNAL("someSignal()"), mHelpMenu,SLOT("mHelpMenu.aboutKDE()"));
+ </pre>
+ IMPORTANT:
+ The first time you use KHelpMenu.menu(), a KPopupMenu object is
+ allocated. Only one object is created by the class so if you call
+ KHelpMenu.menu() twice or more, the same pointer is returned. The class
+ will destroy the popupmenu in the destructor so do not delete this
+ pointer yourself.
+ The KHelpMenu object will be deleted when its parent is destroyed but you
+ can delete it yourself if you want. The code below will always work.
+ <pre>
+ MyClass.~MyClass()
+ {
+ delete mHelpMenu;
+ }
+ </pre>
+ Using your own "about application" dialog box:
+ The standard "about application" dialog box is quite simple. If you
+ need a dialog box with more functionality you must design that one
+ yourself. When you want to display the dialog you can choose one of
+ two methods. Common for both is that you must make a help menu object
+ with no text argument If the text is missing the default dialog box
+ will not be displayed:
+ Example 1 Using showAboutApplication signal (preferred)
+ <pre>
+ void MyClass.myFunc()
+ {
+ ..
+ KHelpMenu helpMenu = new KHelpMenu( this );
+ connect( helpMenu, SIGNAL("showAboutApplication()"),
+ this, SLOT("myDialogSlot()"));
+ ..
+ }
+ void MyClass.myDialogSlot()
+ {
+ <activate your custom dialog>
+ }
+ </pre>
+ Example 2 Old style - connecting directly to the menu entry.
+ <pre>
+ void MyClass.myFunc()
+ {
+ KHelpMenu helpMenu = new KHelpMenu( this );
+ KPopupMenu help = mHelpMenu.menu();
+ help.connectItem( KHelpMenu.menuAboutApp, this, SLOT("myDialogSlot()") );
+ }
+ void MyClass.myDialogSlot()
+ {
+ <activate your custom dialog>
+ }
+ </pre>
+ See {@link KHelpMenuSignals} for signals emitted by KHelpMenu
+ @author Espen Sand (espen@kde.org)
+
+ @short Standard %KDE help menu with dialog boxes.
+
+*/
+public class KHelpMenu extends QObject {
+ protected KHelpMenu(Class dummy){super((Class) null);}
+ public static final int menuHelpContents = 0;
+ public static final int menuWhatsThis = 1;
+ public static final int menuAboutApp = 2;
+ public static final int menuAboutKDE = 3;
+ public static final int menuReportBug = 4;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor.
+ @param parent The parent of the dialog boxes. The boxes are modeless
+ and will be centered with respect to the parent.
+ @param aboutAppText User definable string that is used in the
+ application specific dialog box. Note: The help menu will
+ not open this dialog box if you don't define a string. See
+ showAboutApplication() for more information.
+ @param showWhatsThis Decides whether a "Whats this" entry will be
+ added to the dialog.
+ @short Constructor.
+ */
+ public KHelpMenu(QWidget parent, String aboutAppText, boolean showWhatsThis) {
+ super((Class) null);
+ newKHelpMenu(parent,aboutAppText,showWhatsThis);
+ }
+ private native void newKHelpMenu(QWidget parent, String aboutAppText, boolean showWhatsThis);
+ public KHelpMenu(QWidget parent, String aboutAppText) {
+ super((Class) null);
+ newKHelpMenu(parent,aboutAppText);
+ }
+ private native void newKHelpMenu(QWidget parent, String aboutAppText);
+ public KHelpMenu(QWidget parent) {
+ super((Class) null);
+ newKHelpMenu(parent);
+ }
+ private native void newKHelpMenu(QWidget parent);
+ public KHelpMenu() {
+ super((Class) null);
+ newKHelpMenu();
+ }
+ private native void newKHelpMenu();
+ /**
+ Constructor.
+ This alternative constructor is mainly useful if you want to
+ overide the standard actions (aboutApplication(), aboutKDE(),
+ helpContents(), reportBug, and optionally whatsThis).
+ @param parent The parent of the dialog boxes. The boxes are modeless
+ and will be centered with respect to the parent.
+ @param aboutData User and app data used in the About app dialog
+ @param showWhatsThis Decides whether a "Whats this" entry will be
+ added to the dialog.
+ @param actions KActionCollection that is used instead of the
+ standard actions.
+ @short Constructor.
+ */
+ public KHelpMenu(QWidget parent, KAboutData aboutData, boolean showWhatsThis, KActionCollection actions) {
+ super((Class) null);
+ newKHelpMenu(parent,aboutData,showWhatsThis,actions);
+ }
+ private native void newKHelpMenu(QWidget parent, KAboutData aboutData, boolean showWhatsThis, KActionCollection actions);
+ public KHelpMenu(QWidget parent, KAboutData aboutData, boolean showWhatsThis) {
+ super((Class) null);
+ newKHelpMenu(parent,aboutData,showWhatsThis);
+ }
+ private native void newKHelpMenu(QWidget parent, KAboutData aboutData, boolean showWhatsThis);
+ public KHelpMenu(QWidget parent, KAboutData aboutData) {
+ super((Class) null);
+ newKHelpMenu(parent,aboutData);
+ }
+ private native void newKHelpMenu(QWidget parent, KAboutData aboutData);
+ /**
+ Returns a popup menu you can use in the menu bar or where you
+ need it.
+ Note: This method will only create one instance of the menu. If
+ you call this method twice or more the same pointer is returned
+ @short Returns a popup menu you can use in the menu bar or where you need it.
+ */
+ public native KPopupMenu menu();
+ /**
+ Opens the help page for the application. The application name is
+ used as a key to determine what to display and the system will attempt
+ to open \<appName\>/index.html.
+ @short Opens the help page for the application.
+ */
+ public native void appHelpActivated();
+ /**
+ Activates What's This help for the application.
+ @short Activates What's This help for the application.
+ */
+ public native void contextHelpActivated();
+ /**
+ Opens an application specific dialog box. The dialog box will display
+ the string that was defined in the constructor. If that string was
+ empty the showAboutApplication() is emitted instead.
+ @short Opens an application specific dialog box.
+ */
+ public native void aboutApplication();
+ /**
+ Opens the standard "About KDE" dialog box.
+ @short Opens the standard "About KDE" dialog box.
+ */
+ public native void aboutKDE();
+ /**
+ Opens the standard "Report Bugs" dialog box.
+ @short Opens the standard "Report Bugs" dialog box.
+ */
+ public native void reportBug();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KHelpMenuSignals.java b/kdejava/koala/org/kde/koala/KHelpMenuSignals.java
new file mode 100644
index 00000000..cf7e0a08
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KHelpMenuSignals.java
@@ -0,0 +1,18 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KHelpMenuSignals {
+ /**
+ This signal is emitted from aboutApplication() if no
+ "about application" string has been defined. The standard
+ application specific dialog box that is normally activated in
+ aboutApplication() will not be displayed when this signal
+ is emitted.
+ @short This signal is emitted from aboutApplication() if no "about application" string has been defined.
+ */
+ void showAboutApplication();
+}
diff --git a/kdejava/koala/org/kde/koala/KHistoryCombo.java b/kdejava/koala/org/kde/koala/KHistoryCombo.java
new file mode 100644
index 00000000..59750836
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KHistoryCombo.java
@@ -0,0 +1,223 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWheelEvent;
+
+/**
+
+ A combobox which implements a history like a unix shell. You can navigate
+ through all the items by using the Up or Down arrows (configurable of
+ course). Additionally, weighted completion is available. So you should
+ load and save the completion list to preserve the weighting between
+ sessions.
+ KHistoryCombo obeys the HISTCONTROL environment variable to determine
+ whether duplicates in the history should be tolerated in
+ addToHistory() or not. During construction of KHistoryCombo,
+ duplicates will be disabled when HISTCONTROL is set to "ignoredups" or
+ "ignoreboth". Otherwise, duplicates are enabled by default.
+ See {@link KHistoryComboSignals} for signals emitted by KHistoryCombo
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short A combobox for offering a history and completion.
+
+*/
+public class KHistoryCombo extends KComboBox {
+ protected KHistoryCombo(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a "read-write" combobox. A read-only history combobox
+ doesn't make much sense, so it is only available as read-write.
+ Completion will be used automatically for the items in the combo.
+ The insertion-policy is set to NoInsertion, you have to add the items
+ yourself via the slot addToHistory. If you want every item added,
+ use
+ <pre>
+ connect( combo, SIGNAL("activated( String )"),
+ combo, SLOT("addToHistory( String )"));
+ </pre>
+ Use QComboBox.setMaxCount() to limit the history.
+ <code>parent</code> the parent object of this widget.
+ <code>name</code> the name of this widget.
+ @short Constructs a "read-write" combobox.
+ */
+ public KHistoryCombo(QWidget parent, String name) {
+ super((Class) null);
+ newKHistoryCombo(parent,name);
+ }
+ private native void newKHistoryCombo(QWidget parent, String name);
+ public KHistoryCombo(QWidget parent) {
+ super((Class) null);
+ newKHistoryCombo(parent);
+ }
+ private native void newKHistoryCombo(QWidget parent);
+ public KHistoryCombo() {
+ super((Class) null);
+ newKHistoryCombo();
+ }
+ private native void newKHistoryCombo();
+ /**
+ Same as the previous constructor, but additionally has the option
+ to specify whether you want to let KHistoryCombo handle completion
+ or not. If set to <code>true</code>, KHistoryCombo will sync the completion to the
+ contents of the combobox.
+ @short Same as the previous constructor, but additionally has the option to specify whether you want to let KHistoryCombo handle completion or not.
+ */
+ public KHistoryCombo(boolean useCompletion, QWidget parent, String name) {
+ super((Class) null);
+ newKHistoryCombo(useCompletion,parent,name);
+ }
+ private native void newKHistoryCombo(boolean useCompletion, QWidget parent, String name);
+ public KHistoryCombo(boolean useCompletion, QWidget parent) {
+ super((Class) null);
+ newKHistoryCombo(useCompletion,parent);
+ }
+ private native void newKHistoryCombo(boolean useCompletion, QWidget parent);
+ public KHistoryCombo(boolean useCompletion) {
+ super((Class) null);
+ newKHistoryCombo(useCompletion);
+ }
+ private native void newKHistoryCombo(boolean useCompletion);
+ /**
+ Inserts <code>items</code> into the combobox. <code>items</code> might get
+ truncated if it is longer than maxCount()
+ @short Inserts <code>items</code> into the combobox.
+ @see #historyItems
+ */
+ public native void setHistoryItems(String[] items);
+ /**
+ Inserts <code>items</code> into the combobox. <code>items</code> might get
+ truncated if it is longer than maxCount()
+ Set <code>setCompletionList</code> to true, if you don't have a list of
+ completions. This tells KHistoryCombo to use all the items for the
+ completion object as well.
+ You won't have the benefit of weighted completion though, so normally
+ you should do something like
+ <pre>
+ KConfig config = kapp.config();
+ ArrayList list;
+ // load the history and completion list after creating the history combo
+ list = config.readListEntry( "Completion list" );
+ combo.completionObject().setItems( list );
+ list = config.readListEntry( "History list" );
+ combo.setHistoryItems( list );
+ [...]
+ // save the history and completion list when the history combo is
+ // destroyed
+ list = combo.completionObject().items()
+ config.writeEntry( "Completion list", list );
+ list = combo.historyItems();
+ config.writeEntry( "History list", list );
+ </pre>
+ Be sure to use different names for saving with KConfig if you have more
+ than one KHistoryCombo.
+ Note: When <code>setCompletionList</code> is true, the items are inserted into the
+ KCompletion object with mode KCompletion.Insertion and the mode is set
+ to KCompletion.Weighted afterwards.
+ @short Inserts <code>items</code> into the combobox.
+ @see #historyItems
+ @see KComboBox#completionObject
+ @see KCompletion#setItems
+ @see KCompletion#items
+ */
+ public native void setHistoryItems(String[] items, boolean setCompletionList);
+ /**
+ Returns the list of history items. Empty, when this is not a read-write
+ combobox.
+ @short Returns the list of history items.
+ @see #setHistoryItems
+ */
+ public native ArrayList historyItems();
+ /**
+ Removes all items named <code>item.</code>
+ @return <code>true</code> if at least one item was removed.
+
+ @short Removes all items named <code>item.</code>
+ @see #addToHistory
+ */
+ public native boolean removeFromHistory(String item);
+ /**
+ Sets a pixmap provider, so that items in the combobox can have a pixmap.
+ KPixmapProvider is just an abstract class with the one pure virtual
+ method KPixmapProvider.pixmapFor(). This method is called whenever
+ an item is added to the KHistoryComboBox. Implement it to return your
+ own custom pixmaps, or use the KURLPixmapProvider from libkio,
+ which uses KMimeType.pixmapForURL to resolve icons.
+ Set <code>prov</code> to null if you want to disable pixmaps. Default no pixmaps.
+ @short Sets a pixmap provider, so that items in the combobox can have a pixmap.
+ @see #pixmapProvider
+ */
+ public native void setPixmapProvider(KPixmapProvider prov);
+ /**
+ @return the current pixmap provider.
+
+ @short
+ @see #setPixmapProvider
+ @see KPixmapProvider
+ */
+ public native KPixmapProvider pixmapProvider();
+ /**
+ Resets the current position of the up/down history. Call this
+ when you manually call setCurrentItem() or clearEdit().
+ @short Resets the current position of the up/down history.
+ */
+ public native void reset();
+ /**
+ Adds an item to the end of the history list and to the completion list.
+ If maxCount() is reached, the first item of the list will be
+ removed.
+ If the last inserted item is the same as <code>item</code>, it will not be
+ inserted again.
+ If duplicatesEnabled() is false, any equal existing item will be
+ removed before <code>item</code> is added.
+ Note: By using this method and not the Q and KComboBox insertItem()
+ methods, you make sure that the combobox stays in sync with the
+ completion. It would be annoying if completion would give an item
+ not in the combobox, and vice versa.
+ @short Adds an item to the end of the history list and to the completion list.
+ @see #removeFromHistory
+ @see org.kde.qt.QComboBox#setDuplicatesEnabled
+ */
+ public native void addToHistory(String item);
+ /**
+ Clears the history and the completion list.
+ @short Clears the history and the completion list.
+ */
+ public native void clearHistory();
+ /**
+ Handling key-events, the shortcuts to rotate the items.
+ @short Handling key-events, the shortcuts to rotate the items.
+ */
+ protected native void keyPressEvent(QKeyEvent arg1);
+ /**
+ Handling wheel-events, to rotate the items.
+ @short Handling wheel-events, to rotate the items.
+ */
+ protected native void wheelEvent(QWheelEvent ev);
+ /**
+ Inserts <code>items</code> into the combo, honoring pixmapProvider()
+ Does not update the completionObject.
+ Note: duplicatesEnabled() is not honored here.
+ Called from setHistoryItems() and setPixmapProvider()
+ @short Inserts <code>items</code> into the combo, honoring pixmapProvider() Does not update the completionObject.
+ */
+ protected native void insertItems(String[] items);
+ /**
+ @return if we can modify the completion object or not.
+
+ @short
+ */
+ protected native boolean useCompletion();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KHistoryComboSignals.java b/kdejava/koala/org/kde/koala/KHistoryComboSignals.java
new file mode 100644
index 00000000..4af6bc3d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KHistoryComboSignals.java
@@ -0,0 +1,17 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWheelEvent;
+
+public interface KHistoryComboSignals {
+ /**
+ Emitted when the history was cleared by the entry in the popup menu.
+ @short Emitted when the history was cleared by the entry in the popup menu.
+ */
+ void cleared();
+}
diff --git a/kdejava/koala/org/kde/koala/KIDNA.java b/kdejava/koala/org/kde/koala/KIDNA.java
new file mode 100644
index 00000000..59669668
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIDNA.java
@@ -0,0 +1,30 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+*/
+public class KIDNA {
+ /**
+ Converts an International Domain Name <code>idna</code> to
+ its ASCII representation
+ If conversion is not possible, an empty string is returned.
+ @short Converts an International Domain Name <code>idna</code> to its ASCII representation
+ */
+ public static native String toAsciiCString(String idna);
+ /**
+ Converts an International Domain Name <code>idna</code> to
+ its ASCII representation
+ If conversion is not possible, an empty string is returned.
+ @short Converts an International Domain Name <code>idna</code> to its ASCII representation
+ */
+ public static native String toAscii(String idna);
+ /**
+ Converts an International Domain Name <code>idna</code> to
+ its UNICODE representation
+ @short Converts an International Domain Name <code>idna</code> to its UNICODE representation
+ */
+ public static native String toUnicode(String idna);
+}
diff --git a/kdejava/koala/org/kde/koala/KIO.java b/kdejava/koala/org/kde/koala/KIO.java
new file mode 100644
index 00000000..bca2a331
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIO.java
@@ -0,0 +1,1179 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QDomDocument;
+import org.kde.qt.QMimeSourceInterface;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+import java.util.ArrayList;
+import org.kde.qt.QMimeSource;
+import org.kde.qt.QWidget;
+
+/**
+
+ @short A namespace for KIO globals.
+
+*/
+public class KIO {
+ public static final int S_SKIP = 1;
+ public static final int S_AUTO_SKIP = 2;
+ public static final int S_CANCEL = 0;
+
+ public static final int M_OVERWRITE = 1;
+ public static final int M_OVERWRITE_ITSELF = 2;
+ public static final int M_SKIP = 4;
+ public static final int M_SINGLE = 8;
+ public static final int M_MULTI = 16;
+ public static final int M_RESUME = 32;
+ public static final int M_NORENAME = 64;
+
+ /**
+ The result of open_RenameDlg().
+ @short The result of open_RenameDlg().
+ */
+ public static final int R_RESUME = 6;
+ public static final int R_RESUME_ALL = 7;
+ public static final int R_OVERWRITE = 4;
+ public static final int R_OVERWRITE_ALL = 5;
+ public static final int R_SKIP = 2;
+ public static final int R_AUTO_SKIP = 3;
+ public static final int R_RENAME = 1;
+ public static final int R_CANCEL = 0;
+
+ /**
+ Commands that can be invoked by a job.
+ @short Commands that can be invoked by a job.
+ */
+ public static final int CMD_HOST = '0';
+ public static final int CMD_CONNECT = '1';
+ public static final int CMD_DISCONNECT = '2';
+ public static final int CMD_SLAVE_STATUS = '3';
+ public static final int CMD_SLAVE_CONNECT = '4';
+ public static final int CMD_SLAVE_HOLD = '5';
+ public static final int CMD_NONE = 'A';
+ public static final int CMD_TESTDIR = 'B';
+ public static final int CMD_GET = 'C';
+ public static final int CMD_PUT = 'D';
+ public static final int CMD_STAT = 'E';
+ public static final int CMD_MIMETYPE = 'F';
+ public static final int CMD_LISTDIR = 'G';
+ public static final int CMD_MKDIR = 'H';
+ public static final int CMD_RENAME = 'I';
+ public static final int CMD_COPY = 'J';
+ public static final int CMD_DEL = 'K';
+ public static final int CMD_CHMOD = 'L';
+ public static final int CMD_SPECIAL = 'M';
+ public static final int CMD_USERPASS = 'N';
+ public static final int CMD_REPARSECONFIGURATION = 'O';
+ public static final int CMD_META_DATA = 'P';
+ public static final int CMD_SYMLINK = 'Q';
+ public static final int CMD_SUBURL = 'R';
+ public static final int CMD_MESSAGEBOXANSWER = 'S';
+ public static final int CMD_RESUMEANSWER = 'T';
+ public static final int CMD_CONFIG = 'U';
+ public static final int CMD_MULTI_GET = 'V';
+
+ /**
+ Error codes that can be emitted by KIO.
+ @short Error codes that can be emitted by KIO.
+ */
+ public static final int ERR_CANNOT_OPEN_FOR_READING = 1;
+ public static final int ERR_CANNOT_OPEN_FOR_WRITING = 2;
+ public static final int ERR_CANNOT_LAUNCH_PROCESS = 3;
+ public static final int ERR_INTERNAL = 4;
+ public static final int ERR_MALFORMED_URL = 5;
+ public static final int ERR_UNSUPPORTED_PROTOCOL = 6;
+ public static final int ERR_NO_SOURCE_PROTOCOL = 7;
+ public static final int ERR_UNSUPPORTED_ACTION = 8;
+ public static final int ERR_IS_DIRECTORY = 9;
+ public static final int ERR_IS_FILE = 10;
+ public static final int ERR_DOES_NOT_EXIST = 11;
+ public static final int ERR_FILE_ALREADY_EXIST = 12;
+ public static final int ERR_DIR_ALREADY_EXIST = 13;
+ public static final int ERR_UNKNOWN_HOST = 14;
+ public static final int ERR_ACCESS_DENIED = 15;
+ public static final int ERR_WRITE_ACCESS_DENIED = 16;
+ public static final int ERR_CANNOT_ENTER_DIRECTORY = 17;
+ public static final int ERR_PROTOCOL_IS_NOT_A_FILESYSTEM = 18;
+ public static final int ERR_CYCLIC_LINK = 19;
+ public static final int ERR_USER_CANCELED = 20;
+ public static final int ERR_CYCLIC_COPY = 21;
+ public static final int ERR_COULD_NOT_CREATE_SOCKET = 22;
+ public static final int ERR_COULD_NOT_CONNECT = 23;
+ public static final int ERR_CONNECTION_BROKEN = 24;
+ public static final int ERR_NOT_FILTER_PROTOCOL = 25;
+ public static final int ERR_COULD_NOT_MOUNT = 26;
+ public static final int ERR_COULD_NOT_UNMOUNT = 27;
+ public static final int ERR_COULD_NOT_READ = 28;
+ public static final int ERR_COULD_NOT_WRITE = 29;
+ public static final int ERR_COULD_NOT_BIND = 30;
+ public static final int ERR_COULD_NOT_LISTEN = 31;
+ public static final int ERR_COULD_NOT_ACCEPT = 32;
+ public static final int ERR_COULD_NOT_LOGIN = 33;
+ public static final int ERR_COULD_NOT_STAT = 34;
+ public static final int ERR_COULD_NOT_CLOSEDIR = 35;
+ public static final int ERR_COULD_NOT_MKDIR = 37;
+ public static final int ERR_COULD_NOT_RMDIR = 38;
+ public static final int ERR_CANNOT_RESUME = 39;
+ public static final int ERR_CANNOT_RENAME = 40;
+ public static final int ERR_CANNOT_CHMOD = 41;
+ public static final int ERR_CANNOT_DELETE = 42;
+ public static final int ERR_SLAVE_DIED = 43;
+ public static final int ERR_OUT_OF_MEMORY = 44;
+ public static final int ERR_UNKNOWN_PROXY_HOST = 45;
+ public static final int ERR_COULD_NOT_AUTHENTICATE = 46;
+ public static final int ERR_ABORTED = 47;
+ public static final int ERR_INTERNAL_SERVER = 48;
+ public static final int ERR_SERVER_TIMEOUT = 49;
+ public static final int ERR_SERVICE_NOT_AVAILABLE = 50;
+ public static final int ERR_UNKNOWN = 51;
+ public static final int ERR_UNKNOWN_INTERRUPT = 53;
+ public static final int ERR_CANNOT_DELETE_ORIGINAL = 54;
+ public static final int ERR_CANNOT_DELETE_PARTIAL = 55;
+ public static final int ERR_CANNOT_RENAME_ORIGINAL = 56;
+ public static final int ERR_CANNOT_RENAME_PARTIAL = 57;
+ public static final int ERR_NEED_PASSWD = 58;
+ public static final int ERR_CANNOT_SYMLINK = 59;
+ public static final int ERR_NO_CONTENT = 60;
+ public static final int ERR_DISK_FULL = 61;
+ public static final int ERR_IDENTICAL_FILES = 62;
+ public static final int ERR_SLAVE_DEFINED = 63;
+ public static final int ERR_UPGRADE_REQUIRED = 64;
+ public static final int ERR_POST_DENIED = 65;
+
+ /**
+ Constants used to specify the type of a KUDSAtom.
+ @short Constants used to specify the type of a KUDSAtom.
+ */
+ public static final int UDS_STRING = 1;
+ public static final int UDS_LONG = 2;
+ public static final int UDS_TIME = 4|UDS_LONG;
+ public static final int UDS_SIZE = 8|UDS_LONG;
+ public static final int UDS_SIZE_LARGE = 32768|UDS_LONG;
+ public static final int UDS_USER = 16|UDS_STRING;
+ public static final int UDS_ICON_NAME = 24|UDS_STRING;
+ public static final int UDS_GROUP = 32|UDS_STRING;
+ public static final int UDS_EXTRA = 48|UDS_STRING;
+ public static final int UDS_NAME = 64|UDS_STRING;
+ public static final int UDS_LOCAL_PATH = 72|UDS_STRING;
+ public static final int UDS_HIDDEN = 80|UDS_LONG;
+ public static final int UDS_EXTENDED_ACL = 88|UDS_LONG;
+ public static final int UDS_ACL_STRING = 96|UDS_STRING;
+ public static final int UDS_DEFAULT_ACL_STRING = 104|UDS_STRING;
+ public static final int UDS_ACCESS = 128|UDS_LONG;
+ public static final int UDS_MODIFICATION_TIME = 256|UDS_TIME;
+ public static final int UDS_ACCESS_TIME = 512|UDS_TIME;
+ public static final int UDS_CREATION_TIME = 1024|UDS_TIME;
+ public static final int UDS_FILE_TYPE = 2048|UDS_LONG;
+ public static final int UDS_LINK_DEST = 4096|UDS_STRING;
+ public static final int UDS_URL = 8192|UDS_STRING;
+ public static final int UDS_MIME_TYPE = 16384|UDS_STRING;
+ public static final int UDS_GUESSED_MIME_TYPE = 16392|UDS_STRING;
+ public static final int UDS_XML_PROPERTIES = 0x8000|UDS_STRING;
+
+ /**
+ Specifies how to use the cache.
+ @short Specifies how to use the cache.
+ @see #parseCacheControl
+ @see #getCacheControlString
+ */
+ public static final int CC_CacheOnly = 0;
+ public static final int CC_Cache = 1;
+ public static final int CC_Verify = 2;
+ public static final int CC_Refresh = 3;
+ public static final int CC_Reload = 4;
+
+ public static final int SupportsChmod = 0;
+ public static final int SupportsChown = 1;
+ public static final int SupportsUTime = 2;
+ public static final int SupportsSymlinks = 3;
+ public static final int CaseInsensitive = 4;
+
+ /** HTTP / DAV method * @short HTTP / DAV method
+ */
+ public static final int HTTP_GET = 0;
+ public static final int HTTP_PUT = 1;
+ public static final int HTTP_POST = 2;
+ public static final int HTTP_HEAD = 3;
+ public static final int HTTP_DELETE = 4;
+ public static final int HTTP_OPTIONS = 5;
+ public static final int DAV_PROPFIND = 6;
+ public static final int DAV_PROPPATCH = 7;
+ public static final int DAV_MKCOL = 8;
+ public static final int DAV_COPY = 9;
+ public static final int DAV_MOVE = 10;
+ public static final int DAV_LOCK = 11;
+ public static final int DAV_UNLOCK = 12;
+ public static final int DAV_SEARCH = 13;
+ public static final int DAV_SUBSCRIBE = 14;
+ public static final int DAV_UNSUBSCRIBE = 15;
+ public static final int DAV_POLL = 16;
+ public static final int DAV_NOTIFY = 17;
+ public static final int HTTP_UNKNOWN = -1;
+
+ /**
+ Identifiers for KIO informational messages.
+ @short Identifiers for KIO informational messages.
+ */
+ public static final int INF_TOTAL_SIZE = 10;
+ public static final int INF_PROCESSED_SIZE = 11;
+ public static final int INF_SPEED = 12;
+ public static final int INF_REDIRECTION = 20;
+ public static final int INF_MIME_TYPE = 21;
+ public static final int INF_ERROR_PAGE = 22;
+ public static final int INF_WARNING = 23;
+ public static final int INF_GETTING_FILE = 24;
+ public static final int INF_NEED_PASSWD = 25;
+ public static final int INF_INFOMESSAGE = 26;
+ public static final int INF_META_DATA = 27;
+ public static final int INF_NETWORK_STATUS = 28;
+ public static final int INF_MESSAGEBOX = 29;
+
+ /**
+ Identifiers for KIO data messages.
+ @short Identifiers for KIO data messages.
+ */
+ public static final int MSG_DATA = 100;
+ public static final int MSG_DATA_REQ = 101;
+ public static final int MSG_ERROR = 102;
+ public static final int MSG_CONNECTED = 103;
+ public static final int MSG_FINISHED = 104;
+ public static final int MSG_STAT_ENTRY = 105;
+ public static final int MSG_LIST_ENTRIES = 106;
+ public static final int MSG_RENAMED = 107;
+ public static final int MSG_RESUME = 108;
+ public static final int MSG_SLAVE_STATUS = 109;
+ public static final int MSG_SLAVE_ACK = 110;
+ public static final int MSG_NET_REQUEST = 111;
+ public static final int MSG_NET_DROP = 112;
+ public static final int MSG_NEED_SUBURL_DATA = 113;
+ public static final int MSG_CANRESUME = 114;
+ public static final int MSG_AUTH_KEY = 115;
+ public static final int MSG_DEL_AUTH_KEY = 116;
+
+ public static final int DEFAULT = 1;
+ public static final int STATUSBAR = 2;
+ public static final int LIST = 3;
+
+ public static native int open_SkipDlg(boolean _multi, String _error_text);
+ public static native int open_SkipDlg(boolean _multi);
+ /**
+ <li><b>RenameDlg related Functions</b></li>
+ {@link KIO#RenameDlg}
+ Construct a modal, parent-less "rename" dialog, and return
+ a result code, as well as the new dest. Much easier to use than the
+ class RenameDlg directly.
+ @param caption the caption for the dialog box
+ @param src the URL of the file/dir we're trying to copy, as it's part of the text message
+ @param dest the URL of the destination file/dir, i.e. the one that already exists
+ @param mode parameters for the dialog (which buttons to show...),
+ see RenameDlg_Mode
+ @param newDest the new destination path, valid if R_RENAME was returned.
+ @param sizeSrc size of source file
+ @param sizeDest size of destination file
+ @param ctimeSrc creation time of source file
+ @param ctimeDest creation time of destination file
+ @param mtimeSrc modification time of source file
+ @param mtimeDest modification time of destination file
+ @return the result
+
+ @short <li><b>RenameDlg related Functions</b></li> {@link KIO#RenameDlg} Construct a modal, parent-less "rename" dialog, and return a result code, as well as the new dest.
+ */
+ public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc, int mtimeDest);
+ public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc);
+ public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest);
+ public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc);
+ public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest);
+ public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc);
+ public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath);
+ public static native QDataStream op_write(QDataStream s, AuthInfo a);
+ public static native QDataStream op_read(QDataStream s, AuthInfo a);
+ /**
+ Converts <code>size</code> from bytes to the string representation.
+ @param size size in bytes
+ @return converted size as a string - e.g. 123.4 kB , 12.0 MB
+
+ @short Converts <code>size</code> from bytes to the string representation.
+ */
+ public static native String convertSize(long size);
+ /**
+ Converts <code>size</code> from bytes to a string representation with includes
+ the size in bytes.
+ e.g. 90 B, 240 B, 1.4 KB (1495 B), 2.6MB (2,734,344 B), 0 B
+ @param size size in bytes
+ @return converted size as a string - e.g. 1.4 KB (1495 B), 45 B
+
+ @short Converts <code>size</code> from bytes to a string representation with includes the size in bytes.
+ */
+ public static native String convertSizeWithBytes(long size);
+ /**
+ Converts a size to a string representation
+ Not unlike String.number(...)
+ @param size size in bytes
+ @return converted size as a string - e.g. 123456789
+
+ @short Converts a size to a string representation Not unlike String.number(.
+ */
+ public static native String number(long size);
+ /**
+ Converts size from kilo-bytes to the string representation.
+ @param kbSize size in kilo-bytes
+ @return converted size as a string - e.g. 123.4 kB , 12.0 MB
+
+ @short Converts size from kilo-bytes to the string representation.
+ */
+ public static native String convertSizeFromKB(long kbSize);
+ /**
+ Convert <code>seconds</code> to a string representing number of days, hours, minutes and seconds
+ @param seconds number of seconds to convert
+ @return string representation in a locale depending format
+
+ @short Convert <code>seconds</code> to a string representing number of days, hours, minutes and seconds
+ */
+ public static native String convertSeconds(int seconds);
+ /**
+ Helper for showing information about a set of files and directories
+ @param items the number of items (= <code>files</code> + <code>dirs</code> + number of symlinks :)
+ @param files the number of files
+ @param dirs the number of dirs
+ @param size the sum of the size of the <code>files</code>
+ @param showSize whether to show the size in the result
+ @return the summary string
+
+ @short Helper for showing information about a set of files and directories
+ */
+ public static native String itemsSummaryString(int items, int files, int dirs, long size, boolean showSize);
+ /**
+ Encodes (from the text displayed to the real filename)
+ This translates % into %% and / into %2f
+ Used by KIO.link, for instance.
+ @param str the file name to encode
+ @return the encoded file name
+
+ @short Encodes (from the text displayed to the real filename) This translates % into %% and / into %2f Used by KIO.link, for instance.
+ */
+ public static native String encodeFileName(String str);
+ /**
+ Decodes (from the filename to the text displayed)
+ This translates %2[fF] into / and %% into %
+ @param str the file name to decode
+ @return the decoded file name
+
+ @short Decodes (from the filename to the text displayed) This translates %2[fF] into / and %% into %
+ */
+ public static native String decodeFileName(String str);
+ /**
+ Returns a translated error message for <code>errorCode</code> using the
+ additional error information provided by <code>errorText.</code>
+ @param errorCode the error code
+ @param errorText the additional error text
+ @return the created error string
+
+ @short Returns a translated error message for <code>errorCode</code> using the additional error information provided by <code>errorText.</code>
+ */
+ public static native String buildErrorString(int errorCode, String errorText);
+ /**
+ Returns translated error details for <code>errorCode</code> using the
+ additional error information provided by <code>errorText</code> , <code>reqUrl</code>
+ (the request URL), and the ioslave <code>method</code> .
+ @param errorCode the error code
+ @param errorText the additional error text
+ @param reqUrl the request URL
+ @param method the ioslave method
+
+ <li>
+ String errorName - the name of the error
+ </li>
+
+ <li>
+ String techName - if not null, the more technical name of the error
+ </li>
+
+ <li>
+ String description - a description of the error
+ </li>
+
+ <li>
+ ArrayList causes - a list of possible causes of the error
+ </li>
+
+ <li>
+ ArrayList solutions - a liso of solutions for the error
+
+ </li> @return the following data:
+
+ @short Returns translated error details for <code>errorCode</code> using the additional error information provided by <code>errorText</code> , <code>reqUrl</code> (the request URL), and the ioslave <code>method</code> .
+ */
+ public static native byte[] rawErrorDetail(int errorCode, String errorText, KURL reqUrl, int method);
+ public static native byte[] rawErrorDetail(int errorCode, String errorText, KURL reqUrl);
+ public static native byte[] rawErrorDetail(int errorCode, String errorText);
+ /**
+ Returns an appropriate error message if the given command <code>cmd</code>
+ is an unsupported action (ERR_UNSUPPORTED_ACTION).
+ @param protocol name of the protocol
+ @param cmd given command
+ @short Returns an appropriate error message if the given command <code>cmd</code> is an unsupported action (ERR_UNSUPPORTED_ACTION).
+ @see #enum
+ @see Command
+ */
+ public static native String unsupportedActionErrorString(String protocol, int cmd);
+ /**
+ Parses the string representation of the cache control option.
+ @param cacheControl the string representation
+ @return the cache control value
+
+ @short Parses the string representation of the cache control option.
+ @see #getCacheControlString
+ */
+ public static native int parseCacheControl(String cacheControl);
+ /**
+ Returns a string representation of the given cache control method.
+ @param cacheControl the cache control method
+ @return the string representation
+
+ @short Returns a string representation of the given cache control method.
+ @see #parseCacheControl
+ */
+ public static native String getCacheControlString(int cacheControl);
+ /**
+ Returns the mount point where <code>device</code> is mounted
+ right now. This means, it has to be mounted, not just
+ defined in fstab.
+ @short Returns the mount point where <code>device</code> is mounted right now.
+ */
+ public static native String findDeviceMountPoint(String device);
+ /**
+ Returns the mount point on which resides <code>filename.</code>
+ For instance if /home is a separate partition, findPathMountPoint("/home/user/blah")
+ will return /home
+ @param filename the file name to check
+ @return the mount point of the given <code>filename</code>
+
+ @short Returns the mount point on which resides <code>filename.</code>
+ */
+ public static native String findPathMountPoint(String filename);
+ /**
+ Checks if the path belongs to a filesystem that is probably
+ slow. It checks for NFS or for paths belonging to automounted
+ paths not yet mounted
+ @param filename the file name to check
+ @return true if the filesystem is probably slow
+
+ @short Checks if the path belongs to a filesystem that is probably slow.
+ */
+ public static native boolean probably_slow_mounted(String filename);
+ /**
+ Checks if the path belongs to a filesystem that is manually
+ mounted.
+ @param filename the file name to check
+ @return true if the filesystem is manually mounted
+
+ @short Checks if the path belongs to a filesystem that is manually mounted.
+ */
+ public static native boolean manually_mounted(String filename);
+ /**
+ Checks the capabilities of the filesystem to which a given file belongs.
+ given feature (e.g. chmod).
+ @param filename the file name to check
+ @param flag the flag to check
+ The availables flags are:
+
+ <li>
+ SupportsChmod: returns true if the filesystem supports chmod
+ (e.g. msdos filesystems return false)
+ </li>
+
+ <li>
+ SupportsChown: returns true if the filesystem supports chown
+ (e.g. msdos filesystems return false)
+ </li>
+
+ <li>
+ SupportsUtime: returns true if the filesystems supports utime
+ (e.g. msdos filesystems return false)
+ </li>
+
+ <li>
+ SupportsSymlinks: returns true if the filesystems supports symlinks
+ (e.g. msdos filesystems return false)
+ </li>
+
+ <li>
+ CaseInsensitive: returns true if the filesystem treats
+ "foo" and "FOO" as being the same file (true for msdos systems)
+ </li>
+ @return true if the filesystem has that flag, false if not (or some error occurred)
+
+ @short Checks the capabilities of the filesystem to which a given file belongs.
+ */
+ public static native boolean testFileSystemFlag(String filename, int flag);
+ /**
+ Creates a PreviewJob to generate or retrieve a preview image
+ for the given URL.
+ @param items files to get previews for
+ @param width the maximum width to use
+ @param height the maximum height to use, if this is 0, the same
+ value as width is used.
+ @param iconSize the size of the mimetype icon to overlay over the
+ preview or zero to not overlay an icon. This has no effect if the
+ preview plugin that will be used doesn't use icon overlays.
+ @param iconAlpha transparency to use for the icon overlay
+ @param scale if the image is to be scaled to the requested size or
+ returned in its original size
+ @param save if the image should be cached for later use
+ @param enabledPlugins if non-zero, this points to a list containing
+ the names of the plugins that may be used.
+ @return the new PreviewJob
+
+ @short Creates a PreviewJob to generate or retrieve a preview image for the given URL.
+ @see PreviewJob#availablePlugins
+ */
+ public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins);
+ public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save);
+ public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale);
+ public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha);
+ public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize);
+ public static native PreviewJob filePreview(ArrayList items, int width, int height);
+ public static native PreviewJob filePreview(ArrayList items, int width);
+ /**
+ Creates a new DavJob that issues a PROPFIND command. PROPFIND retrieves
+ the properties of the resource identified by the given <code>url.</code>
+ @param url the URL of the resource
+ @param properties a propfind document that describes the properties that
+ should be retrieved
+ @param depth the depth of the request. Can be "0", "1" or "infinity"
+ @param showProgressInfo true to show progress information
+ @return the new DavJob
+
+ @short Creates a new DavJob that issues a PROPFIND command.
+ */
+ public static native DavJob davPropFind(KURL url, QDomDocument properties, String depth, boolean showProgressInfo);
+ public static native DavJob davPropFind(KURL url, QDomDocument properties, String depth);
+ /**
+ Creates a new DavJob that issues a PROPPATCH command. PROPPATCH sets
+ the properties of the resource identified by the given <code>url.</code>
+ @param url the URL of the resource
+ @param properties a PROPPACTCH document that describes the properties that
+ should be modified and its new values
+ @param showProgressInfo true to show progress information
+ @return the new DavJob
+
+ @short Creates a new DavJob that issues a PROPPATCH command.
+ */
+ public static native DavJob davPropPatch(KURL url, QDomDocument properties, boolean showProgressInfo);
+ public static native DavJob davPropPatch(KURL url, QDomDocument properties);
+ /**
+ Creates a new DavJob that issues a SEARCH command.
+ @param url the URL of the resource
+ @param nsURI the URI of the search method's qualified name
+ @param qName the local part of the search method's qualified name
+ @param query the search string
+ @param showProgressInfo true to show progress information
+ @return the new DavJob
+
+ @short Creates a new DavJob that issues a SEARCH command.
+ */
+ public static native DavJob davSearch(KURL url, String nsURI, String qName, String query, boolean showProgressInfo);
+ public static native DavJob davSearch(KURL url, String nsURI, String qName, String query);
+ /**
+ Retrieves meta information for the given items.
+ @param items files to get metainfo for
+ @return the MetaInfoJob to retrieve the items
+
+ @short Retrieves meta information for the given items.
+ */
+ public static native MetaInfoJob fileMetaInfo(ArrayList items);
+ /**
+ Creates a single directory.
+ @param url The URL of the directory to create.
+ @param permissions The permissions to set after creating the
+ directory (unix-style), -1 for default permissions.
+ @return A pointer to the job handling the operation.
+
+ @short Creates a single directory.
+ */
+ public static native SimpleJob mkdir(KURL url, int permissions);
+ public static native SimpleJob mkdir(KURL url);
+ /**
+ Removes a single directory.
+ The directory is assumed to be empty.
+ @param url The URL of the directory to remove.
+ @return A pointer to the job handling the operation.
+
+ @short Removes a single directory.
+ */
+ public static native SimpleJob rmdir(KURL url);
+ /**
+ Changes permissions on a file or directory.
+ See the other chmod below for changing many files
+ or directories.
+ @param url The URL of file or directory.
+ @param permissions The permissions to set.
+ @return the job handling the operation.
+
+ @short Changes permissions on a file or directory.
+ */
+ public static native SimpleJob chmod(KURL url, int permissions);
+ /**
+ Rename a file or directory.
+ Warning: this operation fails if a direct renaming is not
+ possible (like with files or dirs on separate partitions)
+ Use move or file_move in this case.
+ @param src The original URL
+ @param dest The final URL
+ @param overwrite whether to automatically overwrite if the dest exists
+ @return the job handling the operation.
+
+ @short Rename a file or directory.
+ */
+ public static native SimpleJob rename(KURL src, KURL dest, boolean overwrite);
+ /**
+ Create or move a symlink.
+ This is the lowlevel operation, similar to file_copy and file_move.
+ It doesn't do any check (other than those the slave does)
+ and it doesn't show rename and skip dialogs - use KIO.link for that.
+ @param target The string that will become the "target" of the link (can be relative)
+ @param dest The symlink to create.
+ @param overwrite whether to automatically overwrite if the dest exists
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation.
+
+ @short Create or move a symlink.
+ */
+ public static native SimpleJob symlink(String target, KURL dest, boolean overwrite, boolean showProgressInfo);
+ public static native SimpleJob symlink(String target, KURL dest, boolean overwrite);
+ /**
+ Execute any command that is specific to one slave (protocol).
+ Examples are : HTTP POST, mount and unmount (kio_file)
+ @param url The URL isn't passed to the slave, but is used to know
+ which slave to send it to :-)
+ @param data Packed data. The meaning is completely dependent on the
+ slave, but usually starts with an int for the command number.
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation.
+
+ @short Execute any command that is specific to one slave (protocol).
+ */
+ public static native SimpleJob special(KURL url, byte[] data, boolean showProgressInfo);
+ public static native SimpleJob special(KURL url, byte[] data);
+ /**
+ Mount filesystem.
+ Special job for <code>kio_file.</code>
+ @param ro Mount read-only if <code>true.</code>
+ @param fstype File system type (e.g. "ext2", can be null).
+ @param dev Device (e.g. /dev/sda0).
+ @param point Mount point, can be <code>null.</code>
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation.
+
+ @short Mount filesystem.
+ */
+ public static native SimpleJob mount(boolean ro, String fstype, String dev, String point, boolean showProgressInfo);
+ public static native SimpleJob mount(boolean ro, String fstype, String dev, String point);
+ /**
+ Unmount filesystem.
+ Special job for <code>kio_file.</code>
+ @param point Point to unmount.
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation.
+
+ @short Unmount filesystem.
+ */
+ public static native SimpleJob unmount(String point, boolean showProgressInfo);
+ public static native SimpleJob unmount(String point);
+ /**
+ HTTP cache update
+ @param url Url to update, protocol must be "http".
+ @param no_cache If true, cache entry for <code>url</code> is deleted.
+ @param expireDate Local machine time indicating when the entry is
+ supposed to expire.
+ @return the job handling the operation.
+
+ @short HTTP cache update
+ */
+ public static native SimpleJob http_update_cache(KURL url, boolean no_cache, int expireDate);
+ /**
+ Find all details for one file or directory.
+ @param url the URL of the file
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation.
+
+ @short Find all details for one file or directory.
+ */
+ public static native StatJob stat(KURL url, boolean showProgressInfo);
+ public static native StatJob stat(KURL url);
+ /**
+ Find all details for one file or directory.
+ This version of the call includes two additional booleaneans, <code>sideIsSource</code> and <code>details.</code>
+ @param url the URL of the file
+ @param sideIsSource is true when stating a source file (we will do a get on it if
+ the stat works) and false when stating a destination file (target of a copy).
+ The reason for this parameter is that in some cases the kioslave might not
+ be able to determine a file's existence (e.g. HTTP doesn't allow it, FTP
+ has issues with case-sensitivity on some systems).
+ When the slave can't reliably determine the existence of a file, it will:
+
+ <li>
+ be optimistic if sideIsSource=true, i.e. it will assume the file exists,
+ and if it doesn't this will appear when actually trying to download it
+ </li>
+
+ <li>
+ be pessimistic if sideIsSource=false, i.e. it will assume the file
+ doesn't exist, to prevent showing "about to overwrite" errors to the user.
+ If you simply want to check for existence without downloading/uploading afterwards,
+ then you should use sideIsSource=false.
+ </li>
+ @param details selects the level of details we want.
+ By default this is 2 (all details wanted, including modification time, size, etc.),
+ setDetails(1) is used when deleting: we don't need all the information if it takes
+ too much time, no need to follow symlinks etc.
+ setDetails(0) is used for very simple probing: we'll only get the answer
+ "it's a file or a directory, or it doesn't exist". This is used by KRun.
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation.
+
+ @short Find all details for one file or directory.
+ */
+ public static native StatJob stat(KURL url, boolean sideIsSource, short details, boolean showProgressInfo);
+ public static native StatJob stat(KURL url, boolean sideIsSource, short details);
+ /**
+ Get (a.k.a. read).
+ The slave emits the data through data().
+ @param url the URL of the file
+ @param reload true to reload the file, false if it can be taken from the cache
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation.
+
+ @short Get (a.
+ */
+ public static native TransferJob get(KURL url, boolean reload, boolean showProgressInfo);
+ public static native TransferJob get(KURL url, boolean reload);
+ public static native TransferJob get(KURL url);
+ /**
+ Put (a.k.a. write)
+ @param url Where to write data.
+ @param permissions May be -1. In this case no special permission mode is set.
+ @param overwrite If true, any existing file will be overwritten.
+ @param resume true to resume an operation. Warning, setting this to true means
+ that the data will be appended to <code>dest</code> if <code>dest</code> exists.
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation.
+
+ @short Put (a.
+ @see #multi_get
+ */
+ public static native TransferJob put(KURL url, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo);
+ public static native TransferJob put(KURL url, int permissions, boolean overwrite, boolean resume);
+ /**
+ HTTP POST (for form data).
+ Example:
+ <pre>
+ job = KIO.http_post( url, postData, false );
+ job.addMetaData("content-type", contentType );
+ job.addMetaData("referrer", referrerURL);
+ </pre>
+ <code>postData</code> is the data that you want to send and
+ <code>contentType</code> is the complete HTTP header line that
+ specifies the content's MIME type, for example
+ "Content-Type: text/xml".
+ You MUST specify content-type!
+ Often <code>contentType</code> is
+ "Content-Type: application/x-www-form-urlencoded" and
+ the <code>postData</code> is then an ASCII string (without null-termination!)
+ with characters like space, linefeed and percent escaped like %20,
+ %0A and %25.
+ @param url Where to write the data.
+ @param postData Encoded data to post.
+ @param showProgressInfo true to display
+ @return the job handling the operation.
+
+ @short HTTP POST (for form data).
+ */
+ public static native TransferJob http_post(KURL url, byte[] postData, boolean showProgressInfo);
+ public static native TransferJob http_post(KURL url, byte[] postData);
+ /**
+ Get (a.k.a. read), into a single byte[].
+ @param url the URL of the file
+ @param reload true to reload the file, false if it can be taken from the cache
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation.
+
+ @short Get (a.
+ @see StoredTransferJob
+ */
+ public static native StoredTransferJob storedGet(KURL url, boolean reload, boolean showProgressInfo);
+ public static native StoredTransferJob storedGet(KURL url, boolean reload);
+ public static native StoredTransferJob storedGet(KURL url);
+ /**
+ Put (a.k.a. write) data from a single byte[].
+ @param arr The data to write
+ @param url Where to write data.
+ @param permissions May be -1. In this case no special permission mode is set.
+ @param overwrite If true, any existing file will be overwritten.
+ @param resume true to resume an operation. Warning, setting this to true means
+ that the data will be appended to <code>dest</code> if <code>dest</code> exists.
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation.
+
+ @short Put (a.
+ @see StoredTransferJob
+ */
+ public static native StoredTransferJob storedPut(byte[] arr, KURL url, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo);
+ public static native StoredTransferJob storedPut(byte[] arr, KURL url, int permissions, boolean overwrite, boolean resume);
+ /**
+ Creates a new multiple get job.
+ @param id the id of the get operation
+ @param url the URL of the file
+ @param metaData the MetaData associated with the file
+ @return the job handling the operation.
+
+ @short Creates a new multiple get job.
+ @see #get
+ */
+ // KIO::MultiGetJob* multi_get(long arg1,const KURL& arg2,const KIO::MetaData& arg3); >>>> NOT CONVERTED
+ /**
+ Find mimetype for one file or directory.
+ @param url the URL of the file
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation.
+
+ @short Find mimetype for one file or directory.
+ */
+ public static native MimetypeJob mimetype(KURL url, boolean showProgressInfo);
+ public static native MimetypeJob mimetype(KURL url);
+ /**
+ Copy a single file.
+ Uses either SlaveBase.copy() if the slave supports that
+ or get() and put() otherwise.
+ @param src Where to get the file.
+ @param dest Where to put the file.
+ @param permissions May be -1. In this case no special permission mode is set.
+ @param overwrite If true, any existing file will be overwritten.
+ @param resume true to resume an operation. Warning, setting this to true means
+ that <code>src</code> will be appended to <code>dest</code> if <code>dest</code> exists.
+ You probably don't want that, so leave it to false :)
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation.
+
+ @short Copy a single file.
+ */
+ public static native FileCopyJob file_copy(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo);
+ public static native FileCopyJob file_copy(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume);
+ public static native FileCopyJob file_copy(KURL src, KURL dest, int permissions, boolean overwrite);
+ public static native FileCopyJob file_copy(KURL src, KURL dest, int permissions);
+ public static native FileCopyJob file_copy(KURL src, KURL dest);
+ /**
+ Move a single file.
+ Use either SlaveBase.rename() if the slave supports that,
+ or copy() and del() otherwise, or eventually get() & put() & del()
+ @param src Where to get the file.
+ @param dest Where to put the file.
+ @param permissions May be -1. In this case no special permission mode is set.
+ @param overwrite If <code>true</code>, any existing file will be overwritten.
+ @param resume true to resume an operation. Warning, setting this to true means
+ that <code>src</code> will be appended to <code>dest</code> if <code>dest</code> exists.
+ You probably don't want that, so leave it to false :)
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation.
+
+ @short Move a single file.
+ */
+ public static native FileCopyJob file_move(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo);
+ public static native FileCopyJob file_move(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume);
+ public static native FileCopyJob file_move(KURL src, KURL dest, int permissions, boolean overwrite);
+ public static native FileCopyJob file_move(KURL src, KURL dest, int permissions);
+ public static native FileCopyJob file_move(KURL src, KURL dest);
+ /**
+ Delete a single file.
+ @param src File to delete.
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation.
+
+ @short Delete a single file.
+ */
+ public static native SimpleJob file_delete(KURL src, boolean showProgressInfo);
+ public static native SimpleJob file_delete(KURL src);
+ /**
+ List the contents of <code>url</code>, which is assumed to be a directory.
+ "." and ".." are returned, filter them out if you don't want them.
+ @param url the url of the directory
+ @param showProgressInfo true to show progress information
+ @param includeHidden true for all files, false to cull out UNIX hidden
+ files/dirs (whose names start with dot)
+ @return the job handling the operation.
+
+ @short List the contents of <code>url</code>, which is assumed to be a directory.
+ */
+ public static native ListJob listDir(KURL url, boolean showProgressInfo, boolean includeHidden);
+ public static native ListJob listDir(KURL url, boolean showProgressInfo);
+ public static native ListJob listDir(KURL url);
+ /**
+ The same as the previous method, but recurses subdirectories.
+ Directory links are not followed.
+ "." and ".." are returned but only for the toplevel directory.
+ Filter them out if you don't want them.
+ @param url the url of the directory
+ @param showProgressInfo true to show progress information
+ @param includeHidden true for all files, false to cull out UNIX hidden
+ files/dirs (whose names start with dot)
+ @return the job handling the operation.
+
+ @short The same as the previous method, but recurses subdirectories.
+ */
+ public static native ListJob listRecursive(KURL url, boolean showProgressInfo, boolean includeHidden);
+ public static native ListJob listRecursive(KURL url, boolean showProgressInfo);
+ public static native ListJob listRecursive(KURL url);
+ /**
+ Copy a file or directory <code>src</code> into the destination <code>dest</code>,
+ which can be a file (including the final filename) or a directory
+ (into which <code>src</code> will be copied).
+ This emulates the cp command completely.
+ @param src the file or directory to copy
+ @param dest the destination
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation
+
+ @short Copy a file or directory <code>src</code> into the destination <code>dest</code>, which can be a file (including the final filename) or a directory (into which <code>src</code> will be copied).
+ @see #copyAs
+ */
+ public static native CopyJob copy(KURL src, KURL dest, boolean showProgressInfo);
+ public static native CopyJob copy(KURL src, KURL dest);
+ /**
+ Copy a file or directory <code>src</code> into the destination <code>dest</code>,
+ which is the destination name in any case, even for a directory.
+ As opposed to copy(), this doesn't emulate cp, but is the only
+ way to copy a directory, giving it a new name and getting an error
+ box if a directory already exists with the same name.
+ @param src the file or directory to copy
+ @param dest the destination
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation
+
+ @short Copy a file or directory <code>src</code> into the destination <code>dest</code>, which is the destination name in any case, even for a directory.
+ */
+ public static native CopyJob copyAs(KURL src, KURL dest, boolean showProgressInfo);
+ public static native CopyJob copyAs(KURL src, KURL dest);
+ /**
+ Copy a list of file/dirs <code>src</code> into a destination directory <code>dest.</code>
+ @param src the list of files and/or directories
+ @param dest the destination
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation
+
+ @short Copy a list of file/dirs <code>src</code> into a destination directory <code>dest.</code>
+ */
+ public static native CopyJob copy(ArrayList src, KURL dest, boolean showProgressInfo);
+ public static native CopyJob copy(ArrayList src, KURL dest);
+ /**
+ Moves a file or directory <code>src</code> to the given destination <code>dest.</code>
+ @param src the file or directory to copy
+ @param dest the destination
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation
+
+ @short Moves a file or directory <code>src</code> to the given destination <code>dest.</code>
+ @see #copy
+ @see #moveAs
+ */
+ public static native CopyJob move(KURL src, KURL dest, boolean showProgressInfo);
+ public static native CopyJob move(KURL src, KURL dest);
+ /**
+ Moves a file or directory <code>src</code> to the given destination <code>dest.</code> Unlike move()
+ this operation will fail when the directory already exists.
+ @param src the file or directory to copy
+ @param dest the destination
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation
+
+ @short Moves a file or directory <code>src</code> to the given destination <code>dest.</code>
+ @see #copyAs
+ */
+ public static native CopyJob moveAs(KURL src, KURL dest, boolean showProgressInfo);
+ public static native CopyJob moveAs(KURL src, KURL dest);
+ /**
+ Moves a list of files or directories <code>src</code> to the given destination <code>dest.</code>
+ @param src the list of files or directories to copy
+ @param dest the destination
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation
+
+ @short Moves a list of files or directories <code>src</code> to the given destination <code>dest.</code>
+ @see #copy
+ */
+ public static native CopyJob move(ArrayList src, KURL dest, boolean showProgressInfo);
+ public static native CopyJob move(ArrayList src, KURL dest);
+ /**
+ Create a link.
+ If the protocols and hosts are the same, a Unix symlink will be created.
+ Otherwise, a .desktop file of Type Link and pointing to the src URL will be created.
+ @param src The existing file or directory, 'target' of the link.
+ @param destDir Destination directory where the link will be created.
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation
+
+ @short Create a link.
+ */
+ public static native CopyJob link(KURL src, KURL destDir, boolean showProgressInfo);
+ public static native CopyJob link(KURL src, KURL destDir);
+ /**
+ Create several links
+ If the protocols and hosts are the same, a Unix symlink will be created.
+ Otherwise, a .desktop file of Type Link and pointing to the src URL will be created.
+ @param src The existing files or directories, 'targets' of the link.
+ @param destDir Destination directory where the links will be created.
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation
+
+ @short Create several links If the protocols and hosts are the same, a Unix symlink will be created.
+ @see #link
+ */
+ public static native CopyJob link(ArrayList src, KURL destDir, boolean showProgressInfo);
+ public static native CopyJob link(ArrayList src, KURL destDir);
+ /**
+ Create a link. Unlike link() this operation will fail when the directory already
+ exists.
+ If the protocols and hosts are the same, a Unix symlink will be created.
+ Otherwise, a .desktop file of Type Link and pointing to the src URL will be created.
+ @param src The existing file or directory, 'target' of the link.
+ @param dest Destination directory where the link will be created.
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation
+
+ @short Create a link.
+ @see #link
+ @see #copyAs
+ */
+ public static native CopyJob linkAs(KURL src, KURL dest, boolean showProgressInfo);
+ public static native CopyJob linkAs(KURL src, KURL dest);
+ /**
+ Trash a file or directory.
+ This is currently only supported for local files and directories.
+ Use "KURL src; src.setPath( path );" to create a URL from a path.
+ @param src file to delete
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation
+
+ @short Trash a file or directory.
+ */
+ public static native CopyJob trash(KURL src, boolean showProgressInfo);
+ public static native CopyJob trash(KURL src);
+ /**
+ Trash a list of files or directories.
+ This is currently only supported for local files and directories.
+ @param src the files to delete
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation
+
+ @short Trash a list of files or directories.
+ */
+ public static native CopyJob trash(ArrayList src, boolean showProgressInfo);
+ public static native CopyJob trash(ArrayList src);
+ /**
+ Delete a file or directory.
+ @param src file to delete
+ @param shred obsolete (TODO remove in KDE4)
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation
+
+ @short Delete a file or directory.
+ */
+ public static native DeleteJob del(KURL src, boolean shred, boolean showProgressInfo);
+ public static native DeleteJob del(KURL src, boolean shred);
+ public static native DeleteJob del(KURL src);
+ /**
+ Deletes a list of files or directories.
+ @param src the files to delete
+ @param shred obsolete (TODO remove in KDE4)
+ @param showProgressInfo true to show progress information
+ @return the job handling the operation
+
+ @short Deletes a list of files or directories.
+ */
+ public static native DeleteJob del(ArrayList src, boolean shred, boolean showProgressInfo);
+ public static native DeleteJob del(ArrayList src, boolean shred);
+ public static native DeleteJob del(ArrayList src);
+ /**
+ Pastes the content of the clipboard to the given destination URL.
+ URLs are treated separately (performing a file copy)
+ from other data (which is saved into a file after asking the user
+ to choose a filename and the preferred data format)
+ @param destURL the URL to receive the data
+ @param move true to move the data, false to copy
+ @return the job that handles the operation
+
+ @short Pastes the content of the clipboard to the given destination URL.
+ @see #pasteData
+ */
+ public static native Job pasteClipboard(KURL destURL, boolean move);
+ public static native Job pasteClipboard(KURL destURL);
+ /**
+ Pastes the given <code>data</code> to the given destination URL.
+ NOTE: This method is blocking (uses NetAccess for saving the data).
+ Please consider using pasteDataAsync instead.
+ @param destURL the URL of the directory where the data will be pasted.
+ The filename to use in that directory is prompted by this method.
+ @param data the data to copy
+ @short Pastes the given <code>data</code> to the given destination URL.
+ @see #pasteClipboard
+ */
+ public static native void pasteData(KURL destURL, byte[] data);
+ /**
+ Pastes the given <code>data</code> to the given destination URL.
+ Note that this method requires the caller to have chosen the byte[]
+ to paste before hand, unlike pasteClipboard and pasteMimeSource.
+ @param destURL the URL of the directory where the data will be pasted.
+ The filename to use in that directory is prompted by this method.
+ @param data the data to copy
+ @short Pastes the given <code>data</code> to the given destination URL.
+ @see #pasteClipboard
+ */
+ public static native CopyJob pasteDataAsync(KURL destURL, byte[] data);
+ /**
+ Pastes the given <code>data</code> to the given destination URL.
+ Note that this method requires the caller to have chosen the byte[]
+ to paste before hand, unlike pasteClipboard and pasteMimeSource.
+ @param destURL the URL of the directory where the data will be pasted.
+ The filename to use in that directory is prompted by this method.
+ @param data the data to copy
+ @param dialogText the text to show in the dialog
+ @short Pastes the given <code>data</code> to the given destination URL.
+ @see #pasteClipboard
+ */
+ public static native CopyJob pasteDataAsync(KURL destURL, byte[] data, String dialogText);
+ /**
+ Save the given mimesource <code>data</code> to the given destination URL
+ after offering the user to choose a data format.
+ This is the method used when handling drops (of anything else than URLs)
+ onto kdesktop and konqueror.
+ @param data the QMimeSource (e.g. a QDropEvent)
+ @param destURL the URL of the directory where the data will be pasted.
+ The filename to use in that directory is prompted by this method.
+ @param dialogText the text to show in the dialog
+ @param widget parent widget to use for dialogs
+ @param clipboard whether the QMimeSource comes from QClipboard. If you
+ use pasteClipboard for that case, you never have to worry about this parameter.
+ @short Save the given mimesource <code>data</code> to the given destination URL after offering the user to choose a data format.
+ @see #pasteClipboard
+ */
+ public static native CopyJob pasteMimeSource(QMimeSourceInterface data, KURL destURL, String dialogText, QWidget widget, boolean clipboard);
+ public static native CopyJob pasteMimeSource(QMimeSourceInterface data, KURL destURL, String dialogText, QWidget widget);
+ /**
+ Checks whether the clipboard contains any URLs.
+ @return true if not
+ Not used anymore, wrong method name, so it will disappear in KDE4.
+
+ @short Checks whether the clipboard contains any URLs.
+ */
+ public static native boolean isClipboardEmpty();
+ /**
+ Returns the text to use for the Paste action, when the application supports
+ pasting files, urls, and clipboard data, using pasteClipboard().
+ @return a string suitable for KAction.setText, or an empty string if pasting
+ isn't possible right now.
+
+ @short Returns the text to use for the Paste action, when the application supports pasting files, urls, and clipboard data, using pasteClipboard().
+ */
+ public static native String pasteActionText();
+}
diff --git a/kdejava/koala/org/kde/koala/KIPC.java b/kdejava/koala/org/kde/koala/KIPC.java
new file mode 100644
index 00000000..7cc9fa3e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIPC.java
@@ -0,0 +1,76 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This class implements a very simple IPC mechanism for KDE. You can send
+ a message of a predefined type to either a specific application, or to all
+ KDE application on the current display. The message can carry one integer of
+ data.
+ KIPC is mainly used in KDE for sending "Change Messages", i.e. a message to
+ all KDE apps that a certain setting (the font, for example) has changed.
+ For anything more complex it is recommended to use DCOP -- the Desktop
+ Communications Protocol.
+ Messages with id code < 32 are called "System Messages". These are
+ directly handled by KApplication. Examples are: PaletteChanged and
+ StyleChanged. Messages with id code >= 32 are user messages. KApplication
+ emits the signal kipcMessage(id,arg) for each user message it receives.
+ KIPC is implemented using X11 ClientMessage events.
+ @author Geert Jansen <jansen@kde.org>
+
+ @short This class implements a very simple IPC mechanism for KDE.
+ @see KApplication#kipcMessage
+
+*/
+public class KIPC implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KIPC(Class dummy){}
+
+ /**
+ A identifier for messages. Messages below UserMessage are system
+ messages, messages above can be defined by the user.
+ @short A identifier for messages.
+ */
+ public static final int PaletteChanged = 0;
+ public static final int FontChanged = 1;
+ public static final int StyleChanged = 2;
+ public static final int BackgroundChanged = 3;
+ public static final int SettingsChanged = 4;
+ public static final int IconChanged = 5;
+ public static final int ToolbarStyleChanged = 6;
+ public static final int ClipboardConfigChanged = 7;
+ public static final int BlockShortcuts = 8;
+ public static final int UserMessage = 32;
+
+ public KIPC() {
+ newKIPC();
+ }
+ private native void newKIPC();
+ /**
+ Send a message to a specific application.
+ @param msg The message to send.
+ @param w The window id of a toplevel window of the target application.
+ @param data An optional integer of data.
+ @short Send a message to a specific application.
+ */
+ public static native void sendMessage(int msg, long w, int data);
+ public static native void sendMessage(int msg, long w);
+ /**
+ Send a message to all KDE application on the current display.
+ @param msg The message to send.
+ @param data An optional integer of data.
+ @short Send a message to all KDE application on the current display.
+ */
+ public static native void sendMessageAll(int msg, int data);
+ public static native void sendMessageAll(int msg);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KIconButton.java b/kdejava/koala/org/kde/koala/KIconButton.java
new file mode 100644
index 00000000..ff2289f3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIconButton.java
@@ -0,0 +1,110 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QPushButton;
+
+/**
+
+ A pushbutton for choosing an icon. Pressing on the button will open a
+ KIconDialog for the user to select an icon. The current icon will be
+ displayed on the button.
+ See {@link KIconButtonSignals} for signals emitted by KIconButton
+ @short A push button that allows selection of an icon.
+ @see KIconDialog
+
+*/
+public class KIconButton extends QPushButton {
+ protected KIconButton(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KIconButton using the global iconloader.
+ @short Constructs a KIconButton using the global iconloader.
+ */
+ public KIconButton(QWidget parent, String name) {
+ super((Class) null);
+ newKIconButton(parent,name);
+ }
+ private native void newKIconButton(QWidget parent, String name);
+ public KIconButton(QWidget parent) {
+ super((Class) null);
+ newKIconButton(parent);
+ }
+ private native void newKIconButton(QWidget parent);
+ public KIconButton() {
+ super((Class) null);
+ newKIconButton();
+ }
+ private native void newKIconButton();
+ /**
+ Constructs a KIconButton using a specific KIconLoader.
+ @short Constructs a KIconButton using a specific KIconLoader.
+ */
+ public KIconButton(KIconLoader loader, QWidget parent, String name) {
+ super((Class) null);
+ newKIconButton(loader,parent,name);
+ }
+ private native void newKIconButton(KIconLoader loader, QWidget parent, String name);
+ public KIconButton(KIconLoader loader, QWidget parent) {
+ super((Class) null);
+ newKIconButton(loader,parent);
+ }
+ private native void newKIconButton(KIconLoader loader, QWidget parent);
+ /**
+ Sets a strict icon size policy for allowed icons. When true,
+ only icons of the specified group's size in setIconType are allowed,
+ and only icons of that size will be shown in the icon dialog.
+ @short Sets a strict icon size policy for allowed icons.
+ */
+ public native void setStrictIconSize(boolean b);
+ /**
+ Returns true if a strict icon size policy is set.
+ @short Returns true if a strict icon size policy is set.
+ */
+ public native boolean strictIconSize();
+ /**
+ Sets the icon group and context. Use KIcon.NoGroup if you want to
+ allow icons for any group in the given context.
+ @short Sets the icon group and context.
+ */
+ public native void setIconType(int group, int context, boolean user);
+ public native void setIconType(int group, int context);
+ /**
+ Sets the button's initial icon.
+ @short Sets the button's initial icon.
+ */
+ public native void setIcon(String icon);
+ /**
+ Resets the icon (reverts to an empty button).
+ @short Resets the icon (reverts to an empty button).
+ */
+ public native void resetIcon();
+ /**
+ Returns the name of the selected icon.
+ @short Returns the name of the selected icon.
+ */
+ public native String iconName();
+ /**
+ Sets the size of the icon to be shown / selected.
+ @short Sets the size of the icon to be shown / selected.
+ @see KIcon#StdSizes
+ @see #iconSize
+ */
+ public native void setIconSize(int size);
+ /**
+ Returns the iconsize set via setIconSize() or 0, if the default
+ iconsize will be used.
+ @short Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.
+ */
+ public native int iconSize();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KIconButtonSignals.java b/kdejava/koala/org/kde/koala/KIconButtonSignals.java
new file mode 100644
index 00000000..3ba88df8
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIconButtonSignals.java
@@ -0,0 +1,14 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KIconButtonSignals {
+ /**
+ Emitted when the icon has changed.
+ @short Emitted when the icon has changed.
+ */
+ void iconChanged(String icon);
+}
diff --git a/kdejava/koala/org/kde/koala/KIconCanvas.java b/kdejava/koala/org/kde/koala/KIconCanvas.java
new file mode 100644
index 00000000..9c724d78
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIconCanvas.java
@@ -0,0 +1,52 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ Icon canvas for KIconDialog.
+ See {@link KIconCanvasSignals} for signals emitted by KIconCanvas
+ @short Icon canvas for KIconDialog.
+
+*/
+public class KIconCanvas extends KIconView {
+ protected KIconCanvas(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KIconCanvas(QWidget parent, String name) {
+ super((Class) null);
+ newKIconCanvas(parent,name);
+ }
+ private native void newKIconCanvas(QWidget parent, String name);
+ public KIconCanvas(QWidget parent) {
+ super((Class) null);
+ newKIconCanvas(parent);
+ }
+ private native void newKIconCanvas(QWidget parent);
+ public KIconCanvas() {
+ super((Class) null);
+ newKIconCanvas();
+ }
+ private native void newKIconCanvas();
+ /**
+ Load icons into the canvas.
+ @short Load icons into the canvas.
+ */
+ public native void loadFiles(String[] files);
+ /**
+ Returns the current icon.
+ @short Returns the current icon.
+ */
+ public native String getCurrent();
+ public native void stopLoading();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KIconCanvasSignals.java b/kdejava/koala/org/kde/koala/KIconCanvasSignals.java
new file mode 100644
index 00000000..36ccab8b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIconCanvasSignals.java
@@ -0,0 +1,17 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KIconCanvasSignals {
+ /**
+ Emitted when the current icon has changed.
+ @short Emitted when the current icon has changed.
+ */
+ void nameChanged(String arg1);
+ void startLoading(int arg1);
+ void progress(int arg1);
+ void finished();
+}
diff --git a/kdejava/koala/org/kde/koala/KIconDialog.java b/kdejava/koala/org/kde/koala/KIconDialog.java
new file mode 100644
index 00000000..726b3237
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIconDialog.java
@@ -0,0 +1,159 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ Dialog for interactive selection of icons. Use the function
+ getIcon() let the user select an icon.
+ See {@link KIconDialogSignals} for signals emitted by KIconDialog
+ @short An icon selection dialog.
+
+*/
+public class KIconDialog extends KDialogBase {
+ protected KIconDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs an icon selection dialog using the global iconloader.
+ @short Constructs an icon selection dialog using the global iconloader.
+ */
+ public KIconDialog(QWidget parent, String name) {
+ super((Class) null);
+ newKIconDialog(parent,name);
+ }
+ private native void newKIconDialog(QWidget parent, String name);
+ public KIconDialog(QWidget parent) {
+ super((Class) null);
+ newKIconDialog(parent);
+ }
+ private native void newKIconDialog(QWidget parent);
+ public KIconDialog() {
+ super((Class) null);
+ newKIconDialog();
+ }
+ private native void newKIconDialog();
+ /**
+ Constructs an icon selection dialog using a specific iconloader.
+ @short Constructs an icon selection dialog using a specific iconloader.
+ */
+ public KIconDialog(KIconLoader loader, QWidget parent, String name) {
+ super((Class) null);
+ newKIconDialog(loader,parent,name);
+ }
+ private native void newKIconDialog(KIconLoader loader, QWidget parent, String name);
+ public KIconDialog(KIconLoader loader, QWidget parent) {
+ super((Class) null);
+ newKIconDialog(loader,parent);
+ }
+ private native void newKIconDialog(KIconLoader loader, QWidget parent);
+ public KIconDialog(KIconLoader loader) {
+ super((Class) null);
+ newKIconDialog(loader);
+ }
+ private native void newKIconDialog(KIconLoader loader);
+ /**
+ Sets a strict icon size policy for allowed icons. When true,
+ only icons of the specified group's size in getIcon() are shown.
+ When false, icons not available at the desired group's size will
+ also be selectable.
+ @short Sets a strict icon size policy for allowed icons.
+ */
+ public native void setStrictIconSize(boolean b);
+ /**
+ Returns true if a strict icon size policy is set.
+ @short Returns true if a strict icon size policy is set.
+ */
+ public native boolean strictIconSize();
+ /**
+ sets a custom icon directory
+ @short sets a custom icon directory
+ */
+ public native void setCustomLocation(String location);
+ /**
+ Sets the size of the icons to be shown / selected.
+ @short Sets the size of the icons to be shown / selected.
+ @see KIcon#StdSizes
+ @see #iconSize
+ */
+ public native void setIconSize(int size);
+ /**
+ Returns the iconsize set via setIconSize() or 0, if the default
+ iconsize will be used.
+ @short Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.
+ */
+ public native int iconSize();
+ /**
+ Allows you to set the same parameters as in the class method
+ getIcon().
+ @short Allows you to set the same parameters as in the class method getIcon().
+ */
+ public native void setup(int group, int context, boolean strictIconSize, int iconSize, boolean user);
+ public native void setup(int group, int context, boolean strictIconSize, int iconSize);
+ public native void setup(int group, int context, boolean strictIconSize);
+ public native void setup(int group, int context);
+ public native void setup(int group);
+ /**
+ Allows you to set the same parameters as in the class method
+ getIcon(), as well as two additional parameters to lock
+ the choice between system and user dirs and to lock the custom user
+ dir itself.
+ @short Allows you to set the same parameters as in the class method getIcon(), as well as two additional parameters to lock the choice between system and user dirs and to lock the custom user dir itself.
+ */
+ public native void setup(int group, int context, boolean strictIconSize, int iconSize, boolean user, boolean lockUser, boolean lockCustomDir);
+ /**
+ exec()utes this modal dialog and returns the name of the selected icon,
+ or null if the dialog was aborted.
+ @return the name of the icon, suitable for loading with KIconLoader.
+
+ @short exec()utes this modal dialog and returns the name of the selected icon, or String.null if the dialog was aborted.
+ @see #getIcon
+ */
+ public native String openDialog();
+ /**
+ show()es this dialog and emits a newIcon(String) signal when
+ successful. null will be emitted if the dialog was aborted.
+ @short show()es this dialog and emits a newIcon(String) signal when successful.
+ */
+ public native void showDialog();
+ /**
+ Pops up the dialog an lets the user select an icon.
+ @param group The icon group this icon is intended for. Providing the
+ group shows the icons in the dialog with the same appearance as when
+ used outside the dialog.
+ @param context The initial icon context. Initially, the icons having
+ this context are shown in the dialog. The user can change this.
+ @param strictIconSize When true, only icons of the specified group's size
+ are shown, otherwise icon not available in the desired group's size
+ will also be selectable.
+ @param iconSize the size of the icons -- the default of the icongroup
+ if set to 0
+ @param user Begin with the "user icons" instead of "system icons".
+ @param parent The parent widget of the dialog.
+ @param caption The caption to use for the dialog.
+ @return The name of the icon, suitable for loading with KIconLoader.
+
+ @version New in 3.0
+
+ @short Pops up the dialog an lets the user select an icon.
+ */
+ public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, QWidget parent, String caption);
+ public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, QWidget parent);
+ public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user);
+ public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize);
+ public static native String getIcon(int group, int context, boolean strictIconSize);
+ public static native String getIcon(int group, int context);
+ public static native String getIcon(int group);
+ public static native String getIcon();
+ protected native void slotOk();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KIconDialogSignals.java b/kdejava/koala/org/kde/koala/KIconDialogSignals.java
new file mode 100644
index 00000000..9f68ccd0
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIconDialogSignals.java
@@ -0,0 +1,10 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KIconDialogSignals {
+ void newIconName(String arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KIconEffect.java b/kdejava/koala/org/kde/koala/KIconEffect.java
new file mode 100644
index 00000000..5422b0a8
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIconEffect.java
@@ -0,0 +1,236 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QRect;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QImage;
+import org.kde.qt.QWidget;
+
+/**
+
+ Applies effects to icons.
+ This class applies effects to icons depending on their state and
+ group. For example, it can be used to make all disabled icons
+ in a toolbar gray.
+ @short Applies effects to icons.
+ @see KIcon
+
+*/
+public class KIconEffect implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KIconEffect(Class dummy){}
+
+ /**
+ This is the enumeration of all possible icon effects.
+ Note that 'LastEffect' is no valid icon effect but only
+ used internally to check for invalid icon effects.
+
+ <li>
+ NoEffect: Don't apply any icon effect
+ </li>
+
+ <li>
+ ToGray: Tints the icon gray
+ </li>
+
+ <li>
+ Colorize: Tints the icon with an other color
+ </li>
+
+ <li>
+ ToGamma: Change the gamma value of the icon
+ </li>
+
+ <li>
+ DeSaturate: Reduce the saturation of the icon
+ </li>
+
+ <li>
+ ToMonochrome: Produces a monochrome icon
+
+ </li> @short This is the enumeration of all possible icon effects.
+ */
+ public static final int NoEffect = 0;
+ public static final int ToGray = 1;
+ public static final int Colorize = 2;
+ public static final int ToGamma = 3;
+ public static final int DeSaturate = 4;
+ public static final int ToMonochrome = 5;
+ public static final int LastEffect = 6;
+
+ /**
+ Create a new KIconEffect.
+ @short Create a new KIconEffect.
+ */
+ public KIconEffect() {
+ newKIconEffect();
+ }
+ private native void newKIconEffect();
+ /**
+ Rereads configuration.
+ @short Rereads configuration.
+ */
+ public native void init();
+ /**
+ Tests whether an effect has been configured for the given icon group.
+ @param group the group to check, see KIcon.Group
+ @param state the state to check, see KIcon.States
+ @return true if an effect is configured for the given <code>group</code>
+ in <code>state</code>, otherwise false.
+
+ @short Tests whether an effect has been configured for the given icon group.
+ @see KIcon#Group
+ @see KIcon#States
+ */
+ public native boolean hasEffect(int group, int state);
+ /**
+ Returns a fingerprint for the effect by encoding
+ the given <code>group</code> and <code>state</code> into a String. This
+ is useful for caching.
+ @param group the group, see KIcon.Group
+ @param state the state, see KIcon.States
+ @return the fingerprint of the given <code>group</code>+<code>state</code>
+
+ @short Returns a fingerprint for the effect by encoding the given <code>group</code> and <code>state</code> into a String.
+ */
+ public native String fingerprint(int group, int state);
+ /**
+ Applies an effect to an image. The effect to apply depends on the
+ <code>group</code> and <code>state</code> parameters, and is configured by the user.
+ @param src The image.
+ @param group The group for the icon, see KIcon.Group
+ @param state The icon's state, see KIcon.States
+ @return An image with the effect applied.
+
+ @short Applies an effect to an image.
+ */
+ public native QImage apply(QImage src, int group, int state);
+ /**
+ Applies an effect to an image.
+ @param src The image.
+ @param effect The effect to apply, one of KIconEffect.Effects.
+ @param value Strength of the effect. 0 <= <code>value</code> <= 1.
+ @param rgb Color parameter for effects that need one.
+ @param trans Add Transparency if trans = true.
+ @return An image with the effect applied.
+
+ @short Applies an effect to an image.
+ */
+ public native QImage apply(QImage src, int effect, float value, QColor rgb, boolean trans);
+ /**
+ @short
+ */
+ public native QImage apply(QImage src, int effect, float value, QColor rgb, QColor rgb2, boolean trans);
+ /**
+ Applies an effect to a pixmap.
+ @param src The pixmap.
+ @param group The group for the icon, see KIcon.Group
+ @param state The icon's state, see KIcon.States
+ @return A pixmap with the effect applied.
+
+ @short Applies an effect to a pixmap.
+ */
+ public native QPixmap apply(QPixmap src, int group, int state);
+ /**
+ Applies an effect to a pixmap.
+ @param src The pixmap.
+ @param effect The effect to apply, one of KIconEffect.Effects.
+ @param value Strength of the effect. 0 <= <code>value</code> <= 1.
+ @param rgb Color parameter for effects that need one.
+ @param trans Add Transparency if trans = true.
+ @return A pixmap with the effect applied.
+
+ @short Applies an effect to a pixmap.
+ */
+ public native QPixmap apply(QPixmap src, int effect, float value, QColor rgb, boolean trans);
+ /**
+ @short
+ */
+ public native QPixmap apply(QPixmap src, int effect, float value, QColor rgb, QColor rgb2, boolean trans);
+ /**
+ Returns an image twice as large, consisting of 2x2 pixels.
+ @param src the image.
+ @return the scaled image.
+
+ @short Returns an image twice as large, consisting of 2x2 pixels.
+ */
+ public native QImage doublePixels(QImage src);
+ /**
+ Provides visual feedback to show activation of an icon on a widget.
+ Not strictly an 'icon effect', but in practice that's what it looks
+ like.
+ This method does nothing if the global 'Visual feedback on activation'
+ option is not activated (See kcontrol/Peripherals/Mouse).
+ @param widget The widget on which the effect should be painted
+ @param rect This rectangle defines the effect's borders
+ @short Provides visual feedback to show activation of an icon on a widget.
+ */
+ public static native void visualActivate(QWidget widget, QRect rect);
+ /**
+ Tints an image gray.
+ @param image The image
+ @param value Strength of the effect. 0 <= <code>value</code> <= 1
+ @short Tints an image gray.
+ */
+ public static native void toGray(QImage image, float value);
+ /**
+ Colorizes an image with a specific color.
+ @param image The image
+ @param col The color with which the <code>image</code> is tinted
+ @param value Strength of the effect. 0 <= <code>value</code> <= 1
+ @short Colorizes an image with a specific color.
+ */
+ public static native void colorize(QImage image, QColor col, float value);
+ /**
+ Produces a monochrome icon with a given foreground and background color
+ @param image The image
+ @param white The color with which the white parts of <code>image</code> are painted
+ @param black The color with which the black parts of <code>image</code> are painted
+ @param value Strength of the effect. 0 <= <code>value</code> <= 1
+ @short Produces a monochrome icon with a given foreground and background color
+ */
+ public static native void toMonochrome(QImage image, QColor black, QColor white, float value);
+ /**
+ Desaturates an image.
+ @param image The image
+ @param value Strength of the effect. 0 <= <code>value</code> <= 1
+ @short Desaturates an image.
+ */
+ public static native void deSaturate(QImage image, float value);
+ /**
+ Changes the gamma value of an image.
+ @param image The image
+ @param value Strength of the effect. 0 <= <code>value</code> <= 1
+ @short Changes the gamma value of an image.
+ */
+ public static native void toGamma(QImage image, float value);
+ /**
+ Renders an image semi-transparent.
+ @param image The image
+ @short Renders an image semi-transparent.
+ */
+ public static native void semiTransparent(QImage image);
+ /**
+ Renders a pixmap semi-transparent.
+ @param pixmap The pixmap
+ @short Renders a pixmap semi-transparent.
+ */
+ public static native void semiTransparent(QPixmap pixmap);
+ /**
+ Overlays an image with an other image.
+ @param src The image
+ @param overlay The image to overlay <code>src</code> with
+ @short Overlays an image with an other image.
+ */
+ public static native void overlay(QImage src, QImage overlay);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KIconLoader.java b/kdejava/koala/org/kde/koala/KIconLoader.java
new file mode 100644
index 00000000..e54f81a1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIconLoader.java
@@ -0,0 +1,348 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMovie;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import java.util.ArrayList;
+import org.kde.qt.QIconSet;
+
+/**
+
+ Iconloader for KDE.
+ KIconLoader will load the current icon theme and all its base themes.
+ Icons will be searched in any of these themes. Additionally, it caches
+ icons and applies effects according the the user's preferences.
+ In KDE, it is encouraged to load icons by "Group". An icon group is a
+ location on the screen where icons are being used. Standard groups are:
+ Desktop, Toolbar, MainToolbar, Small and Panel. Each group has some
+ centrally configured properties bound to it, including the icon size
+ and effects. This makes it possible to offer a consistent icon look in
+ all KDE applications.
+ The standard groups are defined below.
+
+ <li>
+ KIcon.Desktop: Icons in the iconview of konqueror, kdesktop and similar apps.
+ </li>
+
+ <li>
+ KIcon.Toolbar: Icons in toolbars.
+ </li>
+
+ <li>
+ KIcon.MainToolbar: Icons in the main toolbars.
+ </li>
+
+ <li>
+ KIcon.Small: Various small (typical 16x16) places: titlebars, listviews
+ and menu entries.
+ </li>
+
+ <li>
+ KIcon.Panel: Icons in kicker's panel
+ </li>
+ The icons are stored on disk in an icon theme or in a standalone
+ directory. The icon theme directories contain multiple sizes and/or
+ depths for the same icon. The iconloader will load the correct one based
+ on the icon group and the current theme. Icon themes are stored globally
+ in share/icons, or, application specific in share/apps/$appdir/icons.
+ The standalone directories contain just one version of an icon. The
+ directories that are searched are: $appdir/pics and $appdir/toolbar.
+ Icons in these directories can be loaded by using the special group
+ "User".
+ @short Iconloader for KDE.
+
+*/
+public class KIconLoader implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KIconLoader(Class dummy){}
+
+ /**
+ Constructs an iconloader.
+ @param appname Add the data directories of this application to the
+ icon search path for the "User" group. The default argument adds the
+ directories of the current application.
+ @param dirs the KStandardDirs object to use. If null the global one is used
+ Usually, you use the default iconloader, which can be accessed via
+ KGlobal.iconLoader(), so you hardly ever have to create an
+ iconloader object yourself. That one is the current KInstance's
+ (typically KApplication's) iconloader.
+ @short Constructs an iconloader.
+ @see KGlobal#iconLoader
+ @see KInstance#iconLoader
+ */
+ public KIconLoader(String appname, KStandardDirs dirs) {
+ newKIconLoader(appname,dirs);
+ }
+ private native void newKIconLoader(String appname, KStandardDirs dirs);
+ public KIconLoader(String appname) {
+ newKIconLoader(appname);
+ }
+ private native void newKIconLoader(String appname);
+ public KIconLoader() {
+ newKIconLoader();
+ }
+ private native void newKIconLoader();
+ /**
+ Adds <code>appname</code> to the list of application specific directories.
+ @param appname The application name.
+ @short Adds <code>appname</code> to the list of application specific directories.
+ */
+ public native void addAppDir(String appname);
+ /**
+ Loads an icon. It will try very hard to find an icon which is
+ suitable. If no exact match is found, a close match is searched.
+ If neither an exact nor a close match is found, a null pixmap or
+ the "unknown" pixmap is returned, depending on the value of the
+ <code>canReturnNull</code> parameter.
+ @param name The name of the icon, without extension.
+ @param group The icon group. This will specify the size of and effects to
+ be applied to the icon.
+ @param size If nonzero, this overrides the size specified by <code>group.</code>
+ See KIcon.StdSizes.
+ @param state The icon state: <code>DefaultState</code>, <code>ActiveState</code> or
+ <code>DisabledState.</code> Depending on the user's preferences, the iconloader
+ may apply a visual effect to hint about its state.
+ @param path_store If not null, the path of the icon is stored here.
+ @param canReturnNull Can return a null pixmap? If false, the
+ "unknown" pixmap is returned when no appropriate icon has been found.
+ @return the QPixmap. Can be null when not found, depending on
+ <code>canReturnNull.</code>
+
+ @short Loads an icon.
+ */
+ public native QPixmap loadIcon(String name, int group, int size, int state, StringBuffer path_store, boolean canReturnNull);
+ public native QPixmap loadIcon(String name, int group, int size, int state, StringBuffer path_store);
+ public native QPixmap loadIcon(String name, int group, int size, int state);
+ public native QPixmap loadIcon(String name, int group, int size);
+ public native QPixmap loadIcon(String name, int group);
+ /**
+ Creates an icon set, that will do on-demand loading of the icon.
+ Loading itself is done by calling loadIcon .
+ @param name The name of the icon, without extension.
+ @param group The icon group. This will specify the size of and effects to
+ be applied to the icon.
+ @param size If nonzero, this overrides the size specified by <code>group.</code>
+ See KIcon.StdSizes.
+ @param canReturnNull Can return a null iconset? If false, iconset
+ containing the "unknown" pixmap is returned when no appropriate icon has
+ been found.
+ @param immediateExistenceCheck If true on-demand icon loading will be
+ disabled for canReturnNull and a null iconset may be returned immediately
+ @return the icon set. Can be null when not found, depending on
+ <code>canReturnNull.</code>
+
+ @short Creates an icon set, that will do on-demand loading of the icon.
+ */
+ public native QIconSet loadIconSet(String name, int group, int size, boolean canReturnNull, boolean immediateExistenceCheck);
+ /**
+ Creates an icon set, that will do on-demand loading of the icon.
+ Loading itself is done by calling loadIcon .
+ @param name The name of the icon, without extension.
+ @param group The icon group. This will specify the size of and effects to
+ be applied to the icon.
+ @param size If nonzero, this overrides the size specified by <code>group.</code>
+ See KIcon.StdSizes.
+ @param canReturnNull Can return a null iconset? If false, iconset
+ containing the "unknown" pixmap is returned when no appropriate icon has
+ been found.
+ @return the icon set. Can be null when not found, depending on
+ <code>canReturnNull.</code>
+
+ @short Creates an icon set, that will do on-demand loading of the icon.
+ */
+ public native QIconSet loadIconSet(String name, int group, int size, boolean canReturnNull);
+ /**
+ Creates an icon set, that will do on-demand loading of the icon.
+ Loading itself is done by calling loadIcon .
+ @param name The name of the icon, without extension.
+ @param group The icon group. This will specify the size of and effects to
+ be applied to the icon.
+ @param size If nonzero, this overrides the size specified by <code>group.</code>
+ See KIcon.StdSizes.
+ @return the icon set. Can be null when not found
+
+ @short Creates an icon set, that will do on-demand loading of the icon.
+ */
+ public native QIconSet loadIconSet(String name, int group, int size);
+ public native QIconSet loadIconSet(String name, int group);
+ /**
+ Returns the path of an icon.
+ @param name The name of the icon, without extension. If an absolute
+ path is supplied for this parameter, iconPath will return it
+ directly.
+ @param group_or_size If positive, search icons whose size is
+ specified by the icon group <code>group_or_size.</code> If negative, search
+ icons whose size is - <code>group_or_size.</code>
+ See KIcon.Group and KIcon.StdSizes
+ @param canReturnNull Can return a null string? If not, a path to the
+ "unknown" icon will be returned.
+ @return the path of an icon, can be null or the "unknown" icon when
+ not found, depending on <code>canReturnNull.</code>
+
+ @short Returns the path of an icon.
+ */
+ public native String iconPath(String name, int group_or_size, boolean canReturnNull);
+ public native String iconPath(String name, int group_or_size);
+ /**
+ Loads an animated icon.
+ @param name The name of the icon.
+ @param group The icon group. See loadIcon().
+ @param size Override the default size for <code>group.</code>
+ See KIcon.StdSizes.
+ @return A QMovie object. Can be null if not found.
+
+ @short Loads an animated icon.
+ */
+ public native QMovie loadMovie(String name, int group, int size);
+ public native QMovie loadMovie(String name, int group);
+ /**
+ Returns the path to an animated icon.
+ @param name The name of the icon.
+ @param group The icon group. See loadIcon().
+ @param size Override the default size for <code>group.</code>
+ See KIcon.StdSizes.
+ @return the full path to the movie, ready to be passed to QMovie's constructor.
+ Empty string if not found.
+
+ @short Returns the path to an animated icon.
+ */
+ public native String moviePath(String name, int group, int size);
+ public native String moviePath(String name, int group);
+ /**
+ Loads an animated icon as a series of still frames. If you want to load
+ a .mng animation as QMovie instead, please use loadMovie() instead.
+ @param name The name of the icon.
+ @param group The icon group. See loadIcon().
+ @param size Override the default size for <code>group.</code>
+ See KIcon.StdSizes.
+ @return An ArrayList containing the absolute path of all the frames
+ making up the animation.
+
+ @short Loads an animated icon as a series of still frames.
+ */
+ public native ArrayList loadAnimated(String name, int group, int size);
+ public native ArrayList loadAnimated(String name, int group);
+ /**
+ Queries all available icons for a specific group, having a specific
+ context.
+ @param group_or_size If positive, search icons whose size is
+ specified by the icon group <code>group_or_size.</code> If negative, search
+ icons whose size is - <code>group_or_size.</code>
+ See KIcon.Group and KIcon.StdSizes
+ @param context The icon context.
+ @return a list of all icons
+
+ @short Queries all available icons for a specific group, having a specific context.
+ */
+ public native ArrayList queryIcons(int group_or_size, int context);
+ public native ArrayList queryIcons(int group_or_size);
+ /**
+ Queries all available icons for a specific context.
+ @param group_or_size The icon preferred group or size. If available
+ at this group or size, those icons will be returned, in other case,
+ icons of undefined size will be returned. Positive numbers are groups,
+ negative numbers are negated sizes. See KIcon.Group and
+ KIcon.StdSizes
+ @param context The icon context.
+ @return An ArrayList containing the icon names
+ available for that context
+
+ @short Queries all available icons for a specific context.
+ */
+ public native ArrayList queryIconsByContext(int group_or_size, int context);
+ public native ArrayList queryIconsByContext(int group_or_size);
+ /**
+ Returns a list of all icons (.png or .xpm extension) in the
+ given directory.
+ @param iconsDir the directory to search in
+ @return An ArrayList containing the icon paths
+
+ @short Returns a list of all icons ( .
+ */
+ public native ArrayList queryIconsByDir(String iconsDir);
+ /**
+ Returns the current size of the group.
+ @param group the group to check.
+ @return the current size for an icon group.
+
+ @short Returns the current size of the group.
+ */
+ public native int currentSize(int group);
+ /**
+ Returns a pointer to the current theme. Can be used to query
+ available and default sizes for groups.
+ @return a pointer to the current theme. 0 if no theme set.
+
+ @short Returns a pointer to the current theme.
+ */
+ // KIconTheme* theme(); >>>> NOT CONVERTED
+ /**
+ Returns a pointer to the KIconEffect object used by the icon loader.
+ @return the KIconEffect.
+
+ @short Returns a pointer to the KIconEffect object used by the icon loader.
+ */
+ public native KIconEffect iconEffect();
+ /**
+ Called by KInstance.newIconLoader to reconfigure the icon loader.
+ @param _appname the new application name
+ @param _dirs the new standard directories. If 0, the directories
+ from KGlobal will be taken.
+ @short Called by KInstance.newIconLoader to reconfigure the icon loader.
+ */
+ public native void reconfigure(String _appname, KStandardDirs _dirs);
+ /**
+ Adds all the default themes from other desktops at the end of
+ the list of icon themes.
+ @short Adds all the default themes from other desktops at the end of the list of icon themes.
+ */
+ public native void addExtraDesktopThemes();
+ /**
+ Returns if the default icon themes of other desktops have been added
+ to the list of icon themes where icons are searched.
+ @short Returns if the default icon themes of other desktops have been added to the list of icon themes where icons are searched.
+ */
+ public native boolean extraDesktopThemesAdded();
+ /**
+ Enables on-demand icon loading for QIconSets using QIconFactory.
+ Icons loaded via loadIconSet() will be loaded as soon as they
+ need to be displayed, not earlier.
+ Note that enabling or disabling this only affects loadIconSet()
+ calls after this setting is changed.
+ The default is disabled, as the iconloader object must not be
+ destroyed before all those iconsets are destroyed.
+ (Some broken applications use temporary KIconLoader objects).
+ Every KInstance 's iconloader has this feature enabled.
+ @param enable true to enable delayed icon loading, false to disable
+ @short Enables on-demand icon loading for QIconSets using QIconFactory.
+ @see #isDelayedIconSetLoadingEnabled
+ @see org.kde.qt.QIconFactory
+ */
+ public native void enableDelayedIconSetLoading(boolean enable);
+ /**
+ Checks whether delayed loading for QIconSet is enabled.
+ @return whether icons for QIconSets will be loaded on demand.
+
+ @short Checks whether delayed loading for QIconSet is enabled.
+ @see #enableDelayedIconSetLoading
+ @see org.kde.qt.QIconFactory
+ */
+ public native boolean isDelayedIconSetLoadingEnabled();
+ /**
+ Returns the unknown icon. An icon that is used when no other icon
+ can be found.
+ @return the unknown pixmap
+
+ @short Returns the unknown icon.
+ */
+ public static native QPixmap unknown();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KIconView.java b/kdejava/koala/org/kde/koala/KIconView.java
new file mode 100644
index 00000000..7554b270
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIconView.java
@@ -0,0 +1,151 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QIconViewItem;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QDragLeaveEvent;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWheelEvent;
+import org.kde.qt.QIconView;
+
+/**
+
+ This Widget extends the functionality of QIconView to honor the system
+ wide settings for Single Click/Double Click mode, Auto Selection and
+ Change Cursor over Link.
+ There is a new signal executed(). It gets connected to either
+ QIconView.clicked() or QIconView.doubleClicked() depending on the KDE
+ wide Single Click/Double Click settings. It is strongly recommended that
+ you use this signal instead of the above mentioned. This way you don't
+ need to care about the current settings.
+ If you want to get informed when the user selects something connect to the
+ QIconView.selectionChanged() signal.
+ See {@link KIconViewSignals} for signals emitted by KIconView
+ @short A variant of QIconView that honors KDE's system-wide settings.
+
+*/
+public class KIconView extends QIconView {
+ protected KIconView(Class dummy){super((Class) null);}
+ /**
+ KIconView has two different operating modes. Execute mode is depending
+ on the configuration of single-click or double-click where the signal
+ executed() will be emitted upon click/double-click.
+ In Select mode, this signal will not be emitted.
+ Default is Execute mode.
+ @short KIconView has two different operating modes.
+ */
+ public static final int Execute = 0;
+ public static final int Select = 1;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ public KIconView(QWidget parent, String name, int f) {
+ super((Class) null);
+ newKIconView(parent,name,f);
+ }
+ private native void newKIconView(QWidget parent, String name, int f);
+ public KIconView(QWidget parent, String name) {
+ super((Class) null);
+ newKIconView(parent,name);
+ }
+ private native void newKIconView(QWidget parent, String name);
+ public KIconView(QWidget parent) {
+ super((Class) null);
+ newKIconView(parent);
+ }
+ private native void newKIconView(QWidget parent);
+ public KIconView() {
+ super((Class) null);
+ newKIconView();
+ }
+ private native void newKIconView();
+ /**
+ Sets the mode to Execute or Select.
+
+ <li>
+ In Execute mode, the signal executed()
+ will be emitted when the user clicks/double-clicks an item.
+ </li>
+
+ <li>
+ Select mode is
+ the normal QIconView mode.
+ </li>
+ Default is Execute.
+ @short Sets the mode to Execute or Select.
+ */
+ public native void setMode(int m);
+ /**
+ @return the current Mode, either Execute or Select.
+
+ @short
+ */
+ public native int mode();
+ /**
+ Reimplemented for internal purposes
+ @short Reimplemented for internal purposes
+ */
+ public native void setFont(QFont arg1);
+ /**
+ Set the maximum number of lines that will be used to display icon text.
+ Setting this value will enable word-wrap, too.
+ @param n Number of lines
+ @short Set the maximum number of lines that will be used to display icon text.
+ */
+ public native void setIconTextHeight(int n);
+ /**
+ @return The height of icon text in lines
+
+ @short
+ */
+ public native int iconTextHeight();
+ /**
+ Reimplemented for held() signal behavior internal purposes
+ @short Reimplemented for held() signal behavior internal purposes
+ */
+ public native void takeItem(QIconViewItem item);
+ protected native void emitExecute(QIconViewItem item, QPoint pos);
+ protected native void updateDragHoldItem(QDropEvent e);
+ protected native void focusOutEvent(QFocusEvent fe);
+ protected native void leaveEvent(QEvent e);
+ protected native void contentsMousePressEvent(QMouseEvent e);
+ protected native void contentsMouseDoubleClickEvent(QMouseEvent e);
+ protected native void contentsMouseReleaseEvent(QMouseEvent e);
+ protected native void contentsDragEnterEvent(QDragEnterEvent e);
+ protected native void contentsDragLeaveEvent(QDragLeaveEvent e);
+ protected native void contentsDragMoveEvent(QDragMoveEvent e);
+ protected native void contentsDropEvent(QDropEvent e);
+ protected native void wheelEvent(QWheelEvent e);
+ /**
+ This method allows to handle correctly cases where a subclass
+ needs the held() signal to not be triggered without calling
+ a KIconView.contentsDragEvent() method (which have side effects
+ because they forward to QIconView).
+ @short This method allows to handle correctly cases where a subclass needs the held() signal to not be triggered without calling a KIconView.contentsDrag Event() method (which have side effects because they forward to QIconView).
+ */
+ protected native void cancelPendingHeldSignal();
+ protected native void slotOnItem(QIconViewItem item);
+ protected native void slotOnViewport();
+ protected native void slotSettingsChanged(int arg1);
+ /**
+ Auto selection happend.
+ @short Auto selection happend.
+ */
+ protected native void slotAutoSelect();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KIconViewItem.java b/kdejava/koala/org/kde/koala/KIconViewItem.java
new file mode 100644
index 00000000..af2e8aa8
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIconViewItem.java
@@ -0,0 +1,96 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QIconViewItem;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSize;
+import org.kde.qt.QPainter;
+import org.kde.qt.QIconView;
+import org.kde.qt.QPicture;
+import org.kde.qt.QColorGroup;
+import org.kde.qt.QIconViewItem;
+
+/**
+
+ KIconViewItem exists to improve the word-wrap functionality of QIconViewItem
+ Use KIconViewItem instead of QIconViewItem for any iconview item you might have :)
+ @author David Faure <david@mandrakesoft.com>
+
+ @short A variant of QIconViewItem that wraps words better.
+
+*/
+public class KIconViewItem extends QIconViewItem {
+ protected KIconViewItem(Class dummy){super((Class) null);}
+ public KIconViewItem(QIconView parent) {
+ super((Class) null);
+ newKIconViewItem(parent);
+ }
+ private native void newKIconViewItem(QIconView parent);
+ public KIconViewItem(QIconView parent, QIconViewItem after) {
+ super((Class) null);
+ newKIconViewItem(parent,after);
+ }
+ private native void newKIconViewItem(QIconView parent, QIconViewItem after);
+ public KIconViewItem(QIconView parent, String text) {
+ super((Class) null);
+ newKIconViewItem(parent,text);
+ }
+ private native void newKIconViewItem(QIconView parent, String text);
+ public KIconViewItem(QIconView parent, QIconViewItem after, String text) {
+ super((Class) null);
+ newKIconViewItem(parent,after,text);
+ }
+ private native void newKIconViewItem(QIconView parent, QIconViewItem after, String text);
+ public KIconViewItem(QIconView parent, String text, QPixmap icon) {
+ super((Class) null);
+ newKIconViewItem(parent,text,icon);
+ }
+ private native void newKIconViewItem(QIconView parent, String text, QPixmap icon);
+ public KIconViewItem(QIconView parent, QIconViewItem after, String text, QPixmap icon) {
+ super((Class) null);
+ newKIconViewItem(parent,after,text,icon);
+ }
+ private native void newKIconViewItem(QIconView parent, QIconViewItem after, String text, QPixmap icon);
+ public KIconViewItem(QIconView parent, String text, QPicture picture) {
+ super((Class) null);
+ newKIconViewItem(parent,text,picture);
+ }
+ private native void newKIconViewItem(QIconView parent, String text, QPicture picture);
+ public KIconViewItem(QIconView parent, QIconViewItem after, String text, QPicture picture) {
+ super((Class) null);
+ newKIconViewItem(parent,after,text,picture);
+ }
+ private native void newKIconViewItem(QIconView parent, QIconViewItem after, String text, QPicture picture);
+ /**
+ Using this function, you can specify a custom size for the pixmap. The
+ geometry of the item will be calculated to let a pixmap of the given size
+ fit in the iconView without needing an update.
+ This may be useful if you want to change the pixmap later without breaking
+ the layout. A possible use of this function is to replace a fileItem icon
+ by a larger pixmap (preview).
+ @param size The size to use
+ @short Using this function, you can specify a custom size for the pixmap.
+ */
+ public native void setPixmapSize(QSize size);
+ /**
+ @return The size set by setPixmapSize() or QSize( 0, 0 )
+
+ @short
+ */
+ public native QSize pixmapSize();
+ protected native void init();
+ protected native void calcRect(String text_);
+ protected native void calcRect();
+ protected native void paintItem(QPainter p, QColorGroup c);
+ protected native KWordWrap wordWrap();
+ protected native void paintPixmap(QPainter p, QColorGroup c);
+ protected native void paintText(QPainter p, QColorGroup c);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KIconViewSignals.java b/kdejava/koala/org/kde/koala/KIconViewSignals.java
new file mode 100644
index 00000000..8386f4f5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIconViewSignals.java
@@ -0,0 +1,63 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QIconViewItem;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QDragLeaveEvent;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWheelEvent;
+
+public interface KIconViewSignals {
+ /**
+ This signal is emitted whenever the user executes an iconview item.
+ That means depending on the KDE wide Single Click/Double Click
+ setting the user clicked or double clicked on that item.
+ @param item is the pointer to the executed iconview item.
+ Note that you may not delete any QIconViewItem objects in slots
+ connected to this signal.
+ @short This signal is emitted whenever the user executes an iconview item.
+ */
+ void executed(QIconViewItem item);
+ /**
+ This signal is emitted whenever the user executes an iconview item.
+ That means depending on the KDE wide Single Click/Double Click
+ setting the user clicked or double clicked on that item.
+ @param item is the pointer to the executed iconview item.
+ @param pos is the position where the user has clicked
+ Note that you may not delete any QIconViewItem objects in slots
+ connected to this signal.
+ @short This signal is emitted whenever the user executes an iconview item.
+ */
+ void executed(QIconViewItem item, QPoint pos);
+ /**
+ This signal is emitted whenever the user hold something on an iconview
+ during a drag'n'drop.
+ @param item is the pointer to the iconview item the hold event occur.
+ Note that you may not delete any QIconViewItem objects in slots
+ connected to this signal.
+ @short This signal is emitted whenever the user hold something on an iconview during a drag'n'drop.
+ */
+ void held(QIconViewItem item);
+ /**
+ This signal gets emitted whenever the user double clicks into the
+ iconview.
+ @param item is the pointer to the clicked iconview item.
+ @param pos is the position where the user has clicked, and
+ Note that you may not delete any QIconViewItem objects in slots
+ connected to this signal.
+ This signal is more or less here for the sake of completeness.
+ You should normally not need to use this. In most cases it's better
+ to use executed() instead.
+ @short This signal gets emitted whenever the user double clicks into the iconview.
+ */
+ void doubleClicked(QIconViewItem item, QPoint pos);
+}
diff --git a/kdejava/koala/org/kde/koala/KImageEffect.java b/kdejava/koala/org/kde/koala/KImageEffect.java
new file mode 100644
index 00000000..8d4fd85a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KImageEffect.java
@@ -0,0 +1,772 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QRect;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QImage;
+import org.kde.qt.QPoint;
+import org.kde.qt.QSize;
+
+/**
+
+ This class includes various QImage based graphical effects.
+ Everything is
+ static, so there is no need to create an instance of this class. You can
+ just call the static methods. They are encapsulated here merely to provide
+ a common namespace.
+ @short This class includes various QImage based graphical effects.
+
+*/
+public class KImageEffect implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KImageEffect(Class dummy){}
+
+ /**
+ This enum provides a gradient type specification
+ @short This enum provides a gradient type specification
+ @see KImageEffect#blend
+ @see KImageEffect#gradient
+ @see KImageEffect#unbalancedGradient
+ */
+ public static final int VerticalGradient = 0;
+ public static final int HorizontalGradient = 1;
+ public static final int DiagonalGradient = 2;
+ public static final int CrossDiagonalGradient = 3;
+ public static final int PyramidGradient = 4;
+ public static final int RectangleGradient = 5;
+ public static final int PipeCrossGradient = 6;
+ public static final int EllipticGradient = 7;
+
+ /**
+ This enum provides a RGB channel specification
+ @short This enum provides a RGB channel specification
+ @see KImageEffect#blend
+ @see KImageEffect#channelIntensity
+ @see KImageEffect#modulate
+ */
+ public static final int Red = 0;
+ public static final int Green = 1;
+ public static final int Blue = 2;
+ public static final int Gray = 3;
+ public static final int All = 4;
+
+ /**
+ This enum provides a lighting direction specification
+ @short This enum provides a lighting direction specification
+ @see KImageEffect#hash
+ */
+ public static final int NorthLite = 0;
+ public static final int NWLite = 1;
+ public static final int WestLite = 2;
+ public static final int SWLite = 3;
+ public static final int SouthLite = 4;
+ public static final int SELite = 5;
+ public static final int EastLite = 6;
+ public static final int NELite = 7;
+
+ /**
+ This enum provides a modulation type specification
+ @short This enum provides a modulation type specification
+ @see KImageEffect#modulate
+ */
+ public static final int Intensity = 0;
+ public static final int Saturation = 1;
+ public static final int HueShift = 2;
+ public static final int Contrast = 3;
+
+ /**
+ This enum provides a noise type specification
+ @short This enum provides a noise type specification
+ @see KImageEffect#addNoise
+ */
+ public static final int UniformNoise = 0;
+ public static final int GaussianNoise = 1;
+ public static final int MultiplicativeGaussianNoise = 2;
+ public static final int ImpulseNoise = 3;
+ public static final int LaplacianNoise = 4;
+ public static final int PoissonNoise = 5;
+
+ /**
+ This enum provides a rotation specification.
+ @short This enum provides a rotation specification.
+ @see KImageEffect#rotate
+ */
+ public static final int Rotate90 = 0;
+ public static final int Rotate180 = 1;
+ public static final int Rotate270 = 2;
+
+ /**
+ This enum lists possible bumpmapping implementations.
+ @short This enum lists possible bumpmapping implementations.
+ @see KImageEffect#bumpmap
+ */
+ public static final int Linear = 0;
+ public static final int Spherical = 1;
+ public static final int Sinuosidal = 2;
+
+ /**
+ Disposition of a source image on top of a destination image.
+ @short Disposition of a source image on top of a destination image.
+ @see KImageEffect#computeDestinationRect
+ @see KImageEffect#blendOnLower
+ */
+ public static final int NoImage = 0;
+ public static final int Centered = 1;
+ public static final int Tiled = 2;
+ public static final int CenterTiled = 3;
+ public static final int CenteredMaxpect = 4;
+ public static final int TiledMaxpect = 5;
+ public static final int Scaled = 6;
+ public static final int CenteredAutoFit = 7;
+
+ public KImageEffect() {
+ newKImageEffect();
+ }
+ private native void newKImageEffect();
+ /**
+ Create a gradient from color a to color b of the specified type.
+ @param size The desired size of the gradient.
+ @param ca Color a
+ @param cb Color b
+ @param type The type of gradient.
+ @param ncols The number of colors to use when not running on a
+ truecolor display. The gradient will be dithered to this number of
+ colors. Pass 0 to prevent dithering.
+ @short Create a gradient from color a to color b of the specified type.
+ */
+ public static native QImage gradient(QSize size, QColor ca, QColor cb, int type, int ncols);
+ public static native QImage gradient(QSize size, QColor ca, QColor cb, int type);
+ /**
+ Create an unbalanced gradient.
+ An unbalanced gradient is a gradient where the transition from
+ color a to color b is not linear, but in this case, exponential.
+ @param size The desired size of the gradient.
+ @param ca Color a
+ @param cb Color b
+ @param type The type of gradient.
+ @param xfactor The x decay length. Use a value between -200 and 200.
+ @param yfactor The y decay length.
+ @param ncols The number of colors. See KImageEffect:gradient.
+ @short Create an unbalanced gradient.
+ */
+ public static native QImage unbalancedGradient(QSize size, QColor ca, QColor cb, int type, int xfactor, int yfactor, int ncols);
+ public static native QImage unbalancedGradient(QSize size, QColor ca, QColor cb, int type, int xfactor, int yfactor);
+ public static native QImage unbalancedGradient(QSize size, QColor ca, QColor cb, int type, int xfactor);
+ public static native QImage unbalancedGradient(QSize size, QColor ca, QColor cb, int type);
+ /**
+ Blends a color into the destination image, using an opacity
+ value for blending one into another. Very fast direct pixel
+ manipulation is used.
+ This function uses MMX and SSE2 instructions to blend the
+ image on processors that support it.
+ @param clr source color to be blended into the destination image.
+ @param dst destination image in which the source will be blended into.
+ @param opacity opacity (between 0.0 and 1.0) which determines how much
+ the source color will be blended into the destination image.
+ @return The destination image (dst) containing the result.
+
+ @author Fredrik H&ouml;glund (fredrik@kde.org)
+
+ @short Blends a color into the destination image, using an opacity value for blending one into another.
+ */
+ public static native QImage blend(QColor clr, QImage dst, float opacity);
+ /**
+ Blend the src image into the destination image, using an opacity
+ value for blending one into another. Very fast direct pixel
+ manipulation is used.
+ This function uses MMX and SSE2 instructions to blend the
+ images on processors that support it.
+ @param src source image to be blended into the destination image.
+ @param dst destination image in which the source will be blended into.
+ @param opacity opacity (between 0.0 and 1.0) which determines how much
+ the source image will be blended into the destination image.
+ @return The destination image (dst) containing the result.
+
+ @author Fredrik H&ouml;glund (fredrik@kde.org)
+
+ @short Blend the src image into the destination image, using an opacity value for blending one into another.
+ */
+ public static native QImage blend(QImage src, QImage dst, float opacity);
+ /**
+ Blend the provided image into a background of the indicated color.
+ @param initial_intensity this parameter takes values from -1 to 1:
+ a) if positive: how much to fade the image in its
+ less affected spot
+ b) if negative: roughly indicates how much of the image
+ remains unaffected
+ @param bgnd indicates the color of the background to blend in
+ @param eff lets you choose what kind of blending you like
+ @param anti_dir blend in the opposite direction (makes no much sense
+ with concentric blending effects)
+ @param image must be 32bpp
+ @short Blend the provided image into a background of the indicated color.
+ */
+ public static native QImage blend(QImage image, float initial_intensity, QColor bgnd, int eff, boolean anti_dir);
+ public static native QImage blend(QImage image, float initial_intensity, QColor bgnd, int eff);
+ /**
+ Blend an image into another one, using a gradient type
+ for blending from one to another.
+ @param image1 source1 and result of blending
+ @param image2 source2 of blending
+ @param gt gradient type for blending between source1 and source2
+ @param xf x decay length for unbalanced gradient tpye
+ @param yf y decay length for unbalanced gradient tpye
+ @short Blend an image into another one, using a gradient type for blending from one to another.
+ */
+ public static native QImage blend(QImage image1, QImage image2, int gt, int xf, int yf);
+ public static native QImage blend(QImage image1, QImage image2, int gt, int xf);
+ public static native QImage blend(QImage image1, QImage image2, int gt);
+ /**
+ Blend an image into another one, using a color channel of a
+ third image for the decision of blending from one to another.
+ @param image1 Source 1 and result of blending
+ @param image2 Source 2 of blending
+ @param blendImage If the gray value of of pixel is 0, the result
+ for this pixel is that of image1; for a gray value
+ of 1, the pixel of image2 is used; for a value
+ in between, a corresponding blending is used.
+ @param channel The RBG channel to use for the blending decision.
+ @short Blend an image into another one, using a color channel of a third image for the decision of blending from one to another.
+ */
+ public static native QImage blend(QImage image1, QImage image2, QImage blendImage, int channel);
+ /**
+ Blend an image into another one, using alpha in the expected way.
+ @param upper the "upper" image
+ @param lower the "lower" image
+ @param output the target image
+ @author Rik Hemsley (rikkus) <rik@kde.org>
+
+ @short Blend an image into another one, using alpha in the expected way.
+ */
+ public static native boolean blend(QImage upper, QImage lower, QImage output);
+ /**
+ Blend an image into another one, using alpha in the expected way and
+ over coordinates <code>x</code> and <code>y</code> with respect to the lower image.
+ The output is a QImage which is the <code>upper</code> image already blended
+ with the <code>lower</code> one, so its size will be (in general) the same than
+ <code>upper</code> instead of the same size than <code>lower</code> like the method above.
+ In fact, the size of <code>output</code> is like upper's one only when it can be
+ painted on lower, if there has to be some clipping, output's size will
+ be the clipped area and x and y will be set to the correct up-left corner
+ where the clipped rectangle begins.
+ @param x x-coordinate of lower image
+ @param y y-coordinate of lower image
+ @param upper the "upper" image
+ @param lower the "lower" image
+ @param output the target image
+ @short Blend an image into another one, using alpha in the expected way and over coordinates <code>x</code> and <code>y</code> with respect to the lower image.
+ */
+ public static native boolean blend(int[] x, int[] y, QImage upper, QImage lower, QImage output);
+ /**
+ Blend an image into another one, using alpha in the expected way and
+ over coordinates <code>x</code> and <code>y</code> with respect to the lower image.
+ The output is painted in the own <code>lower</code> image. This is an optimization
+ of the blend method above provided by convenience.
+ @param x x-coordinate of lower image
+ @param y y-coordinate of lower image
+ @param upper the "upper" image
+ @param lower the "lower" image, which becomes the output image
+ @short Blend an image into another one, using alpha in the expected way and over coordinates <code>x</code> and <code>y</code> with respect to the lower image.
+ */
+ public static native boolean blendOnLower(int x, int y, QImage upper, QImage lower);
+ /**
+ Blend part of an image into part of another, using the alpha channel in
+ the expected way.
+ Note that the destination rectangle will be correctly clipped.
+ @param upper the "upper" image
+ @param upperOffset Offset for the part of the upper image to be used.
+ @param lower the "lower" image
+ @param lowerRect Rectangle for the part of the lower image where the
+ blending will occur.
+ @short Blend part of an image into part of another, using the alpha channel in the expected way.
+ */
+ public static native void blendOnLower(QImage upper, QPoint upperOffset, QImage lower, QRect lowerRect);
+ /**
+ Blend part of an image into part of another, using the opacity value
+ and the alpha channel in the expected way.
+ Note that the destination rectangle will be correctly clipped.
+ @param upper the "upper" image
+ @param upperOffset Offset for the part of the upper image to be used.
+ @param lower the "lower" image
+ @param lowerRect Rectangle for the part of the lower image where the
+ blending will occur.
+ @param opacity Opacity (between 0.0 and 1.0) which determines how much
+ the source image will be blended into the destination image.
+ @short Blend part of an image into part of another, using the opacity value and the alpha channel in the expected way.
+ */
+ public static native void blendOnLower(QImage upper, QPoint upperOffset, QImage lower, QRect lowerRect, float opacity);
+ /**
+ Compute the destination rectangle where to draw the upper image on top
+ of another image using the given disposition. For tiled
+ disposition, the rectangle should be duplicated on the whole area to
+ obtained the wanted effect.
+ @param lowerSize The size of the destination image.
+ @param disposition The wanted disposition.
+ @param upper The upper image. Note that this image may be scaled to
+ adjust to the requested disposition.
+ @return the computed rectangle. Its size may exceed @e lowerSize.
+
+ @short Compute the destination rectangle where to draw the upper image on top of another image using the given disposition.
+ */
+ public static native QRect computeDestinationRect(QSize lowerSize, int disposition, QImage upper);
+ /**
+ Blend an image on top of another using a given disposition and a given
+ opacity. The alpha channel of the upper image is used in the expected
+ way. Beware the upper image may be modified.
+ @short Blend an image on top of another using a given disposition and a given opacity.
+ */
+ public static native void blendOnLower(QImage upper, QImage lower, int disposition, float opacity);
+ /**
+ Modifies the intensity of a pixmap's RGB channel component.
+ @param image The QImage to process.
+ @param percent Percent value. Use a negative value to dim.
+ @param channel Which channel(s) should be modified
+ @return The <code>image</code>, provided for convenience.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Modifies the intensity of a pixmap's RGB channel component.
+ */
+ public static native QImage channelIntensity(QImage image, float percent, int channel);
+ /**
+ Fade an image to a certain background color.
+ The number of colors will not be changed.
+ @param image The QImage to process.
+ @param val The strength of the effect. 0 <= val <= 1.
+ @param color The background color.
+ @return Returns the image(), provided for convenience.
+
+ @short Fade an image to a certain background color.
+ */
+ public static native QImage fade(QImage image, float val, QColor color);
+ /**
+ This recolors a pixmap. The most dark color will become color a,
+ the most bright one color b, and in between.
+ @param image A QImage to process.
+ @param ca Color a
+ @param cb Color b
+ @param ncols The number of colors to dither the image to.
+ Pass 0 to prevent dithering.
+ @short This recolors a pixmap.
+ */
+ public static native QImage flatten(QImage image, QColor ca, QColor cb, int ncols);
+ public static native QImage flatten(QImage image, QColor ca, QColor cb);
+ /**
+ Build a hash on any given QImage
+ @param image The QImage to process
+ @param lite The hash faces the indicated lighting (cardinal poles).
+ @param spacing How many unmodified pixels in between hashes.
+ @return Returns the image(), provided for convenience.
+
+ @short Build a hash on any given QImage
+ */
+ public static native QImage hash(QImage image, int lite, int spacing);
+ public static native QImage hash(QImage image, int lite);
+ public static native QImage hash(QImage image);
+ /**
+ Either brighten or dim the image by a specified percent.
+ For example, .50 will modify the colors by 50%.
+ This function uses MMX instructions to process the image
+ on processors that support it.
+ @param image The QImage to process.
+ @param percent The percent value. Use a negative value to dim.
+ @return Returns The image(), provided for convenience.
+
+ @author Benjamin Roe (ben@benroe.com)
+
+ @short Either brighten or dim the image by a specified percent.
+ */
+ public static native QImage intensity(QImage image, float percent);
+ /**
+ Modulate the image with a color channel of another image.
+ @param image The QImage to modulate and result.
+ @param modImage The QImage to use for modulation.
+ @param reverse Invert the meaning of image/modImage; result is image!
+ @param type The modulation Type to use.
+ @param factor The modulation amplitude; with 0 no effect [-200;200].
+ @param channel The RBG channel of image2 to use for modulation.
+ @return Returns the image(), provided for convenience.
+
+ @short Modulate the image with a color channel of another image.
+ */
+ public static native QImage modulate(QImage image, QImage modImage, boolean reverse, int type, int factor, int channel);
+ /**
+ Convert an image to grayscale.
+ @param image The QImage to process.
+ @param fast Set to <code>true</code> in order to use a faster but non-photographic
+ quality algorithm. Appropriate for things such as toolbar icons.
+ @return Returns the image(), provided for convenience.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Convert an image to grayscale.
+ */
+ public static native QImage toGray(QImage image, boolean fast);
+ public static native QImage toGray(QImage image);
+ /**
+ Desaturate an image evenly.
+ @param image The QImage to process.
+ @param desat A value between 0 and 1 setting the degree of desaturation
+ @return Returns the image(), provided for convenience.
+
+ @short Desaturate an image evenly.
+ */
+ public static native QImage desaturate(QImage image, float desat);
+ public static native QImage desaturate(QImage image);
+ /**
+ Fast, but low quality contrast of an image. Also see contrastHSV.
+ @param image The QImage to process.
+ @param c A contrast value between -255 to 255.
+ @return The image(), provided for convenience.
+
+ @author Daniel M. Duley (mosfet)
+ ### KDE 4: remove
+
+ @short Fast, but low quality contrast of an image.
+ */
+ public static native QImage contrast(QImage image, int c);
+ /**
+ Dither an image using Floyd-Steinberg dithering for low-color
+ situations.
+ @param image The QImage to process.
+ @param palette The color palette to use
+ @param size The size of the palette
+ @return Returns the image(), provided for convenience.
+
+ @short Dither an image using Floyd-Steinberg dithering for low-color situations.
+ */
+ public static native QImage dither(QImage image, QColor palette, int size);
+ /**
+ Calculate the image for a selected image, for instance a selected icon
+ on the desktop.
+ @param img the QImage to select
+ @param col the selected color, usually from QColorGroup.highlight().
+ @short Calculate the image for a selected image, for instance a selected icon on the desktop.
+ */
+ public static native QImage selectedImage(QImage img, QColor col);
+ /**
+ High quality, expensive HSV contrast. You can do a faster one by just
+ taking a intensity threshold (ie: 128) and incrementing RGB color
+ channels above it and decrementing those below it, but this gives much
+ better results.
+ @param img The QImage to process.
+ @param sharpen If true sharpness is increase, (spiffed). Otherwise
+ it is decreased, (dulled).
+ @author Daniel M. Duley (mosfet)
+
+ @short High quality, expensive HSV contrast.
+ */
+ public static native void contrastHSV(QImage img, boolean sharpen);
+ public static native void contrastHSV(QImage img);
+ /**
+ Normalises the pixel values to span the full range of color values.
+ This is a contrast enhancement technique.
+ @param img the image that is normalised
+ @author Daniel M. Duley (mosfet)
+
+ @short Normalises the pixel values to span the full range of color values.
+ */
+ public static native void normalize(QImage img);
+ /**
+ Performs histogram equalisation on the reference
+ image.
+ @param img the image that is equalised
+ @author Daniel M. Duley (mosfet)
+
+ @short Performs histogram equalisation on the reference image.
+ */
+ public static native void equalize(QImage img);
+ /**
+ Thresholds the reference image. You can also threshold images by using
+ ThresholdDither in the various QPixmap/QImage convert methods, but this
+ lets you specify a threshold value.
+ @param img The QImage to process.
+ @param value The threshold value.
+ @author Daniel M. Duley (mosfet)
+
+ @short Thresholds the reference image.
+ */
+ public static native void threshold(QImage img, int value);
+ public static native void threshold(QImage img);
+ /**
+ Produces a 'solarization' effect seen when exposing a photographic
+ film to light during the development process.
+ @param img The QImage to process.
+ @param factor The extent of the solarization (0-99.9)
+ @author Daniel M. Duley (mosfet)
+
+ @short Produces a 'solarization' effect seen when exposing a photographic film to light during the development process.
+ */
+ public static native void solarize(QImage img, double factor);
+ public static native void solarize(QImage img);
+ /**
+ Embosses the source image. This involves highlighting the edges
+ and applying various other enhancements in order to get a metal
+ effect.
+ @param src The QImage to process.
+ @param radius The radius of the gaussian not counting the
+ center pixel. Use 0 and a suitable radius will be automatically used.
+ @param sigma The standard deviation of the gaussian. Use 1 if you're not
+ sure.
+ @return The embossed image. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Embosses the source image.
+ */
+ public static native QImage emboss(QImage src, double radius, double sigma);
+ /**
+ Convenience method.
+ @short Convenience method.
+ */
+ public static native QImage emboss(QImage src);
+ /**
+ Minimizes speckle noise in the source image using the 8 hull
+ algorithm.
+ @param src The QImage to process.
+ @return The despeckled image. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Minimizes speckle noise in the source image using the 8 hull algorithm.
+ */
+ public static native QImage despeckle(QImage src);
+ /**
+ Produces a neat little "charcoal" effect.
+ @param src The QImage to process.
+ @param radius The radius of the gaussian not counting the
+ center pixel. Use 0 and a suitable radius will be automatically used.
+ @param sigma The standard deviation of the gaussian. Use 1 if you're not
+ sure.
+ @return The charcoal image. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Produces a neat little "charcoal" effect.
+ */
+ public static native QImage charcoal(QImage src, double radius, double sigma);
+ /**
+ This is provided for binary compatability only! Use the above method
+ with a radius and sigma instead!
+ @short This is provided for binary compatability only! Use the above method with a radius and sigma instead!
+ */
+ public static native QImage charcoal(QImage src, double factor);
+ public static native QImage charcoal(QImage src);
+ /**
+ Rotates the image by the specified amount
+ @param src The QImage to process.
+ @param r The rotate direction.
+ @return The rotated image. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Rotates the image by the specified amount
+ */
+ public static native QImage rotate(QImage src, int r);
+ /**
+ Scales an image using simple pixel sampling. This does not produce
+ nearly as nice a result as QImage.smoothScale(), but has the
+ advantage of being much faster - only a few milliseconds.
+ @param src The QImage to process.
+ @param w The new width.
+ @param h The new height.
+ @return The scaled image. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Scales an image using simple pixel sampling.
+ */
+ public static native QImage sample(QImage src, int w, int h);
+ /**
+ Adds noise to an image.
+ @param src The QImage to process.
+ @param type The algorithm used to generate the noise.
+ @return The image with noise added. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Adds noise to an image.
+ */
+ public static native QImage addNoise(QImage src, int type);
+ public static native QImage addNoise(QImage src);
+ /**
+ Blurs an image by convolving pixel neighborhoods.
+ @param src The QImage to process.
+ @param radius The radius of the gaussian not counting the
+ center pixel. Use 0 and a suitable radius will be automatically used.
+ @param sigma The standard deviation of the gaussian. Use 1 if you're not
+ sure.
+ @return The blurred image. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Blurs an image by convolving pixel neighborhoods.
+ */
+ public static native QImage blur(QImage src, double radius, double sigma);
+ /**
+ This is provided for binary compatability only! Use the above method
+ with a radius and sigma instead!
+ @short This is provided for binary compatability only! Use the above method with a radius and sigma instead!
+ */
+ public static native QImage blur(QImage src, double factor);
+ public static native QImage blur(QImage src);
+ /**
+ Detects edges in an image using pixel neighborhoods and an edge
+ detection mask.
+ @param src The QImage to process.
+ @param radius The radius of the gaussian not counting the
+ center pixel. Use 0 and a suitable radius will be automatically used.
+ @return The image with edges detected. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Detects edges in an image using pixel neighborhoods and an edge detection mask.
+ */
+ public static native QImage edge(QImage src, double radius);
+ /**
+ Implodes an image by a specified percent.
+ @param src The QImage to process.
+ @param factor The extent of the implosion.
+ @param background An RGBA value to use for the background. After the
+ effect some pixels may be "empty". This value is used for those pixels.
+ @return The imploded image. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Implodes an image by a specified percent.
+ */
+ public static native QImage implode(QImage src, double factor, int background);
+ public static native QImage implode(QImage src, double factor);
+ public static native QImage implode(QImage src);
+ /**
+ Produces an oil painting effect.
+ @param src The QImage to process.
+ @param radius The radius of the gaussian not counting the
+ center pixel. Use 0 and a suitable radius will be automatically used.
+ @return The new image. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Produces an oil painting effect.
+ */
+ public static native QImage oilPaintConvolve(QImage src, double radius);
+ /**
+ This is provided for binary compatability only! Use the above method
+ instead!
+ @short This is provided for binary compatability only! Use the above method instead!
+ */
+ public static native QImage oilPaint(QImage src, int radius);
+ public static native QImage oilPaint(QImage src);
+ /**
+ Sharpens the pixels in the image using pixel neighborhoods.
+ @param src The QImage to process.
+ @param radius The radius of the gaussian not counting the
+ center pixel. Use 0 and a suitable radius will be automatically used.
+ @param sigma The standard deviation of the gaussian. Use 1 if you're not
+ sure.
+ @return The sharpened image. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Sharpens the pixels in the image using pixel neighborhoods.
+ */
+ public static native QImage sharpen(QImage src, double radius, double sigma);
+ /**
+ This is provided for binary compatability only! Use the above method
+ instead!
+ @short This is provided for binary compatability only! Use the above method instead!
+ */
+ public static native QImage sharpen(QImage src, double factor);
+ public static native QImage sharpen(QImage src);
+ /**
+ Randomly displaces pixels.
+ @param src The QImage to process.
+ @param amount The vicinity for choosing a random pixel to swap.
+ @return The image with pixels displaced. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Randomly displaces pixels.
+ */
+ public static native QImage spread(QImage src, int amount);
+ public static native QImage spread(QImage src);
+ /**
+ Shades the image using a distance light source.
+ @param src The QImage to process.
+ @param color_shading If true do color shading, otherwise do grayscale.
+ @param azimuth Determines the light source and direction.
+ @param elevation Determines the light source and direction.
+ @return The shaded image. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Shades the image using a distance light source.
+ */
+ public static native QImage shade(QImage src, boolean color_shading, double azimuth, double elevation);
+ public static native QImage shade(QImage src, boolean color_shading, double azimuth);
+ public static native QImage shade(QImage src, boolean color_shading);
+ public static native QImage shade(QImage src);
+ /**
+ Swirls the image by a specified amount
+ @param src The QImage to process.
+ @param degrees The tightness of the swirl.
+ @param background An RGBA value to use for the background. After the
+ effect some pixels may be "empty". This value is used for those pixels.
+ @return The swirled image. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Swirls the image by a specified amount
+ */
+ public static native QImage swirl(QImage src, double degrees, int background);
+ public static native QImage swirl(QImage src, double degrees);
+ public static native QImage swirl(QImage src);
+ /**
+ Modifies the pixels along a sine wave.
+ @param src The QImage to process.
+ @param amplitude The amplitude of the sine wave.
+ @param frequency The frequency of the sine wave.
+ @param background An RGBA value to use for the background. After the
+ effect some pixels may be "empty". This value is used for those pixels.
+ @return The new image. The original is not changed.
+
+ @author Daniel M. Duley (mosfet)
+
+ @short Modifies the pixels along a sine wave.
+ */
+ public static native QImage wave(QImage src, double amplitude, double frequency, int background);
+ public static native QImage wave(QImage src, double amplitude, double frequency);
+ public static native QImage wave(QImage src, double amplitude);
+ public static native QImage wave(QImage src);
+ /**
+ A bumpmapping algorithm.
+ @param img the image you want bumpmap
+ @param map the map used
+ @param azimuth azimuth
+ @param elevation elevation
+ @param depth depth (not the depth of the image, but of the map)
+ @param xofs X offset
+ @param yofs Y offset
+ @param waterlevel level that full transparency should represent
+ @param ambient ambient lighting factor
+ @param compensate compensate for darkening
+ @param invert invert bumpmap
+ @param type type of the bumpmap
+ @param tiled tile the bumpmap over the image through the Y offset
+ @return The destination image (dst) containing the result.
+
+ @author Zack Rusin <zack@kde.org>
+
+ @short A bumpmapping algorithm.
+ */
+ public static native QImage bumpmap(QImage img, QImage map, double azimuth, double elevation, int depth, int xofs, int yofs, int waterlevel, int ambient, boolean compensate, boolean invert, int type, boolean tiled);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KImageIO.java b/kdejava/koala/org/kde/koala/KImageIO.java
new file mode 100644
index 00000000..d0f06a6d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KImageIO.java
@@ -0,0 +1,226 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ Interface to the KDE Image IO plugin architecture.
+ This library allows KDE applications to read and write images in a
+ variety of formats, transparently via the QImage and QPixmap load
+ and save methods.
+ The image processing backends are written as image handlers compatible
+ with the QImageIO handler format. The backends are loaded on demand
+ when a particular format is requested. Each format can be identified
+ by a unique type id string.
+ <b></b>ormats:
+ Currently supported formats include:
+
+ <li>
+ BMP \<read\> \<write\>
+ </li>
+
+ <li>
+ EPS \<read\> \<write\>
+ </li>
+
+ <li>
+ EXR \<read\>
+ </li>
+
+ <li>
+ G3 \<read\>
+ </li>
+
+ <li>
+ GIF \<read\>
+ </li>
+
+ <li>
+ ICO \<read\>
+ </li>
+
+ <li>
+ JP2 \<read\> \<write\>
+ </li>
+
+ <li>
+ JPEG \<read\> \<write\>
+ </li>
+
+ <li>
+ NETPBM \<read\> \<write\>
+ </li>
+
+ <li>
+ PCX \<read\> \<write\>
+ </li>
+
+ <li>
+ PNG \<read\> \<write, only with newer libraries\>
+ </li>
+
+ <li>
+ TGA \<read\> \<write\>
+ </li>
+
+ <li>
+ TIFF \<read\>
+ </li>
+
+ <li>
+ XBM \<read\> \<write\>
+ </li>
+
+ <li>
+ XPM \<read\> \<write\>
+ </li>
+
+ <li>
+ XV \<read\> \<write\>
+ </li>
+ <b></b>sage:
+ Simply call the KImageIO.registerFormats() static method declared
+ in kimageio.h.
+ <b></b>xample:
+ <pre>
+ #include<qpixmap.h>
+ #include<kimageio.h>
+ int main( String[] args )
+ {
+ ....
+ KImageIO.registerFormats();
+ ... // start main program
+ }
+ </pre>
+ @author Sirtaj Singh Kang
+
+ @short Interface to the KDE Image IO plugin architecture.
+ @see KImageIO
+ @see org.kde.qt.QPixmap
+ @see org.kde.qt.QImage
+ @see org.kde.qt.QImageIO
+
+*/
+public class KImageIO implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KImageIO(Class dummy){}
+
+ /**
+ Possible image file access modes.
+ Used in various KImageIO static function.
+ @short Possible image file access modes.
+ */
+ public static final int Reading = 0;
+ public static final int Writing = 1;
+
+ public KImageIO() {
+ newKImageIO();
+ }
+ private native void newKImageIO();
+ /**
+ Registers all KImageIO supported formats.
+ @short Registers all KImageIO supported formats.
+ */
+ public static native void registerFormats();
+ /**
+ Checks if a special type is supported for writing.
+ @param type the type id of the image type
+ @return true if the image format can be written
+
+ @short Checks if a special type is supported for writing.
+ */
+ public static native boolean canWrite(String type);
+ /**
+ Checks if a special type is supported for reading.
+ @param type the type id of the image type
+ @return true if the image format can be read
+
+ @short Checks if a special type is supported for reading.
+ */
+ public static native boolean canRead(String type);
+ /**
+ Returns a list of all KImageIO supported formats.
+ @param mode Tells whether to retrieve modes that can be read or written.
+ @return a list of the type ids
+
+ @short Returns a list of all KImageIO supported formats.
+ */
+ public static native ArrayList types(int mode);
+ public static native ArrayList types();
+ /**
+ Returns a list of patterns of all KImageIO supported formats.
+ These patterns can be passed to KFileDialog.getOpenFileName()
+ or KFileDialog.getSaveFileName(), for example.
+ @param mode Tells whether to retrieve modes that can be read or written.
+ @return a space-separated list of file globs that describe the
+ supported formats
+
+ @short Returns a list of patterns of all KImageIO supported formats.
+ */
+ public static native String pattern(int mode);
+ public static native String pattern();
+ /**
+ Returns the suffix of an image type.
+ @param type the type id of the file format
+ @return the suffix of the file format or null if it does not
+ exist
+
+ @short Returns the suffix of an image type.
+ */
+ public static native String suffix(String type);
+ /**
+ Returns the type of a MIME type.
+ @param mimeType the MIME type to search
+ @return type id of the MIME type or null if the MIME type
+ is not supported
+
+ @short Returns the type of a MIME type.
+ */
+ public static native String typeForMime(String mimeType);
+ /**
+ Returns the type of given filename.
+ @param filename the filename to check
+ @return if the file name's suffix is known the type id of the
+ file type, otherwise null
+
+ @short Returns the type of given filename.
+ */
+ public static native String type(String filename);
+ /**
+ Returns a list of MIME types for all KImageIO supported formats.
+ @param mode Tells whether to retrieve modes that can be read or written.
+ @return a list if MIME types of the supported formats
+
+ @short Returns a list of MIME types for all KImageIO supported formats.
+ */
+ public static native ArrayList mimeTypes(int mode);
+ public static native ArrayList mimeTypes();
+ /**
+ Test to see whether a MIME type is supported to reading/writing.
+ @param _mimeType the MIME type to check
+ @param _mode Tells whether to check for reading or writing capabilities
+ @return true if the type is supported
+
+ @short Test to see whether a MIME type is supported to reading/writing.
+ */
+ public static native boolean isSupported(String _mimeType, int _mode);
+ public static native boolean isSupported(String _mimeType);
+ /**
+ Returns the MIME type of <code>_filename.</code>
+ @param _filename the filename to check
+ @return the MIME type of the file, or null
+
+ @short Returns the MIME type of <code>_filename.</code>
+ */
+ public static native String mimeType(String _filename);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KInputDialog.java b/kdejava/koala/org/kde/koala/KInputDialog.java
new file mode 100644
index 00000000..2abcb298
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KInputDialog.java
@@ -0,0 +1,148 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QValidator;
+import org.kde.qt.QWidget;
+
+/**
+
+ The KInputDialog class provides a simple dialog to get a single value
+ from the user. The value can be a string, a number (either an integer or
+ a float) or an item from a list. This class is designed to be source
+ compatible with QInputDialog.
+ Five static convenience functions are provided: getText(), getInteger().
+ getDouble(), getItem() and getItemList().
+ @author Nadeem Hasan <nhasan@kde.org>
+
+ @short The KInputDialog class provides a simple dialog to get a single value from the user.
+
+*/
+public class KInputDialog extends KDialogBase {
+ protected KInputDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Static convenience function to get a string from the user.
+ caption is the text that is displayed in the title bar. label is the
+ text that appears as a label for the line edit. value is the initial
+ value of the line edit. ok will be set to true if user pressed Ok
+ and false if user pressed Cancel.
+ If you provide a validator, the Ok button is disabled as long as
+ the validator doesn't return Acceptable. If there is no validator,
+ the Ok button is enabled whenever the line edit isn't empty. If you
+ want to accept empty input, create a trivial QValidator that
+ always returns acceptable, e.g. QRegExpValidator with a regexp
+ of ".*".
+ @param caption Caption of the dialog
+ @param label Text of the label for the line edit
+ @param value Initial value of the line edit
+ @param ok This boolean would be set to true if user pressed Ok
+ @param parent Parent of the dialog widget
+ @param name Name of the dialog widget
+ @param validator A {@link QValidator} to be associated with the line edit
+ @param mask Mask associated with the line edit. See the
+ documentation for {@link QLineEdit} about masks.
+ @return String user entered if Ok was pressed, else a null string
+
+ @short Static convenience function to get a string from the user.
+ */
+ public static native String getText(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator, String mask);
+ public static native String getText(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator);
+ public static native String getText(String caption, String label, String value, boolean[] ok, QWidget parent, String name);
+ public static native String getText(String caption, String label, String value, boolean[] ok, QWidget parent);
+ public static native String getText(String caption, String label, String value, boolean[] ok);
+ public static native String getText(String caption, String label, String value);
+ public static native String getText(String caption, String label);
+ /**
+ Same as {@link #getText} except it provides an extra parameter to specify
+ a QWhatsThis text for the input widget.
+ ### KDE4: Merge with getText.
+ @short Same as @ref getText except it provides an extra parameter to specify a QWhatsThis text for the input widget.
+ */
+ public static native String text(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator, String mask, String whatsThis);
+ public static native String text(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator, String mask);
+ public static native String text(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator);
+ public static native String text(String caption, String label, String value, boolean[] ok, QWidget parent, String name);
+ public static native String text(String caption, String label, String value, boolean[] ok, QWidget parent);
+ public static native String text(String caption, String label, String value, boolean[] ok);
+ public static native String text(String caption, String label, String value);
+ public static native String text(String caption, String label);
+ /**
+ Static convenience function to get a multiline string from the user.
+ caption is the text that is displayed in the title bar. label is the
+ text that appears as a label for the line edit. value is the initial
+ value of the line edit. ok will be set to true if user pressed Ok
+ and false if user pressed Cancel.
+ @param caption Caption of the dialog
+ @param label Text of the label for the line edit
+ @param value Initial value of the line edit
+ @param ok This boolean would be set to true if user pressed Ok
+ @param parent Parent of the dialog widget
+ @param name Name of the dialog widget
+ @return String user entered if Ok was pressed, else a null string
+
+ @short Static convenience function to get a multiline string from the user.
+ */
+ public static native String getMultiLineText(String caption, String label, String value, boolean[] ok, QWidget parent, String name);
+ public static native String getMultiLineText(String caption, String label, String value, boolean[] ok, QWidget parent);
+ public static native String getMultiLineText(String caption, String label, String value, boolean[] ok);
+ public static native String getMultiLineText(String caption, String label, String value);
+ public static native String getMultiLineText(String caption, String label);
+ /**
+ Static convenience function to let the user select an item from a
+ list. caption is the text that is displayed in the title bar.
+ label is the text that appears as the label for the list. list
+ is the string list which is inserted into the list, and current
+ is the number of the item which should be the selected item. If
+ editable is true, the user can enter their own text.
+ @param caption Caption of the dialog
+ @param label Text of the label for the spin box
+ @param list List of item for user to choose from
+ @param current Index of the selected item
+ @param editable If true, user can enter own text
+ @param ok This boolean would be set to true if user pressed Ok
+ @param parent Parent of the dialog widget
+ @param name Name of the dialog widget
+ @return Text of the selected item. If <code>editable</code> is true this can be
+ a text entered by the user.
+
+ @short Static convenience function to let the user select an item from a list.
+ */
+ public static native String getItem(String caption, String label, String[] list, int current, boolean editable, boolean[] ok, QWidget parent, String name);
+ public static native String getItem(String caption, String label, String[] list, int current, boolean editable, boolean[] ok, QWidget parent);
+ public static native String getItem(String caption, String label, String[] list, int current, boolean editable, boolean[] ok);
+ public static native String getItem(String caption, String label, String[] list, int current, boolean editable);
+ public static native String getItem(String caption, String label, String[] list, int current);
+ public static native String getItem(String caption, String label, String[] list);
+ /**
+ Static convenience function to let the user select one or more
+ items from a listbox. caption is the text that is displayed in the
+ title bar. label is the text that appears as the label for the listbox.
+ list is the string list which is inserted into the listbox, select
+ is the list of item(s) that should be the selected. If multiple is
+ true, the user can select multiple items.
+ @param caption Caption of the dialog
+ @param label Text of the label for the spin box
+ @param list List of item for user to choose from
+ @param select List of item(s) that should be selected
+ @param multiple If true, user can select multiple items
+ @param ok This boolean would be set to true if user pressed Ok
+ @param parent Parent of the dialog widget
+ @param name Name of the dialog widget
+ @return List of selected items if multiple is true, else currently
+ selected item as an ArrayList
+
+ @short Static convenience function to let the user select one or more items from a listbox.
+ */
+ public static native ArrayList getItemList(String caption, String label, String[] list, String[] select, boolean multiple, boolean[] ok, QWidget parent, String name);
+ public static native ArrayList getItemList(String caption, String label, String[] list, String[] select, boolean multiple, boolean[] ok, QWidget parent);
+ public static native ArrayList getItemList(String caption, String label, String[] list, String[] select, boolean multiple, boolean[] ok);
+ public static native ArrayList getItemList(String caption, String label, String[] list, String[] select, boolean multiple);
+ public static native ArrayList getItemList(String caption, String label, String[] list, String[] select);
+ public static native ArrayList getItemList(String caption, String label, String[] list);
+ public static native ArrayList getItemList(String caption, String label);
+}
diff --git a/kdejava/koala/org/kde/koala/KInstance.java b/kdejava/koala/org/kde/koala/KInstance.java
new file mode 100644
index 00000000..4462ef75
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KInstance.java
@@ -0,0 +1,121 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Access to KDE global objects for use in shared libraries. In
+ practical terms, this class is used in KDE components. This allows
+ components to store things that normally would be accessed by
+ KGlobal.
+ @author Torben Weis
+
+ @short Access to KDE global objects for use in shared libraries.
+
+*/
+public class KInstance implements QtSupport, KInstanceInterface {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KInstance(Class dummy){}
+
+ /**
+ Constructor.
+ @param instanceName the name of the instance
+ @short Constructor.
+ */
+ public KInstance(String instanceName) {
+ newKInstance(instanceName);
+ }
+ private native void newKInstance(String instanceName);
+ /**
+ Constructor.
+ When building a KInstance that is not your KApplication,
+ make sure that the KAboutData and the KInstance have the same life time.
+ You have to destroy both, since the instance doesn't own the about data.
+ Don't build a KAboutData on the stack in this case !
+ Building a KAboutData on the stack is only ok for usage with
+ KCmdLineArgs and KApplication (not destroyed until the app exits).
+ @param aboutData data about this instance (see KAboutData)
+ @short Constructor.
+ */
+ public KInstance(KAboutData aboutData) {
+ newKInstance(aboutData);
+ }
+ private native void newKInstance(KAboutData aboutData);
+ public KInstance(KInstanceInterface src) {
+ newKInstance(src);
+ }
+ private native void newKInstance(KInstanceInterface src);
+ /**
+ Returns the application standard dirs object.
+ @return The KStandardDirs of the application.
+
+ @short Returns the application standard dirs object.
+ */
+ public native KStandardDirs dirs();
+ /**
+ Returns the general config object ("appnamerc").
+ @return the KConfig object for the instance.
+
+ @short Returns the general config object ("appnamerc").
+ */
+ public native KConfig config();
+ /**
+ Returns the general config object ("appnamerc").
+ @return the KConfig object for the instance.
+
+ @short Returns the general config object ("appnamerc").
+ */
+ public native KSharedConfig sharedConfig();
+ /**
+ Returns an iconloader object.
+ @return the iconloader object.
+
+ @short Returns an iconloader object.
+ */
+ public native KIconLoader iconLoader();
+ /**
+ Re-allocate the global iconloader.
+ @short Re-allocate the global iconloader.
+ */
+ public native void newIconLoader();
+ /**
+ Returns the about data of this instance
+ Warning, can be null
+ @return the about data of the instance, or 0 if it has
+ not been set yet
+
+ @short Returns the about data of this instance Warning, can be 0L
+ */
+ public native KAboutData aboutData();
+ /**
+ Returns the name of the instance
+ @return the instance name, can be null if the KInstance has been
+ created with a null name
+
+ @short Returns the name of the instance
+ */
+ public native String instanceName();
+ /**
+ Returns the KMimeSourceFactory of the instance.
+ Mainly added for API completeness and future extensibility.
+ @return the KMimeSourceFactory set as default for this application.
+
+ @short Returns the KMimeSourceFactory of the instance.
+ */
+ public native KMimeSourceFactory mimeSourceFactory();
+ /**
+ Set name of default config file.
+ @param name the name of the default config file
+ @short Set name of default config file.
+ */
+ protected native void setConfigName(String name);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KInstanceInterface.java b/kdejava/koala/org/kde/koala/KInstanceInterface.java
new file mode 100644
index 00000000..db6869b2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KInstanceInterface.java
@@ -0,0 +1,15 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QtSupport;
+
+public interface KInstanceInterface {
+ KStandardDirs dirs();
+ KConfig config();
+ KSharedConfig sharedConfig();
+ KIconLoader iconLoader();
+ void newIconLoader();
+ KAboutData aboutData();
+ String instanceName();
+ KMimeSourceFactory mimeSourceFactory();
+}
diff --git a/kdejava/koala/org/kde/koala/KIntNumInput.java b/kdejava/koala/org/kde/koala/KIntNumInput.java
new file mode 100644
index 00000000..74927b07
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIntNumInput.java
@@ -0,0 +1,266 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+/**
+
+ KIntNumInput combines a QSpinBox and optionally a QSlider
+ with a label to make an easy to use control for setting some integer
+ parameter. This is especially nice for configuration dialogs,
+ which can have many such combinated controls.
+ The slider is created only when the user specifies a range
+ for the control using the setRange function with the slider
+ parameter set to "true".
+ A special feature of KIntNumInput, designed specifically for
+ the situation when there are several KIntNumInputs in a column,
+ is that you can specify what portion of the control is taken by the
+ QSpinBox (the remaining portion is used by the slider). This makes
+ it very simple to have all the sliders in a column be the same size.
+ It uses KIntValidator validator class. KIntNumInput enforces the
+ value to be in the given range, and can display it in any base
+ between 2 and 36.
+ \image html kintnuminput.png "KDE Int Number Input Spinbox"
+ See {@link KIntNumInputSignals} for signals emitted by KIntNumInput
+ @version $Id$
+
+ @short An input widget for integer numbers, consisting of a spinbox and a slider.
+
+*/
+public class KIntNumInput extends KNumInput {
+ protected KIntNumInput(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs an input control for integer values
+ with base 10 and initial value 0.
+ @short Constructs an input control for integer values with base 10 and initial value 0.
+ */
+ public KIntNumInput(QWidget parent, String name) {
+ super((Class) null);
+ newKIntNumInput(parent,name);
+ }
+ private native void newKIntNumInput(QWidget parent, String name);
+ public KIntNumInput(QWidget parent) {
+ super((Class) null);
+ newKIntNumInput(parent);
+ }
+ private native void newKIntNumInput(QWidget parent);
+ public KIntNumInput() {
+ super((Class) null);
+ newKIntNumInput();
+ }
+ private native void newKIntNumInput();
+ /**
+ Constructor
+ It constructs a QSpinBox that allows the input of integer numbers
+ in the range of -INT_MAX to +INT_MAX. To set a descriptive label,
+ use setLabel(). To enforce the value being in a range and optionally to
+ attach a slider to it, use setRange().
+ @param value initial value for the control
+ @param base numeric base used for display
+ @param parent parent QWidget
+ @param name internal name for this widget
+ @short Constructor It constructs a QSpinBox that allows the input of integer numbers in the range of -INT_MAX to +INT_MAX.
+ */
+ public KIntNumInput(int value, QWidget parent, int base, String name) {
+ super((Class) null);
+ newKIntNumInput(value,parent,base,name);
+ }
+ private native void newKIntNumInput(int value, QWidget parent, int base, String name);
+ public KIntNumInput(int value, QWidget parent, int base) {
+ super((Class) null);
+ newKIntNumInput(value,parent,base);
+ }
+ private native void newKIntNumInput(int value, QWidget parent, int base);
+ public KIntNumInput(int value, QWidget parent) {
+ super((Class) null);
+ newKIntNumInput(value,parent);
+ }
+ private native void newKIntNumInput(int value, QWidget parent);
+ public KIntNumInput(int value) {
+ super((Class) null);
+ newKIntNumInput(value);
+ }
+ private native void newKIntNumInput(int value);
+ /**
+ Constructor
+ the difference to the one above is the "below" parameter. It tells
+ this instance that it is visually put below some other KNumInput widget.
+ Note that these two KNumInput's need not to have the same parent widget
+ or be in the same layout group.
+ The effect is that it'll adjust it's layout in correspondence
+ with the layout of the other KNumInput's (you can build an arbitrary long
+ chain).
+ @param below append KIntNumInput to the KNumInput chain
+ @param value initial value for the control
+ @param base numeric base used for display
+ @param parent parent QWidget
+ @param name internal name for this widget
+ @short Constructor
+ */
+ public KIntNumInput(KNumInput below, int value, QWidget parent, int base, String name) {
+ super((Class) null);
+ newKIntNumInput(below,value,parent,base,name);
+ }
+ private native void newKIntNumInput(KNumInput below, int value, QWidget parent, int base, String name);
+ public KIntNumInput(KNumInput below, int value, QWidget parent, int base) {
+ super((Class) null);
+ newKIntNumInput(below,value,parent,base);
+ }
+ private native void newKIntNumInput(KNumInput below, int value, QWidget parent, int base);
+ public KIntNumInput(KNumInput below, int value, QWidget parent) {
+ super((Class) null);
+ newKIntNumInput(below,value,parent);
+ }
+ private native void newKIntNumInput(KNumInput below, int value, QWidget parent);
+ public KIntNumInput(KNumInput below, int value) {
+ super((Class) null);
+ newKIntNumInput(below,value);
+ }
+ private native void newKIntNumInput(KNumInput below, int value);
+ /**
+ @return the current value.
+
+ @short
+ */
+ public native int value();
+ /**
+ @return the curent value in units of the referencePoint.
+
+ @short
+ */
+ public native double relativeValue();
+ /**
+ @return the current reference point
+
+ @short
+ */
+ public native int referencePoint();
+ /**
+ @return the suffix displayed behind the value.
+
+ @short
+ @see #setSuffix
+ */
+ public native String suffix();
+ /**
+ @return the prefix displayed in front of the value.
+
+ @short
+ @see #setPrefix
+ */
+ public native String prefix();
+ /**
+ @return the string displayed for a special value.
+
+ @short
+ @see #setSpecialValueText
+ */
+ public native String specialValueText();
+ /**
+ @param min minimum value
+ @param max maximum value
+ @param step step size for the QSlider
+ @param slider whether the slider is created or not
+ @short
+ */
+ public native void setRange(int min, int max, int step, boolean slider);
+ public native void setRange(int min, int max, int step);
+ public native void setRange(int min, int max);
+ /**
+ Sets the minimum value.
+ @short Sets the minimum value.
+ */
+ public native void setMinValue(int min);
+ /**
+ @return the minimum value.
+
+ @short
+ */
+ public native int minValue();
+ /**
+ Sets the maximum value.
+ @short Sets the maximum value.
+ */
+ public native void setMaxValue(int max);
+ /**
+ @return the maximum value.
+
+ @short
+ */
+ public native int maxValue();
+ /**
+ Sets the special value text. If set, the SpinBox will display
+ this text instead of the numeric value whenever the current
+ value is equal to minVal(). Typically this is used for indicating
+ that the choice has a special (default) meaning.
+ @short Sets the special value text.
+ */
+ public native void setSpecialValueText(String text);
+ public native void setLabel(String label, int a);
+ public native void setLabel(String label);
+ /**
+ This method returns the minimum size necessary to display the
+ control. The minimum size is enough to show all the labels
+ in the current font (font change may invalidate the return value).
+ @return the minimum size necessary to show the control
+
+ @short This method returns the minimum size necessary to display the control.
+ */
+ public native QSize minimumSizeHint();
+ /**
+ Sets the value of the control.
+ @short Sets the value of the control.
+ */
+ public native void setValue(int arg1);
+ /**
+ Sets the value in units of the referencePoint
+ @short Sets the value in units of the referencePoint
+ */
+ public native void setRelativeValue(double arg1);
+ /**
+ Sets the reference point for relativeValue.
+ @short Sets the reference point for relativeValue.
+ */
+ public native void setReferencePoint(int arg1);
+ /**
+ Sets the suffix to <code>suffix.</code>
+ Use null to disable this feature.
+ Formatting has to be provided (e.g. a space separator between the
+ prepended <code>value</code> and the suffix's text has to be provided
+ as the first character in the suffix).
+ @short Sets the suffix to <code>suffix.</code>
+ @see org.kde.qt.QSpinBox#setSuffix
+ @see #setPrefix
+ */
+ public native void setSuffix(String suffix);
+ /**
+ Sets the prefix to <code>prefix.</code>
+ Use null to disable this feature.
+ Formatting has to be provided (see above).
+ @short Sets the prefix to <code>prefix.</code>
+ @see org.kde.qt.QSpinBox#setPrefix
+ @see #setSuffix
+ */
+ public native void setPrefix(String prefix);
+ /**
+ sets focus to the edit widget and marks all text in if mark == true
+ @short sets focus to the edit widget and marks all text in if mark == true
+ */
+ public native void setEditFocus(boolean mark);
+ public native void setEditFocus();
+ protected native void doLayout();
+ protected native void resizeEvent(QResizeEvent arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KIntNumInputSignals.java b/kdejava/koala/org/kde/koala/KIntNumInputSignals.java
new file mode 100644
index 00000000..d3e304a9
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIntNumInputSignals.java
@@ -0,0 +1,23 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+public interface KIntNumInputSignals {
+ /**
+ Emitted every time the value changes (by calling setValue() or
+ by user interaction).
+ @short Emitted every time the value changes (by calling setValue() or by user interaction).
+ */
+ void valueChanged(int arg1);
+ /**
+ Emitted whenever valueChanged is. Contains the change
+ relative to the referencePoint.
+ @short Emitted whenever valueChanged is.
+ */
+ void relativeValueChanged(double arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KIntSpinBox.java b/kdejava/koala/org/kde/koala/KIntSpinBox.java
new file mode 100644
index 00000000..dd01b526
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIntSpinBox.java
@@ -0,0 +1,112 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QSpinBox;
+
+/**
+
+ A QSpinBox with support for arbitrary base numbers
+ (e.g. hexadecimal).
+ The class provides an easy interface to use other
+ numeric systems than the decimal.
+ @short A QSpinBox with support for arbitrary base numbers.
+
+*/
+public class KIntSpinBox extends QSpinBox {
+ protected KIntSpinBox(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor.
+ Constructs a widget with an integer inputline with a little scrollbar
+ and a slider, with minimal value 0, maximal value 99, step 1, base 10
+ and initial value 0.
+ @short Constructor.
+ */
+ public KIntSpinBox(QWidget parent, String name) {
+ super((Class) null);
+ newKIntSpinBox(parent,name);
+ }
+ private native void newKIntSpinBox(QWidget parent, String name);
+ public KIntSpinBox(QWidget parent) {
+ super((Class) null);
+ newKIntSpinBox(parent);
+ }
+ private native void newKIntSpinBox(QWidget parent);
+ public KIntSpinBox() {
+ super((Class) null);
+ newKIntSpinBox();
+ }
+ private native void newKIntSpinBox();
+ /**
+ Constructor.
+ Constructs a widget with an integer inputline with a little scrollbar
+ and a slider.
+ @param lower The lowest valid value.
+ @param upper The greatest valid value.
+ @param step The step size of the scrollbar.
+ @param value The actual value.
+ @param base The base of the used number system.
+ @param parent The parent of the widget.
+ @param name The Name of the widget.
+ @short Constructor.
+ */
+ public KIntSpinBox(int lower, int upper, int step, int value, int base, QWidget parent, String name) {
+ super((Class) null);
+ newKIntSpinBox(lower,upper,step,value,base,parent,name);
+ }
+ private native void newKIntSpinBox(int lower, int upper, int step, int value, int base, QWidget parent, String name);
+ public KIntSpinBox(int lower, int upper, int step, int value, int base, QWidget parent) {
+ super((Class) null);
+ newKIntSpinBox(lower,upper,step,value,base,parent);
+ }
+ private native void newKIntSpinBox(int lower, int upper, int step, int value, int base, QWidget parent);
+ public KIntSpinBox(int lower, int upper, int step, int value, int base) {
+ super((Class) null);
+ newKIntSpinBox(lower,upper,step,value,base);
+ }
+ private native void newKIntSpinBox(int lower, int upper, int step, int value, int base);
+ public KIntSpinBox(int lower, int upper, int step, int value) {
+ super((Class) null);
+ newKIntSpinBox(lower,upper,step,value);
+ }
+ private native void newKIntSpinBox(int lower, int upper, int step, int value);
+ /**
+ Sets the base in which the numbers in the spin box are represented.
+ @short Sets the base in which the numbers in the spin box are represented.
+ */
+ public native void setBase(int base);
+ /**
+ @return the base in which numbers in the spin box are represented.
+
+ @short
+ */
+ public native int base();
+ /**
+ sets focus and optionally marks all text
+ @short sets focus and optionally marks all text
+ */
+ public native void setEditFocus(boolean mark);
+ /**
+ Overloaded the method in QSpinBox
+ to make use of the base given in the constructor.
+ @short Overloaded the method in QSpinBox to make use of the base given in the constructor.
+ */
+ protected native String mapValueToText(int arg1);
+ /**
+ Overloaded the method in QSpinBox
+ to make use of the base given in the constructor.
+ @short Overloaded the method in QSpinBox to make use of the base given in the constructor.
+ */
+ protected native int mapTextToValue(boolean[] arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KIntValidator.java b/kdejava/koala/org/kde/koala/KIntValidator.java
new file mode 100644
index 00000000..6c883490
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIntValidator.java
@@ -0,0 +1,103 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QValidator;
+
+/**
+
+ QValidator for integers.
+ This can be used by QLineEdit or subclass to provide validated
+ text entry. Can be provided with a base value (default is 10), to allow
+ the proper entry of hexadecimal, octal, or any other base numeric data.
+ @author Glen Parker <glenebob@nwlink.com>
+
+ @version 0.0.1
+
+ @short QValidator for integers.
+
+*/
+public class KIntValidator extends QValidator {
+ protected KIntValidator(Class dummy){super((Class) null);}
+ /**
+ Constuctor. Also sets the base value.
+ @short Constuctor.
+ */
+ public KIntValidator(QWidget parent, int base, String name) {
+ super((Class) null);
+ newKIntValidator(parent,base,name);
+ }
+ private native void newKIntValidator(QWidget parent, int base, String name);
+ public KIntValidator(QWidget parent, int base) {
+ super((Class) null);
+ newKIntValidator(parent,base);
+ }
+ private native void newKIntValidator(QWidget parent, int base);
+ public KIntValidator(QWidget parent) {
+ super((Class) null);
+ newKIntValidator(parent);
+ }
+ private native void newKIntValidator(QWidget parent);
+ /**
+ Constructor. Also sets the minimum, maximum, and numeric base values.
+ @short Constructor.
+ */
+ public KIntValidator(int bottom, int top, QWidget parent, int base, String name) {
+ super((Class) null);
+ newKIntValidator(bottom,top,parent,base,name);
+ }
+ private native void newKIntValidator(int bottom, int top, QWidget parent, int base, String name);
+ public KIntValidator(int bottom, int top, QWidget parent, int base) {
+ super((Class) null);
+ newKIntValidator(bottom,top,parent,base);
+ }
+ private native void newKIntValidator(int bottom, int top, QWidget parent, int base);
+ public KIntValidator(int bottom, int top, QWidget parent) {
+ super((Class) null);
+ newKIntValidator(bottom,top,parent);
+ }
+ private native void newKIntValidator(int bottom, int top, QWidget parent);
+ /**
+ Validates the text, and return the result. Does not modify the parameters.
+ @short Validates the text, and return the result.
+ */
+ public native int validate(StringBuffer arg1, int[] arg2);
+ /**
+ Fixes the text if possible, providing a valid string. The parameter may be modified.
+ @short Fixes the text if possible, providing a valid string.
+ */
+ public native void fixup(StringBuffer arg1);
+ /**
+ Sets the minimum and maximum values allowed.
+ @short Sets the minimum and maximum values allowed.
+ */
+ public native void setRange(int bottom, int top);
+ /**
+ Sets the numeric base value.
+ @short Sets the numeric base value.
+ */
+ public native void setBase(int base);
+ /**
+ Returns the current minimum value allowed.
+ @short Returns the current minimum value allowed.
+ */
+ public native int bottom();
+ /**
+ Returns the current maximum value allowed.
+ @short Returns the current maximum value allowed.
+ */
+ public native int top();
+ /**
+ Returns the current numeric base.
+ @short Returns the current numeric base.
+ */
+ public native int base();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KJanusWidget.java b/kdejava/koala/org/kde/koala/KJanusWidget.java
new file mode 100644
index 00000000..119f5ebe
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KJanusWidget.java
@@ -0,0 +1,447 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSize;
+import org.kde.qt.QGrid;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QVBox;
+import org.kde.qt.QFrame;
+import org.kde.qt.QHBox;
+import org.kde.qt.QWidget;
+
+/**
+
+ Provides a number of ready to use layouts (faces). It is used
+ as an internal widget in KDialogBase, but can also used as a
+ widget of its own.
+ This class provides KJanusWidget.TreeList, KJanusWidget.IconList,
+ KJanusWidget.Tabbed, KJanusWidget.Plain and KJanusWidget.Swallow layouts.
+ For all modes it is important that you specify the QWidget.minimumSize()
+ on the page, plain widget or the swallowed widget. If you use a QLayout
+ on the page, plain widget or the swallowed widget this will be taken care
+ of automatically. The size is used when the KJanusWidget determines its
+ own minimum size. You get the minimum size by using the
+ minimumSizeHint() or sizeHint() methods.
+ Pages that have been added in TreeList, IconList or Tabbed mode can be
+ removed by simply deleting the page. However, it would be preferable to use
+ the QObject.deleteLater() function on the page as the main event loop
+ may have optimized UI update events of the page by scheduling them for later.
+ See {@link KJanusWidgetSignals} for signals emitted by KJanusWidget
+ @author Espen Sand (espen@kde.org)
+
+ @short Easy to use widget with many layouts.
+
+*/
+public class KJanusWidget extends QWidget {
+ protected KJanusWidget(Class dummy){super((Class) null);}
+ public static final int TreeList = 0;
+ public static final int Tabbed = 1;
+ public static final int Plain = 2;
+ public static final int Swallow = 3;
+ public static final int IconList = 4;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor where you specify the face.
+ @param parent Parent of the widget.
+ @param name Widget name.
+ @param face The kind of dialog, Use TreeList, Tabbed, Plain or
+ Swallow.
+ @short Constructor where you specify the face.
+ */
+ public KJanusWidget(QWidget parent, String name, int face) {
+ super((Class) null);
+ newKJanusWidget(parent,name,face);
+ }
+ private native void newKJanusWidget(QWidget parent, String name, int face);
+ public KJanusWidget(QWidget parent, String name) {
+ super((Class) null);
+ newKJanusWidget(parent,name);
+ }
+ private native void newKJanusWidget(QWidget parent, String name);
+ public KJanusWidget(QWidget parent) {
+ super((Class) null);
+ newKJanusWidget(parent);
+ }
+ private native void newKJanusWidget(QWidget parent);
+ public KJanusWidget() {
+ super((Class) null);
+ newKJanusWidget();
+ }
+ private native void newKJanusWidget();
+ /**
+ Raises the page which was added by addPage().
+ @param index The index of the page you want to raise.
+ @short Raises the page which was added by addPage().
+ */
+ public native boolean showPage(int index);
+ /**
+ Returns the index of the page that are currently displayed.
+ @return The index or -1 if the face is not Tabbed, TreeList or
+ IconList.
+
+ @short Returns the index of the page that are currently displayed.
+ */
+ public native int activePageIndex();
+ /**
+ Use this to verify
+ that no memory allocation failed.
+ @return true if the widget was properly created.
+
+ @short Use this to verify that no memory allocation failed.
+ */
+ public native boolean isValid();
+ /**
+ Returns the face type.
+ @return The face type.
+
+ @short Returns the face type.
+ */
+ public native int face();
+ /**
+ Returns the minimum size that must be made available for the widget
+ so that UIs can be displayed properly
+ @return The minimum size.
+
+ @short Returns the minimum size that must be made available for the widget so that UIs can be displayed properly
+ */
+ public native QSize minimumSizeHint();
+ /**
+ Returns the recommended size for the widget in order to be displayed
+ properly.
+ @return The recommended size.
+
+ @short Returns the recommended size for the widget in order to be displayed properly.
+ */
+ public native QSize sizeHint();
+ /**
+ Returns the empty widget that is available in Plain mode.
+ @return The widget or 0 if the face in not Plain.
+
+ @short Returns the empty widget that is available in Plain mode.
+ */
+ public native QFrame plainPage();
+ /**
+ Add a new page when the class is used in TreeList, IconList or Tabbed
+ mode. The returned widget is empty and you must add your widgets
+ as children to this widget. In most cases you must create a layout
+ manager and associate it with this widget as well.
+ Deleting the returned frame will cause the listitem or tab to be
+ removed (you can re-add a page with the same name later.
+ @param item String used in the list or Tab item.
+ @param header A longer string used in TreeList and IconList mode to
+ describe the contents of a page. If empty, the item string
+ will be used instead.
+ @param pixmap Used in IconList mode or in TreeList mode. You should
+ prefer a pixmap with size 32x32 pixels.
+ @return The empty page or 0 if the face is not TreeList, IconList or
+ Tabbed.
+
+ @short Add a new page when the class is used in TreeList, IconList or Tabbed mode.
+ */
+ public native QFrame addPage(String item, String header, QPixmap pixmap);
+ public native QFrame addPage(String item, String header);
+ public native QFrame addPage(String item);
+ /**
+ This is like addPage just above, with the difference that the first
+ element is a list of strings. These strings are used to form a path
+ of folders down to the given page. The initial elements are names
+ for the folders, while the last element is the name of the page.
+ Note: This does yet only work for the TreeList face. Later this may
+ be added for the IconList face too. In other faces than the
+ TreeList, all the strings except the last one is ignored.
+ Deleting the returned frame will cause the listitem or tab to be
+ removed (you can re-add a page with the same name later.
+ Deleting the returned frame will cause the listitem or tab to be
+ removed (you can re-add a page with the same name later.
+ @short This is like addPage just above, with the difference that the first element is a list of strings.
+ */
+ public native QFrame addPage(String[] items, String header, QPixmap pixmap);
+ public native QFrame addPage(String[] items, String header);
+ public native QFrame addPage(String[] items);
+ /**
+ Add a new page when the class is used in TreeList, IconList or Tabbed
+ mode. The returned widget is empty and you must add your widgets
+ as children to this widget. The returned widget is a QVBox
+ so it contains a QVBoxLayout layout that lines up the child widgets
+ are vertically.
+ Deleting the returned frame will cause the listitem or tab to be
+ removed (you can re-add a page with the same name later.
+ @param item String used in the list or Tab item.
+ @param header A longer string used in TreeList and IconList mode to
+ describe the contents of a page. If empty, the item string
+ will be used instead.
+ @param pixmap Used in IconList mode or in TreeList mode. You should
+ prefer a pixmap with size 32x32 pixels.
+ @return The empty page or 0 if the face is not TreeList, IconList or
+ Tabbed.
+ @short Add a new page when the class is used in TreeList, IconList or Tabbed mode.
+ */
+ public native QVBox addVBoxPage(String item, String header, QPixmap pixmap);
+ public native QVBox addVBoxPage(String item, String header);
+ public native QVBox addVBoxPage(String item);
+ /**
+ This is like addVBoxPage just above, with the difference that the first
+ element is a list of strings. These strings are used to form a path
+ of folders down to the given page. The initial elements are names
+ for the folders, while the last element is the name of the page.
+ Note: This does yet only work for the TreeList face. Later this may
+ be added for the IconList face too. In other faces than the
+ TreeList, all the strings except the last one is ignored.
+ Deleting the returned frame will cause the listitem or tab to be
+ removed (you can re-add a page with the same name later.
+ @short This is like addVBoxPage just above, with the difference that the first element is a list of strings.
+ */
+ public native QVBox addVBoxPage(String[] items, String header, QPixmap pixmap);
+ public native QVBox addVBoxPage(String[] items, String header);
+ public native QVBox addVBoxPage(String[] items);
+ /**
+ Add a new page when the class is used in TreeList, IconList or Tabbed
+ mode. The returned widget is empty and you must add your widgets
+ as children to this widget. The returned widget is a QHBox
+ so it contains a QHBoxLayout layout that lines up the child widgets
+ are horizontally.
+ Deleting the returned frame will cause the listitem or tab to be
+ removed (you can re-add a page with the same name later.
+ @param itemName String used in the list or Tab item.
+ @param header A longer string used in TreeList and IconList mode to
+ describe the contents of a page. If empty, the item string
+ will be used instead.
+ @param pixmap Used in IconList mode or in TreeList mode. You should
+ prefer a pixmap with size 32x32 pixels.
+ @return The empty page or 0 if the face is not TreeList, IconList or
+ Tabbed.
+
+ @short Add a new page when the class is used in TreeList, IconList or Tabbed mode.
+ */
+ public native QHBox addHBoxPage(String itemName, String header, QPixmap pixmap);
+ public native QHBox addHBoxPage(String itemName, String header);
+ public native QHBox addHBoxPage(String itemName);
+ /**
+ This is like addHBoxPage just above, with the difference that the first
+ element is a list of strings. These strings are used to form a path
+ of folders down to the given page. The initial elements are names
+ for the folders, while the last element is the name of the page.
+ Note: This does yet only work for the TreeList face. Later this may
+ be added for the IconList face too. In other faces than the
+ TreeList, all the strings except the last one is ignored.
+ Deleting the returned frame will cause the listitem or tab to be
+ removed (you can re-add a page with the same name later.
+ @short This is like addHBoxPage just above, with the difference that the first element is a list of strings.
+ */
+ public native QHBox addHBoxPage(String[] items, String header, QPixmap pixmap);
+ public native QHBox addHBoxPage(String[] items, String header);
+ public native QHBox addHBoxPage(String[] items);
+ /**
+ Add a new page when the class is used in either TreeList or Tabbed
+ mode. The returned widget is empty and you must add your widgets
+ as children to this widget. The returned widget is a QGrid
+ so it contains a QGridLayout layout that places up the child widgets
+ in a grid.
+ Deleting the returned frame will cause the listitem or tab to be
+ removed (you can re-add a page with the same name later.
+ @param n Specifies the number of columns if 'dir' is QGrid.Horizontal
+ or the number of rows if 'dir' is QGrid.Vertical.
+ @param dir Can be QGrid.Horizontal or QGrid.Vertical.
+ @param itemName String used in the list or Tab item.
+ @param header A longer string used in TreeList and IconList mode to
+ describe the contents of a page. If empty, the item string
+ will be used instead.
+ @param pixmap Used in IconList mode or in TreeList mode. You should
+ prefer a pixmap with size 32x32 pixels.
+ @return The empty page or 0 if the face is not TreeList, IconList or
+ Tabbed.
+
+ @short Add a new page when the class is used in either TreeList or Tabbed mode.
+ */
+ public native QGrid addGridPage(int n, int dir, String itemName, String header, QPixmap pixmap);
+ public native QGrid addGridPage(int n, int dir, String itemName, String header);
+ public native QGrid addGridPage(int n, int dir, String itemName);
+ /**
+ This is like addGridPage just above, with the difference that the first
+ element is a list of strings. These strings are used to form a path
+ of folders down to the given page. The initial elements are names
+ for the folders, while the last element is the name of the page.
+ Note: This does yet only work for the TreeList face. Later this may
+ be added for the IconList face too. In other faces than the
+ TreeList, all the strings except the last one is ignored.
+ Deleting the returned frame will cause the listitem or tab to be
+ removed (you can re-add a page with the same name later.
+ @short This is like addGridPage just above, with the difference that the first element is a list of strings.
+ */
+ public native QGrid addGridPage(int n, int dir, String[] items, String header, QPixmap pixmap);
+ public native QGrid addGridPage(int n, int dir, String[] items, String header);
+ public native QGrid addGridPage(int n, int dir, String[] items);
+ /**
+ @param page The widget returned by addPage , addVBoxPage ,
+ addHBoxPage or addGridPage .
+ @short Removes a page created with addPage, addVBoxPage, addHBoxPage or addGridPage. If the page has already been deleted or has already been removed, nothing happens. The widget itself is not deleted.
+ */
+ public native void removePage(QWidget page);
+ /**
+ Returns the index of a page created with addPage ,
+ addVBoxPage , addHBoxPage or addGridPage .
+ You can can compare this index with the value returned from
+ activePageIndex if you need to do some page specific actions
+ in your code.
+ The returned index will never change so you can safely use this
+ function once and save the value.
+ @param widget The widget returned by addPage , addVBoxPage ,
+ addHBoxPage or addGridPage .
+ @return The index or -1 if the face is not Tabbed, TreeList or
+ IconList
+
+ @short Returns the index of a page created with addPage , addVBoxPage , addHBoxPage or addGridPage .
+ */
+ public native int pageIndex(QWidget widget);
+ /**
+ Defines the widget to be swallowed.
+ This method can be used several
+ times. Only the latest defined widget will be shown.
+ @param widget The widget to be swallowed. If 0, then an empty rectangle
+ is displayed.
+ @short Defines the widget to be swallowed.
+ */
+ public native boolean setSwallowedWidget(QWidget widget);
+ /**
+ This function has only effect in TreeList mode.
+ Defines how the tree list is resized when the widget is resized
+ horizontally. By default the tree list keeps its width when the
+ widget becomes wider.
+ @param state The resize mode. If false (default) the TreeList keeps
+ its current width when the widget becomes wider.
+ @short This function has only effect in TreeList mode.
+ */
+ public native void setTreeListAutoResize(boolean state);
+ /**
+ This function has only effect in TreeList mode.
+ This tells the widgets whether the icons given in the addPage,
+ addVBoxPage, addHBoxPage, or addGridPage methods should
+ be shown in the TreeList.
+ Note: This method must be called before calling any of the methods
+ which add icons to the page.
+ @param state If true the icons are shown.
+ @short This function has only effect in TreeList mode.
+ */
+ public native void setShowIconsInTreeList(boolean state);
+ /**
+ This function has only effect in TreeList mode.
+ This tells the widgets whether the root should be decorated.
+ For details see QListView.setRootIsDecorated
+ @param state Root will be decorated if true.
+ @short This function has only effect in TreeList mode.
+ */
+ public native void setRootIsDecorated(boolean state);
+ /**
+ This function has only effect in TreeList mode.
+ This tells the TreeList to unfold the whole tree so that all entries
+ are visible.
+ If the list is empty when you call this method newly created entries
+ will not automatically be opened. If the <code>persist</code> flag is set opened
+ entries cannot be closed again, though.
+ @param persist If true the tree always stays unfolded.
+ @short This function has only effect in TreeList mode.
+ */
+ public native void unfoldTreeList(boolean persist);
+ public native void unfoldTreeList();
+ /**
+ Add a widget at the bottom of the TreeList/IconList.
+ @param widget The widget to be added. It will be reparented into the
+ KJanusWidget, therefor it will be deleted with the
+ KJanusWidget, too. To be on the save side just don't keep
+ the pointer to this widget.
+ @short Add a widget at the bottom of the TreeList/IconList.
+ */
+ public native void addWidgetBelowList(QWidget widget);
+ /**
+ Add a button at the bottom of the TreeList/IconList.
+ @param text The text on the PushButton.
+ @param recv The object that is to receive the signal when the button
+ is clicked.
+ @param slot The slot to connect to the clicked signal of the button.
+ @short Add a button at the bottom of the TreeList/IconList.
+ */
+ public native void addButtonBelowList(String text, QObject recv, String slot);
+ /**
+ The same as the above function, but with a KGuiItem providing the text
+ and icon for the button at the bottom of the TreeList/IconList.
+ @param guiitem The text and icon on the PushButton.
+ @param recv The object that is to receive the signal when the button
+ is clicked.
+ @param slot The slot to connect to the clicked signal of the button.
+ @short The same as the above function, but with a KGuiItem providing the text and icon for the button at the bottom of the TreeList/IconList.
+ */
+ public native void addButtonBelowList(KGuiItem guiitem, QObject recv, String slot);
+ /**
+ This function has only effect in IconList mode.
+ Defines how the icon list widget is displayed. By default it is
+ the widgets in the pages that decide the minimum height
+ of the toplevel widget. A vertical scrollbar can be used in
+ the icon list area.
+ @param state The visibility mode. If true, the minimum height is
+ adjusted so that every icon in the list is visible at the
+ same time. The vertical scrollbar will never be visible.
+ @short This function has only effect in IconList mode.
+ */
+ public native void setIconListAllVisible(boolean state);
+ /**
+ Sets the icon used in TreeList Mode for the given path.
+ @param path The path for which this icon should be shown.
+ @param pixmap The icon used.
+ @short Sets the icon used in TreeList Mode for the given path.
+ */
+ public native void setFolderIcon(String[] path, QPixmap pixmap);
+ /**
+ Returns the title string associated with a page index in TreeList or IconList mode.
+ @param index The index of the page or null if there is no such page.
+ @short Returns the title string associated with a page index in TreeList or IconList mode.
+ @see #pageIndex
+ */
+ public native String pageTitle(int index);
+ /**
+ Returns the page widget associated with a page index or null if there is
+ no such page.
+ @param index The index of the page.
+ @short Returns the page widget associated with a page index or null if there is no such page.
+ @see #pageIndex
+ */
+ public native QWidget pageWidget(int index);
+ /**
+ Give the keyboard input focus to the widget.
+ @short Give the keyboard input focus to the widget.
+ */
+ public native void setFocus();
+ /**
+ Reimplemented to handle the splitter width when the the face
+ is TreeList
+ @short Reimplemented to handle the splitter width when the the face is TreeList
+ */
+ public native void showEvent(QShowEvent arg1);
+ /**
+ This function is used internally when in IconList mode. If you
+ reimplement this class a make your own event filter, make sure to
+ call this function from your filter.
+ @param o Object that has received an event.
+ @param e The event.
+ @short This function is used internally when in IconList mode.
+ */
+ public native boolean eventFilter(QObject o, QEvent e);
+ protected native boolean showPage(QWidget w);
+ protected native void addPageWidget(QFrame page, String[] items, String header, QPixmap pixmap);
+ protected native void InsertTreeListItem(String[] items, QPixmap pixmap, QFrame page);
+ protected native QWidget FindParent();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KJanusWidgetSignals.java b/kdejava/koala/org/kde/koala/KJanusWidgetSignals.java
new file mode 100644
index 00000000..9a505a94
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KJanusWidgetSignals.java
@@ -0,0 +1,24 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSize;
+import org.kde.qt.QGrid;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QVBox;
+import org.kde.qt.QFrame;
+import org.kde.qt.QHBox;
+
+public interface KJanusWidgetSignals {
+ /**
+ This signal is emitted whenever the current page changes.
+ @param page the new page.
+ @short This signal is emitted whenever the current page changes.
+ */
+ void aboutToShowPage(QWidget page);
+}
diff --git a/kdejava/koala/org/kde/koala/KKey.java b/kdejava/koala/org/kde/koala/KKey.java
new file mode 100644
index 00000000..6bc2827e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KKey.java
@@ -0,0 +1,267 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QKeySequence;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QKeyEvent;
+
+/**
+
+ A KKey object represents a single key with possible modifiers
+ (Shift, Ctrl, Alt, Win). It can represent both keys which are
+ understood by Qt as well as those which are additionally supported
+ by the underlying system (e.g. X11).
+ @short A KKey object represents a single key with possible modifiers (Shift, Ctrl, Alt, Win).
+ @see KKeyNative
+ @see KKeySequence
+ @see KShortcut
+
+*/
+public class KKey implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KKey(Class dummy){}
+
+ /**
+ The number of flags.
+ @short The number of flags.
+ @see ModFlag
+ */
+ public static final int MOD_FLAG_COUNT = 4;
+
+ public static final int QtWIN = (Qt.META);
+
+ /**
+ Flags to represent the modifiers. You can combine modifiers
+ by ORing them.
+ @short Flags to represent the modifiers.
+ */
+ public static final int SHIFT = 0x01;
+ public static final int CTRL = 0x02;
+ public static final int ALT = 0x04;
+ public static final int WIN = 0x08;
+
+ /**
+ Creates a new null KKey.
+ @short Creates a new null KKey.
+ @see #clear
+ @see #isNull
+ @see #null
+ */
+ public KKey() {
+ newKKey();
+ }
+ private native void newKKey();
+ /**
+ Creates a new key for the given Qt key code.
+ @param keyQt the qt keycode
+ @short Creates a new key for the given Qt key code.
+ @see org.kde.qt.Qt#Key
+ */
+ public KKey(int keyQt) {
+ newKKey(keyQt);
+ }
+ private native void newKKey(int keyQt);
+ /**
+ Creates a new key from the first key code of the given key sequence.
+ @param keySeq the key sequence that contains the key
+ @short Creates a new key from the first key code of the given key sequence.
+ */
+ public KKey(QKeySequence keySeq) {
+ newKKey(keySeq);
+ }
+ private native void newKKey(QKeySequence keySeq);
+ /**
+ Extracts the key from the given key event.
+ @param keyEvent the key event to get the key from
+ @short Extracts the key from the given key event.
+ */
+ public KKey(QKeyEvent keyEvent) {
+ newKKey(keyEvent);
+ }
+ private native void newKKey(QKeyEvent keyEvent);
+ /**
+ Copy constructor.
+ @short Copy constructor.
+ */
+ public KKey(KKey key) {
+ newKKey(key);
+ }
+ private native void newKKey(KKey key);
+ /**
+ Creates a new key from the given description. The form of the description
+ is "[modifier+[modifier+]]+key", for example "e", "CTRL+q" or
+ "CTRL+ALT+DEL". Allowed modifiers are "SHIFT", "CTRL", "ALT", "WIN" and
+ "META". "WIN" and "META" are equivalent. Modifiers are not case-sensitive.
+ @param key the description of the key
+ @short Creates a new key from the given description.
+ @see KKeyServer#Sym#init
+ */
+ public KKey(String key) {
+ newKKey(key);
+ }
+ private native void newKKey(String key);
+ /**
+ @short
+ */
+ public KKey(int key, int mod) {
+ newKKey(key,mod);
+ }
+ private native void newKKey(int key, int mod);
+ /**
+ Clears the key. The key is null after calling this function.
+ @short Clears the key.
+ @see #isNull
+ */
+ public native void clear();
+ /**
+ Initializes the key with the given Qt key code.
+ @param keyQt the qt keycode
+ @return true if successful, false otherwise
+
+ @short Initializes the key with the given Qt key code.
+ @see org.kde.qt.Qt#Key
+ */
+ public native boolean init(int keyQt);
+ /**
+ Initializes the key with the first key code of the given key sequence.
+ @param keySeq the key sequence that contains the key
+ @return true if successful, false otherwise
+
+ @short Initializes the key with the first key code of the given key sequence.
+ */
+ public native boolean init(QKeySequence keySeq);
+ /**
+ Initializes the key by extracting the code from the given key event.
+ @param keyEvent the key event to get the key from
+ @return true if successful, false otherwise
+
+ @short Initializes the key by extracting the code from the given key event.
+ */
+ public native boolean init(QKeyEvent keyEvent);
+ /**
+ Copies the given key.
+ @param key the key to copy
+ @return true if successful, false otherwise
+
+ @short Copies the given key.
+ */
+ public native boolean init(KKey key);
+ /**
+ Initializes the key with the given description. The form of the description
+ is "[modifier+[modifier+]]+key", for example "e", "CTRL+q" or
+ "CTRL+ALT+DEL". Allowed modifiers are "SHIFT", "CTRL", "ALT", "WIN" and
+ "META". "WIN" and "META" are equivalent. Modifiers are not case-sensitive.
+ @param key the description of the key
+ @return true if successful, false otherwise
+
+ @short Initializes the key with the given description.
+ @see KKeyServer#Sym#init
+ */
+ public native boolean init(String key);
+ /**
+ @short
+ */
+ public native boolean init(int key, int mod);
+ /**
+ Returns true if the key is null (after clear() or empty
+ constructor).
+ @return true if the key is null
+
+ @short Returns true if the key is null (after clear() or empty constructor).
+ @see #clear
+ @see #null
+ */
+ public native boolean isNull();
+ /**
+ @short
+ */
+ public native int sym();
+ /**
+ @short
+ */
+ public native int modFlags();
+ /**
+ Compares this key with the given KKey object. Returns a negative
+ number if the given KKey is larger, 0 if they are equal and
+ a positive number this KKey is larger. The returned value
+ is the difference between the symbol or, if the symbols
+ are equal, the difference between the encoded modifiers.
+ @param key the key to compare with this key
+ @return a negative number if the given KKey is larger, 0 if
+ they are equal and a positive number this KKey is larger
+
+ @short Compares this key with the given KKey object.
+ */
+ public native int compare(KKey key);
+ /**
+ Compares the symbol and modifiers of both keys.
+ @short Compares the symbol and modifiers of both keys.
+ @see #compare
+ */
+ public native boolean op_equals(KKey key);
+ /**
+ Compares the symbol and modifiers of both keys.
+ @short Compares the symbol and modifiers of both keys.
+ @see #compare
+ */
+ public native boolean op_not_equals(KKey key);
+ /**
+ Compares the symbol and modifiers of both keys.
+ @short Compares the symbol and modifiers of both keys.
+ @see #compare
+ */
+ public native boolean op_lt(KKey key);
+ /**
+ Returns the qt key code.
+ @return the qt key code or 0 if there is no key set.
+
+ @short Returns the qt key code.
+ @see org.kde.qt.Qt#Key
+ */
+ public native int keyCodeQt();
+ /**
+ Returns a human-readable representation of the key in the form
+ "modifier+key". Note that the representation is localised,
+ use toStringInternal() for cases like saving to configuration files.
+ @return the string representation of the key
+
+ @short Returns a human-readable representation of the key in the form "modifier+key".
+ @see #toStringInternal
+ */
+ public native String toString();
+ /**
+ Returns an untranslated text representation of the key in the form
+ "modifier+key", suitable e.g. for saving in configuration files.
+ @short Returns an untranslated text representation of the key in the form "modifier+key", suitable e.
+ */
+ public native String toStringInternal();
+ /**
+ @short
+ */
+ public native void simplify();
+ /**
+ Returns a null key.
+ @return the null key
+
+ @short Returns a null key.
+ @see #isNull
+ @see #clear
+ */
+ public static native KKey nil();
+ /**
+ Returns a user-readable representation of the given modifiers.
+ @param f the modifiers to convert
+ @return the string representation of the modifiers
+
+ @short Returns a user-readable representation of the given modifiers.
+ */
+ public static native String modFlagLabel(int f);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KKeyButton.java b/kdejava/koala/org/kde/koala/KKeyButton.java
new file mode 100644
index 00000000..82ed6ace
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KKeyButton.java
@@ -0,0 +1,73 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPainter;
+import org.kde.qt.QWidget;
+import org.kde.qt.QPushButton;
+
+/**
+
+ You must call setShortcut() to set the widget's currently displayed key.
+ You can call captureShortcut() to get a new shortcut from the user.
+ If captureShortcut() succeeds, then the capturedShortcut() signal will be
+ emitted with the value of the new shortcut. The widget containing
+ a KKeyButton widget must connect to this signal and check if the shortcut
+ is valid. If it is, you will need to call setShortcut() with the new
+ value in order make it the key currently displayed.
+ See {@link KKeyButtonSignals} for signals emitted by KKeyButton
+ @author Mark Donohoe <donohoe@kde.org>
+
+ @short A push button that looks like a keyboard key.
+
+*/
+public class KKeyButton extends QPushButton {
+ protected KKeyButton(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs key button widget.
+ @short Constructs key button widget.
+ */
+ public KKeyButton(QWidget parent, String name) {
+ super((Class) null);
+ newKKeyButton(parent,name);
+ }
+ private native void newKKeyButton(QWidget parent, String name);
+ public KKeyButton(QWidget parent) {
+ super((Class) null);
+ newKKeyButton(parent);
+ }
+ private native void newKKeyButton(QWidget parent);
+ public KKeyButton() {
+ super((Class) null);
+ newKKeyButton();
+ }
+ private native void newKKeyButton();
+ public native void setShortcut(KShortcut cut, boolean bQtShortcut);
+ public native KShortcut shortcut();
+ /**
+ Reimplemented for internal purposes.
+ @short Reimplemented for internal purposes.
+ */
+ public native void setText(String text);
+ /**
+ Call this method to capture a shortcut from the keyboard.
+ If it succeeds, the capturedShortcut() signal will be emitted.
+ @short Call this method to capture a shortcut from the keyboard.
+ */
+ public native void captureShortcut();
+ /**
+ Reimplemented for internal reasons.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void drawButton(QPainter _painter);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KKeyButtonSignals.java b/kdejava/koala/org/kde/koala/KKeyButtonSignals.java
new file mode 100644
index 00000000..adf70da4
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KKeyButtonSignals.java
@@ -0,0 +1,11 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPainter;
+import org.kde.qt.QWidget;
+
+public interface KKeyButtonSignals {
+ void capturedShortcut(KShortcut arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KKeyChooser.java b/kdejava/koala/org/kde/koala/KKeyChooser.java
new file mode 100644
index 00000000..0c45d5e5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KKeyChooser.java
@@ -0,0 +1,195 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QListViewItem;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ Configure dictionaries of key/action associations for KAccel and
+ KGlobalAccel.
+ The class takes care of all aspects of configuration, including
+ handling key conflicts internally. Connect to the allDefault()
+ slot if you want to set all configurable shortcuts to their
+ default values.
+ See {@link KKeyChooserSignals} for signals emitted by KKeyChooser
+ @author Nicolas Hadacek <hadacek@via.ecp.fr>
+
+ @short Widget for configuration of KAccel and KGlobalAccel.
+ @see KKeyDialog
+
+*/
+public class KKeyChooser extends QWidget {
+ protected KKeyChooser(Class dummy){super((Class) null);}
+ public static final int NoKey = 1;
+ public static final int DefaultKey = 2;
+ public static final int CustomKey = 3;
+
+ public static final int Application = 0;
+ public static final int ApplicationGlobal = 1;
+ public static final int Standard = 2;
+ public static final int Global = 3;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor.
+ @param parent the parent widget for this widget
+ @param type the ActionType for this KKeyChooser
+ @param bAllowLetterShortcuts Set to false if unmodified alphanumeric
+ keys ('A', '1', etc.) are not permissible shortcuts.
+ @short Constructor.
+ */
+ // KKeyChooser* KKeyChooser(QWidget* arg1,ActionType arg2,bool arg3); >>>> NOT CONVERTED
+ // KKeyChooser* KKeyChooser(QWidget* arg1,ActionType arg2); >>>> NOT CONVERTED
+ public KKeyChooser(QWidget parent) {
+ super((Class) null);
+ newKKeyChooser(parent);
+ }
+ private native void newKKeyChooser(QWidget parent);
+ /**
+ \overload
+ @param parent parent widget
+ @param coll the KActionCollection to configure
+ @param bAllowLetterShortcuts Set to false if unmodified alphanumeric
+ keys ('A', '1', etc.) are not permissible shortcuts.
+ @short \overload
+ */
+ public KKeyChooser(KActionCollection coll, QWidget parent, boolean bAllowLetterShortcuts) {
+ super((Class) null);
+ newKKeyChooser(coll,parent,bAllowLetterShortcuts);
+ }
+ private native void newKKeyChooser(KActionCollection coll, QWidget parent, boolean bAllowLetterShortcuts);
+ public KKeyChooser(KActionCollection coll, QWidget parent) {
+ super((Class) null);
+ newKKeyChooser(coll,parent);
+ }
+ private native void newKKeyChooser(KActionCollection coll, QWidget parent);
+ public KKeyChooser(KAccel actions, QWidget parent, boolean bAllowLetterShortcuts) {
+ super((Class) null);
+ newKKeyChooser(actions,parent,bAllowLetterShortcuts);
+ }
+ private native void newKKeyChooser(KAccel actions, QWidget parent, boolean bAllowLetterShortcuts);
+ public KKeyChooser(KAccel actions, QWidget parent) {
+ super((Class) null);
+ newKKeyChooser(actions,parent);
+ }
+ private native void newKKeyChooser(KAccel actions, QWidget parent);
+ public KKeyChooser(KGlobalAccel actions, QWidget parent) {
+ super((Class) null);
+ newKKeyChooser(actions,parent);
+ }
+ private native void newKKeyChooser(KGlobalAccel actions, QWidget parent);
+ // KKeyChooser* KKeyChooser(KShortcutList* arg1,QWidget* arg2,ActionType arg3,bool arg4); >>>> NOT CONVERTED
+ // KKeyChooser* KKeyChooser(KShortcutList* arg1,QWidget* arg2,ActionType arg3); >>>> NOT CONVERTED
+ public KKeyChooser(KShortcutList arg1, QWidget parent) {
+ super((Class) null);
+ newKKeyChooser(arg1,parent);
+ }
+ private native void newKKeyChooser(KShortcutList arg1, QWidget parent);
+ /**
+ Insert an action collection, i.e. add all its actions to the ones
+ already associated with the KKeyChooser object.
+ @short Insert an action collection, i.
+ */
+ public native boolean insert(KActionCollection arg1);
+ /**
+ Insert an action collection, i.e. add all its actions to the ones
+ already associated with the KKeyChooser object.
+ @param title subtree title of this collection of shortcut.
+ @short Insert an action collection, i.
+ */
+ public native boolean insert(KActionCollection arg1, String title);
+ public native void syncToConfig(String sConfigGroup, KConfigBase pConfig, boolean bClearUnset);
+ /**
+ This function writes any shortcut changes back to the original
+ action set(s).
+ @short This function writes any shortcut changes back to the original action set(s).
+ */
+ public native void commitChanges();
+ /**
+ This commits and then saves the actions to disk.
+ Any KActionCollection objects with the xmlFile() value set
+ will be written to an XML file. All other will be written
+ to the application's rc file.
+ @short This commits and then saves the actions to disk.
+ */
+ public native void save();
+ /**
+ Set all keys to their default values (bindings).
+ @short Set all keys to their default values (bindings).
+ */
+ public native void allDefault();
+ /**
+ Specifies whether to use the 3 or 4 modifier key scheme.
+ This determines which default is used when the 'Default' button is
+ clicked.
+ @short Specifies whether to use the 3 or 4 modifier key scheme.
+ */
+ public native void setPreferFourModifierKeys(boolean preferFourModifierKeys);
+ /**
+ Rebuild list entries based on underlying map.
+ Use this if you changed the underlying map.
+ @short Rebuild list entries based on underlying map.
+ */
+ public native void listSync();
+ /**
+ Checks whether the given shortcut conflicts with global keyboard shortcuts.
+ If yes, and the warnUser argument is true, warns the user and gives them a chance
+ to reassign the shortcut from the global shortcut.
+ @param cut the shortcut that will be checked for conflicts
+ @param warnUser if true, the user will be warned about a conflict and given a chance
+ to reassign the shortcut
+ @param parent parent widget for the warning dialog
+ @return true if there was conflict (and the user didn't reassign the shortcut)
+
+ @short Checks whether the given shortcut conflicts with global keyboard shortcuts.
+ */
+ public static native boolean checkGlobalShortcutsConflict(KShortcut cut, boolean warnUser, QWidget parent);
+ /**
+ Checks whether the given shortcut conflicts with standard keyboard shortcuts.
+ If yes, and the warnUser argument is true, warns the user and gives them a chance
+ to reassign the shortcut from the standard shortcut.
+ @param cut the shortcut that will be checked for conflicts
+ @param warnUser if true, the user will be warned about a conflict and given a chance
+ to reassign the shortcut
+ @param parent parent widget for the warning dialog
+ @return true if there was conflict (and the user didn't reassign the shortcut)
+
+ @short Checks whether the given shortcut conflicts with standard keyboard shortcuts.
+ */
+ public static native boolean checkStandardShortcutsConflict(KShortcut cut, boolean warnUser, QWidget parent);
+ // void initGUI(ActionType arg1,bool arg2); >>>> NOT CONVERTED
+ protected native boolean insert(KAccel arg1);
+ protected native boolean insert(KGlobalAccel arg1);
+ protected native boolean insert(KShortcutList arg1);
+ protected native void buildListView(int iList, String title);
+ protected native void buildListView(int iList);
+ protected native void readGlobalKeys();
+ protected native void updateButtons();
+ protected native void fontChange(QFont _font);
+ protected native void setShortcut(KShortcut cut);
+ protected native boolean isKeyPresent(KShortcut cut, boolean warnuser);
+ protected native boolean isKeyPresent(KShortcut cut);
+ // bool isKeyPresentLocally(const KShortcut& arg1,KKeyChooserItem* arg2,const QString& arg3); >>>> NOT CONVERTED
+ protected native void _warning(KKeySequence seq, String sAction, String sTitle);
+ protected native void slotNoKey();
+ protected native void slotDefaultKey();
+ protected native void slotCustomKey();
+ protected native void slotListItemSelected(QListViewItem item);
+ protected native void capturedShortcut(KShortcut cut);
+ protected native void slotSettingsChanged(int arg1);
+ protected native void slotListItemDoubleClicked(QListViewItem ipoQListViewItem, QPoint ipoQPoint, int c);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KKeyChooserSignals.java b/kdejava/koala/org/kde/koala/KKeyChooserSignals.java
new file mode 100644
index 00000000..ae5daecf
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KKeyChooserSignals.java
@@ -0,0 +1,17 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QListViewItem;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QWidget;
+
+public interface KKeyChooserSignals {
+ /**
+ Emitted when an action's shortcut has been changed.
+ @short Emitted when an action's shortcut has been changed.
+ */
+ void keyChange();
+}
diff --git a/kdejava/koala/org/kde/koala/KKeyDialog.java b/kdejava/koala/org/kde/koala/KKeyDialog.java
new file mode 100644
index 00000000..ed927738
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KKeyDialog.java
@@ -0,0 +1,157 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ The KKeyDialog class is used for configuring dictionaries of key/action
+ associations for KActionCollection, KAccel, and KGlobalAccel. It uses the KKeyChooser widget
+ and offers buttons to set all keys to defaults and invoke on-line help.
+ Several static methods are supplied which provide the most convenient interface
+ to the dialog. The most common and most encouraged use is with KActionCollection.
+ <pre>
+ KKeyDialog.configure( actionCollection() );
+ </pre>
+ @author Nicolas Hadacek <hadacek@via.ecp.fr>
+
+ @short Dialog for configuration of KActionCollection, KAccel, and KGlobalAccel.
+
+*/
+public class KKeyDialog extends KDialogBase {
+ protected KKeyDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KKeyDialog called <code>name</code> as a child of <code>parent.</code>
+ Set <code>bAllowLetterShortcuts</code> to false if unmodified alphanumeric
+ keys ('A', '1', etc.) are not permissible shortcuts.
+ @short Constructs a KKeyDialog called <code>name</code> as a child of <code>parent.</code>
+ */
+ public KKeyDialog(boolean bAllowLetterShortcuts, QWidget parent, String name) {
+ super((Class) null);
+ newKKeyDialog(bAllowLetterShortcuts,parent,name);
+ }
+ private native void newKKeyDialog(boolean bAllowLetterShortcuts, QWidget parent, String name);
+ public KKeyDialog(boolean bAllowLetterShortcuts, QWidget parent) {
+ super((Class) null);
+ newKKeyDialog(bAllowLetterShortcuts,parent);
+ }
+ private native void newKKeyDialog(boolean bAllowLetterShortcuts, QWidget parent);
+ public KKeyDialog(boolean bAllowLetterShortcuts) {
+ super((Class) null);
+ newKKeyDialog(bAllowLetterShortcuts);
+ }
+ private native void newKKeyDialog(boolean bAllowLetterShortcuts);
+ public KKeyDialog() {
+ super((Class) null);
+ newKKeyDialog();
+ }
+ private native void newKKeyDialog();
+ /**
+ Insert an action collection, i.e. add all its actions to the ones
+ displayed by the dialog.
+ This method can be useful in applications following the document/view
+ design, with actions in both the document and the view.
+ Simply call insert with the action collections of each one in turn.
+ @return true :)
+
+ @short Insert an action collection, i.
+ */
+ public native boolean insert(KActionCollection arg1);
+ /**
+ Insert an action collection, i.e. add all its actions to the ones
+ displayed by the dialog.
+ This method can be useful in applications following the document/view
+ design, with actions in both the document and the view.
+ Simply call insert with the action collections of each one in turn.
+ @param title the title associated with the collection (if null, the
+ KAboutData.progName() of the collection's instance is used)
+ @return true :)
+
+ @short Insert an action collection, i.
+ */
+ public native boolean insert(KActionCollection arg1, String title);
+ /**
+ Run the dialog and call commitChanges() if <code>bSaveSettings</code>
+ is true.
+ @short Run the dialog and call commitChanges() if <code>bSaveSettings</code> is true.
+ */
+ public native boolean configure(boolean bSaveSettings);
+ public native boolean configure();
+ /**
+ Commit key setting changes so that changed settings actually become active.
+ This method is implicitly called from configure(boolean) if
+ <code>bSaveSettings</code> is true.
+ @short Commit key setting changes so that changed settings actually become active.
+ */
+ public native void commitChanges();
+ /**
+ Pops up a modal dialog for configuring key settings. The new
+ shortcut settings will be active if the user presses OK. If
+ <code>bSaveSettings</code> if true, the settings will also be saved back to
+ the uirc file which they were intially read from.
+ @return Accept if the dialog was closed with OK, Reject otherwise.
+
+ @short Pops up a modal dialog for configuring key settings.
+ */
+ public static native int configure(KActionCollection coll, QWidget parent, boolean bSaveSettings);
+ public static native int configure(KActionCollection coll, QWidget parent);
+ public static native int configure(KActionCollection coll);
+ /**
+ This is an overloaded member function, provided for convenience.
+ It behaves essentially like the above function, except that settings
+ are saved to a .rc file using KConfig.
+ @short This is an overloaded member function, provided for convenience.
+ */
+ public static native int configure(KAccel keys, QWidget parent, boolean bSaveSettings);
+ public static native int configure(KAccel keys, QWidget parent);
+ public static native int configure(KAccel keys);
+ /**
+ This is an overloaded member function, provided for convenience.
+ It behaves essentially like the above function.
+ @short This is an overloaded member function, provided for convenience.
+ */
+ public static native int configure(KGlobalAccel keys, QWidget parent, boolean bSaveSettings);
+ public static native int configure(KGlobalAccel keys, QWidget parent);
+ public static native int configure(KGlobalAccel keys);
+ /**
+ This is an overloaded member function, provided for convenience.
+ It behaves essentially like the above function.
+ @param coll the KActionCollection to configure
+ @param bAllowLetterShortcuts Set to false if unmodified alphanumeric
+ keys ('A', '1', etc.) are not permissible shortcuts.
+ @param parent the parent widget to attach to
+ @param bSaveSettings if true, the settings will also be saved back to
+ the uirc file which they were intially read from.
+ @short This is an overloaded member function, provided for convenience.
+ */
+ public static native int configure(KActionCollection coll, boolean bAllowLetterShortcuts, QWidget parent, boolean bSaveSettings);
+ public static native int configure(KActionCollection coll, boolean bAllowLetterShortcuts, QWidget parent);
+ public static native int configure(KActionCollection coll, boolean bAllowLetterShortcuts);
+ /**
+ This is an overloaded member function, provided for convenience.
+ It behaves essentially like the above function.
+ @short This is an overloaded member function, provided for convenience.
+ */
+ public static native int configure(KAccel keys, boolean bAllowLetterShortcuts, QWidget parent, boolean bSaveSettings);
+ public static native int configure(KAccel keys, boolean bAllowLetterShortcuts, QWidget parent);
+ public static native int configure(KAccel keys, boolean bAllowLetterShortcuts);
+ /**
+ This is an overloaded member function, provided for convenience.
+ It behaves essentially like the above function.
+ @short This is an overloaded member function, provided for convenience.
+ */
+ public static native int configure(KGlobalAccel keys, boolean bAllowLetterShortcuts, QWidget parent, boolean bSaveSettings);
+ public static native int configure(KGlobalAccel keys, boolean bAllowLetterShortcuts, QWidget parent);
+ public static native int configure(KGlobalAccel keys, boolean bAllowLetterShortcuts);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KKeyNative.java b/kdejava/koala/org/kde/koala/KKeyNative.java
new file mode 100644
index 00000000..79c0a363
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KKeyNative.java
@@ -0,0 +1,128 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Representation of a key in the format native of the windowing system (eg. X11).
+ @short Representation of a key in the format native of the windowing system (eg.
+ @see KKey
+
+*/
+public class KKeyNative implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KKeyNative(Class dummy){}
+
+ /**
+ Creates a new null KKey.
+ @short Creates a new null KKey.
+ @see #clear
+ @see #isNull
+ @see #null
+ */
+ public KKeyNative() {
+ newKKeyNative();
+ }
+ private native void newKKeyNative();
+ /**
+ Creates a new native key for the given KKey code.
+ @param key the KKey that contains the generic key
+ @short Creates a new native key for the given KKey code.
+ */
+ public KKeyNative(KKey key) {
+ newKKeyNative(key);
+ }
+ private native void newKKeyNative(KKey key);
+ /**
+ @short
+ */
+ public KKeyNative(int code, int mod, int sym) {
+ newKKeyNative(code,mod,sym);
+ }
+ private native void newKKeyNative(int code, int mod, int sym);
+ /**
+ Clears the key. The key is null after calling this function.
+ @short Clears the key.
+ @see #isNull
+ */
+ public native void clear();
+ /**
+ Creates a new native key for the given KKey code.
+ @param key the KKey that contains the generic key
+ @return true if successful, false otherwise
+
+ @short Creates a new native key for the given KKey code.
+ */
+ public native boolean init(KKey key);
+ /**
+ Returns the qt key code.
+ @return the qt key code or 0 if there is no key set.
+
+ @short Returns the qt key code.
+ @see org.kde.qt.Qt#Key
+ */
+ public native int keyCodeQt();
+ /**
+ Returns the KKey representation of this key.
+ @return the KKey representation
+
+ @short Returns the KKey representation of this key.
+ */
+ public native KKey key();
+ /**
+ The native keycode of the key.
+ @return the native keycode
+
+ @short The native keycode of the key.
+ */
+ public native int code();
+ /**
+ The native modifier flags of the key.
+ @return the native modifier flags
+
+ @short The native modifier flags of the key.
+ */
+ public native int mod();
+ /**
+ The native symbol (KeySym) of the key.
+ @return the native symbol (KeySym)
+
+ @short The native symbol (KeySym) of the key.
+ */
+ public native int sym();
+ /**
+ Returns true if the key is null (after clear() or empty
+ constructor).
+ @return true if the key is null
+
+ @short Returns true if the key is null (after clear() or empty constructor).
+ @see #clear
+ @see #null
+ */
+ public native boolean isNull();
+ /**
+ Returns a null key.
+ @return the null key
+
+ @short Returns a null key.
+ @see #isNull
+ @see #clear
+ */
+ public static native KKeyNative nil();
+ /**
+ Checks whether the keyboard has a Win key.
+ @return true if the keyboard has a Win key
+
+ @short Checks whether the keyboard has a Win key.
+ */
+ public static native boolean keyboardHasWinKey();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KKeySequence.java b/kdejava/koala/org/kde/koala/KKeySequence.java
new file mode 100644
index 00000000..143f9612
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KKeySequence.java
@@ -0,0 +1,211 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QKeySequence;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A KKeySequence object holds a sequence of up to 4 keys.
+ Ex: Ctrl+X,I
+ @short A KKeySequence object holds a sequence of up to 4 keys.
+ @see KKey
+ @see KShortcut
+
+*/
+public class KKeySequence implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KKeySequence(Class dummy){}
+
+ public static final int MAX_KEYS = 4;
+
+ /**
+ Create a new null key sequence.
+ @short Create a new null key sequence.
+ @see #isNull
+ @see #null
+ @see #clear
+ */
+ public KKeySequence() {
+ newKKeySequence();
+ }
+ private native void newKKeySequence();
+ /**
+ Copies the given qt key sequence.
+ @param keySeq the qt key sequence to copy
+ @short Copies the given qt key sequence.
+ */
+ public KKeySequence(QKeySequence keySeq) {
+ newKKeySequence(keySeq);
+ }
+ private native void newKKeySequence(QKeySequence keySeq);
+ /**
+ Create a new key sequence that only contains the given key.
+ @param key the key to add
+ @short Create a new key sequence that only contains the given key.
+ */
+ public KKeySequence(KKey key) {
+ newKKeySequence(key);
+ }
+ private native void newKKeySequence(KKey key);
+ /**
+ Copies the given key sequence.
+ @param keySeq the key sequence to copy
+ @short Copies the given key sequence.
+ */
+ public KKeySequence(KKeySequence keySeq) {
+ newKKeySequence(keySeq);
+ }
+ private native void newKKeySequence(KKeySequence keySeq);
+ /**
+ Creates a new key sequence that contains the given key sequence.
+ The description consists of comma-separated keys as
+ required by KKey.KKey(String).
+ @param keySeq the description of the key
+ @short Creates a new key sequence that contains the given key sequence.
+ @see KKeyServer#Sym#init
+ @see KKey#KKey(const
+ */
+ public KKeySequence(String keySeq) {
+ newKKeySequence(keySeq);
+ }
+ private native void newKKeySequence(String keySeq);
+ /**
+ Clears the key sequence. The key sequence is null after calling this
+ function.
+ @short Clears the key sequence.
+ @see #isNull
+ */
+ public native void clear();
+ /**
+ Returns the number of key strokes of this sequence.
+ @return the number of key strokes
+
+ @short Returns the number of key strokes of this sequence.
+ @see MAX_KEYS
+ */
+ public native int count();
+ /**
+ Return the <code>i</code>'th key of this sequence, or a null key if there
+ are less then i keys.
+ @param i the key to retrieve
+ @return the <code>i</code>'th key, or KKey.null() if there are less
+ than i keys
+
+ @short Return the <code>i</code>'th key of this sequence, or a null key if there are less then i keys.
+ @see MAX_KEYS
+ */
+ public native KKey key(int i);
+ /**
+ @short
+ */
+ public native boolean isTriggerOnRelease();
+ /**
+ Sets the <code>i</code>'th key of the sequence. You can not introduce gaps
+ in a sequence, so you must use an <code>i</code> <= count(). Also note that
+ the maximum length of a key sequence is MAX_KEYS.
+ @param i the position of the new key (<= count(), <= MAX_KEYS)
+ @param key the key to set
+ @return true if successful, false otherwise
+
+ @short Sets the <code>i</code>'th key of the sequence.
+ */
+ public native boolean setKey(int i, KKey key);
+ /**
+ Returns true if the key sequence is null (after clear() or empty
+ constructor).
+ @return true if the key sequence is null
+
+ @short Returns true if the key sequence is null (after clear() or empty constructor).
+ @see #clear
+ @see #null
+ */
+ public native boolean isNull();
+ /**
+ Returns true if this key sequence begins with the given sequence.
+ @param keySeq the key sequence to search
+ @return true if this key sequence begins with the given sequence
+
+ @short Returns true if this key sequence begins with the given sequence.
+ */
+ public native boolean startsWith(KKeySequence keySeq);
+ /**
+ Compares this object with the given key sequence. Returns a negative
+ number if the given KKeySequence is larger, 0 if they are equal and
+ a positive number this KKeySequence is larger. Key sequences are
+ compared by comparing the individual keys, starting from the beginning
+ until an unequal key has been found. If a sequence contains more
+ keys, it is considered larger.
+ @param keySeq the key sequence to compare to
+ @return a negative number if the given KKeySequence is larger, 0 if
+ they are equal and a positive number this KKeySequence is larger
+
+ @short Compares this object with the given key sequence.
+ @see KKey#sequence
+ */
+ public native int compare(KKeySequence keySeq);
+ /**
+ Compares the keys of both sequences.
+ @short Compares the keys of both sequences.
+ @see #compare
+ */
+ public native boolean op_equals(KKeySequence seq);
+ /**
+ Compares the keys of both sequences.
+ @short Compares the keys of both sequences.
+ @see #compare
+ */
+ public native boolean op_not_equals(KKeySequence seq);
+ /**
+ Compares the keys of both sequences.
+ @short Compares the keys of both sequences.
+ @see #compare
+ */
+ public native boolean op_lt(KKeySequence seq);
+ /**
+ Converts this key sequence to a QKeySequence.
+ @return the QKeySequence
+
+ @short Converts this key sequence to a QKeySequence.
+ */
+ public native QKeySequence qt();
+ /**
+ Returns the qt key code of the first key.
+ @return the qt key code of the first key
+
+ @short Returns the qt key code of the first key.
+ @see org.kde.qt.Qt#Key
+ @see KKey#keyCodeQt
+ */
+ public native int keyCodeQt();
+ /**
+ Returns the key sequence as a number of key presses as
+ returned by KKey.toString(), separated by commas.
+ @return the string represenation of this key sequence
+
+ @short Returns the key sequence as a number of key presses as returned by KKey.toString(), separated by commas.
+ @see KKey#toString
+ */
+ public native String toString();
+ /**
+ @short
+ */
+ public native String toStringInternal();
+ /**
+ Returns a null key sequence.
+ @return the null key sequence
+
+ @short Returns a null key sequence.
+ @see #isNull
+ @see #clear
+ */
+ public static native KKeySequence nil();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KLed.java b/kdejava/koala/org/kde/koala/KLed.java
new file mode 100644
index 00000000..6a0cedc7
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KLed.java
@@ -0,0 +1,288 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ Displays a round or rectangular light emitting diode.
+ It is configurable to five colors, the two on/off states and three
+ styles (or "looks");
+ It may display itself in a performant flat view, a round view with
+ light spot or a round view sunken in the screen.
+ \image html kled.png "KDE LED Widget"
+ @author Joerg Habenicht, Richard J. Moore (rich@kde.org) 1998, 1999
+
+ @short An LED widget.
+
+*/
+public class KLed extends QWidget {
+ protected KLed(Class dummy){super((Class) null);}
+ /**
+ Status of the light is on/off.
+ @short LED on/off.
+ */
+ public static final int Off = 0;
+ public static final int On = 1;
+
+ /**
+ Shades of the lamp.
+ @short LED shape.
+ */
+ public static final int Rectangular = 0;
+ public static final int Circular = 1;
+
+ /**
+ Displays a flat, round or sunken LED.
+ Displaying the LED flat is less time and color consuming,
+ but not so nice to see.
+ The sunken LED itself is (certainly) smaller than the round LED
+ because of the 3 shading circles and is
+ most time consuming. Makes sense for LED > 15x15 pixels.
+ <b></b>imings: \n
+ ( AMD K5/133, Diamond Stealth 64 PCI Graphics, widgetsize 29x29 )
+
+ <li>
+ flat Approximately 0.7 msec per paint
+ </li>
+
+ <li>
+ round Approximately 2.9 msec per paint
+ </li>
+
+ <li>
+ sunken Approximately 3.3 msec per paint
+ </li>
+ The widget will be updated on the next repaining event.
+ @short LED look.
+ */
+ public static final int Flat = 0;
+ public static final int Raised = 1;
+ public static final int Sunken = 2;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a green, round LED widget which will initially
+ be turned on.
+ @short Constructs a green, round LED widget which will initially be turned on.
+ */
+ public KLed(QWidget parent, String name) {
+ super((Class) null);
+ newKLed(parent,name);
+ }
+ private native void newKLed(QWidget parent, String name);
+ public KLed(QWidget parent) {
+ super((Class) null);
+ newKLed(parent);
+ }
+ private native void newKLed(QWidget parent);
+ public KLed() {
+ super((Class) null);
+ newKLed();
+ }
+ private native void newKLed();
+ /**
+ Constructor with the ledcolor, the parent widget, and the name.
+ The State will be defaulted On and the Look round.
+ @param col Initial color of the LED.
+ @param parent Will be handed over to QWidget.
+ @param name Will be handed over to QWidget.
+ @short Constructor.
+ */
+ public KLed(QColor col, QWidget parent, String name) {
+ super((Class) null);
+ newKLed(col,parent,name);
+ }
+ private native void newKLed(QColor col, QWidget parent, String name);
+ public KLed(QColor col, QWidget parent) {
+ super((Class) null);
+ newKLed(col,parent);
+ }
+ private native void newKLed(QColor col, QWidget parent);
+ public KLed(QColor col) {
+ super((Class) null);
+ newKLed(col);
+ }
+ private native void newKLed(QColor col);
+ /**
+ Constructor with the ledcolor, ledstate, ledlook,
+ the parent widget, and the name.
+ Differs from above only in the parameters, which configure all settings.
+ @param col Initial color of the LED.
+ @param state Sets the State.
+ @param look Sets the Look.
+ @param shape Sets the Shape (rectangular or circular)
+ @param parent Will be handed over to QWidget.
+ @param name Will be handed over to QWidget.
+ @short Constructor.
+ */
+ public KLed(QColor col, int state, int look, int shape, QWidget parent, String name) {
+ super((Class) null);
+ newKLed(col,state,look,shape,parent,name);
+ }
+ private native void newKLed(QColor col, int state, int look, int shape, QWidget parent, String name);
+ public KLed(QColor col, int state, int look, int shape, QWidget parent) {
+ super((Class) null);
+ newKLed(col,state,look,shape,parent);
+ }
+ private native void newKLed(QColor col, int state, int look, int shape, QWidget parent);
+ public KLed(QColor col, int state, int look, int shape) {
+ super((Class) null);
+ newKLed(col,state,look,shape);
+ }
+ private native void newKLed(QColor col, int state, int look, int shape);
+ /**
+ Returns the current state of the widget (on/off).
+ @short Returns LED state.
+ @see State
+ */
+ public native int state();
+ public native int shape();
+ /**
+ Returns the color of the widget
+ @short Returns LED color.
+ @see Color
+ */
+ public native QColor color();
+ /**
+ Returns the look of the widget.
+ @short Returns LED look.
+ @see Look
+ */
+ public native int look();
+ /**
+ Returns the factor to darken the LED.
+ @short Returns dark factor.
+ @see #setDarkFactor
+ */
+ public native int darkFactor();
+ /**
+ Sets the state of the widget to On or Off.
+ The widget will be painted immediately.
+ @param state The LED state: on or off.
+ @short Set LED state.
+ @see #on
+ @see #off
+ @see #toggle
+ @see #toggleState
+ */
+ public native void setState(int state);
+ /**
+ Set the shape of the LED to <code>s.</code>
+ @short Set the shape of the LED to <code>s.</code>
+ */
+ public native void setShape(int s);
+ /**
+ Set the color of the widget.
+ The Color is shown with the KLed.On state.
+ The KLed.Off state is shown with QColor.dark() method
+ The widget calls the update() method, so it will
+ be updated when entering the main event loop.
+ @param color New color of the LED.
+ @short Sets the LED color.
+ @see Color
+ */
+ public native void setColor(QColor color);
+ /**
+ Sets the factor to darken the LED in OFF state.
+ Same as QColor.dark().
+ "darkfactor should be greater than 100, else the LED gets lighter
+ in OFF state.
+ Defaults to 300.
+ @param darkfactor sets the factor to darken the LED.
+ @short sets the factor to darken the LED.
+ @see org.kde.qt.QColor
+ */
+ public native void setDarkFactor(int darkfactor);
+ /**
+ Sets the look of the widget.
+ The look may be flat, round or sunken.
+ The widget calls the update() method, so it will
+ be updated when entering the main event loop.
+ @param look New look of the LED.
+ @short Sets LED look.
+ @see Look
+ */
+ public native void setLook(int look);
+ public native QSize sizeHint();
+ public native QSize minimumSizeHint();
+ /**
+ Toggles the state of the led from Off to On or vice versa.
+ The widget repaints itself immediately.
+ @short Toggles the state of the led from Off to On or vice versa.
+ */
+ public native void toggle();
+ /**
+ Sets the state of the widget to On.
+ The widget will be painted immediately.
+ @short Sets the state of the widget to On.
+ @see #off
+ @see #toggle
+ @see #toggleState
+ @see #setState
+ */
+ public native void on();
+ /**
+ Sets the state of the widget to Off.
+ The widget will be painted immediately.
+ @short Sets the state of the widget to Off.
+ @see #on
+ @see #toggle
+ @see #toggleState
+ @see #setState
+ */
+ public native void off();
+ /**
+ Paints a circular, flat LED.
+ @short Paints a circular, flat LED.
+ */
+ protected native void paintFlat();
+ /**
+ Paints a circular, raised LED.
+ @short Paints a circular, raised LED.
+ */
+ protected native void paintRound();
+ /**
+ Paints a circular, sunken LED.
+ @short Paints a circular, sunken LED.
+ */
+ protected native void paintSunken();
+ /**
+ Paints a rectangular, flat LED.
+ @short Paints a rectangular, flat LED.
+ */
+ protected native void paintRect();
+ /**
+ Paints a rectangular LED, either raised or
+ sunken, depending on its argument.
+ @short Paints a rectangular LED, either raised or sunken, depending on its argument.
+ */
+ protected native void paintRectFrame(boolean raised);
+ protected native void paintEvent(QPaintEvent arg1);
+ /**
+ Compute LED width
+ @short Compute LED width
+ */
+ protected native int ensureRoundLed();
+ /**
+ Paint the cached antialiased pixmap corresponding to the state if any
+ @return true if the pixmap was painted, false if it hasn't been created yet
+
+ @short Paint the cached antialiased pixmap corresponding to the state if any
+ */
+ protected native boolean paintCachedPixmap();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KLibFactory.java b/kdejava/koala/org/kde/koala/KLibFactory.java
new file mode 100644
index 00000000..bb9c9a19
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KLibFactory.java
@@ -0,0 +1,79 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QObject;
+
+/**
+
+ If you develop a library that is to be loaded dynamically at runtime, then
+ you should return a pointer to your factory. The K_EXPORT_COMPONENT_FACTORY
+ macro is provided for this purpose:
+ <pre>
+ K_EXPORT_COMPONENT_FACTORY( libkspread, KSpreadFactory )
+ </pre>
+ The first macro argument is the name of your library, the second specifies the name
+ of your factory.
+ NOTE: you probably want to use KGenericFactory<PluginClassName>
+ instead of writing your own factory.
+ In the constructor of your factory you should create an instance of KInstance
+ like this:
+ <pre>
+ s_global = new KInstance( "kspread" );
+ </pre>
+ This KInstance is comparable to KGlobal used by normal applications.
+ It allows you to find resource files (images, XML, sound etc.) belonging
+ to the library.
+ If you want to load a library, use KLibLoader. You can query KLibLoader
+ directly for a pointer to the libraries factory by using the KLibLoader.factory()
+ function.
+ The KLibFactory is used to create the components, the library has to offer.
+ The factory of KSpread for example will create instances of KSpreadDoc,
+ while the Konqueror factory will create KonqView widgets.
+ All objects created by the factory must be derived from QObject, since QObject
+ offers type safe casting.
+ KLibFactory is an abstract class. Reimplement the
+ createObject() method to give it functionality.
+ See {@link KLibFactorySignals} for signals emitted by KLibFactory
+ @author Torben Weis <weis@kde.org>
+
+ @short If you develop a library that is to be loaded dynamically at runtime, then you should return a pointer to your factory.
+
+*/
+public class KLibFactory extends QObject {
+ protected KLibFactory(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create a new factory.
+ @param parent the parent of the QObject, 0 for no parent
+ @param name the name of the QObject, 0 for no name
+ @short Create a new factory.
+ */
+ /**
+ Creates a new object. The returned object has to be derived from
+ the requested classname.
+ It is valid behavior to create different kinds of objects
+ depending on the requested <code>classname.</code> For example a koffice
+ library may usually return a pointer to KoDocument. But
+ if asked for a "QWidget", it could create a wrapper widget,
+ that encapsulates the Koffice specific features.
+ create() automatically emits a signal objectCreated to tell
+ the library about its newly created object. This is very
+ important for reference counting, and allows unloading the
+ library automatically once all its objects have been destroyed.
+ @param parent the parent of the QObject, 0 for no parent
+ @param name the name of the QObject, 0 for no name
+ @param classname the name of the class
+ @param args a list of arguments
+ @short Creates a new object.
+ */
+ public native QObject create(QObject parent, String name, String classname, String[] args);
+ public native QObject create(QObject parent, String name, String classname);
+ public native QObject create(QObject parent, String name);
+ public native QObject create(QObject parent);
+ public native QObject create();
+}
diff --git a/kdejava/koala/org/kde/koala/KLibFactorySignals.java b/kdejava/koala/org/kde/koala/KLibFactorySignals.java
new file mode 100644
index 00000000..91682c60
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KLibFactorySignals.java
@@ -0,0 +1,15 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+public interface KLibFactorySignals {
+ /**
+ Emitted in #create
+ @param obj the new object
+ @short Emitted in #create
+ */
+ void objectCreated(QObject arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KLibLoader.java b/kdejava/koala/org/kde/koala/KLibLoader.java
new file mode 100644
index 00000000..75f6d4aa
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KLibLoader.java
@@ -0,0 +1,166 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QObject;
+
+/**
+
+ The KLibLoader allows you to load libraries dynamically at runtime.
+ Dependent libraries are loaded automatically.
+ KLibLoader follows the singleton pattern. You can not create multiple
+ instances. Use self() to get a pointer to the loader.
+ @author Torben Weis <weis@kde.org>
+
+ @short The KLibLoader allows you to load libraries dynamically at runtime.
+ @see KLibrary
+
+*/
+public class KLibLoader extends QObject {
+ protected KLibLoader(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Loads and initializes a library. Loading a library multiple times is
+ handled gracefully.
+ This is a convenience function that returns the factory immediately
+ @param libname This is the library name without extension. Usually that is something like
+ "libkspread". The function will then search for a file named
+ "libkspread.la" in the KDE library paths.
+ The .la files are created by libtool and contain
+ important information especially about the libraries dependencies
+ on other shared libs. Loading a "libfoo.so" could not solve the
+ dependencies problem.
+ You can, however, give a library name ending in ".so"
+ (or whatever is used on your platform), and the library
+ will be loaded without resolving dependencies. Use with caution.
+ @return the KLibFactory, or 0 if the library does not exist or it does
+ not have a factory
+
+ @short Loads and initializes a library.
+ @see #library
+ */
+ public native KLibFactory factory(String libname);
+ /**
+ Loads and initializes a library. Loading a library multiple times is
+ handled gracefully.
+ @param libname This is the library name without extension. Usually that is something like
+ "libkspread". The function will then search for a file named
+ "libkspread.la" in the KDE library paths.
+ The .la files are created by libtool and contain
+ important information especially about the libraries dependencies
+ on other shared libs. Loading a "libfoo.so" could not solve the
+ dependencies problem.
+ You can, however, give a library name ending in ".so"
+ (or whatever is used on your platform), and the library
+ will be loaded without resolving dependencies. Use with caution.
+ @return KLibrary is invalid (0) when the library couldn't be dlopened. in such
+ a case you can retrieve the error message by calling KLibLoader.lastErrorMessage()
+
+ @short Loads and initializes a library.
+ @see #factory
+ */
+ // KLibrary* library(const char* arg1); >>>> NOT CONVERTED
+ /**
+ Loads and initializes a library. Loading a library multiple times is
+ handled gracefully. The library is loaded such that the symbols are
+ globally accessible so libraries with dependencies can be loaded
+ sequentially.
+ @param name This is the library name without extension. Usually that is something like
+ "libkspread". The function will then search for a file named
+ "libkspread.la" in the KDE library paths.
+ The .la files are created by libtool and contain
+ important information especially about the libraries dependencies
+ on other shared libs. Loading a "libfoo.so" could not solve the
+ dependencies problem.
+ You can, however, give a library name ending in ".so"
+ (or whatever is used on your platform), and the library
+ will be loaded without resolving dependencies. Use with caution.
+ @return KLibrariy is invalid (0) when the library couldn't be dlopened. in such
+ a case you can retrieve the error message by calling KLibLoader.lastErrorMessage()
+
+ @short Loads and initializes a library.
+ @see #factory
+ */
+ // KLibrary* globalLibrary(const char* arg1); >>>> NOT CONVERTED
+ /**
+ Returns an error message that can be useful to debug the problem.
+ Returns null if the last call to library() was successful.
+ You can call this function more than once. The error message is only
+ reset by a new call to library().
+ @return the last error message, or null if there was no error
+
+ @short Returns an error message that can be useful to debug the problem.
+ */
+ public native String lastErrorMessage();
+ /**
+ Unloads the library with the given name.
+ @param libname This is the library name without extension. Usually that is something like
+ "libkspread". The function will then search for a file named
+ "libkspread.la" in the KDE library paths.
+ The .la files are created by libtool and contain
+ important information especially about the libraries dependencies
+ on other shared libs. Loading a "libfoo.so" could not solve the
+ dependencies problem.
+ You can, however, give a library name ending in ".so"
+ (or whatever is used on your platform), and the library
+ will be loaded without resolving dependencies. Use with caution.
+ @short Unloads the library with the given name.
+ */
+ public native void unloadLibrary(String libname);
+ /**
+ Returns a pointer to the factory. Use this function to get an instance
+ of KLibLoader.
+ @return a pointer to the loader. If no loader exists until now
+ then one is created.
+
+ @short Returns a pointer to the factory.
+ */
+ public static native KLibLoader self();
+ /**
+ Internal Method, called by the KApplication destructor.
+ Do not call it.
+ This is what makes it possible to rely on ~KLibFactory
+ being called in all cases, whether the library is unloaded
+ while the application is running or when exiting.
+ @short
+ */
+ public static native void cleanUp();
+ /**
+ Helper method which looks for a library in the standard paths
+ ("module" and "lib" resources).
+ Made public for code that doesn't use KLibLoader itself, but still
+ wants to open modules.
+ @param name of the library. If it is not a path, the function searches in
+ the "module" and "lib" resources. If there is no extension,
+ ".la" will be appended.
+ @param instance a KInstance used to get the standard paths
+ @short Helper method which looks for a library in the standard paths ("module" and "lib" resources).
+ */
+ public static native String findLibrary(String name, KInstanceInterface instance);
+ public static native String findLibrary(String name);
+ public KLibLoader(QObject parent, String name) {
+ super((Class) null);
+ newKLibLoader(parent,name);
+ }
+ private native void newKLibLoader(QObject parent, String name);
+ public KLibLoader(QObject parent) {
+ super((Class) null);
+ newKLibLoader(parent);
+ }
+ private native void newKLibLoader(QObject parent);
+ public KLibLoader() {
+ super((Class) null);
+ newKLibLoader();
+ }
+ private native void newKLibLoader();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KLineEdit.java b/kdejava/koala/org/kde/koala/KLineEdit.java
new file mode 100644
index 00000000..04136209
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KLineEdit.java
@@ -0,0 +1,605 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QContextMenuEvent;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QLineEdit;
+
+/**
+
+ An enhanced QLineEdit widget for inputting text.
+ <li><b>Detail </b></li>
+ This widget inherits from QLineEdit and implements the following
+ additional functionalities: a completion object that provides both
+ automatic and manual text completion as well as multiple match iteration
+ features, configurable key-bindings to activate these features and a
+ popup-menu item that can be used to allow the user to set text completion
+ modes on the fly based on their preference.
+ To support these new features KLineEdit also emits a few more
+ additional signals. These are: completion( String ),
+ textRotation( KeyBindingType ), and returnPressed( String ).
+ The completion signal can be connected to a slot that will assist the
+ user in filling out the remaining text. The text rotation signal is
+ intended to be used to iterate through the list of all possible matches
+ whenever there is more than one match for the entered text. The
+ <code>returnPressed</code>( String ) signals are the same as QLineEdit's
+ except it provides the current text in the widget as its argument whenever
+ appropriate.
+ This widget by default creates a completion object when you invoke
+ the completionObject( boolean ) member function for the first time or
+ use setCompletionObject( KCompletion, boolean ) to assign your own
+ completion object. Additionally, to make this widget more functional,
+ KLineEdit will by default handle the text rotation and completion
+ events internally when a completion object is created through either one
+ of the methods mentioned above. If you do not need this functionality,
+ simply use KCompletionBase.setHandleSignals( boolean ) or set the
+ booleanean parameter in the above functions to false.
+ The default key-bindings for completion and rotation is determined
+ from the global settings in KStdAccel. These values, however,
+ can be overridden locally by invoking KCompletionBase.setKeyBinding().
+ The values can easily be reverted back to the default setting, by simply
+ calling useGlobalSettings(). An alternate method would be to default
+ individual key-bindings by using setKeyBinding() with the default
+ second argument.
+ If <code>EchoMode</code> for this widget is set to something other than <code>QLineEdit</code>.Normal,
+ the completion mode will always be defaulted to KGlobalSettings.CompletionNone.
+ This is done purposefully to guard against protected entries such as passwords being
+ cached in KCompletion's list. Hence, if the <code>EchoMode</code> is not QLineEdit.Normal, the
+ completion mode is automatically disabled.
+ A read-only KLineEdit will have the same background color as a
+ disabled KLineEdit, but its foreground color will be the one used
+ for the read-write mode. This differs from QLineEdit's implementation
+ and is done to give visual distinction between the three different modes:
+ disabled, read-only, and read-write.
+ <li><b>Usage </b></li>
+ To enable the basic completion feature :
+ <pre>
+ KLineEdit edit = new KLineEdit( this, "mywidget" );
+ KCompletion comp = edit.completionObject();
+ // Connect to the return pressed signal - optional
+ connect(edit,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)"));
+ </pre>
+ To use a customized completion objects or your
+ own completion object :
+ <pre>
+ KLineEdit edit = new KLineEdit( this,"mywidget" );
+ KURLCompletion comp = new KURLCompletion();
+ edit.setCompletionObject( comp );
+ // Connect to the return pressed signal - optional
+ connect(edit,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)"));
+ </pre>
+ Note if you specify your own completion object you have to either delete
+ it when you don't need it anymore, or you can tell KLineEdit to delete it
+ for you:
+ <pre>
+ edit.setAutoDeleteCompletionObject( true );
+ </pre>
+ <li><b>Miscellaneous function calls :</b></li>
+ <pre>
+ // Tell the widget to not handle completion and iteration automatically.
+ edit.setHandleSignals( false );
+ // Set your own key-bindings for a text completion mode.
+ edit.setKeyBinding( KCompletionBase.TextCompletion, Qt.End );
+ // Hide the context (popup) menu
+ edit.setContextMenuEnabled( false );
+ // Temporarily disable signal (both completion & iteration) emitions
+ edit.disableSignals();
+ // Default the key-bindings back to the default system settings.
+ edit.useGlobalKeyBindings();
+ </pre>
+ See {@link KLineEditSignals} for signals emitted by KLineEdit
+ @author Dawit Alemayehu <adawit@kde.org>
+
+ @short An enhanced QLineEdit widget for inputting text.
+
+*/
+public class KLineEdit extends QLineEdit implements KCompletionBaseInterface {
+ protected KLineEdit(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KLineEdit object with a default text, a parent,
+ and a name.
+ @param string Text to be shown in the edit widget.
+ @param parent The parent object of this widget.
+ @param name the name of this widget
+ @short Constructs a KLineEdit object with a default text, a parent, and a name.
+ */
+ public KLineEdit(String string, QWidget parent, String name) {
+ super((Class) null);
+ newKLineEdit(string,parent,name);
+ }
+ private native void newKLineEdit(String string, QWidget parent, String name);
+ public KLineEdit(String string, QWidget parent) {
+ super((Class) null);
+ newKLineEdit(string,parent);
+ }
+ private native void newKLineEdit(String string, QWidget parent);
+ /**
+ Constructs a KLineEdit object with a parent and a name.
+ @param parent The parent object of this widget.
+ @param name The name of this widget.
+ @short Constructs a KLineEdit object with a parent and a name.
+ */
+ public KLineEdit(QWidget parent, String name) {
+ super((Class) null);
+ newKLineEdit(parent,name);
+ }
+ private native void newKLineEdit(QWidget parent, String name);
+ public KLineEdit(QWidget parent) {
+ super((Class) null);
+ newKLineEdit(parent);
+ }
+ private native void newKLineEdit(QWidget parent);
+ public KLineEdit() {
+ super((Class) null);
+ newKLineEdit();
+ }
+ private native void newKLineEdit();
+ /**
+ Sets <code>url</code> into the lineedit. It uses KURL.prettyURL() so
+ that the url is properly decoded for displaying.
+ @short Sets <code>url</code> into the lineedit.
+ */
+ public native void setURL(KURL url);
+ /**
+ Re-implemented from KCompletionBase for internal reasons.
+ This function is re-implemented in order to make sure that
+ the EchoMode is acceptable before we set the completion mode.
+ See KCompletionBase.setCompletionMode
+ @short Re-implemented from KCompletionBase for internal reasons.
+ */
+ public native void setCompletionMode(int mode);
+ /**
+ Enables/disables the popup (context) menu.
+ Note that when this function is invoked with its argument
+ set to <code>true</code>, then both the context menu and the completion
+ menu item are enabled. If you do not want to the completion
+ item to be visible simply invoke hideModechanger() right
+ after calling this method. Also by default, the context
+ menu is automatically created if this widget is editable. Thus
+ you need to call this function with the argument set to false
+ if you do not want this behavior.
+ @param showMenu If <code>true</code>, show the context menu.
+ @short Enables/disables the popup (context) menu.
+ */
+ public native void setContextMenuEnabled(boolean showMenu);
+ /**
+ Returns <code>true</code> when the context menu is enabled.
+ @short Returns <code>true</code> when the context menu is enabled.
+ */
+ public native boolean isContextMenuEnabled();
+ /**
+ Enables/Disables handling of URL drops. If enabled and the user
+ drops an URL, the decoded URL will be inserted. Otherwise the default
+ behavior of QLineEdit is used, which inserts the encoded URL.
+ @param enable If <code>true</code>, insert decoded URLs
+ @short Enables/Disables handling of URL drops.
+ */
+ public native void setURLDropsEnabled(boolean enable);
+ /**
+ Returns <code>true</code> when decoded URL drops are enabled
+ @short Returns <code>true</code> when decoded URL drops are enabled
+ */
+ public native boolean isURLDropsEnabled();
+ /**
+ By default, KLineEdit recognizes <code>Key_Return</code> and <code>Key_Enter</code> and emits
+ the returnPressed() signals, but it also lets the event pass,
+ for example causing a dialog's default-button to be called.
+ Call this method with <code>trap</code> = <code>true</code> to make <code>KLineEdit</code> stop these
+ events. The signals will still be emitted of course.
+ @short By default, KLineEdit recognizes <code>Key_Return</code> and <code>Key_Enter</code> and emits the returnPressed() signals, but it also lets the event pass, for example causing a dialog's default-button to be called.
+ @see #trapReturnKey
+ */
+ public native void setTrapReturnKey(boolean trap);
+ /**
+ @return <code>true</code> if keyevents of <code>Key_Return</code> or
+ <code>Key_Enter</code> will be stopped or if they will be propagated.
+
+ @short
+ @see #setTrapReturnKey
+ */
+ public native boolean trapReturnKey();
+ /**
+ Re-implemented for internal reasons. API not affected.
+ @short Re-implemented for internal reasons.
+ */
+ public native boolean eventFilter(QObject arg1, QEvent arg2);
+ /**
+ @param create Set this to false if you don't want the box to be created
+ i.e. to test if it is available.
+ @return the completion-box, that is used in completion mode
+ KGlobalSettings.CompletionPopup.
+ This method will create a completion-box if none is there, yet.
+
+ @short
+ */
+ public native KCompletionBox completionBox(boolean create);
+ public native KCompletionBox completionBox();
+ /**
+ Reimplemented for internal reasons, the API is not affected.
+ @short Reimplemented for internal reasons, the API is not affected.
+ */
+ public native void setCompletionObject(KCompletion arg1, boolean hsig);
+ public native void setCompletionObject(KCompletion arg1);
+ /**
+ Reimplemented for internal reasons, the API is not affected.
+ @short Reimplemented for internal reasons, the API is not affected.
+ */
+ public native void copy();
+ /**
+ Enable text squeezing whenever the supplied text is too long.
+ Only works for "read-only" mode.
+ Note that once text squeezing is enabled, QLineEdit.text()
+ and QLineEdit.displayText() return the squeezed text. If
+ you want the original text, use {@link #originalText}.
+ @short Enable text squeezing whenever the supplied text is too long.
+ @see org.kde.qt.QLineEdit
+ */
+ public native void setEnableSqueezedText(boolean enable);
+ /**
+ Returns true if text squeezing is enabled.
+ This is only valid when the widget is in read-only mode.
+ @short Returns true if text squeezing is enabled.
+ */
+ public native boolean isSqueezedTextEnabled();
+ /**
+ Returns the original text if text squeezing is enabled.
+ If the widget is not in "read-only" mode, this function
+ returns the same thing as QLineEdit.text().
+ @short Returns the original text if text squeezing is enabled.
+ @see org.kde.qt.QLineEdit
+ */
+ public native String originalText();
+ /**
+ Set the completion-box to be used in completion mode
+ KGlobalSettings.CompletionPopup.
+ This will do nothing if a completion-box already exists.
+ @param box The KCompletionBox to set
+ @short Set the completion-box to be used in completion mode KGlobalSettings.CompletionPopup.
+ */
+ public native void setCompletionBox(KCompletionBox box);
+ /**
+ Re-implemented for internal reasons. API not changed.
+ @short Re-implemented for internal reasons.
+ */
+ public native void setReadOnly(boolean arg1);
+ /**
+ Iterates through all possible matches of the completed text or
+ the history list.
+ This function simply iterates over all possible matches in case
+ multimple matches are found as a result of a text completion request.
+ It will have no effect if only a single match is found.
+ @param type The key-binding invoked.
+ @short Iterates through all possible matches of the completed text or the history list.
+ */
+ public native void rotateText(int type);
+ /**
+ See KCompletionBase.setCompletedText.
+ @short See KCompletionBase.setCompletedText.
+ */
+ public native void setCompletedText(String arg1);
+ /**
+ Sets <code>items</code> into the completion-box if completionMode() is
+ CompletionPopup. The popup will be shown immediately.
+ @param items list of completion matches to be shown in the completion box.
+ @short Sets <code>items</code> into the completion-box if completionMode() is CompletionPopup.
+ */
+ public native void setCompletedItems(String[] items);
+ /**
+ Same as the above function except it allows you to temporarily
+ turn off text completion in CompletionPopupAuto mode.
+ TODO: Merge with above function in KDE 4.
+ TODO: Does that make this or the above @deprecated ?
+ @param items list of completion matches to be shown in the completion box.
+ @param autoSuggest true if you want automatic text completion (suggestion) enabled.
+ @short Same as the above function except it allows you to temporarily turn off text completion in CompletionPopupAuto mode.
+ */
+ public native void setCompletedItems(String[] items, boolean autoSuggest);
+ /**
+ Reimplemented to workaround a buggy QLineEdit.clear()
+ (changing the clipboard to the text we just had in the lineedit)
+ @short Reimplemented to workaround a buggy QLineEdit.clear() (changing the clipboard to the text we just had in the lineedit)
+ */
+ public native void clear();
+ /**
+ Squeezes <code>text</code> into the line edit.
+ This can only be used with read-only line-edits.
+ @short Squeezes <code>text</code> into the line edit.
+ */
+ public native void setSqueezedText(String text);
+ /**
+ Re-implemented to enable text squeezing. API is not affected.
+ @short Re-implemented to enable text squeezing.
+ */
+ public native void setText(String arg1);
+ /**
+ Re-implemented for internal reasons. API not affected.
+ See QLineEdit.resizeEvent().
+ @short Re-implemented for internal reasons.
+ */
+ protected native void resizeEvent(QResizeEvent arg1);
+ /**
+ Re-implemented for internal reasons. API not affected.
+ See QLineEdit.keyPressEvent().
+ @short Re-implemented for internal reasons.
+ */
+ protected native void keyPressEvent(QKeyEvent arg1);
+ /**
+ Re-implemented for internal reasons. API not affected.
+ See QLineEdit.mousePressEvent().
+ @short Re-implemented for internal reasons.
+ */
+ protected native void mousePressEvent(QMouseEvent arg1);
+ /**
+ Re-implemented for internal reasons. API not affected.
+ See QWidget.mouseDoubleClickEvent().
+ @short Re-implemented for internal reasons.
+ */
+ protected native void mouseDoubleClickEvent(QMouseEvent arg1);
+ /**
+ Re-implemented for internal reasons. API not affected.
+ See QLineEdit.contextMenuEvent().
+ @short Re-implemented for internal reasons.
+ */
+ protected native void contextMenuEvent(QContextMenuEvent arg1);
+ /**
+ Re-implemented for internal reasons. API not affected.
+ See QLineEdit.createPopupMenu().
+ @short Re-implemented for internal reasons.
+ */
+ protected native QPopupMenu createPopupMenu();
+ /**
+ Re-implemented to handle URI drops.
+ See QLineEdit.dropEvent().
+ @short Re-implemented to handle URI drops.
+ */
+ protected native void dropEvent(QDropEvent arg1);
+ protected native void setCompletedText(String arg1, boolean arg2);
+ /**
+ Sets the widget in userSelection mode or in automatic completion
+ selection mode. This changes the colors of selections.
+ @short Sets the widget in userSelection mode or in automatic completion selection mode.
+ */
+ protected native void setUserSelection(boolean userSelection);
+ /**
+ Reimplemented for internal reasons, the API is not affected.
+ @short Reimplemented for internal reasons, the API is not affected.
+ */
+ protected native void create(long arg1, boolean initializeWindow, boolean destroyOldWindow);
+ protected native void create(long arg1, boolean initializeWindow);
+ protected native void create(long arg1);
+ protected native void create();
+ /**
+ Re-implemented for internal reasons. API not affected.
+ See QLineEdit.focusInEvent().
+ @short Re-implemented for internal reasons.
+ */
+ protected native void focusInEvent(QFocusEvent arg1);
+ /**
+ Whether in current state text should be auto-suggested
+ @short Whether in current state text should be auto-suggested
+ */
+ protected native boolean autoSuggest();
+ /**
+ Completes the remaining text with a matching one from
+ a given list.
+ @short Completes the remaining text with a matching one from a given list.
+ */
+ protected native void makeCompletion(String arg1);
+ /**
+ Resets the current displayed text.
+ Call this function to revert a text completion if the user
+ cancels the request. Mostly applies to popup completions.
+ @short Resets the current displayed text.
+ */
+ protected native void userCancelled(String cancelText);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+ /**
+ Returns a pointer to the current completion object.
+ If the completion object does not exist, it is automatically created and
+ by default handles all the completion signals internally unless <code>hsig</code>
+ is set to false. It is also automatically destroyed when the destructor
+ is called. You can change this default behavior using the
+ {@link #setAutoDeleteCompletionObject} and {@link #setHandleSignals} member
+ functions.
+ See also {@link #compObj}.
+ @param hsig if true, handles completion signals internally.
+ @return a pointer the completion object.
+
+ @short Returns a pointer to the current completion object.
+ */
+ public native KCompletion completionObject(boolean hsig);
+ public native KCompletion completionObject();
+ /**
+ Enables this object to handle completion and rotation
+ events internally.
+ This function simply assigns a booleanean value that
+ indicates whether it should handle rotation and
+ completion events or not. Note that this does not
+ stop the object from emitting signals when these
+ events occur.
+ @param handle if true, handle completion & rotation internally.
+ @short Enables this object to handle completion and rotation events internally.
+ */
+ public native void setHandleSignals(boolean handle);
+ /**
+ Returns true if the completion object is deleted
+ upon this widget's destruction.
+ See setCompletionObject() and enableCompletion()
+ for details.
+ @return true if the completion object will be deleted
+ automatically
+
+ @short Returns true if the completion object is deleted upon this widget's destruction.
+ */
+ public native boolean isCompletionObjectAutoDeleted();
+ /**
+ Sets the completion object when this widget's destructor
+ is called.
+ If the argument is set to true, the completion object
+ is deleted when this widget's destructor is called.
+ @param autoDelete if true, delete completion object on destruction.
+ @short Sets the completion object when this widget's destructor is called.
+ */
+ public native void setAutoDeleteCompletionObject(boolean autoDelete);
+ /**
+ Sets the widget's ability to emit text completion and
+ rotation signals.
+ Invoking this function with <code>enable</code> set to <code>false</code> will
+ cause the completion & rotation signals not to be emitted.
+ However, unlike setting the completion object to <code>NULL</code>
+ using setCompletionObject, disabling the emition of
+ the signals through this method does not affect the current
+ completion object.
+ There is no need to invoke this function by default. When a
+ completion object is created through completionObject or
+ setCompletionObject, these signals are set to emit
+ automatically. Also note that disabling this signals will not
+ necessarily interfere with the objects ability to handle these
+ events internally. See setHandleSignals.
+ @param enable if false, disables the emition of completion & rotation signals.
+ @short Sets the widget's ability to emit text completion and rotation signals.
+ */
+ public native void setEnableSignals(boolean enable);
+ /**
+ Returns true if the object handles the signals.
+ @return true if this signals are handled internally.
+
+ @short Returns true if the object handles the signals.
+ */
+ public native boolean handleSignals();
+ /**
+ Returns true if the object emits the signals.
+ @return true if signals are emitted
+
+ @short Returns true if the object emits the signals.
+ */
+ public native boolean emitSignals();
+ /**
+ Returns the current completion mode.
+ The return values are of type KGlobalSettings.Completion.
+ See setCompletionMode() for details.
+ @return the completion mode.
+
+ @short Returns the current completion mode.
+ */
+ public native int completionMode();
+ /**
+ Sets the key-binding to be used for manual text
+ completion, text rotation in a history list as
+ well as a completion list.
+ When the keys set by this function are pressed, a
+ signal defined by the inheriting widget will be activated.
+ If the default value or 0 is specified by the second
+ parameter, then the key-binding as defined in the global
+ setting should be used. This method returns false value
+ for <code>key</code> is negative or the supplied key-binding conflicts
+ with the ones set for one of the other features.
+ NOTE: To use a modifier key (Shift, Ctrl, Alt) as part of
+ the key-binding simply simply <code>sum</code> up the values of the
+ modifier and the actual key. For example, to use CTRL+E as
+ a key binding for one of the items, you would simply supply
+ <code></code>"Qt.CtrlButton + Qt.Key_E" as the second argument to this
+ function.
+ @param item the feature whose key-binding needs to be set:
+
+ <li>
+ TextCompletion the manual completion key-binding.
+ </li>
+
+ <li>
+ PrevCompletionMatch the previous match key for multiple completion.
+ </li>
+
+ <li>
+ NextCompletionMatch the next match key for for multiple completion.
+ </li>
+
+ <li>
+ SubstringCompletion the key for substring completion
+ </li>
+ @param key key-binding used to rotate down in a list.
+ @return true if key-binding can successfully be set.
+
+ @short Sets the key-binding to be used for manual text completion, text rotation in a history list as well as a completion list.
+ @see #getKeyBinding
+ */
+ public native boolean setKeyBinding(int item, KShortcut key);
+ /**
+ Returns the key-binding used for the specified item.
+ This methods returns the key-binding used to activate
+ the feature feature given by <code>item.</code> If the binding
+ contains modifier key(s), the SUM of the modifier key
+ and the actual key code are returned.
+ @param item the item to check
+ @return the key-binding used for the feature given by <code>item.</code>
+
+ @short Returns the key-binding used for the specified item.
+ @see #setKeyBinding
+ */
+ public native KShortcut getKeyBinding(int item);
+ /**
+ Sets this object to use global values for key-bindings.
+ This method changes the values of the key bindings for
+ rotation and completion features to the default values
+ provided in KGlobalSettings.
+ NOTE: By default inheriting widgets should uses the
+ global key-bindings so that there will be no need to
+ call this method.
+ @short Sets this object to use global values for key-bindings.
+ */
+ public native void useGlobalKeyBindings();
+ /**
+ Returns a pointer to the completion object.
+ This method is only different from completionObject()
+ in that it does not create a new KCompletion object even if
+ the internal pointer is <code>NULL.</code> Use this method to get the
+ pointer to a completion object when inheriting so that you
+ won't inadvertently create it!!
+ @return the completion object or NULL if one does not exist.
+
+ @short Returns a pointer to the completion object.
+ */
+ public native KCompletion compObj();
+ /**
+ Returns a key-binding map.
+ This method is the same as getKeyBinding() except it
+ returns the whole keymap containing the key-bindings.
+ @return the key-binding used for the feature given by <code>item.</code>
+
+ @short Returns a key-binding map.
+ */
+ // KCompletionBase::KeyBindingMap getKeyBindings(); >>>> NOT CONVERTED
+ /**
+ Sets or removes the delegation object. If a delegation object is
+ set, all function calls will be forwarded to the delegation object.
+ @param delegate the delegation object, or 0 to remove it
+ @short Sets or removes the delegation object.
+ */
+ protected native void setDelegate(KCompletionBaseInterface delegate);
+ /**
+ Returns the delegation object.
+ @return the delegation object, or 0 if there is none
+
+ @short Returns the delegation object.
+ @see #setDelegate
+ */
+ protected native KCompletionBaseInterface delegate();
+}
diff --git a/kdejava/koala/org/kde/koala/KLineEditSignals.java b/kdejava/koala/org/kde/koala/KLineEditSignals.java
new file mode 100644
index 00000000..23e86a58
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KLineEditSignals.java
@@ -0,0 +1,72 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QContextMenuEvent;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+public interface KLineEditSignals {
+ /**
+ Emitted whenever the completion box is activated.
+ @short Emitted whenever the completion box is activated.
+ */
+ void completionBoxActivated(String arg1);
+ /**
+ Emitted when the user presses the return key.
+ The argument is the current text. Note that this
+ signal is <b>not</b> emitted if the widget's <code>EchoMode</code> is set to
+ QLineEdit.EchoMode.
+ @short Emitted when the user presses the return key.
+ */
+ void returnPressed(String arg1);
+ /**
+ Emitted when the completion key is pressed.
+ Please note that this signal is <b>not</b> emitted if the
+ completion mode is set to <code>CompletionNone</code> or <code>EchoMode</code> is
+ <b>normal</b>.
+ @short Emitted when the completion key is pressed.
+ */
+ void completion(String arg1);
+ /**
+ Emitted when the shortcut for substring completion is pressed.
+ @short Emitted when the shortcut for substring completion is pressed.
+ */
+ void substringCompletion(String arg1);
+ /**
+ Emitted when the text rotation key-bindings are pressed.
+ The argument indicates which key-binding was pressed.
+ In KLineEdit's case this can be either one of two values:
+ PrevCompletionMatch or NextCompletionMatch. See
+ KCompletionBase.setKeyBinding for details.
+ Note that this signal is <b>not</b> emitted if the completion
+ mode is set to <code>KGlobalSettings</code>.CompletionNone or <code>echoMode</code>() is <b>not</b> normal.
+ @short Emitted when the text rotation key-bindings are pressed.
+ */
+ void textRotation(int arg1);
+ /**
+ Emitted when the user changed the completion mode by using the
+ popupmenu.
+ @short Emitted when the user changed the completion mode by using the popupmenu.
+ */
+ void completionModeChanged(int arg1);
+ /**
+ Emitted before the context menu is displayed.
+ The signal allows you to add your own entries into the
+ the context menu that is created on demand.
+ NOTE: Do not store the pointer to the QPopupMenu
+ provided through since it is created and deleted
+ on demand.
+ @param p the context menu about to be displayed
+ @short Emitted before the context menu is displayed.
+ */
+ void aboutToShowContextMenu(QPopupMenu p);
+}
diff --git a/kdejava/koala/org/kde/koala/KListAction.java b/kdejava/koala/org/kde/koala/KListAction.java
new file mode 100644
index 00000000..bc34a103
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KListAction.java
@@ -0,0 +1,198 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QIconSet;
+
+/**
+
+ @short
+
+*/
+public class KListAction extends KSelectAction {
+ protected KListAction(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a list action with text and potential keyboard
+ accelerator but nothing else. Use this only if you really
+ know what you are doing.
+ @param text The text that will be displayed.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short Constructs a list action with text and potential keyboard accelerator but nothing else.
+ */
+ public KListAction(String text, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKListAction(text,cut,parent,name);
+ }
+ private native void newKListAction(String text, KShortcut cut, QObject parent, String name);
+ public KListAction(String text, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKListAction(text,cut,parent);
+ }
+ private native void newKListAction(String text, KShortcut cut, QObject parent);
+ public KListAction(String text, KShortcut cut) {
+ super((Class) null);
+ newKListAction(text,cut);
+ }
+ private native void newKListAction(String text, KShortcut cut);
+ public KListAction(String text) {
+ super((Class) null);
+ newKListAction(text);
+ }
+ private native void newKListAction(String text);
+ /**
+ @param text The text that will be displayed.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KListAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKListAction(text,cut,receiver,slot,parent,name);
+ }
+ private native void newKListAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KListAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKListAction(text,cut,receiver,slot,parent);
+ }
+ private native void newKListAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param text The text that will be displayed.
+ @param pix The icons that go with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KListAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKListAction(text,pix,cut,parent,name);
+ }
+ private native void newKListAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name);
+ public KListAction(String text, QIconSet pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKListAction(text,pix,cut,parent);
+ }
+ private native void newKListAction(String text, QIconSet pix, KShortcut cut, QObject parent);
+ public KListAction(String text, QIconSet pix, KShortcut cut) {
+ super((Class) null);
+ newKListAction(text,pix,cut);
+ }
+ private native void newKListAction(String text, QIconSet pix, KShortcut cut);
+ public KListAction(String text, QIconSet pix) {
+ super((Class) null);
+ newKListAction(text,pix);
+ }
+ private native void newKListAction(String text, QIconSet pix);
+ /**
+ @param text The text that will be displayed.
+ @param pix The dynamically loaded icon that goes with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KListAction(String text, String pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKListAction(text,pix,cut,parent,name);
+ }
+ private native void newKListAction(String text, String pix, KShortcut cut, QObject parent, String name);
+ public KListAction(String text, String pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKListAction(text,pix,cut,parent);
+ }
+ private native void newKListAction(String text, String pix, KShortcut cut, QObject parent);
+ public KListAction(String text, String pix, KShortcut cut) {
+ super((Class) null);
+ newKListAction(text,pix,cut);
+ }
+ private native void newKListAction(String text, String pix, KShortcut cut);
+ public KListAction(String text, String pix) {
+ super((Class) null);
+ newKListAction(text,pix);
+ }
+ private native void newKListAction(String text, String pix);
+ /**
+ @param text The text that will be displayed.
+ @param pix The icons that go with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KListAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKListAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKListAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KListAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKListAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKListAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param text The text that will be displayed.
+ @param pix The dynamically loaded icon that goes with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KListAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKListAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKListAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KListAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKListAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKListAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KListAction(QObject parent, String name) {
+ super((Class) null);
+ newKListAction(parent,name);
+ }
+ private native void newKListAction(QObject parent, String name);
+ public KListAction(QObject parent) {
+ super((Class) null);
+ newKListAction(parent);
+ }
+ private native void newKListAction(QObject parent);
+ public KListAction() {
+ super((Class) null);
+ newKListAction();
+ }
+ private native void newKListAction();
+ public native String currentText();
+ public native int currentItem();
+ /**
+ Sets the currently checked item.
+ @param index Index of the item (remember the first item is zero).
+ @short Sets the currently checked item.
+ */
+ public native void setCurrentItem(int index);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KListBox.java b/kdejava/koala/org/kde/koala/KListBox.java
new file mode 100644
index 00000000..b077b485
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KListBox.java
@@ -0,0 +1,76 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QListBoxItem;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QListBox;
+
+/**
+
+ Extends the functionality of QListBox to honor the system
+ wide settings for Single Click/Double Click mode, Auto Selection and
+ Change Cursor over Link.
+ There is a new signal executed(). It gets connected to either
+ QListBox.clicked() or QListBox.doubleClicked()
+ depending on the KDE wide Single Click/Double Click settings. It is
+ strongly recommended that you use this signal instead of the above
+ mentioned. This way you don't need to care about the current
+ settings. If you want to get informed when the user selects
+ something connect to the QListBox.selectionChanged() signal.
+ See {@link KListBoxSignals} for signals emitted by KListBox
+ @short A variant of QListBox that honors KDE's system-wide settings.
+
+*/
+public class KListBox extends QListBox {
+ protected KListBox(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KListBox(QWidget parent, String name, int f) {
+ super((Class) null);
+ newKListBox(parent,name,f);
+ }
+ private native void newKListBox(QWidget parent, String name, int f);
+ public KListBox(QWidget parent, String name) {
+ super((Class) null);
+ newKListBox(parent,name);
+ }
+ private native void newKListBox(QWidget parent, String name);
+ public KListBox(QWidget parent) {
+ super((Class) null);
+ newKListBox(parent);
+ }
+ private native void newKListBox(QWidget parent);
+ public KListBox() {
+ super((Class) null);
+ newKListBox();
+ }
+ private native void newKListBox();
+ protected native void emitExecute(QListBoxItem item, QPoint pos);
+ protected native void keyPressEvent(QKeyEvent e);
+ protected native void focusOutEvent(QFocusEvent fe);
+ protected native void leaveEvent(QEvent e);
+ protected native void contentsMousePressEvent(QMouseEvent e);
+ protected native void contentsMouseDoubleClickEvent(QMouseEvent e);
+ protected native void slotOnItem(QListBoxItem item);
+ protected native void slotOnViewport();
+ protected native void slotSettingsChanged(int arg1);
+ /**
+ Auto selection happend.
+ @short Auto selection happend.
+ */
+ protected native void slotAutoSelect();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KListBoxSignals.java b/kdejava/koala/org/kde/koala/KListBoxSignals.java
new file mode 100644
index 00000000..3318f170
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KListBoxSignals.java
@@ -0,0 +1,49 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QListBoxItem;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+public interface KListBoxSignals {
+ /**
+ Emitted whenever the user executes an listbox item.
+ That means depending on the KDE wide Single Click/Double Click
+ setting the user clicked or double clicked on that item.
+ @param item is the pointer to the executed listbox item.
+ Note that you may not delete any QListBoxItem objects in slots
+ connected to this signal.
+ @short Emitted whenever the user executes an listbox item.
+ */
+ void executed(QListBoxItem item);
+ /**
+ Emitted whenever the user executes an listbox item.
+ That means depending on the KDE wide Single Click/Double Click
+ setting the user clicked or double clicked on that item.
+ @param item is the pointer to the executed listbox item.
+ @param pos is the position where the user has clicked
+ Note that you may not delete any QListBoxItem objects in slots
+ connected to this signal.
+ @short Emitted whenever the user executes an listbox item.
+ */
+ void executed(QListBoxItem item, QPoint pos);
+ /**
+ This signal gets emitted whenever the user double clicks into the
+ listbox.
+ @param item The pointer to the clicked listbox item.
+ @param pos The position where the user has clicked.
+ Note that you may not delete any QListBoxItem objects in slots
+ connected to this signal.
+ This signal is more or less here for the sake of completeness.
+ You should normally not need to use this. In most cases it's better
+ to use executed() instead.
+ @short This signal gets emitted whenever the user double clicks into the listbox.
+ */
+ void doubleClicked(QListBoxItem item, QPoint pos);
+}
diff --git a/kdejava/koala/org/kde/koala/KListView.java b/kdejava/koala/org/kde/koala/KListView.java
new file mode 100644
index 00000000..2cbcdecb
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KListView.java
@@ -0,0 +1,778 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QRect;
+import org.kde.qt.QListViewItem;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QPoint;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QPainter;
+import org.kde.qt.QDragLeaveEvent;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QDragObject;
+import org.kde.qt.QListView;
+
+/**
+
+ This Widget extends the functionality of QListView to honor the system
+ wide settings for Single Click/Double Click mode, AutoSelection and
+ ChangeCursorOverLink (TM).
+ There is a new signal executed(). It gets connected to either
+ QListView.clicked() or QListView.doubleClicked() depending on the KDE
+ wide Single Click/Double Click settings. It is strongly recommended that
+ you use this signal instead of the above mentioned. This way you don't
+ need to care about the current settings.
+ If you want to get informed when the user selects something connect to the
+ QListView.selectionChanged() signal.
+ Drag-and-Drop is supported with the signal dropped(), just setAcceptDrops(true)
+ and connect it to a suitable slot.
+ To see where you are dropping, setDropVisualizer(true).
+ And also you'll need acceptDrag(QDropEvent)
+ KListView is drag-enabled, too: to benefit from that you have to derive from it.
+ Reimplement dragObject() and (possibly) startDrag(),
+ and setDragEnabled(true).
+ See {@link KListViewSignals} for signals emitted by KListView
+ @short This Widget extends the functionality of QListView to honor the system wide settings for Single Click/Double Click mode, AutoSelection and ChangeCursorOverLink (TM).
+
+*/
+public class KListView extends QListView {
+ protected KListView(Class dummy){super((Class) null);}
+ /**
+ Possible selection modes.
+ The first four correspond directly to QListView.SelectionMode, while
+ the FileManager selection mode is defined as follows:
+
+ <li>
+ home: move to the first
+ </li>
+
+ <li>
+ end: move to the last
+ </li>
+
+ <li>
+ PgUp/PgDn: move one page up/down
+ </li>
+
+ <li>
+ up/down: move one item up/down
+ </li>
+
+ <li>
+ insert: toggle selection of current and move to the next
+ </li>
+
+ <li>
+ space: toggle selection of the current
+ </li>
+
+ <li>
+ CTRL+up: move to the previous item and toggle selection of this one
+ </li>
+
+ <li>
+ CTRL+down: toggle selection of the current item and move to the next
+ </li>
+
+ <li>
+ CTRL+end: toggle selection from (including) the current
+ item to (including) the last item
+ </li>
+
+ <li>
+ CTRL+home: toggle selection from (including) the current
+ item to the (including) the first item
+ </li>
+
+ <li>
+ CTRL+PgDn: toggle selection from (including) the current
+ item to (excluding) the item one page down
+ </li>
+
+ <li>
+ CTRL+PgUp: toggle selection from (excluding) the current
+ item to (including) the item one page up
+ </li>
+ The combinations work the same with SHIFT instead of CTRL, except
+ that if you start selecting something using SHIFT everything selected
+ before will be deselected first.
+ Additionally the current item is always selected automatically when
+ navigating using the keyboard, except other items were selected explicitly.
+ This way e.g. SHIFT+up/PgUp then SHIFT+down/PgDn leaves no item selected
+ @short Possible selection modes.
+ */
+ public static final int Single = QListView.Single;
+ public static final int Multi = QListView.Multi;
+ public static final int Extended = QListView.Extended;
+ public static final int NoSelection = QListView.NoSelection;
+ public static final int FileManager = 0;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor.
+ The parameters <code>parent</code> and <code>name</code> are handled by
+ QListView, as usual.
+ @short Constructor.
+ */
+ public KListView(QWidget parent, String name) {
+ super((Class) null);
+ newKListView(parent,name);
+ }
+ private native void newKListView(QWidget parent, String name);
+ public KListView(QWidget parent) {
+ super((Class) null);
+ newKListView(parent);
+ }
+ private native void newKListView(QWidget parent);
+ public KListView() {
+ super((Class) null);
+ newKListView();
+ }
+ private native void newKListView();
+ /**
+ Reimplemented for internal reasons.
+ Further reimplementations should call this function or else
+ some features may not work correctly.
+ The API is unaffected.
+ @short Reimplemented for internal reasons.
+ */
+ public native void setAcceptDrops(boolean arg1);
+ /**
+ This function determines whether the given coordinates are within the
+ execute area. The execute area is the part of a QListViewItem where mouse
+ clicks or double clicks respectively generate a executed() signal.
+ Depending on QListView.allColumnsShowFocus() this is either the
+ whole item or only the first column.
+ @return true if point is inside execute area of an item, false in all
+ other cases including the case that it is over the viewport.
+
+ @short This function determines whether the given coordinates are within the execute area.
+ */
+ public native boolean isExecuteArea(QPoint point);
+ /**
+ Same thing, but from an x coordinate only. This only checks if x is in
+ the first column (if all columns don't show focus), without testing if
+ the y coordinate is over an item or not.
+ @short Same thing, but from an x coordinate only.
+ */
+ public native boolean isExecuteArea(int x);
+ /**
+ @param includeHiddenItems Set to true to return all items regardless of
+ visibility. Set to false to only return items that are isVisible().
+ @return a list of all selected listview items
+
+ @short
+ */
+ // QPtrList<QListViewItem> selectedItems(bool arg1); >>>> NOT CONVERTED
+ /**
+ Arbitrarily move <code>item</code> to <code>parent</code>, positioned immediately after item <code>after.</code>
+ If after is 0, <code>item</code> is made the first child of <code>parent.</code>
+ (Un-deprecated in kde-3.4)
+ @short Arbitrarily move <code>item</code> to <code>parent</code>, positioned immediately after item <code>after.</code>
+ */
+ public native void moveItem(QListViewItem item, QListViewItem parent, QListViewItem after);
+ /**
+ @return the last item (not child!) of this listview.
+
+ @short
+ @see #lastChild
+ */
+ public native QListViewItem lastItem();
+ /**
+ @return the last child of this listview.
+
+ @short
+ @see #lastItem
+ */
+ public native QListViewItem lastChild();
+ /**
+ @return the lineedit used for inline renaming.
+ Use that to setup a KCompletion or QValidator for the lineedit
+
+ @short
+ */
+ public native KLineEdit renameLineEdit();
+ /**
+ @return if it is legal to move items in the list view. True by default.
+
+ @short
+ @see #setDragEnabled
+ @see #setItemsMovable
+ */
+ public native boolean itemsMovable();
+ /**
+ @return whether inplace-renaming has been enabled. False by default.
+
+ @short
+ @see #setItemsRenameable
+ */
+ public native boolean itemsRenameable();
+ /**
+ @return whether dragging is enabled. False by default.
+
+ @short
+ @see #setDragEnabled
+ */
+ public native boolean dragEnabled();
+ /**
+ @return true if AutoOpen is enabled (not implemented currently).
+
+ @short
+ @see #setAutoOpen
+ */
+ public native boolean autoOpen();
+ /**
+ @return true if <code>column</code> is renamable.
+
+ @short
+ @see #setRenameable
+ */
+ public native boolean isRenameable(int column);
+ /**
+ @return true if drawing of the drop-visualizer has been enabled. True by default.
+
+ @short
+ @see #setDropVisualizer
+ */
+ public native boolean dropVisualizer();
+ /**
+ @return the column for which tooltips are displayed (or -1 if none set).
+
+ @short
+ @see #setTooltipColumn
+ */
+ public native int tooltipColumn();
+ /**
+ @return true if drawing of the drop-highlighter has been enabled. False by default.
+
+ @short
+ @see #setDropHighlighter
+ */
+ public native boolean dropHighlighter();
+ /**
+ The dropVisualizerWidth defaults to 4.
+ @return the current width of the drop-visualizer.
+
+ @short The dropVisualizerWidth defaults to 4.
+ @see #setDropVisualizerWidth
+ */
+ public native int dropVisualizerWidth();
+ /**
+ @return the "extended" selection mode of this listview.
+
+ @short
+ @see SelectionModeExt
+ @see #setSelectionModeExt
+ */
+ public native int selectionModeExt();
+ /**
+ Returns the index of <code>item</code> within the item tree or -1 if
+ <code>item</code> doesn't exist in this list view. This function takes
+ all items into account not only the visible ones.
+ @short Returns the index of <code>item</code> within the item tree or -1 if <code>item</code> doesn't exist in this list view.
+ */
+ public native int itemIndex(QListViewItem item);
+ /**
+ Returns the item of <code>index</code> within the item tree or 0 if
+ <code>index</code> doesn't exist in this list view. This function takes
+ all items into account not only the visible ones.
+ @short Returns the item of <code>index</code> within the item tree or 0 if <code>index</code> doesn't exist in this list view.
+ */
+ public native QListViewItem itemAtIndex(int index);
+ /**
+ Let the last column fit exactly all the available width.
+ @short Let the last column fit exactly all the available width.
+ @see #fullWidth
+ */
+ public native void setFullWidth(boolean fullWidth);
+ /**
+ Returns whether the last column is set to fit the available width.
+ @short Returns whether the last column is set to fit the available width.
+ @see #setFullWidth
+ */
+ public native boolean fullWidth();
+ /**
+ Reimplemented for full width support
+ @short Reimplemented for full width support
+ @see #removeColumn
+ */
+ public native int addColumn(String label, int width);
+ public native int addColumn(String label);
+ /**
+ Reimplemented for full width support
+ @short Reimplemented for full width support
+ */
+ public native int addColumn(QIconSet iconset, String label, int width);
+ public native int addColumn(QIconSet iconset, String label);
+ /**
+ Reimplemented for full width support
+ @short Reimplemented for full width support
+ @see #addColumn
+ */
+ public native void removeColumn(int index);
+ /**
+ sets the alternate background background color.
+ This only has an effect if the items are KListViewItems
+ @param c the color to use for every other item. Set to an invalid
+ color to disable alternate colors.
+ @short sets the alternate background background color.
+ @see #alternateBackground
+ */
+ public native void setAlternateBackground(QColor c);
+ /**
+ @return the alternate background color
+
+ @short
+ @see #setAlternateBackground
+ */
+ public native QColor alternateBackground();
+ /**
+ Saves the list view's layout (column widtsh, column order, sort column)
+ to a KConfig group
+ @param config the KConfig object to write to
+ @param group the config group to use
+ @short Saves the list view's layout (column widtsh, column order, sort column) to a KConfig group
+ */
+ public native void saveLayout(KConfig config, String group);
+ /**
+ Reads the list view's layout from a KConfig group as stored with
+ saveLayout
+ @param config the KConfig object to read from
+ @param group the config group to use
+ @short Reads the list view's layout from a KConfig group as stored with saveLayout
+ */
+ public native void restoreLayout(KConfig config, String group);
+ /**
+ Reimplemented to remember the current sort column and order.
+ @param column is the column to be sorted, or -1 to sort in order of
+ insertion
+ @param ascending whether to sort ascending (or descending)
+ @short Reimplemented to remember the current sort column and order.
+ */
+ public native void setSorting(int column, boolean ascending);
+ public native void setSorting(int column);
+ /**
+ @return the currently sorted column, or -1 if none is sorted
+
+ @short
+ */
+ public native int columnSorted();
+ /**
+ @return whether the current sort is ascending (or descending)
+
+ @short
+ */
+ public native boolean ascendingSort();
+ /**
+ Reimplemented for internal reasons.
+ @short Reimplemented for internal reasons.
+ */
+ public native void takeItem(QListViewItem i);
+ /**
+ Set to true if the currently sorted column should be drawn shaded. Defaults to true
+ @param shadeSortColumn True if sort column should be shaded.
+ @short Set to true if the currently sorted column should be drawn shaded.
+ */
+ public native void setShadeSortColumn(boolean shadeSortColumn);
+ /**
+ See if the sort column should be drawn shaded
+ @return true if the sort column should be shaded
+
+ @short See if the sort column should be drawn shaded
+ */
+ public native boolean shadeSortColumn();
+ /**
+ Rename column <code>c</code> of <code>item.</code>
+ @short Rename column <code>c</code> of <code>item.</code>
+ */
+ public native void rename(QListViewItem item, int c);
+ /**
+ By default, if you called setItemsRenameable(true),
+ only the first column is renameable.
+ Use this function to enable the feature on other columns.
+ If you want more intelligent (dynamic) selection,
+ you'll have to derive from KListView,
+ and override rename() and call only call it
+ if you want the item to be renamed.
+ @short By default, if you called setItemsRenameable(true), only the first column is renameable.
+ */
+ public native void setRenameable(int column, boolean yesno);
+ public native void setRenameable(int column);
+ /**
+ Set whether items in the list view can be moved.
+ It is enabled by default.
+ @short Set whether items in the list view can be moved.
+ @see #itemsMovable
+ */
+ public native void setItemsMovable(boolean b);
+ /**
+ Enables inplace-renaming of items.
+ It is disabled by default.
+ @short Enables inplace-renaming of items.
+ @see #itemsRenameable
+ @see #setRenameable
+ */
+ public native void setItemsRenameable(boolean b);
+ /**
+ Enable/Disable the dragging of items.
+ It is disabled by default.
+ @short Enable/Disable the dragging of items.
+ */
+ public native void setDragEnabled(boolean b);
+ /**
+ Enable/Disable AutoOpen (not implemented currently).
+ @short Enable/Disable AutoOpen (not implemented currently).
+ */
+ public native void setAutoOpen(boolean b);
+ /**
+ Enable/Disable the drawing of a drop-visualizer
+ (a bar that shows where a dropped item would be inserted).
+ It is enabled by default, if dragging is enabled
+ @short Enable/Disable the drawing of a drop-visualizer (a bar that shows where a dropped item would be inserted).
+ */
+ public native void setDropVisualizer(boolean b);
+ /**
+ Set the width of the (default) drop-visualizer.
+ If you don't call this method, the width is set to 4.
+ @short Set the width of the (default) drop-visualizer.
+ */
+ public native void setDropVisualizerWidth(int w);
+ /**
+ Set which column should be used for automatic tooltips.
+ @param column is the column for which tooltips will be shown.
+ Set -1 to disable this feature.
+ @short Set which column should be used for automatic tooltips.
+ */
+ public native void setTooltipColumn(int column);
+ /**
+ Enable/Disable the drawing of a drop-highlighter
+ (a rectangle around the item under the mouse cursor).
+ It is disabled by default.
+ @short Enable/Disable the drawing of a drop-highlighter (a rectangle around the item under the mouse cursor).
+ */
+ public native void setDropHighlighter(boolean b);
+ /**
+ Set the selection mode.
+ A different name was chosen to avoid API-clashes with QListView.setSelectionMode().
+ @short Set the selection mode.
+ */
+ public native void setSelectionModeExt(int mode);
+ /**
+ Enable/disable tabbing between editable cells
+ @short Enable/disable tabbing between editable cells
+ */
+ public native void setTabOrderedRenaming(boolean b);
+ /**
+ Returns whether tab ordered renaming is enabled
+ @short Returns whether tab ordered renaming is enabled
+ */
+ public native boolean tabOrderedRenaming();
+ /**
+ Determine whether a drop on position <code>p</code> would count as
+ being above or below the QRect <code>rect.</code>
+ @param rect is the rectangle we examine.
+ @param p is the point located in the rectangle, p is assumed to be in
+ viewport coordinates.
+ @short Determine whether a drop on position <code>p</code> would count as being above or below the QRect <code>rect.</code>
+ */
+ protected native boolean below(QRect rect, QPoint p);
+ /**
+ An overloaded version of below(QRect, QPoint).
+ It differs from the above only in what arguments it takes.
+ @param i the item whose rect() is passed to the above function.
+ @param p is translated from contents coordinates to viewport coordinates
+ before being passed to the above function.
+ @short An overloaded version of below(QRect, QPoint).
+ */
+ protected native boolean below(QListViewItem i, QPoint p);
+ /**
+ Reimplemented to reload the alternate background in palette changes.
+ @short Reimplemented to reload the alternate background in palette changes.
+ */
+ public native boolean event(QEvent arg1);
+ /**
+ Emit signal executed.
+ @short Emit signal executed.
+ */
+ protected native void emitExecute(QListViewItem item, QPoint pos, int c);
+ /**
+ Reimplemented for internal reasons.
+ Further reimplementations should call this function or else
+ some features may not work correctly.
+ The API is unaffected.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void focusInEvent(QFocusEvent fe);
+ /**
+ Reimplemented for internal reasons.
+ Further reimplementations should call this function or else
+ some features may not work correctly.
+ The API is unaffected.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void focusOutEvent(QFocusEvent fe);
+ /**
+ Reimplemented for internal reasons.
+ Further reimplementations should call this function or else
+ some features may not work correctly.
+ The API is unaffected.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void leaveEvent(QEvent e);
+ /**
+ @return the tooltip for <code>column</code> of <code>item.</code>
+
+ @short
+ */
+ protected native String tooltip(QListViewItem item, int column);
+ /**
+ @return whether the tooltip for <code>column</code> of <code>item</code> shall be shown at point <code>pos.</code>
+
+ @short
+ */
+ protected native boolean showTooltip(QListViewItem item, QPoint pos, int column);
+ /**
+ Reimplemented for internal reasons.
+ Further reimplementations should call this function or else
+ some features may not work correctly.
+ The API is unaffected.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void contentsDragMoveEvent(QDragMoveEvent event);
+ /**
+ Reimplemented for internal reasons.
+ Further reimplementations should call this function or else
+ some features may not work correctly.
+ The API is unaffected.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void contentsMousePressEvent(QMouseEvent e);
+ /**
+ Reimplemented for internal reasons.
+ Further reimplementations should call this function or else
+ some features may not work correctly.
+ The API is unaffected.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void contentsMouseMoveEvent(QMouseEvent e);
+ /**
+ Reimplemented for internal reasons.
+ Further reimplementations should call this function or else
+ some features may not work correctly.
+ The API is unaffected.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void contentsMouseDoubleClickEvent(QMouseEvent e);
+ /**
+ Reimplemented for internal reasons.
+ Further reimplementations should call this function or else
+ some features may not work correctly.
+ The API is unaffected.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void contentsDragLeaveEvent(QDragLeaveEvent event);
+ /**
+ Reimplemented for internal reasons.
+ Further reimplementations should call this function or else
+ some features may not work correctly.
+ The API is unaffected.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void contentsMouseReleaseEvent(QMouseEvent arg1);
+ /**
+ Reimplemented for internal reasons.
+ Further reimplementations should call this function or else
+ some features may not work correctly.
+ The API is unaffected.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void contentsDropEvent(QDropEvent arg1);
+ /**
+ Reimplemented for internal reasons.
+ Further reimplementations should call this function or else
+ some features may not work correctly.
+ The API is unaffected.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void contentsDragEnterEvent(QDragEnterEvent arg1);
+ /**
+ @return a dragobject encoding the current selection.
+
+ @short
+ @see #setDragEnabled
+ */
+ protected native QDragObject dragObject();
+ /**
+ @return true if the <code>event</code> provides some acceptable
+ format.
+ A common mistake is to forget the "const" in your reimplementation
+
+ @short
+ */
+ protected native boolean acceptDrag(QDropEvent event);
+ /**
+ Paint the drag line. If painter is null, don't try to :)
+ If after == 0 then the marker should be drawn at the top.
+ @return the rectangle that you painted to.
+
+ @short Paint the drag line.
+ */
+ protected native QRect drawDropVisualizer(QPainter p, QListViewItem parent, QListViewItem after);
+ /**
+ Paint the drag rectangle. If painter is null, don't try to :)
+ @return the rectangle that you painted to.
+
+ @short Paint the drag rectangle.
+ */
+ protected native QRect drawItemHighlighter(QPainter painter, QListViewItem item);
+ /**
+ This method calls dragObject() and starts the drag.
+ Reimplement it to do fancy stuff like setting a pixmap or
+ using a non-default DragMode
+ @short This method calls dragObject() and starts the drag.
+ */
+ protected native void startDrag();
+ /**
+ Reimplemented for internal reasons.
+ Further reimplementations should call this function or else
+ some features may not work correctly.
+ The API is unaffected.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void keyPressEvent(QKeyEvent arg1);
+ /**
+ Reimplemented for internal reasons.
+ Further reimplementations should call this function or else
+ some features may not work correctly.
+ The API is unaffected.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void viewportPaintEvent(QPaintEvent arg1);
+ /**
+ In FileManager selection mode: explicitly activate the mode
+ in which the current item is automatically selected.
+ @short In FileManager selection mode: explicitly activate the mode in which the current item is automatically selected.
+ */
+ protected native void activateAutomaticSelection();
+ /**
+ In FileManager selection mode: explicitly deactivate the mode
+ in which the current item is automatically selected.
+ @short In FileManager selection mode: explicitly deactivate the mode in which the current item is automatically selected.
+ */
+ protected native void deactivateAutomaticSelection();
+ /**
+ In FileManager selection mode: return whether it is currently in the mode
+ where the current item is selected automatically.
+ Returns false if items were selected explicitly, e.g. using the mouse.
+ @short In FileManager selection mode: return whether it is currently in the mode where the current item is selected automatically.
+ */
+ protected native boolean automaticSelection();
+ /**
+ Reimplemented for setFullWidth()
+ @short Reimplemented for setFullWidth()
+ */
+ protected native void viewportResizeEvent(QResizeEvent e);
+ /**
+ Disable AutoSelection. This overrides the system wide setting for
+ AutoSelection. Please don't call this unless you have good reasons to
+ override the system wide setting for AutoSelection.
+ @short Disable AutoSelection.
+ @see #resetAutoSelection
+ */
+ protected native void disableAutoSelection();
+ /**
+ Reset AutoSelection to the system wide setting.
+ @short Reset AutoSelection to the system wide setting.
+ @see #disableAutoSelection
+ */
+ protected native void resetAutoSelection();
+ /**
+ Handle dropEvent when itemsMovable() is set to true.
+ @short Handle dropEvent when itemsMovable() is set to true.
+ */
+ protected native void movableDropEvent(QListViewItem parent, QListViewItem afterme);
+ /**
+ Where is the nearest QListViewItem that I'm going to drop?
+ FIXME KDE 4.0: Make this method const so it can be called from an
+ acceptDrag method without ugly casts
+ @short Where is the nearest QListViewItem that I'm going to drop?
+ */
+ protected native void findDrop(QPoint pos, QListViewItem parent, QListViewItem after);
+ /**
+ A special keyPressEvent (for FileManager selection mode).
+ @short A special keyPressEvent (for FileManager selection mode).
+ */
+ protected native void fileManagerKeyPressEvent(QKeyEvent arg1);
+ /**
+ Convert the depth of an item into its indentation in pixels
+ @short Convert the depth of an item into its indentation in pixels
+ */
+ protected native int depthToPixels(int depth);
+ /**
+ Update internal settings whenever the global ones change.
+ @short Update internal settings whenever the global ones change.
+ */
+ protected native void slotSettingsChanged(int arg1);
+ protected native void slotMouseButtonClicked(int btn, QListViewItem item, QPoint pos, int c);
+ protected native void doneEditing(QListViewItem item, int row);
+ /**
+ Repaint the rect where I was drawing the drop line.
+ @short Repaint the rect where I was drawing the drop line.
+ */
+ protected native void cleanDropVisualizer();
+ /**
+ Repaint the rect where I was drawing the drop rectangle.
+ @short Repaint the rect where I was drawing the drop rectangle.
+ */
+ protected native void cleanItemHighlighter();
+ /**
+ Emit the contextMenu signal. This slot is for mouse actions.
+ @short Emit the contextMenu signal.
+ */
+ protected native void emitContextMenu(QListViewItem arg1, QPoint arg2, int arg3);
+ /**
+ Emit the contextMenu signal. This slot is for key presses.
+ @short Emit the contextMenu signal.
+ */
+ protected native void emitContextMenu(KListView arg1, QListViewItem arg2);
+ /**
+ Accessory slot for AutoSelect
+ @short Accessory slot for AutoSelect
+ */
+ protected native void slotOnItem(QListViewItem item);
+ /**
+ Accessory slot for AutoSelect/ChangeCursorOverItem
+ @short Accessory slot for AutoSelect/ChangeCursorOverItem
+ */
+ protected native void slotOnViewport();
+ /**
+ Process AutoSelection.
+ @short Process AutoSelection.
+ */
+ protected native void slotAutoSelect();
+ protected native void slotDragExpand();
+ /**
+ Reacts to header changes in full width mode
+ @short Reacts to header changes in full width mode
+ */
+ protected native void slotHeaderChanged();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KListViewItem.java b/kdejava/koala/org/kde/koala/KListViewItem.java
new file mode 100644
index 00000000..2e510ce4
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KListViewItem.java
@@ -0,0 +1,232 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QListViewItem;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QListView;
+import org.kde.qt.QPainter;
+import org.kde.qt.QColorGroup;
+import org.kde.qt.QListViewItem;
+
+/**
+
+ A listview item with support for alternate background colors. It is
+ a drop-in replacement for QListViewItem
+ @short listview item with alternate background color support.
+
+*/
+public class KListViewItem extends QListViewItem {
+ protected KListViewItem(Class dummy){super((Class) null);}
+ /**
+ constructors. The semantics remain as in QListViewItem.
+ Although they accept a QListViewItem as parent, please
+ don't mix KListViewItem (or subclasses) with QListViewItem
+ (or subclasses).
+ @short constructors.
+ */
+ public KListViewItem(QListView parent) {
+ super((Class) null);
+ newKListViewItem(parent);
+ }
+ private native void newKListViewItem(QListView parent);
+ public KListViewItem(QListViewItem parent) {
+ super((Class) null);
+ newKListViewItem(parent);
+ }
+ private native void newKListViewItem(QListViewItem parent);
+ public KListViewItem(QListView parent, QListViewItem after) {
+ super((Class) null);
+ newKListViewItem(parent,after);
+ }
+ private native void newKListViewItem(QListView parent, QListViewItem after);
+ public KListViewItem(QListViewItem parent, QListViewItem after) {
+ super((Class) null);
+ newKListViewItem(parent,after);
+ }
+ private native void newKListViewItem(QListViewItem parent, QListViewItem after);
+ public KListViewItem(QListView parent, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8, String arg9) {
+ super((Class) null);
+ newKListViewItem(parent,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
+ }
+ private native void newKListViewItem(QListView parent, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8, String arg9);
+ public KListViewItem(QListView parent, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8) {
+ super((Class) null);
+ newKListViewItem(parent,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
+ }
+ private native void newKListViewItem(QListView parent, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8);
+ public KListViewItem(QListView parent, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7) {
+ super((Class) null);
+ newKListViewItem(parent,arg2,arg3,arg4,arg5,arg6,arg7);
+ }
+ private native void newKListViewItem(QListView parent, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7);
+ public KListViewItem(QListView parent, String arg2, String arg3, String arg4, String arg5, String arg6) {
+ super((Class) null);
+ newKListViewItem(parent,arg2,arg3,arg4,arg5,arg6);
+ }
+ private native void newKListViewItem(QListView parent, String arg2, String arg3, String arg4, String arg5, String arg6);
+ public KListViewItem(QListView parent, String arg2, String arg3, String arg4, String arg5) {
+ super((Class) null);
+ newKListViewItem(parent,arg2,arg3,arg4,arg5);
+ }
+ private native void newKListViewItem(QListView parent, String arg2, String arg3, String arg4, String arg5);
+ public KListViewItem(QListView parent, String arg2, String arg3, String arg4) {
+ super((Class) null);
+ newKListViewItem(parent,arg2,arg3,arg4);
+ }
+ private native void newKListViewItem(QListView parent, String arg2, String arg3, String arg4);
+ public KListViewItem(QListView parent, String arg2, String arg3) {
+ super((Class) null);
+ newKListViewItem(parent,arg2,arg3);
+ }
+ private native void newKListViewItem(QListView parent, String arg2, String arg3);
+ public KListViewItem(QListView parent, String arg2) {
+ super((Class) null);
+ newKListViewItem(parent,arg2);
+ }
+ private native void newKListViewItem(QListView parent, String arg2);
+ public KListViewItem(QListViewItem parent, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8, String arg9) {
+ super((Class) null);
+ newKListViewItem(parent,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
+ }
+ private native void newKListViewItem(QListViewItem parent, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8, String arg9);
+ public KListViewItem(QListViewItem parent, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8) {
+ super((Class) null);
+ newKListViewItem(parent,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
+ }
+ private native void newKListViewItem(QListViewItem parent, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8);
+ public KListViewItem(QListViewItem parent, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7) {
+ super((Class) null);
+ newKListViewItem(parent,arg2,arg3,arg4,arg5,arg6,arg7);
+ }
+ private native void newKListViewItem(QListViewItem parent, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7);
+ public KListViewItem(QListViewItem parent, String arg2, String arg3, String arg4, String arg5, String arg6) {
+ super((Class) null);
+ newKListViewItem(parent,arg2,arg3,arg4,arg5,arg6);
+ }
+ private native void newKListViewItem(QListViewItem parent, String arg2, String arg3, String arg4, String arg5, String arg6);
+ public KListViewItem(QListViewItem parent, String arg2, String arg3, String arg4, String arg5) {
+ super((Class) null);
+ newKListViewItem(parent,arg2,arg3,arg4,arg5);
+ }
+ private native void newKListViewItem(QListViewItem parent, String arg2, String arg3, String arg4, String arg5);
+ public KListViewItem(QListViewItem parent, String arg2, String arg3, String arg4) {
+ super((Class) null);
+ newKListViewItem(parent,arg2,arg3,arg4);
+ }
+ private native void newKListViewItem(QListViewItem parent, String arg2, String arg3, String arg4);
+ public KListViewItem(QListViewItem parent, String arg2, String arg3) {
+ super((Class) null);
+ newKListViewItem(parent,arg2,arg3);
+ }
+ private native void newKListViewItem(QListViewItem parent, String arg2, String arg3);
+ public KListViewItem(QListViewItem parent, String arg2) {
+ super((Class) null);
+ newKListViewItem(parent,arg2);
+ }
+ private native void newKListViewItem(QListViewItem parent, String arg2);
+ public KListViewItem(QListView parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8, String arg9, String arg10) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
+ }
+ private native void newKListViewItem(QListView parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8, String arg9, String arg10);
+ public KListViewItem(QListView parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8, String arg9) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
+ }
+ private native void newKListViewItem(QListView parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8, String arg9);
+ public KListViewItem(QListView parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3,arg4,arg5,arg6,arg7,arg8);
+ }
+ private native void newKListViewItem(QListView parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8);
+ public KListViewItem(QListView parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3,arg4,arg5,arg6,arg7);
+ }
+ private native void newKListViewItem(QListView parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7);
+ public KListViewItem(QListView parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3,arg4,arg5,arg6);
+ }
+ private native void newKListViewItem(QListView parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6);
+ public KListViewItem(QListView parent, QListViewItem after, String arg3, String arg4, String arg5) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3,arg4,arg5);
+ }
+ private native void newKListViewItem(QListView parent, QListViewItem after, String arg3, String arg4, String arg5);
+ public KListViewItem(QListView parent, QListViewItem after, String arg3, String arg4) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3,arg4);
+ }
+ private native void newKListViewItem(QListView parent, QListViewItem after, String arg3, String arg4);
+ public KListViewItem(QListView parent, QListViewItem after, String arg3) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3);
+ }
+ private native void newKListViewItem(QListView parent, QListViewItem after, String arg3);
+ public KListViewItem(QListViewItem parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8, String arg9, String arg10) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
+ }
+ private native void newKListViewItem(QListViewItem parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8, String arg9, String arg10);
+ public KListViewItem(QListViewItem parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8, String arg9) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
+ }
+ private native void newKListViewItem(QListViewItem parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8, String arg9);
+ public KListViewItem(QListViewItem parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3,arg4,arg5,arg6,arg7,arg8);
+ }
+ private native void newKListViewItem(QListViewItem parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8);
+ public KListViewItem(QListViewItem parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3,arg4,arg5,arg6,arg7);
+ }
+ private native void newKListViewItem(QListViewItem parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6, String arg7);
+ public KListViewItem(QListViewItem parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3,arg4,arg5,arg6);
+ }
+ private native void newKListViewItem(QListViewItem parent, QListViewItem after, String arg3, String arg4, String arg5, String arg6);
+ public KListViewItem(QListViewItem parent, QListViewItem after, String arg3, String arg4, String arg5) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3,arg4,arg5);
+ }
+ private native void newKListViewItem(QListViewItem parent, QListViewItem after, String arg3, String arg4, String arg5);
+ public KListViewItem(QListViewItem parent, QListViewItem after, String arg3, String arg4) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3,arg4);
+ }
+ private native void newKListViewItem(QListViewItem parent, QListViewItem after, String arg3, String arg4);
+ public KListViewItem(QListViewItem parent, QListViewItem after, String arg3) {
+ super((Class) null);
+ newKListViewItem(parent,after,arg3);
+ }
+ private native void newKListViewItem(QListViewItem parent, QListViewItem after, String arg3);
+ public native void insertItem(QListViewItem item);
+ public native void takeItem(QListViewItem item);
+ /**
+ returns true if this item is to be drawn with the alternate background
+ @short returns true if this item is to be drawn with the alternate background
+ */
+ public native boolean isAlternate();
+ /**
+ returns the background color for this item at given column
+ This can be different in the column which is sorted due to shading
+ ### could be merged with above (column = -1) to be source compatible
+ ### but will only work if sort-shading is not used or the listView has
+ ### only 1 column
+ @short returns the background color for this item at given column This can be different in the column which is sorted due to shading ### could be merged with above (column = -1) to be source compatible ### but will only work if sort-shading is not used or the listView has ### only 1 column
+ */
+ public native QColor backgroundColor(int column);
+ public native void paintCell(QPainter p, QColorGroup cg, int column, int width, int alignment);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KListViewSignals.java b/kdejava/koala/org/kde/koala/KListViewSignals.java
new file mode 100644
index 00000000..48cc3ee2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KListViewSignals.java
@@ -0,0 +1,160 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QRect;
+import org.kde.qt.QListViewItem;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QPoint;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QPainter;
+import org.kde.qt.QDragLeaveEvent;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QDragObject;
+
+public interface KListViewSignals {
+ /**
+ This signal is emitted whenever the user executes an listview item.
+ That means depending on the KDE wide Single Click/Double Click
+ setting the user clicked or double clicked on that item.
+ @param item is the pointer to the executed listview item.
+ Note that you may not delete any QListViewItem objects in slots
+ connected to this signal.
+ @short This signal is emitted whenever the user executes an listview item.
+ */
+ void executed(QListViewItem item);
+ /**
+ This signal is emitted whenever the user executes an listview item.
+ That means depending on the KDE wide Single Click/Double Click
+ setting the user clicked or double clicked on that item.
+ @param item is the pointer to the executed listview item.
+ @param pos is the position where the user has clicked
+ @param c is the column into which the user clicked.
+ Note that you may not delete any QListViewItem objects in slots
+ connected to this signal.
+ @short This signal is emitted whenever the user executes an listview item.
+ */
+ void executed(QListViewItem item, QPoint pos, int c);
+ /**
+ This signal gets emitted whenever something acceptable is
+ dropped onto the listview.
+ @param e is the drop event itself (it has already been accepted)
+ @param after is the item after which the drop occurred (or null, if
+ the drop was above all items)
+ @short This signal gets emitted whenever something acceptable is dropped onto the listview.
+ @see #acceptDrop
+ */
+ void dropped(QDropEvent e, QListViewItem after);
+ /**
+ This signal gets emitted whenever something acceptable is
+ dropped onto the listview.
+ This is an overloaded version of the above (provided to simplify
+ processing drops outside of the class).
+ @param list is the listview
+ @param e is the drop event itself (it has already been accepted)
+ @param after is the item after which the drop occurred (or null, if
+ the drop was above all items
+ @short This signal gets emitted whenever something acceptable is dropped onto the listview.
+ */
+ void dropped(KListView list, QDropEvent e, QListViewItem after);
+ /**
+ This signal gets emitted whenever something acceptable is
+ dropped onto the listview.
+ This function also provides a parent, in the event that your listview
+ is a tree
+ @param list is the listview
+ @param e is the drop event itself (it has already been accepted)
+ @param parent the item that is to be the parent of the new item
+ @param after is the item after which the drop occurred (or null, if
+ the drop was above all items
+ @short This signal gets emitted whenever something acceptable is dropped onto the listview.
+ */
+ void dropped(KListView list, QDropEvent e, QListViewItem parent, QListViewItem after);
+ /**
+ This signal gets emitted whenever something acceptable is
+ dropped onto the listview.
+ This function also provides a parent, in the event that your listview
+ is a tree
+ @param e is the drop event itself (it has already been accepted)
+ @param parent the item that is to be the parent of the new item
+ @param after is the item after which the drop occurred (or null, if
+ the drop was above all items
+ @short This signal gets emitted whenever something acceptable is dropped onto the listview.
+ */
+ void dropped(QDropEvent e, QListViewItem parent, QListViewItem after);
+ /**
+ This signal is emitted when ever the user moves an item in the list via
+ DnD.
+ If more than one item is moved at the same time, this signal is only emitted
+ once.
+ @short This signal is emitted when ever the user moves an item in the list via DnD.
+ */
+ void moved();
+ /**
+ Connect to this signal if you want to do some preprocessing before
+ a move is made, for example, to disable sorting
+ This is sent only once per each groups of moves. That is, for each
+ drop that is a move this will be emitted once, before KListView calls
+ @short Connect to this signal if you want to do some preprocessing before a move is made, for example, to disable sorting
+ @see #moveItem
+ */
+ void aboutToMove();
+ /**
+ This signal is emitted when ever the user moves an item in the list via
+ DnD.
+ If more than one item is moved at the same time, <code>afterFirst</code> and
+ <code>afterNow</code> will reflect what was true before the move.
+ This differs from moved(), so be careful. All the items will have been
+ moved before moved() is emitted, which is not true in this method. // FIXME
+ @param item the item that was moved
+ @param afterFirst the item that parameter item was in before the move, in the list
+ @param afterNow the item it's currently after.
+ @short This signal is emitted when ever the user moves an item in the list via DnD.
+ */
+ void moved(QListViewItem item, QListViewItem afterFirst, QListViewItem afterNow);
+ // void moved(QPtrList<QListViewItem>& arg1,QPtrList<QListViewItem>& arg2,QPtrList<QListViewItem>& arg3); >>>> NOT CONVERTED
+ /**
+ This signal gets emitted when an item is renamed via in-place renaming.
+ @param item is the renamed item.
+ @param str is the new value of column <code>col.</code>
+ @param col is the renamed column.
+ @short This signal gets emitted when an item is renamed via in-place renaming.
+ */
+ void itemRenamed(QListViewItem item, String str, int col);
+ /**
+ Same as above, but without the extra information.
+ @short Same as above, but without the extra information.
+ */
+ void itemRenamed(QListViewItem item);
+ /**
+ This signal is emitted when the shortcut key for popup-menus is pressed.
+ Normally you should not use this, just connect a slot to signal
+ contextMenu (KListView, QListViewItem, QPoint) to correctly
+ handle showing context menus regardless of settings.
+ @param list is this listview.
+ @param item is the currentItem() at the time the key was pressed. May be null.
+ @short This signal is emitted when the shortcut key for popup-menus is pressed.
+ */
+ void menuShortCutPressed(KListView list, QListViewItem item);
+ /**
+ This signal is emitted whenever a context-menu should be shown for item <code>i.</code>
+ It automatically adjusts for all settings involved (Menu key, showMenuOnPress/Click).
+ @param l is this listview.
+ @param i is the item for which the menu should be shown. May be null.
+ @param p is the point at which the menu should be shown.
+ @short This signal is emitted whenever a context-menu should be shown for item <code>i.</code>
+ */
+ void contextMenu(KListView l, QListViewItem i, QPoint p);
+ void itemAdded(QListViewItem item);
+ void itemRemoved(QListViewItem item);
+}
diff --git a/kdejava/koala/org/kde/koala/KLocale.java b/kdejava/koala/org/kde/koala/KLocale.java
new file mode 100644
index 00000000..3417d27a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KLocale.java
@@ -0,0 +1,993 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.Calendar;
+import java.util.ArrayList;
+import org.kde.qt.QTextCodec;
+import java.util.Date;
+
+/**
+
+ KLocale provides support for country specific stuff like
+ the national language.
+ KLocale supports translating, as well as specifying the format
+ for numbers, currency, time, and date.
+ @author Stephan Kulow <coolo@kde.org>, Preston Brown <pbrown@kde.org>,
+ Hans Petter Bieker <bieker@kde.org>, Lukas Tinkl <lukas.tinkl@suse.cz>
+
+ @short class for supporting locale settings and national language.
+
+*/
+public class KLocale implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KLocale(Class dummy){}
+
+ /**
+ Various positions for where to place the positive or negative
+ sign when they are related to a monetary value.
+ @short Various positions for where to place the positive or negative sign when they are related to a monetary value.
+ */
+ public static final int ParensAround = 0;
+ public static final int BeforeQuantityMoney = 1;
+ public static final int AfterQuantityMoney = 2;
+ public static final int BeforeMoney = 3;
+ public static final int AfterMoney = 4;
+
+ public static final int NormalFormat = 1;
+ public static final int ShortFormat = 2;
+
+ public static final int WithSeconds = 0;
+ public static final int WithoutSeconds = 1;
+
+ /**
+ The Metric system will give you information in mm, while the
+ Imperial system will give you information in inches.
+ @short The Metric system will give you information in mm, while the Imperial system will give you information in inches.
+ */
+ public static final int Metric = 0;
+ public static final int Imperial = 1;
+
+ /**
+ Constructs a KLocale with the given catalog name.
+ The constructor looks for an entry Locale/Language in the
+ configuration file.
+ If no config file is specified, it will also look for languages
+ using the environment variables (KDE_LANG, LC_MESSAGES, LC_ALL, LANG),
+ as well as the global configuration file. If KLocale is not able to use
+ any of the specified languages, the default language (en_US) will be
+ used.
+ If you specify a configuration file, it has to be valid until
+ the KLocale object is destroyed.
+ @param catalog The name of the main language file
+ @param config The configuration file to use.
+ @short Constructs a KLocale with the given catalog name.
+ */
+ public KLocale(String catalog, KConfig config) {
+ newKLocale(catalog,config);
+ }
+ private native void newKLocale(String catalog, KConfig config);
+ public KLocale(String catalog) {
+ newKLocale(catalog);
+ }
+ private native void newKLocale(String catalog);
+ /**
+ Copy constructor.
+ @short Copy constructor.
+ */
+ public KLocale(KLocale rhs) {
+ newKLocale(rhs);
+ }
+ private native void newKLocale(KLocale rhs);
+ /**
+ Translates the string into the corresponding string in
+ the national language, if available. If not, returns
+ the string itself.
+ There is a KDE wide message file that contains the most
+ often used phrases, so we can avoid duplicating the
+ translation of these phrases. If a phrase is not found
+ in the catalog given to the constructor, it will search
+ in the system catalog. This makes it possible to override
+ some phrases for your needs.
+ The argument must be an UTF-8 encoded string (If you only use
+ characters that are in US-ASCII you're on the safe side. But
+ for e.g. german umlauts or french accents should be recoded to
+ UTF-8)
+ @param index The lookup text and default text, if not found.
+ @short Translates the string into the corresponding string in the national language, if available.
+ */
+ public native String translate(String index);
+ /**
+ Translates the string into the corresponding string in the
+ national language, if available.
+ The real contents of the string is in the argument fallback,
+ but the meaning of it is coded into the argument index.
+ In some cases you'll need this function, when english is
+ too ambiguous to express it.
+ Most of the times the translators will tell you if it can't
+ be translated as it, but think of cases as "New", where the
+ translations differs depending on what is New.
+ Or simple cases as "Open", that can be used to express something
+ is open or it can be used to express that you want something to
+ open... There are tons of such examples.
+ If translate("Open") is not enough to translate it well, use
+ translate("To Open", "Open") or translate("Is Open", "Open").
+ The english user will see "Open" in both cases, but the translated
+ version may vary. Of course you can also use i18n()
+ @param comment the comment. The lookup text is made out of comment + <code>fallback</code>
+ @param fallback the default text, if not found
+ @return translation
+
+ @short Translates the string into the corresponding string in the national language, if available.
+ */
+ public native String translate(String comment, String fallback);
+ /**
+ Used to get the correct, translated singular or plural of a
+ word.
+ @param singular the singular form of the word, for example "file".
+ @param plural the plural form of the word. Must contain a "%n" that will
+ be replaced by the number <code>n</code>, for example "%n files"
+ @param n the number
+ @return the correct singular or plural for the selected language,
+ depending on n
+
+ @short Used to get the correct, translated singular or plural of a word.
+ */
+ public native String translate(String singular, String plural, long n);
+ /**
+ Changes the current encoding.
+ @param mibEnum The mib of the preferred codec
+ @return True on success.
+
+ @short Changes the current encoding.
+ */
+ public native boolean setEncoding(int mibEnum);
+ /**
+ Changes the current language. The current language will be left
+ unchanged if failed. It will force a reload of the country specific
+ configuration as well.
+ @param language The language code.
+ @return True on success.
+
+ @short Changes the current language.
+ */
+ public native boolean setLanguage(String language);
+ /**
+ Changes the list of prefed languages for the locale. The first valid
+ language in the list will be used, or the default (en_US) language
+ will be used if non of the specified languages were available.
+ @param languages The list of language codes.
+ @return True if one of the specified languages were used.
+
+ @short Changes the list of prefed languages for the locale.
+ */
+ public native boolean setLanguage(String[] languages);
+ /**
+ Changes the current country. The current country will be left
+ unchanged if failed. It will force a reload of the country specific
+ configuration.
+ @param country The ISO 3166 country code.
+ @return True on success.
+
+ @short Changes the current country.
+ */
+ public native boolean setCountry(String country);
+ /**
+ Returns what a decimal point should look like ("." or "," etc.)
+ according to the current locale or user settings.
+ @return The decimal symbol used by locale.
+
+ @short Returns what a decimal point should look like (".
+ */
+ public native String decimalSymbol();
+ /**
+ Returns what the thousands separator should look
+ like ("," or "." etc.)
+ according to the current locale or user settings.
+ @return The thousands separator used by locale.
+
+ @short Returns what the thousands separator should look like ("," or ".
+ */
+ public native String thousandsSeparator();
+ /**
+ Returns what the symbol denoting currency in the current locale
+ as as defined by user settings should look like.
+ @return The default currency symbol used by locale.
+
+ @short Returns what the symbol denoting currency in the current locale as as defined by user settings should look like.
+ */
+ public native String currencySymbol();
+ /**
+ Returns what a decimal point should look like ("." or "," etc.)
+ for monetary values, according to the current locale or user
+ settings.
+ @return The monetary decimal symbol used by locale.
+
+ @short Returns what a decimal point should look like (".
+ */
+ public native String monetaryDecimalSymbol();
+ /**
+ Returns what a thousands separator for monetary values should
+ look like ("," or " " etc.) according to the current locale or
+ user settings.
+ @return The monetary thousands separator used by locale.
+
+ @short Returns what a thousands separator for monetary values should look like ("," or " " etc.
+ */
+ public native String monetaryThousandsSeparator();
+ /**
+ Returns what a positive sign should look like ("+", " ", etc.)
+ according to the current locale or user settings.
+ @return The positive sign used by locale.
+
+ @short Returns what a positive sign should look like ("+", " ", etc.
+ */
+ public native String positiveSign();
+ /**
+ Returns what a negative sign should look like ("-", etc.)
+ according to the current locale or user settings.
+ @return The negative sign used by locale.
+
+ @short Returns what a negative sign should look like ("-", etc.
+ */
+ public native String negativeSign();
+ /**
+ The number of fractional digits to include in numeric/monetary
+ values (usually 2).
+ @return Default number of fractional digits used by locale.
+
+ @short The number of fractional digits to include in numeric/monetary values (usually 2).
+ */
+ public native int fracDigits();
+ /**
+ If and only if the currency symbol precedes a positive value,
+ this will be true.
+ @return Where to print the currency symbol for positive numbers.
+
+ @short If and only if the currency symbol precedes a positive value, this will be true.
+ */
+ public native boolean positivePrefixCurrencySymbol();
+ /**
+ If and only if the currency symbol precedes a negative value,
+ this will be true.
+ @return True if the currency symbol precedes negative numbers.
+
+ @short If and only if the currency symbol precedes a negative value, this will be true.
+ */
+ public native boolean negativePrefixCurrencySymbol();
+ /**
+ Returns the position of a positive sign in relation to a
+ monetary value.
+ @return Where/how to print the positive sign.
+
+ @short Returns the position of a positive sign in relation to a monetary value.
+ @see SignPosition
+ */
+ public native int positiveMonetarySignPosition();
+ /**
+ Denotes where to place a negative sign in relation to a
+ monetary value.
+ @return Where/how to print the negative sign.
+
+ @short Denotes where to place a negative sign in relation to a monetary value.
+ @see SignPosition
+ */
+ public native int negativeMonetarySignPosition();
+ /**
+ Given a double, converts that to a numeric string containing
+ the localized monetary equivalent.
+ e.g. given 123456, return "$ 123,456.00".
+ @param num The number we want to format
+ @param currency The currency symbol you want.
+ @param digits Number of fractional digits, or -1 for the default
+ value
+ @return The number of money as a localized string
+
+ @short Given a double, converts that to a numeric string containing the localized monetary equivalent.
+ @see #fracDigits
+ */
+ public native String formatMoney(double num, String currency, int digits);
+ public native String formatMoney(double num, String currency);
+ public native String formatMoney(double num);
+ /**
+ Given a double, converts that to a numeric string containing
+ the localized numeric equivalent.
+ e.g. given 123456.78F, return "123,456.78" (for some European country).
+ If precision isn't specified, 2 is used.
+ This function is a wrapper that is provided for convenience.
+ @param num The number to convert
+ @param precision Number of fractional digits used.
+ @return The number as a localized string
+
+ @short Given a double, converts that to a numeric string containing the localized numeric equivalent.
+ @see #formatNumber(const
+ @see #boolean
+ @see #int)
+ */
+ public native String formatNumber(double num, int precision);
+ public native String formatNumber(double num);
+ /**
+ Given a string representing a number, converts that to a numeric
+ string containing the localized numeric equivalent.
+ e.g. given 123456.78F, return "123,456.78" (for some European country).
+ @param numStr The number to convert
+ @param round Round fractional digits.
+ @param precision Number of fractional digits used.
+ @return The number as a localized string
+
+ @short Given a string representing a number, converts that to a numeric string containing the localized numeric equivalent.
+ */
+ public native String formatNumber(String numStr, boolean round, int precision);
+ /**
+ Given an integer, converts that to a numeric string containing
+ the localized numeric equivalent.
+ e.g. given 123456L, return "123,456" (for some European country).
+ @param num The number to convert
+ @return The number as a localized string
+
+ @short Given an integer, converts that to a numeric string containing the localized numeric equivalent.
+ */
+ public native String formatLong(long num);
+ /**
+ Use this to determine whether nouns are declined in
+ locale's language. This property should remain
+ read-only (no setter function)
+ @return If nouns are declined
+
+ @short Use this to determine whether nouns are declined in locale's language.
+ */
+ public native boolean nounDeclension();
+ /**
+ Returns a string formatted to the current locale's conventions
+ regarding dates.
+ @param pDate The date to be formated.
+ @param shortFormat True for non text dates.
+ @return The date as a string
+
+ @short Returns a string formatted to the current locale's conventions regarding dates.
+ */
+ public native String formatDate(Calendar pDate, boolean shortFormat);
+ public native String formatDate(Calendar pDate);
+ /**
+ Use this to determine whether in dates a possessive form of month
+ name is preferred ("of January" rather than "January")
+ @return If possessive form should be used
+
+ @short Use this to determine whether in dates a possessive form of month name is preferred ("of January" rather than "January")
+ */
+ public native boolean dateMonthNamePossessive();
+ /**
+ Returns a string formatted to the current locale's conventions
+ regarding times.
+ @param pTime The time to be formated.
+ @param includeSecs if true, seconds are included in the output,
+ otherwise only hours and minutes are formatted.
+ @param isDuration if true, the given time is a duration, not a clock time.
+ This means "am/pm" shouldn't be displayed.
+ @return The time as a string
+
+ @short Returns a string formatted to the current locale's conventions regarding times.
+ */
+ public native String formatTime(Date pTime, boolean includeSecs, boolean isDuration);
+ /**
+ Returns a string formatted to the current locale's conventions
+ regarding times.
+ @param pTime The time to be formated.
+ @param includeSecs if true, seconds are included in the output,
+ otherwise only hours and minutes are formatted.
+ @return The time as a string
+
+ @short Returns a string formatted to the current locale's conventions regarding times.
+ */
+ public native String formatTime(Date pTime, boolean includeSecs);
+ public native String formatTime(Date pTime);
+ /**
+ Use this to determine if the user wants a 12 hour clock.
+ @return If the user wants 12h clock
+
+ @short Use this to determine if the user wants a 12 hour clock.
+ */
+ public native boolean use12Clock();
+ /**
+ Use this to determine which day is the first day of the week.
+ @return an integer (Monday=1..Sunday=7)
+
+ @short Use this to determine which day is the first day of the week.
+ */
+ public native int weekStartDay();
+ /**
+ Returns a pointer to the calendar system object.
+ @return the current calendar system instance
+
+ @short Returns a pointer to the calendar system object.
+ */
+ public native KCalendarSystem calendar();
+ /**
+ Returns the name of the calendar system that is currently being
+ used by the system.
+ @return the name of the calendar system
+
+ @short Returns the name of the calendar system that is currently being used by the system.
+ */
+ public native String calendarType();
+ /**
+ Changes the current calendar system to the calendar specified.
+ Currently "gregorian" and "hijri" are supported. If the calendar
+ system specified is not found, gregorian will be used.
+ @param calendarType the name of the calendar type
+ @short Changes the current calendar system to the calendar specified.
+ */
+ public native void setCalendar(String calendarType);
+ /**
+ Returns a string formated to the current locale's conventions
+ regarding both date and time.
+ @param pDateTime The date and time to be formated.
+ @param shortFormat using the short date format.
+ @param includeSecs using the short date format.
+ @return The date and time as a string
+
+ @short Returns a string formated to the current locale's conventions regarding both date and time.
+ */
+ public native String formatDateTime(Calendar pDateTime, boolean shortFormat, boolean includeSecs);
+ public native String formatDateTime(Calendar pDateTime, boolean shortFormat);
+ public native String formatDateTime(Calendar pDateTime);
+ /**
+ Converts a localized monetary string to a double.
+ @param numStr the string we want to convert.
+ @param ok the booleanean that is set to false if it's not a number.
+ If <code>ok</code> is 0, it will be ignored
+ @return The string converted to a double
+
+ @short Converts a localized monetary string to a double.
+ */
+ public native double readMoney(String numStr, boolean[] ok);
+ public native double readMoney(String numStr);
+ /**
+ Converts a localized numeric string to a double.
+ @param numStr the string we want to convert.
+ @param ok the booleanean that is set to false if it's not a number.
+ If <code>ok</code> is 0, it will be ignored
+ @return The string converted to a double
+
+ @short Converts a localized numeric string to a double.
+ */
+ public native double readNumber(String numStr, boolean[] ok);
+ public native double readNumber(String numStr);
+ /**
+ Converts a localized date string to a Calendar.
+ The boolean pointed by ok will be invalid if the date entered was not valid.
+ @param str the string we want to convert.
+ @param ok the booleanean that is set to false if it's not a valid date.
+ If <code>ok</code> is 0, it will be ignored
+ @return The string converted to a QDate
+
+ @short Converts a localized date string to a QDate.
+ */
+ public native Calendar readDate(String str, boolean[] ok);
+ public native Calendar readDate(String str);
+ /**
+ Converts a localized date string to a Calendar, using the specified format.
+ You will usually not want to use this method.
+ @short Converts a localized date string to a QDate, using the specified format.
+ */
+ public native Calendar readDate(String intstr, String fmt, boolean[] ok);
+ public native Calendar readDate(String intstr, String fmt);
+ /**
+ Converts a localized date string to a Calendar.
+ This method is stricter than readDate(str,&ok): it will either accept
+ a date in full format or a date in short format, depending on <code>flags.</code>
+ @param str the string we want to convert.
+ @param flags whether the date string is to be in full format or in short format.
+ @param ok the booleanean that is set to false if it's not a valid date.
+ If <code>ok</code> is 0, it will be ignored
+ @return The string converted to a QDate
+
+ @short Converts a localized date string to a QDate.
+ */
+ public native Calendar readDate(String str, int flags, boolean[] ok);
+ public native Calendar readDate(String str, int flags);
+ /**
+ Converts a localized time string to a Date
+ This method will try to parse it with seconds, then without seconds.
+ The boolean pointed to by <code>ok</code> will be set to false if the time entered was
+ not valid.
+ @param str the string we want to convert.
+ @param ok the booleanean that is set to false if it's not a valid time.
+ If <code>ok</code> is 0, it will be ignored
+ @return The string converted to a QTime
+
+ @short Converts a localized time string to a QTime.
+ */
+ public native Date readTime(String str, boolean[] ok);
+ public native Date readTime(String str);
+ /**
+ Converts a localized time string to a Date
+ This method is stricter than readTime(str,&ok): it will either accept
+ a time with seconds or a time without seconds.
+ Use this method when the format is known by the application.
+ @param str the string we want to convert.
+ @param flags whether the time string is expected to contain seconds or not.
+ @param ok the booleanean that is set to false if it's not a valid time.
+ If <code>ok</code> is 0, it will be ignored
+ @return The string converted to a QTime
+
+ @short Converts a localized time string to a QTime.
+ */
+ public native Date readTime(String str, int flags, boolean[] ok);
+ public native Date readTime(String str, int flags);
+ /**
+ Returns the language used by this object. The domain AND the
+ library translation must be available in this language.
+ defaultLanguage() is returned by default, if no other available.
+ @return The currently used language.
+
+ @short Returns the language used by this object.
+ */
+ public native String language();
+ /**
+ Returns the country code of the country where the user lives.
+ defaultCountry() is returned by default, if no other available.
+ @return The country code for the user.
+
+ @short Returns the country code of the country where the user lives.
+ */
+ public native String country();
+ /**
+ Returns the preferred languages as ISO 639-1 codes. This means
+ that information about country is removed. If the internal language
+ code might be represented by more than one 639-1 code, they will all be
+ listed (but only once).
+ If the selected languages are "nn, nb, pt_BR", you will get:
+ "nn, nb, pt".
+ @return List of language codes
+
+ @short Returns the preferred languages as ISO 639-1 codes.
+ @see #languageList
+ */
+ public native ArrayList languagesTwoAlpha();
+ /**
+ Returns the languages selected by user. The codes returned here is the
+ internal language codes.
+ @return List of language codes
+
+ @short Returns the languages selected by user.
+ @see #languagesTwoAlpha
+ */
+ public native ArrayList languageList();
+ /**
+ Returns the user's preferred encoding.
+ @return The name of the preferred encoding
+
+ @short Returns the user's preferred encoding.
+ @see #codecForEncoding
+ @see #encodingMib
+ */
+ public native String encoding();
+ /**
+ Returns the user's preferred encoding.
+ @return The Mib of the preferred encoding
+
+ @short Returns the user's preferred encoding.
+ @see #encoding
+ @see #codecForEncoding
+ */
+ public native int encodingMib();
+ /**
+ Returns the user's preferred encoding. Should never be NULL.
+ @return The codec for the preferred encoding
+
+ @short Returns the user's preferred encoding.
+ @see #encoding
+ @see #encodingMib
+ */
+ public native QTextCodec codecForEncoding();
+ /**
+ Returns the file encoding.
+ @return The Mib of the file encoding
+
+ @short Returns the file encoding.
+ @see org.kde.qt.QFile#encodeName
+ @see org.kde.qt.QFile#decodeName
+ */
+ public native int fileEncodingMib();
+ /**
+ Changes the current date format.
+ The format of the date is a string which contains variables that will
+ be replaced:
+
+ <li>
+ %Y with the century (e.g. "19" for "1984")
+ </li>
+
+ <li>
+ %y with the lower 2 digits of the year (e.g. "84" for "1984")
+ </li>
+
+ <li>
+ %n with the month (January="1", December="12")
+ </li>
+
+ <li>
+ %m with the month with two digits (January="01", December="12")
+ </li>
+
+ <li>
+ %e with the day of the month (e.g. "1" on the first of march)
+ </li>
+
+ <li>
+ %d with the day of the month with two digits(e.g. "01" on the first of march)
+ </li>
+
+ <li>
+ %b with the short form of the month (e.g. "Jan" for January)
+ </li>
+
+ <li>
+ %B with the long form of the month (e.g. "January")
+ </li>
+
+ <li>
+ %a with the short form of the weekday (e.g. "Wed" for Wednesday)
+ </li>
+
+ <li>
+ %A with the long form of the weekday (e.g. "Wednesday" for Wednesday)
+ Everything else in the format string will be taken as is.
+ For example, March 20th 1989 with the format "%y:%m:%d" results
+ in "89:03:20".
+ </li>
+ @param format The new date format
+ @short Changes the current date format.
+ */
+ public native void setDateFormat(String format);
+ /**
+ Changes the current short date format.
+ The format of the date is a string which contains variables that will
+ be replaced:
+
+ <li>
+ %Y with the century (e.g. "19" for "1984")
+ </li>
+
+ <li>
+ %y with the lower 2 digits of the year (e.g. "84" for "1984")
+ </li>
+
+ <li>
+ %n with the month (January="1", December="12")
+ </li>
+
+ <li>
+ %m with the month with two digits (January="01", December="12")
+ </li>
+
+ <li>
+ %e with the day of the month (e.g. "1" on the first of march)
+ </li>
+
+ <li>
+ %d with the day of the month with two digits(e.g. "01" on the first of march)
+ </li>
+
+ <li>
+ %b with the short form of the month (e.g. "Jan" for January)
+ </li>
+
+ <li>
+ %B with the long form of the month (e.g. "January")
+ </li>
+
+ <li>
+ %a with the short form of the weekday (e.g. "Wed" for Wednesday)
+ </li>
+
+ <li>
+ %A with the long form of the weekday (e.g. "Wednesday" for Wednesday)
+ Everything else in the format string will be taken as is.
+ For example, March 20th 1989 with the format "%y:%m:%d" results
+ in "89:03:20".
+ </li>
+ @param format The new short date format
+ @short Changes the current short date format.
+ */
+ public native void setDateFormatShort(String format);
+ /**
+ Changes the form of month name used in dates.
+ @param possessive True if possessive forms should be used
+ @short Changes the form of month name used in dates.
+ */
+ public native void setDateMonthNamePossessive(boolean possessive);
+ /**
+ Changes the current time format.
+ The format of the time is string a which contains variables that will
+ be replaced:
+
+ <li>
+ %H with the hour in 24h format and 2 digits (e.g. 5pm is "17", 5am is "05")
+ </li>
+
+ <li>
+ %k with the hour in 24h format and one digits (e.g. 5pm is "17", 5am is "5")
+ </li>
+
+ <li>
+ %I with the hour in 12h format and 2 digits (e.g. 5pm is "05", 5am is "05")
+ </li>
+
+ <li>
+ %l with the hour in 12h format and one digits (e.g. 5pm is "5", 5am is "5")
+ </li>
+
+ <li>
+ %M with the minute with 2 digits (e.g. the minute of 07:02:09 is "02")
+ </li>
+
+ <li>
+ %S with the seconds with 2 digits (e.g. the minute of 07:02:09 is "09")
+ </li>
+
+ <li>
+ %p with pm or am (e.g. 17.00 is "pm", 05.00 is "am")
+ Everything else in the format string will be taken as is.
+ For example, 5.23pm with the format "%H:%M" results
+ in "17:23".
+ </li>
+ @param format The new time format
+ @short Changes the current time format.
+ */
+ public native void setTimeFormat(String format);
+ /**
+ Changes how KLocale defines the first day in week.
+ @param day first day of the week (Monday=1..Sunday=7) as integer
+ @short Changes how KLocale defines the first day in week.
+ */
+ public native void setWeekStartDay(int day);
+ /**
+ Returns the currently selected date format.
+ @return Current date format.
+
+ @short Returns the currently selected date format.
+ @see #setDateFormat
+ */
+ public native String dateFormat();
+ /**
+ Returns the currently selected short date format.
+ @return Current short date format.
+
+ @short Returns the currently selected short date format.
+ @see #setDateFormatShort
+ */
+ public native String dateFormatShort();
+ /**
+ Returns the currently selected time format.
+ @return Current time format.
+
+ @short Returns the currently selected time format.
+ @see #setTimeFormat
+ */
+ public native String timeFormat();
+ /**
+ Changes the symbol used to identify the decimal pointer.
+ @param symbol The new decimal symbol.
+ @short Changes the symbol used to identify the decimal pointer.
+ */
+ public native void setDecimalSymbol(String symbol);
+ /**
+ Changes the separator used to group digits when formating numbers.
+ @param separator The new thousands separator.
+ @short Changes the separator used to group digits when formating numbers.
+ */
+ public native void setThousandsSeparator(String separator);
+ /**
+ Changes the sign used to identify a positive number. Normally this is
+ left blank.
+ @param sign Sign used for positive numbers.
+ @short Changes the sign used to identify a positive number.
+ */
+ public native void setPositiveSign(String sign);
+ /**
+ Changes the sign used to identify a negative number.
+ @param sign Sign used for negative numbers.
+ @short Changes the sign used to identify a negative number.
+ */
+ public native void setNegativeSign(String sign);
+ /**
+ Changes the sign position used for positive monetary values.
+ @param signpos The new sign position
+ @short Changes the sign position used for positive monetary values.
+ */
+ public native void setPositiveMonetarySignPosition(int signpos);
+ /**
+ Changes the sign position used for negative monetary values.
+ @param signpos The new sign position
+ @short Changes the sign position used for negative monetary values.
+ */
+ public native void setNegativeMonetarySignPosition(int signpos);
+ /**
+ Changes the position where the currency symbol should be printed for
+ positive monetary values.
+ @param prefix True if the currency symbol should be prefixed instead of
+ postfixed
+ @short Changes the position where the currency symbol should be printed for positive monetary values.
+ */
+ public native void setPositivePrefixCurrencySymbol(boolean prefix);
+ /**
+ Changes the position where the currency symbol should be printed for
+ negative monetary values.
+ @param prefix True if the currency symbol should be prefixed instead of
+ postfixed
+ @short Changes the position where the currency symbol should be printed for negative monetary values.
+ */
+ public native void setNegativePrefixCurrencySymbol(boolean prefix);
+ /**
+ Changes the number of digits used when formating numbers.
+ @param digits The default number of digits to use.
+ @short Changes the number of digits used when formating numbers.
+ */
+ public native void setFracDigits(int digits);
+ /**
+ Changes the separator used to group digits when formating monetary values.
+ @param separator The new thousands separator.
+ @short Changes the separator used to group digits when formating monetary values.
+ */
+ public native void setMonetaryThousandsSeparator(String separator);
+ /**
+ Changes the symbol used to identify the decimal pointer for monetary
+ values.
+ @param symbol The new decimal symbol.
+ @short Changes the symbol used to identify the decimal pointer for monetary values.
+ */
+ public native void setMonetaryDecimalSymbol(String symbol);
+ /**
+ Changes the current currency symbol.
+ @param symbol The new currency symbol
+ @short Changes the current currency symbol.
+ */
+ public native void setCurrencySymbol(String symbol);
+ /**
+ Returns the preferred page size for printing.
+ @return The preferred page size, cast it to QPrinter.PageSize
+
+ @short Returns the preferred page size for printing.
+ */
+ public native int pageSize();
+ /**
+ Changes the preferred page size when printing.
+ @param paperFormat the new preferred page size in the format QPrinter.PageSize
+ @short Changes the preferred page size when printing.
+ */
+ public native void setPageSize(int paperFormat);
+ /**
+ Returns which measuring system we use.
+ @return The preferred measuring system
+
+ @short Returns which measuring system we use.
+ */
+ public native int measureSystem();
+ /**
+ Changes the preferred measuring system.
+ @return value The preferred measuring system
+
+ @short Changes the preferred measuring system.
+ */
+ public native void setMeasureSystem(int value);
+ /**
+ Adds another catalog to search for translation lookup.
+ This function is useful for extern libraries and/or code,
+ that provide there own messages.
+ If the catalog does not exist for the chosen language,
+ it will be ignored and en_US will be used.
+ @param catalog The catalog to add.
+ @short Adds another catalog to search for translation lookup.
+ */
+ public native void insertCatalogue(String catalog);
+ /**
+ Removes a catalog for translation lookup.
+ @param catalog The catalog to remove.
+ @short Removes a catalog for translation lookup.
+ @see #insertCatalogue
+ */
+ public native void removeCatalogue(String catalog);
+ /**
+ Sets the active catalog for translation lookup.
+ @param catalog The catalog to activate.
+ @short Sets the active catalog for translation lookup.
+ */
+ public native void setActiveCatalogue(String catalog);
+ /**
+ Translates a message as a QTranslator is supposed to.
+ The parameters are similar to i18n(), but the result
+ value has other semantics (it can be null)
+ @short Translates a message as a QTranslator is supposed to.
+ */
+ public native String translateQt(String context, String sourceText, String message);
+ /**
+ Returns list of all known ISO 639-1 codes.
+ @return a list of all language codes
+
+ @short Returns list of all known ISO 639-1 codes.
+ */
+ public native ArrayList allLanguagesTwoAlpha();
+ /**
+ Convert a ISO 639-1 code to a human readable form.
+ @param code the language ISO 639-1 code
+ @return the human readable form
+
+ @short Convert a ISO 639-1 code to a human readable form.
+ */
+ public native String twoAlphaToLanguageName(String code);
+ /**
+ Returns list of all known country codes.
+ @return a list of all country codes
+
+ @short Returns list of all known country codes.
+ */
+ public native ArrayList allCountriesTwoAlpha();
+ /**
+ Convert a country code to a human readable form.
+ @param code the country code
+ @return the human readable form of the country name
+
+ @short Convert a country code to a human readable form.
+ */
+ public native String twoAlphaToCountryName(String code);
+ /**
+ Returns the parts of the parameter str understood as language setting
+ the format is language_COUNTRY.charset
+ @param str The string to split.
+ @param language This will be set to the language part of the string.
+ @param country This will be set to the country part of the string.
+ @param charset This will be set to the charset part of the string.
+ @short Returns the parts of the parameter str understood as language setting the format is language_COUNTRY.
+ */
+ public static native void splitLocale(String str, StringBuffer language, StringBuffer country, StringBuffer charset);
+ /**
+ Use this as main catalog for all KLocales, if not the appname
+ will be used. This function is best to be the very first instruction
+ in your program's main function as it only has an effect before the
+ first KLocale object is created.
+ @param catalog Catalogue to override all other main catalogues.
+ @short Use this as main catalog for all KLocales, if not the appname will be used.
+ */
+ public static native void setMainCatalogue(String catalog);
+ /**
+ Finds localized resource in resourceDir( rtype ) + \<lang> + fname.
+ @param fname relative path to find
+ @param rtype resource type to use
+ @short Finds localized resource in resourceDir( rtype ) + \<lang> + fname.
+ */
+ public static native String langLookup(String fname, String rtype);
+ public static native String langLookup(String fname);
+ /**
+ Returns the name of the internal language.
+ @return Name of the default language
+
+ @short Returns the name of the internal language.
+ */
+ public static native String defaultLanguage();
+ /**
+ Returns the name of the default country.
+ @return Name of the default country
+
+ @short Returns the name of the default country.
+ */
+ public static native String defaultCountry();
+ /**
+ @short
+ */
+ public static native String _initLanguage(KConfigBase config);
+ /**
+ pointer.
+ @short
+ */
+ protected static native void initInstance();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMD5.java b/kdejava/koala/org/kde/koala/KMD5.java
new file mode 100644
index 00000000..dd338f13
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMD5.java
@@ -0,0 +1,174 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QIODevice;
+import org.kde.qt.QIODeviceInterface;
+
+/**
+
+ The default constructor is designed to provide much the same
+ functionality as the most commonly used C-implementation, while
+ the other three constructors are meant to further simplify the
+ process of obtaining a digest by calculating the result in a
+ single step.
+ KMD5 is state-based, that means you can add new contents with
+ update() as long as you didn't request the digest value yet.
+ After the digest value was requested, the object is "finalized"
+ and you have to call reset() to be able to do another calculation
+ with it. The reason for this behavior is that upon requesting
+ the message digest KMD5 has to pad the received contents up to a
+ 64 byte boundary to calculate its value. After this operation it
+ is not possible to resume consuming data.
+ <b></b>sage:
+ A common usage of this class:
+ <pre>
+ String test1;
+ KMD5.Digest rawResult;
+ test1 = "This is a simple test.";
+ KMD5 context (test1);
+ cout << "Hex Digest output: " << context.hexDigest().data() << endl;
+ </pre>
+ To cut down on the unnecessary overhead of creating multiple KMD5
+ objects, you can simply invoke reset() to reuse the same object
+ in making another calculation:
+ <pre>
+ context.reset ();
+ context.update ("TWO");
+ context.update ("THREE");
+ cout << "Hex Digest output: " << context.hexDigest().data() << endl;
+ </pre>
+ @author Dirk Mueller <mueller@kde.org>, Dawit Alemayehu <adawit@kde.org>
+
+ @short An adapted C++ implementation of RSA Data Securities MD5 algorithm.
+
+*/
+public class KMD5 implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KMD5(Class dummy){}
+
+ public KMD5() {
+ newKMD5();
+ }
+ private native void newKMD5();
+ /**
+ Constructor that updates the digest for the given string.
+ @param in C string or binary data
+ @param len if negative, calculates the length by using
+ strlen on the first parameter, otherwise
+ it trusts the given length (does not stop on NUL byte).
+ @short Constructor that updates the digest for the given string.
+ */
+ public KMD5(String in, int len) {
+ newKMD5(in,len);
+ }
+ private native void newKMD5(String in, int len);
+ public KMD5(String in) {
+ newKMD5(in);
+ }
+ private native void newKMD5(String in);
+ /**
+ @overload
+ Same as above except it accepts a byte[] as its argument.
+ @short @overload
+ */
+ public KMD5(byte[] a) {
+ newKMD5(a);
+ }
+ private native void newKMD5(byte[] a);
+ /**
+ Updates the message to be digested. Be sure to add all data
+ before you read the digest. After reading the digest, you
+ can <b>not</b> add more data!
+ @param in message to be added to digest
+ @param len the length of the given message.
+ @short Updates the message to be digested.
+ */
+ public native void update(String in, int len);
+ public native void update(String in);
+ /**
+ @overload
+ @short @overload
+ */
+ public native void update(short in, int len);
+ public native void update(short in);
+ /**
+ @overload
+ @param in message to be added to the digest (byte[]).
+ @short @overload
+ */
+ public native void update(byte[] in);
+ /**
+ @overload
+ reads the data from an I/O device, i.e. from a file (QFile).
+ NOTE that the file must be open for reading.
+ @param file a pointer to FILE as returned by calls like f{d,re}open
+ @return false if an error occurred during reading.
+
+ @short @overload
+ */
+ public native boolean update(QIODevice file);
+ /**
+ Calling this function will reset the calculated message digest.
+ Use this method to perform another message digest calculation
+ without recreating the KMD5 object.
+ @short Calling this function will reset the calculated message digest.
+ */
+ public native void reset();
+ /**
+ @return the raw representation of the digest
+
+ @short
+ */
+ // const KMD5::Digest& rawDigest(); >>>> NOT CONVERTED
+ /**
+ Fills the given array with the binary representation of the
+ message digest.
+ Use this method if you do not want to worry about making
+ copy of the digest once you obtain it.
+ @param bin an array of 16 characters ( char[16] )
+ @short Fills the given array with the binary representation of the message digest.
+ */
+ // void rawDigest(KMD5::Digest& arg1); >>>> NOT CONVERTED
+ /**
+ Returns the value of the calculated message digest in
+ a hexadecimal representation.
+ @short Returns the value of the calculated message digest in a hexadecimal representation.
+ */
+ public native String hexDigest();
+ /**
+ @overload
+ @short @overload
+ */
+ public native void hexDigest(StringBuffer arg1);
+ /**
+ Returns the value of the calculated message digest in
+ a base64-encoded representation.
+ @short Returns the value of the calculated message digest in a base64-encoded representation.
+ */
+ public native String base64Digest();
+ /**
+ returns true if the calculated digest for the given
+ message matches the given one.
+ @short returns true if the calculated digest for the given message matches the given one.
+ */
+ // bool verify(const KMD5::Digest& arg1); >>>> NOT CONVERTED
+ /**
+ @overload
+ @short @overload
+ */
+ public native boolean verify(String arg1);
+ /**
+ finalizes the digest
+ @short finalizes the digest
+ */
+ protected native void finalizeDigest();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMacroCommand.java b/kdejava/koala/org/kde/koala/KMacroCommand.java
new file mode 100644
index 00000000..545bed37
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMacroCommand.java
@@ -0,0 +1,53 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A Macro Command is a command that holds several sub-commands.
+ It will appear as one to the user and in the command history,
+ but it can use the implementation of multiple commands internally.
+ @short A Macro Command is a command that holds several sub-commands.
+
+*/
+public class KMacroCommand extends KNamedCommand {
+ protected KMacroCommand(Class dummy){super((Class) null);}
+ /**
+ Creates a macro command. You will then need to call addCommand
+ for each subcommand to be added to this macro command.
+ @param name the name of this command, translated, since it will appear
+ in the menus.
+ @short Creates a macro command.
+ */
+ public KMacroCommand(String name) {
+ super((Class) null);
+ newKMacroCommand(name);
+ }
+ private native void newKMacroCommand(String name);
+ /**
+ Appends a command to this macro command.
+ The ownership is transfered to the macro command.
+ @short Appends a command to this macro command.
+ */
+ public native void addCommand(KCommand command);
+ /**
+ Executes this command, i.e. execute all the sub-commands
+ in the order in which they were added.
+ @short Executes this command, i.
+ */
+ public native void execute();
+ /**
+ Undoes the execution of this command, i.e. #unexecute all the sub-commands
+ in the _reverse_ order to the one in which they were added.
+ @short Undoes the execution of this command, i.
+ */
+ public native void unexecute();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMainWindow.java b/kdejava/koala/org/kde/koala/KMainWindow.java
new file mode 100644
index 00000000..1088910d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMainWindow.java
@@ -0,0 +1,1082 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QDomDocument;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QCloseEvent;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QSize;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDomElement;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QChildEvent;
+import org.kde.qt.QMainWindow;
+
+/**
+
+ Top level widget that provides toolbars, a status line and a frame.
+ It should be used as a top level (parent-less) widget.
+ It manages the geometry for all its children, including your
+ main widget.
+ Normally, you will inherit from KMainWindow,
+ then construct (or use some existing) widget as
+ your main view. You can set only one main view.
+ You can add as many toolbars as you like. There can be only one menubar
+ and only one statusbar.
+ The toolbars, menubar, and statusbar can be created by the
+ KMainWindow and - unlike the old KMainWindow - may, but do not
+ have to, be deleted by you. KMainWindow will handle that internally.
+ Height and width can be operated independently from each other. Simply
+ define the minimum/maximum height/width of your main widget and
+ KMainWindow will take this into account. For fixed size windows set
+ your main widget to a fixed size.
+ Fixed aspect ratios (heightForWidth()) and fixed width widgets are
+ not supported.
+ KMainWindow will set icon, mini icon and caption, which it gets
+ from KApplication. It provides full session management, and
+ will save its position, geometry and positions of toolbars and
+ menubar on logout. If you want to save additional data, reimplement
+ saveProperties() and (to read them again on next login)
+ readProperties(). To save special data about your data, reimplement
+ saveGlobalProperties(). To warn user that application or
+ windows have unsaved data on close or logout, reimplement
+ queryClose() and/or queryExit().
+ There are also kRestoreMainWindows convenience functions which
+ can restore all your windows on next login.
+ Note that a KMainWindow per-default is created with the
+ WDestructiveClose flag, i.e. it is automatically destroyed when the
+ window is closed. If you do not want this behavior, specify 0 as
+ widget flag in the constructor.
+ @author Reginald Stadlbauer (reggie@kde.org) Stephan Kulow (coolo@kde.org), Matthias Ettrich (ettrich@kde.org), Chris Schlaeger (cs@kde.org), Sven Radej (radej@kde.org). Maintained by Sven Radej (radej@kde.org)
+
+ @short %KDE top level main window.
+ @see KApplication
+
+*/
+public class KMainWindow extends QMainWindow implements KXMLGUIBuilderInterface, KXMLGUIClientInterface {
+ protected KMainWindow(Class dummy){super((Class) null);}
+ /**
+ Flags that can be passed in an argument to the constructor to
+ change the behavior.
+ NoDCOPObject tells KMainWindow not to create a KMainWindowInterface.
+ This can be useful in particular for inherited classes, which
+ might want to create more specific dcop interfaces. It's a good
+ idea to use KMainWindowInterface as the base class for such interfaces
+ though (to provide the standard mainwindow functionality via DCOP).
+ @short Flags that can be passed in an argument to the constructor to change the behavior.
+ */
+ public static final int NoDCOPObject = 1;
+
+ /**
+ @short
+ @see #setupGUI
+ */
+ public static final int ToolBar = 1;
+ public static final int Keys = 2;
+ public static final int StatusBar = 4;
+ public static final int Save = 8;
+ public static final int Create = 16;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a main window.
+ @param parent The widget parent. This is usually 0 but it may also be the window
+ group leader. In that case, the KMainWindow becomes sort of a
+ secondary window.
+ @param name The object name. For session management and window management to work
+ properly, all main windows in the application should have a
+ different name. When passing 0 (the default), KMainWindow will create
+ a unique name, but it's recommended to explicitly pass a window name that will
+ also describe the type of the window. If there can be several windows of the same
+ type, append '#' (hash) to the name, and KMainWindow will append numbers to make
+ the names unique. For example, for a mail client which has one main window showing
+ the mails and folders, and which can also have one or more windows for composing
+ mails, the name for the folders window should be e.g. "mainwindow" and
+ for the composer windows "composer#".
+ @param f Specify the widget flags. The default is
+ WType_TopLevel and WDestructiveClose. TopLevel indicates that a
+ main window is a toplevel window, regardless of whether it has a
+ parent or not. DestructiveClose indicates that a main window is
+ automatically destroyed when its window is closed. Pass 0 if
+ you do not want this behavior.
+ KMainWindows must be created on the heap with 'new', like:
+ <pre>
+ KMainWindow kmw = new KMainWindow (...);
+ </pre>
+ @short Construct a main window.
+ @see #http://doc#trolltech#com/3#2/qt#html#WidgetFlags-enum
+ */
+ public KMainWindow(QWidget parent, String name, int f) {
+ super((Class) null);
+ newKMainWindow(parent,name,f);
+ }
+ private native void newKMainWindow(QWidget parent, String name, int f);
+ public KMainWindow(QWidget parent, String name) {
+ super((Class) null);
+ newKMainWindow(parent,name);
+ }
+ private native void newKMainWindow(QWidget parent, String name);
+ public KMainWindow(QWidget parent) {
+ super((Class) null);
+ newKMainWindow(parent);
+ }
+ private native void newKMainWindow(QWidget parent);
+ public KMainWindow() {
+ super((Class) null);
+ newKMainWindow();
+ }
+ private native void newKMainWindow();
+ /**
+ Overloaded constructor which allows passing some KMainWindow.CreationFlags.
+ @short Overloaded constructor which allows passing some KMainWindow.CreationFlags.
+ */
+ public KMainWindow(int cflags, QWidget parent, String name, int f) {
+ super((Class) null);
+ newKMainWindow(cflags,parent,name,f);
+ }
+ private native void newKMainWindow(int cflags, QWidget parent, String name, int f);
+ public KMainWindow(int cflags, QWidget parent, String name) {
+ super((Class) null);
+ newKMainWindow(cflags,parent,name);
+ }
+ private native void newKMainWindow(int cflags, QWidget parent, String name);
+ public KMainWindow(int cflags, QWidget parent) {
+ super((Class) null);
+ newKMainWindow(cflags,parent);
+ }
+ private native void newKMainWindow(int cflags, QWidget parent);
+ public KMainWindow(int cflags) {
+ super((Class) null);
+ newKMainWindow(cflags);
+ }
+ private native void newKMainWindow(int cflags);
+ /**
+ Retrieve the standard help menu.
+ It contains entires for the
+ help system (activated by F1), an optional "What's This?" entry
+ (activated by Shift F1), an application specific dialog box,
+ and an "About KDE" dialog box.
+ Example (adding a standard help menu to your application):
+ <pre>
+ KPopupMenu help = helpMenu( <myTextString> );
+ menuBar().insertItem( i18n("&Help"), help );
+ </pre>
+ @param aboutAppText The string that is used in the application
+ specific dialog box. If you leave this string empty the
+ information in the global KAboutData of the
+ application will be used to make a standard dialog box.
+ @param showWhatsThis Set this to false if you do not want to include
+ the "What's This" menu entry.
+ @return A standard help menu.
+
+ @short Retrieve the standard help menu.
+ */
+ public native KPopupMenu helpMenu(String aboutAppText, boolean showWhatsThis);
+ public native KPopupMenu helpMenu(String aboutAppText);
+ public native KPopupMenu helpMenu();
+ /**
+ Returns the help menu. Creates a standard help menu if none exists yet.
+ It contains entries for the
+ help system (activated by F1), an optional "What's This?" entry
+ (activated by Shift F1), an application specific dialog box,
+ and an "About KDE" dialog box. You must create the application
+ specific dialog box yourself. When the "About application"
+ menu entry is activated, a signal will trigger the
+ showAboutApplication slot. See showAboutApplication for more
+ information.
+ Example (adding a help menu to your application):
+ <pre>
+ menuBar().insertItem( i18n("&Help"), customHelpMenu() );
+ </pre>
+ @param showWhatsThis Set this to <code>false</code> if you do not want to include
+ the "What's This" menu entry.
+ @return A standard help menu.
+
+ @short Returns the help menu.
+ */
+ public native KPopupMenu customHelpMenu(boolean showWhatsThis);
+ public native KPopupMenu customHelpMenu();
+ /**
+ Reimplementation of QMainWindow.show()
+ @short Reimplementation of QMainWindow.show()
+ */
+ public native void show();
+ /**
+ Reimplementation of QMainWindow.hide()
+ @short Reimplementation of QMainWindow.hide()
+ */
+ public native void hide();
+ /**
+ Restore the session specified by <code>number.</code>
+ Returns <code>false</code> if this
+ fails, otherwise returns <code>true</code> and shows the window.
+ You should call canBeRestored() first.
+ If <code>show</code> is true (default), this widget will be shown automatically.
+ @short Restore the session specified by <code>number.</code>
+ */
+ public native boolean restore(int number, boolean show);
+ public native boolean restore(int number);
+ public native KXMLGUIFactory guiFactory();
+ /**
+ Create a GUI given a local XML file.
+ If <code>xmlfile</code> is NULL,
+ then it will try to construct a local XML filename like
+ appnameui.rc where 'appname' is your app's name. If that file
+ does not exist, then the XML UI code will only use the global
+ (standard) XML file for the layout purposes.
+ Note that when passing true for the conserveMemory argument subsequent
+ calls to guiFactory().addClient/removeClient may not work as expected.
+ Also retrieving references to containers like popup menus or toolbars using
+ the container method will not work.
+ @param xmlfile The local xmlfile (relative or absolute)
+ @param _conserveMemory Specify whether createGUI() should call
+ KXMLGUIClient.conserveMemory() to free all memory
+ allocated by the QDomDocument and by the KXMLGUIFactory.
+ @short Create a GUI given a local XML file.
+ */
+ public native void createGUI(String xmlfile, boolean _conserveMemory);
+ public native void createGUI(String xmlfile);
+ public native void createGUI();
+ /**
+ Enables the build of a standard help menu when calling createGUI().
+ The default behavior is to build one, you must call this function
+ to disable it
+ @short Enables the build of a standard help menu when calling createGUI().
+ */
+ public native void setHelpMenuEnabled(boolean showHelpMenu);
+ public native void setHelpMenuEnabled();
+ /**
+ Return <code>true</code> when the help menu is enabled
+ @short Return <code>true</code> when the help menu is enabled
+ */
+ public native boolean isHelpMenuEnabled();
+ /**
+ Returns true, if there is a menubar
+ @short Returns true, if there is a menubar
+ */
+ public native boolean hasMenuBar();
+ /**
+ Returns a pointer to the menu bar.
+ If there is no menu bar yet one will be created.
+ @short Returns a pointer to the menu bar.
+ */
+ public native KMenuBar kmenuBar();
+ /**
+ Returns a pointer to the status bar.
+ If there is no status bar yet, one will be created.
+ Note that tooltips for kactions in actionCollection() are not
+ automatically connected to this statusBar.
+ See the KActionCollection documentation for more details.
+ @short Returns a pointer to the status bar.
+ @see KActionCollection
+ */
+ public native KStatusBar kstatusBar();
+ /**
+ Returns a pointer to the toolbar with the specified name.
+ This refers to toolbars created dynamically from the XML UI
+ framework. If the toolbar does not exist one will be created.
+ @param name The internal name of the toolbar. If no name is
+ specified "mainToolBar" is assumed.
+ @return A pointer to the toolbar
+
+ @short Returns a pointer to the toolbar with the specified name.
+ */
+ public native KToolBar toolBar(String name);
+ public native KToolBar toolBar();
+ /**
+ @return An iterator over the list of all toolbars for this window.
+
+ @short
+ */
+ // QPtrListIterator<KToolBar> toolBarIterator(); >>>> NOT CONVERTED
+ /**
+ @return A KAccel instance bound to this mainwindow. Used automatically
+ by KAction to make keybindings work in all cases.
+
+ @short
+ */
+ public native KAccel accel();
+ public native void setFrameBorderWidth(int arg1);
+ /**
+ Call this to enable "auto-save" of toolbar/menubar/statusbar settings
+ (and optionally window size).
+ If the bars were moved around/shown/hidden when the window is closed,
+ saveMainWindowSettings( KGlobal.config(), groupName ) will be called.
+ @param groupName a name that identifies this "type of window".
+ You can have several types of window in the same application.
+ @param saveWindowSize set it to true to include the window size
+ when saving.
+ Typically, you will call setAutoSaveSettings() in your
+ KMainWindow-inherited class constructor, and it will take care
+ of restoring and saving automatically. Make sure you call this
+ _after all_ your bars have been created.
+ To make sure that KMainWindow propertly obtains the default
+ size of the window you should do the following:
+ - Remove hard coded resize() calls in the constructor or main, they
+ should be removed in favor of letting the automatic resizing
+ determine the default window size. Hard coded window sizes will
+ be wrong for users that have big fonts, use different styles,
+ long/small translations, large toolbars, and other factors.
+ - Put the setAutoSaveSettings ( or setupGUI() ) call after all widgets
+ have been created and placed inside the main window (i.e. for 99% of
+ apps setCentralWidget())
+ - Widgets that inherit from QWidget (like game boards) should overload
+ "QSize sizeHint() const;" to specify a default size rather
+ than letting QWidget.adjust use the default size of 0x0.
+ @short Call this to enable "auto-save" of toolbar/menubar/statusbar settings (and optionally window size).
+ */
+ public native void setAutoSaveSettings(String groupName, boolean saveWindowSize);
+ public native void setAutoSaveSettings(String groupName);
+ public native void setAutoSaveSettings();
+ /**
+ Disable the auto-save-settings feature.
+ You don't normally need to call this, ever.
+ @short Disable the auto-save-settings feature.
+ */
+ public native void resetAutoSaveSettings();
+ /**
+ @return the current autosave setting, i.e. true if setAutoSaveSettings() was called,
+ false by default or if resetAutoSaveSettings() was called.
+
+ @short
+ */
+ public native boolean autoSaveSettings();
+ /**
+ @return the group used for setting-autosaving.
+ Only meaningful if setAutoSaveSettings() was called.
+ This can be useful for forcing a save or an apply, e.g. before and after
+ using KEditToolbar.
+
+ @short
+ */
+ public native String autoSaveGroup();
+ /**
+ Read settings for statusbar, menubar and toolbar from their respective
+ groups in the config file and apply them.
+ @param config Config file to read the settings from.
+ @param groupName Group name to use. If not specified, the last used
+ group name is used.
+ @param force if set, even default settings are re-applied
+ @short Read settings for statusbar, menubar and toolbar from their respective groups in the config file and apply them.
+ */
+ public native void applyMainWindowSettings(KConfig config, String groupName, boolean force);
+ public native void applyMainWindowSettings(KConfig config, String groupName);
+ public native void applyMainWindowSettings(KConfig config);
+ /**
+ Save settings for statusbar, menubar and toolbar to their respective
+ groups in the config file <code>config.</code>
+ @param config Config file to save the settings to.
+ @param groupName Group name to use. If not specified, the last used
+ group name is used
+ @short Save settings for statusbar, menubar and toolbar to their respective groups in the config file <code>config.</code>
+ */
+ public native void saveMainWindowSettings(KConfig config, String groupName);
+ public native void saveMainWindowSettings(KConfig config);
+ /**
+ Sets whether KMainWindow should provide a menu that allows showing/hiding
+ the available toolbars ( using KToggleToolBarAction ) . In case there
+ is only one toolbar configured a simple 'Show \<toolbar name here\>' menu item
+ is shown.
+ The menu / menu item is implemented using xmlgui. It will be inserted in your
+ menu structure in the 'Settings' menu.
+ If your application uses a non-standard xmlgui resource file then you can
+ specify the exact position of the menu / menu item by adding a
+ &lt;Merge name="StandardToolBarMenuHandler" /&gt;
+ line to the settings menu section of your resource file ( usually appname.rc ).
+ Note that you should enable this feature before calling createGUI() ( or similar ) .
+ You enable/disable it anytime if you pass false to the conserveMemory argument of createGUI.
+ @short Sets whether KMainWindow should provide a menu that allows showing/hiding the available toolbars ( using KToggleToolBarAction ) .
+ */
+ public native void setStandardToolBarMenuEnabled(boolean enable);
+ public native boolean isStandardToolBarMenuEnabled();
+ /**
+ Sets whether KMainWindow should provide a menu that allows showing/hiding
+ of the statusbar ( using KToggleStatusBarAction ).
+ The menu / menu item is implemented using xmlgui. It will be inserted
+ in your menu structure in the 'Settings' menu.
+ Note that you should enable this feature before calling createGUI()
+ ( or similar ).
+ If an application maintains the action on its own (i.e. never calls
+ this function) a connection needs to be made to let KMainWindow
+ know when that status (hidden/shown) of the statusbar has changed.
+ For example:
+ connect(action, SIGNAL("activated()"),
+ kmainwindow, SLOT("setSettingsDirty()"));
+ Otherwise the status (hidden/show) of the statusbar might not be saved
+ by KMainWindow.
+ @short Sets whether KMainWindow should provide a menu that allows showing/hiding of the statusbar ( using KToggleStatusBarAction ).
+ */
+ public native void createStandardStatusBarAction();
+ /**
+ Configures the current windows and its actions in the typical KDE
+ fashion. The options are all enabled by default but can be turned
+ off if desired through the params or if the prereqs don't exists.
+ Typically this function replaces createGUI().
+ @short Configures the current windows and its actions in the typical KDE fashion.
+ @see StandardWindowOptions
+ */
+ public native void setupGUI(int options, String xmlfile);
+ public native void setupGUI(int options);
+ public native void setupGUI();
+ /**
+ Configures the current windows and its actions in the typical KDE
+ fashion. The options are all enabled by default but can be turned
+ off if desired through the params or if the prereqs don't exists.
+ <code>defaultSize</code> The default size of the window
+ Typically this function replaces createGUI().
+ @short Configures the current windows and its actions in the typical KDE fashion.
+ @see StandardWindowOptions
+ */
+ public native void setupGUI(QSize defaultSize, int options, String xmlfile);
+ public native void setupGUI(QSize defaultSize, int options);
+ public native void setupGUI(QSize defaultSize);
+ /**
+ Returns a pointer to the mainwindows action responsible for the toolbars menu
+ @short Returns a pointer to the mainwindows action responsible for the toolbars menu
+ */
+ public native KAction toolBarMenuAction();
+ /**
+ @short
+ */
+ public native void setupToolbarMenuActions();
+ public native void finalizeGUI(KXMLGUIClientInterface client);
+ /**
+ @short
+ */
+ public native void finalizeGUI(boolean force);
+ /**
+ @return true if a -geometry argument was given on the command line,
+ and this is the first window created (the one on which this option applies)
+
+ @short
+ */
+ public native boolean initialGeometrySet();
+ /**
+ Used from Konqueror when reusing the main window.
+ @short
+ */
+ public native void ignoreInitialGeometry();
+ /**
+ @short
+ */
+ public native void setIcon(QPixmap arg1);
+ /**
+ Show a standard configure toolbar dialog.
+ This slot can be connected dirrectly to the action to configure shortcuts.
+ This is very simple to do that by adding a single line
+ <pre>
+ KStdAction.configureToolbars( guiFactory(), SLOT("configureToolbars()"),
+ actionCollection() );
+ </pre>
+ @short Show a standard configure toolbar dialog.
+ */
+ public native int configureToolbars();
+ /**
+ Makes a KDE compliant caption.
+ @param caption Your caption. <b>Do</b> <b>not</b> include the application name
+ in this string. It will be added automatically according to the KDE
+ standard.
+ @short Makes a KDE compliant caption.
+ */
+ public native void setCaption(String caption);
+ /**
+ Makes a KDE compliant caption.
+ @param caption Your caption. <b>Do</b> <b>not</b> include the application name
+ in this string. It will be added automatically according to the KDE
+ standard.
+ @param modified Specify whether the document is modified. This displays
+ an additional sign in the title bar, usually "**".
+ @short Makes a KDE compliant caption.
+ */
+ public native void setCaption(String caption, boolean modified);
+ /**
+ Make a plain caption without any modifications.
+ @param caption Your caption. This is the string that will be
+ displayed in the window title.
+ @short Make a plain caption without any modifications.
+ */
+ public native void setPlainCaption(String caption);
+ /**
+ Open the help page for the application.
+ The application name is
+ used as a key to determine what to display and the system will attempt
+ to open \<appName\>/index.html.
+ This method is intended for use by a help button in the toolbar or
+ components outside the regular help menu. Use helpMenu() when you
+ want to provide access to the help system from the help menu.
+ Example (adding a help button to the first toolbar):
+ <pre>
+ KIconLoader &loader = KGlobal.iconLoader();
+ QPixmap pixmap = loader.loadIcon( "help" );
+ toolBar(0).insertButton( pixmap, 0, SIGNAL("clicked()"),
+ this, SLOT("appHelpActivated()"), true, i18n("Help") );
+ </pre>
+ @short Open the help page for the application.
+ */
+ public native void appHelpActivated();
+ /**
+ Apply a state change
+ Enable and disable actions as defined in the XML rc file
+ @short Apply a state change
+ */
+ public native void slotStateChanged(String newstate);
+ /**
+ Apply a state change
+ Enable and disable actions as defined in the XML rc file,
+ can "reverse" the state (disable the actions which should be
+ enabled, and vice-versa) if specified.
+ @short Apply a state change
+ */
+ public native void slotStateChanged(String newstate, int arg2);
+ /**
+ Tell the main window that it should save its settings when being closed.
+ This is part of the auto-save-settings feature.
+ For everything related to toolbars this happens automatically,
+ but you have to call setSettingsDirty() in the slot that toggles
+ the visibility of the statusbar.
+ @short Tell the main window that it should save its settings when being closed.
+ */
+ public native void setSettingsDirty();
+ /**
+ <b>Session Management</b>
+ Try to restore the toplevel widget as defined by the number (1..X).
+ If the session did not contain so high a number, the configuration
+ is not changed and <code>false</code> returned.
+ That means clients could simply do the following:
+ <pre>
+ if (kapp.isRestored()){
+ int n = 1;
+ while (KMainWindow.canBeRestored(n)){
+ (new childMW).restore(n);
+ n++;
+ }
+ } else {
+ // create default application as usual
+ }
+ </pre>
+ Note that QWidget.show() is called implicitly in restore.
+ With this you can easily restore all toplevel windows of your
+ application.
+ If your application uses different kinds of toplevel
+ windows, then you can use KMainWindow.classNameOfToplevel(n)
+ to determine the exact type before calling the childMW
+ constructor in the example from above.
+ If your client has only one kind of toplevel widgets (which
+ should be pretty usual) then you should use the RESTORE-macro
+ for backwards compatibility with 3.1 and 3.0 branches:
+ <pre>
+ if (kapp.isRestored())
+ RESTORE(childMW)
+ else {
+ // create default application as usual
+ }
+ </pre>
+ The macro expands to the term above but is easier to use and
+ less code to write.
+ For new code or if you have more than one kind of toplevel
+ widget (each derived from KMainWindow, of course), you can
+ use the templated kRestoreMainWindows global functions:
+ <pre>
+ if (kapp.isRestored())
+ kRestoreMainWindows< childMW1, childMW2, childMW3 >();
+ else {
+ // create default application as usual
+ }
+ </pre>
+ Currently, these functions are provided for up to three
+ template arguments. If you need more, tell us. To help you in
+ deciding whether or not you can use kRestoreMainWindows, a
+ define KDE_RESTORE_MAIN_WINDOWS_NUM_TEMPLATE_ARGS is provided.
+ @short <b>Session Management</b>
+ @see #restore
+ @see #classNameOfToplevel
+ */
+ public static native boolean canBeRestored(int number);
+ /**
+ Returns the className() of the <code>number</code> of the toplevel window which
+ should be restored.
+ This is only useful if your application uses
+ different kinds of toplevel windows.
+ @short Returns the className() of the <code>number</code> of the toplevel window which should be restored.
+ */
+ public static native String classNameOfToplevel(int number);
+ /**
+ List of members of KMainWindow class.
+ @short List of members of KMainWindow class.
+ */
+ // QPtrList<KMainWindow>* getMemberList(); >>>> NOT CONVERTED
+ protected native void paintEvent(QPaintEvent e);
+ protected native void childEvent(QChildEvent e);
+ protected native void resizeEvent(QResizeEvent e);
+ /**
+ Reimplemented to call the queryClose() and queryExit() handlers.
+ We recommend that you reimplement the handlers rather than closeEvent().
+ If you do it anyway, ensure to call the base implementation to keep
+ queryExit() running.
+ @short Reimplemented to call the queryClose() and queryExit() handlers.
+ */
+ protected native void closeEvent(QCloseEvent arg1);
+ /**
+ Called before the very last window is closed, either by the
+ user or indirectly by the session manager.
+ It is not recommended to do any user interaction in this
+ function other than indicating severe errors. Better ask the
+ user on queryClose() (see below).
+ A typical usage of queryExit() is to write configuration data back.
+ Note that the application may continue to run after queryExit()
+ (the user may have canceled a shutdown), so you should not do any cleanups
+ here. The purpose of queryExit() is purely to prepare the application
+ (with possible user interaction) so it can safely be closed later (without
+ user interaction).
+ If you need to do serious things on exit (like shutting a
+ dial-up connection down), connect to the signal
+ KApplication.shutDown().
+ Default implementation returns <code>true.</code> Returning <code>false</code> will
+ cancel the exiting. In the latter case, the last window will
+ remain visible. If KApplication.sessionSaving() is true, refusing
+ the exit will also cancel KDE logout.
+ @short Called before the very last window is closed, either by the user or indirectly by the session manager.
+ @see #queryClose
+ @see KApplication#sessionSaving
+ */
+ protected native boolean queryExit();
+ /**
+ Called before the window is closed, either by the user or indirectly by
+ the session manager.
+ The purpose of this function is to prepare the window in a way that it is
+ safe to close it, i.e. without the user losing some data.
+ Default implementation returns true. Returning <code>false</code> will cancel
+ the closing, and, if KApplication.sessionSaving() is true, it will also
+ cancel KDE logout.
+ Reimplement this function to prevent the user from losing data.
+ Example:
+ <pre>
+ switch ( KMessageBox.warningYesNoCancel( this,
+ i18n("Save changes to document foo?")) ) {
+ case KMessageBox.Yes :
+ // save document here. If saving fails, return false;
+ return true;
+ case KMessageBox.No :
+ return true;
+ default: // cancel
+ return false;
+ </pre>
+ Note that you should probably <b>not</b> actually close the document from
+ within this method, as it may be called by the session manager before the
+ session is saved. If the document is closed before the session save occurs,
+ its location might not be properly saved. In addition, the session shutdown
+ may be canceled, in which case the document should remain open.
+ @short Called before the window is closed, either by the user or indirectly by the session manager.
+ @see #queryExit
+ @see KApplication#sessionSaving
+ */
+ protected native boolean queryClose();
+ /**
+ Save your instance-specific properties. The function is
+ invoked when the session manager requests your application
+ to save its state.
+ You <b>must</b> <b>not</b> change the group of the <code>kconfig</code> object, since
+ KMainWindow uses one group for each window. Please
+ reimplement these function in childclasses.
+ Note: No user interaction is allowed
+ in this function!
+ @short Save your instance-specific properties.
+ */
+ protected native void saveProperties(KConfig arg1);
+ /**
+ Read your instance-specific properties.
+ @short Read your instance-specific properties.
+ */
+ protected native void readProperties(KConfig arg1);
+ /**
+ Save your application-wide properties. The function is
+ invoked when the session manager requests your application
+ to save its state.
+ This function is similar to saveProperties() but is only called for
+ the very first main window, regardless how many main window are open.
+ Override it if you need to save other data about your documents on
+ session end. sessionConfig is a config to which that data should be
+ saved. Normally, you don't need this function. But if you want to save
+ data about your documents that are not in opened windows you might need
+ it.
+ Default implementation does nothing.
+ @short Save your application-wide properties.
+ */
+ protected native void saveGlobalProperties(KConfig sessionConfig);
+ /**
+ The counterpart of saveGlobalProperties().
+ Read the application-specific properties in again.
+ @short The counterpart of saveGlobalProperties().
+ */
+ protected native void readGlobalProperties(KConfig sessionConfig);
+ protected native void savePropertiesInternal(KConfig arg1, int arg2);
+ protected native boolean readPropertiesInternal(KConfig arg1, int arg2);
+ /**
+ For inherited classes
+ @short For inherited classes
+ */
+ protected native boolean settingsDirty();
+ /**
+ For inherited classes
+ @short For inherited classes
+ */
+ protected native String settingsGroup();
+ /**
+ For inherited classes
+ Note that the group must be set before calling
+ @short For inherited classes Note that the group must be set before calling
+ */
+ protected native void saveWindowSize(KConfig config);
+ /**
+ For inherited classes
+ Note that the group must be set before calling, and that
+ a -geometry on the command line has priority.
+ @short For inherited classes Note that the group must be set before calling, and that a -geometry on the command line has priority.
+ */
+ protected native void restoreWindowSize(KConfig config);
+ protected native void parseGeometry(boolean parsewidth);
+ /**
+ Rebuilds the GUI after KEditToolbar changed the toolbar layout.
+ @short Rebuilds the GUI after KEditToolbar changed the toolbar layout.
+ @see #configureToolbars
+ */
+ protected native void saveNewToolbarConfig();
+ /**
+ This slot does nothing.
+ It must be reimplemented if you want
+ to use a custom About Application dialog box. This slot is
+ connected to the About Application entry in the menu returned
+ by customHelpMenu.
+ Example:
+ <pre>
+ void MyMainLevel.setupInterface()
+ {
+ ..
+ menuBar().insertItem( i18n("&Help"), customHelpMenu() );
+ ..
+ }
+ void MyMainLevel.showAboutApplication()
+ {
+ <activate your custom dialog>
+ }
+ </pre>
+ @short This slot does nothing.
+ */
+ protected native void showAboutApplication();
+ /**
+ This slot should only be called in case you reimplement closeEvent() and
+ if you are using the "auto-save" feature. In all other cases,
+ setSettingsDirty() should be called instead to benefit from the delayed
+ saving.
+ Example:
+ <pre>
+ void MyMainWindow.closeEvent( QCloseEvent e )
+ {
+ // Save settings if auto-save is enabled, and settings have changed
+ if ( settingsDirty() && autoSaveSettings() )
+ saveAutoSaveSettings();
+ ..
+ }
+ </pre>
+ @short This slot should only be called in case you reimplement closeEvent() and if you are using the "auto-save" feature.
+ @see #setAutoSaveSettings
+ @see #setSettingsDirty
+ */
+ protected native void saveAutoSaveSettings();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+ public native KXMLGUIClientInterface builderClient();
+ public native void setBuilderClient(KXMLGUIClientInterface client);
+ public native KInstanceInterface builderInstance();
+ public native void setBuilderInstance(KInstanceInterface instance);
+ public native QWidget widget();
+ public native ArrayList containerTags();
+ /**
+ Creates a container (menubar/menu/toolbar/statusbar/separator/...)
+ from an element in the XML file
+ @param parent The parent for the container
+ @param index The index where the container should be inserted
+ into the parent container/widget
+ @param element The element from the DOM tree describing the
+ container (use it to access container specified
+ attributes or child elements)
+ @param id The id to be used for this container
+ @short Creates a container (menubar/menu/toolbar/statusbar/separator/.
+ */
+ public native QWidget createContainer(QWidget parent, int index, QDomElement element, int[] id);
+ /**
+ Removes the given (and previously via createContainer )
+ created container.
+ @short Removes the given (and previously via createContainer ) created container.
+ */
+ public native void removeContainer(QWidget container, QWidget parent, QDomElement element, int id);
+ public native ArrayList customTags();
+ public native int createCustomElement(QWidget parent, int index, QDomElement element);
+ public native void removeCustomElement(QWidget parent, int id);
+ /**
+ Retrieves an action of the client by name. If not found, it looks in its child clients.
+ This method is provided for convenience, as it uses actionCollection()
+ to get the action object.
+ @short Retrieves an action of the client by name.
+ */
+ public native KAction action(String name);
+ /**
+ Retrieves an action for a given QDomElement. The default
+ implementation uses the "name" attribute to query the action
+ object via the other action() method.
+ @short Retrieves an action for a given QDomElement.
+ */
+ public native KAction action(QDomElement element);
+ /**
+ Retrieves the entire action collection for the GUI client. If
+ you subclass KXMLGUIClient you should call
+ KActionCollection.setWidget( QWidget ) with this object, or
+ you will encounter subtle bugs with KAction keyboard shortcuts.
+ This is not necessary if your KXMLGUIClient is a KMainWindow.
+ @short Retrieves the entire action collection for the GUI client.
+ @see KActionCollection#setWidget(
+ @see org.kde.qt.QWidget*
+ */
+ public native KActionCollection actionCollection();
+ /**
+ @return The instance ( KInstance ) for this GUI client.
+
+ @short
+ */
+ public native KInstanceInterface instance();
+ /**
+ @return The parsed XML in a QDomDocument, set by
+ setXMLFile() or setXML().
+ This document describes the layout of the GUI.
+
+ @short
+ */
+ public native QDomDocument domDocument();
+ /**
+ This will return the name of the XML file as set by setXMLFile().
+ If setXML() is used directly, then this will return NULL.
+ The filename that this returns is obvious for components as each
+ component has exactly one XML file. In non-components, however,
+ there are usually two: the global file and the local file. This
+ function doesn't really care about that, though. It will always
+ return the last XML file set. This, in almost all cases, will
+ be the local XML file.
+ @return The name of the XML file or null
+
+ @short This will return the name of the XML file as set by setXMLFile().
+ */
+ public native String xmlFile();
+ public native String localXMLFile();
+ /**
+ @short
+ */
+ public native void setXMLGUIBuildDocument(QDomDocument doc);
+ /**
+ @short
+ */
+ public native QDomDocument xmlguiBuildDocument();
+ /**
+ This method is called by the KXMLGUIFactory as soon as the client
+ is added to the KXMLGUIFactory's GUI.
+ @short This method is called by the KXMLGUIFactory as soon as the client is added to the KXMLGUIFactory's GUI.
+ */
+ public native void setFactory(KXMLGUIFactory factory);
+ /**
+ Retrieves a pointer to the KXMLGUIFactory this client is
+ associated with (will return null if the client's GUI has not been built
+ by a KXMLGUIFactory.
+ @short Retrieves a pointer to the KXMLGUIFactory this client is associated with (will return 0L if the client's GUI has not been built by a KXMLGUIFactory.
+ */
+ public native KXMLGUIFactory factory();
+ /**
+ KXMLGUIClients can form a simple child/parent object tree. This
+ method returns a pointer to the parent client or null if it has no
+ parent client assigned.
+ @short KXMLGUIClients can form a simple child/parent object tree.
+ */
+ public native KXMLGUIClientInterface parentClient();
+ /**
+ Use this method to make a client a child client of another client.
+ Usually you don't need to call this method, as it is called
+ automatically when using the second constructor, which takes a
+ parent argument.
+ @short Use this method to make a client a child client of another client.
+ */
+ public native void insertChildClient(KXMLGUIClientInterface child);
+ /**
+ Removes the given <code>child</code> from the client's children list.
+ @short Removes the given <code>child</code> from the client's children list.
+ */
+ public native void removeChildClient(KXMLGUIClientInterface child);
+ /**
+ Retrieves a list of all child clients.
+ @short Retrieves a list of all child clients.
+ */
+ // const QPtrList<KXMLGUIClient>* childClients(); >>>> NOT CONVERTED
+ /**
+ A client can have an own KXMLGUIBuilder.
+ Use this method to assign your builder instance to the client (so that the
+ KXMLGUIFactory can use it when building the client's GUI)
+ Client specific guibuilders are useful if you want to create
+ custom container widgets for your GUI.
+ @short A client can have an own KXMLGUIBuilder.
+ */
+ public native void setClientBuilder(KXMLGUIBuilderInterface builder);
+ /**
+ Retrieves the client's GUI builder or null if no client specific
+ builder has been assigned via setClientBuilder()
+ @short Retrieves the client's GUI builder or 0L if no client specific builder has been assigned via setClientBuilder()
+ */
+ public native KXMLGUIBuilderInterface clientBuilder();
+ /**
+ Forces this client to re-read its XML resource file. This is
+ intended to be used when you know that the resource file has
+ changed and you will soon be rebuilding the GUI. It has no
+ useful effect with non-KParts GUIs, so don't bother using it
+ unless your app is component based.
+ @short Forces this client to re-read its XML resource file.
+ */
+ public native void reloadXML();
+ /**
+ ActionLists are a way for XMLGUI to support dynamic lists of
+ actions. E.g. if you are writing a file manager, and there is a
+ menu file whose contents depend on the mimetype of the file that
+ is selected, then you can achieve this using ActionLists. It
+ works as follows:
+ In your xxxui.rc file ( the one that you set in setXMLFile()
+ ), you put an <p>\<ActionList name="xxx"\></p> tag. E.g.
+ <pre>
+ <kpartgui name="xxx_part" version="1">
+ <MenuBar>
+ <Menu name="file">
+ ... <!-- some useful actions-.
+ <ActionList name="xxx_file_actionlist" />
+ ... <!-- even more useful actions-.
+ </Menu>
+ ...
+ </MenuBar>
+ </kpartgui>
+ </pre>
+ This tag will get expanded to a list of actions. In the example
+ above ( a file manager with a dynamic file menu ), you would call
+ <pre>
+ QPtrList<KAction> file_actions;
+ for( ... )
+ if( ... )
+ file_actions.append( cool_action );
+ unplugActionList( "xxx_file_actionlist" );
+ plugActionList( "xxx_file_actionlist", file_actions );
+ </pre>
+ every time a file is selected, unselected or ...
+ <b>Note:<> You should not call createGUI() after calling this
+ function. In fact, that would remove the newly added
+ actionlists again...
+ <b>Note:<> Forgetting to call unplugActionList() before
+ plugActionList() would leave the previous actions in the
+ menu too..
+ @short ActionLists are a way for XMLGUI to support dynamic lists of actions.
+ */
+ // void plugActionList(const QString& arg1,const QPtrList<KAction>& arg2); >>>> NOT CONVERTED
+ /**
+ The complement of plugActionList() ...
+ @short The complement of plugActionList() .
+ */
+ public native void unplugActionList(String name);
+ public native void addStateActionEnabled(String state, String action);
+ public native void addStateActionDisabled(String state, String action);
+ // KXMLGUIClient::StateChange getActionsToChangeForState(const QString& arg1); >>>> NOT CONVERTED
+ public native void beginXMLPlug(QWidget arg1);
+ public native void endXMLPlug();
+ public native void prepareXMLUnplug(QWidget arg1);
+ public static native String findMostRecentXMLFile(String[] files, StringBuffer doc);
+ /**
+ Sets the instance ( KInstance) for this part.
+ Call this first in the inherited class constructor.
+ (At least before setXMLFile().)
+ @short Sets the instance ( KInstance) for this part.
+ */
+ protected native void setInstance(KInstanceInterface instance);
+ /**
+ Sets the name of the rc file containing the XML for the part.
+ Call this in the Part-inherited class constructor.
+ @param file Either an absolute path for the file, or simply the
+ filename, which will then be assumed to be installed
+ in the "data" resource, under a directory named like
+ the instance.
+ @param merge Whether to merge with the global document.
+ @param setXMLDoc Specify whether to call setXML. Default is true.
+ and the DOM document at once.
+ @short Sets the name of the rc file containing the XML for the part.
+ */
+ protected native void setXMLFile(String file, boolean merge, boolean setXMLDoc);
+ protected native void setXMLFile(String file, boolean merge);
+ protected native void setXMLFile(String file);
+ protected native void setLocalXMLFile(String file);
+ /**
+ Sets the XML for the part.
+ Call this in the Part-inherited class constructor if you
+ don't call setXMLFile().
+ @short Sets the XML for the part.
+ */
+ protected native void setXML(String document, boolean merge);
+ protected native void setXML(String document);
+ /**
+ Sets the Document for the part, describing the layout of the GUI.
+ Call this in the Part-inherited class constructor if you don't call
+ setXMLFile or setXML .
+ @short Sets the Document for the part, describing the layout of the GUI.
+ */
+ protected native void setDOMDocument(QDomDocument document, boolean merge);
+ protected native void setDOMDocument(QDomDocument document);
+ /**
+ This function will attempt to give up some memory after the GUI
+ is built. It should never be used in apps where the GUI may be
+ rebuilt at some later time (components, for instance).
+ @short This function will attempt to give up some memory after the GUI is built.
+ */
+ protected native void conserveMemory();
+ /**
+ Actions can collectively be assigned a "State". To accomplish this
+ the respective actions are tagged as \<enable\> or \<disable\> in
+ a \<State\> \</State\> group of the XMLfile. During program execution the
+ programmer can call stateChanged() to set actions to a defined state.
+ @param newstate Name of a State in the XMLfile.
+ @param reverse If the flag reverse is set to StateReverse, the State is reversed.
+ (actions to be enabled will be disabled and action to be disabled will be enabled)
+ Default is reverse=false.
+ @short Actions can collectively be assigned a "State".
+ */
+ protected native void stateChanged(String newstate, int reverse);
+ protected native void stateChanged(String newstate);
+ /**
+ List of members of KMainWindow class.
+ */
+ public native ArrayList memberList();
+
+ public static void RESTORE(String typeName) {
+ Class savedClass;
+
+ try {
+ savedClass = Class.forName(typeName);
+ int n = 1;
+ while (KMainWindow.canBeRestored(n)){
+ ((KMainWindow) savedClass.newInstance()).restore(n);
+ n++;
+ }
+ } catch(Exception e) {
+ return;
+ }
+
+ return;
+ }
+
+}
diff --git a/kdejava/koala/org/kde/koala/KMdi.java b/kdejava/koala/org/kde/koala/KMdi.java
new file mode 100644
index 00000000..1a6d37e6
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdi.java
@@ -0,0 +1,71 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ @short A namespace for the KMDI library.
+
+*/
+public class KMdi {
+ /** extent Qt events
+ @short extent Qt events
+ @see org.kde.qt.QCustomEvent
+ @see org.kde.qt.QEvent#User
+ @see <pre>
+ @see #boolean
+ @see B_MyWidget#event(
+ @see org.kde.qt.QEvent*
+ @see #e)
+ @see #if(
+ @see #e#type
+ @see org.kde.qt.QEvent#Type(QEvent#User
+ @see #int(KMdi#EV_Move)))
+ @see </pre>
+ */
+ public static final int EV_Move = 1;
+ public static final int EV_DragBegin = 2;
+ public static final int EV_DragEnd = 3;
+ public static final int EV_ResizeBegin = 4;
+ public static final int EV_ResizeEnd = 5;
+
+ /**
+ During KMdiMainFrm.addWindow the enum AddWindowFlags is used to determine how the view is initialy being added to the MDI system
+ @short During KMdiMainFrm.addWindow the enum AddWindowFlags is used to determine how the view is initialy being added to the MDI system
+ */
+ public static final int StandardAdd = 0;
+ public static final int Maximize = 1;
+ public static final int Minimize = 2;
+ public static final int Hide = 4;
+ public static final int Detach = 8;
+ public static final int ToolWindow = 16;
+ public static final int UseKMdiSizeHint = 32;
+ public static final int AddWindowFlags = 0xff;
+
+ public static final int Win95Look = 0;
+ public static final int KDE1Look = 1;
+ public static final int KDELook = 2;
+ public static final int KDELaptopLook = 3;
+
+ public static final int UndefinedMode = 0;
+ public static final int ToplevelMode = 1;
+ public static final int ChildframeMode = 2;
+ public static final int TabPageMode = 3;
+ public static final int IDEAlMode = 4;
+
+ public static final int AlwaysShowTabs = 0;
+ public static final int ShowWhenMoreThanOneTab = 1;
+ public static final int NeverShowTabs = 2;
+
+ /**
+ The style of the toolview tabs
+ \since 3.3
+ @short The style of the toolview tabs \since 3.
+ */
+ public static final int IconOnly = 0;
+ public static final int TextOnly = 1;
+ public static final int TextAndIcon = 3;
+
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiChildArea.java b/kdejava/koala/org/kde/koala/KMdiChildArea.java
new file mode 100644
index 00000000..61542b7f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiChildArea.java
@@ -0,0 +1,193 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QFrame;
+
+/**
+
+ The main frame widget KMdiMainFrm consists of 2 child widgets. One is this class.
+ It's the widget where the child frames (emulated toplevel MDI views) live in.
+ This class is the manager for the child frame widgets because it controls the
+ Z-order widget stack of KMdiChildFrm's.
+ It provides all placing and positioning algorithms for docked (attached) MDI views.
+ KMdiChildArea doesn't know anything about the actual MDI views. It only knows
+ and manages the frame widgets of attached MDI views.
+ All actions and stuff concerning only to childframes are handled here.
+ See {@link KMdiChildAreaSignals} for signals emitted by KMdiChildArea
+ @short Internal class.
+
+*/
+public class KMdiChildArea extends QFrame {
+ protected KMdiChildArea(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Consruction. Note: This class needn't to know about KMdiMainFrm .
+ @short Consruction.
+ */
+ public KMdiChildArea(QWidget parent) {
+ super((Class) null);
+ newKMdiChildArea(parent);
+ }
+ private native void newKMdiChildArea(QWidget parent);
+ /**
+ Appends a new KMdiChildFrm to this manager.
+ The child is shown,raised and gets focus if this window has it.
+ @short Appends a new KMdiChildFrm to this manager.
+ */
+ public native void manageChild(KMdiChildFrm lpC, boolean bShow, boolean bCascade);
+ public native void manageChild(KMdiChildFrm lpC, boolean bShow);
+ public native void manageChild(KMdiChildFrm lpC);
+ /**
+ Destroys a managed KMdiChildFrm
+ Also deletes the client attached to this child.
+ @short Destroys a managed KMdiChildFrm Also deletes the client attached to this child.
+ */
+ public native void destroyChild(KMdiChildFrm child, boolean focusTopChild);
+ public native void destroyChild(KMdiChildFrm child);
+ /**
+ Destroys a managed KMdiChildFrm
+ Clients attached to the KMdiChildFrm are not deleted.
+ @short Destroys a managed KMdiChildFrm Clients attached to the KMdiChildFrm are not deleted.
+ */
+ public native void destroyChildButNotItsView(KMdiChildFrm lpC, boolean bFocusTopChild);
+ public native void destroyChildButNotItsView(KMdiChildFrm lpC);
+ /**
+ Brings the child to the top of the stack
+ The child is focused if setFocus is true. If setFocus is false, the
+ child is just raised.
+ @short Brings the child to the top of the stack The child is focused if setFocus is true.
+ */
+ public native void setTopChild(KMdiChildFrm child, boolean setFocus);
+ public native void setTopChild(KMdiChildFrm child);
+ /**
+ Returns the topmost child (the active one) or 0 if there are no children.
+ Note that the topmost child may be also hidded , if ALL the windows are minimized.
+ @short Returns the topmost child (the active one) or 0 if there are no children.
+ */
+ public native KMdiChildFrm topChild();
+ /**
+ Returns the number of visible children
+ @short Returns the number of visible children
+ */
+ public native int getVisibleChildCount();
+ /**
+ Calculates the cascade point for the given index. If index is -1
+ the cascade point is calculated for the window following the last window
+ @param indexOfWindow the index of the window in relation the z-ordered window list
+ @short Calculates the cascade point for the given index.
+ */
+ public native QPoint getCascadePoint(int indexOfWindow);
+ public native QPoint getCascadePoint();
+ /**
+ Sets the MDI childframe window caption font
+ A relayout does not occur when using this function
+ @short Sets the MDI childframe window caption font A relayout does not occur when using this function
+ */
+ public native void setMdiCaptionFont(QFont fnt);
+ /**
+ Sets the foreground color of the active MDI childframe window caption
+ A relayout does not occur when using this function
+ @short Sets the foreground color of the active MDI childframe window caption A relayout does not occur when using this function
+ */
+ public native void setMdiCaptionActiveForeColor(QColor clr);
+ /**
+ Sets the background color of the active MDI childframe window captions
+ A relayout does not occur when using this function
+ @short Sets the background color of the active MDI childframe window captions A relayout does not occur when using this function
+ */
+ public native void setMdiCaptionActiveBackColor(QColor clr);
+ /**
+ Sets the foreground color of inactive MDI childframe window captions
+ A relayout does not occur when using this function
+ @short Sets the foreground color of inactive MDI childframe window captions A relayout does not occur when using this function
+ */
+ public native void setMdiCaptionInactiveForeColor(QColor clr);
+ /**
+ Sets the background color of inactive MDI childframe window captions
+ A relayout does not occur when using this function
+ @short Sets the background color of inactive MDI childframe window captions A relayout does not occur when using this function
+ */
+ public native void setMdiCaptionInactiveBackColor(QColor clr);
+ /**
+ Cascades all windows resizing them to the minimum size.
+ @short Cascades all windows resizing them to the minimum size.
+ */
+ public native void cascadeWindows();
+ /**
+ Cascades all windows resizing them to the maximum available size.
+ @short Cascades all windows resizing them to the maximum available size.
+ */
+ public native void cascadeMaximized();
+ /**
+ Maximize all windows but only in vertical direction
+ @short Maximize all windows but only in vertical direction
+ */
+ public native void expandVertical();
+ /**
+ Maximize all windows but only in horizontal direction
+ @short Maximize all windows but only in horizontal direction
+ */
+ public native void expandHorizontal();
+ /**
+ Gives focus to the topmost child if it doesn't get focus
+ automatically or you want to wait to give it focus
+ @short Gives focus to the topmost child if it doesn't get focus automatically or you want to wait to give it focus
+ */
+ public native void focusTopChild();
+ /**
+ Tile Pragma
+ @short Tile Pragma
+ */
+ public native void tilePragma();
+ /**
+ Tile Anodine
+ @short Tile Anodine
+ */
+ public native void tileAnodine();
+ /**
+ Tile all the windows in the child area vertically
+ @short Tile all the windows in the child area vertically
+ */
+ public native void tileVertically();
+ /**
+ Position and layout the minimized child frames
+ @short Position and layout the minimized child frames
+ */
+ public native void layoutMinimizedChildren();
+ /**
+ Internally used for the tile algorithm
+ @short Internally used for the tile algorithm
+ */
+ protected native void tileAllInternal(int maxWnds);
+ /**
+ Automatically resizes a maximized MDI view and layouts the positions of minimized MDI views.
+ @short Automatically resizes a maximized MDI view and layouts the positions of minimized MDI views.
+ */
+ protected native void resizeEvent(QResizeEvent arg1);
+ /**
+ Shows the 'Window' popup menu on right mouse button click
+ @short Shows the 'Window' popup menu on right mouse button click
+ */
+ protected native void mousePressEvent(QMouseEvent e);
+ /**
+ Internally used. Actions that are necessary when an MDI view gets minimized
+ @short Internally used.
+ */
+ protected native void childMinimized(KMdiChildFrm lpC, boolean bWasMaximized);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiChildAreaSignals.java b/kdejava/koala/org/kde/koala/KMdiChildAreaSignals.java
new file mode 100644
index 00000000..b3a15d57
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiChildAreaSignals.java
@@ -0,0 +1,42 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+public interface KMdiChildAreaSignals {
+ /**
+ Signals that there aren't maximized child frames any more
+ @short Signals that there aren't maximized child frames any more
+ */
+ void noMaximizedChildFrmLeft(KMdiChildFrm arg1);
+ /**
+ Signals that the child frames are maximized now
+ @short Signals that the child frames are maximized now
+ */
+ void nowMaximized(boolean arg1);
+ /**
+ Signals a KMdiMainFrm that the signal/slot connections of the system buttons in the
+ menubar (only in Maximize mode) must be updated to another MDI view because the focused
+ MDI view has changed
+ @short Signals a KMdiMainFrm that the signal/slot connections of the system buttons in the menubar (only in Maximize mode) must be updated to another MDI view because the focused MDI view has changed
+ */
+ void sysButtonConnectionsMustChange(KMdiChildFrm arg1, KMdiChildFrm arg2);
+ /**
+ Signals a KMdiMainFrm that the 'Window' popup menu must be shown
+ @short Signals a KMdiMainFrm that the 'Window' popup menu must be shown
+ */
+ void popupWindowMenu(QPoint arg1);
+ /**
+ Signals that the last attached (docked) MDI view has been closed.
+ Note: Detached MDI views can remain.
+ @short Signals that the last attached (docked) MDI view has been closed.
+ */
+ void lastChildFrmClosed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiChildFrm.java b/kdejava/koala/org/kde/koala/KMdiChildFrm.java
new file mode 100644
index 00000000..5f991b77
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiChildFrm.java
@@ -0,0 +1,141 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QPoint;
+import org.kde.qt.QFrame;
+
+/**
+
+ @short Internal class. It's an MDI child frame widget. It contains a view widget and a frame caption. Usually you derive from its view.
+
+*/
+public class KMdiChildFrm extends QFrame {
+ protected KMdiChildFrm(Class dummy){super((Class) null);}
+ public static final int Normal = 0;
+ public static final int Maximized = 1;
+ public static final int Minimized = 2;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a new KMdiChildFrm class.
+ @short Creates a new KMdiChildFrm class.
+ */
+ /**
+ Reparents the widget w to this KMdiChildFrm (if this is not already done)
+ Installs an event filter to catch focus events.
+ Resizes this mdi child in a way that the child fits perfectly in.
+ @short Reparents the widget w to this KMdiChildFrm (if this is not already done) Installs an event filter to catch focus events.
+ */
+ public native void setClient(KMdiChildView w, boolean bAutomaticResize);
+ public native void setClient(KMdiChildView w);
+ /**
+ Reparents the client widget to 0 (desktop), moves with an offset from the original position
+ Removes the event filter.
+ @short Reparents the client widget to 0 (desktop), moves with an offset from the original position Removes the event filter.
+ */
+ public native void unsetClient(QPoint positionOffset);
+ public native void unsetClient();
+ /**
+ Sets the window icon pointer.
+ @short Sets the window icon pointer.
+ */
+ public native void setIcon(QPixmap pxm);
+ /**
+ Returns the child frame icon.
+ @short Returns the child frame icon.
+ */
+ public native QPixmap icon();
+ /**
+ Enables or disables the close button
+ @short Enables or disables the close button
+ */
+ public native void enableClose(boolean bEnable);
+ /**
+ Sets the caption of this window
+ @short Sets the caption of this window
+ */
+ public native void setCaption(String text);
+ /**
+ Gets the caption of this mdi child.
+ @short Gets the caption of this mdi child.
+ */
+ public native String caption();
+ /**
+ Minimizes, Maximizes, or restores the window.
+ @short Minimizes, Maximizes, or restores the window.
+ */
+ public native void setState(int state, boolean bAnimate);
+ public native void setState(int state);
+ /**
+ Returns the current state of the window
+ @short Returns the current state of the window
+ */
+ public native int state();
+ /**
+ Returns the inner client area of the parent of this (which is KMdiChildArea).
+ @short Returns the inner client area of the parent of this (which is KMdiChildArea).
+ */
+ public native QRect mdiAreaContentsRect();
+ /**
+ Returns the geometry that will be restored by calling restore().
+ @short Returns the geometry that will be restored by calling restore().
+ */
+ public native QRect restoreGeometry();
+ /**
+ Sets the geometry that will be restored by calling restore().
+ @short Sets the geometry that will be restored by calling restore().
+ */
+ public native void setRestoreGeometry(QRect newRestGeo);
+ /**
+ Forces updating the rects of the caption and so...
+ It may be useful when setting the mdiCaptionFont of the MdiManager
+ @short Forces updating the rects of the caption and so.
+ */
+ public native void updateRects();
+ /**
+ Returns the system menu.
+ @short Returns the system menu.
+ */
+ public native QPopupMenu systemMenu();
+ /**
+ Returns the caption bar height
+ @short Returns the caption bar height
+ */
+ public native int captionHeight();
+ /**
+ sets new raise behavior and pixmaps of the buttons depending on the current decoration style
+ @short sets new raise behavior and pixmaps of the buttons depending on the current decoration style
+ */
+ public native void redecorateButtons();
+ /**
+ returns the mouse state "In Drag"
+ @short returns the mouse state "In Drag"
+ */
+ public native boolean isInDrag();
+ /**
+ returns the mouse state "In Resize"
+ @short returns the mouse state "In Resize"
+ */
+ public native boolean isInResize();
+ /**
+ Internally called from the signal focusInEventOccurs.
+ It raises the MDI childframe to the top of all other MDI child frames and sets the focus on it.
+ @short Internally called from the signal focusInEventOccurs.
+ */
+ public native void raiseAndActivate();
+ /**
+ Sets the minimum size of the widget to w by h pixels.
+ It extends it's base clase method in a way that the minimum size of
+ the child area will be set additionally if the view is maximized.
+ @short Sets the minimum size of the widget to w by h pixels.
+ */
+ public native void setMinimumSize(int minw, int minh);
+ public native void slot_resizeViaSystemMenu();
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiChildFrmCaption.java b/kdejava/koala/org/kde/koala/KMdiChildFrmCaption.java
new file mode 100644
index 00000000..6f78201c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiChildFrmCaption.java
@@ -0,0 +1,43 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ It's the caption bar of a child frame widget.
+ @short Internal class.
+
+*/
+public class KMdiChildFrmCaption extends QWidget {
+ protected KMdiChildFrmCaption(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor
+ @short Constructor
+ */
+ /**
+ Repaint the caption bar in active background colors
+ @short Repaint the caption bar in active background colors
+ */
+ public native void setActive(boolean bActive);
+ /**
+ Repaint with a new caption bar title
+ @short Repaint with a new caption bar title
+ */
+ public native void setCaption(String text);
+ /**
+ Returns the caption bar height depending on the used font
+ @short Returns the caption bar height depending on the used font
+ */
+ public native int heightHint();
+ /**
+ Grabs the mouse, a move cursor, sets a move indicator variable to true and keeps the global mouse position in mind
+ @short Grabs the mouse, a move cursor, sets a move indicator variable to true and keeps the global mouse position in mind
+ */
+ public native void slot_moveViaSystemMenu();
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiChildFrmDragBeginEvent.java b/kdejava/koala/org/kde/koala/KMdiChildFrmDragBeginEvent.java
new file mode 100644
index 00000000..b1186786
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiChildFrmDragBeginEvent.java
@@ -0,0 +1,16 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QCustomEvent;
+
+/**
+
+ @short a QCustomEvent for begin of dragging This special event will be useful, to inform view about child frame event.
+
+*/
+public class KMdiChildFrmDragBeginEvent extends QCustomEvent {
+ protected KMdiChildFrmDragBeginEvent(Class dummy){super((Class) null);}
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiChildFrmDragEndEvent.java b/kdejava/koala/org/kde/koala/KMdiChildFrmDragEndEvent.java
new file mode 100644
index 00000000..c98c20c3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiChildFrmDragEndEvent.java
@@ -0,0 +1,16 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QCustomEvent;
+
+/**
+
+ @short a QCustomEvent for end of dragging This special event will be useful, to inform view about child frame event.
+
+*/
+public class KMdiChildFrmDragEndEvent extends QCustomEvent {
+ protected KMdiChildFrmDragEndEvent(Class dummy){super((Class) null);}
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiChildFrmMoveEvent.java b/kdejava/koala/org/kde/koala/KMdiChildFrmMoveEvent.java
new file mode 100644
index 00000000..49fc668e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiChildFrmMoveEvent.java
@@ -0,0 +1,16 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QMoveEvent;
+import org.kde.qt.QCustomEvent;
+
+/**
+
+ @short a QCustomEvent for move This special event will be useful, to inform view about child frame event.
+
+*/
+public class KMdiChildFrmMoveEvent extends QCustomEvent {
+ protected KMdiChildFrmMoveEvent(Class dummy){super((Class) null);}
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiChildFrmResizeBeginEvent.java b/kdejava/koala/org/kde/koala/KMdiChildFrmResizeBeginEvent.java
new file mode 100644
index 00000000..a0f6b2b5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiChildFrmResizeBeginEvent.java
@@ -0,0 +1,16 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QCustomEvent;
+
+/**
+
+ @short a QCustomEvent for begin of resizing This special event will be useful, to inform view about child frame event.
+
+*/
+public class KMdiChildFrmResizeBeginEvent extends QCustomEvent {
+ protected KMdiChildFrmResizeBeginEvent(Class dummy){super((Class) null);}
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiChildFrmResizeEndEvent.java b/kdejava/koala/org/kde/koala/KMdiChildFrmResizeEndEvent.java
new file mode 100644
index 00000000..c8d34879
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiChildFrmResizeEndEvent.java
@@ -0,0 +1,16 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QCustomEvent;
+
+/**
+
+ @short a QCustomEvent for end of resizing This special event will be useful, to inform view about child frame event.
+
+*/
+public class KMdiChildFrmResizeEndEvent extends QCustomEvent {
+ protected KMdiChildFrmResizeEndEvent(Class dummy){super((Class) null);}
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiChildView.java b/kdejava/koala/org/kde/koala/KMdiChildView.java
new file mode 100644
index 00000000..9bb47bf0
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiChildView.java
@@ -0,0 +1,423 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QCloseEvent;
+import org.kde.qt.QPixmap;
+import java.util.Calendar;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ Base class for all MDI view widgets. KMdi stores additional information in this class
+ to handle the attach/detach mechanism and such things.
+ All such windows 'lives' attached to a KMdiChildFrm widget
+ managed by KMdiChildArea, or detached (managed by the window manager.)
+ So remember that the KMdiChildView.parent pointer may change, and may be null, too.
+ There are 2 possibilities for you to put your widgets under MDI control:
+ Either you inherit all the views from KMdiChildView:
+ <pre>
+ public class MyMdiWidget implements KMdiChildView
+ { .... }
+ ...
+ MyMdiWidget w;
+ mainframe.addWindow(w, flags);
+ </pre>
+ or you wrap them by a KMdiChildView somehow like this:
+ <pre>
+ void DocViewMan.addKMdiFrame(QWidget pNewView, boolean bShow, QPixmap icon)
+ {
+ // cover it by a KMdi childview and add that MDI system
+ KMdiChildView pMDICover = new KMdiChildView( pNewView.caption());
+ pMDICover.setIcon(icon);
+ m_MDICoverList.append( pMDICover);
+ QBoxLayout pLayout = new QHBoxLayout( pMDICover, 0, -1, "layout");
+ pNewView.reparent( pMDICover, QPoint(0,0));
+ pLayout.addWidget( pNewView);
+ pMDICover.setName( pNewView.name());
+ // captions
+ String shortName = pNewView.caption();
+ int length = shortName.length();
+ shortName = shortName.right(length - (shortName.findRev('/') +1));
+ pMDICover.setTabCaption( shortName);
+ pMDICover.setCaption(pNewView.caption());
+ // fake a viewActivated to update the currentEditView/currentBrowserView pointers _before_ adding to MDI control
+ slot_viewActivated( pMDICover);
+ // take it under MDI mainframe control (note: this triggers also a setFocus())
+ int flags;
+ if (bShow) {
+ flags = KMdi.StandardAdd;
+ }
+ else {
+ flags = KMdi.Hide;
+ }
+ // set the accelerators for Toplevel MDI mode (each toplevel window needs its own accels
+ connect( m_pParent, SIGNAL("childViewIsDetachedNow(QWidget)"), this, SLOT("initKeyAccel(QWidget)") );
+ m_pParent.addWindow( pMDICover, flags);
+ // correct the default settings of KMdi ('cause we haven't a tab order for subwidget focuses)
+ pMDICover.setFirstFocusableChildWidget(null);
+ pMDICover.setLastFocusableChildWidget(null);
+ }
+ </pre>
+ See {@link KMdiChildViewSignals} for signals emitted by KMdiChildView
+ @short Base class for all your special view windows.
+
+*/
+public class KMdiChildView extends QWidget {
+ protected KMdiChildView(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor
+ @short Constructor
+ */
+ public KMdiChildView(String caption, QWidget parentWidget, String name, int f) {
+ super((Class) null);
+ newKMdiChildView(caption,parentWidget,name,f);
+ }
+ private native void newKMdiChildView(String caption, QWidget parentWidget, String name, int f);
+ public KMdiChildView(String caption, QWidget parentWidget, String name) {
+ super((Class) null);
+ newKMdiChildView(caption,parentWidget,name);
+ }
+ private native void newKMdiChildView(String caption, QWidget parentWidget, String name);
+ public KMdiChildView(String caption, QWidget parentWidget) {
+ super((Class) null);
+ newKMdiChildView(caption,parentWidget);
+ }
+ private native void newKMdiChildView(String caption, QWidget parentWidget);
+ public KMdiChildView(String caption) {
+ super((Class) null);
+ newKMdiChildView(caption);
+ }
+ private native void newKMdiChildView(String caption);
+ /**
+ Constructor
+ sets "Unnamed" as default caption
+ @short Constructor sets "Unnamed" as default caption
+ */
+ public KMdiChildView(QWidget parentWidget, String name, int f) {
+ super((Class) null);
+ newKMdiChildView(parentWidget,name,f);
+ }
+ private native void newKMdiChildView(QWidget parentWidget, String name, int f);
+ public KMdiChildView(QWidget parentWidget, String name) {
+ super((Class) null);
+ newKMdiChildView(parentWidget,name);
+ }
+ private native void newKMdiChildView(QWidget parentWidget, String name);
+ public KMdiChildView(QWidget parentWidget) {
+ super((Class) null);
+ newKMdiChildView(parentWidget);
+ }
+ private native void newKMdiChildView(QWidget parentWidget);
+ public KMdiChildView() {
+ super((Class) null);
+ newKMdiChildView();
+ }
+ private native void newKMdiChildView();
+ /**
+ This method does the same as focusInEvent(). That's why it is a replacement for the setFocus() call. It makes
+ sense if you for instance want to focus (I mean raise and activate) this view although the real focus is
+ in another toplevel widget. focusInEvent() will never get called in that case and your setFocus() call for this
+ widget would fail without any effect.
+ Use this method with caution, it always raises the view and pushes the taskbar button. Also when the focus is
+ still on another MDI view in the same toplevel window where this is located!
+ @short This method does the same as focusInEvent().
+ */
+ public native void activate();
+ /**
+ Memorizes the first focusable child widget of this widget
+ @short Memorizes the first focusable child widget of this widget
+ */
+ public native void setFirstFocusableChildWidget(QWidget arg1);
+ /**
+ Memorizes the last focusable child widget of this widget
+ @short Memorizes the last focusable child widget of this widget
+ */
+ public native void setLastFocusableChildWidget(QWidget arg1);
+ /**
+ Returns the current focused child widget of this widget
+ @short Returns the current focused child widget of this widget
+ */
+ public native QWidget focusedChildWidget();
+ /**
+ Returns true if the MDI view is a child window within the MDI mainframe widget
+ or false if the MDI view is in toplevel mode
+ @short Returns true if the MDI view is a child window within the MDI mainframe widget or false if the MDI view is in toplevel mode
+ */
+ public native boolean isAttached();
+ /**
+ Returns the caption of the child window (different from the caption on the button in the taskbar)
+ @short Returns the caption of the child window (different from the caption on the button in the taskbar)
+ */
+ public native String caption();
+ /**
+ Returns the caption of the button on the taskbar
+ @short Returns the caption of the button on the taskbar
+ */
+ public native String tabCaption();
+ /**
+ Sets the window caption string...
+ Calls updateButton on the taskbar button if it has been set.
+ @short Sets the window caption string.
+ */
+ public native void setCaption(String szCaption);
+ /**
+ Sets the caption of the button referring to this window
+ @short Sets the caption of the button referring to this window
+ */
+ public native void setTabCaption(String caption);
+ /**
+ Sets the caption of both the window and the button on the taskbar
+ @short Sets the caption of both the window and the button on the taskbar
+ */
+ public native void setMDICaption(String caption);
+ /**
+ Returns the KMdiChildFrm parent widget (or 0 if the window is not attached)
+ @short Returns the KMdiChildFrm parent widget (or 0 if the window is not attached)
+ */
+ public native KMdiChildFrm mdiParent();
+ /**
+ Tells if the window is minimized when attached to the Mdi manager,
+ or if it is VISIBLE when 'floating'.
+ @short Tells if the window is minimized when attached to the Mdi manager, or if it is VISIBLE when 'floating'.
+ */
+ public native boolean isMinimized();
+ /**
+ Tells if the window is minimized when attached to the Mdi manager,
+ otherwise returns false.
+ @short Tells if the window is minimized when attached to the Mdi manager, otherwise returns false.
+ */
+ public native boolean isMaximized();
+ /**
+ Returns the geometry of this MDI child window as QWidget.geometry() does.
+ @short Returns the geometry of this MDI child window as QWidget.geometry() does.
+ */
+ public native QRect internalGeometry();
+ /**
+ Sets the geometry of the client area of this MDI child window. The
+ top left position of the argument is the position of the top left point
+ of the client area in its parent coordinates and the arguments width
+ and height is the width and height of the client area. Please note: This
+ differs from the behavior of QWidget.setGeometry()!
+ @short Sets the geometry of the client area of this MDI child window.
+ */
+ public native void setInternalGeometry(QRect newGeomety);
+ /**
+ Returns the frame geometry of this window or of the parent if there is any...
+ @short Returns the frame geometry of this window or of the parent if there is any.
+ */
+ public native QRect externalGeometry();
+ /**
+ Sets the geometry of the frame of this MDI child window. The top left
+ position of the argument is the position of the top left point of the
+ frame in its parent coordinates and the arguments width and height is
+ the width and height of the widget frame. Please note: This differs
+ from the behavior of QWidget.setGeometry()!
+ @short Sets the geometry of the frame of this MDI child window.
+ */
+ public native void setExternalGeometry(QRect newGeomety);
+ /**
+ You should override this function in the derived class.
+ @short You should override this function in the derived class.
+ */
+ public native QPixmap myIconPtr();
+ /**
+ Minimizes this window when it is attached to the Mdi manager.
+ Otherwise has no effect
+ @short Minimizes this window when it is attached to the Mdi manager.
+ */
+ public native void minimize(boolean bAnimate);
+ /**
+ Maximizes this window when it is attached to the Mdi manager.
+ Otherwise has no effect
+ @short Maximizes this window when it is attached to the Mdi manager.
+ */
+ public native void maximize(boolean bAnimate);
+ /**
+ Returns the geometry that will be restored by calling restore().
+ @short Returns the geometry that will be restored by calling restore().
+ */
+ public native QRect restoreGeometry();
+ /**
+ Sets the geometry that will be restored by calling restore().
+ @short Sets the geometry that will be restored by calling restore().
+ */
+ public native void setRestoreGeometry(QRect newRestGeo);
+ /**
+ Switches interposing in event loop of all current child widgets off.
+ @short Switches interposing in event loop of all current child widgets off.
+ */
+ public native void removeEventFilterForAllChildren();
+ /**
+ Internally used for setting an ID for the 'Window' menu entry
+ @short Internally used for setting an ID for the 'Window' menu entry
+ */
+ public native void setWindowMenuID(int id);
+ /**
+ Sets the minimum size of the widget to w by h pixels.
+ It extends it base clase method in a way that the minimum size of
+ its childframe (if there is one) will be set, additionally.
+ @short Sets the minimum size of the widget to w by h pixels.
+ */
+ public native void setMinimumSize(int minw, int minh);
+ /**
+ Sets the maximum size of the widget to w by h pixels.
+ It extends it base clase method in a way that the maximum size of
+ its childframe (if there is one) will be set, additionally.
+ @short Sets the maximum size of the widget to w by h pixels.
+ */
+ public native void setMaximumSize(int maxw, int maxh);
+ /**
+ Returns if this is added as MDI tool-view
+ @short Returns if this is added as MDI tool-view
+ */
+ public native boolean isToolView();
+ /**
+ Remember the current time
+ @short Remember the current time
+ */
+ public native void updateTimeStamp();
+ /**
+ Recall a previously remembered time, i.e. the value of m_time
+ @short Recall a previously remembered time, i.
+ */
+ public native Calendar getTimeStamp();
+ /**
+ Attaches this window to the Mdi manager.
+ It calls the KMdiMainFrm attachWindow function , so if you have a pointer
+ to this KMdiMainFrm you'll be faster calling that function.
+ @short Attaches this window to the Mdi manager.
+ */
+ public native void attach();
+ /**
+ Detaches this window from the Mdi manager.
+ It calls the KMdiMainFrm detachWindow function , so if you have a pointer
+ to this KMdiMainFrm you'll be faster calling that function.
+ @short Detaches this window from the Mdi manager.
+ */
+ public native void detach();
+ /**
+ Mimimizes the MDI view. If attached, the covering childframe widget is minimized (only a mini widget
+ showing the caption bar and the system buttons will remain visible). If detached, it will use the
+ minimize of the underlying system ( QWidget.showMinimized ).
+ @short Mimimizes the MDI view.
+ */
+ public native void minimize();
+ /**
+ Maximizes the MDI view. If attached, this widget will fill the whole MDI view area widget. The system buttons
+ move to the main menubar (if set by KMdiMainFrm.setMenuForSDIModeSysButtons ).
+ If detached, it will use the minimize of the underlying system ( QWidget.showMaximized ).
+ @short Maximizes the MDI view.
+ */
+ public native void maximize();
+ /**
+ Restores this window to its normal size. Also known as 'normalize'.
+ @short Restores this window to its normal size.
+ */
+ public native void restore();
+ /**
+ Internally called, if KMdiMainFrm.attach is called.
+ Actually, only the caption of the covering childframe is set.
+ @short Internally called, if KMdiMainFrm.attach is called.
+ */
+ public native void youAreAttached(KMdiChildFrm lpC);
+ /**
+ Internally called, if KMdiMainFrm.detach is called.
+ Some things for going toplevel will be done here.
+ @short Internally called, if KMdiMainFrm.detach is called.
+ */
+ public native void youAreDetached();
+ /**
+ Called if someone click on the "Window" menu item for this child frame window
+ @short Called if someone click on the "Window" menu item for this child frame window
+ */
+ public native void slot_clickedInWindowMenu();
+ /**
+ Called if someone click on the "Dock/Undock..." menu item for this child frame window
+ @short Called if someone click on the "Dock/Undock.
+ */
+ public native void slot_clickedInDockMenu();
+ /**
+ Calls QWidget.show but also for it's parent widget if attached
+ @short Calls QWidget.show but also for it's parent widget if attached
+ */
+ public native void show();
+ /**
+ Calls QWidget.hide() or it's parent widget hide() if attached
+ @short Calls QWidget.hide() or it's parent widget hide() if attached
+ */
+ public native void hide();
+ /**
+ Calls QWidget.raise() or it's parent widget raise() if attached
+ @short Calls QWidget.raise() or it's parent widget raise() if attached
+ */
+ public native void raise();
+ /**
+ Overridden from its base class method. Emits a signal KMdiChildView.isMinimizedNow , additionally.
+ Note that this method is not used by an external windows manager call on system minimizing.
+ @short Overridden from its base class method.
+ */
+ public native void showMinimized();
+ /**
+ Overridden from its base class method. Emits a signal KMdiChildView.isMaximizedNow , additionally.
+ Note that this method is not used by an external windows manager call on system maximizing.
+ @short Overridden from its base class method.
+ */
+ public native void showMaximized();
+ /**
+ Overridden from its base class method. Emits a signal KMdiChildView.isRestoredNow , additionally.
+ Note that this method is not used by an external windows manager call on system normalizing.
+ @short Overridden from its base class method.
+ */
+ public native void showNormal();
+ /**
+ Ignores the event and calls KMdiMainFrm.childWindowCloseRequest instead. This is because the
+ mainframe has control over the views. Therefore the MDI view has to request the mainframe for a close.
+ @short Ignores the event and calls KMdiMainFrm.childWindowCloseRequest instead.
+ */
+ protected native void closeEvent(QCloseEvent e);
+ /**
+ It only catches QEvent.KeyPress events there. If a Qt.Key_Tab is pressed, the internal MDI focus
+ handling is called. That means if the last focusable child widget of this is called, it will jump to the
+ first focusable child widget of this.
+ See KMdiChildView.setFirstFocusableChildWidget and KMdiChildView.lastFirstFocusableChildWidget
+ @short It only catches QEvent.KeyPress events there.
+ */
+ public native boolean eventFilter(QObject arg1, QEvent e);
+ /**
+ If attached, the childframe will be activated and the MDI taskbar button will be pressed. Additionally, the
+ memorized old focused child widget of this is focused again.
+ Sends the focusInEventOccurs signal before changing the focus and the
+ gotFocus signal after changing the focus.
+ @short If attached, the childframe will be activated and the MDI taskbar button will be pressed.
+ */
+ protected native void focusInEvent(QFocusEvent e);
+ /**
+ Send the lostFocus signal
+ @short Send the lostFocus signal
+ */
+ protected native void focusOutEvent(QFocusEvent e);
+ /**
+ Internally used for the minimize/maximize/restore mechanism when in attach mode.
+ @short Internally used for the minimize/maximize/restore mechanism when in attach mode.
+ */
+ protected native void resizeEvent(QResizeEvent e);
+ protected native void trackIconAndCaptionChanges(QWidget view);
+ protected native void slot_childDestroyed();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiChildViewSignals.java b/kdejava/koala/org/kde/koala/KMdiChildViewSignals.java
new file mode 100644
index 00000000..9531d399
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiChildViewSignals.java
@@ -0,0 +1,115 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QCloseEvent;
+import org.kde.qt.QPixmap;
+import java.util.Calendar;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+public interface KMdiChildViewSignals {
+ /**
+ Internally used by KMdiChildView.attach to send it as command to the mainframe.
+ @short Internally used by KMdiChildView.attach to send it as command to the mainframe.
+ */
+ void attachWindow(KMdiChildView arg1, boolean arg2);
+ /**
+ Internally used by KMdiChildView.detach to send it as command to the mainframe.
+ @short Internally used by KMdiChildView.detach to send it as command to the mainframe.
+ */
+ void detachWindow(KMdiChildView arg1, boolean arg2);
+ /**
+ Is sent when this MDI child view is going to receive focus (before actually changing the focus).
+ Internally used to send information to the mainframe that this MDI child view is focused.
+ See KMdiChildView.focusInEvent
+ @short Is sent when this MDI child view is going to receive focus (before actually changing the focus).
+ */
+ void focusInEventOccurs(KMdiChildView arg1);
+ /**
+ Is sent when this MDI child has received the focus (after actually changing the focus).
+ See KMdiChildView.focusInEvent
+ @short Is sent when this MDI child has received the focus (after actually changing the focus).
+ */
+ void gotFocus(KMdiChildView arg1);
+ /**
+ Is sent when this MDI child was set to the activate view of all MDI views (after actually changing the focus).
+ See KMdiChildView.activate
+ @short Is sent when this MDI child was set to the activate view of all MDI views (after actually changing the focus).
+ */
+ void activated(KMdiChildView arg1);
+ /** Is sent when this MDI child view has lost the focus (after actually changing the focus).
+ See KMdiChildView.focusOutEvent
+ @short Is sent when this MDI child view has lost the focus (after actually changing the focus).
+ */
+ void lostFocus(KMdiChildView arg1);
+ /** Is sent when this MDI child view was deactivated (after actually changing the focus).
+ See KMdiChildView.focusOutEvent
+ @short Is sent when this MDI child view was deactivated (after actually changing the focus).
+ */
+ void deactivated(KMdiChildView arg1);
+ /**
+ Internally used to send information to the mainframe that this MDI child view wants to be closed.
+ See KMdiChildView.closeEvent and KMdiMainFrm.closeWindow
+ @short Internally used to send information to the mainframe that this MDI child view wants to be closed.
+ */
+ void childWindowCloseRequest(KMdiChildView arg1);
+ /**
+ Emitted when the window caption is changed via KMdiChildView.setCaption or KMdiChildView.setMDICaption
+ @short Emitted when the window caption is changed via KMdiChildView.setCaption or KMdiChildView.setMDICaption
+ */
+ void windowCaptionChanged(String arg1);
+ /**
+ Emitted when the window caption is changed via KMdiChildView.setTabCaption or KMdiChildView.setMDICaption
+ @short Emitted when the window caption is changed via KMdiChildView.setTabCaption or KMdiChildView.setMDICaption
+ */
+ void tabCaptionChanged(String arg1);
+ /**
+ Internally used to send information to the mainframe that this MDI view is maximized now.
+ Usually, the mainframe switches system buttons.
+ @short Internally used to send information to the mainframe that this MDI view is maximized now.
+ */
+ void mdiParentNowMaximized(boolean arg1);
+ /**
+ Is automatically emitted when slot_clickedInWindowMenu is called
+ @short Is automatically emitted when slot_clickedInWindowMenu is called
+ */
+ void clickedInWindowMenu(int arg1);
+ /**
+ Is automatically emitted when slot_clickedInDockMenu is called
+ @short Is automatically emitted when slot_clickedInDockMenu is called
+ */
+ void clickedInDockMenu(int arg1);
+ /**
+ Signals this has been maximized
+ @short Signals this has been maximized
+ */
+ void isMaximizedNow();
+ /**
+ Signals this has been minimized
+ @short Signals this has been minimized
+ */
+ void isMinimizedNow();
+ /**
+ Signals this has been restored (normalized)
+ @short Signals this has been restored (normalized)
+ */
+ void isRestoredNow();
+ /**
+ Signals this has been attached
+ @short Signals this has been attached
+ */
+ void isAttachedNow();
+ /**
+ Signals this has been detached
+ @short Signals this has been detached
+ */
+ void isDetachedNow();
+ void iconUpdated(QWidget arg1, QPixmap arg2);
+ void captionUpdated(QWidget arg1, String arg2);
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiMainFrm.java b/kdejava/koala/org/kde/koala/KMdiMainFrm.java
new file mode 100644
index 00000000..5fae8021
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiMainFrm.java
@@ -0,0 +1,699 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QPoint;
+import org.kde.qt.QSize;
+import java.util.ArrayList;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+/**
+
+ \short Base class for all your special main frames.
+ It contains the child frame area (QMainWindow's central widget) and a child view taskbar
+ for switching the MDI views. Most methods are functions for later overriding.
+ Basically, this class provides functionality for docking/undocking view windows and
+ manages the taskbar. Usually a developer will only need to know about this class and
+ \ref KMdiChildView.
+ \par General usage
+ Your program mainwidget should inherit KMdiMainFrm. Then usually you'll just need
+ addWindow() and removeWindowFromMdi() to control the views.
+ <pre>
+ public class MyMainWindow implements KMdiMainFrm
+ { .... }
+ </pre>
+ to define your main window class and
+ <pre>
+ MyMainWindow mainframe;
+ qApp.setMainWidget(&mainframe);
+ mainframe.addWindow(view1); // put it under MDI control
+ mainframe.addWindow(view2);
+ </pre>
+ when you wish to use your main window class. The above example also adds a few windows
+ to the frame.
+ KMdiMainFrm will provide the "Window" menu needed in common MDI applications. Just
+ insert it in your main menu:
+ <pre>
+ if ( !isFakingSDIApplication() )
+ {
+ menuBar().insertItem( i18n( "&Window" ), windowMenu() );
+ }
+ </pre>
+ To synchronize the positions of the MDI control buttons inserted in your mainmenu:
+ <pre>
+ void B_MainModuleWidget.initMenuBar()
+ {
+ setMenuForSDIModeSysButtons( menuBar() );
+ }
+ ...
+ void B_MainModuleWidget.resizeEvent ( QResizeEvent e )
+ {
+ KMdiMainFrm.resizeEvent( e );
+ setSysButtonsAtMenuPosition();
+ }
+ </pre>
+ \par Dynamic mode switching
+ Dynamic switching of the MDI mode can be done via the following functions:
+ - switchToChildframeMode()
+ - switchToToplevelMode()
+ - switchToTabPageMode()
+ - switchToIDEAlMode()
+ The MDI mode can be gotten using mdiMode(). If you need to fake the look of an SDI application
+ use fakeSDIApplication() to fake it and isFakingSDIApplication() to query whether or not an SDI
+ interface is being faked.
+ You can dynamically change the shape of the attached MDI views using setFrameDecorOfAttachedViews().
+ Additionally, here's a hint how to restore the mainframe's settings from config file:
+ <pre>
+ // restore MDI mode (toplevel, childframe, tabpage)
+ int mdiMode = config.readIntEntry( "mainmodule session", "MDI mode", KMdi.ChildframeMode);
+ switch (mdiMode) {
+ case KMdi.ToplevelMode:
+ {
+ int childFrmModeHt = config.readIntEntry( "mainmodule session", "Childframe mode height", desktop().height() - 50);
+ mainframe.resize( m_pMdiMainFrm.width(), childFrmModeHt);
+ mainframe.switchToToplevelMode();
+ }
+ break;
+ case KMdi.ChildframeMode:
+ break;
+ case KMdi.TabPageMode:
+ {
+ int childFrmModeHt = m_pCfgFileManager.readIntEntry( "mainmodule session", "Childframe mode height", desktop().height() - 50);
+ mainframe.resize( m_pMdiMainFrm.width(), childFrmModeHt);
+ mainframe.switchToTabPageMode();
+ }
+ break;
+ default:
+ break;
+ }
+ // restore a possible maximized Childframe mode
+ boolean maxChildFrmMode = config.readBoolEntry( "mainmodule session", "maximized childframes", true);
+ mainframe.setEnableMaximizedChildFrmMode(maxChildFrmMode);
+ </pre>
+ The maximized-Childframe mode means that currently all views are maximized in Childframe mode's application desktop.
+ \par Managing views
+ This class provides placing algorithms in Childframe mode. The following is a list of the window placement functions
+ - tilePragma() - Tile the windows and allow them to overlap
+ - tileAnodine() - Tile the windows but don't allow them to overlap
+ - tileVertically() - Tile the windows vertically
+ - cascadeWindows() - cascade windows
+ - cascadeMaximized() - cascade windows and maximize their viewing area
+ - expandVertical() - expand all the windows to use the most amount of vertical space
+ - expandHorizontal() - expand all the windows to use the most amount of horizontal space
+ activateView(KMdiChildView) and activateView(int index) set the appropriate MDI child view as the active
+ one. It will be raised, will get an active MDI frame and will get the focus. Call activeView() to find out what the
+ current MDI view is.
+ Use detachWindow() and attachWindow() for docking the MDI views to desktop and back.
+ Connect accels of your program with activatePrevWin(), activateNextWin() and activateView(int index).
+ Note: KMdiChildViews can be added in 2 meanings: Either as a normal child view (usually containing
+ user document views) or as a tool-view (usually containing status, info or control widgets).
+ The tool-views can be added as floating dockwidgets or as stay-on-top desktop windows in tool style.
+ Also, pay attention to the fact that when you click on the close button of MDI views that their
+ close event should be redirected to closeWindow(). Otherwise the mainframe class will
+ not get noticed about the deleted view and a dangling pointer will remain in the MDI control. The
+ closeWindow() or the removeWindowFromMdi() method is for that issue. The difference is closeWindow()
+ deletes the view object. So if your application wants to control that by itself, call removeWindowFromMdi()
+ and call delete by yourself. See also KMdiChildView.closeEvent() for that issue.
+ Here's an example how you can suggest things for the adding of views to the MDI control via flags:
+ <pre>
+ m_mapOfMdiWidgets.insert( pWnd, mh );
+ unsigned int mdiFlags = KMdi.StandardAdd;
+ if ( !show )
+ mdiFlags |= KMdi.Hide;
+ if ( !attach )
+ mdiFlags |= KMdi.Detach;
+ if ( minimize )
+ mdiFlags |= KMdi.Minimize;
+ if ( bToolWindow)
+ mdiFlags |= KMdi.ToolWindow;
+ if ( m_pMdiMainFrm.isFakingSDIApplication() )
+ {
+ if ( attach ) //fake an SDI app
+ mdiFlags |= KMdi.Maximize;
+ }
+ else
+ {
+ m_pMdiMainFrm.addWindow( pWnd, QPoint(20, 20), KMdi.AddWindowFlags(mdiFlags));
+ return;
+ }
+ m_pMdiMainFrm.addWindow( pWnd, KMdi.AddWindowFlags(mdiFlags));
+ </pre>
+ See {@link KMdiMainFrmSignals} for signals emitted by KMdiMainFrm
+ @short \short Base class for all your special main frames.
+
+*/
+public class KMdiMainFrm extends DockMainWindow {
+ protected KMdiMainFrm(Class dummy){super((Class) null);}
+ public static final int DocumentView = 0;
+ public static final int ToolView = 1;
+ public static final int AnyView = 2;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ public KMdiMainFrm(QWidget parentWidget, String name, int mdiMode, int flags) {
+ super((Class) null);
+ newKMdiMainFrm(parentWidget,name,mdiMode,flags);
+ }
+ private native void newKMdiMainFrm(QWidget parentWidget, String name, int mdiMode, int flags);
+ public KMdiMainFrm(QWidget parentWidget, String name, int mdiMode) {
+ super((Class) null);
+ newKMdiMainFrm(parentWidget,name,mdiMode);
+ }
+ private native void newKMdiMainFrm(QWidget parentWidget, String name, int mdiMode);
+ public KMdiMainFrm(QWidget parentWidget, String name) {
+ super((Class) null);
+ newKMdiMainFrm(parentWidget,name);
+ }
+ private native void newKMdiMainFrm(QWidget parentWidget, String name);
+ public KMdiMainFrm(QWidget parentWidget) {
+ super((Class) null);
+ newKMdiMainFrm(parentWidget);
+ }
+ private native void newKMdiMainFrm(QWidget parentWidget);
+ /**
+ Control whether or not the standard MDI menu is displayed
+ when a context menu is displayed
+ @short Control whether or not the standard MDI menu is displayed when a context menu is displayed
+ */
+ public native void setStandardMDIMenuEnabled(boolean showModeMenu);
+ public native void setStandardMDIMenuEnabled();
+ public native void setManagedDockPositionModeEnabled(boolean enabled);
+ /**
+ Returns whether the application's MDI views are in maximized state or not.
+ @short Returns whether the application's MDI views are in maximized state or not.
+ */
+ public native boolean isInMaximizedChildFrmMode();
+ /**
+ Returns the MDI mode. This can be one of the enumerations KMdi.MdiMode.
+ @short Returns the MDI mode.
+ */
+ public native int mdiMode();
+ /**
+ Returns the focused attached MDI view.
+ @short Returns the focused attached MDI view.
+ */
+ public native KMdiChildView activeWindow();
+ /**
+ Returns a popup menu filled according to the MDI view state. You can override this
+ method to insert additional entries there. The popup menu is usually popuped when the user
+ clicks with the right mouse button on a taskbar entry. The default entries are:
+ Undock/Dock, Restore/Maximize/Minimize, Close and an empty sub-popup ( windowPopup() )
+ menu called Operations.
+ @short Returns a popup menu filled according to the MDI view state.
+ */
+ public native QPopupMenu taskBarPopup(KMdiChildView pWnd, boolean bIncludeWindowPopup);
+ public native QPopupMenu taskBarPopup(KMdiChildView pWnd);
+ /**
+ Returns a popup menu with only a title "Window". You can fill it with own operations entries
+ on the MDI view. This popup menu is inserted as last menu item in taskBarPopup() .
+ @short Returns a popup menu with only a title "Window".
+ */
+ public native QPopupMenu windowPopup(KMdiChildView pWnd, boolean bIncludeTaskbarPopup);
+ public native QPopupMenu windowPopup(KMdiChildView pWnd);
+ /**
+ Called in the constructor (forces a resize of all MDI views)
+ @short Called in the constructor (forces a resize of all MDI views)
+ */
+ public native void applyOptions();
+ /**
+ Returns the KMdiChildView belonging to the given caption string.
+ @short Returns the KMdiChildView belonging to the given caption string.
+ */
+ public native KMdiChildView findWindow(String caption);
+ /**
+ Returns whether this MDI child view is under MDI control (using addWindow() ) or not.
+ @short Returns whether this MDI child view is under MDI control (using addWindow() ) or not.
+ */
+ public native boolean windowExists(KMdiChildView pWnd, int as);
+ /**
+ Catches certain Qt events and processes it here.
+ Currently, here this catches only the KMdiViewCloseEvent (a KMdi user event) which is sent
+ from itself in childWindowCloseRequest() right after a KMdiChildView.closeEvent() .
+ The reason for this event to itself is simple: It just wants to break the function call stack.
+ It continues the processing with calling closeWindow() .
+ You see, a close() is translated to a closeWindow() .
+ It is necessary that the main frame has to start an MDI view close action because it must
+ remove the MDI view from MDI control, additionally.
+ This method calls QMainWindow.event , additionally.
+ @short Catches certain Qt events and processes it here.
+ */
+ public native boolean event(QEvent e);
+ /**
+ If there's a main menubar given, it will create the 4 maximize mode buttons there (undock, minimize, restore, close).
+ @short If there's a main menubar given, it will create the 4 maximize mode buttons there (undock, minimize, restore, close).
+ */
+ public native void setSysButtonsAtMenuPosition();
+ /**
+ Returns the height of the taskbar.
+ @short Returns the height of the taskbar.
+ */
+ public native int taskBarHeight();
+ /**
+ Sets an offset value that is used on detachWindow() . The undocked window
+ is visually moved on the desktop by this offset.
+ @short Sets an offset value that is used on detachWindow() .
+ */
+ public native void setUndockPositioningOffset(QPoint offset);
+ /**
+ If you don't want to know about the inner structure of the KMdi system, you can use
+ this iterator to handle with the MDI view list in a more abstract way.
+ The iterator hides what special data structure is used in KMdi.
+ @short If you don't want to know about the inner structure of the KMdi system, you can use this iterator to handle with the MDI view list in a more abstract way.
+ */
+ // KMdiIterator<KMdiChildView*>* createIterator(); >>>> NOT CONVERTED
+ /**
+ Deletes an KMdiIterator created in the KMdi library (needed for the windows dll problem).
+ @short Deletes an KMdiIterator created in the KMdi library (needed for the windows dll problem).
+ */
+ // void deleteIterator(KMdiIterator<KMdiChildView*>* arg1); >>>> NOT CONVERTED
+ /**
+ Returns a popup menu that contains the MDI controlled view list.
+ Additionally, this menu provides some placing actions for these views.
+ Usually, you insert this popup menu in your main menubar as "Window" menu.
+ @short Returns a popup menu that contains the MDI controlled view list.
+ */
+ public native QPopupMenu windowMenu();
+ /**
+ Sets a background color for the MDI view area widget.
+ @short Sets a background color for the MDI view area widget.
+ */
+ public native void setBackgroundColor(QColor c);
+ /**
+ Sets a background pixmap for the MDI view area widget.
+ @short Sets a background pixmap for the MDI view area widget.
+ */
+ public native void setBackgroundPixmap(QPixmap pm);
+ /**
+ Sets a size that is used as the default size for a newly to the MDI system added KMdiChildView .
+ By default this size is 600x400. So all non-resized added MDI views appear in that size.
+ @short Sets a size that is used as the default size for a newly to the MDI system added KMdiChildView .
+ */
+ public native void setDefaultChildFrmSize(QSize sz);
+ /**
+ Returns the default size for a newly added KMdiChildView. See setDefaultChildFrmSize() .
+ @short Returns the default size for a newly added KMdiChildView.
+ */
+ public native QSize defaultChildFrmSize();
+ /**
+ Do nothing when in Toplevel mode
+ @short Do nothing when in Toplevel mode
+ */
+ public native void setMinimumSize(int minw, int minh);
+ /**
+ Returns the Childframe mode height of this. Makes only sense when in Toplevel mode.
+ @short Returns the Childframe mode height of this.
+ */
+ public native int childFrameModeHeight();
+ /**
+ Tells the MDI system a QMenu where it can insert buttons for
+ the system menu, undock, minimize, restore actions.
+ If no such menu is given, KMdi simply overlays the buttons
+ at the upper right-hand side of the main widget.
+ @short Tells the MDI system a QMenu where it can insert buttons for the system menu, undock, minimize, restore actions.
+ */
+ public native void setMenuForSDIModeSysButtons(KMenuBar menuBar);
+ public native void setMenuForSDIModeSysButtons();
+ /**
+ An SDI application user interface is faked:
+
+ <li>
+ an opened view is always maximized
+ </li>
+
+ <li>
+ buttons for maximized childframe mode aren't inserted in the main menubar
+ </li>
+
+ <li>
+ taskbar and windowmenu are not created/updated
+
+ </li> @short An SDI application user interface is faked:
+ */
+ public native void fakeSDIApplication();
+ /**
+ @return if we are faking an SDI application (fakeSDIApplication())
+
+ @short
+ */
+ public native boolean isFakingSDIApplication();
+ public native boolean eventFilter(QObject arg1, QEvent e);
+ // void findRootDockWidgets(QPtrList<KDockWidget>* arg1,QValueList<QRect>* arg2); >>>> NOT CONVERTED
+ /** We're switching something. @short We're switching something.
+ */
+ public native void setSwitching(boolean switching);
+ public native boolean switching();
+ /**
+ addWindow demands a KMdiChildView. This method wraps every QWidget in such an object and
+ this way you can put every widget under MDI control.
+ @short addWindow demands a KMdiChildView.
+ */
+ public native KMdiChildView createWrapper(QWidget view, String name, String shortName);
+ /**
+ Adds a KMdiChildView to the MDI system. The main frame takes control of it.
+ \param pWnd the parent view.
+ \param flags the flags for the view such as:
+ <li>whether</li> the view should be attached or detached.
+ <li>whether</li> the view should be shown or hidden
+ <li>whether</li> the view should be maximized, minimized or restored (normalized)
+ <li>whether</li> the view should be added as tool view (stay-on-top and toplevel) or added as document-type view.
+ @short Adds a KMdiChildView to the MDI system.
+ */
+ public native void addWindow(KMdiChildView pWnd, int flags);
+ public native void addWindow(KMdiChildView pWnd);
+ /**
+ Adds a KMdiChildView to the MDI system. The main frame takes control of it.
+ \param pWnd the parent view.
+ \param flags
+ You can specify here whether:
+ <li>the</li> view should be attached or detached.
+ <li>shown</li> or hidden
+ <li>maximized</li>, minimized or restored (normalized)
+ <li>added</li> as tool view (stay-on-top and toplevel) or added as
+ document-type view.
+ \param index the index of the tab we should insert the new tab after.
+ If index == -1 then the tab will just be appended to the end.
+ Using this parameter in childview mode has no effect.
+ \since 3.3
+ @short Adds a KMdiChildView to the MDI system.
+ */
+ public native void addWindow(KMdiChildView pWnd, int flags, int index);
+ /**
+ Adds a KMdiChildView to the MDI system. The main frame takes control of it.
+ \param pWnd the parent view.
+ \param pos move the child view to the specified position
+ \param flags the flags for the view such as:
+ <li>whether</li> the view should be attached or detached.
+ <li>whether</li> the view should be shown or hidden
+ <li>whether</li> the view should be maximized, minimized or restored (normalized)
+ <li>whether</li> the view should be added as tool view (stay-on-top and toplevel) or
+ added as document-type view.
+ @short Adds a KMdiChildView to the MDI system.
+ */
+ public native void addWindow(KMdiChildView pWnd, QPoint pos, int flags);
+ public native void addWindow(KMdiChildView pWnd, QPoint pos);
+ /**
+ Adds a KMdiChildView to the MDI system. The main frame takes control of it.
+ \param pWnd the parent view.
+ \param rectNormal Sets the geometry for this child view
+ \param flags the flags for the view such as:
+ <li>whether</li> the view should be attached or detached.
+ <li>whether</li> the view should be shown or hidden
+ <li>whether</li> the view should be maximized, minimized or restored (normalized)
+ <li>whether</li> the view should be added as tool view (stay-on-top and toplevel) or
+ added as document-type view.
+ @short Adds a KMdiChildView to the MDI system.
+ */
+ public native void addWindow(KMdiChildView pWnd, QRect rectNormal, int flags);
+ public native void addWindow(KMdiChildView pWnd, QRect rectNormal);
+ /**
+ Usually called from addWindow() when adding a tool view window. It reparents the given widget
+ as toplevel and stay-on-top on the application's main widget.
+ @short Usually called from addWindow() when adding a tool view window.
+ */
+ public native KMdiToolViewAccessor addToolWindow(QWidget pWnd, int pos, QWidget pTargetWnd, int percent, String tabToolTip, String tabCaption);
+ public native KMdiToolViewAccessor addToolWindow(QWidget pWnd, int pos, QWidget pTargetWnd, int percent, String tabToolTip);
+ public native KMdiToolViewAccessor addToolWindow(QWidget pWnd, int pos, QWidget pTargetWnd, int percent);
+ public native KMdiToolViewAccessor addToolWindow(QWidget pWnd, int pos, QWidget pTargetWnd);
+ public native KMdiToolViewAccessor addToolWindow(QWidget pWnd, int pos);
+ public native KMdiToolViewAccessor addToolWindow(QWidget pWnd);
+ public native void deleteToolWindow(QWidget pWnd);
+ public native void deleteToolWindow(KMdiToolViewAccessor accessor);
+ /**
+ Using this method you have to use the setWidget method of the access object, and it is very recommendet, that you use
+ the widgetContainer() method for the parent of your newly created widget
+ @short Using this method you have to use the setWidget method of the access object, and it is very recommendet, that you use the widgetContainer() method for the parent of your newly created widget
+ */
+ public native KMdiToolViewAccessor createToolWindow();
+ /**
+ Removes a KMdiChildView from the MDI system and from the main frame`s control.
+ The caller is responsible for deleting the view. If the view is not deleted it will
+ be reparented to 0
+ @short Removes a KMdiChildView from the MDI system and from the main frame`s control.
+ */
+ public native void removeWindowFromMdi(KMdiChildView pWnd);
+ /**
+ Removes a KMdiChildView from the MDI system and from the main frame`s control.
+ Note: The view will be deleted!
+ @short Removes a KMdiChildView from the MDI system and from the main frame`s control.
+ */
+ public native void closeWindow(KMdiChildView pWnd, boolean layoutTaskBar);
+ public native void closeWindow(KMdiChildView pWnd);
+ /**
+ Switches the KMdiTaskBar on and off.
+ @short Switches the KMdiTaskBar on and off.
+ */
+ public native void slot_toggleTaskBar();
+ /**
+ Makes a main frame controlled undocked KMdiChildView docked.
+ Doesn't work on KMdiChildView which aren't added to the MDI system.
+ Use addWindow() for that.
+ @short Makes a main frame controlled undocked KMdiChildView docked.
+ */
+ public native void attachWindow(KMdiChildView pWnd, boolean bShow, boolean bAutomaticResize);
+ public native void attachWindow(KMdiChildView pWnd, boolean bShow);
+ public native void attachWindow(KMdiChildView pWnd);
+ /**
+ Makes a docked KMdiChildView undocked.
+ The view window still remains under the main frame's MDI control.
+ @short Makes a docked KMdiChildView undocked.
+ */
+ public native void detachWindow(KMdiChildView pWnd, boolean bShow);
+ public native void detachWindow(KMdiChildView pWnd);
+ /**
+ Someone wants that the MDI view to be closed. This method sends a KMdiViewCloseEvent to itself
+ to break the function call stack. See also event() .
+ @short Someone wants that the MDI view to be closed.
+ */
+ public native void childWindowCloseRequest(KMdiChildView pWnd);
+ /**
+ Close all views
+ @short Close all views
+ */
+ public native void closeAllViews();
+ /**
+ Iconfiy all views
+ @short Iconfiy all views
+ */
+ public native void iconifyAllViews();
+ /**
+ Closes the view of the active (topchild) window
+ @short Closes the view of the active (topchild) window
+ */
+ public native void closeActiveView();
+ /**
+ Undocks all view windows (unix-like)
+ @short Undocks all view windows (unix-like)
+ */
+ public native void switchToToplevelMode();
+ public native void finishToplevelMode();
+ /**
+ Docks all view windows (Windows-like)
+ @short Docks all view windows (Windows-like)
+ */
+ public native void switchToChildframeMode();
+ public native void finishChildframeMode();
+ /**
+ Docks all view windows (Windows-like)
+ @short Docks all view windows (Windows-like)
+ */
+ public native void switchToTabPageMode();
+ public native void finishTabPageMode();
+ /**
+ Docks all view windows. Toolviews use dockcontainers
+ @short Docks all view windows.
+ */
+ public native void switchToIDEAlMode();
+ public native void finishIDEAlMode(boolean full);
+ public native void finishIDEAlMode();
+ /**
+ Sets the appearance of the toolview tabs.
+ @param flags See KMdi.ToolviewStyle.
+ @short Sets the appearance of the toolview tabs.
+ */
+ public native void setToolviewStyle(int flags);
+ /**
+ @return if the view taskbar should be shown if there are MDI views
+
+ @short
+ */
+ public native boolean isViewTaskBarOn();
+ /**
+ Shows the view taskbar. This should be connected with your "View" menu.
+ @short Shows the view taskbar.
+ */
+ public native void showViewTaskBar();
+ /**
+ Hides the view taskbar. This should be connected with your "View" menu.
+ @short Hides the view taskbar.
+ */
+ public native void hideViewTaskBar();
+ /**
+ Update of the window menu contents.
+ @short Update of the window menu contents.
+ */
+ public native void fillWindowMenu();
+ /**
+ Cascades the windows without resizing them.
+ @short Cascades the windows without resizing them.
+ */
+ public native void cascadeWindows();
+ /**
+ Cascades the windows resizing them to the maximum available size.
+ @short Cascades the windows resizing them to the maximum available size.
+ */
+ public native void cascadeMaximized();
+ /**
+ Maximizes only in vertical direction.
+ @short Maximizes only in vertical direction.
+ */
+ public native void expandVertical();
+ /**
+ Maximizes only in horizontal direction.
+ @short Maximizes only in horizontal direction.
+ */
+ public native void expandHorizontal();
+ /**
+ Tile Pragma
+ @short Tile Pragma
+ */
+ public native void tilePragma();
+ /**
+ Tile Anodine
+ @short Tile Anodine
+ */
+ public native void tileAnodine();
+ /**
+ Tile Vertically
+ @short Tile Vertically
+ */
+ public native void tileVertically();
+ /**
+ If in Childframe mode, we can switch between maximized or restored shown MDI views
+ @short If in Childframe mode, we can switch between maximized or restored shown MDI views
+ */
+ public native void setEnableMaximizedChildFrmMode(boolean bEnable);
+ /**
+ Activates the next open view
+ @short Activates the next open view
+ */
+ public native void activateNextWin();
+ /**
+ Activates the previous open view
+ @short Activates the previous open view
+ */
+ public native void activatePrevWin();
+ /**
+ Activates the view first viewed concerning to the access time.
+ @short Activates the view first viewed concerning to the access time.
+ */
+ public native void activateFirstWin();
+ /**
+ Activates the view last viewed concerning to the access time.
+ @short Activates the view last viewed concerning to the access time.
+ */
+ public native void activateLastWin();
+ /**
+ Activates the view with the tab page index (TabPage mode only)
+ @short Activates the view with the tab page index (TabPage mode only)
+ */
+ public native void activateView(int index);
+ public native void prevToolViewInDock();
+ public native void nextToolViewInDock();
+ /**
+ @return the decoration of the window frame of docked (attached) MDI views
+
+ @short
+ */
+ public static native int frameDecorOfAttachedViews();
+ protected native void resizeEvent(QResizeEvent arg1);
+ /**
+ Creates a new MDI taskbar (showing the MDI views as taskbar entries) and shows it.
+ @short Creates a new MDI taskbar (showing the MDI views as taskbar entries) and shows it.
+ */
+ protected native void createTaskBar();
+ /**
+ Creates the MDI view area and connects some signals and slots with the KMdiMainFrm widget.
+ @short Creates the MDI view area and connects some signals and slots with the KMdiMainFrm widget.
+ */
+ protected native void createMdiManager();
+ /**
+ prevents fillWindowMenu() from m_pWindowMenu.clear(). You have to care for it by yourself.
+ This is useful if you want to add some actions in your overridden fillWindowMenu() method.
+ @short prevents fillWindowMenu() from m_pWindowMenu.clear().
+ */
+ protected native void blockClearingOfWindowMenu(boolean bBlocked);
+ // void findToolViewsDockedToMain(QPtrList<KDockWidget>* arg1,KDockWidget::DockPosition arg2); >>>> NOT CONVERTED
+ // void dockToolViewsIntoContainers(QPtrList<KDockWidget>& arg1,KDockWidget* arg2); >>>> NOT CONVERTED
+ protected native ArrayList prepareIdealToTabs(KDockWidget container);
+ protected native void idealToolViewsToStandardTabs(String[] widgetNames, int pos, int sizee);
+ /** Get tabwidget visibility @short Get tabwidget visibility
+ */
+ protected native int tabWidgetVisibility();
+ /** Set tabwidget visibility @short Set tabwidget visibility
+ */
+ protected native void setTabWidgetVisibility(int arg1);
+ /** Returns the tabwidget used in IDEAl and Tabbed modes. Returns 0 in other modes. @short Returns the tabwidget used in IDEAl and Tabbed modes.
+ */
+ protected native KTabWidget tabWidget();
+ /**
+ Sets the focus to this MDI view, raises it, activates its taskbar button and updates
+ the system buttons in the main menubar when in maximized (Maximize mode).
+ @short Sets the focus to this MDI view, raises it, activates its taskbar button and updates the system buttons in the main menubar when in maximized (Maximize mode).
+ */
+ protected native void activateView(KMdiChildView pWnd);
+ /**
+ Activates the MDI view (see activateView() ) and popups the taskBar popup menu (see taskBarPopup() ).
+ @short Activates the MDI view (see activateView() ) and popups the taskBar popup menu (see taskBarPopup() ).
+ */
+ protected native void taskbarButtonRightClicked(KMdiChildView pWnd);
+ /**
+ Turns the system buttons for maximize mode (SDI mode) off, and disconnects them
+ @short Turns the system buttons for maximize mode (SDI mode) off, and disconnects them
+ */
+ protected native void switchOffMaximizeModeForMenu(KMdiChildFrm oldChild);
+ /**
+ Reconnects the system buttons form maximize mode (SDI mode) with the new child frame
+ @short Reconnects the system buttons form maximize mode (SDI mode) with the new child frame
+ */
+ protected native void updateSysButtonConnections(KMdiChildFrm oldChild, KMdiChildFrm newChild);
+ /**
+ Usually called when the user clicks an MDI view item in the "Window" menu.
+ @short Usually called when the user clicks an MDI view item in the "Window" menu.
+ */
+ protected native void windowMenuItemActivated(int id);
+ /**
+ Usually called when the user clicks an MDI view item in the sub-popup menu "Docking" of the "Window" menu.
+ @short Usually called when the user clicks an MDI view item in the sub-popup menu "Docking" of the "Window" menu.
+ */
+ protected native void dockMenuItemActivated(int id);
+ /**
+ Popups the "Window" menu. See also windowPopup() .
+ @short Popups the "Window" menu.
+ */
+ protected native void popupWindowMenu(QPoint p);
+ /**
+ The timer for main widget moving has elapsed . send drag end to all concerned views.
+ @short The timer for main widget moving has elapsed . send drag end to all concerned views.
+ */
+ protected native void dragEndTimeOut();
+ /**
+ internally used to handle click on view close button (TabPage mode, only)
+ @short internally used to handle click on view close button (TabPage mode, only)
+ */
+ protected native void closeViewButtonPressed();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiMainFrmSignals.java b/kdejava/koala/org/kde/koala/KMdiMainFrmSignals.java
new file mode 100644
index 00000000..e5330772
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiMainFrmSignals.java
@@ -0,0 +1,51 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QPoint;
+import org.kde.qt.QSize;
+import java.util.ArrayList;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+public interface KMdiMainFrmSignals {
+ /**
+ Signals the last attached KMdiChildView has been closed
+ @short Signals the last attached KMdiChildView has been closed
+ */
+ void lastChildFrmClosed();
+ /**
+ Signals the last KMdiChildView (that is under MDI control) has been closed
+ @short Signals the last KMdiChildView (that is under MDI control) has been closed
+ */
+ void lastChildViewClosed();
+ /**
+ Signals that the Toplevel mode has been left
+ @short Signals that the Toplevel mode has been left
+ */
+ void leftTopLevelMode();
+ /**
+ Signals that a child view has been detached (undocked to desktop)
+ @short Signals that a child view has been detached (undocked to desktop)
+ */
+ void childViewIsDetachedNow(QWidget arg1);
+ /** Signals we need to collapse the overlapped containers @short Signals we need to collapse the overlapped containers
+ */
+ void collapseOverlapContainers();
+ /** Signals the MDI mode has been changed @short Signals the MDI mode has been changed
+ */
+ void mdiModeHasBeenChangedTo(int arg1);
+ void viewActivated(KMdiChildView arg1);
+ void viewDeactivated(KMdiChildView arg1);
+ void toggleTop();
+ void toggleLeft();
+ void toggleRight();
+ void toggleBottom();
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiTaskBar.java b/kdejava/koala/org/kde/koala/KMdiTaskBar.java
new file mode 100644
index 00000000..b8eec373
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiTaskBar.java
@@ -0,0 +1,93 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QResizeEvent;
+
+/**
+
+ It's a special kind of QToolBar that acts as taskbar for child views.
+ KMdiTaskBarButtons can be added or removed dynamically.<br>
+ The button sizes are adjusted dynamically, as well.
+ @short Internal class.
+
+*/
+public class KMdiTaskBar extends KToolBar {
+ protected KMdiTaskBar(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor (NoFocus, minimum width = 1, an internal QPtrList of taskbar buttons (autodelete))
+ @short Constructor (NoFocus, minimum width = 1, an internal QPtrList of taskbar buttons (autodelete))
+ */
+ public KMdiTaskBar(KMdiMainFrm parent, int dock) {
+ super((Class) null);
+ newKMdiTaskBar(parent,dock);
+ }
+ private native void newKMdiTaskBar(KMdiMainFrm parent, int dock);
+ /**
+ Add a new KMdiTaskBarButton . The width doesn't change.
+ If there's not enough space, all taskbar buttons will be resized to a new smaller size.
+ Probably button texts must be abbreviated now.
+ @short Add a new KMdiTaskBarButton .
+ */
+ public native KMdiTaskBarButton addWinButton(KMdiChildView win_ptr);
+ /**
+ Removes a KMdiTaskBarButton and deletes it. If the rest of the buttons are smaller
+ than they usually are, all those buttons will be resized in a way that the new free size is used as well.
+ @short Removes a KMdiTaskBarButton and deletes it.
+ */
+ public native void removeWinButton(KMdiChildView win_ptr, boolean haveToLayoutTaskBar);
+ public native void removeWinButton(KMdiChildView win_ptr);
+ /**
+ Returns the neighbor taskbar button of the taskbar button of the MDI view given by parameter
+ bRight specifies the side, of course left is used if bRight is false.
+ @short Returns the neighbor taskbar button of the taskbar button of the MDI view given by parameter bRight specifies the side, of course left is used if bRight is false.
+ */
+ public native KMdiTaskBarButton getNextWindowButton(boolean bRight, KMdiChildView win_ptr);
+ /**
+ Get the button belonging to the MDI view given as parameter.
+ @short Get the button belonging to the MDI view given as parameter.
+ */
+ public native KMdiTaskBarButton getButton(KMdiChildView win_ptr);
+ /**
+ Switch it on or off.
+ @short Switch it on or off.
+ */
+ public native void switchOn(boolean bOn);
+ /**
+ @return whether switched on or off.
+
+ @short
+ */
+ public native boolean isSwitchedOn();
+ /**
+ Pushes the desired taskbar button down (switch on), the old one is released (switched off).
+ Actually it's a radiobutton group behavior.
+ @short Pushes the desired taskbar button down (switch on), the old one is released (switched off).
+ */
+ public native void setActiveButton(KMdiChildView win_ptr);
+ /**
+ Reimplemented from its base class to call layoutTaskBar, additionally.
+ @short Reimplemented from its base class to call layoutTaskBar, additionally.
+ */
+ protected native void resizeEvent(QResizeEvent arg1);
+ /**
+ Checks if all buttons fits into this. If not, it recalculates all button widths
+ in a way that all buttons fits into the taskbar and have got equal width.
+ The text of the buttons will be abbreviated when nessecary, all buttons get a
+ fixed width and show() is called for each one.
+ If one drags the taskbar to a vertical orientation, the button width is set to 80 pixel.
+ @short Checks if all buttons fits into this.
+ */
+ protected native void layoutTaskBar(int taskBarWidth);
+ protected native void layoutTaskBar();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiTaskBarButton.java b/kdejava/koala/org/kde/koala/KMdiTaskBarButton.java
new file mode 100644
index 00000000..86a74b7f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiTaskBarButton.java
@@ -0,0 +1,62 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QPushButton;
+
+/**
+
+ It's a special kind of QPushButton catching mouse clicks.
+ And you have the ability to abbreviate the text that it fits in the button.
+ See {@link KMdiTaskBarButtonSignals} for signals emitted by KMdiTaskBarButton
+ @short Internal class.
+
+*/
+public class KMdiTaskBarButton extends QPushButton {
+ protected KMdiTaskBarButton(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor (sets to toggle button, adds a tooltip (caption) and sets to NoFocus
+ @short Constructor (sets to toggle button, adds a tooltip (caption) and sets to NoFocus
+ */
+ public KMdiTaskBarButton(KMdiTaskBar pTaskBar, KMdiChildView win_ptr) {
+ super((Class) null);
+ newKMdiTaskBarButton(pTaskBar,win_ptr);
+ }
+ private native void newKMdiTaskBarButton(KMdiTaskBar pTaskBar, KMdiChildView win_ptr);
+ /**
+ text() returns the possibly abbreviated text including the dots in it. But actualText() returns the full text.
+ @short text() returns the possibly abbreviated text including the dots in it.
+ */
+ public native String actualText();
+ /**
+ Given the parameter newWidth this function possibly abbreviates the parameter string and sets a new button text.
+ @short Given the parameter newWidth this function possibly abbreviates the parameter string and sets a new button text.
+ */
+ public native void fitText(String arg1, int newWidth);
+ /**
+ Sets the text and avoids any abbreviation. Memorizes that text in m_actualText, too.
+ @short Sets the text and avoids any abbreviation.
+ */
+ public native void setText(String arg1);
+ /**
+ A slot version of setText
+ @short A slot version of setText
+ */
+ public native void setNewText(String arg1);
+ /**
+ Reimplemented from its base class to catch right and left mouse button clicks
+ @short Reimplemented from its base class to catch right and left mouse button clicks
+ */
+ protected native void mousePressEvent(QMouseEvent arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiTaskBarButtonSignals.java b/kdejava/koala/org/kde/koala/KMdiTaskBarButtonSignals.java
new file mode 100644
index 00000000..0c5167df
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiTaskBarButtonSignals.java
@@ -0,0 +1,29 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QMouseEvent;
+
+public interface KMdiTaskBarButtonSignals {
+ /**
+ Emitted when the button has been clicked. Internally connected to setFocus of the according MDI view.
+ @short Emitted when the button has been clicked.
+ */
+ void clicked(KMdiChildView arg1);
+ /**
+ Internally connected with KMdiMainFrm.activateView
+ @short Internally connected with KMdiMainFrm.activateView
+ */
+ void leftMouseButtonClicked(KMdiChildView arg1);
+ /**
+ Internally connected with KMdiMainFrm.taskbarButtonRightClicked
+ @short Internally connected with KMdiMainFrm.taskbarButtonRightClicked
+ */
+ void rightMouseButtonClicked(KMdiChildView arg1);
+ /**
+ Emitted when the button text has changed. Internally connected with KMdiTaskBar.layoutTaskBar
+ @short Emitted when the button text has changed.
+ */
+ void buttonTextChanged(int arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiToolViewAccessor.java b/kdejava/koala/org/kde/koala/KMdiToolViewAccessor.java
new file mode 100644
index 00000000..205facae
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiToolViewAccessor.java
@@ -0,0 +1,31 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+*/
+public class KMdiToolViewAccessor extends QObject {
+ protected KMdiToolViewAccessor(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public native QWidget wrapperWidget();
+ public native QWidget wrappedWidget();
+ public native void place(int pos, QWidget pTargetWnd, int percent);
+ public native void place(int pos, QWidget pTargetWnd);
+ public native void place(int pos);
+ public native void place();
+ public native void placeAndShow(int pos, QWidget pTargetWnd, int percent);
+ public native void placeAndShow(int pos, QWidget pTargetWnd);
+ public native void placeAndShow(int pos);
+ public native void placeAndShow();
+ public native void show();
+ public native void setWidgetToWrap(QWidget widgetToWrap, String tabToolTip, String tabCaption);
+ public native void setWidgetToWrap(QWidget widgetToWrap, String tabToolTip);
+ public native void setWidgetToWrap(QWidget widgetToWrap);
+ public native void hide();
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiViewCloseEvent.java b/kdejava/koala/org/kde/koala/KMdiViewCloseEvent.java
new file mode 100644
index 00000000..2e027618
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiViewCloseEvent.java
@@ -0,0 +1,27 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QCustomEvent;
+
+/**
+
+ This special event is needed because the view has to inform the main frame that it`s being closed.
+ @short Internal class.
+
+*/
+public class KMdiViewCloseEvent extends QCustomEvent {
+ protected KMdiViewCloseEvent(Class dummy){super((Class) null);}
+ public KMdiViewCloseEvent(KMdiChildView pWnd) {
+ super((Class) null);
+ newKMdiViewCloseEvent(pWnd);
+ }
+ private native void newKMdiViewCloseEvent(KMdiChildView pWnd);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiWin32IconButton.java b/kdejava/koala/org/kde/koala/KMdiWin32IconButton.java
new file mode 100644
index 00000000..e1ae1a12
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiWin32IconButton.java
@@ -0,0 +1,38 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QLabel;
+
+/**
+
+ See {@link KMdiWin32IconButtonSignals} for signals emitted by KMdiWin32IconButton
+ @short Internal class, only used on Win32. This class provides a label widget that can process mouse click events.
+
+*/
+public class KMdiWin32IconButton extends QLabel {
+ protected KMdiWin32IconButton(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KMdiWin32IconButton(QWidget parent, String name) {
+ super((Class) null);
+ newKMdiWin32IconButton(parent,name);
+ }
+ private native void newKMdiWin32IconButton(QWidget parent, String name);
+ public KMdiWin32IconButton(QWidget parent) {
+ super((Class) null);
+ newKMdiWin32IconButton(parent);
+ }
+ private native void newKMdiWin32IconButton(QWidget parent);
+ public native void mousePressEvent(QMouseEvent arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMdiWin32IconButtonSignals.java b/kdejava/koala/org/kde/koala/KMdiWin32IconButtonSignals.java
new file mode 100644
index 00000000..08265391
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMdiWin32IconButtonSignals.java
@@ -0,0 +1,11 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+
+public interface KMdiWin32IconButtonSignals {
+ void pressed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMenuBar.java b/kdejava/koala/org/kde/koala/KMenuBar.java
new file mode 100644
index 00000000..9bad37e7
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMenuBar.java
@@ -0,0 +1,94 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QCloseEvent;
+import org.kde.qt.QObject;
+import org.kde.qt.QSize;
+import org.kde.qt.QPainter;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QMenuBar;
+
+/**
+
+ %KDE Style-able menubar.
+ This is required since QMenuBar is currently not handled by
+ QStyle.
+ @author Daniel "Mosfet" Duley.
+
+ @version $Id$
+
+ @short %KDE Style-able menubar.
+
+*/
+public class KMenuBar extends QMenuBar {
+ protected KMenuBar(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KMenuBar(QWidget parent, String name) {
+ super((Class) null);
+ newKMenuBar(parent,name);
+ }
+ private native void newKMenuBar(QWidget parent, String name);
+ public KMenuBar(QWidget parent) {
+ super((Class) null);
+ newKMenuBar(parent);
+ }
+ private native void newKMenuBar(QWidget parent);
+ public KMenuBar() {
+ super((Class) null);
+ newKMenuBar();
+ }
+ private native void newKMenuBar();
+ /**
+ This controls whether or not this menubar will be a top-level
+ bar similar to the way Macintosh handles menubars. This
+ overrides any global config settings.
+ Keep in mind that it is probably a really bad idea to use this
+ unless you really know what you're doing. A feature like a
+ top-level menubar is one that should really be shared by all
+ applications. If your app is the only one with a top-level
+ bar, then things might look very... odd.
+ This is included only for those people that <code>do</code> know that
+ they need to use it.
+ @param top_level If set to true, then this menubar will be a
+ top-level menu
+ @short This controls whether or not this menubar will be a top-level bar similar to the way Macintosh handles menubars.
+ */
+ public native void setTopLevelMenu(boolean top_level);
+ public native void setTopLevelMenu();
+ /**
+ Is our menubar a top-level (Macintosh style) menubar?
+ @return True if it is top-level.
+
+ @short Is our menubar a top-level (Macintosh style) menubar?
+ */
+ public native boolean isTopLevelMenu();
+ public native void setGeometry(QRect r);
+ public native void setGeometry(int x, int y, int w, int h);
+ public native void resize(int w, int h);
+ public native void resize(QSize s);
+ public native void show();
+ public native void setFrameStyle(int arg1);
+ public native void setLineWidth(int arg1);
+ public native void setMargin(int arg1);
+ public native QSize sizeHint();
+ public native void showEvent(QShowEvent arg1);
+ protected native void resizeEvent(QResizeEvent arg1);
+ public native boolean eventFilter(QObject arg1, QEvent arg2);
+ protected native void closeEvent(QCloseEvent arg1);
+ protected native void drawContents(QPainter arg1);
+ protected native void slotReadConfig();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMessageBox.java b/kdejava/koala/org/kde/koala/KMessageBox.java
new file mode 100644
index 00000000..24287cf0
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMessageBox.java
@@ -0,0 +1,944 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QWidget;
+
+/**
+
+ Easy message dialog box.
+ Provides convenience functions for some i18n'ed standard dialogs.
+ The text in message boxes is wrapped automatically. The text may either
+ be plaintext or richtext. If the text is plaintext, a newline-character
+ may be used to indicate the end of a paragraph.
+ @author Waldo Bastian (bastian@kde.org)
+
+ @short Easy message dialog box.
+
+*/
+public class KMessageBox implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KMessageBox(Class dummy){}
+
+ /**
+ Button types.
+ @short Button types.
+ */
+ public static final int Ok = 1;
+ public static final int Cancel = 2;
+ public static final int Yes = 3;
+ public static final int No = 4;
+ public static final int Continue = 5;
+
+ public static final int QuestionYesNo = 1;
+ public static final int WarningYesNo = 2;
+ public static final int WarningContinueCancel = 3;
+ public static final int WarningYesNoCancel = 4;
+ public static final int Information = 5;
+ public static final int Sorry = 7;
+ public static final int Error = 8;
+ public static final int QuestionYesNoCancel = 9;
+
+ public static final int Notify = 1;
+ public static final int AllowLink = 2;
+ public static final int Dangerous = 4;
+ public static final int PlainCaption = 8;
+ public static final int NoExec = 16;
+
+ public KMessageBox() {
+ newKMessageBox();
+ }
+ private native void newKMessageBox();
+ /**
+ Display a simple "question" dialog.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Question").
+ @param buttonYes The text for the first button.
+ The default is i18n("&Yes").
+ @param buttonNo The text for the second button.
+ The default is i18n("&No").
+ @param dontAskAgainName If provided, a checkbox is added with which
+ further confirmation can be turned off.
+ The string is used to lookup and store the setting
+ in the applications config file.
+ The setting is stored in the "Notification Messages" group.
+ If <code>dontAskAgainName</code> starts with a ':' then the setting
+ is stored in the global config file.
+ @param options see OptionsType
+ To be used for questions like "Do you have a printer?"
+ The default button is "Yes". Pressing "Esc" selects "No".
+ @return 'Yes' is returned if the Yes-button is pressed. 'No' is returned
+ if the No-button is pressed.
+
+ @short Display a simple "question" dialog.
+ */
+ public static native int questionYesNo(QWidget parent, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName, int options);
+ public static native int questionYesNo(QWidget parent, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName);
+ public static native int questionYesNo(QWidget parent, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int questionYesNo(QWidget parent, String text, String caption, KGuiItem buttonYes);
+ public static native int questionYesNo(QWidget parent, String text, String caption);
+ public static native int questionYesNo(QWidget parent, String text);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native int questionYesNoWId(long parent_id, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName, int options);
+ public static native int questionYesNoWId(long parent_id, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName);
+ public static native int questionYesNoWId(long parent_id, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int questionYesNoWId(long parent_id, String text, String caption, KGuiItem buttonYes);
+ public static native int questionYesNoWId(long parent_id, String text, String caption);
+ public static native int questionYesNoWId(long parent_id, String text);
+ /**
+ Display a simple "question" dialog.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Question").
+ @param buttonYes The text for the first button.
+ The default is i18n("&Yes").
+ @param buttonNo The text for the second button.
+ The default is i18n("&No").
+ @param dontAskAgainName If provided, a checkbox is added with which
+ further confirmation can be turned off.
+ The string is used to lookup and store the setting
+ in the applications config file.
+ The setting is stored in the "Notification Messages" group.
+ If <code>dontAskAgainName</code> starts with a ':' then the setting
+ is stored in the global config file.
+ @param options see OptionsType
+ To be used for questions like "Do you want to discard the message or save it for later?",
+ The default button is "Yes". Pressing "Esc" selects "Cancel".
+ NOTE: The cancel button will always have the i18n'ed text '&Cancel'.
+ @return 'Yes' is returned if the Yes-button is pressed. 'No' is returned
+ if the No-button is pressed.
+
+ @short Display a simple "question" dialog.
+ */
+ public static native int questionYesNoCancel(QWidget parent, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName, int options);
+ public static native int questionYesNoCancel(QWidget parent, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName);
+ public static native int questionYesNoCancel(QWidget parent, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int questionYesNoCancel(QWidget parent, String text, String caption, KGuiItem buttonYes);
+ public static native int questionYesNoCancel(QWidget parent, String text, String caption);
+ public static native int questionYesNoCancel(QWidget parent, String text);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native int questionYesNoCancelWId(long parent_id, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName, int options);
+ public static native int questionYesNoCancelWId(long parent_id, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName);
+ public static native int questionYesNoCancelWId(long parent_id, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int questionYesNoCancelWId(long parent_id, String text, String caption, KGuiItem buttonYes);
+ public static native int questionYesNoCancelWId(long parent_id, String text, String caption);
+ public static native int questionYesNoCancelWId(long parent_id, String text);
+ /**
+ Display a "question" dialog with a listbox to show information to the user
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param strlist List of strings to be written in the listbox. If the list is
+ empty, it doesn't show any listbox, working as questionYesNo.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Question").
+ @param buttonYes The text for the first button.
+ The default is i18n("&Yes").
+ @param buttonNo The text for the second button.
+ The default is i18n("&No").
+ @param dontAskAgainName If provided, a checkbox is added with which
+ further confirmation can be turned off.
+ The string is used to lookup and store the setting
+ in the applications config file.
+ The setting is stored in the "Notification Messages" group.
+ If <code>dontAskAgainName</code> starts with a ':' then the setting
+ is stored in the global config file.
+ @param options see OptionsType
+ To be used for questions like "Do you really want to delete these files?"
+ And show the user exactly which files are going to be deleted in case
+ he presses "Yes"
+ The default button is "Yes". Pressing "Esc" selects "No".
+ @return 'Yes' is returned if the Yes-button is pressed. 'No' is returned
+ if the No-button is pressed.
+
+ @short Display a "question" dialog with a listbox to show information to the user
+ */
+ public static native int questionYesNoList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName, int options);
+ public static native int questionYesNoList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName);
+ public static native int questionYesNoList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int questionYesNoList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonYes);
+ public static native int questionYesNoList(QWidget parent, String text, String[] strlist, String caption);
+ public static native int questionYesNoList(QWidget parent, String text, String[] strlist);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native int questionYesNoListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName, int options);
+ public static native int questionYesNoListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName);
+ public static native int questionYesNoListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int questionYesNoListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonYes);
+ public static native int questionYesNoListWId(long parent_id, String text, String[] strlist, String caption);
+ public static native int questionYesNoListWId(long parent_id, String text, String[] strlist);
+ /**
+ Display a "warning" dialog.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Warning").
+ @param buttonYes The text for the first button.
+ The default is i18n("&Yes").
+ @param buttonNo The text for the second button.
+ The default is i18n("&No").
+ @param dontAskAgainName If provided, a checkbox is added with which
+ further confirmation can be turned off.
+ The string is used to lookup and store the setting
+ in the applications config file.
+ The setting is stored in the "Notification Messages" group.
+ If <code>dontAskAgainName</code> starts with a ':' then the setting
+ is stored in the global config file.
+ @param options see OptionsType
+ To be used for questions "Shall I update your configuration?"
+ The text should explain the implication of both options.
+ The default button is "No". Pressing "Esc" selects "No".
+ @return <code>Yes</code> is returned if the Yes-button is pressed. <code>No</code> is returned
+ if the No-button is pressed.
+
+ @short Display a "warning" dialog.
+ */
+ public static native int warningYesNo(QWidget parent, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName, int options);
+ public static native int warningYesNo(QWidget parent, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName);
+ public static native int warningYesNo(QWidget parent, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int warningYesNo(QWidget parent, String text, String caption, KGuiItem buttonYes);
+ public static native int warningYesNo(QWidget parent, String text, String caption);
+ public static native int warningYesNo(QWidget parent, String text);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native int warningYesNoWId(long parent_id, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName, int options);
+ public static native int warningYesNoWId(long parent_id, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName);
+ public static native int warningYesNoWId(long parent_id, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int warningYesNoWId(long parent_id, String text, String caption, KGuiItem buttonYes);
+ public static native int warningYesNoWId(long parent_id, String text, String caption);
+ public static native int warningYesNoWId(long parent_id, String text);
+ /**
+ Display a "warning" dialog with a listbox to show information to the user
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param strlist List of strings to be written in the listbox. If the list is
+ empty, it doesn't show any listbox, working as questionYesNo.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Question").
+ @param buttonYes The text for the first button.
+ The default is i18n("&Yes").
+ @param buttonNo The text for the second button.
+ The default is i18n("&No").
+ @param dontAskAgainName If provided, a checkbox is added with which
+ further confirmation can be turned off.
+ The string is used to lookup and store the setting
+ in the applications config file.
+ The setting is stored in the "Notification Messages" group.
+ If <code>dontAskAgainName</code> starts with a ':' then the setting
+ is stored in the global config file.
+ @param options see OptionsType
+ To be used for questions like "Do you really want to delete these files?"
+ And show the user exactly which files are going to be deleted in case
+ he presses "Yes"
+ The default button is "No". Pressing "Esc" selects "No".
+ @return 'Yes' is returned if the Yes-button is pressed. 'No' is returned
+ if the No-button is pressed.
+
+ @short Display a "warning" dialog with a listbox to show information to the user
+ */
+ public static native int warningYesNoList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName, int options);
+ public static native int warningYesNoList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName);
+ public static native int warningYesNoList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int warningYesNoList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonYes);
+ public static native int warningYesNoList(QWidget parent, String text, String[] strlist, String caption);
+ public static native int warningYesNoList(QWidget parent, String text, String[] strlist);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native int warningYesNoListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName, int options);
+ public static native int warningYesNoListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName);
+ public static native int warningYesNoListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int warningYesNoListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonYes);
+ public static native int warningYesNoListWId(long parent_id, String text, String[] strlist, String caption);
+ public static native int warningYesNoListWId(long parent_id, String text, String[] strlist);
+ /**
+ Display a "warning" dialog.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Warning").
+ @param buttonContinue The text for the first button.
+ @param dontAskAgainName If provided, a checkbox is added with which
+ further confirmation can be turned off.
+ The string is used to lookup and store the setting
+ in the applications config file.
+ The setting is stored in the "Notification Messages" group.
+ If <code>dontAskAgainName</code> starts with a ':' then the setting
+ is stored in the global config file.
+ @param options see OptionsType
+ The second button always has the text "Cancel".
+ To be used for questions like "You are about to Print. Are you sure?"
+ the continueButton should then be labeled "Print".
+ The default button is buttonContinue. Pressing "Esc" selects "Cancel".
+ @return <code>Continue</code> is returned if the Continue-button is pressed.
+ <code>Cancel</code> is returned if the Cancel-button is pressed.
+
+ @short Display a "warning" dialog.
+ */
+ public static native int warningContinueCancel(QWidget parent, String text, String caption, KGuiItem buttonContinue, String dontAskAgainName, int options);
+ public static native int warningContinueCancel(QWidget parent, String text, String caption, KGuiItem buttonContinue, String dontAskAgainName);
+ public static native int warningContinueCancel(QWidget parent, String text, String caption, KGuiItem buttonContinue);
+ public static native int warningContinueCancel(QWidget parent, String text, String caption);
+ public static native int warningContinueCancel(QWidget parent, String text);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native int warningContinueCancelWId(long parent_id, String text, String caption, KGuiItem buttonContinue, String dontAskAgainName, int options);
+ public static native int warningContinueCancelWId(long parent_id, String text, String caption, KGuiItem buttonContinue, String dontAskAgainName);
+ public static native int warningContinueCancelWId(long parent_id, String text, String caption, KGuiItem buttonContinue);
+ public static native int warningContinueCancelWId(long parent_id, String text, String caption);
+ public static native int warningContinueCancelWId(long parent_id, String text);
+ /**
+ Display a "warning" dialog with a listbox to show information to the user.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param strlist List of strings to be written in the listbox. If the
+ list is empty, it doesn't show any listbox, working
+ as warningContinueCancel.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Warning").
+ @param buttonContinue The text for the first button.
+ @param dontAskAgainName If provided, a checkbox is added with which
+ further confirmation can be turned off.
+ The string is used to lookup and store the setting
+ in the applications config file.
+ The setting is stored in the "Notification Messages" group.
+ If <code>dontAskAgainName</code> starts with a ':' then the setting
+ is stored in the global config file.
+ @param options see OptionsType
+ The second button always has the text "Cancel".
+ To be used for questions like "You are about to Print. Are you sure?"
+ the continueButton should then be labeled "Print".
+ The default button is buttonContinue. Pressing "Esc" selects "Cancel".
+ @return <code>Continue</code> is returned if the Continue-button is pressed.
+ <code>Cancel</code> is returned if the Cancel-button is pressed.
+
+ @short Display a "warning" dialog with a listbox to show information to the user.
+ */
+ public static native int warningContinueCancelList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonContinue, String dontAskAgainName, int options);
+ public static native int warningContinueCancelList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonContinue, String dontAskAgainName);
+ public static native int warningContinueCancelList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonContinue);
+ public static native int warningContinueCancelList(QWidget parent, String text, String[] strlist, String caption);
+ public static native int warningContinueCancelList(QWidget parent, String text, String[] strlist);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native int warningContinueCancelListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonContinue, String dontAskAgainName, int options);
+ public static native int warningContinueCancelListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonContinue, String dontAskAgainName);
+ public static native int warningContinueCancelListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonContinue);
+ public static native int warningContinueCancelListWId(long parent_id, String text, String[] strlist, String caption);
+ public static native int warningContinueCancelListWId(long parent_id, String text, String[] strlist);
+ /**
+ Display a Yes/No/Cancel "warning" dialog.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Warning").
+ @param buttonYes The text for the first button.
+ The default is i18n("&Yes").
+ @param buttonNo The text for the second button.
+ The default is i18n("&No").
+ @param dontAskAgainName If provided, a checkbox is added with which
+ further questions can be turned off. If turned off
+ all questions will be automatically answered with the
+ last answer (either Yes or No).
+ The string is used to lookup and store the setting
+ in the applications config file.
+ The setting is stored in the "Notification Messages" group.
+ If <code>dontAskAgainName</code> starts with a ':' then the setting
+ is stored in the global config file.
+ @param options see OptionsType
+ To be used for questions "Do you want to save your changes?"
+ The text should explain the implication of choosing 'No'.
+ The default button is "Yes". Pressing "Esc" selects "Cancel"
+ NOTE: The cancel button will always have the i18n'ed text '&Cancel'.
+ @return <code>Yes</code> is returned if the Yes-button is pressed. <code>No</code> is returned
+ if the No-button is pressed. <code>Cancel</code> is retunred if the Cancel-
+ button is pressed.
+
+ @short Display a Yes/No/Cancel "warning" dialog.
+ */
+ public static native int warningYesNoCancel(QWidget parent, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName, int options);
+ public static native int warningYesNoCancel(QWidget parent, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName);
+ public static native int warningYesNoCancel(QWidget parent, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int warningYesNoCancel(QWidget parent, String text, String caption, KGuiItem buttonYes);
+ public static native int warningYesNoCancel(QWidget parent, String text, String caption);
+ public static native int warningYesNoCancel(QWidget parent, String text);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native int warningYesNoCancelWId(long parent_id, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName, int options);
+ public static native int warningYesNoCancelWId(long parent_id, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName);
+ public static native int warningYesNoCancelWId(long parent_id, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int warningYesNoCancelWId(long parent_id, String text, String caption, KGuiItem buttonYes);
+ public static native int warningYesNoCancelWId(long parent_id, String text, String caption);
+ public static native int warningYesNoCancelWId(long parent_id, String text);
+ /**
+ Display a Yes/No/Cancel "warning" dialog with a listbox to show information
+ to the user.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param strlist List of strings to be written in the listbox. If the
+ list is empty, it doesn't show any listbox, working
+ as warningYesNoCancel.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Warning").
+ @param buttonYes The text for the first button.
+ The default is i18n("&Yes").
+ @param buttonNo The text for the second button.
+ The default is i18n("&No").
+ @param dontAskAgainName If provided, a checkbox is added with which
+ further questions can be turned off. If turned off
+ all questions will be automatically answered with the
+ last answer (either Yes or No).
+ The string is used to lookup and store the setting
+ in the applications config file.
+ The setting is stored in the "Notification Messages" group.
+ If <code>dontAskAgainName</code> starts with a ':' then the setting
+ is stored in the global config file.
+ @param options see OptionsType
+ To be used for questions "Do you want to save your changes?"
+ The text should explain the implication of choosing 'No'.
+ The default button is "Yes". Pressing "Esc" selects "Cancel"
+ NOTE: The cancel button will always have the i18n'ed text '&Cancel'.
+ @return <code>Yes</code> is returned if the Yes-button is pressed. <code>No</code> is returned
+ if the No-button is pressed. <code>Cancel</code> is retunred if the Cancel-
+ button is pressed.
+
+ @short Display a Yes/No/Cancel "warning" dialog with a listbox to show information to the user.
+ */
+ public static native int warningYesNoCancelList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName, int options);
+ public static native int warningYesNoCancelList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName);
+ public static native int warningYesNoCancelList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int warningYesNoCancelList(QWidget parent, String text, String[] strlist, String caption, KGuiItem buttonYes);
+ public static native int warningYesNoCancelList(QWidget parent, String text, String[] strlist, String caption);
+ public static native int warningYesNoCancelList(QWidget parent, String text, String[] strlist);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native int warningYesNoCancelListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName, int options);
+ public static native int warningYesNoCancelListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontAskAgainName);
+ public static native int warningYesNoCancelListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int warningYesNoCancelListWId(long parent_id, String text, String[] strlist, String caption, KGuiItem buttonYes);
+ public static native int warningYesNoCancelListWId(long parent_id, String text, String[] strlist, String caption);
+ public static native int warningYesNoCancelListWId(long parent_id, String text, String[] strlist);
+ /**
+ Display an "Error" dialog.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Error").
+ @param options see OptionsType
+ Your program messed up and now it's time to inform the user.
+ To be used for important things like "Sorry, I deleted your hard disk."
+ If your program detects the action specified by the user is somehow
+ not allowed, this should never be reported with error(). Use sorry()
+ instead to explain to the user that this action is not allowed.
+ The default button is "&OK". Pressing "Esc" selects the OK-button.
+ NOTE: The OK button will always have the i18n'ed text '&OK'.
+ @short Display an "Error" dialog.
+ */
+ public static native void error(QWidget parent, String text, String caption, int options);
+ public static native void error(QWidget parent, String text, String caption);
+ public static native void error(QWidget parent, String text);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native void errorWId(long parent_id, String text, String caption, int options);
+ public static native void errorWId(long parent_id, String text, String caption);
+ public static native void errorWId(long parent_id, String text);
+ /**
+ Display an "Error" dialog with a listbox.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param strlist List of strings to be written in the listbox. If the
+ list is empty, it doesn't show any listbox, working
+ as error().
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Error").
+ @param options see OptionsType
+ Your program messed up and now it's time to inform the user.
+ To be used for important things like "Sorry, I deleted your hard disk."
+ If your program detects the action specified by the user is somehow
+ not allowed, this should never be reported with error(). Use sorry()
+ instead to explain to the user that this action is not allowed.
+ The default button is "&OK". Pressing "Esc" selects the OK-button.
+ NOTE: The OK button will always have the i18n'ed text '&OK'.
+ @short Display an "Error" dialog with a listbox.
+ */
+ public static native void errorList(QWidget parent, String text, String[] strlist, String caption, int options);
+ public static native void errorList(QWidget parent, String text, String[] strlist, String caption);
+ public static native void errorList(QWidget parent, String text, String[] strlist);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native void errorListWId(long parent_id, String text, String[] strlist, String caption, int options);
+ public static native void errorListWId(long parent_id, String text, String[] strlist, String caption);
+ public static native void errorListWId(long parent_id, String text, String[] strlist);
+ /**
+ Displays an "Error" dialog with a "Details >>" button.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param details Detailed message string.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Error").
+ @param options see OptionsType
+ Your program messed up and now it's time to inform the user.
+ To be used for important things like "Sorry, I deleted your hard disk."
+ The <code>details</code> message can conatin additional information about
+ the problem and can be shown on request to advanced/interested users.
+ If your program detects the action specified by the user is somehow
+ not allowed, this should never be reported with error(). Use sorry()
+ instead to explain to the user that this action is not allowed.
+ The default button is "&OK". Pressing "Esc" selects the OK-button.
+ NOTE: The OK button will always have the i18n'ed text '&OK'.
+ @short Displays an "Error" dialog with a "Details >>" button.
+ */
+ public static native void detailedError(QWidget parent, String text, String details, String caption, int options);
+ public static native void detailedError(QWidget parent, String text, String details, String caption);
+ public static native void detailedError(QWidget parent, String text, String details);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native void detailedErrorWId(long parent_id, String text, String details, String caption, int options);
+ public static native void detailedErrorWId(long parent_id, String text, String details, String caption);
+ public static native void detailedErrorWId(long parent_id, String text, String details);
+ /**
+ Like detailedError
+ This function will return immediately, the messagebox will be shown
+ once the application enters an event loop and no other messagebox
+ is being shown.
+ Note that if the parent gets deleted, the messagebox will not be
+ shown.
+ @short Like detailedError
+ */
+ public static native void queuedDetailedError(QWidget parent, String text, String details, String caption);
+ public static native void queuedDetailedError(QWidget parent, String text, String details);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native void queuedDetailedErrorWId(long parent_id, String text, String details, String caption);
+ public static native void queuedDetailedErrorWId(long parent_id, String text, String details);
+ /**
+ Display an "Sorry" dialog.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Sorry").
+ @param options see OptionsType
+ Either your program messed up and asks for understanding
+ or your user did something stupid.
+ To be used for small problems like
+ "Sorry, I can't find the file you specified."
+ The default button is "&OK". Pressing "Esc" selects the OK-button.
+ NOTE: The ok button will always have the i18n'ed text '&OK'.
+ @short Display an "Sorry" dialog.
+ */
+ public static native void sorry(QWidget parent, String text, String caption, int options);
+ public static native void sorry(QWidget parent, String text, String caption);
+ public static native void sorry(QWidget parent, String text);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native void sorryWId(long parent_id, String text, String caption, int options);
+ public static native void sorryWId(long parent_id, String text, String caption);
+ public static native void sorryWId(long parent_id, String text);
+ /**
+ Displays a "Sorry" dialog with a "Details >>" button.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param details Detailed message string.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Sorry").
+ @param options see OptionsType
+ Either your program messed up and asks for understanding
+ or your user did something stupid.
+ To be used for small problems like
+ "Sorry, I can't find the file you specified."
+ And then <code>details</code> can contain something like
+ "foobar.txt was not found in any of
+ the following directories:
+ /usr/bin,/usr/local/bin,/usr/sbin"
+ The default button is "&OK". Pressing "Esc" selects the OK-button.
+ NOTE: The ok button will always have the i18n'ed text '&OK'.
+ @short Displays a "Sorry" dialog with a "Details >>" button.
+ */
+ public static native void detailedSorry(QWidget parent, String text, String details, String caption, int options);
+ public static native void detailedSorry(QWidget parent, String text, String details, String caption);
+ public static native void detailedSorry(QWidget parent, String text, String details);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native void detailedSorryWId(long parent_id, String text, String details, String caption, int options);
+ public static native void detailedSorryWId(long parent_id, String text, String details, String caption);
+ public static native void detailedSorryWId(long parent_id, String text, String details);
+ /**
+ Display an "Information" dialog.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Information").
+ @param dontShowAgainName If provided, a checkbox is added with which
+ further notifications can be turned off.
+ The string is used to lookup and store the setting
+ in the applications config file.
+ The setting is stored in the "Notification Messages" group.
+ @param options see OptionsType
+ Your program wants to tell the user something.
+ To be used for things like:
+ "Your bookmarks have been rearranged."
+ The default button is "&OK". Pressing "Esc" selects the OK-button.
+ NOTE: The OK button will always have the i18n'ed text '&OK'.
+ @short Display an "Information" dialog.
+ */
+ public static native void information(QWidget parent, String text, String caption, String dontShowAgainName, int options);
+ public static native void information(QWidget parent, String text, String caption, String dontShowAgainName);
+ public static native void information(QWidget parent, String text, String caption);
+ public static native void information(QWidget parent, String text);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native void informationWId(long parent_id, String text, String caption, String dontShowAgainName, int options);
+ public static native void informationWId(long parent_id, String text, String caption, String dontShowAgainName);
+ public static native void informationWId(long parent_id, String text, String caption);
+ public static native void informationWId(long parent_id, String text);
+ /**
+ Display an "Information" dialog with a listbox.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param strlist List of strings to be written in the listbox. If the
+ list is empty, it doesn't show any listbox, working
+ as information.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("Information").
+ @param dontShowAgainName If provided, a checkbox is added with which
+ further notifications can be turned off.
+ The string is used to lookup and store the setting
+ in the applications config file.
+ The setting is stored in the "Notification Messages" group.
+ @param options see OptionsType
+ Your program wants to tell the user something.
+ To be used for things like:
+ "The following bookmarks have been rearranged:"
+ The default button is "&OK". Pressing "Esc" selects the OK-button.
+ NOTE: The OK button will always have the i18n'ed text '&OK'.
+ @short Display an "Information" dialog with a listbox.
+ */
+ public static native void informationList(QWidget parent, String text, String[] strlist, String caption, String dontShowAgainName, int options);
+ public static native void informationList(QWidget parent, String text, String[] strlist, String caption, String dontShowAgainName);
+ public static native void informationList(QWidget parent, String text, String[] strlist, String caption);
+ public static native void informationList(QWidget parent, String text, String[] strlist);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native void informationListWId(long parent_id, String text, String[] strlist, String caption, String dontShowAgainName, int options);
+ public static native void informationListWId(long parent_id, String text, String[] strlist, String caption, String dontShowAgainName);
+ public static native void informationListWId(long parent_id, String text, String[] strlist, String caption);
+ public static native void informationListWId(long parent_id, String text, String[] strlist);
+ /**
+ Enable all messages which have been turned off with the
+ <code>dontShowAgainName</code> feature.
+ @short Enable all messages which have been turned off with the <code>dontShowAgainName</code> feature.
+ */
+ public static native void enableAllMessages();
+ /**
+ Re-enable a specific <code>dontShowAgainName</code> messages that had
+ previously been turned off.
+ @short Re-enable a specific <code>dontShowAgainName</code> messages that had previously been turned off.
+ @see #saveDontShowAgainYesNo
+ @see #saveDontShowAgainContinue
+ */
+ public static native void enableMessage(String dontShowAgainName);
+ /**
+ Display an "About" dialog.
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param text Message string.
+ @param caption Message box title. The application name is added to
+ the title. The default title is i18n("About \<appname\>").
+ @param options see OptionsType
+ Your program wants to show some general information about the application
+ like the authors's names and email addresses.
+ The default button is "&OK".
+ NOTE: The ok button will always have the i18n'ed text '&OK'.
+ @short Display an "About" dialog.
+ */
+ public static native void about(QWidget parent, String text, String caption, int options);
+ public static native void about(QWidget parent, String text, String caption);
+ public static native void about(QWidget parent, String text);
+ /**
+ Alternate method to show a messagebox:
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param type type of message box: QuestionYesNo, WarningYesNo, WarningContinueCancel...
+ @param text Message string.
+ @param caption Message box title.
+ @param buttonYes The text for the first button.
+ The default is i18n("&Yes").
+ @param buttonNo The text for the second button.
+ The default is i18n("&No").
+ @param dontShowAskAgainName If provided, a checkbox is added with which
+ further questions/informations can be turned off. If turned off
+ all questions will be automatically answered with the
+ last answer (either Yes or No), if the message box needs an answer.
+ The string is used to lookup and store the setting
+ in the applications config file.
+ @param options see OptionsType
+ Note: for ContinueCancel, buttonYes is the continue button and buttonNo is unused.
+ and for Information, none is used.
+ @return a button code, as defined in KMessageBox.
+
+ @short Alternate method to show a messagebox:
+ */
+ public static native int messageBox(QWidget parent, int type, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontShowAskAgainName, int options);
+ public static native int messageBox(QWidget parent, int type, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontShowAskAgainName);
+ /**
+ Alternate method to show a messagebox:
+ @param parent If <code>parent</code> is 0, then the message box becomes an
+ application-global modal dialog box. If <code>parent</code> is a
+ widget, the message box becomes modal relative to parent.
+ @param type type of message box: QuestionYesNo, WarningYesNo, WarningContinueCancel...
+ @param text Message string.
+ @param caption Message box title.
+ @param buttonYes The text for the first button.
+ The default is i18n("&Yes").
+ @param buttonNo The text for the second button.
+ The default is i18n("&No").
+ @param options see OptionsType
+ Note: for ContinueCancel, buttonYes is the continue button and buttonNo is unused.
+ and for Information, none is used.
+ @return a button code, as defined in KMessageBox.
+
+ @short Alternate method to show a messagebox:
+ */
+ public static native int messageBox(QWidget parent, int type, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, int options);
+ public static native int messageBox(QWidget parent, int type, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int messageBox(QWidget parent, int type, String text, String caption, KGuiItem buttonYes);
+ public static native int messageBox(QWidget parent, int type, String text, String caption);
+ public static native int messageBox(QWidget parent, int type, String text);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native int messageBoxWId(long parent_id, int type, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontShowAskAgainName, int options);
+ public static native int messageBoxWId(long parent_id, int type, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo, String dontShowAskAgainName);
+ public static native int messageBoxWId(long parent_id, int type, String text, String caption, KGuiItem buttonYes, KGuiItem buttonNo);
+ public static native int messageBoxWId(long parent_id, int type, String text, String caption, KGuiItem buttonYes);
+ public static native int messageBoxWId(long parent_id, int type, String text, String caption);
+ public static native int messageBoxWId(long parent_id, int type, String text);
+ /**
+ Like messageBox
+ Only for message boxes of type Information, Sorry or Error.
+ This function will return immediately, the messagebox will be shown
+ once the application enters an event loop and no other messagebox
+ is being shown.
+ Note that if the parent gets deleted, the messagebox will not be
+ shown.
+ @short Like messageBox
+ */
+ public static native void queuedMessageBox(QWidget parent, int type, String text, String caption, int options);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native void queuedMessageBoxWId(long parent_id, int type, String text, String caption, int options);
+ /**
+ @overload
+ This is an overloaded member function, provided for convenience.
+ It behaves essentially like the above function.
+ @short @overload
+ */
+ public static native void queuedMessageBox(QWidget parent, int type, String text, String caption);
+ public static native void queuedMessageBox(QWidget parent, int type, String text);
+ /**
+ This function accepts the window id of the parent window, instead
+ of QWidget. It should be used only when necessary.
+ @short This function accepts the window id of the parent window, instead of QWidget .
+ */
+ public static native void queuedMessageBoxWId(long parent_id, int type, String text, String caption);
+ public static native void queuedMessageBoxWId(long parent_id, int type, String text);
+ /**
+ @param dontShowAgainName the name that identify the message box. If
+ empty, true is always returned.
+ @param result is set to the result (Yes or No) that was chosen the last
+ time the message box was shown. Only meaningful, if the message box
+ should not be shown.
+ @return true if the corresponding yes/no message box should be shown.
+
+ @short
+ */
+ public static native boolean shouldBeShownYesNo(String dontShowAgainName, int result);
+ /**
+ @param dontShowAgainName the name that identify the message box. If
+ empty, true is always returned.
+ @return true if the corresponding continue/cancel message box should be
+ shown.
+
+ @short
+ */
+ public static native boolean shouldBeShownContinue(String dontShowAgainName);
+ /**
+ Save the fact that the yes/no message box should not be shown again.
+ @param dontShowAgainName the name that identify the message box. If
+ empty, this method does nothing.
+ @param result the value (Yes or No) that should be used as the result
+ for the message box.
+ @short Save the fact that the yes/no message box should not be shown again.
+ */
+ public static native void saveDontShowAgainYesNo(String dontShowAgainName, int result);
+ /**
+ Save the fact that the continue/cancel message box should not be shown
+ again.
+ @param dontShowAgainName the name that identify the message box. If
+ empty, this method does nothing.
+ @short Save the fact that the continue/cancel message box should not be shown again.
+ */
+ public static native void saveDontShowAgainContinue(String dontShowAgainName);
+ /**
+ Use <code>cfg</code> for all settings related to the dontShowAgainName feature.
+ If <code>cfg</code> is 0 (default) KGlobal.config() will be used.
+ @short Use <code>cfg</code> for all settings related to the dontShowAgainName feature.
+ */
+ public static native void setDontShowAskAgainConfig(KConfig cfg);
+ /**
+ Create content and layout of a standard dialog
+ @param dialog The parent dialog base
+ @param icon Which predefined icon the message box shall show.
+ @param text Message string.
+ @param strlist List of strings to be written in the listbox.
+ If the list is empty, it doesn't show any listbox
+ @param ask The text of the checkbox. If empty none will be shown.
+ @param checkboxReturn The result of the checkbox. If it's initially
+ true then the checkbox will be checked by default.
+ @param options see OptionsType
+ @param details Detailed message string.
+ @return A KDialogBase button code, not a KMessageBox button code,
+ based on the buttonmask given to the constructor of the
+ <code>dialog</code> (ie. will return KDialogBase.Yes [256] instead of
+ KMessageBox.Yes [3]). Will return KMessageBox.Cancel
+ if the message box is queued for display instead of
+ exec()ed immediately or if the option NoExec is set.
+ @note The <code>dialog</code> that is passed in is deleted by this
+ function. Do not delete it yourself.
+
+ @short Create content and layout of a standard dialog
+ */
+ public static native int createKMessageBox(KDialogBase dialog, int icon, String text, String[] strlist, String ask, boolean[] checkboxReturn, int options, String details);
+ public static native int createKMessageBox(KDialogBase dialog, int icon, String text, String[] strlist, String ask, boolean[] checkboxReturn, int options);
+ /**
+ Create content and layout of a standard dialog
+ @param dialog The parent dialog base
+ @param icon A QPixmap containing the icon to be displayed in the
+ dialog next to the text.
+ @param text Message string.
+ @param strlist List of strings to be written in the listbox.
+ If the list is empty, it doesn't show any listbox
+ @param ask The text of the checkbox. If empty none will be shown.
+ @param checkboxReturn The result of the checkbox. If it's initially
+ true then the checkbox will be checked by default.
+ @param options see OptionsType
+ @param details Detailed message string.
+ @param notifyType The type of notification to send when this message
+ is presentend.
+ @return A KDialogBase button code, not a KMessageBox button code,
+ based on the buttonmask given to the constructor of the
+ <code>dialog</code> (ie. will return KDialogBase.Yes [256] instead of
+ KMessageBox.Yes [3]). Will return KMessageBox.Cancel
+ if the message box is queued for display instead of
+ exec()ed immediately or if the option NoExec is set.
+ @note The <code>dialog</code> that is passed in is deleted by this
+ function. Do not delete it yourself.
+
+ @short Create content and layout of a standard dialog
+ */
+ public static native int createKMessageBox(KDialogBase dialog, QPixmap icon, String text, String[] strlist, String ask, boolean[] checkboxReturn, int options, String details, int notifyType);
+ public static native int createKMessageBox(KDialogBase dialog, QPixmap icon, String text, String[] strlist, String ask, boolean[] checkboxReturn, int options, String details);
+ public static native int createKMessageBox(KDialogBase dialog, QPixmap icon, String text, String[] strlist, String ask, boolean[] checkboxReturn, int options);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMimeMagic.java b/kdejava/koala/org/kde/koala/KMimeMagic.java
new file mode 100644
index 00000000..a98724a5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMimeMagic.java
@@ -0,0 +1,131 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ May be removed in KDE 4.0.
+ Determine auto-magically the type of file,
+ not only by using its extension, but also by reading its contents.
+ Unless specified otherwise, KMimeMagic uses
+ $KDEDIR/share/mimelnk/magic for this purpose.
+ To make KMimeMagic restore the 'atime' of a file after it opened it,
+ add its directory in kmimemagicrc like:
+ [Settings]
+ atimeDirs=/tmp,/var/tmp,/home/dfaure/tmp
+ This isn't done by default because it changes the 'ctime'.
+ See kmimemagic.cpp for a full discussion on this issue.
+ The basic usage of KMimeMagic is :
+
+ <li>
+ Get a pointer to it, using KMimeMagic.self().
+ </li>
+
+ <li>
+ Use it for any file or buffer you want, using one of the three
+ <code>find...Type</code>() methods.
+ </li>
+ The result is contained in the class KMimeMagicResult.
+ @short
+
+*/
+public class KMimeMagic implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KMimeMagic(Class dummy){}
+
+ /**
+ Create a parser and initialize it with the KDE-global data:
+ the "magic" config file as well as the snippets from share/config/magic.
+ @short Create a parser and initialize it with the KDE-global data: the "magic" config file as well as the snippets from share/config/magic.
+ */
+ public KMimeMagic() {
+ newKMimeMagic();
+ }
+ private native void newKMimeMagic();
+ /**
+ Create a parser and initialize it with the given config file.
+ @short Create a parser and initialize it with the given config file.
+ */
+ public KMimeMagic(String configFile) {
+ newKMimeMagic(configFile);
+ }
+ private native void newKMimeMagic(String configFile);
+ /**
+ Merge an existing parse table with the data from the
+ given file.
+ @return <code>true</code> on success.
+
+ @short Merge an existing parse table with the data from the given file.
+ */
+ public native boolean mergeConfig(String configFile);
+ /**
+ Merge an existing parse table with the data from the
+ given buffer.
+ @return <code>true</code> on success.
+
+ @short Merge an existing parse table with the data from the given buffer.
+ */
+ public native boolean mergeBufConfig(String arg1);
+ /**
+ Enable/Disable follow-links.
+ (Default is disabled.)
+ @short Enable/Disable follow-links.
+ */
+ public native void setFollowLinks(boolean _enable);
+ /**
+ Try to find a MimeType for the given file.
+ If no special
+ MimeType is found, the default MimeType is returned.
+ This function looks at the content of the file.
+ @return A pointer to the result object. Do @em not delete the
+ result object. After another call to KMimeMagic
+ the returned result object changes its value
+ since it is reused by KMimeMagic.
+
+ @short Try to find a MimeType for the given file.
+ */
+ public native KMimeMagicResult findFileType(String _filename);
+ /**
+ Same functionality as above, except data is not
+ read from a file.
+ Instead a buffer can be supplied which
+ is examined.
+ @return A pointer to the result object. Do @em not delete the
+ result object. After another call to KMimeMagic
+ the returned result object changes its value
+ since it is reused by KMimeMagic.
+
+ @short Same functionality as above, except data is not read from a file.
+ */
+ public native KMimeMagicResult findBufferType(byte[] p);
+ /**
+ Same functionality as findBufferType() but with
+ additional capability of distinguishing between
+ C-headers and C-Source.
+ For this purpose this function looks
+ at the extension of the filename. This means that 'filename'
+ can be a filename on some FTP server, too.
+ @return A pointer to the result object. Do @em not delete the
+ result object. After another call to KMimeMagic
+ the returned result object changes its value
+ since it is reused by KMimeMagic.
+
+ @short Same functionality as findBufferType() but with additional capability of distinguishing between C-headers and C-Source.
+ */
+ public native KMimeMagicResult findBufferFileType(byte[] arg1, String filename);
+ /**
+ Returns a pointer to the unique KMimeMagic instance in this process.
+ @short Returns a pointer to the unique KMimeMagic instance in this process.
+ */
+ public static native KMimeMagic self();
+ protected static native void initStatic();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMimeMagicResult.java b/kdejava/koala/org/kde/koala/KMimeMagicResult.java
new file mode 100644
index 00000000..597794e3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMimeMagicResult.java
@@ -0,0 +1,49 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ May be removed in KDE 4.0.
+ Returned by KMimeMagic <code>find...Type</code> methods.
+ It contains the mimetype and the encoding of
+ the file or buffer read.
+ @short
+
+*/
+public class KMimeMagicResult implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KMimeMagicResult(Class dummy){}
+
+ public KMimeMagicResult() {
+ newKMimeMagicResult();
+ }
+ private native void newKMimeMagicResult();
+ /**
+ Retrieve the mimetype (e.g. "text/html") of the file or buffer parsed.
+ @short Retrieve the mimetype (e.
+ */
+ public native String mimeType();
+ /**
+ Retrieve the accuracy of the matching.
+ @short Retrieve the accuracy of the matching.
+ */
+ public native int accuracy();
+ /**
+ Returns whether the result is valid (i.e. mimetype not empty).
+ @short Returns whether the result is valid (i.
+ */
+ public native boolean isValid();
+ public native void setMimeType(String _mime);
+ public native void setAccuracy(int _accuracy);
+ public native void setInvalid();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMimeSourceFactory.java b/kdejava/koala/org/kde/koala/KMimeSourceFactory.java
new file mode 100644
index 00000000..9e4e01e3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMimeSourceFactory.java
@@ -0,0 +1,55 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QMimeSourceFactory;
+
+/**
+
+ An extension to QMimeSourceFactory that uses KIconLoader to
+ find images.
+ Normally you don't have to instantiate this class at all, KApplication does that for
+ you automagically and sets QMimeSourceFactory.setDefaultFactory().
+ @author Peter Putzer <putzer@kde.org>
+
+ @short An extension to QMimeSourceFactory that uses KIconLoader to find images.
+
+*/
+public class KMimeSourceFactory extends QMimeSourceFactory {
+ protected KMimeSourceFactory(Class dummy){super((Class) null);}
+ /**
+ Constructor.
+ @param loader is the iconloader used to find images.
+ @short Constructor.
+ */
+ public KMimeSourceFactory(KIconLoader loader) {
+ super((Class) null);
+ newKMimeSourceFactory(loader);
+ }
+ private native void newKMimeSourceFactory(KIconLoader loader);
+ public KMimeSourceFactory() {
+ super((Class) null);
+ newKMimeSourceFactory();
+ }
+ private native void newKMimeSourceFactory();
+ /**
+ This function is maps an absolute or relative name for a resource to
+ the absolute one.
+ To load an icon, prepend the <code>category</code> name before the <code>icon</code> name, in the style
+ of \<category>|\<icon>.
+ Example:
+ <pre> "<img src=\"user|ksysv_start\"/>", "<img src="\desktop|trash\">", ...
+ </pre>
+ @param abs_or_rel_name is the absolute or relative pathname.
+ @param context is the path of the context object for the queried resource. Almost always empty.
+ @short This function is maps an absolute or relative name for a resource to the absolute one.
+ */
+ public native String makeAbsolute(String abs_or_rel_name, String context);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMimeType.java b/kdejava/koala/org/kde/koala/KMimeType.java
new file mode 100644
index 00000000..2180f548
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMimeType.java
@@ -0,0 +1,439 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+import org.kde.qt.QPixmap;
+import java.util.ArrayList;
+import org.kde.qt.QVariant;
+
+/**
+
+ Represent a mime type, like "text/plain", and the data that is associated
+ with it.
+ The starting point you need is often the static methods.
+ KMimeType inherits KServiceType because "text/plain" can be used to find
+ services (apps and components) "which can open text/plain".
+ @short Represent a mime type, like "text/plain", and the data that is associated with it.
+ @see KServiceType
+
+*/
+public class KMimeType extends KServiceType {
+ protected KMimeType(Class dummy){super((Class) null);}
+ /**
+ Constructor.
+ You may pass in arguments to create a mimetype with
+ specific properties.
+ @param _fullpath the path to the configuration file (.desktop)
+ @param _type the mime type itself
+ @param _icon the name of the icon that represens the mime type
+ @param _comment a comment describing the mime type
+ @param _patterns a list of file globs that describes the names (or
+ extensions) of the files with this mime type
+ @short Constructor.
+ */
+ public KMimeType(String _fullpath, String _type, String _icon, String _comment, String[] _patterns) {
+ super((Class) null);
+ newKMimeType(_fullpath,_type,_icon,_comment,_patterns);
+ }
+ private native void newKMimeType(String _fullpath, String _type, String _icon, String _comment, String[] _patterns);
+ /**
+ Construct a mimetype and take all information from a config file.
+ @param _fullpath the path to the configuration file (.desktop)
+ @short Construct a mimetype and take all information from a config file.
+ */
+ public KMimeType(String _fullpath) {
+ super((Class) null);
+ newKMimeType(_fullpath);
+ }
+ private native void newKMimeType(String _fullpath);
+ /**
+ Construct a mimetype and take all information from a desktop file.
+ @param config the desktop configuration file that describes the mime type
+ @short Construct a mimetype and take all information from a desktop file.
+ */
+ public KMimeType(KDesktopFile config) {
+ super((Class) null);
+ newKMimeType(config);
+ }
+ private native void newKMimeType(KDesktopFile config);
+ /**
+ The stream must already be positionned at the correct offset
+ @short
+ */
+ public KMimeType(QDataStream _str, int offset) {
+ super((Class) null);
+ newKMimeType(_str,offset);
+ }
+ private native void newKMimeType(QDataStream _str, int offset);
+ /**
+ Return the filename of the icon associated with the mimetype.
+ The arguments are unused, but provided so that KMimeType-derived classes
+ can use them (e.g. KFolderType uses the URL to return one out of 2 icons)
+ @return The path to the icon associated with this MIME type.
+
+ @short Return the filename of the icon associated with the mimetype.
+ */
+ public native String icon(String arg1, boolean arg2);
+ /**
+ Return the filename of the icon associated with the mimetype.
+ The arguments are unused, but provided so that KMimeType-derived classes
+ can use them (e.g. KFolderType uses the URL to return one out of 2 icons)
+ @return The path to the icon associated with this MIME type.
+
+ @short Return the filename of the icon associated with the mimetype.
+ */
+ public native String icon(KURL arg1, boolean arg2);
+ /**
+ Use this function only if you don't have a special URL
+ for which you search a pixmap.
+ This function is useful to find
+ out, which icon is usually chosen for a certain mime type. Since
+ no URL is passed, it is impossible to obey icon hints in desktop
+ entries for example.
+ @param group The icon group where the icon is going to be used.
+ @param force_size Override globallly configured icon size.
+ Use 0 for the default size
+ @param state The icon state, one of: <code>KIcon</code>.DefaultState,
+ <code>KIcon</code>.ActiveState or <code>KIcon</code>.DisabledState.
+ @param path Output parameter to get the full path. Seldom needed.
+ Ignored if 0
+ @return the pixmap of the mime type, can be a default icon if not found
+
+ @short Use this function only if you don't have a special URL for which you search a pixmap.
+ */
+ public native QPixmap pixmap(int group, int force_size, int state, StringBuffer path);
+ public native QPixmap pixmap(int group, int force_size, int state);
+ public native QPixmap pixmap(int group, int force_size);
+ public native QPixmap pixmap(int group);
+ /**
+ Find the pixmap for a given file of this mimetype.
+ Convenience method that uses icon(), but also locates and
+ load the pixmap.
+ @param _url URL for the file.
+ @param _group The icon group where the icon is going to be used.
+ @param _force_size Override globallly configured icon size.
+ Use 0 for the default size
+ @param _state The icon state, one of: KIcon.DefaultState,
+ KIcon.ActiveState or KIcon.DisabledState.
+ @param _path Output parameter to get the full path. Seldom needed.
+ Ignored if 0
+ @return the pixmap of the URL, can be a default icon if not found
+
+ @short Find the pixmap for a given file of this mimetype.
+ */
+ public native QPixmap pixmap(KURL _url, int _group, int _force_size, int _state, StringBuffer _path);
+ public native QPixmap pixmap(KURL _url, int _group, int _force_size, int _state);
+ public native QPixmap pixmap(KURL _url, int _group, int _force_size);
+ public native QPixmap pixmap(KURL _url, int _group);
+ /**
+ Returns the descriptive comment associated with the MIME type.
+ @return the descriptive comment associated with the MIME type
+
+ @short Returns the descriptive comment associated with the MIME type.
+ */
+ public native String comment();
+ /**
+ Returns the descriptive comment associated with the MIME type.
+ The arguments are unused, but provided so that KMimeType derived classes
+ can use them.
+ @return The descriptive comment associated with the MIME type, if any.
+
+ @short Returns the descriptive comment associated with the MIME type.
+ */
+ public native String comment(String arg1, boolean arg2);
+ /**
+ Returns the descriptive comment associated with the MIME type.
+ The arguments are unused, but provided so that KMimeType derived classes
+ can use them.
+ @return The descriptive comment associated with the MIME type, if any.
+
+ @short Returns the descriptive comment associated with the MIME type.
+ */
+ public native String comment(KURL arg1, boolean arg2);
+ /**
+ Retrieve the list of patterns associated with the MIME Type.
+ @return a list of file globs that describe the file names
+ (or, usually, the extensions) of files with this mime type
+
+ @short Retrieve the list of patterns associated with the MIME Type.
+ */
+ public native ArrayList patterns();
+ /**
+ Load the mimetype from a stream.
+ @param qs the stream to load from
+ @short Load the mimetype from a stream.
+ */
+ public native void load(QDataStream qs);
+ /**
+ Save the mimetype to a stream.
+ @param qs the stream to save to
+ @short Save the mimetype to a stream.
+ */
+ public native void save(QDataStream qs);
+ /**
+ Returns the property with the given <code>_name.</code>
+ @param _name the name of the property
+ @return the value of the property
+
+ @short Returns the property with the given <code>_name.</code>
+ @see #propertyNames
+ */
+ public native QVariant property(String _name);
+ /**
+ Retrieves a list of all properties associated with this
+ KMimeType.
+ @return a list of all property names
+
+ @short Retrieves a list of all properties associated with this KMimeType.
+ @see #property
+ */
+ public native ArrayList propertyNames();
+ /**
+ If this mimetype inherits from ("is also") another mimetype,
+ return the name of the parent.
+ For instance a text/x-log is a special kind of text/plain,
+ so the definition of text/x-log can say "X-KDE-IsAlso=text/plain".
+ Or an smb-workgroup is a special kind of inode/directory, etc.
+ This mechanism can also be used to rename mimetypes and preserve compat.
+ Note that this notion doesn't map to the servicetype inheritance mechanism,
+ since an application that handles the specific type doesn't necessarily handle
+ the base type. The opposite is true though.
+ @return the parent mime type, or null if not set
+
+ @short If this mimetype inherits from ("is also") another mimetype, return the name of the parent.
+ */
+ public native String parentMimeType();
+ /**
+ Do not use name()=="somename" anymore, to check for a given mimetype.
+ For mimetype inheritance to work, use is("somename") instead.
+ Warning, do not use inherits(), that's the servicetype inheritance concept!
+ @short Do not use name()=="somename" anymore, to check for a given mimetype.
+ */
+ public native boolean is(String mimeTypeName);
+ /**
+ Convenience method to find the pixmap for a URL.
+ Call this one when you don't know the mimetype.
+ @param _url URL for the file.
+ @param _mode the mode of the file. The mode may modify the icon
+ with overlays that show special properties of the
+ icon. Use 0 for default
+ @param _group The icon group where the icon is going to be used.
+ @param _force_size Override globally configured icon size.
+ Use 0 for the default size
+ @param _state The icon state, one of: KIcon.DefaultState,
+ KIcon.ActiveState or KIcon.DisabledState.
+ @param _path Output parameter to get the full path. Seldom needed.
+ Ignored if 0
+ @return the pixmap of the URL, can be a default icon if not found
+
+ @short Convenience method to find the pixmap for a URL.
+ */
+ public static native QPixmap pixmapForURL(KURL _url, long _mode, int _group, int _force_size, int _state, StringBuffer _path);
+ public static native QPixmap pixmapForURL(KURL _url, long _mode, int _group, int _force_size, int _state);
+ public static native QPixmap pixmapForURL(KURL _url, long _mode, int _group, int _force_size);
+ public static native QPixmap pixmapForURL(KURL _url, long _mode, int _group);
+ public static native QPixmap pixmapForURL(KURL _url, long _mode);
+ public static native QPixmap pixmapForURL(KURL _url);
+ /**
+ The same functionality as pixmapForURL(), but this method returns the name
+ of the icon to load. You'll have to use KIconLoader to load the pixmap for it.
+ The advantage of this method is that you can store the result, and then use it
+ later on for any kind of size.
+ @param _url URL for the file
+ @param _mode the mode of the file. The mode may modify the icon
+ with overlays that show special properties of the
+ icon. Use 0 for default
+ @return the name of the icon. The name of a default icon if there is no icon
+ for the mime type
+
+ @short The same functionality as pixmapForURL(), but this method returns the name of the icon to load.
+ */
+ public static native String iconForURL(KURL _url, long _mode);
+ public static native String iconForURL(KURL _url);
+ /**
+ Return the "favicon" (see http://www.favicon.com) for the given <code>url</code>,
+ if available. Does NOT attempt to download the favicon, it only returns
+ one that is already available.
+ If unavailable, returns null.
+ @param url the URL of the favicon
+ @return the name of the favicon, or null
+
+ @short Return the "favicon" (see http://www.
+ */
+ public static native String favIconForURL(KURL url);
+ /**
+ Retrieve a pointer to the mime type <code>_name</code> or a pointer to the default
+ mime type "application/octet-stream".
+ null is <b>never</b> returned.
+ <b>Very</b> <b>important</b>: Don't store the result in a KMimeType !
+ @param _name the name of the mime type
+ @return the pointer to the KMimeType with the given <code>_name</code>, or
+ a pointer to the application/octet-stream KMimeType if
+ not found
+
+ @short Retrieve a pointer to the mime type <code>_name</code> or a pointer to the default mime type "application/octet-stream".
+ @see KServiceType#serviceType
+ */
+ // KMimeType::Ptr mimeType(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Finds a KMimeType with the given <code>_url.</code>
+ This function looks at mode_t first.
+ If that does not help it
+ looks at the extension. This is fine for FTP, FILE, TAR and
+ friends, but is not for HTTP ( cgi scripts! ). You should use
+ KRun instead, but this function returns immediately while
+ KRun is async. If no extension matches, then
+ the file will be examined if the URL a local file or
+ "application/octet-stream" is returned otherwise.
+ @param _url Is the right most URL with a filesystem protocol. It
+ is up to you to find out about that if you have a nested
+ URL. For example
+ "http://localhost/mist.gz#gzip:/decompress" would have to
+ pass the "http://..." URL part, while
+ "file:/tmp/x.tar#tar:/src/test.gz#gzip:/decompress" would
+ have to pass the "tar:/..." part of the URL, since gzip is
+ a filter protocol and not a filesystem protocol.
+ @param _mode the mode of the file (used, for example, to identify
+ executables)
+ @param _is_local_file true if the file is local
+ @param _fast_mode If set to true no disk access is allowed to
+ find out the mimetype. The result may be suboptimal, but
+ it is <b>fast</b>.
+ @return A pointer to the matching mimetype. 0L is never returned.
+ @em Very @em Important: Don't store the result in a KMimeType* !
+
+ @short Finds a KMimeType with the given <code>_url.</code>
+ */
+ // KMimeType::Ptr findByURL(const KURL& arg1,mode_t arg2,bool arg3,bool arg4); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByURL(const KURL& arg1,mode_t arg2,bool arg3); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByURL(const KURL& arg1,mode_t arg2); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByURL(const KURL& arg1); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByURL(const KURL& arg1,mode_t arg2,bool arg3,bool arg4,bool* arg5); >>>> NOT CONVERTED
+ /**
+ Finds a KMimeType with the given <code>_url.</code>
+ This function looks at mode_t first.
+ If that does not help it
+ looks at the extension. This is fine for FTP, FILE, TAR and
+ friends, but is not for HTTP ( cgi scripts! ). You should use
+ KRun instead, but this function returns immediately while
+ KRun is async. If no extension matches, then
+ the file will be examined if the URL a local file or
+ "application/octet-stream" is returned otherwise.
+ Equivalent to
+ <pre>
+ KURL u;
+ u.setPath(path);
+ return findByURL( u, mode, true, fast_mode );
+ </pre>
+ @param path the path to the file
+ @param mode the mode of the file (used, for example, to identify
+ executables)
+ @param fast_mode If set to true no disk access is allowed to
+ find out the mimetype. The result may be suboptimal, but
+ it is <b>fast</b>.
+ @return A pointer to the matching mimetype. 0L is never returned.
+
+ @short Finds a KMimeType with the given <code>_url.</code>
+ */
+ // KMimeType::Ptr findByPath(const QString& arg1,mode_t arg2,bool arg3); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByPath(const QString& arg1,mode_t arg2); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByPath(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Tries to find out the MIME type of a data chunk by looking for
+ certain magic numbers and characteristic strings in it.
+ @param data the data to examine
+ @param accuracy If not a null pointer, accuracy is set to the
+ accuracy of the match (which is in the range 0..100)
+ @return a pointer to the KMimeType. application/octet-stream's KMimeType of the
+ type can not be found this way.
+
+ @short Tries to find out the MIME type of a data chunk by looking for certain magic numbers and characteristic strings in it.
+ */
+ // KMimeType::Ptr findByContent(const QByteArray& arg1,int* arg2); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByContent(const QByteArray& arg1); >>>> NOT CONVERTED
+ /**
+ Tries to find out the MIME type of a file by looking for
+ certain magic numbers and characteristic strings in it.
+ This function is similar to the previous one. Note that the
+ file name is not used for determining the file type, it is just
+ used for loading the file's contents.
+ @param fileName the path to the file
+ @param accuracy If not a null pointer, accuracy is set to the
+ accuracy of the match (which is in the range 0..100)
+ @return a pointer to the KMimeType. application/octet-stream's KMimeType of the
+ type can not be found this way.
+
+ @short Tries to find out the MIME type of a file by looking for certain magic numbers and characteristic strings in it.
+ */
+ // KMimeType::Ptr findByFileContent(const QString& arg1,int* arg2); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByFileContent(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Returns whether a file has an internal format that is human readable,
+ or that would be human readable after decompression.
+ @short Returns whether a file has an internal format that is human readable, or that would be human readable after decompression.
+ */
+ // KMimeType::Format findFormatByFileContent(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Get all the mimetypes.
+ Useful for showing the list of
+ available mimetypes.
+ More memory consuming than the ones above, don't use unless
+ really necessary.
+ @return the list of all existing KMimeTypes
+
+ @short Get all the mimetypes.
+ */
+ // KMimeType::List allMimeTypes(); >>>> NOT CONVERTED
+ /**
+ Returns the name of the default mimetype.
+ Always application/octet-stream, but this method exists
+ for performance purposes.
+ @return the name of the default mime type, always
+ "application/octet-stream"
+
+ @short Returns the name of the default mimetype.
+ */
+ public static native String defaultMimeType();
+ /**
+ Returns the default mimetype.
+ Always application/octet-stream.
+ This can be used to check the result of mimeType(name).
+ @return the "application/octet-stream" mimetype pointer.
+
+ @short Returns the default mimetype.
+ */
+ // KMimeType::Ptr defaultMimeTypePtr(); >>>> NOT CONVERTED
+ /**
+ Determines the mimetype of file based on it's name and returns the
+ matching pattern if any.
+ @short
+ */
+ // KMimeType::Ptr diagnoseFileName(const QString& arg1,QString& arg2); >>>> NOT CONVERTED
+ protected native void loadInternal(QDataStream arg1);
+ protected native void init(KDesktopFile arg1);
+ protected native int patternsAccuracy();
+ /**
+ Signal a missing mime type.
+ @param _type the missinf mime type
+ @short Signal a missing mime type.
+ */
+ protected static native void errorMissingMimeType(String _type);
+ /**
+ This function makes sure that the default mime type exists.
+ @short This function makes sure that the default mime type exists.
+ */
+ protected static native void buildDefaultType();
+ /**
+ This function makes sure that vital mime types are installed.
+ @short This function makes sure that vital mime types are installed.
+ */
+ protected static native void checkEssentialMimeTypes();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMimeTypeResolverBase.java b/kdejava/koala/org/kde/koala/KMimeTypeResolverBase.java
new file mode 100644
index 00000000..9e5f6c14
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMimeTypeResolverBase.java
@@ -0,0 +1,21 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A baseclass for KMimeTypeResolver, with the interface,
+ KMimeTypeResolverHelper uses.
+ @short
+
+*/
+public class KMimeTypeResolverBase implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KMimeTypeResolverBase(Class dummy){}
+
+ public native void slotViewportAdjusted();
+ public native void slotProcessMimeIcons();
+}
diff --git a/kdejava/koala/org/kde/koala/KMimeTypeResolverHelper.java b/kdejava/koala/org/kde/koala/KMimeTypeResolverHelper.java
new file mode 100644
index 00000000..48bad012
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMimeTypeResolverHelper.java
@@ -0,0 +1,37 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QScrollView;
+import org.kde.qt.QEvent;
+import org.kde.qt.QObject;
+
+/**
+
+ This class is used by KMimeTypeResolver, because it can't be a QObject
+ itself. So an object of this class is used to handle signals, slots etc.
+ and forwards them to the KMimeTypeResolver instance.
+ @short
+
+*/
+public class KMimeTypeResolverHelper extends QObject {
+ protected KMimeTypeResolverHelper(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KMimeTypeResolverHelper(KMimeTypeResolverBase resolver, QScrollView view) {
+ super((Class) null);
+ newKMimeTypeResolverHelper(resolver,view);
+ }
+ private native void newKMimeTypeResolverHelper(KMimeTypeResolverBase resolver, QScrollView view);
+ public native void start(int delay, boolean singleShot);
+ public native boolean eventFilter(QObject o, QEvent e);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMimeTypeValidator.java b/kdejava/koala/org/kde/koala/KMimeTypeValidator.java
new file mode 100644
index 00000000..9154d217
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMimeTypeValidator.java
@@ -0,0 +1,68 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QValidator;
+
+/**
+
+ This validator allows you to validate mimetype names
+ (e.g. text/plain, image/jpeg). Note that the validation is only
+ syntactically. It will e.g. not reject "foo/bar", although that
+ particular mime type isn't yet registered. It suffices for the name
+ to adhere to the production
+ <pre>
+ mime-type := token "/" token ; 'token' is defined in rfc2045
+ </pre>
+ The fixup will simply remove all non-token characters.
+ @author Marc Mutz <mutz@kde.org>
+
+ @short A QValidator for mime types.
+
+*/
+public class KMimeTypeValidator extends QValidator {
+ protected KMimeTypeValidator(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KMimeTypeValidator(QObject parent, String name) {
+ super((Class) null);
+ newKMimeTypeValidator(parent,name);
+ }
+ private native void newKMimeTypeValidator(QObject parent, String name);
+ public KMimeTypeValidator(QObject parent) {
+ super((Class) null);
+ newKMimeTypeValidator(parent);
+ }
+ private native void newKMimeTypeValidator(QObject parent);
+ /**
+ Checks for well-formed mimetype. Returns
+
+ <li>
+ Acceptable iff input ~= /^[:allowed chars:]+\/[:allowed chars:]+$/
+ </li>
+
+ <li>
+ Intermediate iff input ~= /^[:allowed chars:]\/?[:allowed chars:]$/
+ </li>
+
+ <li>
+ Invalid else
+
+ </li> @short Checks for well-formed mimetype.
+ */
+ public native int validate(StringBuffer input, int[] pos);
+ /**
+ Removes all characters that are forbidden in mimetypes.
+ @short Removes all characters that are forbidden in mimetypes.
+ */
+ public native void fixup(StringBuffer input);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMountPoint.java b/kdejava/koala/org/kde/koala/KMountPoint.java
new file mode 100644
index 00000000..f40f1797
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMountPoint.java
@@ -0,0 +1,73 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ The KMountPoint class provides information about mounted and unmounted disks.
+ It provides a system independent interface to fstab.
+ @author Waldo Bastian <bastian@kde.org>
+
+ @short The KMountPoint class provides information about mounted and unmounted disks.
+
+*/
+public class KMountPoint extends KShared {
+ protected KMountPoint(Class dummy){super((Class) null);}
+ public static final int NeedMountOptions = 1;
+ public static final int NeedRealDeviceName = 2;
+
+ /**
+ Where this filesystem gets mounted from.
+ This can refer to a device, a remote server or something else.
+ @short Where this filesystem gets mounted from.
+ */
+ public native String mountedFrom();
+ /**
+ Canonical name of the device where the filesystem got mounted from.
+ (Or empty, if not a device)
+ Only available when the NeedRealDeviceName flag was set.
+ @short Canonical name of the device where the filesystem got mounted from.
+ */
+ public native String realDeviceName();
+ /**
+ Path where the filesystem is mounted or can be mounted.
+ @short Path where the filesystem is mounted or can be mounted.
+ */
+ public native String mountPoint();
+ /**
+ Type of filesystem
+ @short Type of filesystem
+ */
+ public native String mountType();
+ /**
+ Options used to mount the filesystem.
+ Only available when the NeedMountOptions flag was set.
+ @short Options used to mount the filesystem.
+ */
+ public native ArrayList mountOptions();
+ /**
+ This function gives a list of all possible mountpoints. (fstab)
+ @param infoNeeded Flags that specify which additional information
+ should be fetched.
+ @short This function gives a list of all possible mountpoints.
+ */
+ // KMountPoint::List possibleMountPoints(int arg1); >>>> NOT CONVERTED
+ // KMountPoint::List possibleMountPoints(); >>>> NOT CONVERTED
+ /**
+ This function gives a list of all currently used mountpoints. (mtab)
+ @param infoNeeded Flags that specify which additional information
+ should be fetched.
+ @short This function gives a list of all currently used mountpoints.
+ */
+ // KMountPoint::List currentMountPoints(int arg1); >>>> NOT CONVERTED
+ // KMountPoint::List currentMountPoints(); >>>> NOT CONVERTED
+ /**
+ When using supermount, the device name is in the options field
+ as dev=/my/device
+ @short When using supermount, the device name is in the options field as dev=/my/device
+ */
+ public static native String devNameFromOptions(String[] options);
+}
diff --git a/kdejava/koala/org/kde/koala/KMultiTabBar.java b/kdejava/koala/org/kde/koala/KMultiTabBar.java
new file mode 100644
index 00000000..1823708d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMultiTabBar.java
@@ -0,0 +1,169 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ A Widget for horizontal and vertical tabs.
+ It is possible to add normal buttons to the top/left
+ The handling if only one tab at a time or multiple tabs
+ should be raisable is left to the "user".
+ @author Joseph Wenninger
+
+ @short A Widget for horizontal and vertical tabs.
+
+*/
+public class KMultiTabBar extends QWidget {
+ protected KMultiTabBar(Class dummy){super((Class) null);}
+ public static final int Horizontal = 0;
+ public static final int Vertical = 1;
+
+ public static final int Left = 0;
+ public static final int Right = 1;
+ public static final int Top = 2;
+ public static final int Bottom = 3;
+
+ /**
+ The list of available styles for KMultiTabBar
+ - VSNET - Visual Studio .Net like (only show the text of active tabs
+ - KDEV3 - Kdevelop 3 like (always show the text)
+ - KONQSBC - konqy's classic sidebar style (unthemed) (currently disabled)
+ @short The list of available styles for KMultiTabBar - VSNET - Visual Studio .
+ */
+ public static final int VSNET = 0;
+ public static final int KDEV3 = 1;
+ public static final int KONQSBC = 2;
+ public static final int KDEV3ICON = 3;
+ public static final int STYLELAST = 0xffff;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ public KMultiTabBar(int bm, QWidget parent, String name) {
+ super((Class) null);
+ newKMultiTabBar(bm,parent,name);
+ }
+ private native void newKMultiTabBar(int bm, QWidget parent, String name);
+ public KMultiTabBar(int bm, QWidget parent) {
+ super((Class) null);
+ newKMultiTabBar(bm,parent);
+ }
+ private native void newKMultiTabBar(int bm, QWidget parent);
+ public KMultiTabBar(int bm) {
+ super((Class) null);
+ newKMultiTabBar(bm);
+ }
+ private native void newKMultiTabBar(int bm);
+ /**
+ append a new button to the button area. The button can later on be accessed with button(ID)
+ eg for connecting signals to it
+ @param pic a pixmap for the button
+ @param id an arbitraty ID value. It will be emitted in the clicked signal for identifying the button
+ if more than one button is connected to a signals.
+ @param popup A popup menu which should be displayed if the button is clicked
+ @param not_used_yet will be used for a popup text in the future
+ @short append a new button to the button area.
+ */
+ public native int appendButton(QPixmap pic, int id, QPopupMenu popup, String not_used_yet);
+ public native int appendButton(QPixmap pic, int id, QPopupMenu popup);
+ public native int appendButton(QPixmap pic, int id);
+ public native int appendButton(QPixmap pic);
+ /**
+ remove a button with the given ID
+ @short remove a button with the given ID
+ */
+ public native void removeButton(int id);
+ /**
+ append a new tab to the tab area. It can be accessed lateron with tabb(id);
+ @param pic a bitmap for the tab
+ @param id an arbitrary ID which can be used later on to identify the tab
+ @param text if a mode with text is used it will be the tab text, otherwise a mouse over hint
+ @short append a new tab to the tab area.
+ */
+ public native int appendTab(QPixmap pic, int id, String text);
+ public native int appendTab(QPixmap pic, int id);
+ public native int appendTab(QPixmap pic);
+ /**
+ remove a tab with a given ID
+ @short remove a tab with a given ID
+ */
+ public native void removeTab(int id);
+ /**
+ set a tab to "raised"
+ @param id The ID of the tab to manipulate
+ @param state true == activated/raised, false == not active
+ @short set a tab to "raised"
+ */
+ public native void setTab(int id, boolean state);
+ /**
+ return the state of a tab, identified by it's ID
+ @short return the state of a tab, identified by it's ID
+ */
+ public native boolean isTabRaised(int id);
+ /**
+ get a pointer to a button within the button area identified by its ID
+ @short get a pointer to a button within the button area identified by its ID
+ */
+ public native KMultiTabBarButton button(int id);
+ /**
+ get a pointer to a tab within the tab area, identiifed by its ID
+ @short get a pointer to a tab within the tab area, identiifed by its ID
+ */
+ public native KMultiTabBarTab tab(int id);
+ /**
+ set the real position of the widget.
+ @param pos if the mode is horizontal, only use top, bottom, if it is vertical use left or right
+ @short set the real position of the widget.
+ */
+ public native void setPosition(int pos);
+ /**
+ get the tabbar position.
+ @return position
+
+ @short get the tabbar position.
+ */
+ public native int position();
+ /**
+ set the display style of the tabs
+ @short set the display style of the tabs
+ */
+ public native void setStyle(int style);
+ /**
+ get the display style of the tabs
+ @return display style
+
+ @short get the display style of the tabs
+ */
+ public native int tabStyle();
+ /**
+ be carefull, don't delete tabs yourself and don't delete the list itself
+ @short be carefull, don't delete tabs yourself and don't delete the list itself
+ */
+ // QPtrList<KMultiTabBarTab>* tabs(); >>>> NOT CONVERTED
+ /**
+ be carefull, don't delete buttons yourself and don't delete the list itself
+ @short be carefull, don't delete buttons yourself and don't delete the list itself
+ */
+ // QPtrList<KMultiTabBarButton>* buttons(); >>>> NOT CONVERTED
+ /**
+ might vanish, not sure yet
+ @short might vanish, not sure yet
+ */
+ public native void showActiveTabTexts(boolean show);
+ public native void showActiveTabTexts();
+ protected native void fontChange(QFont arg1);
+ protected native void updateSeparator();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMultiTabBarButton.java b/kdejava/koala/org/kde/koala/KMultiTabBarButton.java
new file mode 100644
index 00000000..58121632
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMultiTabBarButton.java
@@ -0,0 +1,64 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QHideEvent;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSize;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QPushButton;
+
+/**
+
+ This class should never be created except with the appendButton call of KMultiTabBar
+ See {@link KMultiTabBarButtonSignals} for signals emitted by KMultiTabBarButton
+ @short This class should never be created except with the appendButton call of KMultiTabBar
+
+*/
+public class KMultiTabBarButton extends QPushButton {
+ protected KMultiTabBarButton(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KMultiTabBarButton(QPixmap pic, String arg2, QPopupMenu popup, int id, QWidget parent, int pos, int style) {
+ super((Class) null);
+ newKMultiTabBarButton(pic,arg2,popup,id,parent,pos,style);
+ }
+ private native void newKMultiTabBarButton(QPixmap pic, String arg2, QPopupMenu popup, int id, QWidget parent, int pos, int style);
+ public KMultiTabBarButton(String arg1, QPopupMenu popup, int id, QWidget parent, int pos, int style) {
+ super((Class) null);
+ newKMultiTabBarButton(arg1,popup,id,parent,pos,style);
+ }
+ private native void newKMultiTabBarButton(String arg1, QPopupMenu popup, int id, QWidget parent, int pos, int style);
+ public native int id();
+ /**
+ this is used internaly, but can be used by the user, if (s)he wants to
+ It the according call of KMultiTabBar is invoked though this modifications will be overwritten
+ @short this is used internaly, but can be used by the user, if (s)he wants to It the according call of KMultiTabBar is invoked though this modifications will be overwritten
+ */
+ public native void setPosition(int arg1);
+ /**
+ this is used internaly, but can be used by the user, if (s)he wants to
+ It the according call of KMultiTabBar is invoked though this modifications will be overwritten
+ @short this is used internaly, but can be used by the user, if (s)he wants to It the according call of KMultiTabBar is invoked though this modifications will be overwritten
+ */
+ public native void setStyle(int arg1);
+ /**
+ modify the text of the button
+ @short modify the text of the button
+ */
+ public native void setText(String arg1);
+ public native QSize sizeHint();
+ protected native void hideEvent(QHideEvent arg1);
+ public native void showEvent(QShowEvent arg1);
+ protected native void slotClicked();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMultiTabBarButtonSignals.java b/kdejava/koala/org/kde/koala/KMultiTabBarButtonSignals.java
new file mode 100644
index 00000000..31e280c0
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMultiTabBarButtonSignals.java
@@ -0,0 +1,20 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QHideEvent;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSize;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QWidget;
+
+public interface KMultiTabBarButtonSignals {
+ /**
+ this is emitted if the button is clicked
+ @param id the ID identifying the button
+ @short this is emitted if the button is clicked
+ */
+ void clicked(int id);
+}
diff --git a/kdejava/koala/org/kde/koala/KMultiTabBarTab.java b/kdejava/koala/org/kde/koala/KMultiTabBarTab.java
new file mode 100644
index 00000000..d80304cc
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMultiTabBarTab.java
@@ -0,0 +1,56 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QPainter;
+import org.kde.qt.QWidget;
+
+/**
+
+ This class should never be created except with the appendTab call of KMultiTabBar
+ @short This class should never be created except with the appendTab call of KMultiTabBar
+
+*/
+public class KMultiTabBarTab extends KMultiTabBarButton {
+ protected KMultiTabBarTab(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KMultiTabBarTab(QPixmap pic, String arg2, int id, QWidget parent, int pos, int style) {
+ super((Class) null);
+ newKMultiTabBarTab(pic,arg2,id,parent,pos,style);
+ }
+ private native void newKMultiTabBarTab(QPixmap pic, String arg2, int id, QWidget parent, int pos, int style);
+ /**
+ set the active state of the tab
+ @param state true==active false==not active
+ @short set the active state of the tab
+ */
+ public native void setState(boolean state);
+ /**
+ choose if the text should always be displayed
+ this is only used in classic mode if at all
+ @short choose if the text should always be displayed this is only used in classic mode if at all
+ */
+ public native void showActiveTabText(boolean show);
+ public native void resize();
+ public native void setIcon(String arg1);
+ public native void setIcon(QPixmap arg1);
+ protected native void setSize(int arg1);
+ protected native int neededSize();
+ protected native void updateState();
+ protected native void drawButton(QPainter arg1);
+ protected native void drawButtonLabel(QPainter arg1);
+ protected native void drawButtonStyled(QPainter arg1);
+ protected native void drawButtonClassic(QPainter arg1);
+ protected native void slotClicked();
+ protected native void setTabsPosition(int arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KMultipleDrag.java b/kdejava/koala/org/kde/koala/KMultipleDrag.java
new file mode 100644
index 00000000..4243c59e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KMultipleDrag.java
@@ -0,0 +1,93 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDragObject;
+import org.kde.qt.QDragObject;
+
+/**
+
+ This class makes it easy for applications to provide a drag object
+ (for drag-n-drop or for clipboard) that has several representations
+ of the same data, under different formats.
+ Instead of creating a specific class for each case (as would otherwise
+ be necessary), you can simply create independent drag objects (e.g.
+ a QImageDrag object and a KURLDrag object), and bundle them together
+ using KMultipleDrag.
+ Sample code for this:
+ <pre>
+ KMultipleDrag drag = new KMultipleDrag( parentWidget );
+ drag.addDragObject( new QImageDrag( someQImage, 0 ) );
+ drag.addDragObject( new KURLDrag( someKURL, 0 ) );
+ drag.drag();
+ </pre>
+ Note that the drag objects added to the multiple drag become owned by it.
+ For that reason their parent should be 0.
+ @author David Faure <faure@kde.org>
+
+ @short This class makes it easy for applications to provide a drag object (for drag-n-drop or for clipboard) that has several representations of the same data, under different formats.
+
+*/
+public class KMultipleDrag extends QDragObject {
+ protected KMultipleDrag(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create a new KMultipleDrag object.
+ @param dragSource the parent object which is the source of the data,
+ 0 for a parent-less object
+ @param name the name of the object, can be 0
+ @short Create a new KMultipleDrag object.
+ */
+ public KMultipleDrag(QWidget dragSource, String name) {
+ super((Class) null);
+ newKMultipleDrag(dragSource,name);
+ }
+ private native void newKMultipleDrag(QWidget dragSource, String name);
+ public KMultipleDrag(QWidget dragSource) {
+ super((Class) null);
+ newKMultipleDrag(dragSource);
+ }
+ private native void newKMultipleDrag(QWidget dragSource);
+ public KMultipleDrag() {
+ super((Class) null);
+ newKMultipleDrag();
+ }
+ private native void newKMultipleDrag();
+ /**
+ Call this to add each underlying drag object to the multiple drag object.
+ The drag object should not have a parent because the multiple drag object
+ will own it.
+ @param dragObject the drag object to add. Should have no parent object.
+ @short Call this to add each underlying drag object to the multiple drag object.
+ */
+ public native void addDragObject(QDragObject dragObject);
+ /**
+ Returns the data of a drag object with that supports the given
+ mime type.
+ @param mime the mime type to search
+ @return the data, or a null byte array if not found
+ @reimp
+
+ @short Returns the data of a drag object with that supports the given mime type.
+ */
+ public native byte[] encodedData(String mime);
+ /**
+ Returns the <code>i</code>'th supported format, or 0.
+ @param i the number of the format to check
+ @return the format with the number <code>i</code>, or 0 otherwise
+ @reimp
+
+ @short Returns the <code>i</code>'th supported format, or 0.
+ */
+ public native String format(int i);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KNamedCommand.java b/kdejava/koala/org/kde/koala/KNamedCommand.java
new file mode 100644
index 00000000..f3c3a1ff
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KNamedCommand.java
@@ -0,0 +1,29 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A command which stores its name.
+ It is more memory-efficient to use KCommand and to implement the name() method,
+ but in some cases it's more simple or more flexible to store the name at creation time.
+ @short A command which stores its name.
+
+*/
+public class KNamedCommand extends KCommand {
+ protected KNamedCommand(Class dummy){super((Class) null);}
+ /**
+ @return the name of this command
+
+ @short
+ */
+ public native String name();
+ /**
+ Updates the name of this command.
+ Rarely necessary.
+ @short Updates the name of this command.
+ */
+ public native void setName(String name);
+}
diff --git a/kdejava/koala/org/kde/koala/KNotifyClient.java b/kdejava/koala/org/kde/koala/KNotifyClient.java
new file mode 100644
index 00000000..26752d22
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KNotifyClient.java
@@ -0,0 +1,214 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This namespace provides a method for issuing events to a KNotifyServer
+ call KNotifyClient.event("eventname"); to issue it.
+ On installation, there should be a file called
+ $KDEDIR/share/apps/appname/eventsrc which contains the events.
+ The file looks like this:
+ <pre>
+ [!Global!]
+ IconName=Filename (e.g. kdesktop, without any extension)
+ Comment=FriendlyNameOfApp
+ [eventname]
+ Name=FriendlyNameOfEvent
+ Comment=Description Of Event
+ default_sound=filetoplay.wav
+ default_logfile=logfile.txt
+ default_commandline=command
+ default_presentation=1
+ ...
+ </pre>
+ default_presentation contains these ORed events:
+ None=0, Sound=1, Messagebox=2, Logfile=4, Stderr=8, PassivePopup=16,
+ Execute=32, Taskbar=64
+ KNotify will search for sound files given with a relative path first in
+ the application's sound directory (share/apps/Application Name/sounds), then in
+ the KDE global sound directory (share/sounds).
+ You can also use the "nopresentation" key, with any the presentations
+ ORed. Those that are in that field will not appear in the kcontrol
+ module. This was intended for software like KWin to not allow a window-opening
+ that opens a window (e.g., allowing to disable KMessageBoxes from appearing)
+ If the user edits the eventsrc file manually, it will appear. This only
+ affects the KcmNotify.
+ You can also use the following events, which are system controlled
+ and do not need to be placed in your eventsrc:
+<ul>
+ <li>cannotopenfile
+ <li>notification
+ <li>warning
+ <li>fatalerror
+ <li>catastrophe
+</ul>
+ The events can be configured in an application using KNotifyDialog, which is part of KIO.
+ @author Charles Samuels <charles@kde.org>
+
+ @short This namespace provides a method for issuing events to a KNotifyServer call KNotifyClient.event("eventname"); to issue it.
+
+*/
+public class KNotifyClient {
+ /**
+ Describes the notification method.
+ @short Describes the notification method.
+ */
+ public static final int Default = -1;
+ public static final int None = 0;
+ public static final int Sound = 1;
+ public static final int Messagebox = 2;
+ public static final int Logfile = 4;
+ public static final int Stderr = 8;
+ public static final int PassivePopup = 16;
+ public static final int Execute = 32;
+ public static final int Taskbar = 64;
+
+ /**
+ Describes the level of the error.
+ @short Describes the level of the error.
+ */
+ public static final int Notification = 1;
+ public static final int Warning = 2;
+ public static final int Error = 4;
+ public static final int Catastrophe = 8;
+
+ /**
+ default events you can use
+ @short default events you can use
+ */
+ public static final int cannotOpenFile = 0;
+ public static final int notification = 1;
+ public static final int warning = 2;
+ public static final int fatalError = 3;
+ public static final int catastrophe = 4;
+
+ /**
+ This starts the KNotify Daemon, if it's not already started.
+ This will be useful for games that use sound effects. Run this
+ at the start of the program, and there won't be a pause when it is
+ first triggered.
+ @return true if daemon is running (always true at the moment)
+
+ @short This starts the KNotify Daemon, if it's not already started.
+ */
+ public static native boolean startDaemon();
+ /**
+ This should be the most used method in here.
+ Pass the origin-widget's winId() here so that a PassivePopup can be
+ placed appropriately.
+ Call it by KNotifyClient.event(widget.winId(), "EventName");
+ It will use KApplication.kApplication.dcopClient() to communicate to
+ the server
+ @param winId The winId() of the widget where the event originates
+ @param message The name of the event
+ @param text The text to put in a dialog box. This won't be shown if
+ the user connected the event to sound, only. Can be null.
+ @return a value > 0, unique for this event if successful, 0 otherwise
+
+ @short This should be the most used method in here.
+ */
+ public static native int event(int winId, String message, String text);
+ public static native int event(int winId, String message);
+ /**
+ You should
+ pass the origin-widget's winId() here so that a PassivePopup can be
+ placed appropriately.
+ @param winId The winId() of the widget where the event originates
+ @param event The event you want to raise
+ @param text The text to put in a dialog box. This won't be shown if
+ the user connected the event to sound, only. Can be null.
+ @return a value > 0, unique for this event if successful, 0 otherwise
+
+ @short You should pass the origin-widget's winId() here so that a PassivePopup can be placed appropriately.
+ */
+ public static native int event(int winId, int event, String text);
+ public static native int event(int winId, int event);
+ /**
+ Will fire an event that's not registered.
+ You should
+ pass the origin-widget's winId() here so that a PassivePopup can be
+ placed appropriately.
+ @param winId The winId() of the originating widget
+ @param text The error message text, if applicable
+ @param present The presentation method(s) of the event
+ @param level The error message level, defaulting to "Default"
+ @param sound The sound file to play if selected with <code>present</code>
+ @param file The log file to append the message to if selected with <code>present</code>
+ @return a value > 0, unique for this event if successful, 0 otherwise
+
+ @short Will fire an event that's not registered.
+ */
+ public static native int userEvent(int winId, String text, int present, int level, String sound, String file);
+ public static native int userEvent(int winId, String text, int present, int level, String sound);
+ public static native int userEvent(int winId, String text, int present, int level);
+ public static native int userEvent(int winId, String text, int present);
+ public static native int userEvent(int winId, String text);
+ public static native int userEvent(int winId);
+ /**
+ This is a simple substitution for QApplication.beep().
+ It simply calls
+ <pre>
+ KNotifyClient.event( KNotifyClient.notification, reason );
+ </pre>
+ @param reason the reason, can be null.
+ @short This is a simple substitution for QApplication.beep().
+ */
+ public static native void beep(String reason);
+ public static native void beep();
+ /**
+ Gets the presentation associated with a certain event name
+ Remeber that they may be ORed:
+ <pre>
+ if (present & KNotifyClient.Sound) { [Yes, sound is a default] }
+ </pre>
+ @param eventname the event name to check
+ @return the presentation methods
+
+ @short Gets the presentation associated with a certain event name Remeber that they may be ORed: <pre> if (present & KNotifyClient.Sound) { [Yes, sound is a default] } </pre>
+ */
+ public static native int getPresentation(String eventname);
+ /**
+ Gets the default file associated with a certain event name
+ The control panel module will list all the event names
+ This has the potential for being slow.
+ @param eventname the name of the event
+ @param present the presentation method
+ @return the associated file. Can be null if not found.
+
+ @short Gets the default file associated with a certain event name The control panel module will list all the event names This has the potential for being slow.
+ */
+ public static native String getFile(String eventname, int present);
+ /**
+ Gets the default presentation for the event of this program.
+ Remember that the Presentation may be ORed. Try this:
+ <pre>
+ if (present & KNotifyClient.Sound) { [Yes, sound is a default] }
+ </pre>
+ @return the presentation methods
+
+ @short Gets the default presentation for the event of this program.
+ */
+ public static native int getDefaultPresentation(String eventname);
+ /**
+ Gets the default File for the event of this program.
+ It gets it in relation to present.
+ Some events don't apply to this function ("Message Box")
+ Some do (Sound)
+ @param eventname the name of the event
+ @param present the presentation method
+ @return the default file. Can be null if not found.
+
+ @short Gets the default File for the event of this program.
+ */
+ public static native String getDefaultFile(String eventname, int present);
+ /**
+ Shortcut to KNotifyClient.Instance.current() :)
+ @return the current KInstance.
+
+ @short Shortcut to KNotifyClient.Instance.current() :)
+ */
+ public static native KInstanceInterface instance();
+}
diff --git a/kdejava/koala/org/kde/koala/KNumInput.java b/kdejava/koala/org/kde/koala/KNumInput.java
new file mode 100644
index 00000000..7b41b27a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KNumInput.java
@@ -0,0 +1,92 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QSizePolicy;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ You need to inherit from this class if you want to implement KNumInput
+ for a different variable type
+ @short You need to inherit from this class if you want to implement K NumInput for a different variable type
+
+*/
+public class KNumInput extends QWidget {
+ protected KNumInput(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Default constructor
+ @param parent If parent is 0, the new widget becomes a top-level window. If parent is another widget, this widget becomes a child window inside parent. The new widget is deleted when its parent is deleted.
+ @param name The name is sent to the QObject constructor.
+ @short Default constructor
+ */
+ /**
+ @param below A pointer to another KNumInput.
+ @param parent parent widget
+ @param name name of the widget
+ @short
+ */
+ /**
+ Sets the text and alignment of the main description label.
+ @param label The text of the label.
+ Use null to remove an existing one.
+ @param a one of <code>AlignLeft</code>, <code>AlignHCenter</code>, YAlignRight and
+ <code>AlignTop</code>, <code>AlignVCenter</code>, <code>AlignBottom.</code>
+ default is <code>AlignLeft</code> | <code>AlignTop.</code>
+ The vertical alignment flags have special meaning with this
+ widget:
+
+ <li>
+ <code>AlignTop</code> The label is placed above the edit/slider
+ </li>
+
+ <li>
+ <code>AlignVCenter</code> The label is placed left beside the edit
+ </li>
+
+ <li>
+ <code>AlignBottom</code> The label is placed below the edit/slider
+ </li>
+ @short Sets the text and alignment of the main description label.
+ */
+ public native void setLabel(String label, int a);
+ public native void setLabel(String label);
+ /**
+ @return the text of the label.
+
+ @short
+ */
+ public native String label();
+ /**
+ @return if the num input has a slider.
+
+ @short
+ */
+ public native boolean showSlider();
+ /**
+ Sets the spacing of tickmarks for the slider.
+ @param minor Minor tickmark separation.
+ @param major Major tickmark separation.
+ @short Sets the spacing of tickmarks for the slider.
+ */
+ public native void setSteps(int minor, int major);
+ /**
+ Specifies that this widget may stretch horizontally, but is
+ fixed vertically (like QSpinBox itself).
+ @short Specifies that this widget may stretch horizontally, but is fixed vertically (like QSpinBox itself).
+ */
+ public native QSizePolicy sizePolicy();
+ /**
+ Returns a size which fits the contents of the control.
+ @return the preferred size necessary to show the control
+
+ @short Returns a size which fits the contents of the control.
+ */
+ public native QSize sizeHint();
+}
diff --git a/kdejava/koala/org/kde/koala/KOCRDialog.java b/kdejava/koala/org/kde/koala/KOCRDialog.java
new file mode 100644
index 00000000..2f645fea
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KOCRDialog.java
@@ -0,0 +1,104 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ Base class for OCR Dialogs.
+ See {@link KOCRDialogSignals} for signals emitted by KOCRDialog
+ @short Base class for OCR Dialogs.
+
+*/
+public class KOCRDialog extends KDialogBase {
+ protected KOCRDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates the user's preferred OCR dialog and returns it,
+ or null if no OCR-support
+ is available. Pass a suitable <code>parent</code> widget, if you like. If you
+ don't you have to 'delete' the returned pointer yourself.
+ @param parent the QWidget's parent, or 0
+ @param name the name of the QObject, can be 0
+ @param modal if true the dialog is model
+ @return the KOCRDialog, or 0 if the function failed
+
+ @short Creates the user's preferred OCR dialog and returns it, or 0L if no OCR-support is available.
+ */
+ public static native KOCRDialog getOCRDialog(QWidget parent, String name, boolean modal);
+ public static native KOCRDialog getOCRDialog(QWidget parent, String name);
+ public static native KOCRDialog getOCRDialog(QWidget parent);
+ public static native KOCRDialog getOCRDialog();
+ /**
+ Constructs the OCR dialog. If you implement an own dialog, you can
+ customize it with the usual KDialogBase flags.
+ @param dialogFace the KDialogBase.DialogType
+ @param buttonMask a ORed mask of all buttons (see
+ KDialogBase.ButtonCode)
+ @param parent the QWidget's parent, or 0
+ @param name the name of the QObject, can be 0
+ @param modal if true the dialog is model
+ @short Constructs the OCR dialog.
+ */
+ public KOCRDialog(int dialogFace, int buttonMask, QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKOCRDialog(dialogFace,buttonMask,parent,name,modal);
+ }
+ private native void newKOCRDialog(int dialogFace, int buttonMask, QWidget parent, String name, boolean modal);
+ public KOCRDialog(int dialogFace, int buttonMask, QWidget parent, String name) {
+ super((Class) null);
+ newKOCRDialog(dialogFace,buttonMask,parent,name);
+ }
+ private native void newKOCRDialog(int dialogFace, int buttonMask, QWidget parent, String name);
+ public KOCRDialog(int dialogFace, int buttonMask, QWidget parent) {
+ super((Class) null);
+ newKOCRDialog(dialogFace,buttonMask,parent);
+ }
+ private native void newKOCRDialog(int dialogFace, int buttonMask, QWidget parent);
+ public KOCRDialog(int dialogFace, int buttonMask) {
+ super((Class) null);
+ newKOCRDialog(dialogFace,buttonMask);
+ }
+ private native void newKOCRDialog(int dialogFace, int buttonMask);
+ public KOCRDialog(int dialogFace) {
+ super((Class) null);
+ newKOCRDialog(dialogFace);
+ }
+ private native void newKOCRDialog(int dialogFace);
+ public KOCRDialog() {
+ super((Class) null);
+ newKOCRDialog();
+ }
+ private native void newKOCRDialog();
+ /**
+ Returns the current id for an image. You can use that in your subclass
+ for the signals. The id is used in the signals to let people know
+ which text-recognition belongs to which scan.
+ @return the current id for the image
+
+ @short Returns the current id for an image.
+ @see #nextId
+ @see #textRecognized
+ */
+ protected native int id();
+ /**
+ Returns the id for the next image. You can use that in your subclass
+ for the signals.
+ @return the id for the next image
+
+ @short Returns the id for the next image.
+ @see #id
+ @see #textRecognized
+ */
+ protected native int nextId();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KOCRDialogSignals.java b/kdejava/koala/org/kde/koala/KOCRDialogSignals.java
new file mode 100644
index 00000000..5ceb0d11
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KOCRDialogSignals.java
@@ -0,0 +1,18 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KOCRDialogSignals {
+ /**
+ Informs you that the image with the id <code>id</code> has been run through
+ text-recognition. The text is in the String parameter. In the future,
+ a compound document, using rich text will be used instead.
+ @param text the text that has been recognized
+ @param id the id of the image
+ @short Informs you that the image with the id <code>id</code> has been run through text-recognition.
+ */
+ void textRecognized(String text, int id);
+}
diff --git a/kdejava/koala/org/kde/koala/KOpenWithDlg.java b/kdejava/koala/org/kde/koala/KOpenWithDlg.java
new file mode 100644
index 00000000..114d105f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KOpenWithDlg.java
@@ -0,0 +1,162 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDialog;
+
+/**
+
+ "Open with" dialog box.
+ Used automatically by KRun, and used by libkonq.
+ @author David Faure <faure@kde.org>
+
+ @short "Open with" dialog box.
+
+*/
+public class KOpenWithDlg extends QDialog {
+ protected KOpenWithDlg(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create a dialog that asks for a application to open a given
+ URL(s) with.
+ @param urls the URLs that should be opened. The list can be empty,
+ if the dialog is used to choose an application but not for some particular URLs.
+ @param parent parent widget
+ @short Create a dialog that asks for a application to open a given URL(s) with.
+ */
+ public KOpenWithDlg(ArrayList urls, QWidget parent) {
+ super((Class) null);
+ newKOpenWithDlg(urls,parent);
+ }
+ private native void newKOpenWithDlg(ArrayList urls, QWidget parent);
+ public KOpenWithDlg(ArrayList urls) {
+ super((Class) null);
+ newKOpenWithDlg(urls);
+ }
+ private native void newKOpenWithDlg(ArrayList urls);
+ /**
+ Create a dialog that asks for a application to open a given
+ URL(s) with.
+ @param urls is the URL that should be opened
+ @param text appears as a label on top of the entry box.
+ @param value is the initial value of the line
+ @param parent parent widget
+ @short Create a dialog that asks for a application to open a given URL(s) with.
+ */
+ public KOpenWithDlg(ArrayList urls, String text, String value, QWidget parent) {
+ super((Class) null);
+ newKOpenWithDlg(urls,text,value,parent);
+ }
+ private native void newKOpenWithDlg(ArrayList urls, String text, String value, QWidget parent);
+ public KOpenWithDlg(ArrayList urls, String text, String value) {
+ super((Class) null);
+ newKOpenWithDlg(urls,text,value);
+ }
+ private native void newKOpenWithDlg(ArrayList urls, String text, String value);
+ /**
+ Create a dialog to select a service for a given service type.
+ Note that this dialog doesn't apply to URLs.
+ @param serviceType the service type we want to choose an application for.
+ @param value is the initial value of the line
+ @param parent parent widget
+ @short Create a dialog to select a service for a given service type.
+ */
+ public KOpenWithDlg(String serviceType, String value, QWidget parent) {
+ super((Class) null);
+ newKOpenWithDlg(serviceType,value,parent);
+ }
+ private native void newKOpenWithDlg(String serviceType, String value, QWidget parent);
+ public KOpenWithDlg(String serviceType, String value) {
+ super((Class) null);
+ newKOpenWithDlg(serviceType,value);
+ }
+ private native void newKOpenWithDlg(String serviceType, String value);
+ /**
+ Create a dialog to select an application
+ Note that this dialog doesn't apply to URLs.
+ @param parent parent widget
+ @short Create a dialog to select an application Note that this dialog doesn't apply to URLs.
+ */
+ public KOpenWithDlg(QWidget parent) {
+ super((Class) null);
+ newKOpenWithDlg(parent);
+ }
+ private native void newKOpenWithDlg(QWidget parent);
+ public KOpenWithDlg() {
+ super((Class) null);
+ newKOpenWithDlg();
+ }
+ private native void newKOpenWithDlg();
+ /**
+ @return the text the user entered
+
+ @short
+ */
+ public native String text();
+ /**
+ Hide the "Do not &close when command exits" Checkbox
+ @short Hide the "Do not &close when command exits" Checkbox
+ */
+ public native void hideNoCloseOnExit();
+ /**
+ Hide the "Run in &terminal" Checkbox
+ @short Hide the "Run in &terminal" Checkbox
+ */
+ public native void hideRunInTerminal();
+ /**
+ @return the chosen service in the application tree
+ Can be null, if the user typed some text and didn't select a service.
+
+ @short
+ */
+ // KService::Ptr service(); >>>> NOT CONVERTED
+ /**
+ Set whether a new .desktop file should be created if the user selects an
+ application for which no corresponding .desktop file can be found.
+ Regardless of this setting a new .desktop file may still be created if
+ the user has chosen to remember the file association.
+ The default is false: no .desktop files are created.
+ @short Set whether a new .
+ */
+ public native void setSaveNewApplications(boolean b);
+ /**
+ The slot for clearing the edit widget
+ @short The slot for clearing the edit widget
+ */
+ public native void slotClear();
+ public native void slotSelected(String _name, String _exec);
+ public native void slotHighlighted(String _name, String _exec);
+ public native void slotTextChanged();
+ public native void slotTerminalToggled(boolean arg1);
+ public native void slotDbClick();
+ public native void slotOK();
+ /**
+ Determine service type from URLs
+ @short Determine service type from URLs
+ */
+ protected native void setServiceType(ArrayList _urls);
+ /**
+ Create a dialog that asks for a application to open a given
+ URL(s) with.
+ @param text appears as a label on top of the entry box.
+ @param value is the initial value of the line
+ @short Create a dialog that asks for a application to open a given URL(s) with.
+ */
+ protected native void init(String text, String value);
+ /**
+ Reimplemented from QDialog.accept() to save history of the combobox
+ @short Reimplemented from QDialog.accept() to save history of the combobox
+ */
+ protected native void accept();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPalette.java b/kdejava/koala/org/kde/koala/KPalette.java
new file mode 100644
index 00000000..66e43e54
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPalette.java
@@ -0,0 +1,199 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ Class for handling Palettes.
+ This class makes it easy to handle palettes.
+ A palette is a set of colors. This class can read
+ and write palettes from and to a file.
+ This class uses the "GIMP" palette file format.
+ This class is totally unrelated to QPalette.
+ @author Waldo Bastian (bastian@kde.org)
+
+ @short Class for handling Palettes.
+
+*/
+public class KPalette implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KPalette(Class dummy){}
+
+ /**
+ Used to specify whether a palette may be edited.
+ @short Used to specify whether a palette may be edited.
+ @see #editable
+ @see #setEditable
+ */
+ public static final int Yes = 0;
+ public static final int No = 1;
+ public static final int Ask = 2;
+
+ /**
+ KPalette constructor. Creates a KPalette from a file
+ the filename is derived from the name.
+ @param name The name of palette as returned by getPaletteList()
+ @short KPalette constructor.
+ */
+ public KPalette(String name) {
+ newKPalette(name);
+ }
+ private native void newKPalette(String name);
+ public KPalette() {
+ newKPalette();
+ }
+ private native void newKPalette();
+ /**
+ KPalette copy constructor.
+ @short KPalette copy constructor.
+ */
+ public KPalette(KPalette arg1) {
+ newKPalette(arg1);
+ }
+ private native void newKPalette(KPalette arg1);
+ /**
+ Save the palette
+ @return 'true' if successful
+
+ @short Save the palette
+ */
+ public native boolean save();
+ /**
+ Get the description of the palette.
+ @return the description of the palette.
+
+ @short Get the description of the palette.
+ */
+ public native String description();
+ /**
+ Set the description of the palette.
+ @param desc the new description
+ @short Set the description of the palette.
+ */
+ public native void setDescription(String desc);
+ /**
+ Get the name of the palette.
+ @return the name of the palette
+
+ @short Get the name of the palette.
+ */
+ public native String name();
+ /**
+ Set the name of the palette.
+ @param name the name of the palette
+ @short Set the name of the palette.
+ */
+ public native void setName(String name);
+ /**
+ Returns whether the palette may be edited.
+ @return the state of the palette
+
+ @short Returns whether the palette may be edited.
+ */
+ public native int editable();
+ /**
+ Change whether the palette may be edited.
+ @param editable the state of the palette
+ @short Change whether the palette may be edited.
+ */
+ public native void setEditable(int editable);
+ /**
+ Return the number of colors in the palette.
+ @return the number of colors
+
+ @short Return the number of colors in the palette.
+ */
+ public native int nrColors();
+ /**
+ Find color by index.
+ @param index the index of the desired color
+ @return The <code>index</code> -th color of the palette, null if not found.
+
+ @short Find color by index.
+ */
+ public native QColor color(int index);
+ /**
+ Find index by <code>color.</code>
+ @param color the color to find
+ @return The index of the color in the palette or -1 if the
+ color is not found.
+
+ @short Find index by <code>color.</code>
+ */
+ public native int findColor(QColor color);
+ /**
+ Find color name by <code>index.</code>
+ @param index the index of the color
+ @return The name of the <code>index</code> -th color.
+ Note that not all palettes have named the colors. Null is
+ returned if the color does not exist or has no name.
+
+ @short Find color name by <code>index.</code>
+ */
+ public native String colorName(int index);
+ /**
+ Find color name by <code>color.</code>
+ @return The name of color according to this palette.
+ Note that not all palettes have named the colors.
+ Note also that each palette can give the same color
+ a different name.
+
+ @short Find color name by <code>color.</code>
+ */
+ public native String colorName(QColor color);
+ /**
+ Add a color.
+ @param newColor The color to add.
+ @param newColorName The name of the color, null to remove
+ the name.
+ @return The index of the added color.
+
+ @short Add a color.
+ */
+ public native int addColor(QColor newColor, String newColorName);
+ public native int addColor(QColor newColor);
+ /**
+ Change a color.
+ @param index Index of the color to change
+ @param newColor The new color.
+ @param newColorName The new color name, null to remove
+ the name.
+ @return The index of the new color or -1 if the color couldn't
+ be changed.
+
+ @short Change a color.
+ */
+ public native int changeColor(int index, QColor newColor, String newColorName);
+ public native int changeColor(int index, QColor newColor);
+ /**
+ Change a color.
+ @param oldColor The original color
+ @param newColor The new color.
+ @param newColorName The new color name, null to remove
+ the name.
+ @return The index of the new color or -1 if the color couldn't
+ be changed.
+
+ @short Change a color.
+ */
+ public native int changeColor(QColor oldColor, QColor newColor, String newColorName);
+ public native int changeColor(QColor oldColor, QColor newColor);
+ /**
+ Query which KDE palettes are installed.
+ @return A list with a palette names.
+
+ @short Query which KDE palettes are installed.
+ */
+ public static native ArrayList getPaletteList();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPaletteTable.java b/kdejava/koala/org/kde/koala/KPaletteTable.java
new file mode 100644
index 00000000..9d5bd8a2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPaletteTable.java
@@ -0,0 +1,55 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ A color palette in table form.
+ See {@link KPaletteTableSignals} for signals emitted by KPaletteTable
+ @author Waldo Bastian <bastian@kde.org>
+
+ @short A color palette in table form.
+
+*/
+public class KPaletteTable extends QWidget {
+ protected KPaletteTable(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KPaletteTable(QWidget parent, int minWidth, int cols) {
+ super((Class) null);
+ newKPaletteTable(parent,minWidth,cols);
+ }
+ private native void newKPaletteTable(QWidget parent, int minWidth, int cols);
+ public KPaletteTable(QWidget parent, int minWidth) {
+ super((Class) null);
+ newKPaletteTable(parent,minWidth);
+ }
+ private native void newKPaletteTable(QWidget parent, int minWidth);
+ public KPaletteTable(QWidget parent) {
+ super((Class) null);
+ newKPaletteTable(parent);
+ }
+ private native void newKPaletteTable(QWidget parent);
+ public native void addToCustomColors(QColor arg1);
+ public native void addToRecentColors(QColor arg1);
+ public native String paletteName();
+ public native void setPalette(String paletteName);
+ protected native void readNamedColor();
+ protected native void slotColorCellSelected(int arg1);
+ protected native void slotColorCellDoubleClicked(int arg1);
+ protected native void slotColorTextSelected(String colorText);
+ protected native void slotSetPalette(String _paletteName);
+ protected native void slotShowNamedColorReadError();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPaletteTableSignals.java b/kdejava/koala/org/kde/koala/KPaletteTableSignals.java
new file mode 100644
index 00000000..4f630a47
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPaletteTableSignals.java
@@ -0,0 +1,12 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KPaletteTableSignals {
+ void colorSelected(QColor arg1, String arg2);
+ void colorDoubleClicked(QColor arg1, String arg2);
+}
diff --git a/kdejava/koala/org/kde/koala/KPanelAppMenu.java b/kdejava/koala/org/kde/koala/KPanelAppMenu.java
new file mode 100644
index 00000000..6ffde430
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPanelAppMenu.java
@@ -0,0 +1,292 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPixmap;
+import java.util.ArrayList;
+import org.kde.qt.QObject;
+
+/**
+
+ DCop client menu class for the Kicker panel that will insert a submenu into
+ the %KDE menu.
+ See {@link KPanelAppMenuSignals} for signals emitted by KPanelAppMenu
+ @author Daniel M. Duley <mosfet@kde.org>
+
+ @short DCop client menu class for the Kicker panel that will insert a submenu into the %KDE menu.
+
+*/
+public class KPanelAppMenu extends QObject implements DCOPObjectInterface {
+ protected KPanelAppMenu(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a new menu with the given title.
+ @short Constructs a new menu with the given title.
+ */
+ public KPanelAppMenu(String title, QObject parent, String name) {
+ super((Class) null);
+ newKPanelAppMenu(title,parent,name);
+ }
+ private native void newKPanelAppMenu(String title, QObject parent, String name);
+ public KPanelAppMenu(String title, QObject parent) {
+ super((Class) null);
+ newKPanelAppMenu(title,parent);
+ }
+ private native void newKPanelAppMenu(String title, QObject parent);
+ public KPanelAppMenu(String title) {
+ super((Class) null);
+ newKPanelAppMenu(title);
+ }
+ private native void newKPanelAppMenu(String title);
+ /**
+ Same as above, but with an icon for the submenu item.
+ @short Same as above, but with an icon for the submenu item.
+ */
+ public KPanelAppMenu(QPixmap icon, String title, QObject parent, String name) {
+ super((Class) null);
+ newKPanelAppMenu(icon,title,parent,name);
+ }
+ private native void newKPanelAppMenu(QPixmap icon, String title, QObject parent, String name);
+ /**
+ Constructs a new (sub)menu with a given id.
+ @short Constructs a new (sub)menu with a given id.
+ */
+ public KPanelAppMenu(QObject parent, String name) {
+ super((Class) null);
+ newKPanelAppMenu(parent,name);
+ }
+ private native void newKPanelAppMenu(QObject parent, String name);
+ /**
+ Inserts an item into the menu.
+ @short Inserts an item into the menu.
+ */
+ public native int insertItem(String text, int id);
+ public native int insertItem(String text);
+ /**
+ Inserts an item with a icon. The icon name must be a full path.
+ @short Inserts an item with a icon.
+ */
+ public native int insertItem(QPixmap icon, String text, int id);
+ public native int insertItem(QPixmap icon, String text);
+ /**
+ Inserts a sub menu with a icon. The icon name must be a full path.
+ @short Inserts a sub menu with a icon.
+ */
+ public native KPanelAppMenu insertMenu(QPixmap icon, String text, int id);
+ public native KPanelAppMenu insertMenu(QPixmap icon, String text);
+ /**
+ Clears the menu.
+ @short Clears the menu.
+ */
+ public native void clear();
+ /**
+ @short
+ */
+ public native boolean process(String fun, byte[] data, StringBuffer replyType, byte[] reply);
+ protected native void init(QPixmap icon, String title);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+ /**
+ Returns the object id of the DCOPObject.
+ @return the object's id
+
+ @short Returns the object id of the DCOPObject.
+ */
+ public native String objId();
+ /**
+ Renames a dcop object, if no other with the same name exists
+ Use with care, all dcop signals are disconnected
+ @param objId the new object id
+ @short Renames a dcop object, if no other with the same name exists Use with care, all dcop signals are disconnected
+ */
+ public native boolean setObjId(String objId);
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for process() but
+ you still want to dispatch some functions dynamically.
+ Dynamically means that methods may appear and vanish
+ during runtime.
+ @param fun is the normalized function signature.
+ Such a signature usually looks like
+ foobar(String,int). The return type,
+ qualifiers like "const" etc. are not part of
+ the signature.
+ @param data the received data
+ @param replyType write the reply type in this string
+ @param replyData write the reply data in this array
+ @return true if successful, false otherwise. The default implementation
+ returns always false.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for process() but you still want to dispatch some functions dynamically.
+ @see #process
+ @see DCOPClient#normalizeFunctionSignature
+ @see #functions
+ @see DCOPClient#process
+ */
+ public native boolean processDynamic(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for functions() but
+ you still want to list some functions dynamically.
+ Dynamically means that the methods may appear and vanish
+ during runtime.
+ @return A list of the additional functions, default is an empty list.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for functions() but you still want to list some functions dynamically.
+ @see #functions
+ */
+ public native ArrayList functionsDynamic();
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for interfaces() but
+ you still want to list some interfaces dynamically.
+ Dynamically means that they may appear and vanish
+ during runtime.
+ @return A list of the additional interfaces, default is an empty list.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for interfaces() but you still want to list some interfaces dynamically.
+ @see #interfaces
+ */
+ public native ArrayList interfacesDynamic();
+ /**
+ Returns the names of the interfaces, specific ones last. The
+ functions gets reimplemented by the IDL compiler. If you don't
+ use the IDL compiler, consider implementing this function
+ manually if you want your object to be easily explorable.
+ @return a list of interfaces
+
+ @short Returns the names of the interfaces, specific ones last.
+ @see #functions
+ */
+ public native ArrayList interfaces();
+ /**
+ Returns the list of functions understood by the object. It gets
+ reimplemented by the IDL compiler. If you don't use the IDL
+ compiler, consider implementing this function manually if you
+ want your object to be easily scriptable.
+ Rationale: functions() allows an interpreter to do client-side
+ type-casting properly.
+ Note to implementators: remember to call the baseclasses
+ implementation.
+ @return a list of functions
+
+ @short Returns the list of functions understood by the object.
+ @see #interfaces
+ @see #process
+ @see #processDynamic
+ @see DCOPClient#normalizeFunctionSignature
+ */
+ public native ArrayList functions();
+ /**
+ Emit <code>signal</code> as DCOP signal from this object with <code>data</code> as
+ arguments
+ @param signal the signal to emit
+ @param data the data to send
+ @short Emit <code>signal</code> as DCOP signal from this object with <code>data</code> as arguments
+ */
+ public native void emitDCOPSignal(String signal, byte[] data);
+ /**
+ Connects to a DCOP signal.
+ @param sender the name of the client that emits the signal. When empty
+ the signal will be passed from any client.
+ @param senderObj the name of the sending object that emits the signal.
+ @param signal the name of the signal. The arguments should match with slot.
+ @param slot The name of the slot to call. Its arguments should match with signal.
+ @param Volatile If true, the connection will not be reestablished when
+ <code>sender</code> unregisters and reregisters with DCOP. In this case the <code>sender</code>
+ must be registered when the connection is made.
+ If false, the connection will be reestablished when <code>sender</code> reregisters.
+ In this case the connection can be made even if <code>sender</code> is not registered
+ at that time.
+
+ <li>
+ <code>Volatile</code> is true and <code>sender</code> does not exist.
+ </li>
+
+ <li>
+ <code>signal</code> and <code>slot</code> do not have matching arguments.
+
+ </li> @return false if a connection could not be established.
+ This will be the case when
+
+ @short Connects to a DCOP signal.
+ */
+ public native boolean connectDCOPSignal(String sender, String senderObj, String signal, String slot, boolean Volatile);
+ /**
+ Disconnects a DCOP signal.
+ A special case is when both <code>sender</code> & <code>signal</code> are empty. In this
+ case all connections related to this object in the current client
+ are disconnected. (Both connections from as well as to this object!)
+ @param sender the name of the client that emits the signal.
+ @param senderObj the name of the object that emits the signal.
+ If empty all objects will be disconnected.
+ @param signal the name of the signal. The arguments should match with slot.
+ If empty all objects will be disconnected.
+ @param slot The name of the slot the signal is connected to.
+ If empty all slots will be disconnected.
+ @return false if no connection(s) where removed.
+
+ @short Disconnects a DCOP signal.
+ */
+ public native boolean disconnectDCOPSignal(String sender, String senderObj, String signal, String slot);
+ /**
+ Returns the DCOPClient responsible for making the call.
+ Only call this function while you are handling a DCOP call.
+ @return the DCOPClient responsible for making the call.
+ This information is only guaranteed to be correct when
+ entering your DCOP function.
+
+ @short Returns the DCOPClient responsible for making the call.
+ */
+ public native DCOPClient callingDcopClient();
+ /**
+ @short
+ */
+ public native void setCallingDcopClient(DCOPClient arg1);
+ /**
+ Checks whether an object with the given id is known in this process.
+ DCOPObjectProxy
+ @return true if an object with the questionable <code>objId</code> is
+ known in this process. This query does not ask proxies.
+
+ @short Checks whether an object with the given id is known in this process.
+ */
+ public static native boolean hasObject(String objId);
+ /**
+ Try to find a dcop object with the given id.
+ This function does not query the DCOPObjectProxy.
+ @param objId the object id to search
+ @return the DCOPObject for the id <code>objId.</code>
+
+ @short Try to find a dcop object with the given id.
+ */
+ public static native DCOPObjectInterface find(String objId);
+ /**
+ Tries to find an object using a partial object id.
+ This function is used for multicasting a DCOP message to
+ several objects inside a single process.
+ @param partialId the partial object id to search for
+ @return a list of DCOPObjects beginning with the string
+ contained in <code>partialId.</code>
+
+ @short Tries to find an object using a partial object id.
+ */
+ // QPtrList<DCOPObject> match(const QCString& arg1); >>>> NOT CONVERTED
+ /**
+ Creates an object id for the QObject <code>obj.</code> This is done
+ using the QObject.name() function.
+ @param obj the object whose name will be used
+ @return the created object id
+
+ @short Creates an object id for the QObject <code>obj.</code>
+ */
+ public static native String objectName(QObject arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KPanelAppMenuSignals.java b/kdejava/koala/org/kde/koala/KPanelAppMenuSignals.java
new file mode 100644
index 00000000..6f6cff69
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPanelAppMenuSignals.java
@@ -0,0 +1,16 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPixmap;
+import java.util.ArrayList;
+
+public interface KPanelAppMenuSignals {
+ /**
+ Emitted when the user selects an item from the Kicker menu.
+ @short Emitted when the user selects an item from the Kicker menu.
+ */
+ void activated(int id);
+}
diff --git a/kdejava/koala/org/kde/koala/KPanelApplet.java b/kdejava/koala/org/kde/koala/KPanelApplet.java
new file mode 100644
index 00000000..80e4a619
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPanelApplet.java
@@ -0,0 +1,332 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QFrame;
+
+/**
+
+ Panel applets
+
+ <li>
+ Are small applications living in the %KDE panel.
+ </li>
+
+ <li>
+ Are implemented as DSOs (Dynamic Shared Objects).
+ </li>
+ Note: For security and stability reasons the panel won't load
+ untrusted third party applets directly into its namespace but via an
+ external wrapper process.
+ The panel locates available applets by searching for applet desktop
+ files in (ALL_DIRS)/share/apps/kicker/applets. Every panel applet should
+ install a desktop file there to be recognized by the panel.
+ Besides standard keys like "Name", "Comment" and "Icon" there are
+ two panel applet specific keys:
+ <li><b>X-KDE-Library </b></li>
+ Used by the panel to locate the applet DSO (Dynamic Shared Object)
+ Example: X-KDE-Library=libexampleapplet
+ <li><b>X-KDE-UniqueApplet </b></li>
+ Similar to KApplication and KUniqueApplication there are
+ two types of panel applets. Use unique applets when it makes no
+ sence to run more than one instance of a applet in the panel. A
+ good example for unique applets is the taskbar applet. Use normal
+ applets when you need instance specific configuration. An example
+ is the koolclock applet where you might want to run two instances
+ in your panel, one configured as analog clock, the other one as
+ digital clock. X-KDE-UniqueApplet is a booleanean key which defaults
+ to "false". Example: X-KDE-UniqueApplet=true
+ Back to panel applet DSOs, the following conventions are used for %KDE:
+ Name: lib<appletname>applet.la
+ LDFLAGS: -module -no-undefined
+ To implement a panel applet it is not enough to write a class
+ inheriting from KPanelApplet but you also have to provide a
+ factory function in your DSO. A sample factory function could look
+ like this:
+ <pre>
+ extern "C"
+ {
+ KPanelApplet init(QWidget parent, String configFile)
+ {
+ KGlobal.locale().insertCatalogue("exampleapplet");
+ return new ExampleApplet(configFile, KPanelApplet.Normal,
+ KPanelApplet.About | KPanelApplet.Help | KPanelApplet.Preferences,
+ parent, "exampleapplet");
+ }
+ }
+ </pre>
+ Note: Don't change the factory function signature or the panel will
+ fail to load your applet.
+ See {@link KPanelAppletSignals} for signals emitted by KPanelApplet
+ @author Matthias Elter <elter@kde.org>
+
+ @short %KDE Panel Applet class.
+
+*/
+public class KPanelApplet extends QFrame {
+ protected KPanelApplet(Class dummy){super((Class) null);}
+ /**
+ This enum describes the type of the applet.
+ @short This enum describes the type of the applet.
+ */
+ public static final int Normal = 0;
+ public static final int Stretch = 1;
+
+ /**
+ This enum holds flags which can be ORed together to describe
+ which items the context menu over the applet handle contains.
+ @short This enum holds flags which can be ORed together to describe which items the context menu over the applet handle contains.
+ */
+ public static final int About = 1;
+ public static final int Help = 2;
+ public static final int Preferences = 4;
+ public static final int ReportBug = 8;
+
+ public static final int pLeft = 0;
+ public static final int pRight = 1;
+ public static final int pTop = 2;
+ public static final int pBottom = 3;
+
+ public static final int LeftTop = 0;
+ public static final int Center = 1;
+ public static final int RightBottom = 2;
+
+ public static final int Up = 0;
+ public static final int Down = 1;
+ public static final int Left = 2;
+ public static final int Right = 3;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KPanelApplet just like any other widget.
+ @param configFile The configFile handed over in the factory function.
+ @param t The applet type().
+ @param actions Standard RMB menu actions supported by the applet (see action() ).
+ @param parent The pointer to the parent widget handed over in the factory function.
+ @param name A Qt object name for your applet.
+ @param f Window control flags
+ @short Constructs a KPanelApplet just like any other widget.
+ */
+ public KPanelApplet(String configFile, int t, int actions, QWidget parent, String name, int f) {
+ super((Class) null);
+ newKPanelApplet(configFile,t,actions,parent,name,f);
+ }
+ private native void newKPanelApplet(String configFile, int t, int actions, QWidget parent, String name, int f);
+ public KPanelApplet(String configFile, int t, int actions, QWidget parent, String name) {
+ super((Class) null);
+ newKPanelApplet(configFile,t,actions,parent,name);
+ }
+ private native void newKPanelApplet(String configFile, int t, int actions, QWidget parent, String name);
+ public KPanelApplet(String configFile, int t, int actions, QWidget parent) {
+ super((Class) null);
+ newKPanelApplet(configFile,t,actions,parent);
+ }
+ private native void newKPanelApplet(String configFile, int t, int actions, QWidget parent);
+ public KPanelApplet(String configFile, int t, int actions) {
+ super((Class) null);
+ newKPanelApplet(configFile,t,actions);
+ }
+ private native void newKPanelApplet(String configFile, int t, int actions);
+ public KPanelApplet(String configFile, int t) {
+ super((Class) null);
+ newKPanelApplet(configFile,t);
+ }
+ private native void newKPanelApplet(String configFile, int t);
+ public KPanelApplet(String configFile) {
+ super((Class) null);
+ newKPanelApplet(configFile);
+ }
+ private native void newKPanelApplet(String configFile);
+ /**
+ Returns a suggested width for a given height.
+ Every applet should reimplement this function.
+ Depending on the panel orientation the height (horizontal panel) or the
+ width (vertical panel) of the applets is fixed.
+ The exact values of the fixed size component depend on the panel size.
+ On a horizontal panel the applet height is fixed, the panel will
+ call widthForHeight(int height) with <code>height</code>
+ equal to 'the fixed applet height'
+ when laying out the applets.
+ The applet can now choose the other size component (width)
+ based on the given height.
+ The width you return is granted.
+ @short Returns a suggested width for a given height.
+ */
+ public native int widthForHeight(int height);
+ /**
+ Every applet should reimplement this function.
+ Depending on the panel orientation the height (horizontal panel) or the
+ width (vertical panel) of the applets is fixed.
+ The exact values of the fixed size component depend on the panel size.
+ On a vertical panel the applet width is fixed, the panel will
+ call heightForWidth(int width) with <code>width</code>
+ equal to 'the fixed applet width'
+ when laying out the applets.
+ The applet can now choose the other size component (height)
+ based on the given width.
+ The height you return is granted.
+ @return A suggested height for a given width.
+
+ @short
+ */
+ public native int heightForWidth(int width);
+ /**
+ Always use this KConfig object to save/load your applet's configuration.
+ For unique applets this config object will write to a config file called
+ \<appletname\>rc in the user's local %KDE directory.
+ For normal applets this config object will write to a instance specific config file
+ called \<appletname\>\<instanceid\>rc in the user's local %KDE directory.
+ @short Always use this KConfig object to save/load your applet's configuration.
+ */
+ public native KConfig config();
+ // KSharedConfig::Ptr sharedConfig(); >>>> NOT CONVERTED
+ /**
+ @return Type indicating the applet's type.
+ Type
+
+ @short
+ */
+ public native int type();
+ /**
+ @return int indicating the supported RMB menu actions.
+ Action
+
+ @short
+ */
+ public native int actions();
+ /**
+ Generic action dispatcher. Called when the user selects an item
+ from the applet's RMB menu.
+ Reimplement this function to handle actions.
+ For About, Help, Preferences and ReportBug, use the convenience handlers
+ ref about(), help(), preferences(), reportBug()
+ @short Generic action dispatcher.
+ */
+ public native void action(int a);
+ /**
+ @return the applet's custom menu, usually the same as the context menu, or 0 if none
+ see setCustomMenu(QPopupMenu*)
+
+ @short
+ */
+ public native QPopupMenu customMenu();
+ /**
+ @short
+ */
+ public native void setPosition(int p);
+ /**
+ @short
+ */
+ public native void setAlignment(int a);
+ /**
+ Is called when the user selects "About" from the applet's RMB menu.
+ Reimplement this function to launch a about dialog.
+ Note that this is called only when your applet supports the About action.
+ See Action and KPanelApplet().
+ @short Is called when the user selects "About" from the applet's RMB menu.
+ */
+ protected native void about();
+ /**
+ Is called when the user selects "Help" from the applet's RMB menu.
+ Reimplement this function to launch a manual or help page.
+ Note that this is called only when your applet supports the Help action.
+ See Action and KPanelApplet().
+ @short Is called when the user selects "Help" from the applet's RMB menu.
+ */
+ protected native void help();
+ /**
+ Is called when the user selects "Preferences" from the applet's RMB menu.
+ Reimplement this function to launch a preferences dialog or kcontrol module.
+ Note that this is called only when your applet supports the preferences action.
+ See Action and KPanelApplet().
+ @short Is called when the user selects "Preferences" from the applet's RMB menu.
+ */
+ protected native void preferences();
+ /**
+ Is called when the user selects "Report bug" from the applet's RMB menu.
+ Reimplement this function to launch a bug reporting dialog.
+ Note that this is called only when your applet supports the ReportBug
+ action.
+ See Action and KPanelApplet()
+ @short Is called when the user selects "Report bug" from the applet's RMB menu.
+ */
+ protected native void reportBug();
+ /**
+ @return the applet's orientation. (horizontal or vertical)
+
+ @short
+ */
+ protected native int orientation();
+ /**
+ @return the applet's position. (top, left, bottom, or right)
+
+ @short
+ */
+ protected native int position();
+ /**
+ @return the applet's alignment. (top/left, center, or bottom/right)
+
+ @short
+ */
+ protected native int alignment();
+ /**
+ The panel on which this applet resides has changed its position.
+ Reimplement this change handler in order to adjust the look of your
+ applet.
+ @short The panel on which this applet resides has changed its position.
+ */
+ protected native void positionChange(int p);
+ /**
+ The panel on which this applet resides has changed its alignment.
+ Reimplement this change handler in order to adjust the look of your
+ applet.
+ @short The panel on which this applet resides has changed its alignment.
+ */
+ protected native void alignmentChange(int arg1);
+ /**
+ Use this method to set the custom menu for this applet so that it can be shown
+ in the applet handle menu and other appropriate places that the applet many not itself
+ be aware of. The applet itself is still responsible for deleting and managing the
+ the menu.
+ If the menu is deleted during the life of the applet, be sure to call this method again
+ with the new menu (or 0) to avoid crashes
+ @short Use this method to set the custom menu for this applet so that it can be shown in the applet handle menu and other appropriate places that the applet many not itself be aware of.
+ */
+ protected native void setCustomMenu(QPopupMenu arg1);
+ /**
+ Register widgets that can receive keyboard focus with this this method
+ This call results in an eventFilter being places on the widget.
+ @param widget the widget to watch for keyboard focus
+ @param watch whether to start watching the widget, or to stop doing so
+ @short Register widgets that can receive keyboard focus with this this method This call results in an eventFilter being places on the widget.
+ */
+ protected native void watchForFocus(QWidget widget, boolean watch);
+ protected native void watchForFocus(QWidget widget);
+ /**
+ Call this whenever focus is needed or not needed. You do not have to call this method
+ for widgets that have been registered with watchForFocus
+ @param focus whether to or not to request focus
+ @short Call this whenever focus is needed or not needed.
+ */
+ protected native void needsFocus(boolean focus);
+ /**
+ A convenience method that translates the position of the applet into which
+ direction to show a popup.
+ @short A convenience method that translates the position of the applet into which direction to show a popup.
+ */
+ protected native int popupDirection();
+ public native boolean eventFilter(QObject arg1, QEvent arg2);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPanelAppletSignals.java b/kdejava/koala/org/kde/koala/KPanelAppletSignals.java
new file mode 100644
index 00000000..8b0d8351
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPanelAppletSignals.java
@@ -0,0 +1,36 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+public interface KPanelAppletSignals {
+ /**
+ Emit this signal to make the panel relayout all applets, when
+ you want to change your width (horizontal panel) or
+ height (vertical panel).
+ The panel is going to relayout all applets based on their
+ widthForHeight(int height) (horizontal panel) or
+ heightForWidth(int width) (vertical panel).
+ Please note that the panel may change the applet's location
+ if the new widthForHeight(int height) (horizontal panel) or
+ heightForWidth(int width) (vertical panel) does not fit into the
+ current panel layout.
+ @short Emit this signal to make the panel relayout all applets, when you want to change your width (horizontal panel) or height (vertical panel).
+ */
+ void updateLayout();
+ /**
+ Request keyboard focus from the panel. Applets should never call this directly
+ but rather call needsFocus(boolean)
+ @param focus activate the window and ensure the panel remains visible when true
+ Each and ever time a requestFocus(true) is emitted, it MUST be paired eventually
+ with a requestFocus(false) otherwise the panel may end up never hiding
+ @short Request keyboard focus from the panel.
+ @see #needsFocus
+ */
+ void requestFocus(boolean focus);
+}
diff --git a/kdejava/koala/org/kde/koala/KPanelExtension.java b/kdejava/koala/org/kde/koala/KPanelExtension.java
new file mode 100644
index 00000000..29ec3740
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPanelExtension.java
@@ -0,0 +1,314 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QFrame;
+
+/**
+
+ Panel extensions
+
+ <li>
+ Are small applications living in the Window Manager dock managed by the panel.
+ </li>
+
+ <li>
+ Are implemented as DSOs (Dynamic Shared Objects).
+ </li>
+ Note: For security and stability reasons the panel won't load
+ untrusted third party extensions directly into its namespace but via an
+ external wrapper process.
+ The panel locates available extensions by searching for extension desktop
+ files in (ALL_KDEDIRS)/share/apps/kicker/extensions. Every panel extension should
+ install a desktop file there to be recognized by the panel.
+ Besides standard keys like "Name", "Comment" and "Icon" there are
+ two panel extension specific keys:
+ <li><b>X-KDE-Library </b></li>
+ Used by the panel to locate the extension DSO (Dynamic Shared Object)
+ Example: X-KDE-Library=libexampleextension
+ <li><b>X-KDE-UniqueExtension </b></li>
+ Similar to KApplication and KUniqueApplication there are
+ two types of panel extensions. Use unique extensions when it makes no
+ sence to run more than one instance of an extension in the panel. A
+ good example for unique extensions is the taskbar extension. Use normal
+ extensions when you need instance specific configuration. An example
+ is a subpanel extension where you might want to run more than one instances.
+ X-KDE-UniqueExtension is a booleanean key which defaults
+ to "false". Example: X-KDE-UniqueExtension=true
+ Back to panel extension DSOs, the following conventions are used for KDE:
+ Name: lib<extensionname>extension.la
+ LDFLAGS: -module -no-undefined
+ To implement a panel extension it is not enough to write a class
+ inheriting from KPanelExtension but you also have to provide a
+ factory function in your DSO. A sample factory function could look
+ like this:
+ <pre>
+ extern "C"
+ {
+ KPanelExtension init(QWidget parent, String configFile)
+ {
+ KGlobal.locale().insertCatalogue("exampleextension");
+ return new ExampleExtension(configFile, KPanelExtension.Normal,
+ KPanelExtension.About | KPanelExtension.Help | KPanelExtension.Preferences,
+ parent, "exampleextension");
+ }
+ }
+ </pre>
+ Note: Don't change the factory function signature or the panel will
+ fail to load your extension.
+ See {@link KPanelExtensionSignals} for signals emitted by KPanelExtension
+ @author Matthias Elter <elter@kde.org>
+
+ @short %KDE Panel Extension class.
+
+*/
+public class KPanelExtension extends QFrame {
+ protected KPanelExtension(Class dummy){super((Class) null);}
+ public static final int Normal = 0;
+ public static final int Stretch = 1;
+
+ public static final int About = 1;
+ public static final int Help = 2;
+ public static final int Preferences = 4;
+ public static final int ReportBug = 8;
+
+ public static final int Left = 0;
+ public static final int Right = 1;
+ public static final int Top = 2;
+ public static final int Bottom = 3;
+ public static final int Floating = 4;
+
+ public static final int LeftTop = 0;
+ public static final int Center = 1;
+ public static final int RightBottom = 2;
+
+ public static final int SizeTiny = 0;
+ public static final int SizeSmall = 1;
+ public static final int SizeNormal = 2;
+ public static final int SizeLarge = 3;
+ public static final int SizeCustom = 4;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KPanelExtension just like any other widget.
+ @param configFile The configFile handed over in the factory function.
+ @param t The extension type().
+ @param actions Standard RMB menu actions supported by the extension (see action() ).
+ @param parent The pointer to the parent widget handed over in the factory function.
+ @param name A Qt object name for your extension.
+ @short Constructs a KPanelExtension just like any other widget.
+ */
+ public KPanelExtension(String configFile, int t, int actions, QWidget parent, String name) {
+ super((Class) null);
+ newKPanelExtension(configFile,t,actions,parent,name);
+ }
+ private native void newKPanelExtension(String configFile, int t, int actions, QWidget parent, String name);
+ public KPanelExtension(String configFile, int t, int actions, QWidget parent) {
+ super((Class) null);
+ newKPanelExtension(configFile,t,actions,parent);
+ }
+ private native void newKPanelExtension(String configFile, int t, int actions, QWidget parent);
+ public KPanelExtension(String configFile, int t, int actions) {
+ super((Class) null);
+ newKPanelExtension(configFile,t,actions);
+ }
+ private native void newKPanelExtension(String configFile, int t, int actions);
+ public KPanelExtension(String configFile, int t) {
+ super((Class) null);
+ newKPanelExtension(configFile,t);
+ }
+ private native void newKPanelExtension(String configFile, int t);
+ public KPanelExtension(String configFile) {
+ super((Class) null);
+ newKPanelExtension(configFile);
+ }
+ private native void newKPanelExtension(String configFile);
+ /**
+ Returns the preferred size for a given Position.
+ Every extension should reimplement this function.
+ Depending on the panel position the extensions can choose a preferred size for that
+ location in the Window Manager Dock. Please note that the size can not be larger than the
+ maxsize given by the handler.
+ @short Returns the preferred size for a given Position.
+ */
+ public native QSize sizeHint(int arg1, QSize maxsize);
+ /**
+ Always use this KConfig object to save/load your extensions configuration.
+ For unique extensions this config object will write to a config file called
+ \<extensionname\>rc in the users local KDE directory.
+ For normal extensions this config object will write to a instance specific config file
+ called \<extensionname\>\<instanceid\>rc in the users local KDE directory.
+ @short Always use this KConfig object to save/load your extensions configuration.
+ */
+ public native KConfig config();
+ /**
+ @return Type indicating the extensions type.
+ Type
+
+ @short
+ */
+ public native int type();
+ /**
+ @return int indicating the supported RMB menu actions.
+ Action
+
+ @short
+ */
+ public native int actions();
+ /**
+ Generic action dispatcher. Called when the user selects an item
+ from the extensions RMB menu.
+ Reimplement this function to handle actions.
+ For About, Help, Preferences and ReportBug use the convenience handlers
+ ref about(), help(), preferences(), reportBug()
+ @short Generic action dispatcher.
+ */
+ public native void action(int a);
+ /**
+ Reimplement this function to set a preferred dock position for your extension.
+ The extension manager will try to place new instances of this extension according
+ to this setting.
+ @return Position
+
+ @short Reimplement this function to set a preferred dock position for your extension.
+ */
+ public native int preferedPosition();
+ /**
+ @short
+ */
+ public native void setPosition(int p);
+ /**
+ @short
+ */
+ public native void setAlignment(int a);
+ /**
+ @short
+ */
+ public native void setSize(int size, int customSize);
+ /**
+ @return the extension's size
+
+ @short
+ */
+ public native int sizeSetting();
+ /**
+ @return the custom sizel setting in pixels
+
+ @short
+ */
+ public native int customSize();
+ /**
+ @return the extension's custom menu, usually the same as the context menu, or 0 if none
+
+ @short
+ @see #setCustomMenu(QPopupMenu*)
+ */
+ public native QPopupMenu customMenu();
+ /**
+ @return whether or not to set a desktop geometry claiming strut for this panel
+ defaults to true
+
+ @short
+ @see #setReservetrut(boolean)
+ */
+ public native boolean reserveStrut();
+ /**
+ Is called when the user selects "About" from the extensions RMB menu.
+ Reimplement this function to launch a about dialog.
+ Note that this is called only when your extension supports the About action.
+ See Action.
+ @short Is called when the user selects "About" from the extensions RMB menu.
+ */
+ protected native void about();
+ /**
+ Is called when the user selects "Help" from the extensions RMB menu.
+ Reimplement this function to launch a manual or help page.
+ Note that this is called only when your extension supports the Help action.
+ See Action.
+ @short Is called when the user selects "Help" from the extensions RMB menu.
+ */
+ protected native void help();
+ /**
+ Is called when the user selects "Preferences" from the extensions RMB menu.
+ Reimplement this function to launch a preferences dialog or kcontrol module.
+ Note that this is called only when your extension supports the preferences action.
+ See Action.
+ @short Is called when the user selects "Preferences" from the extensions RMB menu.
+ */
+ protected native void preferences();
+ /**
+ Is called when the user selects "Report bug" from the applet's RMB menu.
+ Reimplement this function to launch a bug reporting dialog.
+ Note that this is called only when your applet supports the ReportBug
+ action.
+ See Action.
+ @short Is called when the user selects "Report bug" from the applet's RMB menu.
+ */
+ protected native void reportBug();
+ /**
+ @return the extension's position. (left, right, top, bottom)
+
+ @short
+ */
+ protected native int position();
+ /**
+ @return the extension's alignment. (left/top, center, or right/bottom)
+
+ @short
+ */
+ protected native int alignment();
+ /**
+ @return the extensions orientation. (horizontal or vertical)
+
+ @short
+ */
+ protected native int orientation();
+ /**
+ @return the appropriate size in pixels for the panel
+
+ @short
+ */
+ protected native int sizeInPixels();
+ /**
+ This extension has changed its position.
+ Reimplement this change handler in order to adjust the look of your
+ applet.
+ @short This extension has changed its position.
+ */
+ protected native void positionChange(int arg1);
+ /**
+ This extension has changed its alignment.
+ Reimplement this change handler in order to adjust the look of your
+ applet.
+ @short This extension has changed its alignment.
+ */
+ protected native void alignmentChange(int arg1);
+ /**
+ Use this method to set the custom menu for this extensions so that it can be shown
+ at the appropriate places/times that the extension many not itself
+ be aware of. The extension itself is still responsible for deleting and managing the
+ the menu.
+ If the menu is deleted during the life of the extension, be sure to call this method again
+ with the new menu (or 0) to avoid crashes
+ @short Use this method to set the custom menu for this extensions so that it can be shown at the appropriate places/times that the extension many not itself be aware of.
+ */
+ protected native void setCustomMenu(QPopupMenu arg1);
+ /**
+ Use this method to set the return value for reserveStrut
+ @short Use this method to set the return value for reserveStrut
+ @see #reserveStrut
+ */
+ protected native void setReserveStrut(boolean shouldUseStrut);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPanelExtensionSignals.java b/kdejava/koala/org/kde/koala/KPanelExtensionSignals.java
new file mode 100644
index 00000000..07f096d3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPanelExtensionSignals.java
@@ -0,0 +1,23 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+
+public interface KPanelExtensionSignals {
+ /**
+ Emit this signal to make the panel relayout all extensions in the dock, when you want
+ to change the extensions size.
+ The panel is going to relayout all extensions based on their preferred size.
+ @short Emit this signal to make the panel relayout all extensions in the dock, when you want to change the extensions size.
+ */
+ void updateLayout();
+ /**
+ Emit this signal to make the panel maintain focus, e.g. don't autohide
+ @short Emit this signal to make the panel maintain focus, e.
+ */
+ void maintainFocus(boolean arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KPanelMenu.java b/kdejava/koala/org/kde/koala/KPanelMenu.java
new file mode 100644
index 00000000..17d60ab2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPanelMenu.java
@@ -0,0 +1,103 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ This class allows to build menu entries that will be dynamically added either to
+ the K-menu, or to the panel as a normal button. These dynamic menus are located
+ in shared libraries that will be loaded at runtime by Kicker (the %KDE panel).
+ To build such a menu, you have to inherit this class and implement the pure virtual
+ functions #initialize() and slotExec(). You also have to provide a factory
+ object in your library, see KLibFactory. This factory is only used to construct
+ the menu object.
+ Finally, you also have to provide a desktop file describing your dynamic menu. The
+ relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the
+ library name without any extension). This desktop file has to be installed in
+ $KDEDIR/share/apps/kicker/menuext/.
+ @author The kicker maintainers, Michael Goffioul <kdeprint@swing.be>
+
+ @short Base class to build dynamically loaded menu entries for the K-menu, or the panel.
+
+*/
+public class KPanelMenu extends KPopupMenu {
+ protected KPanelMenu(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a KPanelMenu object. This is the normal constructor to use when
+ building extrernal menu entries.
+ @short Construct a KPanelMenu object.
+ */
+ /**
+ Constructor used internally by Kicker. You don't really want to use it.
+ @param startDir a directory to associate with this menu
+ @param parent parent object
+ @param name name of the object
+ @short Constructor used internally by Kicker.
+ @see #path
+ @see #setPath
+ */
+ /**
+ Get the directory path associated with this menu, or null if
+ there's no such associated path.
+ @return the associated directory path
+
+ @short Get the directory path associated with this menu, or String.null if there's no such associated path.
+ @see #setPath
+ */
+ public native String path();
+ /**
+ Set a directory path to be associated with this menu.
+ @param p the directory path
+ @short Set a directory path to be associated with this menu.
+ @see #path
+ */
+ public native void setPath(String p);
+ /**
+ Tell if the menu has been initialized, that is it already contains items.
+ This is useful when you need to know if you have to clear the menu, or to
+ fill it.
+ @return the initial state
+
+ @short Tell if the menu has been initialized, that is it already contains items.
+ @see #setInitialized
+ @see #initialize
+ */
+ public native boolean initialized();
+ /**
+ Set the initial state. Set it to true when you menu is filled with the items
+ you want.
+ @param on the initial state
+ @short Set the initial state.
+ @see #initialized
+ @see #initialize
+ */
+ public native void setInitialized(boolean on);
+ /**
+ Disable the automatic clearing of the menu. Kicker uses a cache system for
+ its menus. After a specific configurable delay, the menu will be cleared.
+ Use this function if you want to disable kicker's cache system, and avoid
+ the clearing of your menu.
+ @short Disable the automatic clearing of the menu.
+ */
+ public native void disableAutoClear();
+ /**
+ Reinitialize the menu: the menu is first cleared, the initial state is set
+ to false, and finally #initialize() is called. Use this if you want to
+ refill your menu immediately.
+ @short Reinitialize the menu: the menu is first cleared, the initial state is set to false, and finally #initialize() is called.
+ */
+ public native void reinitialize();
+ /**
+ Deinitialize the menu: the menu is cleared and the initialized state is set to
+ false. #initialize() is NOT called. It will be called before the menu is
+ next shown, however. Use this slot if you want a delayed reinitialization.
+ @short Deinitialize the menu: the menu is cleared and the initialized state is set to false.
+ */
+ public native void deinitialize();
+}
diff --git a/kdejava/koala/org/kde/koala/KPassivePopup.java b/kdejava/koala/org/kde/koala/KPassivePopup.java
new file mode 100644
index 00000000..c4c1c571
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPassivePopup.java
@@ -0,0 +1,383 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QHideEvent;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QPoint;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QVBox;
+import org.kde.qt.QFrame;
+
+/**
+
+ The simplest uses of KPassivePopup are by using the various message() static
+ methods. The position the popup appears at depends on the type of the parent window:
+
+ <li>
+ Normal Windows: The popup is placed adjacent to the icon of the window.
+ </li>
+
+ <li>
+ System Tray Windows: The popup is placed adjact to the system tray window itself.
+ </li>
+
+ <li>
+ Skip Taskbar Windows: The popup is placed adjact to the window
+ itself if it is visible, and at the edge of the desktop otherwise.
+ </li>
+ You also have the option of calling show with a QPoint as a parameter that
+ removes the automatic placing of KPassivePopup and shows it in the point you want.
+ The most basic use of KPassivePopup displays a popup containing a piece of text:
+ <pre>
+ KPassivePopup.message( "This is the message", this );
+ </pre>
+ We can create popups with titles and icons too, as this example shows:
+ <pre>
+ QPixmap px;
+ px.load( "hi32-app-logtracker.png" );
+ KPassivePopup.message( "Some title", "This is the main text", px, this );
+ </pre>
+ For more control over the popup, you can use the setView(QWidget ) method
+ to create a custom popup.
+ <pre>
+ KPassivePopup pop = new KPassivePopup( parent );
+ QVBox vb = new QVBox( pop );
+ new QLabel( vb, "<b>Isn't this great?</b>" );
+ QHBox box = new QHBox( vb );
+ new QPushButton( box, "Yes" );
+ new QPushButton( box, "No" );
+ pop.setView( vb );
+ pop.show();
+ </pre>
+ See {@link KPassivePopupSignals} for signals emitted by KPassivePopup
+ @author Sascha Cunz, sascha.cunz@tiscali.de
+
+ @version $Id$
+
+ @short A dialog-like popup that displays messages without interupting the user.
+
+*/
+public class KPassivePopup extends QFrame {
+ protected KPassivePopup(Class dummy){super((Class) null);}
+ /**
+ Styles that a KPassivePopup can have.
+ @short Styles that a KPassivePopup can have.
+ */
+ public static final int Boxed = 0;
+ public static final int Balloon = 1;
+ public static final int CustomStyle = 128;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a popup for the specified widget.
+ @short Creates a popup for the specified widget.
+ */
+ public KPassivePopup(QWidget parent, String name, int f) {
+ super((Class) null);
+ newKPassivePopup(parent,name,f);
+ }
+ private native void newKPassivePopup(QWidget parent, String name, int f);
+ public KPassivePopup(QWidget parent, String name) {
+ super((Class) null);
+ newKPassivePopup(parent,name);
+ }
+ private native void newKPassivePopup(QWidget parent, String name);
+ public KPassivePopup(QWidget parent) {
+ super((Class) null);
+ newKPassivePopup(parent);
+ }
+ private native void newKPassivePopup(QWidget parent);
+ public KPassivePopup() {
+ super((Class) null);
+ newKPassivePopup();
+ }
+ private native void newKPassivePopup();
+ /**
+ Creates a popup for the specified window.
+ @short Creates a popup for the specified window.
+ */
+ public KPassivePopup(long parent, String name, int f) {
+ super((Class) null);
+ newKPassivePopup(parent,name,f);
+ }
+ private native void newKPassivePopup(long parent, String name, int f);
+ public KPassivePopup(long parent, String name) {
+ super((Class) null);
+ newKPassivePopup(parent,name);
+ }
+ private native void newKPassivePopup(long parent, String name);
+ public KPassivePopup(long parent) {
+ super((Class) null);
+ newKPassivePopup(parent);
+ }
+ private native void newKPassivePopup(long parent);
+ /**
+ Creates a popup for the specified widget.
+ @short Creates a popup for the specified widget.
+ */
+ public KPassivePopup(int popupStyle, QWidget parent, String name, int f) {
+ super((Class) null);
+ newKPassivePopup(popupStyle,parent,name,f);
+ }
+ private native void newKPassivePopup(int popupStyle, QWidget parent, String name, int f);
+ public KPassivePopup(int popupStyle, QWidget parent, String name) {
+ super((Class) null);
+ newKPassivePopup(popupStyle,parent,name);
+ }
+ private native void newKPassivePopup(int popupStyle, QWidget parent, String name);
+ public KPassivePopup(int popupStyle, QWidget parent) {
+ super((Class) null);
+ newKPassivePopup(popupStyle,parent);
+ }
+ private native void newKPassivePopup(int popupStyle, QWidget parent);
+ public KPassivePopup(int popupStyle) {
+ super((Class) null);
+ newKPassivePopup(popupStyle);
+ }
+ private native void newKPassivePopup(int popupStyle);
+ /**
+ Creates a popup for the specified window.
+ @short Creates a popup for the specified window.
+ */
+ public KPassivePopup(int popupStyle, long parent, String name, int f) {
+ super((Class) null);
+ newKPassivePopup(popupStyle,parent,name,f);
+ }
+ private native void newKPassivePopup(int popupStyle, long parent, String name, int f);
+ public KPassivePopup(int popupStyle, long parent, String name) {
+ super((Class) null);
+ newKPassivePopup(popupStyle,parent,name);
+ }
+ private native void newKPassivePopup(int popupStyle, long parent, String name);
+ public KPassivePopup(int popupStyle, long parent) {
+ super((Class) null);
+ newKPassivePopup(popupStyle,parent);
+ }
+ private native void newKPassivePopup(int popupStyle, long parent);
+ /**
+ Sets the main view to be the specified widget (which must be a child of the popup).
+ @short Sets the main view to be the specified widget (which must be a child of the popup).
+ */
+ public native void setView(QWidget child);
+ /**
+ Creates a standard view then calls setView(QWidget) .
+ @short Creates a standard view then calls setView(QWidget ) .
+ */
+ public native void setView(String caption, String text);
+ public native void setView(String caption);
+ /**
+ Creates a standard view then calls setView(QWidget) .
+ @short Creates a standard view then calls setView(QWidget ) .
+ */
+ public native void setView(String caption, String text, QPixmap icon);
+ /**
+ Returns a widget that is used as standard view if one of the
+ setView() methods taking the String arguments is used.
+ You can use the returned widget to customize the passivepopup while
+ keeping the look similar to the "standard" passivepopups.
+ After customizing the widget, pass it to setView( QWidget )
+ @param caption The window caption (title) on the popup
+ @param text The text for the popup
+ @param icon The icon to use for the popup
+ @param parent The parent widget used for the returned QVBox. If left null,
+ then "this", i.e. the passive popup object will be used.
+ @return a QVBox containing the given arguments, looking like the
+ standard passivepopups.
+
+ @short Returns a widget that is used as standard view if one of the setView() methods taking the String arguments is used.
+ @see #setView(
+ @see org.kde.qt.QWidget
+ @see #setView(
+ @see #const
+ @see #const
+ @see #setView(
+ @see #const
+ @see #const
+ @see #const
+ @see org.kde.qt.QPixmap&
+ */
+ public native QVBox standardView(String caption, String text, QPixmap icon, QWidget parent);
+ public native QVBox standardView(String caption, String text, QPixmap icon);
+ /**
+ Returns the main view.
+ @short Returns the main view.
+ */
+ public native QWidget view();
+ /**
+ Returns the delay before the popup is removed automatically.
+ @short Returns the delay before the popup is removed automatically.
+ */
+ public native int timeout();
+ /**
+ Enables / disables auto-deletion of this widget when the timeout
+ occurs.
+ The default is false. If you use the class-methods message(),
+ auto-delection is turned on by default.
+ @short Enables / disables auto-deletion of this widget when the timeout occurs.
+ */
+ public native void setAutoDelete(boolean autoDelete);
+ /**
+ @return true if the widget auto-deletes itself when the timeout occurs.
+
+ @short
+ @see #setAutoDelete
+ */
+ public native boolean autoDelete();
+ /**
+ Sets the anchor of this balloon. The balloon tries automatically to adjust
+ itself somehow around the point.
+ @short Sets the anchor of this balloon.
+ */
+ public native void setAnchor(QPoint anchor);
+ /**
+ Sets the delay for the popup is removed automatically. Setting the delay to 0
+ disables the timeout, if you're doing this, you may want to connect the
+ clicked() signal to the hide() slot.
+ Setting the delay to -1 makes it use the default value.
+ @short Sets the delay for the popup is removed automatically.
+ @see #timeout
+ */
+ public native void setTimeout(int delay);
+ /**
+ Reimplemented to reposition the popup.
+ @short Reimplemented to reposition the popup.
+ */
+ public native void show();
+ /**
+ Shows the popup in the given point
+ @short Shows the popup in the given point
+ */
+ public native void show(QPoint p);
+ /**
+ Convenience method that displays popup with the specified message beside the
+ icon of the specified widget.
+ Note that the returned object is destroyed when it is hidden.
+ @short Convenience method that displays popup with the specified message beside the icon of the specified widget.
+ @see #setAutoDelete
+ */
+ public static native KPassivePopup message(String text, QWidget parent, String name);
+ public static native KPassivePopup message(String text, QWidget parent);
+ /**
+ Convenience method that displays popup with the specified caption and message
+ beside the icon of the specified widget.
+ Note that the returned object is destroyed when it is hidden.
+ @short Convenience method that displays popup with the specified caption and message beside the icon of the specified widget.
+ @see #setAutoDelete
+ */
+ public static native KPassivePopup message(String caption, String text, QWidget parent, String name);
+ public static native KPassivePopup message(String caption, String text, QWidget parent);
+ /**
+ Convenience method that displays popup with the specified icon, caption and
+ message beside the icon of the specified widget.
+ Note that the returned object is destroyed when it is hidden.
+ @short Convenience method that displays popup with the specified icon, caption and message beside the icon of the specified widget.
+ @see #setAutoDelete
+ */
+ public static native KPassivePopup message(String caption, String text, QPixmap icon, QWidget parent, String name, int timeout);
+ public static native KPassivePopup message(String caption, String text, QPixmap icon, QWidget parent, String name);
+ public static native KPassivePopup message(String caption, String text, QPixmap icon, QWidget parent);
+ /**
+ Convenience method that displays popup with the specified icon, caption and
+ message beside the icon of the specified window.
+ Note that the returned object is destroyed when it is hidden.
+ @short Convenience method that displays popup with the specified icon, caption and message beside the icon of the specified window.
+ @see #setAutoDelete
+ */
+ public static native KPassivePopup message(String caption, String text, QPixmap icon, long parent, String name, int timeout);
+ public static native KPassivePopup message(String caption, String text, QPixmap icon, long parent, String name);
+ public static native KPassivePopup message(String caption, String text, QPixmap icon, long parent);
+ /**
+ Convenience method that displays popup with the specified popup-style and message beside the
+ icon of the specified widget.
+ Note that the returned object is destroyed when it is hidden.
+ @short Convenience method that displays popup with the specified popup-style and message beside the icon of the specified widget.
+ @see #setAutoDelete
+ */
+ public static native KPassivePopup message(int popupStyle, String text, QWidget parent, String name);
+ public static native KPassivePopup message(int popupStyle, String text, QWidget parent);
+ /**
+ Convenience method that displays popup with the specified popup-style, caption and message
+ beside the icon of the specified widget.
+ Note that the returned object is destroyed when it is hidden.
+ @short Convenience method that displays popup with the specified popup-style, caption and message beside the icon of the specified widget.
+ @see #setAutoDelete
+ */
+ public static native KPassivePopup message(int popupStyle, String caption, String text, QWidget parent, String name);
+ public static native KPassivePopup message(int popupStyle, String caption, String text, QWidget parent);
+ /**
+ Convenience method that displays popup with the specified popup-style, icon, caption and
+ message beside the icon of the specified widget.
+ Note that the returned object is destroyed when it is hidden.
+ @short Convenience method that displays popup with the specified popup-style, icon, caption and message beside the icon of the specified widget.
+ @see #setAutoDelete
+ */
+ public static native KPassivePopup message(int popupStyle, String caption, String text, QPixmap icon, QWidget parent, String name, int timeout);
+ public static native KPassivePopup message(int popupStyle, String caption, String text, QPixmap icon, QWidget parent, String name);
+ public static native KPassivePopup message(int popupStyle, String caption, String text, QPixmap icon, QWidget parent);
+ /**
+ Convenience method that displays popup with the specified popup-style, icon, caption and
+ message beside the icon of the specified window.
+ Note that the returned object is destroyed when it is hidden.
+ @short Convenience method that displays popup with the specified popup-style, icon, caption and message beside the icon of the specified window.
+ @see #setAutoDelete
+ */
+ public static native KPassivePopup message(int popupStyle, String caption, String text, QPixmap icon, long parent, String name, int timeout);
+ public static native KPassivePopup message(int popupStyle, String caption, String text, QPixmap icon, long parent, String name);
+ public static native KPassivePopup message(int popupStyle, String caption, String text, QPixmap icon, long parent);
+ /**
+ This method positions the popup.
+ @short This method positions the popup.
+ */
+ protected native void positionSelf();
+ /**
+ Reimplemented to destroy the object when autoDelete() is
+ enabled.
+ @short Reimplemented to destroy the object when autoDelete() is enabled.
+ */
+ protected native void hideEvent(QHideEvent arg1);
+ /**
+ Moves the popup to be adjacent to the icon of the specified rectangle.
+ @short Moves the popup to be adjacent to the icon of the specified rectangle.
+ */
+ protected native void moveNear(QRect target);
+ /**
+ Reimplemented to detect mouse clicks.
+ @short Reimplemented to detect mouse clicks.
+ */
+ protected native void mouseReleaseEvent(QMouseEvent e);
+ /**
+ If no relative window (eg taskbar button, system tray window) is
+ available, use this rectangle (pass it to moveNear()).
+ Basically KWinModule.workArea() with width and height set to 0
+ so that moveNear uses the upper-left position.
+ @return The QRect to be passed to moveNear() if no other is
+ available.
+
+ @short If no relative window (eg taskbar button, system tray window) is available, use this rectangle (pass it to moveNear()).
+ */
+ protected native QRect defaultArea();
+ /**
+ Updates the transparency mask. Unused if PopupStyle == Boxed
+ @short Updates the transparency mask.
+ */
+ protected native void updateMask();
+ /**
+ Overwrite to paint the border when PopupStyle == Balloon.
+ Unused if PopupStyle == Boxed
+ @short Overwrite to paint the border when PopupStyle == Balloon.
+ */
+ protected native void paintEvent(QPaintEvent pe);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPassivePopupSignals.java b/kdejava/koala/org/kde/koala/KPassivePopupSignals.java
new file mode 100644
index 00000000..d317a81b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPassivePopupSignals.java
@@ -0,0 +1,26 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QRect;
+import org.kde.qt.QHideEvent;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QPoint;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QVBox;
+
+public interface KPassivePopupSignals {
+ /**
+ Emitted when the popup is clicked.
+ @short Emitted when the popup is clicked.
+ */
+ void clicked();
+ /**
+ Emitted when the popup is clicked.
+ @short Emitted when the popup is clicked.
+ */
+ void clicked(QPoint pos);
+}
diff --git a/kdejava/koala/org/kde/koala/KPasswordDialog.java b/kdejava/koala/org/kde/koala/KPasswordDialog.java
new file mode 100644
index 00000000..d1468aae
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPasswordDialog.java
@@ -0,0 +1,256 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ This dialog asks the user to enter a password. The functions you're
+ probably interested in are the static methods, getPassword() and
+ getNewPassword().
+ <li><b>Usage example</b></li>
+ <pre>
+ String password;
+ int result = KPasswordDialog.getPassword(password, i18n("Prompt message"));
+ if (result == KPasswordDialog.Accepted)
+ use(password);
+ </pre>
+ \image html kpassworddialog.png "KDE Password Dialog"
+ <li><b>Security notes:</b></li>
+ Keeping passwords in memory can be a potential security hole. You should
+ handle this situation with care.
+
+ <li>
+ You may want to use disableCoreDump() to disable core dumps.
+ Core dumps are dangerous because they are an image of the process memory,
+ and thus include any passwords that were in memory.
+ </li>
+
+ <li>
+ You should delete passwords as soon as they are not needed anymore.
+ The functions getPassword() and getNewPassword() return the
+ password as a String. I believe this is safer than a String. A String
+ stores its characters internally as 16-bit wide values, so conversions are
+ needed, both for creating the String and by using it. The temporary
+ memory used for these conversion is probably not erased. This could lead
+ to stray passwords in memory, even if you think you erased all of them.
+ </li>
+ @author Geert Jansen <jansen@kde.org>
+
+ @short A password input dialog.
+
+*/
+public class KPasswordDialog extends KDialogBase {
+ protected KPasswordDialog(Class dummy){super((Class) null);}
+ /**
+ This enum distinguishes the two operation modes of this dialog:
+ @short This enum distinguishes the two operation modes of this dialog:
+ */
+ public static final int Password = 0;
+ public static final int NewPassword = 1;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a password dialog.
+ @param type : if NewPassword is given here, the dialog contains two
+ input fields, so that the user must confirm his password
+ and possible typos are detected immediately.
+ @param enableKeep : if true, a check box is shown in the dialog
+ which allows the user to keep his password input for later.
+ @param extraBttn : allows to show additional buttons, KDialogBase.
+ @param parent Passed to lower level constructor.
+ @param name Passed to lower level constructor
+ @short Constructs a password dialog.
+ */
+ public KPasswordDialog(int type, boolean enableKeep, int extraBttn, QWidget parent, String name) {
+ super((Class) null);
+ newKPasswordDialog(type,enableKeep,extraBttn,parent,name);
+ }
+ private native void newKPasswordDialog(int type, boolean enableKeep, int extraBttn, QWidget parent, String name);
+ public KPasswordDialog(int type, boolean enableKeep, int extraBttn, QWidget parent) {
+ super((Class) null);
+ newKPasswordDialog(type,enableKeep,extraBttn,parent);
+ }
+ private native void newKPasswordDialog(int type, boolean enableKeep, int extraBttn, QWidget parent);
+ public KPasswordDialog(int type, boolean enableKeep, int extraBttn) {
+ super((Class) null);
+ newKPasswordDialog(type,enableKeep,extraBttn);
+ }
+ private native void newKPasswordDialog(int type, boolean enableKeep, int extraBttn);
+ /**
+ Construct a password dialog. Essentially the same as above but allows the
+ icon in the password dialog to be set via <code>iconName.</code>
+ @param type if NewPassword is given here, the dialog contains two
+ input fields, so that the user must confirm his password
+ and possible typos are detected immediately
+ @param enableKeep : if true, a check box is shown in the dialog
+ which allows the user to keep his password input for later.
+ @param extraBttn : allows to show additional buttons.
+ @param iconName the name of the icon to be shown in the dialog. If empty,
+ a default icon is used
+ @param parent Passed to lower level constructor.
+ @param name Passed to lower level constructor
+ @short Construct a password dialog.
+ */
+ public KPasswordDialog(int type, boolean enableKeep, int extraBttn, String iconName, QWidget parent, String name) {
+ super((Class) null);
+ newKPasswordDialog(type,enableKeep,extraBttn,iconName,parent,name);
+ }
+ private native void newKPasswordDialog(int type, boolean enableKeep, int extraBttn, String iconName, QWidget parent, String name);
+ public KPasswordDialog(int type, boolean enableKeep, int extraBttn, String iconName, QWidget parent) {
+ super((Class) null);
+ newKPasswordDialog(type,enableKeep,extraBttn,iconName,parent);
+ }
+ private native void newKPasswordDialog(int type, boolean enableKeep, int extraBttn, String iconName, QWidget parent);
+ public KPasswordDialog(int type, boolean enableKeep, int extraBttn, String iconName) {
+ super((Class) null);
+ newKPasswordDialog(type,enableKeep,extraBttn,iconName);
+ }
+ private native void newKPasswordDialog(int type, boolean enableKeep, int extraBttn, String iconName);
+ /**
+ Sets the password prompt.
+ @short Sets the password prompt.
+ */
+ public native void setPrompt(String prompt);
+ /**
+ Returns the password prompt.
+ @short Returns the password prompt.
+ */
+ public native String prompt();
+ /**
+ Adds a line of information to the dialog.
+ @short Adds a line of information to the dialog.
+ */
+ public native void addLine(String key, String value);
+ /**
+ Allow empty passwords? - Default: false
+ @short Allow empty passwords? - Default: false
+ */
+ public native void setAllowEmptyPasswords(boolean allowed);
+ /**
+ Allow empty passwords?
+ @short Allow empty passwords?
+ */
+ public native boolean allowEmptyPasswords();
+ /**
+ Minimum acceptable password length.
+ Default: If empty passwords are forbidden, 1;
+ Otherwise, 0.
+ @param minLength : The new minimum password length
+ @short Minimum acceptable password length.
+ */
+ public native void setMinimumPasswordLength(int minLength);
+ /**
+ Minimum acceptable password length.
+ @short Minimum acceptable password length.
+ */
+ public native int minimumPasswordLength();
+ /**
+ Maximum acceptable password length. Limited to 199.
+ Default: No limit, i.e. -1
+ @param maxLength : The new maximum password length.
+ @short Maximum acceptable password length.
+ */
+ public native void setMaximumPasswordLength(int maxLength);
+ /**
+ Maximum acceptable password length.
+ @short Maximum acceptable password length.
+ */
+ public native int maximumPasswordLength();
+ /**
+ Password length that is expected to be reasonably safe.
+ Default: 8 - the standard UNIX password length
+ @param reasonableLength : The new reasonable password length.
+ @short Password length that is expected to be reasonably safe.
+ */
+ public native void setReasonablePasswordLength(int reasonableLength);
+ /**
+ Password length that is expected to be reasonably safe.
+ @short Password length that is expected to be reasonably safe.
+ */
+ public native int reasonablePasswordLength();
+ /**
+ Set the password strength level below which a warning is given
+ Value is in the range 0 to 99. Empty passwords score 0;
+ non-empty passwords score up to 100, depending on their length and whether they
+ contain numbers, mixed case letters and punctuation.
+ Default: 1 - warn if the password has no discernable strength whatsoever
+ @param warningLevel : The level below which a warning should be given.
+ @short Set the password strength level below which a warning is given Value is in the range 0 to 99.
+ */
+ public native void setPasswordStrengthWarningLevel(int warningLevel);
+ /**
+ Password strength level below which a warning is given
+ @short Password strength level below which a warning is given
+ */
+ public native int passwordStrengthWarningLevel();
+ /**
+ Returns the password entered. The memory is freed in the destructor,
+ so you should make a copy.
+ @short Returns the password entered.
+ */
+ public native String password();
+ /**
+ Clears the password input field. You might want to use this after the
+ user failed to enter the correct password.
+ @short Clears the password input field.
+ */
+ public native void clearPassword();
+ /**
+ Returns true if the user wants to keep the password.
+ @short Returns true if the user wants to keep the password.
+ */
+ public native boolean keep();
+ /**
+ Pops up the dialog, asks the user for a password, and returns it.
+ @param password The password is returned in this reference parameter.
+ @param prompt A prompt for the password. This can be a few lines of
+ information. The text is word broken to fit nicely in the dialog.
+ @param keep Enable/disable a checkbox controlling password keeping.
+ If you pass a null pointer, or a pointer to the value 0, the checkbox
+ is not shown. If you pass a pointer to a nonzero value, the checkbox
+ is shown and the result is stored in keep.
+ @return Result code: Accepted or Rejected.
+
+ @short Pops up the dialog, asks the user for a password, and returns it.
+ */
+ public static native int getPassword(StringBuffer password, String prompt, int[] keep);
+ public static native int getPassword(StringBuffer password, String prompt);
+ /**
+ Pops up the dialog, asks the user for a password and returns it. The
+ user has to enter the password twice to make sure it was entered
+ correctly.
+ @param password The password is returned in this reference parameter.
+ @param prompt A prompt for the password. This can be a few lines of
+ information. The text is word broken to fit nicely in the dialog.
+ @return Result code: Accepted or Rejected.
+
+ @short Pops up the dialog, asks the user for a password and returns it.
+ */
+ public static native int getNewPassword(StringBuffer password, String prompt);
+ /**
+ Static helper function that disables core dumps.
+ @short Static helper function that disables core dumps.
+ */
+ public static native void disableCoreDumps();
+ /**
+ Virtual function that can be overridden to provide password
+ checking in derived classes. It should return <code>true</code> if the
+ password is valid, <code>false</code> otherwise.
+ @short Virtual function that can be overridden to provide password checking in derived classes.
+ */
+ protected native boolean checkPassword(String arg1);
+ protected native void slotOk();
+ protected native void slotCancel();
+ protected native void slotKeep(boolean arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPasswordEdit.java b/kdejava/koala/org/kde/koala/KPasswordEdit.java
new file mode 100644
index 00000000..f829dd7d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPasswordEdit.java
@@ -0,0 +1,96 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QLineEdit;
+
+/**
+
+ The widget uses the user's global "echo mode" setting.
+ @author Geert Jansen <geertj@kde.org>
+
+ @short A safe password input widget.
+
+*/
+public class KPasswordEdit extends QLineEdit {
+ protected KPasswordEdit(Class dummy){super((Class) null);}
+ public static final int OneStar = 0;
+ public static final int ThreeStars = 1;
+ public static final int NoEcho = 2;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a password input widget using the user's global "echo mode" setting.
+ @short Constructs a password input widget using the user's global "echo mode" setting.
+ */
+ public KPasswordEdit(QWidget parent, String name) {
+ super((Class) null);
+ newKPasswordEdit(parent,name);
+ }
+ private native void newKPasswordEdit(QWidget parent, String name);
+ public KPasswordEdit(QWidget parent) {
+ super((Class) null);
+ newKPasswordEdit(parent);
+ }
+ private native void newKPasswordEdit(QWidget parent);
+ public KPasswordEdit() {
+ super((Class) null);
+ newKPasswordEdit();
+ }
+ private native void newKPasswordEdit();
+ /**
+ Constructs a password input widget using echoMode as "echo mode".
+ Note that echoMode is a QLineEdit.EchoMode.
+ @short Constructs a password input widget using echoMode as "echo mode".
+ */
+ public KPasswordEdit(int echoMode, QWidget parent, String name) {
+ super((Class) null);
+ newKPasswordEdit(echoMode,parent,name);
+ }
+ private native void newKPasswordEdit(int echoMode, QWidget parent, String name);
+ /**
+ Returns the password. The memory is freed in the destructor
+ so you should make a copy.
+ @short Returns the password.
+ */
+ public native String password();
+ /**
+ Erases the current password.
+ @short Erases the current password.
+ */
+ public native void erase();
+ /**
+ Set the current maximum password length. If a password longer than the limit
+ specified is currently entered, it is truncated accordingly.
+ The length is capped to lie between 0 and 199 inclusive.
+ @param newLength : The new maximum password length
+ @short Set the current maximum password length.
+ */
+ public native void setMaxPasswordLength(int newLength);
+ /**
+ Returns the current maximum password length.
+ @short Returns the current maximum password length.
+ */
+ public native int maxPasswordLength();
+ /**
+ Reimplementation
+ @short Reimplementation
+ */
+ public native void insert(String arg1);
+ protected native void keyPressEvent(QKeyEvent arg1);
+ protected native void focusInEvent(QFocusEvent e);
+ public native boolean event(QEvent e);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPasteTextAction.java b/kdejava/koala/org/kde/koala/KPasteTextAction.java
new file mode 100644
index 00000000..9de17c12
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPasteTextAction.java
@@ -0,0 +1,76 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QWidget;
+
+/**
+
+ An action for pasting text from the clipboard.
+ It's useful for text handling applications as
+ when plugged into a toolbar it provides a menu
+ with the clipboard history if klipper is running.
+ If klipper is not running, the menu has only one
+ item: the current clipboard content.
+ @short An action for pasting text from the clipboard.
+
+*/
+public class KPasteTextAction extends KAction {
+ protected KPasteTextAction(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create a KPasteTextAction, with a text, an icon, an accelerator,
+ a slot connected to the action, parent and name.
+ If you do not want or have a keyboard accelerator, set the
+ <code>cut</code> param to 0.
+ @param text The text that will be displayed.
+ @param icon The icon to display.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's owner.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short Create a KPasteTextAction, with a text, an icon, an accelerator, a slot connected to the action, parent and name.
+ */
+ public KPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKPasteTextAction(text,icon,cut,receiver,slot,parent,name);
+ }
+ private native void newKPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKPasteTextAction(text,icon,cut,receiver,slot,parent);
+ }
+ private native void newKPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent);
+ public KPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot) {
+ super((Class) null);
+ newKPasteTextAction(text,icon,cut,receiver,slot);
+ }
+ private native void newKPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot);
+ /**
+ Controls the behavior of the clipboard history menu popup.
+ @param mode If false and the clipboard contains a non-text object
+ the popup menu with the clipboard history will appear
+ immediately as the user clicks the toolbar action; if
+ true, the action works like the standard paste action
+ even if the current clipboard object is not text.
+ Default value is true.
+ @short Controls the behavior of the clipboard history menu popup.
+ */
+ public native void setMixedMode(boolean mode);
+ public native int plug(QWidget widget, int index);
+ public native int plug(QWidget widget);
+ protected native void menuAboutToShow();
+ protected native void menuItemActivated(int id);
+ protected native void slotActivated();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPixmap.java b/kdejava/koala/org/kde/koala/KPixmap.java
new file mode 100644
index 00000000..d693caf2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPixmap.java
@@ -0,0 +1,196 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QImage;
+import org.kde.qt.QPixmap;
+
+/**
+
+ Off-screen paint device with extended features.
+ KPixmap has two new color modes, WebColor and LowColor, applicable
+ to 8bpp displays.
+ In WebColor mode all images are dithered to the Netscape palette,
+ even when they have their own color table. WebColor is the default
+ mode for KPixmap so that standard applications can share the Netscape
+ palette across the desktop.
+ In LowColor mode images are checked to see if their color table
+ matches the KDE icon palette. If the color tables do not match, the
+ images are dithered to a minimal 3x3x3 color cube. LowColor mode can
+ be used to load icons, background images etc. so that components of
+ the desktop which are always present use no more than 40 colors.
+ @author Mark Donohoe (donohoe@kde.org)
+
+ @version $Id$
+
+ @short Off-screen paint device with extended features.
+
+*/
+public class KPixmap extends QPixmap {
+ protected KPixmap(Class dummy){super((Class) null);}
+ /**
+ This enumeration provides a color pallete specification
+ @short This enumeration provides a color pallete specification
+ @see KPixmap#convertFromImage
+ @see KPixmap#load
+ */
+ public static final int Auto = 0;
+ public static final int Color = 1;
+ public static final int Mono = 2;
+ public static final int LowColor = 3;
+ public static final int WebColor = 4;
+
+ /**
+ This enumeration provides a gradient mode specification
+ @short This enumeration provides a gradient mode specification
+ */
+ public static final int Horizontal = 0;
+ public static final int Vertical = 1;
+ public static final int Diagonal = 2;
+ public static final int CrossDiagonal = 3;
+
+ /**
+ Constructs a null pixmap.
+ @short Constructs a null pixmap.
+ */
+ public KPixmap() {
+ super((Class) null);
+ newKPixmap();
+ }
+ private native void newKPixmap();
+ /**
+ Copies the QPixmap <code>pix.</code>
+ @short Copies the QPixmap <code>pix.</code>
+ */
+ public KPixmap(QPixmap pix) {
+ super((Class) null);
+ newKPixmap(pix);
+ }
+ private native void newKPixmap(QPixmap pix);
+ /**
+ Converts an image and sets this pixmap.
+ The conversion_flags argument is a bitwise-OR from the
+ following choices. The options marked (default) are the
+ choice if no other choice from the list is included (they
+ are zero):
+ Color/Mono preference
+
+ <li>
+ WebColor - If the image has depth 1 and contains
+ only black and white pixels then the pixmap becomes monochrome. If
+ the pixmap has a depth of 8 bits per pixel then the Netscape
+ palette is used for the pixmap color table.
+ </li>
+
+ <li>
+ LowColor - If the image has depth 1 and contains only black and
+ white pixels then the pixmap becomes monochrome. If the pixmap has a
+ depth of 8 bits per pixel and the image does not posess a color table
+ that matches the Icon palette a 3x3x3 color cube is used for the
+ pixmap color table.
+ </li>
+
+ <li>
+ AutoColor (default) - If the image has depth 1 and contains
+ only black and white pixels, then the pixmap becomes
+ monochrome.
+ </li>
+
+ <li>
+ ColorOnly - The pixmap is dithered/converted to the native
+ display depth.
+ </li>
+
+ <li>
+ MonoOnly - The pixmap becomes monochrome. If necessary, it
+ is dithered using the chosen dithering algorithm.
+ </li>
+ Dithering mode preference, for RGB channels
+
+ <li>
+ DiffuseDither (default) - A high quality dither.
+ </li>
+
+ <li>
+ OrderedDither - A faster more ordered dither.
+ </li>
+
+ <li>
+ ThresholdDither - No dithering, closest color is used.
+ </li>
+ Dithering mode preference, for alpha channel
+
+ <li>
+ DiffuseAlphaDither - A high quality dither.
+ </li>
+
+ <li>
+ OrderedAlphaDither - A faster more ordered dither.
+ </li>
+
+ <li>
+ ThresholdAlphaDither (default) - No dithering.
+ </li>
+ Color matching versus dithering preference
+
+ <li>
+ PreferDither - Always dither 32-bit images when the image
+ is being converted to 8-bits. This is the default when
+ converting to a pixmap.
+ </li>
+
+ <li>
+ AvoidDither - Only dither 32-bit images if the image has
+ more than 256 colors and it is being converted to 8-bits.
+ This is the default when an image is converted for the
+ purpose of saving to a file.
+ </li>
+ Passing 0 for <code>conversion_flags</code> gives all the default
+ options.
+ @param img the image to convert
+ @param conversion_flags bitmask, described above
+ @return <code>true</code> if successful.
+
+ @short Converts an image and sets this pixmap.
+ */
+ public native boolean convertFromImage(QImage img, int conversion_flags);
+ public native boolean convertFromImage(QImage img);
+ /**
+ Loads a pixmap from the file <code>fileName.</code>
+ If format is specified, the loader attempts to read the
+ pixmap using the specified format. If format is not
+ specified (default), the loader reads a few bytes from the
+ header to guess the file format.
+ The QImageIO documentation lists the supported image
+ formats and explains how to add extra formats.
+ @param fileName the name of the file to load the image from
+ @param format the format for the image
+ @param conversion_flags a bitmask, as described in
+ convertFromImage()
+ @return <code>true</code> if successful, or false if the pixmap
+ could not be loaded.
+
+ @short Loads a pixmap from the file <code>fileName.</code>
+ */
+ public native boolean load(String fileName, String format, int conversion_flags);
+ public native boolean load(String fileName, String format);
+ public native boolean load(String fileName);
+ /**
+ Returns true if the image posesses a color table that
+ matches the Icon palette or false otherwise.
+ An image with one color not found in the Icon palette is
+ considered to be a match, since this extra color may be a
+ transparent background.
+ @param image the image to test
+ @short Returns true if the image posesses a color table that matches the Icon palette or false otherwise.
+ */
+ public native boolean checkColorTable(QImage image);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPixmapEffect.java b/kdejava/koala/org/kde/koala/KPixmapEffect.java
new file mode 100644
index 00000000..edc77bd7
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPixmapEffect.java
@@ -0,0 +1,240 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+
+/**
+
+ This class includes various pixmap-based graphical effects.
+ Everything is
+ static, so there is no need to create an instance of this class. You can
+ just call the static methods. They are encapsulated here merely to provide
+ a common namespace.
+ @short This class includes various pixmap-based graphical effects.
+
+*/
+public class KPixmapEffect implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KPixmapEffect(Class dummy){}
+
+ public static final int VerticalGradient = 0;
+ public static final int HorizontalGradient = 1;
+ public static final int DiagonalGradient = 2;
+ public static final int CrossDiagonalGradient = 3;
+ public static final int PyramidGradient = 4;
+ public static final int RectangleGradient = 5;
+ public static final int PipeCrossGradient = 6;
+ public static final int EllipticGradient = 7;
+
+ public static final int Red = 0;
+ public static final int Green = 1;
+ public static final int Blue = 2;
+
+ public static final int NorthLite = 0;
+ public static final int NWLite = 1;
+ public static final int WestLite = 2;
+ public static final int SWLite = 3;
+ public static final int SouthLite = 4;
+ public static final int SELite = 5;
+ public static final int EastLite = 6;
+ public static final int NELite = 7;
+
+ public KPixmapEffect() {
+ newKPixmapEffect();
+ }
+ private native void newKPixmapEffect();
+ /**
+ Creates a gradient from color a to color b of the specified type.
+ @param pixmap The pixmap to process.
+ @param ca Color a.
+ @param cb Color b.
+ @param type The type of gradient.
+ @param ncols The number of colors to use when not running on a
+ truecolor display. The gradient will be dithered to this number of
+ colors. Pass 0 to prevent dithering.
+ @return Returns the generated pixmap, for convenience.
+
+ @short Creates a gradient from color a to color b of the specified type.
+ */
+ public static native KPixmap gradient(KPixmap pixmap, QColor ca, QColor cb, int type, int ncols);
+ public static native KPixmap gradient(KPixmap pixmap, QColor ca, QColor cb, int type);
+ /**
+ Creates an unbalanced gradient.
+ An unbalanced gradient is a gradient where the transition from
+ color a to color b is not linear, but in this case, exponential.
+ @param pixmap The pixmap that should be written.
+ @param ca Color a.
+ @param cb Color b.
+ @param type The type of gradient.
+ @param xfactor The x decay length. Use a value between -200 and 200.
+ @param yfactor The y decay length.
+ @param ncols The number of colors. See #gradient.
+ @return The generated pixmap, for convencience.
+
+ @short Creates an unbalanced gradient.
+ */
+ public static native KPixmap unbalancedGradient(KPixmap pixmap, QColor ca, QColor cb, int type, int xfactor, int yfactor, int ncols);
+ public static native KPixmap unbalancedGradient(KPixmap pixmap, QColor ca, QColor cb, int type, int xfactor, int yfactor);
+ public static native KPixmap unbalancedGradient(KPixmap pixmap, QColor ca, QColor cb, int type, int xfactor);
+ public static native KPixmap unbalancedGradient(KPixmap pixmap, QColor ca, QColor cb, int type);
+ /**
+ Creates a pixmap of a given size with the given pixmap.
+ if the
+ given size is bigger than the size of the pixmap, the pixmap is
+ tiled.
+ @param pixmap This is the source pixmap
+ @param size The size the new pixmap should have.
+ @return The generated, tiled pixmap.
+
+ @short Creates a pixmap of a given size with the given pixmap.
+ */
+ public static native KPixmap createTiled(KPixmap pixmap, QSize size);
+ /**
+ Either brightens or dims a pixmap by a specified ratio.
+ @param pixmap The pixmap to process.
+ @param ratio The ratio to use. Use negative value to dim.
+ @return Returns The pixmap(), provided for convenience.
+
+ @short Either brightens or dims a pixmap by a specified ratio.
+ */
+ public static native KPixmap intensity(KPixmap pixmap, float ratio);
+ /**
+ Modifies the intensity of a pixmap's RGB channel component.
+ @param pixmap The pixmap to process.
+ @param ratio value. Use negative value to dim.
+ @param channel Which channel(s) should be modified
+ @return Returns the pixmap(), provided for convenience.
+
+ @short Modifies the intensity of a pixmap's RGB channel component.
+ */
+ public static native KPixmap channelIntensity(KPixmap pixmap, float ratio, int channel);
+ /**
+ Blends the provided pixmap into a background of the indicated color.
+ @param pixmap The pixmap to process.
+ @param initial_intensity this parameter takes values from -1 to 1:
+
+ <li>
+ If positive, it tells how much to fade the image in its
+ less affected spot.
+ </li>
+
+ <li>
+ If negative, it tells roughly indicates how much of the image
+ remains unaffected
+ </li>
+ @param bgnd Indicates the color of the background to blend in.
+ @param eff Lets you choose what kind of blending you like.
+ @param anti_dir Blend in the opposite direction (makes no much sense
+ with concentric blending effects).
+ @param ncols The number of colors to dither the pixmap to. Only
+ used for 8 bpp pixmaps.
+ @return Returns the pixmap(), provided for convenience.
+
+ @short Blends the provided pixmap into a background of the indicated color.
+ */
+ public static native KPixmap blend(KPixmap pixmap, float initial_intensity, QColor bgnd, int eff, boolean anti_dir, int ncols);
+ public static native KPixmap blend(KPixmap pixmap, float initial_intensity, QColor bgnd, int eff, boolean anti_dir);
+ public static native KPixmap blend(KPixmap pixmap, float initial_intensity, QColor bgnd, int eff);
+ /**
+ Builds a hash on any given pixmap.
+ @param pixmap The pixmap to process.
+ @param lite The hash faces the indicated lighting (cardinal poles)
+ @param spacing How many unmodified pixels inbetween hashes.
+ @param ncols The number of colors to dither the pixmap to.
+ Only used for 8 bpp pixmaps.
+ @return Returns The pixmap(), provided for convenience.
+
+ @short Builds a hash on any given pixmap.
+ */
+ public static native KPixmap hash(KPixmap pixmap, int lite, int spacing, int ncols);
+ public static native KPixmap hash(KPixmap pixmap, int lite, int spacing);
+ public static native KPixmap hash(KPixmap pixmap, int lite);
+ public static native KPixmap hash(KPixmap pixmap);
+ /**
+ Creates a pattern from a pixmap.
+ The given pixmap is "flattened"
+ between color a to color b.
+ Doesn't change the original pixmap.
+ @param pixmap The pixmap to process.
+ @param size The size of the returned pixmap. If <code>size</code> is larger than
+ the original, the resulting pixmap will be tiled.
+ @param ca Color a.
+ @param cb Color b.
+ @param ncols The number of colors to use. The image will be
+ dithered to this depth. Pass zero to prevent dithering.
+ @return The resulting pixmap.
+
+ @short Creates a pattern from a pixmap.
+ */
+ public static native KPixmap pattern(KPixmap pixmap, QSize size, QColor ca, QColor cb, int ncols);
+ public static native KPixmap pattern(KPixmap pixmap, QSize size, QColor ca, QColor cb);
+ /**
+ Fades a pixmap to a certain color.
+ @param pixmap The pixmap to process.
+ @param val The strength of the effect. 0 <= val <= 1.
+ @param color The color to blend to.
+ @return Returns the pixmap(), provided for convenience.
+
+ @short Fades a pixmap to a certain color.
+ */
+ public static native KPixmap fade(KPixmap pixmap, double val, QColor color);
+ /**
+ Converts a pixmap to grayscale.
+ @param pixmap The pixmap to process.
+ @param fast Set to <code>true</code> in order to use a faster but non-photographic
+ quality algorithm. Appropriate for things such as toolbar icons.
+ @return Returns the pixmap(), provided for convenience.
+
+ @short Converts a pixmap to grayscale.
+ */
+ public static native KPixmap toGray(KPixmap pixmap, boolean fast);
+ public static native KPixmap toGray(KPixmap pixmap);
+ /**
+ Desaturates a pixmap.
+ @param pixmap The pixmap to process.
+ @param desat A value between 0 and 1 setting the degree of desaturation
+ @return Returns The pixmap(), provided for convenience.
+
+ @short Desaturates a pixmap.
+ */
+ public static native KPixmap desaturate(KPixmap pixmap, float desat);
+ public static native KPixmap desaturate(KPixmap pixmap);
+ /**
+ Modifies the contrast of a pixmap.
+ @param pixmap The pixmap to process.
+ @param c A contrast value between -255 and 255.
+ @return Returns the pixmap(), provided for convenience.
+
+ @short Modifies the contrast of a pixmap.
+ */
+ public static native KPixmap contrast(KPixmap pixmap, int c);
+ /**
+ Dithers a pixmap using Floyd-Steinberg dithering for low-color
+ situations.
+ @param pixmap The pixmap to process.
+ @param palette The color palette to use.
+ @param size The size of the palette.
+ @return Returns the pixmap(), provided for convenience.
+
+ @short Dithers a pixmap using Floyd-Steinberg dithering for low-color situations.
+ */
+ public static native KPixmap dither(KPixmap pixmap, QColor palette, int size);
+ /**
+ Calculate a 'selected' pixmap, for instance a selected icon
+ on the desktop.
+ @param pixmap the pixmap to select
+ @param col the selected color, usually from QColorGroup.highlight().
+ @short Calculate a 'selected' pixmap, for instance a selected icon on the desktop.
+ */
+ public static native KPixmap selectedPixmap(KPixmap pixmap, QColor col);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPixmapIO.java b/kdejava/koala/org/kde/koala/KPixmapIO.java
new file mode 100644
index 00000000..f0e8922c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPixmapIO.java
@@ -0,0 +1,149 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QImage;
+import org.kde.qt.QPoint;
+
+/**
+
+ KPixmapIO implements a fast path for QPixmap to/from QImage conversions.
+ It uses the MIT-SHM shared memory extension for this. If this extension is
+ not available, it will fall back to standard Qt methods.
+ <li><b>Typical usage:</b></li>
+ You can use KPixmapIO for load/saving pixmaps.
+ <pre>
+ KPixmapIO io;
+ pixmap = io.convertToPixmap(image);
+ image = io.convertToImage(pixmap);
+ </pre>
+ It also has functionality for partially updating/saving pixmaps, see
+ putImage and getImage.
+ <b>KPixmapIO vs. Qt speed comparison</b>\n
+ Speed measurements were taken. These show that usage of KPixmapIO for
+ images up to a certain threshold size, offers no speed advantage over
+ the Qt routines. Below you can see a plot of these measurements.
+ The threshold size, amongst other causes, is determined by the shared
+ memory allocation policy. If the policy is <code>ShmDontKeep</code>, the
+ shared memory segment is discarded right after usage, and thus needs to
+ be allocated before each transfer. This introduces a a setup penalty not
+ present when the policy is <code>ShmKeepAndGrow.</code> In this case the
+ shared memory segment is kept and resized when necessary, until the
+ KPixmapIO object is destroyed.
+ The default policy is <code>ShmDontKeep.</code> This policy makes sense when
+ loading pixmaps once. The corresponding threshold is taken at 5.000
+ pixels as suggested by experiments. Below this threshold, KPixmapIO
+ will not use shared memory and fall back on the Qt routines.
+ When the policy is <code>ShmKeepAndGrow</code>, the threshold is taken at
+ 2.000 pixels. Using this policy, you might want to use preAllocShm
+ to pre-allocate a certain amount of shared memory, in order to avoid
+ resizes. This allocation policy makes sense in a multimedia type
+ application where you are constantly updating the screen.
+ Above a couple times the threshold size, KPixmapIO's and Qt's speed become
+ linear in the number of pixels, KPixmapIO being at least 2, and mostly around
+ 4 times faster than Qt, depending on the screen and image depth.
+ Speed difference seems to be the most at 16 bpp, followed by 32 and 24
+ bpp respectively. This can be explained by the relatively poor
+ implementation of 16 bit RGB packing in Qt, while at 32 bpp we need to
+ transfer more data, and thus gain more, than at 24 bpp.
+ <li><b>Conclusion:</b></li>
+ For large pixmaps, there's a definite speed improvement when using
+ KPixmapIO. On the other hand, there's no speed improvement for small
+ pixmaps. When you know you're only transferring small pixmaps, there's no
+ point in using it.
+ @author Geert Jansen <jansen@kde.org>
+
+ @version $Id$
+
+ @short Fast QImage to/from QPixmap conversion.
+
+*/
+public class KPixmapIO implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KPixmapIO(Class dummy){}
+
+ /**
+ Shared memory allocation policies.
+ @short Shared memory allocation policies.
+ */
+ public static final int ShmDontKeep = 0;
+ public static final int ShmKeepAndGrow = 1;
+
+ public KPixmapIO() {
+ newKPixmapIO();
+ }
+ private native void newKPixmapIO();
+ /**
+ Convert an image to a pixmap.
+ @param image The image to convert.
+ @return The pixmap containing the image.
+
+ @short Convert an image to a pixmap.
+ */
+ public native QPixmap convertToPixmap(QImage image);
+ /**
+ Convert a pixmap to an image.
+ @param pixmap The pixmap to convert.
+ @return The image.
+
+ @short Convert a pixmap to an image.
+ */
+ public native QImage convertToImage(QPixmap pixmap);
+ /**
+ Bitblt an image onto a pixmap.
+ @param dst The destination pixmap.
+ @param dx Destination x offset.
+ @param dy Destination y offset.
+ @param src The image to load.
+ @short Bitblt an image onto a pixmap.
+ */
+ public native void putImage(QPixmap dst, int dx, int dy, QImage src);
+ /**
+ This function is identical to the one above. It only differs in the
+ arguments it accepts.
+ @short This function is identical to the one above.
+ */
+ public native void putImage(QPixmap dst, QPoint offset, QImage src);
+ /**
+ Transfer (a part of) a pixmap to an image.
+ @param src The source pixmap.
+ @param sx Source x offset.
+ @param sy Source y offset.
+ @param sw Source width.
+ @param sh Source height.
+ @return The image.
+
+ @short Transfer (a part of) a pixmap to an image.
+ */
+ public native QImage getImage(QPixmap src, int sx, int sy, int sw, int sh);
+ /**
+ This function is identical to the one above. It only differs in the
+ arguments it accepts.
+ @short This function is identical to the one above.
+ */
+ public native QImage getImage(QPixmap src, QRect rect);
+ /**
+ Set the shared memory allocation policy. See the introduction for
+ KPixmapIO for a discussion.
+ @param policy The alloction policy.
+ @short Set the shared memory allocation policy.
+ */
+ public native void setShmPolicy(int policy);
+ /**
+ Pre-allocate shared memory. KPixmapIO will be able to transfer images
+ up to this size without resizing.
+ @param size The size of the image in <code>pixels.</code>
+ @short Pre-allocate shared memory.
+ */
+ public native void preAllocShm(int size);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPixmapProvider.java b/kdejava/koala/org/kde/koala/KPixmapProvider.java
new file mode 100644
index 00000000..66765669
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPixmapProvider.java
@@ -0,0 +1,35 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+
+/**
+
+ A tiny abstract class with just one method:
+ pixmapFor()
+ It will be called whenever an icon is searched for <code>text.</code>
+ Used e.g. by KHistoryCombo
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short an abstract interface for looking up icons.
+
+*/
+public class KPixmapProvider implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KPixmapProvider(Class dummy){}
+
+ /**
+ You may subclass this and return a pixmap of size <code>size</code> for <code>text.</code>
+ @param text the text that is associated with the pixmap
+ @param size the size of the icon in pixels, 0 for defaylt size.
+ See KIcon.StdSize.
+ @return the pixmap for the arguments, or null if there is none
+
+ @short You may subclass this and return a pixmap of size <code>size</code> for <code>text.</code>
+ */
+ public native QPixmap pixmapFor(String text, int size);
+ public native QPixmap pixmapFor(String text);
+}
diff --git a/kdejava/koala/org/kde/koala/KPixmapSplitter.java b/kdejava/koala/org/kde/koala/KPixmapSplitter.java
new file mode 100644
index 00000000..a0315de1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPixmapSplitter.java
@@ -0,0 +1,100 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSize;
+
+/**
+
+ If you have a pixmap containing several items (icons), you can use this
+ class to get the coordinates of each item.
+ For example, if you have a pixmap with 25 items and you want to get the
+ 4th item as a pixmap (every item being 20x10 pixels):
+ <pre>
+ KPixmapSplitter splitter;
+ splitter.setPixmap( somePixmap );
+ splitter.setItemSize( QSize( 20, 10 ));
+ QPixmap item( 20, 10 );
+ item.fill( Qt.white );
+ QRect rect = splitter.coordinates( 4 );
+ if ( !rect.isEmpty() )
+ bitBlt( &item, QPoint(0,0), &somePixmap, rect, CopyROP );
+ </pre>
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short A class to split a pixmap into several items.
+
+*/
+public class KPixmapSplitter implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KPixmapSplitter(Class dummy){}
+
+ /**
+ Constructor, does nothing but initialize some default-values.
+ @short Constructor, does nothing but initialize some default-values.
+ */
+ public KPixmapSplitter() {
+ newKPixmapSplitter();
+ }
+ private native void newKPixmapSplitter();
+ /**
+ Sets the pixmap to be split.
+ @short Sets the pixmap to be split.
+ */
+ public native void setPixmap(QPixmap pixmap);
+ /**
+ @return the pixmap that has been set via setPixmap().
+
+ @short
+ */
+ public native QPixmap pixmap();
+ /**
+ Sets the size of the items you want to get out of the given pixmap.
+ The QRect of #coordinates(int) will have the width and height of exactly
+ this <code>size.</code>
+ @short Sets the size of the items you want to get out of the given pixmap.
+ */
+ public native void setItemSize(QSize size);
+ /**
+ @return the set size of the items (coordinates) you want to get
+ out of the given pixmap.
+
+ @short
+ */
+ public native QSize itemSize();
+ /**
+ If there is space between rows in the given pixmap, you have to specify
+ how many pixels there are.
+ @short If there is space between rows in the given pixmap, you have to specify how many pixels there are.
+ */
+ public native void setVSpacing(int spacing);
+ /**
+ If there is space between columns in the given pixmap, you have to
+ specify how many pixels there are.
+ @short If there is space between columns in the given pixmap, you have to specify how many pixels there are.
+ */
+ public native void setHSpacing(int spacing);
+ /**
+ @return the coordinates of the item at position pos in the given
+ pixmap.
+
+ @short
+ */
+ public native QRect coordinates(int pos);
+ /**
+ Overloaded for convenience. Returns the item at the position of the
+ given character (when using a latin1 font-pixmap)
+ @short Overloaded for convenience.
+ */
+ public native QRect coordinates(char ch);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPluginSelector.java b/kdejava/koala/org/kde/koala/KPluginSelector.java
new file mode 100644
index 00000000..f725ee1f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPluginSelector.java
@@ -0,0 +1,150 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ It shows the list of available plugins on top (if there's more than one
+ category this is a TabWidget) and the configuration of the selected plugin
+ below that.
+ Since the user needs a way to know what a specific plugin does every plugin
+ sould install a desktop file containing a name, comment and category field.
+ The category is usefull for applications that can use different kinds of
+ plugins like a playlist, skin or visualization.
+ The location of these desktop files is the
+ share/apps/&lt;instancename&gt;/&lt;plugindir&gt; directory. But if you need
+ you may use a different directory.
+ Often a program has more than one kind of plugin. In that case you want to
+ make a visible distinction between those plugins. All you have to do is to
+ create a KPluginSelectionWidget for every category and then add them all
+ to the KPluginSelector.
+ See {@link KPluginSelectorSignals} for signals emitted by KPluginSelector
+ @author Matthias Kretz <kretz@kde.org>
+
+ @short A widget to select what plugins to load and configure the plugins.
+
+*/
+public class KPluginSelector extends QWidget {
+ protected KPluginSelector(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create a new KPluginSelector.
+ @short Create a new KPluginSelector.
+ */
+ public KPluginSelector(QWidget parent, String name) {
+ super((Class) null);
+ newKPluginSelector(parent,name);
+ }
+ private native void newKPluginSelector(QWidget parent, String name);
+ public KPluginSelector(QWidget parent) {
+ super((Class) null);
+ newKPluginSelector(parent);
+ }
+ private native void newKPluginSelector(QWidget parent);
+ /**
+ Add a list of KParts plugins
+ If you want to support non-KParts plugins use the following
+ function.
+ The information about the plugins will be loaded from the
+ share/apps/&lt;instancename&gt;/kpartplugins directory.
+ @param instanceName The name of the KInstance of the plugin's parent.
+ @param catname The translated name of the category. This is the
+ name that is shown in the TabWidget if there is
+ more than one category.
+ @param category When you have different categories of KParts
+ plugins you distinguish between the plugins using
+ the Category key in the .desktop file. Use this
+ parameter to select only those KParts plugins
+ with the Category key == <code>category.</code> If <code>category</code> is not set the Category key is ignored
+ and all plugins are shown.
+ @param config The KConfig object that holds the state of the
+ plugins being enabled or not. By default it should
+ be instance.config(). It is recommended to
+ always pass a KConfig object if you use
+ KSettings.PluginPage since you never know from where the
+ page will be called (think global config app).
+ For example KViewCanvas passes KSimpleConfig(
+ "kviewcanvas" ).
+ @short Add a list of KParts plugins
+ */
+ public native void addPlugins(String instanceName, String catname, String category, KConfig config);
+ public native void addPlugins(String instanceName, String catname, String category);
+ public native void addPlugins(String instanceName, String catname);
+ public native void addPlugins(String instanceName);
+ /**
+ Add a list of KParts plugins. Convenience method for the one above.
+ If not set explicitely, <code>config</code> is set to instance.config().
+ @short Add a list of KParts plugins.
+ */
+ public native void addPlugins(KInstanceInterface instance, String catname, String category, KConfig config);
+ public native void addPlugins(KInstanceInterface instance, String catname, String category);
+ public native void addPlugins(KInstanceInterface instance, String catname);
+ public native void addPlugins(KInstanceInterface instance);
+ /**
+ Add a list of non-KParts plugins
+ @param plugininfos A list of KPluginInfo objects containing the
+ necessary information for the plugins you want to
+ add to the list.
+ @param catname The translated name of the category. This is the
+ name that is shown in the TabWidget if there is
+ more than one category.
+ @param category When you have different categories of KParts
+ plugins you distinguish between the plugins using
+ the Category key in the .desktop file. Use this
+ parameter to select only those KParts plugins
+ with the Category key == <code>category.</code> If <code>category</code> is not set the Category key is ignored
+ and all plugins are shown.
+ @param config The KConfig object that holds the state of the
+ plugins being enabled or not. By default it will
+ use KGlobal.config(). It is recommended to
+ always pass a KConfig object if you use
+ KSettings.PluginPage since you never know from where the
+ page will be called (think global config app).
+ For example KViewCanvas passes KSimpleConfig(
+ "kviewcanvas" ).
+ @short Add a list of non-KParts plugins
+ */
+ // void addPlugins(const QValueList<KPluginInfo*>& arg1,const QString& arg2,const QString& arg3,KConfig* arg4); >>>> NOT CONVERTED
+ // void addPlugins(const QValueList<KPluginInfo*>& arg1,const QString& arg2,const QString& arg3); >>>> NOT CONVERTED
+ // void addPlugins(const QValueList<KPluginInfo*>& arg1,const QString& arg2); >>>> NOT CONVERTED
+ // void addPlugins(const QValueList<KPluginInfo*>& arg1); >>>> NOT CONVERTED
+ /**
+ Set whether the area for showing the KCMs of the plugins should be
+ hidden if the plugin doesn't have a KCM or whether the layout should
+ rather stay static and only an message should be shown.
+ By default the config page is not hidden.
+ @short Set whether the area for showing the KCMs of the plugins should be hidden if the plugin doesn't have a KCM or whether the layout should rather stay static and only an message should be shown.
+ */
+ public native void setShowEmptyConfigPage(boolean arg1);
+ /**
+ Load the state of the plugins (selected or not) from the KPluginInfo
+ objects. For KParts plugins everything should work automatically. For
+ your own type of plugins you might need to reimplement the
+ KPluginInfo.isPluginEnabled() method. If that doesn't fit your needs
+ you can also reimplement this method.
+ @short Load the state of the plugins (selected or not) from the KPluginInfo objects.
+ */
+ public native void load();
+ /**
+ Save the configuration
+ @short Save the configuration
+ */
+ public native void save();
+ /**
+ Change to applications defaults
+ @short Change to applications defaults
+ */
+ public native void defaults();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPluginSelectorSignals.java b/kdejava/koala/org/kde/koala/KPluginSelectorSignals.java
new file mode 100644
index 00000000..63602b9e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPluginSelectorSignals.java
@@ -0,0 +1,21 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KPluginSelectorSignals {
+ /**
+ Tells you whether the configuration is changed or not.
+ @short Tells you whether the configuration is changed or not.
+ */
+ void changed(boolean arg1);
+ /**
+ Emitted after the config of an embedded KCM has been saved. The
+ argument is the name of the parent component that needs to reload
+ its config
+ @short Emitted after the config of an embedded KCM has been saved.
+ */
+ void configCommitted(String instanceName);
+}
diff --git a/kdejava/koala/org/kde/koala/KPopupFrame.java b/kdejava/koala/org/kde/koala/KPopupFrame.java
new file mode 100644
index 00000000..8efe2ef1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPopupFrame.java
@@ -0,0 +1,98 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QFrame;
+
+/**
+
+ Frame with popup menu behavior.
+ @author Tim Gilman, Mirko Boehm
+
+ @version $Id$
+
+ @short Frame with popup menu behavior.
+
+*/
+public class KPopupFrame extends QFrame {
+ protected KPopupFrame(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ The contructor. Creates a dialog without buttons.
+ @short The contructor.
+ */
+ public KPopupFrame(QWidget parent, String name) {
+ super((Class) null);
+ newKPopupFrame(parent,name);
+ }
+ private native void newKPopupFrame(QWidget parent, String name);
+ public KPopupFrame(QWidget parent) {
+ super((Class) null);
+ newKPopupFrame(parent);
+ }
+ private native void newKPopupFrame(QWidget parent);
+ public KPopupFrame() {
+ super((Class) null);
+ newKPopupFrame();
+ }
+ private native void newKPopupFrame();
+ /**
+ Set the main widget. You cannot set the main widget from the constructor,
+ since it must be a child of the frame itselfes.
+ Be careful: the size is set to the main widgets size. It is up to you to
+ set the main widgets correct size before setting it as the main
+ widget.
+ @short Set the main widget.
+ */
+ public native void setMainWidget(QWidget m);
+ /**
+ The resize event. Simply resizes the main widget to the whole
+ widgets client size.
+ @short The resize event.
+ */
+ public native void resizeEvent(QResizeEvent arg1);
+ /**
+ Open the popup window at position pos.
+ @short Open the popup window at position pos.
+ */
+ public native void popup(QPoint pos);
+ /**
+ Execute the popup window.
+ @short Execute the popup window.
+ */
+ public native int exec(QPoint p);
+ /**
+ Execute the popup window.
+ @short Execute the popup window.
+ */
+ public native int exec(int x, int y);
+ /**
+ Close the popup window. This is called from the main widget, usually.
+ <code>r</code> is the result returned from exec().
+ @short Close the popup window.
+ */
+ public native void close(int r);
+ /**
+ Hides the widget. Reimplemented from QWidget
+ @short Hides the widget.
+ */
+ public native void hide();
+ /**
+ Catch key press events.
+ @short Catch key press events.
+ */
+ protected native void keyPressEvent(QKeyEvent e);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPopupMenu.java b/kdejava/koala/org/kde/koala/KPopupMenu.java
new file mode 100644
index 00000000..c3fff51a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPopupMenu.java
@@ -0,0 +1,165 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QHideEvent;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QCloseEvent;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QPoint;
+import org.kde.qt.QContextMenuEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QPopupMenu;
+
+/**
+
+ KPopupMenu is a class for menus with standard title items and keyboard
+ accessibility for popups with many options and/or varying options. It acts
+ identically to QPopupMenu, with the addition of insertTitle(),
+ changeTitle(), setKeyboardShortcutsEnabled() and
+ setKeyboardShortcutsExecute() methods.
+ The titles support a text string, an icon, plus user defined gradients,
+ colors, and background pixmaps.
+ The keyboard search algorithm is incremental with additional underlining
+ for user feedback.
+ See {@link KPopupMenuSignals} for signals emitted by KPopupMenu
+ @author Hamish Rodda <rodda@kde.org>
+
+ @short A menu with title items.
+
+*/
+public class KPopupMenu extends QPopupMenu {
+ protected KPopupMenu(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KPopupMenu.
+ @short Constructs a KPopupMenu.
+ */
+ public KPopupMenu(QWidget parent, String name) {
+ super((Class) null);
+ newKPopupMenu(parent,name);
+ }
+ private native void newKPopupMenu(QWidget parent, String name);
+ public KPopupMenu(QWidget parent) {
+ super((Class) null);
+ newKPopupMenu(parent);
+ }
+ private native void newKPopupMenu(QWidget parent);
+ public KPopupMenu() {
+ super((Class) null);
+ newKPopupMenu();
+ }
+ private native void newKPopupMenu();
+ /**
+ Inserts a title item with no icon.
+ @short Inserts a title item with no icon.
+ */
+ public native int insertTitle(String text, int id, int index);
+ public native int insertTitle(String text, int id);
+ public native int insertTitle(String text);
+ /**
+ Inserts a title item with the given icon and title.
+ @short Inserts a title item with the given icon and title.
+ */
+ public native int insertTitle(QPixmap icon, String text, int id, int index);
+ public native int insertTitle(QPixmap icon, String text, int id);
+ public native int insertTitle(QPixmap icon, String text);
+ /**
+ Changes the title of the item at the specified id. If a icon was
+ previously set it is cleared.
+ @short Changes the title of the item at the specified id.
+ */
+ public native void changeTitle(int id, String text);
+ /**
+ Changes the title and icon of the title item at the specified id.
+ @short Changes the title and icon of the title item at the specified id.
+ */
+ public native void changeTitle(int id, QPixmap icon, String text);
+ /**
+ Returns the title of the title item at the specified id. The default
+ id of -1 is for backwards compatibility only, you should always specify
+ the id.
+ @short Returns the title of the title item at the specified id.
+ */
+ public native String title(int id);
+ public native String title();
+ /**
+ Returns the icon of the title item at the specified id.
+ @short Returns the icon of the title item at the specified id.
+ */
+ public native QPixmap titlePixmap(int id);
+ /**
+ Enables keyboard navigation by searching for the entered key sequence.
+ Also underlines the currently selected item, providing feedback on the search.
+ Defaults to off.
+ WARNING: calls to text() of currently keyboard-selected items will
+ contain additional ampersand characters.
+ WARNING: though pre-existing keyboard shortcuts will not interfere with the
+ operation of this feature, they may be confusing to the user as the existing
+ shortcuts will not work.
+ @short Enables keyboard navigation by searching for the entered key sequence.
+ */
+ public native void setKeyboardShortcutsEnabled(boolean enable);
+ /**
+ Enables execution of the menu item once it is uniquely specified.
+ Defaults to off.
+ @short Enables execution of the menu item once it is uniquely specified.
+ */
+ public native void setKeyboardShortcutsExecute(boolean enable);
+ /**
+ Returns the context menu associated with this menu
+ @short Returns the context menu associated with this menu
+ */
+ public native QPopupMenu contextMenu();
+ /**
+ Hides the context menu if shown
+ @short Hides the context menu if shown
+ */
+ public native void hideContextMenu();
+ /**
+ Reimplemented for internal purposes
+ @short Reimplemented for internal purposes
+ */
+ public native void activateItemAt(int index);
+ /**
+ Return the state of the mouse button and keyboard modifiers
+ when the last menuitem was activated.
+ @short Return the state of the mouse button and keyboard modifiers when the last menuitem was activated.
+ */
+ public native int state();
+ /**
+ Returns the KPopupMenu associated with the current context menu
+ @short Returns the KPopupMenu associated with the current context menu
+ */
+ public static native KPopupMenu contextMenuFocus();
+ /**
+ returns the ID of the menuitem associated with the current context menu
+ @short returns the ID of the menuitem associated with the current context menu
+ */
+ public static native int contextMenuFocusItem();
+ protected native void closeEvent(QCloseEvent arg1);
+ protected native void keyPressEvent(QKeyEvent e);
+ protected native void mouseReleaseEvent(QMouseEvent e);
+ protected native void mousePressEvent(QMouseEvent e);
+ protected native boolean focusNextPrevChild(boolean next);
+ protected native void contextMenuEvent(QContextMenuEvent e);
+ protected native void hideEvent(QHideEvent arg1);
+ protected native String underlineText(String text, int length);
+ protected native void resetKeyboardVars(boolean noMatches);
+ protected native void resetKeyboardVars();
+ protected native void itemHighlighted(int whichItem);
+ protected native void showCtxMenu(QPoint pos);
+ protected native void ctxMenuHiding();
+ protected native void ctxMenuHideShowingMenu();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPopupMenuSignals.java b/kdejava/koala/org/kde/koala/KPopupMenuSignals.java
new file mode 100644
index 00000000..231e3131
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPopupMenuSignals.java
@@ -0,0 +1,25 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QHideEvent;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QCloseEvent;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QPoint;
+import org.kde.qt.QContextMenuEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+
+public interface KPopupMenuSignals {
+ /**
+ connect to this signal to be notified when a context menu is about to be shown
+ @param menu The menu that the context menu is about to be shown for
+ @param menuItem The menu item that the context menu is currently on
+ @param ctxMenu The context menu itself
+ @short connect to this signal to be notified when a context menu is about to be shown
+ */
+ void aboutToShowContextMenu(KPopupMenu menu, int menuItem, QPopupMenu ctxMenu);
+}
diff --git a/kdejava/koala/org/kde/koala/KPopupTitle.java b/kdejava/koala/org/kde/koala/KPopupTitle.java
new file mode 100644
index 00000000..e947f30c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPopupTitle.java
@@ -0,0 +1,76 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ Title widget for use in KPopupMenu.
+ You usually don't have to create this manually since
+ KPopupMenu.insertTitle will do it for you, but it is allowed if
+ you wish to customize it's look.
+ @author Daniel M. Duley <mosfet@kde.org>
+
+ @short KPopupMenu title widget.
+
+*/
+public class KPopupTitle extends QWidget {
+ protected KPopupTitle(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a title widget with the user specified gradient, pixmap,
+ and colors.
+ @short Constructs a title widget with the user specified gradient, pixmap, and colors.
+ */
+ public KPopupTitle(QWidget parent, String name) {
+ super((Class) null);
+ newKPopupTitle(parent,name);
+ }
+ private native void newKPopupTitle(QWidget parent, String name);
+ public KPopupTitle(QWidget parent) {
+ super((Class) null);
+ newKPopupTitle(parent);
+ }
+ private native void newKPopupTitle(QWidget parent);
+ public KPopupTitle() {
+ super((Class) null);
+ newKPopupTitle();
+ }
+ private native void newKPopupTitle();
+ /**
+ Sets the title string and optional icon for the title widget.
+ You will want to call this before inserting into a menu.
+ @short Sets the title string and optional icon for the title widget.
+ */
+ public native void setTitle(String text, QPixmap icon);
+ public native void setTitle(String text);
+ /**
+ Returns the current title.
+ @short Returns the current title.
+ */
+ public native String title();
+ /**
+ Returns the current icon.
+ @short Returns the current icon.
+ */
+ public native QPixmap icon();
+ public native QSize sizeHint();
+ public native void setText(String text);
+ public native void setIcon(QPixmap pix);
+ protected native void calcSize();
+ protected native void paintEvent(QPaintEvent ev);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPreviewWidgetBase.java b/kdejava/koala/org/kde/koala/KPreviewWidgetBase.java
new file mode 100644
index 00000000..17d4a5d6
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPreviewWidgetBase.java
@@ -0,0 +1,52 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ Abstract baseclass for all preview widgets which shall be used via
+ KFileDialog.setPreviewWidget(const KPreviewWidgetBase ).
+ Ownership will be transferred to KFileDialog, so you have to create
+ the preview with "new" and let KFileDialog delete it.
+ Just derive your custom preview widget from KPreviewWidgetBase and implement
+ all the pure methods. The slot showPreview(KURL) is called
+ every time the file selection changes.
+ @author Frerich Raabe <raabe@kde.org>
+
+ @short Abstract baseclass for all preview widgets.
+
+*/
+public class KPreviewWidgetBase extends QWidget {
+ protected KPreviewWidgetBase(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor. Construct the user interface of your preview widget here
+ and pass the KFileDialog this preview widget is going to be used in as
+ the parent.
+ @param parent The KFileDialog this preview widget is going to be used in
+ @param name The internal name of this object
+ @short Constructor.
+ */
+ /**
+ This slot is called every time the user selects another file in the
+ file dialog. Implement the stuff necessary to reflect the change here.
+ @param url The URL of the currently selected file.
+ @short This slot is called every time the user selects another file in the file dialog.
+ */
+ public native void showPreview(KURL url);
+ /**
+ Reimplement this to clear the preview. This is called when e.g. the
+ selection is cleared or when multiple selections exist, or the directory
+ is changed.
+ @short Reimplement this to clear the preview.
+ */
+ public native void clearPreview();
+ public native ArrayList supportedMimeTypes();
+}
diff --git a/kdejava/koala/org/kde/koala/KPrintAction.java b/kdejava/koala/org/kde/koala/KPrintAction.java
new file mode 100644
index 00000000..2087518c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPrintAction.java
@@ -0,0 +1,118 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+
+/**
+ See {@link KPrintActionSignals} for signals emitted by KPrintAction
+*/
+public class KPrintAction extends KActionMenu {
+ protected KPrintAction(Class dummy){super((Class) null);}
+ public static final int All = 0;
+ public static final int Regular = 1;
+ public static final int Specials = 2;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ public KPrintAction(String text, int type, QWidget parentWidget, QObject parent, String name) {
+ super((Class) null);
+ newKPrintAction(text,type,parentWidget,parent,name);
+ }
+ private native void newKPrintAction(String text, int type, QWidget parentWidget, QObject parent, String name);
+ public KPrintAction(String text, int type, QWidget parentWidget, QObject parent) {
+ super((Class) null);
+ newKPrintAction(text,type,parentWidget,parent);
+ }
+ private native void newKPrintAction(String text, int type, QWidget parentWidget, QObject parent);
+ public KPrintAction(String text, int type, QWidget parentWidget) {
+ super((Class) null);
+ newKPrintAction(text,type,parentWidget);
+ }
+ private native void newKPrintAction(String text, int type, QWidget parentWidget);
+ public KPrintAction(String text, int type) {
+ super((Class) null);
+ newKPrintAction(text,type);
+ }
+ private native void newKPrintAction(String text, int type);
+ public KPrintAction(String text) {
+ super((Class) null);
+ newKPrintAction(text);
+ }
+ private native void newKPrintAction(String text);
+ public KPrintAction(String text, QIconSet icon, int type, QWidget parentWidget, QObject parent, String name) {
+ super((Class) null);
+ newKPrintAction(text,icon,type,parentWidget,parent,name);
+ }
+ private native void newKPrintAction(String text, QIconSet icon, int type, QWidget parentWidget, QObject parent, String name);
+ public KPrintAction(String text, QIconSet icon, int type, QWidget parentWidget, QObject parent) {
+ super((Class) null);
+ newKPrintAction(text,icon,type,parentWidget,parent);
+ }
+ private native void newKPrintAction(String text, QIconSet icon, int type, QWidget parentWidget, QObject parent);
+ public KPrintAction(String text, QIconSet icon, int type, QWidget parentWidget) {
+ super((Class) null);
+ newKPrintAction(text,icon,type,parentWidget);
+ }
+ private native void newKPrintAction(String text, QIconSet icon, int type, QWidget parentWidget);
+ public KPrintAction(String text, QIconSet icon, int type) {
+ super((Class) null);
+ newKPrintAction(text,icon,type);
+ }
+ private native void newKPrintAction(String text, QIconSet icon, int type);
+ public KPrintAction(String text, QIconSet icon) {
+ super((Class) null);
+ newKPrintAction(text,icon);
+ }
+ private native void newKPrintAction(String text, QIconSet icon);
+ public KPrintAction(String text, String icon, int type, QWidget parentWidget, QObject parent, String name) {
+ super((Class) null);
+ newKPrintAction(text,icon,type,parentWidget,parent,name);
+ }
+ private native void newKPrintAction(String text, String icon, int type, QWidget parentWidget, QObject parent, String name);
+ public KPrintAction(String text, String icon, int type, QWidget parentWidget, QObject parent) {
+ super((Class) null);
+ newKPrintAction(text,icon,type,parentWidget,parent);
+ }
+ private native void newKPrintAction(String text, String icon, int type, QWidget parentWidget, QObject parent);
+ public KPrintAction(String text, String icon, int type, QWidget parentWidget) {
+ super((Class) null);
+ newKPrintAction(text,icon,type,parentWidget);
+ }
+ private native void newKPrintAction(String text, String icon, int type, QWidget parentWidget);
+ public KPrintAction(String text, String icon, int type) {
+ super((Class) null);
+ newKPrintAction(text,icon,type);
+ }
+ private native void newKPrintAction(String text, String icon, int type);
+ public KPrintAction(String text, String icon) {
+ super((Class) null);
+ newKPrintAction(text,icon);
+ }
+ private native void newKPrintAction(String text, String icon);
+ public static native KPrintAction exportAll(QWidget parentWidget, QObject parent, String name);
+ public static native KPrintAction exportAll(QWidget parentWidget, QObject parent);
+ public static native KPrintAction exportAll(QWidget parentWidget);
+ public static native KPrintAction exportAll();
+ public static native KPrintAction exportRegular(QWidget parentWidget, QObject parent, String name);
+ public static native KPrintAction exportRegular(QWidget parentWidget, QObject parent);
+ public static native KPrintAction exportRegular(QWidget parentWidget);
+ public static native KPrintAction exportRegular();
+ public static native KPrintAction exportSpecial(QWidget parentWidget, QObject parent, String name);
+ public static native KPrintAction exportSpecial(QWidget parentWidget, QObject parent);
+ public static native KPrintAction exportSpecial(QWidget parentWidget);
+ public static native KPrintAction exportSpecial();
+ protected native void initialize(int type, QWidget parentWidget);
+ protected native void slotAboutToShow();
+ protected native void slotActivated(int arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPrintActionSignals.java b/kdejava/koala/org/kde/koala/KPrintActionSignals.java
new file mode 100644
index 00000000..a95fb603
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPrintActionSignals.java
@@ -0,0 +1,12 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+
+public interface KPrintActionSignals {
+ // void print(KPrinter* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/KProcIO.java b/kdejava/koala/org/kde/koala/KProcIO.java
new file mode 100644
index 00000000..39aaeb2c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KProcIO.java
@@ -0,0 +1,172 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QTextCodec;
+
+/**
+
+ KProcIO
+ This class provides a slightly simpler interface to the communication
+ functions provided by KProcess. The simplifications are:
+
+ <li>
+ The buffer for a write is copied to an internal KProcIO
+ buffer and maintained/freed appropriately. There is no need
+ to be concerned with wroteStdin() signals _at_all_.
+ </li>
+
+ <li>
+ readln() reads a line of data and buffers any leftovers.
+ </li>
+
+ <li>
+ Conversion from/to unicode.
+ </li>
+ Basically, KProcIO gives you buffered I/O similar to fgets()/fputs().
+ Aside from these, and the fact that start() takes different
+ parameters, use this class just like KProcess.
+ See {@link KProcIOSignals} for signals emitted by KProcIO
+ @author David Sweet
+
+ @short A slightly simpler interface to KProcess.
+
+*/
+public class KProcIO extends KProcess {
+ protected KProcIO(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor
+ @short Constructor
+ */
+ public KProcIO(QTextCodec codec) {
+ super((Class) null);
+ newKProcIO(codec);
+ }
+ private native void newKProcIO(QTextCodec codec);
+ public KProcIO() {
+ super((Class) null);
+ newKProcIO();
+ }
+ private native void newKProcIO();
+ /**
+ Sets the communication mode to be passed to KProcess.start()
+ by start(). The default communication mode is KProcess.All.
+ You probably want to use this function in conjunction with
+ KProcess.setUsePty().
+ @param comm the communication mode
+ @short Sets the communication mode to be passed to KProcess.start() by start().
+ */
+ public native void setComm(int comm);
+ /**
+ Starts the process. It will fail in the following cases:
+
+ <li>
+ The process is already running.
+ </li>
+
+ <li>
+ The command line argument list is empty.
+ </li>
+
+ <li>
+ The starting of the process failed (could not fork).
+ </li>
+
+ <li>
+ The executable was not found.
+ </li>
+ @param runmode For a detailed description of the
+ various run modes, have a look at the
+ general description of the KProcess class.
+ @param includeStderr If true, data from both stdout and stderr is
+ listened to. If false, only stdout is listened to.
+ @return true on success, false on error.
+
+ @short Starts the process.
+ */
+ public native boolean start(int runmode, boolean includeStderr);
+ public native boolean start(int runmode);
+ public native boolean start();
+ /**
+ Writes text to stdin of the process.
+ @param line Text to write.
+ @param appendnewline if true, a newline '\\n' is appended.
+ @return true if successful, false otherwise
+
+ @short Writes text to stdin of the process.
+ */
+ public native boolean writeStdin(String line, boolean appendnewline);
+ public native boolean writeStdin(String line);
+ /**
+ Writes data to stdin of the process.
+ @param data Data to write.
+ @return true if successful, false otherwise
+
+ @short Writes data to stdin of the process.
+ */
+ public native boolean writeStdin(byte[] data);
+ /**
+ Closes stdin after all data has been send.
+ @short Closes stdin after all data has been send.
+ */
+ public native void closeWhenDone();
+ /**
+ Reads a line of text (up to and including '\\n').
+ Use readln() in response to a readReady() signal.
+ You may use it multiple times if more than one line of data is
+ available.
+ Be sure to use ackRead() when you have finished processing the
+ readReady() signal. This informs KProcIO that you are ready for
+ another readReady() signal.
+ readln() never blocks.
+ autoAck==true makes these functions call ackRead() for you.
+ @param line is used to store the line that was read.
+ @param autoAck when true, ackRead() is called for you.
+ @param partial when provided the line is returned
+ even if it does not contain a '\\n'. partial will be set to
+ false if the line contains a '\\n' and false otherwise.
+ @return the number of characters read, or -1 if no data is available.
+
+ @short Reads a line of text (up to and including '\\n').
+ */
+ public native int readln(StringBuffer line, boolean autoAck, boolean[] partial);
+ public native int readln(StringBuffer line, boolean autoAck);
+ public native int readln(StringBuffer line);
+ /**
+ Reset the class. Doesn't kill the process.
+ @short Reset the class.
+ */
+ public native void resetAll();
+ /**
+ Call this after you have finished processing a readReady()
+ signal. This call need not be made in the slot that was signalled
+ by readReady(). You won't receive any more readReady() signals
+ until you acknowledge with ackRead(). This prevents your slot
+ from being reentered while you are still processing the current
+ data. If this doesn't matter, then call ackRead() right away in
+ your readReady()-processing slot.
+ @short Call this after you have finished processing a readReady() signal.
+ */
+ public native void ackRead();
+ /**
+ Turns readReady() signals on and off.
+ You can turn this off at will and not worry about losing any data.
+ (as long as you turn it back on at some point...)
+ @param enable true to turn the signals on, false to turn them off
+ @short Turns readReady() signals on and off.
+ */
+ public native void enableReadSignals(boolean enable);
+ protected native void controlledEmission();
+ protected native void received(KProcess proc, String buffer, int buflen);
+ protected native void sent(KProcess arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KProcIOSignals.java b/kdejava/koala/org/kde/koala/KProcIOSignals.java
new file mode 100644
index 00000000..7ab9dfbe
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KProcIOSignals.java
@@ -0,0 +1,16 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QTextCodec;
+
+public interface KProcIOSignals {
+ /**
+ Emitted when the process is ready for reading.
+ @param pio the process that emitted the signal
+ @short Emitted when the process is ready for reading.
+ @see #enableReadSignals
+ */
+ void readReady(KProcIO pio);
+}
diff --git a/kdejava/koala/org/kde/koala/KProcess.java b/kdejava/koala/org/kde/koala/KProcess.java
new file mode 100644
index 00000000..02fa932f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KProcess.java
@@ -0,0 +1,628 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QObject;
+
+/**
+
+ Child process invocation, monitoring and control.
+ <li><b>General usage and features:</b></li>
+ This class allows a KDE application to start child processes without having
+ to worry about UNX signal handling issues and zombie process reaping.
+ Basically, this class distinguishes three different ways of running
+ child processes:
+
+ <li>
+ DontCare -- The child process is invoked and both the child
+ process and the parent process continue concurrently.
+ </li>
+ The process is started in an own session (see setsid(2)).
+
+ <li>
+ NotifyOnExit -- The child process is invoked and both the
+ child and the parent process run concurrently.
+ </li>
+ When the child process exits, the KProcess instance
+ corresponding to it emits the Qt signal processExited().
+ Since this signal is <b>not</b> emitted from within a UNX
+ signal handler, arbitrary function calls can be made.
+ Be aware: When the KProcess object gets destructed, the child
+ process will be killed if it is still running!
+ This means in particular, that it usually makes no sense to use
+ a KProcess on the stack with NotifyOnExit.
+
+ <li>
+ OwnGroup -- like NotifyOnExit, but the child process is started
+ in an own process group (and an own session, FWIW). The behavior of
+ kill() changes to killing the whole process group - this makes
+ this mode useful for implementing primitive job management. It can be
+ used to work around broken wrapper scripts that don't propagate signals
+ to the "real" program. However, use this with care, as you disturb the
+ shell's job management if your program is started from the command line.
+ </li>
+
+ <li>
+ Block -- The child process starts and the parent process
+ is suspended until the child process exits. (<b>Really</b> not recommended
+ for programs with a GUI.)
+ In this mode the parent can read the child's output, but can't send it any
+ input.
+ </li>
+ KProcess also provides several functions for determining the exit status
+ and the pid of the child process it represents.
+ Furthermore it is possible to supply command-line arguments to the process
+ in a clean fashion (no null-terminated stringlists and such...)
+ A small usage example:
+ <pre>
+ KProcess proc = new KProcess;
+ proc << "my_executable";
+ proc << "These" << "are" << "the" << "command" << "line" << "args";
+ QApplication.connect(proc, SIGNAL("processExited(KProcess )"),
+ pointer_to_my_object, SLOT("my_objects_slot(KProcess )"));
+ proc.start();
+ </pre>
+ This will start "my_executable" with the commandline arguments "These"...
+ When the child process exits, the slot will be invoked.
+ <li><b>Communication with the child process:</b></li>
+ KProcess supports communication with the child process through
+ stdin/stdout/stderr.
+ The following functions are provided for getting data from the child
+ process or sending data to the child's stdin (For more information,
+ have a look at the documentation of each function):
+
+ <li>
+ writeStdin()
+ -- Transmit data to the child process' stdin. When all data was sent, the
+ signal wroteStdin() is emitted.
+ </li>
+
+ <li>
+ When data arrives at stdout or stderr, the signal receivedStdout()
+ resp. receivedStderr() is emitted.
+ </li>
+
+ <li>
+ You can shut down individual communication channels with
+ closeStdin(), closeStdout(), and closeStderr(), resp.
+ </li>
+ See {@link KProcessSignals} for signals emitted by KProcess
+ @author Christian Czezatke e9025461@student.tuwien.ac.at
+
+ @short Child process invocation, monitoring and control.
+ @see KProcIO
+
+*/
+public class KProcess extends QObject {
+ protected KProcess(Class dummy){super((Class) null);}
+ /**
+ More or less intuitive constants for use with setPriority().
+ @short More or less intuitive constants for use with setPriority().
+ */
+ public static final int PrioLowest = 20;
+ public static final int PrioLow = 10;
+ public static final int PrioLower = 5;
+ public static final int PrioNormal = 0;
+ public static final int PrioHigher = -5;
+ public static final int PrioHigh = -10;
+ public static final int PrioHighest = -19;
+
+ /**
+ Modes in which the communication channel can be opened.
+ If communication for more than one channel is required,
+ the values have to be or'ed together, for example to get
+ communication with stdout as well as with stdin, you would
+ specify <code>Stdin</code> | <code>Stdout</code>
+ If <code>NoRead</code> is specified in conjunction with <code>Stdout</code>,
+ no data is actually read from <code>Stdout</code> but only
+ the signal receivedStdout(int fd, int &len) is emitted.
+ @short Modes in which the communication channel can be opened.
+ */
+ public static final int NoCommunication = 0;
+ public static final int Stdin = 1;
+ public static final int Stdout = 2;
+ public static final int Stderr = 4;
+ public static final int AllOutput = 6;
+ public static final int All = 7;
+ public static final int NoRead = 8;
+
+ /**
+ Run-modes for a child process.
+ @short Run-modes for a child process.
+ */
+ public static final int DontCare = 0;
+ public static final int NotifyOnExit = 1;
+ public static final int Block = 2;
+ public static final int OwnGroup = 3;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor
+ @short Constructor
+ */
+ public KProcess(QObject parent, String name) {
+ super((Class) null);
+ newKProcess(parent,name);
+ }
+ private native void newKProcess(QObject parent, String name);
+ public KProcess(QObject parent) {
+ super((Class) null);
+ newKProcess(parent);
+ }
+ private native void newKProcess(QObject parent);
+ /**
+ Constructor
+ @short Constructor
+ */
+ public KProcess() {
+ super((Class) null);
+ newKProcess();
+ }
+ private native void newKProcess();
+ /**
+ Sets the executable and the command line argument list for this process.
+ For example, doing an "ls -l /usr/local/bin" can be achieved by:
+ <pre>
+ KProcess p;
+ ...
+ p << "ls" << "-l" << "/usr/local/bin"
+ </pre>
+ @param arg the argument to add
+ @return a reference to this KProcess
+
+ @short Sets the executable and the command line argument list for this process.
+ */
+ public native KProcess op_write(String arg);
+ /**
+ Sets the executable and the command line argument list for this process,
+ in a single method call, or add a list of arguments.
+ @param args the arguments to add
+ @return a reference to this KProcess
+
+ @short Sets the executable and the command line argument list for this process, in a single method call, or add a list of arguments.
+ */
+ public native KProcess op_write(String[] args);
+ /**
+ Clear a command line argument list that has been set by using
+ operator<<.
+ @short Clear a command line argument list that has been set by using operator<<.
+ */
+ public native void clearArguments();
+ /**
+ Starts the process.
+ For a detailed description of the
+ various run modes and communication semantics, have a look at the
+ general description of the KProcess class. Note that if you use
+ setUsePty( Stdout | Stderr, \<boolean\> ), you cannot use Stdout | Stderr
+ here - instead, use Stdout only to receive the mixed output.
+ The following problems could cause this function to
+ return false:
+
+ <li>
+ The process is already running.
+ </li>
+
+ <li>
+ The command line argument list is empty.
+ </li>
+
+ <li>
+ The the <code>comm</code> parameter is incompatible with the selected pty usage.
+ </li>
+
+ <li>
+ The starting of the process failed (could not fork).
+ </li>
+
+ <li>
+ The executable was not found.
+ </li>
+ @param runmode The Run-mode for the process.
+ @param comm Specifies which communication links should be
+ established to the child process (stdin/stdout/stderr). By default,
+ no communication takes place and the respective communication
+ signals will never get emitted.
+ @return true on success, false on error
+ (see above for error conditions)
+
+ @short Starts the process.
+ */
+ public native boolean start(int runmode, int comm);
+ public native boolean start(int runmode);
+ public native boolean start();
+ /**
+ Stop the process (by sending it a signal).
+ @param signo The signal to send. The default is SIGTERM.
+ @return true if the signal was delivered successfully.
+
+ @short Stop the process (by sending it a signal).
+ */
+ public native boolean kill(int signo);
+ public native boolean kill();
+ /**
+ Checks whether the process is running.
+ @return true if the process is (still) considered to be running
+
+ @short Checks whether the process is running.
+ */
+ public native boolean isRunning();
+ /** Returns the process id of the process.
+ If it is called after
+ the process has exited, it returns the process id of the last
+ child process that was created by this instance of KProcess.
+ Calling it before any child process has been started by this
+ KProcess instance causes pid() to return 0.
+ @return the pid of the process or 0 if no process has been started yet.
+
+ @short Returns the process id of the process.
+ */
+ public native int pid();
+ /**
+ Suspend processing of data from stdout of the child process.
+ @short Suspend processing of data from stdout of the child process.
+ */
+ public native void suspend();
+ /**
+ Resume processing of data from stdout of the child process.
+ @short Resume processing of data from stdout of the child process.
+ */
+ public native void resume();
+ /**
+ Suspend execution of the current thread until the child process dies
+ or the timeout hits. This function is not recommended for programs
+ with a GUI.
+ @param timeout timeout in seconds. -1 means wait indefinitely.
+ @return true if the process exited, false if the timeout hit.
+
+ @short Suspend execution of the current thread until the child process dies or the timeout hits.
+ */
+ public native boolean waitThread(int timeout);
+ public native boolean waitThread();
+ /**
+ Checks whether the process exited cleanly.
+ @return true if the process has already finished and has exited
+ "voluntarily", ie: it has not been killed by a signal.
+
+ @short Checks whether the process exited cleanly.
+ */
+ public native boolean normalExit();
+ /**
+ Checks whether the process was killed by a signal.
+ @return true if the process has already finished and has not exited
+ "voluntarily", ie: it has been killed by a signal.
+
+ @short Checks whether the process was killed by a signal.
+ */
+ public native boolean signalled();
+ /**
+ Checks whether a killed process dumped core.
+ @return true if signalled() returns true and the process
+ dumped core. Note that on systems that don't define the
+ WCOREDUMP macro, the return value is always false.
+
+ @short Checks whether a killed process dumped core.
+ */
+ public native boolean coreDumped();
+ /**
+ Returns the exit status of the process.
+ @return the exit status of the process. Note that this value
+ is not valid if normalExit() returns false.
+
+ @short Returns the exit status of the process.
+ */
+ public native int exitStatus();
+ /**
+ Returns the signal the process was killed by.
+ @return the signal number that caused the process to exit.
+ Note that this value is not valid if signalled() returns false.
+
+ @short Returns the signal the process was killed by.
+ */
+ public native int exitSignal();
+ /**
+ Transmit data to the child process' stdin.
+ This function may return false in the following cases:
+
+ <li>
+ The process is not currently running.
+ This implies that you cannot use this function in Block mode.
+ </li>
+
+ <li>
+ Communication to stdin has not been requested in the start() call.
+ </li>
+
+ <li>
+ Transmission of data to the child process by a previous call to
+ writeStdin() is still in progress.
+ </li>
+ Please note that the data is sent to the client asynchronously,
+ so when this function returns, the data might not have been
+ processed by the child process.
+ That means that you must not free <code>buffer</code> or call writeStdin()
+ again until either a wroteStdin() signal indicates that the
+ data has been sent or a processExited() signal shows that
+ the child process is no longer alive.
+ If all the data has been sent to the client, the signal
+ wroteStdin() will be emitted.
+ @param buffer the buffer to write
+ @param buflen the length of the buffer
+ @return false if an error has occurred
+
+ @short Transmit data to the child process' stdin.
+ */
+ public native boolean writeStdin(String buffer, int buflen);
+ /**
+ Shuts down the Stdin communication link. If no pty is used, this
+ causes "EOF" to be indicated on the child's stdin file descriptor.
+ @return false if no Stdin communication link exists (any more).
+
+ @short Shuts down the Stdin communication link.
+ */
+ public native boolean closeStdin();
+ /**
+ Shuts down the Stdout communication link. If no pty is used, any further
+ attempts by the child to write to its stdout file descriptor will cause
+ it to receive a SIGPIPE.
+ @return false if no Stdout communication link exists (any more).
+
+ @short Shuts down the Stdout communication link.
+ */
+ public native boolean closeStdout();
+ /**
+ Shuts down the Stderr communication link. If no pty is used, any further
+ attempts by the child to write to its stderr file descriptor will cause
+ it to receive a SIGPIPE.
+ @return false if no Stderr communication link exists (any more).
+
+ @short Shuts down the Stderr communication link.
+ */
+ public native boolean closeStderr();
+ /**
+ Deletes the optional utmp entry and closes the pty.
+ Make sure to shut down any communication links that are using the pty
+ before calling this function.
+ @return false if the pty is not open (any more).
+
+ @short Deletes the optional utmp entry and closes the pty.
+ */
+ public native boolean closePty();
+ /**
+ @brief Close stdin, stdout, stderr and the pty
+ This is the same that calling all close functions in a row:
+ @short @brief Close stdin, stdout, stderr and the pty
+ @see #closeStdin
+ @see @see
+ @see #closeStdout
+ @see @see
+ @see #closeStderr
+ @see @see
+ @see #closePty
+ */
+ public native void closeAll();
+ /**
+ Lets you see what your arguments are for debugging.
+ @return the list of arguments
+
+ @short Lets you see what your arguments are for debugging.
+ */
+ // const QValueList<QCString>& args(); >>>> NOT CONVERTED
+ /**
+ Controls whether the started process should drop any
+ setuid/setgid privileges or whether it should keep them.
+ Note that this function is mostly a dummy, as the KDE libraries
+ currently refuse to run with setuid/setgid privileges.
+ The default is false: drop privileges
+ @param keepPrivileges true to keep the privileges
+ @short Controls whether the started process should drop any setuid/setgid privileges or whether it should keep them.
+ */
+ public native void setRunPrivileged(boolean keepPrivileges);
+ /**
+ Returns whether the started process will drop any
+ setuid/setgid privileges or whether it will keep them.
+ @return true if the process runs privileged
+
+ @short Returns whether the started process will drop any setuid/setgid privileges or whether it will keep them.
+ */
+ public native boolean runPrivileged();
+ /**
+ Adds the variable <code>name</code> to the process' environment.
+ This function must be called before starting the process.
+ @param name the name of the environment variable
+ @param value the new value for the environment variable
+ @short Adds the variable <code>name</code> to the process' environment.
+ */
+ public native void setEnvironment(String name, String value);
+ /**
+ Changes the current working directory (CWD) of the process
+ to be started.
+ This function must be called before starting the process.
+ @param dir the new directory
+ @short Changes the current working directory (CWD) of the process to be started.
+ */
+ public native void setWorkingDirectory(String dir);
+ /**
+ Specify whether to start the command via a shell or directly.
+ The default is to start the command directly.
+ If <code>useShell</code> is true <code>shell</code> will be used as shell, or
+ if shell is empty, /bin/sh will be used.
+ When using a shell, the caller should make sure that all filenames etc.
+ are properly quoted when passed as argument.
+ @param useShell true if the command should be started via a shell
+ @param shell the path to the shell that will execute the process, or
+ 0 to use /bin/sh. Use getenv("SHELL") to use the user's
+ default shell, but note that doing so is usually a bad idea
+ for shell compatibility reasons.
+ @short Specify whether to start the command via a shell or directly.
+ @see #quote
+ */
+ public native void setUseShell(boolean useShell, String shell);
+ public native void setUseShell(boolean useShell);
+ /**
+ Detaches KProcess from child process. All communication is closed.
+ No exit notification is emitted any more for the child process.
+ Deleting the KProcess will no longer kill the child process.
+ Note that the current process remains the parent process of the
+ child process.
+ @short Detaches KProcess from child process.
+ */
+ public native void detach();
+ /**
+ Sets the scheduling priority of the process.
+ @param prio the new priority in the range -20 (high) to 19 (low).
+ @return false on error; see setpriority(2) for possible reasons.
+
+ @short Sets the scheduling priority of the process.
+ */
+ public native boolean setPriority(int prio);
+ /**
+ This function can be used to quote an argument string such that
+ the shell processes it properly. This is e. g. necessary for
+ user-provided file names which may contain spaces or quotes.
+ It also prevents expansion of wild cards and environment variables.
+ @param arg the argument to quote
+ @return the quoted argument
+
+ @short This function can be used to quote an argument string such that the shell processes it properly.
+ */
+ public static native String quote(String arg);
+ /**
+ Sets up the environment according to the data passed via
+ setEnvironment()
+ @short Sets up the environment according to the data passed via setEnvironment()
+ */
+ protected native void setupEnvironment();
+ /**
+ This function is called from start() right before a fork() takes
+ place. According to the <code>comm</code> parameter this function has to initialize
+ the in, out and err data members of KProcess.
+ This function should return 1 if setting the needed communication channels
+ was successful.
+ The default implementation is to create UNIX STREAM sockets for the
+ communication, but you could reimplement this function to establish a
+ TCP/IP communication for network communication, for example.
+ @short This function is called from start() right before a fork() takes place.
+ */
+ protected native int setupCommunication(int comm);
+ /**
+ Called right after a (successful) fork() on the parent side. This function
+ will usually do some communications cleanup, like closing in[0],
+ out[1] and out[1].
+ Furthermore, it must also create the QSocketNotifiers innot,
+ outnot and errnot and connect their Qt signals to the respective
+ KProcess slots.
+ For a more detailed explanation, it is best to have a look at the default
+ implementation in kprocess.cpp.
+ @short Called right after a (successful) fork() on the parent side.
+ */
+ protected native int commSetupDoneP();
+ /**
+ Called right after a (successful) fork(), but before an exec() on the child
+ process' side. It usually duplicates the in[0], out[1] and
+ err[1] file handles to the respective standard I/O handles.
+ @short Called right after a (successful) fork(), but before an exec() on the child process' side.
+ */
+ protected native int commSetupDoneC();
+ /**
+ Immediately called after a successfully started process in NotifyOnExit
+ mode has exited. This function normally calls commClose()
+ and emits the processExited() signal.
+ @param state the exit code of the process as returned by waitpid()
+ @short Immediately called after a successfully started process in NotifyOnExit mode has exited.
+ */
+ protected native void processHasExited(int state);
+ /**
+ Cleans up the communication links to the child after it has exited.
+ This function should act upon the values of pid() and runs.
+ See the kprocess.cpp source for details.
+
+ <li>
+ If pid() returns zero, the communication links should be closed
+ only.
+ </li>
+
+ <li>
+ if pid() returns non-zero and runs is false, all data
+ immediately available from the communication links should be processed
+ before closing them.
+ </li>
+
+ <li>
+ if pid() returns non-zero and runs is true, the communication
+ links should be monitored for data until the file handle returned by
+ KProcessController.theKProcessController.notifierFd() becomes ready
+ for reading - when it triggers, runs should be reset to false, and
+ the function should be immediately left without closing anything.
+ </li>
+ The previous semantics of this function are forward-compatible, but should
+ be avoided, as they are prone to race conditions and can cause KProcess
+ (and thus the whole program) to lock up under certain circumstances. At the
+ end the function closes the communication links in any case. Additionally
+
+ <li>
+ if runs is true, the communication links are monitored for data
+ until all of them have returned EOF. Note that if any system function is
+ interrupted (errno == EINTR) the polling loop should be aborted.
+ </li>
+
+ <li>
+ if runs is false, all data immediately available from the
+ communication links is processed.
+
+ </li> @short Cleans up the communication links to the child after it has exited.
+ */
+ protected native void commClose();
+ /**
+ Specify the actual executable that should be started (first argument to execve)
+ Normally the the first argument is the executable but you can
+ override that with this function.
+ @short Specify the actual executable that should be started (first argument to execve) Normally the the first argument is the executable but you can override that with this function.
+ */
+ protected native void setBinaryExecutable(String filename);
+ /**
+ Called by slotChildOutput() this function copies data arriving from
+ the child process' stdout to the respective buffer and emits the signal
+ receivedStdout().
+ @short Called by slotChildOutput() this function copies data arriving from the child process' stdout to the respective buffer and emits the signal receivedStdout().
+ */
+ protected native int childOutput(int fdno);
+ /**
+ Called by slotChildError() this function copies data arriving from
+ the child process' stderr to the respective buffer and emits the signal
+ receivedStderr().
+ @short Called by slotChildError() this function copies data arriving from the child process' stderr to the respective buffer and emits the signal receivedStderr().
+ */
+ protected native int childError(int fdno);
+ /**
+ This slot gets activated when data from the child's stdout arrives.
+ It usually calls childOutput().
+ @param fdno the file descriptor for the output
+ @short This slot gets activated when data from the child's stdout arrives.
+ */
+ protected native void slotChildOutput(int fdno);
+ /**
+ This slot gets activated when data from the child's stderr arrives.
+ It usually calls childError().
+ @param fdno the file descriptor for the output
+ @short This slot gets activated when data from the child's stderr arrives.
+ */
+ protected native void slotChildError(int fdno);
+ /**
+ Called when another bulk of data can be sent to the child's
+ stdin. If there is no more data to be sent to stdin currently
+ available, this function must disable the QSocketNotifier innot.
+ @param dummy ignore this argument
+ @short Called when another bulk of data can be sent to the child's stdin.
+ */
+ protected native void slotSendData(int dummy);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KProcessController.java b/kdejava/koala/org/kde/koala/KProcessController.java
new file mode 100644
index 00000000..37a1d515
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KProcessController.java
@@ -0,0 +1,79 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+/**
+
+ A class for internal use by KProcess only. -- Exactly one instance
+ of this class is created by KApplication.
+ This class takes care of the actual (UNX) signal handling.
+ @author Christian Czezatke <e9025461@student.tuwien.ac.at>
+
+ @short Used internally by KProcess.
+
+*/
+public class KProcessController extends QObject {
+ protected KProcessController(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Wait for any process to exit and handle their exit without
+ starting an event loop.
+ This function may cause KProcess to emit any of its signals.
+ @param timeout the timeout in seconds. -1 means no timeout.
+ @return true if a process exited, false
+ if no process exited within <code>timeout</code> seconds.
+
+ @short Wait for any process to exit and handle their exit without starting an event loop.
+ */
+ public native boolean waitForProcessExit(int timeout);
+ /**
+ Call this function to defer processing of the data that became available
+ on notifierFd().
+ @short Call this function to defer processing of the data that became available on notifierFd().
+ */
+ public native void unscheduleCheck();
+ /**
+ This function <b>must</b> be called at some point after calling
+ unscheduleCheck().
+ @short This function @em must be called at some point after calling unscheduleCheck().
+ */
+ public native void rescheduleCheck();
+ public native int notifierFd();
+ /**
+ @short
+ */
+ public native void addKProcess(KProcess arg1);
+ /**
+ @short
+ */
+ public native void removeKProcess(KProcess arg1);
+ /**
+ @short
+ */
+ public native void addProcess(int pid);
+ /**
+ Create an instance if none exists yet.
+ Called by KApplication.KApplication()
+ @short Create an instance if none exists yet.
+ */
+ public static native void ref();
+ /**
+ Destroy the instance if one exists and it is not referenced any more.
+ Called by KApplication.~KApplication()
+ @short Destroy the instance if one exists and it is not referenced any more.
+ */
+ public static native void deref();
+ /**
+ Automatically called upon SIGCHLD. Never call it directly.
+ If your application (or some library it uses) redirects SIGCHLD,
+ the new signal handler (and only it) should call the old handler
+ returned by sigaction().
+ @short Automatically called upon SIGCHLD.
+ */
+ public static native void theSigCHLDHandler(int signal);
+}
diff --git a/kdejava/koala/org/kde/koala/KProcessRunner.java b/kdejava/koala/org/kde/koala/KProcessRunner.java
new file mode 100644
index 00000000..5c096542
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KProcessRunner.java
@@ -0,0 +1,23 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+/**
+
+ This class watches a process launched by KRun.
+ It sends a notification when the process exits (for the taskbar)
+ and it will show an error message if necessary (e.g. "program not found").
+ @short
+
+*/
+public class KProcessRunner extends QObject {
+ protected KProcessRunner(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public native int pid();
+ public static native int run(KProcess arg1, String binName);
+}
diff --git a/kdejava/koala/org/kde/koala/KProcessSignals.java b/kdejava/koala/org/kde/koala/KProcessSignals.java
new file mode 100644
index 00000000..b7405ea2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KProcessSignals.java
@@ -0,0 +1,72 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+public interface KProcessSignals {
+ /**
+ Emitted after the process has terminated when
+ the process was run in the <code>NotifyOnExit</code> (==default option to
+ start() ) or the Block mode.
+ @param proc a pointer to the process that has exited
+ @short Emitted after the process has terminated when the process was run in the <code>NotifyOnExit</code> (==default option to start() ) or the Block mode.
+ */
+ void processExited(KProcess proc);
+ /**
+ Emitted, when output from the child process has
+ been received on stdout.
+ To actually get this signal, the Stdout communication link
+ has to be turned on in start().
+ @param proc a pointer to the process that has received the output
+ @param buffer The data received.
+ @param buflen The number of bytes that are available.
+ You should copy the information contained in <code>buffer</code> to your private
+ data structures before returning from the slot.
+ Example:
+ <pre>
+ String myBuf = String.fromLatin1(buffer, buflen);
+ </pre>
+ @short Emitted, when output from the child process has been received on stdout.
+ */
+ void receivedStdout(KProcess proc, String buffer, int buflen);
+ /**
+ Emitted when output from the child process has
+ been received on stdout.
+ To actually get this signal, the Stdout communication link
+ has to be turned on in start() and the
+ NoRead flag must have been passed.
+ You will need to explicitly call resume() after your call to start()
+ to begin processing data from the child process' stdout. This is
+ to ensure that this signal is not emitted when no one is connected
+ to it, otherwise this signal will not be emitted.
+ The data still has to be read from file descriptor <code>fd.</code>
+ @param fd the file descriptor that provides the data
+ @param len the number of bytes that have been read from <code>fd</code> must
+ be written here
+ @short Emitted when output from the child process has been received on stdout.
+ */
+ void receivedStdout(int fd, int[] len);
+ /**
+ Emitted, when output from the child process has
+ been received on stderr.
+ To actually get this signal, the Stderr communication link
+ has to be turned on in start().
+ You should copy the information contained in <code>buffer</code> to your private
+ data structures before returning from the slot.
+ @param proc a pointer to the process that has received the data
+ @param buffer The data received.
+ @param buflen The number of bytes that are available.
+ @short Emitted, when output from the child process has been received on stderr.
+ */
+ void receivedStderr(KProcess proc, String buffer, int buflen);
+ /**
+ Emitted after all the data that has been
+ specified by a prior call to writeStdin() has actually been
+ written to the child process.
+ @param proc a pointer to the process
+ @short Emitted after all the data that has been specified by a prior call to writeStdin() has actually been written to the child process.
+ */
+ void wroteStdin(KProcess proc);
+}
diff --git a/kdejava/koala/org/kde/koala/KProgress.java b/kdejava/koala/org/kde/koala/KProgress.java
new file mode 100644
index 00000000..514e0fe2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KProgress.java
@@ -0,0 +1,134 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QProgressBar;
+
+/**
+
+ KProgress is derived from QProgressBar, so
+ you can use all the methods from that class. The only real difference
+ is that a signal is emitted on changes to the value and you do not need
+ to subclass KProgress just to change the format of the indicator text.
+ <li><b>Details </b></li>
+ \image html kprogress.png "KDE Progress Widget"
+ See {@link KProgressSignals} for signals emitted by KProgress
+ @author Aaron Seigo
+
+ @short A progress indicator widget.
+
+*/
+public class KProgress extends QProgressBar {
+ protected KProgress(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a progress bar.
+ @short Construct a progress bar.
+ */
+ public KProgress(QWidget parent, String name, int f) {
+ super((Class) null);
+ newKProgress(parent,name,f);
+ }
+ private native void newKProgress(QWidget parent, String name, int f);
+ public KProgress(QWidget parent, String name) {
+ super((Class) null);
+ newKProgress(parent,name);
+ }
+ private native void newKProgress(QWidget parent, String name);
+ public KProgress(QWidget parent) {
+ super((Class) null);
+ newKProgress(parent);
+ }
+ private native void newKProgress(QWidget parent);
+ public KProgress() {
+ super((Class) null);
+ newKProgress();
+ }
+ private native void newKProgress();
+ /**
+ Construct a progress bar with a total number of steps.
+ The totalSteps is the total number of steps that need to be completed for the operation which this progress
+ bar represents. For example, if the operation is to examine 50 files, this value would be 50. Before examining
+ the first file, call setProgress(0); call setProgress(50) after examining the last file.
+ @short Construct a progress bar with a total number of steps.
+ */
+ public KProgress(int totalSteps, QWidget parent, String name, int f) {
+ super((Class) null);
+ newKProgress(totalSteps,parent,name,f);
+ }
+ private native void newKProgress(int totalSteps, QWidget parent, String name, int f);
+ public KProgress(int totalSteps, QWidget parent, String name) {
+ super((Class) null);
+ newKProgress(totalSteps,parent,name);
+ }
+ private native void newKProgress(int totalSteps, QWidget parent, String name);
+ public KProgress(int totalSteps, QWidget parent) {
+ super((Class) null);
+ newKProgress(totalSteps,parent);
+ }
+ private native void newKProgress(int totalSteps, QWidget parent);
+ public KProgress(int totalSteps) {
+ super((Class) null);
+ newKProgress(totalSteps);
+ }
+ private native void newKProgress(int totalSteps);
+ /**
+ If this is set to <code>true</code>, the progress text will be displayed.
+ @short If this is set to <code>true</code>, the progress text will be displayed.
+ */
+ public native void setTextEnabled(boolean arg1);
+ /**
+ Returns <code>true</code> if progress text will be displayed,
+ <code>false</code> otherwise.
+ @short Returns <code>true</code> if progress text will be displayed, <code>false</code> otherwise.
+ @see #setFormat
+ */
+ public native boolean textEnabled();
+ /**
+ Retrieve the current format for printing status text.
+ @short Retrieve the current format for printing status text.
+ @see #setFormat
+ */
+ public native String format();
+ /**
+ Set the format of the text to use to display status.
+ The default format is "%p%" (which looks like "42%".)
+ Note: Setting the format to anything other then "%p%" will force centerIndicator to true,
+ since it's often impossible to layout a progressbar with a more general format with the
+ indicator string anywhere else.
+ @param format "%p" is replaced by percentage done, "%v" is replaced by actual
+ value, "%m" is replaced by the maximum value.
+ @short Set the format of the text to use to display status.
+ */
+ public native void setFormat(String format);
+ /**
+ Set the current total number of steps in the action tat the progress bar
+ is representing.
+ @short Set the current total number of steps in the action tat the progress bar is representing.
+ */
+ public native void setTotalSteps(int totalSteps);
+ /**
+ Set the current value of the progress bar to <code>progress.</code>
+ @short Set the current value of the progress bar to <code>progress.</code>
+ */
+ public native void setProgress(int progress);
+ /**
+ Advance the progress bar by <code>offset.</code>
+ This method is
+ provided for convenience and is equivalent with
+ setProgress(progress()+offset).
+ @short Advance the progress bar by <code>offset.</code>
+ */
+ public native void advance(int offset);
+ protected native boolean setIndicator(StringBuffer indicator, int progress, int totalSteps);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KProgressDialog.java b/kdejava/koala/org/kde/koala/KProgressDialog.java
new file mode 100644
index 00000000..5970c131
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KProgressDialog.java
@@ -0,0 +1,170 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ KProgressDialog provides a dialog with a text label, a progress bar
+ and an optional cancel button with a KDE look 'n feel.
+ Since knowing how long it can take to complete an action and it is
+ undesirable to show a dialog for a split second before hiding it,
+ there are a few ways to control the timing behavior of KProgressDialog.
+ There is a time out that can be set before showing the dialog as well
+ as an option to autohide or keep displaying the dialog once complete.
+ All the functionality of KProgress is available through direct access
+ to the progress bar widget via progressBar();
+ @author Aaron J. Seigo
+
+ @short A dialog with a progress bar.
+
+*/
+public class KProgressDialog extends KDialogBase {
+ protected KProgressDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KProgressDialog
+ @param parent Parent of the widget
+ @param name Widget name
+ @param caption Text to display in window title bar
+ @param text Text to display in the dialog
+ @param modal Set to true to make the dialog modal
+ @short Constructs a KProgressDialog
+ */
+ public KProgressDialog(QWidget parent, String name, String caption, String text, boolean modal) {
+ super((Class) null);
+ newKProgressDialog(parent,name,caption,text,modal);
+ }
+ private native void newKProgressDialog(QWidget parent, String name, String caption, String text, boolean modal);
+ public KProgressDialog(QWidget parent, String name, String caption, String text) {
+ super((Class) null);
+ newKProgressDialog(parent,name,caption,text);
+ }
+ private native void newKProgressDialog(QWidget parent, String name, String caption, String text);
+ public KProgressDialog(QWidget parent, String name, String caption) {
+ super((Class) null);
+ newKProgressDialog(parent,name,caption);
+ }
+ private native void newKProgressDialog(QWidget parent, String name, String caption);
+ public KProgressDialog(QWidget parent, String name) {
+ super((Class) null);
+ newKProgressDialog(parent,name);
+ }
+ private native void newKProgressDialog(QWidget parent, String name);
+ public KProgressDialog(QWidget parent) {
+ super((Class) null);
+ newKProgressDialog(parent);
+ }
+ private native void newKProgressDialog(QWidget parent);
+ public KProgressDialog() {
+ super((Class) null);
+ newKProgressDialog();
+ }
+ private native void newKProgressDialog();
+ /**
+ Returns the KProgress used in this dialog.
+ To set the number of steps or other progress bar related
+ settings, access the KProgress object directly via this method.
+ @short Returns the KProgress used in this dialog.
+ */
+ public native KProgress progressBar();
+ /**
+ Sets the text in the dialog
+ @param text the text to display
+ @short Sets the text in the dialog
+ */
+ public native void setLabel(String text);
+ /**
+ Returns the current dialog text
+ @short Returns the current dialog text
+ */
+ public native String labelText();
+ /**
+ Sets whether or not the user can cancel the process.
+ If the dialog is cancellable, the Cancel button will be shown
+ and the user can close the window using the window decorations.
+ If the process is not (or should not be) interuptable,
+ set the dialog to be modal and not cancellable.
+ @param allowCancel Set to true to make the dialog non-closable
+ @short Sets whether or not the user can cancel the process.
+ */
+ public native void setAllowCancel(boolean allowCancel);
+ /**
+ Returns true if the dialog can be canceled, false otherwise
+ @short Returns true if the dialog can be canceled, false otherwise
+ */
+ public native boolean allowCancel();
+ /**
+ Sets whether the cancel button is visible. setAllowCancel(false)
+ implies showCancelButton(false)
+ @param show Whether or not the cancel button should be shown
+ @short Sets whether the cancel button is visible.
+ */
+ public native void showCancelButton(boolean show);
+ /**
+ Sets whether the dialog should close automagically when
+ all the steps in the KProgress have been completed.
+ @short Sets whether the dialog should close automagically when all the steps in the KProgress have been completed.
+ */
+ public native void setAutoClose(boolean close);
+ /**
+ Returns true if the dialog will close upon completion,
+ or false otherwise
+ @short Returns true if the dialog will close upon completion, or false otherwise
+ */
+ public native boolean autoClose();
+ /**
+ Sets whether the dialog should reset the KProgress dialog
+ back to 0 steps compelete when all steps have been completed.
+ This is useful for KProgressDialogs that will be reused.
+ @short Sets whether the dialog should reset the KProgress dialog back to 0 steps compelete when all steps have been completed.
+ */
+ public native void setAutoReset(boolean autoReset);
+ /**
+ Returns true if the KProgress widget will be reset
+ upon completion, or false otherwise
+ @short Returns true if the KProgress widget will be reset upon completion, or false otherwise
+ */
+ public native boolean autoReset();
+ /**
+ Returns true if the dialog was closed or canceled
+ before completion. If the dialog is not cancellable
+ it will always return false.
+ @short Returns true if the dialog was closed or canceled before completion.
+ */
+ public native boolean wasCancelled();
+ /**
+ Sets the text to appear on the cancel button.
+ @short Sets the text to appear on the cancel button.
+ */
+ public native void setButtonText(String arg1);
+ /**
+ Returns the text on the cancel button
+ @short Returns the text on the cancel button
+ */
+ public native String buttonText();
+ /**
+ Set the minimum number of milliseconds to wait before
+ actually showing the dialog
+ @short Set the minimum number of milliseconds to wait before actually showing the dialog
+ */
+ public native void setMinimumDuration(int ms);
+ /**
+ Returns the wait duration in milliseconds
+ @short Returns the wait duration in milliseconds
+ */
+ public native int minimumDuration();
+ protected native void slotAutoShow();
+ protected native void slotAutoActions(int percentage);
+ protected native void slotCancel();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KProgressSignals.java b/kdejava/koala/org/kde/koala/KProgressSignals.java
new file mode 100644
index 00000000..794622ce
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KProgressSignals.java
@@ -0,0 +1,14 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KProgressSignals {
+ /**
+ Emitted when the state of the progress bar changes.
+ @short Emitted when the state of the progress bar changes.
+ */
+ void percentageChanged(int arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KProtocolInfo.java b/kdejava/koala/org/kde/koala/KProtocolInfo.java
new file mode 100644
index 00000000..9dbf1ca5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KProtocolInfo.java
@@ -0,0 +1,521 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+import java.util.ArrayList;
+
+/**
+
+ Information about I/O (Internet, etc.) protocols supported by KDE.
+ This class is useful if you want to know which protocols
+ KDE supports. In addition you can find out lots of information
+ about a certain protocol. A KProtocolInfo instance represents a
+ single protocol. Most of the functionality is provided by the static
+ methods that scan the .protocol files of all installed kioslaves to get
+ this information.
+ .protocol files are installed in the "services" resource.
+ @author Torben Weis <weis@kde.org>
+
+ @short Information about I/O (Internet, etc.
+
+*/
+public class KProtocolInfo extends KSycocaEntry {
+ protected KProtocolInfo(Class dummy){super((Class) null);}
+ /**
+ Describes the type of a protocol.
+ @short Describes the type of a protocol.
+ */
+ public static final int T_STREAM = 0;
+ public static final int T_FILESYSTEM = 1;
+ public static final int T_NONE = 2;
+ public static final int T_ERROR = 3;
+
+ /**
+ Read a protocol description file
+ @param path the path of the description file
+ @short Read a protocol description file
+ */
+ public KProtocolInfo(String path) {
+ super((Class) null);
+ newKProtocolInfo(path);
+ }
+ private native void newKProtocolInfo(String path);
+ /**
+ Returns whether the protocol description file is valid.
+ @return true if valid, false otherwise
+
+ @short Returns whether the protocol description file is valid.
+ */
+ public native boolean isValid();
+ /**
+ Returns the name of the protocol.
+ This corresponds to the "protocol=" field in the protocol description file.
+ @return the name of the protocol
+
+ @short Returns the name of the protocol.
+ @see KURL#protocol
+ */
+ public native String name();
+ /**
+ @short
+ */
+ public KProtocolInfo(QDataStream _str, int offset) {
+ super((Class) null);
+ newKProtocolInfo(_str,offset);
+ }
+ private native void newKProtocolInfo(QDataStream _str, int offset);
+ /**
+ Load the protocol info from a stream.
+ @short
+ */
+ public native void load(QDataStream arg1);
+ /**
+ Save the protocol info to a stream.
+ @short
+ */
+ public native void save(QDataStream arg1);
+ /**
+ Returns list of all known protocols.
+ @return a list of all known protocols
+
+ @short Returns list of all known protocols.
+ */
+ public static native ArrayList protocols();
+ /**
+ Returns whether a protocol is installed that is able to handle <code>url.</code>
+ @param url the url to check
+ @return true if the protocol is known
+
+ @short Returns whether a protocol is installed that is able to handle <code>url.</code>
+ @see #name
+ */
+ public static native boolean isKnownProtocol(KURL url);
+ /**
+ Same as above except you can supply just the protocol instead of
+ the whole URL.
+ @short Same as above except you can supply just the protocol instead of the whole URL.
+ */
+ public static native boolean isKnownProtocol(String protocol);
+ /**
+ Returns the library / executable to open for the protocol <code>protocol</code>
+ Example : "kio_ftp", meaning either the executable "kio_ftp" or
+ the library "kio_ftp.la" (recommended), whichever is available.
+ This corresponds to the "exec=" field in the protocol description file.
+ @param protocol the protocol to check
+ @return the executable of library to open, or null for
+ unsupported protocols
+
+ @short Returns the library / executable to open for the protocol <code>protocol</code> Example : "kio_ftp", meaning either the executable "kio_ftp" or the library "kio_ftp.
+ @see KURL#protocol
+ */
+ public static native String exec(String protocol);
+ /**
+ Returns whether the protocol should be treated as a filesystem
+ or as a stream when reading from it.
+ This corresponds to the "input=" field in the protocol description file.
+ Valid values for this field are "filesystem", "stream" or "none" (default).
+ @param url the url to check
+ @return the input type of the given <code>url</code>
+
+ @short Returns whether the protocol should be treated as a filesystem or as a stream when reading from it.
+ */
+ public static native int inputType(KURL url);
+ /**
+ Returns whether the protocol should be treated as a filesystem
+ or as a stream when writing to it.
+ This corresponds to the "output=" field in the protocol description file.
+ Valid values for this field are "filesystem", "stream" or "none" (default).
+ @param url the url to check
+ @return the output type of the given <code>url</code>
+
+ @short Returns whether the protocol should be treated as a filesystem or as a stream when writing to it.
+ */
+ public static native int outputType(KURL url);
+ /**
+ Returns the list of fields this protocol returns when listing
+ The current possibilities are
+ Name, Type, Size, Date, AccessDate, Access, Owner, Group, Link, URL, MimeType
+ as well as Extra1, Extra2 etc. for extra fields (see extraFields).
+ This corresponds to the "listing=" field in the protocol description file.
+ The supported fields should be separated with ',' in the protocol description file.
+ @param url the url to check
+ @return a list of field names
+
+ @short Returns the list of fields this protocol returns when listing The current possibilities are Name, Type, Size, Date, AccessDate, Access, Owner, Group, Link, URL, MimeType as well as Extra1, Extra2 etc.
+ */
+ public static native ArrayList listing(KURL url);
+ /**
+ Definition of extra fields in the UDS entries, returned by a listDir operation.
+ This corresponds to the "ExtraNames=" and "ExtraTypes=" fields in the protocol description file.
+ Those two lists should be separated with ',' in the protocol description file.
+ See ExtraField for details about names and types
+ @short Definition of extra fields in the UDS entries, returned by a listDir operation.
+ */
+ // KProtocolInfo::ExtraFieldList extraFields(const KURL& arg1); >>>> NOT CONVERTED
+ /**
+ Returns whether the protocol can act as a source protocol.
+ A source protocol retrieves data from or stores data to the
+ location specified by a URL.
+ A source protocol is the opposite of a filter protocol.
+ The "source=" field in the protocol description file determines
+ whether a protocol is a source protocol or a filter protocol.
+ @param url the url to check
+ @return true if the protocol is a source of data (e.g. http), false if the
+ protocol is a filter (e.g. gzip)
+
+ @short Returns whether the protocol can act as a source protocol.
+ */
+ public static native boolean isSourceProtocol(KURL url);
+ /**
+ Returns whether the protocol can act as a helper protocol.
+ A helper protocol invokes an external application and does not return
+ a file or stream.
+ This corresponds to the "helper=" field in the protocol description file.
+ Valid values for this field are "true" or "false" (default).
+ @param url the url to check
+ @return true if the protocol is a helper protocol (e.g. vnc), false
+ if not (e.g. http)
+
+ @short Returns whether the protocol can act as a helper protocol.
+ */
+ public static native boolean isHelperProtocol(KURL url);
+ /**
+ Same as above except you can supply just the protocol instead of
+ the whole URL.
+ @short Same as above except you can supply just the protocol instead of the whole URL.
+ */
+ public static native boolean isHelperProtocol(String protocol);
+ /**
+ Returns whether the protocol can act as a filter protocol.
+ A filter protocol can operate on data that is passed to it
+ but does not retrieve/store data itself, like gzip.
+ A filter protocol is the opposite of a source protocol.
+ The "source=" field in the protocol description file determines
+ whether a protocol is a source protocol or a filter protocol.
+ Valid values for this field are "true" (default) for source protocol or
+ "false" for filter protocol.
+ @param url the url to check
+ @return true if the protocol is a filter (e.g. gzip), false if the
+ protocol is a helper or source
+
+ @short Returns whether the protocol can act as a filter protocol.
+ */
+ public static native boolean isFilterProtocol(KURL url);
+ /**
+ Same as above except you can supply just the protocol instead of
+ the whole URL.
+ @short Same as above except you can supply just the protocol instead of the whole URL.
+ */
+ public static native boolean isFilterProtocol(String protocol);
+ /**
+ Returns whether the protocol can list files/objects.
+ If a protocol supports listing it can be browsed in e.g. file-dialogs
+ and konqueror.
+ Whether a protocol supports listing is determined by the "listing="
+ field in the protocol description file.
+ If the protocol support listing it should list the fields it provides in
+ this field. If the protocol does not support listing this field should
+ remain empty (default.)
+ @param url the url to check
+ @return true if the protocol support listing
+
+ @short Returns whether the protocol can list files/objects.
+ @see #listing
+ */
+ public static native boolean supportsListing(KURL url);
+ /**
+ Returns whether the protocol can retrieve data from URLs.
+ This corresponds to the "reading=" field in the protocol description file.
+ Valid values for this field are "true" or "false" (default).
+ @param url the url to check
+ @return true if it is possible to read from the URL
+
+ @short Returns whether the protocol can retrieve data from URLs.
+ */
+ public static native boolean supportsReading(KURL url);
+ /**
+ Returns whether the protocol can store data to URLs.
+ This corresponds to the "writing=" field in the protocol description file.
+ Valid values for this field are "true" or "false" (default).
+ @param url the url to check
+ @return true if the protocol supports writing
+
+ @short Returns whether the protocol can store data to URLs.
+ */
+ public static native boolean supportsWriting(KURL url);
+ /**
+ Returns whether the protocol can create directories/folders.
+ This corresponds to the "makedir=" field in the protocol description file.
+ Valid values for this field are "true" or "false" (default).
+ @param url the url to check
+ @return true if the protocol can create directories
+
+ @short Returns whether the protocol can create directories/folders.
+ */
+ public static native boolean supportsMakeDir(KURL url);
+ /**
+ Returns whether the protocol can delete files/objects.
+ This corresponds to the "deleting=" field in the protocol description file.
+ Valid values for this field are "true" or "false" (default).
+ @param url the url to check
+ @return true if the protocol supports deleting
+
+ @short Returns whether the protocol can delete files/objects.
+ */
+ public static native boolean supportsDeleting(KURL url);
+ /**
+ Returns whether the protocol can create links between files/objects.
+ This corresponds to the "linking=" field in the protocol description file.
+ Valid values for this field are "true" or "false" (default).
+ @param url the url to check
+ @return true if the protocol supports linking
+
+ @short Returns whether the protocol can create links between files/objects.
+ */
+ public static native boolean supportsLinking(KURL url);
+ /**
+ Returns whether the protocol can move files/objects between different
+ locations.
+ This corresponds to the "moving=" field in the protocol description file.
+ Valid values for this field are "true" or "false" (default).
+ @param url the url to check
+ @return true if the protocol supports moving
+
+ @short Returns whether the protocol can move files/objects between different locations.
+ */
+ public static native boolean supportsMoving(KURL url);
+ /**
+ Returns whether the protocol can copy files/objects directly from the
+ filesystem itself. If not, the application will read files from the
+ filesystem using the file-protocol and pass the data on to the destination
+ protocol.
+ This corresponds to the "copyFromFile=" field in the protocol description file.
+ Valid values for this field are "true" or "false" (default).
+ @param url the url to check
+ @return true if the protocol can copy files from the local file system
+
+ @short Returns whether the protocol can copy files/objects directly from the filesystem itself.
+ */
+ public static native boolean canCopyFromFile(KURL url);
+ /**
+ Returns whether the protocol can copy files/objects directly to the
+ filesystem itself. If not, the application will receive the data from
+ the source protocol and store it in the filesystem using the
+ file-protocol.
+ This corresponds to the "copyToFile=" field in the protocol description file.
+ Valid values for this field are "true" or "false" (default).
+ @param url the url to check
+ @return true if the protocol can copy files to the local file system
+
+ @short Returns whether the protocol can copy files/objects directly to the filesystem itself.
+ */
+ public static native boolean canCopyToFile(KURL url);
+ /**
+ Returns whether the protocol can rename (i.e. move fast) files/objects
+ directly from the filesystem itself. If not, the application will read
+ files from the filesystem using the file-protocol and pass the data on
+ to the destination protocol.
+ This corresponds to the "renameFromFile=" field in the protocol description file.
+ Valid values for this field are "true" or "false" (default).
+ @param url the url to check
+ @return true if the protocol can rename/move files from the local file system
+
+ @short Returns whether the protocol can rename (i.
+ */
+ public static native boolean canRenameFromFile(KURL url);
+ /**
+ Returns whether the protocol can rename (i.e. move fast) files/objects
+ directly to the filesystem itself. If not, the application will receive
+ the data from the source protocol and store it in the filesystem using the
+ file-protocol.
+ This corresponds to the "renameToFile=" field in the protocol description file.
+ Valid values for this field are "true" or "false" (default).
+ @param url the url to check
+ @return true if the protocol can rename files to the local file system
+
+ @short Returns whether the protocol can rename (i.
+ */
+ public static native boolean canRenameToFile(KURL url);
+ /**
+ Returns whether the protocol can recursively delete directories by itself.
+ If not (the usual case) then KIO will list the directory and delete files
+ and empty directories one by one.
+ This corresponds to the "deleteRecursive=" field in the protocol description file.
+ Valid values for this field are "true" or "false" (default).
+ @param url the url to check
+ @return true if the protocol can delete non-empty directories by itself.
+
+ @short Returns whether the protocol can recursively delete directories by itself.
+ */
+ public static native boolean canDeleteRecursive(KURL url);
+ /**
+ This setting defines the strategy to use for generating a filename, when
+ copying a file or directory to another directory. By default the destination
+ filename is made out of the filename in the source URL. However if the
+ ioslave displays names that are different from the filename of the URL
+ (e.g. kio_fonts shows Arial for arial.ttf, or kio_trash shows foo.txt and
+ uses some internal URL), using Name means that the display name (UDS_NAME)
+ will be used to as the filename in the destination directory.
+ This corresponds to the "fileNameUsedForCopying=" field in the protocol description file.
+ Valid values for this field are "Name" or "FromURL" (default).
+ @param url the url to check
+ @return how to generate the filename in the destination directory when copying/moving
+
+ @short This setting defines the strategy to use for generating a filename, when copying a file or directory to another directory.
+ */
+ // KProtocolInfo::FileNameUsedForCopying fileNameUsedForCopying(const KURL& arg1); >>>> NOT CONVERTED
+ /**
+ Returns default mimetype for this URL based on the protocol.
+ This corresponds to the "defaultMimetype=" field in the protocol description file.
+ @param url the url to check
+ @return the default mime type of the protocol, or null if unknown
+
+ @short Returns default mimetype for this URL based on the protocol.
+ */
+ public static native String defaultMimetype(KURL url);
+ /**
+ Returns the name of the icon, associated with the specified protocol.
+ This corresponds to the "Icon=" field in the protocol description file.
+ @param protocol the protocol to check
+ @return the icon of the protocol, or null if unknown
+
+ @short Returns the name of the icon, associated with the specified protocol.
+ */
+ public static native String icon(String protocol);
+ /**
+ Returns the name of the config file associated with the
+ specified protocol. This is useful if two similar protocols
+ need to share a single config file, e.g. http and https.
+ This corresponds to the "config=" field in the protocol description file.
+ The default is the protocol name, see name()
+ @param protocol the protocol to check
+ @return the config file, or null if unknown
+
+ @short Returns the name of the config file associated with the specified protocol.
+ */
+ public static native String config(String protocol);
+ /**
+ Returns the soft limit on the number of slaves for this protocol.
+ This limits the number of slaves used for a single operation, note
+ that multiple operations may result in a number of instances that
+ exceeds this soft limit.
+ This corresponds to the "maxInstances=" field in the protocol description file.
+ The default is 1.
+ @param protocol the protocol to check
+ @return the maximum number of slaves, or 1 if unknown
+
+ @short Returns the soft limit on the number of slaves for this protocol.
+ */
+ public static native int maxSlaves(String protocol);
+ /**
+ Returns whether mimetypes can be determined based on extension for this
+ protocol. For some protocols, e.g. http, the filename extension in the URL
+ can not be trusted to truly reflect the file type.
+ This corresponds to the "determineMimetypeFromExtension=" field in the protocol description file.
+ Valid values for this field are "true" (default) or "false".
+ @param protocol the protocol to check
+ @return true if the mime types can be determined by extension
+
+ @short Returns whether mimetypes can be determined based on extension for this protocol.
+ */
+ public static native boolean determineMimetypeFromExtension(String protocol);
+ /**
+ Returns the documentation path for the specified protocol.
+ This corresponds to the "DocPath=" field in the protocol description file.
+ @param protocol the protocol to check
+ @return the docpath of the protocol, or null if unknown
+
+ @short Returns the documentation path for the specified protocol.
+ */
+ public static native String docPath(String protocol);
+ /**
+ Returns the protocol class for the specified protocol.
+ This corresponds to the "Class=" field in the protocol description file.
+ The following classes are defined:
+
+ <li>
+ ":internet" for common internet protocols
+ </li>
+
+ <li>
+ ":local" for protocols that access local resources
+ </li>
+ Protocol classes always start with a ':' so that they can not be confused with
+ the protocols themselves.
+ @param protocol the protocol to check
+ @return the class of the protocol, or null if unknown
+
+ @short Returns the protocol class for the specified protocol.
+ */
+ public static native String protocolClass(String protocol);
+ /**
+ Returns whether file previews should be shown for the specified protocol.
+ This corresponds to the "ShowPreviews=" field in the protocol description file.
+ By default previews are shown if protocolClass is :local.
+ @param protocol the protocol to check
+ @return true if previews should be shown by default, false otherwise
+
+ @short Returns whether file previews should be shown for the specified protocol.
+ */
+ public static native boolean showFilePreview(String protocol);
+ /**
+ Returns the suggested URI parsing mode for the KURL parser.
+ This corresponds to the "URIMode=" field in the protocol description file.
+ The following parsing modes are defined:
+
+ <li>
+ "url" for a standards compliant URL
+ </li>
+
+ <li>
+ "rawuri" for a non-conformant URI for which URL parsing would be meaningless
+ </li>
+
+ <li>
+ "mailto" for a mailto style URI (the path part contains only an email address)
+ </li>
+ @param protocol the protocol to check
+ @return the suggested parsing mode, or KURL.Auto if unspecified
+
+ @short Returns the suggested URI parsing mode for the KURL parser.
+ */
+ public static native int uriParseMode(String protocol);
+ /**
+ Returns the list of capabilities provided by the kioslave implementing
+ this protocol.
+ This corresponds to the "Capabilities=" field in the protocol description file.
+ The capability names are not defined globally, they are up to each
+ slave implementation. For example when adding support for a new
+ special command for mounting, one would add the string "Mount" to the
+ capabilities list, and applications could check for that string
+ before sending a special() command that would otherwise do nothing
+ on older kioslave implementations.
+ @param protocol the protocol to check
+ @return the list of capabilities.
+
+ @short Returns the list of capabilities provided by the kioslave implementing this protocol.
+ */
+ public static native ArrayList capabilities(String protocol);
+ /**
+ Returns the name of the protocol through which the request
+ will be routed if proxy support is enabled.
+ A good example of this is the ftp protocol for which proxy
+ support is commonly handled by the http protocol.
+ This corresponds to the "ProxiedBy=" in the protocol description file.
+ @short Returns the name of the protocol through which the request will be routed if proxy support is enabled.
+ */
+ public static native String proxiedBy(String protocol);
+ protected native boolean canRenameFromFile();
+ protected native boolean canRenameToFile();
+ protected native boolean canDeleteRecursive();
+ // KProtocolInfo::FileNameUsedForCopying fileNameUsedForCopying(); >>>> NOT CONVERTED
+ protected static native KProtocolInfo findProtocol(KURL url);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KProtocolManager.java b/kdejava/koala/org/kde/koala/KProtocolManager.java
new file mode 100644
index 00000000..f543c3e2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KProtocolManager.java
@@ -0,0 +1,367 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Provides information about I/O (Internet, etc.) settings chosen/set
+ by the end user.
+ KProtocolManager has a heap of static functions that allows only read
+ access to KDE's IO related settings. These include proxy, cache, file
+ transfer resumption, timeout and user-agent related settings.
+ The information provided by this class is generic enough to be applicable
+ to any application that makes use of KDE's IO sub-system. Note that this
+ mean the proxy, timeout etc. settings are saved in a separate user-specific
+ config file and not in the config file of the application.
+ Original author:
+ Revised by:
+ @author Dawit Alemayehu <adawit@kde.org>
+
+ @short Provides information about I/O (Internet, etc.
+ @see KPAC
+
+*/
+public class KProtocolManager implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KProtocolManager(Class dummy){}
+
+ /**
+ Types of proxy configuration
+
+ <li>
+ NoProxy - No proxy is used
+ </li>
+
+ <li>
+ ManualProxy - Proxies are manually configured
+ </li>
+
+ <li>
+ PACProxy - A Proxy configuration URL has been given
+ </li>
+
+ <li>
+ WPADProxy - A proxy should be automatically discovered
+ </li>
+
+ <li>
+ EnvVarProxy - Use the proxy values set through environment variables.
+
+ </li> @short Types of proxy configuration
+ */
+ public static final int NoProxy = 0;
+ public static final int ManualProxy = 1;
+ public static final int PACProxy = 2;
+ public static final int WPADProxy = 3;
+ public static final int EnvVarProxy = 4;
+
+ /**
+ Proxy authorization modes.
+
+ <li>
+ Prompt - Ask for authorization as needed
+ </li>
+
+ <li>
+ Automatic - Use auto login as defined in .kionetrc files.
+ </li>
+ NOTE: .kionetrc files have the same format as ftp .netrc files.
+ Please note the use of .kionetrc files is highly discouraged since
+ password is stored in clear text. For future releases the ability
+ to store preset password for proxy servers will probably be supported
+ through KWallet integration.
+ @short Proxy authorization modes.
+ */
+ public static final int Prompt = 0;
+ public static final int Automatic = 1;
+
+ public KProtocolManager() {
+ newKProtocolManager();
+ }
+ private native void newKProtocolManager();
+ /**
+ Returns the default user-agent string.
+ @return the default user-agent string
+
+ @short Returns the default user-agent string.
+ */
+ public static native String defaultUserAgent();
+ /**
+ Returns the default user-agent value.
+ @param keys can be any of the following:
+
+ <li>
+ 'o' Show OS
+ </li>
+
+ <li>
+ 'v' Show OS Version
+ </li>
+
+ <li>
+ 'p' Show platform
+ </li>
+
+ <li>
+ 'm' Show machine architecture
+ </li>
+
+ <li>
+ 'l' Show language
+ </li>
+ @return the default user-agent value with the given <code>keys</code>
+
+ @short Returns the default user-agent value.
+ */
+ public static native String defaultUserAgent(String keys);
+ /**
+ Returns the userAgent string configured for the
+ specified host.
+ If hostname is not found or is empty (i.e. "" or
+ null) this function will return the default
+ user agent.
+ @param hostname name of the host
+ @return specified userAgent string
+
+ @short Returns the userAgent string configured for the specified host.
+ */
+ public static native String userAgentForHost(String hostname);
+ /**
+ Returns the preferred timeout value for reading from
+ remote connections in seconds.
+ @return timeout value for remote connection in secs.
+
+ @short Returns the preferred timeout value for reading from remote connections in seconds.
+ */
+ public static native int readTimeout();
+ /**
+ Returns the preferred timeout value for remote connections
+ in seconds.
+ @return timeout value for remote connection in secs.
+
+ @short Returns the preferred timeout value for remote connections in seconds.
+ */
+ public static native int connectTimeout();
+ /**
+ Returns the preferred timeout value for proxy connections
+ in seconds.
+ @return timeout value for proxy connection in secs.
+
+ @short Returns the preferred timeout value for proxy connections in seconds.
+ */
+ public static native int proxyConnectTimeout();
+ /**
+ Returns the preferred response timeout value for
+ remote connecting in seconds.
+ @return timeout value for remote connection in seconds.
+
+ @short Returns the preferred response timeout value for remote connecting in seconds.
+ */
+ public static native int responseTimeout();
+ /**
+ Returns true if the user specified a proxy server to make connections.
+ @short Returns true if the user specified a proxy server to make connections.
+ @see #slaveProtocol
+ @see #proxyForURL
+ @see #proxyFor
+ */
+ public static native boolean useProxy();
+ /**
+ Returns true if the proxy settings should apply to the list
+ returned by {@link #noProxyFor}.
+ Normally addresses listed in the noProxyFor list are not routed
+ through a proxy server. However, if this function returns true,
+ then all addresses listed in the noProxyFor list are to be routed
+ through a proxy server where as those that are not should bypass it.
+ This function as well as {@link #noProxyFor} only apply when {@link #proxyType}
+ is <code>ManualProxy.</code>
+ @short Returns true if the proxy settings should apply to the list returned by @ref noProxyFor.
+ @see #proxyForURL
+ @see #proxyFor
+ @see #slaveProtocol
+ */
+ public static native boolean useReverseProxy();
+ /**
+ Returns the type of proxy configuration that is used.
+ @short Returns the type of proxy configuration that is used.
+ @see ProxyType
+ */
+ public static native int proxyType();
+ /**
+ Returns the way proxy authorization should be handled.
+ @short Returns the way proxy authorization should be handled.
+ @see ProxyAuthMode
+ */
+ public static native int proxyAuthMode();
+ /**
+ Returns a comma-separated list of hostnames or partial
+ host-names that should bypass any proxy settings.
+ This function as well as {@link #useReverseProxy} only apply
+ when {@link #proxyType} is <code>ManualProxy.</code>
+ @short Returns a comma-separated list of hostnames or partial host-names that should bypass any proxy settings.
+ @see #useReverseProxy
+ @see #proxyFor
+ @see #proxyForURL
+ @see #slaveProtocol
+ */
+ public static native String noProxyFor();
+ /**
+ Returns the proxy server address for a given protocol.
+ NOTE: This function does not take the {@link #useReverseProxy}
+ settings into account.
+ @param protocol the protocol whose proxy info is needed
+ @return the proxy server address if one is available,
+ or null if not available
+
+ @short Returns the proxy server address for a given protocol.
+ @see #useReverseProxy
+ @see #slaveProtocol
+ */
+ public static native String proxyFor(String protocol);
+ /**
+ Returns the proxy server address for a given URL.
+ If {@link #proxyType} returns Automatic, an external service
+ called KPAC (a kded module) is used to determine the proxy
+ server. Otherwise, {@link #proxyFor} is invoked to determine
+ whether the URL needs to be routed through a proxy server.
+ NOTE: This function does not take the {@link #useReverseProxy}
+ or the {@link #noProxyFor} settings into account.
+ @param url the URL whose proxy info is needed
+ @return the proxy server address or the text "DIRECT"
+ if no proxying is needed for the given address.
+
+ @short Returns the proxy server address for a given URL.
+ @see #useReverseProxy
+ @see #slaveProtocol
+ @see #noProxyFor
+ */
+ public static native String proxyForURL(KURL url);
+ /**
+ Marks this proxy as bad (down). It will not be used for the
+ next 30 minutes. (The script may supply an alternate proxy)
+ @param proxy the proxy to mark as bad (as URL)
+ @short Marks this proxy as bad (down).
+ */
+ public static native void badProxy(String proxy);
+ /**
+ Returns the URL of the script for automatic proxy configuration.
+ @return the proxy configuration script
+
+ @short Returns the URL of the script for automatic proxy configuration.
+ */
+ public static native String proxyConfigScript();
+ /**
+ Returns true/false to indicate whether a cache
+ should be used
+ @return true to use the cache, false otherwisea
+
+ @short Returns true/false to indicate whether a cache should be used
+ */
+ public static native boolean useCache();
+ /**
+ Returns the maximum age in seconds cached files should be
+ kept before they are deleted as necessary.
+ @return the maximum cache age in seconds
+
+ @short Returns the maximum age in seconds cached files should be kept before they are deleted as necessary.
+ */
+ public static native int maxCacheAge();
+ /**
+ Returns the maximum size that can be used for caching.
+ By default this function returns the DEFAULT_MAX_CACHE_SIZE
+ value as defined in http_slave_defaults.h. Not that the
+ value returned is in bytes, hence a value of 5120 would mean
+ 5 Kb.
+ @return the maximum cache size in bytes
+
+ @short Returns the maximum size that can be used for caching.
+ */
+ public static native int maxCacheSize();
+ /**
+ The directory which contains the cache files.
+ @return the directory that contains the cache files
+
+ @short The directory which contains the cache files.
+ */
+ public static native String cacheDir();
+ /**
+ Returns the Cache control directive to be used.
+ @return the cache control value
+
+ @short Returns the Cache control directive to be used.
+ */
+ public static native int cacheControl();
+ /**
+ Returns true if partial downloads should be
+ automatically resumed.
+ @return true to resume partial downloads
+
+ @short Returns true if partial downloads should be automatically resumed.
+ */
+ public static native boolean autoResume();
+ /**
+ Returns true if partial downloads should be marked
+ with a ".part" extension.
+ @return true if partial downloads should get an ".part" extension
+
+ @short Returns true if partial downloads should be marked with a ".
+ */
+ public static native boolean markPartial();
+ /**
+ Returns the minimum file size for keeping aborted
+ downloads.
+ Any data downloaded that does not meet this minimum
+ requirement will simply be discarded. The default size
+ is 5 KB.
+ @return the minimum keep size for aborted downloads in bytes
+
+ @short Returns the minimum file size for keeping aborted downloads.
+ */
+ public static native int minimumKeepSize();
+ /**
+ Returns true if proxy connections should be persistent.
+ @return true if proxy connections should be persistent
+
+ @short Returns true if proxy connections should be persistent.
+ */
+ public static native boolean persistentProxyConnection();
+ /**
+ Returns true if connections should be persistent
+ @return true if the connections should be persistent
+
+ @short Returns true if connections should be persistent
+ */
+ public static native boolean persistentConnections();
+ /**
+ Force a reload of the general config file of
+ io-slaves ( kioslaverc).
+ @short Force a reload of the general config file of io-slaves ( kioslaverc).
+ */
+ public static native void reparseConfiguration();
+ /**
+ Return the protocol to use in order to handle the given <code>url</code>
+ It's usually the same, except that FTP, when handled by a proxy,
+ needs an HTTP ioslave.
+ When a proxy is to be used, proxy contains the URL for the proxy.
+ @param url the url to check
+ @param proxy the URL of the proxy to use
+ @return the slave protocol (e.g. 'http'), can be null if unknown
+
+ @short Return the protocol to use in order to handle the given <code>url</code> It's usually the same, except that FTP, when handled by a proxy, needs an HTTP ioslave.
+ */
+ public static native String slaveProtocol(KURL url, StringBuffer proxy);
+ /**
+ (Shared with SlaveConfig)
+ @short
+ */
+ public static native KConfig config();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KPushButton.java b/kdejava/koala/org/kde/koala/KPushButton.java
new file mode 100644
index 00000000..c0298b37
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPushButton.java
@@ -0,0 +1,151 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDragObject;
+import org.kde.qt.QPushButton;
+
+/**
+
+ This is nothing but a QPushButton with drag-support and KGuiItem support. You have to call
+ setDragEnabled( true ) and override the method
+ dragObject() to specify the QDragObject to be used.
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short A QPushButton with drag-support and KGuiItem support.
+
+*/
+public class KPushButton extends QPushButton {
+ protected KPushButton(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Default constructor.
+ @short Default constructor.
+ */
+ public KPushButton(QWidget parent, String name) {
+ super((Class) null);
+ newKPushButton(parent,name);
+ }
+ private native void newKPushButton(QWidget parent, String name);
+ public KPushButton(QWidget parent) {
+ super((Class) null);
+ newKPushButton(parent);
+ }
+ private native void newKPushButton(QWidget parent);
+ /**
+ Constructor, that sets the button-text to <code>text</code>
+ @short Constructor, that sets the button-text to <code>text</code>
+ */
+ public KPushButton(String text, QWidget parent, String name) {
+ super((Class) null);
+ newKPushButton(text,parent,name);
+ }
+ private native void newKPushButton(String text, QWidget parent, String name);
+ public KPushButton(String text, QWidget parent) {
+ super((Class) null);
+ newKPushButton(text,parent);
+ }
+ private native void newKPushButton(String text, QWidget parent);
+ /**
+ Constructor, that sets an icon and the button-text to <code>text</code>
+ @short Constructor, that sets an icon and the button-text to <code>text</code>
+ */
+ public KPushButton(QIconSet icon, String text, QWidget parent, String name) {
+ super((Class) null);
+ newKPushButton(icon,text,parent,name);
+ }
+ private native void newKPushButton(QIconSet icon, String text, QWidget parent, String name);
+ public KPushButton(QIconSet icon, String text, QWidget parent) {
+ super((Class) null);
+ newKPushButton(icon,text,parent);
+ }
+ private native void newKPushButton(QIconSet icon, String text, QWidget parent);
+ /**
+ Constructor that takes a KGuiItem for the text, the icon, the tooltip
+ and the what's this help
+ @short Constructor that takes a KGuiItem for the text, the icon, the tooltip and the what's this help
+ */
+ public KPushButton(KGuiItem item, QWidget parent, String name) {
+ super((Class) null);
+ newKPushButton(item,parent,name);
+ }
+ private native void newKPushButton(KGuiItem item, QWidget parent, String name);
+ public KPushButton(KGuiItem item, QWidget parent) {
+ super((Class) null);
+ newKPushButton(item,parent);
+ }
+ private native void newKPushButton(KGuiItem item, QWidget parent);
+ /**
+ Enables/disables drag-support. Default is disabled.
+ @short Enables/disables drag-support.
+ */
+ public native void setDragEnabled(boolean enable);
+ /**
+ @return if drag support is enabled or not.
+
+ @short
+ */
+ public native boolean isDragEnabled();
+ /**
+ Sets the KGuiItem for this button.
+ @short Sets the KGuiItem for this button.
+ */
+ public native void setGuiItem(KGuiItem item);
+ /**
+ Sets the standard KGuiItem for this button.
+ @short Sets the standard KGuiItem for this button.
+ */
+ public native void setGuiItem(int item);
+ /**
+ Reads the standard KGuiItem for this button.
+ @short Reads the standard KGuiItem for this button.
+ */
+ public native int guiItem();
+ public native void setGuiItm(int itm);
+ public native int guiItm();
+ /**
+ Sets the Icon Set for this button. It also takes into account hte
+ KGlobalSettings.showIconsOnPushButtons() setting.
+ @short Sets the Icon Set for this button.
+ */
+ public native void setIconSet(QIconSet iconSet);
+ /**
+ Sets the text of the button
+ @short Sets the text of the button
+ */
+ public native void setText(String text);
+ /**
+ Reimplement this and return the QDragObject that should be used
+ for the drag.
+ Default implementation returns null, so that no drag is initiated.
+ @short Reimplement this and return the QDragObject that should be used for the drag.
+ */
+ protected native QDragObject dragObject();
+ /**
+ Reimplemented to add drag-support
+ @short Reimplemented to add drag-support
+ */
+ protected native void mousePressEvent(QMouseEvent arg1);
+ /**
+ Reimplemented to add drag-support
+ @short Reimplemented to add drag-support
+ */
+ protected native void mouseMoveEvent(QMouseEvent arg1);
+ /**
+ Starts a drag (dragCopy() by default) using dragObject()
+ @short Starts a drag (dragCopy() by default) using dragObject()
+ */
+ protected native void startDrag();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KRFCDate.java b/kdejava/koala/org/kde/koala/KRFCDate.java
new file mode 100644
index 00000000..e5e272d5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRFCDate.java
@@ -0,0 +1,85 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The KRFCDate class contains functions related to the parsing of dates.
+ @author Waldo Bastian <bastian@kde.org>
+
+ @short The KRFCDate class contains functions related to the parsing of dates.
+
+*/
+public class KRFCDate implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KRFCDate(Class dummy){}
+
+ public KRFCDate() {
+ newKRFCDate();
+ }
+ private native void newKRFCDate();
+ /**
+ This function tries to parse a string containing a date/time in any
+ of the formats specified by RFC822, RFC850, RFC1036, RFC1123 and RFC2822.
+ If the date/time could not be parsed, 0 is returned. If the
+ parsed date is epoch, then epoch+1 is returned so that a valid
+ date will not be confused with an improper date string.
+ The date/time returned is converted to UTC.
+ @param date the date to parse
+ @return the date, or 0 if not possible
+
+ @short This function tries to parse a string containing a date/time in any of the formats specified by RFC822, RFC850, RFC1036, RFC1123 and RFC2822.
+ */
+ public static native int parseDate(String date);
+ /**
+ This function tries to parse a string containing a date/time in
+ any of the formats specified by http://www.w3.org/TR/NOTE-datetime
+ This is a subset of the formats specified in ISO8601.
+ If the date/time could not be parsed, 0 is returned. If the
+ parsed date is epoch, then epoch+1 is returned so that a valid
+ date will not be confused with an improper date string.
+ The date/time returned is converted to UTC.
+ @param date the date to parse
+ @return the date, or 0 if not possible
+
+ @short This function tries to parse a string containing a date/time in any of the formats specified by http://www.
+ */
+ public static native int parseDateISO8601(String date);
+ /**
+ Returns the local timezone offset to UTC in minutes
+ @return the local timezone offset in minutes
+
+ @short Returns the local timezone offset to UTC in minutes
+ */
+ public static native int localUTCOffset();
+ /**
+ Returns a string representation of the given date and time formated
+ in conformance to RFC2822.
+ @param utcTime a date and time in UTC
+ @param utcOffset the offset to UTC in minutes
+ @return the string representation of the date
+
+ @short Returns a string representation of the given date and time formated in conformance to RFC2822.
+ */
+ public static native String rfc2822DateString(int utcTime, int utcOffset);
+ /**
+ Returns a string representation of the given date and time formated
+ in conformance to RFC2822.
+ Provided for convenience, the function is equivalent to
+ rfc2822DateString(t, localUTCOffset()).
+ @param utcTime a date and time in UTC
+ @return the string representation of the date
+
+ @short Returns a string representation of the given date and time formated in conformance to RFC2822.
+ */
+ public static native String rfc2822DateString(int utcTime);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KRadioAction.java b/kdejava/koala/org/kde/koala/KRadioAction.java
new file mode 100644
index 00000000..dd672284
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRadioAction.java
@@ -0,0 +1,193 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QIconSet;
+
+/**
+
+ An action that operates like a radio button. At any given time
+ only a single action from the group will be active.
+ @short Radiobox like action.
+
+*/
+public class KRadioAction extends KToggleAction {
+ protected KRadioAction(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a radio action with text and potential keyboard
+ accelerator but nothing else. Use this only if you really
+ know what you are doing.
+ @param text The text that will be displayed.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short Constructs a radio action with text and potential keyboard accelerator but nothing else.
+ */
+ public KRadioAction(String text, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKRadioAction(text,cut,parent,name);
+ }
+ private native void newKRadioAction(String text, KShortcut cut, QObject parent, String name);
+ public KRadioAction(String text, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKRadioAction(text,cut,parent);
+ }
+ private native void newKRadioAction(String text, KShortcut cut, QObject parent);
+ public KRadioAction(String text, KShortcut cut) {
+ super((Class) null);
+ newKRadioAction(text,cut);
+ }
+ private native void newKRadioAction(String text, KShortcut cut);
+ public KRadioAction(String text) {
+ super((Class) null);
+ newKRadioAction(text);
+ }
+ private native void newKRadioAction(String text);
+ /**
+ @param text The text that will be displayed.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KRadioAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKRadioAction(text,cut,receiver,slot,parent,name);
+ }
+ private native void newKRadioAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KRadioAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKRadioAction(text,cut,receiver,slot,parent);
+ }
+ private native void newKRadioAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param text The text that will be displayed.
+ @param pix The icons that go with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KRadioAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKRadioAction(text,pix,cut,parent,name);
+ }
+ private native void newKRadioAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name);
+ public KRadioAction(String text, QIconSet pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKRadioAction(text,pix,cut,parent);
+ }
+ private native void newKRadioAction(String text, QIconSet pix, KShortcut cut, QObject parent);
+ public KRadioAction(String text, QIconSet pix, KShortcut cut) {
+ super((Class) null);
+ newKRadioAction(text,pix,cut);
+ }
+ private native void newKRadioAction(String text, QIconSet pix, KShortcut cut);
+ public KRadioAction(String text, QIconSet pix) {
+ super((Class) null);
+ newKRadioAction(text,pix);
+ }
+ private native void newKRadioAction(String text, QIconSet pix);
+ /**
+ @param text The text that will be displayed.
+ @param pix The dynamically loaded icon that goes with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KRadioAction(String text, String pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKRadioAction(text,pix,cut,parent,name);
+ }
+ private native void newKRadioAction(String text, String pix, KShortcut cut, QObject parent, String name);
+ public KRadioAction(String text, String pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKRadioAction(text,pix,cut,parent);
+ }
+ private native void newKRadioAction(String text, String pix, KShortcut cut, QObject parent);
+ public KRadioAction(String text, String pix, KShortcut cut) {
+ super((Class) null);
+ newKRadioAction(text,pix,cut);
+ }
+ private native void newKRadioAction(String text, String pix, KShortcut cut);
+ public KRadioAction(String text, String pix) {
+ super((Class) null);
+ newKRadioAction(text,pix);
+ }
+ private native void newKRadioAction(String text, String pix);
+ /**
+ @param text The text that will be displayed.
+ @param pix The icons that go with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KRadioAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKRadioAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKRadioAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KRadioAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKRadioAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKRadioAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param text The text that will be displayed.
+ @param pix The dynamically loaded icon that goes with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KRadioAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKRadioAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKRadioAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KRadioAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKRadioAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKRadioAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KRadioAction(QObject parent, String name) {
+ super((Class) null);
+ newKRadioAction(parent,name);
+ }
+ private native void newKRadioAction(QObject parent, String name);
+ public KRadioAction(QObject parent) {
+ super((Class) null);
+ newKRadioAction(parent);
+ }
+ private native void newKRadioAction(QObject parent);
+ public KRadioAction() {
+ super((Class) null);
+ newKRadioAction();
+ }
+ private native void newKRadioAction();
+ protected native void slotActivated();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KRandomSequence.java b/kdejava/koala/org/kde/koala/KRandomSequence.java
new file mode 100644
index 00000000..79b41f4c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRandomSequence.java
@@ -0,0 +1,117 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A class to create a pseudo-random sequence
+ Given a seed number, this class will produce a sequence of
+ pseudo-random numbers. This would typically be used in
+ applications like games.
+ In general, you should instantiate a KRandomSequence object and
+ pass along your seed number in the constructor. From then on,
+ simply call getDouble() or getLong() to obtain the next
+ number in the sequence.
+ @author Sean Harmer <sh@astro.keele.ac.uk>
+
+ @short A class to create a pseudo-random sequence
+
+*/
+public class KRandomSequence implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KRandomSequence(Class dummy){}
+
+ /**
+ Creates a pseudo-random sequence based on the seed lngSeed.
+ A Pseudo-random sequence is different for each seed but can be
+ reproduced by starting the sequence with the same seed.
+ If you need a single value which needs to be unpredictable,
+ you need to use kapp.random() instead.
+ @param lngSeed Seed to initialize the sequence with.
+ If lngSeed is 0, the sequence is initialized with a value from
+ KApplication.random().
+ @short Creates a pseudo-random sequence based on the seed lngSeed.
+ */
+ public KRandomSequence(long lngSeed) {
+ newKRandomSequence(lngSeed);
+ }
+ private native void newKRandomSequence(long lngSeed);
+ public KRandomSequence() {
+ newKRandomSequence();
+ }
+ private native void newKRandomSequence();
+ /**
+ Copy constructor
+ @short Copy constructor
+ */
+ public KRandomSequence(KRandomSequence a) {
+ newKRandomSequence(a);
+ }
+ private native void newKRandomSequence(KRandomSequence a);
+ /**
+ Restart the sequence based on lngSeed.
+ @param lngSeed Seed to initialize the sequence with.
+ If lngSeed is 0, the sequence is initialized with a value from
+ KApplication.random().
+ @short Restart the sequence based on lngSeed.
+ */
+ public native void setSeed(long lngSeed);
+ public native void setSeed();
+ /**
+ Get the next number from the pseudo-random sequence.
+ @return a pseudo-random double value between [0,1[
+
+ @short Get the next number from the pseudo-random sequence.
+ */
+ public native double getDouble();
+ /**
+ Get the next number from the pseudo-random sequence.
+ @return a pseudo-random integer value between [0, max[
+ with 0 <= max < 1.000.000
+
+ @short Get the next number from the pseudo-random sequence.
+ */
+ public native long getLong(long max);
+ /**
+ Get a booleanean from the pseudo-random sequence.
+ @return a boolean which is either true or false
+
+ @short Get a boolean from the pseudo-random sequence.
+ */
+ public native boolean getBool();
+ /**
+ Put a list in random order.
+ @param list the list whose order will be modified
+ @short Put a list in random order.
+ */
+ // void randomize(QGList* arg1); >>>> NOT CONVERTED
+ /**
+ Modulate the random sequence.
+ If S(i) is the sequence of numbers that will follow
+ given the current state after calling modulate(i),
+ then S(i) != S(j) for i != j and
+ S(i) == S(j) for i == j.
+ This can be useful in game situation where "undo" restores
+ the state of the random sequence. If the game modulates the
+ random sequence with the move chosen by the player, the
+ random sequence will be identical whenever the player "redo"-s
+ his or hers original move, but different when the player
+ chooses another move.
+ With this scenario "undo" can no longer be used to repeat a
+ certain move over and over again until the computer reacts
+ with a favorable response or to predict the response for a
+ certain move based on the response to another move.
+ @param i the sequence identified
+ @short Modulate the random sequence.
+ */
+ public native void modulate(int i);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KRecentDocument.java b/kdejava/koala/org/kde/koala/KRecentDocument.java
new file mode 100644
index 00000000..93220ea8
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRecentDocument.java
@@ -0,0 +1,85 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ Manage the "Recent Document Menu" entries displayed by
+ applications such as Kicker and Konqueror.
+ These entries are automatically generated .desktop files pointing
+ to the current application and document. You should call the
+ static add() method whenever the user opens or saves a new
+ document if you want it to show up in the menu.
+ You don't have to worry about this if you are using any
+ KFileDialog derived class to open and save documents, as it
+ already calls this class. User defined limits on the maximum
+ number of documents to save, etc... are all automatically handled.
+ @author Daniel M. Duley <mosfet@kde.org>
+
+ @short Manage the "Recent Document Menu" entries displayed by applications such as Kicker and Konqueror.
+
+*/
+public class KRecentDocument implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KRecentDocument(Class dummy){}
+
+ public KRecentDocument() {
+ newKRecentDocument();
+ }
+ private native void newKRecentDocument();
+ /**
+ Return a list of absolute paths to recent document .desktop files,
+ sorted by date.
+ @short
+ */
+ public static native ArrayList recentDocuments();
+ /**
+ Add a new item to the Recent Document menu.
+ @param url The url to add.
+ @short Add a new item to the Recent Document menu.
+ */
+ public static native void add(KURL url);
+ /**
+ Add a new item to the Recent Document menu, specifying the application to open it with.
+ The above add() method uses argv[0] for the app name, which isn't always flexible enough.
+ This method is used when an application launches another one to open a document.
+ @param url The url to add.
+ @param desktopEntryName The desktopEntryName of the service to use for opening this document.
+ @short Add a new item to the Recent Document menu, specifying the application to open it with.
+ */
+ public static native void add(KURL url, String desktopEntryName);
+ /**
+ Add a new item to the Recent Document menu. Calls add( url ).
+ @param documentStr The full path to the document or URL to add.
+ @param isURL Set to <code>true</code> if <code>documentStr</code> is an URL and not a local file path.
+ @short
+ */
+ public static native void add(String documentStr, boolean isURL);
+ public static native void add(String documentStr);
+ /**
+ Clear the recent document menu of all entries.
+ @short Clear the recent document menu of all entries.
+ */
+ public static native void clear();
+ /**
+ Returns the maximum amount of recent document entries allowed.
+ @short Returns the maximum amount of recent document entries allowed.
+ */
+ public static native int maximumItems();
+ /**
+ Returns the path to the directory where recent document .desktop files
+ are stored.
+ @short Returns the path to the directory where recent document .
+ */
+ public static native String recentDocumentDirectory();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KRecentFilesAction.java b/kdejava/koala/org/kde/koala/KRecentFilesAction.java
new file mode 100644
index 00000000..f1afaf9c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRecentFilesAction.java
@@ -0,0 +1,275 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+
+/**
+
+ This class is an action to handle a recent files submenu.
+ The best way to create the action is to use KStdAction.openRecent.
+ Then you simply need to call loadEntries on startup, saveEntries
+ on shutdown, addURL when your application loads/saves a file.
+ See {@link KRecentFilesActionSignals} for signals emitted by KRecentFilesAction
+ @author Michael Koch
+
+ @short Recent files action.
+
+*/
+public class KRecentFilesAction extends KListAction {
+ protected KRecentFilesAction(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ @param text The text that will be displayed.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @param maxItems The maximum number of files to display
+ @short
+ */
+ public KRecentFilesAction(String text, KShortcut cut, QObject parent, String name, int maxItems) {
+ super((Class) null);
+ newKRecentFilesAction(text,cut,parent,name,maxItems);
+ }
+ private native void newKRecentFilesAction(String text, KShortcut cut, QObject parent, String name, int maxItems);
+ public KRecentFilesAction(String text, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKRecentFilesAction(text,cut,parent,name);
+ }
+ private native void newKRecentFilesAction(String text, KShortcut cut, QObject parent, String name);
+ public KRecentFilesAction(String text, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKRecentFilesAction(text,cut,parent);
+ }
+ private native void newKRecentFilesAction(String text, KShortcut cut, QObject parent);
+ /**
+ @param text The text that will be displayed.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke when a URL is selected.
+ Its signature is of the form slotURLSelected( KURL ).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @param maxItems The maximum number of files to display
+ @short
+ */
+ public KRecentFilesAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name, int maxItems) {
+ super((Class) null);
+ newKRecentFilesAction(text,cut,receiver,slot,parent,name,maxItems);
+ }
+ private native void newKRecentFilesAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name, int maxItems);
+ public KRecentFilesAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKRecentFilesAction(text,cut,receiver,slot,parent,name);
+ }
+ private native void newKRecentFilesAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KRecentFilesAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKRecentFilesAction(text,cut,receiver,slot,parent);
+ }
+ private native void newKRecentFilesAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param text The text that will be displayed.
+ @param pix The icons that go with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @param maxItems The maximum number of files to display
+ @short
+ */
+ public KRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name, int maxItems) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,parent,name,maxItems);
+ }
+ private native void newKRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name, int maxItems);
+ public KRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,parent,name);
+ }
+ private native void newKRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name);
+ public KRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,parent);
+ }
+ private native void newKRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject parent);
+ /**
+ @param text The text that will be displayed.
+ @param pix The dynamically loaded icon that goes with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @param maxItems The maximum number of files to display
+ @short
+ */
+ public KRecentFilesAction(String text, String pix, KShortcut cut, QObject parent, String name, int maxItems) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,parent,name,maxItems);
+ }
+ private native void newKRecentFilesAction(String text, String pix, KShortcut cut, QObject parent, String name, int maxItems);
+ public KRecentFilesAction(String text, String pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,parent,name);
+ }
+ private native void newKRecentFilesAction(String text, String pix, KShortcut cut, QObject parent, String name);
+ public KRecentFilesAction(String text, String pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,parent);
+ }
+ private native void newKRecentFilesAction(String text, String pix, KShortcut cut, QObject parent);
+ /**
+ @param text The text that will be displayed.
+ @param pix The icons that go with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke when a URL is selected.
+ Its signature is of the form slotURLSelected( KURL ).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @param maxItems The maximum number of files to display
+ @short
+ */
+ public KRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name, int maxItems) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,receiver,slot,parent,name,maxItems);
+ }
+ private native void newKRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name, int maxItems);
+ public KRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param text The text that will be displayed.
+ @param pix The dynamically loaded icon that goes with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke when a URL is selected.
+ Its signature is of the form slotURLSelected( KURL ).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @param maxItems The maximum number of files to display
+ @short
+ */
+ public KRecentFilesAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name, int maxItems) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,receiver,slot,parent,name,maxItems);
+ }
+ private native void newKRecentFilesAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name, int maxItems);
+ public KRecentFilesAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKRecentFilesAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KRecentFilesAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKRecentFilesAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @param maxItems The maximum number of files to display
+ @short
+ */
+ public KRecentFilesAction(QObject parent, String name, int maxItems) {
+ super((Class) null);
+ newKRecentFilesAction(parent,name,maxItems);
+ }
+ private native void newKRecentFilesAction(QObject parent, String name, int maxItems);
+ public KRecentFilesAction(QObject parent, String name) {
+ super((Class) null);
+ newKRecentFilesAction(parent,name);
+ }
+ private native void newKRecentFilesAction(QObject parent, String name);
+ public KRecentFilesAction(QObject parent) {
+ super((Class) null);
+ newKRecentFilesAction(parent);
+ }
+ private native void newKRecentFilesAction(QObject parent);
+ public KRecentFilesAction() {
+ super((Class) null);
+ newKRecentFilesAction();
+ }
+ private native void newKRecentFilesAction();
+ public native int plug(QWidget widget, int index);
+ public native int plug(QWidget widget);
+ /**
+ Returns the maximum of items in the recent files list.
+ @short Returns the maximum of items in the recent files list.
+ */
+ public native int maxItems();
+ /**
+ Sets the maximum of items in the recent files list.
+ The default for this value is 10 set in the constructor.
+ If this value is lesser than the number of items currently
+ in the recent files list the last items are deleted until
+ the number of items are equal to the new maximum.
+ @short Sets the maximum of items in the recent files list.
+ */
+ public native void setMaxItems(int maxItems);
+ /**
+ Loads the recent files entries from a given KConfig object.
+ You can provide the name of the group used to load the entries.
+ If the groupname is empty, entries are load from a group called 'RecentFiles'
+ This method does not effect the active group of KConfig.
+ @short Loads the recent files entries from a given KConfig object.
+ */
+ public native void loadEntries(KConfig config, String groupname);
+ public native void loadEntries(KConfig config);
+ /**
+ Saves the current recent files entries to a given KConfig object.
+ You can provide the name of the group used to load the entries.
+ If the groupname is empty, entries are saved to a group called 'RecentFiles'
+ This method does not effect the active group of KConfig.
+ @short Saves the current recent files entries to a given KConfig object.
+ */
+ public native void saveEntries(KConfig config, String groupname);
+ public native void saveEntries(KConfig config);
+ /**
+ Add URL to recent files list.
+ @param url The URL of the file
+ @short Add URL to recent files list.
+ */
+ public native void addURL(KURL url);
+ /**
+ Add URL to recent files list.
+ @param url The URL of the file
+ @param name The user visible pretty name that appears before the URL
+ @short Add URL to recent files list.
+ */
+ public native void addURL(KURL url, String name);
+ /**
+ Remove an URL from the recent files list.
+ @param url The URL of the file
+ @short Remove an URL from the recent files list.
+ */
+ public native void removeURL(KURL url);
+ /**
+ Removes all entries from the recent files list.
+ @short Removes all entries from the recent files list.
+ */
+ public native void clearURLList();
+ protected native void itemSelected(String string);
+ protected native void menuAboutToShow();
+ protected native void menuItemActivated(int id);
+ protected native void slotClicked();
+ protected native void slotActivated(int arg1);
+ protected native void slotActivated(String arg1);
+ protected native void slotActivated();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KRecentFilesActionSignals.java b/kdejava/koala/org/kde/koala/KRecentFilesActionSignals.java
new file mode 100644
index 00000000..33d81cf1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRecentFilesActionSignals.java
@@ -0,0 +1,17 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+
+public interface KRecentFilesActionSignals {
+ /**
+ This signal gets emited when the user selects an URL.
+ @param url The URL thats the user selected.
+ @short This signal gets emited when the user selects an URL.
+ */
+ void urlSelected(KURL url);
+}
diff --git a/kdejava/koala/org/kde/koala/KRegExpEditorInterface.java b/kdejava/koala/org/kde/koala/KRegExpEditorInterface.java
new file mode 100644
index 00000000..8742f6c3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRegExpEditorInterface.java
@@ -0,0 +1,100 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A graphical editor for regular expressions.
+ The actual editor is located in kdeutils, with an interface in
+ kdelibs. This means that it is a bit more complicated to create an
+ instance of the editor, but only a little bit more complicated.
+ To check if kregexpeditor in kdeutils is installed and available use this line:
+ <pre>
+ boolean installed=!KTrader.self().query("KRegExpEditor/KRegExpEditor").isEmpty();
+ </pre>
+ The following is a template for what you need to do to create an instance of the
+ regular expression dialog:
+ <pre>
+ QDialog editorDialog = KParts.ComponentFactory.createInstanceFromQuery<QDialog>( "KRegExpEditor/KRegExpEditor" );
+ if ( editorDialog ) {
+ // kdeutils was installed, so the dialog was found fetch the editor interface
+ KRegExpEditorInterface editor = (KRegExpEditorInterface)( editorDialog.qt_cast( "KRegExpEditorInterface" ) );
+ Q_ASSERT( editor ); // This should not fail!
+ // now use the editor.
+ editor.setRegExp("^kde$");
+ // Finally exec the dialog
+ editorDialog.exec();
+ }
+ else {
+ // Don't offer the dialog.
+ }
+ </pre>
+ Note: signals and slots must be connected to the editorDialog object, not to the editor object:
+ <pre>
+ connect( editorDialog, SIGNAL("canUndo( boolean )"), undoBut, SLOT("setEnabled( boolean )") );
+ </pre>
+ If you want to create an instance of the editor widget, i.e. not the
+ dialog, then you must do it in the following way:
+ <pre>
+ QWidget editorWidget =
+ KParts.ComponentFactory.createInstanceFromQuery<QWidget>(
+ "KRegExpEditor/KRegExpEditor", null, parent );
+ if ( editorWidget ) {
+ // kdeutils was installed, so the widget was found fetch the editor interface
+ KRegExpEditorInterface editor = (KRegExpEditorInterface)( editorWidget.qt_cast( "KRegExpEditorInterface" ) );
+ Q_ASSERT( editor ); // This should not fail!
+ // now use the editor.
+ editor.setRegExp("^kde$");
+ // Finally insert the widget into the layout of its parent
+ layout.addWidget( editorWidget );
+ }
+ else {
+ // Don't offer the editor widget.
+ }
+ </pre>
+ @author Jesper K. Pedersen blackie@kde.org
+
+ @short A graphical editor for regular expressions.
+
+*/
+public class KRegExpEditorInterface implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KRegExpEditorInterface(Class dummy){}
+
+ /**
+ returns the regular expression of the editor in Qt3 QRegExp
+ syntax. Note, there is also a 'regexp' Qt property available.
+ @short returns the regular expression of the editor in Qt3 QRegExp syntax.
+ */
+ public native String regExp();
+ /**
+ Set the regular expression for the editor. The syntax must be Qt3
+ QRegExp syntax.
+ @short Set the regular expression for the editor.
+ */
+ public native void setRegExp(String regexp);
+ public native void redo();
+ public native void undo();
+ /**
+ Set text to use when showing matches. NOT IMPLEMENTED YET!
+ This method is not yet implemented. In later version of the widget
+ this method will be used to give the widget a text to show matches of
+ the regular expression on.
+ @short Set text to use when showing matches.
+ */
+ public native void setMatchText(String arg1);
+ /**
+ This method allows for future changes that will not break binary
+ compatibility. DONT USE!
+ KDE has a policy of keeping binary compatibility for all major
+ version of KDE. This means that new methods can not be added to this
+ API before KDE version 4.0.
+ This method is an escape door for that.
+ Conclusion: You should not use this method in this version of KDE!
+ @short This method allows for future changes that will not break binary compatibility.
+ */
+ // void doSomething(QString arg1,void* arg2); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/KReplace.java b/kdejava/koala/org/kde/koala/KReplace.java
new file mode 100644
index 00000000..6bbf49f0
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KReplace.java
@@ -0,0 +1,188 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QRegExp;
+import org.kde.qt.QWidget;
+
+/**
+
+ @brief A generic implementation of the "replace" function.
+ <b></b>etail:
+ This class includes prompt handling etc. Also provides some
+ static functions which can be used to create custom behavior
+ instead of using the class directly.
+ <b></b>xample:
+ To use the class to implement a complete replace feature:
+ In the slot connect to the replace action, after using KReplaceDialog:
+ <pre>
+ // This creates a replace-on-prompt dialog if needed.
+ m_replace = new KReplace(pattern, replacement, options, this);
+ // Connect signals to code which handles highlighting
+ // of found text, and on-the-fly replacement.
+ connect( m_replace, SIGNAL("highlight( String, int, int )"),
+ this, SLOT("slotHighlight( String, int, int )") );
+ // Connect findNext signal - called when pressing the button in the dialog
+ connect( m_replace, SIGNAL("findNext()"),
+ this, SLOT("slotReplaceNext()") );
+ // Connect replace signal - called when doing a replacement
+ connect( m_replace, SIGNAL("replace(String, int, int, int)"),
+ this, SLOT("slotReplace(String, int, int, int)") );
+ </pre>
+ Then initialize the variables determining the "current position"
+ (to the cursor, if the option FromCursor is set,
+ to the beginning of the selection if the option SelectedText is set,
+ and to the beginning of the document otherwise).
+ Initialize the "end of search" variables as well (end of doc or end of selection).
+ Swap begin and end if FindBackwards.
+ Finally, call slotReplaceNext();
+ <pre>
+ void slotReplaceNext()
+ {
+ KFind.Result res = KFind.NoMatch;
+ while ( res == KFind.NoMatch && <position not at end> ) {
+ if ( m_replace.needData() )
+ m_replace.setData( <current text fragment> );
+ // Let KReplace inspect the text fragment, and display a dialog if a match is found
+ res = m_replace.replace();
+ if ( res == KFind.NoMatch ) {
+ <Move to the next text fragment, honoring the FindBackwards setting for the direction>
+ }
+ }
+ if ( res == KFind.NoMatch ) // i.e. at end
+ <Call either m_replace.displayFinalDialog(); delete m_replace; m_replace = null;
+ or if ( m_replace.shouldRestart() ) { reinit (w/o FromCursor) and call slotReplaceNext(); }
+ else { m_replace.closeReplaceNextDialog(); }>
+ }
+ </pre>
+ Don't forget delete m_find in the destructor of your class,
+ unless you gave it a parent widget on construction.
+ See {@link KReplaceSignals} for signals emitted by KReplace
+ @author S.R.Haque <srhaque@iee.org>, David Faure <faure@kde.org>
+
+ @short @brief A generic implementation of the "replace" function.
+
+*/
+public class KReplace extends KFind {
+ protected KReplace(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Only use this constructor if you don't use KFindDialog, or if
+ you use it as a modal dialog.
+ @short Only use this constructor if you don't use KFindDialog, or if you use it as a modal dialog.
+ */
+ public KReplace(String pattern, String replacement, long options, QWidget parent) {
+ super((Class) null);
+ newKReplace(pattern,replacement,options,parent);
+ }
+ private native void newKReplace(String pattern, String replacement, long options, QWidget parent);
+ public KReplace(String pattern, String replacement, long options) {
+ super((Class) null);
+ newKReplace(pattern,replacement,options);
+ }
+ private native void newKReplace(String pattern, String replacement, long options);
+ /**
+ This is the recommended constructor if you also use KReplaceDialog (non-modal).
+ You should pass the pointer to it here, so that when a message box
+ appears it has the right parent. Don't worry about deletion, KReplace
+ will notice if the find dialog is closed.
+ @short This is the recommended constructor if you also use KReplaceDialog (non-modal).
+ */
+ public KReplace(String pattern, String replacement, long options, QWidget parent, QWidget replaceDialog) {
+ super((Class) null);
+ newKReplace(pattern,replacement,options,parent,replaceDialog);
+ }
+ private native void newKReplace(String pattern, String replacement, long options, QWidget parent, QWidget replaceDialog);
+ /**
+ Return the number of replacements made (i.e. the number of times
+ the replace signal was emitted).
+ Can be used in a dialog box to tell the user how many replacements were made.
+ The final dialog does so already, unless you used setDisplayFinalDialog(false).
+ @short Return the number of replacements made (i.
+ */
+ public native int numReplacements();
+ /**
+ Call this to reset the numMatches & numReplacements counts.
+ Can be useful if reusing the same KReplace for different operations,
+ or when restarting from the beginning of the document.
+ @short Call this to reset the numMatches & numReplacements counts.
+ */
+ public native void resetCounts();
+ /**
+ Walk the text fragment (e.g. kwrite line, kspread cell) looking for matches.
+ For each match, if prompt-on-replace is specified, emits the highlight() signal
+ and displays the prompt-for-replace dialog before doing the replace.
+ @short Walk the text fragment (e.
+ */
+ public native int replace();
+ /**
+ Return (or create) the dialog that shows the "find next?" prompt.
+ Usually you don't need to call this.
+ One case where it can be useful, is when the user selects the "Find"
+ menu item while a find operation is under way. In that case, the
+ program may want to call setActiveWindow() on that dialog.
+ @short Return (or create) the dialog that shows the "find next?" prompt.
+ */
+ public native KDialogBase replaceNextDialog(boolean create);
+ public native KDialogBase replaceNextDialog();
+ /**
+ Close the "replace next?" dialog. The application should do this when
+ the last match was hit. If the application deletes the KReplace, then
+ "find previous" won't be possible anymore.
+ @short Close the "replace next?" dialog.
+ */
+ public native void closeReplaceNextDialog();
+ /**
+ Returns true if we should restart the search from scratch.
+ Can ask the user, or return false (if we already searched/replaced the
+ whole document without the PromptOnReplace option).
+ @param forceAsking set to true if the user modified the document during the
+ search. In that case it makes sense to restart the search again.
+ @param showNumMatches set to true if the dialog should show the number of
+ matches. Set to false if the application provides a "find previous" action,
+ in which case the match count will be erroneous when hitting the end,
+ and we could even be hitting the beginning of the document (so not all
+ matches have even been seen).
+ @short Returns true if we should restart the search from scratch.
+ */
+ public native boolean shouldRestart(boolean forceAsking, boolean showNumMatches);
+ public native boolean shouldRestart(boolean forceAsking);
+ public native boolean shouldRestart();
+ /**
+ Displays the final dialog telling the user how many replacements were made.
+ Call either this or shouldRestart().
+ @short Displays the final dialog telling the user how many replacements were made.
+ */
+ public native void displayFinalDialog();
+ /**
+ Search the given string, replaces with the given replacement string,
+ and returns whether a match was found. If one is,
+ the replacement string length is also returned.
+ A performance optimised version of the function is provided for use
+ with regular expressions.
+ @param text The string to search.
+ @param pattern The pattern to look for.
+ @param replacement The replacement string to insert into the text.
+ @param index The starting index into the string.
+ @param options The options to use.
+ @param replacedLength Output parameter, contains the length of the replaced string.
+ Not always the same as replacement.length(), when backreferences are used.
+ @return The index at which a match was found, or -1 if no match was found.
+
+ @short Search the given string, replaces with the given replacement string, and returns whether a match was found.
+ */
+ public static native int replace(StringBuffer text, String pattern, String replacement, int index, long options, int[] replacedLength);
+ public static native int replace(StringBuffer text, QRegExp pattern, String replacement, int index, long options, int[] replacedLength);
+ protected native void slotSkip();
+ protected native void slotReplace();
+ protected native void slotReplaceAll();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KReplaceDialog.java b/kdejava/koala/org/kde/koala/KReplaceDialog.java
new file mode 100644
index 00000000..96ae0c90
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KReplaceDialog.java
@@ -0,0 +1,132 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ <b></b>etail:
+ This widget inherits from KFindDialog and implements
+ the following additional functionalities: a replacement string
+ object and an area for a user-defined widget to extend the dialog.
+ <b></b>xample:
+ To use the basic replace dialog:
+ <pre>
+ </pre>
+ To use your own extensions:
+ <pre>
+ </pre>
+ @author S.R.Haque <srhaque@iee.org>
+
+ @short A generic "replace" dialog.
+
+*/
+public class KReplaceDialog extends KFindDialog {
+ protected KReplaceDialog(Class dummy){super((Class) null);}
+ public static final int PromptOnReplace = 256;
+ public static final int BackReference = 512;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a replace dialog.read-only or rather select-only combo box with a
+ parent object and a name.
+ @param parent The parent object of this widget
+ @param name The name of this widget
+ @param options A bitfield of the Options to be enabled.
+ @param findStrings A String[] to insert in the combo box of text to find
+ @param replaceStrings A String[] to insert in the combo box of text to
+ replace with
+ @param hasSelection Whether a selection exists
+ @short Construct a replace dialog.
+ */
+ public KReplaceDialog(QWidget parent, String name, long options, String[] findStrings, String[] replaceStrings, boolean hasSelection) {
+ super((Class) null);
+ newKReplaceDialog(parent,name,options,findStrings,replaceStrings,hasSelection);
+ }
+ private native void newKReplaceDialog(QWidget parent, String name, long options, String[] findStrings, String[] replaceStrings, boolean hasSelection);
+ public KReplaceDialog(QWidget parent, String name, long options, String[] findStrings, String[] replaceStrings) {
+ super((Class) null);
+ newKReplaceDialog(parent,name,options,findStrings,replaceStrings);
+ }
+ private native void newKReplaceDialog(QWidget parent, String name, long options, String[] findStrings, String[] replaceStrings);
+ public KReplaceDialog(QWidget parent, String name, long options, String[] findStrings) {
+ super((Class) null);
+ newKReplaceDialog(parent,name,options,findStrings);
+ }
+ private native void newKReplaceDialog(QWidget parent, String name, long options, String[] findStrings);
+ public KReplaceDialog(QWidget parent, String name, long options) {
+ super((Class) null);
+ newKReplaceDialog(parent,name,options);
+ }
+ private native void newKReplaceDialog(QWidget parent, String name, long options);
+ public KReplaceDialog(QWidget parent, String name) {
+ super((Class) null);
+ newKReplaceDialog(parent,name);
+ }
+ private native void newKReplaceDialog(QWidget parent, String name);
+ public KReplaceDialog(QWidget parent) {
+ super((Class) null);
+ newKReplaceDialog(parent);
+ }
+ private native void newKReplaceDialog(QWidget parent);
+ public KReplaceDialog() {
+ super((Class) null);
+ newKReplaceDialog();
+ }
+ private native void newKReplaceDialog();
+ /**
+ Provide the list of <code>strings</code> to be displayed as the history
+ of replacement strings. <code>strings</code> might get truncated if it is
+ too long.
+ @param history The replacement history.
+ @short Provide the list of <code>strings</code> to be displayed as the history of replacement strings.
+ @see #replacementHistory
+ */
+ public native void setReplacementHistory(String[] history);
+ /**
+ Returns the list of history items.
+ @short Returns the list of history items.
+ @see #setReplacementHistory
+ */
+ public native ArrayList replacementHistory();
+ /**
+ Set the options which are enabled.
+ @param options The setting of the Options.
+ @short Set the options which are enabled.
+ */
+ public native void setOptions(long options);
+ /**
+ Returns the state of the options. Disabled options may be returned in
+ an indeterminate state.
+ @short Returns the state of the options.
+ @see #setOptions
+ */
+ public native long options();
+ /**
+ Returns the replacement string.
+ @short Returns the replacement string.
+ */
+ public native String replacement();
+ /**
+ Returns an empty widget which the user may fill with additional UI
+ elements as required. The widget occupies the width of the dialog,
+ and is positioned immediately the regular expression support widgets
+ for the replacement string.
+ @short Returns an empty widget which the user may fill with additional UI elements as required.
+ */
+ public native QWidget replaceExtension();
+ protected native void slotOk();
+ public native void showEvent(QShowEvent arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KReplaceSignals.java b/kdejava/koala/org/kde/koala/KReplaceSignals.java
new file mode 100644
index 00000000..012abc7f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KReplaceSignals.java
@@ -0,0 +1,24 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QRegExp;
+import org.kde.qt.QWidget;
+
+public interface KReplaceSignals {
+ /**
+ Connect to this slot to implement updating of replaced text during the replace
+ operation.
+ Extra care must be taken to properly implement the "no prompt-on-replace" case.
+ For instance highlight isn't emitted in that case (some code might rely on it),
+ and for performance reasons one should repaint after replace() ONLY if
+ prompt-on-replace was selected.
+ @param text The text, in which the replacement has already been done.
+ @param replacementIndex Starting index of the matched substring
+ @param replacedLength Length of the replacement string
+ @param matchedLength Length of the matched string
+ @short Connect to this slot to implement updating of replaced text during the replace operation.
+ */
+ void replace(String text, int replacementIndex, int replacedLength, int matchedLength);
+}
diff --git a/kdejava/koala/org/kde/koala/KRestrictedLine.java b/kdejava/koala/org/kde/koala/KRestrictedLine.java
new file mode 100644
index 00000000..9eda581b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRestrictedLine.java
@@ -0,0 +1,76 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ The KRestrictedLine widget is a variant of QLineEdit which
+ accepts only a restricted set of characters as input.
+ All other characters will be discarded and the signal invalidChar()
+ will be emitted for each of them.
+ Valid characters can be passed as a String to the constructor
+ or set afterwards via setValidChars().
+ The default key bindings of QLineEdit are still in effect.
+ See {@link KRestrictedLineSignals} for signals emitted by KRestrictedLine
+ @author Michael Wiedmann <mw@miwie.in-berlin.de>
+
+ @short A line editor for restricted character sets.
+
+*/
+public class KRestrictedLine extends KLineEdit {
+ protected KRestrictedLine(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor: This contructor takes three - optional - arguments.
+ The first two parameters are simply passed on to QLineEdit.
+ @param parent pointer to the parent widget
+ @param name pointer to the name of this widget
+ @param valid pointer to set of valid characters
+ @short Constructor: This contructor takes three - optional - arguments.
+ */
+ public KRestrictedLine(QWidget parent, String name, String valid) {
+ super((Class) null);
+ newKRestrictedLine(parent,name,valid);
+ }
+ private native void newKRestrictedLine(QWidget parent, String name, String valid);
+ public KRestrictedLine(QWidget parent, String name) {
+ super((Class) null);
+ newKRestrictedLine(parent,name);
+ }
+ private native void newKRestrictedLine(QWidget parent, String name);
+ public KRestrictedLine(QWidget parent) {
+ super((Class) null);
+ newKRestrictedLine(parent);
+ }
+ private native void newKRestrictedLine(QWidget parent);
+ public KRestrictedLine() {
+ super((Class) null);
+ newKRestrictedLine();
+ }
+ private native void newKRestrictedLine();
+ /**
+ All characters in the string valid are treated as
+ acceptable characters.
+ @short All characters in the string valid are treated as acceptable characters.
+ */
+ public native void setValidChars(String valid);
+ /**
+ @return the string of acceptable characters.
+
+ @short
+ */
+ public native String validChars();
+ protected native void keyPressEvent(QKeyEvent e);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KRestrictedLineSignals.java b/kdejava/koala/org/kde/koala/KRestrictedLineSignals.java
new file mode 100644
index 00000000..0cac2d94
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRestrictedLineSignals.java
@@ -0,0 +1,15 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+
+public interface KRestrictedLineSignals {
+ /**
+ Emitted when an invalid character was typed.
+ @short Emitted when an invalid character was typed.
+ */
+ void invalidChar(int arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KRootPermsIcon.java b/kdejava/koala/org/kde/koala/KRootPermsIcon.java
new file mode 100644
index 00000000..3d85489a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRootPermsIcon.java
@@ -0,0 +1,49 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ Icon to show whether or not a user has root permissions.
+ @author Preston Brown <pbrown@kde.org>
+
+ @short Icon to show whether or not a user has root permissions.
+ @see KAuthIcon
+
+*/
+public class KRootPermsIcon extends KAuthIcon {
+ protected KRootPermsIcon(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KRootPermsIcon(QWidget parent, String name) {
+ super((Class) null);
+ newKRootPermsIcon(parent,name);
+ }
+ private native void newKRootPermsIcon(QWidget parent, String name);
+ public KRootPermsIcon(QWidget parent) {
+ super((Class) null);
+ newKRootPermsIcon(parent);
+ }
+ private native void newKRootPermsIcon(QWidget parent);
+ public KRootPermsIcon() {
+ super((Class) null);
+ newKRootPermsIcon();
+ }
+ private native void newKRootPermsIcon();
+ /**
+ return whether or not the current user has root permissions.
+ @short return whether or not the current user has root permissions.
+ */
+ public native boolean status();
+ public native void updateStatus();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KRootPixmap.java b/kdejava/koala/org/kde/koala/KRootPixmap.java
new file mode 100644
index 00000000..5c862842
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRootPixmap.java
@@ -0,0 +1,182 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ Creates pseudo-transparent widgets.
+ A pseudo-transparent widget is a widget with its background pixmap set to
+ that part of the desktop background that it is currently obscuring. This
+ gives a transparency effect.
+ To create a transparent widget, construct a KRootPixmap and pass it a
+ pointer to your widget. That's it! Moving, resizing and background changes
+ are handled automatically.
+ Instead of using the default behavior, you can ask KRootPixmap
+ to emit a backgroundUpdated(QPixmap) signal whenever
+ the background needs updating by using setCustomPainting(boolean).
+ Alternatively by reimplementing updateBackground(KSharedPixmap)
+ you can take complete control of the behavior.
+ See {@link KRootPixmapSignals} for signals emitted by KRootPixmap
+ @author Geert Jansen <jansen@kde.org>
+
+ @version $Id$
+
+ @short Creates pseudo-transparent widgets.
+
+*/
+public class KRootPixmap extends QObject {
+ protected KRootPixmap(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KRootPixmap. The KRootPixmap will be created as a child
+ of the target widget so it will be deleted automatically when the
+ widget is destroyed.
+ @param target A pointer to the widget that you want to make pseudo
+ transparent.
+ @param name The internal name of the pixmap
+ @short Constructs a KRootPixmap.
+ */
+ public KRootPixmap(QWidget target, String name) {
+ super((Class) null);
+ newKRootPixmap(target,name);
+ }
+ private native void newKRootPixmap(QWidget target, String name);
+ public KRootPixmap(QWidget target) {
+ super((Class) null);
+ newKRootPixmap(target);
+ }
+ private native void newKRootPixmap(QWidget target);
+ /**
+ Constructs a KRootPixmap where the parent QObject and target QWidget are
+ different.
+ @short Constructs a KRootPixmap where the parent QObject and target QWidget are different.
+ */
+ public KRootPixmap(QWidget target, QObject parent, String name) {
+ super((Class) null);
+ newKRootPixmap(target,parent,name);
+ }
+ private native void newKRootPixmap(QWidget target, QObject parent, String name);
+ public KRootPixmap(QWidget target, QObject parent) {
+ super((Class) null);
+ newKRootPixmap(target,parent);
+ }
+ private native void newKRootPixmap(QWidget target, QObject parent);
+ /**
+ Checks if pseudo-transparency is available.
+ @return <code>true</code> if transparency is available, <code>false</code> otherwise.
+
+ @short Checks if pseudo-transparency is available.
+ */
+ public native boolean isAvailable();
+ /**
+ Returns true if the KRootPixmap is active.
+ @short Returns true if the KRootPixmap is active.
+ */
+ public native boolean isActive();
+ /**
+ Returns the number of the current desktop.
+ @short Returns the number of the current desktop.
+ */
+ public native int currentDesktop();
+ /**
+ Returns true if custom painting is enabled, false otherwise.
+ @short Returns true if custom painting is enabled, false otherwise.
+ @see #setCustomPainting(boolean)
+ */
+ public native boolean customPainting();
+ /** @since 3.2
+ @return the fade color.
+
+ @short @since 3.
+ */
+ public native QColor color();
+ /** @since 3.2
+ @return the color opacity.
+
+ @short @since 3.
+ */
+ public native double opacity();
+ /**
+ Starts background handling.
+ @short Starts background handling.
+ */
+ public native void start();
+ /**
+ Stops background handling.
+ @short Stops background handling.
+ */
+ public native void stop();
+ /**
+ Sets the fade effect.
+ This effect will fade the background to the
+ specified color.
+ @param opacity A value between 0 and 1, indicating the opacity
+ of the color. A value of 0 will not change the image, a value of 1
+ will use the fade color unchanged.
+ @param color The color to fade to.
+ @short Sets the fade effect.
+ */
+ public native void setFadeEffect(double opacity, QColor color);
+ /**
+ Repaints the widget background. Normally, you shouldn't need this
+ as it is handled automatically.
+ @param force Force a repaint, even if the contents did not change.
+ @short Repaints the widget background.
+ */
+ public native void repaint(boolean force);
+ /**
+ Repaints the widget background. Normally, you shouldn't need this
+ as it is handled automatically. This is equivalent to calling
+ repaint( false ).
+ @short Repaints the widget background.
+ */
+ public native void repaint();
+ /**
+ Enables custom handling of the background painting. If custom
+ painting is enabled then KRootPixmap will emit a
+ backgroundUpdated() signal when the background for the
+ target widget changes, instead of applying the new background.
+ @short Enables custom handling of the background painting.
+ */
+ public native void setCustomPainting(boolean enable);
+ /**
+ Asks KDesktop to export the desktop background as a KSharedPixmap.
+ This method uses DCOP to call KBackgroundIface/setExport(int).
+ @short Asks KDesktop to export the desktop background as a KSharedPixmap.
+ */
+ public native void enableExports();
+ /**
+ Returns the name of the shared pixmap (only needed for low level access)
+ @short Returns the name of the shared pixmap (only needed for low level access)
+ */
+ public static native String pixmapName(int desk);
+ /**
+ Reimplemented to filter the events from the target widget and
+ track its movements.
+ @short Reimplemented to filter the events from the target widget and track its movements.
+ */
+ public native boolean eventFilter(QObject arg1, QEvent arg2);
+ /**
+ Called when the pixmap has been updated. The default implementation
+ applies the fade effect, then sets the target's background, or emits
+ backgroundUpdated(QPixmap) depending on the painting mode.
+ @short Called when the pixmap has been updated.
+ */
+ // void updateBackground(KSharedPixmap* arg1); >>>> NOT CONVERTED
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KRootPixmapSignals.java b/kdejava/koala/org/kde/koala/KRootPixmapSignals.java
new file mode 100644
index 00000000..b1331a82
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRootPixmapSignals.java
@@ -0,0 +1,20 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+public interface KRootPixmapSignals {
+ /**
+ Emitted when the background needs updating and custom painting
+ (see setCustomPainting(boolean) ) is enabled.
+ @param pm A pixmap containing the new background.
+ @short Emitted when the background needs updating and custom painting (see setCustomPainting(bool) ) is enabled.
+ */
+ void backgroundUpdated(QPixmap pm);
+}
diff --git a/kdejava/koala/org/kde/koala/KRootProp.java b/kdejava/koala/org/kde/koala/KRootProp.java
new file mode 100644
index 00000000..1d33472f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRootProp.java
@@ -0,0 +1,186 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QFont;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ Access KDE desktop resources stored on the root window.
+ A companion to the KConfig class.
+ The KRootProp class is used for reading and writing configuration entries
+ to properties on the root window.
+ All configuration entries are of the form "key=value".
+ @author Mark Donohoe (donohe@kde.org)
+
+ @short Access KDE desktop resources stored on the root window.
+ @see KConfig#KConfig
+
+*/
+public class KRootProp implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KRootProp(Class dummy){}
+
+ /**
+ Constructs a KRootProp object for the property <code>rProp.</code>
+ @param rProp the property that will be searched, null to
+ do nothing
+ @short Constructs a KRootProp object for the property <code>rProp.</code>
+ @see #setProp
+ */
+ public KRootProp(String rProp) {
+ newKRootProp(rProp);
+ }
+ private native void newKRootProp(String rProp);
+ public KRootProp() {
+ newKRootProp();
+ }
+ private native void newKRootProp();
+ /**
+ Sets the property in which keys will be searched.
+ @param rProp the property that will be searched
+ @short Sets the property in which keys will be searched.
+ */
+ public native void setProp(String rProp);
+ public native void setProp();
+ /**
+ Returns the name of the property under which keys are searched.
+ @return the property that will be searched
+
+ @short Returns the name of the property under which keys are searched.
+ */
+ public native String prop();
+ /**
+ Destroys the property completely.
+ I.e. all entries will be cleared
+ and the property will be removed from the root window.
+ @short Destroys the property completely.
+ */
+ public native void destroy();
+ /**
+ Reads the value of an entry specified by <code>rKey</code> in the current property.
+ @param rKey The key to search for.
+ @param pDefault A default value returned if the key was not found.
+ @return The value for this key or the default if no value
+ was found.
+
+ @short Reads the value of an entry specified by <code>rKey</code> in the current property.
+ */
+ public native String readEntry(String rKey, String pDefault);
+ public native String readEntry(String rKey);
+ /**
+ Reads a numerical value.
+ Reads the value of an entry specified by <code>rKey</code> in the current property
+ and interprets it numerically.
+ @param rKey The key to search for.
+ @param nDefault A default value returned if the key was not found.
+ @return The value for this key or the default if no value was found.
+
+ @short Reads a numerical value.
+ */
+ public native int readNumEntry(String rKey, int nDefault);
+ public native int readNumEntry(String rKey);
+ /**
+ Reads a QFont value.
+ Reads the value of an entry specified by <code>rKey</code> in the current property
+ and interpret it as a font object.
+ @param rKey The key to search for.
+ @param pDefault A default value returned if the key was not found.
+ @return The value for this key or a default font if no value was found.
+
+ @short Reads a QFont value.
+ */
+ public native QFont readFontEntry(String rKey, QFont pDefault);
+ public native QFont readFontEntry(String rKey);
+ /**
+ Reads a QColor.
+ Reads the value of an entry specified by <code>rKey</code> in the current property
+ and interprets it as a color.
+ @param rKey The key to search for.
+ @param pDefault A default value returned if the key was not found.
+ @return The value for this key or a default color if no value
+ was found.
+
+ @short Reads a QColor.
+ */
+ public native QColor readColorEntry(String rKey, QColor pDefault);
+ public native QColor readColorEntry(String rKey);
+ /**
+ Writes a (key/value) pair.
+ This is stored to the current property when destroying the
+ config object or when calling sync().
+ @param rKey The key to write.
+ @param rValue The value to write.
+ @return The old value for this key. If this key did not exist,
+ a null string is returned.
+
+ @short Writes a (key/value) pair.
+ */
+ public native String writeEntry(String rKey, String rValue);
+ /**
+ Writes the (key/value) pair.
+ Same as above, but writes a numerical value.
+ @param rKey The key to write.
+ @param nValue The value to write.
+ @return The old value for this key. If this key did not
+ exist, a null string is returned.
+
+ @short Writes the (key/value) pair.
+ */
+ public native String writeEntry(String rKey, int nValue);
+ /**
+ Writes the (key/value) pair.
+ Same as above, but writes a font.
+ @param rKey The key to write.
+ @param rFont The font to write.
+ @return The old value for this key. If this key did not
+ exist, a null string is returned.
+
+ @short Writes the (key/value) pair.
+ */
+ public native String writeEntry(String rKey, QFont rFont);
+ /**
+ Writes the (key/value) pair.
+ Same as above, but writes a color.
+ @param rKey The key to write.
+ @param rColor The color to write.
+ @return The old value for this key. If this key did not
+ exist, a null string is returned.
+
+ @short Writes the (key/value) pair.
+ */
+ public native String writeEntry(String rKey, QColor rColor);
+ /**
+ Removes an entry.
+ @param rKey The key to remove.
+ @return The old value for this key. If this key did not
+ exist, a null string is returned.
+
+ @short Removes an entry.
+ */
+ public native String removeEntry(String rKey);
+ /**
+ Returns a list of all keys.
+ @return An ArrayList containing all the keys.
+
+ @short Returns a list of all keys.
+ */
+ public native ArrayList listEntries();
+ /**
+ Flushes the entry cache.
+ Writes back dirty configuration entries to the current property,
+ This is called automatically from the destructor.
+ @short Flushes the entry cache.
+ */
+ public native void sync();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KRuler.java b/kdejava/koala/org/kde/koala/KRuler.java
new file mode 100644
index 00000000..fc360b4d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRuler.java
@@ -0,0 +1,386 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPainter;
+import org.kde.qt.QWidget;
+import org.kde.qt.QFrame;
+
+/**
+
+ A ruler widget.
+ The vertical ruler looks similar to this:
+<pre>
+ meters inches
+ ------ <--- end mark --. ------
+ -- -
+ -- <---little mark--. --
+ -- -
+ -- ---
+ --- <---medium mark -
+ -- --
+ -- tiny mark---. -
+ -- ----
+ -- -
+ ---- <-----big mark --
+ -- -
+ |>-- <--ruler pointer-. |>--
+ </pre>
+ There are tiny marks, little marks, medium marks, and big marks along the
+ ruler.
+ To receive mouse clicks or mouse moves,
+ the class has to be overloaded.
+ For performance reasons, the public methods don't call QWidget.repaint().
+ (Slots do, see documentation below.)
+ All the changed settings will be painted once after leaving
+ to the main event loop.
+ For performance painting the slot methods should be used,
+ they do a fast QWidget.repaint() call after changing the values.
+ For setting multiple values like minValue(), maxValue(), offset() etc.
+ using the public methods is recommended
+ so the widget will be painted only once when entering the main event loop.
+ @author Jorg Habenicht
+
+ @short A ruler widget.
+
+*/
+public class KRuler extends QFrame {
+ protected KRuler(Class dummy){super((Class) null);}
+ /**
+ The types of units used.
+ @short The types of units used.
+ */
+ public static final int Custom = 0;
+ public static final int Pixel = 1;
+ public static final int Inch = 2;
+ public static final int Millimetres = 3;
+ public static final int Centimetres = 4;
+ public static final int Metres = 5;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a horizontal ruler.
+ @short Constructs a horizontal ruler.
+ */
+ public KRuler(QWidget parent, String name) {
+ super((Class) null);
+ newKRuler(parent,name);
+ }
+ private native void newKRuler(QWidget parent, String name);
+ public KRuler(QWidget parent) {
+ super((Class) null);
+ newKRuler(parent);
+ }
+ private native void newKRuler(QWidget parent);
+ public KRuler() {
+ super((Class) null);
+ newKRuler();
+ }
+ private native void newKRuler();
+ /**
+ Constructs a ruler with orientation <code>orient.</code>
+ <code>parent</code>, <code>name</code> and <code>f</code> are passed to QFrame.
+ The default look is a raised widget
+ but may be changed with the inherited QFrame methods.
+ @param orient Orientation of the ruler.
+ @param parent Will be handed over to QFrame.
+ @param name Will be handed over to QFrame.
+ @param f Will be handed over to QFrame.
+ @short Constructs a ruler with orientation <code>orient.</code>
+ */
+ public KRuler(int orient, QWidget parent, String name, int f) {
+ super((Class) null);
+ newKRuler(orient,parent,name,f);
+ }
+ private native void newKRuler(int orient, QWidget parent, String name, int f);
+ public KRuler(int orient, QWidget parent, String name) {
+ super((Class) null);
+ newKRuler(orient,parent,name);
+ }
+ private native void newKRuler(int orient, QWidget parent, String name);
+ public KRuler(int orient, QWidget parent) {
+ super((Class) null);
+ newKRuler(orient,parent);
+ }
+ private native void newKRuler(int orient, QWidget parent);
+ public KRuler(int orient) {
+ super((Class) null);
+ newKRuler(orient);
+ }
+ private native void newKRuler(int orient);
+ /**
+ Constructs a ruler with orientation <code>orient</code> and initial width <code>widgetWidth.</code>
+ The width sets the fixed width of the widget. This is useful if you
+ want to draw the ruler bigger or smaller than the default size.
+ Note: The size of the marks doesn't change.
+ <code>parent</code>, <code>name</code> and <code>f</code> are passed to QFrame.
+ @param orient Orientation of the ruler.
+ @param widgetWidth Fixed width of the widget.
+ @param parent Will be handed over to QFrame.
+ @param name Will be handed over to QFrame.
+ @param f Will be handed over to QFrame.
+ @short Constructs a ruler with orientation <code>orient</code> and initial width <code>widgetWidth.</code>
+ */
+ public KRuler(int orient, int widgetWidth, QWidget parent, String name, int f) {
+ super((Class) null);
+ newKRuler(orient,widgetWidth,parent,name,f);
+ }
+ private native void newKRuler(int orient, int widgetWidth, QWidget parent, String name, int f);
+ public KRuler(int orient, int widgetWidth, QWidget parent, String name) {
+ super((Class) null);
+ newKRuler(orient,widgetWidth,parent,name);
+ }
+ private native void newKRuler(int orient, int widgetWidth, QWidget parent, String name);
+ public KRuler(int orient, int widgetWidth, QWidget parent) {
+ super((Class) null);
+ newKRuler(orient,widgetWidth,parent);
+ }
+ private native void newKRuler(int orient, int widgetWidth, QWidget parent);
+ public KRuler(int orient, int widgetWidth) {
+ super((Class) null);
+ newKRuler(orient,widgetWidth);
+ }
+ private native void newKRuler(int orient, int widgetWidth);
+ /**
+ Sets the minimal value of the ruler pointer (default is 0).
+ This method calls update() so that the widget is painted after leaving
+ to the main event loop.
+ @short Sets the minimal value of the ruler pointer (default is 0).
+ */
+ public native void setMinValue(int arg1);
+ /**
+ Returns the minimal value of the ruler pointer.
+ @short Returns the minimal value of the ruler pointer.
+ */
+ public native int minValue();
+ /**
+ Sets the maximum value of the ruler pointer (default is 100).
+ This method calls update() so that the widget is painted after leaving
+ to the main event loop.
+ @short Sets the maximum value of the ruler pointer (default is 100).
+ */
+ public native void setMaxValue(int arg1);
+ /**
+ Returns the maximal value of the ruler pointer.
+ @short Returns the maximal value of the ruler pointer.
+ */
+ public native int maxValue();
+ /**
+ Sets minimum and maximum values of the ruler pointer.
+ This method calls update() so that the widget is painted after leaving
+ to the main event loop.
+ @short Sets minimum and maximum values of the ruler pointer.
+ */
+ public native void setRange(int min, int max);
+ /**
+ Sets the value of the ruler pointer.
+ The value is indicated by painting the ruler pointer at the
+ corresponding position.
+ This method calls update() so that the widget is painted after leaving
+ to the main event loop.
+ @short Sets the value of the ruler pointer.
+ */
+ public native void setValue(int arg1);
+ public native int value();
+ /**
+ Sets the distance between tiny marks.
+ This is mostly used in the English system (inches) with distance of 1.
+ @short Sets the distance between tiny marks.
+ */
+ public native void setTinyMarkDistance(int arg1);
+ /**
+ Returns the distance between tiny marks.
+ @short Returns the distance between tiny marks.
+ */
+ public native int tinyMarkDistance();
+ /**
+ Sets the distance between little marks.
+ The default value is 1 in the metric system and 2 in the English (inches) system.
+ @short Sets the distance between little marks.
+ */
+ public native void setLittleMarkDistance(int arg1);
+ /**
+ Returns the distance between little marks.
+ @short Returns the distance between little marks.
+ */
+ public native int littleMarkDistance();
+ /**
+ Sets the distance between medium marks.
+ For English (inches) styles it defaults to twice the little mark distance.
+ For metric styles it defaults to five times the little mark distance.
+ @short Sets the distance between medium marks.
+ */
+ public native void setMediumMarkDistance(int arg1);
+ public native int mediumMarkDistance();
+ /**
+ Sets distance between big marks.
+ For English (inches) or metric styles it is twice the medium mark distance.
+ @short Sets distance between big marks.
+ */
+ public native void setBigMarkDistance(int arg1);
+ /**
+ Returns the distance between big marks.
+ @short Returns the distance between big marks.
+ */
+ public native int bigMarkDistance();
+ /**
+ Shows/hides tiny marks.
+ @short Shows/hides tiny marks.
+ */
+ public native void setShowTinyMarks(boolean arg1);
+ public native boolean showTinyMarks();
+ /**
+ Shows/hides little marks.
+ @short Shows/hides little marks.
+ */
+ public native void setShowLittleMarks(boolean arg1);
+ public native boolean showLittleMarks();
+ /**
+ Shows/hides medium marks.
+ @short Shows/hides medium marks.
+ */
+ public native void setShowMediumMarks(boolean arg1);
+ public native boolean showMediumMarks();
+ /**
+ Shows/hides big marks.
+ @short Shows/hides big marks.
+ */
+ public native void setShowBigMarks(boolean arg1);
+ public native boolean showBigMarks();
+ /**
+ Shows/hides end marks.
+ @short Shows/hides end marks.
+ */
+ public native void setShowEndMarks(boolean arg1);
+ public native boolean showEndMarks();
+ /**
+ Shows/hides the pointer.
+ @short Shows/hides the pointer.
+ */
+ public native void setShowPointer(boolean arg1);
+ public native boolean showPointer();
+ /**
+ Show/hide number values of the end marks.
+ Default is <code>false.</code>
+ @short Show/hide number values of the end marks.
+ */
+ public native void setShowEndLabel(boolean arg1);
+ public native boolean showEndLabel();
+ /**
+ Sets the label this is drawn at the beginning of the visible part
+ of the ruler to <code>label</code>
+ @short Sets the label this is drawn at the beginning of the visible part of the ruler to <code>label</code>
+ */
+ public native void setEndLabel(String arg1);
+ public native String endLabel();
+ /**
+ Sets up the necessary tasks for the provided styles.
+ A convenience method.
+ @short Sets up the necessary tasks for the provided styles.
+ */
+ public native void setRulerMetricStyle(int arg1);
+ /**
+ Sets the number of pixels between two base marks.
+ Calling this method stretches or shrinks your ruler.
+ For pixel display ( MetricStyle) the value is 10.0 marks
+ per pixel ;-)
+ For English (inches) it is 9.0, and for centimetres ~2.835 . 3.0 .
+ If you want to magnify your part of display, you have to
+ adjust the mark distance <code>here.</code>
+ Notice: The double type is only supported to give the possibility
+ of having some double values.
+ It should be used with care. Using values below 10.0
+ shows visible jumps of markpositions (e.g. 2.345).
+ Using whole numbers is highly recommended.
+ To use <code>int</code> values use setPixelPerMark((int)your_int_value);
+ default: 1 mark per 10 pixels
+ @short Sets the number of pixels between two base marks.
+ */
+ public native void setPixelPerMark(double rate);
+ /**
+ Returns the number of pixels between two base marks.
+ @short Returns the number of pixels between two base marks.
+ */
+ public native double pixelPerMark();
+ /**
+ Sets the length of the ruler, i.e. the difference between
+ the begin mark and the end mark of the ruler.
+ Same as (width() - offset())
+ when the length is not locked, it gets adjusted with the
+ length of the widget.
+ @short Sets the length of the ruler, i.
+ */
+ public native void setLength(int arg1);
+ public native int length();
+ /**
+ Locks the length of the ruler, i.e. the difference between
+ the two end marks doesn't change when the widget is resized.
+ @param fix fixes the length, if true
+ @short Locks the length of the ruler, i.
+ */
+ public native void setLengthFixed(boolean fix);
+ public native boolean lengthFixed();
+ /**
+ Sets the number of pixels by which the ruler may slide up or left.
+ The number of pixels moved is realive to the previous position.
+ The Method makes sense for updating a ruler, which is working with
+ a scrollbar.
+ This doesn't affect the position of the ruler pointer.
+ Only the visible part of the ruler is moved.
+ @param count Number of pixel moving up or left relative to the previous position
+ @short Sets the number of pixels by which the ruler may slide up or left.
+ */
+ public native void slideUp(int count);
+ public native void slideUp();
+ /**
+ Sets the number of pixels by which the ruler may slide down or right.
+ The number of pixels moved is realive to the previous position.
+ The Method makes sense for updating a ruler, which is working with
+ a scrollbar.
+ This doesn't affect the position of the ruler pointer.
+ Only the visible part of the ruler is moved.
+ @param count Number of pixel moving up or left relative to the previous position
+ @short Sets the number of pixels by which the ruler may slide down or right.
+ */
+ public native void slideDown(int count);
+ public native void slideDown();
+ /**
+ Sets the ruler slide offset.
+ This is like slideup() or slidedown() with an absolute offset
+ from the start of the ruler.
+ @param offset Number of pixel to move the ruler up or left from the beginning
+ @short Sets the ruler slide offset.
+ */
+ public native void setOffset(int offset);
+ /**
+ Returns the current ruler offset.
+ @short Returns the current ruler offset.
+ */
+ public native int offset();
+ public native int endOffset();
+ /**
+ Sets the pointer to a new position.
+ The offset is NOT updated.
+ QWidget.repaint() is called afterwards.
+ @short Sets the pointer to a new position.
+ */
+ public native void slotNewValue(int arg1);
+ /**
+ Sets the ruler marks to a new position.
+ The pointer is NOT updated.
+ QWidget.repaint() is called afterwards.
+ @short Sets the ruler marks to a new position.
+ */
+ public native void slotNewOffset(int arg1);
+ public native void slotEndOffset(int arg1);
+ protected native void drawContents(QPainter arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KRun.java b/kdejava/koala/org/kde/koala/KRun.java
new file mode 100644
index 00000000..5f0d0497
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRun.java
@@ -0,0 +1,346 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ To open files with their associated applications in KDE, use KRun.
+ It can execute any desktop entry, as well as any file, using
+ the default application or another application "bound" to the file type
+ (or URL protocol).
+ In that example, the mimetype of the file is not known by the application,
+ so a KRun instance must be created. It will determine the mimetype by itself.
+ If the mimetype is known, or if you even know the service (application) to
+ use for this file, use one of the static methods.
+ By default KRun uses auto deletion. It causes the KRun instance to delete
+ itself when the it finished its task. If you allocate the KRun
+ object on the stack you must disable auto deletion, otherwise it will crash.
+ See {@link KRunSignals} for signals emitted by KRun
+ @short Opens files with their associated applications in KDE.
+
+*/
+public class KRun extends QObject {
+ protected KRun(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create a KRun object to run the preferred application for a file/URL.
+ KRun will first determine the type of the file, and will then
+ run the associated application.
+ @param url the URL of the file or directory to 'run'
+ @param mode The <code>st_mode</code> field of <tt>struct stat</tt>. If
+ you don't know this set it to 0.
+ @param isLocalFile If this parameter is set to <code>false</code> then <code>url</code> is
+ examined to find out whether it is a local URL or
+ not. This flag is just used to improve speed, since the
+ function KURL.isLocalFile is a bit slow.
+ @param showProgressInfo Whether to show progress information when determining the
+ type of the file (i.e. when using KIO.stat and KIO.mimetype)
+ Before you set this to false to avoid a dialog box, think about
+ a very slow FTP server...
+ It is always better to provide progress info in such cases.
+ @short Create a KRun object to run the preferred application for a file/URL.
+ */
+ public KRun(KURL url, long mode, boolean isLocalFile, boolean showProgressInfo) {
+ super((Class) null);
+ newKRun(url,mode,isLocalFile,showProgressInfo);
+ }
+ private native void newKRun(KURL url, long mode, boolean isLocalFile, boolean showProgressInfo);
+ public KRun(KURL url, long mode, boolean isLocalFile) {
+ super((Class) null);
+ newKRun(url,mode,isLocalFile);
+ }
+ private native void newKRun(KURL url, long mode, boolean isLocalFile);
+ public KRun(KURL url, long mode) {
+ super((Class) null);
+ newKRun(url,mode);
+ }
+ private native void newKRun(KURL url, long mode);
+ public KRun(KURL url) {
+ super((Class) null);
+ newKRun(url);
+ }
+ private native void newKRun(KURL url);
+ /**
+ BIC: Combine with the above ctor for KDE 4.0.
+ @param window The top-level widget of the app that invoked this object.
+ It is used to make sure private information like passwords
+ are properly handled per application.
+ @param url the URL of the file or directory to 'run'
+ @param mode The <code>st_mode</code> field of <tt>struct stat</tt>. If
+ you don't know this set it to 0.
+ @param isLocalFile If this parameter is set to <code>false</code> then <code>url</code> is
+ examined to find out whether it is a local URL or
+ not. This flag is just used to improve speed, since the
+ function KURL.isLocalFile is a bit slow.
+ @param showProgressInfo Whether to show progress information when determining the
+ type of the file (i.e. when using KIO.stat and KIO.mimetype)
+ Before you set this to false to avoid a dialog box, think about
+ a very slow FTP server...
+ It is always better to provide progress info in such cases.
+ @short BIC: Combine with the above ctor for KDE 4.
+ */
+ public KRun(KURL url, QWidget window, long mode, boolean isLocalFile, boolean showProgressInfo) {
+ super((Class) null);
+ newKRun(url,window,mode,isLocalFile,showProgressInfo);
+ }
+ private native void newKRun(KURL url, QWidget window, long mode, boolean isLocalFile, boolean showProgressInfo);
+ public KRun(KURL url, QWidget window, long mode, boolean isLocalFile) {
+ super((Class) null);
+ newKRun(url,window,mode,isLocalFile);
+ }
+ private native void newKRun(KURL url, QWidget window, long mode, boolean isLocalFile);
+ public KRun(KURL url, QWidget window, long mode) {
+ super((Class) null);
+ newKRun(url,window,mode);
+ }
+ private native void newKRun(KURL url, QWidget window, long mode);
+ public KRun(KURL url, QWidget window) {
+ super((Class) null);
+ newKRun(url,window);
+ }
+ private native void newKRun(KURL url, QWidget window);
+ /**
+ Abort this KRun. This kills any jobs launched by it,
+ and leads to deletion if auto-deletion is on.
+ This is much safer than deleting the KRun (in case it's
+ currently showing an error dialog box, for instance)
+ @short Abort this KRun.
+ */
+ public native void abort();
+ /**
+ Returns true if the KRun instance has an error.
+ @return true when an error occurred
+
+ @short Returns true if the KRun instance has an error.
+ @see #error
+ */
+ public native boolean hasError();
+ /**
+ Returns true if the KRun instance has finished.
+ @return true if the KRun instance has finished
+
+ @short Returns true if the KRun instance has finished.
+ @see #finished
+ */
+ public native boolean hasFinished();
+ /**
+ Checks whether auto delete is activated.
+ Auto-deletion causes the KRun instance to delete itself
+ when it finished its task.
+ By default auto deletion is on.
+ @return true if auto deletion is on, false otherwise
+
+ @short Checks whether auto delete is activated.
+ */
+ public native boolean autoDelete();
+ /**
+ Enables or disabled auto deletion.
+ Auto deletion causes the KRun instance to delete itself
+ when it finished its task. If you allocate the KRun
+ object on the stack you must disable auto deletion.
+ By default auto deletion is on.
+ @param b true to enable auto deletion, false to disable
+ @short Enables or disabled auto deletion.
+ */
+ public native void setAutoDelete(boolean b);
+ /**
+ Set the preferred service for opening this URL, after
+ its mimetype will have been found by KRun. IMPORTANT: the service is
+ only used if its configuration says it can handle this mimetype.
+ This is used for instance for the X-KDE-LastOpenedWith key, for
+ the recent documents list.
+ @param desktopEntryName the desktopEntryName of the service, e.g. "kate".
+ @short Set the preferred service for opening this URL, after its mimetype will have been found by KRun.
+ */
+ public native void setPreferredService(String desktopEntryName);
+ /**
+ Sets whether executables, .desktop files or shell scripts should
+ be run by KRun. This is enabled by default.
+ @param b whether to run executable files or not.
+ @short Sets whether executables, .
+ @see #isExecutable
+ */
+ public native void setRunExecutables(boolean b);
+ /**
+ Sets whether the external webbrowser setting should be honoured.
+ This is enabled by default.
+ This should only be disabled in webbrowser applications.
+ @param b whether to enable the external browser or not.
+ @short Sets whether the external webbrowser setting should be honoured.
+ */
+ public native void setEnableExternalBrowser(boolean b);
+ /**
+ Open a list of URLs with a certain service (application).
+ @param _service the service to run
+ @param _urls the list of URLs, can be empty (app launched
+ without argument)
+ @param tempFiles if true and _urls are local files, they will be deleted
+ when the application exits.
+ @return the process id, or 0 on error
+
+ @short Open a list of URLs with a certain service (application).
+ */
+ public static native int run(KService _service, ArrayList _urls, boolean tempFiles);
+ public static native int run(KService _service, ArrayList _urls);
+ /**
+ Open a list of URLs with.
+ @param _exec the name of the executable, for example
+ "/usr/bin/netscape".
+ @param _urls the list of URLs to open, can be empty (app launched without argument)
+ @param _name the logical name of the application, for example
+ "Netscape 4.06".
+ @param _icon the icon which should be used by the application.
+ @param _obsolete1 Do not use!
+ @param _obsolete2 Do not use!
+ @return the process id, or 0 on error
+
+ @short Open a list of URLs with.
+ */
+ public static native int run(String _exec, ArrayList _urls, String _name, String _icon, String _obsolete1, String _obsolete2);
+ public static native int run(String _exec, ArrayList _urls, String _name, String _icon, String _obsolete1);
+ public static native int run(String _exec, ArrayList _urls, String _name, String _icon);
+ public static native int run(String _exec, ArrayList _urls, String _name);
+ public static native int run(String _exec, ArrayList _urls);
+ /**
+ Open the given URL.
+ This function is used after the mime type
+ is found out. It will search for all services which can handle
+ the mime type and call run() afterwards.
+ @param _url the URL to open
+ @param _mimetype the mime type of the resource
+ @param tempFile if true and _url is a local file, it will be deleted
+ when the launched application exits.
+ @param runExecutables if false then local .desktop files,
+ executables and shell scripts will not be run.
+ See also isExecutable().
+ @return the process id, or 0 on error
+
+ @short Open the given URL.
+ */
+ public static native int runURL(KURL _url, String _mimetype, boolean tempFile, boolean runExecutables);
+ public static native int runURL(KURL _url, String _mimetype, boolean tempFile);
+ public static native int runURL(KURL _url, String _mimetype);
+ /**
+ Run the given shell command and notifies kicker of the starting
+ of the application. If the program to be called doesn't exist,
+ an error box will be displayed.
+ Use only when you know the full command line. Otherwise use the other
+ static methods, or KRun's constructor.
+ <code>_cmd</code> must be a shell command. You must not append "&"
+ to it, since the function will do that for you.
+ @return PID of running command, 0 if it could not be started, 0 - (PID
+ of running command) if command was unsafe for map notification.
+
+ @short Run the given shell command and notifies kicker of the starting of the application.
+ */
+ public static native int runCommand(String cmd);
+ /**
+ Same as the other runCommand(), but it also takes the name of the
+ binary, to display an error message in case it couldn't find it.
+ @param cmd must be a shell command. You must not append "&"
+ to it, since the function will do that for you.
+ @param execName the name of the executable
+ @param icon icon for app starting notification
+ @return PID of running command, 0 if it could not be started, 0 - (PID
+ of running command) if command was unsafe for map notification.
+
+ @short Same as the other runCommand(), but it also takes the name of the binary, to display an error message in case it couldn't find it.
+ */
+ public static native int runCommand(String cmd, String execName, String icon);
+ /**
+ Display the Open-With dialog for those URLs, and run the chosen application.
+ @param lst the list of applications to run
+ @param tempFiles if true and lst are local files, they will be deleted
+ when the application exits.
+ @return false if the dialog was canceled
+
+ @short Display the Open-With dialog for those URLs, and run the chosen application.
+ */
+ public static native boolean displayOpenWithDialog(ArrayList lst, boolean tempFiles);
+ public static native boolean displayOpenWithDialog(ArrayList lst);
+ /**
+ Quotes a string for the shell.
+ @param _str the string to quote. The quoted string will be written here
+ @short Quotes a string for the shell.
+ */
+ public static native void shellQuote(StringBuffer _str);
+ /**
+ Processes a Exec= line as found in .desktop files.
+ @param _service the service to extract information from.
+ @param _urls The urls the service should open.
+ @param has_shell If true, the arguments are going to be fed into a
+ shell e.g by using system().
+ If false, the arguments are going to be fed into a exec() kind
+ call.
+ If the arguments are intended for an exec() kind of call and
+ the Exec line contains shell commands then "/bin/sh -c" is added.
+ @param tempFiles if true and _urls are local files, they will be deleted
+ when the application exits.
+ @return a list of arguments suitable for either system() or exec().
+
+ @short Processes a Exec= line as found in .
+ */
+ public static native ArrayList processDesktopExec(KService _service, ArrayList _urls, boolean has_shell, boolean tempFiles);
+ public static native ArrayList processDesktopExec(KService _service, ArrayList _urls, boolean has_shell);
+ /**
+ Given a full command line (e.g. the Exec= line from a .desktop file),
+ extract the name of the binary being run.
+ @param execLine the full command line
+ @param removePath if true, remove a (relative or absolute) path. E.g. /usr/bin/ls becomes ls.
+ @return the name of the binary to run
+
+ @short Given a full command line (e.
+ */
+ public static native String binaryName(String execLine, boolean removePath);
+ /**
+ Returns whether <code>serviceType</code> refers to an executable program instead
+ of a data file.
+ @short Returns whether <code>serviceType</code> refers to an executable program instead of a data file.
+ */
+ public static native boolean isExecutable(String serviceType);
+ /**
+ Returns wether the <code>url</code> of <code>mimetype</code> is executable.
+ To be executable the file must pass the following rules:
+ -# Must reside on the local filesystem.
+ -# Must be marked as executable for the user by the filesystem.
+ -# The mime type must inherit application/x-executable or application/x-executable-script.
+ To allow a script to run when the above rules are satisfied add the entry
+ @code
+ X-KDE-IsAlso=application/x-executable-script
+ @endcode
+ to the mimetype's desktop file.
+ @short Returns wether the <code>url</code> of <code>mimetype</code> is executable.
+ */
+ public static native boolean isExecutableFile(KURL url, String mimetype);
+ /**
+ @short
+ */
+ public static native boolean checkStartupNotify(String binName, KService service, boolean[] silent_arg, StringBuffer wmclass_arg);
+ protected native void init();
+ protected native void scanFile();
+ /**
+ Called if the mimetype has been detected. The function checks
+ whether the document and appends the gzip protocol to the
+ URL. Otherwise runURL is called to finish the job.
+ @short Called if the mimetype has been detected.
+ */
+ protected native void foundMimeType(String _type);
+ protected native void killJob();
+ protected native void slotTimeout();
+ protected native void slotScanFinished(Job arg1);
+ protected native void slotScanMimeType(Job arg1, String type);
+ protected native void slotStatResult(Job arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KRunSignals.java b/kdejava/koala/org/kde/koala/KRunSignals.java
new file mode 100644
index 00000000..5ca5dfc4
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRunSignals.java
@@ -0,0 +1,22 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+
+public interface KRunSignals {
+ /**
+ Emitted when the operation finished.
+ @short Emitted when the operation finished.
+ @see #hasFinished
+ */
+ void finished();
+ /**
+ Emitted when the operation had an error.
+ @short Emitted when the operation had an error.
+ @see #hasError
+ */
+ void error();
+}
diff --git a/kdejava/koala/org/kde/koala/KSMIMECrypto.java b/kdejava/koala/org/kde/koala/KSMIMECrypto.java
new file mode 100644
index 00000000..059e5792
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSMIMECrypto.java
@@ -0,0 +1,100 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+*/
+public class KSMIMECrypto implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSMIMECrypto(Class dummy){}
+
+ public static final int KSC_C_DES3_CBC = 1;
+ public static final int KSC_C_RC2_CBC_128 = 2;
+ public static final int KSC_C_RC2_CBC_64 = 3;
+ public static final int KSC_C_DES_CBC = 4;
+ public static final int KSC_C_RC2_CBC_40 = 5;
+
+ public static final int KSC_R_OK = 0;
+ public static final int KSC_R_OTHER = 1;
+ public static final int KSC_R_NO_SSL = 2;
+ public static final int KSC_R_NOCIPHER = 3;
+ public static final int KSC_R_NOMEM = 4;
+ public static final int KSC_R_FORMAT = 5;
+ public static final int KSC_R_WRONGKEY = 6;
+ public static final int KSC_R_VERIFY = 7;
+
+ public KSMIMECrypto() {
+ newKSMIMECrypto();
+ }
+ private native void newKSMIMECrypto();
+ /**
+ Sign a message
+ @param clearText MIME representation of the message (part) to sign
+ @param cipherText signature to append or signature block
+ @param privKey private key/certificate to sign with
+ @param certs additional certificates (may be empty)
+ @param detached create detached or opaque signature
+ @return 0 on success
+
+ @short Sign a message
+ */
+ // KSMIMECrypto::rc signMessage(const QCString& arg1,QByteArray& arg2,const KSSLPKCS12& arg3,const QPtrList<KSSLCertificate>& arg4,bool arg5); >>>> NOT CONVERTED
+ /**
+ Check a detached message signature
+ Will check if messages matches signature and extract certificates
+ Does not check certificates for validity!
+ @param clearText MIME representation of signed message (without SIG)
+ @param signature signature
+ @param foundCerts certificates found in this message
+ @return 0 on success
+
+ @short Check a detached message signature Will check if messages matches signature and extract certificates Does not check certificates for validity!
+ */
+ // KSMIMECrypto::rc checkDetachedSignature(const QCString& arg1,const QByteArray& arg2,QPtrList<KSSLCertificate>& arg3); >>>> NOT CONVERTED
+ /**
+ Check an opaque signed message
+ Will check if signature matches and extract message
+ Does not check certificates for validity!
+ @param signedText signed message block
+ @param clearText cleartext of signed message
+ @foundCerts certificates found in this mesasge
+ @return 0 on success
+
+ @short Check an opaque signed message Will check if signature matches and extract message Does not check certificates for validity!
+ */
+ // KSMIMECrypto::rc checkOpaqueSignature(const QByteArray& arg1,QCString& arg2,QPtrList<KSSLCertificate>& arg3); >>>> NOT CONVERTED
+ /**
+ Encrypt a message
+ encrypts a message for the given list of recipients and the
+ selected algorithm. Note that any algorithm <128 bytes is
+ insecure and should never be used, even if SMIME-2 requires
+ only RC2-40
+ @param clearText MIME representation of message to encrypt
+ @param cipherText returned encrypted message
+ @param algorithm encryption algorithm
+ @recip recipient certificates
+ @return 0 on success
+
+ @short Encrypt a message encrypts a message for the given list of recipients and the selected algorithm.
+ */
+ // KSMIMECrypto::rc encryptMessage(const QCString& arg1,QByteArray& arg2,KSMIMECrypto::algo arg3,const QPtrList<KSSLCertificate>& arg4); >>>> NOT CONVERTED
+ /**
+ Decrypt a message
+ @param cipherText encrypted message block
+ @param clearText returns decrypted message
+ @param privKey private key to use
+ @return 0 on success
+
+ @short Decrypt a message
+ */
+ public native int decryptMessage(byte[] cipherText, StringBuffer clearText, KSSLPKCS12 privKey);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSL.java b/kdejava/koala/org/kde/koala/KSSL.java
new file mode 100644
index 00000000..0ed4dacf
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSL.java
@@ -0,0 +1,249 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ KDE SSL Wrapper Class
+ This class implements KDE's SSL support by wrapping OpenSSL.
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE SSL Class.
+ @see KExtendedSocket
+ @see TCPSlaveBase
+
+*/
+public class KSSL implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSL(Class dummy){}
+
+ /**
+ Construct a KSSL object
+ @param init Set this to false if you do not want this class to
+ immediately initialize OpenSSL.
+ @short Construct a KSSL object
+ */
+ public KSSL(boolean init) {
+ newKSSL(init);
+ }
+ private native void newKSSL(boolean init);
+ public KSSL() {
+ newKSSL();
+ }
+ private native void newKSSL();
+ /**
+ Initialize OpenSSL.
+ This will do nothing if it is already initialized.
+ @return true on success
+
+ @short Initialize OpenSSL.
+ @see #reInitialize
+ */
+ public native boolean initialize();
+ /**
+ This is used for applicationss which do STARTTLS or something
+ similar. It creates a TLS method regardless of the user's settings.
+ @return true if TLS is successfully initialized
+
+ @short This is used for applicationss which do STARTTLS or something similar.
+ */
+ public native boolean TLSInit();
+ /**
+ Set an SSL session to use. This deep copies the session so it
+ doesn't have to remain valid. You need to call it after calling
+ initialize or reInitialize. The ID is cleared in close().
+ @param session A valid session to reuse. If null, it will clear the
+ session ID in memory.
+ @return true on success
+
+ @short Set an SSL session to use.
+ */
+ public native boolean setSession(KSSLSession session);
+ /**
+ Close the SSL session.
+ @short Close the SSL session.
+ */
+ public native void close();
+ /**
+ Reinitialize OpenSSL.
+ This is not generally needed unless you are reusing the KSSL object
+ for a new session.
+ @return true on success
+
+ @short Reinitialize OpenSSL.
+ @see #initialize
+ */
+ public native boolean reInitialize();
+ /**
+ Trigger a reread of KSSL configuration and reInitialize() KSSL.
+ If you setAutoReconfig() to false, then this will simply
+ reInitialize() and not read in the new configuration.
+ @return true on successful reinitalizations
+
+ @short Trigger a reread of KSSL configuration and reInitialize() KSSL.
+ @see #setAutoReconfig
+ */
+ public native boolean reconfig();
+ /**
+ Enable or disable automatic reconfiguration on initialize().
+ @param ar Set to false in order to disable auto-reloading of the
+ KSSL configuration during initialize().
+ By default, KSSL will read its configuration on initialize(). You
+ might want to disable this for performance reasons.
+ @short Enable or disable automatic reconfiguration on initialize().
+ */
+ public native void setAutoReconfig(boolean ar);
+ /**
+ This will reseed the pseudo-random number generator with the EGD
+ (entropy gathering daemon) if the EGD is configured and enabled.
+ You don't need to call this yourself normally.
+ @return 0 on success
+
+ @short This will reseed the pseudo-random number generator with the EGD (entropy gathering daemon) if the EGD is configured and enabled.
+ */
+ public native int seedWithEGD();
+ /**
+ Set a new KSSLSettings instance as the settings. This deletes the
+ current instance of KSSLSettings.
+ @param settings A new, valid settings object.
+ @return true on success
+
+ @short Set a new KSSLSettings instance as the settings.
+ */
+ public native boolean setSettings(KSSLSettings settings);
+ /**
+ One is built by the constructor, so this will only return a NULL
+ pointer if you set one with setSettings().
+ @return the current settings instance
+
+ @short One is built by the constructor, so this will only return a NULL pointer if you set one with setSettings().
+ */
+ public native KSSLSettings settings();
+ /**
+ Use this to set the certificate to send to the server.
+ Do NOT delete the KSSLPKCS12 object until you are done with the
+ session. It is not defined when KSSL will be done with this.
+ @param pkcs the valid PKCS#12 object to send.
+ @return true if the certificate was properly set to the session.
+
+ @short Use this to set the certificate to send to the server.
+ */
+ public native boolean setClientCertificate(KSSLPKCS12 pkcs);
+ /**
+ Set the peer hostname to be used for certificate verification.
+ @param realHost the remote hostname as the user believes to be
+ connecting to
+ @short Set the peer hostname to be used for certificate verification.
+ */
+ public native void setPeerHost(String realHost);
+ public native void setPeerHost();
+ /**
+ Connect the SSL session to the remote host using the provided
+ socket descriptor.
+ @param sock the socket descriptor to connect with. This must be
+ an already connected socket.
+ @return 1 on success, 0 on error setting the file descriptor,
+ -1 on other error.
+
+ @short Connect the SSL session to the remote host using the provided socket descriptor.
+ */
+ public native int connect(int sock);
+ /**
+ Connect the SSL session to the remote host using the provided
+ socket descriptor. This is for use with an SSL server application.
+ @param sock the socket descriptor to connect with. This must be
+ an already connected socket.
+ @return 1 on success, 0 on error setting the file descriptor,
+ -1 on other error.
+
+ @short Connect the SSL session to the remote host using the provided socket descriptor.
+ */
+ public native int accept(int sock);
+ /**
+ Read data from the remote host via SSL.
+ @param buf the buffer to read the data into.
+ @param len the maximum length of data to read.
+ @return the number of bytes read, 0 on an exception, or -1 on error.
+
+ @short Read data from the remote host via SSL.
+ */
+ // int read(void* arg1,int arg2); >>>> NOT CONVERTED
+ /**
+ Peek at available data from the remote host via SSL.
+ @param buf the buffer to read the data into.
+ @param len the maximum length of data to read.
+ @return the number of bytes read, 0 on an exception, or -1 on error.
+
+ @short Peek at available data from the remote host via SSL.
+ */
+ // int peek(void* arg1,int arg2); >>>> NOT CONVERTED
+ /**
+ Write data to the remote host via SSL.
+ @param buf the buffer to read the data from.
+ @param len the length of data to send from the buffer.
+ @return the number of bytes written, 0 on an exception,
+ or -1 on error.
+
+ @short Write data to the remote host via SSL.
+ */
+ // int write(const void* arg1,int arg2); >>>> NOT CONVERTED
+ /**
+ Determine if data is waiting to be read.
+ @return -1 on error, 0 if no data is waiting, > 0 if data is waiting.
+
+ @short Determine if data is waiting to be read.
+ */
+ public native int pending();
+ /**
+ Obtain a reference to the connection information.
+ @return a reference to the connection information,
+ valid after connected
+
+ @short Obtain a reference to the connection information.
+ @see KSSLConnectionInfo
+ */
+ public native KSSLConnectionInfo connectionInfo();
+ /**
+ Obtain a reference to the information about the peer.
+ @return a reference to the peer information,
+ valid after connected
+
+ @short Obtain a reference to the information about the peer.
+ @see KSSLPeerInfo
+ */
+ public native KSSLPeerInfo peerInfo();
+ /**
+ Obtain a pointer to the session information.
+ @return a pointer to the session information.
+ This is valid after connected, while connected.
+ It is deleted by the KSSL object which returns it.
+ May return 0L if no valid session exists.
+
+ @short Obtain a pointer to the session information.
+ @see KSSLSession
+ */
+ public native KSSLSession session();
+ /**
+ Determine if we are currently reusing an SSL session ID.
+ @return true if we are reusing a session ID.
+
+ @short Determine if we are currently reusing an SSL session ID.
+ */
+ public native boolean reusingSession();
+ /**
+ Determine if SSL is available and works.
+ @return true is SSL is available and usable
+
+ @short Determine if SSL is available and works.
+ */
+ public static native boolean doesSSLWork();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLCertBox.java b/kdejava/koala/org/kde/koala/KSSLCertBox.java
new file mode 100644
index 00000000..0918d760
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLCertBox.java
@@ -0,0 +1,64 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QScrollView;
+
+/**
+
+ KDE SSL Certificate Box
+ This class creates a widget which formats and displays the contents of an
+ SSL X.509 certificate. That is, it takes the "subject" of the certificate
+ and displays everything contained therein.
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE SSL Certificate Box.
+ @see KSSLInfoDlg
+
+*/
+public class KSSLCertBox extends QScrollView {
+ protected KSSLCertBox(Class dummy){super((Class) null);}
+ /**
+ Construct a certificate box
+ @param parent the parent widget
+ @param name the internal name of this instance
+ @param f widget flags for the object
+ @short Construct a certificate box
+ */
+ public KSSLCertBox(QWidget parent, String name, int f) {
+ super((Class) null);
+ newKSSLCertBox(parent,name,f);
+ }
+ private native void newKSSLCertBox(QWidget parent, String name, int f);
+ public KSSLCertBox(QWidget parent, String name) {
+ super((Class) null);
+ newKSSLCertBox(parent,name);
+ }
+ private native void newKSSLCertBox(QWidget parent, String name);
+ public KSSLCertBox(QWidget parent) {
+ super((Class) null);
+ newKSSLCertBox(parent);
+ }
+ private native void newKSSLCertBox(QWidget parent);
+ public KSSLCertBox() {
+ super((Class) null);
+ newKSSLCertBox();
+ }
+ private native void newKSSLCertBox();
+ /**
+ Change the contents of the widget
+ @param certName the name ("subject") of the certificate
+ @param mailCatcher the widget which catches the url open events
+ @short Change the contents of the widget
+ */
+ public native void setValues(String certName, QWidget mailCatcher);
+ public native void setValues(String certName);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLCertChain.java b/kdejava/koala/org/kde/koala/KSSLCertChain.java
new file mode 100644
index 00000000..9ca2d712
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLCertChain.java
@@ -0,0 +1,87 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ KDE Certificate Chain Representation Class
+ This class provides a representation for an X.509 certificate chain.
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE X.509 Certificate Chain.
+ @see KSSL
+ @see KSSLCertificate
+ @see KSSLPeerInfo
+
+*/
+public class KSSLCertChain implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLCertChain(Class dummy){}
+
+ /**
+ Construct a KSSLCertChain object
+ @short Construct a KSSLCertChain object
+ */
+ public KSSLCertChain() {
+ newKSSLCertChain();
+ }
+ private native void newKSSLCertChain();
+ /**
+ Determine if this represents a valid certificate chain
+ @return true if it is a valid certificate chain
+
+ @short Determine if this represents a valid certificate chain
+ */
+ public native boolean isValid();
+ /**
+ Do a deep copy of the certificate chain.
+ This is an expensive operation, and you are responsible for deleting
+ the returned object yourself.
+ @return pointer to a new certificate chain object
+
+ @short Do a deep copy of the certificate chain.
+ */
+ public native KSSLCertChain replicate();
+ /**
+ Set the raw chain from OpenSSL
+ @short Set the raw chain from OpenSSL
+ */
+ // void setChain(void* arg1); >>>> NOT CONVERTED
+ // void setChain(QPtrList<KSSLCertificate>& arg1); >>>> NOT CONVERTED
+ /**
+ Set the certificate chain as a list of base64 encoded X.509
+ certificates.
+ @param chain the certificate chain
+ @short Set the certificate chain as a list of base64 encoded X.
+ */
+ public native void setCertChain(String[] chain);
+ /**
+ Obtain a copy of the certificate chain.
+ @return a deep copy of the certificate chain.
+
+ @short Obtain a copy of the certificate chain.
+ @see KSSLCertificate
+ */
+ // QPtrList<KSSLCertificate> getChain(); >>>> NOT CONVERTED
+ /**
+ Determine the number of entries (depth) of the chain.
+ @return the number of entries in the certificate chain
+
+ @short Determine the number of entries (depth) of the chain.
+ */
+ public native int depth();
+ /**
+ Read the raw chain in OpenSSL format
+ @short Read the raw chain in OpenSSL format
+ */
+ // void* rawChain(); >>>> NOT CONVERTED
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLCertDlg.java b/kdejava/koala/org/kde/koala/KSSLCertDlg.java
new file mode 100644
index 00000000..1e12d218
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLCertDlg.java
@@ -0,0 +1,94 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ KDE X.509 Certificate Dialog
+ This class is used to create and display a dialog which contains the user's
+ X.509 certificates and allows the user to present it during SSL sessions.
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE X.509 Certificate Dialog.
+ @see KSSL
+
+*/
+public class KSSLCertDlg extends KDialog {
+ protected KSSLCertDlg(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a KSSL certificate dialog
+ @param parent the parent widget
+ @param name the internal name of this instance
+ @param modal create a modal dialog if set to true
+ @short Construct a KSSL certificate dialog
+ */
+ public KSSLCertDlg(QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKSSLCertDlg(parent,name,modal);
+ }
+ private native void newKSSLCertDlg(QWidget parent, String name, boolean modal);
+ public KSSLCertDlg(QWidget parent, String name) {
+ super((Class) null);
+ newKSSLCertDlg(parent,name);
+ }
+ private native void newKSSLCertDlg(QWidget parent, String name);
+ public KSSLCertDlg(QWidget parent) {
+ super((Class) null);
+ newKSSLCertDlg(parent);
+ }
+ private native void newKSSLCertDlg(QWidget parent);
+ public KSSLCertDlg() {
+ super((Class) null);
+ newKSSLCertDlg();
+ }
+ private native void newKSSLCertDlg();
+ /**
+ Setup the dialog. Call this before you display the dialog.
+ @param certs the list of possible certificates
+ @param saveChecked save the checked item for the future
+ @param sendChecked send the checked item to the remote host
+ @short Setup the dialog.
+ */
+ public native void setupDialog(String[] certs, boolean saveChecked, boolean sendChecked);
+ public native void setupDialog(String[] certs, boolean saveChecked);
+ public native void setupDialog(String[] certs);
+ /**
+ Obtain the name of the certificate the user wants to send
+ @return the name of the certificate
+
+ @short Obtain the name of the certificate the user wants to send
+ */
+ public native String getChoice();
+ /**
+ Determine if the user wants to send a certificate.
+ @return true if the user wants to send a certificate
+
+ @short Determine if the user wants to send a certificate.
+ */
+ public native boolean wantsToSend();
+ /**
+ Determine if the user wants to save the choice for the future.
+ @return true if the user wants to save the choice.
+
+ @short Determine if the user wants to save the choice for the future.
+ */
+ public native boolean saveChoice();
+ /**
+ Set the hostname that we are connecting to.
+ @param host the hostname
+ @short Set the hostname that we are connecting to.
+ */
+ public native void setHost(String host);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLCertDlgRet.java b/kdejava/koala/org/kde/koala/KSSLCertDlgRet.java
new file mode 100644
index 00000000..d80d28f6
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLCertDlgRet.java
@@ -0,0 +1,24 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+*/
+public class KSSLCertDlgRet implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLCertDlgRet(Class dummy){}
+
+ public KSSLCertDlgRet() {
+ newKSSLCertDlgRet();
+ }
+ private native void newKSSLCertDlgRet();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLCertificate.java b/kdejava/koala/org/kde/koala/KSSLCertificate.java
new file mode 100644
index 00000000..61bd69f5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLCertificate.java
@@ -0,0 +1,349 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.Calendar;
+import java.util.ArrayList;
+
+/**
+
+ KDE X.509 Certificate
+ This class represents an X.509 (SSL) certificate.
+ Note: this object is VERY HEAVY TO COPY. Please try to use reference
+ or pointer whenever possible
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE X.509 Certificate.
+ @see KSSL
+
+*/
+public class KSSLCertificate implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLCertificate(Class dummy){}
+
+ /**
+ A CA certificate can be validated as Irrelevant when it was
+ not used to sign any other relevant certificate.
+ @short A CA certificate can be validated as Irrelevant when it was not used to sign any other relevant certificate.
+ */
+ public static final int Unknown = 0;
+ public static final int Ok = 1;
+ public static final int NoCARoot = 2;
+ public static final int InvalidPurpose = 3;
+ public static final int PathLengthExceeded = 4;
+ public static final int InvalidCA = 5;
+ public static final int Expired = 6;
+ public static final int SelfSigned = 7;
+ public static final int ErrorReadingRoot = 8;
+ public static final int NoSSL = 9;
+ public static final int Revoked = 10;
+ public static final int Untrusted = 11;
+ public static final int SignatureFailed = 12;
+ public static final int Rejected = 13;
+ public static final int PrivateKeyFailed = 14;
+ public static final int InvalidHost = 15;
+ public static final int Irrelevant = 16;
+ public static final int SelfSignedChain = 17;
+
+ public static final int None = 0;
+ public static final int SSLServer = 1;
+ public static final int SSLClient = 2;
+ public static final int SMIMESign = 3;
+ public static final int SMIMEEncrypt = 4;
+ public static final int Any = 5;
+
+ /**
+ Convert this certificate to a string.
+ @return the certificate in base64 format
+
+ @short Convert this certificate to a string.
+ */
+ public native String toString();
+ /**
+ Get the subject of the certificate (X.509 map).
+ @return the subject
+
+ @short Get the subject of the certificate (X.
+ */
+ public native String getSubject();
+ /**
+ Get the issuer of the certificate (X.509 map).
+ @return the issuer
+
+ @short Get the issuer of the certificate (X.
+ */
+ public native String getIssuer();
+ /**
+ Get the date that the certificate becomes valid on.
+ @return the date as a string, localised
+
+ @short Get the date that the certificate becomes valid on.
+ */
+ public native String getNotBefore();
+ /**
+ Get the date that the certificate is valid until.
+ @return the date as a string, localised
+
+ @short Get the date that the certificate is valid until.
+ */
+ public native String getNotAfter();
+ /**
+ Get the date that the certificate becomes valid on.
+ @return the date
+
+ @short Get the date that the certificate becomes valid on.
+ */
+ public native Calendar getQDTNotBefore();
+ /**
+ Get the date that the certificate is valid until.
+ @return the date
+
+ @short Get the date that the certificate is valid until.
+ */
+ public native Calendar getQDTNotAfter();
+ /**
+ Convert the certificate to DER (ASN.1) format.
+ @return the binary data of the DER encoding
+
+ @short Convert the certificate to DER (ASN.
+ */
+ public native byte[] toDer();
+ /**
+ Convert the certificate to PEM (base64) format.
+ @return the binary data of the PEM encoding
+
+ @short Convert the certificate to PEM (base64) format.
+ */
+ public native byte[] toPem();
+ /**
+ Convert the certificate to Netscape format.
+ @return the binary data of the Netscape encoding
+
+ @short Convert the certificate to Netscape format.
+ */
+ public native byte[] toNetscape();
+ /**
+ Convert the certificate to OpenSSL plain text format.
+ @return the OpenSSL text encoding
+
+ @short Convert the certificate to OpenSSL plain text format.
+ */
+ public native String toText();
+ /**
+ Get the serial number of the certificate.
+ @return the serial number as a string
+
+ @short Get the serial number of the certificate.
+ */
+ public native String getSerialNumber();
+ /**
+ Get the key type (RSA, DSA, etc).
+ @return the key type as a string
+
+ @short Get the key type (RSA, DSA, etc).
+ */
+ public native String getKeyType();
+ /**
+ Get the public key.
+ @return the public key as a hexidecimal string
+
+ @short Get the public key.
+ */
+ public native String getPublicKeyText();
+ /**
+ Get the MD5 digest of the certificate.
+ Result is padded with : to separate bytes - it's a text version!
+ @return the MD5 digest in a hexidecimal string
+
+ @short Get the MD5 digest of the certificate.
+ */
+ public native String getMD5DigestText();
+ /**
+ Get the MD5 digest of the certificate.
+ @return the MD5 digest in a hexidecimal string
+
+ @short Get the MD5 digest of the certificate.
+ */
+ public native String getMD5Digest();
+ /**
+ Get the signature.
+ @return the signature in text format
+
+ @short Get the signature.
+ */
+ public native String getSignatureText();
+ /**
+ Check if this is a valid certificate. Will use cached data.
+ @return true if it is valid
+
+ @short Check if this is a valid certificate.
+ */
+ public native boolean isValid();
+ /**
+ Check if this is a valid certificate. Will use cached data.
+ @param p the purpose to validate for
+ @return true if it is valid
+
+ @short Check if this is a valid certificate.
+ */
+ public native boolean isValid(int p);
+ /**
+ The alternate subject name.
+ @return string list with subjectAltName
+
+ @short The alternate subject name.
+ */
+ public native ArrayList subjAltNames();
+ /**
+ Check if this is a valid certificate. Will use cached data.
+ @return the result of the validation
+
+ @short Check if this is a valid certificate.
+ */
+ public native int validate();
+ /**
+ Check if this is a valid certificate. Will use cached data.
+ @param p the purpose to validate for
+ @return the result of the validation
+
+ @short Check if this is a valid certificate.
+ */
+ public native int validate(int p);
+ /**
+ Check if this is a valid certificate. Will use cached data.
+ @param p the purpose to validate for
+ @return all problems encountered during validation
+
+ @short Check if this is a valid certificate.
+ */
+ // KSSLCertificate::KSSLValidationList validateVerbose(KSSLCertificate::KSSLPurpose arg1); >>>> NOT CONVERTED
+ /**
+ Check if the certificate ca is a proper CA for this
+ certificate.
+ @param p the purpose to validate for
+ @param ca the certificate to check
+ @return all problems encountered during validation
+
+ @short Check if the certificate ca is a proper CA for this certificate.
+ */
+ // KSSLCertificate::KSSLValidationList validateVerbose(KSSLCertificate::KSSLPurpose arg1,KSSLCertificate* arg2); >>>> NOT CONVERTED
+ /**
+ Check if this is a valid certificate. Will NOT use cached data.
+ @return the result of the validation
+
+ @short Check if this is a valid certificate.
+ */
+ public native int revalidate();
+ /**
+ Check if this is a valid certificate. Will NOT use cached data.
+ @param p the purpose to validate for
+ @return the result of the validation
+
+ @short Check if this is a valid certificate.
+ */
+ public native int revalidate(int p);
+ /**
+ Get a reference to the certificate chain.
+ @return reference to the chain
+
+ @short Get a reference to the certificate chain.
+ */
+ public native KSSLCertChain chain();
+ /**
+ Explicitly make a copy of this certificate.
+ @return a copy of the certificate
+
+ @short Explicitly make a copy of this certificate.
+ */
+ public native KSSLCertificate replicate();
+ /**
+ Copy constructor. Beware, this is very expensive.
+ @param x the object to copy from
+ @short Copy constructor.
+ */
+ public KSSLCertificate(KSSLCertificate x) {
+ newKSSLCertificate(x);
+ }
+ private native void newKSSLCertificate(KSSLCertificate x);
+ /**
+ Re-set the certificate from a base64 string.
+ @param cert the certificate to set to
+ @return true on success
+
+ @short Re-set the certificate from a base64 string.
+ */
+ public native boolean setCert(StringBuffer cert);
+ /**
+ Access the X.509v3 parameters.
+ @return reference to the extension object
+
+ @short Access the X.
+ @see KSSLX509V3
+ */
+ public native KSSLX509V3 x509V3Extensions();
+ /**
+ Check if this is a signer certificate.
+ @return true if this is a signer certificate
+
+ @short Check if this is a signer certificate.
+ */
+ public native boolean isSigner();
+ /**
+ FIXME: document
+ @short FIXME: document
+ */
+ public native void getEmails(String[] to);
+ /**
+ KDEKey is a concatenation "Subject (MD5)", mostly needed for SMIME.
+ The result of getKDEKey might change and should not be used for
+ persistant storage.
+ @short KDEKey is a concatenation "Subject (MD5)", mostly needed for SMIME.
+ */
+ public native String getKDEKey();
+ /**
+ Create an X.509 certificate from a base64 encoded string.
+ @param cert the certificate in base64 form
+ @return the X.509 certificate, or NULL
+
+ @short Create an X.
+ */
+ public static native KSSLCertificate fromString(String cert);
+ /**
+ Create an X.509 certificate from the internal representation.
+ This one duplicates the X509 object for itself.
+ @param x5 the OpenSSL representation of the certificate
+ @return the X.509 certificate, or NULL
+
+ @short Create an X.
+ */
+ // KSSLCertificate* fromX509(X509* arg1); >>>> NOT CONVERTED
+ /**
+ Obtain the localized message that corresponds to a validation result.
+ @param x the code to look up
+ @return the message text corresponding to the validation code
+
+ @short Obtain the localized message that corresponds to a validation result.
+ */
+ public static native String verifyText(int x);
+ /**
+ Aegypten semantics force us to search by MD5Digest only.
+ @short Aegypten semantics force us to search by MD5Digest only.
+ */
+ public static native String getMD5DigestFromKDEKey(String k);
+ public KSSLCertificate() {
+ newKSSLCertificate();
+ }
+ private native void newKSSLCertificate();
+ // void setCert(X509* arg1); >>>> NOT CONVERTED
+ // void setChain(void* arg1); >>>> NOT CONVERTED
+ // X509* getCert(); >>>> NOT CONVERTED
+ protected native int processError(int ec);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLCertificateCache.java b/kdejava/koala/org/kde/koala/KSSLCertificateCache.java
new file mode 100644
index 00000000..d7d9ae1b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLCertificateCache.java
@@ -0,0 +1,50 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.Calendar;
+import java.util.ArrayList;
+
+/**
+*/
+public class KSSLCertificateCache implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLCertificateCache(Class dummy){}
+
+ public static final int Unknown = 0;
+ public static final int Reject = 1;
+ public static final int Accept = 2;
+ public static final int Prompt = 3;
+ public static final int Ambiguous = 4;
+
+ public KSSLCertificateCache() {
+ newKSSLCertificateCache();
+ }
+ private native void newKSSLCertificateCache();
+ public native void addCertificate(KSSLCertificate cert, int policy, boolean permanent);
+ public native void addCertificate(KSSLCertificate cert, int policy);
+ public native int getPolicyByCN(StringBuffer cn);
+ public native int getPolicyByCertificate(KSSLCertificate cert);
+ public native boolean seenCN(StringBuffer cn);
+ public native boolean seenCertificate(KSSLCertificate cert);
+ public native boolean removeByCN(StringBuffer cn);
+ public native boolean removeByCertificate(KSSLCertificate cert);
+ public native boolean isPermanent(KSSLCertificate cert);
+ public native boolean modifyByCN(StringBuffer cn, int policy, boolean permanent, Calendar expires);
+ public native boolean modifyByCertificate(KSSLCertificate cert, int policy, boolean permanent, Calendar expires);
+ public native ArrayList getHostList(KSSLCertificate cert);
+ public native boolean addHost(KSSLCertificate cert, StringBuffer host);
+ public native boolean removeHost(KSSLCertificate cert, StringBuffer host);
+ public native ArrayList getKDEKeyByEmail(String email);
+ public native KSSLCertificate getCertByMD5Digest(String key);
+ public native void reload();
+ public native void saveToDisk();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLCertificateFactory.java b/kdejava/koala/org/kde/koala/KSSLCertificateFactory.java
new file mode 100644
index 00000000..f6cb3f9b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLCertificateFactory.java
@@ -0,0 +1,25 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+*/
+public class KSSLCertificateFactory implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLCertificateFactory(Class dummy){}
+
+ public KSSLCertificateFactory() {
+ newKSSLCertificateFactory();
+ }
+ private native void newKSSLCertificateFactory();
+ public static native KSSLCertificate generateSelfSigned(int keytype);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLCertificateHome.java b/kdejava/koala/org/kde/koala/KSSLCertificateHome.java
new file mode 100644
index 00000000..4a227f2d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLCertificateHome.java
@@ -0,0 +1,62 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+*/
+public class KSSLCertificateHome implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLCertificateHome(Class dummy){}
+
+ public static final int AuthNone = 0;
+ public static final int AuthSend = 1;
+ public static final int AuthPrompt = 2;
+ public static final int AuthDont = 3;
+
+ public KSSLCertificateHome() {
+ newKSSLCertificateHome();
+ }
+ private native void newKSSLCertificateHome();
+ public static native KSSLPKCS12 getCertificateByHost(String host, String password, int aa);
+ public static native KSSLPKCS12 getCertificateByName(String name, String password);
+ public static native KSSLPKCS12 getCertificateByName(String name);
+ public static native String getDefaultCertificateName(String host, int aa);
+ public static native String getDefaultCertificateName(String host);
+ public static native String getDefaultCertificateName(int aa);
+ public static native String getDefaultCertificateName();
+ public static native KSSLPKCS12 getDefaultCertificate(String password, int aa);
+ public static native KSSLPKCS12 getDefaultCertificate(String password);
+ public static native KSSLPKCS12 getDefaultCertificate(int aa);
+ public static native KSSLPKCS12 getDefaultCertificate();
+ public static native boolean hasCertificateByName(String name);
+ public static native void setDefaultCertificate(String name, boolean send, boolean prompt);
+ public static native void setDefaultCertificate(String name, boolean send);
+ public static native void setDefaultCertificate(String name);
+ public static native void setDefaultCertificate(KSSLPKCS12 cert, boolean send, boolean prompt);
+ public static native void setDefaultCertificate(KSSLPKCS12 cert, boolean send);
+ public static native void setDefaultCertificate(KSSLPKCS12 cert);
+ public static native void setDefaultCertificate(String name, String host, boolean send, boolean prompt);
+ public static native void setDefaultCertificate(String name, String host, boolean send);
+ public static native void setDefaultCertificate(String name, String host);
+ public static native void setDefaultCertificate(KSSLPKCS12 cert, String host, boolean send, boolean prompt);
+ public static native void setDefaultCertificate(KSSLPKCS12 cert, String host, boolean send);
+ public static native void setDefaultCertificate(KSSLPKCS12 cert, String host);
+ public static native boolean addCertificate(String filename, String password, boolean storePass);
+ public static native boolean addCertificate(String filename, String password);
+ public static native boolean addCertificate(KSSLPKCS12 cert, String passToStore);
+ public static native boolean addCertificate(KSSLPKCS12 cert);
+ public static native boolean deleteCertificate(String filename, String password);
+ public static native boolean deleteCertificate(KSSLPKCS12 cert);
+ public static native boolean deleteCertificateByName(String name);
+ public static native ArrayList getCertificateList();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLConnectionInfo.java b/kdejava/koala/org/kde/koala/KSSLConnectionInfo.java
new file mode 100644
index 00000000..fc5d8950
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLConnectionInfo.java
@@ -0,0 +1,69 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ KDE SSL Connection Information
+ This class contains the information about an SSL connection. It is
+ generally referenced through KSSL.
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE SSL Connection Information.
+ @see KSSL
+
+*/
+public class KSSLConnectionInfo implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLConnectionInfo(Class dummy){}
+
+ /**
+ Get the cipher in use.
+ @return the cipher in use
+
+ @short Get the cipher in use.
+ */
+ public native String getCipher();
+ /**
+ Describe the cipher in use.
+ @return the cipher description (from OpenSSL)
+
+ @short Describe the cipher in use.
+ */
+ public native String getCipherDescription();
+ /**
+ Get the version of the cipher in use.
+ @return the version of the cipher
+
+ @short Get the version of the cipher in use.
+ */
+ public native String getCipherVersion();
+ /**
+ Get the number of bits of the cipher that are actually used.
+ @return the number of bits in use
+
+ @short Get the number of bits of the cipher that are actually used.
+ */
+ public native int getCipherUsedBits();
+ /**
+ Get bit-size of the cipher
+ @return the number of bits
+
+ @short Get bit-size of the cipher
+ */
+ public native int getCipherBits();
+ public KSSLConnectionInfo() {
+ newKSSLConnectionInfo();
+ }
+ private native void newKSSLConnectionInfo();
+ protected native void clean();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLInfoDlg.java b/kdejava/koala/org/kde/koala/KSSLInfoDlg.java
new file mode 100644
index 00000000..41e74c38
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLInfoDlg.java
@@ -0,0 +1,108 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ KDE SSL Information Dialog
+ This class creates a dialog that can be used to display information about
+ an SSL session.
+ There are NO GUARANTEES that KSSLInfoDlg will remain binary compatible/
+ Contact staikos@kde.org for details if needed.
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE SSL Information Dialog.
+ @see KSSL
+
+*/
+public class KSSLInfoDlg extends KDialog {
+ protected KSSLInfoDlg(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a KSSL Information Dialog
+ @param secureConnection true if the connection is secured with SSL
+ @param parent the parent widget
+ @param name the internal name of this instance
+ @param modal true if the dialog should be modal
+ @short Construct a KSSL Information Dialog
+ */
+ public KSSLInfoDlg(boolean secureConnection, QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKSSLInfoDlg(secureConnection,parent,name,modal);
+ }
+ private native void newKSSLInfoDlg(boolean secureConnection, QWidget parent, String name, boolean modal);
+ public KSSLInfoDlg(boolean secureConnection, QWidget parent, String name) {
+ super((Class) null);
+ newKSSLInfoDlg(secureConnection,parent,name);
+ }
+ private native void newKSSLInfoDlg(boolean secureConnection, QWidget parent, String name);
+ public KSSLInfoDlg(boolean secureConnection, QWidget parent) {
+ super((Class) null);
+ newKSSLInfoDlg(secureConnection,parent);
+ }
+ private native void newKSSLInfoDlg(boolean secureConnection, QWidget parent);
+ public KSSLInfoDlg(boolean secureConnection) {
+ super((Class) null);
+ newKSSLInfoDlg(secureConnection);
+ }
+ private native void newKSSLInfoDlg(boolean secureConnection);
+ /**
+ Tell the dialog if the connection has portions that may not be
+ secure (ie. a mixture of secure and insecure frames)
+ @param isIt true if security is in question
+ @short Tell the dialog if the connection has portions that may not be secure (ie.
+ */
+ public native void setSecurityInQuestion(boolean isIt);
+ /**
+ Setup the dialog before showing it.
+ @param cert the certificate presented by the site
+ @param ip the ip of the remote host
+ @param url the url being accessed
+ @param cipher the cipher in use
+ @param cipherdesc text description of the cipher in use
+ @param sslversion the version of SSL in use (SSLv2, SSLv3, TLSv1, etc)
+ @param usedbits the number of bits in the cipher key being used
+ @param bits the bit-size of the cipher in use
+ @param certState the certificate state (valid, invalid, etc)
+ @short Setup the dialog before showing it.
+ */
+ public native void setup(KSSLCertificate cert, String ip, String url, String cipher, String cipherdesc, String sslversion, int usedbits, int bits, int certState);
+ /**
+ Setup the dialog before showing it. This is a convenience version
+ of the above method, and obtains the same information using the
+ @param ssl parameter instead.
+ @param ssl the ssl connection
+ @param ip the ip of the remote host
+ @param url the url being accessed
+ @short Setup the dialog before showing it.
+ */
+ public native void setup(KSSL ssl, String ip, String url);
+ /**
+ Set the errors that were encountered while validating the site
+ certificate.
+ @short Set the errors that were encountered while validating the site certificate.
+ */
+ public native void setCertState(String errorNrs);
+ /**
+ Utility function to generate the widget which displays the detailed
+ information about an X.509 certificate.
+ @param parent the parent widget
+ @param certName the name (subject) of the certificate
+ @param mailCatcher the class which catches click events on e-mail
+ addresses
+ @short Utility function to generate the widget which displays the detailed information about an X.
+ */
+ public static native KSSLCertBox certInfoWidget(QWidget parent, String certName, QWidget mailCatcher);
+ public static native KSSLCertBox certInfoWidget(QWidget parent, String certName);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLKeyGen.java b/kdejava/koala/org/kde/koala/KSSLKeyGen.java
new file mode 100644
index 00000000..98ee5cb0
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLKeyGen.java
@@ -0,0 +1,85 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+
+/**
+
+ KDE Key Generation dialog
+ This is used to display a key generation dialog for cases such as the
+ html \<keygen\> tag. It also does the certificate signing request generation.
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE Key Generation Dialog.
+ @see KSSL
+ @see KSSLCertificate
+ @see KSSLPKCS12
+
+*/
+public class KSSLKeyGen extends KWizard {
+ protected KSSLKeyGen(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a keygen dialog.
+ @param parent the parent widget
+ @param name the internal name of this instance
+ @param modal true if the dialog should be modal
+ @short Construct a keygen dialog.
+ */
+ public KSSLKeyGen(QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKSSLKeyGen(parent,name,modal);
+ }
+ private native void newKSSLKeyGen(QWidget parent, String name, boolean modal);
+ public KSSLKeyGen(QWidget parent, String name) {
+ super((Class) null);
+ newKSSLKeyGen(parent,name);
+ }
+ private native void newKSSLKeyGen(QWidget parent, String name);
+ public KSSLKeyGen(QWidget parent) {
+ super((Class) null);
+ newKSSLKeyGen(parent);
+ }
+ private native void newKSSLKeyGen(QWidget parent);
+ public KSSLKeyGen() {
+ super((Class) null);
+ newKSSLKeyGen();
+ }
+ private native void newKSSLKeyGen();
+ /**
+ Generate the certificate signing request.
+ @param name the name for the certificate
+ @param pass the password for the request
+ @param bits the bitsize for the key
+ @param e the value of the "e" parameter in RSA
+ @return 0 on success, non-zero on error
+
+ @short Generate the certificate signing request.
+ */
+ public native int generateCSR(String name, String pass, int bits, int e);
+ public native int generateCSR(String name, String pass, int bits);
+ /**
+ Set the key size.
+ @param idx an index into supportedKeySizes()
+ @short Set the key size.
+ */
+ public native void setKeySize(int idx);
+ /**
+ List the supported key sizes.
+ @return the supported key sizes
+
+ @short List the supported key sizes.
+ */
+ public static native ArrayList supportedKeySizes();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLPKCS12.java b/kdejava/koala/org/kde/koala/KSSLPKCS12.java
new file mode 100644
index 00000000..cbc89614
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLPKCS12.java
@@ -0,0 +1,158 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ KDE PKCS#12 Certificate
+ As of yet, this class is being defined. if you use it, let it be known
+ that BC will break on you until this message is removed.
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE PKCS#12 Certificate.
+ @see KSSL
+ @see KSSLCertificate
+
+*/
+public class KSSLPKCS12 implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLPKCS12(Class dummy){}
+
+ /**
+ The name of this certificate. This can be used to refer to the
+ certificate instead of passing the object itself.
+ @return the name of the certificate
+
+ @short The name of this certificate.
+ */
+ public native String name();
+ /**
+ Convert to a Base64 string.
+ @return the certificate in base64 form
+
+ @short Convert to a Base64 string.
+ */
+ public native String toString();
+ /**
+ Raw set the PKCS12 object.
+ @param c the openssl PKCS12 object
+ @short Raw set the PKCS12 object.
+ */
+ // void setCert(PKCS12* arg1); >>>> NOT CONVERTED
+ /**
+ Change the password of the PKCS#12 in memory.
+ @param pold the old password
+ @param pnew the new password
+ @return true on success
+
+ @short Change the password of the PKCS#12 in memory.
+ */
+ public native boolean changePassword(String pold, String pnew);
+ /**
+ Get the private key.
+ @return the internal OpenSSL private key format
+
+ @short Get the private key.
+ */
+ // EVP_PKEY* getPrivateKey(); >>>> NOT CONVERTED
+ /**
+ Get the X.509 certificate.
+ @return the X.509 certificate for the PKCS#12 object, or NULL
+
+ @short Get the X.
+ */
+ public native KSSLCertificate getCertificate();
+ /**
+ Write the PKCS#12 to a file in raw mode.
+ @param filename the file to write to
+ @return true on success
+
+ @short Write the PKCS#12 to a file in raw mode.
+ */
+ public native boolean toFile(String filename);
+ /**
+ Check the X.509 and private key to make sure they're valid.
+ @return the result of the validation
+
+ @short Check the X.
+ @see KSSLCertificate
+ */
+ public native int validate();
+ /**
+ Check the X.509 and private key to make sure they're valid.
+ @param p the purpose to validate for
+ @return the result of the validation
+
+ @short Check the X.
+ @see KSSLCertificate
+ */
+ public native int validate(int p);
+ /**
+ Check the X.509 and private key to make sure they're valid.
+ Ignore any cached validation result.
+ @return the result of the validation
+
+ @short Check the X.
+ @see KSSLCertificate
+ */
+ public native int revalidate();
+ /**
+ Check the X.509 and private key to make sure they're valid.
+ Ignore any cached validation result.
+ @param p the purpose to validate for
+ @return the result of the validation
+
+ @short Check the X.
+ @see KSSLCertificate
+ */
+ public native int revalidate(int p);
+ /**
+ Check if the X.509 and private key are valid.
+ @return true if valid
+
+ @short Check if the X.
+ */
+ public native boolean isValid();
+ /**
+ Check if the X.509 and private key are valid.
+ @param p the purpose to validate for
+ @return true if valid
+
+ @short Check if the X.
+ */
+ public native boolean isValid(int p);
+ /**
+ Create a KSSLPKCS12 object from a Base64 in a String.
+ @param base64 the base64 encoded certificate
+ @param password a password for the certificate if encrypted
+ @return the PKCS#12 object, or NULL on failure.
+
+ @short Create a KSSLPKCS12 object from a Base64 in a String.
+ */
+ public static native KSSLPKCS12 fromString(String base64, String password);
+ public static native KSSLPKCS12 fromString(String base64);
+ /**
+ Create a KSSLPKCS12 object by reading a PKCS#12 file.
+ @param filename the filename of the certificate
+ @param password a password for the certificate if encrypted
+ @return the PKCS#12 object, or NULL on failure.
+
+ @short Create a KSSLPKCS12 object by reading a PKCS#12 file.
+ */
+ public static native KSSLPKCS12 loadCertFile(String filename, String password);
+ public static native KSSLPKCS12 loadCertFile(String filename);
+ public KSSLPKCS12() {
+ newKSSLPKCS12();
+ }
+ private native void newKSSLPKCS12();
+ protected native boolean parse(String pass);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLPKCS7.java b/kdejava/koala/org/kde/koala/KSSLPKCS7.java
new file mode 100644
index 00000000..db468b42
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLPKCS7.java
@@ -0,0 +1,98 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ KDE PKCS#7 Certificate
+ This class represents a PKCS#7 certificate
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE PKCS#7 Certificate.
+ @see KSSL
+
+*/
+public class KSSLPKCS7 implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLPKCS7(Class dummy){}
+
+ /**
+ The name of this certificate. This can be used to refer to the
+ certificate instead of passing the object itself.
+ @return the name of the certificate
+
+ @short The name of this certificate.
+ */
+ public native String name();
+ /**
+ Convert to a Base64 string.
+ @return the PKCS#7 object in base64 form
+
+ @short Convert to a Base64 string.
+ */
+ public native String toString();
+ /**
+ Raw set the PKCS7 object.
+ @param c the PKCS7 object
+ @short Raw set the PKCS7 object.
+ */
+ // void setCert(PKCS7* arg1); >>>> NOT CONVERTED
+ /**
+ Get the bottom level X.509 certificate.
+ @return the certificate, or NULL on failure
+
+ @short Get the bottom level X.
+ @see KSSLCertificate
+ */
+ public native KSSLCertificate getCertificate();
+ /**
+ Get the certificate chain.
+ @return the certificate chain
+
+ @short Get the certificate chain.
+ @see KSSLCertChain
+ */
+ public native KSSLCertChain getChain();
+ /**
+ Write the PKCS#7 to a file in raw mode.
+ @param filename the filename to write
+ @return true on success
+
+ @short Write the PKCS#7 to a file in raw mode.
+ */
+ public native boolean toFile(String filename);
+ /**
+ Return true if the chain is valid.
+ @short Return true if the chain is valid.
+ */
+ public native boolean isValid();
+ /**
+ Create a KSSLPKCS7 object from a Base64 in a String.
+ @param base64 the base64 representation of the certificate
+ @return a PKCS#7 object, or NULL on failure
+
+ @short Create a KSSLPKCS7 object from a Base64 in a String.
+ */
+ public static native KSSLPKCS7 fromString(String base64);
+ /**
+ Create a KSSLPKCS7 object by reading a PKCS#7 file.
+ @param filename the filename to read the certificate from
+ @return a PKCS#7 object, or NULL on failure
+
+ @short Create a KSSLPKCS7 object by reading a PKCS#7 file.
+ */
+ public static native KSSLPKCS7 loadCertFile(String filename);
+ public KSSLPKCS7() {
+ newKSSLPKCS7();
+ }
+ private native void newKSSLPKCS7();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLPeerInfo.java b/kdejava/koala/org/kde/koala/KSSLPeerInfo.java
new file mode 100644
index 00000000..114c50ef
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLPeerInfo.java
@@ -0,0 +1,79 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ KDE SSL Peer Data
+ This class contains data about the peer of an SSL connection.
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE SSL Peer Data.
+ @see KSSL
+
+*/
+public class KSSLPeerInfo implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLPeerInfo(Class dummy){}
+
+ /**
+ Get a reference to the peer's certificate
+ @return a reference to the peer's certificate
+
+ @short Get a reference to the peer's certificate
+ @see KSSLCertificate
+ */
+ public native KSSLCertificate getPeerCertificate();
+ /**
+ Determine if the peer's certificate matches the address set with
+ setPeerHost(). Note that this is a match in the "https"
+ sense, taking into account, for instance, wildcards.
+ @return true if it matches
+
+ @short Determine if the peer's certificate matches the address set with setPeerHost().
+ @see #setPeerHost
+ */
+ public native boolean certMatchesAddress();
+ /**
+ Determine if the given "common name" matches the address set with
+ setPeerHost(). Note that this is a match in the "https"
+ sense, taking into account, for instance, wildcards.
+ @return true if it matches
+
+ @short Determine if the given "common name" matches the address set with setPeerHost().
+ @see #setPeerHost
+ */
+ public native boolean cnMatchesAddress(String cn);
+ /**
+ Set the host that we are connected to. This is generally set by
+ KSSL, and should be exactly what the user -thinks- he is connected
+ to. (for instance, the host name in the url)
+ @param host the hostname
+ @short Set the host that we are connected to.
+ */
+ public native void setPeerHost(String host);
+ public native void setPeerHost();
+ /**
+ Returns the host we are connected to.
+ @short Returns the host we are connected to.
+ */
+ public native String peerHost();
+ /**
+ Clear out the host name.
+ @short Clear out the host name.
+ */
+ public native void reset();
+ public KSSLPeerInfo() {
+ newKSSLPeerInfo();
+ }
+ private native void newKSSLPeerInfo();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLSession.java b/kdejava/koala/org/kde/koala/KSSLSession.java
new file mode 100644
index 00000000..a9bbfdcb
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLSession.java
@@ -0,0 +1,46 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ KDE SSL Session Information
+ This class contains data about an SSL session.
+ It is just used as a container that is taken from or passed to KSSL objects.
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE SSL Session Information.
+ @see KSSL
+
+*/
+public class KSSLSession implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLSession(Class dummy){}
+
+ /**
+ Convert to a base64 encoded string (so it can be copied safely)
+ @short Convert to a base64 encoded string (so it can be copied safely)
+ */
+ public native String toString();
+ /**
+ Create as session ID object from a base64 encoded string.
+ @param s the session id in base64 encoded ASN.1 format
+ @return a KSSLSession object, or 0L on error
+
+ @short Create as session ID object from a base64 encoded string.
+ */
+ public static native KSSLSession fromString(String s);
+ public KSSLSession() {
+ newKSSLSession();
+ }
+ private native void newKSSLSession();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLSettings.java b/kdejava/koala/org/kde/koala/KSSLSettings.java
new file mode 100644
index 00000000..41ad6b08
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLSettings.java
@@ -0,0 +1,191 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ KDE SSL Settings
+ This class contains some of the SSL settings for easy use.
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE SSL Settings.
+ @see KSSL
+
+*/
+public class KSSLSettings implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLSettings(Class dummy){}
+
+ /**
+ Construct a KSSL Settings object
+ @param readConfig read in the configuration immediately if true
+ @short Construct a KSSL Settings object
+ */
+ public KSSLSettings(boolean readConfig) {
+ newKSSLSettings(readConfig);
+ }
+ private native void newKSSLSettings(boolean readConfig);
+ public KSSLSettings() {
+ newKSSLSettings();
+ }
+ private native void newKSSLSettings();
+ /**
+ Does the user allow SSLv2
+ @return true if the user allows SSLv2
+
+ @short Does the user allow SSLv2
+ */
+ public native boolean sslv2();
+ /**
+ Does the user allow SSLv3
+ @return true if the user allows SSLv3
+
+ @short Does the user allow SSLv3
+ */
+ public native boolean sslv3();
+ /**
+ Does the user allow TLSv1
+ @return true if the user allows TLSv1
+
+ @short Does the user allow TLSv1
+ */
+ public native boolean tlsv1();
+ /**
+ Does the user want to be warned on entering SSL mode
+ @return true if the user wants to be warned
+
+ @short Does the user want to be warned on entering SSL mode
+ */
+ public native boolean warnOnEnter();
+ /**
+ Change the user's warnOnEnter() setting
+ @param x true if the user is to be warned
+ @short Change the user's warnOnEnter() setting
+ @see #warnOnEnter
+ */
+ public native void setWarnOnEnter(boolean x);
+ /**
+ Does the user want to be warned on sending unencrypted data
+ @return true if the user wants to be warned
+
+ @short Does the user want to be warned on sending unencrypted data
+ @see #setWarnOnUnencrypted
+ */
+ public native boolean warnOnUnencrypted();
+ /**
+ Change the user's warnOnUnencrypted() setting
+ @param x true if the user is to be warned
+ @short Change the user's warnOnUnencrypted() setting
+ @see #warnOnUnencrypted
+ */
+ public native void setWarnOnUnencrypted(boolean x);
+ /**
+ Does the user want to be warned on leaving SSL mode
+ @return true if the user wants to be warned
+
+ @short Does the user want to be warned on leaving SSL mode
+ */
+ public native boolean warnOnLeave();
+ /**
+ Change the user's warnOnLeave() setting
+ @param x true if the user is to be warned
+ @short Change the user's warnOnLeave() setting
+ @see #warnOnLeave
+ */
+ public native void setWarnOnLeave(boolean x);
+ /**
+ Does the user want to be warned during mixed SSL/non-SSL mode
+ @return true if the user wants to be warned
+
+ @short Does the user want to be warned during mixed SSL/non-SSL mode
+ */
+ public native boolean warnOnMixed();
+ /**
+ Does the user want to use the Entropy Gathering Daemon?
+ @return true if the user wants to use EGD
+
+ @short Does the user want to use the Entropy Gathering Daemon?
+ */
+ public native boolean useEGD();
+ /**
+ Does the user want to use an entropy file?
+ @return true if the user wants to use an entropy file
+
+ @short Does the user want to use an entropy file?
+ */
+ public native boolean useEFile();
+ /**
+ Change the user's TLSv1 preference
+ @param enabled true if TLSv1 is enabled
+ @short Change the user's TLSv1 preference
+ */
+ public native void setTLSv1(boolean enabled);
+ /**
+ Change the user's SSLv2 preference
+ @param enabled true if SSLv2 is enabled
+ @short Change the user's SSLv2 preference
+ */
+ public native void setSSLv2(boolean enabled);
+ /**
+ Change the user's SSLv3 preference
+ @param enabled true if SSLv3 is enabled
+ @short Change the user's SSLv3 preference
+ */
+ public native void setSSLv3(boolean enabled);
+ /**
+ Does the user want X.509 client certificates to always be sent when
+ possible?
+ @return true if the user always wants a certificate sent
+
+ @short Does the user want X.
+ */
+ public native boolean autoSendX509();
+ /**
+ Does the user want to be prompted to send X.509 client certificates
+ when possible?
+ @return true if the user wants to be prompted
+
+ @short Does the user want to be prompted to send X.
+ */
+ public native boolean promptSendX509();
+ /**
+ Get the OpenSSL cipher list for selecting the list of ciphers to
+ use in a connection.
+ @return the cipher list
+
+ @short Get the OpenSSL cipher list for selecting the list of ciphers to use in a connection.
+ */
+ public native String getCipherList();
+ /**
+ Get the configured path to the entropy gathering daemon or entropy
+ file.
+ @return the path
+
+ @short Get the configured path to the entropy gathering daemon or entropy file.
+ */
+ public native String getEGDPath();
+ /**
+ Load the user's settings.
+ @short Load the user's settings.
+ */
+ public native void load();
+ /**
+ Revert to default settings.
+ @short Revert to default settings.
+ */
+ public native void defaults();
+ /**
+ Save the current settings.
+ @short Save the current settings.
+ */
+ public native void save();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLSigners.java b/kdejava/koala/org/kde/koala/KSSLSigners.java
new file mode 100644
index 00000000..1d87e178
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLSigners.java
@@ -0,0 +1,159 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ KDE SSL Signer Database
+ This class is used to manipulate the KDE SSL signer database. It
+ communicates to the KDE SSL daemon via dcop for backend integration.
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE SSL Signer Database.
+ @see KSSL
+ @see KSSLCertificate
+
+*/
+public class KSSLSigners implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLSigners(Class dummy){}
+
+ /**
+ Construct a KSSLSigner object.
+ @short Construct a KSSLSigner object.
+ */
+ public KSSLSigners() {
+ newKSSLSigners();
+ }
+ private native void newKSSLSigners();
+ /**
+ Add a signer to the database.
+ @param cert the signer's certificate
+ @param ssl allow it to sign for SSL
+ @param email allow it to sign for S/MIME
+ @param code allow it to sign for code signing
+ @return true on success
+
+ @short Add a signer to the database.
+ */
+ public native boolean addCA(KSSLCertificate cert, boolean ssl, boolean email, boolean code);
+ /**
+ Add a signer to the database.
+ @param cert the signer's certificate in base64 form
+ @param ssl allow it to sign for SSL
+ @param email allow it to sign for S/MIME
+ @param code allow it to sign for code signing
+ @return true on success
+
+ @short Add a signer to the database.
+ */
+ public native boolean addCA(String cert, boolean ssl, boolean email, boolean code);
+ /**
+ Regenerate the signer-root file from the user's settings.
+ @return true on success
+
+ @short Regenerate the signer-root file from the user's settings.
+ */
+ public native boolean regenerate();
+ /**
+ Determine if a certificate can be used for SSL certificate signing
+ @param cert the certificate
+ @return true if it can be used for SSL
+
+ @short Determine if a certificate can be used for SSL certificate signing
+ */
+ public native boolean useForSSL(KSSLCertificate cert);
+ /**
+ Determine if a certificate can be used for SSL certificate signing
+ @param subject the certificate subject
+ @return true if it can be used for SSL
+
+ @short Determine if a certificate can be used for SSL certificate signing
+ */
+ public native boolean useForSSL(String subject);
+ /**
+ Determine if a certificate can be used for S/MIME certificate signing
+ @param cert the certificate
+ @return true if it can be used for S/MIME
+
+ @short Determine if a certificate can be used for S/MIME certificate signing
+ */
+ public native boolean useForEmail(KSSLCertificate cert);
+ /**
+ Determine if a certificate can be used for S/MIME certificate signing
+ @param subject the certificate subject
+ @return true if it can be used for S/MIME
+
+ @short Determine if a certificate can be used for S/MIME certificate signing
+ */
+ public native boolean useForEmail(String subject);
+ /**
+ Determine if a certificate can be used for code certificate signing
+ @param cert the certificate
+ @return true if it can be used for code
+
+ @short Determine if a certificate can be used for code certificate signing
+ */
+ public native boolean useForCode(KSSLCertificate cert);
+ /**
+ Determine if a certificate can be used for code certificate signing
+ @param subject the certificate subject
+ @return true if it can be used for code
+
+ @short Determine if a certificate can be used for code certificate signing
+ */
+ public native boolean useForCode(String subject);
+ /**
+ Remove a certificate signer from the database
+ @param cert the certificate to remove
+ @return true on success
+
+ @short Remove a certificate signer from the database
+ */
+ public native boolean remove(KSSLCertificate cert);
+ /**
+ Remove a certificate signer from the database
+ @param subject the subject of the certificate to remove
+ @return true on success
+
+ @short Remove a certificate signer from the database
+ */
+ public native boolean remove(String subject);
+ /**
+ List the signers in the database.
+ @return the list of subjects in the database
+
+ @short List the signers in the database.
+ @see #getCert
+ */
+ public native ArrayList list();
+ /**
+ Get a signer certificate from the database.
+ @param subject the subject of the certificate desired
+ @return the base64 encoded certificate
+
+ @short Get a signer certificate from the database.
+ */
+ public native String getCert(String subject);
+ /**
+ Set the use of a particular entry in the certificate signer database.
+ @param subject the subject of the certificate in question
+ @param ssl allow this for SSL certificate signing
+ @param email allow this for S/MIME certificate signing
+ @param code allow this for code certificate signing
+ @return true on success
+
+ @short Set the use of a particular entry in the certificate signer database.
+ */
+ public native boolean setUse(String subject, boolean ssl, boolean email, boolean code);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLX509Map.java b/kdejava/koala/org/kde/koala/KSSLX509Map.java
new file mode 100644
index 00000000..3639d283
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLX509Map.java
@@ -0,0 +1,62 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ X.509 Map Parsing Class
+ This class is used to parse and store a map as used in X.509 certificates.
+ It is of the form /name=value/name=value/name=value
+ @author George Staikos <staikos@kde.org>
+
+ @short X.509 Map Parser.
+ @see KSSL
+ @see KSSLCertificate
+
+*/
+public class KSSLX509Map implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLX509Map(Class dummy){}
+
+ /**
+ Construct an X.509 Map
+ @param name the map to parse
+ @short Construct an X.
+ */
+ public KSSLX509Map(String name) {
+ newKSSLX509Map(name);
+ }
+ private native void newKSSLX509Map(String name);
+ /**
+ Set a value in the map
+ @param key the key
+ @param value the value
+ @short Set a value in the map
+ */
+ public native void setValue(String key, String value);
+ /**
+ Get the value of an entry in the map
+ @param key the key
+ @return the value
+
+ @short Get the value of an entry in the map
+ */
+ public native String getValue(String key);
+ /**
+ Reset (clear) the internal storage.
+ @param name if this is not empty, it will be parsed and used as
+ the new map internally
+ @short Reset (clear) the internal storage.
+ */
+ public native void reset(String name);
+ public native void reset();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSSLX509V3.java b/kdejava/koala/org/kde/koala/KSSLX509V3.java
new file mode 100644
index 00000000..d1acd505
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSSLX509V3.java
@@ -0,0 +1,110 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ KDE X509v3 Flag Class
+ This class is used to track X509v3 flags for
+ @author George Staikos <staikos@kde.org>
+
+ @short KDE SSL Class.
+ @see KExtendedSocket
+ @see TCPSlaveBase
+
+*/
+public class KSSLX509V3 implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSSLX509V3(Class dummy){}
+
+ /**
+ Determine if this certificate can be used by a certificate authority
+ @return true if it can be used by a certificate authority
+
+ @short Determine if this certificate can be used by a certificate authority
+ */
+ public native boolean certTypeCA();
+ /**
+ Determine if this certificate can be used by an SSL signer
+ @return true if it can be used by an SSL signer
+
+ @short Determine if this certificate can be used by an SSL signer
+ */
+ public native boolean certTypeSSLCA();
+ /**
+ Determine if this certificate can be used by an S/MIME signer
+ @return true if it can be used by an S/MIME signer
+
+ @short Determine if this certificate can be used by an S/MIME signer
+ */
+ public native boolean certTypeEmailCA();
+ /**
+ Determine if this certificate can be used by a code certificate signer
+ @return true if it can be used by a code certificate signer
+
+ @short Determine if this certificate can be used by a code certificate signer
+ */
+ public native boolean certTypeCodeCA();
+ /**
+ Determine if this certificate can be used by an SSL client
+ @return true if it can be used by an SSL client
+
+ @short Determine if this certificate can be used by an SSL client
+ */
+ public native boolean certTypeSSLClient();
+ /**
+ Determine if this certificate can be used by an SSL server
+ @return true if it can be used by an SSL server
+
+ @short Determine if this certificate can be used by an SSL server
+ */
+ public native boolean certTypeSSLServer();
+ /**
+ Determine if this certificate can be used by a Netscape SSL server
+ @return true if it can be used by a Netscape SSL server
+
+ @short Determine if this certificate can be used by a Netscape SSL server
+ */
+ public native boolean certTypeNSSSLServer();
+ /**
+ Determine if this certificate can be used for S/MIME
+ @return true if it can be used for S/MIME
+
+ @short Determine if this certificate can be used for S/MIME
+ */
+ public native boolean certTypeSMIME();
+ /**
+ Determine if this certificate can be used for S/MIME encryption
+ @return true if it can be used for S/MIME encryption
+
+ @short Determine if this certificate can be used for S/MIME encryption
+ */
+ public native boolean certTypeSMIMEEncrypt();
+ /**
+ Determine if this certificate can be used for S/MIME signing
+ @return true if it can be used for S/MIME signing
+
+ @short Determine if this certificate can be used for S/MIME signing
+ */
+ public native boolean certTypeSMIMESign();
+ /**
+ Determine if this certificate can be used for revocation signing
+ @return true if it can be used for revocation signing
+
+ @short Determine if this certificate can be used for revocation signing
+ */
+ public native boolean certTypeCRLSign();
+ public KSSLX509V3() {
+ newKSSLX509V3();
+ }
+ private native void newKSSLX509V3();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSaveFile.java b/kdejava/koala/org/kde/koala/KSaveFile.java
new file mode 100644
index 00000000..31a29dd7
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSaveFile.java
@@ -0,0 +1,135 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+import org.kde.qt.QFile;
+import org.kde.qt.QTextStream;
+
+/**
+
+ The KSaveFile class has been made to write out changes to an existing
+ file atomically.
+ This means that EITHER:
+ a)
+ All changes have been written successfully to the file.
+ b)
+ Some error occurred, no changes have been written whatsoever and the
+ old file is still in place.
+ @short The KSaveFile class has been made to write out changes to an existing file atomically.
+
+*/
+public class KSaveFile implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSaveFile(Class dummy){}
+
+ /**
+ Creates a new KSaveFile with the given file name.
+ @param filename the path of the file
+ @param mode the mode of the file (see chmod(1))
+ @short Creates a new KSaveFile with the given file name.
+ */
+ public KSaveFile(String filename, int mode) {
+ newKSaveFile(filename,mode);
+ }
+ private native void newKSaveFile(String filename, int mode);
+ public KSaveFile(String filename) {
+ newKSaveFile(filename);
+ }
+ private native void newKSaveFile(String filename);
+ /**
+ Returns the status of the file based on errno. (see errno.h)
+ 0 means OK.
+ You should check the status after object creation to check
+ whether a file could be created in the first place.
+ You may check the status after closing the file to verify that
+ the file has indeed been written correctly.
+ @return the errno status, 0 means ok
+
+ @short Returns the status of the file based on errno.
+ */
+ public native int status();
+ /**
+ The name of the file as passed to the constructor.
+ @return The name of the file, or null if opening the
+ file has failed
+
+ @short The name of the file as passed to the constructor.
+ */
+ public native String name();
+ /**
+ An integer file descriptor open for writing to the file.
+ @return The file descriptor, or a negative number if opening
+ the temporary file failed
+
+ @short An integer file descriptor open for writing to the file.
+ */
+ public native int handle();
+ /**
+ A FILE stream open for writing to the file.
+ @return FILE* stream open for writing to the file, or 0
+ if opening the temporary file failed
+
+ @short A FILE stream open for writing to the file.
+ */
+ // FILE* fstream(); >>>> NOT CONVERTED
+ /**
+ A QFile open for writing to the file.
+ @return A QFile open for writing to the file, or 0 if
+ opening the temporary file failed.
+
+ @short A QFile open for writing to the file.
+ */
+ public native QFile file();
+ /**
+ A QTextStream open for writing to the file.
+ @return A QTextStream that is open for writing to the file, or 0
+ if opening the temporary file failed
+
+ @short A QTextStream open for writing to the file.
+ */
+ public native QTextStream textStream();
+ /**
+ A QDataStream open for writing to the file.
+ @return A QDataStream that is open for writing to the file, or 0
+ if opening the file failed
+
+ @short A QDataStream open for writing to the file.
+ */
+ public native QDataStream dataStream();
+ /**
+ Aborts the write operation and removes any intermediate files
+ This implies a close.
+ @short Aborts the write operation and removes any intermediate files This implies a close.
+ */
+ public native void abort();
+ /**
+ Closes the file and makes the changes definitive.
+ Returns 'true' is successful, or 'false' if an error has occurred.
+ See status() for details about errors.
+ @return true if successful, or false if an error has occurred.
+
+ @short Closes the file and makes the changes definitive.
+ */
+ public native boolean close();
+ /**
+ Static method to create a backup file before saving.
+ You can use this method even if you don't use KSaveFile.
+ @param filename the file to backup
+ @param backupDir optional directory where to save the backup file in.
+ If empty (the default), the backup will be in the same directory as <code>filename.</code>
+ @param backupExtension the extension to append to <code>filename</code>, "~" by default.
+ @short Static method to create a backup file before saving.
+ */
+ public static native boolean backupFile(String filename, String backupDir, String backupExtension);
+ public static native boolean backupFile(String filename, String backupDir);
+ public static native boolean backupFile(String filename);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KScanDialog.java b/kdejava/koala/org/kde/koala/KScanDialog.java
new file mode 100644
index 00000000..159dac45
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KScanDialog.java
@@ -0,0 +1,143 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QImage;
+import org.kde.qt.QWidget;
+
+/**
+
+ This is a base class for scanning dialogs. You can derive from this class
+ and implement your own dialog. An implementation is available in
+ kdegraphics/libkscan.
+ Application developers that wish to add scanning support to their program
+ can use the static method <code>KScanDialog</code>.getScanDialog() to get an instance
+ of the user's preferred scanning dialog.
+ Typical usage looks like this (e.g. in a slotShowScanDialog() method):
+ <pre>
+ if ( !m_scanDialog ) {
+ m_scanDialog = KScanDialog.getScanDialog( this, "scandialog" );
+ if ( !m_scanDialog ) // no scanning support installed?
+ return;
+ connect( m_scanDialog, SIGNAL("finalImage( QImage, int )"),
+ SLOT("slotScanned( QImage, int )"));
+ }
+ if ( m_scanDialog.setup() ) // only if scanner configured/available
+ m_scanDialog.show();
+ </pre>
+ This will create and show a non-modal scanning dialog. Connect to more
+ signals if you like.
+ If you implement an own scan-dialog, you also have to implement a
+ KScanDialogFactory.
+ See {@link KScanDialogSignals} for signals emitted by KScanDialog
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short A baseclass and accessor for Scanning Dialogs.
+
+*/
+public class KScanDialog extends KDialogBase {
+ protected KScanDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Reimplement this if you need to set up some things, before showing the
+ dialog, e.g. to ask the user for the scanner device to use. If you
+ return false (e.g. there is no device available or the user aborted
+ device selection), the dialog will not be shown.
+ @return true by default.
+
+ @short Reimplement this if you need to set up some things, before showing the dialog, e.
+ */
+ public native boolean setup();
+ /**
+ Creates the user's preferred scanning dialog and returns it,
+ or null if no scan-support
+ is available. Pass a suitable <code>parent</code> widget, if you like. If you
+ don't you have to 'delete' the returned pointer yourself.
+ @param parent the QWidget's parent, or 0
+ @param name the name of the QObject, can be 0
+ @param modal if true the dialog is model
+ @return the KScanDialog, or 0 if the function failed
+
+ @short Creates the user's preferred scanning dialog and returns it, or 0L if no scan-support is available.
+ */
+ public static native KScanDialog getScanDialog(QWidget parent, String name, boolean modal);
+ public static native KScanDialog getScanDialog(QWidget parent, String name);
+ public static native KScanDialog getScanDialog(QWidget parent);
+ public static native KScanDialog getScanDialog();
+ /**
+ Constructs the scan dialog. If you implement an own dialog, you can
+ customize it with the usual KDialogBase flags.
+ @param dialogFace the KDialogBase.DialogType
+ @param buttonMask a ORed mask of all buttons (see
+ KDialogBase.ButtonCode)
+ @param parent the QWidget's parent, or 0
+ @param name the name of the QObject, can be 0
+ @param modal if true the dialog is model
+ @short Constructs the scan dialog.
+ @see KDialogBase
+ */
+ public KScanDialog(int dialogFace, int buttonMask, QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKScanDialog(dialogFace,buttonMask,parent,name,modal);
+ }
+ private native void newKScanDialog(int dialogFace, int buttonMask, QWidget parent, String name, boolean modal);
+ public KScanDialog(int dialogFace, int buttonMask, QWidget parent, String name) {
+ super((Class) null);
+ newKScanDialog(dialogFace,buttonMask,parent,name);
+ }
+ private native void newKScanDialog(int dialogFace, int buttonMask, QWidget parent, String name);
+ public KScanDialog(int dialogFace, int buttonMask, QWidget parent) {
+ super((Class) null);
+ newKScanDialog(dialogFace,buttonMask,parent);
+ }
+ private native void newKScanDialog(int dialogFace, int buttonMask, QWidget parent);
+ public KScanDialog(int dialogFace, int buttonMask) {
+ super((Class) null);
+ newKScanDialog(dialogFace,buttonMask);
+ }
+ private native void newKScanDialog(int dialogFace, int buttonMask);
+ public KScanDialog(int dialogFace) {
+ super((Class) null);
+ newKScanDialog(dialogFace);
+ }
+ private native void newKScanDialog(int dialogFace);
+ public KScanDialog() {
+ super((Class) null);
+ newKScanDialog();
+ }
+ private native void newKScanDialog();
+ /**
+ Returns the current id for an image. You can use that in your subclass
+ for the signals. The id is used in the signals to let people know
+ which preview and which text-recognition belongs to which scan.
+ @return the current id for the image
+
+ @short Returns the current id for an image.
+ @see #nextId
+ @see #finalImage
+ @see #preview
+ @see #textRecognized
+ */
+ protected native int id();
+ /**
+ Returns the id for the next image. You can use that in your subclass
+ for the signals.
+ @return the id for the next image
+
+ @short Returns the id for the next image.
+ @see #id
+ @see #finalImage
+ @see #preview
+ @see #textRecognized
+ */
+ protected native int nextId();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KScanDialogSignals.java b/kdejava/koala/org/kde/koala/KScanDialogSignals.java
new file mode 100644
index 00000000..d272143d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KScanDialogSignals.java
@@ -0,0 +1,36 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QImage;
+import org.kde.qt.QWidget;
+
+public interface KScanDialogSignals {
+ /**
+ Informs you that an image has been previewed.
+ @param img the image
+ @param id the image's id
+ @short Informs you that an image has been previewed.
+ */
+ void preview(QImage img, int id);
+ /**
+ Informs you that an image has scanned. <code>id</code> is the same as in the
+ <code>preview</code>() signal, if this image had been previewed before.
+ Note, that those id's may not be properly implemented in the current
+ libkscan.
+ @param img the image
+ @param id the image's id
+ @short Informs you that an image has scanned.
+ */
+ void finalImage(QImage img, int id);
+ /**
+ Informs you that the image with the id <code>id</code> has been run through
+ text-recognition. The text is in the String parameter. In the future,
+ a compound document, using rich text will be used instead.
+ @param text the text that has been recognized
+ @param id the id of the image
+ @short Informs you that the image with the id <code>id</code> has been run through text-recognition.
+ */
+ void textRecognized(String text, int id);
+}
diff --git a/kdejava/koala/org/kde/koala/KSelectAction.java b/kdejava/koala/org/kde/koala/KSelectAction.java
new file mode 100644
index 00000000..0ef08643
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSelectAction.java
@@ -0,0 +1,314 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import java.util.ArrayList;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+
+/**
+
+ Action for selecting one of several items.
+ This action shows up a submenu with a list of items.
+ One of them can be checked. If the user clicks on an item
+ this item will automatically be checked,
+ the formerly checked item becomes unchecked.
+ There can be only one item checked at a time.
+ See {@link KSelectActionSignals} for signals emitted by KSelectAction
+ @short Action for selecting one of several items.
+
+*/
+public class KSelectAction extends KAction {
+ protected KSelectAction(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a select action with text and potential keyboard
+ accelerator but nothing else. Use this only if you really
+ know what you are doing.
+ @param text The text that will be displayed.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short Constructs a select action with text and potential keyboard accelerator but nothing else.
+ */
+ public KSelectAction(String text, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKSelectAction(text,cut,parent,name);
+ }
+ private native void newKSelectAction(String text, KShortcut cut, QObject parent, String name);
+ public KSelectAction(String text, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKSelectAction(text,cut,parent);
+ }
+ private native void newKSelectAction(String text, KShortcut cut, QObject parent);
+ public KSelectAction(String text, KShortcut cut) {
+ super((Class) null);
+ newKSelectAction(text,cut);
+ }
+ private native void newKSelectAction(String text, KShortcut cut);
+ public KSelectAction(String text) {
+ super((Class) null);
+ newKSelectAction(text);
+ }
+ private native void newKSelectAction(String text);
+ /**
+ @param text The text that will be displayed.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KSelectAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKSelectAction(text,cut,receiver,slot,parent,name);
+ }
+ private native void newKSelectAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KSelectAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKSelectAction(text,cut,receiver,slot,parent);
+ }
+ private native void newKSelectAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param text The text that will be displayed.
+ @param pix The icons that go with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KSelectAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKSelectAction(text,pix,cut,parent,name);
+ }
+ private native void newKSelectAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name);
+ public KSelectAction(String text, QIconSet pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKSelectAction(text,pix,cut,parent);
+ }
+ private native void newKSelectAction(String text, QIconSet pix, KShortcut cut, QObject parent);
+ public KSelectAction(String text, QIconSet pix, KShortcut cut) {
+ super((Class) null);
+ newKSelectAction(text,pix,cut);
+ }
+ private native void newKSelectAction(String text, QIconSet pix, KShortcut cut);
+ public KSelectAction(String text, QIconSet pix) {
+ super((Class) null);
+ newKSelectAction(text,pix);
+ }
+ private native void newKSelectAction(String text, QIconSet pix);
+ /**
+ @param text The text that will be displayed.
+ @param pix The dynamically loaded icon that goes with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KSelectAction(String text, String pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKSelectAction(text,pix,cut,parent,name);
+ }
+ private native void newKSelectAction(String text, String pix, KShortcut cut, QObject parent, String name);
+ public KSelectAction(String text, String pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKSelectAction(text,pix,cut,parent);
+ }
+ private native void newKSelectAction(String text, String pix, KShortcut cut, QObject parent);
+ public KSelectAction(String text, String pix, KShortcut cut) {
+ super((Class) null);
+ newKSelectAction(text,pix,cut);
+ }
+ private native void newKSelectAction(String text, String pix, KShortcut cut);
+ public KSelectAction(String text, String pix) {
+ super((Class) null);
+ newKSelectAction(text,pix);
+ }
+ private native void newKSelectAction(String text, String pix);
+ /**
+ @param text The text that will be displayed.
+ @param pix The icons that go with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KSelectAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKSelectAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKSelectAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KSelectAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKSelectAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKSelectAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param text The text that will be displayed.
+ @param pix The dynamically loaded icon that goes with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KSelectAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKSelectAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKSelectAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KSelectAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKSelectAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKSelectAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KSelectAction(QObject parent, String name) {
+ super((Class) null);
+ newKSelectAction(parent,name);
+ }
+ private native void newKSelectAction(QObject parent, String name);
+ public KSelectAction(QObject parent) {
+ super((Class) null);
+ newKSelectAction(parent);
+ }
+ private native void newKSelectAction(QObject parent);
+ public KSelectAction() {
+ super((Class) null);
+ newKSelectAction();
+ }
+ private native void newKSelectAction();
+ /**
+ "Plug" or insert this action into a given widget.
+ This will typically be a menu or a toolbar.
+ From this point on, you will never need to directly
+ manipulate the item in the menu or toolbar.
+ You do all enabling/disabling/manipulation directly with your KSelectAction object.
+ @param widget The GUI element to display this action.
+ @param index The index of the item.
+ @short "Plug" or insert this action into a given widget.
+ */
+ public native int plug(QWidget widget, int index);
+ public native int plug(QWidget widget);
+ /**
+ When this action is plugged into a toolbar, it creates a combobox.
+ @return true if the combo editable.
+
+ @short When this action is plugged into a toolbar, it creates a combobox.
+ */
+ public native boolean isEditable();
+ /**
+ @return the items that can be selected with this action.
+ Use setItems to set them.
+
+ @short
+ */
+ public native ArrayList items();
+ /**
+ Changes the text of item @param index to @param text .
+ @short Changes the text of item @param index to @param text .
+ */
+ public native void changeItem(int index, String text);
+ /**
+ Returns the text of the currently selected item.
+ @short Returns the text of the currently selected item.
+ */
+ public native String currentText();
+ /**
+ Returns the index of the current item.
+ @short Returns the index of the current item.
+ @see #setCurrentItem
+ */
+ public native int currentItem();
+ /**
+ When this action is plugged into a toolbar, it creates a combobox.
+ This returns the maximum width set by setComboWidth
+ @short When this action is plugged into a toolbar, it creates a combobox.
+ */
+ public native int comboWidth();
+ /**
+ Sets the maximum items that are visible at once if the action
+ is a combobox, that is the number of items in the combobox's viewport
+ Only works before the action is plugged
+ @short Sets the maximum items that are visible at once if the action is a combobox, that is the number of items in the combobox's viewport Only works before the action is plugged
+ */
+ public native void setMaxComboViewCount(int n);
+ /**
+ Returns a pointer to the popup menu used by this action.
+ @short Returns a pointer to the popup menu used by this action.
+ */
+ public native QPopupMenu popupMenu();
+ public native boolean removeAmpersandsInCombo();
+ /**
+ Sets whether any occurrence of the ampersand character ( &amp; ) in items
+ should be interpreted as keyboard accelerator for items displayed in a
+ menu or not.
+ @short Sets whether any occurrence of the ampersand character ( &amp; ) in items should be interpreted as keyboard accelerator for items displayed in a menu or not.
+ */
+ public native void setMenuAccelsEnabled(boolean b);
+ public native boolean menuAccelsEnabled();
+ /**
+ Sets the currently checked item.
+ @param index Index of the item (remember the first item is zero).
+ @short Sets the currently checked item.
+ */
+ public native void setCurrentItem(int index);
+ /**
+ Sets the items to be displayed in this action
+ You need to call this.
+ @short Sets the items to be displayed in this action You need to call this.
+ */
+ public native void setItems(String[] lst);
+ /**
+ Clears up all the items in this action
+ @short Clears up all the items in this action
+ */
+ public native void clear();
+ /**
+ When this action is plugged into a toolbar, it creates a combobox.
+ This makes the combo editable or read-only.
+ @short When this action is plugged into a toolbar, it creates a combobox.
+ */
+ public native void setEditable(boolean arg1);
+ /**
+ When this action is plugged into a toolbar, it creates a combobox.
+ This gives a _maximum_ size to the combobox.
+ The minimum size is automatically given by the contents (the items).
+ @short When this action is plugged into a toolbar, it creates a combobox.
+ */
+ public native void setComboWidth(int width);
+ protected native void changeItem(int id, int index, String text);
+ /**
+ Depending on the menuAccelsEnabled property this method will return the
+ actions items in a way for inclusion in a combobox with the ampersand
+ character removed from all items or not.
+ @short Depending on the menuAccelsEnabled property this method will return the actions items in a way for inclusion in a combobox with the ampersand character removed from all items or not.
+ */
+ protected native ArrayList comboItems();
+ protected native void updateCurrentItem(int id);
+ protected native void updateComboWidth(int id);
+ protected native void updateItems(int id);
+ protected native void updateClear(int id);
+ protected native void slotActivated(int id);
+ protected native void slotActivated(String text);
+ protected native void slotActivated();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSelectActionSignals.java b/kdejava/koala/org/kde/koala/KSelectActionSignals.java
new file mode 100644
index 00000000..f2e07a28
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSelectActionSignals.java
@@ -0,0 +1,25 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import java.util.ArrayList;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+
+public interface KSelectActionSignals {
+ /**
+ This signal is emitted when an item is selected; @param index indicated
+ the item selected.
+ @short This signal is emitted when an item is selected; @param index indicated the item selected.
+ */
+ void activated(int index);
+ /**
+ This signal is emitted when an item is selected; @param text indicates
+ the item selected.
+ @short This signal is emitted when an item is selected; @param text indicates the item selected.
+ */
+ void activated(String text);
+}
diff --git a/kdejava/koala/org/kde/koala/KSelector.java b/kdejava/koala/org/kde/koala/KSelector.java
new file mode 100644
index 00000000..9a7e30d6
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSelector.java
@@ -0,0 +1,172 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QPoint;
+import org.kde.qt.QPainter;
+import org.kde.qt.QRangeControl;
+import org.kde.qt.QRangeControlInterface;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWheelEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ KSelector is the base class for other widgets which
+ provides the ability to choose from a one-dimensional
+ range of values. An example is the KGradientSelector
+ which allows to choose from a range of colors.
+ A custom drawing routine for the widget surface has
+ to be provided by the subclass.
+ See {@link KSelectorSignals} for signals emitted by KSelector
+ @short KSelector is the base class for other widgets which provides the ability to choose from a one-dimensional range of values.
+
+*/
+public class KSelector extends QWidget implements QRangeControlInterface {
+ protected KSelector(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a horizontal one-dimensional selection widget.
+ @short Constructs a horizontal one-dimensional selection widget.
+ */
+ public KSelector(QWidget parent, String name) {
+ super((Class) null);
+ newKSelector(parent,name);
+ }
+ private native void newKSelector(QWidget parent, String name);
+ public KSelector(QWidget parent) {
+ super((Class) null);
+ newKSelector(parent);
+ }
+ private native void newKSelector(QWidget parent);
+ public KSelector() {
+ super((Class) null);
+ newKSelector();
+ }
+ private native void newKSelector();
+ /**
+ Constructs a one-dimensional selection widget with
+ a given orientation.
+ @short Constructs a one-dimensional selection widget with a given orientation.
+ */
+ public KSelector(int o, QWidget parent, String name) {
+ super((Class) null);
+ newKSelector(o,parent,name);
+ }
+ private native void newKSelector(int o, QWidget parent, String name);
+ public KSelector(int o, QWidget parent) {
+ super((Class) null);
+ newKSelector(o,parent);
+ }
+ private native void newKSelector(int o, QWidget parent);
+ public KSelector(int o) {
+ super((Class) null);
+ newKSelector(o);
+ }
+ private native void newKSelector(int o);
+ /**
+ @return the orientation of the widget.
+
+ @short
+ */
+ public native int orientation();
+ /**
+ @return the rectangle on which subclasses should draw.
+
+ @short
+ */
+ public native QRect contentsRect();
+ /**
+ Sets the indent option of the widget to i.
+ This determines whether a shaded frame is drawn.
+ @short Sets the indent option of the widget to i.
+ */
+ public native void setIndent(boolean i);
+ /**
+ @return whether the indent option is set.
+
+ @short
+ */
+ public native boolean indent();
+ /**
+ Sets the value.
+ @short Sets the value.
+ */
+ public native void setValue(int value);
+ /**
+ @return the value.
+
+ @short
+ */
+ public native int value();
+ /**
+ Sets the min value.
+ @short Sets the min value.
+ */
+ public native void setMinValue(int value);
+ /**
+ @return the min value.
+
+ @short
+ */
+ public native int minValue();
+ /**
+ Sets the max value.
+ @short Sets the max value.
+ */
+ public native void setMaxValue(int value);
+ /**
+ @return the max value.
+
+ @short
+ */
+ public native int maxValue();
+ /**
+ Override this function to draw the contents of the control.
+ The default implementation does nothing.
+ Draw only within contentsRect().
+ @short Override this function to draw the contents of the control.
+ */
+ protected native void drawContents(QPainter arg1);
+ /**
+ Override this function to draw the cursor which
+ indicates the current value. This function is
+ always called twice, once with argument show=false
+ to clear the old cursor, once with argument show=true
+ to draw the new one.
+ @short Override this function to draw the cursor which indicates the current value.
+ */
+ protected native void drawArrow(QPainter painter, boolean show, QPoint pos);
+ protected native void valueChange();
+ protected native void paintEvent(QPaintEvent arg1);
+ protected native void mousePressEvent(QMouseEvent e);
+ protected native void mouseMoveEvent(QMouseEvent e);
+ protected native void wheelEvent(QWheelEvent arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+ public native void addPage();
+ public native void subtractPage();
+ public native void addLine();
+ public native void subtractLine();
+ public native void setRange(int minValue, int maxValue);
+ public native int lineStep();
+ public native int pageStep();
+ public native void setSteps(int line, int page);
+ public native int bound(int arg1);
+ protected native int positionFromValue(int val, int space);
+ protected native int valueFromPosition(int pos, int space);
+ protected native void directSetValue(int val);
+ protected native int prevValue();
+ protected native void rangeChange();
+ protected native void stepChange();
+}
diff --git a/kdejava/koala/org/kde/koala/KSelectorSignals.java b/kdejava/koala/org/kde/koala/KSelectorSignals.java
new file mode 100644
index 00000000..dfd34662
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSelectorSignals.java
@@ -0,0 +1,23 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QPoint;
+import org.kde.qt.QPainter;
+import org.kde.qt.QRangeControl;
+import org.kde.qt.QRangeControlInterface;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWheelEvent;
+
+public interface KSelectorSignals {
+ /**
+ This signal is emitted whenever the user chooses a value,
+ e.g. by clicking with the mouse on the widget.
+ @short This signal is emitted whenever the user chooses a value, e.
+ */
+ void valueChanged(int value);
+}
diff --git a/kdejava/koala/org/kde/koala/KSeparator.java b/kdejava/koala/org/kde/koala/KSeparator.java
new file mode 100644
index 00000000..3e9f1540
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSeparator.java
@@ -0,0 +1,111 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QPainter;
+import org.kde.qt.QWidget;
+import org.kde.qt.QFrame;
+
+/**
+
+ Standard horizontal or vertical separator.
+ @author Michael Roth <mroth@wirlweb.de>
+
+ @version $Id$
+
+ @short Standard horizontal or vertical separator.
+
+*/
+public class KSeparator extends QFrame {
+ protected KSeparator(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor.
+ @param parent parent object.
+ @param name name of the new object.
+ @param f extra QWidget flags.
+ @short Constructor.
+ */
+ public KSeparator(QWidget parent, String name, int f) {
+ super((Class) null);
+ newKSeparator(parent,name,f);
+ }
+ private native void newKSeparator(QWidget parent, String name, int f);
+ public KSeparator(QWidget parent, String name) {
+ super((Class) null);
+ newKSeparator(parent,name);
+ }
+ private native void newKSeparator(QWidget parent, String name);
+ public KSeparator(QWidget parent) {
+ super((Class) null);
+ newKSeparator(parent);
+ }
+ private native void newKSeparator(QWidget parent);
+ public KSeparator() {
+ super((Class) null);
+ newKSeparator();
+ }
+ private native void newKSeparator();
+ /**
+ Constructor.
+ @param orientation Set the orientation of the separator.
+ Possible values are HLine or Horizontal and VLine or Vertical.
+ @param parent parent object.
+ @param name name of the new object.
+ @param f extra QWidget flags.
+ @short Constructor.
+ */
+ public KSeparator(int orientation, QWidget parent, String name, int f) {
+ super((Class) null);
+ newKSeparator(orientation,parent,name,f);
+ }
+ private native void newKSeparator(int orientation, QWidget parent, String name, int f);
+ public KSeparator(int orientation, QWidget parent, String name) {
+ super((Class) null);
+ newKSeparator(orientation,parent,name);
+ }
+ private native void newKSeparator(int orientation, QWidget parent, String name);
+ public KSeparator(int orientation, QWidget parent) {
+ super((Class) null);
+ newKSeparator(orientation,parent);
+ }
+ private native void newKSeparator(int orientation, QWidget parent);
+ public KSeparator(int orientation) {
+ super((Class) null);
+ newKSeparator(orientation);
+ }
+ private native void newKSeparator(int orientation);
+ /**
+ Returns the orientation of the separator.
+ @return int Possible values are VLine and HLine.
+
+ @short Returns the orientation of the separator.
+ */
+ public native int orientation();
+ /**
+ Set the orientation of the separator to <code>orient</code>
+ @param orient Possible values are VLine and HLine.
+ @short Set the orientation of the separator to <code>orient</code>
+ */
+ public native void setOrientation(int orient);
+ /**
+ The recommended height (width) for a horizontal (vertical) separator.
+ @short The recommended height (width) for a horizontal (vertical) separator.
+ */
+ public native QSize sizeHint();
+ /**
+ @param p pointer to painter
+ @short
+ */
+ protected native void drawFrame(QPainter p);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KService.java b/kdejava/koala/org/kde/koala/KService.java
new file mode 100644
index 00000000..002b78c2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KService.java
@@ -0,0 +1,547 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+import org.kde.qt.QPixmap;
+import java.util.ArrayList;
+import org.kde.qt.QVariant;
+import org.kde.qt.QWidget;
+
+/**
+
+ Represent a service, i.e. an application bound to one or several mimetypes
+ (or servicetypes) as written in its desktop entry file.
+ A service may be a library, too.
+ The starting point you need is often the static methods.
+ Service types are stored as desktop files in the "service" resource..
+ @author Torben Weis <weis@kde.org>
+
+ @short Represent a service, i.
+ @see KServiceType
+ @see KServiceGroup
+
+*/
+public class KService extends KSycocaEntry {
+ protected KService(Class dummy){super((Class) null);}
+ /**
+ Describes the DCOP type of the service.
+
+ <li>
+ None - This service has no DCOP support
+ </li>
+
+ <li>
+ Unique - This service provides a unique DCOP service.
+ The service name is equal to the desktopEntryName.
+ </li>
+
+ <li>
+ Multi - This service provides a DCOP service which can be run
+ with multiple instances in parallel. The service name of
+ an instance is equal to the desktopEntryName + "-" +
+ the PID of the process.
+ </li>
+
+ <li>
+ Wait - This service has no DCOP support, the launcher will wait
+ till it is finished.
+
+ </li> @short Describes the DCOP type of the service.
+ */
+ public static final int DCOP_None = 0;
+ public static final int DCOP_Unique = 1;
+ public static final int DCOP_Multi = 2;
+ public static final int DCOP_Wait = 3;
+
+ /**
+ Construct a temporary service with a given name, exec-line and icon.
+ @param _name the name of the service
+ @param _exec the executable
+ @param _icon the name of the icon
+ @short Construct a temporary service with a given name, exec-line and icon.
+ */
+ public KService(String _name, String _exec, String _icon) {
+ super((Class) null);
+ newKService(_name,_exec,_icon);
+ }
+ private native void newKService(String _name, String _exec, String _icon);
+ /**
+ Construct a service and take all information from a config file.
+ @param _fullpath Full path to the config file.
+ @short Construct a service and take all information from a config file.
+ */
+ public KService(String _fullpath) {
+ super((Class) null);
+ newKService(_fullpath);
+ }
+ private native void newKService(String _fullpath);
+ /**
+ Construct a service and take all information from a desktop file.
+ @param config the desktop file to read
+ @short Construct a service and take all information from a desktop file.
+ */
+ public KService(KDesktopFile config) {
+ super((Class) null);
+ newKService(config);
+ }
+ private native void newKService(KDesktopFile config);
+ /**
+ Construct a service from a stream.
+ The stream must already be positionned at the correct offset.
+ @short
+ */
+ public KService(QDataStream _str, int offset) {
+ super((Class) null);
+ newKService(_str,offset);
+ }
+ private native void newKService(QDataStream _str, int offset);
+ /**
+ Returns the type of the service.
+ @return the type of the service ("Application" or "Service")
+
+ @short Returns the type of the service.
+ */
+ public native String type();
+ /**
+ Returns the name of the service.
+ @return the name of the service,
+ or null if not set
+
+ @short Returns the name of the service.
+ */
+ public native String name();
+ /**
+ Returns the executable.
+ @return the command that the service executes,
+ or null if not set
+
+ @short Returns the executable.
+ */
+ public native String exec();
+ /**
+ Returns the name of the service's library.
+ @return the name of the library that contains the services
+ implementation,
+ or null if not set
+
+ @short Returns the name of the service's library.
+ */
+ public native String library();
+ /**
+ Returns the name of the init function to call (KControl modules).
+ @return the name of the init function to call in this service
+ during startup of KDE. (KControl modules only),
+ or null if not set
+
+ @short Returns the name of the init function to call (KControl modules).
+ */
+ public native String init();
+ /**
+ Returns the name of the icon.
+ @return the icon associated with the service,
+ or "unknown" if not set
+
+ @short Returns the name of the icon.
+ */
+ public native String icon();
+ /**
+ Returns the pixmap that represents the icon.
+ @return a pixmap for this service (finds and loads icon()),
+ null if not set
+
+ @short Returns the pixmap that represents the icon.
+ @see #icon
+ */
+ public native QPixmap pixmap(int _group, int _force_size, int _state, StringBuffer _path);
+ public native QPixmap pixmap(int _group, int _force_size, int _state);
+ public native QPixmap pixmap(int _group, int _force_size);
+ public native QPixmap pixmap(int _group);
+ /**
+ Checks whethe the service should be run in a terminal.
+ @return true if the service is to be run in a terminal.
+
+ @short Checks whethe the service should be run in a terminal.
+ */
+ public native boolean terminal();
+ /**
+ Returns any options associated with the terminal the service
+ runs in, if it requires a terminal.
+ The service must be a tty-oriented program.
+ @return the terminal options,
+ or null if not set
+
+ @short Returns any options associated with the terminal the service runs in, if it requires a terminal.
+ */
+ public native String terminalOptions();
+ /**
+ Checks whether the service runs with a different user id.
+ @return true if the service has to be run under a different uid.
+
+ @short Checks whether the service runs with a different user id.
+ @see #username
+ */
+ public native boolean substituteUid();
+ /**
+ Returns the user name, if the service runs with a
+ different user id.
+ @return the username under which the service has to be run,
+ or null if not set
+
+ @short Returns the user name, if the service runs with a different user id.
+ @see #substututeUida
+ */
+ public native String username();
+ /**
+ Returns the path to the location where the service desktop entry
+ is stored.
+ This is a relative path if the desktop entry was found in any
+ of the locations pointed to by $KDEDIRS (e.g. "Internet/kppp.desktop")
+ It is a full path if the desktop entry originates from another
+ location.
+ @return the path of the service's desktop file,
+ or null if not set
+
+ @short Returns the path to the location where the service desktop entry is stored.
+ */
+ public native String desktopEntryPath();
+ /**
+ Returns the filename of the service desktop entry without any
+ extension. E.g. "kppp"
+ @return the name of the desktop entry without path or extension,
+ or null if not set
+
+ @short Returns the filename of the service desktop entry without any extension.
+ */
+ public native String desktopEntryName();
+ /**
+ Returns the menu ID of the service desktop entry.
+ The menu ID is used to add or remove the entry to a menu.
+ @return the menu ID
+
+ @short Returns the menu ID of the service desktop entry.
+ */
+ public native String menuId();
+ /**
+ Returns a normalized ID suitable for storing in configuration files.
+ It will be based on the menu-id when available and otherwise falls
+ back to desktopEntryPath()
+ @return the storage ID
+
+ @short Returns a normalized ID suitable for storing in configuration files.
+ */
+ public native String storageId();
+ /**
+ Returns the DCOPServiceType supported by this service.
+ @return the DCOPServiceType supported by this service
+
+ @short Returns the DCOPServiceType supported by this service.
+ */
+ public native int DCOPServiceType();
+ /**
+ Returns the working directory to run the program in.
+ @return the working directory to run the program in,
+ or null if not set
+
+ @short Returns the working directory to run the program in.
+ */
+ public native String path();
+ /**
+ Returns the descriptive comment for the service, if there is one.
+ @return the descriptive comment for the service, or null
+ if not set
+
+ @short Returns the descriptive comment for the service, if there is one.
+ */
+ public native String comment();
+ /**
+ Returns the generic name for the service, if there is one
+ (e.g. "Mail Client").
+ @return the generic name,
+ or null if not set
+
+ @short Returns the generic name for the service, if there is one (e.
+ */
+ public native String genericName();
+ /**
+ Returns the untranslated (US English) generic name
+ for the service, if there is one
+ (e.g. "Mail Client").
+ @return the generic name,
+ or null if not set
+
+ @short Returns the untranslated (US English) generic name for the service, if there is one (e.
+ */
+ public native String untranslatedGenericName();
+ /**
+ Returns a list of descriptive keywords the service, if there are any.
+ @return the list of keywords
+
+ @short Returns a list of descriptive keywords the service, if there are any.
+ */
+ public native ArrayList keywords();
+ /**
+ Returns a list of VFolder categories.
+ @return the list of VFolder categories
+
+ @short Returns a list of VFolder categories.
+ */
+ public native ArrayList categories();
+ /**
+ Returns the service types that this service supports.
+ @return the list of service types that are supported
+
+ @short Returns the service types that this service supports.
+ */
+ public native ArrayList serviceTypes();
+ /**
+ Checks whether the service supports this service type
+ @param _service The name of the service type you are
+ interested in determining whether this services supports.
+ @return true if the service you specified is supported,
+ otherwise false.
+
+ @short Checks whether the service supports this service type
+ */
+ public native boolean hasServiceType(String _service);
+ /**
+ Checks whether a service is used as a default setting, for
+ example as plugin in a file manager. Usually that is the
+ case, but some services may only be started when the user
+ selected them. This kind of services returns false here.
+ @return true if the service may be used as a default setting
+
+ @short Checks whether a service is used as a default setting, for example as plugin in a file manager.
+ */
+ public native boolean allowAsDefault();
+ /**
+ Checks whether this service can handle several files as
+ startup arguments.
+ @return true if multiple files may be passed to this service at
+ startup. False if only one file at a time may be passed.
+
+ @short Checks whether this service can handle several files as startup arguments.
+ */
+ public native boolean allowMultipleFiles();
+ /**
+ What preference to associate with this service initially (before
+ the user has had any chance to define a profile for it).
+ The bigger the value, the most preferred the service is.
+ @return the service preference level of the service
+
+ @short What preference to associate with this service initially (before the user has had any chance to define a profile for it).
+ */
+ public native int initialPreference();
+ /**
+ What preference to associate with this service initially
+ for handling the specified mimetype. (before the user has
+ had any chance to define a profile for it).
+ The bigger the value, the most preferred the service is.
+ @return the service preference level of the service for
+ this mimetype
+
+ @short What preference to associate with this service initially for handling the specified mimetype.
+ */
+ public native int initialPreferenceForMimeType(String mimeType);
+ /**
+ @short
+ */
+ public native void setInitialPreference(int i);
+ /**
+ Whether the entry should be suppressed in menus.
+ @return true to suppress this service
+
+ @short Whether the entry should be suppressed in menus.
+ */
+ public native boolean noDisplay();
+ /**
+ Name of the application this service belongs to.
+ (Useful for e.g. plugins)
+ @return the parent application, or null if not set
+
+ @short Name of the application this service belongs to.
+ */
+ public native String parentApp();
+ /**
+ Returns the requested property. Some often used properties
+ have convenience access functions like exec(),
+ serviceTypes etc.
+ It depends upon the serviceTypes() of this service which
+ properties a service can have.
+ @param _name the name of the property
+ @return the property, or invalid if not found
+
+ @short Returns the requested property.
+ @see KServiceType
+ */
+ public native QVariant property(String _name);
+ /**
+ Returns the requested property.
+ @param _name the name of the property
+ @param t the assumed type of the property
+ @return the property, or invalid if not found
+
+ @short Returns the requested property.
+ @see KServiceType
+ */
+ public native QVariant property(String _name, int t);
+ /**
+ Returns the list of all properties that this service can have.
+ That means, that some of these properties may be empty.
+ @return the list of supported properties
+
+ @short Returns the list of all properties that this service can have.
+ */
+ public native ArrayList propertyNames();
+ /**
+ Checks whether the service is valid.
+ @return true if the service is valid (e.g. name is not empty)
+
+ @short Checks whether the service is valid.
+ */
+ public native boolean isValid();
+ /**
+ Returns a path that can be used for saving changes to this
+ service
+ @return path that can be used for saving changes to this service
+
+ @short Returns a path that can be used for saving changes to this service
+ */
+ public native String locateLocal();
+ /**
+ Load the service from a stream.
+ @short
+ */
+ public native void load(QDataStream arg1);
+ /**
+ Save the service to a stream.
+ @short
+ */
+ public native void save(QDataStream arg1);
+ /**
+ Set the menu id
+ @short
+ */
+ public native void setMenuId(String menuId);
+ /**
+ Sets whether to use a terminal or not
+ @short
+ */
+ public native void setTerminal(boolean b);
+ /**
+ Sets the terminal options to use
+ @short
+ */
+ public native void setTerminalOptions(String options);
+ /**
+ Find a service by name, i.e. the translated Name field. You should
+ really not use this method, since the name is translated.
+ @param _name the name to search
+ @return a pointer to the requested service or 0 if the service is
+ unknown.
+ @em Very @em important: Don't store the result in a KService* !
+
+ @short Find a service by name, i.
+ */
+ // KService::Ptr serviceByName(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Find a service based on its path as returned by desktopEntryPath().
+ It's usually better to use serviceByStorageId() instead.
+ @param _path the path of the configuration file
+ @return a pointer to the requested service or 0 if the service is
+ unknown.
+ @em Very @em important: Don't store the result in a KService* !
+
+ @short Find a service based on its path as returned by desktopEntryPath().
+ */
+ // KService::Ptr serviceByDesktopPath(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Find a service by the name of its desktop file, not depending on
+ its actual location (as long as it's under the applnk or service
+ directories). For instance "konqbrowser" or "kcookiejar". Note that
+ the ".desktop" extension is implicit.
+ This is the recommended method (safe even if the user moves stuff)
+ but note that it assumes that no two entries have the same filename.
+ @param _name the name of the configuration file
+ @return a pointer to the requested service or 0 if the service is
+ unknown.
+ @em Very @em important: Don't store the result in a KService* !
+
+ @short Find a service by the name of its desktop file, not depending on its actual location (as long as it's under the applnk or service directories).
+ */
+ // KService::Ptr serviceByDesktopName(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Find a service by its menu-id
+ @param _menuId the menu id of the service
+ @return a pointer to the requested service or 0 if the service is
+ unknown.
+ @em Very @em important: Don't store the result in a KService* !
+
+ @short Find a service by its menu-id
+ */
+ // KService::Ptr serviceByMenuId(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Find a service by its storage-id or desktop-file path. This
+ function will try very hard to find a matching service.
+ @param _storageId the storage id or desktop-file path of the service
+ @return a pointer to the requested service or 0 if the service is
+ unknown.
+ @em Very @em important: Don't store the result in a KService* !
+
+ @short Find a service by its storage-id or desktop-file path.
+ */
+ // KService::Ptr serviceByStorageId(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Returns the whole list of services.
+ Useful for being able to
+ to display them in a list box, for example.
+ More memory consuming than the ones above, don't use unless
+ really necessary.
+ @return the list of all services
+
+ @short Returns the whole list of services.
+ */
+ // KService::List allServices(); >>>> NOT CONVERTED
+ /**
+ Returns all services that require initialisation.
+ Only needed by "kcminit"
+ @return the list of all services that need to be initialized
+
+ @short Returns all services that require initialisation.
+ */
+ // KService::List allInitServices(); >>>> NOT CONVERTED
+ /**
+ Returns a path that can be used to create a new KService based
+ on <code>suggestedName.</code>
+ @param showInMenu true, if the service should be shown in the KDE menu
+ false, if the service should be hidden from the menu
+ @param suggestedName name to base the file on, if a service with such
+ name already exists, a prefix will be added to make it unique.
+ @param menuId If provided, menuId will be set to the menu id to use for
+ the KService
+ @param reservedMenuIds If provided, the path and menu id will be chosen
+ in such a way that the new menu id does not conflict with any
+ of the reservedMenuIds
+ @return The path to use for the new KService.
+
+ @short Returns a path that can be used to create a new KService based on <code>suggestedName.</code>
+ */
+ public static native String newServicePath(boolean showInMenu, String suggestedName, StringBuffer menuId, String[] reservedMenuIds);
+ public static native String newServicePath(boolean showInMenu, String suggestedName, StringBuffer menuId);
+ public static native String newServicePath(boolean showInMenu, String suggestedName);
+ /**
+ Rebuild KSycoca and show a progress dialog while doing so.
+ @param parent Parent widget for the progress dialog
+ @short Rebuild KSycoca and show a progress dialog while doing so.
+ */
+ public static native void rebuildKSycoca(QWidget parent);
+ protected native void init(KDesktopFile config);
+ protected native ArrayList accessServiceTypes();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KServiceGroup.java b/kdejava/koala/org/kde/koala/KServiceGroup.java
new file mode 100644
index 00000000..ca384e15
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KServiceGroup.java
@@ -0,0 +1,285 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+import java.util.ArrayList;
+
+/**
+
+ KServiceGroup represents a group of service, for example
+ screensavers.
+ This class is typically used like this:
+ <pre>
+ // Lookup screensaver group
+ KServiceGroup.Ptr group = KServiceGroup.baseGroup("screensavers");
+ if (!group || !group.isValid()) return;
+ KServiceGroup.List list = group.entries();
+ // Iterate over all entries in the group
+ for( KServiceGroup.List.ConstIterator it = list.begin();
+ it != list.end(); it++)
+ {
+ KSycocaEntry p = (it);
+ if (p.isType(KST_KService))
+ {
+ KService s = (KService)(p);
+ printf("Name = %s\n", s.name().latin1());
+ }
+ else if (p.isType(KST_KServiceGroup))
+ {
+ KServiceGroup g = (KServiceGroup)(p);
+ // Sub group ...
+ }
+ }
+ </pre>
+ @short Represents a group of services.
+
+*/
+public class KServiceGroup extends KSycocaEntry {
+ protected KServiceGroup(Class dummy){super((Class) null);}
+ /**
+ Construct a dummy servicegroup indexed with <code>name.</code>
+ @param name the name of the service group
+ @short Construct a dummy servicegroup indexed with <code>name.</code>
+ */
+ public KServiceGroup(String name) {
+ super((Class) null);
+ newKServiceGroup(name);
+ }
+ private native void newKServiceGroup(String name);
+ /**
+ Construct a service and take all informations from a config file
+ @param _fullpath full path to the config file
+ @param _relpath relative path to the config file
+ @short Construct a service and take all informations from a config file
+ */
+ public KServiceGroup(String _fullpath, String _relpath) {
+ super((Class) null);
+ newKServiceGroup(_fullpath,_relpath);
+ }
+ private native void newKServiceGroup(String _fullpath, String _relpath);
+ /**
+ The stream must already be positionned at the correct offset
+ @short
+ */
+ public KServiceGroup(QDataStream _str, int offset, boolean deep) {
+ super((Class) null);
+ newKServiceGroup(_str,offset,deep);
+ }
+ private native void newKServiceGroup(QDataStream _str, int offset, boolean deep);
+ /**
+ Checks whether the entry is valid, returns always true.
+ @return true
+
+ @short Checks whether the entry is valid, returns always true.
+ */
+ public native boolean isValid();
+ /**
+ Name used for indexing.
+ @return the service group's name
+
+ @short Name used for indexing.
+ */
+ public native String name();
+ /**
+ Returns the relative path of the service group.
+ @return the service group's relative path
+
+ @short Returns the relative path of the service group.
+ */
+ public native String relPath();
+ /**
+ Returns the caption of this group.
+ @return the caption of this group
+
+ @short Returns the caption of this group.
+ */
+ public native String caption();
+ /**
+ Returns the name of the icon associated with the group.
+ @return the name of the icon associated with the group,
+ or null if not set
+
+ @short Returns the name of the icon associated with the group.
+ */
+ public native String icon();
+ /**
+ Returns the comment about this service group.
+ @return the descriptive comment for the group, if there is one,
+ or null if not set
+
+ @short Returns the comment about this service group.
+ */
+ public native String comment();
+ /**
+ Returns the total number of displayable services in this group and
+ any of its subgroups.
+ @return the number of child services
+
+ @short Returns the total number of displayable services in this group and any of its subgroups.
+ */
+ public native int childCount();
+ /**
+ Returns true if the NoDisplay flag was set, i.e. if this
+ group should be hidden from menus, while still being in ksycoca.
+ @return true to hide this service group, false to display it
+
+ @short Returns true if the NoDisplay flag was set, i.
+ */
+ public native boolean noDisplay();
+ /**
+ Return true if we want to display empty menu entry
+ @return true to show this service group as menu entry is empty, false to hide it
+
+ @short Return true if we want to display empty menu entry
+ */
+ public native boolean showEmptyMenu();
+ public native void setShowEmptyMenu(boolean b);
+ /**
+ @return true to show an inline header into menu
+
+ @short
+ */
+ public native boolean showInlineHeader();
+ public native void setShowInlineHeader(boolean _b);
+ /**
+ @return true to show an inline alias item into menu
+
+ @short
+ */
+ public native boolean inlineAlias();
+ public native void setInlineAlias(boolean _b);
+ /**
+ @return true if we allow to inline menu.
+
+ @short
+ */
+ public native boolean allowInline();
+ public native void setAllowInline(boolean _b);
+ /**
+ @return inline limite value
+
+ @short
+ */
+ public native int inlineValue();
+ public native void setInlineValue(int _val);
+ /**
+ Returns a list of untranslated generic names that should be
+ be supressed when showing this group.
+ E.g. The group "Games/Arcade" might want to suppress the generic name
+ "Arcade Game" since it's redundant in this particular context.
+ @short Returns a list of untranslated generic names that should be be supressed when showing this group.
+ */
+ public native ArrayList suppressGenericNames();
+ /**
+ Sets information related to the layout of services in this group.
+ @short
+ */
+ public native void setLayoutInfo(String[] layout);
+ /**
+ Returns information related to the layout of services in this group.
+ @short
+ */
+ public native ArrayList layoutInfo();
+ /**
+ Load the service from a stream.
+ @short
+ */
+ public native void load(QDataStream arg1);
+ /**
+ Save the service to a stream.
+ @short
+ */
+ public native void save(QDataStream arg1);
+ /**
+ List of all Services and ServiceGroups within this
+ ServiceGroup.
+ @param sorted true to sort items
+ @param excludeNoDisplay true to exclude items marked "NoDisplay"
+ @param allowSeparators true to allow separator items to be included
+ @param sortByGenericName true to sort GenericName+Name instead of Name+GenericName
+ @return the list of entries
+
+ @short List of all Services and ServiceGroups within this ServiceGroup.
+ */
+ // KServiceGroup::List entries(bool arg1,bool arg2,bool arg3,bool arg4); >>>> NOT CONVERTED
+ // KServiceGroup::List entries(bool arg1,bool arg2,bool arg3); >>>> NOT CONVERTED
+ // KServiceGroup::List entries(bool arg1,bool arg2); >>>> NOT CONVERTED
+ /**
+ List of all Services and ServiceGroups within this
+ ServiceGroup.
+ @param sorted true to sort items
+ @return the list of entried
+
+ @short List of all Services and ServiceGroups within this ServiceGroup.
+ */
+ // KServiceGroup::List entries(bool arg1); >>>> NOT CONVERTED
+ // KServiceGroup::List entries(); >>>> NOT CONVERTED
+ /**
+ Returns a non-empty string if the group is a special base group.
+ By default, "Settings/" is the kcontrol base group ("settings")
+ and "System/Screensavers/" is the screensavers base group ("screensavers").
+ This allows moving the groups without breaking those apps.
+ The base group is defined by the X-KDE-BaseGroup key
+ in the .directory file.
+ @return the base group name, or null if no base group
+
+ @short Returns a non-empty string if the group is a special base group.
+ */
+ public native String baseGroupName();
+ /**
+ Returns a path to the .directory file describing this service group.
+ The path is either absolute or relative to the "apps" resource.
+ @short Returns a path to the .
+ */
+ public native String directoryEntryPath();
+ /**
+ This function parse attributes into menu
+ @short This function parse attributes into menu
+ */
+ public native void parseAttribute(String item, boolean showEmptyMenu, boolean showInline, boolean showInlineHeader, boolean showInlineAlias, int[] inlineValue);
+ /**
+ Returns the group for the given baseGroupName.
+ Can return null if the directory (or the .directory file) was deleted.
+ @return the base group with the given name, or 0 if not available.
+
+ @short Returns the group for the given baseGroupName.
+ */
+ // KServiceGroup::Ptr baseGroup(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Returns the root service group.
+ @return the root service group
+
+ @short Returns the root service group.
+ */
+ // KServiceGroup::Ptr root(); >>>> NOT CONVERTED
+ /**
+ Returns the group with the given relative path.
+ @param relPath the path of the service group
+ @return the group with the given relative path name.
+
+ @short Returns the group with the given relative path.
+ */
+ // KServiceGroup::Ptr group(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Returns the group of services that have X-KDE-ParentApp equal
+ to <code>parent</code> (siblings).
+ @param parent the name of the service's parent
+ @return the services group
+
+ @short Returns the group of services that have X-KDE-ParentApp equal to <code>parent</code> (siblings).
+ */
+ // KServiceGroup::Ptr childGroup(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Add a service to this group
+ @short
+ */
+ protected native void addEntry(KSycocaEntry entry);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KServiceOffer.java b/kdejava/koala/org/kde/koala/KServiceOffer.java
new file mode 100644
index 00000000..189ebe9b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KServiceOffer.java
@@ -0,0 +1,94 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This class holds the user-specific preferences of a service
+ (whether it can be a default offer or not, how big is the preference
+ for this offer, ...). Basically it is a reference to a
+ KService, a number that represents the user's preference (bigger
+ is better) and a flag whether the KService can be used as default.
+ @short Holds the user's preference of a service.
+ @see KService
+
+*/
+public class KServiceOffer implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KServiceOffer(Class dummy){}
+
+ /**
+ Create an invalid service offer.
+ @short Create an invalid service offer.
+ */
+ public KServiceOffer() {
+ newKServiceOffer();
+ }
+ private native void newKServiceOffer();
+ /**
+ Copy constructor.
+ Shallow copy (the KService will not be copied).
+ @short Copy constructor.
+ */
+ public KServiceOffer(KServiceOffer arg1) {
+ newKServiceOffer(arg1);
+ }
+ private native void newKServiceOffer(KServiceOffer arg1);
+ /**
+ Creates a new KServiceOffer.
+ @param _service a pointer to the KService
+ @param _pref the user's preference value, must be positive,
+ bigger is better
+ @param _default true if the service should be used as
+ default
+ @short Creates a new KServiceOffer.
+ */
+ // KServiceOffer* KServiceOffer(KService::Ptr arg1,int arg2,bool arg3); >>>> NOT CONVERTED
+ /**
+ A service is bigger that the other when it can be default
+ (and the other is not) and its preference value it higher.
+ @short A service is bigger that the other when it can be default (and the other is not) and its preference value it higher.
+ */
+ public native boolean op_lt(KServiceOffer arg1);
+ /**
+ Is it allowed to use this service for default actions
+ (e.g. Left Click in a file manager, or KRun in general).
+ @return true if the service is a allowed as default
+
+ @short Is it allowed to use this service for default actions (e.
+ */
+ public native boolean allowAsDefault();
+ /**
+ The bigger this number is, the better is this service.
+ @return the preference number (negative numbers will be
+ returned by invalid service offers)
+
+ @short The bigger this number is, the better is this service.
+ */
+ public native int preference();
+ /**
+ The service which this offer is about.
+ @return the service this offer is about, can be 0
+ in valid offers or when not set
+
+ @short The service which this offer is about.
+ */
+ // KService::Ptr service(); >>>> NOT CONVERTED
+ /**
+ Check whether the entry is valid. A service is valid if
+ its preference value is positive.
+ @return true if the service offer is valid
+
+ @short Check whether the entry is valid.
+ */
+ public native boolean isValid();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KServiceSeparator.java b/kdejava/koala/org/kde/koala/KServiceSeparator.java
new file mode 100644
index 00000000..afa24fb3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KServiceSeparator.java
@@ -0,0 +1,31 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+
+/**
+*/
+public class KServiceSeparator extends KSycocaEntry {
+ protected KServiceSeparator(Class dummy){super((Class) null);}
+ /**
+ Construct a service separator
+ @short Construct a service separator
+ */
+ public KServiceSeparator() {
+ super((Class) null);
+ newKServiceSeparator();
+ }
+ private native void newKServiceSeparator();
+ public native boolean isValid();
+ public native String name();
+ public native void load(QDataStream arg1);
+ public native void save(QDataStream arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KServiceType.java b/kdejava/koala/org/kde/koala/KServiceType.java
new file mode 100644
index 00000000..f22c982a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KServiceType.java
@@ -0,0 +1,223 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+import java.util.ArrayList;
+import org.kde.qt.QVariant;
+
+/**
+
+ A service type is the generic notion for a mimetype, a type of service
+ instead of a type of file.
+ For instance, KOfficeFilter is a service type.
+ It is associated to services according to the user profile (kuserprofile.h).
+ Service types are stored as desktop files in $KDEHOME/share/servicetypes.
+ @short A service type is the generic notion for a mimetype, a type of service instead of a type of file.
+ @see KService
+
+*/
+public class KServiceType extends KSycocaEntry {
+ protected KServiceType(Class dummy){super((Class) null);}
+ /**
+ Constructor. You may pass in arguments to create a servicetype with
+ specific properties.
+ @param _fullpath the path of the service type's desktop file
+ @param _name the name of the service type
+ @param _icon the icon name of the service type (can be null)
+ @param _comment a comment (can be null)
+ @short Constructor.
+ */
+ public KServiceType(String _fullpath, String _name, String _icon, String _comment) {
+ super((Class) null);
+ newKServiceType(_fullpath,_name,_icon,_comment);
+ }
+ private native void newKServiceType(String _fullpath, String _name, String _icon, String _comment);
+ /**
+ Construct a service type and take all informations from a config file.
+ @param _fullpath path of the desktop file, set to "" if calling from
+ a inherited constructor.
+ @short Construct a service type and take all informations from a config file.
+ */
+ public KServiceType(String _fullpath) {
+ super((Class) null);
+ newKServiceType(_fullpath);
+ }
+ private native void newKServiceType(String _fullpath);
+ /**
+ Construct a service type and take all informations from a deskop file.
+ @param config the configuration file
+ @short Construct a service type and take all informations from a deskop file.
+ */
+ public KServiceType(KDesktopFile config) {
+ super((Class) null);
+ newKServiceType(config);
+ }
+ private native void newKServiceType(KDesktopFile config);
+ /**
+ The stream must already be positionned at the correct offset
+ @short
+ */
+ public KServiceType(QDataStream _str, int offset) {
+ super((Class) null);
+ newKServiceType(_str,offset);
+ }
+ private native void newKServiceType(QDataStream _str, int offset);
+ /**
+ Returns the icon associated with this service type. Some
+ derived classes offer special functions which take for
+ example an URL and returns a special icon for this
+ URL. An example is KMimeType, KFolderType and
+ others.
+ @return the name of the icon, can be null.
+
+ @short Returns the icon associated with this service type.
+ */
+ public native String icon();
+ /**
+ Returns the descriptive comment associated, if any.
+ @return the comment, or null
+
+ @short Returns the descriptive comment associated, if any.
+ */
+ public native String comment();
+ /**
+ Returns the name of this service type.
+ @return the name of the service type
+
+ @short Returns the name of this service type.
+ */
+ public native String name();
+ /**
+ Returns the relative path to the desktop entry file responsible for
+ this servicetype.
+ For instance inode/directory.desktop, or kpart.desktop
+ @return the path of the desktop file
+
+ @short Returns the relative path to the desktop entry file responsible for this servicetype.
+ */
+ public native String desktopEntryPath();
+ /**
+ Checks whether this service type inherits another one.
+ @return true if this service type inherits another one
+
+ @short Checks whether this service type inherits another one.
+ @see #parentServiceType
+ */
+ public native boolean isDerived();
+ /**
+ If this service type inherits from another service type,
+ return the name of the parent.
+ @return the parent service type, or String. null if not set
+
+ @short If this service type inherits from another service type, return the name of the parent.
+ @see #isDerived
+ */
+ public native String parentServiceType();
+ /**
+ Checks whether this service type is or inherits from <code>servTypeName.</code>
+ @return true if this servicetype is or inherits from <code>servTypeName</code>
+
+ @short Checks whether this service type is or inherits from <code>servTypeName.</code>
+ */
+ public native boolean inherits(String servTypeName);
+ /**
+ Returns the requested property. Some often used properties
+ have convenience access functions like name(),
+ comment() etc.
+ @param _name the name of the property
+ @return the property, or invalid if not found
+
+ @short Returns the requested property.
+ */
+ public native QVariant property(String _name);
+ /**
+ Returns the list of all properties of this service type.
+ @return the list of properties
+
+ @short Returns the list of all properties of this service type.
+ */
+ public native ArrayList propertyNames();
+ /**
+ Checks whether the service type is valid.
+ @return true if the service is valid (e.g. name is not empty)
+
+ @short Checks whether the service type is valid.
+ */
+ public native boolean isValid();
+ /**
+ Returns the type of the property with the given <code>_name.</code>
+ @param _name the name of the property
+ @return the property type, or null if not found
+
+ @short Returns the type of the property with the given <code>_name.</code>
+ */
+ public native int propertyDef(String _name);
+ public native ArrayList propertyDefNames();
+ // const QMap<QString, QVariant::Type>& propertyDefs(); >>>> NOT CONVERTED
+ /**
+ Save ourselves to the data stream.
+ @short
+ */
+ public native void save(QDataStream arg1);
+ /**
+ Load ourselves from the data stream.
+ @short
+ */
+ public native void load(QDataStream arg1);
+ /**
+ Pointer to parent serice type
+ @short
+ */
+ // KServiceType::Ptr parentType(); >>>> NOT CONVERTED
+ /**
+ Register service that provides this service type
+ @short
+ */
+ // void addService(KService::Ptr arg1); >>>> NOT CONVERTED
+ /**
+ List serices that provide this service type
+ @short
+ */
+ // KService::List services(); >>>> NOT CONVERTED
+ /**
+ Returns a pointer to the servicetype '_name' or null if the
+ service type is unknown.
+ VERY IMPORTANT : don't store the result in a KServiceType !
+ @param _name the name of the service type to search
+ @return the pointer to the service type, or 0
+
+ @short Returns a pointer to the servicetype '_name' or 0L if the service type is unknown.
+ */
+ // KServiceType::Ptr serviceType(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Returns all services supporting the given servicetype name.
+ This doesn't take care of the user profile.
+ In fact it is used by KServiceTypeProfile,
+ which is used by KTrader, and that's the one you should use.
+ @param _servicetype the name of the service type to search
+ @return the list of all services of the given type
+
+ @short Returns all services supporting the given servicetype name.
+ */
+ // KService::List offers(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Returns a list of all the supported servicetypes. Useful for
+ showing the list of available servicetypes in a listbox,
+ for example.
+ More memory consuming than the ones above, don't use unless
+ really necessary.
+ @return the list of all services
+
+ @short Returns a list of all the supported servicetypes.
+ */
+ // KServiceType::List allServiceTypes(); >>>> NOT CONVERTED
+ protected native void init(KDesktopFile config);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KServiceTypeProfile.java b/kdejava/koala/org/kde/koala/KServiceTypeProfile.java
new file mode 100644
index 00000000..15f9fd2a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KServiceTypeProfile.java
@@ -0,0 +1,137 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ KServiceTypeProfile represents the user's preferences for services
+ of a service type.
+ It consists of a list of services (service offers) for the service type
+ that is sorted by the user's preference.
+ KTrader uses KServiceTypeProfile to sort its results, so usually
+ you can just use KTrader to find the user's preferred service.
+ @short Represents the user's preferences for services of a service type.
+ @see KService
+ @see KServiceType
+ @see KServiceOffer
+ @see KTrader
+
+*/
+public class KServiceTypeProfile implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KServiceTypeProfile(Class dummy){}
+
+ /**
+ Returns the list of all service offers for the service types
+ that are represented by this profile.
+ @return the list of KServiceOffer instances
+
+ @short Returns the list of all service offers for the service types that are represented by this profile.
+ */
+ // KServiceTypeProfile::OfferList offers(); >>>> NOT CONVERTED
+ /**
+ Returns the preferred service for <code>_serviceType</code> and <code>_genericServiceType</code>
+ ("Application", type of component, or null).
+ @param serviceType the service type (e.g. a MIME type)
+ @param genericServiceType the generic service type (e.g. "Application" or
+ "KParts/ReadOnlyPart")
+ @return the preferred service, or 0 if no service is available
+
+ @short Returns the preferred service for <code>_serviceType</code> and <code>_genericServiceType</code> ("Application", type of component, or null).
+ */
+ // KService::Ptr preferredService(const QString& arg1,const QString& arg2); >>>> NOT CONVERTED
+ /**
+ Returns the profile for the requested service type.
+ @param servicetype the service type (e.g. a MIME type)
+ @param genericServiceType the generic service type (e.g. "Application"
+ or "KParts/ReadOnlyPart"). Can be null,
+ then the "Application" generic type will be used
+ @return the KServiceTypeProfile with the given arguments, or 0 if not found
+
+ @short Returns the profile for the requested service type.
+ */
+ public static native KServiceTypeProfile serviceTypeProfile(String servicetype, String genericServiceType);
+ public static native KServiceTypeProfile serviceTypeProfile(String servicetype);
+ /**
+ Returns the offers associated with a given servicetype, sorted by preference.
+ This is what KTrader uses to get the list of offers, before applying the
+ constraints and preferences.
+ If <code>genericServiceType</code> is specified, a list is returned with
+ the offers associated with the combination of the two service types.
+ This is almost like an "foo in ServiceTypes" constraint in the KTrader,
+ but the difference is that to order the offers, we will look at entries
+ specifically for those two service types. Typically, this is used for
+ getting the list of embeddable components that can handle a given mimetype.
+ In that case, <code>servicetype</code> is the mimetype and <code>genericServiceType</code> is "KParts/ReadOnlyPart".
+ @param servicetype the service type (e.g. a MIME type)
+ @param genericServiceType the generic service type (e.g. "Application"
+ or "KParts/ReadOnlyPart"). Can be null,
+ then all generic types will be included
+ @return the list of offers witht he given parameters
+
+ @short Returns the offers associated with a given servicetype, sorted by preference.
+ */
+ // KServiceTypeProfile::OfferList offers(const QString& arg1,const QString& arg2); >>>> NOT CONVERTED
+ // KServiceTypeProfile::OfferList offers(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Returns a list of all KServiceTypeProfiles.
+ @return a list of all KServiceTypeProfiles
+
+ @short Returns a list of all KServiceTypeProfiles.
+ */
+ // const QPtrList<KServiceTypeProfile>& serviceTypeProfiles(); >>>> NOT CONVERTED
+ /**
+ Clear all cached information
+ @short Clear all cached information
+ */
+ public static native void clear();
+ /**
+ This method activates a special mode of KServiceTypeProfile, in which all/all
+ and all/allfiles are excluded from the results of the queries.
+ It is meant for the configuration module _only_.
+ @short This method activates a special mode of KServiceTypeProfile, in which all/all and all/allfiles are excluded from the results of the queries.
+ */
+ public static native void setConfigurationMode();
+ /**
+ @short
+ */
+ public static native boolean configurationMode();
+ /**
+ Constructor is called when the user profile is read for the
+ first time.
+ @param serviceType the service type (e.g. a MIME type)
+ @param genericServiceType the generic service type (e.g. "Application"
+ or "KParts/ReadOnlyPart"). Can be null,
+ then the "Application" generic type will be used
+ @short Constructor is called when the user profile is read for the first time.
+ */
+ public KServiceTypeProfile(String serviceType, String genericServiceType) {
+ newKServiceTypeProfile(serviceType,genericServiceType);
+ }
+ private native void newKServiceTypeProfile(String serviceType, String genericServiceType);
+ public KServiceTypeProfile(String serviceType) {
+ newKServiceTypeProfile(serviceType);
+ }
+ private native void newKServiceTypeProfile(String serviceType);
+ /**
+ Add a service to this profile.
+ @param _service the name of the service
+ @param _preference the user's preference value, must be positive,
+ bigger is better
+ @param _allow_as_default true if the service should be used as
+ default
+ @short Add a service to this profile.
+ */
+ protected native void addService(String _service, int _preference, boolean _allow_as_default);
+ protected native void addService(String _service, int _preference);
+ protected native void addService(String _service);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSessionManaged.java b/kdejava/koala/org/kde/koala/KSessionManaged.java
new file mode 100644
index 00000000..df69e3bb
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSessionManaged.java
@@ -0,0 +1,57 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSessionManager;
+
+/**
+
+ Provides highlevel access to session management on a per-object
+ base.
+ KSessionManaged makes it possible to provide implementations for
+ QApplication.commitData() and QApplication.saveState(), without
+ subclassing KApplication. KMainWindow internally makes use of this.
+ You don't need to do anything with this class when using
+ KMainWindow. Instead, use KMainWindow.saveProperties(),
+ KMainWindow.readProperties(), KMainWindow.queryClose(),
+ KMainWindow.queryExit() and friends.
+ @author Matthias Ettrich <ettrich@kde.org>
+
+ @short Highlevel access to session management.
+
+*/
+public class KSessionManaged implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KSessionManaged(Class dummy){}
+
+ public KSessionManaged() {
+ newKSessionManaged();
+ }
+ private native void newKSessionManaged();
+ /**
+ See QApplication.saveState() for documentation.
+ This function is just a convenience version to avoid subclassing KApplication.
+ Return true to indicate a successful state save or false to
+ indicate a problem and to halt the shutdown process (will
+ implicitly call sm.cancel() ).
+ @short See QApplication.saveState() for documentation.
+ */
+ public native boolean saveState(QSessionManager sm);
+ /**
+ See QApplication.commitData() for documentation.
+ This function is just a convenience version to avoid subclassing KApplication.
+ Return true to indicate a successful commit of data or false to
+ indicate a problem and to halt the shutdown process (will
+ implicitly call sm.cancel() ).
+ @short See QApplication.commitData() for documentation.
+ */
+ public native boolean commitData(QSessionManager sm);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KShared.java b/kdejava/koala/org/kde/koala/KShared.java
new file mode 100644
index 00000000..33363152
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KShared.java
@@ -0,0 +1,48 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Reference counting for shared objects. If you derive your object
+ from this class, then you may use it in conjunction with
+ KSharedPtr to control the lifetime of your object.
+ Specifically, all classes that derive from KShared have an internal
+ counter keeping track of how many other objects have a reference to
+ their object. If used with KSharedPtr, then your object will
+ not be deleted until all references to the object have been
+ released.
+ You should probably not ever use any of the methods in this class
+ directly -- let the KSharedPtr take care of that. Just derive
+ your class from KShared and forget about it.
+ @author Waldo Bastian <bastian@kde.org>
+
+ @short Reference counting for shared objects.
+
+*/
+public class KShared implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KShared(Class dummy){}
+
+ /**
+ Standard constructor. This will initialize the reference count
+ on this object to 0.
+ @short Standard constructor.
+ */
+ public KShared() {
+ newKShared();
+ }
+ private native void newKShared();
+ /**
+ Copy constructor. This will <b>not</b> actually copy the objects
+ but it will initialize the reference count on this object to 0.
+ @short Copy constructor.
+ */
+ public KShared(KShared arg1) {
+ newKShared(arg1);
+ }
+ private native void newKShared(KShared arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KSharedConfig.java b/kdejava/koala/org/kde/koala/KSharedConfig.java
new file mode 100644
index 00000000..39479b59
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSharedConfig.java
@@ -0,0 +1,27 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ KConfig variant using shared memory
+ KSharedConfig provides a reference counted, shared memory variant
+ of KConfig.
+ @short KConfig variant using shared memory
+
+*/
+public class KSharedConfig extends KConfig {
+ protected KSharedConfig(Class dummy){super((Class) null);}
+ /**
+ Returns a ref-counted pointer to a shared read-write config object.
+ @param fileName the name of the file to use for the configuration
+ @param immutable if true, force the config object to be read-only.
+ @param bUseKDEGlobals Toggle reading the global KDE configuration file.
+ @short Returns a ref-counted pointer to a shared read-write config object.
+ */
+ // KSharedConfig::Ptr openConfig(const QString& arg1,bool arg2,bool arg3); >>>> NOT CONVERTED
+ // KSharedConfig::Ptr openConfig(const QString& arg1,bool arg2); >>>> NOT CONVERTED
+ // KSharedConfig::Ptr openConfig(const QString& arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/KShell.java b/kdejava/koala/org/kde/koala/KShell.java
new file mode 100644
index 00000000..2dd759a5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KShell.java
@@ -0,0 +1,96 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ \namespace KShell
+ Provides some basic POSIX shell and bash functionality.
+ @short \namespace KShell Provides some basic POSIX shell and bash functionality.
+ @see KStringHandler
+
+*/
+public class KShell {
+ /**
+ Flags for splitArgs().
+ @short Flags for splitArgs().
+ */
+ public static final int NoOptions = 0;
+ public static final int TildeExpand = 1;
+ public static final int AbortOnMeta = 2;
+
+ /**
+ Status codes from splitArgs()
+ @short Status codes from splitArgs()
+ */
+ public static final int NoError = 0;
+ public static final int BadQuoting = 1;
+ public static final int FoundMeta = 2;
+
+ /**
+ Splits <code>cmd</code> according to POSIX shell word splitting and quoting rules.
+ Can optionally perform tilde expansion and/or abort if it finds shell
+ meta characters it cannot process.
+ @param cmd the command to split
+ @param flags operation flags, see Options
+ @param err if not NULL, a status code will be stored at the pointer
+ target, see Errors
+ @return a list of unquoted words or an empty list if an error occurred
+
+ @short Splits <code>cmd</code> according to POSIX shell word splitting and quoting rules.
+ */
+ public static native ArrayList splitArgs(String cmd, int flags, int[] err);
+ public static native ArrayList splitArgs(String cmd, int flags);
+ public static native ArrayList splitArgs(String cmd);
+ /**
+ Quotes and joins <code>args</code> together according to POSIX shell rules.
+ @param args a list of strings to quote and join
+ @return a command suitable for shell execution
+
+ @short Quotes and joins <code>args</code> together according to POSIX shell rules.
+ */
+ public static native String joinArgs(String[] args);
+ /**
+ Same as above, but $'' is used instead of '' for the quoting.
+ The output is suitable for splitArgs(), bash, zsh and possibly
+ other bourne-compatible shells, but not for plain sh. The advantage
+ is, that control characters (ASCII less than 32) are escaped into
+ human-readable strings.
+ @param args a list of strings to quote and join
+ @return a command suitable for shell execution
+
+ @short Same as above, but $'' is used instead of '' for the quoting.
+ */
+ public static native String joinArgsDQ(String[] args);
+ /**
+ Quotes and joins <code>argv</code> together according to POSIX shell rules.
+ @param argv an array of c strings to quote and join.
+ The strings are expected to be in local-8-bit encoding.
+ @return a command suitable for shell execution
+
+ @short Quotes and joins <code>argv</code> together according to POSIX shell rules.
+ */
+ // QString joinArgs(const char** arg1,int arg2); >>>> NOT CONVERTED
+ // QString joinArgs(const char** arg1); >>>> NOT CONVERTED
+ /**
+ Performs tilde expansion on <code>path.</code> Interprets "~/path" and
+ "~user/path".
+ @param path the path to tilde-expand
+ @return the expanded path
+
+ @short Performs tilde expansion on <code>path.</code>
+ */
+ public static native String tildeExpand(String path);
+ /**
+ Obtain a <code>user</code>'s home directory.
+ @param user The name of the user whose home dir should be obtained.
+ An empty string denotes the current user.
+ @return The user's home directory.
+
+ @short Obtain a <code>user</code>'s home directory.
+ */
+ public static native String homeDir(String user);
+}
diff --git a/kdejava/koala/org/kde/koala/KShellCompletion.java b/kdejava/koala/org/kde/koala/KShellCompletion.java
new file mode 100644
index 00000000..90192912
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KShellCompletion.java
@@ -0,0 +1,51 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This class does shell-like completion of file names.
+ A string passed to makeCompletion() will be interpreted as a shell
+ command line. Completion will be done on the last argument on the line.
+ Returned matches consist of the first arguments (uncompleted) plus the
+ completed last argument.
+ @author David Smith <dsmith@algonet.se>
+
+ @short Shell-like completion of file names.
+
+*/
+public class KShellCompletion extends KURLCompletion {
+ protected KShellCompletion(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KShellCompletion object.
+ @short Constructs a KShellCompletion object.
+ */
+ public KShellCompletion() {
+ super((Class) null);
+ newKShellCompletion();
+ }
+ private native void newKShellCompletion();
+ /**
+ Finds completions to the given text.
+ The first match is returned and emitted in the signal match().
+ @param text the text to complete
+ @return the first match, or null if not found
+
+ @short Finds completions to the given text.
+ */
+ public native String makeCompletion(String text);
+ protected native void postProcessMatch(StringBuffer match);
+ protected native void postProcessMatches(String[] matches);
+ // void postProcessMatches(KCompletionMatches* arg1); >>>> NOT CONVERTED
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KShellProcess.java b/kdejava/koala/org/kde/koala/KShellProcess.java
new file mode 100644
index 00000000..02408e86
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KShellProcess.java
@@ -0,0 +1,45 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Use KProcess and KProcess.setUseShell(true) instead.
+ @author Christian Czezatke <e9025461@student.tuwien.ac.at>
+
+ @short A class derived from KProcess to start child processes through a shell.
+
+*/
+public class KShellProcess extends KProcess {
+ protected KShellProcess(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor
+ If no shellname is specified, the user's default shell is used.
+ @short Constructor
+ */
+ public KShellProcess(String shellname) {
+ super((Class) null);
+ newKShellProcess(shellname);
+ }
+ private native void newKShellProcess(String shellname);
+ public KShellProcess() {
+ super((Class) null);
+ newKShellProcess();
+ }
+ private native void newKShellProcess();
+ public native boolean start(int runmode, int comm);
+ public native boolean start(int runmode);
+ public native boolean start();
+ public static native String quote(String arg);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KShortcut.java b/kdejava/koala/org/kde/koala/KShortcut.java
new file mode 100644
index 00000000..641973e6
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KShortcut.java
@@ -0,0 +1,329 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QKeySequence;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The KShortcut class is used to represent a keyboard shortcut to an action.
+ A shortcut is normally a single key with modifiers, such as Ctrl+V.
+ A KShortcut object may also contain an alternate key which will also
+ activate the action it's associated to, as long as no other actions have
+ defined that key as their primary key. Ex: Ctrl+V;Shift+Insert.
+ This can be used to add additional accelerators to a KAction. For example,
+ the below code binds the escape key to the close action.
+ <pre>
+ KAction closeAction = KStdAction.close( this, SLOT("close()"), actionCollection() );
+ KShortcut closeShortcut = closeAction.shortcut();
+ closeShortcut.append( KKey(Key_Escape));
+ closeAction.setShortcut(closeShortcut);
+ </pre>
+ Note that a shortcut cannot have more than 2 key combinations associated with it, so the above
+ code would not do anything (and append() would return false) if the closeAction already had
+ an key and alternate key.
+ @short The KShortcut class is used to represent a keyboard shortcut to an action.
+
+*/
+public class KShortcut implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KShortcut(Class dummy){}
+
+ /**
+ The maximum number of key sequences that can be contained in
+ a KShortcut.
+ @short The maximum number of key sequences that can be contained in a KShortcut.
+ */
+ public static final int MAX_SEQUENCES = 2;
+
+ /**
+ Creates a new null shortcut.
+ @short Creates a new null shortcut.
+ @see #null
+ @see #isNull
+ @see #clear
+ */
+ public KShortcut() {
+ newKShortcut();
+ }
+ private native void newKShortcut();
+ /**
+ Creates a new shortcut with the given Qt key code
+ as the only key sequence.
+ @param keyQt the qt keycode
+ @short Creates a new shortcut with the given Qt key code as the only key sequence.
+ @see org.kde.qt.Qt#Key
+ */
+ public KShortcut(int keyQt) {
+ newKShortcut(keyQt);
+ }
+ private native void newKShortcut(int keyQt);
+ /**
+ Creates a new shortcut that contains only the given qt key
+ sequence.
+ @param keySeq the qt key sequence to add
+ @short Creates a new shortcut that contains only the given qt key sequence.
+ */
+ public KShortcut(QKeySequence keySeq) {
+ newKShortcut(keySeq);
+ }
+ private native void newKShortcut(QKeySequence keySeq);
+ /**
+ Creates a new shortcut that contains only the given key
+ in its only sequence.
+ @param key the key to add
+ @short Creates a new shortcut that contains only the given key in its only sequence.
+ */
+ public KShortcut(KKey key) {
+ newKShortcut(key);
+ }
+ private native void newKShortcut(KKey key);
+ /**
+ Creates a new shortcut that contains only the given key
+ sequence.
+ @param keySeq the key sequence to add
+ @short Creates a new shortcut that contains only the given key sequence.
+ */
+ public KShortcut(KKeySequence keySeq) {
+ newKShortcut(keySeq);
+ }
+ private native void newKShortcut(KKeySequence keySeq);
+ /**
+ Copies the given shortcut.
+ @param shortcut the shortcut to add
+ @short Copies the given shortcut.
+ */
+ public KShortcut(KShortcut shortcut) {
+ newKShortcut(shortcut);
+ }
+ private native void newKShortcut(KShortcut shortcut);
+ /**
+ Creates a new key sequence that contains the given key sequence.
+ The description consists of semicolon-separated keys as
+ used in KKeySequence.KKeySequence(String).
+ @param shortcut the description of the key
+ @short Creates a new key sequence that contains the given key sequence.
+ @see KKeySequence#KKeySequence(const
+ */
+ public KShortcut(String shortcut) {
+ newKShortcut(shortcut);
+ }
+ private native void newKShortcut(String shortcut);
+ /**
+ Clears the shortcut. The shortcut is null after calling this
+ function.
+ @short Clears the shortcut.
+ @see #isNull
+ */
+ public native void clear();
+ /**
+ Initializes the shortcut with the given Qt key code
+ as the only key sequence.
+ @param keyQt the qt keycode
+ @short Initializes the shortcut with the given Qt key code as the only key sequence.
+ @see org.kde.qt.Qt#Key
+ */
+ public native boolean init(int keyQt);
+ /**
+ Initializes the shortcut with the given qt key sequence.
+ @param keySeq the qt key sequence to add
+ @short Initializes the shortcut with the given qt key sequence.
+ */
+ public native boolean init(QKeySequence keySeq);
+ /**
+ Initializes the shortcut with the given key as its only sequence.
+ @param key the key to add
+ @short Initializes the shortcut with the given key as its only sequence.
+ */
+ public native boolean init(KKey key);
+ /**
+ Initializes the shortcut with the given qt key sequence.
+ @param keySeq the qt key sequence to add
+ @short Initializes the shortcut with the given qt key sequence.
+ */
+ public native boolean init(KKeySequence keySeq);
+ /**
+ Copies the given shortcut.
+ @param shortcut the shortcut to add
+ @short Copies the given shortcut.
+ */
+ public native boolean init(KShortcut shortcut);
+ /**
+ Initializes the key sequence with the given key sequence.
+ The description consists of semicolon-separated keys as
+ used in KKeySequence.KKeySequence(String).
+ @param shortcut the description of the key
+ @short Initializes the key sequence with the given key sequence.
+ @see KKeySequence#KKeySequence(const
+ */
+ public native boolean init(String shortcut);
+ /**
+ Returns the number of sequences that are in this
+ shortcut.
+ @return the number of sequences
+ MAX_SEQUENCES
+
+ @short Returns the number of sequences that are in this shortcut.
+ */
+ public native int count();
+ /**
+ Returns the <code>i</code>'th key sequence of this shortcut.
+ @param i the number of the key sequence to retrieve
+ @return the <code>i</code>'th sequence or KKeySequence.null() if
+ there are less than <code>i</code> key sequences
+ MAX_SEQUENCES
+
+ @short Returns the <code>i</code>'th key sequence of this shortcut.
+ */
+ public native KKeySequence seq(int i);
+ /**
+ Returns the key code of the first key sequence, or
+ null if there is no first key sequence.
+ @return the key code of the first sequence's first key
+
+ @short Returns the key code of the first key sequence, or null if there is no first key sequence.
+ @see org.kde.qt.Qt#Key
+ @see KKeySequence#keyCodeQt
+ */
+ public native int keyCodeQt();
+ /**
+ Returns true if the shortcut is null (after clear() or empty
+ constructor).
+ @return true if the shortcut is null
+
+ @short Returns true if the shortcut is null (after clear() or empty constructor).
+ @see #clear
+ @see #null
+ */
+ public native boolean isNull();
+ /**
+ Compares this object with the given shortcut. Returns a negative
+ number if the given shortcut is larger, 0 if they are equal and
+ a positive number this shortcut is larger. Shortcuts are
+ compared by comparing the individual key sequences, starting from the
+ beginning until an unequal key sequences has been found. If a shortcut
+ contains more key sequences, it is considered larger.
+ @param shortcut the shortcut to compare to
+ @return a negative number if the given KShortcut is larger, 0 if
+ they are equal and a positive number this KShortcut is larger
+
+ @short Compares this object with the given shortcut.
+ @see KKey#compare
+ @see KKeyShortcut#compare
+ */
+ public native int compare(KShortcut shortcut);
+ /**
+ Compares the sequences of both shortcuts.
+ @short Compares the sequences of both shortcuts.
+ @see #compare
+ */
+ public native boolean op_equals(KShortcut cut);
+ /**
+ Compares the sequences of both shortcuts.
+ @short Compares the sequences of both shortcuts.
+ @see #compare
+ */
+ public native boolean op_not_equals(KShortcut cut);
+ /**
+ Compares the sequences of both shortcuts.
+ @short Compares the sequences of both shortcuts.
+ @see #compare
+ */
+ public native boolean op_lt(KShortcut cut);
+ /**
+ Checks whether this shortcut contains a sequence that starts
+ with the given key.
+ @param key the key to check
+ @return true if a key sequence starts with the key
+
+ @short Checks whether this shortcut contains a sequence that starts with the given key.
+ */
+ public native boolean contains(KKey key);
+ /**
+ Checks whether this shortcut contains the given sequence.
+ @param keySeq the key sequence to check
+ @return true if the shortcut has the given key sequence
+
+ @short Checks whether this shortcut contains the given sequence.
+ */
+ public native boolean contains(KKeySequence keySeq);
+ /**
+ Sets the <code>i</code> 'th key sequence of the shortcut. You can not introduce
+ gaps in the list of sequences, so you must use an <code>i</code> <= count().
+ Also note that the maximum number of key sequences is MAX_SEQUENCES.
+ @param i the position of the new key sequence(0 <= i <= count(), 0 <= i < MAX_SEQUENCES)
+ @param keySeq the key sequence to set
+ @return true if successful, false otherwise
+
+ @short Sets the <code>i</code> 'th key sequence of the shortcut.
+ */
+ public native boolean setSeq(int i, KKeySequence keySeq);
+ /**
+ Appends the given key sequence. This sets it as either the keysequence or
+ the alternate keysequence. If the shortcut already has MAX_SEQUENCES
+ sequences then this call does nothing, and returns false.
+ @param keySeq the key sequence to add
+ @return true if successful, false otherwise
+
+ @short Appends the given key sequence.
+ @see #setSeq
+ */
+ public native boolean append(KKeySequence keySeq);
+ /**
+ Removes the given key sequence from this shortcut
+ @param keySeq the key sequence to remove
+ @short Removes the given key sequence from this shortcut
+ */
+ public native void remove(KKeySequence keySeq);
+ /**
+ Appends the given key
+ @param spec the key to add
+ @return true if successful, false otherwise
+
+ @short Appends the given key
+ @see #setSeq
+ @see MAX_SEQUENCES
+ */
+ public native boolean append(KKey spec);
+ /**
+ Appends the sequences from the given shortcut.
+ @param cut the shortcut to append
+ @return true if successful, false otherwise
+
+ @short Appends the sequences from the given shortcut.
+ @see MAX_SEQUENCES
+ */
+ public native boolean append(KShortcut cut);
+ /**
+ Returns a description of the shortcut as semicolon-separated
+ ket sequences, as returned by KKeySequence.toString().
+ @return the string represenation of this shortcut
+
+ @short Returns a description of the shortcut as semicolon-separated ket sequences, as returned by KKeySequence.toString().
+ @see KKey#toString
+ @see KKeySequence#toString
+ */
+ public native String toString();
+ /**
+ @short
+ */
+ public native String toStringInternal(KShortcut pcutDefault);
+ public native String toStringInternal();
+ /**
+ Returns a null shortcut.
+ @return the null shortcut
+
+ @short Returns a null shortcut.
+ @see #isNull
+ @see #clear
+ */
+ public static native KShortcut nil();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KShortcutList.java b/kdejava/koala/org/kde/koala/KShortcutList.java
new file mode 100644
index 00000000..b33ae520
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KShortcutList.java
@@ -0,0 +1,164 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QVariant;
+
+/**
+
+ KShortcutList is an abstract base class for
+ KAccelShortcutList and KStdAccel.ShortcutList. It gives
+ you an unified interface for accessing the accelerator lists
+ of KAccel (using KAccelShortcutList),
+ KGlobalAccel (using KAccelShortcutList), and
+ KStdAccel (using KStdAccel.ShortcutList).
+ @short Base class for accessing accelerator lists.
+
+*/
+public class KShortcutList implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KShortcutList(Class dummy){}
+
+
+ /**
+ Default constructor.
+ @short Default constructor.
+ */
+ /**
+ Returns the number of entries.
+ @return the number of entries
+
+ @short Returns the number of entries.
+ */
+ public native int count();
+ /**
+ Returns the name of the shortcut with the given <code>index.</code>
+ @param index the index of the shortcut (must be < count())
+ @return the name of the shortcut
+
+ @short Returns the name of the shortcut with the given <code>index.</code>
+ */
+ public native String name(int index);
+ /**
+ Returns the (i18n'd) label of the shortcut with the given <code>index.</code>
+ @param index the index of the shortcut (must be < count())
+ @return the label (i18n'd) of the shortcut
+
+ @short Returns the (i18n'd) label of the shortcut with the given <code>index.</code>
+ */
+ public native String label(int index);
+ /**
+ Returns the (i18n'd) What's This text of the shortcut with the given <code>index.</code>
+ @param index the index of the shortcut (must be < count())
+ @return the What's This text (i18n'd) of the shortcut
+
+ @short Returns the (i18n'd) What's This text of the shortcut with the given <code>index.</code>
+ */
+ public native String whatsThis(int index);
+ /**
+ Returns the shortcut with the given <code>index.</code>
+ @param index the index of the shortcut (must be < count())
+ @return the shortcut
+
+ @short Returns the shortcut with the given <code>index.</code>
+ @see #shortcutDefault
+ */
+ public native KShortcut shortcut(int index);
+ /**
+ Returns default shortcut with the given <code>index.</code>
+ @param index the index of the shortcut (must be < count())
+ @return the default shortcut
+
+ @short Returns default shortcut with the given <code>index.</code>
+ @see #shortcut
+ */
+ public native KShortcut shortcutDefault(int index);
+ /**
+ Checks whether the shortcut with the given <code>index</code> is configurable.
+ @param index the index of the shortcut (must be < count())
+ @return true if configurable, false otherwise
+
+ @short Checks whether the shortcut with the given <code>index</code> is configurable.
+ */
+ public native boolean isConfigurable(int index);
+ /**
+ Sets the shortcut of the given entry
+ @param index the index of the shortcut (must be < count())
+ @param shortcut the shortcut
+ @short Sets the shortcut of the given entry
+ */
+ public native boolean setShortcut(int index, KShortcut shortcut);
+ /**
+ Checks whether the shortcut with the given <code>index</code> is saved in the
+ global configuration.
+ @param index the index of the shortcut (must be < count())
+ @return true if global, false otherwise
+
+ @short Checks whether the shortcut with the given <code>index</code> is saved in the global configuration.
+ */
+ public native boolean isGlobal(int index);
+ /**
+ Returns the index of the shortcut with he given name.
+ @param sName the name of the shortcut to search
+ @return the index of the shortcut, of -1 if not found
+
+ @short Returns the index of the shortcut with he given name.
+ */
+ public native int index(String sName);
+ /**
+ Returns the index of the shortcut with he given key sequence.
+ @param keySeq the key sequence to search for
+ @return the index of the shortcut, of -1 if not found
+
+ @short Returns the index of the shortcut with he given key sequence.
+ */
+ public native int index(KKeySequence keySeq);
+ /**
+ The KInstance.
+ @return the KInstance of the list, can be 0 if not available
+
+ @short The KInstance.
+ */
+ public native KInstanceInterface instance();
+ /** \internal @short \internal
+ */
+ public native QVariant getOther(int arg1, int index);
+ /** \internal @short \internal
+ */
+ public native boolean setOther(int arg1, int index, QVariant arg3);
+ /**
+ Save the shortcut list.
+ @return true if successful, false otherwise
+
+ @short Save the shortcut list.
+ */
+ public native boolean save();
+ /**
+ Loads the shortcuts from the given configuration file.
+ @param sConfigGroup the group in the configuration file
+ @param pConfig the configuration file to load from
+ @return true if successful, false otherwise
+
+ @short Loads the shortcuts from the given configuration file.
+ */
+ public native boolean readSettings(String sConfigGroup, KConfigBase pConfig);
+ public native boolean readSettings(String sConfigGroup);
+ public native boolean readSettings();
+ /**
+ Writes the shortcuts to the given configuration file.
+ @param sConfigGroup the group in the configuration file
+ @param pConfig the configuration file to save to
+ @param bWriteAll true to write all actions
+ @param bGlobal true to write to the global configuration file
+ @return true if successful, false otherwise
+
+ @short Writes the shortcuts to the given configuration file.
+ */
+ public native boolean writeSettings(String sConfigGroup, KConfigBase pConfig, boolean bWriteAll, boolean bGlobal);
+ public native boolean writeSettings(String sConfigGroup, KConfigBase pConfig, boolean bWriteAll);
+ public native boolean writeSettings(String sConfigGroup, KConfigBase pConfig);
+ public native boolean writeSettings(String sConfigGroup);
+ public native boolean writeSettings();
+}
diff --git a/kdejava/koala/org/kde/koala/KShred.java b/kdejava/koala/org/kde/koala/KShred.java
new file mode 100644
index 00000000..eb944bec
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KShred.java
@@ -0,0 +1,95 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+/**
+
+ Erase a file in a way that makes recovery impossible -- well, no guarentee
+ of that, but at least as difficult as reasonably possible.
+ For this, KShred write several times over the
+ existing file, using different patterns, before deleting it.
+ See {@link KShredSignals} for signals emitted by KShred
+ @author David Faure <faure@kde.org> (integration into KDE and progress signal)
+
+ @short
+
+*/
+public class KShred extends QObject {
+ protected KShred(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Initialize the class using the name of the file to 'shred'.
+ @param fileName fully qualified name of the file to shred.
+ @short Initialize the class using the name of the file to 'shred'.
+ */
+ public KShred(String fileName) {
+ super((Class) null);
+ newKShred(fileName);
+ }
+ private native void newKShred(String fileName);
+ /**
+ Writes all 1's over the entire file and flushes the file buffers.
+ @return true on success, false on error (invalid filename or write error)
+
+ @short Writes all 1's over the entire file and flushes the file buffers.
+ */
+ public native boolean fill1s();
+ /**
+ Writes all 0's over the entire file and flushes the file buffers.
+ @return true on success, false on error (invalid filename or write error)
+
+ @short Writes all 0's over the entire file and flushes the file buffers.
+ */
+ public native boolean fill0s();
+ /**
+ Writes the specified byte over the entire file and flushes the file buffers.
+ @param byte the value to write over every byte of the file
+ @return true on success, false on error (invalid filename or write error)
+
+ @short Writes the specified byte over the entire file and flushes the file buffers.
+ */
+ public native boolean fillbyte(int arg1);
+ /**
+ Writes random bites over the entire file and flushes the file buffers.
+ @return true on success, false on error (invalid filename or write error)
+
+ @short Writes random bites over the entire file and flushes the file buffers.
+ */
+ public native boolean fillrandom();
+ /**
+ Writes the specified byte array over the entire file and flushes the file buffers.
+ @param pattern the value to write over the entire file
+ @param size the length of the 'pattern' byte array
+ @return true on success, false on error (invalid filename or write error)
+
+ @short Writes the specified byte array over the entire file and flushes the file buffers.
+ */
+ public native boolean fillpattern(short pattern, int size);
+ /**
+ Shreds a file by writing a series of values over it (uses
+ #fill0s, then fill1s, then fillrandom, then
+ fillbyte with 0101..., then fillbyte with 1010....
+ @return true on success, false on error (invalid filename or write error)
+
+ @short Shreds a file by writing a series of values over it (uses #fill0s, then fill1s, then fillrandom, then fillbyte with 0101.
+ */
+ public native boolean shred();
+ /**
+ The simplest method to shred a file.
+ No need to create an instance of the class.
+ @param fileName fully qualified name of the file to shred.
+ @short The simplest method to shred a file.
+ */
+ public static native boolean shred(String fileName);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KShredSignals.java b/kdejava/koala/org/kde/koala/KShredSignals.java
new file mode 100644
index 00000000..12c75966
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KShredSignals.java
@@ -0,0 +1,20 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+public interface KShredSignals {
+ /**
+ Shows progress of the shredding.
+ @param bytes the number of bytes written to the file
+ @short Shows progress of the shredding.
+ */
+ void processedSize(long bytes);
+ /**
+ Shows a message in the progress dialog
+ @param message the message to display
+ @short Shows a message in the progress dialog
+ */
+ void infoMessage(String message);
+}
diff --git a/kdejava/koala/org/kde/koala/KSimpleConfig.java b/kdejava/koala/org/kde/koala/KSimpleConfig.java
new file mode 100644
index 00000000..d547df61
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSimpleConfig.java
@@ -0,0 +1,64 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+
+ KDE Configuration entries
+ This is a trivial extension of KConfig for applications that need
+ only one configuration file and no default system.
+ A difference with KConfig is that when the data in memory is written back
+ it is not merged with what is on disk.
+ Whatever is in memory simply replaces what is on disk entirely.
+ @author Kalle Dalheimer <kalle@kde.org>, Preston Brown <pbrown@kde.org>
+
+ @short KDE Configuration Management class with deletion ability.
+ @see KConfigBase
+ @see KConfig
+
+*/
+public class KSimpleConfig extends KConfig {
+ protected KSimpleConfig(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a KSimpleConfig object and make it either read-write
+ or read-only.
+ @param fileName The file used for saving the config data. Either
+ a full path can be specified or just the filename.
+ If only a filename is specified, the default
+ directory for "config" files is used.
+ @param bReadOnly Whether the object should be read-only.
+ @short Construct a KSimpleConfig object and make it either read-write or read-only.
+ */
+ public KSimpleConfig(String fileName, boolean bReadOnly) {
+ super((Class) null);
+ newKSimpleConfig(fileName,bReadOnly);
+ }
+ private native void newKSimpleConfig(String fileName, boolean bReadOnly);
+ public KSimpleConfig(String fileName) {
+ super((Class) null);
+ newKSimpleConfig(fileName);
+ }
+ private native void newKSimpleConfig(String fileName);
+ public KSimpleConfig(KConfigBackEnd backEnd, boolean bReadOnly) {
+ super((Class) null);
+ newKSimpleConfig(backEnd,bReadOnly);
+ }
+ private native void newKSimpleConfig(KConfigBackEnd backEnd, boolean bReadOnly);
+ public KSimpleConfig(KConfigBackEnd backEnd) {
+ super((Class) null);
+ newKSimpleConfig(backEnd);
+ }
+ private native void newKSimpleConfig(KConfigBackEnd backEnd);
+ public native void sync();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSimpleFileFilter.java b/kdejava/koala/org/kde/koala/KSimpleFileFilter.java
new file mode 100644
index 00000000..08d5d949
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSimpleFileFilter.java
@@ -0,0 +1,128 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ A simple file filter that can filter hidden dot files, by name,
+ by mime type and by mode.
+ @short A simple file filter.
+
+*/
+public class KSimpleFileFilter extends KFileFilter {
+ protected KSimpleFileFilter(Class dummy){super((Class) null);}
+ /**
+ Creates a new filter. By default, it filters only hidden dot files
+ and "." and "..".
+ @short Creates a new filter.
+ */
+ public KSimpleFileFilter() {
+ super((Class) null);
+ newKSimpleFileFilter();
+ }
+ private native void newKSimpleFileFilter();
+ /**
+ Enable or disable filtering hidden dot files.
+ This option is enabled by default.
+ @param filter true to enable filtering dot files, false to
+ disable
+ @short Enable or disable filtering hidden dot files.
+ @see #filterDotFiles
+ */
+ public native void setFilterDotFiles(boolean filter);
+ /**
+ Checks whether filtering dot files is enabled.
+ This option is enabled by default.
+ @return true if filtering is enabled, false otherwise
+
+ @short Checks whether filtering dot files is enabled.
+ @see #setFilterDotFiles
+ */
+ public native boolean filterDotFiles();
+ /**
+ Filters "." and "..", default is true.
+ @param filter true to enable, false otherwise
+ @short Filters ".
+ */
+ public native void setFilterSpecials(boolean filter);
+ /**
+ Checks whether it filters "." and "..", default is true.
+ @return true if enabled, false otherwise
+
+ @short Checks whether it filters ".
+ */
+ public native boolean filterSpecials();
+ /**
+ Sets a list of regular expressions to filter by name.
+ The file will only pass if its name matches one of the regular
+ expressions.
+ @param nameFilters a list of regular expressions, separated by
+ the character <code>separator</code>
+ @param caseSensitive if true, matches case sensitive. False
+ otherwise
+ @param separator the separator in the <code>nameFilter</code>
+ @short Sets a list of regular expressions to filter by name.
+ */
+ public native void setNameFilters(String nameFilters, boolean caseSensitive, char separator);
+ public native void setNameFilters(String nameFilters, boolean caseSensitive);
+ /**
+ Sets a list of regular expressions to filter by name.
+ The file will only pass if its name matches one of the regular
+ expressions.
+ @param nameFilters a list of regular expressions, separated by
+ space (' ')
+ @short Sets a list of regular expressions to filter by name.
+ */
+ public native void setNameFilters(String nameFilters);
+ /**
+ Sets a list of mime filters. A file can only pass if its
+ mime type is contained in this list.
+ @param mimeFilters the list of mime types
+ @short Sets a list of mime filters.
+ @see #setMimeFilter
+ */
+ public native void setMimeFilters(String[] mimeFilters);
+ /**
+ Returns the list of mime types.
+ @return the list of mime types
+
+ @short Returns the list of mime types.
+ @see #mimeFilter
+ */
+ public native ArrayList mimeFilters();
+ /**
+ Sets the mode filter. If the <code>mode</code> is 0, the filter is
+ disabled.
+ When enabled, a file will only pass if the files mode
+ ANDed with <code>mode</code> is not zero.
+ @param mode the new mode. 0 to disable
+ @short Sets the mode filter.
+ @see #modeFilter
+ */
+ public native void setModeFilter(long mode);
+ /**
+ Returns the mode filter, as set by setModeFilter().
+ @return the mode filter, 0 if disabled
+
+ @short Returns the mode filter, as set by setModeFilter().
+ @see #setModeFilter
+ */
+ public native long modeFilter();
+ /**
+ Checks the given <code>item.</code>
+ @param item the item to filter
+ @return true if the <code>item</code> passes the filter, false otherwise
+
+ @short Checks the given <code>item.</code>
+ */
+ public native boolean passesFilter(KFileItem item);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSpell.java b/kdejava/koala/org/kde/koala/KSpell.java
new file mode 100644
index 00000000..2e7edb47
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSpell.java
@@ -0,0 +1,390 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ %KDE Spellchecker
+ A %KDE programmer's interface to International ISpell 3.1, ASpell,
+ HSpell and ZPSpell..
+ A static method, modalCheck() is provided for convenient
+ access to the spellchecker.
+ See {@link KSpellSignals} for signals emitted by KSpell
+ @author David Sweet <dsweet@kde.org>
+
+ @short %KDE Spellchecker
+ @see KSpellConfig
+ @see KSyntaxHighlighter
+
+*/
+public class KSpell extends QObject {
+ protected KSpell(Class dummy){super((Class) null);}
+ /**
+ Possible states of the spell checker.
+
+ <li>
+ <code>Starting</code> - After creation of KSpell.
+ </li>
+
+ <li>
+ <code>Running</code> - After the ready signal has been emitted.
+ </li>
+
+ <li>
+ <code>Cleaning</code> - After cleanUp() has been called.
+ </li>
+
+ <li>
+ <code>Finished</code> - After cleanUp() has been completed.
+ </li>
+ The following error states exist:
+
+ <li>
+ <code>Error</code> - An error occurred in the <code>Starting</code> state.
+ </li>
+
+ <li>
+ <code>Crashed</code> - An error occurred in the <code>Running</code> state.
+ </li>
+ @short Possible states of the spell checker.
+ */
+ public static final int Starting = 0;
+ public static final int Running = 1;
+ public static final int Cleaning = 2;
+ public static final int Finished = 3;
+ public static final int Error = 4;
+ public static final int Crashed = 5;
+ public static final int FinishedNoMisspellingsEncountered = 6;
+
+ /**
+ These are possible types of documents which the spell checker can check.
+
+ <li>
+ <code>Text</code> - The default type, checks every word
+ </li>
+
+ <li>
+ <code>HTML</code> - For HTML/SGML/XML documents, will skip the tags,
+ </li>
+
+ <li>
+ <code>TeX</code> - For TeX/LaTeX documents, will skip commands,
+ </li>
+
+ <li>
+ <code>Nroff</code> - For nroff/troff documents.
+ </li>
+ Please note that not every option is supported on every type of
+ checker (e.g. ASpell doesn't support Nroff). In case a type
+ of a document is not supported the default Text option will
+ be used.
+ @short These are possible types of documents which the spell checker can check.
+ */
+ public static final int Text = 0;
+ public static final int HTML = 1;
+ public static final int TeX = 2;
+ public static final int Nroff = 3;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Starts the spellchecker.
+ KSpell emits ready() when it has verified that
+ ISpell/ASpell is working properly. Pass the name of a slot -- do not pass zero!
+ Be sure to call cleanUp() when you are done with KSpell.
+ If KSpell could not be started correctly, death() is emitted.
+ @param parent Parent of KSpellConfig dialog..
+ @param caption Caption of KSpellConfig dialog.
+ @param receiver Receiver object for the ready(KSpell ) signal.
+ @param slot Receiver's slot, will be connected to the ready(KSpell ) signal.
+ @param kcs Configuration for KSpell.
+ @param progressbar Indicates if progress bar should be shown.
+ @param modal Indicates modal or non-modal dialog.
+ @short Starts the spellchecker.
+ */
+ public KSpell(QWidget parent, String caption, QObject receiver, String slot, KSpellConfig kcs, boolean progressbar, boolean modal) {
+ super((Class) null);
+ newKSpell(parent,caption,receiver,slot,kcs,progressbar,modal);
+ }
+ private native void newKSpell(QWidget parent, String caption, QObject receiver, String slot, KSpellConfig kcs, boolean progressbar, boolean modal);
+ public KSpell(QWidget parent, String caption, QObject receiver, String slot, KSpellConfig kcs, boolean progressbar) {
+ super((Class) null);
+ newKSpell(parent,caption,receiver,slot,kcs,progressbar);
+ }
+ private native void newKSpell(QWidget parent, String caption, QObject receiver, String slot, KSpellConfig kcs, boolean progressbar);
+ public KSpell(QWidget parent, String caption, QObject receiver, String slot, KSpellConfig kcs) {
+ super((Class) null);
+ newKSpell(parent,caption,receiver,slot,kcs);
+ }
+ private native void newKSpell(QWidget parent, String caption, QObject receiver, String slot, KSpellConfig kcs);
+ public KSpell(QWidget parent, String caption, QObject receiver, String slot) {
+ super((Class) null);
+ newKSpell(parent,caption,receiver,slot);
+ }
+ private native void newKSpell(QWidget parent, String caption, QObject receiver, String slot);
+ /**
+ Starts the spellchecker.
+ KSpell emits ready() when it has verified that
+ ISpell/ASpell is working properly. Pass the name of a slot -- do not pass zero!
+ Be sure to call cleanUp() when you are done with KSpell.
+ If KSpell could not be started correctly, death() is emitted.
+ @param parent Parent of KSpellConfig dialog..
+ @param caption Caption of KSpellConfig dialog.
+ @param receiver Receiver object for the ready(KSpell ) signal.
+ @param slot Receiver's slot, will be connected to the ready(KSpell ) signal.
+ @param kcs Configuration for KSpell.
+ @param progressbar Indicates if progress bar should be shown.
+ @param modal Indicates modal or non-modal dialog.
+ @param type Type of the document to check
+ @short Starts the spellchecker.
+ */
+ public KSpell(QWidget parent, String caption, QObject receiver, String slot, KSpellConfig kcs, boolean progressbar, boolean modal, int type) {
+ super((Class) null);
+ newKSpell(parent,caption,receiver,slot,kcs,progressbar,modal,type);
+ }
+ private native void newKSpell(QWidget parent, String caption, QObject receiver, String slot, KSpellConfig kcs, boolean progressbar, boolean modal, int type);
+ /**
+ Returns the status of KSpell.
+ @short Returns the status of KSpell.
+ @see #spellStatus
+ */
+ public native int status();
+ /**
+ Cleans up ISpell.
+ Write out the personal dictionary and close ISpell's
+ stdin. A death() signal will be emitted when the cleanup is
+ complete, but this method will return immediately.
+ @short Cleans up ISpell.
+ */
+ public native void cleanUp();
+ /**
+ Sets the auto-delete flag. If this is set, the KSpell object
+ is automatically deleted after emitting death().
+ @short Sets the auto-delete flag.
+ */
+ public native void setAutoDelete(boolean _autoDelete);
+ /**
+ Spellchecks a buffer of many words in plain text
+ format.
+ The <code>_buffer</code> is not modified. The signal done() will be
+ sent when check() is finished and the argument will be a
+ spell-corrected version of <code>_buffer.</code>
+ The spell check may be stopped by the user before the entire buffer
+ has been checked. You can check lastPosition() to see how far
+ in <code>_buffer</code> check() reached before stopping.
+ @short Spellchecks a buffer of many words in plain text format.
+ */
+ public native boolean check(String _buffer, boolean usedialog);
+ public native boolean check(String _buffer);
+ /**
+ Returns the position (when using check()) or word
+ number (when using checkList()) of
+ the last word checked.
+ @short Returns the position (when using check()) or word number (when using checkList()) of the last word checked.
+ */
+ public native int lastPosition();
+ /**
+ Spellchecks a list of words.
+ checkList() is more flexible than check(). You could parse
+ any type
+ of document (HTML, TeX, etc.) into a list of spell-checkable words
+ and send the list to checkList(). Sending a marked-up document
+ to check() would result in the mark-up tags being
+ spell checked.
+ @short Spellchecks a list of words.
+ */
+ public native boolean checkList(String[] _wordlist, boolean usedialog);
+ public native boolean checkList(String[] _wordlist);
+ /**
+ Spellchecks a single word.
+ checkWord() is the most flexible function. Some applications
+ might need this flexibility but will sacrifice speed when
+ checking large numbers of words. Consider checkList() for
+ checking many words.
+ Use this method for implementing "online" spellchecking (i.e.,
+ spellcheck as-you-type).
+ checkWord() returns <code>false</code> if <code>buffer</code> is not a single word (e.g.
+ if it contains white space), otherwise it returns <code>true</code>;
+ If <code>usedialog</code> is set to <code>true</code>, KSpell will open the standard
+ dialog if the word is not found. The dialog results can be queried
+ by using dlgResult() and replacement().
+ The signal corrected() is emitted when the check is
+ complete. You can look at suggestions() to see what the
+ suggested replacements were.
+ @short Spellchecks a single word.
+ */
+ public native boolean checkWord(String _buffer, boolean usedialog);
+ public native boolean checkWord(String _buffer);
+ public native boolean checkWord(String buffer, boolean _usedialog, boolean suggest);
+ /**
+ Hides the dialog box.
+ You'll need to do this when you are done with checkWord();
+ @short Hides the dialog box.
+ */
+ public native void hide();
+ /**
+ Returns list of suggested word replacements.
+ After calling checkWord() (an in response to
+ a misspelled() signal you can
+ use this to get the list of
+ suggestions (if any were available).
+ @short Returns list of suggested word replacements.
+ */
+ public native ArrayList suggestions();
+ /**
+ Gets the result code of the dialog box.
+ After calling checkWord, you can use this to get the dialog box's
+ result code.
+ The possible
+ values are (from kspelldlg.h):
+
+ <li>
+ KS_CANCEL
+ </li>
+
+ <li>
+ KS_REPLACE
+ </li>
+
+ <li>
+ KS_REPLACEALL
+ </li>
+
+ <li>
+ KS_IGNORE
+ </li>
+
+ <li>
+ KS_IGNOREALL
+ </li>
+
+ <li>
+ KS_ADD
+ </li>
+
+ <li>
+ KS_STOP
+ </li>
+ @short Gets the result code of the dialog box.
+ */
+ public native int dlgResult();
+ /**
+ Moves the dialog.
+ If the dialog is not currently visible, it will
+ be placed at this position when it becomes visible.
+ Use this to get the dialog out of the way of a highlighted
+ misspelled word in a document.
+ @short Moves the dialog.
+ */
+ public native void moveDlg(int x, int y);
+ /**
+ Returns the height of the dialog box.
+ @short Returns the height of the dialog box.
+ */
+ public native int heightDlg();
+ /**
+ Returns the width of the dialog box.
+ @short Returns the width of the dialog box.
+ */
+ public native int widthDlg();
+ /**
+ Returns the partially spellchecked buffer.
+ You might want the full buffer in its partially-checked state.
+ @short Returns the partially spellchecked buffer.
+ */
+ public native String intermediateBuffer();
+ /**
+ Tells ISpell/ASpell to ignore this word for the life of this KSpell instance.
+ @return false if <code>word</code> is not a word or there was an error
+ communicating with ISpell/ASpell.
+
+ @short Tells ISpell/ASpell to ignore this word for the life of this KSpell instance.
+ */
+ public native boolean ignore(String word);
+ /**
+ Adds a word to the user's personal dictionary.
+ @return false if <code>word</code>
+ is not a word or there was an error communicating with ISpell/ASpell.
+
+ @short Adds a word to the user's personal dictionary.
+ */
+ public native boolean addPersonal(String word);
+ /**
+ @return the KSpellConfig object being used by this KSpell instance.
+
+ @short
+ */
+ public native KSpellConfig ksConfig();
+ /**
+ Sets the resolution (in percent) of the progress() signals.
+ E.g. setProgressResolution (10) instructs KSpell to send progress
+ signals (at most) every 10% (10%, 20%, 30%...).
+ The default is 10%.
+ @short Sets the resolution (in percent) of the progress() signals.
+ */
+ public native void setProgressResolution(int res);
+ /**
+ Call setIgnoreUpperWords(true) to tell the spell-checker to ignore
+ words that are completely uppercase. They are spell-checked by default.
+ @short Call setIgnoreUpperWords(true) to tell the spell-checker to ignore words that are completely uppercase.
+ */
+ public native void setIgnoreUpperWords(boolean b);
+ /**
+ Call setIgnoreTitleCase(true) to tell the spell-checker to ignore
+ words with a 'title' case, i.e. starting with an uppercase letter.
+ They are spell-checked by default.
+ @short Call setIgnoreTitleCase(true) to tell the spell-checker to ignore words with a 'title' case, i.
+ */
+ public native void setIgnoreTitleCase(boolean b);
+ /**
+ Performs a synchronous spellcheck.
+ This method does not return until spellchecking is done or canceled.
+ Your application's GUI will still be updated, however.
+ This overloaded method uses the spell-check configuration passed as parameter.
+ @short Performs a synchronous spellcheck.
+ */
+ public static native int modalCheck(StringBuffer text, KSpellConfig kcs);
+ protected native int parseOneResponse(String _buffer, StringBuffer word, String[] sugg);
+ protected native String funnyWord(String word);
+ protected native void dialog(String word, String[] sugg, String _slot);
+ protected native String replacement();
+ protected native void setUpDialog(boolean reallyusedialogbox);
+ protected native void setUpDialog();
+ protected native void emitProgress();
+ protected native boolean cleanFputs(String s, boolean appendCR);
+ protected native boolean cleanFputs(String s);
+ protected native boolean cleanFputsWord(String s, boolean appendCR);
+ protected native boolean cleanFputsWord(String s);
+ protected native void startIspell();
+ protected native boolean writePersonalDictionary();
+ protected native void initialize(QWidget _parent, String _caption, QObject arg3, String slot, KSpellConfig _ksc, boolean _progressbar, boolean _modal, int type);
+ protected native void KSpell2(KProcIO arg1);
+ protected native void checkWord2(KProcIO arg1);
+ protected native void checkWord3();
+ protected native void check2(KProcIO arg1);
+ protected native void checkList2();
+ protected native void checkList3a(KProcIO arg1);
+ protected native void checkListReplaceCurrent();
+ protected native void checkList4();
+ protected native void dialog2(int dlgresult);
+ protected native void check3();
+ protected native void suggestWord(KProcIO arg1);
+ protected native void slotStopCancel(int arg1);
+ protected native void ispellExit(KProcess arg1);
+ protected native void emitDeath();
+ protected native void ispellErrors(KProcess arg1, String arg2, int arg3);
+ protected native void checkNext();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSpellConfig.java b/kdejava/koala/org/kde/koala/KSpellConfig.java
new file mode 100644
index 00000000..7470d470
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSpellConfig.java
@@ -0,0 +1,198 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QComboBox;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ A configuration class/dialog for KSpell.
+ It contains all of the options settings.The options are set to default
+ values by the constructor and can be reset either by using the
+ public interface or by using KSpellConfig as a widget in a dialog
+ (or, preferably a tabbed dialog using KDialogBase) and letting
+ the user change the settings. This way an application that uses
+ KSpell can either rely on the default settings (in the simplest
+ case), offer a dialog to configure KSpell, or offer a dialog to
+ configure KSpell <em>for this app only</em> (in which case, the application
+ should save the settings for use next time it is run).
+ This last option might be useful in an email program, for example, where
+ people may be writing in a language different from that used for
+ writing papers in their word processor.
+ See {@link KSpellConfigSignals} for signals emitted by KSpellConfig
+ @author David Sweet <dsweet@kde.org>
+
+ @short A configuration class/dialog for KSpell.
+ @see KSpell
+
+*/
+public class KSpellConfig extends QWidget {
+ protected KSpellConfig(Class dummy){super((Class) null);}
+ public static final int rdictlist = 3;
+ public static final int rencoding = 4;
+ public static final int rhelp = 6;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KSpellConfig with default or custom settings.
+ @param parent Parent of the widget.
+ @param name Widget name.
+ @param spellConfig Predefined configuration. If this parameter
+ is 0, a default configuration will be used.
+ @param addHelpButton Enabled or hides a help button. See
+ activateHelp for more information.
+ @short Constructs a KSpellConfig with default or custom settings.
+ */
+ public KSpellConfig(QWidget parent, String name, KSpellConfig spellConfig, boolean addHelpButton) {
+ super((Class) null);
+ newKSpellConfig(parent,name,spellConfig,addHelpButton);
+ }
+ private native void newKSpellConfig(QWidget parent, String name, KSpellConfig spellConfig, boolean addHelpButton);
+ public KSpellConfig(QWidget parent, String name, KSpellConfig spellConfig) {
+ super((Class) null);
+ newKSpellConfig(parent,name,spellConfig);
+ }
+ private native void newKSpellConfig(QWidget parent, String name, KSpellConfig spellConfig);
+ public KSpellConfig(QWidget parent, String name) {
+ super((Class) null);
+ newKSpellConfig(parent,name);
+ }
+ private native void newKSpellConfig(QWidget parent, String name);
+ public KSpellConfig(QWidget parent) {
+ super((Class) null);
+ newKSpellConfig(parent);
+ }
+ private native void newKSpellConfig(QWidget parent);
+ public KSpellConfig() {
+ super((Class) null);
+ newKSpellConfig();
+ }
+ private native void newKSpellConfig();
+ public KSpellConfig(KSpellConfig arg1) {
+ super((Class) null);
+ newKSpellConfig(arg1);
+ }
+ private native void newKSpellConfig(KSpellConfig arg1);
+ /**
+ Fills <code>box</code> with the human readable, translated dictionary names and
+ selects the currently used dictionary (this will be the global
+ dictionary if you call {@link #fillDicts} directly after the constructor).
+ If <code>dictionaries</code> isn't 0 then <code>dictionaries</code> will be filled with the
+ corresponding internal dictionary names that are necessary to set the
+ dictionary with {@link #setDictionary}.
+ @param box Will be filled with the translated dictionary names.
+ @param dictionaries Will be filled with the internal dictionary names.
+ @short Get the translated dictionary names and, optionally, the corresponding internal dictionary names.
+ */
+ public native void fillDicts(QComboBox box, String[] dictionaries);
+ public native void fillDicts(QComboBox box);
+ /**
+ The <code>_ignorelist</code> contains words you'd like KSpell
+ to ignore when it is spellchecking. When you get a KSpellConfig
+ object back from KSpell (using KSpell.kcConfig()),
+ the <code>_ignorelist</code> contains whatever was put in by you plus
+ any words the user has chosen to ignore via the dialog box.
+ It may be useful to save this list with the document being
+ edited to facilitate quicker future spellchecking.
+ @short
+ */
+ public native void setIgnoreList(String[] _ignorelist);
+ /**
+ The <code>_replaceAllList</code> contains word you like that replace
+ word. Be careful that this list contains word which is replaced
+ and new word.
+ @short The <code>_replaceAllList</code> contains word you like that replace word.
+ */
+ public native void setReplaceAllList(String[] _replaceAllList);
+ /**
+ Set an ISpell option.
+ If <code>true</code>, don't create root-affix combinations.
+ @short Set an ISpell option.
+ */
+ public native void setNoRootAffix(boolean arg1);
+ /**
+ Set an ISpell option.
+ If <code>true</code>, treat run-together words a valid.
+ @short Set an ISpell option.
+ */
+ public native void setRunTogether(boolean arg1);
+ /**
+ Set the name of the dictionary to use.
+ @short Set the name of the dictionary to use.
+ */
+ public native void setDictionary(String qs);
+ public native void setDictFromList(boolean dfl);
+ /**
+ @short
+ */
+ public native void setEncoding(int enctype);
+ public native void setClient(int client);
+ /**
+ Options reading routines.
+ @short Options reading routines.
+ */
+ public native boolean noRootAffix();
+ public native boolean runTogether();
+ public native String dictionary();
+ public native boolean dictFromList();
+ public native int encoding();
+ public native ArrayList ignoreList();
+ public native ArrayList replaceAllList();
+ public native int client();
+ /**
+ Call this method before this class is deleted if you want
+ the settings you have (or the user has) chosen to become the
+ global, default settings.
+ @short Call this method before this class is deleted if you want the settings you have (or the user has) chosen to become the global, default settings.
+ */
+ public native boolean writeGlobalSettings();
+ public native boolean readGlobalSettings();
+ /**
+ Use this function to activate the help information for this
+ widget. The function is particulary useful if the help button is
+ not displayed as specified by the constructor. Normally you want
+ to hide the help button if this widget is embedded into a larger
+ dialog box that has its own help button. See kedit
+ (optiondialog.cpp) for an example
+ @short Use this function to activate the help information for this widget.
+ */
+ public native void activateHelp();
+ protected native void fillInDialog();
+ /**
+ This takes a dictionary file name and provides both a language
+ abbreviation appropriate for the $LANG variable, and a
+ human-readable name.
+ It also truncates ".aff" at the end of fname.
+ @param fname the dictionary name file (input)
+ @param lname the language abbreviation, such as de for German (output)
+ @param hname the human-readable name, such as Deutsch (output)
+ @return true if <pre>lname.data()==$LANG</pre>
+
+ @short This takes a dictionary file name and provides both a language abbreviation appropriate for the $LANG variable, and a human-readable name.
+ */
+ protected native boolean interpret(StringBuffer fname, StringBuffer lname, StringBuffer hname);
+ /**
+ Invokes the help documentation for kspell
+ @short Invokes the help documentation for kspell
+ */
+ protected native void sHelp();
+ protected native void sNoAff(boolean arg1);
+ protected native void sRunTogether(boolean arg1);
+ protected native void sDictionary(boolean arg1);
+ protected native void sPathDictionary(boolean arg1);
+ protected native void sSetDictionary(int arg1);
+ protected native void sChangeEncoding(int arg1);
+ protected native void sChangeClient(int arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSpellConfigSignals.java b/kdejava/koala/org/kde/koala/KSpellConfigSignals.java
new file mode 100644
index 00000000..c87213fb
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSpellConfigSignals.java
@@ -0,0 +1,12 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QComboBox;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+
+public interface KSpellConfigSignals {
+ void configChanged();
+}
diff --git a/kdejava/koala/org/kde/koala/KSpellDlg.java b/kdejava/koala/org/kde/koala/KSpellDlg.java
new file mode 100644
index 00000000..15de6b7e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSpellDlg.java
@@ -0,0 +1,67 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QListViewItem;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QCloseEvent;
+import org.kde.qt.QWidget;
+
+/**
+ See {@link KSpellDlgSignals} for signals emitted by KSpellDlg
+*/
+public class KSpellDlg extends KDialogBase {
+ protected KSpellDlg(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KSpellDlg(QWidget parent, String name, boolean _progressbar, boolean _modal) {
+ super((Class) null);
+ newKSpellDlg(parent,name,_progressbar,_modal);
+ }
+ private native void newKSpellDlg(QWidget parent, String name, boolean _progressbar, boolean _modal);
+ public KSpellDlg(QWidget parent, String name, boolean _progressbar) {
+ super((Class) null);
+ newKSpellDlg(parent,name,_progressbar);
+ }
+ private native void newKSpellDlg(QWidget parent, String name, boolean _progressbar);
+ public KSpellDlg(QWidget parent, String name) {
+ super((Class) null);
+ newKSpellDlg(parent,name);
+ }
+ private native void newKSpellDlg(QWidget parent, String name);
+ public native String replacement();
+ /**
+ Change the misspelled word and suggested replacements
+ and enable the disabled buttons on the dialog box.
+ (Buttons are disabled by standby().)
+ @short Change the misspelled word and suggested replacements and enable the disabled buttons on the dialog box.
+ */
+ public native void init(String _word, String[] _sugg);
+ public native void init(String _word, String[] _sugg, String context);
+ public native void standby();
+ /**
+ Adjust the progress bar to <code>p</code> percent.
+ @short Adjust the progress bar to <code>p</code> percent.
+ */
+ public native void slotProgress(int p);
+ protected native void closeEvent(QCloseEvent e);
+ protected native void done(int i);
+ protected native void ignore();
+ protected native void add();
+ protected native void ignoreAll();
+ public native void cancel();
+ protected native void replace();
+ protected native void replaceAll();
+ protected native void suggest();
+ protected native void stop();
+ protected native void slotConfigChanged();
+ protected native void textChanged(String arg1);
+ protected native void slotSelectionChanged(QListViewItem item);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSpellDlgSignals.java b/kdejava/koala/org/kde/koala/KSpellDlgSignals.java
new file mode 100644
index 00000000..1e4d703a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSpellDlgSignals.java
@@ -0,0 +1,17 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QListViewItem;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QCloseEvent;
+import org.kde.qt.QWidget;
+
+public interface KSpellDlgSignals {
+ /**
+ This signal is emitted when a button is pressed.
+ @short This signal is emitted when a button is pressed.
+ */
+ void command(int arg1);
+ void ready(boolean arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KSpellSignals.java b/kdejava/koala/org/kde/koala/KSpellSignals.java
new file mode 100644
index 00000000..f3df1e64
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSpellSignals.java
@@ -0,0 +1,117 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+
+public interface KSpellSignals {
+ /**
+ Emitted whenever a misspelled word is found by check() or
+ by checkWord().
+ If it is emitted by checkWord(), <code>pos</code>=0.
+ If it is emitted by check(), then <code>pos</code> indicates the position of
+ the misspelled word in the (original) <code>_buffer.</code>
+ (The first position is zero.)
+ If it is emitted by checkList(), <code>pos</code> is the index to
+ the misspelled
+ word in the ArrayList passed to checkList().
+ Note, that <code>originalword</code> can be only a word part, if it's
+ word with hyphens.
+ These are called _before_ the dialog is opened, so that the
+ calling program's GUI may be updated. (e.g. the misspelled word may
+ be highlighted).
+ @short Emitted whenever a misspelled word is found by check() or by checkWord().
+ */
+ void misspelling(String originalword, String[] suggestions, int pos);
+ /**
+ Emitted after the "Replace" or "Replace All" buttons of the dialog
+ was pressed, or if the word was
+ corrected without calling the dialog (i.e., the user previously chose
+ "Replace All" for this word).
+ Results from the dialog may be checked with dlgResult()
+ and replacement().
+ Note, that when using checkList() this signal can occur
+ more then once with same list position, when checking a word with
+ hyphens. In this case <code>originalword</code> is the last replacement.
+ @short Emitted after the "Replace" or "Replace All" buttons of the dialog was pressed, or if the word was corrected without calling the dialog (i.
+ @see #check
+ */
+ void corrected(String originalword, String newword, int pos);
+ /**
+ Emitted when the user pressed "Ignore All" in the dialog.
+ This could be used to make an application or file specific
+ user dictionary.
+ @short Emitted when the user pressed "Ignore All" in the dialog.
+ */
+ void ignoreall(String originalword);
+ /**
+ Emitted when the user pressed "Ignore" in the dialog.
+ Don't know if this could be useful.
+ @short Emitted when the user pressed "Ignore" in the dialog.
+ */
+ void ignoreword(String originalword);
+ /**
+ Emitted when the user pressed "Add" in the dialog.
+ This could be used to make an external user dictionary
+ independent of the ISpell personal dictionary.
+ @short Emitted when the user pressed "Add" in the dialog.
+ */
+ void addword(String originalword);
+ /**
+ Emitted when the user pressed "ReplaceAll" in the dialog.
+ @short Emitted when the user pressed "ReplaceAll" in the dialog.
+ */
+ void replaceall(String origword, String replacement);
+ /**
+ Emitted after KSpell has verified that ISpell/ASpell is running
+ and working properly.
+ @short Emitted after KSpell has verified that ISpell/ASpell is running and working properly.
+ */
+ void ready(KSpell arg1);
+ /**
+ Emitted during a check().
+ <code>i</code> is between 1 and 100.
+ @short Emitted during a check().
+ */
+ void progress(int i);
+ /**
+ Emitted when check() is done.
+ Be sure to copy the results of <code>buffer</code> if you need them.
+ You can only rely
+ on the contents of buffer for the life of the slot which was signaled
+ by done().
+ @short Emitted when check() is done.
+ */
+ void done(String buffer);
+ /**
+ Emitted when checkList() is done.
+ If the argument is
+ <code>true</code>, then you should update your text from the
+ wordlist, otherwise not.
+ @short Emitted when checkList() is done.
+ */
+ void done(boolean arg1);
+ /**
+ Emitted on terminal errors and after clean up.
+ You can delete the KSpell object in this signal.
+ You can check status() to see what caused the death:
+
+ <li>
+ <code>Error</code> - KSpell could not start.
+ </li>
+
+ <li>
+ <code>Crashed</code> - KSpell encountered an unexpected error during execution.
+ </li>
+
+ <li>
+ <code>Finished</code> - Clean up finished.
+
+ </li> @short Emitted on terminal errors and after clean up.
+ */
+ void death();
+ void dialog3();
+}
diff --git a/kdejava/koala/org/kde/koala/KSpellingHighlighter.java b/kdejava/koala/org/kde/koala/KSpellingHighlighter.java
new file mode 100644
index 00000000..570ef334
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSpellingHighlighter.java
@@ -0,0 +1,19 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QTextEdit;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+*/
+public class KSpellingHighlighter extends KSyntaxHighlighter {
+ protected KSpellingHighlighter(Class dummy){super((Class) null);}
+ public native int highlightParagraph(String text, int endStateOfLastPara);
+ public native boolean isMisspelled(String word);
+ public native boolean intraWordEditing();
+ public native void setIntraWordEditing(boolean editing);
+ public static native ArrayList personalWords();
+}
diff --git a/kdejava/koala/org/kde/koala/KSqueezedTextLabel.java b/kdejava/koala/org/kde/koala/KSqueezedTextLabel.java
new file mode 100644
index 00000000..4d46992b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSqueezedTextLabel.java
@@ -0,0 +1,78 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QLabel;
+
+/**
+
+ A label class that squeezes its text into the label
+ If the text is too long to fit into the label it is divided into
+ remaining left and right parts which are separated by three dots.
+ Example:
+ http://www.kde.org/documentation/index.html could be squeezed to
+ http://www.kde...ion/index.html
+ \image html ksqueezedtextlabel.png "KSqueezedTextLabel Widget"
+ @author Ronny Standtke <Ronny.Standtke@gmx.de>
+
+ @short A replacement for QLabel that squeezes its text.
+
+*/
+public class KSqueezedTextLabel extends QLabel {
+ protected KSqueezedTextLabel(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Default constructor.
+ @short Default constructor.
+ */
+ public KSqueezedTextLabel(QWidget parent, String name) {
+ super((Class) null);
+ newKSqueezedTextLabel(parent,name);
+ }
+ private native void newKSqueezedTextLabel(QWidget parent, String name);
+ public KSqueezedTextLabel(QWidget parent) {
+ super((Class) null);
+ newKSqueezedTextLabel(parent);
+ }
+ private native void newKSqueezedTextLabel(QWidget parent);
+ public KSqueezedTextLabel(String text, QWidget parent, String name) {
+ super((Class) null);
+ newKSqueezedTextLabel(text,parent,name);
+ }
+ private native void newKSqueezedTextLabel(String text, QWidget parent, String name);
+ public KSqueezedTextLabel(String text, QWidget parent) {
+ super((Class) null);
+ newKSqueezedTextLabel(text,parent);
+ }
+ private native void newKSqueezedTextLabel(String text, QWidget parent);
+ public native QSize minimumSizeHint();
+ public native QSize sizeHint();
+ /**
+ Overridden for internal reasons; the API remains unaffected.
+ @short Overridden for internal reasons; the API remains unaffected.
+ */
+ public native void setAlignment(int arg1);
+ public native void setText(String arg1);
+ /**
+ used when widget is resized
+ @short used when widget is resized
+ */
+ protected native void resizeEvent(QResizeEvent arg1);
+ /**
+ does the dirty work
+ @short does the dirty work
+ */
+ protected native void squeezeTextToLabel();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KStandardDirs.java b/kdejava/koala/org/kde/koala/KStandardDirs.java
new file mode 100644
index 00000000..82e63676
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KStandardDirs.java
@@ -0,0 +1,681 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ This is one of the most central classes in kdelibs as
+ it provides a basic service: It knows where the files
+ reside on the user's hard disk. And it's meant to be the
+ only one that knows -- to make the real location as
+ transparent as possible to both the user and the applications.
+ To this end it insulates the application from all information
+ and applications always refer to a file with a resource type
+ (e.g. icon) and a filename (e.g. khexdit.xpm). In an ideal world
+ the application would make no assumption where this file is and
+ leave it up to KStandardDirs.findResource("apps", "Home.desktop")
+ to apply this knowledge to return /opt/kde/share/applnk/Home.desktop
+ or .locate("data", "kgame/background.jpg") to return
+ /opt/kde/share/apps/kgame/background.jpg
+ The main idea behind KStandardDirs is that there are several
+ toplevel prefixes below which the files lie. One of these prefixes is
+ the one where the user installed kdelibs, one is where the
+ application was installed, and one is $HOME/.kde, but there
+ may be even more. Under these prefixes there are several well
+ defined suffixes where specific resource types are to be found.
+ For example, for the resource type "html" the suffixes could be
+ share/doc/HTML and share/doc/kde/HTML.
+ So the search algorithm basically appends to each prefix each registered
+ suffix and tries to locate the file there.
+ To make the thing even more complex, it's also possible to register
+ absolute paths that KStandardDirs looks up after not finding anything
+ in the former steps. They can be useful if the user wants to provide
+ specific directories that aren't in his $HOME/.kde directory for,
+ for example, icons.
+ <li><b>Standard resources that kdelibs allocates are:</b></li>
+
+ <li>
+ apps - Applications menu (.desktop files).
+ </li>
+
+ <li>
+ cache - Cached information (e.g. favicons, web-pages)
+ </li>
+
+ <li>
+ cgi - CGIs to run from kdehelp.
+ </li>
+
+ <li>
+ config - Configuration files.
+ </li>
+
+ <li>
+ data - Where applications store data.
+ </li>
+
+ <li>
+ exe - Executables in $prefix/bin. findExe() for a function that takes $PATH into account.
+ </li>
+
+ <li>
+ html - HTML documentation.
+ </li>
+
+ <li>
+ icon - Icons, see KIconLoader.
+ </li>
+
+ <li>
+ lib - Libraries.
+ </li>
+
+ <li>
+ locale - Translation files for KLocale.
+ </li>
+
+ <li>
+ mime - Mime types.
+ </li>
+
+ <li>
+ module - Module (dynamically loaded library).
+ </li>
+
+ <li>
+ qtplugins - Qt plugins (dynamically loaded objects for Qt)
+ </li>
+
+ <li>
+ services - Services.
+ </li>
+
+ <li>
+ servicetypes - Service types.
+ </li>
+
+ <li>
+ scripts - Application scripting additions.
+ </li>
+
+ <li>
+ sound - Application sounds.
+ </li>
+
+ <li>
+ templates - Templates
+ </li>
+
+ <li>
+ wallpaper - Wallpapers.
+ </li>
+
+ <li>
+ tmp - Temporary files (specific for both current host and current user)
+ </li>
+
+ <li>
+ socket - UNIX Sockets (specific for both current host and current user)
+ </li>
+
+ <li>
+ emoticons - Emoticons themes (Since KDE 3.4)
+ </li>
+ A type that is added by the class KApplication if you use it, is
+ appdata. This one makes the use of the type data a bit easier as it
+ appends the name of the application.
+ So while you had to .locate("data", "appname/filename") so you can
+ also write .locate("appdata", "filename") if your KApplication instance
+ is called "appname" (as set via KApplication's constructor or KAboutData, if
+ you use the global KStandardDirs object KGlobal.dirs()).
+ Please note though that you cannot use the "appdata"
+ type if you intend to use it in an applet for Kicker because 'appname' would
+ be "Kicker" instead of the applet's name. Therefore, for applets, you've got
+ to work around this by using .locate("data", "appletname/filename").
+ <b>KStandardDirs supports the following environment variables:</b>
+
+ <li>
+ KDEDIRS: This may set an additional number of directory prefixes to
+ search for resources. The directories should be separated
+ by ':'. The directories are searched in the order they are
+ specified.
+ </li>
+
+ <li>
+ KDEDIR: Used for backwards compatibility. As KDEDIRS but only a single
+ directory may be specified. If KDEDIRS is set KDEDIR is
+ ignored.
+ </li>
+
+ <li>
+ KDEHOME: The directory where changes are saved to. This directory is
+ used to search for resources first. If KDEHOME is not
+ specified it defaults to "$HOME/.kde"
+ </li>
+
+ <li>
+ KDEROOTHOME: Like KDEHOME, but used for the root user.
+ If KDEROOTHOME is not set it defaults to the .kde directory in the
+ home directory of root, usually "/root/.kde".
+ Note that the setting of $HOME is ignored in this case.
+ </li>
+ @author Stephan Kulow <coolo@kde.org> and Sirtaj Singh Kang <taj@kde.org>
+
+ @short Site-independent access to standard KDE directories.
+ @see KGlobalSettings
+
+*/
+public class KStandardDirs implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KStandardDirs(Class dummy){}
+
+ /**
+ KStandardDirs' constructor. It just initializes the caches.
+ @short KStandardDirs' constructor.
+ */
+ public KStandardDirs() {
+ newKStandardDirs();
+ }
+ private native void newKStandardDirs();
+ /**
+ Adds another search dir to front of the <code>fsstnd</code> list.
+
+ <li>
+ When compiling kdelibs, the prefix is added to this.
+ </li>
+
+ <li>
+ KDEDIRS or KDEDIR is taking into account
+ </li>
+
+ <li>
+ Additional dirs may be loaded from kdeglobals.
+ </li>
+ @param dir The directory to append relative paths to.
+ @short Adds another search dir to front of the <code>fsstnd</code> list.
+ */
+ public native void addPrefix(String dir);
+ /**
+ Adds another search dir to front of the XDG_CONFIG_XXX list
+ of prefixes.
+ This prefix is only used for resources that start with "xdgconf-"
+ @param dir The directory to append relative paths to.
+ @short Adds another search dir to front of the XDG_CONFIG_XXX list of prefixes.
+ */
+ public native void addXdgConfigPrefix(String dir);
+ /**
+ Adds another search dir to front of the XDG_DATA_XXX list
+ of prefixes.
+ This prefix is only used for resources that start with "xdgdata-"
+ @param dir The directory to append relative paths to.
+ @short Adds another search dir to front of the XDG_DATA_XXX list of prefixes.
+ */
+ public native void addXdgDataPrefix(String dir);
+ /**
+ Adds suffixes for types.
+ You may add as many as you need, but it is advised that there
+ is exactly one to make writing definite.
+ All basic types ( kde_default) are added by addKDEDefaults(),
+ but for those you can add more relative paths as well.
+ The later a suffix is added, the higher its priority. Note, that the
+ suffix should end with / but doesn't have to start with one (as prefixes
+ should end with one). So adding a suffix for app_pics would look
+ like KGlobal.dirs().addResourceType("app_pics", "share/app/pics");
+ @param type Specifies a short descriptive string to access
+ files of this type.
+ @param relativename Specifies a directory relative to the root
+ of the KFSSTND.
+ @return true if successful, false otherwise.
+
+ @short Adds suffixes for types.
+ */
+ public native boolean addResourceType(String type, String relativename);
+ /**
+ Adds absolute path at the end of the search path for
+ particular types (for example in case of icons where
+ the user specifies extra paths).
+ You shouldn't need this
+ function in 99% of all cases besides adding user-given
+ paths.
+ @param type Specifies a short descriptive string to access files
+ of this type.
+ @param absdir Points to directory where to look for this specific
+ type. Non-existant directories may be saved but pruned.
+ @return true if successful, false otherwise.
+
+ @short Adds absolute path at the end of the search path for particular types (for example in case of icons where the user specifies extra paths).
+ */
+ public native boolean addResourceDir(String type, String absdir);
+ /**
+ Tries to find a resource in the following order:
+
+ <li>
+ All PREFIX/\<relativename> paths (most recent first).
+ </li>
+
+ <li>
+ All absolute paths (most recent first).
+ </li>
+ The filename should be a filename relative to the base dir
+ for resources. So is a way to get the path to libkdecore.la
+ to findResource("lib", "libkdecore.la"). KStandardDirs will
+ then look into the subdir lib of all elements of all prefixes
+ ($KDEDIRS) for a file libkdecore.la and return the path to
+ the first one it finds (e.g. /opt/kde/lib/libkdecore.la)
+ @param type The type of the wanted resource
+ @param filename A relative filename of the resource.
+ @return A full path to the filename specified in the second
+ argument, or null if not found.
+
+ @short Tries to find a resource in the following order:
+ */
+ public native String findResource(String type, String filename);
+ /**
+ Checks whether a resource is restricted as part of the KIOSK
+ framework. When a resource is restricted it means that user-
+ specific files in the resource are ignored.
+ E.g. by restricting the "wallpaper" resource, only system-wide
+ installed wallpapers will be found by this class. Wallpapers
+ installed under the $KDEHOME directory will be ignored.
+ @param type The type of the resource to check
+ @param relPath A relative path in the resource.
+ @return True if the resource is restricted.
+
+ @short Checks whether a resource is restricted as part of the KIOSK framework.
+ */
+ public native boolean isRestrictedResource(String type, String relPath);
+ public native boolean isRestrictedResource(String type);
+ /**
+ Returns a number that identifies this version of the resource.
+ When a change is made to the resource this number will change.
+ @param type The type of the wanted resource
+ @param filename A relative filename of the resource.
+ @param deep If true, all resources are taken into account
+ otherwise only the one returned by findResource().
+ @return A number identifying the current version of the
+ resource.
+
+ @short Returns a number that identifies this version of the resource.
+ */
+ public native int calcResourceHash(String type, String filename, boolean deep);
+ /**
+ Tries to find all directories whose names consist of the
+ specified type and a relative path. So would
+ findDirs("apps", "Settings") return
+
+ <li>
+ /opt/kde/share/applnk/Settings/
+ </li>
+
+ <li>
+ /home/joe/.kde/share/applnk/Settings/
+ </li>
+ Note that it appends / to the end of the directories,
+ so you can use this right away as directory names.
+ @param type The type of the base directory.
+ @param reldir Relative directory.
+ @return A list of matching directories, or an empty
+ list if the resource specified is not found.
+
+ @short Tries to find all directories whose names consist of the specified type and a relative path.
+ */
+ public native ArrayList findDirs(String type, String reldir);
+ /**
+ Tries to find the directory the file is in.
+ It works the same as findResource(), but it doesn't
+ return the filename but the name of the directory.
+ This way the application can access a couple of files
+ that have been installed into the same directory without
+ having to look for each file.
+ findResourceDir("lib", "libkdecore.la") would return the
+ path of the subdir libkdecore.la is found first in
+ (e.g. /opt/kde/lib/)
+ @param type The type of the wanted resource
+ @param filename A relative filename of the resource.
+ @return The directory where the file specified in the second
+ argument is located, or null if the type
+ of resource specified is unknown or the resource
+ cannot be found.
+
+ @short Tries to find the directory the file is in.
+ */
+ public native String findResourceDir(String type, String filename);
+ /**
+ Tries to find all resources with the specified type.
+ The function will look into all specified directories
+ and return all filenames in these directories.
+ @param type The type of resource to locate directories for.
+ @param filter Only accept filenames that fit to filter. The filter
+ may consist of an optional directory and a QRegExp
+ wildcard expression. E.g. "images\.jpg". Use null
+ if you do not want a filter.
+ @param recursive Specifies if the function should decend
+ into subdirectories.
+ @param unique If specified, only return items which have
+ unique suffixes - suppressing duplicated filenames.
+ @return List of all the files whose filename matches the
+ specified filter.
+
+ @short Tries to find all resources with the specified type.
+ */
+ public native ArrayList findAllResources(String type, String filter, boolean recursive, boolean unique);
+ public native ArrayList findAllResources(String type, String filter, boolean recursive);
+ public native ArrayList findAllResources(String type, String filter);
+ public native ArrayList findAllResources(String type);
+ /**
+ Tries to find all resources with the specified type.
+ The function will look into all specified directories
+ and return all filenames (full and relative paths) in
+ these directories.
+ @param type The type of resource to locate directories for.
+ @param filter Only accept filenames that fit to filter. The filter
+ may consist of an optional directory and a QRegExp
+ wildcard expression. E.g. "images\.jpg". Use null
+ if you do not want a filter.
+ @param recursive Specifies if the function should decend
+ into subdirectories.
+ @param unique If specified, only return items which have
+ unique suffixes.
+ @param relPaths The list to store the relative paths into
+ These can be used later to .locate() the file
+ @return List of all the files whose filename matches the
+ specified filter.
+
+ @short Tries to find all resources with the specified type.
+ */
+ public native ArrayList findAllResources(String type, String filter, boolean recursive, boolean unique, String[] relPaths);
+ /**
+ This function adds the defaults that are used by the current
+ KDE version.
+ It's a series of addResourceTypes()
+ and addPrefix() calls.
+ You normally wouldn't call this function because it's called
+ for you from KGlobal.
+ @short This function adds the defaults that are used by the current KDE version.
+ */
+ public native void addKDEDefaults();
+ /**
+ Reads customized entries out of the given config object and add
+ them via addResourceDirs().
+ @param config The object the entries are read from. This should
+ contain global config files
+ @return true if new config paths have been added
+ from <code>config.</code>
+
+ @short Reads customized entries out of the given config object and add them via addResourceDirs().
+ */
+ public native boolean addCustomized(KConfig config);
+ /**
+ This function is used internally by almost all other function as
+ it serves and fills the directories cache.
+ @param type The type of resource
+ @return The list of possible directories for the specified <code>type.</code>
+ The function updates the cache if possible. If the resource
+ type specified is unknown, it will return an empty list.
+ Note, that the directories are assured to exist beside the save
+ location, which may not exist, but is returned anyway.
+
+ @short This function is used internally by almost all other function as it serves and fills the directories cache.
+ */
+ public native ArrayList resourceDirs(String type);
+ /**
+ This function will return a list of all the types that KStandardDirs
+ supports.
+ @return All types that KDE supports
+
+ @short This function will return a list of all the types that KStandardDirs supports.
+ */
+ public native ArrayList allTypes();
+ /**
+ Finds a location to save files into for the given type
+ in the user's home directory.
+ @param type The type of location to return.
+ @param suffix A subdirectory name.
+ Makes it easier for you to create subdirectories.
+ You can't pass filenames here, you _have_ to pass
+ directory names only and add possible filename in
+ that directory yourself. A directory name always has a
+ trailing slash ('/').
+ @param create If set, saveLocation() will create the directories
+ needed (including those given by <code>suffix</code>).
+ @return A path where resources of the specified type should be
+ saved, or null if the resource type is unknown.
+
+ @short Finds a location to save files into for the given type in the user's home directory.
+ */
+ public native String saveLocation(String type, String suffix, boolean create);
+ public native String saveLocation(String type, String suffix);
+ public native String saveLocation(String type);
+ /**
+ Converts an absolute path to a path relative to a certain
+ resource.
+ If "abs = .locate(resource, rel)"
+ then "rel = relativeLocation(resource, abs)" and vice versa.
+ @param type The type of resource.
+ @param absPath An absolute path to make relative.
+ @return A relative path relative to resource <code>type</code> that
+ will find <code>absPath.</code> If no such relative path exists, absPath
+ will be returned unchanged.
+
+ @short Converts an absolute path to a path relative to a certain resource.
+ */
+ public native String relativeLocation(String type, String absPath);
+ /**
+ @short
+ */
+ public native String kfsstnd_prefixes();
+ /**
+ @short
+ */
+ public native String kfsstnd_xdg_conf_prefixes();
+ /**
+ @short
+ */
+ public native String kfsstnd_xdg_data_prefixes();
+ /**
+ Returns the toplevel directory in which KStandardDirs
+ will store things. Most likely $HOME/.kde
+ Don't use this function if you can use locateLocal
+ @return the toplevel directory
+
+ @short Returns the toplevel directory in which KStandardDirs will store things.
+ */
+ public native String localkdedir();
+ /**
+ @return $XDG_DATA_HOME
+ See also http://www.freedesktop.org/standards/basedir/draft/basedir-spec/basedir-spec.html
+
+ @short
+ */
+ public native String localxdgdatadir();
+ /**
+ @return $XDG_CONFIG_HOME
+ See also http://www.freedesktop.org/standards/basedir/draft/basedir-spec/basedir-spec.html
+
+ @short
+ */
+ public native String localxdgconfdir();
+ /**
+ Returns an ArrayList list of pathnames in the system path.
+ @param pstr The path which will be searched. If this is
+ null (default), the $PATH environment variable will
+ be searched.
+ @return an ArrayList list of pathnames in the system path.
+
+ @short Returns an ArrayList list of pathnames in the system path.
+ */
+ public static native ArrayList systemPaths(String pstr);
+ public static native ArrayList systemPaths();
+ /**
+ Finds the executable in the system path.
+ A valid executable must
+ be a file and have its executable bit set.
+ @param appname The name of the executable file for which to search.
+ @param pathstr The path which will be searched. If this is
+ null (default), the $PATH environment variable will
+ be searched.
+ @param ignoreExecBit If true, an existing file will be returned
+ even if its executable bit is not set.
+ @return The path of the executable. If it was not found,
+ it will return null.
+
+ @short Finds the executable in the system path.
+ @see #findAllExe
+ */
+ public static native String findExe(String appname, String pathstr, boolean ignoreExecBit);
+ public static native String findExe(String appname, String pathstr);
+ public static native String findExe(String appname);
+ /**
+ Finds all occurrences of an executable in the system path.
+ @param list Will be filled with the pathnames of all the
+ executables found. Will be empty if the executable
+ was not found.
+ @param appname The name of the executable for which to
+ search.
+ @param pathstr The path list which will be searched. If this
+ is 0 (default), the $PATH environment variable will
+ be searched.
+ @param ignoreExecBit If true, an existing file will be returned
+ even if its executable bit is not set.
+ @return The number of executables found, 0 if none were found.
+
+ @short Finds all occurrences of an executable in the system path.
+ @see #findExe
+ */
+ public static native int findAllExe(String[] list, String appname, String pathstr, boolean ignoreExecBit);
+ public static native int findAllExe(String[] list, String appname, String pathstr);
+ public static native int findAllExe(String[] list, String appname);
+ /**
+ Recursively creates still-missing directories in the given path.
+ The resulting permissions will depend on the current umask setting.
+ permission = mode & ~umask.
+ @param dir Absolute path of the directory to be made.
+ @param mode Directory permissions.
+ @return true if successful, false otherwise
+
+ @short Recursively creates still-missing directories in the given path.
+ */
+ public static native boolean makeDir(String dir, int mode);
+ public static native boolean makeDir(String dir);
+ /**
+ This returns a default relative path for the standard KDE
+ resource types. Below is a list of them so you get an idea
+ of what this is all about.
+
+ <li>
+ data - share/apps
+ </li>
+
+ <li>
+ html - share/doc/HTML
+ </li>
+
+ <li>
+ icon - share/icon
+ </li>
+
+ <li>
+ config - share/config
+ </li>
+
+ <li>
+ pixmap - share/pixmaps
+ </li>
+
+ <li>
+ apps - share/applnk
+ </li>
+
+ <li>
+ sound - share/sounds
+ </li>
+
+ <li>
+ locale - share/locale
+ </li>
+
+ <li>
+ services - share/services
+ </li>
+
+ <li>
+ servicetypes - share/servicetypes
+ </li>
+
+ <li>
+ mime - share/mimelnk
+ </li>
+
+ <li>
+ wallpaper - share/wallpapers
+ </li>
+
+ <li>
+ templates - share/templates
+ </li>
+
+ <li>
+ exe - bin
+ </li>
+
+ <li>
+ lib - lib
+ </li>
+ @return Static default for the specified resource. You
+ should probably be using locate() or locateLocal()
+ instead.
+
+ @short This returns a default relative path for the standard KDE resource types.
+ @see #locate
+ @see #locateLocal
+ */
+ public static native String kde_default(String type);
+ /**
+ Returns the default toplevel directory where KDE is installed.
+ @short
+ */
+ public static native String kfsstnd_defaultprefix();
+ /**
+ Returns the default bin directory in which KDE executables are stored.
+ @short
+ */
+ public static native String kfsstnd_defaultbindir();
+ /**
+ Checks for existence and accessability of a file or directory.
+ Faster than creating a QFileInfo first.
+ @param fullPath the path to check. IMPORTANT: must end with a slash if expected to be a directory
+ (and no slash for a file, obviously).
+ @return true if the directory exists
+
+ @short Checks for existence and accessability of a file or directory.
+ */
+ public static native boolean exists(String fullPath);
+ /**
+ Expands all symbolic links and resolves references to
+ '/./', '/../' and extra '/' characters in <code>dirname</code>
+ and returns the canonicalized absolute pathname.
+ The resulting path will have no symbolic link, '/./'
+ or '/../' components.
+ @short Expands all symbolic links and resolves references to '/.
+ */
+ public static native String realPath(String dirname);
+ /**
+ Expands all symbolic links and resolves references to
+ '/./', '/../' and extra '/' characters in <code>filename</code>
+ and returns the canonicalized absolute pathname.
+ The resulting path will have no symbolic link, '/./'
+ or '/../' components.
+ @short Expands all symbolic links and resolves references to '/.
+ */
+ public static native String realFilePath(String filename);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KStaticDeleterBase.java b/kdejava/koala/org/kde/koala/KStaticDeleterBase.java
new file mode 100644
index 00000000..161e44da
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KStaticDeleterBase.java
@@ -0,0 +1,42 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Static deleters are used to manage static resources. They can register
+ themselves with KGlobal. KGlobal will call destructObject() when
+ KGlobal.deleteStaticDeleters() is called or when it the process
+ finishes.
+ @short Static deleters are used to manage static resources.
+ @see KStaticDeleter
+ @see KGlobal#registerStaticDeleter
+ @see KGlobal#unregisterStaticDeleter
+ @see KGlobal#deleteStaticDeleters
+
+*/
+public class KStaticDeleterBase implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KStaticDeleterBase(Class dummy){}
+
+ /**
+ Should destruct the resources managed by this KStaticDeleterBase.
+ Usually you also want to call it in your destructor.
+ @short Should destruct the resources managed by this KStaticDeleterBase.
+ @see KGlobal#deleteStaticDeleters
+ */
+ public native void destructObject();
+ public KStaticDeleterBase() {
+ newKStaticDeleterBase();
+ }
+ private native void newKStaticDeleterBase();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KStatusBar.java b/kdejava/koala/org/kde/koala/KStatusBar.java
new file mode 100644
index 00000000..a25ac0fb
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KStatusBar.java
@@ -0,0 +1,126 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QStatusBar;
+
+/**
+
+ Display status messages.
+ You can insert text labels or custom widgets. Their geometry is managed
+ internally. KStatusBar resizes itself, but positioning is left to
+ KMainWindow (or to you, if you don't use KMainWindow ).
+ A special type of item is a message which is a temporary text-message
+ displayed on top of other items in full-width. Messages are visible for
+ specified time, or until you call the slot QStatusBar.clear(). See
+ QStatusBar.message for details.
+ It is useful to connect the KActionCollection signals to the
+ QStatusBar.message slots.
+ KStatusBar inherits QStatusBar, you can freely use all QStatusBar
+ methods.
+ Empty text items are not visible. They will become visible when you change
+ (add) text.
+ See {@link KStatusBarSignals} for signals emitted by KStatusBar
+ @author Mark Donohoe (donohoe@kde.org) Maintained by Sven Radej <radej@kde.org>
+
+ @short %KDE statusbar widget.
+ @see KActionCollection
+
+*/
+public class KStatusBar extends QStatusBar {
+ protected KStatusBar(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a status bar. <code>parent</code> is usually KMainWindow.
+ @short Constructs a status bar.
+ */
+ public KStatusBar(QWidget parent, String name) {
+ super((Class) null);
+ newKStatusBar(parent,name);
+ }
+ private native void newKStatusBar(QWidget parent, String name);
+ public KStatusBar(QWidget parent) {
+ super((Class) null);
+ newKStatusBar(parent);
+ }
+ private native void newKStatusBar(QWidget parent);
+ public KStatusBar() {
+ super((Class) null);
+ newKStatusBar();
+ }
+ private native void newKStatusBar();
+ /**
+ Inserts a text label into the status bar.
+ Parameters <code>stretch</code> and <code>permanent</code> are passed to
+ QStatusBar.addWidget .
+ If <code>permanent</code> is true, then item will be placed on the far right of
+ the statusbar and will never be hidden by QStatusBar.message.
+ @param text The label's text string.
+ @param id id of item
+ @param stretch stretch passed to QStatusBar.addWidget
+ @param permanent is item permanent or not (passed to QStatusBar.addWidget )
+ @short Inserts a text label into the status bar.
+ @see org.kde.qt.QStatusbar#addWidget
+ */
+ public native void insertItem(String text, int id, int stretch, boolean permanent);
+ public native void insertItem(String text, int id, int stretch);
+ public native void insertItem(String text, int id);
+ /**
+ Inserts a fixed width text label into status bar. The width will be set
+ according to <code>text</code>, but will remain fixed even if you change text.
+ You can change fixed width by calling setItemFixed.
+ @param text The label's text string
+ @param id id of item
+ @param permanent permanent flag passed to QStatusBar.addWidget
+ @short Inserts a fixed width text label into status bar.
+ */
+ public native void insertFixedItem(String text, int id, boolean permanent);
+ public native void insertFixedItem(String text, int id);
+ /**
+ Removes an item.
+ @param id The item to remove.
+ @short Removes an item.
+ */
+ public native void removeItem(int id);
+ /**
+ Returns true if an item with <code>id</code> exists already in KStatusBar,
+ otherwise returns false.
+ @param id id of the item
+ @short
+ */
+ public native boolean hasItem(int id);
+ /**
+ Changes the text in a status bar field.
+ The item will be resized to fit the text. If you change text to be empty,
+ item will not be visible (untill you add some text).
+ @param text The label's text string
+ @param id The id of item.
+ @short Changes the text in a status bar field.
+ */
+ public native void changeItem(String text, int id);
+ /**
+ Sets the alignment of item <code>id.</code> By default all fields are aligned
+ <code>AlignHCenter</code> | <code>AlignVCenter.</code> See QLabel.setAlignment for details.
+ @short Sets the alignment of item <code>id.</code>
+ */
+ public native void setItemAlignment(int id, int align);
+ /**
+ Sets item <code>id</code> to have fixed width. This cannot be undone, but you can
+ always set new fixed width.
+ @param id id of item
+ @param width fixed width in pixels. Default -1 is to adapt to text width.
+ @short Sets item <code>id</code> to have fixed width.
+ */
+ public native void setItemFixed(int id, int width);
+ public native void setItemFixed(int id);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KStatusBarLabel.java b/kdejava/koala/org/kde/koala/KStatusBarLabel.java
new file mode 100644
index 00000000..3e8e63a9
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KStatusBarLabel.java
@@ -0,0 +1,44 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QLabel;
+
+/**
+
+ Internal label class for use in KStatusBar
+ See {@link KStatusBarLabelSignals} for signals emitted by KStatusBarLabel
+ @short Internal label class for use in KStatusBar
+
+*/
+public class KStatusBarLabel extends QLabel {
+ protected KStatusBarLabel(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KStatusBarLabel(String text, int _id, KStatusBar parent, String name) {
+ super((Class) null);
+ newKStatusBarLabel(text,_id,parent,name);
+ }
+ private native void newKStatusBarLabel(String text, int _id, KStatusBar parent, String name);
+ public KStatusBarLabel(String text, int _id, KStatusBar parent) {
+ super((Class) null);
+ newKStatusBarLabel(text,_id,parent);
+ }
+ private native void newKStatusBarLabel(String text, int _id, KStatusBar parent);
+ public KStatusBarLabel(String text, int _id) {
+ super((Class) null);
+ newKStatusBarLabel(text,_id);
+ }
+ private native void newKStatusBarLabel(String text, int _id);
+ protected native void mousePressEvent(QMouseEvent _event);
+ protected native void mouseReleaseEvent(QMouseEvent _event);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KStatusBarLabelSignals.java b/kdejava/koala/org/kde/koala/KStatusBarLabelSignals.java
new file mode 100644
index 00000000..b86b58ad
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KStatusBarLabelSignals.java
@@ -0,0 +1,11 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QMouseEvent;
+
+public interface KStatusBarLabelSignals {
+ void itemPressed(int id);
+ void itemReleased(int id);
+}
diff --git a/kdejava/koala/org/kde/koala/KStatusBarSignals.java b/kdejava/koala/org/kde/koala/KStatusBarSignals.java
new file mode 100644
index 00000000..701e7604
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KStatusBarSignals.java
@@ -0,0 +1,21 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KStatusBarSignals {
+ /**
+ Emitted when mouse is pressed over item <code>id.</code>
+ Connect to this signal if you want to respond to mouse press events.
+ @short Emitted when mouse is pressed over item <code>id.</code>
+ */
+ void pressed(int arg1);
+ /**
+ Emitted when mouse is released over item <code>id.</code>
+ Connect to this signal if you want to respond to mouse release events (clicks).
+ @short Emitted when mouse is released over item <code>id.</code>
+ */
+ void released(int arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KStdAccel.java b/kdejava/koala/org/kde/koala/KStdAccel.java
new file mode 100644
index 00000000..9a0a0ef6
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KStdAccel.java
@@ -0,0 +1,484 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ \namespace KStdAccel
+ Convenient methods for access to the common accelerator keys in
+ the key configuration. These are the standard keybindings that should
+ be used in all KDE applications. They will be configurable,
+ so do not hardcode the default behavior.
+ If you want real configurable keybindings in your applications,
+ please checkout the class KAccel in kaccel.h
+ @short \namespace KStdAccel Convenient methods for access to the common accelerator keys in the key configuration.
+ @see KAccelShortcutList
+
+*/
+public class KStdAccel {
+ /**
+ Defines the identifier of all standard accelerators.
+ @short Defines the identifier of all standard accelerators.
+ */
+ public static final int AccelNone = 0;
+ public static final int Open = 1;
+ public static final int New = 2;
+ public static final int Close = 3;
+ public static final int Save = 4;
+ public static final int Print = 5;
+ public static final int Quit = 6;
+ public static final int Undo = 7;
+ public static final int Redo = 8;
+ public static final int Cut = 9;
+ public static final int Copy = 10;
+ public static final int Paste = 11;
+ public static final int SelectAll = 12;
+ public static final int Deselect = 13;
+ public static final int DeleteWordBack = 14;
+ public static final int DeleteWordForward = 15;
+ public static final int Find = 16;
+ public static final int FindNext = 17;
+ public static final int FindPrev = 18;
+ public static final int Replace = 19;
+ public static final int Home = 20;
+ public static final int End = 21;
+ public static final int Prior = 22;
+ public static final int Next = 23;
+ public static final int GotoLine = 24;
+ public static final int AddBookmark = 25;
+ public static final int ZoomIn = 26;
+ public static final int ZoomOut = 27;
+ public static final int Up = 28;
+ public static final int Back = 29;
+ public static final int Forward = 30;
+ public static final int Reload = 31;
+ public static final int PopupMenuContext = 32;
+ public static final int ShowMenubar = 33;
+ public static final int Help = 34;
+ public static final int WhatsThis = 35;
+ public static final int TextCompletion = 36;
+ public static final int PrevCompletion = 37;
+ public static final int NextCompletion = 38;
+ public static final int SubstringCompletion = 39;
+ public static final int RotateUp = 40;
+ public static final int RotateDown = 41;
+ public static final int TabNext = 42;
+ public static final int TabPrev = 43;
+ public static final int FullScreen = 44;
+ public static final int BackwardWord = 45;
+ public static final int ForwardWord = 46;
+ public static final int BeginningOfLine = 47;
+ public static final int EndOfLine = 48;
+ public static final int PasteSelection = 49;
+ public static final int WhatThis = WhatsThis;
+
+ /**
+ Returns the keybinding for <code>accel.</code>
+ @param id the id of the accelerator
+ @short Returns the keybinding for <code>accel.</code>
+ */
+ public static native KShortcut shortcut(int id);
+ /**
+ Returns a unique name for the given accel.
+ @param id the id of the accelerator
+ @return the unique name of the accelerator
+
+ @short Returns a unique name for the given accel.
+ */
+ public static native String name(int id);
+ /**
+ Returns a localized label for user-visible display.
+ @param id the id of the accelerator
+ @return a localized label for the accelerator
+
+ @short Returns a localized label for user-visible display.
+ */
+ public static native String label(int id);
+ /**
+ Returns an extended WhatsThis description for the given accelerator.
+ @param id the id of the accelerator
+ @return a localized description of the accelerator
+
+ @short Returns an extended WhatsThis description for the given accelerator.
+ */
+ public static native String whatsThis(int id);
+ /**
+ Return the StdAccel id of the standard accel action which
+ uses this key sequence, or AccelNone if none of them do.
+ This is used by class KKeyChooser.
+ @param keySeq the key sequence to search
+ @return the id of the standard accelerator, or AccelNone if there
+ is none
+
+ @short Return the StdAccel id of the standard accel action which uses this key sequence, or AccelNone if none of them do.
+ */
+ public static native int findStdAccel(KKeySequence keySeq);
+ /**
+ Returns the hardcoded default shortcut for <code>id.</code>
+ This does not take into account the user's configuration.
+ @param id the id of the accelerator
+ @return the default shortcut of the accelerator
+
+ @short Returns the hardcoded default shortcut for <code>id.</code>
+ */
+ public static native KShortcut shortcutDefault(int id);
+ /**
+ Returns the hardcoded default 3 modifier shortcut for <code>id.</code>
+ This does not take into account the user's configuration.
+ @param id the id of the accelerator
+ @return the default 3 modifier shortcut
+
+ @short Returns the hardcoded default 3 modifier shortcut for <code>id.</code>
+ */
+ public static native KShortcut shortcutDefault3(int id);
+ /**
+ Returns the hardcoded default 4 modifier shortcut for <code>id.</code>
+ This does not take into account the user's configuration.
+ @param id the id of the accelerator
+ @return the default 4 modifier shortcut
+
+ @short Returns the hardcoded default 4 modifier shortcut for <code>id.</code>
+ */
+ public static native KShortcut shortcutDefault4(int id);
+ /**
+ Open file. Default: Ctrl-o
+ @return the shortcut of the standard accelerator
+
+ @short Open file.
+ */
+ public static native KShortcut open();
+ /**
+ Create a new document (or whatever). Default: Ctrl-n
+ @return the shortcut of the standard accelerator
+
+ @short Create a new document (or whatever).
+ */
+ public static native KShortcut openNew();
+ /**
+ Close current document. Default: Ctrl-w
+ @return the shortcut of the standard accelerator
+
+ @short Close current document.
+ */
+ public static native KShortcut close();
+ /**
+ Save current document. Default: Ctrl-s
+ @return the shortcut of the standard accelerator
+
+ @short Save current document.
+ */
+ public static native KShortcut save();
+ /**
+ Print current document. Default: Ctrl-p
+ @return the shortcut of the standard accelerator
+
+ @short Print current document.
+ */
+ public static native KShortcut print();
+ /**
+ Quit the program. Default: Ctrl-q
+ @return the shortcut of the standard accelerator
+
+ @short Quit the program.
+ */
+ public static native KShortcut quit();
+ /**
+ Undo last operation. Default: Ctrl-z
+ @return the shortcut of the standard accelerator
+
+ @short Undo last operation.
+ */
+ public static native KShortcut undo();
+ /**
+ Redo. Default: Shift-Ctrl-z
+ @return the shortcut of the standard accelerator
+
+ @short Redo.
+ */
+ public static native KShortcut redo();
+ /**
+ Cut selected area and store it in the clipboard. Default: Ctrl-x
+ @return the shortcut of the standard accelerator
+
+ @short Cut selected area and store it in the clipboard.
+ */
+ public static native KShortcut cut();
+ /**
+ Copy selected area into the clipboard. Default: Ctrl-c
+ @return the shortcut of the standard accelerator
+
+ @short Copy selected area into the clipboard.
+ */
+ public static native KShortcut copy();
+ /**
+ Paste contents of clipboard at mouse/cursor position. Default: Ctrl-v
+ @return the shortcut of the standard accelerator
+
+ @short Paste contents of clipboard at mouse/cursor position.
+ */
+ public static native KShortcut paste();
+ /**
+ Paste the selection at mouse/cursor position. Default: Ctrl-Shift-Insert
+ @return the shortcut of the standard accelerator
+
+ @short Paste the selection at mouse/cursor position.
+ */
+ public static native KShortcut pasteSelection();
+ /**
+ Reload. Default: Ctrl-A
+ @return the shortcut of the standard accelerator
+
+ @short Reload.
+ */
+ public static native KShortcut selectAll();
+ /**
+ Delete a word back from mouse/cursor position. Default: Ctrl-Backspace
+ @return the shortcut of the standard accelerator
+
+ @short Delete a word back from mouse/cursor position.
+ */
+ public static native KShortcut deleteWordBack();
+ /**
+ Delete a word forward from mouse/cursor position. Default: Ctrl-Delete
+ @return the shortcut of the standard accelerator
+
+ @short Delete a word forward from mouse/cursor position.
+ */
+ public static native KShortcut deleteWordForward();
+ /**
+ Find, search. Default: Ctrl-f
+ @return the shortcut of the standard accelerator
+
+ @short Find, search.
+ */
+ public static native KShortcut find();
+ /**
+ Find/search next. Default: F3
+ @return the shortcut of the standard accelerator
+
+ @short Find/search next.
+ */
+ public static native KShortcut findNext();
+ /**
+ Find/search previous. Default: Shift-F3
+ @return the shortcut of the standard accelerator
+
+ @short Find/search previous.
+ */
+ public static native KShortcut findPrev();
+ /**
+ Find and replace matches. Default: Ctrl-r
+ @return the shortcut of the standard accelerator
+
+ @short Find and replace matches.
+ */
+ public static native KShortcut replace();
+ /**
+ Zoom in. Default: Ctrl-Plus
+ @return the shortcut of the standard accelerator
+
+ @short Zoom in.
+ */
+ public static native KShortcut zoomIn();
+ /**
+ Zoom out. Default: Ctrl-Minus
+ @return the shortcut of the standard accelerator
+
+ @short Zoom out.
+ */
+ public static native KShortcut zoomOut();
+ /**
+ Goto beginning of the document. Default: Ctrl-Home
+ @return the shortcut of the standard accelerator
+
+ @short Goto beginning of the document.
+ */
+ public static native KShortcut home();
+ /**
+ Goto end of the document. Default: Ctrl-End
+ @return the shortcut of the standard accelerator
+
+ @short Goto end of the document.
+ */
+ public static native KShortcut end();
+ /**
+ Goto beginning of current line. Default: Home
+ @return the shortcut of the standard accelerator
+
+ @short Goto beginning of current line.
+ */
+ public static native KShortcut beginningOfLine();
+ /**
+ Goto end of current line. Default: End
+ @return the shortcut of the standard accelerator
+
+ @short Goto end of current line.
+ */
+ public static native KShortcut endOfLine();
+ /**
+ Scroll up one page. Default: Prior
+ @return the shortcut of the standard accelerator
+
+ @short Scroll up one page.
+ */
+ public static native KShortcut prior();
+ /**
+ Scroll down one page. Default: Next
+ @return the shortcut of the standard accelerator
+
+ @short Scroll down one page.
+ */
+ public static native KShortcut next();
+ /**
+ Go to line. Default: Ctrl+G
+ @return the shortcut of the standard accelerator
+
+ @short Go to line.
+ */
+ public static native KShortcut gotoLine();
+ /**
+ Add current page to bookmarks. Default: Ctrl+B
+ @return the shortcut of the standard accelerator
+
+ @short Add current page to bookmarks.
+ */
+ public static native KShortcut addBookmark();
+ /**
+ Next Tab. Default: Ctrl-<
+ @return the shortcut of the standard accelerator
+
+ @short Next Tab.
+ */
+ public static native KShortcut tabNext();
+ /**
+ Previous Tab. Default: Ctrl.
+ @return the shortcut of the standard accelerator
+
+ @short Previous Tab.
+ */
+ public static native KShortcut tabPrev();
+ /**
+ Full Screen Mode. Default: Ctrl+Shift+F
+ @return the shortcut of the standard accelerator
+
+ @short Full Screen Mode.
+ */
+ public static native KShortcut fullScreen();
+ /**
+ Help the user in the current situation. Default: F1
+ @return the shortcut of the standard accelerator
+
+ @short Help the user in the current situation.
+ */
+ public static native KShortcut help();
+ /**
+ Complete text in input widgets. Default Ctrl+E
+ @return the shortcut of the standard accelerator
+
+ @short Complete text in input widgets.
+ */
+ public static native KShortcut completion();
+ /**
+ Iterate through a list when completion returns
+ multiple items. Default: Ctrl+Up
+ @return the shortcut of the standard accelerator
+
+ @short Iterate through a list when completion returns multiple items.
+ */
+ public static native KShortcut prevCompletion();
+ /**
+ Iterate through a list when completion returns
+ multiple items. Default: Ctrl+Down
+ @return the shortcut of the standard accelerator
+
+ @short Iterate through a list when completion returns multiple items.
+ */
+ public static native KShortcut nextCompletion();
+ /**
+ Find a string within another string or list of strings.
+ Default: Ctrl-T
+ @return the shortcut of the standard accelerator
+
+ @short Find a string within another string or list of strings.
+ */
+ public static native KShortcut substringCompletion();
+ /**
+ Help users iterate through a list of entries. Default: Up
+ @return the shortcut of the standard accelerator
+
+ @short Help users iterate through a list of entries.
+ */
+ public static native KShortcut rotateUp();
+ /**
+ Help users iterate through a list of entries. Default: Down
+ @return the shortcut of the standard accelerator
+
+ @short Help users iterate through a list of entries.
+ */
+ public static native KShortcut rotateDown();
+ /**
+ popup a context menu. Default: Menu
+ @return the shortcut of the standard accelerator
+
+ @short popup a context menu.
+ */
+ public static native KShortcut popupMenuContext();
+ /**
+ What's This button. Default: Shift+F1
+ @return the shortcut of the standard accelerator
+
+ @short What's This button.
+ */
+ public static native KShortcut whatsThis();
+ /**
+ Reload. Default: F5
+ @return the shortcut of the standard accelerator
+
+ @short Reload.
+ */
+ public static native KShortcut reload();
+ /**
+ Up. Default: Alt+Up
+ @return the shortcut of the standard accelerator
+
+ @short Up.
+ */
+ public static native KShortcut up();
+ /**
+ Back. Default: Alt+Left
+ @return the shortcut of the standard accelerator
+
+ @short Back.
+ */
+ public static native KShortcut back();
+ /**
+ Forward. Default: ALT+Right
+ @return the shortcut of the standard accelerator
+
+ @short Forward.
+ */
+ public static native KShortcut forward();
+ /**
+ BackwardWord. Default: Ctrl+Left
+ @return the shortcut of the standard accelerator
+
+ @short BackwardWord.
+ */
+ public static native KShortcut backwardWord();
+ /**
+ ForwardWord. Default: Ctrl+Right
+ @return the shortcut of the standard accelerator
+
+ @short ForwardWord.
+ */
+ public static native KShortcut forwardWord();
+ /**
+ Show Menu Bar. Default: Ctrl-M
+ @return the shortcut of the standard accelerator
+
+ @short Show Menu Bar.
+ */
+ public static native KShortcut showMenubar();
+}
diff --git a/kdejava/koala/org/kde/koala/KStdAction.java b/kdejava/koala/org/kde/koala/KStdAction.java
new file mode 100644
index 00000000..f5eccead
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KStdAction.java
@@ -0,0 +1,544 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+
+/**
+
+ Convenience methods to access all standard KDE actions.
+ These actions should be used instead of hardcoding menubar and
+ toolbar items. Using these actions helps your application easily
+ conform to the KDE UI Style Guide
+ All of the documentation for KAction holds for KStdAction
+ also. When in doubt on how things work, check the KAction
+ documention first.
+ <li><b>Simple Example:</b></li>
+ In general, using standard actions should be a drop in replacement
+ for regular actions. For example, if you previously had:
+ <pre>
+ KAction newAct = new KAction(i18n("&New"), QIconSet(BarIcon("filenew")),
+ KStdAccel.shortcut(KStdAccel.New), this,
+ SLOT("fileNew()"), actionCollection());
+ </pre>
+ You could drop that and replace it with:
+ <pre>
+ KAction newAct = KStdAction.openNew(this, SLOT("fileNew()"),
+ actionCollection());
+ </pre>
+ <li><b>Non-standard Usages</b></li>
+ It is possible to use the standard actions in various
+ non-recommended ways. Say, for instance, you wanted to have a
+ standard action (with the associated correct text and icon and
+ accelerator, etc) but you didn't want it to go in the standard
+ place (this is not recommended, by the way). One way to do this is
+ to simply not use the XML UI framework and plug it into wherever
+ you want. If you do want to use the XML UI framework (good!), then
+ it is still possible.
+ Basically, the XML building code matches names in the XML code with
+ the internal names of the actions. You can find out the internal
+ names of each of the standard actions by using the stdName
+ action like so: KStdAction.stdName(KStdAction.Cut) would return
+ 'edit_cut'. The XML building code will match 'edit_cut' to the
+ attribute in the global XML file and place your action there.
+ However, you can change the internal name. In this example, just
+ do something like:
+ <pre>
+ KStdAction.cut(this, SLOT("editCut()"), actionCollection(), "my_cut");
+ </pre>
+ Now, in your local XML resource file (e.g., yourappui.rc), simply
+ put 'my_cut' where you want it to go.
+ Another non-standard usage concerns getting a pointer to an
+ existing action if, say, you want to enable or disable the action.
+ You could do it the recommended way and just grab a pointer when
+ you instantiate it as in the the 'openNew' example above... or you
+ could do it the hard way:
+ <pre>
+ KAction cut = actionCollection().action(KStdAction.stdName(KStdAction.Cut));
+ </pre>
+ Another non-standard usage concerns instantiating the action in the
+ first place. Usually, you would use the member functions as
+ shown above (e.g., KStdAction.cut(this, SLOT, parent)). You
+ may, however, do this using the enums provided. This author can't
+ think of a reason why you would want to, but, hey, if you do,
+ here's how:
+ <pre>
+ KStdAction.action(KStdAction.New, this, SLOT("fileNew()"), actionCollection());
+ KStdAction.action(KStdAction.Cut, this, SLOT("editCut()"), actionCollection());
+ </pre>
+ @author Kurt Granroth <granroth@kde.org>
+
+ @short Convenience methods to access all standard KDE actions.
+ @see #http://developer#kde#org/documentation/standards/kde/style/basics/index#html
+
+*/
+public class KStdAction {
+ /**
+ The standard menubar and toolbar actions.
+ @short The standard menubar and toolbar actions.
+ */
+ public static final int ActionNone = 0;
+ public static final int New = 1;
+ public static final int Open = 2;
+ public static final int OpenRecent = 3;
+ public static final int Save = 4;
+ public static final int SaveAs = 5;
+ public static final int Revert = 6;
+ public static final int Close = 7;
+ public static final int Print = 8;
+ public static final int PrintPreview = 9;
+ public static final int Mail = 10;
+ public static final int Quit = 11;
+ public static final int Undo = 12;
+ public static final int Redo = 13;
+ public static final int Cut = 14;
+ public static final int Copy = 15;
+ public static final int Paste = 16;
+ public static final int SelectAll = 17;
+ public static final int Deselect = 18;
+ public static final int Find = 19;
+ public static final int FindNext = 20;
+ public static final int FindPrev = 21;
+ public static final int Replace = 22;
+ public static final int ActualSize = 23;
+ public static final int FitToPage = 24;
+ public static final int FitToWidth = 25;
+ public static final int FitToHeight = 26;
+ public static final int ZoomIn = 27;
+ public static final int ZoomOut = 28;
+ public static final int Zoom = 29;
+ public static final int Redisplay = 30;
+ public static final int Up = 31;
+ public static final int Back = 32;
+ public static final int Forward = 33;
+ public static final int Home = 34;
+ public static final int Prior = 35;
+ public static final int Next = 36;
+ public static final int Goto = 37;
+ public static final int GotoPage = 38;
+ public static final int GotoLine = 39;
+ public static final int FirstPage = 40;
+ public static final int LastPage = 41;
+ public static final int AddBookmark = 42;
+ public static final int EditBookmarks = 43;
+ public static final int Spelling = 44;
+ public static final int ShowMenubar = 45;
+ public static final int ShowToolbar = 46;
+ public static final int ShowStatusbar = 47;
+ public static final int SaveOptions = 48;
+ public static final int KeyBindings = 49;
+ public static final int Preferences = 50;
+ public static final int ConfigureToolbars = 51;
+ public static final int Help = 52;
+ public static final int HelpContents = 53;
+ public static final int WhatsThis = 54;
+ public static final int ReportBug = 55;
+ public static final int AboutApp = 56;
+ public static final int AboutKDE = 57;
+ public static final int TipofDay = 58;
+ public static final int ConfigureNotifications = 59;
+ public static final int FullScreen = 60;
+ public static final int Clear = 61;
+ public static final int PasteText = 62;
+
+ /**
+ Creates an action corresponding to the
+ KStdAction.StdAction enum.
+ @short Creates an action corresponding to the KStdAction.StdAction enum.
+ */
+ public static native KAction create(int id, String name, QObject recvr, String slot, KActionCollection parent);
+ public static native KAction create(int id, QObject recvr, String slot, KActionCollection parent);
+ /**
+ This will return the internal name of a given standard action.
+ @short This will return the internal name of a given standard action.
+ */
+ public static native String name(int id);
+ public static native String stdName(int act_enum);
+ /**
+ Returns a list of all standard names. Used by KAccelManager
+ to give those heigher weight.
+ @short Returns a list of all standard names.
+ */
+ public static native ArrayList stdNames();
+ /**
+ Create a new document or window.
+ @short Create a new document or window.
+ */
+ public static native KAction openNew(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction openNew(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Open an existing file.
+ @short Open an existing file.
+ */
+ public static native KAction open(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction open(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Open a recently used document. The signature of the slot being called
+ is of the form slotURLSelected( KURL ).
+ @param recvr object to receive slot
+ @param slot The SLOT to invoke when a URL is selected. The slot's
+ signature is slotURLSelected( KURL ).
+ @param parent parent widget
+ @param name name of widget
+ @short Open a recently used document.
+ */
+ public static native KRecentFilesAction openRecent(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KRecentFilesAction openRecent(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Save the current document.
+ @short Save the current document.
+ */
+ public static native KAction save(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction save(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Save the current document under a different name.
+ @short Save the current document under a different name.
+ */
+ public static native KAction saveAs(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction saveAs(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Revert the current document to the last saved version
+ (essentially will undo all changes).
+ @short Revert the current document to the last saved version (essentially will undo all changes).
+ */
+ public static native KAction revert(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction revert(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Close the current document.
+ @short Close the current document.
+ */
+ public static native KAction close(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction close(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Print the current document.
+ @short Print the current document.
+ */
+ public static native KAction print(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction print(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Show a print preview of the current document.
+ @short Show a print preview of the current document.
+ */
+ public static native KAction printPreview(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction printPreview(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Mail this document.
+ @short Mail this document.
+ */
+ public static native KAction mail(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction mail(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Quit the program.
+ @short Quit the program.
+ */
+ public static native KAction quit(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction quit(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Undo the last operation.
+ @short Undo the last operation.
+ */
+ public static native KAction undo(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction undo(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Redo the last operation.
+ @short Redo the last operation.
+ */
+ public static native KAction redo(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction redo(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Cut selected area and store it in the clipboard.
+ @short Cut selected area and store it in the clipboard.
+ */
+ public static native KAction cut(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction cut(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Copy the selected area into the clipboard.
+ @short Copy the selected area into the clipboard.
+ */
+ public static native KAction copy(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction copy(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Paste the contents of clipboard at the current mouse or cursor
+ position.
+ @short Paste the contents of clipboard at the current mouse or cursor position.
+ */
+ public static native KAction paste(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction paste(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Paste the contents of clipboard at the current mouse or cursor
+ position. Provide a button on the toolbar with the clipboard history
+ menu if Klipper is running.
+ @short Paste the contents of clipboard at the current mouse or cursor position.
+ */
+ public static native KAction pasteText(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction pasteText(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Clear the content of the focus widget
+ @short Clear the content of the focus widget
+ */
+ public static native KAction clear(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction clear(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Select all elements in the current document.
+ @short Select all elements in the current document.
+ */
+ public static native KAction selectAll(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction selectAll(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Deselect any selected elements in the current document.
+ @short Deselect any selected elements in the current document.
+ */
+ public static native KAction deselect(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction deselect(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Initiate a 'find' request in the current document.
+ @short Initiate a 'find' request in the current document.
+ */
+ public static native KAction find(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction find(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Find the next instance of a stored 'find'.
+ @short Find the next instance of a stored 'find'.
+ */
+ public static native KAction findNext(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction findNext(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Find a previous instance of a stored 'find'.
+ @short Find a previous instance of a stored 'find'.
+ */
+ public static native KAction findPrev(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction findPrev(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Find and replace matches.
+ @short Find and replace matches.
+ */
+ public static native KAction replace(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction replace(QObject recvr, String slot, KActionCollection parent);
+ /**
+ View the document at its actual size.
+ @short View the document at its actual size.
+ */
+ public static native KAction actualSize(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction actualSize(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Fit the document view to the size of the current window.
+ @short Fit the document view to the size of the current window.
+ */
+ public static native KAction fitToPage(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction fitToPage(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Fit the document view to the width of the current window.
+ @short Fit the document view to the width of the current window.
+ */
+ public static native KAction fitToWidth(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction fitToWidth(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Fit the document view to the height of the current window.
+ @short Fit the document view to the height of the current window.
+ */
+ public static native KAction fitToHeight(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction fitToHeight(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Zoom in.
+ @short Zoom in.
+ */
+ public static native KAction zoomIn(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction zoomIn(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Zoom out.
+ @short Zoom out.
+ */
+ public static native KAction zoomOut(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction zoomOut(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Popup a zoom dialog.
+ @short Popup a zoom dialog.
+ */
+ public static native KAction zoom(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction zoom(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Redisplay or redraw the document.
+ @short Redisplay or redraw the document.
+ */
+ public static native KAction redisplay(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction redisplay(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Move up (web style menu).
+ @short Move up (web style menu).
+ */
+ public static native KAction up(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction up(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Move back (web style menu).
+ @short Move back (web style menu).
+ */
+ public static native KAction back(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction back(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Move forward (web style menu).
+ @short Move forward (web style menu).
+ */
+ public static native KAction forward(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction forward(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Go to the "Home" position or document.
+ @short Go to the "Home" position or document.
+ */
+ public static native KAction home(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction home(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Scroll up one page.
+ @short Scroll up one page.
+ */
+ public static native KAction prior(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction prior(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Scroll down one page.
+ @short Scroll down one page.
+ */
+ public static native KAction next(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction next(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Go to somewhere in general.
+ @short Go to somewhere in general.
+ */
+ public static native KAction goTo(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction goTo(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Go to a specific page (dialog).
+ @short Go to a specific page (dialog).
+ */
+ public static native KAction gotoPage(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction gotoPage(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Go to a specific line (dialog).
+ @short Go to a specific line (dialog).
+ */
+ public static native KAction gotoLine(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction gotoLine(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Jump to the first page.
+ @short Jump to the first page.
+ */
+ public static native KAction firstPage(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction firstPage(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Jump to the last page.
+ @short Jump to the last page.
+ */
+ public static native KAction lastPage(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction lastPage(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Add the current page to the bookmarks tree.
+ @short Add the current page to the bookmarks tree.
+ */
+ public static native KAction addBookmark(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction addBookmark(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Edit the application bookmarks.
+ @short Edit the application bookmarks.
+ */
+ public static native KAction editBookmarks(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction editBookmarks(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Pop up the spell checker.
+ @short Pop up the spell checker.
+ */
+ public static native KAction spelling(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction spelling(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Show/Hide the menubar.
+ @short Show/Hide the menubar.
+ */
+ public static native KToggleAction showMenubar(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KToggleAction showMenubar(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Show/Hide the statusbar.
+ @short Show/Hide the statusbar.
+ */
+ public static native KToggleAction showStatusbar(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KToggleAction showStatusbar(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Switch to/from full screen mode
+ @short Switch to/from full screen mode
+ */
+ public static native KToggleFullScreenAction fullScreen(QObject recvr, String slot, KActionCollection parent, QWidget window, String name);
+ public static native KToggleFullScreenAction fullScreen(QObject recvr, String slot, KActionCollection parent, QWidget window);
+ /**
+ Display the save options dialog.
+ @short Display the save options dialog.
+ */
+ public static native KAction saveOptions(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction saveOptions(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Display the configure key bindings dialog.
+ Note that you might be able to use the pre-built KXMLGUIFactory's fuction:
+ KStdAction.keyBindings(guiFactory(), SLOT("configureShortcuts()"), actionCollection());
+ @short Display the configure key bindings dialog.
+ */
+ public static native KAction keyBindings(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction keyBindings(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Display the preferences/options dialog.
+ @short Display the preferences/options dialog.
+ */
+ public static native KAction preferences(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction preferences(QObject recvr, String slot, KActionCollection parent);
+ /**
+ The Customize Toolbar dialog.
+ @short The Customize Toolbar dialog.
+ */
+ public static native KAction configureToolbars(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction configureToolbars(QObject recvr, String slot, KActionCollection parent);
+ /**
+ The Configure Notifications dialog.
+ @short The Configure Notifications dialog.
+ */
+ public static native KAction configureNotifications(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction configureNotifications(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Display the help.
+ @short Display the help.
+ */
+ public static native KAction help(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction help(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Display the help contents.
+ @short Display the help contents.
+ */
+ public static native KAction helpContents(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction helpContents(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Trigger the What's This cursor.
+ @short Trigger the What's This cursor.
+ */
+ public static native KAction whatsThis(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction whatsThis(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Display "Tip of the Day"
+ @short Display "Tip of the Day"
+ */
+ public static native KAction tipOfDay(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction tipOfDay(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Open up the Report Bug dialog.
+ @short Open up the Report Bug dialog.
+ */
+ public static native KAction reportBug(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction reportBug(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Display the application's About box.
+ @short Display the application's About box.
+ */
+ public static native KAction aboutApp(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction aboutApp(QObject recvr, String slot, KActionCollection parent);
+ /**
+ Display the About KDE dialog.
+ @short Display the About KDE dialog.
+ */
+ public static native KAction aboutKDE(QObject recvr, String slot, KActionCollection parent, String name);
+ public static native KAction aboutKDE(QObject recvr, String slot, KActionCollection parent);
+}
diff --git a/kdejava/koala/org/kde/koala/KStdGuiItem.java b/kdejava/koala/org/kde/koala/KStdGuiItem.java
new file mode 100644
index 00000000..90284461
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KStdGuiItem.java
@@ -0,0 +1,183 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The various static methods returns standardized {@link KGuiItem}'s
+ conforming to the KDE UI Standards. Use them instead of creating
+ your own.
+ @author Holger Freyther <freyther@kde.org>
+
+ @short Provides a set of standardized KGuiItems.
+
+*/
+public class KStdGuiItem implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KStdGuiItem(Class dummy){}
+
+ /**
+ The back and forward items by default use the RTL settings for Hebrew
+ and Arab countries. If you want those actions to ignore the RTL value
+ and force 'Western' behavior instead, use the IgnoreRTL value instead.
+ @short The back and forward items by default use the RTL settings for Hebrew and Arab countries.
+ */
+ public static final int UseRTL = 0;
+ public static final int IgnoreRTL = 1;
+
+ public static final int Ok = 1;
+ public static final int Cancel = 2;
+ public static final int Yes = 3;
+ public static final int No = 4;
+ public static final int Discard = 5;
+ public static final int Save = 6;
+ public static final int DontSave = 7;
+ public static final int SaveAs = 8;
+ public static final int Apply = 9;
+ public static final int Clear = 10;
+ public static final int Help = 11;
+ public static final int Defaults = 12;
+ public static final int Close = 13;
+ public static final int Back = 14;
+ public static final int Forward = 15;
+ public static final int Print = 16;
+ public static final int Continue = 17;
+ public static final int Open = 18;
+ public static final int Quit = 19;
+ public static final int AdminMode = 20;
+ public static final int Reset = 21;
+ public static final int Delete = 22;
+ public static final int Insert = 23;
+ public static final int Configure = 24;
+ public static final int Find = 25;
+ public static final int Stop = 26;
+ public static final int Add = 27;
+ public static final int Remove = 28;
+ public static final int Test = 29;
+ public static final int Properties = 30;
+ public static final int Overwrite = 31;
+
+ public KStdGuiItem() {
+ newKStdGuiItem();
+ }
+ private native void newKStdGuiItem();
+ public static native KGuiItem guiItem(int ui_enum);
+ public static native String stdItem(int ui_enum);
+ public static native KGuiItem ok();
+ public static native KGuiItem cancel();
+ public static native KGuiItem yes();
+ public static native KGuiItem no();
+ public static native KGuiItem insert();
+ public static native KGuiItem discard();
+ public static native KGuiItem save();
+ public static native KGuiItem help();
+ public static native KGuiItem dontSave();
+ public static native KGuiItem saveAs();
+ public static native KGuiItem apply();
+ public static native KGuiItem clear();
+ public static native KGuiItem defaults();
+ public static native KGuiItem close();
+ public static native KGuiItem print();
+ /**
+ @short
+ */
+ public static native KGuiItem properties();
+ public static native KGuiItem reset();
+ /**
+ @short
+ */
+ public static native KGuiItem overwrite();
+ /**
+ Returns a KGuiItem suiting for cases where code or functionality
+ runs under root privileges. Used in conjunction with KConfig Modules.
+ @short Returns a KGuiItem suiting for cases where code or functionality runs under root privileges.
+ */
+ public static native KGuiItem adminMode();
+ /**
+ Returns a "continue" item. The short name is due to "continue" being a
+ reserved word in the C++ language.
+ @short Returns a "continue" item.
+ */
+ public static native KGuiItem cont();
+ /**
+ Returns a "delete" item. The short name is due to "delete" being a
+ reserved word in the C++ language.
+ @short Returns a "delete" item.
+ */
+ public static native KGuiItem del();
+ public static native KGuiItem open();
+ /**
+ Return a GUI item for a 'back' action, like Konqueror's back button.
+ This GUI item can optionally honor the user's setting for BiDi, so the
+ icon for right-to-left languages (Hebrew and Arab) has the arrow
+ pointing in the opposite direction.
+ By default the arrow points in the Western 'back' direction (i.e.
+ to the left). This is because usually you only want the Bidi aware
+ GUI item if you also want the 'forward' item. Those two are available
+ in the separate backAndForward() method.
+ @short Return a GUI item for a 'back' action, like Konqueror's back button.
+ */
+ public static native KGuiItem back(int useBidi);
+ public static native KGuiItem back();
+ /**
+ Return a GUI item for a 'forward' action, like Konqueror's forward
+ button. This GUI item can optionally honor the user's setting for BiDi,
+ so the icon for right-to-left languages (Hebrew and Arab) has the arrow
+ pointing in the opposite direction.
+ By default the arrow points in the Western 'forward' direction (i.e.
+ to the right). This is because usually you only want the Bidi aware
+ GUI item if you also want the 'back' item. Those two are available
+ in the separate backAndForward() method.
+ @short Return a GUI item for a 'forward' action, like Konqueror's forward button.
+ */
+ public static native KGuiItem forward(int useBidi);
+ public static native KGuiItem forward();
+ /**
+ Returns a "configure" item.
+ @short Returns a "configure" item.
+ */
+ public static native KGuiItem configure();
+ /**
+ Return both a back and a forward item. This function always returns
+ items that are aware of the Right-to-Left setting for Arab and Hebrew
+ locales. If you have a reason for wanting the 'Western' back/forward
+ buttons, please use the back() and forward() items instead.
+ @short Return both a back and a forward item.
+ */
+ // QPair<KGuiItem, KGuiItem> backAndForward(); >>>> NOT CONVERTED
+ public static native KGuiItem quit();
+ /**
+ Returns a "find" item.
+ @short Returns a "find" item.
+ */
+ public static native KGuiItem find();
+ /**
+ Returns a "stop" item.
+ @short Returns a "stop" item.
+ */
+ public static native KGuiItem stop();
+ /**
+ Returns a "add" item.
+ @short Returns a "add" item.
+ */
+ public static native KGuiItem add();
+ /**
+ Returns a "remove" item.
+ @short Returns a "remove" item.
+ */
+ public static native KGuiItem remove();
+ /**
+ Returns a "test" item.
+ @short Returns a "test" item.
+ */
+ public static native KGuiItem test();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KStringHandler.java b/kdejava/koala/org/kde/koala/KStringHandler.java
new file mode 100644
index 00000000..8b01ca9f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KStringHandler.java
@@ -0,0 +1,407 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QRegExp;
+import java.util.ArrayList;
+import org.kde.qt.QFontMetrics;
+
+/**
+
+ This class contains utility functions for handling strings.
+ This class is <b>not</b> a substitute for the String class. What
+ I tried to do with this class is provide an easy way to
+ cut/slice/splice words inside sentences in whatever order desired.
+ While the main focus of this class are words (ie characters
+ separated by spaces/tabs), the two core functions here ( split()
+ and join() ) will function given any char to use as a separator.
+ This will make it easy to redefine what a 'word' means in the
+ future if needed.
+ I freely stole some of the function names from python. I also think
+ some of these were influenced by mIRC (yes, believe it if you will, I
+ used to write a LOT of scripts in mIRC).
+ The ranges are a fairly powerful way of getting/stripping words from
+ a string. These ranges function, for the large part, as they would in
+ python. See the word(String, String ) and remword(String, uint) functions for more detail.
+ This class contains no data members of its own. All strings are cut
+ on the fly and returned as new qstrings/qstringlists.
+ Quick example on how to use:
+ <pre>
+ KStringHandler kstr;
+ String line = "This is a test of the strings";
+ cout << "1> " << kstr.word( line , "4:" ) << "\n";
+ cout << "2> " << kstr.remrange( line , "2:5" ) << "\n";
+ cout << "2> " << kstr.reverse( line ) << "\n";
+ cout << "2> " << kstr.center( kstr.word( line , 4 ) , 15 ) << "\n";
+ </pre>
+ and so forth.
+ @author Ian Zepp <icszepp@islc.net>
+
+ @short Class for manipulating words and sentences in strings.
+ @see KShell
+
+*/
+public class KStringHandler implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KStringHandler(Class dummy){}
+
+ public KStringHandler() {
+ newKStringHandler();
+ }
+ private native void newKStringHandler();
+ /** Returns a range of words from that string.
+ Ie:
+
+ <li>
+ "0" returns the very first word
+ </li>
+
+ <li>
+ "0:" returns the first to the last word
+ </li>
+
+ <li>
+ "0:3" returns the first to fourth words
+ </li>
+
+ <li>
+ ":3" returns everything up to the fourth word
+ </li>
+ If you grok python, you're set.
+ @param text the string to search for the words
+ @param range the words to return (see description)
+ @return the words, or an empty string if not found
+
+ @short Returns a range of words from that string.
+ */
+ public static native String word(String text, String range);
+ /** Inserts a word into the string, and returns
+ a new string with the word included. the first
+ index is zero (0). If there are not <code>pos</code> words in the original
+ string, the new word will be appended to the end.
+ @param text the original text
+ @param word the word to insert
+ @param pos the position (in words) for the new word
+ @return the resulting string
+
+ @short Inserts a word into the string, and returns a new string with the word included.
+ */
+ public static native String insword(String text, String word, int pos);
+ /** Replaces a word in the string, and returns
+ a new string with the word included. the first
+ index is zero (0). If there are not <code>pos</code> words in the original
+ string, the new word will be appended to the end.
+ @param text the original text
+ @param word the word to insert
+ @param pos the position (in words) for the new word
+ @return the resulting string
+
+ @short Replaces a word in the string, and returns a new string with the word included.
+ */
+ public static native String setword(String text, String word, int pos);
+ /** Removes a word or ranges of words from the string,
+ and returns a new string. The ranges definitions
+ follow the definitions for the word() function.
+
+ <li>
+ "0" removes the very first word
+ </li>
+
+ <li>
+ "0:" removes the first the the last word
+ </li>
+
+ <li>
+ "0:3" removes the first to fourth words
+ </li>
+
+ <li>
+ ":3" removes everything up to the fourth word
+ </li>
+ @param text the original text
+ @param range the words to remove (see description)
+ @return the resulting string
+
+ @short Removes a word or ranges of words from the string, and returns a new string.
+ */
+ public static native String remrange(String text, String range);
+ /** Removes a word at the given index, and returns a
+ new string. The first index is zero (0).
+ @param text the original text
+ @param pos the position (in words) of thw word to delete
+ @return the resulting string
+
+ @short Removes a word at the given index, and returns a new string.
+ */
+ public static native String remword(String text, int pos);
+ /** Removes a matching word from the string, and returns
+ a new string. Note that only ONE match is removed.
+ @param text the original text
+ @param word the word to remove
+ @return the resulting string
+
+ @short Removes a matching word from the string, and returns a new string.
+ */
+ public static native String remword(String text, String word);
+ /** Capitalizes each word in the string
+ "hello there" becomes "Hello There" (string)
+ @param text the text to capitalize
+ @return the resulting string
+
+ @short Capitalizes each word in the string "hello there" becomes "Hello There" (string)
+ */
+ public static native String capwords(String text);
+ /** Capitalizes each word in the list
+ [hello, there] becomes [Hello, There] (list)
+ @param list the list to capitalize
+ @return the resulting list
+
+ @short Capitalizes each word in the list [hello, there] becomes [Hello, There] (list)
+ */
+ public static native ArrayList capwords(String[] list);
+ /** Reverses the order of the words in a string
+ "hello there" becomes "there hello" (string)
+ @param text the text to reverse
+ @return the resulting string
+
+ @short Reverses the order of the words in a string "hello there" becomes "there hello" (string)
+ */
+ public static native String reverse(String text);
+ /** Reverses the order of the words in a list
+ [hello, there] becomes [there, hello] (list)
+ @param list the list to reverse
+ @return the resulting list
+
+ @short Reverses the order of the words in a list [hello, there] becomes [there, hello] (list)
+ */
+ public static native ArrayList reverse(String[] list);
+ /** Centers a string and returns a string at least 'width' characters
+ wide.
+ If the string is longer than the <code>width</code>, the original
+ string is returned. It is never truncated.
+ @param text the text to justify
+ @param width the desired width of the new string
+ @return the resulting string
+
+ @short Centers a string and returns a string at least 'width' characters wide.
+ */
+ public static native String center(String text, int width);
+ /** Substitute characters at the beginning of a string by "...".
+ @param str is the string to modify
+ @param maxlen is the maximum length the modified string will have
+ If the original string is shorter than "maxlen", it is returned verbatim
+ @return the modified string
+
+ @short Substitute characters at the beginning of a string by ".
+ */
+ public static native String lsqueeze(String str, int maxlen);
+ public static native String lsqueeze(String str);
+ /** Substitute characters at the beginning of a string by "...". Similar to
+ method above, except that it truncates based on pixel width rather than
+ the number of characters
+ @param name is the string to modify
+ @param fontMetrics is the font metrics to use to calculate character sizes
+ @param maxlen is the maximum length in ems the modified string will have
+ If the original string is shorter than "maxlen", it is returned verbatim
+ @return the modified string
+
+ @short Substitute characters at the beginning of a string by ".
+ */
+ public static native String lEmSqueeze(String name, QFontMetrics fontMetrics, int maxlen);
+ public static native String lEmSqueeze(String name, QFontMetrics fontMetrics);
+ /** Substitute characters at the beginning of a string by "...". Similar to
+ method above, except that maxlen is the width in pixels to truncate to
+ @param name is the string to modify
+ @param fontMetrics is the font metrics to use to calculate character sizes
+ @param maxPixels is the maximum pixel length the modified string will have
+ If the original string is shorter than "maxlen", it is returned verbatim
+ @return the modified string
+
+ @short Substitute characters at the beginning of a string by ".
+ */
+ public static native String lPixelSqueeze(String name, QFontMetrics fontMetrics, int maxPixels);
+ /** Substitute characters at the middle of a string by "...".
+ @param str is the string to modify
+ @param maxlen is the maximum length the modified string will have
+ If the original string is shorter than "maxlen", it is returned verbatim
+ @return the modified string
+
+ @short Substitute characters at the middle of a string by ".
+ */
+ public static native String csqueeze(String str, int maxlen);
+ public static native String csqueeze(String str);
+ /** Substitute characters in the middle of a string by "...". Similar to
+ method above, except that it truncates based on pixel width rather than
+ the number of characters
+ @param name is the string to modify
+ @param fontMetrics is the font metrics to use to calculate character sizes
+ @param maxlen is the maximum length in ems the modified string will have
+ If the original string is shorter than "maxlen", it is returned verbatim
+ @return the modified string
+
+ @short Substitute characters in the middle of a string by ".
+ */
+ public static native String cEmSqueeze(String name, QFontMetrics fontMetrics, int maxlen);
+ public static native String cEmSqueeze(String name, QFontMetrics fontMetrics);
+ /** Substitute characters in the middle of a string by "...". Similar to
+ method above, except that maxlen is the width in pixels to truncate to
+ @param name is the string to modify
+ @param fontMetrics is the font metrics to use to calculate character sizes
+ @param maxPixels is the maximum pixel length the modified string will have
+ If the original string is shorter than "maxlen", it is returned verbatim
+ @return the modified string
+
+ @short Substitute characters in the middle of a string by ".
+ */
+ public static native String cPixelSqueeze(String name, QFontMetrics fontMetrics, int maxPixels);
+ /** Substitute characters at the end of a string by "...".
+ @param str is the string to modify
+ @param maxlen is the maximum length the modified string will have
+ If the original string is shorter than "maxlen", it is returned verbatim
+ @return the modified string
+
+ @short Substitute characters at the end of a string by ".
+ */
+ public static native String rsqueeze(String str, int maxlen);
+ public static native String rsqueeze(String str);
+ /** Substitute characters at the end of a string by "...". Similar to
+ method above, except that it truncates based on pixel width rather than
+ the number of characters
+ @param name is the string to modify
+ @param fontMetrics is the font metrics to use to calculate character sizes
+ @param maxlen is the maximum length in ems the modified string will have
+ If the original string is shorter than "maxlen", it is returned verbatim
+ @return the modified string
+
+ @short Substitute characters at the end of a string by ".
+ */
+ public static native String rEmSqueeze(String name, QFontMetrics fontMetrics, int maxlen);
+ public static native String rEmSqueeze(String name, QFontMetrics fontMetrics);
+ /** Substitute characters at the end of a string by "...". Similar to
+ method above, except that maxlen is the width in pixels to truncate to
+ @param name is the string to modify
+ @param fontMetrics is the font metrics to use to calculate character sizes
+ @param maxPixels is the maximum pixel length the modified string will have
+ If the original string is shorter than "maxlen", it is returned verbatim
+ @return the modified string
+
+ @short Substitute characters at the end of a string by ".
+ */
+ public static native String rPixelSqueeze(String name, QFontMetrics fontMetrics, int maxPixels);
+ /**
+ Match a filename.
+ @param filename is the real decoded filename (or dirname
+ without trailing '/').
+ @param pattern is a pattern like .txt, .tar.gz, Makefile., README, etc.
+ Patterns with two asterisks like "*.pk" are not supported.
+ @return true if the given filename matches the given pattern
+
+ @short Match a filename.
+ */
+ public static native boolean matchFileName(String filename, String pattern);
+ /**
+ Split a String into an ArrayList in a similar fashion to the static
+ ArrayList function in Qt, except you can specify a maximum number
+ of tokens. If max is specified (!= 0) then only that number of tokens
+ will be extracted. The final token will be the remainder of the string.
+ Example:
+ <pre>
+ perlSplit("__", "some__string__for__you__here", 4)
+ ArrayList contains: "some", "string", "for", "you__here"
+ </pre>
+ @param sep is the string to use to delimit s.
+ @param s is the input string
+ @param max is the maximum number of extractions to perform, or 0.
+ @return An ArrayList containing tokens extracted from s.
+
+ @short Split a String into an ArrayList in a similar fashion to the static ArrayList function in Qt, except you can specify a maximum number of tokens.
+ */
+ public static native ArrayList perlSplit(String sep, String s, int max);
+ public static native ArrayList perlSplit(String sep, String s);
+ /**
+ Split a String into an ArrayList in a similar fashion to the static
+ ArrayList function in Qt, except you can specify a maximum number
+ of tokens. If max is specified (!= 0) then only that number of tokens
+ will be extracted. The final token will be the remainder of the string.
+ Example:
+ <pre>
+ perlSplit(' ', "kparts reaches the parts other parts can't", 3)
+ ArrayList contains: "kparts", "reaches", "the parts other parts can't"
+ </pre>
+ @param sep is the character to use to delimit s.
+ @param s is the input string
+ @param max is the maximum number of extractions to perform, or 0.
+ @return An ArrayList containing tokens extracted from s.
+
+ @short Split a String into an ArrayList in a similar fashion to the static ArrayList function in Qt, except you can specify a maximum number of tokens.
+ */
+ public static native ArrayList perlSplit(char sep, String s, int max);
+ public static native ArrayList perlSplit(char sep, String s);
+ /**
+ Split a String into an ArrayList in a similar fashion to the static
+ ArrayList function in Qt, except you can specify a maximum number
+ of tokens. If max is specified (!= 0) then only that number of tokens
+ will be extracted. The final token will be the remainder of the string.
+ Example:
+ <pre>
+ perlSplit(QRegExp("[! ]", "Split me up ! I'm bored ! OK ?", 3)
+ ArrayList contains: "Split", "me", "up ! I'm bored, OK ?"
+ </pre>
+ @param sep is the regular expression to use to delimit s.
+ @param s is the input string
+ @param max is the maximum number of extractions to perform, or 0.
+ @return An ArrayList containing tokens extracted from s.
+
+ @short Split a String into an ArrayList in a similar fashion to the static ArrayList function in Qt, except you can specify a maximum number of tokens.
+ */
+ public static native ArrayList perlSplit(QRegExp sep, String s, int max);
+ public static native ArrayList perlSplit(QRegExp sep, String s);
+ /**
+ This method auto-detects URLs in strings, and adds HTML markup to them
+ so that richtext or HTML-enabled widgets (such as KActiveLabel)
+ will display the URL correctly.
+ @param text the string which may contain URLs
+ @return the resulting text
+
+ @short This method auto-detects URLs in strings, and adds HTML markup to them so that richtext or HTML-enabled widgets (such as KActiveLabel) will display the URL correctly.
+ */
+ public static native String tagURLs(String text);
+ /**
+ Obscure string by using a simple symmetric encryption. Applying the
+ function to a string obscured by this function will result in the original
+ string.
+ The function can be used to obscure passwords stored to configuration
+ files. Note that this won't give you any more security than preventing
+ that the password is directly copied and pasted.
+ @param str string to be obscured
+ @return obscured string
+
+ @short Obscure string by using a simple symmetric encryption.
+ */
+ public static native String obscure(String str);
+ /**
+ Guess whether a string is UTF8 encoded.
+ @param str the string to check
+ @return true if UTF8. If false, the string is probably in Local8Bit.
+
+ @short Guess whether a string is UTF8 encoded.
+ */
+ public static native boolean isUtf8(String str);
+ /**
+ Construct String from a c string, guessing whether it is UTF8- or
+ Local8Bit-encoded.
+ @param str the input string
+ @return the (hopefully correctly guessed) String representation of <code>str</code>
+
+ @short Construct String from a c string, guessing whether it is UTF8- or Local8Bit-encoded.
+ */
+ public static native String from8Bit(String str);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KStringListValidator.java b/kdejava/koala/org/kde/koala/KStringListValidator.java
new file mode 100644
index 00000000..80b7bc3a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KStringListValidator.java
@@ -0,0 +1,94 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.ArrayList;
+import org.kde.qt.QValidator;
+
+/**
+
+ This validator allows you to accept only certain or to accept all
+ but certain strings.
+ When used in rejecting mode, accepts only strings not in the
+ stringlist. This mode is the default and comes in handy when asking
+ the user for a name of some listed entity. Set the list of already
+ used names to prevent the user from entering duplicate names.
+ When used in non-rejecting mode, accepts only strings that appear
+ in the stringlist. Use with care! From a user's point of view this
+ mode is hard to grasp.
+ This validator can also fix strings. In rejecting mode, a number
+ will be appended to the string until it is Acceptable. E.g. if
+ "foo" and "foo 1" are in the stringlist, then fixup will change
+ "foo" to "foo 2", provided "foo 2" isn't in the list of forbidden
+ strings.
+ In accepting mode, when the input starts with an Acceptable
+ substring, truncates to the longest Acceptable string. When the
+ input is the start of an Acceptable string, completes to the
+ shortest Acceptable string.
+ NOTE: fixup isn't yet implemented.
+ @author Marc Mutz <mutz@kde.org>
+
+ @short A QValidator to (dis)allow certain strings.
+
+*/
+public class KStringListValidator extends QValidator {
+ protected KStringListValidator(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /** Construct a new validator.
+ @param list The list of strings to (dis)allow.
+ @param rejecting Selects the validator's mode
+ (rejecting: true; accepting: false)
+ @param fixupEnabled Selects whether to fix strings or not.
+ @param parent Passed to lower level constructor.
+ @param name Passed to lower level constructor
+ @short Construct a new validator.
+ */
+ public KStringListValidator(String[] list, boolean rejecting, boolean fixupEnabled, QObject parent, String name) {
+ super((Class) null);
+ newKStringListValidator(list,rejecting,fixupEnabled,parent,name);
+ }
+ private native void newKStringListValidator(String[] list, boolean rejecting, boolean fixupEnabled, QObject parent, String name);
+ public KStringListValidator(String[] list, boolean rejecting, boolean fixupEnabled, QObject parent) {
+ super((Class) null);
+ newKStringListValidator(list,rejecting,fixupEnabled,parent);
+ }
+ private native void newKStringListValidator(String[] list, boolean rejecting, boolean fixupEnabled, QObject parent);
+ public KStringListValidator(String[] list, boolean rejecting, boolean fixupEnabled) {
+ super((Class) null);
+ newKStringListValidator(list,rejecting,fixupEnabled);
+ }
+ private native void newKStringListValidator(String[] list, boolean rejecting, boolean fixupEnabled);
+ public KStringListValidator(String[] list, boolean rejecting) {
+ super((Class) null);
+ newKStringListValidator(list,rejecting);
+ }
+ private native void newKStringListValidator(String[] list, boolean rejecting);
+ public KStringListValidator(String[] list) {
+ super((Class) null);
+ newKStringListValidator(list);
+ }
+ private native void newKStringListValidator(String[] list);
+ public KStringListValidator() {
+ super((Class) null);
+ newKStringListValidator();
+ }
+ private native void newKStringListValidator();
+ public native int validate(StringBuffer input, int[] pos);
+ public native void fixup(StringBuffer input);
+ public native void setRejecting(boolean rejecting);
+ public native boolean isRejecting();
+ public native void setFixupEnabled(boolean fixupEnabled);
+ public native boolean isFixupEnabled();
+ public native void setStringList(String[] list);
+ public native ArrayList stringList();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSycoca.java b/kdejava/koala/org/kde/koala/KSycoca.java
new file mode 100644
index 00000000..8de15677
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSycoca.java
@@ -0,0 +1,364 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QDataStream;
+import java.util.ArrayList;
+import org.kde.qt.QObject;
+
+/**
+
+ Read-only SYstem COnfiguration CAche
+ See {@link KSycocaSignals} for signals emitted by KSycoca
+ @short
+
+*/
+public class KSycoca extends QObject implements DCOPObjectInterface {
+ protected KSycoca(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Read-only database
+ @short Read-only database
+ */
+ public KSycoca() {
+ super((Class) null);
+ newKSycoca();
+ }
+ private native void newKSycoca();
+ /**
+ This is how factories get a stream to an entry
+ @short
+ */
+ public native QDataStream findEntry(int offset, int type);
+ /**
+ @short
+ */
+ public native QDataStream findFactory(int id);
+ /**
+ @short
+ */
+ public native String kfsstnd_prefixes();
+ /**
+ @short
+ */
+ public native String language();
+ /**
+ The database contains all changes made _before_ this time and
+ _might_ contain changes made after that.
+ @short
+ */
+ public native int timeStamp();
+ /**
+ Signature that keeps track of changes to
+ $KDEDIR/share/services/update_ksycoca
+ Touching this file causes the database to be recreated
+ from scratch.
+ @short
+ */
+ public native int updateSignature();
+ /**
+ stored inside sycoca.
+ @short
+ */
+ public native ArrayList allResourceDirs();
+ /**
+ @short
+ */
+ // void addFactory(KSycocaFactory* arg1); >>>> NOT CONVERTED
+ /**
+ @return true if building (i.e. if a KBuildSycoca);
+
+ @short
+ */
+ public native boolean isBuilding();
+ /**
+ @short
+ */
+ public native void disableAutoRebuild();
+ /**
+ internal function for receiving kded/kbuildsycoca's signal, when the sycoca file changes
+ @short internal function for receiving kded/kbuildsycoca's signal, when the sycoca file changes
+ */
+ // void notifyDatabaseChanged(const QStringList& arg1); >>>> NOT CONVERTED
+ /**
+ Get or create the only instance of KSycoca (read-only)
+ @short Get or create the only instance of KSycoca (read-only)
+ */
+ public static native KSycoca self();
+ public static native int version();
+ /**
+ Determine relative path for a .desktop file from a full path and a resource name
+ @short Determine relative path for a .
+ */
+ public static native String determineRelativePath(String _fullpath, String _resource);
+ /**
+ When you receive a "databaseChanged" signal, you can query here if
+ a change has occurred in a specific resource type.
+ @short When you receive a "databaseChanged" signal, you can query here if a change has occurred in a specific resource type.
+ @see KStandardDirs
+ @see #for
+ @see #the
+ @see #various
+ @see #resource
+ @see #types#
+ */
+ public static native boolean isChanged(String type);
+ /**
+ A read error occurs.
+ @short A read error occurs.
+ */
+ public static native void flagError();
+ /**
+ Returns read error status and clears flag.
+ @short Returns read error status and clears flag.
+ */
+ public static native boolean readError();
+ /**
+ Building database
+ @short
+ */
+ public KSycoca(boolean arg1) {
+ super((Class) null);
+ newKSycoca(arg1);
+ }
+ private native void newKSycoca(boolean arg1);
+ protected native boolean checkVersion(boolean abortOnError);
+ protected native boolean checkVersion();
+ protected native boolean openDatabase(boolean openDummyIfNotFound);
+ protected native boolean openDatabase();
+ protected native void closeDatabase();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+ /**
+ Returns the object id of the DCOPObject.
+ @return the object's id
+
+ @short Returns the object id of the DCOPObject.
+ */
+ public native String objId();
+ /**
+ Renames a dcop object, if no other with the same name exists
+ Use with care, all dcop signals are disconnected
+ @param objId the new object id
+ @short Renames a dcop object, if no other with the same name exists Use with care, all dcop signals are disconnected
+ */
+ public native boolean setObjId(String objId);
+ /**
+ Dispatches a message.
+ Usually you want to use an IDL
+ compiler to automatically generate an implementation for
+ this function.
+ If this function returns false, then processDynamic()
+ is called.
+ Note to implementators: remember to call the baseclasses
+ implementation. It handles the functions "functions()" and
+ "interfaces()" which return the lists of supported functions
+ and interfaces, respectively.
+ @param fun is the normalized function signature.
+ Such a signature usually looks like
+ foobar(String,int). The return type,
+ qualifiers like "const" etc. are not part of
+ the signature.
+ @param data the received data
+ @param replyType write the reply type in this string
+ @param replyData write the reply data in this array
+ @return true if successful, false otherwise. The default implementation
+ returns false for all <code>fun</code> except "functions()" and
+ "interfaces()".
+
+ @short Dispatches a message.
+ @see DCOPClient#normalizeFunctionSignature
+ @see #functions
+ @see DCOPClient#process
+ */
+ public native boolean process(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for process() but
+ you still want to dispatch some functions dynamically.
+ Dynamically means that methods may appear and vanish
+ during runtime.
+ @param fun is the normalized function signature.
+ Such a signature usually looks like
+ foobar(String,int). The return type,
+ qualifiers like "const" etc. are not part of
+ the signature.
+ @param data the received data
+ @param replyType write the reply type in this string
+ @param replyData write the reply data in this array
+ @return true if successful, false otherwise. The default implementation
+ returns always false.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for process() but you still want to dispatch some functions dynamically.
+ @see #process
+ @see DCOPClient#normalizeFunctionSignature
+ @see #functions
+ @see DCOPClient#process
+ */
+ public native boolean processDynamic(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for functions() but
+ you still want to list some functions dynamically.
+ Dynamically means that the methods may appear and vanish
+ during runtime.
+ @return A list of the additional functions, default is an empty list.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for functions() but you still want to list some functions dynamically.
+ @see #functions
+ */
+ public native ArrayList functionsDynamic();
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for interfaces() but
+ you still want to list some interfaces dynamically.
+ Dynamically means that they may appear and vanish
+ during runtime.
+ @return A list of the additional interfaces, default is an empty list.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for interfaces() but you still want to list some interfaces dynamically.
+ @see #interfaces
+ */
+ public native ArrayList interfacesDynamic();
+ /**
+ Returns the names of the interfaces, specific ones last. The
+ functions gets reimplemented by the IDL compiler. If you don't
+ use the IDL compiler, consider implementing this function
+ manually if you want your object to be easily explorable.
+ @return a list of interfaces
+
+ @short Returns the names of the interfaces, specific ones last.
+ @see #functions
+ */
+ public native ArrayList interfaces();
+ /**
+ Returns the list of functions understood by the object. It gets
+ reimplemented by the IDL compiler. If you don't use the IDL
+ compiler, consider implementing this function manually if you
+ want your object to be easily scriptable.
+ Rationale: functions() allows an interpreter to do client-side
+ type-casting properly.
+ Note to implementators: remember to call the baseclasses
+ implementation.
+ @return a list of functions
+
+ @short Returns the list of functions understood by the object.
+ @see #interfaces
+ @see #process
+ @see #processDynamic
+ @see DCOPClient#normalizeFunctionSignature
+ */
+ public native ArrayList functions();
+ /**
+ Emit <code>signal</code> as DCOP signal from this object with <code>data</code> as
+ arguments
+ @param signal the signal to emit
+ @param data the data to send
+ @short Emit <code>signal</code> as DCOP signal from this object with <code>data</code> as arguments
+ */
+ public native void emitDCOPSignal(String signal, byte[] data);
+ /**
+ Connects to a DCOP signal.
+ @param sender the name of the client that emits the signal. When empty
+ the signal will be passed from any client.
+ @param senderObj the name of the sending object that emits the signal.
+ @param signal the name of the signal. The arguments should match with slot.
+ @param slot The name of the slot to call. Its arguments should match with signal.
+ @param Volatile If true, the connection will not be reestablished when
+ <code>sender</code> unregisters and reregisters with DCOP. In this case the <code>sender</code>
+ must be registered when the connection is made.
+ If false, the connection will be reestablished when <code>sender</code> reregisters.
+ In this case the connection can be made even if <code>sender</code> is not registered
+ at that time.
+
+ <li>
+ <code>Volatile</code> is true and <code>sender</code> does not exist.
+ </li>
+
+ <li>
+ <code>signal</code> and <code>slot</code> do not have matching arguments.
+
+ </li> @return false if a connection could not be established.
+ This will be the case when
+
+ @short Connects to a DCOP signal.
+ */
+ public native boolean connectDCOPSignal(String sender, String senderObj, String signal, String slot, boolean Volatile);
+ /**
+ Disconnects a DCOP signal.
+ A special case is when both <code>sender</code> & <code>signal</code> are empty. In this
+ case all connections related to this object in the current client
+ are disconnected. (Both connections from as well as to this object!)
+ @param sender the name of the client that emits the signal.
+ @param senderObj the name of the object that emits the signal.
+ If empty all objects will be disconnected.
+ @param signal the name of the signal. The arguments should match with slot.
+ If empty all objects will be disconnected.
+ @param slot The name of the slot the signal is connected to.
+ If empty all slots will be disconnected.
+ @return false if no connection(s) where removed.
+
+ @short Disconnects a DCOP signal.
+ */
+ public native boolean disconnectDCOPSignal(String sender, String senderObj, String signal, String slot);
+ /**
+ Returns the DCOPClient responsible for making the call.
+ Only call this function while you are handling a DCOP call.
+ @return the DCOPClient responsible for making the call.
+ This information is only guaranteed to be correct when
+ entering your DCOP function.
+
+ @short Returns the DCOPClient responsible for making the call.
+ */
+ public native DCOPClient callingDcopClient();
+ /**
+ @short
+ */
+ public native void setCallingDcopClient(DCOPClient arg1);
+ /**
+ Checks whether an object with the given id is known in this process.
+ DCOPObjectProxy
+ @return true if an object with the questionable <code>objId</code> is
+ known in this process. This query does not ask proxies.
+
+ @short Checks whether an object with the given id is known in this process.
+ */
+ public static native boolean hasObject(String objId);
+ /**
+ Try to find a dcop object with the given id.
+ This function does not query the DCOPObjectProxy.
+ @param objId the object id to search
+ @return the DCOPObject for the id <code>objId.</code>
+
+ @short Try to find a dcop object with the given id.
+ */
+ public static native DCOPObjectInterface find(String objId);
+ /**
+ Tries to find an object using a partial object id.
+ This function is used for multicasting a DCOP message to
+ several objects inside a single process.
+ @param partialId the partial object id to search for
+ @return a list of DCOPObjects beginning with the string
+ contained in <code>partialId.</code>
+
+ @short Tries to find an object using a partial object id.
+ */
+ // QPtrList<DCOPObject> match(const QCString& arg1); >>>> NOT CONVERTED
+ /**
+ Creates an object id for the QObject <code>obj.</code> This is done
+ using the QObject.name() function.
+ @param obj the object whose name will be used
+ @return the created object id
+
+ @short Creates an object id for the QObject <code>obj.</code>
+ */
+ public static native String objectName(QObject arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KSycocaEntry.java b/kdejava/koala/org/kde/koala/KSycocaEntry.java
new file mode 100644
index 00000000..5e14ff59
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSycocaEntry.java
@@ -0,0 +1,78 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QDataStream;
+
+/**
+
+ Base class for all Sycoca entries.
+ You can't create an instance of KSycocaEntry, but it provides
+ the common functionality for servicetypes and services.
+ @short Base class for all Sycoca entries.
+ @see #http://developer#kde#org/documentation/library/kdeqt/kde3arch/ksycoca#html
+
+*/
+public class KSycocaEntry extends KShared {
+ protected KSycocaEntry(Class dummy){super((Class) null);}
+ public native boolean isType(int t);
+ public native int sycocaType();
+ /**
+ Default constructor
+ @short Default constructor
+ */
+ /**
+ Restores itself from a stream.
+ @short
+ */
+ /**
+ @return the name of this entry
+
+ @short
+ */
+ public native String name();
+ /**
+ @return the path of this entry
+ The path can be absolute or relative.
+ The corresponding factory should know relative to what.
+
+ @short
+ */
+ public native String entryPath();
+ /**
+ @return true if valid
+
+ @short
+ */
+ public native boolean isValid();
+ /**
+ @return true if deleted
+
+ @short
+ */
+ public native boolean isDeleted();
+ /**
+ @return the position of the entry in the sycoca file
+
+ @short
+ */
+ public native int offset();
+ /**
+ Save ourselves to the database. Don't forget to call the parent class
+ first if you override this function.
+ @short
+ */
+ public native void save(QDataStream s);
+ /**
+ Load ourselves from the database. Don't call the parent class!
+ @short
+ */
+ public native void load(QDataStream arg1);
+ /**
+ Safe demarshalling functions.
+ @short Safe demarshalling functions.
+ */
+ public static native void read(QDataStream s, StringBuffer str);
+ public static native void read(QDataStream s, String[] list);
+}
diff --git a/kdejava/koala/org/kde/koala/KSycocaSignals.java b/kdejava/koala/org/kde/koala/KSycocaSignals.java
new file mode 100644
index 00000000..54d36a8e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSycocaSignals.java
@@ -0,0 +1,17 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QDataStream;
+import java.util.ArrayList;
+
+public interface KSycocaSignals {
+ /**
+ Connect to this to get notified when the database changes
+ (Usually apps showing icons do a 'refresh' to take into account the new mimetypes)
+ @short Connect to this to get notified when the database changes (Usually apps showing icons do a 'refresh' to take into account the new mimetypes)
+ */
+ void databaseChanged();
+}
diff --git a/kdejava/koala/org/kde/koala/KSyntaxHighlighter.java b/kdejava/koala/org/kde/koala/KSyntaxHighlighter.java
new file mode 100644
index 00000000..033e866a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSyntaxHighlighter.java
@@ -0,0 +1,63 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QTextEdit;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSyntaxHighlighter;
+
+/**
+
+ \brief Syntax sensitive text highlighter
+ @short \brief Syntax sensitive text highlighter
+
+*/
+public class KSyntaxHighlighter extends QSyntaxHighlighter {
+ protected KSyntaxHighlighter(Class dummy){super((Class) null);}
+ public static final int PlainTextMode = 0;
+ public static final int RichTextMode = 1;
+
+ public KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1, QColor QuoteColor2, QColor QuoteColor3, int mode) {
+ super((Class) null);
+ newKSyntaxHighlighter(textEdit,colorQuoting,QuoteColor0,QuoteColor1,QuoteColor2,QuoteColor3,mode);
+ }
+ private native void newKSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1, QColor QuoteColor2, QColor QuoteColor3, int mode);
+ public KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1, QColor QuoteColor2, QColor QuoteColor3) {
+ super((Class) null);
+ newKSyntaxHighlighter(textEdit,colorQuoting,QuoteColor0,QuoteColor1,QuoteColor2,QuoteColor3);
+ }
+ private native void newKSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1, QColor QuoteColor2, QColor QuoteColor3);
+ public KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1, QColor QuoteColor2) {
+ super((Class) null);
+ newKSyntaxHighlighter(textEdit,colorQuoting,QuoteColor0,QuoteColor1,QuoteColor2);
+ }
+ private native void newKSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1, QColor QuoteColor2);
+ public KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1) {
+ super((Class) null);
+ newKSyntaxHighlighter(textEdit,colorQuoting,QuoteColor0,QuoteColor1);
+ }
+ private native void newKSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1);
+ public KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0) {
+ super((Class) null);
+ newKSyntaxHighlighter(textEdit,colorQuoting,QuoteColor0);
+ }
+ private native void newKSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0);
+ public KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting) {
+ super((Class) null);
+ newKSyntaxHighlighter(textEdit,colorQuoting);
+ }
+ private native void newKSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting);
+ public KSyntaxHighlighter(QTextEdit textEdit) {
+ super((Class) null);
+ newKSyntaxHighlighter(textEdit);
+ }
+ private native void newKSyntaxHighlighter(QTextEdit textEdit);
+ public native int highlightParagraph(String text, int endStateOfLastPara);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSystemTray.java b/kdejava/koala/org/kde/koala/KSystemTray.java
new file mode 100644
index 00000000..23801b45
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSystemTray.java
@@ -0,0 +1,164 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QLabel;
+
+/**
+
+ \brief %KDE System Tray Window class
+ This class implements system tray windows.
+ A tray window is a small window (typically 24x24 pixel) that docks
+ into the system tray in the desktop panel. It usually displays an
+ icon or an animated icon there. The icon represents
+ the application, similar to a taskbar button, but consumes less
+ screen space.
+ When the user clicks with the left mouse button on the icon, the
+ main application window is shown/raised and activated. With the
+ right mouse button, she gets a popupmenu with application specific
+ commands, including "Minimize/Restore" and "Quit".
+ Docking happens magically when calling show(). The window undocks
+ with either hide() or when it is destroyed.
+ KSystemTray inherits methods such as setPixmap() and setMovie() to
+ specify an icon or movie (animated icon) respectively. It is
+ designed to be usable "as is", without the need to subclass it. In
+ case you need to provide something special (such as an additional
+ popupmenu on a click with the left mouse button), you can subclass
+ anyway, of course.
+ Having an icon on the system tray is a useful technique for
+ daemon-like applications that may run for some time without user
+ interaction but have to be there immediately when the user needs
+ them. Examples are kppp, kisdn, kscd, kmix or knotes. With kppp and
+ kisdn, the docked icon even provides real-time information about
+ the network status.
+ See {@link KSystemTraySignals} for signals emitted by KSystemTray
+ @author Matthias Ettrich <ettrich@kde.org>
+
+ @short \brief %KDE System Tray Window class
+
+*/
+public class KSystemTray extends QLabel {
+ protected KSystemTray(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a KSystemTray widget just like any other widget.
+ The parent widget <code>parent</code> has a special meaning:
+ Besides owning the tray window, the parent widget will
+ dissappear from taskbars when it is iconified while the tray
+ window is visible. This is the desired behavior. After all,
+ the tray window <code>is</code> the parent's taskbar icon.
+ Furthermore, the parent widget is shown or raised respectively
+ when the user clicks on the trray window with the left mouse
+ button.
+ @short Construct a KSystemTray widget just like any other widget.
+ */
+ public KSystemTray(QWidget parent, String name) {
+ super((Class) null);
+ newKSystemTray(parent,name);
+ }
+ private native void newKSystemTray(QWidget parent, String name);
+ public KSystemTray(QWidget parent) {
+ super((Class) null);
+ newKSystemTray(parent);
+ }
+ private native void newKSystemTray(QWidget parent);
+ public KSystemTray() {
+ super((Class) null);
+ newKSystemTray();
+ }
+ private native void newKSystemTray();
+ /**
+ Access to the context menu. This makes it easy to add new items
+ to it.
+ @short Access to the context menu.
+ */
+ public native KPopupMenu contextMenu();
+ /**
+ Easy access to the actions in the context menu
+ Currently includes KStdAction.Quit and minimizeRestore
+ @short Easy access to the actions in the context menu Currently includes KStdAction.Quit and minimizeRestore
+ */
+ public native KActionCollection actionCollection();
+ /**
+ Changes the tray's icon.
+ @short Changes the tray's icon.
+ */
+ public native void setPixmap(QPixmap icon);
+ /**
+ Changes the tray's text description (which can be seen e.g. in the systray
+ configuration dialog). The default value is KAboutData.programName().
+ @short Changes the tray's text description (which can be seen e.
+ */
+ public native void setCaption(String title);
+ /**
+ Toggles the state of the window associated with this system tray icon (hides it,
+ shows it or activates it depending on the window state). The default implementation
+ of mousePressEvent() calls toggleActive() when the tray icon is left-clicked, use
+ it when reimplementing mousePressEvent().
+ @short Toggles the state of the window associated with this system tray icon (hides it, shows it or activates it depending on the window state).
+ */
+ public native void toggleActive();
+ /**
+ Activates the window associated with this system tray icon, regardless of its current state.
+ @short Activates the window associated with this system tray icon, regardless of its current state.
+ */
+ public native void setActive();
+ /**
+ Hides the window associated with this system tray icon, regardless of its current state.
+ @short Hides the window associated with this system tray icon, regardless of its current state.
+ */
+ public native void setInactive();
+ /**
+ Loads an icon <code>icon</code> using the icon loader class of the given instance <code>instance.</code>
+ The icon is applied the panel effect as it should only be used to be shown in the
+ system tray.
+ It's commonly used in the form : systray.setPixmap( systray.loadIcon( "mysystray" ) );
+ @short Loads an icon <code>icon</code> using the icon loader class of the given instance <code>instance.</code>
+ */
+ public static native QPixmap loadIcon(String icon, KInstanceInterface instance);
+ public static native QPixmap loadIcon(String icon);
+ /**
+ Reimplemented to provide the standard show/raise behavior
+ for the parentWidget() and the context menu.
+ Feel free to reimplement this if you need something special.
+ @short Reimplemented to provide the standard show/raise behavior for the parentWidget() and the context menu.
+ */
+ protected native void mousePressEvent(QMouseEvent arg1);
+ /**
+ Reimplemented to provide the standard show/raise behavior
+ for the parentWidget() and the context menu.
+ Feel free to reimplement this if you need something special.
+ @short Reimplemented to provide the standard show/raise behavior for the parentWidget() and the context menu.
+ */
+ protected native void mouseReleaseEvent(QMouseEvent arg1);
+ /**
+ Makes it easy to adjust some menu items right before the
+ context menu becomes visible.
+ @short Makes it easy to adjust some menu items right before the context menu becomes visible.
+ */
+ protected native void contextMenuAboutToShow(KPopupMenu menu);
+ /**
+ Reimplemented for internal reasons.
+ @short Reimplemented for internal reasons.
+ */
+ public native void showEvent(QShowEvent arg1);
+ /**
+ Reimplemented for internal reasons.
+ @short Reimplemented for internal reasons.
+ */
+ protected native void enterEvent(QEvent arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KSystemTraySignals.java b/kdejava/koala/org/kde/koala/KSystemTraySignals.java
new file mode 100644
index 00000000..cd8a856e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KSystemTraySignals.java
@@ -0,0 +1,19 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+public interface KSystemTraySignals {
+ /**
+ Emitted when quit is selected in the menu. If you want to perform any other
+ action than to close the main application window please connect to this signal.
+ @short Emitted when quit is selected in the menu.
+ */
+ void quitSelected();
+}
diff --git a/kdejava/koala/org/kde/koala/KTabBar.java b/kdejava/koala/org/kde/koala/KTabBar.java
new file mode 100644
index 00000000..6d6b7040
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTabBar.java
@@ -0,0 +1,76 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QPainter;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWheelEvent;
+import org.kde.qt.QTab;
+import org.kde.qt.QTabBar;
+
+/**
+
+ See {@link KTabBarSignals} for signals emitted by KTabBar
+ @short
+
+*/
+public class KTabBar extends QTabBar {
+ protected KTabBar(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KTabBar(QWidget parent, String name) {
+ super((Class) null);
+ newKTabBar(parent,name);
+ }
+ private native void newKTabBar(QWidget parent, String name);
+ public KTabBar(QWidget parent) {
+ super((Class) null);
+ newKTabBar(parent);
+ }
+ private native void newKTabBar(QWidget parent);
+ public KTabBar() {
+ super((Class) null);
+ newKTabBar();
+ }
+ private native void newKTabBar();
+ public native void setTabEnabled(int arg1, boolean arg2);
+ public native QColor tabColor(int arg1);
+ public native void setTabColor(int arg1, QColor arg2);
+ public native int insertTab(QTab arg1, int index);
+ public native int insertTab(QTab arg1);
+ public native void removeTab(QTab arg1);
+ public native void setTabReorderingEnabled(boolean enable);
+ public native boolean isTabReorderingEnabled();
+ public native void setHoverCloseButton(boolean arg1);
+ public native boolean hoverCloseButton();
+ public native void setHoverCloseButtonDelayed(boolean arg1);
+ public native boolean hoverCloseButtonDelayed();
+ public native void setTabCloseActivatePrevious(boolean arg1);
+ public native boolean tabCloseActivatePrevious();
+ protected native void mouseDoubleClickEvent(QMouseEvent e);
+ protected native void mousePressEvent(QMouseEvent e);
+ protected native void mouseMoveEvent(QMouseEvent e);
+ protected native void mouseReleaseEvent(QMouseEvent e);
+ protected native void wheelEvent(QWheelEvent e);
+ protected native void dragMoveEvent(QDragMoveEvent e);
+ protected native void dropEvent(QDropEvent e);
+ protected native void paintLabel(QPainter arg1, QRect arg2, QTab arg3, boolean arg4);
+ protected native void closeButtonClicked();
+ protected native void onLayoutChange();
+ protected native void enableCloseButton();
+ protected native void activateDragSwitchTab();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KTabBarSignals.java b/kdejava/koala/org/kde/koala/KTabBarSignals.java
new file mode 100644
index 00000000..29ae5022
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTabBarSignals.java
@@ -0,0 +1,27 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QPainter;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWheelEvent;
+import org.kde.qt.QTab;
+
+public interface KTabBarSignals {
+ void contextMenu(int arg1, QPoint arg2);
+ void mouseDoubleClick(int arg1);
+ void mouseMiddleClick(int arg1);
+ void initiateDrag(int arg1);
+ void testCanDecode(QDragMoveEvent e, boolean accept);
+ void receivedDropEvent(int arg1, QDropEvent arg2);
+ void moveTab(int arg1, int arg2);
+ void closeRequest(int arg1);
+ void wheelDelta(int arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KTabCtl.java b/kdejava/koala/org/kde/koala/KTabCtl.java
new file mode 100644
index 00000000..a9b58d11
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTabCtl.java
@@ -0,0 +1,83 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ Tabbed dialog with extended features.
+ KTabCtl is very similar to QTabDialog, with the following differences:
+
+ <li>
+ To avoid confusion, the API is almost identical with QTabDialog.
+ </li>
+
+ <li>
+ Does not create any buttons, therefore KTabCtl is not limited
+ to dialog boxes. You can use it whereever you want.
+ </li>
+
+ <li>
+ emits the signal tabSelected(int pagenumber) when the user
+ selects one of the tabs. This gives you the chance to update the
+ widget contents of a single page. The signal is emitted _before_ the
+ page is shown. This is very useful if the contents of some widgets
+ on page A depend on the contents of some other widgets on page B.
+ </li>
+ See {@link KTabCtlSignals} for signals emitted by KTabCtl
+ @author Alexander Sanda (alex@darkstar.ping.at)
+
+ @version $Id$
+
+ @short Tabbed dialog with extended features.
+
+*/
+public class KTabCtl extends QWidget {
+ protected KTabCtl(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KTabCtl(QWidget parent, String name) {
+ super((Class) null);
+ newKTabCtl(parent,name);
+ }
+ private native void newKTabCtl(QWidget parent, String name);
+ public KTabCtl(QWidget parent) {
+ super((Class) null);
+ newKTabCtl(parent);
+ }
+ private native void newKTabCtl(QWidget parent);
+ public KTabCtl() {
+ super((Class) null);
+ newKTabCtl();
+ }
+ private native void newKTabCtl();
+ public native void show();
+ public native void setFont(QFont font);
+ public native void setTabFont(QFont font);
+ public native void addTab(QWidget arg1, String arg2);
+ public native boolean isTabEnabled(String arg1);
+ public native void setTabEnabled(String arg1, boolean arg2);
+ public native void setBorder(boolean arg1);
+ public native void setShape(int shape);
+ public native QSize sizeHint();
+ protected native void paintEvent(QPaintEvent arg1);
+ protected native void resizeEvent(QResizeEvent arg1);
+ protected native void setSizes();
+ protected native QRect getChildRect();
+ protected native void showTab(int i);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KTabCtlSignals.java b/kdejava/koala/org/kde/koala/KTabCtlSignals.java
new file mode 100644
index 00000000..56161096
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTabCtlSignals.java
@@ -0,0 +1,15 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QRect;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QSize;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+public interface KTabCtlSignals {
+ void tabSelected(int arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KTabWidget.java b/kdejava/koala/org/kde/koala/KTabWidget.java
new file mode 100644
index 00000000..6b46fa91
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTabWidget.java
@@ -0,0 +1,95 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QWheelEvent;
+import org.kde.qt.QTab;
+import org.kde.qt.QTabWidget;
+
+/**
+
+ \brief A widget containing multiple tabs
+ See {@link KTabWidgetSignals} for signals emitted by KTabWidget
+ @short \brief A widget containing multiple tabs
+
+*/
+public class KTabWidget extends QTabWidget {
+ protected KTabWidget(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KTabWidget(QWidget parent, String name, int f) {
+ super((Class) null);
+ newKTabWidget(parent,name,f);
+ }
+ private native void newKTabWidget(QWidget parent, String name, int f);
+ public KTabWidget(QWidget parent, String name) {
+ super((Class) null);
+ newKTabWidget(parent,name);
+ }
+ private native void newKTabWidget(QWidget parent, String name);
+ public KTabWidget(QWidget parent) {
+ super((Class) null);
+ newKTabWidget(parent);
+ }
+ private native void newKTabWidget(QWidget parent);
+ public KTabWidget() {
+ super((Class) null);
+ newKTabWidget();
+ }
+ private native void newKTabWidget();
+ public native void setTabColor(QWidget arg1, QColor color);
+ public native QColor tabColor(QWidget arg1);
+ public native boolean hoverCloseButtonDelayed();
+ public native boolean tabCloseActivatePrevious();
+ public native boolean automaticResizeTabs();
+ public native void setTabBarHidden(boolean hide);
+ public native boolean isTabBarHidden();
+ public native void insertTab(QWidget arg1, String arg2, int index);
+ public native void insertTab(QWidget arg1, String arg2);
+ public native void insertTab(QWidget child, QIconSet iconset, String label, int index);
+ public native void insertTab(QWidget child, QIconSet iconset, String label);
+ public native void insertTab(QWidget arg1, QTab arg2, int index);
+ public native void insertTab(QWidget arg1, QTab arg2);
+ public native void changeTab(QWidget arg1, String arg2);
+ public native void changeTab(QWidget child, QIconSet iconset, String label);
+ public native String label(int arg1);
+ public native String tabLabel(QWidget arg1);
+ public native void setTabLabel(QWidget arg1, String arg2);
+ public native void moveTab(int arg1, int arg2);
+ public native void removePage(QWidget w);
+ public native void setTabReorderingEnabled(boolean enable);
+ public native void setHoverCloseButton(boolean enable);
+ public native void setHoverCloseButtonDelayed(boolean delayed);
+ public native void setTabCloseActivatePrevious(boolean previous);
+ public native void setAutomaticResizeTabs(boolean enable);
+ protected native void mouseDoubleClickEvent(QMouseEvent e);
+ protected native void mousePressEvent(QMouseEvent arg1);
+ protected native void dragMoveEvent(QDragMoveEvent arg1);
+ protected native void dropEvent(QDropEvent arg1);
+ protected native int tabBarWidthForMaxChars(int maxLength);
+ protected native void wheelEvent(QWheelEvent e);
+ protected native void resizeEvent(QResizeEvent arg1);
+ protected native void receivedDropEvent(int arg1, QDropEvent arg2);
+ protected native void initiateDrag(int arg1);
+ protected native void contextMenu(int arg1, QPoint arg2);
+ protected native void mouseDoubleClick(int arg1);
+ protected native void mouseMiddleClick(int arg1);
+ protected native void closeRequest(int arg1);
+ protected native void wheelDelta(int arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KTabWidgetSignals.java b/kdejava/koala/org/kde/koala/KTabWidgetSignals.java
new file mode 100644
index 00000000..135c617d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTabWidgetSignals.java
@@ -0,0 +1,30 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QDragMoveEvent;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QWheelEvent;
+import org.kde.qt.QTab;
+
+public interface KTabWidgetSignals {
+ void testCanDecode(QDragMoveEvent e, boolean accept);
+ void receivedDropEvent(QDropEvent arg1);
+ void receivedDropEvent(QWidget arg1, QDropEvent arg2);
+ void initiateDrag(QWidget arg1);
+ void contextMenu(QPoint arg1);
+ void contextMenu(QWidget arg1, QPoint arg2);
+ void movedTab(int arg1, int arg2);
+ void mouseDoubleClick();
+ void mouseDoubleClick(QWidget arg1);
+ void mouseMiddleClick();
+ void mouseMiddleClick(QWidget arg1);
+ void closeRequest(QWidget arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KTar.java b/kdejava/koala/org/kde/koala/KTar.java
new file mode 100644
index 00000000..47487491
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTar.java
@@ -0,0 +1,95 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QIODevice;
+import org.kde.qt.QIODeviceInterface;
+
+/**
+
+ A class for reading / writing (optionally compressed) tar archives.
+ KTar allows you to read and write tar archives, including those
+ that are compressed using gzip or bzip2.
+ @author Torben Weis <weis@kde.org>, David Faure <faure@kde.org>
+
+ @short A class for reading / writing (optionally compressed) tar archives.
+
+*/
+public class KTar extends KArchive {
+ protected KTar(Class dummy){super((Class) null);}
+ /**
+ Creates an instance that operates on the given filename
+ using the compression filter associated to given mimetype.
+ @param filename is a local path (e.g. "/home/weis/myfile.tgz")
+ @param mimetype "application/x-gzip" or "application/x-bzip2"
+ Do not use application/x-tgz or similar - you only need to
+ specify the compression layer ! If the mimetype is omitted, it
+ will be determined from the filename.
+ @short Creates an instance that operates on the given filename using the compression filter associated to given mimetype.
+ */
+ public KTar(String filename, String mimetype) {
+ super((Class) null);
+ newKTar(filename,mimetype);
+ }
+ private native void newKTar(String filename, String mimetype);
+ public KTar(String filename) {
+ super((Class) null);
+ newKTar(filename);
+ }
+ private native void newKTar(String filename);
+ /**
+ Creates an instance that operates on the given device.
+ The device can be compressed (KFilterDev) or not (QFile, etc.).
+ @warning Do not assume that giving a QFile here will decompress the file,
+ in case it's compressed!
+ @param dev the device to read from. If the source is compressed, the
+ QIODevice must take care of decompression
+ @short Creates an instance that operates on the given device.
+ */
+ public KTar(QIODeviceInterface dev) {
+ super((Class) null);
+ newKTar(dev);
+ }
+ private native void newKTar(QIODeviceInterface dev);
+ /**
+ The name of the tar file, as passed to the constructor
+ Null if you used the QIODevice constructor.
+ @return the name of the file, or null if unknown
+
+ @short The name of the tar file, as passed to the constructor Null if you used the QIODevice constructor.
+ */
+ public native String fileName();
+ /**
+ Special function for setting the "original file name" in the gzip header,
+ when writing a tar.gz file. It appears when using in the "file" command,
+ for instance. Should only be called if the underlying device is a KFilterDev!
+ @param fileName the original file name
+ @short Special function for setting the "original file name" in the gzip header, when writing a tar.
+ */
+ public native void setOrigFileName(String fileName);
+ public native boolean writeSymLink(String name, String target, String user, String group, long perm, int atime, int mtime, int ctime);
+ public native boolean writeDir(String name, String user, String group);
+ public native boolean writeDir(String name, String user, String group, long perm, int atime, int mtime, int ctime);
+ public native boolean prepareWriting(String name, String user, String group, int size);
+ public native boolean prepareWriting(String name, String user, String group, int size, long perm, int atime, int mtime, int ctime);
+ public native boolean doneWriting(int size);
+ /**
+ Opens the archive for reading.
+ Parses the directory listing of the archive
+ and creates the KArchiveDirectory/KArchiveFile entries.
+ @param mode the mode of the file
+ @short Opens the archive for reading.
+ */
+ protected native boolean openArchive(int mode);
+ protected native boolean closeArchive();
+ protected native boolean prepareWriting_impl(String name, String user, String group, int size, long perm, int atime, int mtime, int ctime);
+ protected native boolean writeDir_impl(String name, String user, String group, long perm, int atime, int mtime, int ctime);
+ protected native boolean writeSymLink_impl(String name, String target, String user, String group, long perm, int atime, int mtime, int ctime);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KTempDir.java b/kdejava/koala/org/kde/koala/KTempDir.java
new file mode 100644
index 00000000..542817bd
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTempDir.java
@@ -0,0 +1,124 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QDir;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The KTempDir class creates a unique directory for temporary use.
+ This is especially useful if you need to create a directory in a world
+ writable directory like /tmp without being vulnerable to so called
+ symlink attacks.
+ KDE applications, however, shouldn't create files or directories in /tmp in the first
+ place but use the "tmp" resource instead. The standard KTempDir
+ constructor will do that by default.
+ To create a temporary directory that starts with a certain name
+ in the "tmp" resource, one should use:
+ KTempDir(locateLocal("tmp", prefix));
+ KTempFile does not create any missing directories, but locateLocal() does.
+ See also KStandardDirs
+ @author Joseph Wenninger <jowenn@kde.org>
+
+ @short The KTempDir class creates a unique directory for temporary use.
+
+*/
+public class KTempDir implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KTempDir(Class dummy){}
+
+ /**
+ Creates a temporary directory with the name:
+ \p \<directoryPrefix\>\<six letters\>
+ The default <pre>directoryPrefix</pre> is "$KDEHOME/tmp-$HOST/appname"
+ @param directoryPrefix the prefix of the file name, or
+ null for the default value
+ @param mode the file permissions,
+ almost always in octal. The first digit selects permissions for
+ the user who owns the file: read (4), write (2), and execute
+ (1); the second selects permissions for other users in the
+ file's group, with the same values; and the fourth for other
+ users not in the file's group, with the same values.
+ @short Creates a temporary directory with the name: \p \<directoryPrefix\>\<six letters\>
+ */
+ public KTempDir(String directoryPrefix, int mode) {
+ newKTempDir(directoryPrefix,mode);
+ }
+ private native void newKTempDir(String directoryPrefix, int mode);
+ public KTempDir(String directoryPrefix) {
+ newKTempDir(directoryPrefix);
+ }
+ private native void newKTempDir(String directoryPrefix);
+ public KTempDir() {
+ newKTempDir();
+ }
+ private native void newKTempDir();
+ /**
+ Turn automatic deletion on or off.
+ Automatic deletion is off by default.
+ @param autoDelete true to turn automatic deletion on
+ @short Turn automatic deletion on or off.
+ */
+ public native void setAutoDelete(boolean autoDelete);
+ /**
+ Returns the status of the directory creation based on errno. (see errno.h)
+ 0 means OK.
+ You should check the status after object creation to check
+ whether a directory could be created in the first place.
+ @return the errno status, 0 means ok
+
+ @short Returns the status of the directory creation based on errno.
+ */
+ public native int status();
+ /**
+ Returns the full path and name of the directory, including a trailing '/'.
+ @return The name of the directory, or null if creating the
+ directory has failed or the directory has been unlinked
+
+ @short Returns the full path and name of the directory, including a trailing '/'.
+ */
+ public native String name();
+ /**
+ Returns the QDir of the temporary directory.
+ @return QDir directory information of the directory or 0 if their is no managed directory
+ The caller has to free the pointer open for writing to the
+
+ @short Returns the QDir of the temporary directory.
+ */
+ public native QDir qDir();
+ /**
+ Deletes the directory recursively
+ @short Deletes the directory recursively
+ */
+ public native void unlink();
+ /**
+ @return true if a temporary directory has successfully been created and not been unlinked yet
+
+ @short
+ */
+ public native boolean existing();
+ /**
+ Creates a "random" directory with specified mode
+ @param directoryPrefix to use when creating temp directory
+ (the rest is generated randomly)
+ @param mode directory permissions
+ @return bool true upon sucess
+
+ @short Creates a "random" directory with specified mode
+ */
+ protected native boolean create(String directoryPrefix, int mode);
+ /**
+ Sets the errno value
+ @param error the value to set the status to.
+ @short Sets the errno value
+ */
+ protected native void setError(int error);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KTempFile.java b/kdejava/koala/org/kde/koala/KTempFile.java
new file mode 100644
index 00000000..bf7e9e35
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTempFile.java
@@ -0,0 +1,184 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QFile;
+import org.kde.qt.QDataStream;
+import org.kde.qt.QTextStream;
+
+/**
+
+ The KTempFile class creates and opens a unique file for temporary use.
+ This is especially useful if you need to create a file in a world
+ writable directory like /tmp without being vulnerable to so called
+ symlink attacks.
+ KDE applications, however, shouldn't create files in /tmp in the first
+ place but use the "tmp" resource instead. The standard KTempFile
+ constructor will do that by default.
+ To create a temporary file that starts with a certain name
+ in the "tmp" resource, one should use:
+ KTempFile(locateLocal("tmp", prefix), extension);
+ KTempFile does not create any missing directories, but locateLocal() does.
+ See also KStandardDirs
+ @author Waldo Bastian <bastian@kde.org>
+
+ @short The KTempFile class creates and opens a unique file for temporary use.
+
+*/
+public class KTempFile implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KTempFile(Class dummy){}
+
+ /**
+ Creates a temporary file with the name:
+ \<filePrefix>\<six letters>\<fileExtension>
+ The default <code>filePrefix</code> is "$KDEHOME/tmp-$HOST/appname/"
+ The default <code>fileExtension</code> is ".tmp"
+ @param filePrefix the prefix of the file name, or null
+ for the default value
+ @param fileExtension the extension of the prefix, or null for the
+ default value
+ @param mode the file permissions
+ @short Creates a temporary file with the name: \<filePrefix>\<six letters>\<fileExtension>
+ */
+ public KTempFile(String filePrefix, String fileExtension, int mode) {
+ newKTempFile(filePrefix,fileExtension,mode);
+ }
+ private native void newKTempFile(String filePrefix, String fileExtension, int mode);
+ public KTempFile(String filePrefix, String fileExtension) {
+ newKTempFile(filePrefix,fileExtension);
+ }
+ private native void newKTempFile(String filePrefix, String fileExtension);
+ public KTempFile(String filePrefix) {
+ newKTempFile(filePrefix);
+ }
+ private native void newKTempFile(String filePrefix);
+ public KTempFile() {
+ newKTempFile();
+ }
+ private native void newKTempFile();
+ /**
+ Turn automatic deletion on or off.
+ Automatic deletion is off by default.
+ @param autoDelete true to turn automatic deletion on
+ @short Turn automatic deletion on or off.
+ */
+ public native void setAutoDelete(boolean autoDelete);
+ /**
+ Returns the status of the file based on errno. (see errno.h)
+ 0 means OK.
+ You should check the status after object creation to check
+ whether a file could be created in the first place.
+ You may check the status after closing the file to verify that
+ the file has indeed been written correctly.
+ @return the errno status, 0 means ok
+
+ @short Returns the status of the file based on errno.
+ */
+ public native int status();
+ /**
+ Returns the full path and name of the file.
+ Note that in most circumstances the file needs to be closed
+ before you use it by name.
+ In particular, if another process or software part needs to write data
+ to the file based on the filename, the file should be closed before doing
+ so. Otherwise the act of closing the file later on may cause the file to
+ get truncated to a zero-size, resulting in an unexpected loss of the data.
+ In some cases there is only interest in the filename itself but where the
+ actual presence of a file with such name is a problem. In that case the
+ file should first be both closed and unlinked. Such usage is not recommended
+ since it may lead to the kind of symlink vulnerabilities that the KTempFile
+ design attempts to prevent.
+ @return The name of the file, or null if opening the
+ file has failed or the file has been unlinked already.
+
+ @short Returns the full path and name of the file.
+ */
+ public native String name();
+ /**
+ An integer file descriptor open for writing to the file
+ @return The file descriptor, or a negative number if opening
+ the file failed
+
+ @short An integer file descriptor open for writing to the file
+ */
+ public native int handle();
+ /**
+ Returns the FILE of the temporary file.
+ @return FILE* stream open for writing to the file, or 0
+ if opening the file failed
+
+ @short Returns the FILE of the temporary file.
+ */
+ // FILE* fstream(); >>>> NOT CONVERTED
+ /**
+ Returns the QTextStream for writing.
+ @return QTextStream open for writing to the file, or 0
+ if opening the file failed
+
+ @short Returns the QTextStream for writing.
+ */
+ public native QTextStream textStream();
+ /**
+ Returns a QDataStream for writing.
+ @return QDataStream open for writing to the file, or 0
+ if opening the file failed
+
+ @short Returns a QDataStream for writing.
+ */
+ public native QDataStream dataStream();
+ /**
+ Returns a QFile.
+ @return A QFile open for writing to the file, or 0 if
+ opening the file failed.
+
+ @short Returns a QFile.
+ */
+ public native QFile file();
+ /**
+ Unlinks the file from the directory. The file is
+ deleted once the last reader/writer closes it.
+ @short Unlinks the file from the directory.
+ */
+ public native void unlink();
+ /**
+ Flushes file to disk (fsync).
+ If you want to be as sure as possible that the file data has
+ actually been physically stored on disk you need to call sync().
+ See status() for details about errors.
+ @return true if successful, or false if an error has occurred.
+
+ @short Flushes file to disk (fsync).
+ */
+ public native boolean sync();
+ /**
+ Closes the file.
+ See status() for details about errors.
+ @return true if successful, or false if an error has occurred.
+
+ @short Closes the file.
+ */
+ public native boolean close();
+ /**
+ Constructor used by KSaveFile
+ @short Constructor used by KSaveFile
+ */
+ public KTempFile(boolean arg1) {
+ newKTempFile(arg1);
+ }
+ private native void newKTempFile(boolean arg1);
+ /**
+ Create function used internally by KTempFile and KSaveFile
+ @short
+ */
+ protected native boolean create(String filePrefix, String fileExtension, int mode);
+ protected native void setError(int error);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KTextBrowser.java b/kdejava/koala/org/kde/koala/KTextBrowser.java
new file mode 100644
index 00000000..4a2fa413
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTextBrowser.java
@@ -0,0 +1,106 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPoint;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWheelEvent;
+import org.kde.qt.QTextBrowser;
+
+/**
+
+ An extended QTextBrowser.
+ By default it will
+ invoke the system mailer or the system browser when a link is
+ activated, or it can emit the signal urlClick() or mailClick()
+ when a link is activated.
+ \image html ktextbrowser.png "KDE Text Browser"
+ See {@link KTextBrowserSignals} for signals emitted by KTextBrowser
+ @author Espen Sand (espensa@online.no)
+
+ @short Extended QTextBrowser.
+
+*/
+public class KTextBrowser extends QTextBrowser {
+ protected KTextBrowser(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor.
+ @param parent Parent of the widget.
+ @param name Widget name.
+ @param notifyClick <code>true</code> causes signals to be emitted.
+ @short Constructor.
+ */
+ public KTextBrowser(QWidget parent, String name, boolean notifyClick) {
+ super((Class) null);
+ newKTextBrowser(parent,name,notifyClick);
+ }
+ private native void newKTextBrowser(QWidget parent, String name, boolean notifyClick);
+ public KTextBrowser(QWidget parent, String name) {
+ super((Class) null);
+ newKTextBrowser(parent,name);
+ }
+ private native void newKTextBrowser(QWidget parent, String name);
+ public KTextBrowser(QWidget parent) {
+ super((Class) null);
+ newKTextBrowser(parent);
+ }
+ private native void newKTextBrowser(QWidget parent);
+ public KTextBrowser() {
+ super((Class) null);
+ newKTextBrowser();
+ }
+ private native void newKTextBrowser();
+ /**
+ Decide whether a click on a link should be handled internally
+ or if a signal should be emitted.
+ @param notifyClick <code>true</code> causes signals to be emitted.
+ @short Decide whether a click on a link should be handled internally or if a signal should be emitted.
+ */
+ public native void setNotifyClick(boolean notifyClick);
+ /**
+ Returns whether a click on a link should be handled internally
+ or if a signal should be emitted.
+ @short Returns whether a click on a link should be handled internally or if a signal should be emitted.
+ */
+ public native boolean isNotifyClick();
+ /**
+ Reimplemented to NOT set the source but to do the special handling.
+ Do not call.
+ @short Reimplemented to NOT set the source but to do the special handling.
+ */
+ public native void setSource(String name);
+ /**
+ Makes sure Key_Escape is ignored
+ @short Makes sure Key_Escape is ignored
+ */
+ protected native void keyPressEvent(QKeyEvent e);
+ /**
+ Make sure we use our own hand cursor
+ @short Make sure we use our own hand cursor
+ */
+ protected native void viewportMouseMoveEvent(QMouseEvent e);
+ /**
+ Reimplemented to support Qt2 behavior (Ctrl-Wheel = fast scroll)
+ @short Reimplemented to support Qt2 behavior (Ctrl-Wheel = fast scroll)
+ */
+ protected native void contentsWheelEvent(QWheelEvent e);
+ /**
+ Re-implemented for internal reasons. API not affected.
+ See QLineEdit.createPopupMenu().
+ @short Re-implemented for internal reasons.
+ */
+ protected native QPopupMenu createPopupMenu(QPoint pos);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KTextBrowserSignals.java b/kdejava/koala/org/kde/koala/KTextBrowserSignals.java
new file mode 100644
index 00000000..b8080063
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTextBrowserSignals.java
@@ -0,0 +1,29 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPoint;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWheelEvent;
+
+public interface KTextBrowserSignals {
+ /**
+ Emitted when a mail link has been activated and the widget has
+ been configured to emit the signal.
+ @param name The destination name. It is null at the moment.
+ @param address The destination address.
+ @short Emitted when a mail link has been activated and the widget has been configured to emit the signal.
+ */
+ void mailClick(String name, String address);
+ /**
+ Emitted if mailClick() is not emitted and the widget has been
+ configured to emit the signal.
+ @param url The destination address.
+ @short Emitted if mailClick() is not emitted and the widget has been configured to emit the signal.
+ */
+ void urlClick(String url);
+}
diff --git a/kdejava/koala/org/kde/koala/KTextEdit.java b/kdejava/koala/org/kde/koala/KTextEdit.java
new file mode 100644
index 00000000..c15958ed
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTextEdit.java
@@ -0,0 +1,148 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPoint;
+import org.kde.qt.QFocusEvent;
+import org.kde.qt.QKeyEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QPalette;
+import org.kde.qt.QWheelEvent;
+import org.kde.qt.QTextEdit;
+
+/**
+
+ This is just a little subclass of QTextEdit, implementing
+ some standard KDE features, like Cursor auto-hiding, configurable
+ wheelscrolling (fast-scroll or zoom) and deleting of entire
+ words with Ctrl-Backspace or Ctrl-Delete.
+ Basic rule: whenever you want to use QTextEdit, use KTextEdit!
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short A KDE'ified QTextEdit.
+ @see org.kde.qt.QTextEdit
+
+*/
+public class KTextEdit extends QTextEdit {
+ protected KTextEdit(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KTextEdit object. See QTextEdit.QTextEdit
+ for details.
+ @short Constructs a KTextEdit object.
+ */
+ public KTextEdit(String text, String context, QWidget parent, String name) {
+ super((Class) null);
+ newKTextEdit(text,context,parent,name);
+ }
+ private native void newKTextEdit(String text, String context, QWidget parent, String name);
+ public KTextEdit(String text, String context, QWidget parent) {
+ super((Class) null);
+ newKTextEdit(text,context,parent);
+ }
+ private native void newKTextEdit(String text, String context, QWidget parent);
+ public KTextEdit(String text, String context) {
+ super((Class) null);
+ newKTextEdit(text,context);
+ }
+ private native void newKTextEdit(String text, String context);
+ public KTextEdit(String text) {
+ super((Class) null);
+ newKTextEdit(text);
+ }
+ private native void newKTextEdit(String text);
+ /**
+ Constructs a KTextEdit object. See QTextEdit.QTextEdit
+ for details.
+ @short Constructs a KTextEdit object.
+ */
+ public KTextEdit(QWidget parent, String name) {
+ super((Class) null);
+ newKTextEdit(parent,name);
+ }
+ private native void newKTextEdit(QWidget parent, String name);
+ public KTextEdit(QWidget parent) {
+ super((Class) null);
+ newKTextEdit(parent);
+ }
+ private native void newKTextEdit(QWidget parent);
+ public KTextEdit() {
+ super((Class) null);
+ newKTextEdit();
+ }
+ private native void newKTextEdit();
+ /**
+ Reimplemented to set a proper "deactivated" background color.
+ @short Reimplemented to set a proper "deactivated" background color.
+ */
+ public native void setReadOnly(boolean readOnly);
+ /**
+ Reimplemented for tracking custom palettes.
+ @short Reimplemented for tracking custom palettes.
+ */
+ public native void setPalette(QPalette palette);
+ /**
+ Turns spell checking for this text edit on or off.
+ @short Turns spell checking for this text edit on or off.
+ @see #checkSpellingEnabled
+ */
+ public native void setCheckSpellingEnabled(boolean check);
+ /**
+ Returns true if spell checking is enabled for this text edit.
+ @ see setCheckSpellingEnabled()
+ @short Returns true if spell checking is enabled for this text edit.
+ */
+ public native boolean checkSpellingEnabled();
+ public native void highLightWord(int length, int pos);
+ /**
+ Create a modal dialog to check the spelling. This slot will not return
+ until spell checking has been completed.
+ @short Create a modal dialog to check the spelling.
+ */
+ public native void checkSpelling();
+ /**
+ Reimplemented to catch "delete word" key events.
+ @short Reimplemented to catch "delete word" key events.
+ */
+ protected native void keyPressEvent(QKeyEvent arg1);
+ /**
+ Reimplemented to instantiate a KDictSpellingHighlighter, if
+ spellchecking is enabled.
+ @short Reimplemented to instantiate a KDictSpellingHighlighter, if spellchecking is enabled.
+ */
+ protected native void focusInEvent(QFocusEvent arg1);
+ /**
+ Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel
+ or zoom.
+ @short Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel or zoom.
+ */
+ protected native void contentsWheelEvent(QWheelEvent arg1);
+ /**
+ Deletes a word backwards from the current cursor position,
+ if available.
+ @short Deletes a word backwards from the current cursor position, if available.
+ */
+ protected native void deleteWordBack();
+ /**
+ Deletes a word forwards from the current cursor position,
+ if available.
+ @short Deletes a word forwards from the current cursor position, if available.
+ */
+ protected native void deleteWordForward();
+ /**
+ Reimplemented from QTextEdit to add spelling related items
+ when appropriate.
+ @short Reimplemented from QTextEdit to add spelling related items when appropriate.
+ */
+ protected native QPopupMenu createPopupMenu(QPoint pos);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KTimeWidget.java b/kdejava/koala/org/kde/koala/KTimeWidget.java
new file mode 100644
index 00000000..914566a9
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTimeWidget.java
@@ -0,0 +1,80 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.Date;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ This widget can be used to display or allow user selection of time.
+ \image html ktimewidget.png "KDE Time Widget"
+ See {@link KTimeWidgetSignals} for signals emitted by KTimeWidget
+ @author Hans Petter Bieker <bieker@kde.org>
+
+ @short A time selection widget.
+
+*/
+public class KTimeWidget extends QWidget {
+ protected KTimeWidget(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a time selection widget.
+ @short Constructs a time selection widget.
+ */
+ public KTimeWidget(QWidget parent, String name) {
+ super((Class) null);
+ newKTimeWidget(parent,name);
+ }
+ private native void newKTimeWidget(QWidget parent, String name);
+ public KTimeWidget(QWidget parent) {
+ super((Class) null);
+ newKTimeWidget(parent);
+ }
+ private native void newKTimeWidget(QWidget parent);
+ public KTimeWidget() {
+ super((Class) null);
+ newKTimeWidget();
+ }
+ private native void newKTimeWidget();
+ /**
+ Constructs a time selection widget with the initial time set to
+ <code>time.</code>
+ @short Constructs a time selection widget with the initial time set to <code>time.</code>
+ */
+ public KTimeWidget(Date time, QWidget parent, String name) {
+ super((Class) null);
+ newKTimeWidget(time,parent,name);
+ }
+ private native void newKTimeWidget(Date time, QWidget parent, String name);
+ public KTimeWidget(Date time, QWidget parent) {
+ super((Class) null);
+ newKTimeWidget(time,parent);
+ }
+ private native void newKTimeWidget(Date time, QWidget parent);
+ public KTimeWidget(Date time) {
+ super((Class) null);
+ newKTimeWidget(time);
+ }
+ private native void newKTimeWidget(Date time);
+ /**
+ Returns the currently selected time.
+ @short Returns the currently selected time.
+ */
+ public native Date time();
+ /**
+ Changes the selected time to <code>time.</code>
+ @short Changes the selected time to <code>time.</code>
+ */
+ public native void setTime(Date time);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KTimeWidgetSignals.java b/kdejava/koala/org/kde/koala/KTimeWidgetSignals.java
new file mode 100644
index 00000000..0ad704c9
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTimeWidgetSignals.java
@@ -0,0 +1,16 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.Date;
+import org.kde.qt.QWidget;
+
+public interface KTimeWidgetSignals {
+ /**
+ Emitted whenever the time of the widget
+ is changed, either with setTime() or via user selection.
+ @short Emitted whenever the time of the widget is changed, either with setTime() or via user selection.
+ */
+ void valueChanged(Date time);
+}
diff --git a/kdejava/koala/org/kde/koala/KTipDatabase.java b/kdejava/koala/org/kde/koala/KTipDatabase.java
new file mode 100644
index 00000000..56087877
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTipDatabase.java
@@ -0,0 +1,74 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A database for tips-of-the-day.
+ This class provides convenient access to a database containing
+ tips of the day. The database is stored in a XML file and parsed
+ when a KTipDatabase object is created.
+ Once the file is read in, you can access the tips to display
+ them in the tip of the day dialog.
+ The state of the tipdialog is saved to the applications's config file
+ in the group "TipOfDay" with a boolean entry "RunOnStart". Check this value
+ if you want to allow the user to enable/disable the tipdialog in the
+ application's configuration dialog.
+ @author Matthias Hoelzer-Kluepfel <mhk@kde.org>
+
+ @short A database for tips-of-the-day.
+
+*/
+public class KTipDatabase implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KTipDatabase(Class dummy){}
+
+ /**
+ This constructor reads in the tips from a file with the given name. If
+ no name is given, a file called 'application-name/tips' will be loaded.
+ @param tipFile The absolute path to the tips file.
+ @short This constructor reads in the tips from a file with the given name.
+ */
+ public KTipDatabase(String tipFile) {
+ newKTipDatabase(tipFile);
+ }
+ private native void newKTipDatabase(String tipFile);
+ public KTipDatabase() {
+ newKTipDatabase();
+ }
+ private native void newKTipDatabase();
+ /**
+ This constructor takes a list of files that will be merged. This constructor
+ essentially behaves like the one above. It returns when tipFiles is empty.
+ @param tipFiles A list of absolute paths to the tips file
+ @short This constructor takes a list of files that will be merged.
+ */
+ public KTipDatabase(String[] tipFiles) {
+ newKTipDatabase(tipFiles);
+ }
+ private native void newKTipDatabase(String[] tipFiles);
+ /**
+ Returns the current tip.
+ @short Returns the current tip.
+ */
+ public native String tip();
+ /**
+ The next tip will become the current one.
+ @short The next tip will become the current one.
+ */
+ public native void nextTip();
+ /**
+ The previous tip will become the current one.
+ @short The previous tip will become the current one.
+ */
+ public native void prevTip();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KTipDialog.java b/kdejava/koala/org/kde/koala/KTipDialog.java
new file mode 100644
index 00000000..f2df501f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTipDialog.java
@@ -0,0 +1,97 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ A Tip-of-the-Day dialog.
+ This dialog class presents a tip-of-the-day.
+ @author Matthias Hoelzer-Kluepfel <mhk@caldera.de>
+
+ @short A Tip-of-the-Day dialog.
+
+*/
+public class KTipDialog extends KDialog {
+ protected KTipDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a tip dialog.
+ @param db TipDatabase that should be used by the TipDialog.
+ @param parent Parent widget of TipDialog.
+ @param name The object name.
+ @short Construct a tip dialog.
+ */
+ public KTipDialog(KTipDatabase db, QWidget parent, String name) {
+ super((Class) null);
+ newKTipDialog(db,parent,name);
+ }
+ private native void newKTipDialog(KTipDatabase db, QWidget parent, String name);
+ public KTipDialog(KTipDatabase db, QWidget parent) {
+ super((Class) null);
+ newKTipDialog(db,parent);
+ }
+ private native void newKTipDialog(KTipDatabase db, QWidget parent);
+ public KTipDialog(KTipDatabase db) {
+ super((Class) null);
+ newKTipDialog(db);
+ }
+ private native void newKTipDialog(KTipDatabase db);
+ /**
+ Shows a tip.
+ This static method is all that is needed to add a tip-of-the-day
+ dialog to an application. It will pop up the dialog, unless the
+ user has asked that the dialog does not pop up on startup.
+ Note that you probably want an item in the help menu calling
+ this method with force=true.
+ @param parent Parent widget of TipDialog.
+ @param tipFile The name of the tip file. It has be relative to the "data"
+ resource of KStandardDirs
+ @param force If true, the dialog is show, even when the users
+ disabled it.
+ @short Shows a tip.
+ */
+ public static native void showTip(QWidget parent, String tipFile, boolean force);
+ public static native void showTip(QWidget parent, String tipFile);
+ public static native void showTip(QWidget parent);
+ /**
+ Shows a tip
+ This method behaves essentially as the one above, but expects a list of tips
+ @param parent Parent widget of TipDialog.
+ @param tipFiles A List of tip files. Each has be relative to the "data"
+ resource of KStandardDirs
+ @param force If true, the dialog is show, even when the users
+ disabled it.
+ @short Shows a tip
+ */
+ public static native void showMultiTip(QWidget parent, String[] tipFiles, boolean force);
+ public static native void showMultiTip(QWidget parent, String[] tipFiles);
+ /**
+ Shows a tip.
+ This methods calls showTip() with the applications main window as parent.
+ @short Shows a tip.
+ */
+ public static native void showTip(String tipFile, boolean force);
+ public static native void showTip(String tipFile);
+ public static native void showTip();
+ /**
+ Toggles the start behavior.
+ Normally, the user can disable the display of the tip in the dialog.
+ This is just a way to change this setting from outside.
+ @short Toggles the start behavior.
+ */
+ public static native void setShowOnStart(boolean show);
+ public native boolean eventFilter(QObject arg1, QEvent arg2);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KToggleAction.java b/kdejava/koala/org/kde/koala/KToggleAction.java
new file mode 100644
index 00000000..d4b0a3e5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KToggleAction.java
@@ -0,0 +1,245 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+
+/**
+
+ Checkbox like action.
+ This action provides two states: checked or not.
+ See {@link KToggleActionSignals} for signals emitted by KToggleAction
+ @short Checkbox like action.
+
+*/
+public class KToggleAction extends KAction {
+ protected KToggleAction(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a toggle action with text and potential keyboard
+ accelerator but nothing else. Use this only if you really
+ know what you are doing.
+ @param text The text that will be displayed.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short Constructs a toggle action with text and potential keyboard accelerator but nothing else.
+ */
+ public KToggleAction(String text, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKToggleAction(text,cut,parent,name);
+ }
+ private native void newKToggleAction(String text, KShortcut cut, QObject parent, String name);
+ public KToggleAction(String text, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKToggleAction(text,cut,parent);
+ }
+ private native void newKToggleAction(String text, KShortcut cut, QObject parent);
+ public KToggleAction(String text, KShortcut cut) {
+ super((Class) null);
+ newKToggleAction(text,cut);
+ }
+ private native void newKToggleAction(String text, KShortcut cut);
+ public KToggleAction(String text) {
+ super((Class) null);
+ newKToggleAction(text);
+ }
+ private native void newKToggleAction(String text);
+ /**
+ @param text The text that will be displayed.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KToggleAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKToggleAction(text,cut,receiver,slot,parent,name);
+ }
+ private native void newKToggleAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KToggleAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKToggleAction(text,cut,receiver,slot,parent);
+ }
+ private native void newKToggleAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param text The text that will be displayed.
+ @param pix The icons that go with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KToggleAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKToggleAction(text,pix,cut,parent,name);
+ }
+ private native void newKToggleAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name);
+ public KToggleAction(String text, QIconSet pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKToggleAction(text,pix,cut,parent);
+ }
+ private native void newKToggleAction(String text, QIconSet pix, KShortcut cut, QObject parent);
+ public KToggleAction(String text, QIconSet pix, KShortcut cut) {
+ super((Class) null);
+ newKToggleAction(text,pix,cut);
+ }
+ private native void newKToggleAction(String text, QIconSet pix, KShortcut cut);
+ public KToggleAction(String text, QIconSet pix) {
+ super((Class) null);
+ newKToggleAction(text,pix);
+ }
+ private native void newKToggleAction(String text, QIconSet pix);
+ /**
+ @param text The text that will be displayed.
+ @param pix The dynamically loaded icon that goes with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KToggleAction(String text, String pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKToggleAction(text,pix,cut,parent,name);
+ }
+ private native void newKToggleAction(String text, String pix, KShortcut cut, QObject parent, String name);
+ public KToggleAction(String text, String pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKToggleAction(text,pix,cut,parent);
+ }
+ private native void newKToggleAction(String text, String pix, KShortcut cut, QObject parent);
+ public KToggleAction(String text, String pix, KShortcut cut) {
+ super((Class) null);
+ newKToggleAction(text,pix,cut);
+ }
+ private native void newKToggleAction(String text, String pix, KShortcut cut);
+ public KToggleAction(String text, String pix) {
+ super((Class) null);
+ newKToggleAction(text,pix);
+ }
+ private native void newKToggleAction(String text, String pix);
+ /**
+ @param text The text that will be displayed.
+ @param pix The icons that go with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KToggleAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKToggleAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKToggleAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KToggleAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKToggleAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKToggleAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param text The text that will be displayed.
+ @param pix The dynamically loaded icon that goes with this action.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KToggleAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKToggleAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKToggleAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KToggleAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKToggleAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKToggleAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short
+ */
+ public KToggleAction(QObject parent, String name) {
+ super((Class) null);
+ newKToggleAction(parent,name);
+ }
+ private native void newKToggleAction(QObject parent, String name);
+ public KToggleAction(QObject parent) {
+ super((Class) null);
+ newKToggleAction(parent);
+ }
+ private native void newKToggleAction(QObject parent);
+ public KToggleAction() {
+ super((Class) null);
+ newKToggleAction();
+ }
+ private native void newKToggleAction();
+ /**
+ "Plug" or insert this action into a given widget.
+ This will typically be a menu or a toolbar. From this point
+ on, you will never need to directly manipulate the item in the
+ menu or toolbar. You do all enabling/disabling/manipulation
+ directly with your KToggleAction object.
+ @param widget The GUI element to display this action.
+ @param index The index of the item.
+ @short "Plug" or insert this action into a given widget.
+ */
+ public native int plug(QWidget widget, int index);
+ public native int plug(QWidget widget);
+ /**
+ Returns the actual state of the action.
+ @short Returns the actual state of the action.
+ */
+ public native boolean isChecked();
+ /**
+ @return which "exclusive group" this action is part of.
+
+ @short
+ @see #setExclusiveGroup
+ */
+ public native String exclusiveGroup();
+ /**
+ Defines which "exclusive group" this action is part of.
+ In a given exclusive group, only one toggle action can be checked
+ at a any moment. Checking an action unchecks the other actions
+ of the group.
+ @short Defines which "exclusive group" this action is part of.
+ */
+ public native void setExclusiveGroup(String name);
+ /**
+ Defines the text (and icon, tooltip, whatsthis) that should be displayed
+ instead of the normal text, when the action is checked.
+ This feature replaces the checkmark that usually appears in front of the text, in menus.
+ It is useful when the text is mainly a verb: e.g. "Show <foo>"
+ should turn into "Hide <foo>" when activated.
+ If hasIcon(), the icon is kept for the 'checked state', unless
+ <code>checkedItem</code> defines an icon explicitely. Same thing for tooltip and whatsthis.
+ @short Defines the text (and icon, tooltip, whatsthis) that should be displayed instead of the normal text, when the action is checked.
+ */
+ public native void setCheckedState(KGuiItem checkedItem);
+ public native String toolTip();
+ /**
+ Sets the state of the action.
+ @short Sets the state of the action.
+ */
+ public native void setChecked(boolean arg1);
+ protected native void updateChecked(int id);
+ protected native void slotActivated();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KToggleActionSignals.java b/kdejava/koala/org/kde/koala/KToggleActionSignals.java
new file mode 100644
index 00000000..0fa9bd34
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KToggleActionSignals.java
@@ -0,0 +1,12 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+
+public interface KToggleActionSignals {
+ void toggled(boolean arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KToggleFullScreenAction.java b/kdejava/koala/org/kde/koala/KToggleFullScreenAction.java
new file mode 100644
index 00000000..23a2d736
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KToggleFullScreenAction.java
@@ -0,0 +1,60 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ An action for switching between to/from full screen mode. Note that
+ QWidget.isFullScreen() may reflect the new or the old state
+ depending on how the action was triggered (by the application or
+ from the window manager). Also don't try to track the window state
+ yourself. Rely on this action's state (isChecked()) instead.
+ Important: If you need to set/change the fullscreen state manually,
+ use the relevant QWidget function (showFullScreen etc.), do not
+ call directly the slot connected to the toggled() signal. The slot
+ still needs to explicitly set the window state though.
+ @short An action for switching between to/from full screen mode.
+
+*/
+public class KToggleFullScreenAction extends KToggleAction {
+ protected KToggleFullScreenAction(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create a KToggleFullScreenAction
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's parent.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param window the window that will switch to/from full screen mode
+ @param name An internal name for this action.
+ @short Create a KToggleFullScreenAction
+ */
+ public KToggleFullScreenAction(KShortcut cut, QObject receiver, String slot, QObject parent, QWidget window, String name) {
+ super((Class) null);
+ newKToggleFullScreenAction(cut,receiver,slot,parent,window,name);
+ }
+ private native void newKToggleFullScreenAction(KShortcut cut, QObject receiver, String slot, QObject parent, QWidget window, String name);
+ /**
+ Sets the window that will be related to this action.
+ @short Sets the window that will be related to this action.
+ */
+ public native void setWindow(QWidget window);
+ public native void setChecked(boolean arg1);
+ /**
+ @short
+ */
+ public native boolean eventFilter(QObject o, QEvent e);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KToggleToolBarAction.java b/kdejava/koala/org/kde/koala/KToggleToolBarAction.java
new file mode 100644
index 00000000..7d4904c3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KToggleToolBarAction.java
@@ -0,0 +1,54 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ An action that takes care of everything associated with
+ showing or hiding a toolbar by a menu action. It will
+ show or hide the toolbar with the given name when
+ activated, and check or uncheck itself if the toolbar
+ is manually shown or hidden.
+ If you need to perfom some additional action when the
+ toolbar is shown or hidden, connect to the toggled(boolean)
+ signal. It will be emitted after the toolbar's
+ visibility has changed, whenever it changes.
+ @short An action that takes care of everything associated with showing or hiding a toolbar by a menu action.
+
+*/
+public class KToggleToolBarAction extends KToggleAction {
+ protected KToggleToolBarAction(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create a KToggleToolbarAction that manages the toolbar
+ named toolBarName. This can be either the name of a
+ toolbar in an xml ui file, or a toolbar programmatically
+ created with that name.
+ @short Create a KToggleToolbarAction that manages the toolbar named toolBarName.
+ */
+ public KToggleToolBarAction(String toolBarName, String text, KActionCollection parent, String name) {
+ super((Class) null);
+ newKToggleToolBarAction(toolBarName,text,parent,name);
+ }
+ private native void newKToggleToolBarAction(String toolBarName, String text, KActionCollection parent, String name);
+ public KToggleToolBarAction(KToolBar toolBar, String text, KActionCollection parent, String name) {
+ super((Class) null);
+ newKToggleToolBarAction(toolBar,text,parent,name);
+ }
+ private native void newKToggleToolBarAction(KToolBar toolBar, String text, KActionCollection parent, String name);
+ public native int plug(QWidget widget, int index);
+ public native int plug(QWidget widget);
+ public native KToolBar toolBar();
+ public native void setChecked(boolean arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KToolBar.java b/kdejava/koala/org/kde/koala/KToolBar.java
new file mode 100644
index 00000000..03527f2a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KToolBar.java
@@ -0,0 +1,919 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMainWindow;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSize;
+import org.kde.qt.QSizePolicy;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QDomElement;
+import org.kde.qt.QChildEvent;
+import org.kde.qt.QToolBar;
+
+/**
+
+ A KDE-style toolbar.
+ KToolBar can be dragged around in and between different docks.
+ A KToolBar can contain all sorts of widgets.
+ KToolBar can be used as a standalone widget, but KMainWindow
+ provides easy factories and management of one or more toolbars.
+ Once you have a KToolBar object, you can insert items into it with the
+ insert... methods, or remove them with the removeItem() method. This
+ can be done at any time; the toolbar will be automatically updated.
+ There are also many methods to set per-child properties like alignment
+ and toggle behavior.
+ KToolBar uses a global config group to load toolbar settings on
+ construction. It will reread this config group on a
+ KApplication.appearanceChanged() signal.
+ See {@link KToolBarSignals} for signals emitted by KToolBar
+ @author Reginald Stadlbauer <reggie@kde.org>, Stephan Kulow <coolo@kde.org>, Sven Radej <radej@kde.org>.
+
+ @short Floatable toolbar with auto resize.
+
+*/
+public class KToolBar extends QToolBar {
+ protected KToolBar(Class dummy){super((Class) null);}
+ public static final int IconOnly = 0;
+ public static final int IconTextRight = 1;
+ public static final int TextOnly = 2;
+ public static final int IconTextBottom = 3;
+
+ /**
+ Possible bar positions.
+ @short Possible bar positions.
+ */
+ public static final int Unmanaged = 0;
+ public static final int Floating = 1;
+ public static final int Top = 2;
+ public static final int Bottom = 3;
+ public static final int Right = 4;
+ public static final int Left = 5;
+ public static final int Flat = 6;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Normal constructor.
+ This constructor is used by the XML-GUI. If you use it, you need
+ to call QMainWindow.addToolBar to specify the position of the toolbar.
+ So it's simpler to use the other constructor.
+ The toolbar will read in various global config settings for
+ things like icon size and text position, etc. However, some of
+ the settings will be honored only if <code>honorStyle</code> is set to
+ true. All other toolbars will be IconOnly and use Medium icons.
+ @param parent The standard toolbar parent (usually a
+ KMainWindow)
+ @param name The standard internal name
+ @param honorStyle If true, then global settings for IconSize and IconText will be honored
+ @param readConfig whether to apply the configuration (global and application-specific)
+ @short Normal constructor.
+ */
+ public KToolBar(QWidget parent, String name, boolean honorStyle, boolean readConfig) {
+ super((Class) null);
+ newKToolBar(parent,name,honorStyle,readConfig);
+ }
+ private native void newKToolBar(QWidget parent, String name, boolean honorStyle, boolean readConfig);
+ public KToolBar(QWidget parent, String name, boolean honorStyle) {
+ super((Class) null);
+ newKToolBar(parent,name,honorStyle);
+ }
+ private native void newKToolBar(QWidget parent, String name, boolean honorStyle);
+ public KToolBar(QWidget parent, String name) {
+ super((Class) null);
+ newKToolBar(parent,name);
+ }
+ private native void newKToolBar(QWidget parent, String name);
+ public KToolBar(QWidget parent) {
+ super((Class) null);
+ newKToolBar(parent);
+ }
+ private native void newKToolBar(QWidget parent);
+ /**
+ Constructor for non-XML-GUI applications.
+ The toolbar will read in various global config settings for
+ things like icon size and text position, etc. However, some of
+ the settings will be honored only if <code>honorStyle</code> is set to
+ true. All other toolbars will be IconOnly and use Medium icons.
+ @param parentWindow The window that should be the parent of this toolbar
+ @param dock The position of the toolbar. Usually QMainWindow.Top.
+ @param newLine If true, start a new line in the dock for this toolbar.
+ @param name The standard internal name
+ @param honorStyle If true, then global settings for IconSize and IconText will be honored
+ @param readConfig whether to apply the configuration (global and application-specific)
+ @short Constructor for non-XML-GUI applications.
+ */
+ public KToolBar(QMainWindow parentWindow, int dock, boolean newLine, String name, boolean honorStyle, boolean readConfig) {
+ super((Class) null);
+ newKToolBar(parentWindow,dock,newLine,name,honorStyle,readConfig);
+ }
+ private native void newKToolBar(QMainWindow parentWindow, int dock, boolean newLine, String name, boolean honorStyle, boolean readConfig);
+ public KToolBar(QMainWindow parentWindow, int dock, boolean newLine, String name, boolean honorStyle) {
+ super((Class) null);
+ newKToolBar(parentWindow,dock,newLine,name,honorStyle);
+ }
+ private native void newKToolBar(QMainWindow parentWindow, int dock, boolean newLine, String name, boolean honorStyle);
+ public KToolBar(QMainWindow parentWindow, int dock, boolean newLine, String name) {
+ super((Class) null);
+ newKToolBar(parentWindow,dock,newLine,name);
+ }
+ private native void newKToolBar(QMainWindow parentWindow, int dock, boolean newLine, String name);
+ public KToolBar(QMainWindow parentWindow, int dock, boolean newLine) {
+ super((Class) null);
+ newKToolBar(parentWindow,dock,newLine);
+ }
+ private native void newKToolBar(QMainWindow parentWindow, int dock, boolean newLine);
+ public KToolBar(QMainWindow parentWindow, int dock) {
+ super((Class) null);
+ newKToolBar(parentWindow,dock);
+ }
+ private native void newKToolBar(QMainWindow parentWindow, int dock);
+ /**
+ Constructor for non-XML-GUI applications.
+ The toolbar will read in various global config settings for
+ things like icon size and text position, etc. However, some of
+ the settings will be honored only if <code>honorStyle</code> is set to
+ true. All other toolbars will be IconOnly and use Medium icons.
+ @param parentWindow The window that should be the parent of this toolbar
+ @param dock Another widget than the mainwindow to dock toolbar to.
+ @param newLine If true, start a new line in the dock for this toolbar.
+ @param name The standard internal name
+ @param honorStyle If true, then global settings for IconSize and IconText will be honored
+ @param readConfig whether to apply the configuration (global and application-specific)
+ @short Constructor for non-XML-GUI applications.
+ */
+ public KToolBar(QMainWindow parentWindow, QWidget dock, boolean newLine, String name, boolean honorStyle, boolean readConfig) {
+ super((Class) null);
+ newKToolBar(parentWindow,dock,newLine,name,honorStyle,readConfig);
+ }
+ private native void newKToolBar(QMainWindow parentWindow, QWidget dock, boolean newLine, String name, boolean honorStyle, boolean readConfig);
+ public KToolBar(QMainWindow parentWindow, QWidget dock, boolean newLine, String name, boolean honorStyle) {
+ super((Class) null);
+ newKToolBar(parentWindow,dock,newLine,name,honorStyle);
+ }
+ private native void newKToolBar(QMainWindow parentWindow, QWidget dock, boolean newLine, String name, boolean honorStyle);
+ public KToolBar(QMainWindow parentWindow, QWidget dock, boolean newLine, String name) {
+ super((Class) null);
+ newKToolBar(parentWindow,dock,newLine,name);
+ }
+ private native void newKToolBar(QMainWindow parentWindow, QWidget dock, boolean newLine, String name);
+ public KToolBar(QMainWindow parentWindow, QWidget dock, boolean newLine) {
+ super((Class) null);
+ newKToolBar(parentWindow,dock,newLine);
+ }
+ private native void newKToolBar(QMainWindow parentWindow, QWidget dock, boolean newLine);
+ public KToolBar(QMainWindow parentWindow, QWidget dock) {
+ super((Class) null);
+ newKToolBar(parentWindow,dock);
+ }
+ private native void newKToolBar(QMainWindow parentWindow, QWidget dock);
+ /**
+ Insert a button (a KToolBarButton) with a pixmap. The
+ pixmap is loaded by the button itself based on the global icon
+ settings.
+ You should connect to one or more signals in KToolBar:
+ clicked() , pressed() , released() , or
+ highlighted() and if the button is a toggle button
+ ( setToggle() ) toggled() . Those signals have <code>id</code>
+ of a button that caused the signal. If you want to bind a popup
+ to button, see setButton().
+ @param icon The name of the icon to use as the active pixmap
+ @param id The id of this button
+ @param enabled Enable or disable the button at startup
+ @param text The tooltip or toolbar text (depending on state)
+ @param index The position of the button. (-1 = at end).
+ @param _instance instance this button will belong to
+ @return The item index.
+
+ @short Insert a button (a KToolBarButton) with a pixmap.
+ */
+ public native int insertButton(String icon, int id, boolean enabled, String text, int index, KInstanceInterface _instance);
+ public native int insertButton(String icon, int id, boolean enabled, String text, int index);
+ public native int insertButton(String icon, int id, boolean enabled, String text);
+ public native int insertButton(String icon, int id, boolean enabled);
+ public native int insertButton(String icon, int id);
+ /**
+ This is the same as above, but with specified signals and
+ slots to which this button will be connected.
+ You can add more signals with addConnection().
+ @param icon The name of the icon to use as the active pixmap
+ @param id The id of this button
+ @param signal The signal to connect to
+ @param receiver The slot's parent
+ @param slot The slot to receive the signal specified in that argument.
+ @param enabled Enable or disable the button at startup
+ @param text The tooltip or toolbar text (depending on state)
+ @param index The position of the button. (-1 = at end).
+ @param _instance instance this button will belong to
+ @return The item index.
+
+ @short This is the same as above, but with specified signals and slots to which this button will be connected.
+ */
+ public native int insertButton(String icon, int id, String signal, QObject receiver, String slot, boolean enabled, String text, int index, KInstanceInterface _instance);
+ public native int insertButton(String icon, int id, String signal, QObject receiver, String slot, boolean enabled, String text, int index);
+ public native int insertButton(String icon, int id, String signal, QObject receiver, String slot, boolean enabled, String text);
+ public native int insertButton(String icon, int id, String signal, QObject receiver, String slot, boolean enabled);
+ public native int insertButton(String icon, int id, String signal, QObject receiver, String slot);
+ /**
+ Inserts a button (a KToolBarButton) with the specified
+ pixmap. This pixmap will be used as the "active" one and the
+ disabled and default ones will be autogenerated.
+ It is recommended that you use the insertButton function that
+ allows you to specify the icon name rather then the pixmap
+ itself. Specifying the icon name is much more flexible.
+ You should connect to one or more signals in KToolBar:
+ clicked() , pressed() , released() , or
+ highlighted() and if the button is a toggle button
+ ( setToggle() ) toggled() . Those signals have <code>id</code>
+ of a button that caused the signal. If you want to bind a popup
+ to button, see setButton().
+ @param pixmap The active pixmap
+ @param id The id of this button
+ @param enabled Enable or disable the button at startup
+ @param text The tooltip or toolbar text (depending on state)
+ @param index The position of the button. (-1 = at end).
+ @return The item index.
+
+ @short Inserts a button (a KToolBarButton) with the specified pixmap.
+ */
+ public native int insertButton(QPixmap pixmap, int id, boolean enabled, String text, int index);
+ public native int insertButton(QPixmap pixmap, int id, boolean enabled, String text);
+ public native int insertButton(QPixmap pixmap, int id, boolean enabled);
+ public native int insertButton(QPixmap pixmap, int id);
+ /**
+ This is the same as above, but with specified signals and
+ slots to which this button will be connected.
+ You can add more signals with addConnection().
+ @param pixmap The name of the icon to use as the active pixmap
+ @param id The id of this button
+ @param signal The signal to connect to
+ @param receiver The slot's parent
+ @param slot The slot to receive the signal specified in that argument.
+ @param enabled Enable or disable the button at startup
+ @param text The tooltip or toolbar text (depending on state)
+ @param index The position of the button. (-1 = at end).
+ @return The item index.
+
+ @short This is the same as above, but with specified signals and slots to which this button will be connected.
+ */
+ public native int insertButton(QPixmap pixmap, int id, String signal, QObject receiver, String slot, boolean enabled, String text, int index);
+ public native int insertButton(QPixmap pixmap, int id, String signal, QObject receiver, String slot, boolean enabled, String text);
+ public native int insertButton(QPixmap pixmap, int id, String signal, QObject receiver, String slot, boolean enabled);
+ public native int insertButton(QPixmap pixmap, int id, String signal, QObject receiver, String slot);
+ /**
+ Inserts a button with popupmenu.
+ Button will have small
+ triangle. You have to connect to popup's signals. The
+ signals KButton.pressed(), KButton.released(),
+ KButton.clicked() or KButton.doubleClicked() are <code>not</code>
+ emmited by
+ this button (see setDelayedPopup() for that).
+ You can add custom popups which inherit QPopupMenu to get popups
+ with tables, drawings etc. Just don't fiddle with events there.
+ @short Inserts a button with popupmenu.
+ */
+ public native int insertButton(String icon, int id, QPopupMenu popup, boolean enabled, String _text, int index);
+ public native int insertButton(String icon, int id, QPopupMenu popup, boolean enabled, String _text);
+ /**
+ Inserts a button with popupmenu.
+ Button will have small
+ triangle. You have to connect to popup's signals. The
+ signals KButton.pressed(), KButton.released(),
+ KButton.clicked() or KButton.doubleClicked() are <code>not</code>
+ emmited by
+ this button (see setDelayedPopup() for that).
+ You can add custom popups which inherit QPopupMenu to get popups
+ with tables, drawings etc. Just don't fiddle with events there.
+ @short Inserts a button with popupmenu.
+ */
+ public native int insertButton(QPixmap pixmap, int id, QPopupMenu popup, boolean enabled, String _text, int index);
+ public native int insertButton(QPixmap pixmap, int id, QPopupMenu popup, boolean enabled, String _text);
+ /**
+ Inserts a KLineEdit. You have to specify signals and slots to
+ which KLineEdit will be connected. KLineEdit has all slots QLineEdit
+ has, plus signals KLineEdit.completion and KLineEdit.textRotation
+ KLineEdit can be set to autoresize itself to full free width
+ in toolbar, that is to last right aligned item. For that,
+ toolbar must be set to full width (which it is by default).
+ @return Item index.
+
+ @short Inserts a KLineEdit.
+ @see #setFullWidth
+ @see #setItemAutoSized
+ @see KLineEdit
+ */
+ public native int insertLined(String text, int id, String signal, QObject receiver, String slot, boolean enabled, String toolTipText, int size, int index);
+ public native int insertLined(String text, int id, String signal, QObject receiver, String slot, boolean enabled, String toolTipText, int size);
+ public native int insertLined(String text, int id, String signal, QObject receiver, String slot, boolean enabled, String toolTipText);
+ public native int insertLined(String text, int id, String signal, QObject receiver, String slot, boolean enabled);
+ public native int insertLined(String text, int id, String signal, QObject receiver, String slot);
+ /**
+ Inserts a KComboBox with list.
+ Can be writable, but cannot contain
+ pixmaps. By default inserting policy is AtBottom, i.e. typed items
+ are placed at the bottom of the list. Can be autosized. If the size
+ argument is specified as -1, the width of the combobox is automatically
+ computed.
+ @return Item index.
+
+ @short Inserts a KComboBox with list.
+ @see #setFullWidth
+ @see #setItemAutoSized
+ @see KComboBox
+ */
+ public native int insertCombo(String[] list, int id, boolean writable, String signal, QObject receiver, String slot, boolean enabled, String tooltiptext, int size, int index, int policy);
+ public native int insertCombo(String[] list, int id, boolean writable, String signal, QObject receiver, String slot, boolean enabled, String tooltiptext, int size, int index);
+ public native int insertCombo(String[] list, int id, boolean writable, String signal, QObject receiver, String slot, boolean enabled, String tooltiptext, int size);
+ public native int insertCombo(String[] list, int id, boolean writable, String signal, QObject receiver, String slot, boolean enabled, String tooltiptext);
+ public native int insertCombo(String[] list, int id, boolean writable, String signal, QObject receiver, String slot, boolean enabled);
+ public native int insertCombo(String[] list, int id, boolean writable, String signal, QObject receiver, String slot);
+ /**
+ Insert a KComboBox with text.
+ The rest is the same as above.
+ @return Item index.
+
+ @short Insert a KComboBox with text.
+ @see #setItemAutoSized
+ @see KComboBox
+ */
+ public native int insertCombo(String text, int id, boolean writable, String signal, QObject receiver, String slot, boolean enabled, String tooltiptext, int size, int index, int policy);
+ public native int insertCombo(String text, int id, boolean writable, String signal, QObject receiver, String slot, boolean enabled, String tooltiptext, int size, int index);
+ public native int insertCombo(String text, int id, boolean writable, String signal, QObject receiver, String slot, boolean enabled, String tooltiptext, int size);
+ public native int insertCombo(String text, int id, boolean writable, String signal, QObject receiver, String slot, boolean enabled, String tooltiptext);
+ public native int insertCombo(String text, int id, boolean writable, String signal, QObject receiver, String slot, boolean enabled);
+ public native int insertCombo(String text, int id, boolean writable, String signal, QObject receiver, String slot);
+ /**
+ Inserts a separator into the toolbar with the given <code>id.</code>
+ @return the separator's index
+
+ @short Inserts a separator into the toolbar with the given <code>id.</code>
+ */
+ public native int insertSeparator(int index, int id);
+ public native int insertSeparator(int index);
+ public native int insertSeparator();
+ /**
+ Inserts a line separator into the toolbar with the given <code>id.</code>
+ @return the separator's index
+
+ @short Inserts a line separator into the toolbar with the given <code>id.</code>
+ */
+ public native int insertLineSeparator(int index, int id);
+ public native int insertLineSeparator(int index);
+ public native int insertLineSeparator();
+ /**
+ Inserts a user-defined widget. The widget <code>must</code> have this
+ toolbar as its parent.
+ Widget must have a QWidget for base class. Widget can be
+ autosized to full width. If you forget about it, you can get a
+ pointer to this widget with getWidget().
+ @return Item index.
+
+ @short Inserts a user-defined widget.
+ @see #setItemAutoSized
+ */
+ public native int insertWidget(int id, int width, QWidget _widget, int index);
+ public native int insertWidget(int id, int width, QWidget _widget);
+ /**
+ Inserts an animated widget. A KAnimWidget will be created
+ internally using the icon name you provide.
+ This will emit a signal (clicked()) whenever the
+ animation widget is clicked.
+ @param id The id for this toolbar item
+ @param receiver The parent of your slot
+ @param slot The slot to receive the clicked() signal
+ @param icons The name of the animation icon group to use
+ @param index The item index
+ @return The item index
+
+ @short Inserts an animated widget.
+ @see #animatedWidget
+ */
+ public native int insertAnimatedWidget(int id, QObject receiver, String slot, String icons, int index);
+ public native int insertAnimatedWidget(int id, QObject receiver, String slot, String icons);
+ /**
+ This will return a pointer to the animated widget with the
+ given <code>id</code>, if it exists.
+ @param id The id for the widget you want to get a pointer to
+ @return A pointer to the current animated widget or 0L
+
+ @short This will return a pointer to the animated widget with the given <code>id</code>, if it exists.
+ @see #insertAnimatedWidget
+ */
+ public native KAnimWidget animatedWidget(int id);
+ /**
+ Adds connections to items.
+ It is important that you
+ know the <code>id</code> of particular item. Nothing happens if you forget <code>id.</code>
+ @short Adds connections to items.
+ */
+ public native void addConnection(int id, String signal, QObject receiver, String slot);
+ /**
+ Enables/disables item.
+ @short Enables/disables item.
+ */
+ public native void setItemEnabled(int id, boolean enabled);
+ /**
+ Sets the icon for a button.
+ Can be used while button is visible.
+ @short Sets the icon for a button.
+ */
+ public native void setButtonIcon(int id, String _icon);
+ /**
+ Sets button pixmap.
+ Can be used while button is visible.
+ @short Sets button pixmap.
+ */
+ public native void setButtonPixmap(int id, QPixmap _pixmap);
+ /**
+ Sets a button icon from a QIconSet.
+ Can be used while button is visible.
+ @short Sets a button icon from a QIconSet.
+ */
+ public native void setButtonIconSet(int id, QIconSet iconset);
+ /**
+ Sets a delayed popup for a button.
+ Delayed popup is what you see in
+ Netscape Navigator's Previous and Next buttons: If you click them you
+ go back
+ or forth. If you press them long enough, you get a history-menu.
+ This is exactly what we do here.
+ You will insert a normal button with connection (or use signals from
+ toolbar):
+ <pre>
+ bar.insertButton(icon, id, SIGNAL("clicked ()"), this,
+ SLOT (slotClick()), true, "click or wait for popup");
+ </pre>
+ And then add a delayed popup:
+ <pre>
+ bar.setDelayedPopup (id, historyPopup);
+ </pre>
+ Don't add delayed popups to buttons which have normal popups.
+ You may add popups which are derived from QPopupMenu. You may
+ add popups that are already in the menu bar or are submenus of
+ other popups.
+ @short Sets a delayed popup for a button.
+ */
+ public native void setDelayedPopup(int id, QPopupMenu _popup, boolean toggle);
+ public native void setDelayedPopup(int id, QPopupMenu _popup);
+ /**
+ Turns a button into an autorepeat button.
+ Toggle buttons, buttons with menus, or
+ buttons with delayed menus cannot be made into autorepeat buttons.
+ Moreover, you can and will receive
+ only the signal clicked(), but not pressed() or released().
+ When the user presses this button, you will receive the signal clicked(),
+ and if the button is still pressed after some time,
+ you will receive more clicked() signals separated by regular
+ intervals. Since this uses QButton.setAutoRepeat() ,
+ I can't quantify 'some'.
+ @short Turns a button into an autorepeat button.
+ */
+ public native void setAutoRepeat(int id, boolean flag);
+ public native void setAutoRepeat(int id);
+ /**
+ Turns button into a toggle button if <code>flag</code> is true.
+ @short Turns button into a toggle button if <code>flag</code> is true.
+ */
+ public native void setToggle(int id, boolean flag);
+ public native void setToggle(int id);
+ /**
+ Toggles a togglebutton.
+ If the button is a toggle button (see setToggle())
+ the button state will be toggled. This will also cause the toolbar to
+ emit the signal KButton.toggled() with parameter <code>id.</code> You must connect to
+ this signal, or use addConnection() to connect directly to the
+ button signal KButton.toggled().
+ @short Toggles a togglebutton.
+ */
+ public native void toggleButton(int id);
+ /**
+ Sets a toggle button state.
+ If the button is a toggle button (see setToggle())
+ this will set its state flag. This will also emit the signal
+ KButton.toggled().
+ @short Sets a toggle button state.
+ @see #setToggle
+ */
+ public native void setButton(int id, boolean flag);
+ /**
+ Returns <code>true</code> if button is on and is a toggle button
+ @return <code>true</code> if button is on and is a toggle button
+
+ @short Returns <code>true</code> if button is on and is a toggle button
+ @see #setToggle
+ */
+ public native boolean isButtonOn(int id);
+ /**
+ Sets the text of a line editor.
+ Cursor is set at end of text.
+ @short Sets the text of a line editor.
+ */
+ public native void setLinedText(int id, String text);
+ /**
+ Returns the line editor text.
+ @return the line editor text.
+
+ @short Returns the line editor text.
+ */
+ public native String getLinedText(int id);
+ /**
+ Inserts <code>text</code> in combobox <code>id</code> at position <code>index.</code>
+ @short Inserts <code>text</code> in combobox <code>id</code> at position <code>index.</code>
+ */
+ public native void insertComboItem(int id, String text, int index);
+ /**
+ Inserts <code>list</code> in combobox <code>id</code> at position <code>index.</code>
+ @short Inserts <code>list</code> in combobox <code>id</code> at position <code>index.</code>
+ */
+ public native void insertComboList(int id, String[] list, int index);
+ /**
+ Removes item <code>index</code> from combobox <code>id.</code>
+ @short Removes item <code>index</code> from combobox <code>id.</code>
+ */
+ public native void removeComboItem(int id, int index);
+ /**
+ Sets item <code>index</code> to be current item in combobox <code>id.</code>
+ @short Sets item <code>index</code> to be current item in combobox <code>id.</code>
+ */
+ public native void setCurrentComboItem(int id, int index);
+ /**
+ Changes item <code>index</code> in combobox <code>id</code> to text.
+ <code>index</code> = -1 refers current item (one displayed in the button).
+ @short Changes item <code>index</code> in combobox <code>id</code> to text.
+ */
+ public native void changeComboItem(int id, String text, int index);
+ public native void changeComboItem(int id, String text);
+ /**
+ Clears the combobox <code>id.</code>
+ Does not delete it or hide it.
+ @short Clears the combobox <code>id.</code>
+ */
+ public native void clearCombo(int id);
+ /**
+ Returns text of item <code>index</code> from combobox <code>id.</code>
+ <code>index</code> = -1 refers to current item.
+ @return text of item <code>index</code> from combobox <code>id.</code>
+
+ @short Returns text of item <code>index</code> from combobox <code>id.</code>
+ */
+ public native String getComboItem(int id, int index);
+ public native String getComboItem(int id);
+ /**
+ Returns a pointer to the combobox with <code>id.</code>
+ Example:
+ <pre>
+ KComboBox combo = toolbar.getCombo(combo_id);
+ </pre>
+ That way you can get access to other public methods
+ that KComboBox provides.
+ @return a pointer to the combobox with <code>id.</code>
+
+ @short Returns a pointer to the combobox with <code>id.</code>
+ */
+ public native KComboBox getCombo(int id);
+ /**
+ Returns a pointer to KToolBarLined with <code>id.</code>
+ Example:
+ <pre>
+ KLineEdit lined = toolbar.getKToolBarLined(lined_id);
+ </pre>
+ That way you can get access to other public methods
+ that KLineEdit provides. KLineEdit is the same thing
+ as QLineEdit plus completion signals.
+ @return a pointer to KToolBarLined with <code>id.</code>
+
+ @short Returns a pointer to KToolBarLined with <code>id.</code>
+ */
+ public native KLineEdit getLined(int id);
+ /**
+ Returns a pointer to KToolBarButton.
+ Example:
+ <pre>
+ KToolBarButton button = toolbar.getButton(button_id);
+ </pre>
+ That way you can get access to other public methods
+ that KToolBarButton provides.
+ Using this method is not recommended.
+ @short Returns a pointer to KToolBarButton.
+ */
+ public native KToolBarButton getButton(int id);
+ /**
+ Align item to the right.
+ This works only if toolbar is set to full width.
+ @short Align item to the right.
+ @see #setFullWidth
+ */
+ public native void alignItemRight(int id, boolean right);
+ public native void alignItemRight(int id);
+ /**
+ Returns a pointer to the widget corresponding to <code>id.</code>
+ Wrong ids are not tested.
+ You can do with this whatever you want,
+ except change its height (hardcoded). If you change its width
+ you will probably have to call QToolBar.updateRects(true)
+ @return a pointer to the widget corresponding to <code>id.</code>
+
+ @short Returns a pointer to the widget corresponding to <code>id.</code>
+ @see org.kde.qt.QWidget
+ @see #updateRects
+ */
+ public native QWidget getWidget(int id);
+ /**
+ Set item autosized.
+ This works only if the toolbar is set to full width.
+ Only <code>one</code> item can be autosized, and it has to be
+ the last left-aligned item. Items that come after this must be right
+ aligned. Items that can be right aligned are Lineds, Frames, Widgets and
+ Combos. An autosized item will resize itself whenever the toolbar geometry
+ changes to the last right-aligned item (or to end of toolbar if there
+ are no right-aligned items.)
+ @short Set item autosized.
+ @see #setFullWidth
+ @see #alignItemRight
+ */
+ public native void setItemAutoSized(int id, boolean yes);
+ public native void setItemAutoSized(int id);
+ /**
+ Remove all items.
+ The toolbar is redrawn after it.
+ @short Remove all items.
+ */
+ public native void clear();
+ /**
+ Remove item <code>id.</code>
+ Item is deleted. Toolbar is redrawn after it.
+ @short Remove item <code>id.</code>
+ */
+ public native void removeItem(int id);
+ /**
+ Remove item <code>id.</code>
+ Item is deleted when toolbar is redrawn.
+ @short Remove item <code>id.</code>
+ */
+ public native void removeItemDelayed(int id);
+ /**
+ Hide item <code>id.</code>
+ @short Hide item <code>id.</code>
+ */
+ public native void hideItem(int id);
+ /**
+ Show item <code>id.</code>
+ @short Show item <code>id.</code>
+ */
+ public native void showItem(int id);
+ /**
+ Returns the index of the item <code>id.</code>
+ @return the index of the item <code>id.</code>
+
+ @short Returns the index of the item <code>id.</code>
+ */
+ public native int itemIndex(int id);
+ /**
+ Returns the id of the item at the given index.
+ @short Returns the id of the item at the given index.
+ */
+ public native int idAt(int index);
+ /**
+ Set toolbar to full parent size (default).
+ In full size mode the bar extends over the parent's full width or height.
+ If the mode is disabled the toolbar tries to take as much space as it
+ needs without wrapping, but it does not exceed the parent box. You can
+ force a certain width or height with setMaxWidth() or
+ setMaxHeight().
+ If you want to use right-aligned items or auto-sized items you must use
+ full size mode.
+ @short Set toolbar to full parent size (default).
+ */
+ public native void setFullSize(boolean flag);
+ public native void setFullSize();
+ /**
+ Returns the full-size mode enabled flag.
+ @return <code>true</code> if the full-size mode is enabled.
+
+ @short Returns the full-size mode enabled flag.
+ */
+ public native boolean fullSize();
+ /**
+ Set position of toolbar.
+ @short Set position of toolbar.
+ @see BarPosition
+ */
+ public native void setBarPos(int bpos);
+ /**
+ Returns the toolbar position.
+ @return position of toolbar.
+
+ @short Returns the toolbar position.
+ */
+ public native int barPos();
+ /**
+ Set title for toolbar when it floats.
+ Titles are however not (yet)
+ visible. You can't change toolbar's title while it's floating.
+ @short Set title for toolbar when it floats.
+ */
+ public native void setTitle(String _title);
+ /**
+ Set the kind of painting for buttons.
+ Choose from:
+
+ <li>
+ IconOnly (only icons),
+ </li>
+
+ <li>
+ IconTextRight (icon and text, text is left from icons),
+ </li>
+
+ <li>
+ TextOnly (only text),
+ </li>
+
+ <li>
+ IconTextBottom (icons and text, text is under icons).
+ </li>
+ @short Set the kind of painting for buttons.
+ @see IconText
+ */
+ public native void setIconText(int it);
+ /**
+ Similar to setIconText(IconText it) but allows you to
+ disable or enable updating. If <code>update</code> is false, then the
+ buttons will not be updated. This is useful only if you know
+ that you will be forcing an update later.
+ @short Similar to setIconText(IconText it) but allows you to disable or enable updating.
+ */
+ public native void setIconText(int it, boolean update);
+ /**
+ Returns the current text style for buttons.
+ @return the current text style for buttons.
+
+ @short Returns the current text style for buttons.
+ */
+ public native int iconTextId();
+ /**
+ Set the icon size to load. Usually you should not call
+ this, the icon size is taken care of by KIconLoader
+ and globally configured.
+ By default, the toolbar will load icons of size 32 for main
+ toolbars and 22 for other toolbars
+ @param size The size to use
+ @short Set the icon size to load.
+ @see KIconLoader#
+ */
+ public native void setIconSize(int size);
+ /**
+ Same as setIconText(int size) but allows you
+ to disable the toolbar update.
+ @param size The size to use
+ @param update If true, then the toolbar will be updated after
+ this
+ @short Same as setIconText(int size) but allows you to disable the toolbar update.
+ */
+ public native void setIconSize(int size, boolean update);
+ /**
+ Returns the current icon size for buttons.
+ @return the current icon size for buttons.
+
+ @short Returns the current icon size for buttons.
+ */
+ public native int iconSize();
+ /**
+ Returns the default size for this type of toolbar.
+ @return the default size for this type of toolbar.
+
+ @short Returns the default size for this type of toolbar.
+ */
+ public native int iconSizeDefault();
+ /**
+ This allows you to enable or disable the context menu.
+ @param enable If false, then the context menu will be disabled
+ @short This allows you to enable or disable the context menu.
+ */
+ public native void setEnableContextMenu(boolean enable);
+ public native void setEnableContextMenu();
+ /**
+ Returns the context menu enabled flag
+ @return true if the context menu is disabled
+
+ @short Returns the context menu enabled flag
+ */
+ public native boolean contextMenuEnabled();
+ /**
+ This will inform a toolbar button to ignore certain style
+ changes. Specifically, it will ignore IconText (always IconOnly)
+ and will not allow image effects to apply.
+ @param id The button to exclude from styles
+ @param no_style If true, then it is excluded (default: true).
+ @short This will inform a toolbar button to ignore certain style changes.
+ */
+ public native void setItemNoStyle(int id, boolean no_style);
+ public native void setItemNoStyle(int id);
+ public native void setFlat(boolean flag);
+ /**
+ Returns the total number of items in the toolbar
+ @return the total number of items in the toolbar
+
+ @short Returns the total number of items in the toolbar
+ */
+ public native int count();
+ /**
+ Instruct the toolbar to save it's current state to either the app
+ config file or to the XML-GUI resource file (whichever has
+ precedence).
+ @short Instruct the toolbar to save it's current state to either the app config file or to the XML-GUI resource file (whichever has precedence).
+ */
+ public native void saveState();
+ /**
+ Save the toolbar settings to group <code>configGroup</code> in <code>config.</code>
+ @short Save the toolbar settings to group <code>configGroup</code> in <code>config.</code>
+ */
+ public native void saveSettings(KConfig config, String configGroup);
+ /**
+ Read the toolbar settings from group <code>configGroup</code> in <code>config</code>
+ and apply them. Even default settings are re-applied if <code>force</code> is set.
+ @short Read the toolbar settings from group <code>configGroup</code> in <code>config</code> and apply them.
+ */
+ public native void applySettings(KConfig config, String configGroup, boolean force);
+ public native void applySettings(KConfig config, String configGroup);
+ public native void setXMLGUIClient(KXMLGUIClientInterface client);
+ /**
+ Assign a (translated) text to this toolbar. This is used
+ for the tooltip on the handle, and when listing the toolbars.
+ @short Assign a (translated) text to this toolbar.
+ */
+ public native void setText(String txt);
+ /**
+ Returns the toolbar's text.
+ @return the toolbar's text.
+
+ @short Returns the toolbar's text.
+ */
+ public native String text();
+ public native void setStretchableWidget(QWidget w);
+ public native QSizePolicy sizePolicy();
+ public native boolean highlight();
+ public native QSize sizeHint();
+ public native QSize minimumSizeHint();
+ public native QSize minimumSize();
+ public native void hide();
+ public native void show();
+ public native void updateRects(boolean arg1);
+ public native void updateRects();
+ /**
+ Load state from an XML element, called by KXMLGUIBuilder
+ @short Load state from an XML element, called by KXMLGUIBuilder
+ */
+ public native void loadState(QDomElement e);
+ public native void saveState(QDomElement e);
+ /**
+ @short
+ */
+ public native void positionYourself(boolean force);
+ public native void positionYourself();
+ public native void setIconText(String txt);
+ /**
+ Returns the global setting for "Highlight buttons under mouse"
+ @return global setting for "Highlight buttons under mouse"
+
+ @short Returns the global setting for "Highlight buttons under mouse"
+ */
+ public static native boolean highlightSetting();
+ /**
+ Returns the global setting for "Toolbars transparent when moving"
+ @return global setting for "Toolbars transparent when moving"
+
+ @short Returns the global setting for "Toolbars transparent when moving"
+ */
+ public static native boolean transparentSetting();
+ /**
+ Returns the global setting for "Icon Text"
+ @return global setting for "Icon Text"
+
+ @short Returns the global setting for "Icon Text"
+ */
+ public static native int iconTextSetting();
+ protected native void mousePressEvent(QMouseEvent arg1);
+ protected native void childEvent(QChildEvent e);
+ public native void showEvent(QShowEvent e);
+ protected native void resizeEvent(QResizeEvent e);
+ public native boolean event(QEvent e);
+ protected native void applyAppearanceSettings(KConfig config, String _configGroup, boolean forceGlobal);
+ protected native void applyAppearanceSettings(KConfig config, String _configGroup);
+ protected native String settingsGroup();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KToolBarButton.java b/kdejava/koala/org/kde/koala/KToolBarButton.java
new file mode 100644
index 00000000..34117b3b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KToolBarButton.java
@@ -0,0 +1,235 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSize;
+import org.kde.qt.QPainter;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+import org.kde.qt.QPalette;
+import org.kde.qt.QToolButton;
+
+/**
+
+ A toolbar button. This is used internally by KToolBar, use the
+ KToolBar methods instead.
+ See {@link KToolBarButtonSignals} for signals emitted by KToolBarButton
+ @short A toolbar button.
+
+*/
+public class KToolBarButton extends QToolButton {
+ protected KToolBarButton(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a button with an icon loaded by the button itself.
+ This will trust the button to load the correct icon with the
+ correct size.
+ @param icon Name of icon to load (may be absolute or relative)
+ @param id Id of this button
+ @param parent This button's parent
+ @param name This button's internal name
+ @param txt This button's text (in a tooltip or otherwise)
+ @param _instance the instance to use for this button
+ @short Construct a button with an icon loaded by the button itself.
+ */
+ public KToolBarButton(String icon, int id, QWidget parent, String name, String txt, KInstanceInterface _instance) {
+ super((Class) null);
+ newKToolBarButton(icon,id,parent,name,txt,_instance);
+ }
+ private native void newKToolBarButton(String icon, int id, QWidget parent, String name, String txt, KInstanceInterface _instance);
+ public KToolBarButton(String icon, int id, QWidget parent, String name, String txt) {
+ super((Class) null);
+ newKToolBarButton(icon,id,parent,name,txt);
+ }
+ private native void newKToolBarButton(String icon, int id, QWidget parent, String name, String txt);
+ public KToolBarButton(String icon, int id, QWidget parent, String name) {
+ super((Class) null);
+ newKToolBarButton(icon,id,parent,name);
+ }
+ private native void newKToolBarButton(String icon, int id, QWidget parent, String name);
+ public KToolBarButton(String icon, int id, QWidget parent) {
+ super((Class) null);
+ newKToolBarButton(icon,id,parent);
+ }
+ private native void newKToolBarButton(String icon, int id, QWidget parent);
+ /**
+ Construct a button with an existing pixmap. It is not
+ recommended that you use this as the internal icon loading code
+ will almost always get it "right".
+ @param pixmap Name of icon to load (may be absolute or relative)
+ @param id Id of this button
+ @param parent This button's parent
+ @param name This button's internal name
+ @param txt This button's text (in a tooltip or otherwise)
+ @short Construct a button with an existing pixmap.
+ */
+ public KToolBarButton(QPixmap pixmap, int id, QWidget parent, String name, String txt) {
+ super((Class) null);
+ newKToolBarButton(pixmap,id,parent,name,txt);
+ }
+ private native void newKToolBarButton(QPixmap pixmap, int id, QWidget parent, String name, String txt);
+ public KToolBarButton(QPixmap pixmap, int id, QWidget parent, String name) {
+ super((Class) null);
+ newKToolBarButton(pixmap,id,parent,name);
+ }
+ private native void newKToolBarButton(QPixmap pixmap, int id, QWidget parent, String name);
+ public KToolBarButton(QPixmap pixmap, int id, QWidget parent) {
+ super((Class) null);
+ newKToolBarButton(pixmap,id,parent);
+ }
+ private native void newKToolBarButton(QPixmap pixmap, int id, QWidget parent);
+ /**
+ Construct a separator button
+ @param parent This button's parent
+ @param name This button's internal name
+ @short Construct a separator button
+ */
+ public KToolBarButton(QWidget parent, String name) {
+ super((Class) null);
+ newKToolBarButton(parent,name);
+ }
+ private native void newKToolBarButton(QWidget parent, String name);
+ public KToolBarButton(QWidget parent) {
+ super((Class) null);
+ newKToolBarButton(parent);
+ }
+ private native void newKToolBarButton(QWidget parent);
+ public KToolBarButton() {
+ super((Class) null);
+ newKToolBarButton();
+ }
+ private native void newKToolBarButton();
+ /**
+ Set the text for this button. The text will be either used as a
+ tooltip (IconOnly) or will be along side the icon
+ @param text The button (or tooltip) text
+ @short Set the text for this button.
+ */
+ public native void setText(String text);
+ /**
+ Set the icon for this button. The icon will be loaded internally
+ with the correct size. This function is preferred over setIconSet
+ @param icon The name of the icon
+ @short Set the icon for this button.
+ */
+ public native void setIcon(String icon);
+ public native void setIcon(QPixmap pixmap);
+ /**
+ Set the pixmaps for this toolbar button from a QIconSet.
+ If you call this you don't need to call any of the other methods
+ that set icons or pixmaps.
+ @param iconset The iconset to use
+ @short Set the pixmaps for this toolbar button from a QIconSet.
+ */
+ public native void setIconSet(QIconSet iconset);
+ /**
+ Turn this button on or off
+ @param flag true or false
+ @short Turn this button on or off
+ */
+ public native void on(boolean flag);
+ public native void on();
+ /**
+ Toggle this button
+ @short Toggle this button
+ */
+ public native void toggle();
+ /**
+ Turn this button into a toggle button or disable the toggle
+ aspects of it. This does not toggle the button itself.
+ Use toggle() for that.
+ @param toggle true or false
+ @short Turn this button into a toggle button or disable the toggle aspects of it.
+ */
+ public native void setToggle(boolean toggle);
+ public native void setToggle();
+ /**
+ Return a pointer to this button's popup menu (if it exists)
+ @short Return a pointer to this button's popup menu (if it exists)
+ */
+ public native QPopupMenu popup();
+ /**
+ Returns the button's id.
+ @short Returns the button's id.
+ */
+ public native int id();
+ /**
+ Give this button a popup menu. There will not be a delay when
+ you press the button. Use setDelayedPopup if you want that
+ behavior.
+ @param p The new popup menu
+ @param unused Has no effect - ignore it.
+ @short Give this button a popup menu.
+ */
+ public native void setPopup(QPopupMenu p, boolean unused);
+ public native void setPopup(QPopupMenu p);
+ /**
+ Gives this button a delayed popup menu.
+ This function allows you to add a delayed popup menu to the button.
+ The popup menu is then only displayed when the button is pressed and
+ held down for about half a second.
+ @param p the new popup menu
+ @param unused Has no effect - ignore it.
+ @short Gives this button a delayed popup menu.
+ */
+ public native void setDelayedPopup(QPopupMenu p, boolean unused);
+ public native void setDelayedPopup(QPopupMenu p);
+ /**
+ Turn this button into a radio button
+ @param f true or false
+ @short Turn this button into a radio button
+ */
+ public native void setRadio(boolean f);
+ public native void setRadio();
+ /**
+ Toolbar buttons naturally will assume the global styles
+ concerning icons, icons sizes, etc. You can use this function to
+ explicitly turn this off, if you like.
+ @param no_style Will disable styles if true
+ @short Toolbar buttons naturally will assume the global styles concerning icons, icons sizes, etc.
+ */
+ public native void setNoStyle(boolean no_style);
+ public native void setNoStyle();
+ /**
+ This slot should be called whenever the toolbar mode has
+ potentially changed. This includes such events as text changing,
+ orientation changing, etc.
+ @short This slot should be called whenever the toolbar mode has potentially changed.
+ */
+ public native void modeChange();
+ public native void setTextLabel(String arg1, boolean tipToo);
+ public native boolean event(QEvent e);
+ protected native void paletteChange(QPalette arg1);
+ protected native void leaveEvent(QEvent e);
+ protected native void enterEvent(QEvent e);
+ protected native void drawButton(QPainter p);
+ public native boolean eventFilter(QObject o, QEvent e);
+ protected native void mousePressEvent(QMouseEvent arg1);
+ protected native void mouseReleaseEvent(QMouseEvent arg1);
+ protected native void showMenu();
+ public native QSize sizeHint();
+ public native QSize minimumSizeHint();
+ public native QSize minimumSize();
+ protected native boolean isRaised();
+ protected native boolean isActive();
+ protected native int iconTextMode();
+ protected native void slotClicked();
+ protected native void slotPressed();
+ protected native void slotReleased();
+ protected native void slotToggled();
+ protected native void slotDelayTimeout();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KToolBarButtonSignals.java b/kdejava/koala/org/kde/koala/KToolBarButtonSignals.java
new file mode 100644
index 00000000..4b24477f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KToolBarButtonSignals.java
@@ -0,0 +1,35 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSize;
+import org.kde.qt.QPainter;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+import org.kde.qt.QPalette;
+
+public interface KToolBarButtonSignals {
+ /**
+ Emitted when the toolbar button is clicked (with LMB or MMB)
+ @short Emitted when the toolbar button is clicked (with LMB or MMB)
+ */
+ void clicked(int arg1);
+ /**
+ Emitted when the toolbar button is clicked (with any mouse button)
+ @param state makes it possible to find out which button was pressed,
+ and whether any keyboard modifiers were held.
+ @short Emitted when the toolbar button is clicked (with any mouse button)
+ */
+ void buttonClicked(int arg1, int state);
+ void doubleClicked(int arg1);
+ void pressed(int arg1);
+ void released(int arg1);
+ void toggled(int arg1);
+ void highlighted(int arg1, boolean arg2);
+}
diff --git a/kdejava/koala/org/kde/koala/KToolBarPopupAction.java b/kdejava/koala/org/kde/koala/KToolBarPopupAction.java
new file mode 100644
index 00000000..bc2a7546
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KToolBarPopupAction.java
@@ -0,0 +1,142 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QWidget;
+
+/**
+
+ This action is a normal action everywhere, except in a toolbar
+ where it also has a popupmenu (optionnally delayed). This action is designed
+ for history actions (back/forward, undo/redo) and for any other action
+ that has more detail in a toolbar than in a menu (e.g. tool chooser
+ with "Other" leading to a dialog...).
+ @short This action is a normal action everywhere, except in a toolbar where it also has a popupmenu (optionnally delayed).
+
+*/
+public class KToolBarPopupAction extends KAction {
+ protected KToolBarPopupAction(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create a KToolBarPopupAction, with a text, an icon, an optional accelerator,
+ parent and name.
+ @param text The text that will be displayed.
+ @param icon The icon to display.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short Create a KToolBarPopupAction, with a text, an icon, an optional accelerator, parent and name.
+ */
+ public KToolBarPopupAction(String text, String icon, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKToolBarPopupAction(text,icon,cut,parent,name);
+ }
+ private native void newKToolBarPopupAction(String text, String icon, KShortcut cut, QObject parent, String name);
+ public KToolBarPopupAction(String text, String icon, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKToolBarPopupAction(text,icon,cut,parent);
+ }
+ private native void newKToolBarPopupAction(String text, String icon, KShortcut cut, QObject parent);
+ public KToolBarPopupAction(String text, String icon, KShortcut cut) {
+ super((Class) null);
+ newKToolBarPopupAction(text,icon,cut);
+ }
+ private native void newKToolBarPopupAction(String text, String icon, KShortcut cut);
+ public KToolBarPopupAction(String text, String icon) {
+ super((Class) null);
+ newKToolBarPopupAction(text,icon);
+ }
+ private native void newKToolBarPopupAction(String text, String icon);
+ /**
+ Create a KToolBarPopupAction, with a text, an icon, an accelerator,
+ a slot connected to the action, parent and name.
+ If you do not want or have a keyboard accelerator, set the
+ <code>cut</code> param to 0.
+ @param text The text that will be displayed.
+ @param icon The icon to display.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's owner.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short Create a KToolBarPopupAction, with a text, an icon, an accelerator, a slot connected to the action, parent and name.
+ */
+ public KToolBarPopupAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKToolBarPopupAction(text,icon,cut,receiver,slot,parent,name);
+ }
+ private native void newKToolBarPopupAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KToolBarPopupAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKToolBarPopupAction(text,icon,cut,receiver,slot,parent);
+ }
+ private native void newKToolBarPopupAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent);
+ /**
+ Create a KToolBarPopupAction, with a KGuiItem, an accelerator,
+ a slot connected to the action, parent and name. The text and the
+ icon are taken from the KGuiItem.
+ If you do not want or have a keyboard accelerator, set the
+ <code>cut</code> param to 0.
+ @param item The text and icon that will be displayed.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's owner.
+ @param slot The SLOT to invoke to execute this action.
+ @param parent This action's parent.
+ @param name An internal name for this action.
+ @short Create a KToolBarPopupAction, with a KGuiItem, an accelerator, a slot connected to the action, parent and name.
+ */
+ public KToolBarPopupAction(KGuiItem item, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name) {
+ super((Class) null);
+ newKToolBarPopupAction(item,cut,receiver,slot,parent,name);
+ }
+ private native void newKToolBarPopupAction(KGuiItem item, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name);
+ public native int plug(QWidget widget, int index);
+ public native int plug(QWidget widget);
+ /**
+ The popup menu that is shown when clicking (some time) on the toolbar
+ button. You may want to plug items into it on creation, or connect to
+ aboutToShow for a more dynamic menu.
+ @short The popup menu that is shown when clicking (some time) on the toolbar button.
+ */
+ public native KPopupMenu popupMenu();
+ /**
+ Returns true if this action creates a delayed popup menu
+ when plugged in a KToolbar.
+ @short Returns true if this action creates a delayed popup menu when plugged in a KToolbar.
+ */
+ public native boolean delayed();
+ /**
+ If set to true, this action will create a delayed popup menu
+ when plugged in a KToolbar. Otherwise it creates a normal popup.
+ Default: delayed.
+ @short If set to true, this action will create a delayed popup menu when plugged in a KToolbar.
+ */
+ public native void setDelayed(boolean delayed);
+ /**
+ Returns true if this action creates a sticky popup menu.
+ See setStickyMenu().
+ @short Returns true if this action creates a sticky popup menu.
+ */
+ public native boolean stickyMenu();
+ /**
+ If set to true, this action will create a sticky popup menu
+ when plugged in a KToolbar.
+ "Sticky", means it's visible until a selection is made or the mouse is
+ clicked elsewhere. This feature allows you to make a selection without
+ having to press and hold down the mouse while making a selection.
+ Only available if delayed() is true.
+ Default: sticky.
+ @short If set to true, this action will create a sticky popup menu when plugged in a KToolbar.
+ */
+ public native void setStickyMenu(boolean sticky);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KToolBarRadioGroup.java b/kdejava/koala/org/kde/koala/KToolBarRadioGroup.java
new file mode 100644
index 00000000..9d9608bf
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KToolBarRadioGroup.java
@@ -0,0 +1,64 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+/**
+
+ KToolBarRadioGroup is class for group of radio butons in toolbar.
+ Take toggle buttons which you already inserted into toolbar,
+ create KToolBarRadioGroup instance and add them here.
+ All buttons will emit signals toggled (boolean) (or you can
+ use sitgnal toggled (int id) from toolbar). When one button is set
+ down, all others are unset. All buttons emit signals - those who
+ "go down" and those who "go up".
+ @author Sven Radej <radej@kde.org>
+
+ @short Class for group of radio butons in toolbar.
+
+*/
+public class KToolBarRadioGroup extends QObject {
+ protected KToolBarRadioGroup(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor. Parent must be KToolBar .
+ @short Constructor.
+ */
+ public KToolBarRadioGroup(KToolBar _parent, String _name) {
+ super((Class) null);
+ newKToolBarRadioGroup(_parent,_name);
+ }
+ private native void newKToolBarRadioGroup(KToolBar _parent, String _name);
+ public KToolBarRadioGroup(KToolBar _parent) {
+ super((Class) null);
+ newKToolBarRadioGroup(_parent);
+ }
+ private native void newKToolBarRadioGroup(KToolBar _parent);
+ /**
+ Adds button to group. Button cannot be unset by mouse clicks (you
+ must press some other button tounset this one)
+ @short Adds button to group.
+ */
+ public native void addButton(int id);
+ /**
+ Removes button from group, making it again toggle button (i.e.
+ You can unset it with mouse).
+ @short Removes button from group, making it again toggle button (i.
+ */
+ public native void removeButton(int id);
+ /**
+ Internal - nothing for you here.
+ @short Internal - nothing for you here.
+ */
+ public native void slotToggled(int arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KToolBarSeparator.java b/kdejava/koala/org/kde/koala/KToolBarSeparator.java
new file mode 100644
index 00000000..d1beb5a3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KToolBarSeparator.java
@@ -0,0 +1,43 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QSize;
+import org.kde.qt.QPainter;
+import org.kde.qt.QSizePolicy;
+import org.kde.qt.QToolBar;
+import org.kde.qt.QStyle;
+import org.kde.qt.QFrame;
+
+/**
+*/
+public class KToolBarSeparator extends QFrame {
+ protected KToolBarSeparator(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KToolBarSeparator(int arg1, boolean l, QToolBar parent, String name) {
+ super((Class) null);
+ newKToolBarSeparator(arg1,l,parent,name);
+ }
+ private native void newKToolBarSeparator(int arg1, boolean l, QToolBar parent, String name);
+ public KToolBarSeparator(int arg1, boolean l, QToolBar parent) {
+ super((Class) null);
+ newKToolBarSeparator(arg1,l,parent);
+ }
+ private native void newKToolBarSeparator(int arg1, boolean l, QToolBar parent);
+ public native QSize sizeHint();
+ public native int orientation();
+ public native QSizePolicy sizePolicy();
+ public native boolean showLine();
+ public native void setOrientation(int arg1);
+ public native void styleChange(QStyle arg1);
+ protected native void drawContents(QPainter arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KToolBarSignals.java b/kdejava/koala/org/kde/koala/KToolBarSignals.java
new file mode 100644
index 00000000..d220ee4a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KToolBarSignals.java
@@ -0,0 +1,107 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMainWindow;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPopupMenu;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSize;
+import org.kde.qt.QSizePolicy;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QEvent;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QDomElement;
+import org.kde.qt.QChildEvent;
+
+public interface KToolBarSignals {
+ /**
+ Emitted when button <code>id</code> is clicked.
+ @short Emitted when button <code>id</code> is clicked.
+ */
+ void clicked(int id);
+ /**
+ Emitted when button <code>id</code> is double-clicked.
+ Note: you will always
+ recive two clicked() , pressed() and released() signals.
+ There is no way to avoid it - at least no easy way.
+ If you need to resolve this all you can do is set up timers
+ which wait for QApplication.doubleClickInterval() to expire.
+ If in that time you don't get this signal, you may belive that
+ button was only clicked and not double-clicked.
+ And please note that butons with popup menus do not emit this signal,
+ but those with delayed popup do.
+ @short Emitted when button <code>id</code> is double-clicked.
+ */
+ void doubleClicked(int id);
+ /**
+ Emitted when button <code>id</code> is pressed.
+ @short Emitted when button <code>id</code> is pressed.
+ */
+ void pressed(int arg1);
+ /**
+ Emits when button <code>id</code> is released.
+ @short Emits when button <code>id</code> is released.
+ */
+ void released(int arg1);
+ /**
+ Emitted when a toggle button changes state.
+ Emitted also if you change state
+ with setButton() or toggleButton()
+ If you make a button normal again, with
+ setToggle(false), this signal won't
+ be emitted.
+ @short Emitted when a toggle button changes state.
+ */
+ void toggled(int arg1);
+ /**
+ This signal is emitted when item <code>id</code> gets highlighted/unhighlighted
+ (i.e when mouse enters/exits).
+ Note that this signal is emitted from
+ all buttons (normal, disabled and toggle) even when there is no visible
+ change in buttons (i.e., buttons do not raise when mouse enters).
+ The parameter <code>isHighlighted</code> is <code>true</code> when mouse enters and <code>false</code> when
+ mouse exits.
+ @short This signal is emitted when item <code>id</code> gets highlighted/unhighlighted (i.
+ */
+ void highlighted(int id, boolean isHighlighted);
+ /**
+ This signal is emitted when item <code>id</code> gets highlighted/unhighlighted
+ (i.e when mouse enters/exits).
+ Note that this signal is emitted from
+ all buttons (normal, disabled and toggle) even when there is no visible
+ change in buttons (i.e., buttons do not raise when mouse enters).
+ @short This signal is emitted when item <code>id</code> gets highlighted/unhighlighted (i.
+ */
+ void highlighted(int id);
+ /**
+ Emitted when toolbar changes position, or when
+ an item is removed from toolbar.
+ If you subclass KMainWindow and reimplement
+ KMainWindow.resizeEvent() be sure to connect to
+ this signal. Note: You can connect this signal to a slot that
+ doesn't take parameter.
+ @short Emitted when toolbar changes position, or when an item is removed from toolbar.
+ */
+ void moved(int arg1);
+ /**
+ This signal is emitted when toolbar detects changing of
+ following parameters:
+ highlighting, button-size, button-mode. This signal is
+ internal, aimed to buttons.
+ @short This signal is emitted when toolbar detects changing of following parameters: highlighting, button-size, button-mode.
+ */
+ void modechange();
+ /**
+ This signal is emitted when the toolbar is getting deleted,
+ and before ~KToolbar finishes (so it's still time to remove
+ widgets from the toolbar).
+ Used by KWidgetAction.
+ @short This signal is emitted when the toolbar is getting deleted, and before ~KToolbar finishes (so it's still time to remove widgets from the toolbar).
+ */
+ void toolbarDestroyed();
+}
diff --git a/kdejava/koala/org/kde/koala/KTrader.java b/kdejava/koala/org/kde/koala/KTrader.java
new file mode 100644
index 00000000..519ac328
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KTrader.java
@@ -0,0 +1,155 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QObject;
+
+/**
+
+ A Trader interface, similar to the CORBA Trader.
+ Basically, it provides a way for an application to query
+ all KDE services (that is, applications and components) that match
+ a specific set of requirements. This allows you to find an
+ application in real-time without you having to hard-code the name
+ and/or path of the application. It is mostly used when you want to
+ do complex queries that KServiceTypeProfile can't handle.
+ \par Examples
+ A few examples will make this a lot more clear.
+ Say you have an application that will display HTML. In this
+ example, you don't want to link to khtml... and furthermore, you
+ really don't care if the HTML browser is ours or not, as long as
+ it works. The way that you formulate your query as well as the way
+ that you execute the browser depends on whether or not you want the
+ browser to run stand-alone or embedded.
+ If you want the browser to run standalone, then you will limit the
+ query to search for all services that handle 'text/html' <b>and</b>,
+ furthermore, they must be applications (Type=Application). You
+ then will use KRun.run() to invoke the application. In "trader-speak",
+ this looks like so:
+ <pre>
+ ArrayList offers = KTrader.self().query("text/html", "Type == 'Application'");
+ KService.Ptr ptr = offers.first();
+ KURL.List lst;
+ lst.append("http://www.kde.org/index.html");
+ KRun.run(ptr, lst);
+ </pre>
+ It should be noted that in the above example, using
+ KServiceTypeProfile would be the better choice since you would
+ probably want the preferred service and the trader doesn't take
+ this into account. The trader does allow you to do more complex
+ things, though. Say, for instance, you want to only choose
+ Netscape. You can do it with the constraint: "(Type ==
+ 'Application') and (Name == 'Netscape')"
+ More the likely, though, you will only use the trader for such
+ things as finding components. In our continuing example, we say
+ that we want to load any KParts component that can handle HTML. We
+ will need to use the KLibFactory and KLibLoader to
+ actually do something with our query, then. Our code would look
+ like so:
+ <pre>
+ ArrayList offers = KTrader.self().query("text/html", "'KParts/ReadOnlyPart' in ServiceTypes");
+ KService.Ptr ptr = offers.first();
+ KLibFactory factory = KLibLoader.self().factory( ptr.library() );
+ if (factory)
+ part = static_cast<KParts.ReadOnlyPart >(factory.create(this, ptr.name(), "KParts.ReadOnlyPart"));
+ </pre>
+ Please note that when including property names containing arithmetic operators like - or +, then you have
+ to put brackets around the property name, in order to correctly separate arithmetic operations from
+ the name. So for example a constraint expression like
+ X-KDE-Blah < 4
+ needs to be written as
+ [X-KDE-Blah] < 4
+ otherwise it could also be interpreted as
+ Substract the numeric value of the property "KDE" and "Blah" from the property "X" and make sure it
+ is less than 4.
+ Instead of the other meaning, make sure that the numeric value of "X-KDE-Blah" is less than 4.
+ See also the formal syntax defined in {@link #tradersyntax} .
+ @author Torben Weis <weis@kde.org>
+
+ @short Provides a way to query the KDE infrastructure for specific applications or components.
+
+*/
+public class KTrader extends QObject {
+ protected KTrader(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ The main function in the KTrader class.
+ It will return a list of services that match your
+ specifications. The only required parameter is the service
+ type. This is something like 'text/plain' or 'text/html'. The
+ constraint parameter is used to limit the possible choices
+ returned based on the constraints you give it.
+ The <code>constraint</code> language is rather full. The most common
+ keywords are AND, OR, NOT, IN, and EXIST, all used in an
+ almost spoken-word form. An example is:
+ <pre>
+ (Type == 'Service') and (('KParts/ReadOnlyPart' in ServiceTypes) or (exist Exec))
+ </pre>
+ The keys used in the query (Type, ServiceType, Exec) are all
+ fields found in the .desktop files.
+ @param servicetype A service type like 'text/plain', 'text/html', or 'KOfficePlugin'.
+ @param constraint A constraint to limit the choices returned, null to
+ get all services of the given <code>servicetype</code>
+ @param preferences Indicates a particular preference to return, null to ignore.
+ Uses an expression in the constraint language that must return
+ a number
+ @return A list of services that satisfy the query
+
+ @short The main function in the KTrader class.
+ @see #http://developer#kde#org/documentation/library/kdeqt/tradersyntax#html
+ */
+ public native ArrayList query(String servicetype, String constraint, String preferences);
+ public native ArrayList query(String servicetype, String constraint);
+ public native ArrayList query(String servicetype);
+ /**
+ A variant of query(), that takes two service types as an input.
+ It is not exactly the same as adding the second service type
+ in the constraints of the other query call, because this one
+ takes into account user preferences for this combination of service types.
+ Example usage:
+ To get list of applications that can handle a given mimetype,
+ set <code>servicetype</code> to the mimetype and <code>genericServiceType</code> is "Application".
+ To get list of embeddable components that can handle a given mimetype,
+ set <code>servicetype</code> to the mimetype and <code>genericServiceType</code> is "KParts/ReadOnlyPart".
+ @param servicetype A service type like 'text/plain', 'text/html', or 'KOfficePlugin'.
+ @param genericServiceType a basic service type, like 'KParts/ReadOnlyPart' or 'Application'
+ @param constraint A constraint to limit the choices returned, null to
+ get all services of the given <code>servicetype</code>
+ @param preferences Indicates a particular preference to return, null to ignore.
+ Uses an expression in the constraint language that must return
+ a number
+ @return A list of services that satisfy the query
+
+ @short A variant of query(), that takes two service types as an input.
+ @see #http://developer#kde#org/documentation/library/kdeqt/tradersyntax#html
+ */
+ public native ArrayList query(String servicetype, String genericServiceType, String constraint, String preferences);
+ /**
+ This is a static pointer to a KTrader instance.
+ You will need
+ to use this to access the KTrader functionality since the
+ constuctors are protected.
+ @return Static KTrader instance
+
+ @short This is a static pointer to a KTrader instance.
+ */
+ public static native KTrader self();
+ /**
+ @short
+ */
+ public KTrader() {
+ super((Class) null);
+ newKTrader();
+ }
+ private native void newKTrader();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURIFilter.java b/kdejava/koala/org/kde/koala/KURIFilter.java
new file mode 100644
index 00000000..46c910da
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURIFilter.java
@@ -0,0 +1,174 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ Manages the filtering of URIs.
+ The intention of this plugin class is to allow people to extend the
+ functionality of KURL without modifying it directly. This way KURL will
+ remain a generic parser capable of parsing any generic URL that adheres
+ to specifications.
+ The KURIFilter class applies a number of filters to a URI and returns the
+ filtered version whenever possible. The filters are implemented using
+ plugins to provide easy extensibility of the filtering mechanism. New
+ filters can be added in the future by simply inheriting from
+ KURIFilterPlugin and implementing the KURIFilterPlugin.filterURI
+ method.
+ Use of this plugin-manager class is straight forward. Since it is a
+ singleton object, all you have to do is obtain an instance by doing
+ <code>KURIFilter</code>.self() and use any of the public member functions to
+ preform the filtering.
+ <b></b>xample
+ To simply filter a given string:
+ <pre>
+ boolean filtered = KURIFilter.self().filterURI( "kde.org" );
+ </pre>
+ You can alternatively use a KURL:
+ <pre>
+ KURL url = "kde.org";
+ boolean filtered = KURIFilter.self().filterURI( url );
+ </pre>
+ If you have a constant string or a constant URL, simply invoke the
+ corresponding function to obtain the filtered string or URL instead
+ of a booleanean flag:
+ <pre>
+ String u = KURIFilter.self().filteredURI( "kde.org" );
+ </pre>
+ You can also restrict the filter(s) to be used by supplying
+ the name of the filter(s) to use. By defualt all available
+ filters will be used. To use specific filters, add the names
+ of the filters you want to use to an ArrayList and invoke
+ the appropriate filtering function. The examples below show
+ the use of specific filters. The first one uses a single
+ filter called kshorturifilter while the second example uses
+ multiple filters:
+ <pre>
+ String text = "kde.org";
+ boolean filtered = KURIFilter.self().filterURI( text, "kshorturifilter" );
+ </pre>
+ <pre>
+ ArrayList list;
+ list << "kshorturifilter" << "localdomainfilter";
+ boolean filtered = KURIFilter.self().filterURI( text, list );
+ </pre>
+ KURIFilter also allows richer data exchange through a simple
+ meta-object called <code>KURIFilterData.</code> Using this meta-object
+ you can find out more information about the URL you want to
+ filter. See KURIFilterData for examples and details.
+ @short Filters a given URL into its proper format whenever possible.
+
+*/
+public class KURIFilter implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KURIFilter(Class dummy){}
+
+ /**
+ Filters the URI given by the object URIFilterData.
+ The given URL is filtered based on the specified list of filters.
+ If the list is empty all available filters would be used.
+ @param data object that contains the URI to be filtered.
+ @param filters specify the list of filters to be used.
+ @return a boolean indicating whether the URI has been changed
+
+ @short Filters the URI given by the object URIFilterData.
+ */
+ public native boolean filterURI(KURIFilterData data, String[] filters);
+ public native boolean filterURI(KURIFilterData data);
+ /**
+ Filters the URI given by the URL.
+ The given URL is filtered based on the specified list of filters.
+ If the list is empty all available filters would be used.
+ @param uri the URI to filter.
+ @param filters specify the list of filters to be used.
+ @return a boolean indicating whether the URI has been changed
+
+ @short Filters the URI given by the URL.
+ */
+ public native boolean filterURI(KURL uri, String[] filters);
+ public native boolean filterURI(KURL uri);
+ /**
+ Filters a string representing a URI.
+ The given URL is filtered based on the specified list of filters.
+ If the list is empty all available filters would be used.
+ @param uri The URI to filter.
+ @param filters specify the list of filters to be used.
+ @return a boolean indicating whether the URI has been changed
+
+ @short Filters a string representing a URI.
+ */
+ public native boolean filterURI(StringBuffer uri, String[] filters);
+ public native boolean filterURI(StringBuffer uri);
+ /**
+ Returns the filtered URI.
+ The given URL is filtered based on the specified list of filters.
+ If the list is empty all available filters would be used.
+ @param uri The URI to filter.
+ @param filters specify the list of filters to be used.
+ @return the filtered URI or null if it cannot be filtered
+
+ @short Returns the filtered URI.
+ */
+ public native KURL filteredURI(KURL uri, String[] filters);
+ public native KURL filteredURI(KURL uri);
+ /**
+ Return a filtered string representation of a URI.
+ The given URL is filtered based on the specified list of filters.
+ If the list is empty all available filters would be used.
+ @param uri the URI to filter.
+ @param filters specify the list of filters to be used.
+ @return the filtered URI or null if it cannot be filtered
+
+ @short Return a filtered string representation of a URI.
+ */
+ public native String filteredURI(String uri, String[] filters);
+ public native String filteredURI(String uri);
+ /**
+ Return an iterator to iterate over all loaded
+ plugins.
+ @return a plugin iterator.
+
+ @short Return an iterator to iterate over all loaded plugins.
+ */
+ // QPtrListIterator<KURIFilterPlugin> pluginsIterator(); >>>> NOT CONVERTED
+ /**
+ Return a list of the names of all loaded plugins.
+ @return an ArrayList of plugin names
+
+ @short Return a list of the names of all loaded plugins.
+ */
+ public native ArrayList pluginNames();
+ /**
+ Returns an instance of KURIFilter.
+ @short Returns an instance of KURIFilter.
+ */
+ public static native KURIFilter self();
+ /**
+ A protected constructor.
+ This constructor creates a KURIFilter and
+ initializes all plugins it can find by invoking
+ loadPlugins.
+ @short A protected constructor.
+ */
+ public KURIFilter() {
+ newKURIFilter();
+ }
+ private native void newKURIFilter();
+ /**
+ Loads all allowed plugins.
+ This function loads all filters that have not
+ been disbled.
+ @short Loads all allowed plugins.
+ */
+ protected native void loadPlugins();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURIFilterData.java b/kdejava/koala/org/kde/koala/KURIFilterData.java
new file mode 100644
index 00000000..f74e035b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURIFilterData.java
@@ -0,0 +1,284 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A basic message object used for exchanging filtering
+ information between the filter plugins and the application
+ requesting the filtering service.
+ Use this object if you require a more detailed information
+ about the URI you want to filter. Any application can create
+ an instance of this class and send it to KURIFilter to
+ have the plugins fill out all possible information about the
+ URI.
+ <b></b>xample
+ <pre>
+ String text = "kde.org";
+ KURIFilterData d = text;
+ boolean filtered = KURIFilter.self().filter( d );
+ cout << "URL: " << text.latin1() << endl
+ << "Filtered URL: " << d.uri().url().latin1() << endl
+ << "URI Type: " << d.uriType() << endl
+ << "Was Filtered: " << filtered << endl;
+ </pre>
+ The above code should yield the following output:
+ <pre>
+ URI: kde.org
+ Filtered URI: http://kde.org
+ URI Type: 0 <== means NET_PROTOCOL
+ Was Filtered: 1 <== means the URL was successfully filtered
+ </pre>
+ @author Dawit Alemayehu <adawit at kde.org>
+
+ @short A message object for exchanging filtering URI info.
+
+*/
+public class KURIFilterData implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KURIFilterData(Class dummy){}
+
+ /**
+ Describes the type of the URI that was filtered.
+ Here is a brief description of the types:
+
+ <li>
+ NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc...
+ </li>
+
+ <li>
+ LOCAL_FILE - A local file whose executable flag is not set
+ </li>
+
+ <li>
+ LOCAL_DIR - A local directory
+ </li>
+
+ <li>
+ EXECUTABLE - A local file whose executable flag is set
+ </li>
+
+ <li>
+ HELP - A man or info page
+ </li>
+
+ <li>
+ SHELL - A shell executable (ex: echo "Test..." >> ~/testfile)
+ </li>
+
+ <li>
+ BLOCKED - A URI that should be blocked/filtered (ex: ad filtering)
+ </li>
+
+ <li>
+ ERROR - An incorrect URI (ex: "~johndoe" when user johndoe
+ does not exist in that system )
+ </li>
+
+ <li>
+ UNKNOWN - A URI that is not identified. Default value when
+ a KURIFilterData is first created.
+
+ </li> @short Describes the type of the URI that was filtered.
+ */
+ public static final int NET_PROTOCOL = 0;
+ public static final int LOCAL_FILE = 1;
+ public static final int LOCAL_DIR = 2;
+ public static final int EXECUTABLE = 3;
+ public static final int HELP = 4;
+ public static final int SHELL = 5;
+ public static final int BLOCKED = 6;
+ public static final int ERROR = 7;
+ public static final int UNKNOWN = 8;
+
+ /**
+ Default constructor.
+ Creates a URIFilterData object.
+ @short Default constructor.
+ */
+ public KURIFilterData() {
+ newKURIFilterData();
+ }
+ private native void newKURIFilterData();
+ /**
+ Creates a URIFilterData object from the given URL.
+ @param url is the URL to be filtered.
+ @short Creates a URIFilterData object from the given URL.
+ */
+ public KURIFilterData(KURL url) {
+ newKURIFilterData(url);
+ }
+ private native void newKURIFilterData(KURL url);
+ /**
+ Creates a URIFilterData object from the given string.
+ @param url is the string to be filtered.
+ @short Creates a URIFilterData object from the given string.
+ */
+ public KURIFilterData(String url) {
+ newKURIFilterData(url);
+ }
+ private native void newKURIFilterData(String url);
+ /**
+ Copy constructor.
+ Creates a URIFilterData object from another
+ URI filter data object.
+ @param data the uri filter data to be copied.
+ @short Copy constructor.
+ */
+ public KURIFilterData(KURIFilterData data) {
+ newKURIFilterData(data);
+ }
+ private native void newKURIFilterData(KURIFilterData data);
+ /**
+ Returns the filtered or the original URL.
+ This function returns the filtered url if one
+ of the plugins successfully filtered the original
+ URL. Otherwise, it returns the original URL.
+ See hasBeenFiltered() and
+ @return the filtered or original url.
+
+ @short Returns the filtered or the original URL.
+ */
+ public native KURL uri();
+ /**
+ Returns an error message.
+ This functions returns the error message set
+ by the plugin whenever the uri type is set to
+ KURIFilterData.ERROR. Otherwise, it returns
+ a null.
+ @return the error message or a NULL when there is none.
+
+ @short Returns an error message.
+ */
+ public native String errorMsg();
+ /**
+ Returns the URI type.
+ This method always returns KURIFilterData.UNKNOWN
+ if the given URL was not filtered.
+ @return the type of the URI
+
+ @short Returns the URI type.
+ */
+ public native int uriType();
+ /**
+ Sets the URL to be filtered.
+ Use this function to set the string to be
+ filtered when you construct an empty filter
+ object.
+ @param url the string to be filtered.
+ @short Sets the URL to be filtered.
+ */
+ public native void setData(String url);
+ /**
+ Same as above except the argument is a URL.
+ Use this function to set the string to be
+ filtered when you construct an empty filter
+ object.
+ @param url the URL to be filtered.
+ @short Same as above except the argument is a URL.
+ */
+ public native void setData(KURL url);
+ /**
+ Sets the absolute path to be used whenever the supplied
+ data is a relative local URL.
+ NOTE: This function should only be used for local resources,
+ i.e. the "file:/" protocol. It is useful for specifying the
+ absolute path in cases where the actual URL might be relative.
+ meta object. If deriving the path from a KURL, make sure you
+ set the argument for this function to the result of calling
+ path () instead of url ().
+ @param abs_path the abolute path to the local resource.
+ @return true if absolute path is successfully set. Otherwise, false.
+
+ @short Sets the absolute path to be used whenever the supplied data is a relative local URL.
+ */
+ public native boolean setAbsolutePath(String abs_path);
+ /**
+ Returns the absolute path if one has already been set.
+ @return the absolute path, or null
+
+ @short Returns the absolute path if one has already been set.
+ @see #hasAbsolutePath
+ */
+ public native String absolutePath();
+ /**
+ Checks whether the supplied data had an absolute path.
+ @return true if the supplied data has an absolute path
+
+ @short Checks whether the supplied data had an absolute path.
+ @see #absolutePath
+ */
+ public native boolean hasAbsolutePath();
+ /**
+ Returns the command line options and arguments for a
+ local resource when present.
+ @return options and arguments when present, otherwise null
+
+ @short Returns the command line options and arguments for a local resource when present.
+ */
+ public native String argsAndOptions();
+ /**
+ Checks whether the current data is a local resource with
+ command line options and arguments.
+ @return true if the current data has command line options and arguments
+
+ @short Checks whether the current data is a local resource with command line options and arguments.
+ */
+ public native boolean hasArgsAndOptions();
+ /**
+ Returns the name of the icon that matches
+ the current filtered URL.
+ NOTE that this function will return a NULL
+ string by default and when no associated icon
+ is found.
+ @return the name of the icon associated with the resource,
+ or null if not found
+
+ @short Returns the name of the icon that matches the current filtered URL.
+ */
+ public native String iconName();
+ /**
+ Check whether the provided uri is executable or not.
+ Setting this to false ensures that typing the name of
+ an executable does not start that application. This is
+ useful in the location bar of a browser. The default
+ value is true.
+ @short Check whether the provided uri is executable or not.
+ */
+ public native void setCheckForExecutables(boolean check);
+ /**
+ @return true if the filters should attempt to check whether the
+ supplied uri is an executable. False otherwise.
+
+ @short
+ */
+ public native boolean checkForExecutables();
+ /**
+ @return the string as typed by the user, before any URL processing is done
+
+ @short
+ */
+ public native String typedString();
+ /**
+ Initializes the KURIFilterData on construction.
+ @param url the URL to initialize the object with
+ @short Initializes the KURIFilterData on construction.
+ */
+ protected native void init(KURL url);
+ /**
+ Initializes the KURIFilterData on construction.
+ @param url the URL to initialize the object with
+ @short Initializes the KURIFilterData on construction.
+ */
+ protected native void init(String url);
+ protected native void init();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURIFilterPlugin.java b/kdejava/koala/org/kde/koala/KURIFilterPlugin.java
new file mode 100644
index 00000000..37007538
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURIFilterPlugin.java
@@ -0,0 +1,74 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ Base class for URI filter plugins.
+ This class applies a single filter to a URI. All plugins designed
+ to provide URI filtering service should inherit from this abstract
+ class and provide a concrete implementation.
+ All inheriting classes need to implement the pure function
+ filterURI.
+ @short Abstract class for URI filter plugins.
+
+*/
+public class KURIFilterPlugin extends QObject {
+ protected KURIFilterPlugin(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a filter plugin with a given name and
+ priority.
+ @param parent the parent object, or 0 for no parent
+ @param name the name of the plugin, or 0 for no name
+ @param pri the priority of the plugin.
+ @short Constructs a filter plugin with a given name and priority.
+ */
+ /**
+ Returns the filter's name.
+ @return A string naming the filter.
+
+ @short Returns the filter's name.
+ */
+ public native String name();
+ /**
+ Returns the filter's priority.
+ Each filter has an assigned priority, a float from 0 to 1. Filters
+ with the lowest priority are first given a chance to filter a URI.
+ @return The priority of the filter.
+
+ @short Returns the filter's priority.
+ */
+ public native double priority();
+ /**
+ Filters a URI.
+ @param data the URI data to be filtered.
+ @return A boolean indicating whether the URI has been changed.
+
+ @short Filters a URI.
+ */
+ public native boolean filterURI(KURIFilterData data);
+ /**
+ Creates a configuration module for the filter.
+ It is the responsibility of the caller to delete the module
+ once it is not needed anymore.
+ @return A configuration module, 0 if the filter isn't configurable.
+
+ @short Creates a configuration module for the filter.
+ */
+ public native KCModule configModule(QWidget arg1, String arg2);
+ /**
+ Returns the name of the configuration module for the filter.
+ @return the name of a configuration module or null if none.
+
+ @short Returns the name of the configuration module for the filter.
+ */
+ public native String configName();
+}
diff --git a/kdejava/koala/org/kde/koala/KURL.java b/kdejava/koala/org/kde/koala/KURL.java
new file mode 100644
index 00000000..0bab1cfc
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURL.java
@@ -0,0 +1,1341 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QUrlInterface;
+import java.util.ArrayList;
+import org.kde.qt.QUrl;
+
+/**
+
+ @brief Represents and parses a URL
+ A prototypical URL looks like:
+ @code
+ protocol://user:password@hostname:port/path/to/file.ext#reference
+ @endcode
+ KURL handles escaping of URLs. This means that the specification
+ of a full URL will differ from the corresponding string that would specify a
+ local file or directory in file-operations like fopen. This is because an URL
+ doesn't allow certain characters and escapes them.
+ For examle:
+ - '#' . "%23"
+ (In a URL the hash-character @c '#' is used to specify a "reference", i.e.
+ the position within a document)
+ - space . "%20"
+ The constructor KURL(String) expects a string properly escaped,
+ or at least non-ambiguous.
+ For instance a local file or directory <tt>"/bar/#foo#"</tt> would have the
+ URL <tt>"file:///bar/%23foo%23"</tt>.
+ If you have the absolute path and need the URL-escaping you should create
+ KURL via the default-constructor and then call setPath(String):
+ @code
+ KURL kurl;
+ kurl.setPath( "/bar/#foo#" );
+ String url = kurl.url(); // . "file:///bar/%23foo%23"
+ @endcode
+ If you have the URL of a local file or directory and need the absolute path,
+ you would use path().
+ @code
+ KURL url( "file:///bar/%23foo%23" );
+ ...
+ if ( url.isLocalFile() )
+ String path = url.path(); // . "/bar/#foo#"
+ @endcode
+ The other way round: if the user can enter a string, that can be either a
+ path or a URL, then you need to use KURL.fromPathOrURL() to build a KURL.
+ This must also be considered, when you have separated directory and file
+ strings and need to put them together.
+ While you can simply concatenate normal path strings, you must take care if
+ the directory-part is already an escaped URL.
+ (This might be needed if the user specifies a relative path, and your
+ program supplies the rest from elsewhere.)
+ Wrong:
+ @code
+ String dirUrl = "file:///bar/";
+ String fileName = "#foo#";
+ String invalidURL = dirUrl + fileName; // . "file:///bar/#foo#" won't behave like you would expect.
+ @endcode
+ Instead you should use addPath().
+ Right:
+ @code
+ KURL url( "file:///bar/" );
+ String fileName = "#foo#";
+ url.addPath( fileName );
+ String validURL = url.url(); // . "file:///bar/%23foo%23"
+ @endcode
+ Also consider that some URLs contain the password, but this shouldn't be
+ visible. Your program should use prettyURL() every time it displays a
+ URL, whether in the GUI or in debug output or...
+ @code
+ KURL url( "ftp://name:password@ftp.faraway.org/bar/%23foo%23");
+ String visibleURL = url.prettyURL(); // . "ftp://name@ftp.faraway.org/bar/%23foo%23"
+ @endcode
+ Note that prettyURL() doesn't change the character escapes (like <tt>"%23"</tt>).
+ Otherwise the URL would be invalid and the user wouldn't be able to use it in another
+ context.
+ KURL has some restrictions regarding the path
+ encoding. KURL works internally with the decoded path and
+ and encoded query. For example,
+ @code
+ http://localhost/cgi-bin/test%20me.pl?cmd=Hello%20you
+ @endcode
+ would result in a decoded path <tt>"/cgi-bin/test me.pl"</tt>
+ and in the encoded query <tt>"?cmd=Hello%20you"</tt>.
+ Since path is internally always encoded you may <b>not</b> use
+ <tt>"%00"</tt> in the path, although this is OK for the query.
+ @author Torben Weis <weis@kde.org>
+
+ @short @brief Represents and parses a URL
+
+*/
+public class KURL implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KURL(Class dummy){}
+
+ /**
+ Flags to choose how file: URLs are treated when creating their String
+ representation with prettyURL(int,AdjustementFlags)
+ However it is recommended to use pathOrURL() instead of this variant of prettyURL()
+ @short Flags to choose how file: URLs are treated when creating their String representation with prettyURL(int,AdjustementFlags)
+ */
+ public static final int NoAdjustements = 0;
+ public static final int StripFileProtocol = 1;
+
+ /**
+ Defines the type of URI we are processing.
+ @short Defines the type of URI we are processing.
+ */
+ public static final int Auto = 0;
+ public static final int Invalid = 1;
+ public static final int RawURI = 2;
+ public static final int URL = 3;
+ public static final int Mailto = 4;
+
+ /**
+ Options for queryItems()
+ @short Options for queryItems()
+ */
+ public static final int CaseInsensitiveKeys = 1;
+
+ /**
+ @brief Constructs an empty URL
+ The created instance will also be invalid, see isValid()
+ @short @brief Constructs an empty URL
+ */
+ public KURL() {
+ newKURL();
+ }
+ private native void newKURL();
+ /**
+ @brief Usual constructor, to construct from a string
+ @warning It is dangerous to feed UNIX filenames into this function,
+ this will work most of the time but not always.
+ For example <tt>"/home/Torben%20Weis"</tt> will be considered a URL
+ pointing to the file <tt>"/home/Torben Weis"</tt> instead
+ of to the file <tt>"/home/Torben%20Weis"</tt>.
+ This means that if you have a usual UNIX like path you should not use
+ this constructor. Instead use fromPathOrURL()
+ @param url a URL, not a filename. If the URL does not have a protocol
+ part, @c "file:" is assumed
+ @param encoding_hint MIB of original encoding of URL.
+ See QTextCodec.mibEnum()
+ @short @brief Usual constructor, to construct from a string
+ @see #fromPathOrURL
+ */
+ public KURL(String url, int encoding_hint) {
+ newKURL(url,encoding_hint);
+ }
+ private native void newKURL(String url, int encoding_hint);
+ public KURL(String url) {
+ newKURL(url);
+ }
+ private native void newKURL(String url);
+ /**
+ @brief Copy constructor
+ @param u the KURL to copy
+ @short @brief Copy constructor
+ */
+ public KURL(KURL u) {
+ newKURL(u);
+ }
+ private native void newKURL(KURL u);
+ /**
+ @brief Constructor taking a Qt URL
+ Converts from a Qt URL.
+ @param u the QUrl
+ @short @brief Constructor taking a Qt URL
+ */
+ public KURL(QUrlInterface u) {
+ newKURL(u);
+ }
+ private native void newKURL(QUrlInterface u);
+ /**
+ @brief Constructor allowing relative URLs
+ @warning It is dangerous to feed UNIX filenames into this function,
+ this will work most of the time but not always.
+ For example <tt>"/home/Torben%20Weis"</tt> will be considered a URL
+ pointing to the file <tt>"/home/Torben Weis"</tt> instead
+ of to the file <tt>"/home/Torben%20Weis"</tt>.
+ This means that if you have a usual UNIX like path you should not use
+ this constructor. Instead use fromPathOrURL()
+ @param _baseurl The base url.
+ @param _rel_url A relative or absolute URL.
+ If this is an absolute URL then <code>_baseurl</code> will be ignored.
+ If this is a relative URL it will be combined with <code>_baseurl.</code>
+ Note that <code>_rel_url</code> should be encoded too, in any case.
+ So do NOT pass a path here (use setPath() or addPath() or
+ fromPathOrURL() instead)
+ @param encoding_hint MIB of original encoding of URL.
+ See QTextCodec.mibEnum()
+ @short @brief Constructor allowing relative URLs
+ @see #fromPathOrURL
+ */
+ public KURL(KURL _baseurl, String _rel_url, int encoding_hint) {
+ newKURL(_baseurl,_rel_url,encoding_hint);
+ }
+ private native void newKURL(KURL _baseurl, String _rel_url, int encoding_hint);
+ public KURL(KURL _baseurl, String _rel_url) {
+ newKURL(_baseurl,_rel_url);
+ }
+ private native void newKURL(KURL _baseurl, String _rel_url);
+ /**
+ @brief Returns the protocol for the URL
+ Examples for a protocol string are @c "file", @c "http", etc. but also
+ @c "mailto:" and other pseudo protocols.
+ @return the protocol of the URL, does not include the colon. If the
+ URL is malformed, @c null will be returned
+
+ @short @brief Returns the protocol for the URL
+ @see #setProtocol
+ @see #isValid
+ */
+ public native String protocol();
+ /**
+ @brief Sets the protocol for the URL
+ Examples for a protocol string are @c "file", @c "http", etc. but also
+ @c "mailto:" and other pseudo protocols.
+ @param _txt the new protocol of the URL (without colon)
+ @short @brief Sets the protocol for the URL
+ @see #protocol
+ */
+ public native void setProtocol(String _txt);
+ /**
+ @brief Returns the URI processing mode for the URL
+ @return the URI processing mode set for this URL
+
+ @short @brief Returns the URI processing mode for the URL
+ @see URIMode
+ @see #uriModeForProtocol
+ */
+ public native int uriMode();
+ /**
+ @brief Returns the decoded user name (login, user id, etc) included in
+ the URL
+ @return the user name or @c null if there is no user name
+
+ @short @brief Returns the decoded user name (login, user id, etc) included in the URL
+ @see #setUser
+ @see #hasUser
+ */
+ public native String user();
+ /**
+ @brief Sets the user name (login, user id, etc) to include in the URL
+ Special characters in the user name will appear encoded in the URL.
+ If there is a password associated with the user, it can be set using
+ setPass().
+ @param _txt the name of the user or <code>null</code> to remove the user
+ @short @brief Sets the user name (login, user id, etc) to include in the URL
+ @see #user
+ @see #hasUser
+ @see #hasPass
+ */
+ public native void setUser(String _txt);
+ /**
+ @brief Tests if this URL has a user name included in it
+ @return @c true if the URL has an non-empty user name
+
+ @short @brief Tests if this URL has a user name included in it
+ @see #user
+ @see #setUser
+ @see #hasPass
+ */
+ public native boolean hasUser();
+ /**
+ @brief Returns the decoded password (corresponding to user()) included
+ in the URL
+ @note a password can only appear in a URL string if you also set
+ a user, see setUser().
+ @return the password or @c null if it does not exist
+
+ @short @brief Returns the decoded password (corresponding to user()) included in the URL
+ @see #setPass
+ @see #hasPass
+ @see #hasUser
+ */
+ public native String pass();
+ /**
+ @brief Sets the password (corresponding to user()) to include in the URL
+ Special characters in the password will appear encoded in the URL.
+ @note a password can only appear in a URL string if you also set
+ a user, see setUser().
+ @param _txt the password to set or <code>null</code> to remove the password
+ @short @brief Sets the password (corresponding to user()) to include in the URL
+ @see #pass
+ @see #hasPass
+ @see #hasUser
+ */
+ public native void setPass(String _txt);
+ /**
+ @brief Tests if this URL has a password included in it
+ @note a password can only appear in a URL string if you also set
+ a user, see setUser().
+ @return @c true if there is a non-empty password set
+
+ @short @brief Tests if this URL has a password included in it
+ @see #pass
+ @see #setPass
+ @see #hasUser
+ */
+ public native boolean hasPass();
+ /**
+ @brief Returns the decoded hostname included in the URL
+ @return the name of the host or @c null if no host is set
+
+ @short @brief Returns the decoded hostname included in the URL
+ @see #setHost
+ @see #hasHost
+ */
+ public native String host();
+ /**
+ @brief Sets the hostname to include in the URL
+ Special characters in the hostname will appear encoded in the URL.
+ @param _txt the new name of the host or null to remove the host
+ @short @brief Sets the hostname to include in the URL
+ @see #host
+ @see #hasHost
+ */
+ public native void setHost(String _txt);
+ /**
+ @brief Tests if this URL has a hostname included in it
+ @return @c true if the URL has a non-empty host
+
+ @short @brief Tests if this URL has a hostname included in it
+ @see #host
+ @see #setHost
+ */
+ public native boolean hasHost();
+ /**
+ @brief Returns the port number included in the URL
+ @return the port number or @c 0 if there is no port number specified in
+ the URL
+
+ @short @brief Returns the port number included in the URL
+ @see #setPort
+ @see #host
+ */
+ public native short port();
+ /**
+ @brief Sets the port number to include in the URL
+ @param _p the new port number or <code>0</code> to have no port number
+ @short @brief Sets the port number to include in the URL
+ @see #port
+ @see #setHost
+ */
+ public native void setPort(short _p);
+ /**
+ @brief Returns the current decoded path
+ This does <b>not</b> include the query.
+ @return the path of the URL (without query), or @c null if no
+ path is set
+
+ @short @brief Returns the current decoded path
+ @see #path(int)
+ @see #setPath
+ @see #hasPath
+ */
+ public native String path();
+ /**
+ @brief Returns the current decoded path
+ This does <b>not</b> include the query, see query() for accessing it.
+ The <code>_trailing</code> parameter allows to ensure the existance or absence of
+ the last (trailing) @c '/' character in the path.
+ If the URL has no path, then no @c '/' is added anyway.
+ And on the other side: if the path is just @c "/", then this character
+ won't be stripped.
+ Reason: <tt>"ftp://weis@host"</tt> means something completely different
+ than <tt>"ftp://weis@host/"</tt>.
+ So adding or stripping the '/' would really alter the URL, while
+ <tt>"ftp://host/path"</tt> and <tt>"ftp://host/path/"</tt> mean the same
+ directory.
+ @param _trailing May be ( @c -1, <code>0</code>, @c +1 ). @c -1 strips a trailing
+ @c '/', @c +1 adds a trailing @c '/' if there is none yet
+ and <code>0</code> returns the path unchanged
+ @return the path of the URL (without query), or @c null if no
+ path is set
+
+ @short @brief Returns the current decoded path
+ @see #path
+ @see #setPath
+ @see #hasPath
+ @see #adjustPath
+ */
+ public native String path(int _trailing);
+ /**
+ @brief Sets the decoded path of the URL
+ This does <b>not</b> changed the query, see setQuery() for that.
+ The <code>path</code> is considered to be decoded, i.e. characters not allowed in
+ path, for example @c '?' will be encoded and does not indicate the
+ beginning of the query part. Something that might look encoded,
+ like @c "%3f" will not become decoded.
+ @param path the new, decoded, path or <code>null</code> to remove the path
+ @short @brief Sets the decoded path of the URL
+ @see #path
+ @see #path(int)
+ @see #hasPath
+ */
+ public native void setPath(String path);
+ /**
+ @brief Tests if this URL has a path included in it
+ @return @c true if there is a non-empty path
+
+ @short @brief Tests if this URL has a path included in it
+ @see #path
+ @see #setPath
+ */
+ public native boolean hasPath();
+ /**
+ @brief Resolves @c "." and @c ".." components in path
+ Some servers seem not to like the removal of extra @c '/'
+ even though it is against the specification in RFC 2396.
+ @param cleanDirSeparator if <code>true</code>, occurrences of consecutive
+ directory separators (e.g. <tt>"/foo//bar"</tt>) are cleaned up as
+ well
+ @short @brief Resolves @c ".
+ @see #hasPath
+ @see #adjustPath
+ */
+ public native void cleanPath(boolean cleanDirSeparator);
+ public native void cleanPath();
+ /**
+ @brief Adds or removes a trailing slash to/from the path
+ The <code>_trailing</code> parameter allows to ensure the existance or absence of
+ the last (trailing) @c '/' character in the path.
+ If the URL has no path, then no @c '/' is added anyway.
+ And on the other side: if the path is just @c "/", then this character
+ won't be stripped.
+ Reason: <tt>"ftp://weis@host"</tt> means something completely different
+ than <tt>"ftp://weis@host/"</tt>.
+ So adding or stripping the '/' would really alter the URL, while
+ <tt>"ftp://host/path"</tt> and <tt>"ftp://host/path/"</tt> mean the same
+ directory.
+ @param _trailing May be ( @c -1, <code>0</code>, @c +1 ). @c -1 strips a trailing
+ @c '/', @c +1 adds a trailing @c '/' if there is none yet
+ and <code>0</code> returns the path unchanged
+ @short @brief Adds or removes a trailing slash to/from the path
+ @see #hasPath
+ @see #cleanPath
+ */
+ public native void adjustPath(int _trailing);
+ /**
+ @brief Sets both path and query of the URL in their encoded form
+ This is useful for HTTP. It looks first for @c '?' and decodes then,
+ see setEncodedPath().
+ The encoded path is the concatenation of the current path and the query.
+ @param _txt the new encoded path and encoded query
+ @param encoding_hint MIB of original encoding of <code>_txt</code> .
+ See QTextCodec.mibEnum()
+ @short @brief Sets both path and query of the URL in their encoded form
+ @see #encodedPathAndQuery
+ @see #setPath
+ @see #setQuery
+ */
+ public native void setEncodedPathAndQuery(String _txt, int encoding_hint);
+ public native void setEncodedPathAndQuery(String _txt);
+ /**
+ @brief Sets the (already encoded) path of the URL
+ @param _txt the new encoded path
+ @param encoding_hint MIB of original encoding of <code>_txt</code> .
+ See QTextCodec.mibEnum()
+ @short @brief Sets the (already encoded) path of the URL
+ @see #setEncodedPathAndQuery
+ @see #setPath
+ */
+ public native void setEncodedPath(String _txt, int encoding_hint);
+ public native void setEncodedPath(String _txt);
+ /**
+ @brief Returns the encoded path and the query
+ The <code>_trailing</code> parameter allows to ensure the existance or absence of
+ the last (trailing) @c '/' character in the path.
+ If the URL has no path, then no @c '/' is added anyway.
+ And on the other side: if the path is just @c "/", then this character
+ won't be stripped.
+ Reason: <tt>"ftp://weis@host"</tt> means something completely different
+ than <tt>"ftp://weis@host/"</tt>.
+ So adding or stripping the '/' would really alter the URL, while
+ <tt>"ftp://host/path"</tt> and <tt>"ftp://host/path/"</tt> mean the same
+ directory.
+ @param _trailing May be ( @c -1, <code>0</code>, @c +1 ). @c -1 strips a trailing
+ @c '/', @c +1 adds a trailing @c '/' if there is none yet
+ and <code>0</code> returns the path unchanged
+ @param _no_empty_path if set to <code>true</code> then an empty path is substituted
+ by @c "/"
+ @param encoding_hint MIB of desired encoding of URL.
+ See QTextCodec.mibEnum()
+ @return the concatenation of the encoded path , @c '?' and the
+ encoded query
+
+ @short @brief Returns the encoded path and the query
+ @see #setEncodedPathAndQuery
+ @see #path
+ @see #query
+ */
+ public native String encodedPathAndQuery(int _trailing, boolean _no_empty_path, int encoding_hint);
+ public native String encodedPathAndQuery(int _trailing, boolean _no_empty_path);
+ public native String encodedPathAndQuery(int _trailing);
+ public native String encodedPathAndQuery();
+ /**
+ @brief Sets the encoded query of the URL
+ The query should start with a @c '?'. If it doesn't @c '?' is prepended.
+ @param _txt this is considered to be encoded. This has a good reason:
+ the query may contain the @c '0' character
+ @param encoding_hint MIB of the encoding. Reserved, should be <code>0</code> .
+ See QTextCodec.mibEnum()
+ @short @brief Sets the encoded query of the URL
+ @see #query
+ */
+ public native void setQuery(String _txt, int encoding_hint);
+ public native void setQuery(String _txt);
+ /**
+ @brief Returns the encoded query of the URL
+ The query may contain the @c '0' character.
+ If a query is present it always starts with a @c '?'.
+ A single @c '?' means an empty query.
+ An empty string means no query.
+ @return the encoded query or @c null if there is none
+
+ @short @brief Returns the encoded query of the URL
+ @see #setQuery
+ */
+ public native String query();
+ /**
+ @brief Returns the encoded reference of the URL
+ The reference is <b>never</b> decoded automatically.
+ @return the undecoded reference, or @c null if there is none
+
+ @short @brief Returns the encoded reference of the URL
+ @see #setRef
+ @see #hasRef
+ @see #htmlRef
+ */
+ public native String ref();
+ /**
+ @brief Sets the encoded reference part (everything after @c '#')
+ This is considered to be encoded, i.e. characters that are not allowed
+ as part of the reference will <b>not</b> be encoded.
+ @param _txt the encoded reference or <code>null</code> to remove it
+ @short @brief Sets the encoded reference part (everything after @c '#')
+ @see #ref
+ @see #hasRef
+ */
+ public native void setRef(String _txt);
+ /**
+ @brief Tests if the URL has a reference part
+ @return @c true if the URL has a reference part. In a URL like
+ <tt>"http://www.kde.org/kdebase.tar#tar:/README"</tt> it would
+ return @c true as well
+
+ @short @brief Tests if the URL has a reference part
+ @see #ref
+ @see #setRef
+ */
+ public native boolean hasRef();
+ /**
+ @brief Returns decoded the HTML-style reference
+ (the part of the URL after @c '#')
+ @return the HTML-style reference
+
+ @short @brief Returns decoded the HTML-style reference (the part of the URL after @c '#')
+ @see #encodedHtmlRef
+ @see #setHTMLRef
+ @see #hasHTMLRef
+ @see #split
+ @see #hasSubURL
+ @see #ref
+ */
+ public native String htmlRef();
+ /**
+ @brief Returns the encoded HTML-style reference
+ (the part of the URL after @c '#')
+ @return the HTML-style reference in its original, encoded, form
+
+ @short @brief Returns the encoded HTML-style reference (the part of the URL after @c '#')
+ @see #htmlRef
+ @see #setHTMLRef
+ @see #hasHTMLRef
+ */
+ public native String encodedHtmlRef();
+ /**
+ @brief Sets the decoded HTML-style reference
+ @param _ref the new reference. This is considered to be <b>not</b> encoded in
+ contrast to setRef(). Use <code>null</code> to remove it
+ @short @brief Sets the decoded HTML-style reference
+ @see #htmlRef
+ @see #hasHTMLRef
+ */
+ public native void setHTMLRef(String _ref);
+ /**
+ @brief Tests if there is an HTML-style reference
+ @return @c true if the URL has an HTML-style reference
+
+ @short @brief Tests if there is an HTML-style reference
+ @see #htmlRef
+ @see #encodedHtmlRef
+ @see #setHTMLRef
+ @see #hasRef
+ */
+ public native boolean hasHTMLRef();
+ /**
+ @brief Tests if the URL is well formed
+ @return @c false if the URL is malformed. This function does @em not test
+ whether sub URLs are well-formed as well
+
+ @short @brief Tests if the URL is well formed
+ */
+ public native boolean isValid();
+ /**
+ @brief Tests if the file is local
+ @return @c true if the file is a plain local file and has no filter
+ protocols attached to it
+
+ @short @brief Tests if the file is local
+ */
+ public native boolean isLocalFile();
+ /**
+ @brief Adds file encoding information
+ Adds encoding information to the URL by adding a @c "charset" parameter.
+ If there is already a charset parameter, it will be replaced.
+ @param encoding the encoding to add or <code>null</code> to remove the
+ encoding
+ @short @brief Adds file encoding information
+ @see #fileEncoding
+ @see org.kde.qt.QTextCodec#codecForName
+ */
+ public native void setFileEncoding(String encoding);
+ /**
+ @brief Returns encoding information of the URL
+ The encoding information is the content of the @c "charset" parameter.
+ @return an encoding suitable for QTextCodec.codecForName()
+ or @c null if not encoding was specified
+
+ @short @brief Returns encoding information of the URL
+ */
+ public native String fileEncoding();
+ /**
+ @brief Tests if the URL has any sub URLs
+ See split() for examples for sub URLs.
+ @return @c true if the file has at least one sub URL
+
+ @short @brief Tests if the URL has any sub URLs
+ @see #split
+ */
+ public native boolean hasSubURL();
+ /**
+ @brief Adds to the current path
+ Assumes that the current path is a directory. <code>_txt</code> is appended to the
+ current path. The function adds @c '/' if needed while concatenating.
+ This means it does not matter whether the current path has a trailing
+ @c '/' or not. If there is none, it becomes appended. If <code>_txt</code>
+ has a leading @c '/' then this one is stripped.
+ @param txt the text to add. It is considered to be decoded
+ @short @brief Adds to the current path
+ @see #setPath
+ @see #hasPath
+ */
+ public native void addPath(String txt);
+ /**
+ @brief Returns the value of a certain query item
+ @param item item whose value we want
+ @return the value of the given query item name or @c null if the
+ specified item does not exist
+
+ @short @brief Returns the value of a certain query item
+ @see #addQueryItem
+ @see #removeQueryItem
+ @see #queryItems
+ @see #query
+ */
+ public native String queryItem(String item);
+ /**
+ @brief Returns the value of a certain query item
+ @param item item whose value we want
+ @param encoding_hint MIB of encoding of query.
+ See QTextCodec.mibEnum()
+ @return the value of the given query item name or @c null if the
+ specified item does not exist
+
+ @short @brief Returns the value of a certain query item
+ @see #addQueryItem
+ @see #removeQueryItem
+ @see #queryItems
+ @see #query
+ */
+ public native String queryItem(String item, int encoding_hint);
+ /**
+ @short
+ */
+ // QMap<QString, QString> queryItems(int arg1); >>>> NOT CONVERTED
+ // QMap<QString, QString> queryItems(); >>>> NOT CONVERTED
+ /**
+ @brief Returns the list of query items as a map mapping keys to values
+ @param options any of QueryItemsOptions <em>OR</em>ed together
+ @param encoding_hint MIB of encoding of query.
+ See QTextCodec.mibEnum()
+ @return the map of query items or the empty map if the URL has no
+ query items
+
+ @short @brief Returns the list of query items as a map mapping keys to values
+ @see #queryItem
+ @see #addQueryItem
+ @see #removeQueryItem
+ @see #query
+ */
+ // QMap<QString, QString> queryItems(int arg1,int arg2); >>>> NOT CONVERTED
+ /**
+ @brief Adds an additional query item
+ To replace an existing query item, the item should first be
+ removed with removeQueryItem()
+ @param _item name of item to add
+ @param _value value of item to add
+ @param encoding_hint MIB of encoding to use for _value.
+ See QTextCodec.mibEnum()
+ @short @brief Adds an additional query item
+ @see #queryItem
+ @see #queryItems
+ @see #query
+ */
+ public native void addQueryItem(String _item, String _value, int encoding_hint);
+ public native void addQueryItem(String _item, String _value);
+ /**
+ @brief Removea an item from the query
+ @param _item name of item to remove
+ @short @brief Removea an item from the query
+ @see #addQueryItem
+ @see #queryItem
+ @see #queryItems
+ @see #query
+ */
+ public native void removeQueryItem(String _item);
+ /**
+ @brief Sets the filename of the path
+ In comparison to addPath() this function does not assume that the current
+ path is a directory. This is only assumed if the current path ends
+ with @c '/'.
+ If the current path ends with @c '/' then <code>_txt</code> is just appended,
+ otherwise all text behind the last @c '/' in the current path is erased
+ and <code>_txt</code> is appended then. It does not matter whether <code>_txt</code> starts
+ with @c '/' or not.
+ Any reference is reset.
+ @param _txt the filename to be set. It is considered to be decoded
+ @short @brief Sets the filename of the path
+ @see #fileName
+ @see #setDirectory
+ @see #setPath
+ */
+ public native void setFileName(String _txt);
+ /**
+ @brief Returns the filename of the path
+ <code>_ignore_trailing_slash_in_path</code> tells whether a trailing @c '/' should
+ be ignored. This means that the function would return @c "torben" for
+ <tt>"file:///hallo/torben/"</tt> and <tt>"file:///hallo/torben"</tt>.
+ @param _ignore_trailing_slash_in_path if set to <code>false</code>, then everything
+ behind the last @c '/' is considered to be the filename
+ @return the filename of the current path. The returned string is decoded.
+ @c null if there is no file (and thus no path)
+
+ @short @brief Returns the filename of the path
+ @see #setFileName
+ @see #directory
+ @see #path
+ */
+ public native String fileName(boolean _ignore_trailing_slash_in_path);
+ public native String fileName();
+ /**
+ @brief Returns the directory of the path
+ The directory is everything between the last and the second last @c '/'
+ is returned. For example <tt>"file:///hallo/torben/"</tt> would return
+ <tt>"/hallo/torben/"</tt> while <tt>"file:///hallo/torben"</tt> would
+ return <tt>"hallo/"</tt>.
+ <code>_ignore_trailing_slash_in_path</code> tells whether a trailing @c '/' should
+ be ignored. This means that the function would return @c "/hallo"
+ (or @c "/hallo" depending on <code>_strip_trailing_slash_from_result</code>) for
+ <tt>"file:///hallo/torben/"</tt> and <tt>"file:///hallo/torben"</tt>.
+ @param _strip_trailing_slash_from_result tells whether the returned result
+ should end with @c '/' or not. If the path is empty or just @c "/"
+ then this flag has no effect
+ @param _ignore_trailing_slash_in_path if set to <code>false</code>, then everything
+ behind the last @c '/' is considered to be the filename
+ @return the directory part of the current path or @c null when
+ there is no path. The returned string is decoded
+
+ @short @brief Returns the directory of the path
+ @see #setDirectory
+ @see #fileName
+ @see #path
+ */
+ public native String directory(boolean _strip_trailing_slash_from_result, boolean _ignore_trailing_slash_in_path);
+ public native String directory(boolean _strip_trailing_slash_from_result);
+ public native String directory();
+ /**
+ @brief Sets the directory of the path, leaving the filename empty
+ @param dir the decoded directory to set
+ @short @brief Sets the directory of the path, leaving the filename empty
+ @see #directory
+ @see #setFileName
+ @see #setPath
+ */
+ public native void setDirectory(String dir);
+ /**
+ @brief Changes the directory by descending into the given directory
+ It is assumed the current URL represents a directory.
+ If <code>_dir</code> starts with a @c '/' the current URL will be
+ <tt>"protocol://host/dir"</tt> otherwise <code>_dir</code> will be appended to the
+ path. <code>_dir</code> can be @c ".."
+ This function won't strip protocols. That means that when you are in
+ <tt>"file:///dir/dir2/my.tgz#tar:/"</tt> and you do <tt>cd("..")</tt> you
+ will still be in <tt>"file:///dir/dir2/my.tgz#tar:/"</tt>
+ @param _dir the directory to change to
+ @return @c true if successful
+
+ @short @brief Changes the directory by descending into the given directory
+ @see #directory
+ @see #path
+ */
+ public native boolean cd(String _dir);
+ /**
+ @brief Returns the URL as string, with all escape sequences intact,
+ encoded in a given charset
+ This is used in particular for encoding URLs in UTF-8 before using them
+ in a drag and drop operation.
+ @note that the string returned by url() will include the password of the
+ URL. If you want to show the URL to the user, use prettyURL().
+ The <code>_trailing</code> parameter allows to ensure the existance or absence of
+ the last (trailing) @c '/' character in the path.
+ If the URL has no path, then no @c '/' is added anyway.
+ And on the other side: if the path is just @c "/", then this character
+ won't be stripped.
+ Reason: <tt>"ftp://weis@host"</tt> means something completely different
+ than <tt>"ftp://weis@host/"</tt>.
+ So adding or stripping the '/' would really alter the URL, while
+ <tt>"ftp://host/path"</tt> and <tt>"ftp://host/path/"</tt> mean the same
+ directory.
+ @param _trailing May be ( @c -1, <code>0</code>, @c +1 ). @c -1 strips a trailing
+ @c '/', @c +1 adds a trailing @c '/' if there is none yet
+ and <code>0</code> returns the path unchanged
+ @param encoding_hint MIB of encoding to use.
+ See QTextCodec.mibEnum()
+ @return the complete URL, with all escape sequences intact, encoded
+ in a given charset
+
+ @short @brief Returns the URL as string, with all escape sequences intact, encoded in a given charset
+ @see #prettyURL
+ @see #pathOrURL
+ @see #htmlURL
+ */
+ public native String url(int _trailing, int encoding_hint);
+ public native String url(int _trailing);
+ public native String url();
+ /**
+ @brief Returns the URL as string in human-friendly format
+ Example:
+ @code
+ http://localhost:8080/test.cgi?test=hello world&name=fred
+ @endcode
+ Does <b>not</b> contain the password if the URL has one, use url() if you
+ need to have it in the string.
+ The <code>_trailing</code> parameter allows to ensure the existance or absence of
+ the last (trailing) @c '/' character in the path.
+ If the URL has no path, then no @c '/' is added anyway.
+ And on the other side: if the path is just @c "/", then this character
+ won't be stripped.
+ Reason: <tt>"ftp://weis@host"</tt> means something completely different
+ than <tt>"ftp://weis@host/"</tt>.
+ So adding or stripping the '/' would really alter the URL, while
+ <tt>"ftp://host/path"</tt> and <tt>"ftp://host/path/"</tt> mean the same
+ directory.
+ @param _trailing May be ( @c -1, <code>0</code>, @c +1 ). @c -1 strips a trailing
+ @c '/', @c +1 adds a trailing @c '/' if there is none yet
+ and <code>0</code> returns the path unchanged
+ @return a human readable URL, with no non-necessary encodings/escaped
+ characters. Password will not be shown
+
+ @short @brief Returns the URL as string in human-friendly format
+ @see #url
+ @see #pathOrURL
+ */
+ public native String prettyURL(int _trailing);
+ public native String prettyURL();
+ /**
+ @brief Returns the URL as string in human-friendly format
+ Example:
+ @code
+ http://localhost:8080/test.cgi?test=hello world&name=fred
+ @endcode
+ Does <b>not</b> contain the password if the URL has one, use url() if you
+ need to have it in the string.
+ The <code>_trailing</code> parameter allows to ensure the existance or absence of
+ the last (trailing) @c '/' character in the path.
+ If the URL has no path, then no @c '/' is added anyway.
+ And on the other side: if the path is just @c "/", then this character
+ won't be stripped.
+ Reason: <tt>"ftp://weis@host"</tt> means something completely different
+ than <tt>"ftp://weis@host/"</tt>.
+ So adding or stripping the '/' would really alter the URL, while
+ <tt>"ftp://host/path"</tt> and <tt>"ftp://host/path/"</tt> mean the same
+ directory.
+ @param _trailing May be ( @c -1, <code>0</code>, @c +1 ). @c -1 strips a trailing
+ @c '/', @c +1 adds a trailing @c '/' if there is none yet
+ and <code>0</code> returns the path unchanged
+ @param _flags if StripFileProtocol, @c "file://" will be stripped.
+ The use of this method is now discouraged, better use pathOrURL().
+ @return a human readable URL, with no non-necessary encodings/escaped
+ characters. Password will not be shown
+
+ @short @brief Returns the URL as string in human-friendly format Example: @code http://localhost:8080/test.
+ @see #prettyURL
+ @see #url
+ @see #pathOrURL
+ */
+ public native String prettyURL(int _trailing, int _flags);
+ /**
+ @brief Returns the URL as a string depending if it is a local file
+ It will be either the URL (as prettyURL() would return) or, when the URL
+ is a local file without query or ref, the path().
+ Use this method, together with its opposite, fromPathOrURL(),
+ to display and even let the user edit URLs.
+ @return the path or URL string depending on its properties
+
+ @short @brief Returns the URL as a string depending if it is a local file
+ @see #prettyURL
+ @see #path
+ @see #url
+ @see #isLocalFile
+ */
+ public native String pathOrURL();
+ /**
+ @brief Returns the URL as string, escaped for HTML
+ @return a human readable URL, with no non-necessary encodings/escaped
+ characters which is HTML encoded for safe inclusion in HTML or
+ rich text. Password will not be shown.
+
+ @short @brief Returns the URL as string, escaped for HTML
+ @see #prettyURL
+ @see #url
+ @see #pathOrURL
+ */
+ public native String htmlURL();
+ /**
+ @brief Tests if the KURL is empty
+ An empty URL has neither path nor protocol set.
+ @return @c true if the URL is empty
+
+ @short @brief Tests if the KURL is empty
+ @see #hasPath
+ @see #protocol
+ @see #isValid
+ */
+ public native boolean isEmpty();
+ /**
+ @brief Returns the URL that is the best possible candidate for on level
+ higher in the path hierachy
+ This function is useful to implement the "Up" button in a file manager for
+ example.
+ cd() never strips a sub-protocol. That means that if you are in
+ <tt>"file:///home/x.tgz#gzip:/#tar:/"</tt> and hit the up button you
+ expect to see <tt>"file:///home"</tt>. The algorithm tries to go up on the
+ right-most URL. If that is not possible it strips the right most URL. It
+ continues stripping URLs until it can go up.
+ @return a URL that is a level higher
+
+ @short @brief Returns the URL that is the best possible candidate for on level higher in the path hierachy
+ @see #cd
+ @see #split
+ @see #hasSubURL
+ @see #path
+ */
+ public native KURL upURL();
+ /**
+ @brief Tests if this URL is less than the given URL
+ The current URL is consideres <tt>"less than"</tt> then <code>_u</code> if
+ (tested in this order):
+ - it is not valid but <code>_u</code> is. See isValid()
+ - its protocol is "less than" <code>_u</code>'s protocol. See protocol()
+ - its host is "less than" <code>_u</code>'s host. See host()
+ - its port is "less than" <code>_u</code>'s port. See port()
+ - its path is "less than" <code>_u</code>'s path. See path()
+ - its encoded query is "less than" <code>_u</code>'s encoded query. See query()
+ - its endoded reference is "less than" <code>_u</code>'s encoded reference.
+ See ref()
+ - its username is "less than" <code>_u</code>'s username. See user()
+ - its password is "less than" <code>_u</code>'s password. See pass()
+ Examples:
+ @code
+ KURL url1;
+ KURL url2;
+ boolean lessThan = url1 < url2; // false. Both invalid, no protocols
+ url2.setProtocol( null );
+ lessThan = url1 < url2; // true. url2 is valid because of setProtocol()
+ url1.setProtocol( null );
+ lessThan = url1 < url2; // false. Both valid and everything empty
+ url1.setProtocol( "http" );
+ url2.setProtocol( "https" );
+ lessThan = url1 < url2; // true. "http" < "https"
+ url2.setHost( "api.kde.org" );
+ url2.setProtocol( "http" );
+ url2.setProtocol( "www.kde.org" );
+ lessThan = url1 < url2; // true. protocols equal and "api" < "www"
+ url1.setProtocol( "https" );
+ url2.setProtocol( "http" );
+ lessThan = url1 < url2; // false. "https" > "http". host doesn't matter yet
+ @endcode
+ @param _u the URL to compare to
+ @return @c true if the URL is less than <code>_u.</code> Otherwise @c false
+ (equal or greater than)
+
+ @short @brief Tests if this URL is less than the given URL
+ @see #operator==
+ */
+ public native boolean op_lt(KURL _u);
+ /**
+ @brief Tests if this URL is equal to the given one
+ Tests each member for equality unless one of the URLs is invalid
+ in which case they are not considered equal (even if both are invalid).
+ Same as equals() when used with <code>ignore_trailing</code> set to
+ <code>false</code> (default)
+ @param _u the URL to compare to
+ @return @c true if equal and neither this URL nor <code>_u</code> is malformed.
+ Otherwise @c false
+
+ @short @brief Tests if this URL is equal to the given one
+ @see #equals
+ @see #isValid
+ @see #operator!=
+ @see #operator<
+ */
+ public native boolean op_equals(KURL _u);
+ /**
+ @brief Tests if this URL is equal to the one given as a string
+ Creates a KURL instance for <code>_u</code> and compares with that using
+ the equality operator for two KURLs.
+ See the respective constructor for known limitations.
+ @param _u the string to compare to
+ @return @c true if equal and neither this URL nor <code>_u</code> is malformed.
+ Otherwise @c false
+
+ @short @brief Tests if this URL is equal to the one given as a string
+ @see KURL(const
+ @see #int)
+ @see #operator==(const
+ @see KURL
+ @see #equals
+ @see #isValid
+ @see #operator!=
+ @see #operator<
+ */
+ public native boolean op_equals(String _u);
+ /**
+ @brief Tests if this URL is different from the given one
+ Tests by negating the result of operator==()
+ @param _u the URL to compare to
+ @return the negated result of operator==()
+
+ @short @brief Tests if this URL is different from the given one
+ @see #operator==
+ @see #operator<
+ */
+ public native boolean op_not_equals(KURL _u);
+ /**
+ @brief Tests if this URL is different from the one given as a string
+ Tests by negating the result of operator==(String)
+ @param _u the URL to compare to
+ @return the negated result of operator==(String)
+
+ @short @brief Tests if this URL is different from the one given as a string
+ @see #operator==(const
+ @see #operator<
+ */
+ public native boolean op_not_equals(String _u);
+ /**
+ @brief Compares this URL with another one
+ @param u the URL to compare this one with
+ @param ignore_trailing set to <code>true</code> to ignore trailing @c '/' characters
+ @return @c true if both urls are the same
+
+ @short @brief Compares this URL with another one
+ @see #operator==#
+ @see This
+ @see #function
+ @see #should
+ @see #be
+ @see #used
+ @see #if
+ @see #you
+ @see #want
+ @see #to
+ @see #ignore
+ @see #trailing
+ @see @c
+ @see #characters
+ */
+ public native boolean equals(KURL u, boolean ignore_trailing);
+ public native boolean equals(KURL u);
+ /**
+ @brief Tests if the given URL is parent of this URL
+ For instance, <tt>"ftp://host/dir/"</tt> is a parent of
+ <tt>"ftp://host/dir/subdir/subsubdir/"</tt>.
+ @return @c true if this URL is a parent of <code>u</code> (or the same URL as <code>u</code>)
+
+ @short @brief Tests if the given URL is parent of this URL
+ @see #equals
+ @see #cd
+ */
+ public native boolean isParentOf(KURL u);
+ /**
+ @brief Splits nested URLs into a list of URLs
+ Example for a nested URL:
+ @code
+ file:///home/weis/kde.tgz#gzip:/#tar:/kdebase
+ @endcode
+ A URL like <tt>"http://www.kde.org#tar:/kde/README.hml#ref1"</tt> will be
+ split in <tt>"http://www.kde.org#ref1"</tt> and
+ <tt>"tar:/kde/README.html#ref1"</tt>.
+ That means in turn that @c "#ref1" is an HTML-style reference and not a
+ new sub URL. Since HTML-style references mark a certain position in a
+ document this reference is appended to every URL.
+ The idea behind this is that browsers, for example, only look at the first
+ URL while the rest is not of interest to them.
+ @param _url the URL that has to be split
+ @return an empty list on error or the list of split URLs
+
+ @short @brief Splits nested URLs into a list of URLs
+ @see #hasSubURL
+ @see KURL(const
+ @see #int)
+ @see #join
+ */
+ public static native ArrayList split(String _url);
+ /**
+ @brief Splits nested URLs into a list of URLs
+ Example for a nested URL:
+ @code
+ file:///home/weis/kde.tgz#gzip:/#tar:/kdebase
+ @endcode
+ A URL like <tt>"http://www.kde.org#tar:/kde/README.hml#ref1"</tt> will be
+ split in <tt>"http://www.kde.org#ref1"</tt> and
+ <tt>"tar:/kde/README.html#ref1"</tt>.
+ That means in turn that @c "#ref1" is an HTML-style reference and not a
+ new sub URL. Since HTML-style references mark a certain position in a
+ document this reference is appended to every URL.
+ The idea behind this is that browsers, for example, only look at the first
+ URL while the rest is not of interest to them.
+ @param _url the URL that has to be split
+ @return an empty list on error or the list of split URLs
+
+ @short @brief Splits nested URLs into a list of URLs
+ @see #hasSubURL
+ @see #join
+ */
+ public static native ArrayList split(KURL _url);
+ /**
+ @brief Joins a list of URLs into a single URL with sub URLs
+ Reverses split(). Only the first URL may have a reference. This reference
+ is considered to be HTML-like and is appended at the end of the resulting
+ joined URL.
+ @param _list the list to join
+ @return the joined URL or an invalid URL if the list is empty
+
+ @short @brief Joins a list of URLs into a single URL with sub URLs
+ @see #split
+ */
+ public static native KURL join(ArrayList _list);
+ /**
+ @brief Creates a KURL object from a String representing either an
+ absolute path or a real URL
+ Use this method instead of
+ @code
+ String someDir = ...
+ KURL url = someDir;
+ @endcode
+ Otherwise some characters (e.g. the '#') won't be encoded properly.
+ @param text the string representation of the URL to convert
+ @return the new KURL
+
+ @short @brief Creates a KURL object from a String representing either an absolute path or a real URL
+ @see #pathOrURL
+ @see KURL(const
+ @see #int)
+ */
+ public static native KURL fromPathOrURL(String text);
+ /**
+ @brief Encodes a string for use in URLs
+ Convenience function.
+ Convert unicoded string to local encoding and use %%-style
+ encoding for all common delimiters / non-ascii characters.
+ @param str the string to encode (can be <code>null</code>)
+ @param encoding_hint MIB of encoding to use.
+ See QTextCodec.mibEnum()
+ @return the encoded string
+
+ @short @brief Encodes a string for use in URLs
+ @see #encode_string_no_slash
+ @see #decode_string
+ */
+ public static native String encode_string(String str, int encoding_hint);
+ public static native String encode_string(String str);
+ /**
+ @brief Encodes a string for use in URLs
+ Convenience function.
+ Convert unicoded string to local encoding and use %%-style
+ encoding for all common delimiters and non-ascii characters
+ as well as the slash @c '/'.
+ @param str the string to encode (can be <code>null</code>)
+ @param encoding_hint MIB of encoding to use.
+ See QTextCodec.mibEnum()
+ @short @brief Encodes a string for use in URLs
+ @see #encode_string
+ @see #decode_string
+ */
+ public static native String encode_string_no_slash(String str, int encoding_hint);
+ public static native String encode_string_no_slash(String str);
+ /**
+ @brief Decodes a string as used in URLs
+ Convenience function.
+ Decode %-style encoding and convert from local encoding to unicode.
+ Reverse of encode_string()
+ @param str the string to decode (can be <code>null</code>)
+ @param encoding_hint MIB of original encoding of <code>str</code> .
+ See QTextCodec.mibEnum()
+ @return the decoded string
+
+ @short @brief Decodes a string as used in URLs
+ @see #encode_string
+ @see #encode_string_no_slash
+ */
+ public static native String decode_string(String str, int encoding_hint);
+ public static native String decode_string(String str);
+ /**
+ @brief Tests if a given URL is a relative as opposed to an absolute URL
+ Convenience function.
+ Returns whether <code>_url</code> is likely to be a "relative" URL instead of
+ an "absolute" URL.
+ @param _url the URL to examine
+ @return @c true when the URL is likely to be "relative",
+ @c false otherwise
+
+ @short @brief Tests if a given URL is a relative as opposed to an absolute URL
+ @see #relativeURL
+ */
+ public static native boolean isRelativeURL(String _url);
+ /**
+ @brief Creates an URL relative to a base URL for a given input URL
+ Convenience function
+ Returns a "relative URL" based on <code>base_url</code> that points to <code>url.</code>
+ If no "relative URL" can be created, e.g. because the protocol
+ and/or hostname differ between <code>base_url</code> and <code>url</code> an absolute
+ URL is returned.
+ @note if <code>base_url</code> represents a directory, it should contain
+ a trailing slash
+ @param base_url the URL to derive from
+ @param url the URL to point to relatively from <code>base_url</code>
+ @param encoding_hint MIB of original encoding of <code>str</code> .
+ See QTextCodec.mibEnum()
+ @short @brief Creates an URL relative to a base URL for a given input URL
+ @see #isRelativeURL
+ @see #relativePath
+ @see #adjustPath
+ */
+ public static native String relativeURL(KURL base_url, KURL url, int encoding_hint);
+ public static native String relativeURL(KURL base_url, KURL url);
+ /**
+ @brief Creates a path relative to a base path for a given input path
+ Convenience function
+ Returns a relative path based on <code>base_dir</code> that points to <code>path.</code>
+ @param base_dir the base directory to derive from
+ @param path the new target directory
+ @param isParent an optional pointer to a booleanean which, if provided, will
+ be set to reflect whether <code>path</code> has <code>base_dir</code> as a parent dir
+ @short @brief Creates a path relative to a base path for a given input path
+ @see #relativeURL
+ */
+ public static native String relativePath(String base_dir, String path, boolean[] isParent);
+ public static native String relativePath(String base_dir, String path);
+ /**
+ @brief Determines which URI mode is suitable for processing URIs of a
+ given protocol
+ @param protocol the protocol name. See protocol()
+ @return the URIMode suitable for the given protocol
+
+ @short @brief Determines which URI mode is suitable for processing URIs of a given protocol
+ @see #uriMode
+ */
+ public static native int uriModeForProtocol(String protocol);
+ /**
+ @brief Resets the members to their "null" state
+ All String members get reset to <code>null</code>, the port to <code>0</code>
+ the URIMode to <code>Auto</code> and the URL becomes invalid.
+ This is like assigning a null URL, but more efficient as it doesn't
+ require the temporary object.
+ Called by constructors, assignment operators and the parse methods in case
+ of a parsing error.
+ @short @brief Resets the members to their "null" state
+ @see #isValid
+ @see #isEmpty
+ */
+ protected native void reset();
+ /**
+ @brief Parses the given string and fills the URL's values on success
+ Treats the string as an URL.
+ @param _url the string to parse
+ @param encoding_hint MIB of original encoding of <code>str</code> .
+ See QTextCodec.mibEnum()
+ @short @brief Parses the given string and fills the URL's values on success
+ */
+ protected native void parseURL(String _url, int encoding_hint);
+ protected native void parseURL(String _url);
+ /**
+ @brief Parses the given string and fills the URL's values on success
+ Treats the string as a generic URI.
+ @param _url the string to parse
+ @param encoding_hint MIB of original encoding of <code>str</code> .
+ See QTextCodec.mibEnum()
+ @short @brief Parses the given string and fills the URL's values on success
+ */
+ protected native void parseRawURI(String _url, int encoding_hint);
+ protected native void parseRawURI(String _url);
+ /**
+ @brief Parses the given string and fills the URL's values on success
+ Treats the string as a @c "mailto:" URI.
+ @param _url the string to parse
+ @param encoding_hint MIB of original encoding of <code>str</code> .
+ See QTextCodec.mibEnum()
+ @short @brief Parses the given string and fills the URL's values on success
+ */
+ protected native void parseMailto(String _url, int encoding_hint);
+ protected native void parseMailto(String _url);
+ /**
+ @brief Parses the given string and fills the URL's values on success
+ @param _url the string to parse
+ @param encoding_hint MIB of original encoding of <code>str</code> .
+ See QTextCodec.mibEnum()
+ @short @brief Parses the given string and fills the URL's values on success
+ */
+ protected native void parse(String _url, int encoding_hint);
+ protected native void parse(String _url);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURLBar.java b/kdejava/koala/org/kde/koala/KURLBar.java
new file mode 100644
index 00000000..b5cb6c7a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLBar.java
@@ -0,0 +1,274 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QListBoxItem;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QSize;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QPalette;
+import org.kde.qt.QResizeEvent;
+import org.kde.qt.QFrame;
+
+/**
+
+ KURLBar is a widget that displays icons together with a description. They
+ can be arranged either horizontally or vertically. Clicking on an item
+ will cause the activated() signal to be emitted. The user can edit
+ existing items by choosing "Edit entry" in the contextmenu. He can also
+ remove or add new entries (via drag&drop or the context menu).
+ KURLBar offers the methods readConfig() and writeConfig() to
+ read and write the configuration of all the entries. It can differentiate
+ between global and local entries -- global entries will be saved in the
+ global configuration (kdeglobals), while local entries will be saved in
+ your application's KConfig object.
+ Due to the configurability, you usually only insert some default entries
+ once and then solely use the read and writeConfig methods to preserve the
+ user's configuration.
+ The widget has a "current" item, that is visualized to differentiate it
+ from others.
+ See {@link KURLBarSignals} for signals emitted by KURLBar
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short A URL-bar widget, as used in the KFileDialog.
+
+*/
+public class KURLBar extends QFrame {
+ protected KURLBar(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KURLBar. Set <code>useGlobalItems</code> to true if you want to
+ allow global/local item separation.
+ @short Constructs a KURLBar.
+ */
+ public KURLBar(boolean useGlobalItems, QWidget parent, String name, int f) {
+ super((Class) null);
+ newKURLBar(useGlobalItems,parent,name,f);
+ }
+ private native void newKURLBar(boolean useGlobalItems, QWidget parent, String name, int f);
+ public KURLBar(boolean useGlobalItems, QWidget parent, String name) {
+ super((Class) null);
+ newKURLBar(useGlobalItems,parent,name);
+ }
+ private native void newKURLBar(boolean useGlobalItems, QWidget parent, String name);
+ public KURLBar(boolean useGlobalItems, QWidget parent) {
+ super((Class) null);
+ newKURLBar(useGlobalItems,parent);
+ }
+ private native void newKURLBar(boolean useGlobalItems, QWidget parent);
+ public KURLBar(boolean useGlobalItems) {
+ super((Class) null);
+ newKURLBar(useGlobalItems);
+ }
+ private native void newKURLBar(boolean useGlobalItems);
+ /**
+ Inserts a new item into the KURLBar and returns the created
+ KURLBarItem.
+ <code>url</code> the url of the item
+ <code>description</code> the description of the item (shown in the view)
+ <code>applicationLocal</code> whether this should be a global or a local item
+ <code>icon</code> an icon -- if empty, the default icon for the url will be used
+ <code>group</code> the icon-group for using icon-effects
+ @short Inserts a new item into the KURLBar and returns the created KURLBarItem.
+ */
+ public native KURLBarItem insertItem(KURL url, String description, boolean applicationLocal, String icon, int group);
+ public native KURLBarItem insertItem(KURL url, String description, boolean applicationLocal, String icon);
+ public native KURLBarItem insertItem(KURL url, String description, boolean applicationLocal);
+ public native KURLBarItem insertItem(KURL url, String description);
+ /**
+ Inserts a new dynamic item into the KURLBar and returns the created
+ KURLBarItem.
+ <code>url</code> the url of the item
+ <code>description</code> the description of the item (shown in the view)
+ <code>icon</code> an icon -- if empty, the default icon for the url will be used
+ <code>group</code> the icon-group for using icon-effects
+ @short Inserts a new dynamic item into the KURLBar and returns the created KURLBarItem.
+ */
+ public native KURLBarItem insertDynamicItem(KURL url, String description, String icon, int group);
+ public native KURLBarItem insertDynamicItem(KURL url, String description, String icon);
+ public native KURLBarItem insertDynamicItem(KURL url, String description);
+ /**
+ The items can be arranged either vertically in one column or
+ horizontally in one row.
+ @short The items can be arranged either vertically in one column or horizontally in one row.
+ @see #orientation
+ */
+ public native void setOrientation(int orient);
+ /**
+ @return the current orientation mode.
+
+ @short
+ @see #setOrientation
+ */
+ public native int orientation();
+ /**
+ Allows to set a custom KURLBarListBox.
+ Note: The previous listbox will be deleted. Items of the previous
+ listbox will not be moved to the new box.
+ @short Allows to set a custom KURLBarListBox.
+ @see #listBox
+ */
+ public native void setListBox(KURLBarListBox arg1);
+ /**
+ @return the KURLBarListBox that is used.
+
+ @short
+ @see #setListBox
+ */
+ public native KURLBarListBox listBox();
+ /**
+ Sets the default iconsize to be used for items inserted with
+ insertItem. By default KIcon.SizeMedium.
+ @short Sets the default iconsize to be used for items inserted with insertItem.
+ @see #iconsize
+ */
+ public native void setIconSize(int size);
+ /**
+ @return the default iconsize used for items inserted with
+ insertItem. By default KIcon.SizeMedium
+
+ @short
+ @see #setIconSize
+ */
+ public native int iconSize();
+ /**
+ Clears the view, removes all items.
+ @short Clears the view, removes all items.
+ */
+ public native void clear();
+ /**
+ @return a proper sizehint, depending on the orientation and the number
+ of items available.
+
+ @short
+ */
+ public native QSize sizeHint();
+ /**
+ @return a proper minimum size (reimplemented)
+
+ @short
+ */
+ public native QSize minimumSizeHint();
+ /**
+ Call this method to read a saved configuration from <code>config</code>,
+ inside the group <code>itemGroup.</code> All items in there will be restored.
+ The reading of every item is delegated to the readItem() method.
+ @short Call this method to read a saved configuration from <code>config</code>, inside the group <code>itemGroup.</code>
+ */
+ public native void readConfig(KConfig config, String itemGroup);
+ /**
+ Call this method to save the current configuration into <code>config</code>,
+ inside the group <code>iconGroup.</code> The writeItem() method is used
+ to save each item.
+ @short Call this method to save the current configuration into <code>config</code>, inside the group <code>iconGroup.</code>
+ */
+ public native void writeConfig(KConfig config, String itemGroup);
+ /**
+ Called from readConfig() to read the i'th from <code>config.</code>
+ After reading a KURLBarItem is created and initialized with the read
+ values (as well as the given <code>applicationLocal</code>).
+ @short Called from readConfig() to read the i'th from <code>config.</code>
+ */
+ public native void readItem(int i, KConfig config, boolean applicationLocal);
+ /**
+ Called from writeConfig() to save the KURLBarItem <code>item</code> as the
+ i'th entry in the config-object.
+ <code>global</code> tell whether it should be saved in the global configuration
+ or not (using KConfig.writeEntry( key, value, true, global ) ).
+ @short Called from writeConfig() to save the KURLBarItem <code>item</code> as the i'th entry in the config-object.
+ */
+ public native void writeItem(KURLBarItem item, int i, KConfig arg3, boolean global);
+ /**
+ @return the current KURLBarItem, or 0L if none.
+
+ @short
+ @see #setCurrentItem
+ @see #currentURL
+ */
+ public native KURLBarItem currentItem();
+ /**
+ @return the url of the current item or an invalid url, if there is
+ no current item.
+
+ @short
+ @see #currentItem
+ @see #setCurrentItem
+ */
+ public native KURL currentURL();
+ /**
+ @return true when the urlbar was modified by the user (e.g. by
+ editing/adding/removing one or more entries). Will be reset to false
+ after calling writeConfig().
+
+ @short
+ */
+ public native boolean isModified();
+ /**
+ @return true when the urlbar may not be modified by the user
+
+ @short
+ */
+ public native boolean isImmutable();
+ /**
+ @return true if the bar is in vertical mode.
+
+ @short
+ */
+ public native boolean isVertical();
+ /**
+ Makes the item with the url <code>url</code> the current item. Does nothing
+ if no item with that url is available.
+ @short Makes the item with the url <code>url</code> the current item.
+ @see #currentItem
+ @see #currentURL
+ */
+ public native void setCurrentItem(KURL url);
+ /**
+ Pops up a KURLBarItemDialog to let the user add a new item.
+ Uses editItem() to do the job.
+ @return false if the user aborted the dialog and no item is added.
+
+ @short Pops up a KURLBarItemDialog to let the user add a new item.
+ */
+ protected native boolean addNewItem();
+ /**
+ Pops up a KURLBarItemDialog to let the user edit the properties
+ of <code>item.</code> Invoked e.g. by addNewItem(), when the user drops
+ a url onto the bar or from the contextmenu.
+ @return false if the user aborted the dialog and <code>item</code> is not
+ changed.
+
+ @short Pops up a KURLBarItemDialog to let the user edit the properties of <code>item.</code>
+ */
+ protected native boolean editItem(KURLBarItem item);
+ protected native void resizeEvent(QResizeEvent arg1);
+ protected native void paletteChange(QPalette arg1);
+ /**
+ Reimplemented to show a contextmenu, allowing the user to add, edit
+ or remove items, or change the iconsize.
+ @short Reimplemented to show a contextmenu, allowing the user to add, edit or remove items, or change the iconsize.
+ */
+ protected native void slotContextMenuRequested(QListBoxItem arg1, QPoint pos);
+ /**
+ Called when an item has been selected. Emits the activated()
+ signal.
+ @short Called when an item has been selected.
+ */
+ protected native void slotSelected(QListBoxItem arg1);
+ /**
+ Called when a url was dropped onto the bar to show a
+ KURLBarItemDialog.
+ @short Called when a url was dropped onto the bar to show a KURLBarItemDialog.
+ */
+ protected native void slotDropped(QDropEvent arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURLBarItem.java b/kdejava/koala/org/kde/koala/KURLBarItem.java
new file mode 100644
index 00000000..1f28c39f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLBarItem.java
@@ -0,0 +1,195 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QListBox;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QSize;
+import org.kde.qt.QPainter;
+import org.kde.qt.QListBoxPixmap;
+
+/**
+
+ An item to be used in KURLBar / KURLBarListBox. All the properties
+ (url, icon, description, tooltip) can be changed dynamically.
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short An item to be used in KURLBar / KURLBarListBox.
+ @see KURLBar
+ @see KURLBarListBox
+
+*/
+public class KURLBarItem extends QListBoxPixmap {
+ protected KURLBarItem(Class dummy){super((Class) null);}
+ /**
+ Creates a KURLBarItem to be used in the <code>parent</code> KURLBar. You need
+ to insert the item into the listbox manually, if you don't use
+ KURLBar.insertItem().
+ If description is empty, it will try to use the filename/directory
+ of <code>url</code>, which will be shown as text of the item.
+ <code>url</code> will be used as tooltip, unless you set a different tip with
+ setToolTip().
+ <code>persistent</code> specifies whether this item is a persistent item or a
+ dynamic item, that is not saved with KURLBar.writeConfig().
+ @short Creates a KURLBarItem to be used in the <code>parent</code> KURLBar.
+ */
+ public KURLBarItem(KURLBar parent, KURL url, boolean persistent, String description, String icon, int group) {
+ super((Class) null);
+ newKURLBarItem(parent,url,persistent,description,icon,group);
+ }
+ private native void newKURLBarItem(KURLBar parent, KURL url, boolean persistent, String description, String icon, int group);
+ public KURLBarItem(KURLBar parent, KURL url, boolean persistent, String description, String icon) {
+ super((Class) null);
+ newKURLBarItem(parent,url,persistent,description,icon);
+ }
+ private native void newKURLBarItem(KURLBar parent, KURL url, boolean persistent, String description, String icon);
+ public KURLBarItem(KURLBar parent, KURL url, boolean persistent, String description) {
+ super((Class) null);
+ newKURLBarItem(parent,url,persistent,description);
+ }
+ private native void newKURLBarItem(KURLBar parent, KURL url, boolean persistent, String description);
+ public KURLBarItem(KURLBar parent, KURL url, boolean persistent) {
+ super((Class) null);
+ newKURLBarItem(parent,url,persistent);
+ }
+ private native void newKURLBarItem(KURLBar parent, KURL url, boolean persistent);
+ /**
+ Creates a persistent KURLBarItem to be used in the <code>parent</code> KURLBar. You need
+ to insert the item into the listbox manually, if you don't use
+ KURLBar.insertItem().
+ If description is empty, it will try to use the filename/directory
+ of <code>url</code>, which will be shown as text of the item.
+ <code>url</code> will be used as tooltip, unless you set a different tip with
+ setToolTip().
+ <code>persistent</code> specifies whether this item is a persistent item or a
+ dynamic item, that is not saved with KURLBar.writeConfig().
+ @short Creates a persistent KURLBarItem to be used in the <code>parent</code> KURLBar.
+ */
+ public KURLBarItem(KURLBar parent, KURL url, String description, String icon, int group) {
+ super((Class) null);
+ newKURLBarItem(parent,url,description,icon,group);
+ }
+ private native void newKURLBarItem(KURLBar parent, KURL url, String description, String icon, int group);
+ public KURLBarItem(KURLBar parent, KURL url, String description, String icon) {
+ super((Class) null);
+ newKURLBarItem(parent,url,description,icon);
+ }
+ private native void newKURLBarItem(KURLBar parent, KURL url, String description, String icon);
+ public KURLBarItem(KURLBar parent, KURL url, String description) {
+ super((Class) null);
+ newKURLBarItem(parent,url,description);
+ }
+ private native void newKURLBarItem(KURLBar parent, KURL url, String description);
+ public KURLBarItem(KURLBar parent, KURL url) {
+ super((Class) null);
+ newKURLBarItem(parent,url);
+ }
+ private native void newKURLBarItem(KURLBar parent, KURL url);
+ /**
+ Sets <code>url</code> for this item. Also updates the visible text to the
+ filename/directory of the url, if no description is set.
+ @short Sets <code>url</code> for this item.
+ @see #url
+ */
+ public native void setURL(KURL url);
+ /**
+ <code>sets</code> the icon for this item. See KIconLoader for a description
+ of the icon groups.
+ @short <code>sets</code> the icon for this item.
+ @see #icon
+ */
+ public native void setIcon(String icon, int group);
+ public native void setIcon(String icon);
+ /**
+ Sets the description of this item that will be shown as item-text.
+ @short Sets the description of this item that will be shown as item-text.
+ @see #description
+ */
+ public native void setDescription(String desc);
+ /**
+ Sets a tooltip to be used for this item.
+ @short Sets a tooltip to be used for this item.
+ @see #toolTip
+ */
+ public native void setToolTip(String tip);
+ /**
+ returns the preferred size of this item
+ @short returns the preferred size of this item
+ */
+ public native QSize sizeHint();
+ /**
+ returns the width of this item.
+ @short returns the width of this item.
+ */
+ public native int width(QListBox arg1);
+ /**
+ returns the height of this item.
+ @short returns the height of this item.
+ */
+ public native int height(QListBox arg1);
+ /**
+ returns the url of this item.
+ @short returns the url of this item.
+ @see #setURL
+ */
+ public native KURL url();
+ /**
+ returns the description of this item.
+ @short returns the description of this item.
+ @see #setDescription
+ */
+ public native String description();
+ /**
+ returns the icon of this item.
+ @short returns the icon of this item.
+ @see #setIcon
+ */
+ public native String icon();
+ /**
+ returns the tooltip of this item.
+ @short returns the tooltip of this item.
+ @see #setToolTip
+ */
+ public native String toolTip();
+ /**
+ returns the icon-group of this item (determines icon-effects).
+ @short returns the icon-group of this item (determines icon-effects).
+ @see #setIcon
+ */
+ public native int iconGroup();
+ /**
+ returns the pixmap of this item.
+ @short returns the pixmap of this item.
+ */
+ public native QPixmap pixmap();
+ /**
+ Makes this item a local or global one. This has only an effect
+ on persistent items of course.
+ @short Makes this item a local or global one.
+ @see #isPersistent
+ @see #applicationLocal
+ */
+ public native void setApplicationLocal(boolean local);
+ /**
+ returns whether this is a global item or a local one. KURLBar
+ can differentiate between global and local items (only for the current
+ application) for easy extensiblity.
+ @short returns whether this is a global item or a local one.
+ @see #setApplicationLocal
+ */
+ public native boolean applicationLocal();
+ /**
+ returns whether this item is persistent (via KURLBar.writeConfig()
+ and KURLBar.readConfig()) or not.
+ @short returns whether this item is persistent (via KURLBar.writeConfig() and KURLBar.readConfig()) or not.
+ */
+ public native boolean isPersistent();
+ protected native void paint(QPainter p);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURLBarItemDialog.java b/kdejava/koala/org/kde/koala/KURLBarItemDialog.java
new file mode 100644
index 00000000..09f01d69
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLBarItemDialog.java
@@ -0,0 +1,106 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ A dialog that allows editing entries of a KURLBar ( KURLBarItem).
+ The dialog offers to configure a given url, description and icon.
+ See the class-method getInformation() for easy usage.
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short A dialog that allows editing entries of a KURLBar ( KURLBarItem).
+
+*/
+public class KURLBarItemDialog extends KDialogBase {
+ protected KURLBarItemDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KURLBarItemDialog.
+ <code>allowGlobal</code> if you set this to true, the dialog will have a checkbox
+ for the user to decide if he wants the entry to be
+ available globally or just for the current application.
+ <code>url</code> the url of the item
+ <code>description</code> a short, translated description of the item
+ <code>icon</code> an icon for the item
+ <code>appLocal</code> tells whether the item should be local for this application
+ or be available globally
+ <code>iconSize</code> determines the size of the icon that is shown/selectable
+ <code>parent</code> the parent-widget for the dialog
+ If you leave the icon empty, the default icon for the given url will be
+ used (KMimeType.pixmapForURL()).
+ @short Constructs a KURLBarItemDialog.
+ */
+ public KURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal, int iconSize, QWidget parent, String name) {
+ super((Class) null);
+ newKURLBarItemDialog(allowGlobal,url,description,icon,appLocal,iconSize,parent,name);
+ }
+ private native void newKURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal, int iconSize, QWidget parent, String name);
+ public KURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal, int iconSize, QWidget parent) {
+ super((Class) null);
+ newKURLBarItemDialog(allowGlobal,url,description,icon,appLocal,iconSize,parent);
+ }
+ private native void newKURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal, int iconSize, QWidget parent);
+ public KURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal, int iconSize) {
+ super((Class) null);
+ newKURLBarItemDialog(allowGlobal,url,description,icon,appLocal,iconSize);
+ }
+ private native void newKURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal, int iconSize);
+ public KURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal) {
+ super((Class) null);
+ newKURLBarItemDialog(allowGlobal,url,description,icon,appLocal);
+ }
+ private native void newKURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal);
+ public KURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon) {
+ super((Class) null);
+ newKURLBarItemDialog(allowGlobal,url,description,icon);
+ }
+ private native void newKURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon);
+ /**
+ @return the configured url
+
+ @short
+ */
+ public native KURL url();
+ /**
+ @return the configured description
+
+ @short
+ */
+ public native String description();
+ /**
+ @return the configured icon
+
+ @short
+ */
+ public native String iconName();
+ /**
+ @return whether the item should be local to the application or global.
+ If allowGlobal was set to false in the constructor, this will always
+ return true.
+
+ @short
+ */
+ public native boolean applicationLocal();
+ public native void urlChanged(String arg1);
+ /**
+ A convenience method to show the dialog and retrieve all the
+ properties via the given parameters. The parameters are used to
+ initialize the dialog and then return the user-configured values.
+ See the KURLBarItem constructor for the parameter description.
+ @short A convenience method to show the dialog and retrieve all the properties via the given parameters.
+ */
+ public static native boolean getInformation(boolean allowGlobal, KURL url, StringBuffer description, StringBuffer icon, boolean appLocal, int iconSize, QWidget parent);
+ public static native boolean getInformation(boolean allowGlobal, KURL url, StringBuffer description, StringBuffer icon, boolean appLocal, int iconSize);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURLBarListBox.java b/kdejava/koala/org/kde/koala/KURLBarListBox.java
new file mode 100644
index 00000000..7bcf7f9d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLBarListBox.java
@@ -0,0 +1,80 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QContextMenuEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDragObject;
+
+/**
+
+ This is the listbox used in KURLBar. It is a subclass of KListBox to support
+ drag & drop and to set up the row / column mode.
+ The widget has just one row or one column, depending on orientation().
+ See {@link KURLBarListBoxSignals} for signals emitted by KURLBarListBox
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short This is the listbox used in KURLBar.
+
+*/
+public class KURLBarListBox extends KListBox {
+ protected KURLBarListBox(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KURLBarListBox.
+ @short Constructs a KURLBarListBox.
+ */
+ public KURLBarListBox(QWidget parent, String name) {
+ super((Class) null);
+ newKURLBarListBox(parent,name);
+ }
+ private native void newKURLBarListBox(QWidget parent, String name);
+ public KURLBarListBox(QWidget parent) {
+ super((Class) null);
+ newKURLBarListBox(parent);
+ }
+ private native void newKURLBarListBox(QWidget parent);
+ public KURLBarListBox() {
+ super((Class) null);
+ newKURLBarListBox();
+ }
+ private native void newKURLBarListBox();
+ /**
+ Sets the orientation of the widget. Horizontal means, all items are
+ arranged in one row. Vertical means, all items are arranged in one
+ column.
+ @short Sets the orientation of the widget.
+ @see #orientation
+ */
+ public native void setOrientation(int orient);
+ /**
+ @return the current orientation.
+
+ @short
+ @see #setOrientation
+ */
+ public native int orientation();
+ public native boolean isVertical();
+ /**
+ @return a suitable QDragObject when an item is dragged.
+
+ @short
+ */
+ protected native QDragObject dragObject();
+ protected native void contentsDragEnterEvent(QDragEnterEvent arg1);
+ protected native void contentsDropEvent(QDropEvent arg1);
+ protected native void contextMenuEvent(QContextMenuEvent arg1);
+ protected native void paintEvent(QPaintEvent arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURLBarListBoxSignals.java b/kdejava/koala/org/kde/koala/KURLBarListBoxSignals.java
new file mode 100644
index 00000000..4bf20326
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLBarListBoxSignals.java
@@ -0,0 +1,19 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QDragEnterEvent;
+import org.kde.qt.QContextMenuEvent;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDragObject;
+
+public interface KURLBarListBoxSignals {
+ /**
+ Emitted when a drop-event happened.
+ @short Emitted when a drop-event happened.
+ */
+ void dropped(QDropEvent e);
+}
diff --git a/kdejava/koala/org/kde/koala/KURLBarSignals.java b/kdejava/koala/org/kde/koala/KURLBarSignals.java
new file mode 100644
index 00000000..b1edaeaf
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLBarSignals.java
@@ -0,0 +1,21 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QListBoxItem;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QSize;
+import org.kde.qt.QDropEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QPalette;
+import org.kde.qt.QResizeEvent;
+
+public interface KURLBarSignals {
+ /**
+ This signal is emitted when the user activated an item, e.g., by
+ clicking on it.
+ @short This signal is emitted when the user activated an item, e.
+ */
+ void activated(KURL url);
+}
diff --git a/kdejava/koala/org/kde/koala/KURLComboBox.java b/kdejava/koala/org/kde/koala/KURLComboBox.java
new file mode 100644
index 00000000..3154f4e1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLComboBox.java
@@ -0,0 +1,220 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+
+/**
+
+ This combobox shows a number of recent URLs/directories, as well as some
+ default directories.
+ It will manage the default dirs root-directory, home-directory and
+ Desktop-directory, as well as a number of URLs set via setURLs()
+ and one additional entry to be set via setURL().
+ See {@link KURLComboBoxSignals} for signals emitted by KURLComboBox
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short A combo box showing a number of recent URLs/directories.
+
+*/
+public class KURLComboBox extends KComboBox {
+ protected KURLComboBox(Class dummy){super((Class) null);}
+ /**
+ This enum describes which kind of items is shown in the combo box.
+ @short This enum describes which kind of items is shown in the combo box.
+ */
+ public static final int Files = -1;
+ public static final int Directories = 1;
+ public static final int Both = 0;
+
+ /**
+ This Enumeration is used in setURL() to determine which items
+ will be removed when the given list is larger than maxItems().
+
+ <li>
+ RemoveTop means that items will be removed from top
+ </li>
+
+ <li>
+ RemoveBottom means, that items will be removed from the bottom
+
+ </li> @short This Enumeration is used in setURL() to determine which items will be removed when the given list is larger than maxItems().
+ */
+ public static final int RemoveTop = 0;
+ public static final int RemoveBottom = 1;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KURLComboBox.
+ @param mode is either Files, Directories or Both and controls the
+ following behavior:
+
+ <li>
+ Files all inserted URLs will be treated as files, therefore the
+ url shown in the combo will never show a trailing /
+ the icon will be the one associated with the file's mimetype.
+ </li>
+
+ <li>
+ Directories all inserted URLs will be treated as directories, will
+ have a trailing slash in the combobox. The current
+ directory will show the "open folder" icon, other
+ directories the "folder" icon.
+ </li>
+
+ <li>
+ Both Don't mess with anything, just show the url as given.
+ </li>
+ @param parent The parent object of this widget.
+ @param name The name of this widget.
+ @short Constructs a KURLComboBox.
+ */
+ public KURLComboBox(int mode, QWidget parent, String name) {
+ super((Class) null);
+ newKURLComboBox(mode,parent,name);
+ }
+ private native void newKURLComboBox(int mode, QWidget parent, String name);
+ public KURLComboBox(int mode, QWidget parent) {
+ super((Class) null);
+ newKURLComboBox(mode,parent);
+ }
+ private native void newKURLComboBox(int mode, QWidget parent);
+ public KURLComboBox(int mode) {
+ super((Class) null);
+ newKURLComboBox(mode);
+ }
+ private native void newKURLComboBox(int mode);
+ public KURLComboBox(int mode, boolean rw, QWidget parent, String name) {
+ super((Class) null);
+ newKURLComboBox(mode,rw,parent,name);
+ }
+ private native void newKURLComboBox(int mode, boolean rw, QWidget parent, String name);
+ public KURLComboBox(int mode, boolean rw, QWidget parent) {
+ super((Class) null);
+ newKURLComboBox(mode,rw,parent);
+ }
+ private native void newKURLComboBox(int mode, boolean rw, QWidget parent);
+ public KURLComboBox(int mode, boolean rw) {
+ super((Class) null);
+ newKURLComboBox(mode,rw);
+ }
+ private native void newKURLComboBox(int mode, boolean rw);
+ /**
+ Sets the current url. This combo handles exactly one url additionally
+ to the default items and those set via setURLs(). So you can call
+ setURL() as often as you want, it will always replace the previous one
+ set via setURL().
+ If <code>url</code> is already in the combo, the last item will stay there
+ and the existing item becomes the current item.
+ The current item will always have the open-directory-pixmap as icon.
+ Note that you won't receive any signals, e.g. textChanged(),
+ returnPressed() or activated() upon calling this method.
+ @short Sets the current url.
+ */
+ public native void setURL(KURL url);
+ /**
+ Inserts <code>urls</code> into the combobox below the "default urls" (see
+ addDefaultURL).
+ If the list of urls contains more items than maxItems, the first items
+ will be stripped.
+ @short Inserts <code>urls</code> into the combobox below the "default urls" (see addDefaultURL).
+ */
+ public native void setURLs(String[] urls);
+ /**
+ Inserts <code>urls</code> into the combobox below the "default urls" (see
+ addDefaultURL).
+ If the list of urls contains more items than maxItems, the <code>remove</code>
+ parameter determines whether the first or last items will be stripped.
+ @short Inserts <code>urls</code> into the combobox below the "default urls" (see addDefaultURL).
+ */
+ public native void setURLs(String[] urls, int remove);
+ /**
+ @return a list of all urls currently handled. The list contains at most
+ maxItems() items.
+ Use this to save the list of urls in a config-file and reinsert them
+ via setURLs() next time.
+ Note that all default urls set via addDefaultURL() are not
+ returned, they will automatically be set via setURLs() or setURL().
+ You will always get fully qualified urls, i.e. with protocol like
+ file:/
+
+ @short
+ */
+ public native ArrayList urls();
+ /**
+ Sets how many items should be handled and displayed by the combobox.
+ @short Sets how many items should be handled and displayed by the combobox.
+ @see #maxItems
+ */
+ public native void setMaxItems(int arg1);
+ /**
+ @return the maximum of items the combobox handles.
+
+ @short
+ @see #setMaxItems
+ */
+ public native int maxItems();
+ /**
+ Adds a url that will always be shown in the combobox, it can't be
+ "rotated away". Default urls won't be returned in urls() and don't
+ have to be set via setURLs().
+ If you want to specify a special pixmap, use the overloaded method with
+ the pixmap parameter.
+ Default URLs will be inserted into the combobox by setDefaults()
+ @short Adds a url that will always be shown in the combobox, it can't be "rotated away".
+ */
+ public native void addDefaultURL(KURL url, String text);
+ public native void addDefaultURL(KURL url);
+ /**
+ Adds a url that will always be shown in the combobox, it can't be
+ "rotated away". Default urls won't be returned in urls() and don't
+ have to be set via setURLs().
+ If you don't need to specify a pixmap, use the overloaded method without
+ the pixmap parameter.
+ Default URLs will be inserted into the combobox by setDefaults()
+ @short Adds a url that will always be shown in the combobox, it can't be "rotated away".
+ */
+ public native void addDefaultURL(KURL url, QPixmap pix, String text);
+ public native void addDefaultURL(KURL url, QPixmap pix);
+ /**
+ Clears all items and inserts the default urls into the combo. Will be
+ called implicitly upon the first call to setURLs() or setURL()
+ @short Clears all items and inserts the default urls into the combo.
+ @see #addDefaultURL
+ */
+ public native void setDefaults();
+ /**
+ Removes any occurrence of <code>url.</code> If <code>checkDefaultURLs</code> is false
+ default-urls won't be removed.
+ @short Removes any occurrence of <code>url.</code>
+ */
+ public native void removeURL(KURL url, boolean checkDefaultURLs);
+ public native void removeURL(KURL url);
+ protected native void init(int mode);
+ // void insertURLItem(const KURLComboBox::KURLComboItem* arg1); >>>> NOT CONVERTED
+ /**
+ Uses KMimeType.pixmapForURL() to return a proper pixmap for <code>url.</code>
+ In directory mode, a folder icon is always returned.
+ @short Uses KMimeType.pixmapForURL() to return a proper pixmap for <code>url.</code>
+ */
+ protected native QPixmap getPixmap(KURL url);
+ /**
+ Updates <code>item</code> with <code>pixmap</code> and sets the url instead of the text
+ of the KURLComboItem.
+ Also works around a Qt bug.
+ @short Updates <code>item</code> with <code>pixmap</code> and sets the url instead of the text of the KURLComboItem.
+ */
+ // void updateItem(const KURLComboBox::KURLComboItem* arg1,int arg2,const QPixmap& arg3); >>>> NOT CONVERTED
+ protected native void slotActivated(int arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURLComboBoxSignals.java b/kdejava/koala/org/kde/koala/KURLComboBoxSignals.java
new file mode 100644
index 00000000..48950062
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLComboBoxSignals.java
@@ -0,0 +1,18 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+
+public interface KURLComboBoxSignals {
+ /**
+ Emitted when an item was clicked at.
+ @param url is the url of the now current item. If it is a local url,
+ it won't have a protocol (file:/), otherwise it will.
+ @short Emitted when an item was clicked at.
+ */
+ void urlActivated(KURL url);
+}
diff --git a/kdejava/koala/org/kde/koala/KURLComboRequester.java b/kdejava/koala/org/kde/koala/KURLComboRequester.java
new file mode 100644
index 00000000..cfd13371
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLComboRequester.java
@@ -0,0 +1,44 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ URL requester with a combo box, for use in Designer
+ @short URL requester with a combo box, for use in Designer
+
+*/
+public class KURLComboRequester extends KURLRequester {
+ protected KURLComboRequester(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KURLRequester widget with a combobox.
+ @short Constructs a KURLRequester widget with a combobox.
+ */
+ public KURLComboRequester(QWidget parent, String name) {
+ super((Class) null);
+ newKURLComboRequester(parent,name);
+ }
+ private native void newKURLComboRequester(QWidget parent, String name);
+ public KURLComboRequester(QWidget parent) {
+ super((Class) null);
+ newKURLComboRequester(parent);
+ }
+ private native void newKURLComboRequester(QWidget parent);
+ public KURLComboRequester() {
+ super((Class) null);
+ newKURLComboRequester();
+ }
+ private native void newKURLComboRequester();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURLCompletion.java b/kdejava/koala/org/kde/koala/KURLCompletion.java
new file mode 100644
index 00000000..93981942
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLCompletion.java
@@ -0,0 +1,176 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QCustomEvent;
+
+/**
+
+ This class does completion of URLs including user directories (~user)
+ and environment variables. Remote URLs are passed to KIO.
+ @author David Smith <dsmith@algonet.se>
+
+ @short Completion of a single URL.
+
+*/
+public class KURLCompletion extends KCompletion {
+ protected KURLCompletion(Class dummy){super((Class) null);}
+ /**
+ Determines how completion is done.
+
+ <li>
+ ExeCompletion - executables in $PATH or with full path.
+ </li>
+
+ <li>
+ FileCompletion - all files with full path or in dir(), URLs
+ are listed using KIO.
+ </li>
+
+ <li>
+ DirCompletion - Same as FileCompletion but only returns directories.
+
+ </li> @short Determines how completion is done.
+ */
+ public static final int ExeCompletion = 1;
+ public static final int FileCompletion = 2;
+ public static final int DirCompletion = 3;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KURLCompletion object in FileCompletion mode.
+ @short Constructs a KURLCompletion object in FileCompletion mode.
+ */
+ public KURLCompletion() {
+ super((Class) null);
+ newKURLCompletion();
+ }
+ private native void newKURLCompletion();
+ /**
+ This overloaded constructor allows you to set the Mode to ExeCompletion
+ or FileCompletion without using setMode. Default is FileCompletion.
+ @short This overloaded constructor allows you to set the Mode to ExeCompletion or FileCompletion without using setMode.
+ */
+ public KURLCompletion(int arg1) {
+ super((Class) null);
+ newKURLCompletion(arg1);
+ }
+ private native void newKURLCompletion(int arg1);
+ /**
+ Finds completions to the given text.
+ Remote URLs are listed with KIO. For performance reasons, local files
+ are listed with KIO only if KURLCOMPLETION_LOCAL_KIO is set.
+ The completion is done asyncronously if KIO is used.
+ Returns the first match for user, environment, and local dir completion
+ and null for asynchronous completion (KIO or threaded).
+ @param text the text to complete
+ @return the first match, or null if not found
+
+ @short Finds completions to the given text.
+ */
+ public native String makeCompletion(String text);
+ /**
+ Sets the current directory (used as base for completion).
+ Default = $HOME.
+ @param dir the current directory, either as a path or URL
+ @short Sets the current directory (used as base for completion).
+ */
+ public native void setDir(String dir);
+ /**
+ Returns the current directory, as it was given in setDir
+ @return the current directory (path or URL)
+
+ @short Returns the current directory, as it was given in setDir
+ */
+ public native String dir();
+ /**
+ Check whether asynchronous completion is in progress.
+ @return true if asynchronous completion is in progress
+
+ @short Check whether asynchronous completion is in progress.
+ */
+ public native boolean isRunning();
+ /**
+ Stops asynchronous completion.
+ @short Stops asynchronous completion.
+ */
+ public native void stop();
+ /**
+ Returns the completion mode: exe or file completion (default FileCompletion).
+ @return the completion mode
+
+ @short Returns the completion mode: exe or file completion (default FileCompletion).
+ */
+ public native int mode();
+ /**
+ Changes the completion mode: exe or file completion
+ @param mode the new completion mode
+ @short Changes the completion mode: exe or file completion
+ */
+ public native void setMode(int mode);
+ /**
+ Checks whether environment variables are completed and
+ whether they are replaced internally while finding completions.
+ Default is enabled.
+ @return true if environment vvariables will be replaced
+
+ @short Checks whether environment variables are completed and whether they are replaced internally while finding completions.
+ */
+ public native boolean replaceEnv();
+ /**
+ Enables/disables completion and replacement (internally) of
+ environment variables in URLs. Default is enabled.
+ @param replace true to replace environment variables
+ @short Enables/disables completion and replacement (internally) of environment variables in URLs.
+ */
+ public native void setReplaceEnv(boolean replace);
+ /**
+ Returns whether ~username is completed and whether ~username
+ is replaced internally with the user's home directory while
+ finding completions. Default is enabled.
+ @return true to replace tilde with the home directory
+
+ @short Returns whether ~username is completed and whether ~username is replaced internally with the user's home directory while finding completions.
+ */
+ public native boolean replaceHome();
+ /**
+ Enables/disables completion of ~username and replacement
+ (internally) of ~username with the user's home directory.
+ Default is enabled.
+ @param replace true to replace tilde with the home directory
+ @short Enables/disables completion of ~username and replacement (internally) of ~username with the user's home directory.
+ */
+ public native void setReplaceHome(boolean replace);
+ /**
+ Replaces username and/or environment variables, depending on the
+ current settings and returns the filtered url. Only works with
+ local files, i.e. returns back the original string for non-local
+ urls.
+ @param text the text to process
+ @return the path or URL resulting from this operation. If you
+ want to convert it to a KURL, use KURL.fromPathOrURL.
+
+ @short Replaces username and/or environment variables, depending on the current settings and returns the filtered url.
+ */
+ public native String replacedPath(String text);
+ /**
+ @short
+ */
+ public static native String replacedPath(String text, boolean replaceHome, boolean replaceEnv);
+ public static native String replacedPath(String text, boolean replaceHome);
+ protected native void postProcessMatch(StringBuffer match);
+ protected native void postProcessMatches(String[] matches);
+ // void postProcessMatches(KCompletionMatches* arg1); >>>> NOT CONVERTED
+ protected native void customEvent(QCustomEvent e);
+ // void slotEntries(KIO::Job* arg1,const KIO::UDSEntryList& arg2); >>>> NOT CONVERTED
+ protected native void slotIOFinished(Job arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURLDrag.java b/kdejava/koala/org/kde/koala/KURLDrag.java
new file mode 100644
index 00000000..63db342f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLDrag.java
@@ -0,0 +1,135 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMimeSourceInterface;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QMimeSource;
+import org.kde.qt.QWidget;
+import org.kde.qt.QUriDrag;
+
+/**
+
+ This class is to be used instead of QUriDrag when using KURL.
+ The reason is: QUriDrag (and the XDND/W3C standards) expect URLs to
+ be encoded in UTF-8 (unicode), but KURL uses the current locale
+ by default.
+ The other reasons for using this class are:
+
+ <li>
+ it exports text/plain (for dropping/pasting into lineedits, mails etc.)
+ </li>
+
+ <li>
+ it has support for metadata, shipped as part of the dragobject
+ This is important, for instance to set a correct HTTP referrer (some websites
+ require it for downloading e.g. an image).
+ </li>
+ To create a drag object, use the KURLDrag constructor.
+ To handle drops, use QUriDrag.canDecode() and KURLDrag.decode()
+ @short This class is to be used instead of QUriDrag when using KURL.
+
+*/
+public class KURLDrag extends QUriDrag {
+ protected KURLDrag(Class dummy){super((Class) null);}
+ /**
+ Constructs an object to drag the list of URLs in <code>urls.</code>
+ The <code>dragSource</code> and <code>name</code> arguments are passed on to QUriDrag,
+ and the list of urls is converted to UTF-8 before being passed
+ to QUriDrag.
+ @param urls the list of URLs
+ @param dragSource the parent of the QObject. Should be set when doing drag-n-drop,
+ but should be 0 when copying to the clipboard
+ @param name the name of the QObject
+ @short Constructs an object to drag the list of URLs in <code>urls.</code>
+ */
+ public KURLDrag(ArrayList urls, QWidget dragSource, String name) {
+ super((Class) null);
+ newKURLDrag(urls,dragSource,name);
+ }
+ private native void newKURLDrag(ArrayList urls, QWidget dragSource, String name);
+ public KURLDrag(ArrayList urls, QWidget dragSource) {
+ super((Class) null);
+ newKURLDrag(urls,dragSource);
+ }
+ private native void newKURLDrag(ArrayList urls, QWidget dragSource);
+ public KURLDrag(ArrayList urls) {
+ super((Class) null);
+ newKURLDrag(urls);
+ }
+ private native void newKURLDrag(ArrayList urls);
+ /**
+ Constructs an object to drag the list of URLs in <code>urls.</code>
+ This version also includes metadata.
+ @param urls the list of URLs
+ @param metaData a map containing meta data
+ @param dragSource the parent of the QObject. Should be set when doing drag-n-drop,
+ but should be 0 when copying to the clipboard
+ @param name the name of the QObject
+ @short Constructs an object to drag the list of URLs in <code>urls.</code>
+ @see #metaData
+ */
+ // KURLDrag* KURLDrag(const KURL::List& arg1,const QMap<QString, QString>& arg2,QWidget* arg3,const char* arg4); >>>> NOT CONVERTED
+ // KURLDrag* KURLDrag(const KURL::List& arg1,const QMap<QString, QString>& arg2,QWidget* arg3); >>>> NOT CONVERTED
+ // KURLDrag* KURLDrag(const KURL::List& arg1,const QMap<QString, QString>& arg2); >>>> NOT CONVERTED
+ /**
+ By default, KURLDrag also exports the URLs as plain text, for e.g. dropping onto a text editor.
+ But in some cases this might not be wanted, e.g. if using the KURLDrag in a KMultipleDrag
+ and another component of the multiple-drag provides better plain text data.
+ In such a case, setExportAsText( false ) should be called.
+ @short By default, KURLDrag also exports the URLs as plain text, for e.
+ */
+ public native void setExportAsText(boolean exp);
+ /**
+ Meta-data to associate with those URLs.
+ This is an alternative way of setting the metadata:
+ either use the constructor to pass it all at once, or use
+ drag.metaData()["key"] = data;
+ @short Meta-data to associate with those URLs.
+ @see TransferJob
+ */
+ // QMap<QString, QString>& metaData(); >>>> NOT CONVERTED
+ public native String format(int i);
+ public native byte[] encodedData(String mime);
+ /**
+ Convenience method that decodes the contents of <code>e</code>
+ into a list of KURLs. Decoding will fail if at least one decoded value
+ is not a valid KURL.
+ @param e the mime source
+ @param urls the list of urls will be written here
+ @return true if successful, false otherwise
+
+ @short Convenience method that decodes the contents of <code>e</code> into a list of KURLs.
+ */
+ public static native boolean decode(QMimeSourceInterface e, ArrayList urls);
+ /**
+ Convenience method that decodes the contents of <code>e</code>
+ into a list of KURLs and a set of metadata. Decoding will fail if
+ at least one decoded value is not a valid KURL.
+ You should be using this one, if possible.
+ @param e the mime source
+ @param urls the list of urls will be written here
+ @param metaData the metadata map will be written here
+ @return true if successful, false otherwise
+
+ @short Convenience method that decodes the contents of <code>e</code> into a list of KURLs and a set of metadata.
+ */
+ // bool decode(const QMimeSource* arg1,KURL::List& arg2,QMap<QString, QString>& arg3); >>>> NOT CONVERTED
+ /**
+ Converts a URL to a string representation suitable for dragging.
+ @short Converts a URL to a string representation suitable for dragging.
+ */
+ public static native String urlToString(KURL url);
+ /**
+ Converts a string used for dragging to a URL.
+ @short Converts a string used for dragging to a URL.
+ */
+ public static native KURL stringToUrl(String s);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURLLabel.java b/kdejava/koala/org/kde/koala/KURLLabel.java
new file mode 100644
index 00000000..29cd3806
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLLabel.java
@@ -0,0 +1,279 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QColor;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QCursor;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QLabel;
+
+/**
+
+ KURLLabel is a drop-in replacement for QLabel that handles text
+ in a fashion similar to how an HTML widget handles hyperlinks. The
+ text can be underlined (or not) and set to different colors. It
+ can also "glow" (cycle colors) when the mouse passes over it.
+ KURLLabel also provides signals for several events, including
+ the mouse leaving and entering the text area and all forms of
+ mouse clicking.
+ A typical usage would be something like so:
+ <pre>
+ KURLLabel address = new KURLLabel(this);
+ address.setText("My homepage");
+ address.setURL("http://www.home.com/~me");
+ connect(address, SIGNAL("leftClickedURL(String)"),
+ SLOT("processMyURL(String)"));
+ </pre>
+ In this example, the text "My homepage" would be displayed
+ as blue, underlined text. When the mouse passed over it,
+ it would "glow" red. When the user clicks on the text, the
+ signal leftClickedURL() would be emitted with "http://www.home.com/~me"
+ as its argument.
+ \image html kurllabel.png "KDE URL Label"
+ See {@link KURLLabelSignals} for signals emitted by KURLLabel
+ @author Peter Putzer <putzer@kde.org> (Rewrite)
+
+ @version $Id$
+
+ @short A drop-in replacement for QLabel that displays hyperlinks.
+
+*/
+public class KURLLabel extends QLabel {
+ protected KURLLabel(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Default constructor.
+ Use setURL() and setText() or QListView.setPixmap()
+ to set the resp. properties.
+ @short Default constructor.
+ */
+ public KURLLabel(QWidget parent, String name) {
+ super((Class) null);
+ newKURLLabel(parent,name);
+ }
+ private native void newKURLLabel(QWidget parent, String name);
+ public KURLLabel(QWidget parent) {
+ super((Class) null);
+ newKURLLabel(parent);
+ }
+ private native void newKURLLabel(QWidget parent);
+ public KURLLabel() {
+ super((Class) null);
+ newKURLLabel();
+ }
+ private native void newKURLLabel();
+ /**
+ Convenience constructor.
+ @param url is the URL emitted when the label is clicked.
+ @param text is the displayed string. If it's equal to null
+ the <code>url</code> will be used instead.
+ @param parent Passed to lower level constructor
+ @param name Passed to lower level constructor
+ <code>parent</code> and <code>name</code> are passed to QLabel, which in turn passes
+ them further down
+ @short Convenience constructor.
+ */
+ public KURLLabel(String url, String text, QWidget parent, String name) {
+ super((Class) null);
+ newKURLLabel(url,text,parent,name);
+ }
+ private native void newKURLLabel(String url, String text, QWidget parent, String name);
+ public KURLLabel(String url, String text, QWidget parent) {
+ super((Class) null);
+ newKURLLabel(url,text,parent);
+ }
+ private native void newKURLLabel(String url, String text, QWidget parent);
+ public KURLLabel(String url, String text) {
+ super((Class) null);
+ newKURLLabel(url,text);
+ }
+ private native void newKURLLabel(String url, String text);
+ public KURLLabel(String url) {
+ super((Class) null);
+ newKURLLabel(url);
+ }
+ private native void newKURLLabel(String url);
+ /**
+ Returns the URL.
+ @short Returns the URL.
+ */
+ public native String url();
+ /**
+ Returns the current tooltip text.
+ @short Returns the current tooltip text.
+ */
+ public native String tipText();
+ /**
+ @return true if a tooltip will be displayed.
+
+ @short
+ @see #setTipText
+ */
+ public native boolean useTips();
+ /**
+ @return true if the cursor will change while over the URL.
+
+ @short
+ @see #setUseCursor
+ */
+ public native boolean useCursor();
+ /**
+ When this is on, the text will switch to the selected
+ color whenever the mouse passes over it.
+ @short When this is on, the text will switch to the selected color whenever the mouse passes over it.
+ */
+ public native boolean isGlowEnabled();
+ /**
+ This feature is very similar to the "glow" feature in that the color of the
+ label switches to the selected color when the cursor passes
+ over it. In addition, underlining is turned on for as
+ long as the mouse is overhead. Note that if "glow" and
+ underlining are both already turned on, this feature
+ will have no visible effect.
+ @short This feature is very similar to the "glow" feature in that the color of the label switches to the selected color when the cursor passes over it.
+ */
+ public native boolean isFloatEnabled();
+ /**
+ @return the alternate pixmap (may be 0L if none was set).
+
+ @short
+ */
+ public native QPixmap altPixmap();
+ /**
+ Turns on or off the underlining.
+ When this is on, the
+ text will be underlined. By default, it is <code>true.</code>
+ @short Turns on or off the underlining.
+ */
+ public native void setUnderline(boolean on);
+ public native void setUnderline();
+ /**
+ Sets the URL for this label to <code>url.</code>
+ @short Sets the URL for this label to <code>url.</code>
+ @see #url
+ */
+ public native void setURL(String url);
+ /**
+ Overridden for internal reasons; the API remains unaffected.
+ @short Overridden for internal reasons; the API remains unaffected.
+ */
+ public native void setFont(QFont arg1);
+ /**
+ Turns on or off the tool tip feature.
+ When this is on, the URL will be displayed as a
+ tooltip whenever the mouse passes passes over it.
+ By default, it is <code>false.</code>
+ @short Turns on or off the tool tip feature.
+ */
+ public native void setUseTips(boolean on);
+ public native void setUseTips();
+ /**
+ Specifies what text to display when tooltips are turned on.
+ If this is not used, the tip will default to the URL.
+ @short Specifies what text to display when tooltips are turned on.
+ @see #setUseTips
+ */
+ public native void setTipText(String tip);
+ /**
+ Sets the highlight color.
+ This is the default foreground
+ color (non-selected). By default, it is <code>blue.</code>
+ @short Sets the highlight color.
+ */
+ public native void setHighlightedColor(QColor highcolor);
+ /**
+ This is an overloaded version for convenience.
+ @short This is an overloaded version for convenience.
+ @see #setHighlightedColor
+ */
+ public native void setHighlightedColor(String highcolor);
+ /**
+ Sets the selected color.
+ This is the color the text will change
+ to when either a mouse passes over it and "glow" mode is on or
+ when it is selected (clicked). By default, it is <code>red.</code>
+ @short Sets the selected color.
+ */
+ public native void setSelectedColor(QColor selcolor);
+ /**
+ This is an overloaded version for convenience.
+ @short This is an overloaded version for convenience.
+ @see #setSelectedColor
+ */
+ public native void setSelectedColor(String selcolor);
+ /**
+ Turns the custom cursor feature on or off.
+ When this is on, the cursor will change to a custom cursor
+ (default is a "pointing hand") whenever the cursor passes
+ over the label. By default, it is on.
+ @param on whether a custom cursor should be displayed.
+ @param cursor is the custom cursor. <code>null</code> indicates the default "hand cursor".
+ @short Turns the custom cursor feature on or off.
+ */
+ public native void setUseCursor(boolean on, QCursor cursor);
+ public native void setUseCursor(boolean on);
+ /**
+ Turns on or off the "glow" feature.
+ When this is on, the text will switch to the
+ selected color whenever the mouse
+ passes over it. By default, it is <code>true.</code>
+ @short Turns on or off the "glow" feature.
+ */
+ public native void setGlow(boolean glow);
+ public native void setGlow();
+ /**
+ Turns on or off the "float" feature.
+ This feature is very similar to the "glow" feature in
+ that the color of the label switches to the selected
+ color when the cursor passes over it. In addition,
+ underlining is turned on for as long as the mouse is overhead.
+ Note that if "glow" and underlining are both already turned
+ on, this feature will have no visible effect.
+ By default, it is <code>false.</code>
+ @short Turns on or off the "float" feature.
+ */
+ public native void setFloat(boolean do_float);
+ public native void setFloat();
+ /**
+ Sets the "alt" pixmap.
+ This pixmap will be displayed when the
+ cursor passes over the label. The effect is similar to the
+ trick done with 'onMouseOver' in javascript.
+ @short Sets the "alt" pixmap.
+ @see #altPixmap
+ */
+ public native void setAltPixmap(QPixmap altPix);
+ /**
+ Overridden for internal reasons; the API remains unaffected.
+ @short Overridden for internal reasons; the API remains unaffected.
+ */
+ protected native void mouseReleaseEvent(QMouseEvent arg1);
+ /**
+ Overridden for internal reasons; the API remains unaffected.
+ @short Overridden for internal reasons; the API remains unaffected.
+ */
+ protected native void enterEvent(QEvent arg1);
+ /**
+ Overridden for internal reasons; the API remains unaffected.
+ @short Overridden for internal reasons; the API remains unaffected.
+ */
+ protected native void leaveEvent(QEvent arg1);
+ /**
+ Catch parent palette changes
+ @short Catch parent palette changes
+ */
+ public native boolean event(QEvent e);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURLLabelSignals.java b/kdejava/koala/org/kde/koala/KURLLabelSignals.java
new file mode 100644
index 00000000..2d4d05b0
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLLabelSignals.java
@@ -0,0 +1,70 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QColor;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QCursor;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+public interface KURLLabelSignals {
+ /**
+ Emitted when the mouse has passed over the label.
+ @param url The URL for this label.
+ @short Emitted when the mouse has passed over the label.
+ */
+ void enteredURL(String url);
+ /**
+ Emitted when the mouse has passed over the label.
+ @short Emitted when the mouse has passed over the label.
+ */
+ void enteredURL();
+ /**
+ Emitted when the mouse is no longer over the label.
+ @param url The URL for this label.
+ @short Emitted when the mouse is no longer over the label.
+ */
+ void leftURL(String url);
+ /**
+ Emitted when the mouse is no longer over the label.
+ @short Emitted when the mouse is no longer over the label.
+ */
+ void leftURL();
+ /**
+ Emitted when the user clicked the left mouse button on this label.
+ @param url The URL for this label.
+ @short Emitted when the user clicked the left mouse button on this label.
+ */
+ void leftClickedURL(String url);
+ /**
+ Emitted when the user clicked the left mouse button on this label.
+ @short Emitted when the user clicked the left mouse button on this label.
+ */
+ void leftClickedURL();
+ /**
+ Emitted when the user clicked the right mouse button on this label.
+ @param url The URL for this label.
+ @short Emitted when the user clicked the right mouse button on this label.
+ */
+ void rightClickedURL(String url);
+ /**
+ Emitted when the user clicked the right mouse button on this label.
+ @short Emitted when the user clicked the right mouse button on this label.
+ */
+ void rightClickedURL();
+ /**
+ Emitted when the user clicked the middle mouse button on this label.
+ @param url The URL for this label.
+ @short Emitted when the user clicked the middle mouse button on this label.
+ */
+ void middleClickedURL(String url);
+ /**
+ Emitted when the user clicked the left mouse button on this label.
+ @short Emitted when the user clicked the left mouse button on this label.
+ */
+ void middleClickedURL();
+}
diff --git a/kdejava/koala/org/kde/koala/KURLPixmapProvider.java b/kdejava/koala/org/kde/koala/KURLPixmapProvider.java
new file mode 100644
index 00000000..e9164826
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLPixmapProvider.java
@@ -0,0 +1,48 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+
+/**
+
+ Implementation of KPixmapProvider.
+ Uses KMimeType.pixmapForURL() to resolve icons.
+ Instatiate this class and supply it to the desired class, e.g.
+ <pre>
+ KHistoryCombo combo = new KHistoryCombo( this );
+ combo.setPixmapProvider( new KURLPixmapProvider );
+ [...]
+ </pre>
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short Resolves pixmaps for URLs.
+
+*/
+public class KURLPixmapProvider extends KPixmapProvider {
+ protected KURLPixmapProvider(Class dummy){super((Class) null);}
+ /**
+ Returns a pixmap for <code>url</code> with size <code>size.</code>
+ Uses KMimeType.pixmapForURL().
+ @param url the URL to fetch a pixmap for
+ @param size the size of the pixmap in pixels, or 0 for default.
+ @return the resulting pixmap
+
+ @short Returns a pixmap for <code>url</code> with size <code>size.</code>
+ @see KIcon#StdSizes
+ */
+ public native QPixmap pixmapFor(String url, int size);
+ public native QPixmap pixmapFor(String url);
+ public KURLPixmapProvider() {
+ super((Class) null);
+ newKURLPixmapProvider();
+ }
+ private native void newKURLPixmapProvider();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURLRequester.java b/kdejava/koala/org/kde/koala/KURLRequester.java
new file mode 100644
index 00000000..f3aa6735
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLRequester.java
@@ -0,0 +1,224 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QHBox;
+
+/**
+
+ This class is a widget showing a lineedit and a button, which invokes a
+ filedialog. File name completion is available in the lineedit.
+ The defaults for the filedialog are to ask for one existing local file, i.e.
+ KFileDialog.setMode( KFile.File | KFile.ExistingOnly | KFile.LocalOnly )
+ The default filter is "*", i.e. show all files, and the start directory is
+ the current working directory, or the last directory where a file has been
+ selected.
+ You can change this behavior by using setMode() or setFilter().
+ \image html kurlrequester.png "KDE URL Requester"
+ See {@link KURLRequesterSignals} for signals emitted by KURLRequester
+ @author Carsten Pfeiffer <pfeiffer@kde.org>
+
+ @short A widget to request a filename/url from the user.
+
+*/
+public class KURLRequester extends QHBox {
+ protected KURLRequester(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KURLRequester widget.
+ @short Constructs a KURLRequester widget.
+ */
+ public KURLRequester(QWidget parent, String name) {
+ super((Class) null);
+ newKURLRequester(parent,name);
+ }
+ private native void newKURLRequester(QWidget parent, String name);
+ public KURLRequester(QWidget parent) {
+ super((Class) null);
+ newKURLRequester(parent);
+ }
+ private native void newKURLRequester(QWidget parent);
+ public KURLRequester() {
+ super((Class) null);
+ newKURLRequester();
+ }
+ private native void newKURLRequester();
+ /**
+ Constructs a KURLRequester widget with the initial URL <code>url.</code>
+ // TODO KDE4: Use KURL instead
+ @short Constructs a KURLRequester widget with the initial URL <code>url.</code>
+ */
+ public KURLRequester(String url, QWidget parent, String name) {
+ super((Class) null);
+ newKURLRequester(url,parent,name);
+ }
+ private native void newKURLRequester(String url, QWidget parent, String name);
+ public KURLRequester(String url, QWidget parent) {
+ super((Class) null);
+ newKURLRequester(url,parent);
+ }
+ private native void newKURLRequester(String url, QWidget parent);
+ public KURLRequester(String url) {
+ super((Class) null);
+ newKURLRequester(url);
+ }
+ private native void newKURLRequester(String url);
+ /**
+ Special constructor, which creates a KURLRequester widget with a custom
+ edit-widget. The edit-widget can be either a KComboBox or a KLineEdit
+ (or inherited thereof). Note: for geometry management reasons, the
+ edit-widget is reparented to have the KURLRequester as parent.
+ @short Special constructor, which creates a KURLRequester widget with a custom edit-widget.
+ */
+ public KURLRequester(QWidget editWidget, QWidget parent, String name) {
+ super((Class) null);
+ newKURLRequester(editWidget,parent,name);
+ }
+ private native void newKURLRequester(QWidget editWidget, QWidget parent, String name);
+ public KURLRequester(QWidget editWidget, QWidget parent) {
+ super((Class) null);
+ newKURLRequester(editWidget,parent);
+ }
+ private native void newKURLRequester(QWidget editWidget, QWidget parent);
+ /**
+ @return the current url in the lineedit. May be malformed, if the user
+ entered something weird. ~user or environment variables are substituted
+ for local files.
+ // TODO KDE4: Use KURL so that the result is properly defined
+
+ @short
+ */
+ public native String url();
+ /**
+ Enables/disables showing file:/ in the lineedit, when a local file has
+ been selected in the filedialog or was set via setURL().
+ Default is false, not showing file:/
+ @short Enables/disables showing file:/ in the lineedit, when a local file has been selected in the filedialog or was set via setURL().
+ @see #showLocalProtocol
+ */
+ public native void setShowLocalProtocol(boolean b);
+ /**
+ Sets the mode of the file dialog.
+ Note: you can only select one file with the filedialog,
+ so KFile.Files doesn't make much sense.
+ @short Sets the mode of the file dialog.
+ @see KFileDialog#setMode
+ */
+ public native void setMode(int m);
+ /**
+ Returns the current mode
+ @short Returns the current mode
+ @see KFileDialog#mode
+ */
+ public native int mode();
+ /**
+ Sets the filter for the file dialog.
+ @short Sets the filter for the file dialog.
+ @see KFileDialog#setFilter
+ */
+ public native void setFilter(String filter);
+ /**
+ Returns the current filter for the file dialog.
+ @short Returns the current filter for the file dialog.
+ @see KFileDialog#filter
+ */
+ public native String filter();
+ /**
+ @return whether local files will be prefixed with file:/ in the
+ lineedit
+
+ @short
+ @see #setShowLocalProtocol
+ */
+ public native boolean showLocalProtocol();
+ /**
+ Remove in KDE4? KURLRequester should use KDirSelectDialog for
+ (mode & KFile.Directory) && !(mode & KFile.File)
+ @return a pointer to the filedialog
+ You can use this to customize the dialog, e.g. to specify a filter.
+ Never returns 0L.
+
+ @short
+ */
+ public native KFileDialog fileDialog();
+ /**
+ It is provided so that you can e.g. set an own completion object
+ (e.g. KShellCompletion) into it.
+ @return a pointer to the lineedit, either the default one, or the
+ special one, if you used the special constructor.
+
+ @short
+ */
+ public native KLineEdit lineEdit();
+ /**
+ @return a pointer to the combobox, in case you have set one using the
+ special constructor. Returns 0L otherwise.
+
+ @short
+ */
+ public native KComboBox comboBox();
+ /**
+ @return a pointer to the pushbutton. It is provided so that you can
+ specify an own pixmap or a text, if you really need to.
+
+ @short
+ */
+ public native KPushButton button();
+ /**
+ @return the KURLCompletion object used in the lineedit/combobox.
+
+ @short
+ */
+ public native KURLCompletion completionObject();
+ /**
+ @return an object, suitable for use with KEditListBox. It allows you
+ to put this KURLRequester into a KEditListBox.
+ Basically, do it like this:
+ <pre>
+ KURLRequester *req = new KURLRequester( someWidget );
+ [...]
+ KEditListBox *editListBox = new KEditListBox( i18n("Some Title"), req.customEditor(), someWidget );
+ </pre>
+
+ @short
+ */
+ // KEditListBox::CustomEditor customEditor(); >>>> NOT CONVERTED
+ /**
+ Sets the url in the lineedit to <code>url.</code> Depending on the state of
+ showLocalProtocol(), file:/ on local files will be shown or not.
+ @short Sets the url in the lineedit to <code>url.</code>
+ */
+ public native void setURL(String url);
+ /**
+ Sets the url in the lineedit to <code>url.</code>
+ @short Sets the url in the lineedit to <code>url.</code>
+ */
+ public native void setKURL(KURL url);
+ /**
+ Sets the caption of the file dialog.
+ @short Sets the caption of the file dialog.
+ */
+ public native void setCaption(String caption);
+ /**
+ Clears the lineedit/combobox.
+ @short Clears the lineedit/combobox.
+ */
+ public native void clear();
+ protected native void init();
+ /**
+ Called when the button is pressed to open the filedialog.
+ Also called when KStdAccel.Open (default is Ctrl-O) is pressed.
+ @short Called when the button is pressed to open the filedialog.
+ */
+ protected native void slotOpenDialog();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURLRequesterDlg.java b/kdejava/koala/org/kde/koala/KURLRequesterDlg.java
new file mode 100644
index 00000000..828750ff
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLRequesterDlg.java
@@ -0,0 +1,98 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ Dialog in which a user can enter a filename or url. It is a dialog
+ encapsulating KURLRequester. The API is derived from
+ KFileDialog.
+ @author Wilco Greven <greven@kde.org>
+
+ @short Simple dialog to enter a filename/url.
+
+*/
+public class KURLRequesterDlg extends KDialogBase {
+ protected KURLRequesterDlg(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KURLRequesterDlg.
+ @param url The url of the directory to start in. Use null
+ to start in the current working directory, or the last
+ directory where a file has been selected.
+ @param parent The parent object of this widget.
+ @param name The name of this widget.
+ @param modal Specifies whether the dialog should be opened as modal
+ or not.
+ @short Constructs a KURLRequesterDlg.
+ */
+ public KURLRequesterDlg(String url, QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKURLRequesterDlg(url,parent,name,modal);
+ }
+ private native void newKURLRequesterDlg(String url, QWidget parent, String name, boolean modal);
+ public KURLRequesterDlg(String url, QWidget parent, String name) {
+ super((Class) null);
+ newKURLRequesterDlg(url,parent,name);
+ }
+ private native void newKURLRequesterDlg(String url, QWidget parent, String name);
+ /**
+ Constructs a KURLRequesterDlg.
+ @param url The url of the directory to start in. Use null
+ to start in the current working directory, or the last
+ directory where a file has been selected.
+ @param text Text of the label
+ @param parent The parent object of this widget.
+ @param name The name of this widget.
+ @param modal Specifies whether the dialog should be opened as modal
+ or not.
+ @short Constructs a KURLRequesterDlg.
+ */
+ public KURLRequesterDlg(String url, String text, QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKURLRequesterDlg(url,text,parent,name,modal);
+ }
+ private native void newKURLRequesterDlg(String url, String text, QWidget parent, String name, boolean modal);
+ public KURLRequesterDlg(String url, String text, QWidget parent, String name) {
+ super((Class) null);
+ newKURLRequesterDlg(url,text,parent,name);
+ }
+ private native void newKURLRequesterDlg(String url, String text, QWidget parent, String name);
+ /**
+ Returns the fully qualified filename.
+ @short Returns the fully qualified filename.
+ */
+ public native KURL selectedURL();
+ /**
+ Returns a pointer to the file dialog used by the KURLRequester.
+ @short Returns a pointer to the file dialog used by the KURLRequester.
+ */
+ public native KFileDialog fileDialog();
+ /**
+ Returns a pointer to the KURLRequester.
+ @short Returns a pointer to the KURLRequester.
+ */
+ public native KURLRequester urlRequester();
+ /**
+ Creates a modal dialog, executes it and returns the selected URL.
+ @param url This specifies the initial path of the input line.
+ @param parent The widget the dialog will be centered on initially.
+ @param caption The caption to use for the dialog.
+ @short Creates a modal dialog, executes it and returns the selected URL.
+ */
+ public static native KURL getURL(String url, QWidget parent, String caption);
+ public static native KURL getURL(String url, QWidget parent);
+ public static native KURL getURL(String url);
+ public static native KURL getURL();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KURLRequesterSignals.java b/kdejava/koala/org/kde/koala/KURLRequesterSignals.java
new file mode 100644
index 00000000..15f3bafc
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KURLRequesterSignals.java
@@ -0,0 +1,45 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface KURLRequesterSignals {
+ /**
+ Emitted when the text in the lineedit changes.
+ The parameter contains the contents of the lineedit.
+ @short Emitted when the text in the lineedit changes.
+ */
+ void textChanged(String arg1);
+ /**
+ Emitted when return or enter was pressed in the lineedit.
+ @short Emitted when return or enter was pressed in the lineedit.
+ */
+ void returnPressed();
+ /**
+ Emitted when return or enter was pressed in the lineedit.
+ The parameter contains the contents of the lineedit.
+ @short Emitted when return or enter was pressed in the lineedit.
+ */
+ void returnPressed(String arg1);
+ /**
+ Emitted before the filedialog is going to open. Connect
+ to this signal to "configure" the filedialog, e.g. set the
+ filefilter, the mode, a preview-widget, etc. It's usually
+ not necessary to set a URL for the filedialog, as it will
+ get set properly from the editfield contents.
+ If you use multiple KURLRequesters, you can connect all of them
+ to the same slot and use the given KURLRequester pointer to know
+ which one is going to open.
+ @short Emitted before the filedialog is going to open.
+ */
+ void openFileDialog(KURLRequester arg1);
+ /**
+ Emitted when the user changed the URL via the file dialog.
+ The parameter contains the contents of the lineedit.
+ // TODO KDE4: Use KURL instead
+ @short Emitted when the user changed the URL via the file dialog.
+ */
+ void urlSelected(String arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KUniqueApplication.java b/kdejava/koala/org/kde/koala/KUniqueApplication.java
new file mode 100644
index 00000000..376b1328
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KUniqueApplication.java
@@ -0,0 +1,346 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.ArrayList;
+
+/**
+
+ Maintains only a single
+ instance of a running application at a time.
+ If another instance
+ is started, it will determine (via DCOP) whether it is the first instance
+ or a second instance. If it is a second instance, it will forward on
+ the information to the first instance and then quit.
+ The .desktop file for the application should state X-DCOP-ServiceType=Unique,
+ see kapplication.h
+ If your application is used to open files, it should also support the --tempfile
+ option (see KCmdLineArgs.addTempFileOption()), to delete tempfiles after use.
+ Add X-KDE-HasTempFileOption=true to the .desktop file to indicate this.
+ @author Preston Brown <pbrown@kde.org>
+
+ @short Maintains only a single instance of a running application at a time.
+ @see KApplication
+ @see DCOPObject
+
+*/
+public class KUniqueApplication extends KApplication implements DCOPObjectInterface {
+ protected KUniqueApplication(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor. Takes command line arguments from KCmdLineArgs
+ @param allowStyles Set to false to disable the loading on plugin based
+ styles. This is only useful to applications that do not display a GUI
+ normally. If you do create an application with <code>allowStyles</code> set to false
+ it normally runs in the background but under special circumstances
+ displays widgets. Call KApplication.enableStyles() before
+ displaying any widgets.
+ @param GUIenabled Set to false to disable all GUI stuff. This implies
+ no styles either.
+ @param configUnique If true, the uniqueness of the application will
+ depend on the value of the "MultipleInstances"
+ key in the "KDE" group of the application config file.
+ @short Constructor.
+ */
+ public KUniqueApplication(boolean allowStyles, boolean GUIenabled, boolean configUnique) {
+ super((Class) null);
+ newKUniqueApplication(allowStyles,GUIenabled,configUnique);
+ }
+ private native void newKUniqueApplication(boolean allowStyles, boolean GUIenabled, boolean configUnique);
+ public KUniqueApplication(boolean allowStyles, boolean GUIenabled) {
+ super((Class) null);
+ newKUniqueApplication(allowStyles,GUIenabled);
+ }
+ private native void newKUniqueApplication(boolean allowStyles, boolean GUIenabled);
+ public KUniqueApplication(boolean allowStyles) {
+ super((Class) null);
+ newKUniqueApplication(allowStyles);
+ }
+ private native void newKUniqueApplication(boolean allowStyles);
+ public KUniqueApplication() {
+ super((Class) null);
+ newKUniqueApplication();
+ }
+ private native void newKUniqueApplication();
+ /**
+ Dispatches any incoming DCOP message for a new instance.
+ If it is not a request for a new instance, return false.
+ Overloaded from DCOPObject to make sure that the application
+ stays unique.
+ @param fun DCOP function signature
+ @param data the data for the arguments
+ @param replyType the type of the reply value
+ @param replyData the reply
+ @short Dispatches any incoming DCOP message for a new instance.
+ @see DCOPObject
+ */
+ public native boolean process(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ Creates a new "instance" of the application.
+ Usually this will involve making some calls into the GUI portion of your
+ application asking for a new window to be created, possibly with
+ some data already loaded based on the arguments received.
+ Command line arguments have been passed to KCmdLineArgs before this
+ function is called and can be checked in the usual way.
+ The default implementation ensures the mainwindow of the already
+ running instance is shown and activated if necessary. You should
+ prefer using it from your overridden method instead of doing
+ it directly.
+ Note that newInstance() is called also in the first started
+ application process.
+ @return An exit value. The calling process will exit with this value.
+
+ @short Creates a new "instance" of the application.
+ */
+ public native int newInstance();
+ /**
+ Returns whether newInstance() is being called while session
+ restoration is in progress.
+ @short Returns whether newInstance() is being called while session restoration is in progress.
+ */
+ public native boolean restoringSession();
+ /**
+ Adds command line options specific for KUniqueApplication.
+ Should be called before calling KUniqueApplication constructor
+ and / or start().
+ @short Adds command line options specific for KUniqueApplication.
+ */
+ public static native void addCmdLineOptions();
+ /**
+ Forks and registers with dcop.
+ The command line arguments are being sent via DCOP to newInstance()
+ and will be received once the application enters the event loop.
+ Typically this is used like:
+ <pre>
+ int main(String[] args) {
+ KAboutData about("myappname", "myAppName", .....);
+ KCmdLineArgs.init(args, &about);
+ KCmdLineArgs.addCmdLineOptions( myCmdOptions );
+ KUniqueApplication.addCmdLineOptions();
+ if (!KUniqueApplication.start()) {
+ fprintf(stderr, "myAppName is already running!\n");
+ exit(0);
+ }
+ KUniqueApplication a;
+ a.exec();
+ }
+ </pre>
+ Note that it's not necessary to call start() explicitly. It will be
+ called automatically before creating KUniqueApplication if it hasn't
+ been called yet, without any performance impact.
+ @return true if registration is successful.
+ false if another process was already running.
+
+ @short Forks and registers with dcop.
+ */
+ public static native boolean start();
+ /**
+ @short
+ */
+ public static native void setHandleAutoStarted();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+ /**
+ Returns the object id of the DCOPObject.
+ @return the object's id
+
+ @short Returns the object id of the DCOPObject.
+ */
+ public native String objId();
+ /**
+ Renames a dcop object, if no other with the same name exists
+ Use with care, all dcop signals are disconnected
+ @param objId the new object id
+ @short Renames a dcop object, if no other with the same name exists Use with care, all dcop signals are disconnected
+ */
+ public native boolean setObjId(String objId);
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for process() but
+ you still want to dispatch some functions dynamically.
+ Dynamically means that methods may appear and vanish
+ during runtime.
+ @param fun is the normalized function signature.
+ Such a signature usually looks like
+ foobar(String,int). The return type,
+ qualifiers like "const" etc. are not part of
+ the signature.
+ @param data the received data
+ @param replyType write the reply type in this string
+ @param replyData write the reply data in this array
+ @return true if successful, false otherwise. The default implementation
+ returns always false.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for process() but you still want to dispatch some functions dynamically.
+ @see #process
+ @see DCOPClient#normalizeFunctionSignature
+ @see #functions
+ @see DCOPClient#process
+ */
+ public native boolean processDynamic(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for functions() but
+ you still want to list some functions dynamically.
+ Dynamically means that the methods may appear and vanish
+ during runtime.
+ @return A list of the additional functions, default is an empty list.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for functions() but you still want to list some functions dynamically.
+ @see #functions
+ */
+ public native ArrayList functionsDynamic();
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for interfaces() but
+ you still want to list some interfaces dynamically.
+ Dynamically means that they may appear and vanish
+ during runtime.
+ @return A list of the additional interfaces, default is an empty list.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for interfaces() but you still want to list some interfaces dynamically.
+ @see #interfaces
+ */
+ public native ArrayList interfacesDynamic();
+ /**
+ Returns the names of the interfaces, specific ones last. The
+ functions gets reimplemented by the IDL compiler. If you don't
+ use the IDL compiler, consider implementing this function
+ manually if you want your object to be easily explorable.
+ @return a list of interfaces
+
+ @short Returns the names of the interfaces, specific ones last.
+ @see #functions
+ */
+ public native ArrayList interfaces();
+ /**
+ Returns the list of functions understood by the object. It gets
+ reimplemented by the IDL compiler. If you don't use the IDL
+ compiler, consider implementing this function manually if you
+ want your object to be easily scriptable.
+ Rationale: functions() allows an interpreter to do client-side
+ type-casting properly.
+ Note to implementators: remember to call the baseclasses
+ implementation.
+ @return a list of functions
+
+ @short Returns the list of functions understood by the object.
+ @see #interfaces
+ @see #process
+ @see #processDynamic
+ @see DCOPClient#normalizeFunctionSignature
+ */
+ public native ArrayList functions();
+ /**
+ Emit <code>signal</code> as DCOP signal from this object with <code>data</code> as
+ arguments
+ @param signal the signal to emit
+ @param data the data to send
+ @short Emit <code>signal</code> as DCOP signal from this object with <code>data</code> as arguments
+ */
+ public native void emitDCOPSignal(String signal, byte[] data);
+ /**
+ Connects to a DCOP signal.
+ @param sender the name of the client that emits the signal. When empty
+ the signal will be passed from any client.
+ @param senderObj the name of the sending object that emits the signal.
+ @param signal the name of the signal. The arguments should match with slot.
+ @param slot The name of the slot to call. Its arguments should match with signal.
+ @param Volatile If true, the connection will not be reestablished when
+ <code>sender</code> unregisters and reregisters with DCOP. In this case the <code>sender</code>
+ must be registered when the connection is made.
+ If false, the connection will be reestablished when <code>sender</code> reregisters.
+ In this case the connection can be made even if <code>sender</code> is not registered
+ at that time.
+
+ <li>
+ <code>Volatile</code> is true and <code>sender</code> does not exist.
+ </li>
+
+ <li>
+ <code>signal</code> and <code>slot</code> do not have matching arguments.
+
+ </li> @return false if a connection could not be established.
+ This will be the case when
+
+ @short Connects to a DCOP signal.
+ */
+ public native boolean connectDCOPSignal(String sender, String senderObj, String signal, String slot, boolean Volatile);
+ /**
+ Disconnects a DCOP signal.
+ A special case is when both <code>sender</code> & <code>signal</code> are empty. In this
+ case all connections related to this object in the current client
+ are disconnected. (Both connections from as well as to this object!)
+ @param sender the name of the client that emits the signal.
+ @param senderObj the name of the object that emits the signal.
+ If empty all objects will be disconnected.
+ @param signal the name of the signal. The arguments should match with slot.
+ If empty all objects will be disconnected.
+ @param slot The name of the slot the signal is connected to.
+ If empty all slots will be disconnected.
+ @return false if no connection(s) where removed.
+
+ @short Disconnects a DCOP signal.
+ */
+ public native boolean disconnectDCOPSignal(String sender, String senderObj, String signal, String slot);
+ /**
+ Returns the DCOPClient responsible for making the call.
+ Only call this function while you are handling a DCOP call.
+ @return the DCOPClient responsible for making the call.
+ This information is only guaranteed to be correct when
+ entering your DCOP function.
+
+ @short Returns the DCOPClient responsible for making the call.
+ */
+ public native DCOPClient callingDcopClient();
+ /**
+ @short
+ */
+ public native void setCallingDcopClient(DCOPClient arg1);
+ /**
+ Checks whether an object with the given id is known in this process.
+ DCOPObjectProxy
+ @return true if an object with the questionable <code>objId</code> is
+ known in this process. This query does not ask proxies.
+
+ @short Checks whether an object with the given id is known in this process.
+ */
+ public static native boolean hasObject(String objId);
+ /**
+ Try to find a dcop object with the given id.
+ This function does not query the DCOPObjectProxy.
+ @param objId the object id to search
+ @return the DCOPObject for the id <code>objId.</code>
+
+ @short Try to find a dcop object with the given id.
+ */
+ public static native DCOPObjectInterface find(String objId);
+ /**
+ Tries to find an object using a partial object id.
+ This function is used for multicasting a DCOP message to
+ several objects inside a single process.
+ @param partialId the partial object id to search for
+ @return a list of DCOPObjects beginning with the string
+ contained in <code>partialId.</code>
+
+ @short Tries to find an object using a partial object id.
+ */
+ // QPtrList<DCOPObject> match(const QCString& arg1); >>>> NOT CONVERTED
+ /**
+ Creates an object id for the QObject <code>obj.</code> This is done
+ using the QObject.name() function.
+ @param obj the object whose name will be used
+ @return the created object id
+
+ @short Creates an object id for the QObject <code>obj.</code>
+ */
+ public static native String objectName(QObject arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KValueSelector.java b/kdejava/koala/org/kde/koala/KValueSelector.java
new file mode 100644
index 00000000..446f92e4
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KValueSelector.java
@@ -0,0 +1,89 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QPainter;
+import org.kde.qt.QWidget;
+import org.kde.qt.QResizeEvent;
+
+/**
+
+ Widget for color value selection.
+ @author Martin Jones (mjones@kde.org)
+
+ @short Widget for color value selection.
+ @see KHSSelector
+ @see KColorDialog
+
+*/
+public class KValueSelector extends KSelector {
+ protected KValueSelector(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a widget for color selection.
+ @short Constructs a widget for color selection.
+ */
+ public KValueSelector(QWidget parent, String name) {
+ super((Class) null);
+ newKValueSelector(parent,name);
+ }
+ private native void newKValueSelector(QWidget parent, String name);
+ public KValueSelector(QWidget parent) {
+ super((Class) null);
+ newKValueSelector(parent);
+ }
+ private native void newKValueSelector(QWidget parent);
+ public KValueSelector() {
+ super((Class) null);
+ newKValueSelector();
+ }
+ private native void newKValueSelector();
+ /**
+ Constructs a widget for color selection with a given orientation
+ @short Constructs a widget for color selection with a given orientation
+ */
+ public KValueSelector(int o, QWidget parent, String name) {
+ super((Class) null);
+ newKValueSelector(o,parent,name);
+ }
+ private native void newKValueSelector(int o, QWidget parent, String name);
+ public KValueSelector(int o, QWidget parent) {
+ super((Class) null);
+ newKValueSelector(o,parent);
+ }
+ private native void newKValueSelector(int o, QWidget parent);
+ public KValueSelector(int o) {
+ super((Class) null);
+ newKValueSelector(o);
+ }
+ private native void newKValueSelector(int o);
+ public native int hue();
+ public native void setHue(int h);
+ public native int saturation();
+ public native void setSaturation(int s);
+ public native void updateContents();
+ /**
+ Draws the contents of the widget on a pixmap,
+ which is used for buffering.
+ @short Draws the contents of the widget on a pixmap, which is used for buffering.
+ */
+ protected native void drawPalette(QPixmap pixmap);
+ protected native void resizeEvent(QResizeEvent arg1);
+ /**
+ Reimplemented from KSelector. The drawing is
+ buffered in a pixmap here. As real drawing
+ routine, drawPalette() is used.
+ @short Reimplemented from KSelector.
+ */
+ protected native void drawContents(QPainter painter);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KWidgetAction.java b/kdejava/koala/org/kde/koala/KWidgetAction.java
new file mode 100644
index 00000000..57da3925
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KWidgetAction.java
@@ -0,0 +1,58 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QWidget;
+
+/**
+
+ An action that automatically embeds a widget into a
+ toolbar.
+ @short An action that automatically embeds a widget into a toolbar.
+
+*/
+public class KWidgetAction extends KAction {
+ protected KWidgetAction(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create an action that will embed widget into a toolbar
+ when plugged. This action may only be plugged into
+ a toolbar.
+ @short Create an action that will embed widget into a toolbar when plugged.
+ */
+ public KWidgetAction(QWidget widget, String text, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name) {
+ super((Class) null);
+ newKWidgetAction(widget,text,cut,receiver,slot,parent,name);
+ }
+ private native void newKWidgetAction(QWidget widget, String text, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name);
+ /**
+ Returns the widget associated with this action.
+ @short Returns the widget associated with this action.
+ */
+ public native QWidget widget();
+ public native void setAutoSized(boolean arg1);
+ /**
+ Plug the action. The widget passed to the constructor
+ will be reparented to w, which must inherit KToolBar.
+ @short Plug the action.
+ */
+ public native int plug(QWidget widget, int index);
+ public native int plug(QWidget widget);
+ /**
+ Unplug the action. Ensures that the action is not
+ destroyed. It will be hidden and reparented to null instead.
+ @short Unplug the action.
+ */
+ public native void unplug(QWidget w);
+ protected native void slotToolbarDestroyed();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KWindowInfo.java b/kdejava/koala/org/kde/koala/KWindowInfo.java
new file mode 100644
index 00000000..a71d29f6
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KWindowInfo.java
@@ -0,0 +1,135 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ Displays messages in the window icon and title. The message is usually
+ transient with the original title and icon being restored automatically
+ after a specified time. The simplest use displays a text message in the
+ window title:
+ <pre>
+ KWindowInfo.showMessage( this, &quot;Message Body&quot; );
+ </pre>
+ This more complex example changes the window icon, as well as
+ displaying the text. In addition, this example overrides the
+ default timeout to ensure the message is only displayed for 1
+ second.
+ <pre>
+ QPixmap px;
+ px.load( &quot;lo16-app-logtracker.png&quot; );
+ KWindowInfo.showMessage( this, &quot;Message Body&quot;, px, 1000 );
+ </pre>
+ If the parent window inherits KSystemTray then KWindowInfo changes the
+ pixmap and tooltip of the system window to display the message.
+ @author Richard Moore, rich@kde.org
+
+ @short Displays messages in the window icon and title.
+
+*/
+public class KWindowInfo extends QObject {
+ protected KWindowInfo(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a KWindowInfo with the specified parent.
+ @short Creates a KWindowInfo with the specified parent.
+ */
+ public KWindowInfo(QWidget parent, String name) {
+ super((Class) null);
+ newKWindowInfo(parent,name);
+ }
+ private native void newKWindowInfo(QWidget parent, String name);
+ public KWindowInfo(QWidget parent) {
+ super((Class) null);
+ newKWindowInfo(parent);
+ }
+ private native void newKWindowInfo(QWidget parent);
+ /**
+ Returns true iff the object should delete itself when it resets.
+ @short Returns true iff the object should delete itself when it resets.
+ */
+ public native boolean autoDelete();
+ /**
+ Set to true if you want the object to delete itself when the message
+ timeout occurs.
+ @short Set to true if you want the object to delete itself when the message timeout occurs.
+ */
+ public native void setAutoDelete(boolean enable);
+ /**
+ Shows the specified text in the window title.
+ @short Shows the specified text in the window title.
+ */
+ public native void message(String text);
+ /**
+ Shows the specified text in the window title, and sets the window icon.
+ @short Shows the specified text in the window title, and sets the window icon.
+ */
+ public native void message(String text, QPixmap pix);
+ /**
+ Shows the specified text in the window title for the specified time.
+ @short Shows the specified text in the window title for the specified time.
+ */
+ public native void message(String text, int timeout);
+ /**
+ Shows the specified icon and text in the window title and WM
+ icon, for the specified time. The time is a delay specified in
+ milliseconds, or one of the two special values. The special
+ values are -1 which means the default timeout should be used,
+ and 0 which means the message is permanent.
+ @short Shows the specified icon and text in the window title and WM icon, for the specified time.
+ */
+ public native void message(String text, QPixmap pix, int timeout);
+ /**
+ Shows the specified text in the window title with no timeout.
+ @short Shows the specified text in the window title with no timeout.
+ */
+ public native void permanent(String text);
+ /**
+ Shows the specified text and icon in the window title with no timeout.
+ @short Shows the specified text and icon in the window title with no timeout.
+ */
+ public native void permanent(String text, QPixmap pix);
+ /**
+ Utility method to display a title bar message for the specified
+ window.
+ @short Utility method to display a title bar message for the specified window.
+ */
+ public static native void showMessage(QWidget window, String text, int timeout);
+ public static native void showMessage(QWidget window, String text);
+ /**
+ Utility method to display a title bar message and icon for the
+ specified window.
+ @short Utility method to display a title bar message and icon for the specified window.
+ */
+ public static native void showMessage(QWidget window, String text, QPixmap pix, int timeout);
+ public static native void showMessage(QWidget window, String text, QPixmap pix);
+ /**
+ Displays the message in the titlebar/icon.
+ @short Displays the message in the titlebar/icon.
+ */
+ protected native void display(String text, QPixmap pix);
+ /**
+ Saves the window title and icon.
+ @short Saves the window title and icon.
+ */
+ protected native void save();
+ /**
+ Resets the window title and icon to the saved values. If
+ auto-delete is enabled then the object is deleted.
+ @short Resets the window title and icon to the saved values.
+ */
+ protected native void restore();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KWizard.java b/kdejava/koala/org/kde/koala/KWizard.java
new file mode 100644
index 00000000..d8fd71b7
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KWizard.java
@@ -0,0 +1,67 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWizard;
+
+/**
+
+ General-purpose multi-page dialog.
+ KWizard is a class for a multi-page dialog. The user can navigate trough
+ the pages with "Next" and "Back" buttons and is optionally offered "Finish",
+ "Cancel" and "Help" buttons. A wizard comes in handy for tutorials or
+ configuration dialogs with sequential steps.
+ KWizard is just a wrapper for Qt's QWizard class. See the
+ QWizard documentation for a detailed description of available
+ functions. The only added functionality is a KDE conformant translation
+ mechanism for the built-in buttons.
+ @author Harri Porten <porten@kde.org>
+
+ @version 0.3
+
+ @short General-purpose multi-page dialog.
+
+*/
+public class KWizard extends QWizard {
+ protected KWizard(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor
+ @short Constructor
+ */
+ public KWizard(QWidget parent, String name, boolean modal, int f) {
+ super((Class) null);
+ newKWizard(parent,name,modal,f);
+ }
+ private native void newKWizard(QWidget parent, String name, boolean modal, int f);
+ public KWizard(QWidget parent, String name, boolean modal) {
+ super((Class) null);
+ newKWizard(parent,name,modal);
+ }
+ private native void newKWizard(QWidget parent, String name, boolean modal);
+ public KWizard(QWidget parent, String name) {
+ super((Class) null);
+ newKWizard(parent,name);
+ }
+ private native void newKWizard(QWidget parent, String name);
+ public KWizard(QWidget parent) {
+ super((Class) null);
+ newKWizard(parent);
+ }
+ private native void newKWizard(QWidget parent);
+ public KWizard() {
+ super((Class) null);
+ newKWizard();
+ }
+ private native void newKWizard();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KWordWrap.java b/kdejava/koala/org/kde/koala/KWordWrap.java
new file mode 100644
index 00000000..8ff87181
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KWordWrap.java
@@ -0,0 +1,132 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPainter;
+import org.kde.qt.QFontMetrics;
+
+/**
+
+ Word-wrap algorithm that takes into account beautifulness ;)
+ That means:
+
+ <li>
+ not letting a letter alone on the last line,
+ </li>
+
+ <li>
+ breaking at punctuation signs (not only at spaces)
+ </li>
+
+ <li>
+ improved handling of (), [] and {}
+ </li>
+
+ <li>
+ improved handling of '/' (e.g. for paths)
+ </li>
+ Usage: call the static method, formatText, with the text to
+ wrap and the constraining rectangle etc., it will return an instance of KWordWrap
+ containing internal data, result of the word-wrapping.
+ From that instance you can retrieve the boundingRect, and invoke drawing.
+ This design allows to call the word-wrap algorithm only when the text changes
+ and not every time we want to know the bounding rect or draw the text.
+ @author David Faure <faure@kde.org>
+
+ @short Word-wrap algorithm that takes into account beautifulness ;)
+
+*/
+public class KWordWrap implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KWordWrap(Class dummy){}
+
+ /**
+ Use this flag in drawText() if you want to fade out the text if it does
+ not fit into the constraining rectangle.
+ @short Use this flag in drawText() if you want to fade out the text if it does not fit into the constraining rectangle.
+ */
+ public static final int FadeOut = 0x10000000;
+ public static final int Truncate = 0x20000000;
+
+ /**
+ @return the bounding rect, calculated by formatText. The width is the
+ width of the widest text line, and never wider than
+ the rectangle given to formatText. The height is the
+ text block. X and Y are always 0.
+
+ @short
+ */
+ public native QRect boundingRect();
+ /**
+ @return the original string, with '\n' inserted where
+ the text is broken by the wordwrap algorithm.
+
+ @short
+ */
+ public native String wrappedString();
+ /**
+ @return the original string, truncated to the first line.
+ If <code>dots</code> was set, '...' is appended in case the string was truncated.
+ Bug: Note that the '...' come out of the bounding rect.
+
+ @short
+ */
+ public native String truncatedString(boolean dots);
+ public native String truncatedString();
+ /**
+ Draw the text that has been previously wrapped, at position x,y.
+ Flags are for alignment, e.g. Qt.AlignHCenter. Default is
+ Qt.AlignAuto.
+ @param painter the QPainter to use.
+ @param x the horizontal position of the text
+ @param y the vertical position of the text
+ @param flags the ORed text alignment flags from the Qt namespace,
+ ORed with FadeOut if you want the text to fade out if it
+ does not fit (the <code>painter</code>'s background must be set
+ accordingly)
+ @short Draw the text that has been previously wrapped, at position x,y.
+ */
+ public native void drawText(QPainter painter, int x, int y, int flags);
+ public native void drawText(QPainter painter, int x, int y);
+ /**
+ Main method for wrapping text.
+ @param fm Font metrics, for the chosen font. Better cache it, creating a QFontMetrics is expensive.
+ @param r Constraining rectangle. Only the width and height matter. With
+ negative height the complete text will be rendered
+ @param flags currently unused
+ @param str The text to be wrapped.
+ @param len Length of text to wrap (default is -1 for all).
+ @return a KWordWrap instance. The caller is responsible for storing and deleting the result.
+
+ @short Main method for wrapping text.
+ */
+ public static native KWordWrap formatText(QFontMetrics fm, QRect r, int flags, String str, int len);
+ public static native KWordWrap formatText(QFontMetrics fm, QRect r, int flags, String str);
+ /**
+ Draws the string <code>t</code> at the given coordinates, if it does not
+ <code>fit</code> into <code>maxW</code> the text will be faded out.
+ @param p the painter to use. Must have set the pen for the text
+ color and the background for the color to fade out
+ @param x the horizontal position of the text
+ @param y the vertical position of the text
+ @param maxW the maximum width of the text (including the fade-out
+ effect)
+ @param t the text to draw
+ @short Draws the string <code>t</code> at the given coordinates, if it does not <code>fit</code> into <code>maxW</code> the text will be faded out.
+ */
+ public static native void drawFadeoutText(QPainter p, int x, int y, int maxW, String t);
+ /**
+ Draws the string <code>t</code> at the given coordinates, if it does not
+ <code>fit</code> into <code>maxW</code> the text will be truncated.
+ @param p the painter to use
+ @param x the horizontal position of the text
+ @param y the vertical position of the text
+ @param maxW the maximum width of the text (including the '...')
+ @param t the text to draw
+ @short Draws the string <code>t</code> at the given coordinates, if it does not <code>fit</code> into <code>maxW</code> the text will be truncated.
+ */
+ public static native void drawTruncateText(QPainter p, int x, int y, int maxW, String t);
+}
diff --git a/kdejava/koala/org/kde/koala/KWritePermsIcon.java b/kdejava/koala/org/kde/koala/KWritePermsIcon.java
new file mode 100644
index 00000000..442e15d5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KWritePermsIcon.java
@@ -0,0 +1,61 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ Auth icon for write permission display.
+ @author Preston Brown <pbrown@kde.org>
+
+ @short Auth icon for write permission display.
+ @see KAuthIcon
+
+*/
+public class KWritePermsIcon extends KAuthIcon {
+ protected KWritePermsIcon(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public KWritePermsIcon(String fileName, QWidget parent, String name) {
+ super((Class) null);
+ newKWritePermsIcon(fileName,parent,name);
+ }
+ private native void newKWritePermsIcon(String fileName, QWidget parent, String name);
+ public KWritePermsIcon(String fileName, QWidget parent) {
+ super((Class) null);
+ newKWritePermsIcon(fileName,parent);
+ }
+ private native void newKWritePermsIcon(String fileName, QWidget parent);
+ public KWritePermsIcon(String fileName) {
+ super((Class) null);
+ newKWritePermsIcon(fileName);
+ }
+ private native void newKWritePermsIcon(String fileName);
+ /**
+ @return whether or not the monitored file is writable.
+
+ @short
+ */
+ public native boolean status();
+ /**
+ make the icon watch a new filename.
+ @param fileName the new file to monitor / display status for.
+ @short make the icon watch a new filename.
+ */
+ public native void setFileName(String fileName);
+ /**
+ return the filename of the currently watched file.
+ @short return the filename of the currently watched file.
+ */
+ public native String fileName();
+ public native void updateStatus();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KXMLGUI.java b/kdejava/koala/org/kde/koala/KXMLGUI.java
new file mode 100644
index 00000000..315b1443
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KXMLGUI.java
@@ -0,0 +1,10 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+*/
+public class KXMLGUI {
+}
diff --git a/kdejava/koala/org/kde/koala/KXMLGUIBuilder.java b/kdejava/koala/org/kde/koala/KXMLGUIBuilder.java
new file mode 100644
index 00000000..9726321f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KXMLGUIBuilder.java
@@ -0,0 +1,63 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDomElement;
+
+/**
+
+ Abstract interface for a "GUI builder", used by the GUIFactory
+ This interface is implemented by KMainWindow for the case where
+ the toplevel widget is a KMainWindow. Other implementations may appear
+ in the future (dialogs for instance)
+ @short Abstract interface for a "GUI builder", used by the GUIFactory This interface is implemented by KMainWindow for the case where the toplevel widget is a KMainWindow.
+
+*/
+public class KXMLGUIBuilder implements QtSupport, KXMLGUIBuilderInterface {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KXMLGUIBuilder(Class dummy){}
+
+ public KXMLGUIBuilder(QWidget widget) {
+ newKXMLGUIBuilder(widget);
+ }
+ private native void newKXMLGUIBuilder(QWidget widget);
+ public native KXMLGUIClientInterface builderClient();
+ public native void setBuilderClient(KXMLGUIClientInterface client);
+ public native KInstanceInterface builderInstance();
+ public native void setBuilderInstance(KInstanceInterface instance);
+ public native QWidget widget();
+ public native ArrayList containerTags();
+ /**
+ Creates a container (menubar/menu/toolbar/statusbar/separator/...)
+ from an element in the XML file
+ @param parent The parent for the container
+ @param index The index where the container should be inserted
+ into the parent container/widget
+ @param element The element from the DOM tree describing the
+ container (use it to access container specified
+ attributes or child elements)
+ @param id The id to be used for this container
+ @short Creates a container (menubar/menu/toolbar/statusbar/separator/.
+ */
+ public native QWidget createContainer(QWidget parent, int index, QDomElement element, int[] id);
+ /**
+ Removes the given (and previously via createContainer )
+ created container.
+ @short Removes the given (and previously via createContainer ) created container.
+ */
+ public native void removeContainer(QWidget container, QWidget parent, QDomElement element, int id);
+ public native ArrayList customTags();
+ public native int createCustomElement(QWidget parent, int index, QDomElement element);
+ public native void removeCustomElement(QWidget parent, int id);
+ public native void finalizeGUI(KXMLGUIClientInterface client);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KXMLGUIBuilderInterface.java b/kdejava/koala/org/kde/koala/KXMLGUIBuilderInterface.java
new file mode 100644
index 00000000..18dbdb7a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KXMLGUIBuilderInterface.java
@@ -0,0 +1,22 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDomElement;
+
+public interface KXMLGUIBuilderInterface {
+ KXMLGUIClientInterface builderClient();
+ void setBuilderClient(KXMLGUIClientInterface client);
+ KInstanceInterface builderInstance();
+ void setBuilderInstance(KInstanceInterface instance);
+ QWidget widget();
+ ArrayList containerTags();
+ QWidget createContainer(QWidget parent, int index, QDomElement element, int[] id);
+ void removeContainer(QWidget container, QWidget parent, QDomElement element, int id);
+ ArrayList customTags();
+ int createCustomElement(QWidget parent, int index, QDomElement element);
+ void removeCustomElement(QWidget parent, int id);
+ void finalizeGUI(KXMLGUIClientInterface client);
+}
diff --git a/kdejava/koala/org/kde/koala/KXMLGUIClient.java b/kdejava/koala/org/kde/koala/KXMLGUIClient.java
new file mode 100644
index 00000000..fd5b809b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KXMLGUIClient.java
@@ -0,0 +1,290 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QDomDocument;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDomElement;
+
+/**
+
+ A KXMLGUIClient can be used with KXMLGUIFactory to create a
+ GUI from actions and an XML document, and can be dynamically merged
+ with other KXMLGUIClients.
+ @short
+
+*/
+public class KXMLGUIClient implements QtSupport, KXMLGUIClientInterface {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KXMLGUIClient(Class dummy){}
+
+ public static final int StateNoReverse = 0;
+ public static final int StateReverse = 1;
+
+ /**
+ Constructs a KXMLGUIClient which can be used with a
+ KXMLGUIFactory to create a GUI from actions and an XML document, and
+ which can be dynamically merged with other KXMLGUIClients.
+ @short Constructs a KXMLGUIClient which can be used with a KXMLGUIFactory to create a GUI from actions and an XML document, and which can be dynamically merged with other KXMLGUIClients.
+ */
+ public KXMLGUIClient() {
+ newKXMLGUIClient();
+ }
+ private native void newKXMLGUIClient();
+ /**
+ Constructs a KXMLGUIClient which can be used with a KXMLGUIFactory
+ to create a GUI from actions and an XML document,
+ and which can be dynamically merged with other KXMLGUIClients.
+ This constructor takes an additional <code>parent</code> argument, which makes
+ the client a child client of the parent.
+ Child clients are automatically added to the GUI if the parent is added.
+ @short Constructs a KXMLGUIClient which can be used with a KXMLGUIFactory to create a GUI from actions and an XML document, and which can be dynamically merged with other KXMLGUIClients.
+ */
+ public KXMLGUIClient(KXMLGUIClientInterface parent) {
+ newKXMLGUIClient(parent);
+ }
+ private native void newKXMLGUIClient(KXMLGUIClientInterface parent);
+ /**
+ Retrieves an action of the client by name. If not found, it looks in its child clients.
+ This method is provided for convenience, as it uses actionCollection()
+ to get the action object.
+ @short Retrieves an action of the client by name.
+ */
+ public native KAction action(String name);
+ /**
+ Retrieves an action for a given QDomElement. The default
+ implementation uses the "name" attribute to query the action
+ object via the other action() method.
+ @short Retrieves an action for a given QDomElement.
+ */
+ public native KAction action(QDomElement element);
+ /**
+ Retrieves the entire action collection for the GUI client. If
+ you subclass KXMLGUIClient you should call
+ KActionCollection.setWidget( QWidget ) with this object, or
+ you will encounter subtle bugs with KAction keyboard shortcuts.
+ This is not necessary if your KXMLGUIClient is a KMainWindow.
+ @short Retrieves the entire action collection for the GUI client.
+ @see KActionCollection#setWidget(
+ @see #org#kde#qt#QWidget*
+ */
+ public native KActionCollection actionCollection();
+ /**
+ @return The instance ( KInstance ) for this GUI client.
+
+ @short
+ */
+ public native KInstanceInterface instance();
+ /**
+ @return The parsed XML in a QDomDocument, set by
+ setXMLFile() or setXML().
+ This document describes the layout of the GUI.
+
+ @short
+ */
+ public native QDomDocument domDocument();
+ /**
+ This will return the name of the XML file as set by setXMLFile().
+ If setXML() is used directly, then this will return NULL.
+ The filename that this returns is obvious for components as each
+ component has exactly one XML file. In non-components, however,
+ there are usually two: the global file and the local file. This
+ function doesn't really care about that, though. It will always
+ return the last XML file set. This, in almost all cases, will
+ be the local XML file.
+ @return The name of the XML file or null
+
+ @short This will return the name of the XML file as set by setXMLFile().
+ */
+ public native String xmlFile();
+ public native String localXMLFile();
+ /**
+ @short
+ */
+ public native void setXMLGUIBuildDocument(QDomDocument doc);
+ /**
+ @short
+ */
+ public native QDomDocument xmlguiBuildDocument();
+ /**
+ This method is called by the KXMLGUIFactory as soon as the client
+ is added to the KXMLGUIFactory's GUI.
+ @short This method is called by the KXMLGUIFactory as soon as the client is added to the KXMLGUIFactory's GUI.
+ */
+ public native void setFactory(KXMLGUIFactory factory);
+ /**
+ Retrieves a pointer to the KXMLGUIFactory this client is
+ associated with (will return null if the client's GUI has not been built
+ by a KXMLGUIFactory.
+ @short Retrieves a pointer to the KXMLGUIFactory this client is associated with (will return 0L if the client's GUI has not been built by a KXMLGUIFactory.
+ */
+ public native KXMLGUIFactory factory();
+ /**
+ KXMLGUIClients can form a simple child/parent object tree. This
+ method returns a pointer to the parent client or null if it has no
+ parent client assigned.
+ @short KXMLGUIClients can form a simple child/parent object tree.
+ */
+ public native KXMLGUIClientInterface parentClient();
+ /**
+ Use this method to make a client a child client of another client.
+ Usually you don't need to call this method, as it is called
+ automatically when using the second constructor, which takes a
+ parent argument.
+ @short Use this method to make a client a child client of another client.
+ */
+ public native void insertChildClient(KXMLGUIClientInterface child);
+ /**
+ Removes the given <code>child</code> from the client's children list.
+ @short Removes the given <code>child</code> from the client's children list.
+ */
+ public native void removeChildClient(KXMLGUIClientInterface child);
+ /**
+ Retrieves a list of all child clients.
+ @short Retrieves a list of all child clients.
+ */
+ // const QPtrList<KXMLGUIClient>* childClients(); >>>> NOT CONVERTED
+ /**
+ A client can have an own KXMLGUIBuilder.
+ Use this method to assign your builder instance to the client (so that the
+ KXMLGUIFactory can use it when building the client's GUI)
+ Client specific guibuilders are useful if you want to create
+ custom container widgets for your GUI.
+ @short A client can have an own KXMLGUIBuilder.
+ */
+ public native void setClientBuilder(KXMLGUIBuilderInterface builder);
+ /**
+ Retrieves the client's GUI builder or null if no client specific
+ builder has been assigned via setClientBuilder()
+ @short Retrieves the client's GUI builder or 0L if no client specific builder has been assigned via setClientBuilder()
+ */
+ public native KXMLGUIBuilderInterface clientBuilder();
+ /**
+ Forces this client to re-read its XML resource file. This is
+ intended to be used when you know that the resource file has
+ changed and you will soon be rebuilding the GUI. It has no
+ useful effect with non-KParts GUIs, so don't bother using it
+ unless your app is component based.
+ @short Forces this client to re-read its XML resource file.
+ */
+ public native void reloadXML();
+ /**
+ ActionLists are a way for XMLGUI to support dynamic lists of
+ actions. E.g. if you are writing a file manager, and there is a
+ menu file whose contents depend on the mimetype of the file that
+ is selected, then you can achieve this using ActionLists. It
+ works as follows:
+ In your xxxui.rc file ( the one that you set in setXMLFile()
+ ), you put an <p>\<ActionList name="xxx"\></p> tag. E.g.
+ <pre>
+ <kpartgui name="xxx_part" version="1">
+ <MenuBar>
+ <Menu name="file">
+ ... <!-- some useful actions-.
+ <ActionList name="xxx_file_actionlist" />
+ ... <!-- even more useful actions-.
+ </Menu>
+ ...
+ </MenuBar>
+ </kpartgui>
+ </pre>
+ This tag will get expanded to a list of actions. In the example
+ above ( a file manager with a dynamic file menu ), you would call
+ <pre>
+ QPtrList<KAction> file_actions;
+ for( ... )
+ if( ... )
+ file_actions.append( cool_action );
+ unplugActionList( "xxx_file_actionlist" );
+ plugActionList( "xxx_file_actionlist", file_actions );
+ </pre>
+ every time a file is selected, unselected or ...
+ <b>Note:<> You should not call createGUI() after calling this
+ function. In fact, that would remove the newly added
+ actionlists again...
+ <b>Note:<> Forgetting to call unplugActionList() before
+ plugActionList() would leave the previous actions in the
+ menu too..
+ @short ActionLists are a way for XMLGUI to support dynamic lists of actions.
+ */
+ // void plugActionList(const QString& arg1,const QPtrList<KAction>& arg2); >>>> NOT CONVERTED
+ /**
+ The complement of plugActionList() ...
+ @short The complement of plugActionList() .
+ */
+ public native void unplugActionList(String name);
+ public native void addStateActionEnabled(String state, String action);
+ public native void addStateActionDisabled(String state, String action);
+ // KXMLGUIClient::StateChange getActionsToChangeForState(const QString& arg1); >>>> NOT CONVERTED
+ public native void beginXMLPlug(QWidget arg1);
+ public native void endXMLPlug();
+ public native void prepareXMLUnplug(QWidget arg1);
+ public static native String findMostRecentXMLFile(String[] files, StringBuffer doc);
+ /**
+ Sets the instance ( KInstance) for this part.
+ Call this first in the inherited class constructor.
+ (At least before setXMLFile().)
+ @short Sets the instance ( KInstance) for this part.
+ */
+ protected native void setInstance(KInstanceInterface instance);
+ /**
+ Sets the name of the rc file containing the XML for the part.
+ Call this in the Part-inherited class constructor.
+ @param file Either an absolute path for the file, or simply the
+ filename, which will then be assumed to be installed
+ in the "data" resource, under a directory named like
+ the instance.
+ @param merge Whether to merge with the global document.
+ @param setXMLDoc Specify whether to call setXML. Default is true.
+ and the DOM document at once.
+ @short Sets the name of the rc file containing the XML for the part.
+ */
+ protected native void setXMLFile(String file, boolean merge, boolean setXMLDoc);
+ protected native void setXMLFile(String file, boolean merge);
+ protected native void setXMLFile(String file);
+ protected native void setLocalXMLFile(String file);
+ /**
+ Sets the XML for the part.
+ Call this in the Part-inherited class constructor if you
+ don't call setXMLFile().
+ @short Sets the XML for the part.
+ */
+ protected native void setXML(String document, boolean merge);
+ protected native void setXML(String document);
+ /**
+ Sets the Document for the part, describing the layout of the GUI.
+ Call this in the Part-inherited class constructor if you don't call
+ setXMLFile or setXML .
+ @short Sets the Document for the part, describing the layout of the GUI.
+ */
+ protected native void setDOMDocument(QDomDocument document, boolean merge);
+ protected native void setDOMDocument(QDomDocument document);
+ /**
+ This function will attempt to give up some memory after the GUI
+ is built. It should never be used in apps where the GUI may be
+ rebuilt at some later time (components, for instance).
+ @short This function will attempt to give up some memory after the GUI is built.
+ */
+ protected native void conserveMemory();
+ /**
+ Actions can collectively be assigned a "State". To accomplish this
+ the respective actions are tagged as \<enable\> or \<disable\> in
+ a \<State\> \</State\> group of the XMLfile. During program execution the
+ programmer can call stateChanged() to set actions to a defined state.
+ @param newstate Name of a State in the XMLfile.
+ @param reverse If the flag reverse is set to StateReverse, the State is reversed.
+ (actions to be enabled will be disabled and action to be disabled will be enabled)
+ Default is reverse=false.
+ @short Actions can collectively be assigned a "State".
+ */
+ protected native void stateChanged(String newstate, int reverse);
+ protected native void stateChanged(String newstate);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KXMLGUIClientInterface.java b/kdejava/koala/org/kde/koala/KXMLGUIClientInterface.java
new file mode 100644
index 00000000..1040e756
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KXMLGUIClientInterface.java
@@ -0,0 +1,33 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QDomDocument;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDomElement;
+
+public interface KXMLGUIClientInterface {
+ KAction action(String name);
+ KAction action(QDomElement element);
+ KActionCollection actionCollection();
+ KInstanceInterface instance();
+ QDomDocument domDocument();
+ String xmlFile();
+ String localXMLFile();
+ void setXMLGUIBuildDocument(QDomDocument doc);
+ QDomDocument xmlguiBuildDocument();
+ void setFactory(KXMLGUIFactory factory);
+ KXMLGUIFactory factory();
+ KXMLGUIClientInterface parentClient();
+ void insertChildClient(KXMLGUIClientInterface child);
+ void removeChildClient(KXMLGUIClientInterface child);
+ void setClientBuilder(KXMLGUIBuilderInterface builder);
+ KXMLGUIBuilderInterface clientBuilder();
+ void reloadXML();
+ void unplugActionList(String name);
+ void addStateActionEnabled(String state, String action);
+ void addStateActionDisabled(String state, String action);
+ void beginXMLPlug(QWidget arg1);
+ void endXMLPlug();
+ void prepareXMLUnplug(QWidget arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/KXMLGUIFactory.java b/kdejava/koala/org/kde/koala/KXMLGUIFactory.java
new file mode 100644
index 00000000..13a92f01
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KXMLGUIFactory.java
@@ -0,0 +1,171 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QDomDocument;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QDomNode;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDomElement;
+import org.kde.qt.QObject;
+
+/**
+
+ KXMLGUIFactory, together with KXMLGUIClient objects, can be used to create
+ a GUI of container widgets (like menus, toolbars, etc.) and container items
+ (menu items, toolbar buttons, etc.) from an XML document and action objects.
+ Each KXMLGUIClient represents a part of the GUI, composed from containers and
+ actions. KXMLGUIFactory takes care of building (with the help of a KXMLGUIBuilder)
+ and merging the GUI from an unlimited number of clients.
+ Each client provides XML through a QDomDocument and actions through a
+ KActionCollection . The XML document contains the rules for how to merge the
+ GUI.
+ KXMLGUIFactory processes the DOM tree provided by a client and plugs in the client's actions,
+ according to the XML and the merging rules of previously inserted clients. Container widgets
+ are built via a KXMLGUIBuilder , which has to be provided with the KXMLGUIFactory constructor.
+ See {@link KXMLGUIFactorySignals} for signals emitted by KXMLGUIFactory
+ @short KXMLGUIFactory, together with KXMLGUIClient objects, can be used to create a GUI of container widgets (like menus, toolbars, etc.
+
+*/
+public class KXMLGUIFactory extends QObject {
+ protected KXMLGUIFactory(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a KXMLGUIFactory. The provided <code>builder</code> KXMLGUIBuilder will be called
+ for creating and removing container widgets, when clients are added/removed from the GUI.
+ Note that the ownership of the given KXMLGUIBuilder object won't be transferred to this
+ KXMLGUIFactory, so you have to take care of deleting it properly.
+ @short Constructs a KXMLGUIFactory.
+ */
+ public KXMLGUIFactory(KXMLGUIBuilderInterface builder, QObject parent, String name) {
+ super((Class) null);
+ newKXMLGUIFactory(builder,parent,name);
+ }
+ private native void newKXMLGUIFactory(KXMLGUIBuilderInterface builder, QObject parent, String name);
+ public KXMLGUIFactory(KXMLGUIBuilderInterface builder, QObject parent) {
+ super((Class) null);
+ newKXMLGUIFactory(builder,parent);
+ }
+ private native void newKXMLGUIFactory(KXMLGUIBuilderInterface builder, QObject parent);
+ public KXMLGUIFactory(KXMLGUIBuilderInterface builder) {
+ super((Class) null);
+ newKXMLGUIFactory(builder);
+ }
+ private native void newKXMLGUIFactory(KXMLGUIBuilderInterface builder);
+ /**
+ Creates the GUI described by the QDomDocument of the client,
+ using the client's actions, and merges it with the previously
+ created GUI.
+ This also means that the order in which clients are added to the factory
+ is relevant; assuming that your application supports plugins, you should
+ first add your application to the factory and then the plugin, so that the
+ plugin's UI is merged into the UI of your application, and not the other
+ way round.
+ @short Creates the GUI described by the QDomDocument of the client, using the client's actions, and merges it with the previously created GUI.
+ */
+ public native void addClient(KXMLGUIClientInterface client);
+ /**
+ Removes the GUI described by the client, by unplugging all
+ provided actions and removing all owned containers (and storing
+ container state information in the given client)
+ @short Removes the GUI described by the client, by unplugging all provided actions and removing all owned containers (and storing container state information in the given client)
+ */
+ public native void removeClient(KXMLGUIClientInterface client);
+ // void plugActionList(KXMLGUIClient* arg1,const QString& arg2,const QPtrList<KAction>& arg3); >>>> NOT CONVERTED
+ public native void unplugActionList(KXMLGUIClientInterface client, String name);
+ /**
+ Returns a list of all clients currently added to this factory
+ @short Returns a list of all clients currently added to this factory
+ */
+ // QPtrList<KXMLGUIClient> clients(); >>>> NOT CONVERTED
+ /**
+ Use this method to get access to a container widget with the name specified with <code>containerName</code>
+ and which is owned by the <code>client.</code> The container name is specified with a "name" attribute in the
+ XML document.
+ This function is particularly useful for getting hold of a popupmenu defined in an XMLUI file.
+ For instance:
+ <pre>
+ QPopupMenu popup = (QPopupMenu)(factory().container("my_popup",this));
+ </pre>
+ where <code></code>"my_popup" is the name of the menu in the XMLUI file, and
+ <code></code>"this" is XMLGUIClient which owns the popupmenu (e.g. the mainwindow, or the part, or the plugin...)
+ @param containerName Name of the container widget
+ @param client Owner of the container widget
+ @param useTagName Specifies whether to compare the specified name with the name attribute or
+ the tag name.
+ This method may return null if no container with the given name exists or is not owned by the client.
+ @short Use this method to get access to a container widget with the name specified with <code>containerName</code> and which is owned by the <code>client.</code>
+ */
+ public native QWidget container(String containerName, KXMLGUIClientInterface client, boolean useTagName);
+ public native QWidget container(String containerName, KXMLGUIClientInterface client);
+ // QPtrList<QWidget> containers(const QString& arg1); >>>> NOT CONVERTED
+ /**
+ Use this method to free all memory allocated by the KXMLGUIFactory. This deletes the internal node
+ tree and therefore resets the internal state of the class. Please note that the actual GUI is
+ NOT touched at all, meaning no containers are deleted nor any actions unplugged. That is
+ something you have to do on your own. So use this method only if you know what you are doing :-)
+ (also note that this will call KXMLGUIClient.setFactory( null ) for all inserted clients)
+ @short Use this method to free all memory allocated by the KXMLGUIFactory.
+ */
+ public native void reset();
+ /**
+ Use this method to free all memory allocated by the KXMLGUIFactory for a specific container,
+ including all child containers and actions. This deletes the internal node subtree for the
+ specified container. The actual GUI is not touched, no containers are deleted or any actions
+ unplugged. Use this method only if you know what you are doing :-)
+ (also note that this will call KXMLGUIClient.setFactory( null ) for all clients of the
+ container)
+ @short Use this method to free all memory allocated by the KXMLGUIFactory for a specific container, including all child containers and actions.
+ */
+ public native void resetContainer(String containerName, boolean useTagName);
+ public native void resetContainer(String containerName);
+ /**
+ Show a standard configure shortcut for every action in this factory.
+ This slot can be connected dirrectly to the action to configure shortcuts. This is very simple to
+ do that by adding a single line
+ <pre>
+ KStdAction.keyBindings( guiFactory(), SLOT("configureShortcuts()"), actionCollection() );
+ </pre>
+ @param bAllowLetterShortcuts Set to false if unmodified alphanumeric
+ keys ('A', '1', etc.) are not permissible shortcuts.
+ @param bSaveSettings if true, the settings will also be saved back to
+ the uirc file which they were intially read from.
+ @short Show a standard configure shortcut for every action in this factory.
+ */
+ public native int configureShortcuts(boolean bAllowLetterShortcuts, boolean bSaveSettings);
+ public native int configureShortcuts(boolean bAllowLetterShortcuts);
+ public native int configureShortcuts();
+ public static native String readConfigFile(String filename, boolean never_null, KInstanceInterface instance);
+ public static native String readConfigFile(String filename, boolean never_null);
+ public static native String readConfigFile(String filename, KInstanceInterface instance);
+ public static native String readConfigFile(String filename);
+ public static native boolean saveConfigFile(QDomDocument doc, String filename, KInstanceInterface instance);
+ public static native boolean saveConfigFile(QDomDocument doc, String filename);
+ public static native String documentToXML(QDomDocument doc);
+ public static native String elementToXML(QDomElement elem);
+ /**
+ Removes all QDomComment objects from the specified node and all its children.
+ @short Removes all QDomComment objects from the specified node and all its children.
+ */
+ public static native void removeDOMComments(QDomNode node);
+ /**
+ Find or create the ActionProperties element, used when saving custom action properties
+ @short
+ */
+ public static native QDomElement actionPropertiesElement(QDomDocument doc);
+ /**
+ Find or create the element for a given action, by name.
+ Used when saving custom action properties
+ @short
+ */
+ public static native QDomElement findActionByName(QDomElement elem, String sName, boolean create);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KXMLGUIFactorySignals.java b/kdejava/koala/org/kde/koala/KXMLGUIFactorySignals.java
new file mode 100644
index 00000000..6f16d014
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KXMLGUIFactorySignals.java
@@ -0,0 +1,15 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QDomDocument;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QDomNode;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDomElement;
+
+public interface KXMLGUIFactorySignals {
+ void clientAdded(KXMLGUIClientInterface client);
+ void clientRemoved(KXMLGUIClientInterface client);
+}
diff --git a/kdejava/koala/org/kde/koala/KXYSelector.java b/kdejava/koala/org/kde/koala/KXYSelector.java
new file mode 100644
index 00000000..99fc976b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KXYSelector.java
@@ -0,0 +1,124 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QPainter;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWheelEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ KXYSelector is the base class for other widgets which
+ provides the ability to choose from a two-dimensional
+ range of values. The currently chosen value is indicated
+ by a cross. An example is the KHSSelector which
+ allows to choose from a range of colors, and which is
+ used in KColorDialog.
+ A custom drawing routine for the widget surface has
+ to be provided by the subclass.
+ See {@link KXYSelectorSignals} for signals emitted by KXYSelector
+ @short KXYSelector is the base class for other widgets which provides the ability to choose from a two-dimensional range of values.
+
+*/
+public class KXYSelector extends QWidget {
+ protected KXYSelector(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a two-dimensional selector widget which
+ has a value range of [0..100] in both directions.
+ @short Constructs a two-dimensional selector widget which has a value range of [0.
+ */
+ public KXYSelector(QWidget parent, String name) {
+ super((Class) null);
+ newKXYSelector(parent,name);
+ }
+ private native void newKXYSelector(QWidget parent, String name);
+ public KXYSelector(QWidget parent) {
+ super((Class) null);
+ newKXYSelector(parent);
+ }
+ private native void newKXYSelector(QWidget parent);
+ public KXYSelector() {
+ super((Class) null);
+ newKXYSelector();
+ }
+ private native void newKXYSelector();
+ /**
+ Sets the current values in horizontal and
+ vertical direction.
+ @param xPos the horizontal value
+ @param yPos the veritcal value
+ @short Sets the current values in horizontal and vertical direction.
+ */
+ public native void setValues(int xPos, int yPos);
+ /**
+ Sets the current horizontal value
+ @param xPos the horizontal value
+ @short Sets the current horizontal value
+ */
+ public native void setXValue(int xPos);
+ /**
+ Sets the current vertical value
+ @param yPos the veritcal value
+ @short Sets the current vertical value
+ */
+ public native void setYValue(int yPos);
+ /**
+ Sets the range of possible values.
+ @short Sets the range of possible values.
+ */
+ public native void setRange(int minX, int minY, int maxX, int maxY);
+ /**
+ @return the current value in horizontal direction.
+
+ @short
+ */
+ public native int xValue();
+ /**
+ @return the current value in vertical direction.
+
+ @short
+ */
+ public native int yValue();
+ /**
+ @return the rectangle on which subclasses should draw.
+
+ @short
+ */
+ public native QRect contentsRect();
+ /**
+ Override this function to draw the contents of the widget.
+ The default implementation does nothing.
+ Draw within contentsRect() only.
+ @short Override this function to draw the contents of the widget.
+ */
+ protected native void drawContents(QPainter arg1);
+ /**
+ Override this function to draw the cursor which
+ indicates the currently selected value pair.
+ @short Override this function to draw the cursor which indicates the currently selected value pair.
+ */
+ protected native void drawCursor(QPainter p, int xp, int yp);
+ protected native void paintEvent(QPaintEvent e);
+ protected native void mousePressEvent(QMouseEvent e);
+ protected native void mouseMoveEvent(QMouseEvent e);
+ protected native void wheelEvent(QWheelEvent arg1);
+ /**
+ Converts a pixel position to its corresponding values.
+ @short Converts a pixel position to its corresponding values.
+ */
+ protected native void valuesFromPosition(int x, int y, int[] xVal, int[] yVal);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KXYSelectorSignals.java b/kdejava/koala/org/kde/koala/KXYSelectorSignals.java
new file mode 100644
index 00000000..4bcc7d8a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KXYSelectorSignals.java
@@ -0,0 +1,20 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QRect;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPaintEvent;
+import org.kde.qt.QPainter;
+import org.kde.qt.QMouseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWheelEvent;
+
+public interface KXYSelectorSignals {
+ /**
+ This signal is emitted whenever the user chooses a value,
+ e.g. by clicking with the mouse on the widget.
+ @short This signal is emitted whenever the user chooses a value, e.
+ */
+ void valueChanged(int x, int y);
+}
diff --git a/kdejava/koala/org/kde/koala/KZip.java b/kdejava/koala/org/kde/koala/KZip.java
new file mode 100644
index 00000000..65fb55d9
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KZip.java
@@ -0,0 +1,183 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QIODevice;
+import org.kde.qt.QIODeviceInterface;
+
+/**
+
+ This class implements a kioslave to access zip files from KDE.
+ You can use it in IO_ReadOnly or in IO_WriteOnly mode, and it
+ behaves just as expected.
+ It can also be used in IO_ReadWrite mode, in this case one can
+ append files to an existing zip archive. When you append new files, which
+ are not yet in the zip, it works as expected, i.e. the files are appended at the end.
+ When you append a file, which is already in the file, the reference to the
+ old file is dropped and the new one is added to the zip - but the
+ old data from the file itself is not deleted, it is still in the
+ zipfile. so when you want to have a small and garbage-free zipfile,
+ just read the contents of the appended zip file and write it to a new one
+ in IO_WriteOnly mode. This is especially important when you don't want
+ to leak information of how intermediate versions of files in the zip
+ were looking.
+ For more information on the zip fileformat go to
+ http://www.pkware.com/products/enterprise/white_papers/appnote.html
+ @author Holger Schroeder <holger-kde@holgis.net>
+
+ @short A class for reading/writing zip archives.
+
+*/
+public class KZip extends KArchive {
+ protected KZip(Class dummy){super((Class) null);}
+ /**
+ Describes the contents of the "extra field" for a given file in the Zip archive.
+ @short Describes the contents of the "extra field" for a given file in the Zip archive.
+ */
+ public static final int NoExtraField = 0;
+ public static final int ModificationTime = 1;
+ public static final int DefaultExtraField = 1;
+
+ /**
+ Describes the compression type for a given file in the Zip archive.
+ @short Describes the compression type for a given file in the Zip archive.
+ */
+ public static final int NoCompression = 0;
+ public static final int DeflateCompression = 1;
+
+ /**
+ Creates an instance that operates on the given filename.
+ using the compression filter associated to given mimetype.
+ @param filename is a local path (e.g. "/home/holger/myfile.zip")
+ @short Creates an instance that operates on the given filename.
+ */
+ public KZip(String filename) {
+ super((Class) null);
+ newKZip(filename);
+ }
+ private native void newKZip(String filename);
+ /**
+ Creates an instance that operates on the given device.
+ The device can be compressed (KFilterDev) or not (QFile, etc.).
+ @warning Do not assume that giving a QFile here will decompress the file,
+ in case it's compressed!
+ @param dev the device to access
+ @short Creates an instance that operates on the given device.
+ */
+ public KZip(QIODeviceInterface dev) {
+ super((Class) null);
+ newKZip(dev);
+ }
+ private native void newKZip(QIODeviceInterface dev);
+ /**
+ The name of the zip file, as passed to the constructor.
+ Null if you used the QIODevice constructor.
+ @return the zip's file name, or null if a QIODevice is used
+
+ @short The name of the zip file, as passed to the constructor.
+ */
+ public native String fileName();
+ /**
+ Call this before writeFile or prepareWriting, to define what the next
+ file to be written should have in its extra field.
+ @param ef the type of "extra field"
+ @short Call this before writeFile or prepareWriting, to define what the next file to be written should have in its extra field.
+ @see #extraField
+ */
+ public native void setExtraField(int ef);
+ /**
+ The current type of "extra field" that will be used for new files.
+ @return the current type of "extra field"
+
+ @short The current type of "extra field" that will be used for new files.
+ @see #setExtraField
+ */
+ public native int extraField();
+ /**
+ Call this before writeFile or prepareWriting, to define whether the next
+ files to be written should be compressed or not.
+ @param c the new compression mode
+ @short Call this before writeFile or prepareWriting, to define whether the next files to be written should be compressed or not.
+ @see #compression
+ */
+ public native void setCompression(int c);
+ /**
+ The current compression mode that will be used for new files.
+ @return the current compression mode
+
+ @short The current compression mode that will be used for new files.
+ @see #setCompression
+ */
+ public native int compression();
+ /**
+ If an archive is opened for writing then you can add a new file
+ using this function.
+ This method takes the whole data at once.
+ @param name can include subdirs e.g. path/to/the/file
+ @param user the user owning the file
+ @param group the group owning the file
+ @param size the size of the file
+ @param data a pointer to the data
+ @return true if successful, false otherwise
+
+ @short If an archive is opened for writing then you can add a new file using this function.
+ */
+ public native boolean writeFile(String name, String user, String group, int size, String data);
+ /**
+ Alternative method for writing: call prepareWriting(), then feed the data
+ in small chunks using writeData(), and call doneWriting() when done.
+ @param name can include subdirs e.g. path/to/the/file
+ @param user the user owning the file
+ @param group the group owning the file
+ @param size unused argument
+ @return true if successful, false otherwise
+
+ @short Alternative method for writing: call prepareWriting(), then feed the data in small chunks using writeData(), and call doneWriting() when done.
+ */
+ public native boolean prepareWriting(String name, String user, String group, int size);
+ public native boolean writeSymLink(String name, String target, String user, String group, long perm, int atime, int mtime, int ctime);
+ public native boolean prepareWriting(String name, String user, String group, int size, long perm, int atime, int mtime, int ctime);
+ public native boolean writeFile(String name, String user, String group, int size, long perm, int atime, int mtime, int ctime, String data);
+ /**
+ Write data to a file that has been created using prepareWriting().
+ @param data a pointer to the data
+ @param size the size of the chunk
+ @return true if successful, false otherwise
+
+ @short Write data to a file that has been created using prepareWriting().
+ */
+ public native boolean writeData(String data, int size);
+ /**
+ Write data to a file that has been created using prepareWriting().
+ @param size the size of the file
+ @return true if successful, false otherwise
+
+ @short Write data to a file that has been created using prepareWriting().
+ */
+ public native boolean doneWriting(int size);
+ /**
+ Opens the archive for reading.
+ Parses the directory listing of the archive
+ and creates the KArchiveDirectory/KArchiveFile entries.
+ @param mode the mode of the file
+ @short Opens the archive for reading.
+ */
+ protected native boolean openArchive(int mode);
+ protected native boolean closeArchive();
+ /**
+ @short
+ */
+ public native boolean writeDir(String name, String user, String group);
+ /** @internal for virtual_hook @short @internal for virtual_hook
+ */
+ protected native boolean writeData_impl(String data, int size);
+ protected native boolean prepareWriting_impl(String name, String user, String group, int size, long perm, int atime, int mtime, int ctime);
+ protected native boolean writeSymLink_impl(String name, String target, String user, String group, long perm, int atime, int mtime, int ctime);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/KZipFileEntry.java b/kdejava/koala/org/kde/koala/KZipFileEntry.java
new file mode 100644
index 00000000..ed692cd1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KZipFileEntry.java
@@ -0,0 +1,51 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QIODevice;
+import org.kde.qt.QIODeviceInterface;
+
+/**
+
+ @short
+
+*/
+public class KZipFileEntry extends KArchiveFile {
+ protected KZipFileEntry(Class dummy){super((Class) null);}
+ public KZipFileEntry(KZip zip, String name, int access, int date, String user, String group, String symlink, String path, long start, long uncompressedSize, int encoding, long compressedSize) {
+ super((Class) null);
+ newKZipFileEntry(zip,name,access,date,user,group,symlink,path,start,uncompressedSize,encoding,compressedSize);
+ }
+ private native void newKZipFileEntry(KZip zip, String name, int access, int date, String user, String group, String symlink, String path, long start, long uncompressedSize, int encoding, long compressedSize);
+ public native int encoding();
+ public native long compressedSize();
+ public native void setCompressedSize(long compressedSize);
+ public native void setHeaderStart(long headerstart);
+ public native long headerStart();
+ public native long crc32();
+ public native void setCRC32(long crc32);
+ public native String path();
+ /**
+ @return the content of this file.
+ Call data() with care (only once per file), this data isn't cached.
+
+ @short
+ */
+ public native byte[] data();
+ /**
+ This method returns a QIODevice to read the file contents.
+ This is obviously for reading only.
+ Note that the ownership of the device is being transferred to the caller,
+ who will have to delete it.
+ The returned device auto-opens (in readonly mode), no need to open it.
+ @short This method returns a QIODevice to read the file contents.
+ */
+ public native QIODeviceInterface device();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}
diff --git a/kdejava/koala/org/kde/koala/LinkStyle.java b/kdejava/koala/org/kde/koala/LinkStyle.java
new file mode 100644
index 00000000..2113119e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/LinkStyle.java
@@ -0,0 +1,26 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+
+*/
+public class LinkStyle implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected LinkStyle(Class dummy){}
+
+ public LinkStyle() {
+ newLinkStyle();
+ }
+ private native void newLinkStyle();
+ public LinkStyle(LinkStyle other) {
+ newLinkStyle(other);
+ }
+ private native void newLinkStyle(LinkStyle other);
+ public native StyleSheet sheet();
+ public native boolean isNull();
+}
diff --git a/kdejava/koala/org/kde/koala/ListJob.java b/kdejava/koala/org/kde/koala/ListJob.java
new file mode 100644
index 00000000..6dcd630d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/ListJob.java
@@ -0,0 +1,80 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A ListJob is allows you to get the get the content of a directory.
+ Don't create the job directly, but use KIO.listRecursive() or
+ KIO.listDir() instead.
+ See {@link ListJobSignals} for signals emitted by ListJob
+ @short A ListJob is allows you to get the get the content of a directory.
+ @see #listRecursive
+ @see #listDir
+
+*/
+public class ListJob extends SimpleJob {
+ protected ListJob(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Do not create a ListJob directly. Use KIO.listDir() or
+ KIO.listRecursive() instead.
+ @param url the url of the directory
+ @param showProgressInfo true to show progress information to the user
+ @param recursive true to get the data recursively from child directories,
+ false to get only the content of the specified dir
+ @param prefix the prefix of the files, or null for no prefix
+ @param includeHidden true to include hidden files (those starting with '.')
+ @short Do not create a ListJob directly.
+ */
+ public ListJob(KURL url, boolean showProgressInfo, boolean recursive, String prefix, boolean includeHidden) {
+ super((Class) null);
+ newListJob(url,showProgressInfo,recursive,prefix,includeHidden);
+ }
+ private native void newListJob(KURL url, boolean showProgressInfo, boolean recursive, String prefix, boolean includeHidden);
+ public ListJob(KURL url, boolean showProgressInfo, boolean recursive, String prefix) {
+ super((Class) null);
+ newListJob(url,showProgressInfo,recursive,prefix);
+ }
+ private native void newListJob(KURL url, boolean showProgressInfo, boolean recursive, String prefix);
+ public ListJob(KURL url, boolean showProgressInfo, boolean recursive) {
+ super((Class) null);
+ newListJob(url,showProgressInfo,recursive);
+ }
+ private native void newListJob(KURL url, boolean showProgressInfo, boolean recursive);
+ public ListJob(KURL url, boolean showProgressInfo) {
+ super((Class) null);
+ newListJob(url,showProgressInfo);
+ }
+ private native void newListJob(KURL url, boolean showProgressInfo);
+ /**
+ Called by the scheduler when a <code>slave</code> gets to
+ work on this job.
+ @param slave the slave that starts working on this job
+ @short
+ */
+ public native void start(Slave slave);
+ /**
+ Returns the ListJob's redirection URL. This will be invalid if there
+ was no redirection.
+ @return the redirection url
+
+ @short Returns the ListJob's redirection URL.
+ */
+ public native KURL redirectionURL();
+ /**
+ Do not apply any KIOSK restrictions to this job.
+ @short Do not apply any KIOSK restrictions to this job.
+ */
+ public native void setUnrestricted(boolean unrestricted);
+ protected native void slotFinished();
+ // void slotMetaData(const KIO::MetaData& arg1); >>>> NOT CONVERTED
+ protected native void slotResult(Job job);
+ // void slotListEntries(const KIO::UDSEntryList& arg1); >>>> NOT CONVERTED
+ protected native void slotRedirection(KURL url);
+ // void gotEntries(KIO::Job* arg1,const KIO::UDSEntryList& arg2); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/ListJobSignals.java b/kdejava/koala/org/kde/koala/ListJobSignals.java
new file mode 100644
index 00000000..01952877
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/ListJobSignals.java
@@ -0,0 +1,27 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+public interface ListJobSignals {
+ // void entries(KIO::Job* arg1,const KIO::UDSEntryList& arg2); >>>> NOT CONVERTED
+ /**
+ Signals a redirection.
+ Use to update the URL shown to the user.
+ The redirection itself is handled internally.
+ @param job the job that is redirected
+ @param url the new url
+ @short Signals a redirection.
+ */
+ void redirection(Job job, KURL url);
+ /**
+ Signals a permanent redirection.
+ The redirection itself is handled internally.
+ @param job the job that emitted this signal
+ @param fromUrl the original URL
+ @param toUrl the new URL
+ @short Signals a permanent redirection.
+ */
+ void permanentRedirection(Job job, KURL fromUrl, KURL toUrl);
+}
diff --git a/kdejava/koala/org/kde/koala/LiveConnectExtension.java b/kdejava/koala/org/kde/koala/LiveConnectExtension.java
new file mode 100644
index 00000000..a69e0c01
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/LiveConnectExtension.java
@@ -0,0 +1,55 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QObject;
+
+/**
+
+ An extension class for LiveConnect, i.e\. a call from JavaScript
+ from a HTML page which embeds this part.
+ A part can have an object hierarchie by using objid as a reference
+ to an object.
+ See {@link LiveConnectExtensionSignals} for signals emitted by LiveConnectExtension
+ @short An extension class for LiveConnect, i.
+
+*/
+public class LiveConnectExtension extends QObject {
+ protected LiveConnectExtension(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public LiveConnectExtension(ReadOnlyPart parent, String name) {
+ super((Class) null);
+ newLiveConnectExtension(parent,name);
+ }
+ private native void newLiveConnectExtension(ReadOnlyPart parent, String name);
+ public LiveConnectExtension(ReadOnlyPart parent) {
+ super((Class) null);
+ newLiveConnectExtension(parent);
+ }
+ private native void newLiveConnectExtension(ReadOnlyPart parent);
+ /**
+ get a field value from objid, return true on success
+ @short get a field value from objid, return true on success
+ */
+ // bool get(const unsigned long arg1,const QString& arg2,KParts::LiveConnectExtension::Type& arg3,unsigned long& arg4,QString& arg5); >>>> NOT CONVERTED
+ /**
+ put a field value in objid, return true on success
+ @short put a field value in objid, return true on success
+ */
+ public native boolean put(long objid, String field, String value);
+ /**
+ calls a function of objid, return true on success
+ @short calls a function of objid, return true on success
+ */
+ // bool call(const unsigned long arg1,const QString& arg2,const QStringList& arg3,KParts::LiveConnectExtension::Type& arg4,unsigned long& arg5,QString& arg6); >>>> NOT CONVERTED
+ /**
+ notifies the part that there is no reference anymore to objid
+ @short notifies the part that there is no reference anymore to objid
+ */
+ public native void unregister(long objid);
+ public static native LiveConnectExtension childObject(QObject arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/LiveConnectExtensionSignals.java b/kdejava/koala/org/kde/koala/LiveConnectExtensionSignals.java
new file mode 100644
index 00000000..b34fd1d4
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/LiveConnectExtensionSignals.java
@@ -0,0 +1,10 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+public interface LiveConnectExtensionSignals {
+ // void partEvent(const unsigned long arg1,const QString& arg2,const KParts::LiveConnectExtension::ArgList& arg3); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/MainWindow.java b/kdejava/koala/org/kde/koala/MainWindow.java
new file mode 100644
index 00000000..54aa1a05
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/MainWindow.java
@@ -0,0 +1,177 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QWidget;
+
+/**
+
+ A KPart-aware main window, whose user interface is described in XML.
+ Inherit your main window from this class
+ and don't forget to call setXMLFile() in the inherited constructor.
+ It implements all internal interfaces in the case of a
+ KMainWindow as host: the builder and servant interface (for menu
+ merging).
+ @short A KPart-aware main window, whose user interface is described in XML.
+
+*/
+public class MainWindow extends KMainWindow implements PartBaseInterface {
+ protected MainWindow(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor, same signature as KMainWindow.
+ @short Constructor, same signature as KMainWindow.
+ */
+ public MainWindow(QWidget parent, String name, int f) {
+ super((Class) null);
+ newMainWindow(parent,name,f);
+ }
+ private native void newMainWindow(QWidget parent, String name, int f);
+ public MainWindow(QWidget parent, String name) {
+ super((Class) null);
+ newMainWindow(parent,name);
+ }
+ private native void newMainWindow(QWidget parent, String name);
+ public MainWindow(QWidget parent) {
+ super((Class) null);
+ newMainWindow(parent);
+ }
+ private native void newMainWindow(QWidget parent);
+ /**
+ Compatibility Constructor
+ @short Compatibility Constructor
+ */
+ public MainWindow(String name, int f) {
+ super((Class) null);
+ newMainWindow(name,f);
+ }
+ private native void newMainWindow(String name, int f);
+ public MainWindow(String name) {
+ super((Class) null);
+ newMainWindow(name);
+ }
+ private native void newMainWindow(String name);
+ public MainWindow() {
+ super((Class) null);
+ newMainWindow();
+ }
+ private native void newMainWindow();
+ /**
+ Constructor with creation flags, see KMainWindow.
+ @short Constructor with creation flags, see KMainWindow.
+ */
+ public MainWindow(int cflags, QWidget parent, String name, int f) {
+ super((Class) null);
+ newMainWindow(cflags,parent,name,f);
+ }
+ private native void newMainWindow(int cflags, QWidget parent, String name, int f);
+ public MainWindow(int cflags, QWidget parent, String name) {
+ super((Class) null);
+ newMainWindow(cflags,parent,name);
+ }
+ private native void newMainWindow(int cflags, QWidget parent, String name);
+ public MainWindow(int cflags, QWidget parent) {
+ super((Class) null);
+ newMainWindow(cflags,parent);
+ }
+ private native void newMainWindow(int cflags, QWidget parent);
+ protected native void createShellGUI(boolean create);
+ protected native void createShellGUI();
+ /**
+ Create the GUI (by merging the host's and the active part's)
+ You _must_ call this in order to see any GUI being created.
+ In a main window with multiple parts being shown (e.g. as in Konqueror)
+ you need to connect this slot to the
+ KPartManager.activePartChanged() signal
+ @param part The active part (set to null if no part).
+ @short Create the GUI (by merging the host's and the active part's) You _must_ call this in order to see any GUI being created.
+ */
+ protected native void createGUI(Part part);
+ /**
+ Called when the active part wants to change the statusbar message
+ Reimplement if your mainwindow has a complex statusbar
+ (with several items)
+ @short Called when the active part wants to change the statusbar message Reimplement if your mainwindow has a complex statusbar (with several items)
+ */
+ protected native void slotSetStatusBarText(String arg1);
+ /**
+ Rebuilds the GUI after KEditToolbar changed the toolbar layout.
+ @short Rebuilds the GUI after KEditToolbar changed the toolbar layout.
+ @see #configureToolbars
+ @see KDE4:
+ @see #make
+ @see #this
+ @see #virtual#
+ @see (For
+ @see #now
+ @see #we
+ @see #rely
+ @see #on
+ @see #the
+ @see #fact
+ @see #that
+ @see #it's
+ @see #called
+ @see #as
+ @see #a
+ @see #slot
+ @see #so
+ @see #the
+ @see #metaobject
+ @see #finds
+ @see #it
+ @see #here)#
+ */
+ protected native void saveNewToolbarConfig();
+ /**
+ Internal method. Called by KParts.Part to specify the parent object for plugin objects.
+ @short Internal method.
+ */
+ public native void setPartObject(QObject object);
+ public native QObject partObject();
+ /**
+ Set the instance ( KInstance) for this part.
+ Call this first in the inherited class constructor,
+ because it loads the i18n catalogues.
+ @short Set the instance ( KInstance) for this part.
+ */
+ protected native void setInstance(KInstanceInterface instance);
+ /**
+ Set the instance ( KInstance) for this part.
+ Call this first in the inherited class constructor,
+ because it loads the i18n catalogues.
+ @short Set the instance ( KInstance) for this part.
+ */
+ protected native void setInstance(KInstanceInterface instance, boolean loadPlugins);
+ /**
+ Load the Plugins honoring the PluginLoadingMode.
+ If you call this method in an already constructed GUI (like when the user
+ has changed which plugins are enabled) you need to add the new plugins to
+ the KXMLGUIFactory:
+ <pre>
+ if( factory() )
+ {
+ QPtrList<KParts.Plugin> plugins = KParts.Plugin.pluginObjects( this );
+ QPtrListIterator<KParts.Plugin> it( plugins );
+ KParts.Plugin plugin;
+ while( ( plugin = it.current() ) != 0 )
+ {
+ ++it;
+ factory().addClient( plugin );
+ }
+ }
+ </pre>
+ @short Load the Plugins honoring the PluginLoadingMode.
+ */
+ protected native void loadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance);
+ /**
+ For a KParts.Part: call this before setInstance().
+ For a KParts.MainWindow: call this before createGUI().
+ @short For a KParts.Part: call this before setInstance().
+ */
+ // void setPluginLoadingMode(KParts::PartBase::PluginLoadingMode arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/Makefile.am b/kdejava/koala/org/kde/koala/Makefile.am
new file mode 100644
index 00000000..163870dc
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Makefile.am
@@ -0,0 +1,17 @@
+####### kdevelop will overwrite this part!!! (begin)##########
+
+
+EXTRA_DIST = KGlobal.java KMdiToolViewAccessor.java BrowserExtension.java DCOPClient.java DCOPObject.java DCOPObjectInterface.java DCOPObjectProxy.java KAboutApplication.java KAboutContainer.java KAboutData.java KAboutDialog.java KAboutKDE.java KAboutPerson.java KAboutWidget.java KAccel.java KAction.java KActionCollection.java KActionMenu.java KActionSeparator.java KAnimWidget.java KApplication.java KAudioPlayer.java KAuthIcon.java KBugReport.java KButtonBox.java KCModule.java KCharSelect.java KCharSelectTable.java KCharsets.java KCmdLineArgs.java KColorButton.java KColorCombo.java KColorDrag.java KCombiView.java KComboBox.java KCompletion.java KCompletionBase.java KCompletionBaseInterface.java KConfig.java KConfigBackEnd.java KConfigBase.java KConfigGroupSaver.java KConfigINIBackEnd.java KContextMenuManager.java KCursor.java KDCOPActionProxy.java KDCOPPropertyProxy.java KDEDesktopMimeType.java KDatePicker.java KDateTable.java KDateValidator.java KDesktopFile.java KDialog.java KDialogBase.java KDirOperator.java KDirWatch.java KDockWidgetAbstractHeader.java KDockWidgetAbstractHeaderDrag.java KDockWidgetHeader.java KDockWidgetHeaderDrag.java KDoubleNumInput.java KDualColorButton.java KEdFind.java KEdGotoLine.java KEdReplace.java KEditToolbar.java KEditToolbarWidget.java KEntry.java KEntryKey.java KExecMimeType.java KFile.java KFileDetailView.java KFileDialog.java KFileFilter.java KFileIconView.java KFileIconViewItem.java KFileItem.java KFileListViewItem.java KFilePreview.java KFileView.java KFileViewInterface.java KFileViewSignaler.java KFolderType.java KFontAction.java KFontChooser.java KFontDialog.java KFontSizeAction.java KGlobalAccel.java KGlobalSettings.java KGradientSelector.java KHTMLPart.java KHTMLSettings.java KHTMLView.java KHelpMenu.java KHistoryCombo.java KIPC.java KIconButton.java KIconCanvas.java KIconDialog.java KIconEffect.java KIconLoader.java KIconView.java KImageEffect.java KImageIO.java KInstance.java KInstanceInterface.java KIntNumInput.java KIntSpinBox.java KIntValidator.java KJanusWidget.java KKeyChooser.java KLed.java KLibFactory.java KLibLoader.java KLineEdit.java KListBox.java KListView.java KLocale.java KMainWindow.java KMenuBar.java KMessageBox.java KMimeType.java KNotifyClient.java KNumInput.java KOpenWithDlg.java KPalette.java KPanelApplet.java KPanelMenu.java KPasswordDialog.java KPasswordEdit.java KPixmap.java KPixmapEffect.java KPixmapIO.java KPixmapProvider.java KPopupFrame.java KPopupMenu.java KPopupTitle.java KProcIO.java KProcess.java KProcessController.java KProcessRunner.java KProgress.java KProtocolInfo.java KProtocolManager.java KRFCDate.java KRadioAction.java KRandomSequence.java KRecentDocument.java KRestrictedLine.java KRootPermsIcon.java KRootPixmap.java KRootProp.java KRuler.java KRun.java KSSL.java KSSLCertificate.java KSSLCertificateHome.java KSSLConnectionInfo.java KSSLInfoDlg.java KSSLPeerInfo.java KSSLSettings.java KSSLX509Map.java KSaveFile.java KSelectAction.java KSelector.java KSeparator.java KService.java KServiceGroup.java KServiceOffer.java KServiceType.java KServiceTypeProfile.java KSessionManaged.java KShared.java KShellCompletion.java KShred.java KSimpleConfig.java KSpell.java KSpellConfig.java KSpellDlg.java KStandardDirs.java KStaticDeleterBase.java KStatusBar.java KStatusBarLabel.java KStdAccel.java KStdAction.java KStringHandler.java KSycoca.java KSycocaEntry.java KSystemTray.java KTabCtl.java KTempFile.java KTextBrowser.java KToggleAction.java KToolBar.java KToolBarButton.java KToolBarRadioGroup.java KToolBarSeparator.java KTrader.java KURIFilter.java KURIFilterData.java KURIFilterPlugin.java KURL.java KURLComboBox.java KURLCompletion.java KURLDrag.java KURLLabel.java KURLRequester.java KURLRequesterDlg.java KUniqueApplication.java KWizard.java KWritePermsIcon.java KXMLGUIBuilder.java KXMLGUIBuilderInterface.java KXMLGUIClient.java KXMLGUIClientInterface.java KXMLGUIFactory.java KXYSelector.java Part.java PartBaseInterface.java ReadOnlyPart.java NetAccess.java kdejava.java Event.java GUIActivateEvent.java MouseEvent.java OpenURLEvent.java PartActivateEvent.java PartSelectEvent.java ReadWritePart.java DocumentFragment.java DocumentStyle.java DocumentType.java HTMLDocument.java NamedNodeMap.java CSSStyleSheet.java StyleSheet.java CSSException.java CSSPrimitiveValue.java CSSStyleDeclaration.java CSSValue.java Counter.java RGBColor.java Rect.java Element.java HTMLAnchorElement.java HTMLAppletElement.java HTMLAreaElement.java HTMLBRElement.java HTMLBaseElement.java HTMLBaseFontElement.java HTMLBlockquoteElement.java HTMLBodyElement.java HTMLButtonElement.java HTMLCollection.java HTMLDListElement.java HTMLDirectoryElement.java HTMLDivElement.java HTMLElement.java HTMLFieldSetElement.java HTMLFontElement.java HTMLFormElement.java HTMLFrameElement.java HTMLFrameSetElement.java HTMLHRElement.java HTMLHeadElement.java HTMLHeadingElement.java HTMLHtmlElement.java HTMLIFrameElement.java HTMLImageElement.java HTMLInputElement.java HTMLIsIndexElement.java HTMLLIElement.java HTMLLabelElement.java HTMLLegendElement.java HTMLLinkElement.java HTMLMapElement.java HTMLMenuElement.java HTMLMetaElement.java HTMLModElement.java HTMLOListElement.java HTMLObjectElement.java HTMLOptGroupElement.java HTMLOptionElement.java HTMLParagraphElement.java HTMLParamElement.java HTMLPreElement.java HTMLQuoteElement.java HTMLScriptElement.java HTMLSelectElement.java HTMLStyleElement.java HTMLTableCaptionElement.java HTMLTableCellElement.java HTMLTableColElement.java HTMLTableElement.java HTMLTableRowElement.java HTMLTableSectionElement.java HTMLTextAreaElement.java HTMLTitleElement.java HTMLUListElement.java Attr.java DockMainWindow.java MainWindow.java CDATASection.java Comment.java EntityReference.java NodeFilter.java NodeIterator.java ProcessingInstruction.java Range.java Text.java TreeWalker.java CharacterData.java CopyJob.java DeleteJob.java FileCopyJob.java Job.java KDirNotify.java KDirNotifyInterface.java KDirSize.java ListJob.java MimetypeJob.java SimpleJob.java StatJob.java TransferJob.java Connection.java Slave.java KAboutContributor.java KAboutTranslator.java KCodecs.java KCommand.java KCommandHistory.java KCompletionBox.java KDialogQueue.java KEditListBox.java KFilterBase.java KFilterDev.java KFontCombo.java KMacroCommand.java KPanelExtension.java KPixmapSplitter.java KPreviewWidgetBase.java KPushButton.java KScanDialog.java KSqueezedTextLabel.java KToolBarPopupAction.java KTipDatabase.java KTipDialog.java BrowserExtensionSignals.java CopyJobSignals.java DCOPClientSignals.java DeleteJobSignals.java JobSignals.java KAboutContainerSignals.java KAboutContributorSignals.java KAboutDialogSignals.java KAboutWidgetSignals.java KAccelSignals.java KActionCollectionSignals.java KActionSignals.java KAnimWidgetSignals.java KApplicationSignals.java KCModuleSignals.java KCharSelectSignals.java KCharSelectTableSignals.java KColorButtonSignals.java KColorComboSignals.java KComboBoxSignals.java KCommandHistorySignals.java KCompletionBoxSignals.java KCompletionSignals.java KDatePickerSignals.java KDateTableSignals.java KDialogBaseSignals.java KDialogSignals.java KDirListerSignals.java KDirOperatorSignals.java KDirWatchSignals.java KDoubleNumInputSignals.java KDualColorButtonSignals.java KEdFindSignals.java KEdReplaceSignals.java KEditListBoxSignals.java KEditSignals.java KEditToolbarSignals.java KEditToolbarWidgetSignals.java KFileDetailViewSignals.java KFileDialogSignals.java KFileIconViewSignals.java KFilePreviewSignals.java KFontChooserSignals.java KFontDialogSignals.java KFontSizeActionSignals.java KHTMLPartSignals.java KHTMLViewSignals.java KHelpMenuSignals.java KHistoryComboSignals.java KIconButtonSignals.java KIconCanvasSignals.java KIconDialogSignals.java KIconViewSignals.java KIntNumInputSignals.java KJanusWidgetSignals.java KKeyChooserSignals.java KLineEditSignals.java KListBoxSignals.java KListViewSignals.java KPanelAppletSignals.java KPanelExtensionSignals.java KPopupMenuSignals.java KProcIOSignals.java KProcessSignals.java KProgressSignals.java KRecentFilesActionSignals.java KRestrictedLineSignals.java KRootPixmapSignals.java KRunSignals.java KScanDialogSignals.java KSelectActionSignals.java KSelectorSignals.java KShredSignals.java KSpellConfigSignals.java KSpellDlgSignals.java KSpellSignals.java KStatusBarLabelSignals.java KStatusBarSignals.java KSycocaSignals.java KSystemTraySignals.java KTabCtlSignals.java KTextBrowserSignals.java KToggleActionSignals.java KToolBarButtonSignals.java KToolBarSignals.java KURLComboBoxSignals.java KURLLabelSignals.java KURLRequesterSignals.java KXMLGUIFactorySignals.java KXYSelectorSignals.java ListJobSignals.java SlaveSignals.java StatJobSignals.java TransferJobSignals.java KListViewItem.java KTar.java KArchive.java KArchiveDirectory.java KSSLPKCS12.java KArchiveEntry.java KArchiveFile.java KFileMetaInfo.java KFileMetaInfoItem.java KGuiItem.java KIconViewItem.java KStdGuiItem.java KDataTool.java KDataToolAction.java KDataToolInfo.java KDateWidget.java KDirSelectDialog.java KEMailSettings.java KFileFilterCombo.java KFileTreeBranch.java KFileTreeView.java KFileTreeViewItem.java KFileTreeViewToolTip.java KMultipleDrag.java KWordWrap.java KDataToolActionSignals.java KDateWidgetSignals.java KFileFilterComboSignals.java KFileTreeBranchSignals.java KFileTreeViewSignals.java KShortcut.java KKey.java KKeyDialog.java KIO.java Scheduler.java SchedulerSignals.java StatusbarProgress.java ProgressBase.java ProgressBaseSignals.java KKeySequence.java KDockMainWindow.java KDockManager.java KDockManagerSignals.java KDockTabGroup.java KDockWidget.java KDockWidgetSignals.java KURLPixmapProvider.java KAccelAction.java KColor.java KColorCells.java KColorCellsSignals.java KColorDialog.java KColorDialogSignals.java KColorPatch.java KColorPatchSignals.java KHSSelector.java KPaletteTable.java KPaletteTableSignals.java KValueSelector.java DCOPAnswer.java KDE.java KSSLCertDlgRet.java KListAction.java KRecentFilesAction.java KArrowButton.java KDateTimeWidget.java KDateTimeWidgetSignals.java KFindDialog.java KFind.java KFindSignals.java KMultiTabBarButton.java KMultiTabBarButtonSignals.java KMultiTabBarTab.java KPrintAction.java KPrintActionSignals.java KProgressDialog.java KReplaceDialog.java KReplace.java KReplaceSignals.java KURLBarSignals.java KMultiTabBar.java KCatalogue.java KDoubleValidator.java KKeyButton.java KMdiChildArea.java KMdiChildFrmCaption.java KMdiChildFrmDragBeginEvent.java KMdiChildFrmDragEndEvent.java KMdiChildFrm.java KMdiChildFrmMoveEvent.java KMdiChildFrmResizeBeginEvent.java KMdiChildFrmResizeEndEvent.java KMdiChildView.java KMdi.java KMdiMainFrm.java KMdiTaskBarButton.java KMdiTaskBar.java KMdiViewCloseEvent.java KMdiWin32IconButton.java KPasteTextAction.java KStringListValidator.java KTabBar.java KTabWidget.java KTextEdit.java KTimeWidget.java KToggleToolBarAction.java KURLComboRequester.java KMdiChildAreaSignals.java KMdiChildViewSignals.java KMdiMainFrmSignals.java KMdiTaskBarButtonSignals.java KMdiWin32IconButtonSignals.java KTabBarSignals.java KTabWidgetSignals.java KTimeWidgetSignals.java DefaultProgress.java SlaveBase.java KEdit.java KFloatValidator.java KMimeMagic.java KMimeMagicResult.java BrowserInterface.java CSSRule.java CSSRuleList.java CustomNodeFilter.java DavJob.java Document.java DomShared.java EventListener.java Invocation.java KCalendarSystem.java KDirLister.java KFileMetaInfoGroup.java KMimeSourceFactory.java KSharedConfig.java KShellProcess.java KShortcutList.java KSSLCertBox.java KSSLCertChain.java KSSLSession.java KSSLX509V3.java KToggleFullScreenAction.java KURLBarItem.java KURLBar.java KURLBarListBox.java Marchaller.java MetaInfoJob.java Node.java Observer.java PreviewJob.java SlaveInterface.java UIEvent.java KAsyncIO.java KAsyncIOSignals.java KBufferedIO.java KBufferedIOSignals.java AuthInfo.java RenameDlg.java AbstractView.java KInputDialog.java KAuthIconSignals.java KFileViewSignalerSignals.java KKeyButtonSignals.java KLibFactorySignals.java KURLBarListBoxSignals.java MetaInfoJobSignals.java PartSignals.java PreviewJobSignals.java ReadOnlyPartSignals.java ReadWritePartSignals.java SlaveInterfaceSignals.java CSSCharsetRule.java CSSFontFaceRule.java CSSImportRule.java CSSMediaRule.java CSSPageRule.java CSSStyleRule.java CSSUnknownRule.java CSSValueList.java DOMException.java DOMImplementation.java Entity.java EventException.java Factory.java HistoryProvider.java HistoryProviderSignals.java HTMLFormCollection.java KAccelShortcutList.java KActionShortcutList.java KActiveLabel.java KAr.java KCalendarSystemFactory.java KCModuleInfo.java KCModuleLoader.java KCMultiDialog.java KCMultiDialogSignals.java KConfigGroup.java KCPUInfo.java KCustomMenuEditor.java KDCOPServiceStarter.java KDiskFreeSp.java KDiskFreeSpSignals.java KDockArea.java KDockAreaSignals.java KFilePlugin.java KFileShare.java KFontRequester.java KFontRequesterSignals.java KIDNA.java KKeyNative.java KMD5.java KMimeTypeResolverBase.java KMimeTypeResolverHelper.java KMimeTypeValidator.java KMountPoint.java KOCRDialog.java KOCRDialogSignals.java KPanelAppMenu.java KPanelAppMenuSignals.java KPassivePopup.java KPassivePopupSignals.java KPluginSelector.java KPluginSelectorSignals.java KRegExpEditorInterface.java KServiceSeparator.java KShell.java KSimpleFileFilter.java KSMIMECrypto.java KSpellingHighlighter.java KSSLCertDlg.java KSSLCertificateCache.java KSSLCertificateFactory.java KSSLKeyGen.java KSSLPKCS7.java KSSLSigners.java KSyntaxHighlighter.java KTempDir.java KURLBarItemDialog.java KWidgetAction.java KWindowInfo.java KXMLGUI.java KZipFileEntry.java KZip.java LinkStyle.java LiveConnectExtension.java LiveConnectExtensionSignals.java MultiGetJob.java MultiGetJobSignals.java MutationEvent.java Notation.java PartBase.java PasswordDialog.java Plugin.java RangeException.java SessionData.java SkipDlg.java SkipDlgSignals.java SlaveConfigSignals.java StatusBarExtension.java TextEvent.java KNamedCommand.java PartManager.java PartManagerSignals.java URLArgs.java WindowArgs.java BrowserHostExtension.java BrowserRun.java KAccelActions.java KDockMainWindowSignals.java StoredTransferJob.java
+
+####### kdevelop will overwrite this part!!! (end)############
+
+# nothing is installed. It is first put in a jar a few directories higher in the source tree.
+noinst_JAVA = $(EXTRA_DIST)
+#javadir = $(kde_libraries)/java/org/kde/koala
+#install-data-hook: uninstall-javaJAVA
+
+JAVAROOT = ../../..
+CLASSPATH = $(srcdir)/../../..:$(srcdir)/../../../../../qtjava/javalib/qtjava.jar:$(srcdir)
+JAVACFLAGS = -classpath $(CLASSPATH)
+# Prevent stupid automake from putting JAVAC=javac in Makefile.in
+JAVAC = @JAVAC@
diff --git a/kdejava/koala/org/kde/koala/Marchaller.java b/kdejava/koala/org/kde/koala/Marchaller.java
new file mode 100644
index 00000000..aa013e49
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Marchaller.java
@@ -0,0 +1,143 @@
+package org.kde.koala;
+
+import java.io.*;
+
+/**
+ * This marchaller can convert between serialized Qt objects and Java objects.
+ *
+ * (Scooped the code of Stub.java from the javadcop project, and made the operations static and public)
+ */
+public class Marchaller {
+ // accessor methods for the datatypes used ---------------------------
+
+ public static boolean read_bool(DataInputStream is) throws IOException
+ {
+ return is.readBoolean();
+ }
+
+ public static void write_bool(DataOutputStream os, boolean val) throws IOException
+ {
+ os.writeBoolean(val);
+ }
+
+ public static short read_short_int(DataInputStream is) throws IOException
+ {
+ return is.readShort();
+ }
+
+ public static void write_short_int(DataOutputStream os, short val) throws IOException
+ {
+ os.writeShort(val);
+ }
+
+ public static int read_int(DataInputStream is) throws IOException
+ {
+ return is.readInt();
+ }
+
+ public static void write_int(DataOutputStream os, int val) throws IOException
+ {
+ os.writeInt(val);
+ }
+
+ public static int read_long_int(DataInputStream is) throws IOException
+ {
+ return is.readInt();
+ }
+
+ public static void write_long_int(DataOutputStream os, int val) throws IOException
+ {
+ os.writeInt(val);
+ }
+
+ public static float read_float(DataInputStream is) throws IOException
+ {
+ return is.readFloat();
+ }
+
+ public static void write_float(DataOutputStream os, float val) throws IOException
+ {
+ os.writeFloat(val);
+ }
+
+ public static double read_double(DataInputStream is) throws IOException
+ {
+ return is.readDouble();
+ }
+
+ public static void write_double(DataOutputStream os, double val) throws IOException
+ {
+ os.writeDouble(val);
+ }
+
+ public static String read_QString(DataInputStream is) throws IOException
+ {
+ int len = is.readInt();
+ if (len == 0xffffffff)
+ return new String();
+ else
+ {
+ StringBuffer b = new StringBuffer();
+ for (int i=0; i<len/2; ++i)
+ b.append(is.readChar());
+ return b.toString();
+ }
+ }
+
+ public static void write_QString(DataOutputStream os, String val) throws IOException
+ {
+ os.writeInt(val.length()*2);
+ for (int i=0; i<val.length(); ++i)
+ os.writeChar(val.charAt(i));
+ }
+
+ public static String read_QCString(DataInputStream is) throws IOException
+ {
+ int len = is.readInt();
+ StringBuffer b = new StringBuffer();
+ for (int i=0; i<len; ++i)
+ b.append((char)is.readByte());
+ return b.toString();
+ }
+
+ public static void write_QCString(DataOutputStream os, String val) throws IOException
+ {
+ os.writeInt(val.length()+1);
+ for (int i=0; i<val.length(); ++i)
+ os.writeByte(val.charAt(i));
+ os.writeByte(0);
+ }
+
+ public static String[] read_QStringList(DataInputStream is) throws IOException
+ {
+ int n = is.readInt();
+ String[] result = new String[n];
+ for (int i=0; i<n; ++i)
+ result[i] = read_QString(is);
+ return result;
+ }
+
+ public static void write_QStringList(DataOutputStream os, String[] val) throws IOException
+ {
+ os.writeInt(val.length);
+ for (int i=0; i<val.length; ++i)
+ write_QCString(os, val[i]);
+ }
+/*
+ public static void write_DCOPRef(DataOutputStream os, DCOPRef ref) throws IOException
+ {
+ write_QCString(os, ref.app());
+ write_QCString(os, ref.object());
+ write_QCString(os, ref.type());
+ }
+ public static DCOPRef read_DCOPRef(DataInputStream is) throws IOException
+ {
+ return new DCOPRef(read_QCString(is), read_QCString(is), read_QCString(is));
+ }
+*/
+ public static void write_QByteArray(DataOutputStream os, byte[] byteArray) throws IOException
+ {
+ write_int(os, byteArray.length);
+ os.write(byteArray);
+ }
+}
diff --git a/kdejava/koala/org/kde/koala/MetaInfoJob.java b/kdejava/koala/org/kde/koala/MetaInfoJob.java
new file mode 100644
index 00000000..3d4683f9
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/MetaInfoJob.java
@@ -0,0 +1,61 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ MetaInfoJob is a KIO Job to retrieve meta information from files.
+ See {@link MetaInfoJobSignals} for signals emitted by MetaInfoJob
+ @short KIO Job to retrieve meta information from files.
+
+*/
+public class MetaInfoJob extends Job {
+ protected MetaInfoJob(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a new MetaInfoJob.
+ @param items A list of KFileItems to get the metainfo for
+ @param deleteItems If true, the finished KFileItems are deleted
+ @short Creates a new MetaInfoJob.
+ */
+ public MetaInfoJob(ArrayList items, boolean deleteItems) {
+ super((Class) null);
+ newMetaInfoJob(items,deleteItems);
+ }
+ private native void newMetaInfoJob(ArrayList items, boolean deleteItems);
+ public MetaInfoJob(ArrayList items) {
+ super((Class) null);
+ newMetaInfoJob(items);
+ }
+ private native void newMetaInfoJob(ArrayList items);
+ /**
+ Removes an item from metainfo extraction.
+ @param item the item that should be removed from the queue
+ @short Removes an item from metainfo extraction.
+ */
+ public native void removeItem(KFileItem item);
+ /**
+ Returns a list of all available metainfo plugins. The list
+ contains the basenames of the plugins' .desktop files (no path,
+ no .desktop).
+ @return the list of available meta info plugins
+
+ @short Returns a list of all available metainfo plugins.
+ */
+ public static native ArrayList availablePlugins();
+ /**
+ Returns a list of all supported MIME types. The list can
+ contain entries like text/ (without the space).
+ @return the list of MIME types that are supported
+
+ @short Returns a list of all supported MIME types.
+ */
+ public static native ArrayList supportedMimeTypes();
+ protected native void getMetaInfo();
+ protected native void slotResult(Job job);
+}
diff --git a/kdejava/koala/org/kde/koala/MetaInfoJobSignals.java b/kdejava/koala/org/kde/koala/MetaInfoJobSignals.java
new file mode 100644
index 00000000..82eb29bd
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/MetaInfoJobSignals.java
@@ -0,0 +1,24 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+public interface MetaInfoJobSignals {
+ /**
+ Emitted when the meta info for <code>item</code> has been successfully
+ retrieved.
+ @param item the KFileItem describing the fetched item
+ @short Emitted when the meta info for <code>item</code> has been successfully retrieved.
+ */
+ void gotMetaInfo(KFileItem item);
+ /**
+ Emitted when metainfo for <code>item</code> could not be extracted,
+ either because a plugin for its MIME type does not
+ exist, or because something went wrong.
+ @param item the KFileItem of the file that failed
+ @short Emitted when metainfo for <code>item</code> could not be extracted, either because a plugin for its MIME type does not exist, or because something went wrong.
+ */
+ void failed(KFileItem item);
+}
diff --git a/kdejava/koala/org/kde/koala/MimetypeJob.java b/kdejava/koala/org/kde/koala/MimetypeJob.java
new file mode 100644
index 00000000..e76ad664
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/MimetypeJob.java
@@ -0,0 +1,51 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A MimetypeJob is a TransferJob that allows you to get
+ the mime type of an URL. Don't create directly,
+ but use KIO.mimetype() instead.
+ @short A MimetypeJob is a TransferJob that allows you to get the mime type of an URL.
+ @see #mimetype
+
+*/
+public class MimetypeJob extends TransferJob {
+ protected MimetypeJob(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Do not create a MimetypeJob directly. Use KIO.mimetype()
+ instead.
+ @param url the url to get
+ @param command the command to issue
+ @param packedArgs the arguments
+ @param showProgressInfo true to show progress information to the user
+ @short Do not create a MimetypeJob directly.
+ */
+ public MimetypeJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo) {
+ super((Class) null);
+ newMimetypeJob(url,command,packedArgs,showProgressInfo);
+ }
+ private native void newMimetypeJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo);
+ /**
+ Call this in the slot connected to result,
+ and only after making sure no error happened.
+ @return the mimetype of the URL
+
+ @short Call this in the slot connected to result, and only after making sure no error happened.
+ */
+ public native String mimetype();
+ /**
+ Called by the scheduler when a slave gets to
+ work on this job.
+ @param slave the slave that works on the job
+ @short
+ */
+ public native void start(Slave slave);
+ protected native void slotFinished();
+}
diff --git a/kdejava/koala/org/kde/koala/MouseEvent.java b/kdejava/koala/org/kde/koala/MouseEvent.java
new file mode 100644
index 00000000..3969aea4
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/MouseEvent.java
@@ -0,0 +1,120 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Introduced in DOM Level 2
+ The MouseEvent interface provides specific contextual information associated
+ with Mouse events.
+ The detail attribute inherited from UIEvent indicates the number of times a
+ mouse button has been pressed and released over the same screen location
+ during a user action. The attribute value is 1 when the user begins this
+ action and increments by 1 for each full sequence of pressing and releasing.
+ If the user moves the mouse between the mousedown and mouseup the value will
+ be set to 0, indicating that no click is occurring.
+ In the case of nested elements mouse events are always targeted at the most
+ deeply nested element. Ancestors of the targeted element may use bubbling to
+ obtain notification of mouse events which occur within its descendent elements.
+ @short Introduced in DOM Level 2
+
+*/
+public class MouseEvent extends UIEvent {
+ protected MouseEvent(Class dummy){super((Class) null);}
+ /**
+ The horizontal coordinate at which the event occurred relative to the
+ origin of the screen coordinate system.
+ @short The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system.
+ */
+ public native long screenX();
+ /**
+ The vertical coordinate at which the event occurred relative to the
+ origin of the screen coordinate system.
+ @short The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system.
+ */
+ public native long screenY();
+ /**
+ The horizontal coordinate at which the event occurred relative to the
+ DOM implementation's client area.
+ @short The horizontal coordinate at which the event occurred relative to the DOM implementation's client area.
+ */
+ public native long clientX();
+ /**
+ The vertical coordinate at which the event occurred relative to the DOM
+ implementation's client area.
+ @short The vertical coordinate at which the event occurred relative to the DOM implementation's client area.
+ */
+ public native long clientY();
+ /**
+ Used to indicate whether the 'ctrl' key was depressed during the firing
+ of the event.
+ @short Used to indicate whether the 'ctrl' key was depressed during the firing of the event.
+ */
+ public native boolean ctrlKey();
+ /**
+ Used to indicate whether the 'shift' key was depressed during the firing
+ of the event.
+ @short Used to indicate whether the 'shift' key was depressed during the firing of the event.
+ */
+ public native boolean shiftKey();
+ /**
+ Used to indicate whether the 'alt' key was depressed during the firing
+ of the event. On some platforms this key may map to an alternative key
+ name.
+ @short Used to indicate whether the 'alt' key was depressed during the firing of the event.
+ */
+ public native boolean altKey();
+ /**
+ Used to indicate whether the 'meta' key was depressed during the firing
+ of the event. On some platforms this key may map to an alternative key
+ name.
+ @short Used to indicate whether the 'meta' key was depressed during the firing of the event.
+ */
+ public native boolean metaKey();
+ /**
+ During mouse events caused by the depression or release of a mouse
+ button, button is used to indicate which mouse button changed state. The
+ values for button range from zero to indicate the left button of the
+ mouse, one to indicate the middle button if present, and two to indicate
+ the right button. For mice configured for left handed use in which the
+ button actions are reversed the values are instead read from right to
+ left.
+ @short During mouse events caused by the depression or release of a mouse button, button is used to indicate which mouse button changed state.
+ */
+ public native short button();
+ /**
+ Used to identify a secondary EventTarget related to a UI event.
+ Currently this attribute is used with the mouseover event to indicate
+ the EventTarget which the pointing device exited and with the mouseout
+ event to indicate the EventTarget which the pointing device entered.
+ @short Used to identify a secondary EventTarget related to a UI event.
+ */
+ public native Node relatedTarget();
+ /**
+ The initMouseEvent method is used to initialize the value of a
+ MouseEvent created through the DocumentEvent interface. This method may
+ only be called before the MouseEvent has been dispatched via the
+ dispatchEvent method, though it may be called multiple times during that
+ phase if necessary. If called multiple times, the final invocation takes
+ precedence. Parameters
+ @param typeArg Specifies the event type.
+ @param canBubbleArg Specifies whether or not the event can bubble.
+ @param cancelableArg Specifies whether or not the event's default action can be prevented.
+ @param viewArg Specifies the Event's AbstractView.
+ @param detailArg Specifies the Event's mouse click count.
+ @param screenXArg Specifies the Event's screen x coordinate
+ @param screenYArg Specifies the Event's screen y coordinate
+ @param clientXArg Specifies the Event's client x coordinate
+ @param clientYArg Specifies the Event's client y coordinate
+ @param ctrlKeyArg Specifies whether or not control key was depressed during the Event.
+ @param altKeyArg Specifies whether or not alt key was depressed during the Event.
+ @param shiftKeyArg Specifies whether or not shift key was depressed during the Event.
+ @param metaKeyArg Specifies whether or not meta key was depressed during the Event.
+ @param buttonArg Specifies the Event's mouse button.
+ @param relatedTargetArg Specifies the Event's related EventTarget.
+ @short The initMouseEvent method is used to initialize the value of a MouseEvent created through the DocumentEvent interface.
+ */
+ public native void initMouseEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, long detailArg, long screenXArg, long screenYArg, long clientXArg, long clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, short buttonArg, Node relatedTargetArg);
+}
diff --git a/kdejava/koala/org/kde/koala/MultiGetJob.java b/kdejava/koala/org/kde/koala/MultiGetJob.java
new file mode 100644
index 00000000..ffc0c134
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/MultiGetJob.java
@@ -0,0 +1,53 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The MultiGetJob is a TransferJob that allows you to get
+ several files from a single server. Don't create directly,
+ but use KIO.multi_get() instead.
+ See {@link MultiGetJobSignals} for signals emitted by MultiGetJob
+ @short The MultiGetJob is a TransferJob that allows you to get several files from a single server.
+ @see #multi_get
+
+*/
+public class MultiGetJob extends TransferJob {
+ protected MultiGetJob(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Do not create a MultiGetJob directly, use KIO.multi_get()
+ instead.
+ @param url the first url to get
+ @param showProgressInfo true to show progress information to the user
+ @short Do not create a MultiGetJob directly, use KIO.multi_get() instead.
+ */
+ public MultiGetJob(KURL url, boolean showProgressInfo) {
+ super((Class) null);
+ newMultiGetJob(url,showProgressInfo);
+ }
+ private native void newMultiGetJob(KURL url, boolean showProgressInfo);
+ /**
+ Called by the scheduler when a <code>slave</code> gets to
+ work on this job.
+ @param slave the slave that starts working on this job
+ @short
+ */
+ public native void start(Slave slave);
+ /**
+ Get an additional file.
+ @param id the id of the file
+ @param url the url of the file to get
+ @param metaData the meta data for this request
+ @short Get an additional file.
+ */
+ // void get(long arg1,const KURL& arg2,const KIO::MetaData& arg3); >>>> NOT CONVERTED
+ protected native void slotRedirection(KURL url);
+ protected native void slotFinished();
+ protected native void slotData(byte[] data);
+ protected native void slotMimetype(String mimetype);
+}
diff --git a/kdejava/koala/org/kde/koala/MultiGetJobSignals.java b/kdejava/koala/org/kde/koala/MultiGetJobSignals.java
new file mode 100644
index 00000000..e6db921f
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/MultiGetJobSignals.java
@@ -0,0 +1,31 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+public interface MultiGetJobSignals {
+ /**
+ Data from the slave has arrived.
+ @param id the id of the request
+ @param data data received from the slave.
+ End of data (EOD) has been reached if data.size() == 0
+ @short Data from the slave has arrived.
+ */
+ void data(long id, byte[] data);
+ /**
+ Mimetype determined
+ @param id the id of the request
+ @param type the mime type
+ @short Mimetype determined
+ */
+ void mimetype(long id, String type);
+ /**
+ File transfer completed.
+ When all files have been processed, result(KIO.Job ) gets
+ emitted.
+ @param id the id of the request
+ @short File transfer completed.
+ */
+ void result(long id);
+}
diff --git a/kdejava/koala/org/kde/koala/MutationEvent.java b/kdejava/koala/org/kde/koala/MutationEvent.java
new file mode 100644
index 00000000..e0955da5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/MutationEvent.java
@@ -0,0 +1,88 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Introduced in DOM Level 2
+ The MutationEvent interface provides specific contextual information
+ associated with Mutation events.
+ @short Introduced in DOM Level 2
+
+*/
+public class MutationEvent extends Event {
+ protected MutationEvent(Class dummy){super((Class) null);}
+ public MutationEvent() {
+ super((Class) null);
+ newMutationEvent();
+ }
+ private native void newMutationEvent();
+ public MutationEvent(MutationEvent other) {
+ super((Class) null);
+ newMutationEvent(other);
+ }
+ private native void newMutationEvent(MutationEvent other);
+ public MutationEvent(Event other) {
+ super((Class) null);
+ newMutationEvent(other);
+ }
+ private native void newMutationEvent(Event other);
+ /**
+ relatedNode is used to identify a secondary node related to a mutation
+ event. For example, if a mutation event is dispatched to a node
+ indicating that its parent has changed, the relatedNode is the changed
+ parent. If an event is instead dispatched to a subtree indicating a node
+ was changed within it, the relatedNode is the changed node. In the case
+ of the DOMAttrModified event it indicates the Attr node which was
+ modified, added, or removed.
+ @short relatedNode is used to identify a secondary node related to a mutation event.
+ */
+ public native Node relatedNode();
+ /**
+ prevValue indicates the previous value of the Attr node in
+ DOMAttrModified events, and of the CharacterData node in
+ DOMCharDataModified events.
+ @short prevValue indicates the previous value of the Attr node in DOMAttrModified events, and of the CharacterData node in DOMCharDataModified events.
+ */
+ public native String prevValue();
+ /**
+ newValue indicates the new value of the Attr node in DOMAttrModified
+ events, and of the CharacterData node in DOMCharDataModified events.
+ @short newValue indicates the new value of the Attr node in DOMAttrModified events, and of the CharacterData node in DOMCharDataModified events.
+ */
+ public native String newValue();
+ /**
+ attrName indicates the name of the changed Attr node in a
+ DOMAttrModified event.
+ @short attrName indicates the name of the changed Attr node in a DOMAttrModified event.
+ */
+ public native String attrName();
+ /**
+ attrChange indicates the type of change which triggered the
+ DOMAttrModified event. The values can be MODIFICATION, ADDITION, or
+ REMOVAL.
+ @short attrChange indicates the type of change which triggered the DOMAttrModified event.
+ */
+ public native short attrChange();
+ /**
+ The initMutationEvent method is used to initialize the value of a
+ MutationEvent created through the DocumentEvent interface. This method
+ may only be called before the MutationEvent has been dispatched via the
+ dispatchEvent method, though it may be called multiple times during that
+ phase if necessary. If called multiple times, the final invocation takes
+ precedence.
+ @param typeArg Specifies the event type.
+ @param canBubbleArg Specifies whether or not the event can bubble.
+ @param cancelableArg Specifies whether or not the event's default action can be prevented.
+ @param relatedNodeArg Specifies the Event's related Node.
+ @param prevValueArg Specifies the Event's prevValue attribute. This value may be null.
+ @param newValueArg Specifies the Event's newValue attribute. This value may be null.
+ @param attrNameArg Specifies the Event's attrName attribute. This value may be null.
+ @param attrChangeArg Specifies the Event's attrChange attribute
+ @short The initMutationEvent method is used to initialize the value of a MutationEvent created through the DocumentEvent interface.
+ */
+ public native void initMutationEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Node relatedNodeArg, String prevValueArg, String newValueArg, String attrNameArg, short attrChangeArg);
+ // DOM::MutationEvent* MutationEvent(DOM::MutationEventImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/NamedNodeMap.java b/kdejava/koala/org/kde/koala/NamedNodeMap.java
new file mode 100644
index 00000000..492bff9d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/NamedNodeMap.java
@@ -0,0 +1,152 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Objects implementing the <code>NamedNodeMap</code> interface are
+ used to represent collections of nodes that can be accessed by
+ name. Note that <code>NamedNodeMap</code> does not inherit from
+ <code>ArrayList</code> ; <code>NamedNodeMap</code> s are not
+ maintained in any particular order. Objects contained in an object
+ implementing <code>NamedNodeMap</code> may also be accessed by an
+ ordinal index, but this is simply to allow convenient enumeration
+ of the contents of a <code>NamedNodeMap</code> , and does not
+ imply that the DOM specifies an order to these Nodes.
+ @short Objects implementing the <code>NamedNodeMap</code> interface are used to represent collections of nodes that can be accessed by name.
+
+*/
+public class NamedNodeMap implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected NamedNodeMap(Class dummy){}
+
+ public NamedNodeMap() {
+ newNamedNodeMap();
+ }
+ private native void newNamedNodeMap();
+ public NamedNodeMap(NamedNodeMap other) {
+ newNamedNodeMap(other);
+ }
+ private native void newNamedNodeMap(NamedNodeMap other);
+ /**
+ The number of nodes in the map. The range of valid child node
+ indices is 0 to <code>length-1</code> inclusive.
+ @short The number of nodes in the map.
+ */
+ public native long length();
+ /**
+ Retrieves a node specified by name.
+ @param name Name of a node to retrieve.
+ @return A <code>Node</code> (of any type) with the specified
+ name, or <code>null</code> if the specified name did not
+ identify any node in the map.
+
+ @short Retrieves a node specified by name.
+ */
+ public native Node getNamedItem(String name);
+ /**
+ Adds a node using its <code>nodeName</code> attribute.
+ As the <code>nodeName</code> attribute is used to derive the
+ name which the node must be stored under, multiple nodes of
+ certain types (those that have a "special" string value) cannot
+ be stored as the names would clash. This is seen as preferable
+ to allowing nodes to be aliased.
+ @param arg A node to store in a named node map. The node will
+ later be accessible using the value of the <code>nodeName</code>
+ attribute of the node. If a node with that name is
+ already present in the map, it is replaced by the new one.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this
+ <code>NamedNodeMap</code> is readonly.
+ INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an
+ <code>Attr</code> that is already an attribute of another
+ <code>Element</code> object. The DOM user must explicitly clone
+ <code>Attr</code> nodes to re-use them in other elements.
+ @return If the new <code>Node</code> replaces an existing
+ node with the same name the previously existing <code>Node</code>
+ is returned, otherwise <code>null</code> is returned.
+
+ @short Adds a node using its <code>nodeName</code> attribute.
+ */
+ public native Node setNamedItem(Node arg);
+ /**
+ Removes a node specified by name. If the removed node is an
+ <code>Attr</code> with a default value it is immediately
+ replaced.
+ @param name The name of a node to remove.
+ @return The node removed from the map or <code>null</code> if
+ no node with such a name exists.
+
+ @short Removes a node specified by name.
+ */
+ public native Node removeNamedItem(String name);
+ /**
+ Returns the <code>index</code> th item in the map. If
+ <code>index</code> is greater than or equal to the number of nodes
+ in the map, this returns <code>null</code> .
+ @param index Index into the map.
+ @return The node at the <code>index</code> th position in the
+ <code>NamedNodeMap</code> , or <code>null</code> if that is
+ not a valid index.
+
+ @short Returns the <code>index</code> th item in the map.
+ */
+ public native Node item(long index);
+ /**
+ Introduced in DOM Level 2
+ Retrieves a node specified by local name and namespace URI. HTML-only
+ DOM implementations do not need to implement this method.
+ @param namespaceURI The namespace URI of the node to retrieve.
+ @param localName The local name of the node to retrieve.
+ @return A Node (of any type) with the specified local name and namespace
+ URI, or null if they do not identify any node in this map.
+
+ @short Introduced in DOM Level 2
+ */
+ public native Node getNamedItemNS(String namespaceURI, String localName);
+ /**
+ Introduced in DOM Level 2
+ Adds a node using its namespaceURI and localName. If a node with that
+ namespace URI and that local name is already present in this map, it is
+ replaced by the new one.
+ HTML-only DOM implementations do not need to implement this method.
+ @param arg A node to store in this map. The node will later be
+ accessible using the value of its namespaceURI and localName attributes.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
+ INUSE_ATTRIBUTE_ERR: Raised if arg is an Attr that is already an
+ attribute of another Element object. The DOM user must explicitly clone
+ Attr nodes to re-use them in other elements.
+ @return If the new Node replaces an existing node the replaced Node is
+ returned, otherwise null is returned.
+
+ @short Introduced in DOM Level 2
+ */
+ public native Node setNamedItemNS(Node arg);
+ /**
+ Introduced in DOM Level 2
+ Removes a node specified by local name and namespace URI. A removed
+ attribute may be known to have a default value when this map contains
+ the attributes attached to an element, as returned by the attributes
+ attribute of the Node interface. If so, an attribute immediately appears
+ containing the default value as well as the corresponding namespace URI,
+ local name, and prefix when applicable.
+ HTML-only DOM implementations do not need to implement this method.
+ @param namespaceURI The namespace URI of the node to remove.
+ @param localName The local name of the node to remove.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
+ @return The node removed from this map if a node with such a local name
+ and namespace URI exists.
+
+ @short Introduced in DOM Level 2
+ */
+ public native Node removeNamedItemNS(String namespaceURI, String localName);
+ /**
+ not part of the DOM
+ @short
+ */
+ // DOM::NamedNodeMapImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+ // DOM::NamedNodeMap* NamedNodeMap(DOM::NamedNodeMapImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/NetAccess.java b/kdejava/koala/org/kde/koala/NetAccess.java
new file mode 100644
index 00000000..d8146aa5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/NetAccess.java
@@ -0,0 +1,359 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ Net Transparency.
+ NetAccess allows you to do simple file operation (load, save,
+ copy, delete...) without working with KIO.Job directly.
+ Whereas a KIO.Job is asynchronous, meaning that the
+ developer has to connect slots for it, KIO.NetAccess provides
+ synchronous downloads and uploads, as well as temporary file
+ creation and removal. The functions appear to be blocking,
+ but the Qt event loop continues running while the operations
+ are handled. This means that the GUI will not freeze.
+ This class isn't meant to be used as a class but only as a simple
+ namespace for static functions, though an instance of the class
+ is built for internal purposes.
+ Port to kio done by David Faure, faure@kde.org
+ @short Provides an easy, synchronous interface to KIO file operations.
+
+*/
+public class NetAccess extends QObject {
+ protected NetAccess(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Downloads a file from an arbitrary URL (<code>src</code>) to a
+ temporary file on the local filesystem (<code>target</code>).
+ If the argument
+ for <code>target</code> is an empty string, download will generate a
+ unique temporary filename in /tmp. Since <code>target</code> is a reference
+ to String you can access this filename easily. Download will
+ return true if the download was successful, otherwise false.
+ Special case:
+ If the URL is of kind file:, then no downloading is
+ processed but the full filename is returned in <code>target.</code>
+ That means you <b>have</b> to take care about the <code>target</code> argument.
+ (This is very easy to do, please see the example below.)
+ Download is synchronous. That means you can use it like
+ this, (assuming <code>u</code> is a string which represents a URL and your
+ application has a loadFile() function):
+ <pre>
+ String tmpFile;
+ if( KIO.NetAccess.download( u, tmpFile, window ) )
+ {
+ loadFile( tmpFile );
+ KIO.NetAccess.removeTempFile( tmpFile );
+ } else {
+ KMessageBox.error(this, KIO.NetAccess.lastErrorString() );
+ }
+ </pre>
+ Of course, your user interface will still process exposure/repaint
+ events during the download.
+ If the download fails, lastError() and lastErrorString() will be set.
+ @param src URL Reference to the file to download.
+ @param target String containing the final local location of the
+ file. If you insert an empty string, it will
+ return a location in a temporary spot. <B>Note:</B>
+ you are responsible for the removal of this file when
+ you are finished reading it using removeTempFile.
+ @param window main window associated with this job. This is used to
+ automatically cache and discard authentication information
+ as needed. If NULL, authentication information will be
+ cached only for a short duration after which the user will
+ again be prompted for passwords as needed.
+ @return true if successful, false for failure. Use lastErrorString() to
+ get the reason it failed.
+
+ @short Downloads a file from an arbitrary URL (<code>src</code>) to a temporary file on the local filesystem (<code>target</code>).
+ @see #lastErrorString
+ */
+ public static native boolean download(KURL src, StringBuffer target, QWidget window);
+ /**
+ Removes the specified file if and only if it was created
+ by KIO.NetAccess as a temporary file for a former download.
+ Note: This means that if you created your temporary with KTempFile,
+ use KTempFile.unlink() or KTempFile.setAutoDelete() to have
+ it removed.
+ @param name Path to temporary file to remove. May not be
+ empty.
+ @short Removes the specified file if and only if it was created by KIO.NetAccess as a temporary file for a former download.
+ */
+ public static native void removeTempFile(String name);
+ /**
+ Uploads file <code>src</code> to URL <code>target.</code>
+ Both must be specified, unlike download.
+ Note that this is assumed to be used for saving a file over
+ the network, so overwriting is set to true. This is not the
+ case with copy.
+ @param src URL Referencing the file to upload.
+ @param target URL containing the final location of the file.
+ @param window main window associated with this job. This is used to
+ automatically cache and discard authentication information
+ as needed. If NULL, authentication information will be cached
+ only for a short duration after which the user will again be
+ prompted for passwords as needed.
+ @return true if successful, false for failure
+
+ @short Uploads file <code>src</code> to URL <code>target.</code>
+ */
+ public static native boolean upload(String src, KURL target, QWidget window);
+ /**
+ Alternative to upload for copying over the network.
+ Overwrite is false, so this will fail if <code>target</code> exists.
+ This one takes two URLs and is a direct equivalent
+ of KIO.file_copy (not KIO.copy!).
+ It will be renamed file_copy in KDE4, so better use file_copy.
+ @param src URL Referencing the file to upload.
+ @param target URL containing the final location of the file.
+ @param window main window associated with this job. This is used to
+ automatically cache and discard authentication information
+ as needed. If NULL, authentication information will be cached
+ only for a short duration after which the user will again be
+ prompted for passwords as needed.
+ @return true if successful, false for failure
+
+ @short Alternative to upload for copying over the network.
+ */
+ public static native boolean copy(KURL src, KURL target, QWidget window);
+ /**
+ Full-fledged equivalent of KIO.file_copy
+ @short Full-fledged equivalent of KIO.file_copy
+ */
+ public static native boolean file_copy(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume, QWidget window);
+ public static native boolean file_copy(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume);
+ public static native boolean file_copy(KURL src, KURL dest, int permissions, boolean overwrite);
+ public static native boolean file_copy(KURL src, KURL dest, int permissions);
+ public static native boolean file_copy(KURL src, KURL dest);
+ /**
+ Full-fledged equivalent of KIO.file_move.
+ Moves or renames one file.
+ @short Full-fledged equivalent of KIO.file_move.
+ */
+ public static native boolean file_move(KURL src, KURL target, int permissions, boolean overwrite, boolean resume, QWidget window);
+ public static native boolean file_move(KURL src, KURL target, int permissions, boolean overwrite, boolean resume);
+ public static native boolean file_move(KURL src, KURL target, int permissions, boolean overwrite);
+ public static native boolean file_move(KURL src, KURL target, int permissions);
+ public static native boolean file_move(KURL src, KURL target);
+ /**
+ Alternative method for copying over the network.
+ Overwrite is false, so this will fail if <code>target</code> exists.
+ This one takes two URLs and is a direct equivalent
+ of KIO.copy!.
+ This means that it can copy files and directories alike
+ (it should have been named copy()).
+ @param src URL Referencing the file to upload.
+ @param target URL containing the final location of the
+ file.
+ @param window main window associated with this job. This is used to
+ automatically cache and discard authentication information
+ as needed. If NULL, authentication information will be cached
+ only for a short duration after which the user will again be
+ prompted for passwords as needed.
+ @return true if successful, false for failure
+
+ @short Alternative method for copying over the network.
+ */
+ public static native boolean dircopy(KURL src, KURL target, QWidget window);
+ /**
+ Overloaded method, which takes a list of source URLs
+ @short Overloaded method, which takes a list of source URLs
+ */
+ public static native boolean dircopy(ArrayList src, KURL target, QWidget window);
+ public static native boolean dircopy(ArrayList src, KURL target);
+ /**
+ Full-fledged equivalent of KIO.move.
+ Moves or renames one file or directory.
+ @short Full-fledged equivalent of KIO.move.
+ */
+ public static native boolean move(KURL src, KURL target, QWidget window);
+ public static native boolean move(KURL src, KURL target);
+ /**
+ Full-fledged equivalent of KIO.move.
+ Moves or renames a list of files or directories.
+ @short Full-fledged equivalent of KIO.move.
+ */
+ public static native boolean move(ArrayList src, KURL target, QWidget window);
+ public static native boolean move(ArrayList src, KURL target);
+ /**
+ Tests whether a URL exists.
+ @param url the URL we are testing
+ @param source if true, we want to read from that URL.
+ If false, we want to write to it.
+ IMPORTANT: see documentation for KIO.stat for more details about this.
+ @param window main window associated with this job. This is used to
+ automatically cache and discard authentication information
+ as needed. If NULL, authentication information will be
+ cached only for a short duration after which the user will
+ again be prompted for passwords as needed.
+ @return true if the URL exists and we can do the operation specified by
+ <code>source</code>, false otherwise
+
+ @short Tests whether a URL exists.
+ */
+ public static native boolean exists(KURL url, boolean source, QWidget window);
+ /**
+ Tests whether a URL exists and return information on it.
+ This is a convenience function for KIO.stat
+ (it saves creating a slot and testing for the job result).
+ @param url The URL we are testing.
+ @param entry The result of the stat. Iterate over the list
+ of atoms to get hold of name, type, size, etc., or use KFileItem.
+ @param window main window associated with this job. This is used to
+ automatically cache and discard authentication information
+ as needed. If NULL, authentication information will be
+ cached only for a short duration after which the user will
+ again be prompted for passwords as needed.
+ @return true if successful, false for failure
+
+ @short Tests whether a URL exists and return information on it.
+ */
+ // bool stat(const KURL& arg1,KIO::UDSEntry& arg2,QWidget* arg3); >>>> NOT CONVERTED
+ /**
+ Tries to map a local URL for the given URL.
+ This is a convenience function for KIO.stat + parsing the
+ resulting UDSEntry.
+ @param url The URL we are testing.
+ @param window main window associated with this job. This is used to
+ automatically cache and discard authentication information
+ as needed. If NULL, authentication information will be
+ cached only for a short duration after which the user will
+ again be prompted for passwords as needed.
+ @return a local URL corresponding to the same ressource than the
+ original URL, or the original URL if no local URL can be mapped
+
+ @short Tries to map a local URL for the given URL.
+ */
+ public static native KURL mostLocalURL(KURL url, QWidget window);
+ /**
+ Deletes a file or a directory in a synchronous way.
+ This is a convenience function for KIO.del
+ (it saves creating a slot and testing for the job result).
+ @param url The file or directory to delete.
+ @param window main window associated with this job. This is used to
+ automatically cache and discard authentication information
+ as needed. If NULL, authentication information will be
+ cached only for a short duration after which the user will
+ again be prompted for passwords as needed.
+ @return true on success, false on failure.
+
+ @short Deletes a file or a directory in a synchronous way.
+ */
+ public static native boolean del(KURL url, QWidget window);
+ /**
+ Creates a directory in a synchronous way.
+ This is a convenience function for <code>KIO</code>.mkdir
+ (it saves creating a slot and testing for the job result).
+ @param url The directory to create.
+ @param window main window associated with this job. This is used to
+ automatically cache and discard authentication information
+ as needed. If NULL, authentication information will be
+ cached only for a short duration after which the user will
+ again be prompted for passwords as needed.
+ @param permissions directory permissions.
+ @return true on success, false on failure.
+
+ @short Creates a directory in a synchronous way.
+ */
+ public static native boolean mkdir(KURL url, QWidget window, int permissions);
+ public static native boolean mkdir(KURL url, QWidget window);
+ /**
+ Executes a remote process via the fish ioslave in a synchronous way.
+ @param url The remote machine where the command should be executed.
+ e.g. fish://someuser\@somehost:sshport/
+ some special cases exist.
+ fish://someuser\@localhost/
+ will use su instead of ssh to connect and execute the command.
+ fish://someuser\@localhost:port/
+ will use ssh to connect and execute the command.
+ @param command The command to be executed.
+ @param window main window associated with this job. This is used to
+ automatically cache and discard authentication information
+ as needed. If NULL, authentication information will be
+ cached only for a short duration after which the user will
+ again be prompted for passwords as needed.
+ @return The resulting output of the <code>command</code> that is executed.
+
+ @short Executes a remote process via the fish ioslave in a synchronous way.
+ */
+ public static native String fish_execute(KURL url, String command, QWidget window);
+ /**
+ This function executes a job in a synchronous way.
+ If a job fetches some data, pass a byte[] pointer as data parameter to this function
+ and after the function returns it will contain all the data fetched by this job.
+ <code>
+ KIO.Job job = KIO.get( url, false, false );
+ QMap<String, String> metaData;
+ metaData.insert( "PropagateHttpHeader", "true" );
+ if ( NetAccess.synchronousRun( job, 0, &data, &url, &metaData ) ) {
+ String responseHeaders = metaData[ "HTTP-Headers" ];
+ kdDebug()<<"Response header = "<< responseHeaders << endl;
+ }
+ </code>
+ @param job job which the function will run. Note that after this function
+ finishes running, job is deleted and you can't access it anymore!
+ @param window main window associated with this job. This is used to
+ automatically cache and discard authentication information
+ as needed. If NULL, authentication information will be
+ cached only for a short duration after which the user will
+ again be prompted for passwords as needed.
+ @param data if passed and relevant to this job then it will contain the data
+ that was fetched by the job
+ @param finalURL if passed will contain the final url of this job (it might differ
+ from the one it was created with if there was a redirection)
+ @param metaData you can pass a pointer to the map with meta data you wish to
+ set on the job. After the job finishes this map will hold all the
+ meta data from the job.
+ @return true on success, false on failure.
+
+ @short This function executes a job in a synchronous way.
+ */
+ // bool synchronousRun(KIO::Job* arg1,QWidget* arg2,QByteArray* arg3,KURL* arg4,QMap<QString, QString>* arg5); >>>> NOT CONVERTED
+ public static native boolean synchronousRun(Job job, QWidget window, byte[] data, KURL finalURL);
+ public static native boolean synchronousRun(Job job, QWidget window, byte[] data);
+ public static native boolean synchronousRun(Job job, QWidget window);
+ /**
+ This function is not implemented!?
+ (only mimetypeInternal)
+ Determines the mimetype of a given URL.
+ This is a convenience function for KIO.mimetype. You
+ should call this only when really necessary.
+ KMimeType.findByURL can determine extension a lot faster, but
+ less reliably for remote files. Only when findByURL() returns
+ unknown (application/octet-stream) then this one should be
+ used.
+ @param url The URL whose mimetype we are interested in.
+ @param window main window associated with this job. This is used to
+ automatically cache and discard authentication information
+ as needed. If NULL, authentication information will be
+ cached only for a short duration after which the user will
+ again be prompted for passwords as needed.
+ @return The mimetype name.
+
+ @short
+ */
+ public static native String mimetype(KURL url, QWidget window);
+ /**
+ Returns the error string for the last job, in case it failed.
+ Note that this is already translated.
+ @return the last error string, or null
+
+ @short Returns the error string for the last job, in case it failed.
+ */
+ public static native String lastErrorString();
+ /**
+ Returns the error code for the last job, in case it failed.
+ @return the last error code
+
+ @short Returns the error code for the last job, in case it failed.
+ */
+ public static native int lastError();
+}
diff --git a/kdejava/koala/org/kde/koala/Node.java b/kdejava/koala/org/kde/koala/Node.java
new file mode 100644
index 00000000..df8c555a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Node.java
@@ -0,0 +1,425 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ The <code>Node</code> interface is the primary datatype for the
+ entire Document Object Model. It represents a single node in the
+ document tree. While all objects implementing the <code>Node</code>
+ interface expose methods for dealing with children, not all
+ objects implementing the <code>Node</code> interface may have
+ children. For example, <code>Text</code> nodes may not have
+ children, and adding children to such nodes results in a
+ <code>DOMException</code> being raised.
+ The attributes <code>nodeName</code> , <code>nodeValue</code>
+ and <code>attributes</code> are included as a mechanism to get at
+ node information without casting down to the specific derived
+ interface. In cases where there is no obvious mapping of these
+ attributes for a specific <code>nodeType</code> (e.g.,
+ <code>nodeValue</code> for an Element or <code>attributes</code> for a
+ Comment), this returns <code>null</code> . Note that the
+ specialized interfaces may contain additional and more convenient
+ mechanisms to get and set the relevant information.
+ @short The <code>Node</code> interface is the primary datatype for the entire Document Object Model.
+
+*/
+public class Node implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected Node(Class dummy){}
+
+ public Node() {
+ newNode();
+ }
+ private native void newNode();
+ public Node(Node other) {
+ newNode(other);
+ }
+ private native void newNode(Node other);
+ /**
+ @short
+ */
+ // DOM::Node* Node(DOM::NodeImpl* arg1); >>>> NOT CONVERTED
+ public native boolean op_equals(Node other);
+ public native boolean op_not_equals(Node other);
+ /**
+ The name of this node, depending on its type; see the table
+ above.
+ @short The name of this node, depending on its type; see the table above.
+ */
+ public native String nodeName();
+ /**
+ The value of this node, depending on its type; see the table
+ above.
+ @short The value of this node, depending on its type; see the table above.
+ */
+ public native String nodeValue();
+ /**
+ see nodeValue
+ @short see nodeValue
+ */
+ public native void setNodeValue(String arg1);
+ /**
+ A code representing the type of the underlying object, as
+ defined above.
+ @short A code representing the type of the underlying object, as defined above.
+ */
+ public native short nodeType();
+ /**
+ The parent of this node. All nodes, except <code>Document</code>
+ , <code>DocumentFragment</code> , and <code>Attr</code>
+ may have a parent. However, if a node has just been
+ created and not yet added to the tree, or if it has been
+ removed from the tree, this is <code>null</code> .
+ @short The parent of this node.
+ */
+ public native Node parentNode();
+ /**
+ A <code>ArrayList</code> that contains all children of this
+ node. If there are no children, this is a <code>ArrayList</code>
+ containing no nodes. The content of the returned
+ <code>ArrayList</code> is &quot;live&quot; in the sense that, for
+ instance, changes to the children of the node object that it
+ was created from are immediately reflected in the nodes
+ returned by the <code>ArrayList</code> accessors; it is not a
+ static snapshot of the content of the node. This is true for
+ every <code>ArrayList</code> , including the ones returned by
+ the <code>getElementsByTagName</code> method.
+ @short A <code>NodeList</code> that contains all children of this node.
+ */
+ public native ArrayList childNodes();
+ /**
+ The first child of this node. If there is no such node, this
+ returns <code>null</code> .
+ @short The first child of this node.
+ */
+ public native Node firstChild();
+ /**
+ The last child of this node. If there is no such node, this
+ returns <code>null</code> .
+ @short The last child of this node.
+ */
+ public native Node lastChild();
+ /**
+ The node immediately preceding this node. If there is no such
+ node, this returns <code>null</code> .
+ @short The node immediately preceding this node.
+ */
+ public native Node previousSibling();
+ /**
+ The node immediately following this node. If there is no such
+ node, this returns <code>null</code> .
+ @short The node immediately following this node.
+ */
+ public native Node nextSibling();
+ /**
+ A <code>NamedNodeMap</code> containing the attributes of this
+ node (if it is an <code>Element</code> ) or <code>null</code>
+ otherwise.
+ @short A <code>NamedNodeMap</code> containing the attributes of this node (if it is an <code>Element</code> ) or <code>null</code> otherwise.
+ */
+ public native NamedNodeMap attributes();
+ /**
+ The <code>Document</code> object associated with this node.
+ This is also the <code>Document</code> object used to create
+ new nodes. When this node is a <code>Document</code> this is
+ <code>null</code> .
+ @short The <code>Document</code> object associated with this node.
+ */
+ public native Document ownerDocument();
+ /**
+ Inserts the node <code>newChild</code> before the existing
+ child node <code>refChild</code> . If <code>refChild</code>
+ is <code>null</code> , insert <code>newChild</code> at the
+ end of the list of children.
+ If <code>newChild</code> is a <code>DocumentFragment</code>
+ object, all of its children are inserted, in the same
+ order, before <code>refChild</code> . If the <code>newChild</code>
+ is already in the tree, it is first removed.
+ @param newChild The node to insert.
+ @param refChild The reference node, i.e., the node before which
+ the new node must be inserted.
+ WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was
+ created from a different document than the one that created
+ this node.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
+ NOT_FOUND_ERR: Raised if <code>refChild</code> is not a
+ child of this node.
+ @return The node being inserted.
+
+ @short Inserts the node <code>newChild</code> before the existing child node <code>refChild</code> .
+ */
+ public native Node insertBefore(Node newChild, Node refChild);
+ /**
+ Replaces the child node <code>oldChild</code> with
+ <code>newChild</code> in the list of children, and returns the
+ <code>oldChild</code> node. If the <code>newChild</code> is
+ already in the tree, it is first removed.
+ @param newChild The new node to put in the child list.
+ @param oldChild The node being replaced in the list.
+ WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was
+ created from a different document than the one that created
+ this node.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
+ NOT_FOUND_ERR: Raised if <code>oldChild</code> is not a
+ child of this node.
+ @return The node replaced.
+
+ @short Replaces the child node <code>oldChild</code> with <code>newChild</code> in the list of children, and returns the <code>oldChild</code> node.
+ */
+ public native Node replaceChild(Node newChild, Node oldChild);
+ /**
+ Removes the child node indicated by <code>oldChild</code>
+ from the list of children, and returns it.
+ @param oldChild The node being removed.
+ NOT_FOUND_ERR: Raised if <code>oldChild</code> is not a
+ child of this node.
+ @return The node removed.
+
+ @short Removes the child node indicated by <code>oldChild</code> from the list of children, and returns it.
+ */
+ public native Node removeChild(Node oldChild);
+ /**
+ Adds the node <code>newChild</code> to the end of the list of
+ children of this node. If the <code>newChild</code> is
+ already in the tree, it is first removed.
+ @param newChild The node to add.
+ If it is a <code>DocumentFragment</code> object, the entire
+ contents of the document fragment are moved into the child list
+ of this node
+ WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was
+ created from a different document than the one that created
+ this node.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
+ @return The node added.
+
+ @short Adds the node <code>newChild</code> to the end of the list of children of this node.
+ */
+ public native Node appendChild(Node newChild);
+ /**
+ This is a convenience method to allow easy determination of
+ whether a node has any children.
+ @return <code>true</code> if the node has any children,
+ <code>false</code> if the node has no children.
+
+ @short This is a convenience method to allow easy determination of whether a node has any children.
+ */
+ public native boolean hasChildNodes();
+ /**
+ Returns a duplicate of this node, i.e., serves as a generic
+ copy constructor for nodes. The duplicate node has no parent (
+ <code>parentNode</code> returns <code>null</code> .).
+ Cloning an <code>Element</code> copies all attributes and
+ their values, including those generated by the XML processor to
+ represent defaulted attributes, but this method does not copy
+ any text it contains unless it is a deep clone, since the text
+ is contained in a child <code>Text</code> node. Cloning any
+ other type of node simply returns a copy of this node.
+ @param deep If <code>true</code> , recursively clone the
+ subtree under the specified node; if <code>false</code> ,
+ clone only the node itself (and its attributes, if it is an
+ <code>Element</code> ).
+ @return The duplicate node.
+
+ @short Returns a duplicate of this node, i.
+ */
+ public native Node cloneNode(boolean deep);
+ /**
+ Modified in DOM Level 2
+ Puts all Text nodes in the full depth of the sub-tree underneath this
+ Node, including attribute nodes, into a "normal" form where only
+ structure (e.g., elements, comments, processing instructions, CDATA
+ sections, and entity references) separates Text nodes, i.e., there are
+ neither adjacent Text nodes nor empty Text nodes. This can be used to
+ ensure that the DOM view of a document is the same as if it were saved
+ and re-loaded, and is useful when operations (such as XPointer
+ [XPointer] lookups) that depend on a particular document tree structure
+ are to be used.
+ Note: In cases where the document contains CDATASections, the normalize
+ operation alone may not be sufficient, since XPointers do not
+ differentiate between Text nodes and CDATASection nodes.
+ @short Modified in DOM Level 2
+ */
+ public native void normalize();
+ /**
+ Introduced in DOM Level 2
+ Tests whether the DOM implementation implements a specific feature and
+ that feature is supported by this node.
+ @param feature The name of the feature to test. This is the same name
+ which can be passed to the method hasFeature on DOMImplementation.
+ @param version This is the version number of the feature to test. In
+ Level 2, version 1, this is the string "2.0". If the version is not
+ specified, supporting any version of the feature will cause the method
+ to return true.
+ @return Returns true if the specified feature is supported on this node,
+ false otherwise.
+
+ @short Introduced in DOM Level 2
+ */
+ public native boolean isSupported(String feature, String version);
+ /**
+ Introduced in DOM Level 2
+ The namespace URI of this node, or null if it is unspecified.
+ This is not a computed value that is the result of a namespace lookup
+ based on an examination of the namespace declarations in scope. It is
+ merely the namespace URI given at creation time. For nodes of any type
+ other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM
+ Level 1 method, such as createElement from the Document interface, this
+ is always null.
+ Note: Per the Namespaces in XML Specification [Namespaces] an attribute
+ does not inherit its namespace from the element it is attached to. If an
+ attribute is not explicitly given a namespace, it simply has no
+ namespace.
+ @short Introduced in DOM Level 2
+ */
+ public native String namespaceURI();
+ /**
+ Introduced in DOM Level 2
+ The namespace prefix of this node, or null if it is unspecified.
+ Note that setting this attribute, when permitted, changes the nodeName
+ attribute, which holds the qualified name, as well as the tagName and
+ name attributes of the Element and Attr interfaces, when applicable.
+ Note also that changing the prefix of an attribute that is known to have
+ a default value, does not make a new attribute with the default value
+ and the original prefix appear, since the namespaceURI and localName do
+ not change.
+ For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and
+ nodes created with a DOM Level 1 method, such as createElement from the
+ Document interface, this is always null.
+ @short Introduced in DOM Level 2
+ */
+ public native String prefix();
+ /**
+ see prefix
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
+ NAMESPACE_ERR: Raised if the specified prefix is malformed, if the
+ namespaceURI of this node is null, if the specified prefix is "xml" and
+ the namespaceURI of this node is different from
+ "http://www.w3.org/XML/1998/namespace", if this node is an attribute and
+ the specified prefix is "xmlns" and the namespaceURI of this node is
+ different from "http://www.w3.org/2000/xmlns/", or if this node is an
+ attribute and the qualifiedName of this node is "xmlns" [Namespaces].
+ @short see prefix
+ */
+ public native void setPrefix(String prefix);
+ /**
+ Introduced in DOM Level 2
+ Returns the local part of the qualified name of this node.
+ For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and
+ nodes created with a DOM Level 1 method, such as createElement from the
+ Document interface, this is always null.
+ @short Introduced in DOM Level 2
+ */
+ public native String localName();
+ /**
+ Returns whether this node (if it is an element) has any attributes.
+ @return a boolean. True if this node has any attributes, false otherwise.
+ Introduced in DOM Level 2
+
+ @short Returns whether this node (if it is an element) has any attributes.
+ */
+ public native boolean hasAttributes();
+ /**
+ Introduced in DOM Level 2
+ This method is from the EventTarget interface
+ This method allows the registration of event listeners on the event
+ target. If an EventListener is added to an EventTarget while it is
+ processing an event, it will not be triggered by the current actions but
+ may be triggered during a later stage of event flow, such as the
+ bubbling phase.
+ If multiple identical EventListeners are registered on the same
+ EventTarget with the same parameters the duplicate instances are
+ discarded. They do not cause the EventListener to be called twice and
+ since they are discarded they do not need to be removed with the
+ removeEventListener method. Parameters
+ @param type The event type for which the user is registering
+ @param listener The listener parameter takes an interface implemented by
+ the user which contains the methods to be called when the event occurs.
+ @param useCapture If true, useCapture indicates that the user wishes to
+ initiate capture. After initiating capture, all events of the specified
+ type will be dispatched to the registered EventListener before being
+ dispatched to any EventTargets beneath them in the tree. Events which
+ are bubbling upward through the tree will not trigger an EventListener
+ designated to use capture.
+ @short Introduced in DOM Level 2 This method is from the EventTarget interface
+ */
+ public native void addEventListener(String type, EventListener listener, boolean useCapture);
+ /**
+ Introduced in DOM Level 2
+ This method is from the EventTarget interface
+ This method allows the removal of event listeners from the event target.
+ If an EventListener is removed from an EventTarget while it is
+ processing an event, it will not be triggered by the current actions.
+ EventListeners can never be invoked after being removed.
+ Calling removeEventListener with arguments which do not identify any
+ currently registered EventListener on the EventTarget has no effect.
+ @param type Specifies the event type of the EventListener being removed.
+ @param listener The EventListener parameter indicates the EventListener
+ to be removed.
+ @param useCapture Specifies whether the EventListener being removed was
+ registered as a capturing listener or not. If a listener was registered
+ twice, one with capture and one without, each must be removed
+ separately. Removal of a capturing listener does not affect a
+ non-capturing version of the same listener, and vice versa.
+ @short Introduced in DOM Level 2 This method is from the EventTarget interface
+ */
+ public native void removeEventListener(String type, EventListener listener, boolean useCapture);
+ /**
+ Introduced in DOM Level 2
+ This method is from the EventTarget interface
+ This method allows the dispatch of events into the implementations event
+ model. Events dispatched in this manner will have the same capturing and
+ bubbling behavior as events dispatched directly by the implementation.
+ The target of the event is the EventTarget on which dispatchEvent is
+ called.
+ @param evt Specifies the event type, behavior, and contextual
+ information to be used in processing the event.
+ @return The return value of dispatchEvent indicates whether any of the
+ listeners which handled the event called preventDefault. If
+ preventDefault was called the value is false, else the value is true.
+
+ @short Introduced in DOM Level 2 This method is from the EventTarget interface
+ */
+ public native boolean dispatchEvent(Event evt);
+ /**
+ not part of the DOM.
+ @return the element id, in case this is an element, 0 otherwise
+
+ @short
+ */
+ public native int elementId();
+ /**
+ tests if this Node is 0. Useful especially, if casting to a derived
+ class:
+ <pre>
+ Node n = .....;
+ // try to convert into an Element:
+ Element e = n;
+ if( e.isNull() )
+ kdDebug(300) << "node isn't an element node" << endl;
+ </pre>
+ @short tests if this Node is 0.
+ */
+ public native boolean isNull();
+ /**
+ @short
+ */
+ // DOM::NodeImpl* handle(); >>>> NOT CONVERTED
+ /**
+ @short
+ */
+ public native long index();
+ public native void applyChanges();
+ /**
+ not part of the DOM.
+ @return the exact coordinates and size of this element.
+
+ @short not part of the DOM.
+ */
+ public native QRect getRect();
+}
diff --git a/kdejava/koala/org/kde/koala/NodeFilter.java b/kdejava/koala/org/kde/koala/NodeFilter.java
new file mode 100644
index 00000000..f642020b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/NodeFilter.java
@@ -0,0 +1,67 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Filters are objects that know how to "filter out" nodes. If an
+ Iterator or <code>TreeWalker</code> is given a filter, before it
+ returns the next node, it applies the filter. If the filter says to
+ accept the node, the Iterator returns it; otherwise, the Iterator
+ looks for the next node and pretends that the node that was
+ rejected was not there.
+ The DOM does not provide any filters. Filter is just an interface
+ that users can implement to provide their own filters.
+ Filters do not need to know how to iterate, nor do they need to
+ know anything about the data structure that is being iterated. This
+ makes it very easy to write filters, since the only thing they have
+ to know how to do is evaluate a single node. One filter may be used
+ with a number of different kinds of Iterators, encouraging code
+ reuse.
+ To create your own custom NodeFilter, define a subclass of
+ CustomNodeFilter which overrides the acceptNode() method and assign
+ an instance of it to the NodeFilter. For more details see the
+ CustomNodeFilter class
+ @short Filters are objects that know how to "filter out" nodes.
+
+*/
+public class NodeFilter implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected NodeFilter(Class dummy){}
+
+ public NodeFilter() {
+ newNodeFilter();
+ }
+ private native void newNodeFilter();
+ public NodeFilter(NodeFilter other) {
+ newNodeFilter(other);
+ }
+ private native void newNodeFilter(NodeFilter other);
+ // DOM::NodeFilter* NodeFilter(DOM::NodeFilterImpl* arg1); >>>> NOT CONVERTED
+ /**
+ Test whether a specified node is visible in the logical view of
+ a TreeWalker or NodeIterator. This function will be called by
+ the implementation of TreeWalker and NodeIterator; it is not
+ intended to be called directly from user code.
+ @param n The node to check to see if it passes the filter or
+ not.
+ @return a constant to determine whether the node is accepted,
+ rejected, or skipped, as defined <a
+ href="#Traversal-NodeFilter-acceptNode-constants"> above </a> .
+
+ @short Test whether a specified node is visible in the logical view of a TreeWalker or NodeIterator.
+ */
+ public native short acceptNode(Node n);
+ /**
+ not part of the DOM
+ @short
+ */
+ // DOM::NodeFilterImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+ public native void setCustomNodeFilter(CustomNodeFilter custom);
+ public native CustomNodeFilter customNodeFilter();
+ public static native NodeFilter createCustom(CustomNodeFilter custom);
+}
diff --git a/kdejava/koala/org/kde/koala/NodeIterator.java b/kdejava/koala/org/kde/koala/NodeIterator.java
new file mode 100644
index 00000000..481428d3
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/NodeIterator.java
@@ -0,0 +1,109 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ NodeIterators are used to step through a set of nodes, e.g. the set
+ of nodes in an ArrayList, the document subtree governed by a
+ particular node, the results of a query, or any other set of nodes.
+ The set of nodes to be iterated is determined by the implementation
+ of the NodeIterator. DOM Level 2 specifies a single NodeIterator
+ implementation for document-order traversal of a document subtree.
+ Instances of these iterators are created by calling
+ DocumentTraversal.createNodeIterator().
+ Any Iterator that returns nodes may implement the
+ <code>NodeIterator</code> interface. Users and vendor libraries may also
+ choose to create Iterators that implement the <code>NodeIterator</code>
+ interface.
+ @short NodeIterators are used to step through a set of nodes, e.
+
+*/
+public class NodeIterator implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected NodeIterator(Class dummy){}
+
+ public NodeIterator() {
+ newNodeIterator();
+ }
+ private native void newNodeIterator();
+ public NodeIterator(NodeIterator other) {
+ newNodeIterator(other);
+ }
+ private native void newNodeIterator(NodeIterator other);
+ /**
+ The root node of the NodeIterator, as specified when it was created.
+ @short The root node of the NodeIterator, as specified when it was created.
+ */
+ public native Node root();
+ /**
+ This attribute determines which node types are presented via the
+ iterator. The available set of constants is defined in the NodeFilter
+ interface. Nodes not accepted by whatToShow will be skipped, but their
+ children may still be considered. Note that this skip takes precedence
+ over the filter, if any.
+ @short This attribute determines which node types are presented via the iterator.
+ */
+ public native long whatToShow();
+ /**
+ The NodeFilter used to screen nodes.
+ @short The NodeFilter used to screen nodes.
+ */
+ public native NodeFilter filter();
+ /**
+ The value of this flag determines whether the children of entity
+ reference nodes are visible to the iterator. If false, they and
+ their descendents will be rejected. Note that this rejection takes
+ precedence over whatToShow and the filter. Also note that this is
+ currently the only situation where NodeIterators may reject a complete
+ subtree rather than skipping individual nodes.
+ To produce a view of the document that has entity references expanded
+ and does not expose the entity reference node itself, use the whatToShow
+ flags to hide the entity reference node and set expandEntityReferences to
+ true when creating the iterator. To produce a view of the document that
+ has entity reference nodes but no entity expansion, use the whatToShow
+ flags to show the entity reference node and set expandEntityReferences to
+ false.
+ @short The value of this flag determines whether the children of entity reference nodes are visible to the iterator.
+ */
+ public native boolean expandEntityReferences();
+ /**
+ Returns the next node in the set and advances the position of
+ the Iterator in the set. After a NodeIterator is created, the
+ first call to nextNode() returns the first node in the set.
+ @return The next <code>Node</code> in the set being iterated
+ over, or <code>null</code> if there are no more members in
+ that set.
+
+ @short Returns the next node in the set and advances the position of the Iterator in the set.
+ */
+ public native Node nextNode();
+ /**
+ Returns the previous node in the set and moves the position of
+ the Iterator backwards in the set.
+ @return The previous <code>Node</code> in the set being
+ iterated over, or <code>null</code> if there are no more
+ members in that set.
+
+ @short Returns the previous node in the set and moves the position of the Iterator backwards in the set.
+ */
+ public native Node previousNode();
+ /**
+ Detaches the NodeIterator from the set which it iterated over,
+ releasing any computational resources and placing the iterator in the
+ INVALID state. After detach has been invoked, calls to nextNode or
+ previousNode will raise the exception INVALID_STATE_ERR.
+ @short Detaches the NodeIterator from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state.
+ */
+ public native void detach();
+ /**
+ not part of the DOM
+ @short
+ */
+ // DOM::NodeIteratorImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+ // DOM::NodeIterator* NodeIterator(DOM::NodeIteratorImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/Notation.java b/kdejava/koala/org/kde/koala/Notation.java
new file mode 100644
index 00000000..919edf7e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Notation.java
@@ -0,0 +1,52 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ This interface represents a notation declared in the DTD. A
+ notation either declares, by name, the format of an unparsed entity
+ (see section 4.7 of the XML 1.0 specification), or is used for
+ formal declaration of Processing Instruction targets (see section
+ 2.6 of the XML 1.0 specification). The <code>nodeName</code>
+ attribute inherited from <code>Node</code> is set to the declared
+ name of the notation.
+ The DOM Level 1 does not support editing <code>Notation</code>
+ nodes; they are therefore readonly.
+ A <code>Notation</code> node does not have any parent.
+ @short This interface represents a notation declared in the DTD.
+
+*/
+public class Notation extends Node {
+ protected Notation(Class dummy){super((Class) null);}
+ public Notation() {
+ super((Class) null);
+ newNotation();
+ }
+ private native void newNotation();
+ public Notation(Notation other) {
+ super((Class) null);
+ newNotation(other);
+ }
+ private native void newNotation(Notation other);
+ public Notation(Node other) {
+ super((Class) null);
+ newNotation(other);
+ }
+ private native void newNotation(Node other);
+ /**
+ The public identifier of this notation. If the public
+ identifier was not specified, this is <code>null</code> .
+ @short The public identifier of this notation.
+ */
+ public native String publicId();
+ /**
+ The system identifier of this notation. If the system
+ identifier was not specified, this is <code>null</code> .
+ @short The system identifier of this notation.
+ */
+ public native String systemId();
+ // DOM::Notation* Notation(DOM::NotationImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/Observer.java b/kdejava/koala/org/kde/koala/Observer.java
new file mode 100644
index 00000000..0d8a0df7
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Observer.java
@@ -0,0 +1,365 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.ArrayList;
+import org.kde.qt.QObject;
+
+/**
+
+ Observer for KIO.Job progress information.
+ This class, of which there is always only one instance,
+ "observes" what jobs do and forwards this information
+ to the progress-info server.
+ It is a DCOP object so that the UI server can call the
+ kill method when the user presses Cancel.
+ Usually jobs are automatically registered by the
+ KIO.Scheduler, so you do not have to care about that.
+ @author David Faure <faure@kde.org>
+
+ @short Observer for KIO.Job progress information.
+
+*/
+public class Observer extends QObject implements DCOPObjectInterface {
+ protected Observer(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Called by the job constructor, to signal its presence to the
+ UI Server.
+ @param job the new job
+ @param showProgress true to show progress, false otherwise
+ @return the progress ID assigned by the UI Server to the Job.
+
+ @short Called by the job constructor, to signal its presence to the UI Server.
+ */
+ public native int newJob(Job job, boolean showProgress);
+ /**
+ Called by the job destructor, to tell the UI Server that
+ the job ended.
+ @param progressId the progress ID of the job, as returned by newJob()
+ @short Called by the job destructor, to tell the UI Server that the job ended.
+ */
+ public native void jobFinished(int progressId);
+ /**
+ Opens a password dialog.
+ @param info the authentication information
+ @return true if successful ("ok" clicked), false otherwise
+
+ @short Opens a password dialog.
+ */
+ public native boolean openPassDlg(AuthInfo info);
+ /**
+ See renamedlg.h
+ @short
+ */
+ public native int open_RenameDlg(Job job, String caption, String src, String dest, int mode, StringBuffer newDest, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc, int mtimeDest);
+ public native int open_RenameDlg(Job job, String caption, String src, String dest, int mode, StringBuffer newDest, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc);
+ public native int open_RenameDlg(Job job, String caption, String src, String dest, int mode, StringBuffer newDest, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest);
+ public native int open_RenameDlg(Job job, String caption, String src, String dest, int mode, StringBuffer newDest, long sizeSrc, long sizeDest, int ctimeSrc);
+ public native int open_RenameDlg(Job job, String caption, String src, String dest, int mode, StringBuffer newDest, long sizeSrc, long sizeDest);
+ public native int open_RenameDlg(Job job, String caption, String src, String dest, int mode, StringBuffer newDest, long sizeSrc);
+ public native int open_RenameDlg(Job job, String caption, String src, String dest, int mode, StringBuffer newDest);
+ /**
+ See skipdlg.h
+ @short
+ */
+ public native int open_SkipDlg(Job job, boolean multi, String error_text);
+ public native void stating(Job arg1, KURL url);
+ public native void mounting(Job arg1, String dev, String point);
+ public native void unmounting(Job arg1, String point);
+ public native void slotTotalSize(Job arg1, long size);
+ public native void slotTotalFiles(Job arg1, long files);
+ public native void slotTotalDirs(Job arg1, long dirs);
+ public native void slotProcessedSize(Job arg1, long size);
+ public native void slotProcessedFiles(Job arg1, long files);
+ public native void slotProcessedDirs(Job arg1, long dirs);
+ public native void slotSpeed(Job arg1, long speed);
+ public native void slotPercent(Job arg1, long percent);
+ public native void slotInfoMessage(Job arg1, String msg);
+ public native void slotCopying(Job arg1, KURL from, KURL to);
+ public native void slotMoving(Job arg1, KURL from, KURL to);
+ public native void slotDeleting(Job arg1, KURL url);
+ public native void slotTransferring(Job arg1, KURL url);
+ public native void slotCreatingDir(Job arg1, KURL dir);
+ public native void slotCanResume(Job arg1, long offset);
+ /**
+ Called by the UI Server (using DCOP) if the user presses cancel.
+ @param progressId the progress ID of the job, as returned by newJob()
+ @short Called by the UI Server (using DCOP) if the user presses cancel.
+ */
+ // void killJob(int arg1); >>>> NOT CONVERTED
+ /**
+ Called by the UI Server (using DCOP) to get all the metadata of the job
+ @param progressId the progress IDof the job, as returned by newJob()
+ @short Called by the UI Server (using DCOP) to get all the metadata of the job
+ */
+ // KIO::MetaData metadata(int arg1); >>>> NOT CONVERTED
+ /**
+ Returns the unique observer object.
+ @return the observer object
+
+ @short Returns the unique observer object.
+ */
+ public static native Observer self();
+ /**
+ Popup a message box. See KIO.SlaveBase.
+ This doesn't use DCOP anymore, it shows the dialog in the application's process.
+ Otherwise, other apps would block when trying to communicate with UIServer.
+ @param progressId the progress ID of the job, as returned by newJob()
+ @param type the type of the message box
+ @param text the text to show
+ @param caption the window caption
+ @param buttonYes the text of the "Yes" button
+ @param buttonNo the text of the "No button
+ @short Popup a message box.
+ */
+ public static native int messageBox(int progressId, int type, String text, String caption, String buttonYes, String buttonNo);
+ /**
+ Popup a message box. See KIO.SlaveBase.
+ This doesn't use DCOP anymore, it shows the dialog in the application's process.
+ Otherwise, other apps would block when trying to communicate with UIServer.
+ @param progressId the progress ID of the job, as returned by newJob()
+ @param type the type of the message box
+ @param text the text to show
+ @param caption the window caption
+ @param buttonYes the text of the "Yes" button
+ @param buttonNo the text of the "No button
+ @param dontAskAgainName A checkbox is added with which further confirmation can be turned off.
+ The string is used to lookup and store the setting in kioslaverc.
+ @short Popup a message box.
+ */
+ public static native int messageBox(int progressId, int type, String text, String caption, String buttonYes, String buttonNo, String dontAskAgainName);
+ public Observer() {
+ super((Class) null);
+ newObserver();
+ }
+ private native void newObserver();
+ /**
+ Returns the object id of the DCOPObject.
+ @return the object's id
+
+ @short Returns the object id of the DCOPObject.
+ */
+ public native String objId();
+ /**
+ Renames a dcop object, if no other with the same name exists
+ Use with care, all dcop signals are disconnected
+ @param objId the new object id
+ @short Renames a dcop object, if no other with the same name exists Use with care, all dcop signals are disconnected
+ */
+ public native boolean setObjId(String objId);
+ /**
+ Dispatches a message.
+ Usually you want to use an IDL
+ compiler to automatically generate an implementation for
+ this function.
+ If this function returns false, then processDynamic()
+ is called.
+ Note to implementators: remember to call the baseclasses
+ implementation. It handles the functions "functions()" and
+ "interfaces()" which return the lists of supported functions
+ and interfaces, respectively.
+ @param fun is the normalized function signature.
+ Such a signature usually looks like
+ foobar(String,int). The return type,
+ qualifiers like "const" etc. are not part of
+ the signature.
+ @param data the received data
+ @param replyType write the reply type in this string
+ @param replyData write the reply data in this array
+ @return true if successful, false otherwise. The default implementation
+ returns false for all <code>fun</code> except "functions()" and
+ "interfaces()".
+
+ @short Dispatches a message.
+ @see DCOPClient#normalizeFunctionSignature
+ @see #functions
+ @see DCOPClient#process
+ */
+ public native boolean process(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for process() but
+ you still want to dispatch some functions dynamically.
+ Dynamically means that methods may appear and vanish
+ during runtime.
+ @param fun is the normalized function signature.
+ Such a signature usually looks like
+ foobar(String,int). The return type,
+ qualifiers like "const" etc. are not part of
+ the signature.
+ @param data the received data
+ @param replyType write the reply type in this string
+ @param replyData write the reply data in this array
+ @return true if successful, false otherwise. The default implementation
+ returns always false.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for process() but you still want to dispatch some functions dynamically.
+ @see #process
+ @see DCOPClient#normalizeFunctionSignature
+ @see #functions
+ @see DCOPClient#process
+ */
+ public native boolean processDynamic(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for functions() but
+ you still want to list some functions dynamically.
+ Dynamically means that the methods may appear and vanish
+ during runtime.
+ @return A list of the additional functions, default is an empty list.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for functions() but you still want to list some functions dynamically.
+ @see #functions
+ */
+ public native ArrayList functionsDynamic();
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for interfaces() but
+ you still want to list some interfaces dynamically.
+ Dynamically means that they may appear and vanish
+ during runtime.
+ @return A list of the additional interfaces, default is an empty list.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for interfaces() but you still want to list some interfaces dynamically.
+ @see #interfaces
+ */
+ public native ArrayList interfacesDynamic();
+ /**
+ Returns the names of the interfaces, specific ones last. The
+ functions gets reimplemented by the IDL compiler. If you don't
+ use the IDL compiler, consider implementing this function
+ manually if you want your object to be easily explorable.
+ @return a list of interfaces
+
+ @short Returns the names of the interfaces, specific ones last.
+ @see #functions
+ */
+ public native ArrayList interfaces();
+ /**
+ Returns the list of functions understood by the object. It gets
+ reimplemented by the IDL compiler. If you don't use the IDL
+ compiler, consider implementing this function manually if you
+ want your object to be easily scriptable.
+ Rationale: functions() allows an interpreter to do client-side
+ type-casting properly.
+ Note to implementators: remember to call the baseclasses
+ implementation.
+ @return a list of functions
+
+ @short Returns the list of functions understood by the object.
+ @see #interfaces
+ @see #process
+ @see #processDynamic
+ @see DCOPClient#normalizeFunctionSignature
+ */
+ public native ArrayList functions();
+ /**
+ Emit <code>signal</code> as DCOP signal from this object with <code>data</code> as
+ arguments
+ @param signal the signal to emit
+ @param data the data to send
+ @short Emit <code>signal</code> as DCOP signal from this object with <code>data</code> as arguments
+ */
+ public native void emitDCOPSignal(String signal, byte[] data);
+ /**
+ Connects to a DCOP signal.
+ @param sender the name of the client that emits the signal. When empty
+ the signal will be passed from any client.
+ @param senderObj the name of the sending object that emits the signal.
+ @param signal the name of the signal. The arguments should match with slot.
+ @param slot The name of the slot to call. Its arguments should match with signal.
+ @param Volatile If true, the connection will not be reestablished when
+ <code>sender</code> unregisters and reregisters with DCOP. In this case the <code>sender</code>
+ must be registered when the connection is made.
+ If false, the connection will be reestablished when <code>sender</code> reregisters.
+ In this case the connection can be made even if <code>sender</code> is not registered
+ at that time.
+
+ <li>
+ <code>Volatile</code> is true and <code>sender</code> does not exist.
+ </li>
+
+ <li>
+ <code>signal</code> and <code>slot</code> do not have matching arguments.
+
+ </li> @return false if a connection could not be established.
+ This will be the case when
+
+ @short Connects to a DCOP signal.
+ */
+ public native boolean connectDCOPSignal(String sender, String senderObj, String signal, String slot, boolean Volatile);
+ /**
+ Disconnects a DCOP signal.
+ A special case is when both <code>sender</code> & <code>signal</code> are empty. In this
+ case all connections related to this object in the current client
+ are disconnected. (Both connections from as well as to this object!)
+ @param sender the name of the client that emits the signal.
+ @param senderObj the name of the object that emits the signal.
+ If empty all objects will be disconnected.
+ @param signal the name of the signal. The arguments should match with slot.
+ If empty all objects will be disconnected.
+ @param slot The name of the slot the signal is connected to.
+ If empty all slots will be disconnected.
+ @return false if no connection(s) where removed.
+
+ @short Disconnects a DCOP signal.
+ */
+ public native boolean disconnectDCOPSignal(String sender, String senderObj, String signal, String slot);
+ /**
+ Returns the DCOPClient responsible for making the call.
+ Only call this function while you are handling a DCOP call.
+ @return the DCOPClient responsible for making the call.
+ This information is only guaranteed to be correct when
+ entering your DCOP function.
+
+ @short Returns the DCOPClient responsible for making the call.
+ */
+ public native DCOPClient callingDcopClient();
+ /**
+ @short
+ */
+ public native void setCallingDcopClient(DCOPClient arg1);
+ /**
+ Checks whether an object with the given id is known in this process.
+ DCOPObjectProxy
+ @return true if an object with the questionable <code>objId</code> is
+ known in this process. This query does not ask proxies.
+
+ @short Checks whether an object with the given id is known in this process.
+ */
+ public static native boolean hasObject(String objId);
+ /**
+ Try to find a dcop object with the given id.
+ This function does not query the DCOPObjectProxy.
+ @param objId the object id to search
+ @return the DCOPObject for the id <code>objId.</code>
+
+ @short Try to find a dcop object with the given id.
+ */
+ public static native DCOPObjectInterface find(String objId);
+ /**
+ Tries to find an object using a partial object id.
+ This function is used for multicasting a DCOP message to
+ several objects inside a single process.
+ @param partialId the partial object id to search for
+ @return a list of DCOPObjects beginning with the string
+ contained in <code>partialId.</code>
+
+ @short Tries to find an object using a partial object id.
+ */
+ // QPtrList<DCOPObject> match(const QCString& arg1); >>>> NOT CONVERTED
+ /**
+ Creates an object id for the QObject <code>obj.</code> This is done
+ using the QObject.name() function.
+ @param obj the object whose name will be used
+ @return the created object id
+
+ @short Creates an object id for the QObject <code>obj.</code>
+ */
+ public static native String objectName(QObject arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/OpenURLEvent.java b/kdejava/koala/org/kde/koala/OpenURLEvent.java
new file mode 100644
index 00000000..58c21bd1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/OpenURLEvent.java
@@ -0,0 +1,33 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QEvent;
+
+/**
+
+ The KParts.OpenURLEvent event informs that a given part has opened a given URL.
+ Applications can use this event to send this information to interested plugins.
+ The event should be sent before opening the URL in the part, so that the plugins
+ can use part().url() to get the old URL.
+ @short The KParts.OpenURLEvent event informs that a given part has opened a given URL.
+
+*/
+public class OpenURLEvent extends Event {
+ protected OpenURLEvent(Class dummy){super((Class) null);}
+ public OpenURLEvent(ReadOnlyPart part, KURL url, URLArgs args) {
+ super((Class) null);
+ newOpenURLEvent(part,url,args);
+ }
+ private native void newOpenURLEvent(ReadOnlyPart part, KURL url, URLArgs args);
+ public OpenURLEvent(ReadOnlyPart part, KURL url) {
+ super((Class) null);
+ newOpenURLEvent(part,url);
+ }
+ private native void newOpenURLEvent(ReadOnlyPart part, KURL url);
+ public native ReadOnlyPart part();
+ public native KURL url();
+ public native URLArgs args();
+ public static native boolean test(QEvent event);
+}
diff --git a/kdejava/koala/org/kde/koala/Part.java b/kdejava/koala/org/kde/koala/Part.java
new file mode 100644
index 00000000..fd641f37
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Part.java
@@ -0,0 +1,202 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPoint;
+import org.kde.qt.QCustomEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ Base class for parts.
+ A "part" is a GUI component, featuring:
+
+ <li>
+ A widget embeddedable in any application.
+ </li>
+
+ <li>
+ GUI elements that will be merged in the "host" user interface
+ (menubars, toolbars... ).
+ </li>
+ <li><b>About the widget:</b></li>
+ Note that KParts.Part does not inherit QWidget.
+ This is due to the fact that the "visual representation"
+ will probably not be a mere QWidget, but an elaborate one.
+ That's why when implementing your KParts.Part (or derived)
+ you should call KParts.Part.setWidget() in your constructor.
+ <li><b>About the GUI elements:</b></li>
+ Those elements trigger actions, defined by the part (action()).
+ The layout of the actions in the GUI is defined by an XML file (setXMLFile()).
+ See also ReadOnlyPart and ReadWritePart, which define the
+ framework for a "viewer" part and for an "editor"-like part.
+ Use Part directly only if your part doesn't fit into those.
+ See {@link PartSignals} for signals emitted by Part
+ @short Base class for parts.
+
+*/
+public class Part extends QObject implements PartBaseInterface {
+ protected Part(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor.
+ @param parent Parent object of the part.
+ @param name QT-internal name of the part.
+ @short Constructor.
+ */
+ public Part(QObject parent, String name) {
+ super((Class) null);
+ newPart(parent,name);
+ }
+ private native void newPart(QObject parent, String name);
+ public Part(QObject parent) {
+ super((Class) null);
+ newPart(parent);
+ }
+ private native void newPart(QObject parent);
+ public Part() {
+ super((Class) null);
+ newPart();
+ }
+ private native void newPart();
+ /**
+ Embed this part into a host widget.
+ You don't need to do this if you created the widget with the
+ correct parent widget - this is just a QWidget.reparent().
+ Note that the Part is still the holder
+ of the QWidget, meaning that if you delete the Part,
+ then the widget gets destroyed as well, and vice-versa.
+ This method is not recommended since creating the widget with the correct
+ parent is simpler anyway.
+ @short Embed this part into a host widget.
+ */
+ public native void embed(QWidget parentWidget);
+ /**
+ @return The widget defined by this part, set by setWidget().
+
+ @short
+ */
+ public native QWidget widget();
+ /**
+ Used by the part manager.
+ @short
+ */
+ public native void setManager(PartManager manager);
+ /**
+ Returns the part manager handling this part, if any (null otherwise).
+ @short Returns the part manager handling this part, if any (0L otherwise).
+ */
+ public native PartManager manager();
+ /**
+ Returns the part (this, or a child part) at the given global position.
+ This is called by the part manager to ask whether a part should be activated
+ when clicking somewhere. In most cases the default implementation is enough.
+ Reimplement this if your part has child parts in some areas (like in khtml or koffice)
+ @param widget the part widget being clicked - usually the same as widget(), except in koffice.
+ @param globalPos the mouse coordinates in global coordinates
+ @short Returns the part (this, or a child part) at the given global position.
+ */
+ public native Part hitTest(QWidget widget, QPoint globalPos);
+ /**
+ @param selectable Indicates whether the part is selectable or not.
+ @short
+ */
+ public native void setSelectable(boolean selectable);
+ /**
+ Returns whether the part is selectable or not.
+ @short Returns whether the part is selectable or not.
+ */
+ public native boolean isSelectable();
+ /**
+ Set the main widget.
+ Call this in the Part-inherited class constructor.
+ @short Set the main widget.
+ */
+ protected native void setWidget(QWidget widget);
+ /**
+ @short
+ */
+ protected native void customEvent(QCustomEvent event);
+ /**
+ Convenience method which is called when the Part received a PartActivateEvent .
+ Reimplement this if you don't want to reimplement event and test for the event yourself
+ or even install an event filter.
+ @short Convenience method which is called when the Part received a PartActivateEvent .
+ */
+ protected native void partActivateEvent(PartActivateEvent event);
+ /**
+ Convenience method which is called when the Part received a
+ PartSelectEvent .
+ Reimplement this if you don't want to reimplement event and
+ test for the event yourself or even install an event filter.
+ @short Convenience method which is called when the Part received a PartSelectEvent .
+ */
+ protected native void partSelectEvent(PartSelectEvent event);
+ /**
+ Convenience method which is called when the Part received a
+ GUIActivateEvent .
+ Reimplement this if you don't want to reimplement event and
+ test for the event yourself or even install an event filter.
+ @short Convenience method which is called when the Part received a GUIActivateEvent .
+ */
+ protected native void guiActivateEvent(GUIActivateEvent event);
+ /**
+ Convenience method for KXMLGUIFactory.container.
+ @return a container widget owned by the Part's GUI.
+
+ @short Convenience method for KXMLGUIFactory.container.
+ */
+ protected native QWidget hostContainer(String containerName);
+ /**
+ Internal method. Called by KParts.Part to specify the parent object for plugin objects.
+ @short Internal method.
+ */
+ public native void setPartObject(QObject object);
+ public native QObject partObject();
+ /**
+ Set the instance ( KInstance) for this part.
+ Call this first in the inherited class constructor,
+ because it loads the i18n catalogues.
+ @short Set the instance ( KInstance) for this part.
+ */
+ protected native void setInstance(KInstanceInterface instance);
+ /**
+ Set the instance ( KInstance) for this part.
+ Call this first in the inherited class constructor,
+ because it loads the i18n catalogues.
+ @short Set the instance ( KInstance) for this part.
+ */
+ protected native void setInstance(KInstanceInterface instance, boolean loadPlugins);
+ /**
+ Load the Plugins honoring the PluginLoadingMode.
+ If you call this method in an already constructed GUI (like when the user
+ has changed which plugins are enabled) you need to add the new plugins to
+ the KXMLGUIFactory:
+ <pre>
+ if( factory() )
+ {
+ QPtrList<KParts.Plugin> plugins = KParts.Plugin.pluginObjects( this );
+ QPtrListIterator<KParts.Plugin> it( plugins );
+ KParts.Plugin plugin;
+ while( ( plugin = it.current() ) != 0 )
+ {
+ ++it;
+ factory().addClient( plugin );
+ }
+ }
+ </pre>
+ @short Load the Plugins honoring the PluginLoadingMode.
+ */
+ protected native void loadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance);
+ /**
+ For a KParts.Part: call this before setInstance().
+ For a KParts.MainWindow: call this before createGUI().
+ @short For a KParts.Part: call this before setInstance().
+ */
+ // void setPluginLoadingMode(KParts::PartBase::PluginLoadingMode arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/PartActivateEvent.java b/kdejava/koala/org/kde/koala/PartActivateEvent.java
new file mode 100644
index 00000000..10bc6c6a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/PartActivateEvent.java
@@ -0,0 +1,31 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ This event is sent by the part manager when the active part changes.
+ Each time the active part changes, it will send first a PartActivateEvent
+ with activated=false, part=oldActivePart, widget=oldActiveWidget
+ and then another PartActivateEvent
+ with activated=true, part=newPart, widget=newWidget.
+ @short This event is sent by the part manager when the active part changes.
+ @see Part#partActivateEvent
+
+*/
+public class PartActivateEvent extends Event {
+ protected PartActivateEvent(Class dummy){super((Class) null);}
+ public PartActivateEvent(boolean activated, Part part, QWidget widget) {
+ super((Class) null);
+ newPartActivateEvent(activated,part,widget);
+ }
+ private native void newPartActivateEvent(boolean activated, Part part, QWidget widget);
+ public native boolean activated();
+ public native Part part();
+ public native QWidget widget();
+ public static native boolean test(QEvent event);
+}
diff --git a/kdejava/koala/org/kde/koala/PartBase.java b/kdejava/koala/org/kde/koala/PartBase.java
new file mode 100644
index 00000000..8e2bbe34
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/PartBase.java
@@ -0,0 +1,72 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+/**
+
+ Base class for all parts.
+ @short Base class for all parts.
+
+*/
+public class PartBase extends KXMLGUIClient {
+ protected PartBase(Class dummy){super((Class) null);}
+ /**
+ Constructor.
+ @short Constructor.
+ */
+ public PartBase() {
+ super((Class) null);
+ newPartBase();
+ }
+ private native void newPartBase();
+ /**
+ Internal method. Called by KParts.Part to specify the parent object for plugin objects.
+ @short Internal method.
+ */
+ public native void setPartObject(QObject object);
+ public native QObject partObject();
+ /**
+ Set the instance ( KInstance) for this part.
+ Call this first in the inherited class constructor,
+ because it loads the i18n catalogues.
+ @short Set the instance ( KInstance) for this part.
+ */
+ protected native void setInstance(KInstanceInterface instance);
+ /**
+ Set the instance ( KInstance) for this part.
+ Call this first in the inherited class constructor,
+ because it loads the i18n catalogues.
+ @short Set the instance ( KInstance) for this part.
+ */
+ protected native void setInstance(KInstanceInterface instance, boolean loadPlugins);
+ /**
+ Load the Plugins honoring the PluginLoadingMode.
+ If you call this method in an already constructed GUI (like when the user
+ has changed which plugins are enabled) you need to add the new plugins to
+ the KXMLGUIFactory:
+ <pre>
+ if( factory() )
+ {
+ QPtrList<KParts.Plugin> plugins = KParts.Plugin.pluginObjects( this );
+ QPtrListIterator<KParts.Plugin> it( plugins );
+ KParts.Plugin plugin;
+ while( ( plugin = it.current() ) != 0 )
+ {
+ ++it;
+ factory().addClient( plugin );
+ }
+ }
+ </pre>
+ @short Load the Plugins honoring the PluginLoadingMode.
+ */
+ protected native void loadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance);
+ /**
+ For a KParts.Part: call this before setInstance().
+ For a KParts.MainWindow: call this before createGUI().
+ @short For a KParts.Part: call this before setInstance().
+ */
+ // void setPluginLoadingMode(KParts::PartBase::PluginLoadingMode arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/PartBaseInterface.java b/kdejava/koala/org/kde/koala/PartBaseInterface.java
new file mode 100644
index 00000000..b1a0de56
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/PartBaseInterface.java
@@ -0,0 +1,10 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+public interface PartBaseInterface {
+ void setPartObject(QObject object);
+ QObject partObject();
+}
diff --git a/kdejava/koala/org/kde/koala/PartManager.java b/kdejava/koala/org/kde/koala/PartManager.java
new file mode 100644
index 00000000..488f4cb8
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/PartManager.java
@@ -0,0 +1,232 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ The part manager is an object which knows about a collection of parts
+ (even nested ones) and handles activation/deactivation.
+ Applications that want to embed parts without merging GUIs
+ only use a KParts.PartManager. Those who want to merge GUIs use a
+ KParts.MainWindow for example, in addition to a part manager.
+ Parts know about the part manager to add nested parts to it.
+ See also KParts.Part.manager() and KParts.Part.setManager().
+ See {@link PartManagerSignals} for signals emitted by PartManager
+ @short The part manager is an object which knows about a collection of parts (even nested ones) and handles activation/deactivation.
+
+*/
+public class PartManager extends QObject {
+ protected PartManager(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs a part manager.
+ @param parent The toplevel widget (window / dialog) the
+ partmanager should monitor for activation/selection
+ events
+ @param name The object's name, if any.
+ @short Constructs a part manager.
+ */
+ public PartManager(QWidget parent, String name) {
+ super((Class) null);
+ newPartManager(parent,name);
+ }
+ private native void newPartManager(QWidget parent, String name);
+ public PartManager(QWidget parent) {
+ super((Class) null);
+ newPartManager(parent);
+ }
+ private native void newPartManager(QWidget parent);
+ /**
+ Constructs a part manager.
+ @param topLevel The toplevel widget (window / dialog ) the
+ partmanager should monitor for activation/selection
+ events
+ @param parent The parent QObject.
+ @param name The object's name, if any.
+ @short Constructs a part manager.
+ */
+ public PartManager(QWidget topLevel, QObject parent, String name) {
+ super((Class) null);
+ newPartManager(topLevel,parent,name);
+ }
+ private native void newPartManager(QWidget topLevel, QObject parent, String name);
+ public PartManager(QWidget topLevel, QObject parent) {
+ super((Class) null);
+ newPartManager(topLevel,parent);
+ }
+ private native void newPartManager(QWidget topLevel, QObject parent);
+ /**
+ Sets the selection policy of the partmanager.
+ @short Sets the selection policy of the partmanager.
+ */
+ // void setSelectionPolicy(KParts::PartManager::SelectionPolicy arg1); >>>> NOT CONVERTED
+ /**
+ Returns the current selection policy.
+ @short Returns the current selection policy.
+ */
+ // KParts::PartManager::SelectionPolicy selectionPolicy(); >>>> NOT CONVERTED
+ /**
+ Specifies whether the partmanager should handle/allow nested parts
+ or not.
+ This is a property the shell has to set/specify. Per
+ default we assume that the shell cannot handle nested
+ parts. However in case of a KOffice shell for example we allow
+ nested parts. A Part is nested (a child part) if its parent
+ object inherits KParts.Part. If a child part is activated and
+ nested parts are not allowed/handled, then the top parent part in
+ the tree is activated.
+ @short Specifies whether the partmanager should handle/allow nested parts or not.
+ */
+ public native void setAllowNestedParts(boolean allow);
+ /**
+ @short
+ @see #setAllowNestedParts
+ */
+ public native boolean allowNestedParts();
+ /**
+ Specifies whether the partmanager should ignore mouse click events for
+ scrollbars or not. If the partmanager ignores them, then clicking on the
+ scrollbars of a non-active/non-selected part will not change the selection
+ or activation state.
+ The default value is false (read: scrollbars are NOT ignored).
+ @short Specifies whether the partmanager should ignore mouse click events for scrollbars or not.
+ */
+ public native void setIgnoreScrollBars(boolean ignore);
+ /**
+ @short
+ @see #setIgnoreScrollBars
+ */
+ public native boolean ignoreScrollBars();
+ /**
+ Specifies which mouse buttons the partmanager should react upon.
+ By default it reacts on all mouse buttons (LMB/MMB/RMB).
+ @param buttonMask a combination of Qt.ButtonState values e.g. Qt.LeftButton | Qt.MidButton
+ @short Specifies which mouse buttons the partmanager should react upon.
+ */
+ public native void setActivationButtonMask(short buttonMask);
+ /**
+ @short
+ @see #setActivationButtonMask
+ */
+ public native short activationButtonMask();
+ /**
+ @short
+ */
+ public native boolean eventFilter(QObject arg1, QEvent ev);
+ /**
+ Adds a part to the manager.
+ Sets it to the active part automatically if <code>setActive</code> is true (default ).
+ Behavior fix in KDE3.4: the part's widget is shown only if <code>setActive</code> is true,
+ it used to be shown in all cases before.
+ @short Adds a part to the manager.
+ */
+ public native void addPart(Part part, boolean setActive);
+ public native void addPart(Part part);
+ /**
+ Removes a part from the manager (this does not delete the object) .
+ Sets the active part to 0 if <code>part</code> is the activePart() .
+ @short Removes a part from the manager (this does not delete the object) .
+ */
+ public native void removePart(Part part);
+ /**
+ Replaces <code>oldPart</code> with <code>newPart</code>, and sets <code>newPart</code> as active if
+ <code>setActive</code> is true.
+ This is an optimised version of removePart + addPart
+ @short Replaces <code>oldPart</code> with <code>newPart</code>, and sets <code>newPart</code> as active if <code>setActive</code> is true.
+ */
+ public native void replacePart(Part oldPart, Part newPart, boolean setActive);
+ public native void replacePart(Part oldPart, Part newPart);
+ /**
+ Sets the active part.
+ The active part receives activation events.
+ <code>widget</code> can be used to specify which widget was responsible for the activation.
+ This is important if you have multiple views for a document/part, like in KOffice.
+ @short Sets the active part.
+ */
+ public native void setActivePart(Part part, QWidget widget);
+ public native void setActivePart(Part part);
+ /**
+ Returns the active part.
+ @short Returns the active part.
+ */
+ public native Part activePart();
+ /**
+ Returns the active widget of the current active part (see activePart()).
+ @short Returns the active widget of the current active part (see activePart()).
+ */
+ public native QWidget activeWidget();
+ /**
+ Sets the selected part.
+ The selected part receives selection events.
+ <code>widget</code> can be used to specify which widget was responsible for the selection.
+ This is important if you have multiple views for a document/part, like in KOffice.
+ @short Sets the selected part.
+ */
+ public native void setSelectedPart(Part part, QWidget widget);
+ public native void setSelectedPart(Part part);
+ /**
+ Returns the current selected part.
+ @short Returns the current selected part.
+ */
+ public native Part selectedPart();
+ /**
+ Returns the selected widget of the current selected part (see selectedPart()).
+ @short Returns the selected widget of the current selected part (see selectedPart()).
+ */
+ public native QWidget selectedWidget();
+ /**
+ Returns the list of parts being managed by the partmanager.
+ @short Returns the list of parts being managed by the partmanager.
+ */
+ // const QPtrList<KParts::Part>* parts(); >>>> NOT CONVERTED
+ /**
+ Adds the <code>topLevel</code> widget to the list of managed toplevel widgets.
+ Usually a PartManager only listens for events (for activation/selection)
+ for one toplevel widget (and its children), the one specified in the
+ constructor. Sometimes however (like for example when using the KDE dockwidget
+ library), it is necessary to extend this.
+ @short Adds the <code>topLevel</code> widget to the list of managed toplevel widgets.
+ */
+ public native void addManagedTopLevelWidget(QWidget topLevel);
+ /**
+ Removes the <code>topLevel</code> widget from the list of managed toplevel widgets.
+ @short Removes the <code>topLevel</code> widget from the list of managed toplevel widgets.
+ @see #addManagedTopLevelWidget
+ */
+ public native void removeManagedTopLevelWidget(QWidget topLevel);
+ /**
+ @return the reason for the last activePartChanged signal emitted.
+
+ @short
+ @see Reason
+ */
+ public native int reason();
+ /**
+ Changes the active instance when the active part changes.
+ The active instance is used by KBugReport and KAboutDialog.
+ Override if you really need to - usually you don't need to.
+ @short Changes the active instance when the active part changes.
+ */
+ protected native void setActiveInstance(KInstanceInterface instance);
+ /**
+ Removes a part when it is destroyed.
+ @short Removes a part when it is destroyed.
+ */
+ protected native void slotObjectDestroyed();
+ /**
+ @short
+ */
+ protected native void slotWidgetDestroyed();
+ /**
+ @short
+ */
+ protected native void slotManagedTopLevelWidgetDestroyed();
+}
diff --git a/kdejava/koala/org/kde/koala/PartManagerSignals.java b/kdejava/koala/org/kde/koala/PartManagerSignals.java
new file mode 100644
index 00000000..f72ebf36
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/PartManagerSignals.java
@@ -0,0 +1,29 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+public interface PartManagerSignals {
+ /**
+ Emitted when a new part has been added.
+ @short Emitted when a new part has been added.
+ @see #addPart
+ */
+ void partAdded(Part part);
+ /**
+ Emitted when a part has been removed.
+ @short Emitted when a part has been removed.
+ @see #removePart
+ */
+ void partRemoved(Part part);
+ /**
+ Emitted when the active part has changed.
+ @short Emitted when the active part has changed.
+ @see #setActivePart
+ */
+ void activePartChanged(Part newPart);
+}
diff --git a/kdejava/koala/org/kde/koala/PartSelectEvent.java b/kdejava/koala/org/kde/koala/PartSelectEvent.java
new file mode 100644
index 00000000..363b97ba
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/PartSelectEvent.java
@@ -0,0 +1,27 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ This event is sent when a part is selected or deselected.
+ @short This event is sent when a part is selected or deselected.
+ @see PartManager#setSelectionPolicy
+
+*/
+public class PartSelectEvent extends Event {
+ protected PartSelectEvent(Class dummy){super((Class) null);}
+ public PartSelectEvent(boolean selected, Part part, QWidget widget) {
+ super((Class) null);
+ newPartSelectEvent(selected,part,widget);
+ }
+ private native void newPartSelectEvent(boolean selected, Part part, QWidget widget);
+ public native boolean selected();
+ public native Part part();
+ public native QWidget widget();
+ public static native boolean test(QEvent event);
+}
diff --git a/kdejava/koala/org/kde/koala/PartSignals.java b/kdejava/koala/org/kde/koala/PartSignals.java
new file mode 100644
index 00000000..67679ad1
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/PartSignals.java
@@ -0,0 +1,24 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QPoint;
+import org.kde.qt.QCustomEvent;
+import org.kde.qt.QWidget;
+
+public interface PartSignals {
+ /**
+ Emitted by the part, to set the caption of the window(s)
+ hosting this part
+ @short Emitted by the part, to set the caption of the window(s) hosting this part
+ */
+ void setWindowCaption(String caption);
+ /**
+ Emited by the part, to set a text in the statusbar of the window(s)
+ hosting this part
+ @short Emited by the part, to set a text in the statusbar of the window(s) hosting this part
+ */
+ void setStatusBarText(String text);
+}
diff --git a/kdejava/koala/org/kde/koala/PasswordDialog.java b/kdejava/koala/org/kde/koala/PasswordDialog.java
new file mode 100644
index 00000000..32a2f481
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/PasswordDialog.java
@@ -0,0 +1,144 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ A dialog for requesting a login and a password from the end user.
+ KIO-Slave authors are encouraged to use SlaveBase.openPassDlg
+ instead of directly instantiating this dialog.
+ @short dialog for requesting login and password from the end user.
+
+*/
+public class PasswordDialog extends KDialogBase {
+ protected PasswordDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create a password dialog.
+ @param prompt instructional text to be shown.
+ @param user username, if known initially.
+ @param enableKeep if true, shows checkbox that makes password persistent until KDE is shutdown.
+ @param modal if true, the dialog will be modal (default:true).
+ @param parent the parent widget (default:NULL).
+ @param name the dialog name (default:NULL).
+ @short Create a password dialog.
+ */
+ public PasswordDialog(String prompt, String user, boolean enableKeep, boolean modal, QWidget parent, String name) {
+ super((Class) null);
+ newPasswordDialog(prompt,user,enableKeep,modal,parent,name);
+ }
+ private native void newPasswordDialog(String prompt, String user, boolean enableKeep, boolean modal, QWidget parent, String name);
+ public PasswordDialog(String prompt, String user, boolean enableKeep, boolean modal, QWidget parent) {
+ super((Class) null);
+ newPasswordDialog(prompt,user,enableKeep,modal,parent);
+ }
+ private native void newPasswordDialog(String prompt, String user, boolean enableKeep, boolean modal, QWidget parent);
+ public PasswordDialog(String prompt, String user, boolean enableKeep, boolean modal) {
+ super((Class) null);
+ newPasswordDialog(prompt,user,enableKeep,modal);
+ }
+ private native void newPasswordDialog(String prompt, String user, boolean enableKeep, boolean modal);
+ public PasswordDialog(String prompt, String user, boolean enableKeep) {
+ super((Class) null);
+ newPasswordDialog(prompt,user,enableKeep);
+ }
+ private native void newPasswordDialog(String prompt, String user, boolean enableKeep);
+ public PasswordDialog(String prompt, String user) {
+ super((Class) null);
+ newPasswordDialog(prompt,user);
+ }
+ private native void newPasswordDialog(String prompt, String user);
+ /**
+ Sets the prompt to show to the user.
+ @param prompt instructional text to be shown.
+ @short Sets the prompt to show to the user.
+ */
+ public native void setPrompt(String prompt);
+ /**
+ Adds a comment line to the dialog.
+ This function allows you to add one additional comment
+ line to this widget. Calling this function after a
+ comment has already been added will not have any effect.
+ @param label label for comment (ex:"Command:")
+ @param comment the actual comment text.
+ @short Adds a comment line to the dialog.
+ */
+ public native void addCommentLine(String label, String comment);
+ /**
+ Returns the password entered by the user.
+ @return the password
+
+ @short Returns the password entered by the user.
+ */
+ public native String password();
+ /**
+ Returns the username entered by the user.
+ @return the user name
+
+ @short Returns the username entered by the user.
+ */
+ public native String username();
+ /**
+ Determines whether supplied authorization should
+ persist even after the application has been closed.
+ @return true to keep the password
+
+ @short Determines whether supplied authorization should persist even after the application has been closed.
+ */
+ public native boolean keepPassword();
+ /**
+ Check or uncheck the "keep password" checkbox.
+ This can be used to check it before showing the dialog, to tell
+ the user that the password is stored already (e.g. in the wallet).
+ enableKeep must have been set to true in the constructor.
+ @short Check or uncheck the "keep password" checkbox.
+ */
+ public native void setKeepPassword(boolean b);
+ /**
+ Sets the username field read-only and sets the
+ focus to the password field.
+ @param readOnly true to set the user field to read-only
+ @short Sets the username field read-only and sets the focus to the password field.
+ */
+ public native void setUserReadOnly(boolean readOnly);
+ /**
+ Presets the password.
+ @param password the password to set
+ @short Presets the password.
+ */
+ public native void setPassword(String password);
+ /**
+ Presets a number of login+password pairs that the user can choose from.
+ The passwords can be empty if you simply want to offer usernames to choose from.
+ This is incompatible with setUserReadOnly(true).
+ @param knownLogins map of known logins: the keys are usernames, the values are passwords.
+ @short Presets a number of login+password pairs that the user can choose from.
+ */
+ // void setKnownLogins(const QMap<QString, QString>& arg1); >>>> NOT CONVERTED
+ /**
+ A convienence static method for obtaining authorization
+ information from the end user.
+ @param user username
+ @param pass password
+ @param keep pointer to flag that indicates whether to keep password (can be null)
+ @param prompt text to display to user.
+ @param readOnly make the username field read-only.
+ @param caption set the title bar to given text.
+ @param comment extra comment to display to user.
+ @param label optinal label for extra comment.
+ @return Accepted/Rejected based on the user choice.
+
+ @short A convienence static method for obtaining authorization information from the end user.
+ */
+ public static native int getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt, boolean readOnly, String caption, String comment, String label);
+ public static native int getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt, boolean readOnly, String caption, String comment);
+ public static native int getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt, boolean readOnly, String caption);
+ public static native int getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt, boolean readOnly);
+ public static native int getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt);
+ public static native int getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep);
+}
diff --git a/kdejava/koala/org/kde/koala/Plugin.java b/kdejava/koala/org/kde/koala/Plugin.java
new file mode 100644
index 00000000..4a9c7f95
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Plugin.java
@@ -0,0 +1,355 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QDomDocument;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDomElement;
+import org.kde.qt.QObject;
+
+/**
+
+ A plugin is the way to add actions to an existing KParts application,
+ or to a Part.
+ The XML of those plugins looks exactly like of the shell or parts,
+ with one small difference: The document tag should have an additional
+ attribute, named "library", and contain the name of the library implementing
+ the plugin.
+ If you want this plugin to be used by a part, you need to
+ install the rc file under the directory
+ "data" (KDEDIR/share/apps usually)+"/instancename/kpartplugins/"
+ where instancename is the name of the part's instance.
+ You should also install a "plugin info" .desktop file with the same name.
+ \see PluginInfo
+ @short A plugin is the way to add actions to an existing KParts application, or to a Part.
+
+*/
+public class Plugin extends QObject implements KXMLGUIClientInterface {
+ protected Plugin(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a new KParts plugin.
+ @short Construct a new KParts plugin.
+ */
+ public Plugin(QObject parent, String name) {
+ super((Class) null);
+ newPlugin(parent,name);
+ }
+ private native void newPlugin(QObject parent, String name);
+ public Plugin(QObject parent) {
+ super((Class) null);
+ newPlugin(parent);
+ }
+ private native void newPlugin(QObject parent);
+ public Plugin() {
+ super((Class) null);
+ newPlugin();
+ }
+ private native void newPlugin();
+ /**
+ Reimplemented for internal reasons
+ @short Reimplemented for internal reasons
+ */
+ public native String xmlFile();
+ /**
+ Reimplemented for internal reasons
+ @short Reimplemented for internal reasons
+ */
+ public native String localXMLFile();
+ /**
+ Load the plugin libraries from the directories appropriate
+ to <code>instance</code> and make the Plugin objects children of <code>parent.</code>
+ It is recommended to use the last loadPlugins method instead,
+ to support enabling and disabling of plugins.
+ @short Load the plugin libraries from the directories appropriate to <code>instance</code> and make the Plugin objects children of <code>parent.</code>
+ */
+ public static native void loadPlugins(QObject parent, KInstanceInterface instance);
+ /**
+ Load the plugin libraries specified by the list <code>docs</code> and make the
+ Plugin objects children of <code>parent</code> .
+ It is recommended to use the last loadPlugins method instead,
+ to support enabling and disabling of plugins.
+ @short Load the plugin libraries specified by the list <code>docs</code> and make the Plugin objects children of <code>parent</code> .
+ */
+ // void loadPlugins(QObject* arg1,const QValueList<KParts::Plugin::PluginInfo>& arg2); >>>> NOT CONVERTED
+ /**
+ Load the plugin libraries specified by the list <code>pluginInfos</code>, make the
+ Plugin objects children of <code>parent</code>, and use the given <code>instance.</code>
+ It is recommended to use the last loadPlugins method instead,
+ to support enabling and disabling of plugins.
+ @short Load the plugin libraries specified by the list <code>pluginInfos</code>, make the Plugin objects children of <code>parent</code>, and use the given <code>instance.</code>
+ */
+ // void loadPlugins(QObject* arg1,const QValueList<KParts::Plugin::PluginInfo>& arg2,const KInstance* arg3); >>>> NOT CONVERTED
+ /**
+ Load the plugin libraries for the given <code>instance</code>, make the
+ Plugin objects children of <code>parent</code>, and insert the plugin as a child GUI client
+ of <code>parentGUIClient.</code>
+ This method uses the KConfig object of the given instance, to find out which
+ plugins are enabled and which are disabled. What happens by default (i.e.
+ for new plugins that are not in that config file) is controlled by
+ <code>enableNewPluginsByDefault.</code> It can be overridden by the plugin if it
+ sets the X-KDE-PluginInfo-EnabledByDefault key in the .desktop file
+ (with the same name as the .rc file)
+ If a disabled plugin is already loaded it will be removed from the GUI
+ factory and deleted.
+ This method is automatically called by KParts.Plugin and by KParts.MainWindow.
+ If you call this method in an already constructed GUI (like when the user
+ has changed which plugins are enabled) you need to add the new plugins to
+ the KXMLGUIFactory:
+ <pre>
+ if( factory() )
+ {
+ QPtrList<KParts.Plugin> plugins = KParts.Plugin.pluginObjects( this );
+ QPtrListIterator<KParts.Plugin> it( plugins );
+ KParts.Plugin plugin;
+ while( ( plugin = it.current() ) != 0 )
+ {
+ ++it;
+ factory().addClient( plugin );
+ }
+ }
+ </pre>
+ @short Load the plugin libraries for the given <code>instance</code>, make the Plugin objects children of <code>parent</code>, and insert the plugin as a child GUI client of <code>parentGUIClient.</code>
+ */
+ public static native void loadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance, boolean enableNewPluginsByDefault);
+ public static native void loadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance);
+ /**
+ Returns a list of plugin objects loaded for <code>parent.</code> This
+ functions basically calls the queryList method of
+ QObject to retrieve the list of child objects inheriting
+ KParts.Plugin .
+ @short Returns a list of plugin objects loaded for <code>parent.</code>
+ */
+ // QPtrList<KParts::Plugin> pluginObjects(QObject* arg1); >>>> NOT CONVERTED
+ protected native void setInstance(KInstanceInterface instance);
+ /**
+ Look for plugins in the <code>instance</code>'s "data" directory (+"/kpartplugins")
+ @return A list of QDomDocument s, containing the parsed xml documents returned by plugins.
+
+ @short Look for plugins in the <code>instance</code>'s "data" directory (+"/kpartplugins")
+ */
+ // QValueList<KParts::Plugin::PluginInfo> pluginInfos(const KInstance* arg1); >>>> NOT CONVERTED
+ /**
+ @return The plugin created from the library <code>libname</code>
+
+ @short
+ */
+ protected static native Plugin loadPlugin(QObject parent, String libname);
+ /**
+ Retrieves an action of the client by name. If not found, it looks in its child clients.
+ This method is provided for convenience, as it uses actionCollection()
+ to get the action object.
+ @short Retrieves an action of the client by name.
+ */
+ public native KAction action(String name);
+ /**
+ Retrieves an action for a given QDomElement. The default
+ implementation uses the "name" attribute to query the action
+ object via the other action() method.
+ @short Retrieves an action for a given QDomElement.
+ */
+ public native KAction action(QDomElement element);
+ /**
+ Retrieves the entire action collection for the GUI client. If
+ you subclass KXMLGUIClient you should call
+ KActionCollection.setWidget( QWidget ) with this object, or
+ you will encounter subtle bugs with KAction keyboard shortcuts.
+ This is not necessary if your KXMLGUIClient is a KMainWindow.
+ @short Retrieves the entire action collection for the GUI client.
+ @see KActionCollection#setWidget(
+ @see #org#kde#qt#QWidget*
+ */
+ public native KActionCollection actionCollection();
+ /**
+ @return The instance ( KInstance ) for this GUI client.
+
+ @short
+ */
+ public native KInstanceInterface instance();
+ /**
+ @return The parsed XML in a QDomDocument, set by
+ setXMLFile() or setXML().
+ This document describes the layout of the GUI.
+
+ @short
+ */
+ public native QDomDocument domDocument();
+ /**
+ @short
+ */
+ public native void setXMLGUIBuildDocument(QDomDocument doc);
+ /**
+ @short
+ */
+ public native QDomDocument xmlguiBuildDocument();
+ /**
+ This method is called by the KXMLGUIFactory as soon as the client
+ is added to the KXMLGUIFactory's GUI.
+ @short This method is called by the KXMLGUIFactory as soon as the client is added to the KXMLGUIFactory's GUI.
+ */
+ public native void setFactory(KXMLGUIFactory factory);
+ /**
+ Retrieves a pointer to the KXMLGUIFactory this client is
+ associated with (will return null if the client's GUI has not been built
+ by a KXMLGUIFactory.
+ @short Retrieves a pointer to the KXMLGUIFactory this client is associated with (will return 0L if the client's GUI has not been built by a KXMLGUIFactory.
+ */
+ public native KXMLGUIFactory factory();
+ /**
+ KXMLGUIClients can form a simple child/parent object tree. This
+ method returns a pointer to the parent client or null if it has no
+ parent client assigned.
+ @short KXMLGUIClients can form a simple child/parent object tree.
+ */
+ public native KXMLGUIClientInterface parentClient();
+ /**
+ Use this method to make a client a child client of another client.
+ Usually you don't need to call this method, as it is called
+ automatically when using the second constructor, which takes a
+ parent argument.
+ @short Use this method to make a client a child client of another client.
+ */
+ public native void insertChildClient(KXMLGUIClientInterface child);
+ /**
+ Removes the given <code>child</code> from the client's children list.
+ @short Removes the given <code>child</code> from the client's children list.
+ */
+ public native void removeChildClient(KXMLGUIClientInterface child);
+ /**
+ Retrieves a list of all child clients.
+ @short Retrieves a list of all child clients.
+ */
+ // const QPtrList<KXMLGUIClient>* childClients(); >>>> NOT CONVERTED
+ /**
+ A client can have an own KXMLGUIBuilder.
+ Use this method to assign your builder instance to the client (so that the
+ KXMLGUIFactory can use it when building the client's GUI)
+ Client specific guibuilders are useful if you want to create
+ custom container widgets for your GUI.
+ @short A client can have an own KXMLGUIBuilder.
+ */
+ public native void setClientBuilder(KXMLGUIBuilderInterface builder);
+ /**
+ Retrieves the client's GUI builder or null if no client specific
+ builder has been assigned via setClientBuilder()
+ @short Retrieves the client's GUI builder or 0L if no client specific builder has been assigned via setClientBuilder()
+ */
+ public native KXMLGUIBuilderInterface clientBuilder();
+ /**
+ Forces this client to re-read its XML resource file. This is
+ intended to be used when you know that the resource file has
+ changed and you will soon be rebuilding the GUI. It has no
+ useful effect with non-KParts GUIs, so don't bother using it
+ unless your app is component based.
+ @short Forces this client to re-read its XML resource file.
+ */
+ public native void reloadXML();
+ /**
+ ActionLists are a way for XMLGUI to support dynamic lists of
+ actions. E.g. if you are writing a file manager, and there is a
+ menu file whose contents depend on the mimetype of the file that
+ is selected, then you can achieve this using ActionLists. It
+ works as follows:
+ In your xxxui.rc file ( the one that you set in setXMLFile()
+ ), you put an <p>\<ActionList name="xxx"\></p> tag. E.g.
+ <pre>
+ <kpartgui name="xxx_part" version="1">
+ <MenuBar>
+ <Menu name="file">
+ ... <!-- some useful actions-.
+ <ActionList name="xxx_file_actionlist" />
+ ... <!-- even more useful actions-.
+ </Menu>
+ ...
+ </MenuBar>
+ </kpartgui>
+ </pre>
+ This tag will get expanded to a list of actions. In the example
+ above ( a file manager with a dynamic file menu ), you would call
+ <pre>
+ QPtrList<KAction> file_actions;
+ for( ... )
+ if( ... )
+ file_actions.append( cool_action );
+ unplugActionList( "xxx_file_actionlist" );
+ plugActionList( "xxx_file_actionlist", file_actions );
+ </pre>
+ every time a file is selected, unselected or ...
+ <b>Note:<> You should not call createGUI() after calling this
+ function. In fact, that would remove the newly added
+ actionlists again...
+ <b>Note:<> Forgetting to call unplugActionList() before
+ plugActionList() would leave the previous actions in the
+ menu too..
+ @short ActionLists are a way for XMLGUI to support dynamic lists of actions.
+ */
+ // void plugActionList(const QString& arg1,const QPtrList<KAction>& arg2); >>>> NOT CONVERTED
+ /**
+ The complement of plugActionList() ...
+ @short The complement of plugActionList() .
+ */
+ public native void unplugActionList(String name);
+ public native void addStateActionEnabled(String state, String action);
+ public native void addStateActionDisabled(String state, String action);
+ // KXMLGUIClient::StateChange getActionsToChangeForState(const QString& arg1); >>>> NOT CONVERTED
+ public native void beginXMLPlug(QWidget arg1);
+ public native void endXMLPlug();
+ public native void prepareXMLUnplug(QWidget arg1);
+ public static native String findMostRecentXMLFile(String[] files, StringBuffer doc);
+ /**
+ Sets the name of the rc file containing the XML for the part.
+ Call this in the Part-inherited class constructor.
+ @param file Either an absolute path for the file, or simply the
+ filename, which will then be assumed to be installed
+ in the "data" resource, under a directory named like
+ the instance.
+ @param merge Whether to merge with the global document.
+ @param setXMLDoc Specify whether to call setXML. Default is true.
+ and the DOM document at once.
+ @short Sets the name of the rc file containing the XML for the part.
+ */
+ protected native void setXMLFile(String file, boolean merge, boolean setXMLDoc);
+ protected native void setXMLFile(String file, boolean merge);
+ protected native void setXMLFile(String file);
+ protected native void setLocalXMLFile(String file);
+ /**
+ Sets the XML for the part.
+ Call this in the Part-inherited class constructor if you
+ don't call setXMLFile().
+ @short Sets the XML for the part.
+ */
+ protected native void setXML(String document, boolean merge);
+ protected native void setXML(String document);
+ /**
+ Sets the Document for the part, describing the layout of the GUI.
+ Call this in the Part-inherited class constructor if you don't call
+ setXMLFile or setXML .
+ @short Sets the Document for the part, describing the layout of the GUI.
+ */
+ protected native void setDOMDocument(QDomDocument document, boolean merge);
+ protected native void setDOMDocument(QDomDocument document);
+ /**
+ This function will attempt to give up some memory after the GUI
+ is built. It should never be used in apps where the GUI may be
+ rebuilt at some later time (components, for instance).
+ @short This function will attempt to give up some memory after the GUI is built.
+ */
+ protected native void conserveMemory();
+ /**
+ Actions can collectively be assigned a "State". To accomplish this
+ the respective actions are tagged as \<enable\> or \<disable\> in
+ a \<State\> \</State\> group of the XMLfile. During program execution the
+ programmer can call stateChanged() to set actions to a defined state.
+ @param newstate Name of a State in the XMLfile.
+ @param reverse If the flag reverse is set to StateReverse, the State is reversed.
+ (actions to be enabled will be disabled and action to be disabled will be enabled)
+ Default is reverse=false.
+ @short Actions can collectively be assigned a "State".
+ */
+ protected native void stateChanged(String newstate, int reverse);
+ protected native void stateChanged(String newstate);
+}
diff --git a/kdejava/koala/org/kde/koala/PreviewJob.java b/kdejava/koala/org/kde/koala/PreviewJob.java
new file mode 100644
index 00000000..9de81202
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/PreviewJob.java
@@ -0,0 +1,80 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import java.util.ArrayList;
+
+/**
+ See {@link PreviewJobSignals} for signals emitted by PreviewJob
+
+*/
+public class PreviewJob extends Job {
+ protected PreviewJob(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a new PreviewJob.
+ @param items a list of files to create previews for
+ @param width the desired width
+ @param height the desired height, 0 to use the <code>width</code>
+ @param iconSize the size of the mimetype icon to overlay over the
+ preview or zero to not overlay an icon. This has no effect if the
+ preview plugin that will be used doesn't use icon overlays.
+ @param iconAlpha transparency to use for the icon overlay
+ @param scale if the image is to be scaled to the requested size or
+ returned in its original size
+ @param save if the image should be cached for later use
+ @param enabledPlugins if non-zero, this points to a list containing
+ the names of the plugins that may be used.
+ @param deleteItems true to delete the items when done
+ @short Creates a new PreviewJob.
+ */
+ public PreviewJob(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins, boolean deleteItems) {
+ super((Class) null);
+ newPreviewJob(items,width,height,iconSize,iconAlpha,scale,save,enabledPlugins,deleteItems);
+ }
+ private native void newPreviewJob(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins, boolean deleteItems);
+ public PreviewJob(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins) {
+ super((Class) null);
+ newPreviewJob(items,width,height,iconSize,iconAlpha,scale,save,enabledPlugins);
+ }
+ private native void newPreviewJob(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins);
+ /**
+ Removes an item from preview processing. Use this if you passed
+ an item to filePreview and want to delete it now.
+ @param item the item that should be removed from the preview queue
+ @short Removes an item from preview processing.
+ */
+ public native void removeItem(KFileItem item);
+ /**
+ If <code>ignoreSize</code> is true, then the preview is always
+ generated regardless of the settings
+ @short If <code>ignoreSize</code> is true, then the preview is always generated regardless of the settings
+ */
+ public native void setIgnoreMaximumSize(boolean ignoreSize);
+ public native void setIgnoreMaximumSize();
+ /**
+ Returns a list of all available preview plugins. The list
+ contains the basenames of the plugins' .desktop files (no path,
+ no .desktop).
+ @return the list of plugins
+
+ @short Returns a list of all available preview plugins.
+ */
+ public static native ArrayList availablePlugins();
+ /**
+ Returns a list of all supported MIME types. The list can
+ contain entries like text/ (without the space).
+ @return the list of mime types
+
+ @short Returns a list of all supported MIME types.
+ */
+ public static native ArrayList supportedMimeTypes();
+ protected native void getOrCreateThumbnail();
+ protected native boolean statResultThumbnail();
+ protected native void createThumbnail(String arg1);
+ protected native void slotResult(Job job);
+}
diff --git a/kdejava/koala/org/kde/koala/PreviewJobSignals.java b/kdejava/koala/org/kde/koala/PreviewJobSignals.java
new file mode 100644
index 00000000..60bdad84
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/PreviewJobSignals.java
@@ -0,0 +1,26 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPixmap;
+import java.util.ArrayList;
+
+public interface PreviewJobSignals {
+ /**
+ Emitted when a thumbnail picture for <code>item</code> has been successfully
+ retrieved.
+ @param item the file of the preview
+ @param preview the preview image
+ @short Emitted when a thumbnail picture for <code>item</code> has been successfully retrieved.
+ */
+ void gotPreview(KFileItem item, QPixmap preview);
+ /**
+ Emitted when a thumbnail for <code>item</code> could not be created,
+ either because a ThumbCreator for its MIME type does not
+ exist, or because something went wrong.
+ @param item the file that failed
+ @short Emitted when a thumbnail for <code>item</code> could not be created, either because a ThumbCreator for its MIME type does not exist, or because something went wrong.
+ */
+ void failed(KFileItem item);
+}
diff --git a/kdejava/koala/org/kde/koala/ProcessingInstruction.java b/kdejava/koala/org/kde/koala/ProcessingInstruction.java
new file mode 100644
index 00000000..fa374ddb
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/ProcessingInstruction.java
@@ -0,0 +1,59 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>ProcessingInstruction</code> interface represents a
+ &quot;processing instruction&quot;, used in XML as a way to keep
+ processor-specific information in the text of the document.
+ @short The <code>ProcessingInstruction</code> interface represents a &quot;processing instruction&quot;, used in XML as a way to keep processor-specific information in the text of the document.
+
+*/
+public class ProcessingInstruction extends Node {
+ protected ProcessingInstruction(Class dummy){super((Class) null);}
+ public ProcessingInstruction() {
+ super((Class) null);
+ newProcessingInstruction();
+ }
+ private native void newProcessingInstruction();
+ public ProcessingInstruction(ProcessingInstruction other) {
+ super((Class) null);
+ newProcessingInstruction(other);
+ }
+ private native void newProcessingInstruction(ProcessingInstruction other);
+ public ProcessingInstruction(Node other) {
+ super((Class) null);
+ newProcessingInstruction(other);
+ }
+ private native void newProcessingInstruction(Node other);
+ /**
+ The target of this processing instruction. XML defines this as
+ being the first token following the markup that begins the
+ processing instruction.
+ @short The target of this processing instruction.
+ */
+ public native String target();
+ /**
+ The content of this processing instruction. This is from the
+ first non white space character after the target to the
+ character immediately preceding the <code>?&gt;</code> .
+ @short The content of this processing instruction.
+ */
+ public native String data();
+ /**
+ see data
+ @short see data
+ */
+ public native void setData(String arg1);
+ /**
+ Introduced in DOM Level 2
+ This method is from the LinkStyle interface
+ The style sheet.
+ @short Introduced in DOM Level 2 This method is from the LinkStyle interface
+ */
+ public native StyleSheet sheet();
+ // DOM::ProcessingInstruction* ProcessingInstruction(DOM::ProcessingInstructionImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/ProgressBase.java b/kdejava/koala/org/kde/koala/ProgressBase.java
new file mode 100644
index 00000000..5a2b579b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/ProgressBase.java
@@ -0,0 +1,206 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QCloseEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ This class does all initialization stuff for progress,
+ like connecting signals to slots.
+ All slots are implemented as pure methods.
+ All custom IO progress dialog should inherit this class.
+ Add your GUI code to the constructor and implemement those virtual
+ methods which you need in order to display progress.
+ E.g. StatusbarProgress only implements slotTotalSize(),
+ slotPercent() and slotSpeed().
+ Custom progress dialog will be used like this :
+ <pre>
+ // create job
+ CopyJob job = KIO.copy(...);
+ // create a dialog
+ MyCustomProgress customProgress;
+ customProgress = new MyCustomProgress();
+ // connect progress with job
+ customProgress.setJob( job );
+ ...
+ </pre>
+ There is a special method setStopOnClose() that controls the behavior of
+ the dialog.
+ See {@link ProgressBaseSignals} for signals emitted by ProgressBase
+ @author Matej Koss <koss@miesto.sk>
+
+ @short Base class for IO progress dialogs.
+
+*/
+public class ProgressBase extends QWidget {
+ protected ProgressBase(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a new progress dialog.
+ @param parent the parent of this dialog window, or 0
+ @short Creates a new progress dialog.
+ */
+ public ProgressBase(QWidget parent) {
+ super((Class) null);
+ newProgressBase(parent);
+ }
+ private native void newProgressBase(QWidget parent);
+ /**
+ Assign a KIO.Job to this progress dialog.
+ @param job the job to assign
+ @short Assign a KIO.Job to this progress dialog.
+ */
+ public native void setJob(Job job);
+ /**
+ Assign a KIO.Job to this progress dialog.
+ @param job the job to assign
+ @short Assign a KIO.Job to this progress dialog.
+ */
+ public native void setJob(CopyJob job);
+ /**
+ Assign a KIO.Job to this progress dialog.
+ @param job the job to assign
+ @short Assign a KIO.Job to this progress dialog.
+ */
+ public native void setJob(DeleteJob job);
+ public native void setStopOnClose(boolean stopOnClose);
+ public native boolean stopOnClose();
+ /**
+ This controls whether the dialog should be deleted or only cleaned when
+ the KIO.Job is finished (or canceled).
+ If your dialog is an embedded widget and not a separate window, you should
+ setOnlyClean(true) in the constructor of your custom dialog.
+ @param onlyClean If true the dialog will only call method slotClean.
+ If false the dialog will be deleted.
+ @short This controls whether the dialog should be deleted or only cleaned when the KIO.Job is finished (or canceled).
+ @see #onlyClean
+ */
+ public native void setOnlyClean(boolean onlyClean);
+ /**
+ Checks whether the dialog should be deleted or cleaned.
+ @return true if the dialog only calls slotClean, false if it will be
+ deleted
+
+ @short Checks whether the dialog should be deleted or cleaned.
+ @see #setOnlyClean
+ */
+ public native boolean onlyClean();
+ /**
+ Call when the operation finished.
+ @short Call when the operation finished.
+ */
+ public native void finished();
+ /**
+ This method should be called for correct cancellation of IO operation
+ Connect this to the progress widgets buttons etc.
+ @short This method should be called for correct cancellation of IO operation Connect this to the progress widgets buttons etc.
+ */
+ public native void slotStop();
+ /**
+ This method is called when the widget should be cleaned (after job is finished).
+ redefine this for custom behavior.
+ @short This method is called when the widget should be cleaned (after job is finished).
+ */
+ public native void slotClean();
+ /**
+ Called to set the total size.
+ @param job the KIO.Job
+ @param size the total size in bytes
+ @short Called to set the total size.
+ */
+ public native void slotTotalSize(Job job, long size);
+ /**
+ Called to set the total number of files.
+ @param job the KIO.Job
+ @param files the number of files
+ @short Called to set the total number of files.
+ */
+ public native void slotTotalFiles(Job job, long files);
+ /**
+ Called to set the total number of directories.
+ @param job the KIO.Job
+ @param dirs the number of directories
+ @short Called to set the total number of directories.
+ */
+ public native void slotTotalDirs(Job job, long dirs);
+ /**
+ Called to set the processed size.
+ @param job the KIO.Job
+ @param bytes the processed size in bytes
+ @short Called to set the processed size.
+ */
+ public native void slotProcessedSize(Job job, long bytes);
+ /**
+ Called to set the number of processed files.
+ @param job the KIO.Job
+ @param files the number of files
+ @short Called to set the number of processed files.
+ */
+ public native void slotProcessedFiles(Job job, long files);
+ /**
+ Called to set the number of processed directories.
+ @param job the KIO.Job
+ @param dirs the number of directories
+ @short Called to set the number of processed directories.
+ */
+ public native void slotProcessedDirs(Job job, long dirs);
+ /**
+ Called to set the speed.
+ @param job the KIO.Job
+ @param speed the speed in bytes/second
+ @short Called to set the speed.
+ */
+ public native void slotSpeed(Job job, long speed);
+ /**
+ Called to set the percentage.
+ @param job the KIO.Job
+ @param percent the percentage
+ @short Called to set the percentage.
+ */
+ public native void slotPercent(Job job, long percent);
+ /**
+ Called when the job is copying.
+ @param job the KIO.Job
+ @param src the source of the operation
+ @param dest the destination of the operation
+ @short Called when the job is copying.
+ */
+ public native void slotCopying(Job job, KURL src, KURL dest);
+ /**
+ Called when the job is moving.
+ @param job the KIO.Job
+ @param src the source of the operation
+ @param dest the destination of the operation
+ @short Called when the job is moving.
+ */
+ public native void slotMoving(Job job, KURL src, KURL dest);
+ /**
+ Called when the job is deleting.
+ @param job the KIO.Job
+ @param url the URL to delete
+ @short Called when the job is deleting.
+ */
+ public native void slotDeleting(Job job, KURL url);
+ /**
+ Called when the job is creating a directory.
+ @param job the KIO.Job
+ @param dir the URL of the directory to create
+ @short Called when the job is creating a directory.
+ */
+ public native void slotCreatingDir(Job job, KURL dir);
+ /**
+ Called when the job is resuming..
+ @param job the KIO.Job
+ @param from the position to resume from in bytes
+ @short Called when the job is resuming.
+ */
+ public native void slotCanResume(Job job, long from);
+ protected native void closeEvent(QCloseEvent arg1);
+ protected native void slotFinished(Job arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/ProgressBaseSignals.java b/kdejava/koala/org/kde/koala/ProgressBaseSignals.java
new file mode 100644
index 00000000..e3a46dc9
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/ProgressBaseSignals.java
@@ -0,0 +1,15 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QCloseEvent;
+import org.kde.qt.QWidget;
+
+public interface ProgressBaseSignals {
+ /**
+ Called when the operation stopped.
+ @short Called when the operation stopped.
+ */
+ void stopped();
+}
diff --git a/kdejava/koala/org/kde/koala/RGBColor.java b/kdejava/koala/org/kde/koala/RGBColor.java
new file mode 100644
index 00000000..bfcdd732
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/RGBColor.java
@@ -0,0 +1,53 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>RGBColor</code> interface is used to represent any <a
+ href="http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-color">
+ RGB color </a> value. This interface reflects the values in the
+ underlying style property. Hence, modifications made through this
+ interface modify the style property.
+ @short The <code>RGBColor</code> interface is used to represent any <a href="http://www.
+
+*/
+public class RGBColor implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected RGBColor(Class dummy){}
+
+ public RGBColor() {
+ newRGBColor();
+ }
+ private native void newRGBColor();
+ public RGBColor(int color) {
+ newRGBColor(color);
+ }
+ private native void newRGBColor(int color);
+ public RGBColor(RGBColor other) {
+ newRGBColor(other);
+ }
+ private native void newRGBColor(RGBColor other);
+ /**
+ This attribute is used for the red value of the RGB color.
+ @short This attribute is used for the red value of the RGB color.
+ */
+ public native CSSPrimitiveValue red();
+ /**
+ This attribute is used for the green value of the RGB color.
+ @short This attribute is used for the green value of the RGB color.
+ */
+ public native CSSPrimitiveValue green();
+ /**
+ This attribute is used for the blue value of the RGB color.
+ @short This attribute is used for the blue value of the RGB color.
+ */
+ public native CSSPrimitiveValue blue();
+ /**
+ @short
+ */
+ public native int color();
+}
diff --git a/kdejava/koala/org/kde/koala/Range.java b/kdejava/koala/org/kde/koala/Range.java
new file mode 100644
index 00000000..f9add647
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Range.java
@@ -0,0 +1,248 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+
+*/
+public class Range implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected Range(Class dummy){}
+
+ public Range() {
+ newRange();
+ }
+ private native void newRange();
+ public Range(Document rootContainer) {
+ newRange(rootContainer);
+ }
+ private native void newRange(Document rootContainer);
+ public Range(Range other) {
+ newRange(other);
+ }
+ private native void newRange(Range other);
+ public Range(Node startContainer, long startOffset, Node endContainer, long endOffset) {
+ newRange(startContainer,startOffset,endContainer,endOffset);
+ }
+ private native void newRange(Node startContainer, long startOffset, Node endContainer, long endOffset);
+ /**
+ Node within which the range begins
+ @short Node within which the range begins
+ */
+ public native Node startContainer();
+ /**
+ Offset within the starting node of the range.
+ @short Offset within the starting node of the range.
+ */
+ public native long startOffset();
+ /**
+ Node within which the range ends
+ @short Node within which the range ends
+ */
+ public native Node endContainer();
+ /**
+ Offset within the ending node of the range.
+ @short Offset within the ending node of the range.
+ */
+ public native long endOffset();
+ /**
+ true if the range is collapsed
+ @short true if the range is collapsed
+ */
+ public native boolean collapsed();
+ /**
+ Gets the common ancestor container of the range's two end-points.
+ Also sets it.
+ @short Gets the common ancestor container of the range's two end-points.
+ */
+ public native Node commonAncestorContainer();
+ /**
+ Sets the attributes describing the start of the range.
+ @param refNode The <code>refNode</code> value. This parameter
+ must be different from <code>null</code> .
+ @param offset The <code>startOffset</code> value.
+ INVALID_NODE_TYPE_ERR: Raised if <code>refNode</code> or an
+ ancestor of <code>refNode</code> is an Attr, Entity,
+ Notation, or DocumentType node.
+ If an offset is out-of-bounds, should it just be fixed up or
+ should an exception be raised.
+ @short Sets the attributes describing the start of the range.
+ */
+ public native void setStart(Node refNode, long offset);
+ /**
+ Sets the attributes describing the end of a range.
+ @param refNode The <code>refNode</code> value. This parameter
+ must be different from <code>null</code> .
+ @param offset The <code>endOffset</code> value.
+ INVALID_NODE_TYPE_ERR: Raised if <code>refNode</code> or an
+ ancestor of <code>refNode</code> is an Attr, Entity,
+ Notation, or DocumentType node.
+ @short Sets the attributes describing the end of a range.
+ */
+ public native void setEnd(Node refNode, long offset);
+ /**
+ Sets the start position to be before a node
+ @param refNode Range starts before <code>refNode</code>
+ @short Sets the start position to be before a node
+ */
+ public native void setStartBefore(Node refNode);
+ /**
+ Sets the start position to be after a node
+ @param refNode Range starts after <code>refNode</code>
+ @short Sets the start position to be after a node
+ */
+ public native void setStartAfter(Node refNode);
+ /**
+ Sets the end position to be before a node.
+ @param refNode Range ends before <code>refNode</code>
+ @short Sets the end position to be before a node.
+ */
+ public native void setEndBefore(Node refNode);
+ /**
+ Sets the end of a range to be after a node
+ @param refNode Range ends after <code>refNode</code> .
+ @short Sets the end of a range to be after a node
+ */
+ public native void setEndAfter(Node refNode);
+ /**
+ Collapse a range onto one of its end-points
+ @param toStart If true, collapses the Range onto its start; if
+ false, collapses it onto its end.
+ @short Collapse a range onto one of its end-points
+ */
+ public native void collapse(boolean toStart);
+ /**
+ Select a node and its contents
+ @param refNode The node to select.
+ @short Select a node and its contents
+ */
+ public native void selectNode(Node refNode);
+ /**
+ Select the contents within a node
+ @param refNode Node to select from
+ @short Select the contents within a node
+ */
+ public native void selectNodeContents(Node refNode);
+ /**
+ Compare the end-points of two ranges in a document.
+ @return -1, 0 or 1 depending on whether the corresponding
+ end-point of the Range is before, equal to, or after the
+ corresponding end-point of <code>sourceRange</code> .
+
+ @short Compare the end-points of two ranges in a document.
+ */
+ // short compareBoundaryPoints(DOM::Range::CompareHow arg1,const DOM::Range& arg2); >>>> NOT CONVERTED
+ /**
+ not part of the DOM
+ Compare the boundary-points of a range.
+ Return true if the startContainer is before the endContainer,
+ or if they are equal.
+ Return false if the startContainer is after the endContainer.
+ @short
+ */
+ public native boolean boundaryPointsValid();
+ /**
+ Removes the contents of a range from the containing document or
+ document fragment without returning a reference to the removed
+ content.
+ @short Removes the contents of a range from the containing document or document fragment without returning a reference to the removed content.
+ */
+ public native void deleteContents();
+ /**
+ Moves the contents of a range from the containing document or
+ document fragment to a new DocumentFragment.
+ HIERARCHY_REQUEST_ERR: Raised if a DocumentType node would be
+ extracted into the new DocumentFragment.
+ @return A DocumentFragment containing the extracted contents.
+
+ @short Moves the contents of a range from the containing document or document fragment to a new DocumentFragment.
+ */
+ public native DocumentFragment extractContents();
+ /**
+ Duplicates the contents of a range
+ @return A DocumentFragment containing contents equivalent to
+ those of this range.
+
+ @short Duplicates the contents of a range
+ */
+ public native DocumentFragment cloneContents();
+ /**
+ Inserts a node into the document or document fragment at the
+ start of the range.
+ @param newNode The node to insert at the start of the range
+ WRONG_DOCUMENT_ERR: Raised if <code>newNode</code> and the
+ container of the start of the Range were not created from the
+ same document.
+ HIERARCHY_REQUEST_ERR: Raised if the container of the start of
+ the Range is of a type that does not allow children of the type
+ of <code>newNode</code> or if <code>newNode</code> is an
+ ancestor of the container .
+ @short Inserts a node into the document or document fragment at the start of the range.
+ */
+ public native void insertNode(Node newNode);
+ /**
+ Reparents the contents of the range to the given node and
+ inserts the node at the position of the start of the range.
+ @param newParent The node to surround the contents with.
+ WRONG_DOCUMENT_ERR: Raised if <code>newParent</code> and the
+ container of the start of the Range were not created from the
+ same document.
+ HIERARCHY_REQUEST_ERR: Raised if the container of the start of
+ the Range is of a type that does not allow children of the type
+ of <code>newParent</code> or if <code>newParent</code> is
+ an ancestor of the container or if <code>node</code> would
+ end up with a child node of a type not allowed by the type of
+ <code>node</code> .
+ INVALID_NODE_TYPE_ERR: Raised if <code>node</code> is an
+ Attr, Entity, DocumentType, Notation, Document, or
+ DocumentFragment node.
+ @short Reparents the contents of the range to the given node and inserts the node at the position of the start of the range.
+ */
+ public native void surroundContents(Node newParent);
+ /**
+ Produces a new range whose end-points are equal to the
+ end-points of the range.
+ @return The duplicated range.
+
+ @short Produces a new range whose end-points are equal to the end-points of the range.
+ */
+ public native Range cloneRange();
+ /**
+ Returns the contents of a range as a string.
+ @return The contents of the range.
+
+ @short Returns the contents of a range as a string.
+ */
+ public native String toString();
+ /**
+ @short
+ */
+ public native String toHTML();
+ public native DocumentFragment createContextualFragment(String html);
+ /**
+ Called to indicate that the range is no longer in use and that
+ the implementation may relinquish any resources associated with
+ this range. Subsequent calls to any methods or attribute getters
+ on this range will result in a DOMException being thrown with an
+ error code of INVALID_STATE_ERR.
+ @short Called to indicate that the range is no longer in use and that the implementation may relinquish any resources associated with this range.
+ */
+ public native void detach();
+ /**
+ not part of the DOM
+ true if the range is detached
+ @short not part of the DOM true if the range is detached
+ */
+ public native boolean isDetached();
+ /**
+ not part of the DOM
+ @short
+ */
+ // DOM::RangeImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+ // DOM::Range* Range(DOM::RangeImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/RangeException.java b/kdejava/koala/org/kde/koala/RangeException.java
new file mode 100644
index 00000000..57eb5fce
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/RangeException.java
@@ -0,0 +1,24 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+
+*/
+public class RangeException implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected RangeException(Class dummy){}
+
+ public RangeException(short _code) {
+ newRangeException(_code);
+ }
+ private native void newRangeException(short _code);
+ public RangeException(RangeException other) {
+ newRangeException(other);
+ }
+ private native void newRangeException(RangeException other);
+}
diff --git a/kdejava/koala/org/kde/koala/ReadOnlyPart.java b/kdejava/koala/org/kde/koala/ReadOnlyPart.java
new file mode 100644
index 00000000..cf8d579c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/ReadOnlyPart.java
@@ -0,0 +1,106 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+/**
+
+ Base class for any "viewer" part.
+ This class takes care of network transparency for you,
+ in the simplest way (synchronously).
+ To use the built-in network transparency, you only need to implement
+ openFile(), not openURL().
+ To prevent network transparency, or to implement it another way
+ (e.g. asynchronously), override openURL().
+ KParts Application can use the signals to show feedback while the URL is being loaded.
+ ReadOnlyPart handles the window caption by setting it to the current URL
+ (set in openURL(), and each time the part is activated).
+ If you want another caption, set it in openFile() and
+ (if the part might ever be used with a part manager) in guiActivateEvent()
+ See {@link ReadOnlyPartSignals} for signals emitted by ReadOnlyPart
+ @short Base class for any "viewer" part.
+
+*/
+public class ReadOnlyPart extends Part {
+ protected ReadOnlyPart(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor
+ See also Part for the setXXX methods to call.
+ @short Constructor See also Part for the setXXX methods to call.
+ */
+ /**
+ Call this to turn off the progress info dialog used by
+ the internal KIO job. Use this if you provide another way
+ of displaying progress info (e.g. a statusbar), using the
+ signals emitted by this class, and/or those emitted by
+ the Job given by started.
+ @short Call this to turn off the progress info dialog used by the internal KIO job.
+ */
+ public native void setProgressInfoEnabled(boolean show);
+ /**
+ Returns whether the part shows the progress info dialog used by internal
+ KIO job.
+ @short Returns whether the part shows the progress info dialog used by internal KIO job.
+ */
+ public native boolean isProgressInfoEnabled();
+ public native void showProgressInfo(boolean show);
+ /**
+ Returns the currently in part used URL.
+ @return The current used URL.
+
+ @short Returns the currently in part used URL.
+ */
+ public native KURL url();
+ /**
+ Called when closing the current url (e.g. document), for instance
+ when switching to another url (note that openURL() calls it
+ automatically in this case).
+ If the current URL is not fully loaded yet, aborts loading.
+ Deletes the temporary file used when the url is remote.
+ @return always true, but the return value exists for reimplementations
+
+ @short Called when closing the current url (e.
+ */
+ public native boolean closeURL();
+ /**
+ Initiate sending data to this part.
+ This is an alternative to openURL, which allows the user of the part
+ to load the data itself, and send it progressively to the part.
+ @param mimeType the type of data that is going to be sent to this part.
+ @param url the URL representing this data. Although not directly used,
+ every ReadOnlyPart has a URL (see url()), so this simply sets it.
+ @return true if the part supports progressive loading and accepts data, false otherwise.
+
+ @short Initiate sending data to this part.
+ */
+ public native boolean openStream(String mimeType, KURL url);
+ /**
+ Send some data to the part. openStream must have been called previously,
+ and must have returned true.
+ @return true if the data was accepted by the part. If false is returned,
+ the application should stop sending data, and doesn't have to call closeStream.
+
+ @short Send some data to the part.
+ */
+ public native boolean writeStream(byte[] data);
+ /**
+ Terminate the sending of data to the part.
+ With some data types (text, html...) closeStream might never actually be called,
+ in the case of continuous streams, for instance plain text or HTML data.
+ @short Terminate the sending of data to the part.
+ */
+ public native boolean closeStream();
+ /**
+ Only reimplement openURL if you don't want synchronous network transparency
+ Otherwise, reimplement openFile() only .
+ If you reimplement it, don't forget to set the caption, usually with
+ emit setWindowCaption( url.prettyURL() );
+ @short Only reimplement openURL if you don't want synchronous network transparency Otherwise, reimplement openFile() only .
+ */
+ public native boolean openURL(KURL url);
+}
diff --git a/kdejava/koala/org/kde/koala/ReadOnlyPartSignals.java b/kdejava/koala/org/kde/koala/ReadOnlyPartSignals.java
new file mode 100644
index 00000000..2127b737
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/ReadOnlyPartSignals.java
@@ -0,0 +1,39 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+public interface ReadOnlyPartSignals {
+ /**
+ The part emits this when starting data.
+ If using a KIO.Job, it sets the job in the signal, so that
+ progress information can be shown. Otherwise, job is 0.
+ @short The part emits this when starting data.
+ */
+ void started(Job arg1);
+ /**
+ Emit this when you have completed loading data.
+ Hosting apps will want to know when the process of loading the data
+ is finished, so that they can access the data when everything is loaded.
+ @short Emit this when you have completed loading data.
+ */
+ void completed();
+ /**
+ Same as the above signal except it indicates whether there is
+ a pending action to be executed on a delay timer. An example of
+ this is the meta-refresh tags on web pages used to reload/redirect
+ after a certain period of time. This signal is useful if you want
+ to give the user the ability to cancel such pending actions.
+ @param pendingAction true if a pending action exists, false otherwise.
+ @short Same as the above signal except it indicates whether there is a pending action to be executed on a delay timer.
+ */
+ void completed(boolean pendingAction);
+ /**
+ Emit this if loading is canceled by the user or by an error.
+ @param errMsg the error message, empty if the user canceled the loading voluntarily.
+ @short Emit this if loading is canceled by the user or by an error.
+ */
+ void canceled(String errMsg);
+}
diff --git a/kdejava/koala/org/kde/koala/ReadWritePart.java b/kdejava/koala/org/kde/koala/ReadWritePart.java
new file mode 100644
index 00000000..ed501e4d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/ReadWritePart.java
@@ -0,0 +1,114 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+/**
+
+ Base class for an "editor" part.
+ This class handles network transparency for you.
+ Anything that can open a URL, allow modifications, and save
+ (to the same URL or a different one).
+ A read-write part can be set to read-only mode, using setReadWrite().
+ Part writers :
+ Any part inheriting ReadWritePart should check isReadWrite()
+ before allowing any action that modifies the part.
+ The part probably wants to reimplement setReadWrite, disable those
+ actions. Don't forget to call the parent setReadWrite().
+ See {@link ReadWritePartSignals} for signals emitted by ReadWritePart
+ @short Base class for an "editor" part.
+
+*/
+public class ReadWritePart extends ReadOnlyPart {
+ protected ReadWritePart(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor.
+ See parent constructor for instructions.
+ @short Constructor.
+ */
+ /**
+ @return true if the part is in read-write mode
+
+ @short
+ */
+ public native boolean isReadWrite();
+ /**
+ Changes the behavior of this part to readonly or readwrite.
+ @param readwrite set to true to enable readwrite mode
+ @short Changes the behavior of this part to readonly or readwrite.
+ */
+ public native void setReadWrite(boolean readwrite);
+ public native void setReadWrite();
+ /**
+ @return true if the document has been modified.
+
+ @short
+ */
+ public native boolean isModified();
+ /**
+ If the document has been modified, ask the user to save changes.
+ This method is meant to be called from KMainWindow.queryClose().
+ It will also be called from closeURL().
+ @return true if closeURL() can be called without the user losing
+ important data, false if the user chooses to cancel.
+
+ @short If the document has been modified, ask the user to save changes.
+ */
+ public native boolean queryClose();
+ /**
+ Called when closing the current url (e.g. document), for instance
+ when switching to another url (note that openURL() calls it
+ automatically in this case).
+ If the current URL is not fully loaded yet, aborts loading.
+ If isModified(), queryClose() will be called.
+ @return false on cancel
+
+ @short Called when closing the current url (e.
+ */
+ public native boolean closeURL();
+ /**
+ Call this method instead of the above if you need control if
+ the save prompt is shown. For example, if you call queryClose()
+ from KMainWindow.queryClose(), you would not want to prompt
+ again when closing the url.
+ Equivalent to promptToSave ? closeURL() : ReadOnlyPart.closeURL()
+ @short Call this method instead of the above if you need control if the save prompt is shown.
+ */
+ public native boolean closeURL(boolean promptToSave);
+ /**
+ Save the file to a new location.
+ Calls save(), no need to reimplement
+ @short Save the file to a new location.
+ */
+ public native boolean saveAs(KURL url);
+ /**
+ Sets the modified flag of the part.
+ @short Sets the modified flag of the part.
+ */
+ public native void setModified(boolean modified);
+ /**
+ Call setModified() whenever the contents get modified.
+ This is a slot for convenience, so that you can connect it
+ to a signal, like textChanged().
+ @short Call setModified() whenever the contents get modified.
+ */
+ public native void setModified();
+ /**
+ Save the file in the location from which it was opened.
+ You can connect this to the "save" action.
+ Calls saveFile() and saveToURL(), no need to reimplement.
+ @short Save the file in the location from which it was opened.
+ */
+ public native boolean save();
+ /**
+ Waits for any pending upload job to finish and returns whether the
+ last save() action was successful.
+ @short Waits for any pending upload job to finish and returns whether the last save() action was successful.
+ */
+ public native boolean waitSaveComplete();
+}
diff --git a/kdejava/koala/org/kde/koala/ReadWritePartSignals.java b/kdejava/koala/org/kde/koala/ReadWritePartSignals.java
new file mode 100644
index 00000000..2d1f07bb
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/ReadWritePartSignals.java
@@ -0,0 +1,16 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+public interface ReadWritePartSignals {
+ /**
+ set handled to true, if you don't want the default handling
+ set abortClosing to true, if you handled the request,
+ but for any reason don't want to allow closing the document
+ @short
+ */
+ void sigQueryClose(boolean[] handled, boolean[] abortClosing);
+}
diff --git a/kdejava/koala/org/kde/koala/Rect.java b/kdejava/koala/org/kde/koala/Rect.java
new file mode 100644
index 00000000..b44c0361
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Rect.java
@@ -0,0 +1,57 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>Rect</code> interface is used to represent any <a
+ href="http://www.w3.org/TR/REC-CSS2/visufx.html#value-def-shape">
+ rect </a> value. This interface reflects the values in the
+ underlying style property. Hence, modifications made through this
+ interface modify the style property.
+ @short The <code>Rect</code> interface is used to represent any <a href="http://www.
+
+*/
+public class Rect implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected Rect(Class dummy){}
+
+ public Rect() {
+ newRect();
+ }
+ private native void newRect();
+ public Rect(Rect other) {
+ newRect(other);
+ }
+ private native void newRect(Rect other);
+ /**
+ This attribute is used for the top of the rect.
+ @short This attribute is used for the top of the rect.
+ */
+ public native CSSPrimitiveValue top();
+ /**
+ This attribute is used for the right of the rect.
+ @short This attribute is used for the right of the rect.
+ */
+ public native CSSPrimitiveValue right();
+ /**
+ This attribute is used for the bottom of the rect.
+ @short This attribute is used for the bottom of the rect.
+ */
+ public native CSSPrimitiveValue bottom();
+ /**
+ This attribute is used for the left of the rect.
+ @short This attribute is used for the left of the rect.
+ */
+ public native CSSPrimitiveValue left();
+ /**
+ not part of the DOM
+ @short
+ */
+ // DOM::RectImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+ // DOM::Rect* Rect(DOM::RectImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/RenameDlg.java b/kdejava/koala/org/kde/koala/RenameDlg.java
new file mode 100644
index 00000000..be8b315c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/RenameDlg.java
@@ -0,0 +1,102 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+import org.kde.qt.QDialog;
+
+/**
+
+ A dialog for the options to rename two files.
+ @short A dialog for renaming files.
+
+*/
+public class RenameDlg extends QDialog {
+ protected RenameDlg(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a "rename" dialog.
+ @param parent parent widget (often 0)
+ @param caption the caption for the dialog box
+ @param src the url to the file/dir we're trying to copy, as it's part of the text message
+ @param dest the path to destination file/dir, i.e. the one that already exists
+ @param mode parameters for the dialog (which buttons to show...),
+ @param sizeSrc size of source file
+ @param sizeDest size of destination file
+ @param ctimeSrc creation time of source file
+ @param ctimeDest creation time of destination file
+ @param mtimeSrc modification time of source file
+ @param mtimeDest modification time of destination file
+ @param modal set to true for a modal dialog
+ @short Construct a "rename" dialog.
+ @see RenameDlg_Mode
+ */
+ public RenameDlg(QWidget parent, String caption, String src, String dest, int mode, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc, int mtimeDest, boolean modal) {
+ super((Class) null);
+ newRenameDlg(parent,caption,src,dest,mode,sizeSrc,sizeDest,ctimeSrc,ctimeDest,mtimeSrc,mtimeDest,modal);
+ }
+ private native void newRenameDlg(QWidget parent, String caption, String src, String dest, int mode, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc, int mtimeDest, boolean modal);
+ public RenameDlg(QWidget parent, String caption, String src, String dest, int mode, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc, int mtimeDest) {
+ super((Class) null);
+ newRenameDlg(parent,caption,src,dest,mode,sizeSrc,sizeDest,ctimeSrc,ctimeDest,mtimeSrc,mtimeDest);
+ }
+ private native void newRenameDlg(QWidget parent, String caption, String src, String dest, int mode, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc, int mtimeDest);
+ public RenameDlg(QWidget parent, String caption, String src, String dest, int mode, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc) {
+ super((Class) null);
+ newRenameDlg(parent,caption,src,dest,mode,sizeSrc,sizeDest,ctimeSrc,ctimeDest,mtimeSrc);
+ }
+ private native void newRenameDlg(QWidget parent, String caption, String src, String dest, int mode, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc);
+ public RenameDlg(QWidget parent, String caption, String src, String dest, int mode, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest) {
+ super((Class) null);
+ newRenameDlg(parent,caption,src,dest,mode,sizeSrc,sizeDest,ctimeSrc,ctimeDest);
+ }
+ private native void newRenameDlg(QWidget parent, String caption, String src, String dest, int mode, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest);
+ public RenameDlg(QWidget parent, String caption, String src, String dest, int mode, long sizeSrc, long sizeDest, int ctimeSrc) {
+ super((Class) null);
+ newRenameDlg(parent,caption,src,dest,mode,sizeSrc,sizeDest,ctimeSrc);
+ }
+ private native void newRenameDlg(QWidget parent, String caption, String src, String dest, int mode, long sizeSrc, long sizeDest, int ctimeSrc);
+ public RenameDlg(QWidget parent, String caption, String src, String dest, int mode, long sizeSrc, long sizeDest) {
+ super((Class) null);
+ newRenameDlg(parent,caption,src,dest,mode,sizeSrc,sizeDest);
+ }
+ private native void newRenameDlg(QWidget parent, String caption, String src, String dest, int mode, long sizeSrc, long sizeDest);
+ public RenameDlg(QWidget parent, String caption, String src, String dest, int mode, long sizeSrc) {
+ super((Class) null);
+ newRenameDlg(parent,caption,src,dest,mode,sizeSrc);
+ }
+ private native void newRenameDlg(QWidget parent, String caption, String src, String dest, int mode, long sizeSrc);
+ public RenameDlg(QWidget parent, String caption, String src, String dest, int mode) {
+ super((Class) null);
+ newRenameDlg(parent,caption,src,dest,mode);
+ }
+ private native void newRenameDlg(QWidget parent, String caption, String src, String dest, int mode);
+ /**
+ @return the new destination
+ valid only if RENAME was chosen
+
+ @short
+ */
+ public native KURL newDestURL();
+ public native void b0Pressed();
+ public native void b1Pressed();
+ public native void b2Pressed();
+ public native void b3Pressed();
+ public native void b4Pressed();
+ public native void b5Pressed();
+ public native void b6Pressed();
+ public native void b7Pressed();
+ public native void b8Pressed();
+ /**
+ Given a directory path and a filename (which usually exists already),
+ this function returns a suggested name for a file that doesn't exist
+ in that directory. The existence is only checked for local urls though.
+ The suggested file name is of the form foo_1 foo_2 etc.
+ @short Given a directory path and a filename (which usually exists already), this function returns a suggested name for a file that doesn't exist in that directory.
+ */
+ public static native String suggestName(KURL baseURL, String oldName);
+ protected native void enableRenameButton(String arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/Scheduler.java b/kdejava/koala/org/kde/koala/Scheduler.java
new file mode 100644
index 00000000..e6ed1141
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Scheduler.java
@@ -0,0 +1,376 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ The KIO.Scheduler manages io-slaves for the application.
+ It also queues jobs and assigns the job to a slave when one
+ becomes available.
+ There are 3 possible ways for a job to get a slave:
+ <h3>1. Direct</h3>
+ This is the default. When you create a job the
+ KIO.Scheduler will be notified and will find either an existing
+ slave that is idle or it will create a new slave for the job.
+ Example:
+ <pre>
+ TransferJob job = KIO.get(KURL("http://www.kde.org"));
+ </pre>
+ <h3>2. Scheduled</h3>
+ If you create a lot of jobs, you might want not want to have a
+ slave for each job. If you schedule a job, a maximum number
+ of slaves will be created. When more jobs arrive, they will be
+ queued. When a slave is finished with a job, it will be assigned
+ a job from the queue.
+ Example:
+ <pre>
+ TransferJob job = KIO.get(KURL("http://www.kde.org"));
+ KIO.Scheduler.scheduleJob(job);
+ </pre>
+ <h3>3. Connection Oriented</h3>
+ For some operations it is important that multiple jobs use
+ the same connection. This can only be ensured if all these jobs
+ use the same slave.
+ You can ask the scheduler to open a slave for connection oriented
+ operations. You can then use the scheduler to assign jobs to this
+ slave. The jobs will be queued and the slave will handle these jobs
+ one after the other.
+ Example:
+ <pre>
+ Slave slave = KIO.Scheduler.getConnectedSlave(
+ KURL("pop3://bastian:password@mail.kde.org"));
+ TransferJob job1 = KIO.get(
+ KURL("pop3://bastian:password@mail.kde.org/msg1"));
+ KIO.Scheduler.assignJobToSlave(slave, job1);
+ TransferJob job2 = KIO.get(
+ KURL("pop3://bastian:password@mail.kde.org/msg2"));
+ KIO.Scheduler.assignJobToSlave(slave, job2);
+ TransferJob job3 = KIO.get(
+ KURL("pop3://bastian:password@mail.kde.org/msg3"));
+ KIO.Scheduler.assignJobToSlave(slave, job3);
+ // ... Wait for jobs to finish...
+ KIO.Scheduler.disconnectSlave(slave);
+ </pre>
+ Note that you need to explicitly disconnect the slave when the
+ connection goes down, so your error handler should contain:
+ <pre>
+ if (error == KIO.ERR_CONNECTION_BROKEN)
+ KIO.Scheduler.disconnectSlave(slave);
+ </pre>
+ See {@link SchedulerSignals} for signals emitted by Scheduler
+ @short The KIO.Scheduler manages io-slaves for the application.
+ @see Slave
+ @see Job
+
+*/
+public class Scheduler extends QObject implements DCOPObjectInterface {
+ protected Scheduler(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public native boolean connect(QObject sender, String signal, String member);
+ public native void debug_info();
+ public native boolean process(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ public native ArrayList functions();
+ public native void slotSlaveDied(Slave slave);
+ public native void slotSlaveStatus(int pid, String protocol, String host, boolean connected);
+ /**
+ Register <code>job</code> with the scheduler.
+ The default is to create a new slave for the job if no slave
+ is available. This can be changed by calling scheduleJob.
+ @param job the job to register
+ @short Register <code>job</code> with the scheduler.
+ */
+ public static native void doJob(SimpleJob job);
+ /**
+ Calling ths function makes that <code>job</code> gets scheduled for later
+ execution, if multiple jobs are registered it might wait for
+ other jobs to finish.
+ @param job the job to schedule
+ @short Calling ths function makes that <code>job</code> gets scheduled for later execution, if multiple jobs are registered it might wait for other jobs to finish.
+ */
+ public static native void scheduleJob(SimpleJob job);
+ /**
+ Stop the execution of a job.
+ @param job the job to cancel
+ @short Stop the execution of a job.
+ */
+ public static native void cancelJob(SimpleJob job);
+ /**
+ Called when a job is done.
+ @param job the finished job
+ @param slave the slave that executed the <code>job</code>
+ @short Called when a job is done.
+ */
+ public static native void jobFinished(SimpleJob job, Slave slave);
+ /**
+ Puts a slave on notice. A next job may reuse this slave if it
+ requests the same URL.
+ A job can be put on hold after it has emit'ed its mimetype.
+ Based on the mimetype, the program can give control to another
+ component in the same process which can then resume the job
+ by simply asking for the same URL again.
+ @param job the job that should be stopped
+ @param url the URL that is handled by the <code>url</code>
+ @short Puts a slave on notice.
+ */
+ public static native void putSlaveOnHold(SimpleJob job, KURL url);
+ /**
+ Removes any slave that might have been put on hold. If a slave
+ was put on hold it will be killed.
+ @short Removes any slave that might have been put on hold.
+ */
+ public static native void removeSlaveOnHold();
+ /**
+ Send the slave that was put on hold back to KLauncher. This
+ allows another process to take over the slave and resume the job
+ that was started.
+ @short Send the slave that was put on hold back to KLauncher.
+ */
+ public static native void publishSlaveOnHold();
+ /**
+ Requests a slave for use in connection-oriented mode.
+ @param url This defines the username,password,host & port to
+ connect with.
+ @param config Configuration data for the slave.
+ @return A pointer to a connected slave or 0 if an error occurred.
+
+ @short Requests a slave for use in connection-oriented mode.
+ @see #assignJobToSlave
+ @see #disconnectSlave
+ */
+ // KIO::Slave* getConnectedSlave(const KURL& arg1,const KIO::MetaData& arg2); >>>> NOT CONVERTED
+ public static native Slave getConnectedSlave(KURL url);
+ public static native boolean assignJobToSlave(Slave slave, SimpleJob job);
+ public static native boolean disconnectSlave(Slave slave);
+ /**
+ Send the slave that was put on hold back to KLauncher. This
+ allows another process to take over the slave and resume the job
+ the that was started.
+ Register the mainwindow <code>wid</code> with the KIO subsystem
+ Do not call this, it is called automatically from
+ void KIO.Job.setWindow(QWidget).
+ @param wid the window to register
+ @short Send the slave that was put on hold back to KLauncher.
+ */
+ public static native void registerWindow(QWidget wid);
+ /**
+ Unregisters the window registered by registerWindow().
+ @short
+ */
+ public static native void unregisterWindow(QObject wid);
+ /**
+ Function to connect signals emitted by the scheduler.
+ @short Function to connect signals emitted by the scheduler.
+ @see #slaveConnected
+ @see #slaveError
+ */
+ public static native boolean connect(String signal, QObject receiver, String member);
+ public static native boolean connect(QObject sender, String signal, QObject receiver, String member);
+ public static native boolean disconnect(QObject sender, String signal, QObject receiver, String member);
+ /**
+ When true, the next job will check whether KLauncher has a slave
+ on hold that is suitable for the job.
+ @param b true when KLauncher has a job on hold
+ @short When true, the next job will check whether KLauncher has a slave on hold that is suitable for the job.
+ */
+ public static native void checkSlaveOnHold(boolean b);
+ // void setupSlave(KIO::Slave* arg1,const KURL& arg2,const QString& arg3,const QString& arg4,bool arg5,const KIO::MetaData* arg6); >>>> NOT CONVERTED
+ protected native void setupSlave(Slave slave, KURL url, String protocol, String proxy, boolean newSlave);
+ // bool startJobScheduled(KIO::Scheduler::ProtocolInfo* arg1); >>>> NOT CONVERTED
+ protected native boolean startJobDirect();
+ public Scheduler() {
+ super((Class) null);
+ newScheduler();
+ }
+ private native void newScheduler();
+ protected native void startStep();
+ protected native void slotCleanIdleSlaves();
+ protected native void slotSlaveConnected();
+ protected native void slotSlaveError(int error, String errorMsg);
+ protected native void slotScheduleCoSlave();
+ protected native void slotUnregisterWindow(QObject arg1);
+ /**
+ Returns the object id of the DCOPObject.
+ @return the object's id
+
+ @short Returns the object id of the DCOPObject.
+ */
+ public native String objId();
+ /**
+ Renames a dcop object, if no other with the same name exists
+ Use with care, all dcop signals are disconnected
+ @param objId the new object id
+ @short Renames a dcop object, if no other with the same name exists Use with care, all dcop signals are disconnected
+ */
+ public native boolean setObjId(String objId);
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for process() but
+ you still want to dispatch some functions dynamically.
+ Dynamically means that methods may appear and vanish
+ during runtime.
+ @param fun is the normalized function signature.
+ Such a signature usually looks like
+ foobar(String,int). The return type,
+ qualifiers like "const" etc. are not part of
+ the signature.
+ @param data the received data
+ @param replyType write the reply type in this string
+ @param replyData write the reply data in this array
+ @return true if successful, false otherwise. The default implementation
+ returns always false.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for process() but you still want to dispatch some functions dynamically.
+ @see #process
+ @see DCOPClient#normalizeFunctionSignature
+ @see #functions
+ @see DCOPClient#process
+ */
+ public native boolean processDynamic(String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for functions() but
+ you still want to list some functions dynamically.
+ Dynamically means that the methods may appear and vanish
+ during runtime.
+ @return A list of the additional functions, default is an empty list.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for functions() but you still want to list some functions dynamically.
+ @see #functions
+ */
+ public native ArrayList functionsDynamic();
+ /**
+ This function is of interest when you used an IDL compiler
+ to generate the implementation for interfaces() but
+ you still want to list some interfaces dynamically.
+ Dynamically means that they may appear and vanish
+ during runtime.
+ @return A list of the additional interfaces, default is an empty list.
+
+ @short This function is of interest when you used an IDL compiler to generate the implementation for interfaces() but you still want to list some interfaces dynamically.
+ @see #interfaces
+ */
+ public native ArrayList interfacesDynamic();
+ /**
+ Returns the names of the interfaces, specific ones last. The
+ functions gets reimplemented by the IDL compiler. If you don't
+ use the IDL compiler, consider implementing this function
+ manually if you want your object to be easily explorable.
+ @return a list of interfaces
+
+ @short Returns the names of the interfaces, specific ones last.
+ @see #functions
+ */
+ public native ArrayList interfaces();
+ /**
+ Emit <code>signal</code> as DCOP signal from this object with <code>data</code> as
+ arguments
+ @param signal the signal to emit
+ @param data the data to send
+ @short Emit <code>signal</code> as DCOP signal from this object with <code>data</code> as arguments
+ */
+ public native void emitDCOPSignal(String signal, byte[] data);
+ /**
+ Connects to a DCOP signal.
+ @param sender the name of the client that emits the signal. When empty
+ the signal will be passed from any client.
+ @param senderObj the name of the sending object that emits the signal.
+ @param signal the name of the signal. The arguments should match with slot.
+ @param slot The name of the slot to call. Its arguments should match with signal.
+ @param Volatile If true, the connection will not be reestablished when
+ <code>sender</code> unregisters and reregisters with DCOP. In this case the <code>sender</code>
+ must be registered when the connection is made.
+ If false, the connection will be reestablished when <code>sender</code> reregisters.
+ In this case the connection can be made even if <code>sender</code> is not registered
+ at that time.
+
+ <li>
+ <code>Volatile</code> is true and <code>sender</code> does not exist.
+ </li>
+
+ <li>
+ <code>signal</code> and <code>slot</code> do not have matching arguments.
+
+ </li> @return false if a connection could not be established.
+ This will be the case when
+
+ @short Connects to a DCOP signal.
+ */
+ public native boolean connectDCOPSignal(String sender, String senderObj, String signal, String slot, boolean Volatile);
+ /**
+ Disconnects a DCOP signal.
+ A special case is when both <code>sender</code> & <code>signal</code> are empty. In this
+ case all connections related to this object in the current client
+ are disconnected. (Both connections from as well as to this object!)
+ @param sender the name of the client that emits the signal.
+ @param senderObj the name of the object that emits the signal.
+ If empty all objects will be disconnected.
+ @param signal the name of the signal. The arguments should match with slot.
+ If empty all objects will be disconnected.
+ @param slot The name of the slot the signal is connected to.
+ If empty all slots will be disconnected.
+ @return false if no connection(s) where removed.
+
+ @short Disconnects a DCOP signal.
+ */
+ public native boolean disconnectDCOPSignal(String sender, String senderObj, String signal, String slot);
+ /**
+ Returns the DCOPClient responsible for making the call.
+ Only call this function while you are handling a DCOP call.
+ @return the DCOPClient responsible for making the call.
+ This information is only guaranteed to be correct when
+ entering your DCOP function.
+
+ @short Returns the DCOPClient responsible for making the call.
+ */
+ public native DCOPClient callingDcopClient();
+ /**
+ @short
+ */
+ public native void setCallingDcopClient(DCOPClient arg1);
+ /**
+ Checks whether an object with the given id is known in this process.
+ DCOPObjectProxy
+ @return true if an object with the questionable <code>objId</code> is
+ known in this process. This query does not ask proxies.
+
+ @short Checks whether an object with the given id is known in this process.
+ */
+ public static native boolean hasObject(String objId);
+ /**
+ Try to find a dcop object with the given id.
+ This function does not query the DCOPObjectProxy.
+ @param objId the object id to search
+ @return the DCOPObject for the id <code>objId.</code>
+
+ @short Try to find a dcop object with the given id.
+ */
+ public static native DCOPObjectInterface find(String objId);
+ /**
+ Tries to find an object using a partial object id.
+ This function is used for multicasting a DCOP message to
+ several objects inside a single process.
+ @param partialId the partial object id to search for
+ @return a list of DCOPObjects beginning with the string
+ contained in <code>partialId.</code>
+
+ @short Tries to find an object using a partial object id.
+ */
+ // QPtrList<DCOPObject> match(const QCString& arg1); >>>> NOT CONVERTED
+ /**
+ Creates an object id for the QObject <code>obj.</code> This is done
+ using the QObject.name() function.
+ @param obj the object whose name will be used
+ @return the created object id
+
+ @short Creates an object id for the QObject <code>obj.</code>
+ */
+ public static native String objectName(QObject arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/SchedulerSignals.java b/kdejava/koala/org/kde/koala/SchedulerSignals.java
new file mode 100644
index 00000000..14285e5a
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/SchedulerSignals.java
@@ -0,0 +1,13 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import java.util.ArrayList;
+import org.kde.qt.QWidget;
+
+public interface SchedulerSignals {
+ void slaveConnected(Slave slave);
+ void slaveError(Slave slave, int error, String errorMsg);
+}
diff --git a/kdejava/koala/org/kde/koala/SessionData.java b/kdejava/koala/org/kde/koala/SessionData.java
new file mode 100644
index 00000000..24d3e5f2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/SessionData.java
@@ -0,0 +1,27 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+/**
+
+ @short
+
+*/
+public class SessionData extends QObject {
+ protected SessionData(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public SessionData() {
+ super((Class) null);
+ newSessionData();
+ }
+ private native void newSessionData();
+ // void configDataFor(KIO::MetaData& arg1,const QString& arg2,const QString& arg3); >>>> NOT CONVERTED
+ public native void reset();
+ public native void slotAuthData(String arg1, String arg2, boolean arg3);
+ public native void slotDelAuthData(String arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/SimpleJob.java b/kdejava/koala/org/kde/koala/SimpleJob.java
new file mode 100644
index 00000000..dee58750
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/SimpleJob.java
@@ -0,0 +1,146 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A simple job (one url and one command).
+ This is the base class for all jobs that are scheduled.
+ Other jobs are high-level jobs (CopyJob, DeleteJob, FileCopyJob...)
+ that manage subjobs but aren't scheduled directly.
+ @short A simple job (one url and one command).
+
+*/
+public class SimpleJob extends Job {
+ protected SimpleJob(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a new simple job. You don't need to use this constructor,
+ unless you create a new job that inherits from SimpleJob.
+ @param url the url of the job
+ @param command the command of the job
+ @param packedArgs the arguments
+ @param showProgressInfo true to show progress information to the user
+ @short Creates a new simple job.
+ */
+ public SimpleJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo) {
+ super((Class) null);
+ newSimpleJob(url,command,packedArgs,showProgressInfo);
+ }
+ private native void newSimpleJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo);
+ /**
+ Returns the SimpleJob's URL
+ @return the url
+
+ @short Returns the SimpleJob's URL
+ */
+ public native KURL url();
+ /**
+ Abort job.
+ This kills all subjobs and deletes the job.
+ @param quietly if true, Job will emit signal result
+ Should only be set to false when the user kills the job
+ (from kio_uiserver), not when you want to abort a job.
+ @short Abort job.
+ */
+ public native void kill(boolean quietly);
+ public native void kill();
+ /**
+ Abort job.
+ Suspends slave to be reused by another job for the same request.
+ @short Abort job.
+ */
+ public native void putOnHold();
+ /**
+ Called by the scheduler when a slave gets to
+ work on this job.
+ @short
+ */
+ public native void start(Slave slave);
+ /**
+ Called to detach a slave from a job.
+ @short
+ */
+ public native void slaveDone();
+ /**
+ Slave in use by this job.
+ @short
+ */
+ public native Slave slave();
+ /**
+ @short
+ */
+ public native int command();
+ /**
+ Forward signal from the slave
+ Can also be called by the parent job, when it knows the size.
+ @param data_size the total size
+ @short Forward signal from the slave Can also be called by the parent job, when it knows the size.
+ */
+ public native void slotTotalSize(long data_size);
+ /**
+ Called on a slave's error.
+ Made public for the scheduler.
+ @short
+ */
+ public native void slotError(int arg1, String arg2);
+ /**
+ Discard suspended slave.
+ @short Discard suspended slave.
+ */
+ public static native void removeOnHold();
+ protected native void storeSSLSessionFromJob(KURL m_redirectionURL);
+ /**
+ Called when the slave marks the job
+ as finished.
+ @short Called when the slave marks the job as finished.
+ */
+ protected native void slotFinished();
+ /**
+ Called on a slave's warning.
+ @short
+ */
+ protected native void slotWarning(String arg1);
+ /**
+ Called on a slave's info message.
+ @param s the info message
+ @short Called on a slave's info message.
+ @see #infoMessage
+ */
+ protected native void slotInfoMessage(String s);
+ /**
+ Called on a slave's connected signal.
+ @short Called on a slave's connected signal.
+ @see #connected
+ */
+ protected native void slotConnected();
+ /**
+ Forward signal from the slave.
+ @param data_size the processed size in bytes
+ @short Forward signal from the slave.
+ @see #processedSize
+ */
+ protected native void slotProcessedSize(long data_size);
+ /**
+ Forward signal from the slave.
+ @param speed the speed in bytes/s
+ @short Forward signal from the slave.
+ @see #speed
+ */
+ protected native void slotSpeed(long speed);
+ /**
+ MetaData from the slave is received.
+ @param _metaData the meta data
+ @short MetaData from the slave is received.
+ @see #metaData
+ */
+ // void slotMetaData(const KIO::MetaData& arg1); >>>> NOT CONVERTED
+ /**
+ @short
+ */
+ protected native void slotNeedProgressId();
+}
diff --git a/kdejava/koala/org/kde/koala/SkipDlg.java b/kdejava/koala/org/kde/koala/SkipDlg.java
new file mode 100644
index 00000000..40272c80
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/SkipDlg.java
@@ -0,0 +1,32 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ See {@link SkipDlgSignals} for signals emitted by SkipDlg
+ @short
+
+*/
+public class SkipDlg extends KDialog {
+ protected SkipDlg(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public SkipDlg(QWidget parent, boolean _multi, String _error_text, boolean _modal) {
+ super((Class) null);
+ newSkipDlg(parent,_multi,_error_text,_modal);
+ }
+ private native void newSkipDlg(QWidget parent, boolean _multi, String _error_text, boolean _modal);
+ public SkipDlg(QWidget parent, boolean _multi, String _error_text) {
+ super((Class) null);
+ newSkipDlg(parent,_multi,_error_text);
+ }
+ private native void newSkipDlg(QWidget parent, boolean _multi, String _error_text);
+ public native void b0Pressed();
+ public native void b1Pressed();
+ public native void b2Pressed();
+}
diff --git a/kdejava/koala/org/kde/koala/SkipDlgSignals.java b/kdejava/koala/org/kde/koala/SkipDlgSignals.java
new file mode 100644
index 00000000..33d4e16e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/SkipDlgSignals.java
@@ -0,0 +1,10 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+public interface SkipDlgSignals {
+ void result(SkipDlg _this, int _button);
+}
diff --git a/kdejava/koala/org/kde/koala/Slave.java b/kdejava/koala/org/kde/koala/Slave.java
new file mode 100644
index 00000000..9b9e895e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Slave.java
@@ -0,0 +1,159 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+ Attention developers: If you change the implementation of KIO.Slave,
+ do not use connection() or slaveconn but the respective KIO.Slave
+ accessor methods. Otherwise classes derived from Slave might break. (LS)
+ See {@link SlaveSignals} for signals emitted by Slave
+ @short Attention developers: If you change the implementation of KIO.Slave, do not use connection() or slaveconn but the respective KIO.Slave accessor methods.
+
+*/
+public class Slave extends SlaveInterface {
+ protected Slave(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ // KIO::Slave* Slave(KServerSocket* arg1,const QString& arg2,const QString& arg3); >>>> NOT CONVERTED
+ public native void setPID(int arg1);
+ public native int slave_pid();
+ /**
+ Force termination
+ @short Force termination
+ */
+ public native void kill();
+ /**
+ @return true if the slave survived the last mission.
+
+ @short
+ */
+ public native boolean isAlive();
+ /**
+ Set host for url
+ @param host to connect to.
+ @param port to connect to.
+ @param user to login as
+ @param passwd to login with
+ @short Set host for url
+ */
+ public native void setHost(String host, int port, String user, String passwd);
+ /**
+ Clear host info.
+ @short Clear host info.
+ */
+ public native void resetHost();
+ /**
+ Configure slave
+ @short Configure slave
+ */
+ // void setConfig(const KIO::MetaData& arg1); >>>> NOT CONVERTED
+ /**
+ The protocol this slave handles.
+ @return name of protocol handled by this slave, as seen by the user
+
+ @short The protocol this slave handles.
+ */
+ public native String protocol();
+ public native void setProtocol(String protocol);
+ /**
+ The actual protocol used to handle the request.
+ This method will return a different protocol than
+ the one obtained by using protocol() if a
+ proxy-server is used for the given protocol. This
+ usually means that this method will return "http"
+ when the actuall request was to retrieve a resource
+ from an "ftp" server by going through a proxy server.
+ @return the actual protocol (io-slave) that handled the request
+
+ @short The actual protocol used to handle the request.
+ */
+ public native String slaveProtocol();
+ /**
+ @return Host this slave is (was?) connected to
+
+ @short
+ */
+ public native String host();
+ /**
+ @return port this slave is (was?) connected to
+
+ @short
+ */
+ public native int port();
+ /**
+ @return User this slave is (was?) logged in as
+
+ @short
+ */
+ public native String user();
+ /**
+ @return Passwd used to log in
+
+ @short
+ */
+ public native String passwd();
+ /**
+ Suspends the operation of the attached kioslave.
+ @short Suspends the operation of the attached kioslave.
+ */
+ public native void suspend();
+ /**
+ Resumes the operation of the attached kioslave.
+ @short Resumes the operation of the attached kioslave.
+ */
+ public native void resume();
+ /**
+ Tells wether the kioslave is suspended.
+ @return true if the kioslave is suspended.
+
+ @short Tells wether the kioslave is suspended.
+ */
+ public native boolean suspended();
+ /**
+ Sends the given command to the kioslave.
+ @param cmd command id
+ @param data byte array containing data
+ @short Sends the given command to the kioslave.
+ */
+ public native void send(int cmd, byte[] data);
+ public native void send(int cmd);
+ /**
+ Puts the kioslave associated with <code>url</code> at halt.
+ @short Puts the kioslave associated with <code>url</code> at halt.
+ */
+ public native void hold(KURL url);
+ /**
+ @return The time this slave has been idle.
+
+ @short
+ */
+ public native int idleTime();
+ /**
+ Marks this slave as idle.
+ @short Marks this slave as idle.
+ */
+ public native void setIdle();
+ public native boolean isConnected();
+ public native void setConnected(boolean c);
+ public native void ref();
+ public native void deref();
+ // void accept(KSocket* arg1); >>>> NOT CONVERTED
+ public native void gotInput();
+ public native void timeout();
+ /**
+ Creates a new slave.
+ @param protocol protocol the slave is for.
+ @param url URL the slave should operate on.
+ @param error is the error code on failure and undefined else.
+ @param error_text is the error text on failure and undefined else.
+ @return 0 on failure, or a pointer to a slave otherwise.
+ @todo What are legal <code>protocol</code> values?
+
+ @short Creates a new slave.
+ */
+ public static native Slave createSlave(String protocol, KURL url, int[] error, StringBuffer error_text);
+ public static native Slave holdSlave(String protocol, KURL url);
+}
diff --git a/kdejava/koala/org/kde/koala/SlaveBase.java b/kdejava/koala/org/kde/koala/SlaveBase.java
new file mode 100644
index 00000000..804548ab
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/SlaveBase.java
@@ -0,0 +1,610 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ There are two classes that specifies the protocol between application (job)
+ and kioslave. SlaveInterface is the class to use on the application end,
+ SlaveBase is the one to use on the slave end.
+ Slave implementations should simply inherit SlaveBase
+ A call to foo() results in a call to slotFoo() on the other end.
+ @short There are two classes that specifies the protocol between application (job) and kioslave.
+
+*/
+public class SlaveBase implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected SlaveBase(Class dummy){}
+
+ /**
+ Terminate the slave by calling the destructor and then .exit()
+ @short
+ */
+ public native void exit();
+ /**
+ @short
+ */
+ public native void dispatchLoop();
+ /**
+ @short
+ */
+ public native void setConnection(Connection connection);
+ /**
+ @short
+ */
+ public native Connection connection();
+ /**
+ Sends data in the slave to the job (i.e. in get).
+ To signal end of data, simply send an empty
+ byte[]().
+ @param data the data read by the slave
+ @short Sends data in the slave to the job (i.
+ */
+ public native void data(byte[] data);
+ /**
+ Asks for data from the job.
+ @short Asks for data from the job.
+ @see #readData
+ */
+ public native void dataReq();
+ /**
+ Call to signal an error.
+ This also finishes the job, no need to call finished.
+ If the Error code is KIO.ERR_SLAVE_DEFINED then the
+ _text should contain the complete translated text of
+ of the error message. This message will be displayed
+ in an KTextBrowser which allows rich text complete
+ with hyper links. Email links will call the default
+ mailer, "exec:/command arg1 arg2" will be forked and
+ all other links will call the default browser.
+ @param _errid the error code from KIO.Error
+ @param _text the rich text error message
+ @short Call to signal an error.
+ @see Error
+ @see KTextBrowser
+ */
+ public native void error(int _errid, String _text);
+ /**
+ Call in openConnection, if you reimplement it, when you're done.
+ @short Call in openConnection, if you reimplement it, when you're done.
+ */
+ public native void connected();
+ /**
+ Call to signal successful completion of any command
+ (besides openConnection and closeConnection)
+ @short Call to signal successful completion of any command (besides openConnection and closeConnection)
+ */
+ public native void finished();
+ /**
+ Call to signal that data from the sub-URL is needed
+ @short Call to signal that data from the sub-URL is needed
+ */
+ public native void needSubURLData();
+ /**
+ Used to report the status of the slave.
+ @param host the slave is currently connected to. (Should be
+ empty if not connected)
+ @param connected Whether an actual network connection exists.
+ @short Used to report the status of the slave.
+ */
+ public native void slaveStatus(String host, boolean connected);
+ /**
+ Call this from stat() to express details about an object, the
+ UDSEntry customarily contains the atoms describing file name, size,
+ mimetype, etc.
+ @param _entry The UDSEntry containing all of the object attributes.
+ @short Call this from stat() to express details about an object, the UDSEntry customarily contains the atoms describing file name, size, mimetype, etc.
+ */
+ // void statEntry(const KIO::UDSEntry& arg1); >>>> NOT CONVERTED
+ /**
+ Call this in listDir, each time you have a bunch of entries
+ to report.
+ @param _entry The UDSEntry containing all of the object attributes.
+ @short Call this in listDir, each time you have a bunch of entries to report.
+ */
+ // void listEntries(const KIO::UDSEntryList& arg1); >>>> NOT CONVERTED
+ /**
+ Call this at the beginning of put(), to give the size of the existing
+ partial file, if there is one. The <code>offset</code> argument notifies the
+ other job (the one that gets the data) about the offset to use.
+ In this case, the booleanean returns whether we can indeed resume or not
+ (we can't if the protocol doing the get() doesn't support setting an offset)
+ @short Call this at the beginning of put(), to give the size of the existing partial file, if there is one.
+ */
+ public native boolean canResume(long offset);
+ public native void canResume();
+ /**
+ Call this in get and copy, to give the total size
+ of the file
+ Call in listDir too, when you know the total number of items.
+ @short Call this in get and copy, to give the total size of the file Call in listDir too, when you know the total number of items.
+ */
+ public native void totalSize(long _bytes);
+ /**
+ Call this during get and copy, once in a while,
+ to give some info about the current state.
+ Don't emit it in listDir, listEntries speaks for itself.
+ @short Call this during get and copy, once in a while, to give some info about the current state.
+ */
+ public native void processedSize(long _bytes);
+ /**
+ Only use this if you can't know in advance the size of the
+ copied data. For example, if you're doing variable bitrate
+ compression of the source.
+ STUB ! Currently unimplemented. Here now for binary compatibility.
+ Call this during get and copy, once in a while,
+ to give some info about the current state.
+ Don't emit it in listDir, listEntries speaks for itself.
+ @short Only use this if you can't know in advance the size of the copied data.
+ */
+ public native void processedPercent(float percent);
+ /**
+ Call this in get and copy, to give the current transfer
+ speed, but only if it can't be calculated out of the size you
+ passed to processedSize (in most cases you don't want to call it)
+ @short Call this in get and copy, to give the current transfer speed, but only if it can't be calculated out of the size you passed to processedSize (in most cases you don't want to call it)
+ */
+ public native void speed(long _bytes_per_second);
+ /**
+ Call this to signal a redirection
+ The job will take care of going to that url.
+ @short Call this to signal a redirection The job will take care of going to that url.
+ */
+ public native void redirection(KURL _url);
+ /**
+ Tell that we will only get an error page here.
+ This means: the data you'll get isn't the data you requested,
+ but an error page (usually HTML) that describes an error.
+ @short Tell that we will only get an error page here.
+ */
+ public native void errorPage();
+ /**
+ Call this in mimetype() and in get(), when you know the mimetype.
+ See mimetype about other ways to implement it.
+ @short Call this in mimetype() and in get(), when you know the mimetype.
+ */
+ public native void mimeType(String _type);
+ /**
+ Call to signal a warning, to be displayed in a dialog box.
+ @short Call to signal a warning, to be displayed in a dialog box.
+ */
+ public native void warning(String msg);
+ /**
+ Call to signal a message, to be displayed if the application wants to,
+ for instance in a status bar. Usual examples are "connecting to host xyz", etc.
+ @short Call to signal a message, to be displayed if the application wants to, for instance in a status bar.
+ */
+ public native void infoMessage(String msg);
+ /**
+ Call this to show a message box from the slave
+ @param type type of message box: QuestionYesNo, WarningYesNo, WarningContinueCancel...
+ @param text Message string. May contain newlines.
+ @param caption Message box title.
+ @param buttonYes The text for the first button.
+ The default is i18n("&Yes").
+ @param buttonNo The text for the second button.
+ The default is i18n("&No").
+ Note: for ContinueCancel, buttonYes is the continue button and buttonNo is unused.
+ and for Information, none is used.
+ @return a button code, as defined in KMessageBox, or 0 on communication error.
+
+ @short Call this to show a message box from the slave
+ */
+ // int messageBox(KIO::SlaveBase::MessageBoxType arg1,const QString& arg2,const QString& arg3,const QString& arg4,const QString& arg5); >>>> NOT CONVERTED
+ // int messageBox(KIO::SlaveBase::MessageBoxType arg1,const QString& arg2,const QString& arg3,const QString& arg4); >>>> NOT CONVERTED
+ // int messageBox(KIO::SlaveBase::MessageBoxType arg1,const QString& arg2,const QString& arg3); >>>> NOT CONVERTED
+ // int messageBox(KIO::SlaveBase::MessageBoxType arg1,const QString& arg2); >>>> NOT CONVERTED
+ /**
+ Call this to show a message box from the slave
+ @param text Message string. May contain newlines.
+ @param type type of message box: QuestionYesNo, WarningYesNo, WarningContinueCancel...
+ @param caption Message box title.
+ @param buttonYes The text for the first button.
+ The default is i18n("&Yes").
+ @param buttonNo The text for the second button.
+ The default is i18n("&No").
+ Note: for ContinueCancel, buttonYes is the continue button and buttonNo is unused.
+ and for Information, none is used.
+ @param dontAskAgainName A checkbox is added with which further confirmation can be turned off.
+ The string is used to lookup and store the setting in kioslaverc.
+ @return a button code, as defined in KMessageBox, or 0 on communication error.
+
+ @short Call this to show a message box from the slave
+ */
+ // int messageBox(const QString& arg1,KIO::SlaveBase::MessageBoxType arg2,const QString& arg3,const QString& arg4,const QString& arg5,const QString& arg6); >>>> NOT CONVERTED
+ // int messageBox(const QString& arg1,KIO::SlaveBase::MessageBoxType arg2,const QString& arg3,const QString& arg4,const QString& arg5); >>>> NOT CONVERTED
+ // int messageBox(const QString& arg1,KIO::SlaveBase::MessageBoxType arg2,const QString& arg3,const QString& arg4); >>>> NOT CONVERTED
+ // int messageBox(const QString& arg1,KIO::SlaveBase::MessageBoxType arg2,const QString& arg3); >>>> NOT CONVERTED
+ // int messageBox(const QString& arg1,KIO::SlaveBase::MessageBoxType arg2); >>>> NOT CONVERTED
+ /**
+ Sets meta-data to be send to the application before the first
+ data() or finished() signal.
+ @short Sets meta-data to be send to the application before the first data() or finished() signal.
+ */
+ public native void setMetaData(String key, String value);
+ /**
+ Queries for the existence of a certain config/meta-data entry
+ send by the application to the slave.
+ @short Queries for the existence of a certain config/meta-data entry send by the application to the slave.
+ */
+ public native boolean hasMetaData(String key);
+ /**
+ Queries for config/meta-data send by the application to the slave.
+ @short Queries for config/meta-data send by the application to the slave.
+ */
+ public native String metaData(String key);
+ /**
+ Returns a configuration object to query config/meta-data information
+ from.
+ The application provides the slave with all configuration information
+ relevant for the current protocol and host.
+ @short Returns a configuration object to query config/meta-data information from.
+ */
+ public native KConfigBase config();
+ /**
+ Returns an object that can translate remote filenames into proper
+ Unicode forms. This encoding can be set by the user.
+ @short Returns an object that can translate remote filenames into proper Unicode forms.
+ */
+ // KRemoteEncoding* remoteEncoding(); >>>> NOT CONVERTED
+ /**
+ Set the host
+ @param pass Called directly by createSlave, this is why there is no equivalent in
+ SlaveInterface, unlike the other methods.
+ This method is called whenever a change in host, port or user occurs.
+ @short Set the host
+ */
+ public native void setHost(String host, int port, String user, String pass);
+ /**
+ Prepare slave for streaming operation
+ @short Prepare slave for streaming operation
+ */
+ public native void setSubURL(KURL url);
+ /**
+ Opens the connection (forced)
+ When this function gets called the slave is operating in
+ connection-oriented mode.
+ When a connection gets lost while the slave operates in
+ connection oriented mode, the slave should report
+ ERR_CONNECTION_BROKEN instead of reconnecting. The user is
+ expected to disconnect the slave in the error handler.
+ @short Opens the connection (forced) When this function gets called the slave is operating in connection-oriented mode.
+ */
+ public native void openConnection();
+ /**
+ Closes the connection (forced)
+ Called when the application disconnects the slave to close
+ any open network connections.
+ When the slave was operating in connection-oriented mode,
+ it should reset itself to connectionless (default) mode.
+ @short Closes the connection (forced) Called when the application disconnects the slave to close any open network connections.
+ */
+ public native void closeConnection();
+ /**
+ get, aka read.
+ @param url the full url for this request. Host, port and user of the URL
+ can be assumed to be the same as in the last setHost() call.
+ The slave emits the data through data
+ @short get, aka read.
+ */
+ public native void get(KURL url);
+ /**
+ put, aka write.
+ @param url where to write the file (decoded)
+ @param permissions may be -1. In this case no special permission mode is set.
+ @param overwrite if true, any existing file will be overwritten.
+ If the file indeed already exists, the slave should NOT apply the
+ permissions change to it.
+ @param resume @short put, aka write.
+ */
+ public native void put(KURL url, int permissions, boolean overwrite, boolean resume);
+ /**
+ Finds all details for one file or directory.
+ The information returned is the same as what listDir returns,
+ but only for one file or directory.
+ @short Finds all details for one file or directory.
+ */
+ public native void stat(KURL url);
+ /**
+ Finds mimetype for one file or directory.
+ This method should either emit 'mimeType' or it
+ should send a block of data big enough to be able
+ to determine the mimetype.
+ If the slave doesn't reimplement it, a get will
+ be issued, i.e. the whole file will be downloaded before
+ determining the mimetype on it - this is obviously not a
+ good thing in most cases.
+ @short Finds mimetype for one file or directory.
+ */
+ public native void mimetype(KURL url);
+ /**
+ Lists the contents of <code>url.</code>
+ The slave should emit ERR_CANNOT_ENTER_DIRECTORY if it doesn't exist,
+ if we don't have enough permissions, or if it is a file
+ It should also emit totalFiles as soon as it knows how many
+ files it will list.
+ @short Lists the contents of <code>url.</code>
+ */
+ public native void listDir(KURL url);
+ /**
+ Create a directory
+ @param url path to the directory to create
+ @param permissions the permissions to set after creating the directory
+ (-1 if no permissions to be set)
+ The slave emits ERR_COULD_NOT_MKDIR if failure.
+ @short Create a directory
+ */
+ public native void mkdir(KURL url, int permissions);
+ /**
+ Rename <code>oldname</code> into <code>newname.</code>
+ If the slave returns an error ERR_UNSUPPORTED_ACTION, the job will
+ ask for copy + del instead.
+ @param src where to move the file from
+ @param dest where to move the file to
+ @param overwrite if true, any existing file will be overwritten
+ @short Rename <code>oldname</code> into <code>newname.</code>
+ */
+ public native void rename(KURL src, KURL dest, boolean overwrite);
+ /**
+ Creates a symbolic link named <code>dest</code>, pointing to <code>target</code>, which
+ may be a relative or an absolute path.
+ @param target The string that will become the "target" of the link (can be relative)
+ @param dest The symlink to create.
+ @param overwrite whether to automatically overwrite if the dest exists
+ @short Creates a symbolic link named <code>dest</code>, pointing to <code>target</code>, which may be a relative or an absolute path.
+ */
+ public native void symlink(String target, KURL dest, boolean overwrite);
+ /**
+ Change permissions on <code>path</code>
+ The slave emits ERR_DOES_NOT_EXIST or ERR_CANNOT_CHMOD
+ @short Change permissions on <code>path</code> The slave emits ERR_DOES_NOT_EXIST or ERR_CANNOT_CHMOD
+ */
+ public native void chmod(KURL url, int permissions);
+ /**
+ Copy <code>src</code> into <code>dest.</code>
+ If the slave returns an error ERR_UNSUPPORTED_ACTION, the job will
+ ask for get + put instead.
+ @param src where to copy the file from (decoded)
+ @param dest where to copy the file to (decoded)
+ @param permissions may be -1. In this case no special permission mode is set.
+ @param overwrite if true, any existing file will be overwritten
+ @short Copy <code>src</code> into <code>dest.</code>
+ */
+ public native void copy(KURL src, KURL dest, int permissions, boolean overwrite);
+ /**
+ Delete a file or directory.
+ @param url file/directory to delete
+ @param isfile if true, a file should be deleted.
+ if false, a directory should be deleted.
+ @short Delete a file or directory.
+ */
+ public native void del(KURL url, boolean isfile);
+ /**
+ Used for any command that is specific to this slave (protocol)
+ Examples are : HTTP POST, mount and unmount (kio_file)
+ @param data packed data; the meaning is completely dependent on the
+ slave, but usually starts with an int for the command number.
+ Document your slave's commands, at least in its header file.
+ @short Used for any command that is specific to this slave (protocol) Examples are : HTTP POST, mount and unmount (kio_file)
+ */
+ public native void special(byte[] data);
+ /**
+ Used for multiple get. Currently only used foir HTTP pielining
+ support.
+ @param data packed data; Contains number of URLs to fetch, and for
+ each URL the URL itself and its associated MetaData.
+ @short Used for multiple get.
+ */
+ public native void multiGet(byte[] data);
+ /**
+ Called to get the status of the slave. Slave should respond
+ by calling slaveStatus(...)
+ @short Called to get the status of the slave.
+ */
+ public native void slave_status();
+ /**
+ Called by the scheduler to tell the slave that the configuration
+ changed (i.e. proxy settings) .
+ @short Called by the scheduler to tell the slave that the configuration changed (i.
+ */
+ public native void reparseConfiguration();
+ /**
+ @return timeout value for connecting to remote host.
+
+ @short
+ */
+ public native int connectTimeout();
+ /**
+ @return timeout value for connecting to proxy in secs.
+
+ @short
+ */
+ public native int proxyConnectTimeout();
+ /**
+ @return timeout value for read from first data from
+ remote host in seconds.
+
+ @short
+ */
+ public native int responseTimeout();
+ /**
+ @return timeout value for read from subsequent data from
+ remote host in secs.
+
+ @short
+ */
+ public native int readTimeout();
+ /**
+ This function sets a timeout of <code>timeout</code> seconds and calls
+ special(data) when the timeout occurs as if it was called by the
+ application.
+ A timeout can only occur when the slave is waiting for a command
+ from the application.
+ Specifying a negative timeout cancels a pending timeout.
+ Only one timeout at a time is supported, setting a timeout
+ cancels any pending timeout.
+ @short This function sets a timeout of <code>timeout</code> seconds and calls special(data) when the timeout occurs as if it was called by the application.
+ */
+ public native void setTimeoutSpecialCommand(int timeout, byte[] data);
+ public native void setTimeoutSpecialCommand(int timeout);
+ /**
+ @short
+ */
+ public native boolean dispatch();
+ /**
+ @short
+ */
+ public native void dispatch(int command, byte[] data);
+ /**
+ Read data send by the job, after a dataReq
+ @param buffer buffer where data is stored
+ @return 0 on end of data,
+ > 0 bytes read
+ < 0 error
+
+ @short Read data send by the job, after a dataReq
+ */
+ public native int readData(byte[] buffer);
+ /**
+ internal function to be called by the slave.
+ It collects entries and emits them via listEntries
+ when enough of them are there or a certain time
+ frame exceeded (to make sure the app gets some
+ items in time but not too many items one by one
+ as this will cause a drastic performance penalty)
+ @param _entry The UDSEntry containing all of the object attributes.
+ @param ready set to true after emitting all items. <code>_entry</code> is not
+ used in this case
+ @short internal function to be called by the slave.
+ */
+ // void listEntry(const KIO::UDSEntry& arg1,bool arg2); >>>> NOT CONVERTED
+ /**
+ internal function to connect a slave to/ disconnect from
+ either the slave pool or the application
+ @short internal function to connect a slave to/ disconnect from either the slave pool or the application
+ */
+ public native void connectSlave(String path);
+ public native void disconnectSlave();
+ /**
+ Prompt the user for Authorization info (login & password).
+ Use this function to request authorization information from
+ the end user. You can also pass an error message which explains
+ why a previous authorization attempt failed. Here is a very
+ simple example:
+ <pre>
+ KIO.AuthInfo authInfo;
+ if ( openPassDlg( authInfo ) )
+ {
+ kdDebug() << String.fromLatin1("User: ")
+ << authInfo.username << endl;
+ kdDebug() << String.fromLatin1("Password: ")
+ << String.fromLatin1("Not displayed here!") << endl;
+ }
+ </pre>
+ You can also preset some values like the username, caption or
+ comment as follows:
+ <pre>
+ KIO.AuthInfo authInfo;
+ authInfo.caption= "Acme Password Dialog";
+ authInfo.username= "Wile E. Coyote";
+ String errorMsg = "You entered an incorrect password.";
+ if ( openPassDlg( authInfo, errorMsg ) )
+ {
+ kdDebug() << String.fromLatin1("User: ")
+ << authInfo.username << endl;
+ kdDebug() << String.fromLatin1("Password: ")
+ << String.fromLatin1("Not displayed here!") << endl;
+ }
+ </pre>
+ <b>Note:<> You should consider using checkCachedAuthentication() to
+ see if the password is available in kpasswdserver before calling
+ this function.
+ <b>Note:<> A call to this function can fail and return <code>false</code>,
+ if the UIServer could not be started for whatever reason.
+ @param info See AuthInfo.
+ @param errorMsg Error message to show
+ @return <code>true</code> if user clicks on "OK", <code>false</code> otherwsie.
+
+ @short Prompt the user for Authorization info (login & password).
+ @see #checkCachedAuthentication
+ */
+ public native boolean openPassDlg(AuthInfo info, String errorMsg);
+ /**
+ Same as above function except it does not need error message.
+ BIC: Combine this function with the above for KDE4.
+ @short Same as above function except it does not need error message.
+ */
+ public native boolean openPassDlg(AuthInfo info);
+ /**
+ Used by the slave to check if it can connect
+ to a given host. This should be called where the slave is ready
+ to do a .connect() on a socket. For each call to
+ requestNetwork must exist a matching call to
+ dropNetwork, or the system will stay online until
+ KNetMgr gets closed (or the SlaveBase gets destructed)!
+ If KNetMgr is not running, then this is a no-op and returns true
+ @param host tells the netmgr the host the slave wants to connect
+ to. As this could also be a proxy, we can't just take
+ the host currenctly connected to (but that's the default
+ value)
+ @return true in theorie, the host is reachable
+ false the system is offline and the host is in a remote network.
+
+ @short Used by the slave to check if it can connect to a given host.
+ */
+ public native boolean requestNetwork(String host);
+ public native boolean requestNetwork();
+ /**
+ Used by the slave to withdraw a connection requested by
+ requestNetwork. This function cancels the last call to
+ requestNetwork. If a client uses more than one internet
+ connection, it must use dropNetwork(host) to
+ stop each request.
+ If KNetMgr is not running, then this is a no-op.
+ @param host the host passed to requestNetwork
+ A slave should call this function every time it disconnect from a host.
+ @short Used by the slave to withdraw a connection requested by requestNetwork.
+ */
+ public native void dropNetwork(String host);
+ public native void dropNetwork();
+ /**
+ Return the dcop client used by this slave.
+ @short Return the dcop client used by this slave.
+ */
+ public native DCOPClient dcopClient();
+ /**
+ Wait for an answer to our request, until we get <code>expected1</code> or <code>expected2</code>
+ @return the result from readData, as well as the cmd in *pCmd if set, and the data in <code>data</code>
+
+ @short Wait for an answer to our request, until we get <code>expected1</code> or <code>expected2</code>
+ */
+ public native int waitForAnswer(int expected1, int expected2, byte[] data, int[] pCmd);
+ public native int waitForAnswer(int expected1, int expected2, byte[] data);
+ /**
+ Internal function to transmit meta data to the application.
+ @short Internal function to transmit meta data to the application.
+ */
+ public native void sendMetaData();
+ /** If your ioslave was killed by a signal, wasKilled() returns true.
+ Check it regularly in lengthy functions (e.g. in get();) and return
+ as fast as possible from this function if wasKilled() returns true.
+ This will ensure that your slave destructor will be called correctly.
+ @short If your ioslave was killed by a signal, wasKilled() returns true.
+ */
+ public native boolean wasKilled();
+ /** Internally used.
+ @short Internally used.
+ */
+ public native void setKillFlag();
+ /**
+ @short
+ */
+ public static native void sigsegv_handler(int arg1);
+ /**
+ @short
+ */
+ public static native void sigpipe_handler(int arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/SlaveConfigSignals.java b/kdejava/koala/org/kde/koala/SlaveConfigSignals.java
new file mode 100644
index 00000000..64fb729d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/SlaveConfigSignals.java
@@ -0,0 +1,17 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+public interface SlaveConfigSignals {
+ /**
+ This signal is raised when a slave of type <code>protocol</code> deals
+ with <code>host</code> for the first time.
+ Your application can use this signal to make some last minute
+ configuration changes with setConfigData based on the
+ host.
+ @short This signal is raised when a slave of type <code>protocol</code> deals with <code>host</code> for the first time.
+ */
+ void configNeeded(String protocol, String host);
+}
diff --git a/kdejava/koala/org/kde/koala/SlaveInterface.java b/kdejava/koala/org/kde/koala/SlaveInterface.java
new file mode 100644
index 00000000..b764e1ed
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/SlaveInterface.java
@@ -0,0 +1,34 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+
+/**
+
+ There are two classes that specifies the protocol between application
+ (KIO.Job) and kioslave. SlaveInterface is the class to use on the application
+ end, SlaveBase is the one to use on the slave end.
+ A call to foo() results in a call to slotFoo() on the other end.
+ See {@link SlaveInterfaceSignals} for signals emitted by SlaveInterface
+ @short There are two classes that specifies the protocol between application (KIO.Job) and kioslave.
+
+*/
+public class SlaveInterface extends QObject {
+ protected SlaveInterface(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public native void setConnection(Connection connection);
+ public native Connection connection();
+ public native void setProgressId(int id);
+ public native int progressId();
+ /** Send our answer to the MSG_RESUME (canResume) request
+ (to tell the "put" job whether to resume or not)
+ @short Send our answer to the MSG_RESUME (canResume) request (to tell the "put" job whether to resume or not)
+ */
+ public native void sendResumeAnswer(boolean resume);
+ public native void setOffset(long offset);
+ public native long offset();
+}
diff --git a/kdejava/koala/org/kde/koala/SlaveInterfaceSignals.java b/kdejava/koala/org/kde/koala/SlaveInterfaceSignals.java
new file mode 100644
index 00000000..e1beb142
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/SlaveInterfaceSignals.java
@@ -0,0 +1,29 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+public interface SlaveInterfaceSignals {
+ void data(byte[] arg1);
+ void dataReq();
+ void error(int arg1, String arg2);
+ void connected();
+ void finished();
+ void slaveStatus(int arg1, String arg2, String arg3, boolean arg4);
+ // void listEntries(const KIO::UDSEntryList& arg1); >>>> NOT CONVERTED
+ // void statEntry(const KIO::UDSEntry& arg1); >>>> NOT CONVERTED
+ void needSubURLData();
+ void needProgressId();
+ void canResume(long arg1);
+ // void metaData(const KIO::MetaData& arg1); >>>> NOT CONVERTED
+ void totalSize(long arg1);
+ void processedSize(long arg1);
+ void redirection(KURL arg1);
+ void speed(long arg1);
+ void errorPage();
+ void mimeType(String arg1);
+ void warning(String arg1);
+ void infoMessage(String arg1);
+ void connectFinished();
+}
diff --git a/kdejava/koala/org/kde/koala/SlaveSignals.java b/kdejava/koala/org/kde/koala/SlaveSignals.java
new file mode 100644
index 00000000..0b3e23a8
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/SlaveSignals.java
@@ -0,0 +1,9 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+public interface SlaveSignals {
+ void slaveDied(Slave slave);
+}
diff --git a/kdejava/koala/org/kde/koala/StatJob.java b/kdejava/koala/org/kde/koala/StatJob.java
new file mode 100644
index 00000000..fecfb320
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/StatJob.java
@@ -0,0 +1,72 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+
+ A KIO job that retrieves information about a file or directory.
+ See {@link StatJobSignals} for signals emitted by StatJob
+ @short A KIO job that retrieves information about a file or directory.
+ @see #stat
+
+*/
+public class StatJob extends SimpleJob {
+ protected StatJob(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Do not use this constructor to create a StatJob, use KIO.stat() instead.
+ @param url the url of the file or directory to check
+ @param command the command to issue
+ @param packedArgs the arguments
+ @param showProgressInfo true to show progress information to the user
+ @short Do not use this constructor to create a StatJob, use KIO.stat() instead.
+ */
+ public StatJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo) {
+ super((Class) null);
+ newStatJob(url,command,packedArgs,showProgressInfo);
+ }
+ private native void newStatJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo);
+ /**
+ A stat() can have two meanings. Either we want to read from this URL,
+ or to check if we can write to it. First case is "source", second is "dest".
+ It is necessary to know what the StatJob is for, to tune the kioslave's behavior
+ (e.g. with FTP).
+ @param source true for "source" mode, false for "dest" mode
+ @short A stat() can have two meanings.
+ */
+ public native void setSide(boolean source);
+ /**
+ Selects the level of <code>details</code> we want.
+ By default this is 2 (all details wanted, including modification time, size, etc.),
+ setDetails(1) is used when deleting: we don't need all the information if it takes
+ too much time, no need to follow symlinks etc.
+ setDetails(0) is used for very simple probing: we'll only get the answer
+ "it's a file or a directory, or it doesn't exist". This is used by KRun.
+ @param details 2 for all details, 1 for simple, 0 for very simple
+ @short Selects the level of <code>details</code> we want.
+ */
+ public native void setDetails(short details);
+ /**
+ Call this in the slot connected to result,
+ and only after making sure no error happened.
+ @return the result of the stat
+
+ @short Call this in the slot connected to result, and only after making sure no error happened.
+ */
+ // const KIO::UDSEntry& statResult(); >>>> NOT CONVERTED
+ /**
+ Called by the scheduler when a <code>slave</code> gets to
+ work on this job.
+ @param slave the slave that starts working on this job
+ @short
+ */
+ public native void start(Slave slave);
+ // void slotStatEntry(const KIO::UDSEntry& arg1); >>>> NOT CONVERTED
+ protected native void slotRedirection(KURL url);
+ protected native void slotFinished();
+ // void slotMetaData(const KIO::MetaData& arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/StatJobSignals.java b/kdejava/koala/org/kde/koala/StatJobSignals.java
new file mode 100644
index 00000000..e17ed6a6
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/StatJobSignals.java
@@ -0,0 +1,26 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+public interface StatJobSignals {
+ /**
+ Signals a redirection.
+ Use to update the URL shown to the user.
+ The redirection itself is handled internally.
+ @param job the job that is redirected
+ @param url the new url
+ @short Signals a redirection.
+ */
+ void redirection(Job job, KURL url);
+ /**
+ Signals a permanent redirection.
+ The redirection itself is handled internally.
+ @param job the job that is redirected
+ @param fromUrl the original URL
+ @param toUrl the new URL
+ @short Signals a permanent redirection.
+ */
+ void permanentRedirection(Job job, KURL fromUrl, KURL toUrl);
+}
diff --git a/kdejava/koala/org/kde/koala/StatusBarExtension.java b/kdejava/koala/org/kde/koala/StatusBarExtension.java
new file mode 100644
index 00000000..01cfd9a2
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/StatusBarExtension.java
@@ -0,0 +1,85 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+import org.kde.qt.QObject;
+
+/**
+
+ Every part can use this class to customize the statusbar as long as it is active.
+ Add items via addStatusBarItem() and remove an item with removeStatusBarItem().
+ IMPORTANT: do NOT add any items immediately after constructing the extension.
+ Give the application time to set the statusbar in the extension if necessary.
+ @short An extension for KParts that allows more sophisticated statusbar handling.
+
+*/
+public class StatusBarExtension extends QObject {
+ protected StatusBarExtension(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ public StatusBarExtension(ReadOnlyPart parent, String name) {
+ super((Class) null);
+ newStatusBarExtension(parent,name);
+ }
+ private native void newStatusBarExtension(ReadOnlyPart parent, String name);
+ public StatusBarExtension(ReadOnlyPart parent) {
+ super((Class) null);
+ newStatusBarExtension(parent);
+ }
+ private native void newStatusBarExtension(ReadOnlyPart parent);
+ /**
+ This adds a widget to the statusbar for this part.
+ If you use this method instead of using statusBar() directly,
+ this extension will take care of removing the items when the parts GUI
+ is deactivated and will re-add them when it is reactivated.
+ The parameters are the same as QStatusBar.addWidget().
+ Note that you can't use KStatusBar methods (inserting text items by id)
+ but you can create a KStatusBarLabel with a dummy id instead, and use
+ it directly in order to get the same look and feel.
+ @param widget the widget to add
+ @param stretch the stretch factor. 0 for a minimum size.
+ @param permanent passed to QStatusBar.addWidget as the "permanent" boolean.
+ Note that the item isn't really permanent though, it goes away when
+ the part is unactivated. This simply controls where temporary messages
+ hide the <code>widget</code>, and whether it's added to the left or to the right side.
+ IMPORTANT: do NOT add any items immediately after constructing the extension.
+ Give the application time to set the statusbar in the extension if necessary.
+ @short This adds a widget to the statusbar for this part.
+ */
+ public native void addStatusBarItem(QWidget widget, int stretch, boolean permanent);
+ /**
+ Remove a <code>widget</code> from the statusbar for this part.
+ @short Remove a <code>widget</code> from the statusbar for this part.
+ */
+ public native void removeStatusBarItem(QWidget widget);
+ /**
+ @return the statusbar of the KMainWindow in which this part is currently embedded.
+ WARNING: this could return 0L
+
+ @short
+ */
+ public native KStatusBar statusBar();
+ /**
+ This allows the hosting application to set a particular KStatusBar
+ for this part. If it doesn't do this, the statusbar used will be
+ the one of the KMainWindow in which the part is embedded.
+ Konqueror uses this to assign a view-statusbar to the part.
+ The part should never call this method!
+ @short This allows the hosting application to set a particular KStatusBar for this part.
+ */
+ public native void setStatusBar(KStatusBar status);
+ /** @internal @short @internal
+ */
+ public native boolean eventFilter(QObject watched, QEvent ev);
+ /**
+ Queries <code>obj</code> for a child object which inherits from this
+ BrowserExtension class. Convenience method.
+ @short Queries <code>obj</code> for a child object which inherits from this BrowserExtension class.
+ */
+ public static native StatusBarExtension childObject(QObject arg1);
+}
diff --git a/kdejava/koala/org/kde/koala/StatusbarProgress.java b/kdejava/koala/org/kde/koala/StatusbarProgress.java
new file mode 100644
index 00000000..9954be6c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/StatusbarProgress.java
@@ -0,0 +1,69 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ This is a special IO progress widget.
+ Similarly to DefaultProgress,
+ it's purpose is to show a progress of the IO operation.
+ Instead of creating a separate window, this is only a widget that can be
+ easily embedded in a statusbar.
+ Usage of StatusbarProgress is little different.
+ This dialog will be a part of some application.
+ <pre>
+ // create a dialog
+ StatusbarProgress statusProgress;
+ statusProgress = new StatusbarProgress( statusBar() );
+ statusBar().insertWidget( statusProgress, statusProgress.width() , 0 );
+ ...
+ // create job and connect it to the progress
+ CopyJob job = KIO.copy(...);
+ statusProgress.setJob( job );
+ ...
+ </pre>
+ @author Matej Koss <koss@miesto.sk>
+
+ @short IO progress widget for embedding in a statusbar.
+
+*/
+public class StatusbarProgress extends ProgressBase {
+ protected StatusbarProgress(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Creates a new StatusbarProgress.
+ @param parent the parent of this widget
+ @param button true to add an abort button. The button will be
+ connected to ProgressBase.slotStop()
+ @short Creates a new StatusbarProgress.
+ */
+ public StatusbarProgress(QWidget parent, boolean button) {
+ super((Class) null);
+ newStatusbarProgress(parent,button);
+ }
+ private native void newStatusbarProgress(QWidget parent, boolean button);
+ public StatusbarProgress(QWidget parent) {
+ super((Class) null);
+ newStatusbarProgress(parent);
+ }
+ private native void newStatusbarProgress(QWidget parent);
+ /**
+ Sets the job to monitor.
+ @param job the job to monitor
+ @short Sets the job to monitor.
+ */
+ public native void setJob(Job job);
+ public native void slotClean();
+ public native void slotTotalSize(Job job, long size);
+ public native void slotPercent(Job job, long percent);
+ public native void slotSpeed(Job job, long speed);
+ protected native void setMode();
+ public native boolean eventFilter(QObject arg1, QEvent arg2);
+}
diff --git a/kdejava/koala/org/kde/koala/StoredTransferJob.java b/kdejava/koala/org/kde/koala/StoredTransferJob.java
new file mode 100644
index 00000000..5b70201b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/StoredTransferJob.java
@@ -0,0 +1,59 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+
+ StoredTransferJob is a TransferJob (for downloading or uploading data) that
+ also stores a byte[] with the data, making it simpler to use than the
+ standard TransferJob.
+ For KIO.storedGet it puts the data into the member byte[], so the user
+ of this class can get hold of the whole data at once by calling data()
+ when the result signal is emitted.
+ You should only use StoredTransferJob to download data if you cannot
+ process the data by chunks while it's being downloaded, since storing
+ everything in a byte[] can potentially require a lot of memory.
+ For KIO.storedPut the user of this class simply provides the bytearray from
+ the start, and the job takes care of uploading it.
+ You should only use StoredTransferJob to upload data if you cannot
+ provide the in chunks while it's being uploaded, since storing
+ everything in a byte[] can potentially require a lot of memory.
+ @short StoredTransferJob is a TransferJob (for downloading or uploading data) that also stores a QByteArray with the data, making it simpler to use than the standard TransferJob.
+
+*/
+public class StoredTransferJob extends TransferJob {
+ protected StoredTransferJob(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Do not create a StoredTransferJob. Use storedGet() or storedPut()
+ instead.
+ @param url the url to get or put
+ @param command the command to issue
+ @param packedArgs the arguments
+ @param _staticData additional data to transmit (e.g. in a HTTP Post)
+ @param showProgressInfo true to show progress information to the user
+ @short Do not create a StoredTransferJob.
+ */
+ public StoredTransferJob(KURL url, int command, byte[] packedArgs, byte[] _staticData, boolean showProgressInfo) {
+ super((Class) null);
+ newStoredTransferJob(url,command,packedArgs,_staticData,showProgressInfo);
+ }
+ private native void newStoredTransferJob(KURL url, int command, byte[] packedArgs, byte[] _staticData, boolean showProgressInfo);
+ /**
+ Set data to be uploaded. This is for put jobs.
+ Automatically called by KIO.storedPut(const byte[] &, ...),
+ do not call this yourself.
+ @short Set data to be uploaded.
+ */
+ public native void setData(byte[] arr);
+ /**
+ Get hold of the downloaded data. This is for get jobs.
+ You're supposed to call this only from the slot connected to the result() signal.
+ @short Get hold of the downloaded data.
+ */
+ public native byte[] data();
+}
diff --git a/kdejava/koala/org/kde/koala/StyleSheet.java b/kdejava/koala/org/kde/koala/StyleSheet.java
new file mode 100644
index 00000000..e83a5b0c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/StyleSheet.java
@@ -0,0 +1,126 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ The <code>StyleSheet</code> interface is the abstract base
+ interface for any type of style sheet. It represents a single style
+ sheet associated with a structured document. In HTML, the
+ StyleSheet interface represents either an external style sheet,
+ included via the HTML <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#h-12.3">
+ LINK </a> element, or an inline <a
+ href="http://www.w3.org/TR/REC-html40/present/styles.html#h-14.2.3">
+ STYLE </a> element. In XML, this interface represents an external
+ style sheet, included via a <a
+ href="http://www.w3.org/TR/xml-stylesheet"> style sheet processing
+ instruction </a> .
+ @short The <code>StyleSheet</code> interface is the abstract base interface for any type of style sheet.
+
+*/
+public class StyleSheet implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected StyleSheet(Class dummy){}
+
+ public StyleSheet() {
+ newStyleSheet();
+ }
+ private native void newStyleSheet();
+ public StyleSheet(StyleSheet other) {
+ newStyleSheet(other);
+ }
+ private native void newStyleSheet(StyleSheet other);
+ // DOM::StyleSheet* StyleSheet(DOM::StyleSheetImpl* arg1); >>>> NOT CONVERTED
+ /**
+ This specifies the style sheet language for this style sheet.
+ The style sheet language is specified as a content type (e.g.
+ "text/css"). The content type is often specified in the
+ <code>ownerNode</code> . A list of registered content types can be
+ found at <a
+ href="ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/">
+ ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/ </a> .
+ Also see the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-type-A">
+ type attribute definition </a> for the <code>LINK</code>
+ element in HTML 4.0, and the type pseudo-attribute for the XML
+ <a href="http://www.w3.org/TR/xml-stylesheet"> style sheet
+ processing instruction </a> .
+ @short This specifies the style sheet language for this style sheet.
+ */
+ public native String type();
+ /**
+ <code>false</code> if the style sheet is applied to the
+ document. <code>true</code> if it is not. Modifying this
+ attribute may cause a reresolution of style for the document.
+ @short <code>false</code> if the style sheet is applied to the document.
+ */
+ public native boolean disabled();
+ /**
+ see disabled
+ @short see disabled
+ */
+ public native void setDisabled(boolean arg1);
+ /**
+ The node that associates this style sheet with the document.
+ For HTML, this may be the corresponding <code>LINK</code> or
+ <code>STYLE</code> element. For XML, it may be the linking
+ processing instruction. For style sheets that are included by
+ other style sheets, this attribute has a value of null.
+ @short The node that associates this style sheet with the document.
+ */
+ public native Node ownerNode();
+ /**
+ For style sheet languages that support the concept of style
+ sheet inclusion, this attribute represents the including style
+ sheet, if one exists. If the style sheet is a top-level style
+ sheet, or the style sheet language does not support inclusion,
+ the value of the attribute is null.
+ @short For style sheet languages that support the concept of style sheet inclusion, this attribute represents the including style sheet, if one exists.
+ */
+ public native StyleSheet parentStyleSheet();
+ /**
+ If the style sheet is a linked style sheet, the value of its
+ attribute is its location. For inline style sheets, the value
+ of this attribute is null. See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-href">
+ href attribute definition </a> for the <code>LINK</code>
+ element in HTML 4.0, and the href pseudo-attribute for the XML
+ <a href="http://www.w3.org/TR/xml-stylesheet"> style sheet
+ processing instruction </a> .
+ @short If the style sheet is a linked style sheet, the value of its attribute is its location.
+ */
+ public native String href();
+ /**
+ The advisory title. The title is often specified in the
+ <code>ownerNode</code> . See the <a
+ href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-title">
+ title attribute definition </a> for the <code>LINK</code>
+ element in HTML 4.0, and the title pseudo-attribute for the XML
+ <a href="http://www.w3.org/TR/xml-stylesheet"> style sheet
+ processing instruction </a> .
+ @short The advisory title.
+ */
+ public native String title();
+ /**
+ The intended destination media for style information. The media
+ is often specified in the <code>ownerNode</code> . See the <a
+ href="http://www.w3.org/TR/REC-html40/present/styles.html#adef-media">
+ media attribute definition </a> for the <code>LINK</code>
+ element in HTML 4.0, and the media pseudo-attribute for the XML
+ <a href="http://www.w3.org/TR/WD-xml-stylesheet"> style sheet
+ processing instruction </a> .
+ @short The intended destination media for style information.
+ */
+ public native ArrayList media();
+ /**
+ @short
+ */
+ public native boolean isCSSStyleSheet();
+ // DOM::StyleSheetImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+}
diff --git a/kdejava/koala/org/kde/koala/Text.java b/kdejava/koala/org/kde/koala/Text.java
new file mode 100644
index 00000000..41bebbac
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/Text.java
@@ -0,0 +1,64 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The <code>Text</code> interface represents the textual content
+ (termed <a href="&xml-spec;#syntax"> character data </a> in XML) of
+ an <code>Element</code> or <code>Attr</code> . If there is no
+ markup inside an element's content, the text is contained in a
+ single object implementing the <code>Text</code> interface that
+ is the only child of the element. If there is markup, it is parsed
+ into a list of elements and <code>Text</code> nodes that form the
+ list of children of the element.
+ When a document is first made available via the DOM, there is only
+ one <code>Text</code> node for each block of text. Users may
+ create adjacent <code>Text</code> nodes that represent the
+ contents of a given element without any intervening markup, but
+ should be aware that there is no way to represent the separations
+ between these nodes in XML or HTML, so they will not (in general)
+ persist between DOM editing sessions. The <code>normalize</code>()
+ method on <code>Element</code> merges any such adjacent
+ <code>Text</code> objects into a single node for each block of
+ text; this is recommended before employing operations that depend
+ on a particular document structure, such as navigation with
+ <code>XPointers</code>.
+ @short The <code>Text</code> interface represents the textual content (termed <a href="&xml-spec;#syntax"> character data </a> in XML) of an <code>Element</code> or <code>Attr</code> .
+
+*/
+public class Text extends CharacterData {
+ protected Text(Class dummy){super((Class) null);}
+ public Text() {
+ super((Class) null);
+ newText();
+ }
+ private native void newText();
+ public Text(Text other) {
+ super((Class) null);
+ newText(other);
+ }
+ private native void newText(Text other);
+ public Text(Node other) {
+ super((Class) null);
+ newText(other);
+ }
+ private native void newText(Node other);
+ /**
+ Breaks this <code>Text</code> node into two Text nodes at the
+ specified offset, keeping both in the tree as siblings. This
+ node then only contains all the content up to the <code>offset</code>
+ point. And a new <code>Text</code> node, which is
+ inserted as the next sibling of this node, contains all the
+ content at and after the <code>offset</code> point.
+ @param offset The offset at which to split, starting from 0.
+ NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
+ @return The new <code>Text</code> node.
+
+ @short Breaks this <code>Text</code> node into two Text nodes at the specified offset, keeping both in the tree as siblings.
+ */
+ public native Text splitText(long offset);
+ // DOM::Text* Text(DOM::TextImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/TextEvent.java b/kdejava/koala/org/kde/koala/TextEvent.java
new file mode 100644
index 00000000..1b498609
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/TextEvent.java
@@ -0,0 +1,178 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ DOM.TextEvent
+ The detail attribute inherited from UIEvent is used to indicate
+ the number of keypresses which have occurred during key repetition.
+ If this information is not available this value should be 0.
+ @short DOM.TextEvent The detail attribute inherited from UIEvent is used to indicate the number of keypresses which have occurred during key repetition.
+
+*/
+public class TextEvent extends UIEvent {
+ protected TextEvent(Class dummy){super((Class) null);}
+ public TextEvent() {
+ super((Class) null);
+ newTextEvent();
+ }
+ private native void newTextEvent();
+ public TextEvent(TextEvent other) {
+ super((Class) null);
+ newTextEvent(other);
+ }
+ private native void newTextEvent(TextEvent other);
+ public TextEvent(Event other) {
+ super((Class) null);
+ newTextEvent(other);
+ }
+ private native void newTextEvent(Event other);
+ /**
+ initTextEvent
+ The initTextEvent method is used to initialize the value of a
+ MouseEvent created through the DocumentEvent interface. This
+ method may only be called before the TextEvent has been dispatched
+ via the dispatchEvent method, though it may be called multiple
+ times during that phase if necessary. If called multiple times,
+ the final invocation takes precedence. This method has no effect
+ if called after the event has been dispatched.
+ Parameters:
+ typeArg of type DOMString
+ Specifies the event type.
+ canBubbleArg of type booleanean
+ Specifies whether or not the event can bubble.
+ cancelableArg of type booleanean
+ Specifies whether or not the event's default action can be prevent.
+ viewArg of type views.AbstractView
+ Specifies the TextEvent's AbstractView.
+ detailArg of type unsigned short
+ Specifies the number of repeated keypresses, if available.
+ outputStringArg of type DOMString
+ Specifies the TextEvent's outputString attribute
+ keyValArg of type unsigned long
+ Specifies the TextEvent's keyValattribute
+ virtKeyValArg of type unsigned long
+ Specifies the TextEvent's virtKeyValattribute
+ inputGeneratedArg of type booleanean
+ Specifies the TextEvent's inputGeneratedattribute
+ numPadArg of type booleanean
+ Specifies the TextEvent's numPadattribute
+ No Return Value.
+ No Exceptions.
+ @short initTextEvent
+ */
+ public native void initTextEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, long detailArg, String outputStringArg, long keyValArg, long virtKeyValArg, boolean inputGeneratedArg, boolean numPadArg);
+ /**
+ initModifier
+ The initModifier method is used to initialize the values of any
+ modifiers associated with a TextEvent created through the
+ DocumentEvent interface. This method may only be called before the
+ TextEvent has been dispatched via the dispatchEvent method, though
+ it may be called multiple times during that phase if necessary. If
+ called multiple times with the same modifier property the final
+ invocation takes precedence. Unless explicitly give a value of
+ true, all modifiers have a value of false. This method has no
+ effect if called after the event has been dispatched. The list of
+ keys below represents the allowable modifier parameters for this
+ method:
+ DOM_VK_LEFT_ALT
+ DOM_VK_RIGHT_ALT
+ DOM_VK_LEFT_CONTROL
+ DOM_VK_RIGHT_CONTROL
+ DOM_VK_LEFT_SHIFT
+ DOM_VK_RIGHT_SHIFT
+ DOM_VK_META
+ Parameters:
+ modifier of type unsigned long
+ The modifier which the user wishes to initialize
+ value of type booleanean
+ The new value of the modifier.
+ No Return Value
+ No Exceptions
+ @short initModifier
+ */
+ public native void initModifier(long modifierArg, boolean valueArg);
+ /**
+ inputGenerated of type booleanean
+ The inputGenerated attribute indicates whether the key event will
+ normally cause visible output. If the key event does not
+ generate any visible output, such as the use of a function key
+ or the combination of certain modifier keys used in conjunction
+ with another key, then the value will be false. If visible
+ output is normally generated by the key event then the value
+ will be true. The value of inputGenerated does not guarantee
+ the creation of a character. If a key event causing visible
+ output is cancelable it may be prevented from causing
+ output. This attribute is intended primarily to differentiate
+ between keys events which may or may not produce visible output
+ depending on the system state.
+ @short inputGenerated of type boolean
+ */
+ public native boolean inputGenerated();
+ /** keyVal of type unsigned long
+ The value of keyVal holds the value of the Unicode character
+ associated with the depressed key. If the key has no Unicode
+ representation or no Unicode character is available the value is
+ 0.
+ @short keyVal of type unsigned long
+ */
+ public native long keyVal();
+ /** numPad of type booleanean
+ The numPad attribute indicates whether or not the key event was
+ generated on the number pad section of the keyboard. If the number
+ pad was used to generate the key event the value is true,
+ otherwise the value is false.
+ @short numPad of type boolean
+ */
+ public native boolean numPad();
+ /**
+ outputString of type DOMString
+ outputString holds the value of the output generated by the key
+ event. This may be a single Unicode character or it may be a
+ string. It may also be null in the case where no output was
+ generated by the key event.
+ @short outputString of type DOMString
+ */
+ public native String outputString();
+ /** virtKeyVal of type unsigned long
+ When the key associated with a key event is not representable via
+ a Unicode character virtKeyVale holds the key code
+ associated with the depressed key. If the key has a Unicode
+ representation or no code is available the value is
+ DOM_VK_UNDEFINED.
+ @short virtKeyVal of type unsigned long
+ */
+ public native long virtKeyVal();
+ /**
+ checkModifier
+ Note: the below description does not match the actual behavior.
+ it's extended in a way that you can query multiple modifiers
+ at once by logically OR`ing them.
+ also, we use the Qt modifier enum instead of the DOM one.
+ The CheckModifier method is used to check the status of a single
+ modifier key associated with a TextEvent. The identifier of the
+ modifier in question is passed into the CheckModifier function. If
+ the modifier is triggered it will return true. If not, it will
+ return false. The list of keys below represents the allowable
+ modifier parameters for this method:
+ DOM_VK_LEFT_ALT
+ DOM_VK_RIGHT_ALT
+ DOM_VK_LEFT_CONTROL
+ DOM_VK_RIGHT_CONTROL
+ DOM_VK_LEFT_SHIFT
+ DOM_VK_RIGHT_SHIFT
+ DOM_VK_META
+ Parameters:
+ modifier of type unsigned long
+ The modifier which the user wishes to query.
+ Return Value: booleanean
+ The status of the modifier represented as a booleanean.
+ No Exceptions
+ @short checkModifier
+ */
+ public native boolean checkModifier(long modifierArg);
+ // DOM::TextEvent* TextEvent(DOM::TextEventImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/TransferJob.java b/kdejava/koala/org/kde/koala/TransferJob.java
new file mode 100644
index 00000000..0d9af8ca
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/TransferJob.java
@@ -0,0 +1,117 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The transfer job pumps data into and/or out of a Slave.
+ Data is sent to the slave on request of the slave ( dataReq).
+ If data coming from the slave can not be handled, the
+ reading of data from the slave should be suspended.
+ See {@link TransferJobSignals} for signals emitted by TransferJob
+ @short The transfer job pumps data into and/or out of a Slave.
+
+*/
+public class TransferJob extends SimpleJob {
+ protected TransferJob(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Do not create a TransferJob. Use KIO.get() or KIO.put()
+ instead.
+ @param url the url to get or put
+ @param command the command to issue
+ @param packedArgs the arguments
+ @param _staticData additional data to transmit (e.g. in a HTTP Post)
+ @param showProgressInfo true to show progress information to the user
+ @short Do not create a TransferJob.
+ */
+ public TransferJob(KURL url, int command, byte[] packedArgs, byte[] _staticData, boolean showProgressInfo) {
+ super((Class) null);
+ newTransferJob(url,command,packedArgs,_staticData,showProgressInfo);
+ }
+ private native void newTransferJob(KURL url, int command, byte[] packedArgs, byte[] _staticData, boolean showProgressInfo);
+ /**
+ Called by the scheduler when a <code>slave</code> gets to
+ work on this job.
+ @param slave the slave that starts working on this job
+ @short
+ */
+ public native void start(Slave slave);
+ /**
+ Called when m_subJob finishes.
+ @param job the job that finished
+ @short Called when m_subJob finishes.
+ */
+ public native void slotResult(Job job);
+ /**
+ Flow control. Suspend data processing from the slave.
+ @short Flow control.
+ */
+ public native void suspend();
+ /**
+ Flow control. Resume data processing from the slave.
+ @short Flow control.
+ */
+ public native void resume();
+ /**
+ Flow control.
+ @return true if the job is suspended
+
+ @short Flow control.
+ */
+ public native boolean isSuspended();
+ /**
+ Checks whether we got an error page. This currently only happens
+ with HTTP urls. Call this from your slot connected to result().
+ @return true if we got an (HTML) error page from the server
+ instead of what we asked for.
+
+ @short Checks whether we got an error page.
+ */
+ public native boolean isErrorPage();
+ /**
+ Enable the async data mode.
+ When async data is enabled, data should be provided to the job by
+ calling sendAsyncData() instead of returning data in the
+ dataReq() signal.
+ @short Enable the async data mode.
+ */
+ public native void setAsyncDataEnabled(boolean enabled);
+ /**
+ Provide data to the job when async data is enabled.
+ Should be called exactly once after receiving a dataReq signal
+ Sending an empty block indicates end of data.
+ @short Provide data to the job when async data is enabled.
+ */
+ public native void sendAsyncData(byte[] data);
+ /**
+ When enabled, the job reports the amount of data that has been sent,
+ instead of the amount of data that that has been received.
+ @short When enabled, the job reports the amount of data that has been sent, instead of the amount of data that that has been received.
+ @see #slotProcessedSize
+ @see #slotSpeed
+ */
+ public native void setReportDataSent(boolean enabled);
+ /**
+ Returns whether the job reports the amount of data that has been
+ sent (true), or whether the job reports the amount of data that
+ has been received (false)
+ @short Returns whether the job reports the amount of data that has been sent (true), or whether the job reports the amount of data that has been received (false)
+ */
+ public native boolean reportDataSent();
+ protected native void slotRedirection(KURL url);
+ protected native void slotFinished();
+ protected native void slotData(byte[] data);
+ protected native void slotDataReq();
+ protected native void slotMimetype(String mimetype);
+ protected native void slotNeedSubURLData();
+ protected native void slotSubURLData(Job arg1, byte[] arg2);
+ // void slotMetaData(const KIO::MetaData& arg1); >>>> NOT CONVERTED
+ protected native void slotErrorPage();
+ protected native void slotCanResume(long offset);
+ protected native void slotPostRedirection();
+}
diff --git a/kdejava/koala/org/kde/koala/TransferJobSignals.java b/kdejava/koala/org/kde/koala/TransferJobSignals.java
new file mode 100644
index 00000000..9305b397
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/TransferJobSignals.java
@@ -0,0 +1,63 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+
+public interface TransferJobSignals {
+ /**
+ Data from the slave has arrived.
+ @param job the job that emitted this signal
+ @param data data received from the slave.
+ End of data (EOD) has been reached if data.size() == 0, however, you
+ should not be certain of data.size() == 0 ever happening (e.g. in case
+ of an error), so you should rely on result() instead.
+ @short Data from the slave has arrived.
+ */
+ void data(Job job, byte[] data);
+ /**
+ Request for data.
+ Please note, that you shouldn't put too large chunks
+ of data in it as this requires copies within the frame
+ work, so you should rather split the data you want
+ to pass here in reasonable chunks (about 1MB maximum)
+ @param job the job that emitted this signal
+ @param data buffer to fill with data to send to the
+ slave. An empty buffer indicates end of data. (EOD)
+ @short Request for data.
+ */
+ void dataReq(Job job, byte[] data);
+ /**
+ Signals a redirection.
+ Use to update the URL shown to the user.
+ The redirection itself is handled internally.
+ @param job the job that emitted this signal
+ @param url the new URL
+ @short Signals a redirection.
+ */
+ void redirection(Job job, KURL url);
+ /**
+ Signals a permanent redirection.
+ The redirection itself is handled internally.
+ @param job the job that emitted this signal
+ @param fromUrl the original URL
+ @param toUrl the new URL
+ @short Signals a permanent redirection.
+ */
+ void permanentRedirection(Job job, KURL fromUrl, KURL toUrl);
+ /**
+ Mimetype determined.
+ @param job the job that emitted this signal
+ @param type the mime type
+ @short Mimetype determined.
+ */
+ void mimetype(Job job, String type);
+ /**
+ Emitted if the "put" job found an existing partial file
+ (in which case offset is the size of that file)
+ and emitted by the "get" job if it supports resuming to
+ the given offset - in this case <code>offset</code> is unused)
+ @short
+ */
+ void canResume(Job job, long offset);
+}
diff --git a/kdejava/koala/org/kde/koala/TreeWalker.java b/kdejava/koala/org/kde/koala/TreeWalker.java
new file mode 100644
index 00000000..29df505b
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/TreeWalker.java
@@ -0,0 +1,175 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ <code>TreeWalker</code> objects are used to navigate a document
+ tree or subtree using the view of the document defined by its
+ <code>whatToShow</code> flags and any filters that are defined
+ for the <code>TreeWalker</code> . Any function which performs
+ navigation using a <code>TreeWalker</code> will automatically
+ support any view defined by a <code>TreeWalker</code> .
+ Omitting nodes from the logical view of a subtree can result in a
+ structure that is substantially different from the same subtree in
+ the complete, unfiltered document. Nodes that are siblings in the
+ TreeWalker view may be children of different, widely separated
+ nodes in the original view. For instance, consider a Filter that
+ skips all nodes except for Text nodes and the root node of a
+ document. In the logical view that results, all text nodes will be
+ siblings and appear as direct children of the root node, no matter
+ how deeply nested the structure of the original document.
+ @short <code>TreeWalker</code> objects are used to navigate a document tree or subtree using the view of the document defined by its <code>whatToShow</code> flags and any filters that are defined for the <code>TreeWalker</code> .
+
+*/
+public class TreeWalker implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected TreeWalker(Class dummy){}
+
+ public TreeWalker() {
+ newTreeWalker();
+ }
+ private native void newTreeWalker();
+ public TreeWalker(TreeWalker other) {
+ newTreeWalker(other);
+ }
+ private native void newTreeWalker(TreeWalker other);
+ /**
+ The root node of the TreeWalker, as specified when it was created.
+ @short The root node of the TreeWalker, as specified when it was created.
+ */
+ public native Node root();
+ /**
+ This attribute determines which node types are presented via the
+ TreeWalker. The available set of constants is defined in the NodeFilter
+ interface. Nodes not accepted by whatToShow will be skipped, but their
+ children may still be considered. Note that this skip takes precedence
+ over the filter, if any.
+ @short This attribute determines which node types are presented via the TreeWalker.
+ */
+ public native long whatToShow();
+ /**
+ The filter used to screen nodes.
+ @short The filter used to screen nodes.
+ */
+ public native NodeFilter filter();
+ /**
+ The value of this flag determines whether the children of entity
+ reference nodes are visible to the TreeWalker. If false, they and their
+ descendents will be rejected. Note that this rejection takes precedence
+ over whatToShow and the filter, if any.
+ To produce a view of the document that has entity references expanded
+ and does not expose the entity reference node itself, use the whatToShow
+ flags to hide the entity reference node and set expandEntityReferences
+ to true when creating the TreeWalker. To produce a view of the document
+ that has entity reference nodes but no entity expansion, use the
+ whatToShow flags to show the entity reference node and set
+ expandEntityReferences to false.
+ @short The value of this flag determines whether the children of entity reference nodes are visible to the TreeWalker.
+ */
+ public native boolean expandEntityReferences();
+ /**
+ The node at which the TreeWalker is currently positioned.
+ Alterations to the DOM tree may cause the current node to no longer be
+ accepted by the TreeWalker's associated filter. currentNode may also be
+ explicitly set to any node, whether or not it is within the subtree
+ specified by the root node or would be accepted by the filter and
+ whatToShow flags. Further traversal occurs relative to currentNode even
+ if it is not part of the current view, by applying the filters in the
+ requested direction; if no traversal is possible, currentNode is not changed.
+ @short The node at which the TreeWalker is currently positioned.
+ */
+ public native Node currentNode();
+ /**
+ see currentNode
+ @short see currentNode
+ */
+ public native void setCurrentNode(Node _currentNode);
+ /**
+ Moves to and returns the parent node of the current node. If
+ there is no parent node, or if the current node is the root
+ node from which this TreeWalker was created, retains the
+ current position and returns null.
+ @return The new parent node, or null if the current node has no
+ parent in the TreeWalker's logical view.
+
+ @short Moves to and returns the parent node of the current node.
+ */
+ public native Node parentNode();
+ /**
+ Moves the <code>TreeWalker</code> to the first child of the
+ current node, and returns the new node. If the current node has
+ no children, returns <code>null</code> , and retains the
+ current node.
+ @return The new node, or <code>null</code> if the current
+ node has no children.
+
+ @short Moves the <code>TreeWalker</code> to the first child of the current node, and returns the new node.
+ */
+ public native Node firstChild();
+ /**
+ Moves the <code>TreeWalker</code> to the last child of the
+ current node, and returns the new node. If the current node has
+ no children, returns <code>null</code> , and retains the
+ current node.
+ @return The new node, or <code>null</code> if the current
+ node has no children.
+
+ @short Moves the <code>TreeWalker</code> to the last child of the current node, and returns the new node.
+ */
+ public native Node lastChild();
+ /**
+ Moves the <code>TreeWalker</code> to the previous sibling of
+ the current node, and returns the new node. If the current node
+ has no previous sibling, returns <code>null</code> , and
+ retains the current node.
+ @return The new node, or <code>null</code> if the current
+ node has no previous sibling.
+
+ @short Moves the <code>TreeWalker</code> to the previous sibling of the current node, and returns the new node.
+ */
+ public native Node previousSibling();
+ /**
+ Moves the <code>TreeWalker</code> to the next sibling of the
+ current node, and returns the new node. If the current node has
+ no next sibling, returns <code>null</code> , and retains the
+ current node.
+ @return The new node, or <code>null</code> if the current
+ node has no next sibling.
+
+ @short Moves the <code>TreeWalker</code> to the next sibling of the current node, and returns the new node.
+ */
+ public native Node nextSibling();
+ /**
+ Moves the <code>TreeWalker</code> to the previous node in
+ document order relative to the current node, and returns the
+ new node. If the current node has no previous node, returns
+ <code>null</code> , and retains the current node.
+ @return The new node, or <code>null</code> if the current
+ node has no previous node.
+
+ @short Moves the <code>TreeWalker</code> to the previous node in document order relative to the current node, and returns the new node.
+ */
+ public native Node previousNode();
+ /**
+ Moves the <code>TreeWalker</code> to the next node in
+ document order relative to the current node, and returns the
+ new node. If the current node has no next node, returns
+ <code>null</code> , and retains the current node.
+ @return The new node, or <code>null</code> if the current
+ node has no next node.
+
+ @short Moves the <code>TreeWalker</code> to the next node in document order relative to the current node, and returns the new node.
+ */
+ public native Node nextNode();
+ /**
+ not part of the DOM
+ @short
+ */
+ // DOM::TreeWalkerImpl* handle(); >>>> NOT CONVERTED
+ public native boolean isNull();
+ // DOM::TreeWalker* TreeWalker(DOM::TreeWalkerImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/UIEvent.java b/kdejava/koala/org/kde/koala/UIEvent.java
new file mode 100644
index 00000000..3de80239
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/UIEvent.java
@@ -0,0 +1,88 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ Introduced in DOM Level 2
+ The UIEvent interface provides specific contextual information associated
+ with User Interface events.
+ @short Introduced in DOM Level 2
+
+*/
+public class UIEvent extends Event {
+ protected UIEvent(Class dummy){super((Class) null);}
+ public UIEvent() {
+ super((Class) null);
+ newUIEvent();
+ }
+ private native void newUIEvent();
+ public UIEvent(UIEvent other) {
+ super((Class) null);
+ newUIEvent(other);
+ }
+ private native void newUIEvent(UIEvent other);
+ public UIEvent(Event other) {
+ super((Class) null);
+ newUIEvent(other);
+ }
+ private native void newUIEvent(Event other);
+ /**
+ The view attribute identifies the AbstractView from which the event was
+ generated.
+ @short The view attribute identifies the AbstractView from which the event was generated.
+ */
+ public native AbstractView view();
+ /**
+ Specifies some detail information about the Event, depending on the type
+ of event.
+ @short Specifies some detail information about the Event, depending on the type of event.
+ */
+ public native long detail();
+ /**
+ Non-standard extension to support IE-style keyCode event property.
+ @short Non-standard extension to support IE-style keyCode event property.
+ */
+ public native int keyCode();
+ /**
+ Non-standard extension to support IE-style charCode event property.
+ @short Non-standard extension to support IE-style charCode event property.
+ */
+ public native int charCode();
+ /**
+ Non-standard extensions to support Netscape-style pageX and pageY event properties.
+ @short Non-standard extensions to support Netscape-style pageX and pageY event properties.
+ */
+ public native int pageX();
+ public native int pageY();
+ /**
+ Non-standard extensions to support Netscape-style layerX and layerY event properties.
+ @short Non-standard extensions to support Netscape-style layerX and layerY event properties.
+ */
+ public native int layerX();
+ public native int layerY();
+ /**
+ Non-standard extension to support Netscape-style "which" event property.
+ @short Non-standard extension to support Netscape-style "which" event property.
+ */
+ public native int which();
+ /**
+ The initUIEvent method is used to initialize the value of a UIEvent
+ created through the DocumentEvent interface. This method may only be
+ called before the UIEvent has been dispatched via the dispatchEvent
+ method, though it may be called multiple times during that phase if
+ necessary. If called multiple times, the final invocation takes
+ precedence.
+ @param typeArg Specifies the event type.
+ @param canBubbleArg Specifies whether or not the event can bubble.
+ @param cancelableArg Specifies whether or not the event's default action
+ can be prevented.
+ @param viewArg Specifies the Event's AbstractView.
+ @param detailArg Specifies the Event's detail.
+ @short The initUIEvent method is used to initialize the value of a UIEvent created through the DocumentEvent interface.
+ */
+ public native void initUIEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, long detailArg);
+ // DOM::UIEvent* UIEvent(DOM::UIEventImpl* arg1); >>>> NOT CONVERTED
+}
diff --git a/kdejava/koala/org/kde/koala/URLArgs.java b/kdejava/koala/org/kde/koala/URLArgs.java
new file mode 100644
index 00000000..759ca302
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/URLArgs.java
@@ -0,0 +1,108 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ URLArgs is a set of arguments bundled into a structure,
+ to allow specifying how a URL should be opened by openURL().
+ In other words, this is like arguments to openURL(), but without
+ have to change the signature of openURL() (since openURL is a
+ generic KParts method).
+ The parts (with a browser extension) who care about urlargs will
+ use those arguments, others will ignore them.
+ This can also be used the other way round, when a part asks
+ for a URL to be opened (with openURLRequest or createNewWindow).
+ @short URLArgs is a set of arguments bundled into a structure, to allow specifying how a URL should be opened by openURL().
+
+*/
+public class URLArgs implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected URLArgs(Class dummy){}
+
+ public URLArgs() {
+ newURLArgs();
+ }
+ private native void newURLArgs();
+ public URLArgs(URLArgs args) {
+ newURLArgs(args);
+ }
+ private native void newURLArgs(URLArgs args);
+ public URLArgs(boolean reload, int xOffset, int yOffset, String serviceType) {
+ newURLArgs(reload,xOffset,yOffset,serviceType);
+ }
+ private native void newURLArgs(boolean reload, int xOffset, int yOffset, String serviceType);
+ public URLArgs(boolean reload, int xOffset, int yOffset) {
+ newURLArgs(reload,xOffset,yOffset);
+ }
+ private native void newURLArgs(boolean reload, int xOffset, int yOffset);
+ /**
+ KHTML-specific field, header defining the type of the POST data.
+ @short KHTML-specific field, header defining the type of the POST data.
+ */
+ public native void setContentType(String contentType);
+ /**
+ KHTML-specific field, header defining the type of the POST data.
+ @short KHTML-specific field, header defining the type of the POST data.
+ */
+ public native String contentType();
+ /**
+ KHTML-specific field, whether to do a POST instead of a GET,
+ for the next openURL.
+ @short KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.
+ */
+ public native void setDoPost(boolean enable);
+ /**
+ KHTML-specific field, whether to do a POST instead of a GET,
+ for the next openURL.
+ @short KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.
+ */
+ public native boolean doPost();
+ /**
+ Whether to lock the history when opening the next URL.
+ This is used during e.g. a redirection, to avoid a new entry
+ in the history.
+ @short Whether to lock the history when opening the next URL.
+ */
+ public native void setLockHistory(boolean lock);
+ public native boolean lockHistory();
+ /**
+ Whether the URL should be opened in a new tab instead in a new window.
+ @short Whether the URL should be opened in a new tab instead in a new window.
+ */
+ public native void setNewTab(boolean newTab);
+ public native boolean newTab();
+ /**
+ Meta-data to associate with the next KIO operation
+ @short Meta-data to associate with the next KIO operation
+ @see TransferJob
+ @see #etc#
+ */
+ // QMap<QString, QString>& metaData(); >>>> NOT CONVERTED
+ /**
+ @return true if the request was a result of a META refresh/redirect request or
+ HTTP redirect.
+
+ @short
+ */
+ public native boolean redirectedRequest();
+ /**
+ Set the redirect flag to indicate URL is a result of either a META redirect
+ or HTTP redirect.
+ @param redirected @short Set the redirect flag to indicate URL is a result of either a META redirect or HTTP redirect.
+ */
+ public native void setRedirectedRequest(boolean redirected);
+ /**
+ Set whether the URL specifies to be opened in a new window
+ @short Set whether the URL specifies to be opened in a new window
+ */
+ public native void setForcesNewWindow(boolean forcesNewWindow);
+ /**
+ Whether the URL specifies to be opened in a new window
+ @short Whether the URL specifies to be opened in a new window
+ */
+ public native boolean forcesNewWindow();
+}
diff --git a/kdejava/koala/org/kde/koala/WindowArgs.java b/kdejava/koala/org/kde/koala/WindowArgs.java
new file mode 100644
index 00000000..c4d9870d
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/WindowArgs.java
@@ -0,0 +1,37 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QRect;
+import org.kde.qt.QtSupport;
+
+/**
+
+ The WindowArgs are used to specify arguments to the "create new window"
+ call (see the createNewWindow variant that uses WindowArgs).
+ The primary reason for this is the javascript window.open function.
+ @short The WindowArgs are used to specify arguments to the "create new window" call (see the createNewWindow variant that uses WindowArgs).
+
+*/
+public class WindowArgs implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected WindowArgs(Class dummy){}
+
+ public WindowArgs() {
+ newWindowArgs();
+ }
+ private native void newWindowArgs();
+ public WindowArgs(WindowArgs args) {
+ newWindowArgs(args);
+ }
+ private native void newWindowArgs(WindowArgs args);
+ public WindowArgs(QRect _geometry, boolean _fullscreen, boolean _menuBarVisible, boolean _toolBarsVisible, boolean _statusBarVisible, boolean _resizable) {
+ newWindowArgs(_geometry,_fullscreen,_menuBarVisible,_toolBarsVisible,_statusBarVisible,_resizable);
+ }
+ private native void newWindowArgs(QRect _geometry, boolean _fullscreen, boolean _menuBarVisible, boolean _toolBarsVisible, boolean _statusBarVisible, boolean _resizable);
+ public WindowArgs(int _x, int _y, int _width, int _height, boolean _fullscreen, boolean _menuBarVisible, boolean _toolBarsVisible, boolean _statusBarVisible, boolean _resizable) {
+ newWindowArgs(_x,_y,_width,_height,_fullscreen,_menuBarVisible,_toolBarsVisible,_statusBarVisible,_resizable);
+ }
+ private native void newWindowArgs(int _x, int _y, int _width, int _height, boolean _fullscreen, boolean _menuBarVisible, boolean _toolBarsVisible, boolean _statusBarVisible, boolean _resizable);
+}
diff --git a/kdejava/koala/org/kde/koala/kdejava.java b/kdejava/koala/org/kde/koala/kdejava.java
new file mode 100644
index 00000000..0489a13e
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/kdejava.java
@@ -0,0 +1,38 @@
+/***************************************************************************
+ kdejava.java - description
+ -------------------
+ copyright : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
+ email : Lost_Highway@tipitina.demon.co.uk
+ written by : Richard Dale.
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU Library General Public License as published by*
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ ***************************************************************************/
+
+package org.kde.koala;
+
+import java.util.*;
+import java.lang.Error;
+
+/** The 'Load the KDE Java library' class'
+ @author Richard Dale */
+public class kdejava {
+ private static boolean _initialized = false;
+
+ public static void initialize() {
+ if (!_initialized) {
+ System.loadLibrary("kdejava");
+ KApplication.setJavaSlotFactory();
+ _initialized = true;
+ }
+ }
+
+ static {
+ initialize();
+ }
+}