From 636f509299122d02087c6fd62e1e4a46dbd22026 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Wed, 8 Jan 2014 20:06:00 +0100 Subject: Rename many classes to avoid conflicts with KDE --- tdejava/koala/org/Makefile.am | 5 + tdejava/koala/org/trinitydesktop/Makefile.am | 5 + .../org/trinitydesktop/koala/AbstractView.java | 53 + tdejava/koala/org/trinitydesktop/koala/Attr.java | 120 ++ .../koala/org/trinitydesktop/koala/AuthInfo.java | 61 + .../org/trinitydesktop/koala/BrowserExtension.java | 258 ++++ .../koala/BrowserExtensionSignals.java | 215 ++++ .../trinitydesktop/koala/BrowserHostExtension.java | 63 + .../org/trinitydesktop/koala/BrowserInterface.java | 55 + .../koala/org/trinitydesktop/koala/BrowserRun.java | 143 +++ .../org/trinitydesktop/koala/CDATASection.java | 46 + .../org/trinitydesktop/koala/CSSCharsetRule.java | 44 + .../org/trinitydesktop/koala/CSSException.java | 27 + .../org/trinitydesktop/koala/CSSFontFaceRule.java | 40 + .../org/trinitydesktop/koala/CSSImportRule.java | 56 + .../org/trinitydesktop/koala/CSSMediaRule.java | 87 ++ .../org/trinitydesktop/koala/CSSPageRule.java | 52 + .../trinitydesktop/koala/CSSPrimitiveValue.java | 145 +++ .../koala/org/trinitydesktop/koala/CSSRule.java | 82 ++ .../org/trinitydesktop/koala/CSSRuleList.java | 54 + .../trinitydesktop/koala/CSSStyleDeclaration.java | 155 +++ .../org/trinitydesktop/koala/CSSStyleRule.java | 52 + .../org/trinitydesktop/koala/CSSStyleSheet.java | 86 ++ .../org/trinitydesktop/koala/CSSUnknownRule.java | 32 + .../koala/org/trinitydesktop/koala/CSSValue.java | 51 + .../org/trinitydesktop/koala/CSSValueList.java | 51 + .../org/trinitydesktop/koala/CharacterData.java | 122 ++ .../koala/org/trinitydesktop/koala/Comment.java | 35 + .../koala/org/trinitydesktop/koala/Connection.java | 120 ++ .../koala/org/trinitydesktop/koala/CopyJob.java | 80 ++ .../org/trinitydesktop/koala/CopyJobSignals.java | 104 ++ .../koala/org/trinitydesktop/koala/Counter.java | 52 + .../org/trinitydesktop/koala/CustomNodeFilter.java | 49 + .../koala/org/trinitydesktop/koala/DCOPAnswer.java | 28 + .../koala/org/trinitydesktop/koala/DCOPClient.java | 632 +++++++++ .../trinitydesktop/koala/DCOPClientSignals.java | 62 + .../koala/org/trinitydesktop/koala/DCOPObject.java | 289 +++++ .../trinitydesktop/koala/DCOPObjectInterface.java | 22 + .../org/trinitydesktop/koala/DCOPObjectProxy.java | 60 + .../org/trinitydesktop/koala/DOMException.java | 40 + .../trinitydesktop/koala/DOMImplementation.java | 134 ++ tdejava/koala/org/trinitydesktop/koala/DavJob.java | 44 + .../org/trinitydesktop/koala/DefaultProgress.java | 109 ++ .../koala/org/trinitydesktop/koala/DeleteJob.java | 52 + .../org/trinitydesktop/koala/DeleteJobSignals.java | 45 + .../org/trinitydesktop/koala/DockMainWindow.java | 113 ++ .../koala/org/trinitydesktop/koala/Document.java | 559 ++++++++ .../org/trinitydesktop/koala/DocumentFragment.java | 66 + .../org/trinitydesktop/koala/DocumentStyle.java | 30 + .../org/trinitydesktop/koala/DocumentType.java | 89 ++ .../koala/org/trinitydesktop/koala/DomShared.java | 25 + .../koala/org/trinitydesktop/koala/Element.java | 326 +++++ tdejava/koala/org/trinitydesktop/koala/Entity.java | 78 ++ .../org/trinitydesktop/koala/EntityReference.java | 52 + tdejava/koala/org/trinitydesktop/koala/Event.java | 25 + .../org/trinitydesktop/koala/EventException.java | 28 + .../org/trinitydesktop/koala/EventListener.java | 45 + .../koala/org/trinitydesktop/koala/Factory.java | 72 ++ .../org/trinitydesktop/koala/FileCopyJob.java | 56 + .../org/trinitydesktop/koala/GUIActivateEvent.java | 27 + .../trinitydesktop/koala/HTMLAnchorElement.java | 192 +++ .../trinitydesktop/koala/HTMLAppletElement.java | 181 +++ .../org/trinitydesktop/koala/HTMLAreaElement.java | 136 ++ .../org/trinitydesktop/koala/HTMLBRElement.java | 46 + .../org/trinitydesktop/koala/HTMLBaseElement.java | 57 + .../trinitydesktop/koala/HTMLBaseFontElement.java | 72 ++ .../koala/HTMLBlockquoteElement.java | 45 + .../org/trinitydesktop/koala/HTMLBodyElement.java | 114 ++ .../trinitydesktop/koala/HTMLButtonElement.java | 120 ++ .../org/trinitydesktop/koala/HTMLCollection.java | 74 ++ .../org/trinitydesktop/koala/HTMLDListElement.java | 46 + .../trinitydesktop/koala/HTMLDirectoryElement.java | 47 + .../org/trinitydesktop/koala/HTMLDivElement.java | 46 + .../org/trinitydesktop/koala/HTMLDocument.java | 221 ++++ .../org/trinitydesktop/koala/HTMLElement.java | 144 +++ .../trinitydesktop/koala/HTMLFieldSetElement.java | 38 + .../org/trinitydesktop/koala/HTMLFontElement.java | 73 ++ .../trinitydesktop/koala/HTMLFormCollection.java | 14 + .../org/trinitydesktop/koala/HTMLFormElement.java | 129 ++ .../org/trinitydesktop/koala/HTMLFrameElement.java | 142 +++ .../trinitydesktop/koala/HTMLFrameSetElement.java | 57 + .../org/trinitydesktop/koala/HTMLHRElement.java | 86 ++ .../org/trinitydesktop/koala/HTMLHeadElement.java | 45 + .../trinitydesktop/koala/HTMLHeadingElement.java | 46 + .../org/trinitydesktop/koala/HTMLHtmlElement.java | 46 + .../trinitydesktop/koala/HTMLIFrameElement.java | 168 +++ .../org/trinitydesktop/koala/HTMLImageElement.java | 189 +++ .../org/trinitydesktop/koala/HTMLInputElement.java | 284 +++++ .../trinitydesktop/koala/HTMLIsIndexElement.java | 52 + .../org/trinitydesktop/koala/HTMLLIElement.java | 59 + .../org/trinitydesktop/koala/HTMLLabelElement.java | 59 + .../trinitydesktop/koala/HTMLLegendElement.java | 65 + .../org/trinitydesktop/koala/HTMLLinkElement.java | 151 +++ .../org/trinitydesktop/koala/HTMLMapElement.java | 50 + .../org/trinitydesktop/koala/HTMLMenuElement.java | 47 + .../org/trinitydesktop/koala/HTMLMetaElement.java | 82 ++ .../org/trinitydesktop/koala/HTMLModElement.java | 59 + .../org/trinitydesktop/koala/HTMLOListElement.java | 72 ++ .../trinitydesktop/koala/HTMLObjectElement.java | 269 ++++ .../trinitydesktop/koala/HTMLOptGroupElement.java | 57 + .../trinitydesktop/koala/HTMLOptionElement.java | 115 ++ .../trinitydesktop/koala/HTMLParagraphElement.java | 46 + .../org/trinitydesktop/koala/HTMLParamElement.java | 83 ++ .../org/trinitydesktop/koala/HTMLPreElement.java | 46 + .../org/trinitydesktop/koala/HTMLQuoteElement.java | 51 + .../trinitydesktop/koala/HTMLScriptElement.java | 112 ++ .../trinitydesktop/koala/HTMLSelectElement.java | 168 +++ .../org/trinitydesktop/koala/HTMLStyleElement.java | 75 ++ .../koala/HTMLTableCaptionElement.java | 46 + .../trinitydesktop/koala/HTMLTableCellElement.java | 219 ++++ .../trinitydesktop/koala/HTMLTableColElement.java | 107 ++ .../org/trinitydesktop/koala/HTMLTableElement.java | 260 ++++ .../trinitydesktop/koala/HTMLTableRowElement.java | 155 +++ .../koala/HTMLTableSectionElement.java | 102 ++ .../trinitydesktop/koala/HTMLTextAreaElement.java | 168 +++ .../org/trinitydesktop/koala/HTMLTitleElement.java | 43 + .../org/trinitydesktop/koala/HTMLUListElement.java | 59 + .../org/trinitydesktop/koala/HistoryProvider.java | 69 + .../koala/HistoryProviderSignals.java | 22 + .../koala/org/trinitydesktop/koala/Invocation.java | 69 + tdejava/koala/org/trinitydesktop/koala/Job.java | 368 ++++++ .../koala/org/trinitydesktop/koala/JobSignals.java | 73 ++ .../org/trinitydesktop/koala/KActiveLabel.java | 82 ++ .../org/trinitydesktop/koala/KAnimWidget.java | 126 ++ .../trinitydesktop/koala/KAnimWidgetSignals.java | 15 + tdejava/koala/org/trinitydesktop/koala/KAr.java | 65 + .../koala/org/trinitydesktop/koala/KArchive.java | 229 ++++ .../trinitydesktop/koala/KArchiveDirectory.java | 76 ++ .../org/trinitydesktop/koala/KArchiveEntry.java | 107 ++ .../org/trinitydesktop/koala/KArchiveFile.java | 95 ++ .../org/trinitydesktop/koala/KArrowButton.java | 85 ++ .../koala/org/trinitydesktop/koala/KAsyncIO.java | 76 ++ .../org/trinitydesktop/koala/KAsyncIOSignals.java | 20 + .../org/trinitydesktop/koala/KAudioPlayer.java | 76 ++ .../koala/org/trinitydesktop/koala/KAuthIcon.java | 48 + .../org/trinitydesktop/koala/KAuthIconSignals.java | 18 + .../koala/org/trinitydesktop/koala/KBugReport.java | 103 ++ .../koala/org/trinitydesktop/koala/KButtonBox.java | 160 +++ .../org/trinitydesktop/koala/KCMultiDialog.java | 161 +++ .../trinitydesktop/koala/KCMultiDialogSignals.java | 30 + .../koala/org/trinitydesktop/koala/KCPUInfo.java | 51 + .../org/trinitydesktop/koala/KCalendarSystem.java | 323 +++++ .../koala/KCalendarSystemFactory.java | 52 + .../koala/org/trinitydesktop/koala/KCatalogue.java | 91 ++ .../org/trinitydesktop/koala/KCharSelect.java | 151 +++ .../trinitydesktop/koala/KCharSelectSignals.java | 19 + .../org/trinitydesktop/koala/KCharSelectTable.java | 55 + .../koala/KCharSelectTableSignals.java | 22 + .../koala/org/trinitydesktop/koala/KCharsets.java | 128 ++ .../koala/org/trinitydesktop/koala/KCodecs.java | 272 ++++ tdejava/koala/org/trinitydesktop/koala/KColor.java | 49 + .../org/trinitydesktop/koala/KColorButton.java | 103 ++ .../trinitydesktop/koala/KColorButtonSignals.java | 22 + .../org/trinitydesktop/koala/KColorCells.java | 57 + .../trinitydesktop/koala/KColorCellsSignals.java | 18 + .../org/trinitydesktop/koala/KColorCombo.java | 59 + .../trinitydesktop/koala/KColorComboSignals.java | 21 + .../org/trinitydesktop/koala/KColorDialog.java | 145 +++ .../trinitydesktop/koala/KColorDialogSignals.java | 22 + .../koala/org/trinitydesktop/koala/KColorDrag.java | 86 ++ .../org/trinitydesktop/koala/KColorPatch.java | 44 + .../trinitydesktop/koala/KColorPatchSignals.java | 15 + .../koala/org/trinitydesktop/koala/KCombiView.java | 218 ++++ .../koala/org/trinitydesktop/koala/KComboBox.java | 626 +++++++++ .../org/trinitydesktop/koala/KComboBoxSignals.java | 69 + .../koala/org/trinitydesktop/koala/KCommand.java | 43 + .../org/trinitydesktop/koala/KCommandHistory.java | 136 ++ .../koala/KCommandHistorySignals.java | 30 + .../trinitydesktop/koala/KContextMenuManager.java | 69 + .../koala/org/trinitydesktop/koala/KCursor.java | 200 +++ .../trinitydesktop/koala/KCustomMenuEditor.java | 45 + .../org/trinitydesktop/koala/KDCOPActionProxy.java | 83 ++ .../trinitydesktop/koala/KDCOPPropertyProxy.java | 83 ++ .../trinitydesktop/koala/KDCOPServiceStarter.java | 80 ++ .../trinitydesktop/koala/KDEDesktopMimeType.java | 116 ++ .../koala/org/trinitydesktop/koala/KDataTool.java | 74 ++ .../org/trinitydesktop/koala/KDataToolAction.java | 78 ++ .../koala/KDataToolActionSignals.java | 16 + .../org/trinitydesktop/koala/KDataToolInfo.java | 160 +++ .../org/trinitydesktop/koala/KDatePicker.java | 176 +++ .../trinitydesktop/koala/KDatePickerSignals.java | 41 + .../koala/org/trinitydesktop/koala/KDateTable.java | 167 +++ .../trinitydesktop/koala/KDateTableSignals.java | 43 + .../org/trinitydesktop/koala/KDateTimeWidget.java | 83 ++ .../koala/KDateTimeWidgetSignals.java | 16 + .../org/trinitydesktop/koala/KDateValidator.java | 42 + .../org/trinitydesktop/koala/KDateWidget.java | 82 ++ .../trinitydesktop/koala/KDateWidgetSignals.java | 16 + .../org/trinitydesktop/koala/KDesktopFile.java | 237 ++++ .../koala/org/trinitydesktop/koala/KDialog.java | 154 +++ .../org/trinitydesktop/koala/KDialogBase.java | 1338 +++++++++++++++++++ .../trinitydesktop/koala/KDialogBaseSignals.java | 129 ++ .../org/trinitydesktop/koala/KDialogQueue.java | 29 + .../org/trinitydesktop/koala/KDialogSignals.java | 21 + .../koala/org/trinitydesktop/koala/KDirLister.java | 458 +++++++ .../trinitydesktop/koala/KDirListerSignals.java | 135 ++ .../koala/org/trinitydesktop/koala/KDirNotify.java | 50 + .../trinitydesktop/koala/KDirNotifyInterface.java | 8 + .../org/trinitydesktop/koala/KDirOperator.java | 820 ++++++++++++ .../trinitydesktop/koala/KDirOperatorSignals.java | 42 + .../org/trinitydesktop/koala/KDirSelectDialog.java | 102 ++ .../koala/org/trinitydesktop/koala/KDirSize.java | 80 ++ .../koala/org/trinitydesktop/koala/KDirWatch.java | 238 ++++ .../org/trinitydesktop/koala/KDirWatchSignals.java | 36 + .../org/trinitydesktop/koala/KDiskFreeSp.java | 57 + .../trinitydesktop/koala/KDiskFreeSpSignals.java | 11 + .../koala/org/trinitydesktop/koala/KDockArea.java | 64 + .../org/trinitydesktop/koala/KDockAreaSignals.java | 18 + .../org/trinitydesktop/koala/KDockMainWindow.java | 221 ++++ .../koala/KDockMainWindowSignals.java | 17 + .../org/trinitydesktop/koala/KDockManager.java | 211 +++ .../trinitydesktop/koala/KDockManagerSignals.java | 28 + .../org/trinitydesktop/koala/KDockTabGroup.java | 51 + .../org/trinitydesktop/koala/KDockWidget.java | 406 ++++++ .../koala/KDockWidgetAbstractHeader.java | 60 + .../koala/KDockWidgetAbstractHeaderDrag.java | 52 + .../trinitydesktop/koala/KDockWidgetHeader.java | 85 ++ .../koala/KDockWidgetHeaderDrag.java | 52 + .../trinitydesktop/koala/KDockWidgetSignals.java | 50 + .../org/trinitydesktop/koala/KDoubleNumInput.java | 280 ++++ .../koala/KDoubleNumInputSignals.java | 26 + .../org/trinitydesktop/koala/KDoubleValidator.java | 68 + .../org/trinitydesktop/koala/KDualColorButton.java | 161 +++ .../koala/KDualColorButtonSignals.java | 31 + .../org/trinitydesktop/koala/KEMailSettings.java | 124 ++ .../koala/org/trinitydesktop/koala/KEdFind.java | 58 + .../org/trinitydesktop/koala/KEdFindSignals.java | 11 + .../org/trinitydesktop/koala/KEdGotoLine.java | 43 + .../koala/org/trinitydesktop/koala/KEdReplace.java | 67 + .../trinitydesktop/koala/KEdReplaceSignals.java | 13 + tdejava/koala/org/trinitydesktop/koala/KEdit.java | 193 +++ .../org/trinitydesktop/koala/KEditListBox.java | 236 ++++ .../trinitydesktop/koala/KEditListBoxSignals.java | 25 + .../org/trinitydesktop/koala/KEditSignals.java | 40 + .../org/trinitydesktop/koala/KEditToolbar.java | 242 ++++ .../trinitydesktop/koala/KEditToolbarSignals.java | 16 + .../trinitydesktop/koala/KEditToolbarWidget.java | 410 ++++++ .../koala/KEditToolbarWidgetSignals.java | 18 + tdejava/koala/org/trinitydesktop/koala/KEntry.java | 28 + .../koala/org/trinitydesktop/koala/KEntryKey.java | 37 + .../org/trinitydesktop/koala/KExecMimeType.java | 39 + tdejava/koala/org/trinitydesktop/koala/KFile.java | 88 ++ .../org/trinitydesktop/koala/KFileDetailView.java | 229 ++++ .../koala/KFileDetailViewSignals.java | 31 + .../org/trinitydesktop/koala/KFileDialog.java | 874 +++++++++++++ .../trinitydesktop/koala/KFileDialogSignals.java | 44 + .../org/trinitydesktop/koala/KFileFilter.java | 27 + .../org/trinitydesktop/koala/KFileFilterCombo.java | 84 ++ .../koala/KFileFilterComboSignals.java | 12 + .../org/trinitydesktop/koala/KFileIconView.java | 282 ++++ .../trinitydesktop/koala/KFileIconViewItem.java | 43 + .../trinitydesktop/koala/KFileIconViewSignals.java | 35 + .../koala/org/trinitydesktop/koala/KFileItem.java | 565 +++++++++ .../trinitydesktop/koala/KFileListViewItem.java | 57 + .../org/trinitydesktop/koala/KFileMetaInfo.java | 314 +++++ .../trinitydesktop/koala/KFileMetaInfoGroup.java | 201 +++ .../trinitydesktop/koala/KFileMetaInfoItem.java | 172 +++ .../org/trinitydesktop/koala/KFilePlugin.java | 179 +++ .../org/trinitydesktop/koala/KFilePreview.java | 218 ++++ .../trinitydesktop/koala/KFilePreviewSignals.java | 12 + .../koala/org/trinitydesktop/koala/KFileShare.java | 113 ++ .../org/trinitydesktop/koala/KFileTreeBranch.java | 148 +++ .../koala/KFileTreeBranchSignals.java | 20 + .../org/trinitydesktop/koala/KFileTreeView.java | 168 +++ .../trinitydesktop/koala/KFileTreeViewItem.java | 72 ++ .../trinitydesktop/koala/KFileTreeViewSignals.java | 26 + .../trinitydesktop/koala/KFileTreeViewToolTip.java | 26 + .../koala/org/trinitydesktop/koala/KFileView.java | 312 +++++ .../trinitydesktop/koala/KFileViewInterface.java | 57 + .../trinitydesktop/koala/KFileViewSignaler.java | 49 + .../koala/KFileViewSignalerSignals.java | 22 + .../org/trinitydesktop/koala/KFilterBase.java | 104 ++ .../koala/org/trinitydesktop/koala/KFilterDev.java | 149 +++ tdejava/koala/org/trinitydesktop/koala/KFind.java | 259 ++++ .../org/trinitydesktop/koala/KFindDialog.java | 241 ++++ .../org/trinitydesktop/koala/KFindSignals.java | 50 + .../org/trinitydesktop/koala/KFloatValidator.java | 110 ++ .../org/trinitydesktop/koala/KFolderType.java | 43 + .../trinitydesktop/koala/KGradientSelector.java | 95 ++ .../koala/org/trinitydesktop/koala/KGuiItem.java | 84 ++ .../org/trinitydesktop/koala/KHSSelector.java | 69 + .../koala/org/trinitydesktop/koala/KHelpMenu.java | 197 +++ .../org/trinitydesktop/koala/KHelpMenuSignals.java | 18 + .../org/trinitydesktop/koala/KHistoryCombo.java | 223 ++++ .../trinitydesktop/koala/KHistoryComboSignals.java | 17 + tdejava/koala/org/trinitydesktop/koala/KIDNA.java | 30 + tdejava/koala/org/trinitydesktop/koala/KIPC.java | 76 ++ .../org/trinitydesktop/koala/KImageEffect.java | 772 +++++++++++ .../koala/org/trinitydesktop/koala/KImageIO.java | 226 ++++ .../org/trinitydesktop/koala/KInputDialog.java | 148 +++ .../org/trinitydesktop/koala/KIntNumInput.java | 266 ++++ .../trinitydesktop/koala/KIntNumInputSignals.java | 23 + .../org/trinitydesktop/koala/KIntSpinBox.java | 112 ++ .../org/trinitydesktop/koala/KIntValidator.java | 103 ++ .../org/trinitydesktop/koala/KJanusWidget.java | 447 +++++++ .../trinitydesktop/koala/KJanusWidgetSignals.java | 24 + tdejava/koala/org/trinitydesktop/koala/KKey.java | 267 ++++ .../koala/org/trinitydesktop/koala/KKeyButton.java | 73 ++ .../trinitydesktop/koala/KKeyButtonSignals.java | 11 + .../org/trinitydesktop/koala/KKeyChooser.java | 195 +++ .../trinitydesktop/koala/KKeyChooserSignals.java | 17 + .../koala/org/trinitydesktop/koala/KKeyDialog.java | 157 +++ .../koala/org/trinitydesktop/koala/KKeyNative.java | 128 ++ .../org/trinitydesktop/koala/KKeySequence.java | 211 +++ tdejava/koala/org/trinitydesktop/koala/KLed.java | 288 +++++ .../org/trinitydesktop/koala/KLibFactory.java | 79 ++ .../trinitydesktop/koala/KLibFactorySignals.java | 15 + .../koala/org/trinitydesktop/koala/KLibLoader.java | 166 +++ .../koala/org/trinitydesktop/koala/KLineEdit.java | 605 +++++++++ .../org/trinitydesktop/koala/KLineEditSignals.java | 72 ++ tdejava/koala/org/trinitydesktop/koala/KMD5.java | 174 +++ .../org/trinitydesktop/koala/KMacroCommand.java | 53 + tdejava/koala/org/trinitydesktop/koala/KMdi.java | 71 ++ .../org/trinitydesktop/koala/KMdiChildArea.java | 193 +++ .../trinitydesktop/koala/KMdiChildAreaSignals.java | 42 + .../org/trinitydesktop/koala/KMdiChildFrm.java | 141 ++ .../trinitydesktop/koala/KMdiChildFrmCaption.java | 43 + .../koala/KMdiChildFrmDragBeginEvent.java | 16 + .../koala/KMdiChildFrmDragEndEvent.java | 16 + .../koala/KMdiChildFrmMoveEvent.java | 16 + .../koala/KMdiChildFrmResizeBeginEvent.java | 16 + .../koala/KMdiChildFrmResizeEndEvent.java | 16 + .../org/trinitydesktop/koala/KMdiChildView.java | 423 ++++++ .../trinitydesktop/koala/KMdiChildViewSignals.java | 115 ++ .../org/trinitydesktop/koala/KMdiMainFrm.java | 699 ++++++++++ .../trinitydesktop/koala/KMdiMainFrmSignals.java | 51 + .../org/trinitydesktop/koala/KMdiTaskBar.java | 93 ++ .../trinitydesktop/koala/KMdiTaskBarButton.java | 62 + .../koala/KMdiTaskBarButtonSignals.java | 29 + .../trinitydesktop/koala/KMdiToolViewAccessor.java | 31 + .../trinitydesktop/koala/KMdiViewCloseEvent.java | 27 + .../trinitydesktop/koala/KMdiWin32IconButton.java | 38 + .../koala/KMdiWin32IconButtonSignals.java | 11 + .../koala/org/trinitydesktop/koala/KMenuBar.java | 94 ++ .../org/trinitydesktop/koala/KMessageBox.java | 944 ++++++++++++++ .../koala/org/trinitydesktop/koala/KMimeMagic.java | 131 ++ .../org/trinitydesktop/koala/KMimeMagicResult.java | 49 + .../trinitydesktop/koala/KMimeSourceFactory.java | 55 + .../koala/org/trinitydesktop/koala/KMimeType.java | 439 +++++++ .../koala/KMimeTypeResolverBase.java | 21 + .../koala/KMimeTypeResolverHelper.java | 37 + .../trinitydesktop/koala/KMimeTypeValidator.java | 68 + .../org/trinitydesktop/koala/KMountPoint.java | 73 ++ .../org/trinitydesktop/koala/KMultiTabBar.java | 169 +++ .../trinitydesktop/koala/KMultiTabBarButton.java | 64 + .../koala/KMultiTabBarButtonSignals.java | 20 + .../org/trinitydesktop/koala/KMultiTabBarTab.java | 56 + .../org/trinitydesktop/koala/KMultipleDrag.java | 93 ++ .../org/trinitydesktop/koala/KNamedCommand.java | 29 + .../org/trinitydesktop/koala/KNotifyClient.java | 214 ++++ .../koala/org/trinitydesktop/koala/KNumInput.java | 92 ++ .../koala/org/trinitydesktop/koala/KOCRDialog.java | 104 ++ .../trinitydesktop/koala/KOCRDialogSignals.java | 18 + .../org/trinitydesktop/koala/KOpenWithDlg.java | 162 +++ .../koala/org/trinitydesktop/koala/KPalette.java | 199 +++ .../org/trinitydesktop/koala/KPaletteTable.java | 55 + .../trinitydesktop/koala/KPaletteTableSignals.java | 12 + .../org/trinitydesktop/koala/KPanelAppMenu.java | 292 +++++ .../trinitydesktop/koala/KPanelAppMenuSignals.java | 16 + .../org/trinitydesktop/koala/KPanelApplet.java | 332 +++++ .../trinitydesktop/koala/KPanelAppletSignals.java | 36 + .../org/trinitydesktop/koala/KPanelExtension.java | 314 +++++ .../koala/KPanelExtensionSignals.java | 23 + .../koala/org/trinitydesktop/koala/KPanelMenu.java | 103 ++ .../org/trinitydesktop/koala/KPassivePopup.java | 383 ++++++ .../trinitydesktop/koala/KPassivePopupSignals.java | 26 + .../org/trinitydesktop/koala/KPasswordDialog.java | 256 ++++ .../org/trinitydesktop/koala/KPasswordEdit.java | 96 ++ .../koala/org/trinitydesktop/koala/KPixmap.java | 196 +++ .../org/trinitydesktop/koala/KPixmapEffect.java | 240 ++++ .../koala/org/trinitydesktop/koala/KPixmapIO.java | 149 +++ .../org/trinitydesktop/koala/KPixmapProvider.java | 35 + .../org/trinitydesktop/koala/KPixmapSplitter.java | 100 ++ .../org/trinitydesktop/koala/KPluginSelector.java | 150 +++ .../koala/KPluginSelectorSignals.java | 21 + .../trinitydesktop/koala/KPreviewWidgetBase.java | 52 + .../org/trinitydesktop/koala/KPrintAction.java | 118 ++ .../trinitydesktop/koala/KPrintActionSignals.java | 12 + .../koala/org/trinitydesktop/koala/KProcIO.java | 172 +++ .../org/trinitydesktop/koala/KProcIOSignals.java | 16 + .../koala/org/trinitydesktop/koala/KProgress.java | 134 ++ .../org/trinitydesktop/koala/KProgressDialog.java | 170 +++ .../org/trinitydesktop/koala/KProgressSignals.java | 14 + .../org/trinitydesktop/koala/KProtocolInfo.java | 521 ++++++++ .../org/trinitydesktop/koala/KProtocolManager.java | 367 ++++++ .../org/trinitydesktop/koala/KPushButton.java | 151 +++ .../koala/org/trinitydesktop/koala/KRFCDate.java | 85 ++ .../org/trinitydesktop/koala/KRandomSequence.java | 117 ++ .../koala/KRegExpEditorInterface.java | 100 ++ .../koala/org/trinitydesktop/koala/KReplace.java | 188 +++ .../org/trinitydesktop/koala/KReplaceDialog.java | 132 ++ .../org/trinitydesktop/koala/KReplaceSignals.java | 24 + .../org/trinitydesktop/koala/KRestrictedLine.java | 76 ++ .../koala/KRestrictedLineSignals.java | 15 + .../org/trinitydesktop/koala/KRootPermsIcon.java | 49 + .../org/trinitydesktop/koala/KRootPixmap.java | 182 +++ .../trinitydesktop/koala/KRootPixmapSignals.java | 20 + .../koala/org/trinitydesktop/koala/KRootProp.java | 186 +++ tdejava/koala/org/trinitydesktop/koala/KRuler.java | 386 ++++++ tdejava/koala/org/trinitydesktop/koala/KRun.java | 346 +++++ .../org/trinitydesktop/koala/KRunSignals.java | 22 + .../org/trinitydesktop/koala/KSMIMECrypto.java | 100 ++ tdejava/koala/org/trinitydesktop/koala/KSSL.java | 249 ++++ .../org/trinitydesktop/koala/KSSLCertBox.java | 64 + .../org/trinitydesktop/koala/KSSLCertChain.java | 87 ++ .../org/trinitydesktop/koala/KSSLCertDlg.java | 94 ++ .../org/trinitydesktop/koala/KSSLCertDlgRet.java | 24 + .../org/trinitydesktop/koala/KSSLCertificate.java | 349 +++++ .../trinitydesktop/koala/KSSLCertificateCache.java | 50 + .../koala/KSSLCertificateFactory.java | 25 + .../trinitydesktop/koala/KSSLCertificateHome.java | 62 + .../trinitydesktop/koala/KSSLConnectionInfo.java | 69 + .../org/trinitydesktop/koala/KSSLInfoDlg.java | 108 ++ .../koala/org/trinitydesktop/koala/KSSLKeyGen.java | 85 ++ .../koala/org/trinitydesktop/koala/KSSLPKCS12.java | 158 +++ .../koala/org/trinitydesktop/koala/KSSLPKCS7.java | 98 ++ .../org/trinitydesktop/koala/KSSLPeerInfo.java | 79 ++ .../org/trinitydesktop/koala/KSSLSession.java | 46 + .../org/trinitydesktop/koala/KSSLSettings.java | 191 +++ .../org/trinitydesktop/koala/KSSLSigners.java | 159 +++ .../org/trinitydesktop/koala/KSSLX509Map.java | 62 + .../koala/org/trinitydesktop/koala/KSSLX509V3.java | 110 ++ .../koala/org/trinitydesktop/koala/KSaveFile.java | 135 ++ .../org/trinitydesktop/koala/KScanDialog.java | 143 +++ .../trinitydesktop/koala/KScanDialogSignals.java | 36 + .../koala/org/trinitydesktop/koala/KSeparator.java | 111 ++ .../koala/org/trinitydesktop/koala/KService.java | 547 ++++++++ .../org/trinitydesktop/koala/KServiceGroup.java | 285 +++++ .../org/trinitydesktop/koala/KServiceOffer.java | 94 ++ .../trinitydesktop/koala/KServiceSeparator.java | 31 + .../org/trinitydesktop/koala/KServiceType.java | 223 ++++ .../trinitydesktop/koala/KServiceTypeProfile.java | 137 ++ .../org/trinitydesktop/koala/KSessionManaged.java | 57 + tdejava/koala/org/trinitydesktop/koala/KShell.java | 96 ++ .../org/trinitydesktop/koala/KShellCompletion.java | 51 + .../org/trinitydesktop/koala/KShellProcess.java | 45 + tdejava/koala/org/trinitydesktop/koala/KShred.java | 95 ++ .../org/trinitydesktop/koala/KShredSignals.java | 20 + .../org/trinitydesktop/koala/KSimpleConfig.java | 64 + .../trinitydesktop/koala/KSimpleFileFilter.java | 128 ++ tdejava/koala/org/trinitydesktop/koala/KSpell.java | 390 ++++++ .../org/trinitydesktop/koala/KSpellConfig.java | 198 +++ .../trinitydesktop/koala/KSpellConfigSignals.java | 12 + .../koala/org/trinitydesktop/koala/KSpellDlg.java | 67 + .../org/trinitydesktop/koala/KSpellDlgSignals.java | 17 + .../org/trinitydesktop/koala/KSpellSignals.java | 117 ++ .../trinitydesktop/koala/KSpellingHighlighter.java | 19 + .../trinitydesktop/koala/KSqueezedTextLabel.java | 78 ++ .../trinitydesktop/koala/KStaticDeleterBase.java | 42 + .../koala/org/trinitydesktop/koala/KStatusBar.java | 126 ++ .../org/trinitydesktop/koala/KStatusBarLabel.java | 44 + .../koala/KStatusBarLabelSignals.java | 11 + .../trinitydesktop/koala/KStatusBarSignals.java | 21 + .../koala/org/trinitydesktop/koala/KStdAction.java | 544 ++++++++ .../org/trinitydesktop/koala/KStdGuiItem.java | 183 +++ .../org/trinitydesktop/koala/KStringHandler.java | 407 ++++++ .../trinitydesktop/koala/KStringListValidator.java | 94 ++ .../koala/org/trinitydesktop/koala/KSycoca.java | 364 ++++++ .../org/trinitydesktop/koala/KSycocaEntry.java | 78 ++ .../org/trinitydesktop/koala/KSycocaSignals.java | 17 + .../trinitydesktop/koala/KSyntaxHighlighter.java | 63 + .../org/trinitydesktop/koala/KSystemTray.java | 164 +++ .../trinitydesktop/koala/KSystemTraySignals.java | 19 + .../koala/org/trinitydesktop/koala/KTabBar.java | 76 ++ .../org/trinitydesktop/koala/KTabBarSignals.java | 27 + .../koala/org/trinitydesktop/koala/KTabCtl.java | 83 ++ .../org/trinitydesktop/koala/KTabCtlSignals.java | 15 + .../koala/org/trinitydesktop/koala/KTabWidget.java | 95 ++ .../trinitydesktop/koala/KTabWidgetSignals.java | 30 + tdejava/koala/org/trinitydesktop/koala/KTar.java | 95 ++ .../koala/org/trinitydesktop/koala/KTempDir.java | 124 ++ .../koala/org/trinitydesktop/koala/KTempFile.java | 184 +++ .../org/trinitydesktop/koala/KTextBrowser.java | 106 ++ .../trinitydesktop/koala/KTextBrowserSignals.java | 29 + .../koala/org/trinitydesktop/koala/KTextEdit.java | 148 +++ .../org/trinitydesktop/koala/KTimeWidget.java | 80 ++ .../trinitydesktop/koala/KTimeWidgetSignals.java | 16 + .../org/trinitydesktop/koala/KTipDatabase.java | 74 ++ .../koala/org/trinitydesktop/koala/KTipDialog.java | 97 ++ .../koala/org/trinitydesktop/koala/KURIFilter.java | 174 +++ .../org/trinitydesktop/koala/KURIFilterData.java | 284 +++++ .../org/trinitydesktop/koala/KURIFilterPlugin.java | 74 ++ tdejava/koala/org/trinitydesktop/koala/KURL.java | 1341 ++++++++++++++++++++ .../koala/org/trinitydesktop/koala/KURLBar.java | 274 ++++ .../org/trinitydesktop/koala/KURLBarItem.java | 195 +++ .../trinitydesktop/koala/KURLBarItemDialog.java | 106 ++ .../org/trinitydesktop/koala/KURLBarListBox.java | 80 ++ .../koala/KURLBarListBoxSignals.java | 19 + .../org/trinitydesktop/koala/KURLBarSignals.java | 21 + .../org/trinitydesktop/koala/KURLComboBox.java | 220 ++++ .../trinitydesktop/koala/KURLComboBoxSignals.java | 18 + .../trinitydesktop/koala/KURLComboRequester.java | 44 + .../org/trinitydesktop/koala/KURLCompletion.java | 176 +++ .../koala/org/trinitydesktop/koala/KURLDrag.java | 135 ++ .../koala/org/trinitydesktop/koala/KURLLabel.java | 279 ++++ .../org/trinitydesktop/koala/KURLLabelSignals.java | 70 + .../trinitydesktop/koala/KURLPixmapProvider.java | 48 + .../org/trinitydesktop/koala/KURLRequester.java | 224 ++++ .../org/trinitydesktop/koala/KURLRequesterDlg.java | 98 ++ .../trinitydesktop/koala/KURLRequesterSignals.java | 45 + .../trinitydesktop/koala/KUniqueApplication.java | 346 +++++ .../org/trinitydesktop/koala/KValueSelector.java | 89 ++ .../org/trinitydesktop/koala/KWidgetAction.java | 58 + .../org/trinitydesktop/koala/KWindowInfo.java | 135 ++ .../koala/org/trinitydesktop/koala/KWizard.java | 67 + .../koala/org/trinitydesktop/koala/KWordWrap.java | 132 ++ .../org/trinitydesktop/koala/KWritePermsIcon.java | 61 + .../koala/org/trinitydesktop/koala/KXMLGUI.java | 10 + .../org/trinitydesktop/koala/KXMLGUIBuilder.java | 63 + .../koala/KXMLGUIBuilderInterface.java | 22 + .../org/trinitydesktop/koala/KXMLGUIClient.java | 290 +++++ .../koala/KXMLGUIClientInterface.java | 33 + .../org/trinitydesktop/koala/KXMLGUIFactory.java | 171 +++ .../koala/KXMLGUIFactorySignals.java | 15 + .../org/trinitydesktop/koala/KXYSelector.java | 124 ++ .../trinitydesktop/koala/KXYSelectorSignals.java | 20 + tdejava/koala/org/trinitydesktop/koala/KZip.java | 183 +++ .../org/trinitydesktop/koala/KZipFileEntry.java | 51 + .../koala/org/trinitydesktop/koala/LinkStyle.java | 26 + .../koala/org/trinitydesktop/koala/ListJob.java | 80 ++ .../org/trinitydesktop/koala/ListJobSignals.java | 27 + .../trinitydesktop/koala/LiveConnectExtension.java | 55 + .../koala/LiveConnectExtensionSignals.java | 10 + .../koala/org/trinitydesktop/koala/MainWindow.java | 177 +++ tdejava/koala/org/trinitydesktop/koala/Makefile.am | 17 + .../koala/org/trinitydesktop/koala/Marchaller.java | 143 +++ .../org/trinitydesktop/koala/MetaInfoJob.java | 61 + .../trinitydesktop/koala/MetaInfoJobSignals.java | 24 + .../org/trinitydesktop/koala/MimetypeJob.java | 51 + .../koala/org/trinitydesktop/koala/MouseEvent.java | 120 ++ .../org/trinitydesktop/koala/MultiGetJob.java | 53 + .../trinitydesktop/koala/MultiGetJobSignals.java | 31 + .../org/trinitydesktop/koala/MutationEvent.java | 88 ++ .../org/trinitydesktop/koala/NamedNodeMap.java | 152 +++ .../koala/org/trinitydesktop/koala/NetAccess.java | 359 ++++++ tdejava/koala/org/trinitydesktop/koala/Node.java | 425 +++++++ .../koala/org/trinitydesktop/koala/NodeFilter.java | 67 + .../org/trinitydesktop/koala/NodeIterator.java | 109 ++ .../koala/org/trinitydesktop/koala/Notation.java | 52 + .../koala/org/trinitydesktop/koala/Observer.java | 365 ++++++ .../org/trinitydesktop/koala/OpenURLEvent.java | 33 + tdejava/koala/org/trinitydesktop/koala/Part.java | 202 +++ .../trinitydesktop/koala/PartActivateEvent.java | 31 + .../koala/org/trinitydesktop/koala/PartBase.java | 72 ++ .../trinitydesktop/koala/PartBaseInterface.java | 10 + .../org/trinitydesktop/koala/PartManager.java | 232 ++++ .../trinitydesktop/koala/PartManagerSignals.java | 29 + .../org/trinitydesktop/koala/PartSelectEvent.java | 27 + .../org/trinitydesktop/koala/PartSignals.java | 24 + .../org/trinitydesktop/koala/PasswordDialog.java | 144 +++ tdejava/koala/org/trinitydesktop/koala/Plugin.java | 355 ++++++ .../koala/org/trinitydesktop/koala/PreviewJob.java | 80 ++ .../trinitydesktop/koala/PreviewJobSignals.java | 26 + .../koala/ProcessingInstruction.java | 59 + .../org/trinitydesktop/koala/ProgressBase.java | 206 +++ .../trinitydesktop/koala/ProgressBaseSignals.java | 15 + .../koala/org/trinitydesktop/koala/RGBColor.java | 53 + tdejava/koala/org/trinitydesktop/koala/Range.java | 248 ++++ .../org/trinitydesktop/koala/RangeException.java | 24 + .../org/trinitydesktop/koala/ReadOnlyPart.java | 106 ++ .../trinitydesktop/koala/ReadOnlyPartSignals.java | 39 + .../org/trinitydesktop/koala/ReadWritePart.java | 114 ++ .../trinitydesktop/koala/ReadWritePartSignals.java | 16 + tdejava/koala/org/trinitydesktop/koala/Rect.java | 57 + .../koala/org/trinitydesktop/koala/RenameDlg.java | 102 ++ .../koala/org/trinitydesktop/koala/Scheduler.java | 376 ++++++ .../org/trinitydesktop/koala/SchedulerSignals.java | 13 + .../org/trinitydesktop/koala/SessionData.java | 27 + .../koala/org/trinitydesktop/koala/SimpleJob.java | 146 +++ .../koala/org/trinitydesktop/koala/SkipDlg.java | 32 + .../org/trinitydesktop/koala/SkipDlgSignals.java | 10 + tdejava/koala/org/trinitydesktop/koala/Slave.java | 159 +++ .../koala/org/trinitydesktop/koala/SlaveBase.java | 610 +++++++++ .../trinitydesktop/koala/SlaveConfigSignals.java | 17 + .../org/trinitydesktop/koala/SlaveInterface.java | 34 + .../koala/SlaveInterfaceSignals.java | 29 + .../org/trinitydesktop/koala/SlaveSignals.java | 9 + .../koala/org/trinitydesktop/koala/StatJob.java | 72 ++ .../org/trinitydesktop/koala/StatJobSignals.java | 26 + .../trinitydesktop/koala/StatusBarExtension.java | 85 ++ .../trinitydesktop/koala/StatusbarProgress.java | 69 + .../trinitydesktop/koala/StoredTransferJob.java | 59 + .../koala/org/trinitydesktop/koala/StyleSheet.java | 126 ++ tdejava/koala/org/trinitydesktop/koala/TDE.java | 536 ++++++++ .../trinitydesktop/koala/TDEAboutApplication.java | 102 ++ .../trinitydesktop/koala/TDEAboutContainer.java | 78 ++ .../koala/TDEAboutContainerSignals.java | 13 + .../trinitydesktop/koala/TDEAboutContributor.java | 99 ++ .../koala/TDEAboutContributorSignals.java | 13 + .../org/trinitydesktop/koala/TDEAboutData.java | 421 ++++++ .../org/trinitydesktop/koala/TDEAboutDialog.java | 379 ++++++ .../koala/TDEAboutDialogSignals.java | 25 + .../org/trinitydesktop/koala/TDEAboutKDE.java | 62 + .../org/trinitydesktop/koala/TDEAboutPerson.java | 93 ++ .../trinitydesktop/koala/TDEAboutTranslator.java | 66 + .../org/trinitydesktop/koala/TDEAboutWidget.java | 95 ++ .../koala/TDEAboutWidgetSignals.java | 21 + .../koala/org/trinitydesktop/koala/TDEAccel.java | 299 +++++ .../org/trinitydesktop/koala/TDEAccelAction.java | 30 + .../org/trinitydesktop/koala/TDEAccelActions.java | 30 + .../trinitydesktop/koala/TDEAccelShortcutList.java | 73 ++ .../org/trinitydesktop/koala/TDEAccelSignals.java | 15 + .../koala/org/trinitydesktop/koala/TDEAction.java | 455 +++++++ .../trinitydesktop/koala/TDEActionCollection.java | 279 ++++ .../koala/TDEActionCollectionSignals.java | 48 + .../org/trinitydesktop/koala/TDEActionMenu.java | 136 ++ .../trinitydesktop/koala/TDEActionSeparator.java | 39 + .../koala/TDEActionShortcutList.java | 36 + .../org/trinitydesktop/koala/TDEActionSignals.java | 31 + .../org/trinitydesktop/koala/TDEApplication.java | 1088 ++++++++++++++++ .../koala/TDEApplicationSignals.java | 116 ++ .../org/trinitydesktop/koala/TDEBufferedIO.java | 144 +++ .../trinitydesktop/koala/TDEBufferedIOSignals.java | 45 + .../koala/org/trinitydesktop/koala/TDECModule.java | 275 ++++ .../org/trinitydesktop/koala/TDECModuleInfo.java | 231 ++++ .../org/trinitydesktop/koala/TDECModuleLoader.java | 120 ++ .../trinitydesktop/koala/TDECModuleSignals.java | 25 + .../org/trinitydesktop/koala/TDECmdLineArgs.java | 478 +++++++ .../org/trinitydesktop/koala/TDECompletion.java | 482 +++++++ .../trinitydesktop/koala/TDECompletionBase.java | 281 ++++ .../koala/TDECompletionBaseInterface.java | 25 + .../org/trinitydesktop/koala/TDECompletionBox.java | 197 +++ .../koala/TDECompletionBoxSignals.java | 27 + .../trinitydesktop/koala/TDECompletionSignals.java | 32 + .../koala/org/trinitydesktop/koala/TDEConfig.java | 232 ++++ .../org/trinitydesktop/koala/TDEConfigBackEnd.java | 120 ++ .../org/trinitydesktop/koala/TDEConfigBase.java | 936 ++++++++++++++ .../org/trinitydesktop/koala/TDEConfigGroup.java | 53 + .../trinitydesktop/koala/TDEConfigGroupSaver.java | 66 + .../trinitydesktop/koala/TDEConfigINIBackEnd.java | 117 ++ .../org/trinitydesktop/koala/TDEFontAction.java | 172 +++ .../org/trinitydesktop/koala/TDEFontChooser.java | 300 +++++ .../koala/TDEFontChooserSignals.java | 17 + .../org/trinitydesktop/koala/TDEFontCombo.java | 165 +++ .../org/trinitydesktop/koala/TDEFontDialog.java | 226 ++++ .../trinitydesktop/koala/TDEFontDialogSignals.java | 17 + .../org/trinitydesktop/koala/TDEFontRequester.java | 130 ++ .../koala/TDEFontRequesterSignals.java | 17 + .../trinitydesktop/koala/TDEFontSizeAction.java | 133 ++ .../koala/TDEFontSizeActionSignals.java | 11 + .../koala/org/trinitydesktop/koala/TDEGlobal.java | 135 ++ .../org/trinitydesktop/koala/TDEGlobalAccel.java | 210 +++ .../trinitydesktop/koala/TDEGlobalSettings.java | 481 +++++++ .../org/trinitydesktop/koala/TDEHTMLPart.java | 1004 +++++++++++++++ .../trinitydesktop/koala/TDEHTMLPartSignals.java | 61 + .../org/trinitydesktop/koala/TDEHTMLSettings.java | 173 +++ .../org/trinitydesktop/koala/TDEHTMLView.java | 139 ++ .../trinitydesktop/koala/TDEHTMLViewSignals.java | 30 + tdejava/koala/org/trinitydesktop/koala/TDEIO.java | 1179 +++++++++++++++++ .../org/trinitydesktop/koala/TDEIconButton.java | 110 ++ .../trinitydesktop/koala/TDEIconButtonSignals.java | 14 + .../org/trinitydesktop/koala/TDEIconCanvas.java | 52 + .../trinitydesktop/koala/TDEIconCanvasSignals.java | 17 + .../org/trinitydesktop/koala/TDEIconDialog.java | 159 +++ .../trinitydesktop/koala/TDEIconDialogSignals.java | 10 + .../org/trinitydesktop/koala/TDEIconEffect.java | 236 ++++ .../org/trinitydesktop/koala/TDEIconLoader.java | 348 +++++ .../org/trinitydesktop/koala/TDEIconView.java | 151 +++ .../org/trinitydesktop/koala/TDEIconViewItem.java | 96 ++ .../trinitydesktop/koala/TDEIconViewSignals.java | 63 + .../org/trinitydesktop/koala/TDEInstance.java | 121 ++ .../trinitydesktop/koala/TDEInstanceInterface.java | 15 + .../org/trinitydesktop/koala/TDEListAction.java | 198 +++ .../koala/org/trinitydesktop/koala/TDEListBox.java | 76 ++ .../trinitydesktop/koala/TDEListBoxSignals.java | 49 + .../org/trinitydesktop/koala/TDEListView.java | 778 ++++++++++++ .../org/trinitydesktop/koala/TDEListViewItem.java | 232 ++++ .../trinitydesktop/koala/TDEListViewSignals.java | 160 +++ .../koala/org/trinitydesktop/koala/TDELocale.java | 993 +++++++++++++++ .../org/trinitydesktop/koala/TDEMainWindow.java | 1082 ++++++++++++++++ .../trinitydesktop/koala/TDEPasteTextAction.java | 76 ++ .../org/trinitydesktop/koala/TDEPopupFrame.java | 98 ++ .../org/trinitydesktop/koala/TDEPopupMenu.java | 165 +++ .../trinitydesktop/koala/TDEPopupMenuSignals.java | 25 + .../org/trinitydesktop/koala/TDEPopupTitle.java | 76 ++ .../koala/org/trinitydesktop/koala/TDEProcess.java | 628 +++++++++ .../trinitydesktop/koala/TDEProcessController.java | 79 ++ .../org/trinitydesktop/koala/TDEProcessRunner.java | 23 + .../trinitydesktop/koala/TDEProcessSignals.java | 72 ++ .../org/trinitydesktop/koala/TDERadioAction.java | 193 +++ .../trinitydesktop/koala/TDERecentDocument.java | 85 ++ .../trinitydesktop/koala/TDERecentFilesAction.java | 275 ++++ .../koala/TDERecentFilesActionSignals.java | 17 + .../org/trinitydesktop/koala/TDESelectAction.java | 314 +++++ .../koala/TDESelectActionSignals.java | 25 + .../org/trinitydesktop/koala/TDESelector.java | 172 +++ .../trinitydesktop/koala/TDESelectorSignals.java | 23 + .../koala/org/trinitydesktop/koala/TDEShared.java | 48 + .../org/trinitydesktop/koala/TDESharedConfig.java | 27 + .../org/trinitydesktop/koala/TDEShortcut.java | 329 +++++ .../org/trinitydesktop/koala/TDEShortcutList.java | 164 +++ .../org/trinitydesktop/koala/TDEStandardDirs.java | 681 ++++++++++ .../org/trinitydesktop/koala/TDEStdAccel.java | 484 +++++++ .../org/trinitydesktop/koala/TDEToggleAction.java | 245 ++++ .../koala/TDEToggleActionSignals.java | 12 + .../koala/TDEToggleFullScreenAction.java | 60 + .../koala/TDEToggleToolBarAction.java | 54 + .../koala/org/trinitydesktop/koala/TDEToolBar.java | 919 ++++++++++++++ .../org/trinitydesktop/koala/TDEToolBarButton.java | 235 ++++ .../koala/TDEToolBarButtonSignals.java | 35 + .../koala/TDEToolBarPopupAction.java | 142 +++ .../trinitydesktop/koala/TDEToolBarRadioGroup.java | 64 + .../trinitydesktop/koala/TDEToolBarSeparator.java | 43 + .../trinitydesktop/koala/TDEToolBarSignals.java | 107 ++ .../koala/org/trinitydesktop/koala/TDETrader.java | 155 +++ tdejava/koala/org/trinitydesktop/koala/Text.java | 64 + .../koala/org/trinitydesktop/koala/TextEvent.java | 178 +++ .../org/trinitydesktop/koala/TransferJob.java | 117 ++ .../trinitydesktop/koala/TransferJobSignals.java | 63 + .../koala/org/trinitydesktop/koala/TreeWalker.java | 175 +++ .../koala/org/trinitydesktop/koala/UIEvent.java | 88 ++ .../koala/org/trinitydesktop/koala/URLArgs.java | 108 ++ .../koala/org/trinitydesktop/koala/WindowArgs.java | 37 + .../koala/org/trinitydesktop/koala/tdejava.java | 38 + 714 files changed, 94839 insertions(+) create mode 100644 tdejava/koala/org/Makefile.am create mode 100644 tdejava/koala/org/trinitydesktop/Makefile.am create mode 100644 tdejava/koala/org/trinitydesktop/koala/AbstractView.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Attr.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/AuthInfo.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/BrowserExtension.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/BrowserExtensionSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/BrowserHostExtension.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/BrowserInterface.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/BrowserRun.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CDATASection.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSCharsetRule.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSException.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSFontFaceRule.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSImportRule.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSMediaRule.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSPageRule.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSPrimitiveValue.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSRule.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSRuleList.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSStyleDeclaration.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSStyleRule.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSStyleSheet.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSUnknownRule.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSValue.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CSSValueList.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CharacterData.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Comment.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Connection.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CopyJob.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CopyJobSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Counter.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/CustomNodeFilter.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DCOPAnswer.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DCOPClient.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DCOPClientSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DCOPObject.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DCOPObjectInterface.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DCOPObjectProxy.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DOMException.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DOMImplementation.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DavJob.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DefaultProgress.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DeleteJob.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DeleteJobSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DockMainWindow.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Document.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DocumentFragment.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DocumentStyle.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DocumentType.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/DomShared.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Element.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Entity.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/EntityReference.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Event.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/EventException.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/EventListener.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Factory.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/FileCopyJob.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/GUIActivateEvent.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLAnchorElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLAppletElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLAreaElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLBRElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLBaseElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLBaseFontElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLBlockquoteElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLBodyElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLButtonElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLCollection.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLDListElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLDirectoryElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLDivElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLDocument.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLFieldSetElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLFontElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLFormCollection.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLFormElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLFrameElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLFrameSetElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLHRElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLHeadElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLHeadingElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLHtmlElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLIFrameElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLImageElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLInputElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLIsIndexElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLLIElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLLabelElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLLegendElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLLinkElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLMapElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLMenuElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLMetaElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLModElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLOListElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLObjectElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLOptGroupElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLOptionElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLParagraphElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLParamElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLPreElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLQuoteElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLScriptElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLSelectElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLStyleElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLTableCaptionElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLTableCellElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLTableColElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLTableElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLTableRowElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLTableSectionElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLTextAreaElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLTitleElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HTMLUListElement.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HistoryProvider.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/HistoryProviderSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Invocation.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Job.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/JobSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KActiveLabel.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KAnimWidget.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KAnimWidgetSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KAr.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KArchive.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KArchiveDirectory.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KArchiveEntry.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KArchiveFile.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KArrowButton.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KAsyncIO.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KAsyncIOSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KAudioPlayer.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KAuthIcon.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KAuthIconSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KBugReport.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KButtonBox.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCMultiDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCMultiDialogSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCPUInfo.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCalendarSystem.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCalendarSystemFactory.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCatalogue.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCharSelect.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCharSelectSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCharSelectTable.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCharSelectTableSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCharsets.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCodecs.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KColor.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KColorButton.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KColorButtonSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KColorCells.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KColorCellsSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KColorCombo.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KColorComboSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KColorDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KColorDialogSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KColorDrag.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KColorPatch.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KColorPatchSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCombiView.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KComboBox.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KComboBoxSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCommand.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCommandHistory.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCommandHistorySignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KContextMenuManager.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCursor.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KCustomMenuEditor.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDCOPActionProxy.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDCOPPropertyProxy.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDCOPServiceStarter.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDEDesktopMimeType.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDataTool.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDataToolAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDataToolActionSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDataToolInfo.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDatePicker.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDatePickerSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDateTable.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDateTableSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDateTimeWidget.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDateTimeWidgetSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDateValidator.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDateWidget.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDateWidgetSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDesktopFile.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDialogBase.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDialogBaseSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDialogQueue.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDialogSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDirLister.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDirListerSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDirNotify.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDirNotifyInterface.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDirOperator.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDirOperatorSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDirSelectDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDirSize.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDirWatch.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDirWatchSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDiskFreeSp.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDiskFreeSpSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDockArea.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDockAreaSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDockMainWindow.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDockMainWindowSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDockManager.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDockManagerSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDockTabGroup.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDockWidget.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDockWidgetAbstractHeader.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDockWidgetAbstractHeaderDrag.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDockWidgetHeader.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDockWidgetHeaderDrag.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDockWidgetSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDoubleNumInput.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDoubleNumInputSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDoubleValidator.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDualColorButton.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KDualColorButtonSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEMailSettings.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEdFind.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEdFindSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEdGotoLine.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEdReplace.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEdReplaceSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEdit.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEditListBox.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEditListBoxSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEditSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEditToolbar.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEditToolbarSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEditToolbarWidget.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEditToolbarWidgetSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEntry.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KEntryKey.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KExecMimeType.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFile.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileDetailView.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileDetailViewSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileDialogSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileFilter.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileFilterCombo.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileFilterComboSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileIconView.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileIconViewItem.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileIconViewSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileItem.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileListViewItem.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileMetaInfo.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileMetaInfoGroup.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileMetaInfoItem.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFilePlugin.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFilePreview.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFilePreviewSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileShare.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileTreeBranch.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileTreeBranchSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileTreeView.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileTreeViewItem.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileTreeViewSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileTreeViewToolTip.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileView.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileViewInterface.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileViewSignaler.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFileViewSignalerSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFilterBase.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFilterDev.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFind.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFindDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFindSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFloatValidator.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KFolderType.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KGradientSelector.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KGuiItem.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KHSSelector.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KHelpMenu.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KHelpMenuSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KHistoryCombo.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KHistoryComboSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KIDNA.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KIPC.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KImageEffect.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KImageIO.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KInputDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KIntNumInput.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KIntNumInputSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KIntSpinBox.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KIntValidator.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KJanusWidget.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KJanusWidgetSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KKey.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KKeyButton.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KKeyButtonSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KKeyChooser.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KKeyChooserSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KKeyDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KKeyNative.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KKeySequence.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KLed.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KLibFactory.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KLibFactorySignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KLibLoader.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KLineEdit.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KLineEditSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMD5.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMacroCommand.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdi.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiChildArea.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiChildAreaSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiChildFrm.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiChildFrmCaption.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiChildFrmDragBeginEvent.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiChildFrmDragEndEvent.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiChildFrmMoveEvent.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiChildFrmResizeBeginEvent.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiChildFrmResizeEndEvent.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiChildView.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiChildViewSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiMainFrm.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiMainFrmSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiTaskBar.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiTaskBarButton.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiTaskBarButtonSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiToolViewAccessor.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiViewCloseEvent.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiWin32IconButton.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMdiWin32IconButtonSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMenuBar.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMessageBox.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMimeMagic.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMimeMagicResult.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMimeSourceFactory.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMimeType.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMimeTypeResolverBase.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMimeTypeResolverHelper.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMimeTypeValidator.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMountPoint.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMultiTabBar.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMultiTabBarButton.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMultiTabBarButtonSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMultiTabBarTab.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KMultipleDrag.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KNamedCommand.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KNotifyClient.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KNumInput.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KOCRDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KOCRDialogSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KOpenWithDlg.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPalette.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPaletteTable.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPaletteTableSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPanelAppMenu.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPanelAppMenuSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPanelApplet.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPanelAppletSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPanelExtension.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPanelExtensionSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPanelMenu.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPassivePopup.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPassivePopupSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPasswordDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPasswordEdit.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPixmap.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPixmapEffect.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPixmapIO.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPixmapProvider.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPixmapSplitter.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPluginSelector.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPluginSelectorSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPreviewWidgetBase.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPrintAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPrintActionSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KProcIO.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KProcIOSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KProgress.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KProgressDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KProgressSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KProtocolInfo.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KProtocolManager.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KPushButton.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KRFCDate.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KRandomSequence.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KRegExpEditorInterface.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KReplace.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KReplaceDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KReplaceSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KRestrictedLine.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KRestrictedLineSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KRootPermsIcon.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KRootPixmap.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KRootPixmapSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KRootProp.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KRuler.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KRun.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KRunSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSMIMECrypto.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSL.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLCertBox.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLCertChain.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLCertDlg.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLCertDlgRet.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLCertificate.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLCertificateCache.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLCertificateFactory.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLCertificateHome.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLConnectionInfo.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLInfoDlg.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLKeyGen.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLPKCS12.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLPKCS7.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLPeerInfo.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLSession.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLSettings.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLSigners.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLX509Map.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSSLX509V3.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSaveFile.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KScanDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KScanDialogSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSeparator.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KService.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KServiceGroup.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KServiceOffer.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KServiceSeparator.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KServiceType.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KServiceTypeProfile.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSessionManaged.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KShell.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KShellCompletion.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KShellProcess.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KShred.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KShredSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSimpleConfig.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSimpleFileFilter.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSpell.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSpellConfig.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSpellConfigSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSpellDlg.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSpellDlgSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSpellSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSpellingHighlighter.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSqueezedTextLabel.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KStaticDeleterBase.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KStatusBar.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KStatusBarLabel.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KStatusBarLabelSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KStatusBarSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KStdAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KStdGuiItem.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KStringHandler.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KStringListValidator.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSycoca.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSycocaEntry.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSycocaSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSyntaxHighlighter.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSystemTray.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KSystemTraySignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTabBar.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTabBarSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTabCtl.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTabCtlSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTabWidget.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTabWidgetSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTar.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTempDir.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTempFile.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTextBrowser.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTextBrowserSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTextEdit.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTimeWidget.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTimeWidgetSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTipDatabase.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KTipDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURIFilter.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURIFilterData.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURIFilterPlugin.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURL.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLBar.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLBarItem.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLBarItemDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLBarListBox.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLBarListBoxSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLBarSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLComboBox.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLComboBoxSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLComboRequester.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLCompletion.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLDrag.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLLabel.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLLabelSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLPixmapProvider.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLRequester.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLRequesterDlg.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KURLRequesterSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KUniqueApplication.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KValueSelector.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KWidgetAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KWindowInfo.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KWizard.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KWordWrap.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KWritePermsIcon.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KXMLGUI.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KXMLGUIBuilder.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KXMLGUIBuilderInterface.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KXMLGUIClient.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KXMLGUIClientInterface.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KXMLGUIFactory.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KXMLGUIFactorySignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KXYSelector.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KXYSelectorSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KZip.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/KZipFileEntry.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/LinkStyle.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/ListJob.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/ListJobSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/LiveConnectExtension.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/LiveConnectExtensionSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/MainWindow.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Makefile.am create mode 100644 tdejava/koala/org/trinitydesktop/koala/Marchaller.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/MetaInfoJob.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/MetaInfoJobSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/MimetypeJob.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/MouseEvent.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/MultiGetJob.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/MultiGetJobSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/MutationEvent.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/NamedNodeMap.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/NetAccess.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Node.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/NodeFilter.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/NodeIterator.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Notation.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Observer.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/OpenURLEvent.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Part.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/PartActivateEvent.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/PartBase.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/PartBaseInterface.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/PartManager.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/PartManagerSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/PartSelectEvent.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/PartSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/PasswordDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Plugin.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/PreviewJob.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/PreviewJobSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/ProcessingInstruction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/ProgressBase.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/ProgressBaseSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/RGBColor.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Range.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/RangeException.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/ReadOnlyPart.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/ReadOnlyPartSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/ReadWritePart.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/ReadWritePartSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Rect.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/RenameDlg.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Scheduler.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/SchedulerSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/SessionData.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/SimpleJob.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/SkipDlg.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/SkipDlgSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Slave.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/SlaveBase.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/SlaveConfigSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/SlaveInterface.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/SlaveInterfaceSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/SlaveSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/StatJob.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/StatJobSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/StatusBarExtension.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/StatusbarProgress.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/StoredTransferJob.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/StyleSheet.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDE.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAboutApplication.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAboutContainer.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAboutContainerSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAboutContributor.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAboutContributorSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAboutData.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAboutDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAboutDialogSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAboutKDE.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAboutPerson.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAboutTranslator.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAboutWidget.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAboutWidgetSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAccel.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAccelAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAccelActions.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAccelShortcutList.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAccelSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEActionCollection.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEActionCollectionSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEActionMenu.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEActionSeparator.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEActionShortcutList.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEActionSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEApplication.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEApplicationSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEBufferedIO.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEBufferedIOSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDECModule.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDECModuleInfo.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDECModuleLoader.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDECModuleSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDECmdLineArgs.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDECompletion.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDECompletionBase.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDECompletionBaseInterface.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDECompletionBox.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDECompletionBoxSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDECompletionSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEConfig.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEConfigBackEnd.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEConfigBase.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEConfigGroup.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEConfigGroupSaver.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEConfigINIBackEnd.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEFontAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEFontChooser.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEFontChooserSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEFontCombo.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEFontDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEFontDialogSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEFontRequester.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEFontRequesterSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEFontSizeAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEFontSizeActionSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEGlobal.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEGlobalAccel.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEGlobalSettings.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEHTMLPart.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEHTMLPartSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEHTMLSettings.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEHTMLView.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEHTMLViewSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEIO.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEIconButton.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEIconButtonSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEIconCanvas.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEIconCanvasSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEIconDialog.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEIconDialogSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEIconEffect.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEIconLoader.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEIconView.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEIconViewItem.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEIconViewSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEInstance.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEInstanceInterface.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEListAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEListBox.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEListBoxSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEListView.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEListViewItem.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEListViewSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDELocale.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEMainWindow.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEPasteTextAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEPopupFrame.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEPopupMenu.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEPopupMenuSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEPopupTitle.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEProcess.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEProcessController.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEProcessRunner.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEProcessSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDERadioAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDERecentDocument.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDERecentFilesAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDERecentFilesActionSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDESelectAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDESelectActionSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDESelector.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDESelectorSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEShared.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDESharedConfig.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEShortcut.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEShortcutList.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEStandardDirs.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEStdAccel.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEToggleAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEToggleActionSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEToggleFullScreenAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEToggleToolBarAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEToolBar.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEToolBarButton.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEToolBarButtonSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEToolBarPopupAction.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEToolBarRadioGroup.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEToolBarSeparator.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDEToolBarSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TDETrader.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/Text.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TextEvent.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TransferJob.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TransferJobSignals.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/TreeWalker.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/UIEvent.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/URLArgs.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/WindowArgs.java create mode 100644 tdejava/koala/org/trinitydesktop/koala/tdejava.java (limited to 'tdejava/koala/org') diff --git a/tdejava/koala/org/Makefile.am b/tdejava/koala/org/Makefile.am new file mode 100644 index 00000000..0ae76aa9 --- /dev/null +++ b/tdejava/koala/org/Makefile.am @@ -0,0 +1,5 @@ +####### tdevelop will overwrite this part!!! (begin)########## + +SUBDIRS = trinitydesktop + +####### tdevelop will overwrite this part!!! (end)############ diff --git a/tdejava/koala/org/trinitydesktop/Makefile.am b/tdejava/koala/org/trinitydesktop/Makefile.am new file mode 100644 index 00000000..8b7f090f --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/Makefile.am @@ -0,0 +1,5 @@ +####### tdevelop will overwrite this part!!! (begin)########## + +SUBDIRS = koala + +####### tdevelop will overwrite this part!!! (end)############ diff --git a/tdejava/koala/org/trinitydesktop/koala/AbstractView.java b/tdejava/koala/org/trinitydesktop/koala/AbstractView.java new file mode 100644 index 00000000..5a1c35cd --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/AbstractView.java @@ -0,0 +1,53 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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/tdejava/koala/org/trinitydesktop/koala/Attr.java b/tdejava/koala/org/trinitydesktop/koala/Attr.java new file mode 100644 index 00000000..fc015c7d --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/Attr.java @@ -0,0 +1,120 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The Attr interface represents an attribute in an + Element object. Typically the allowable values for + the attribute are defined in a document type definition. + Attr objects inherit the Node + 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 Node attributes + parentNode , previousSibling , and + nextSibling have a null value for Attr + 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, Attr nodes + may not be immediate children of a DocumentFragment + . However, they can be associated with Element nodes + contained within a DocumentFragment . In short, + users and implementors of the DOM need to be aware that Attr + nodes have some things in common with other objects + inheriting the Node 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 + nodeValue attribute on the Attr + 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 Attr node provide + a representation in which entity references are not expanded. These + child nodes may be either Text or + EntityReference nodes. Because the attribute type may be + unknown, there are no tokenized attribute values. + @short The Attr interface represents an attribute in an Element 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 true ; otherwise, it is + false . 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 specified flag is + automatically flipped to true . 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 specified set to + false and the default value (if one exists). + In summary: +
  • If
  • the attribute has an assigned + value in the document then specified is + true , and the value is the assigned value. +
  • If
  • the attribute has no assigned value in the + document and has a default value in the DTD, then + specified is false , and the value is + the default value in the DTD. +
  • If
  • 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 true ; otherwise, it is false . + */ + 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 Text 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/tdejava/koala/org/trinitydesktop/koala/AuthInfo.java b/tdejava/koala/org/trinitydesktop/koala/AuthInfo.java new file mode 100644 index 00000000..fb336fab --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/AuthInfo.java @@ -0,0 +1,61 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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. + SPECIAL NOTE: 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 + + @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/tdejava/koala/org/trinitydesktop/koala/BrowserExtension.java b/tdejava/koala/org/trinitydesktop/koala/BrowserExtension.java new file mode 100644 index 00000000..d2d2ee08 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/BrowserExtension.java @@ -0,0 +1,258 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQDataStream; +import org.trinitydesktop.qt.TQPoint; +import java.util.ArrayList; +import org.trinitydesktop.qt.TQObject; + +/** + + 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 TQObject'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] + +
  • + cut : Copy selected items to clipboard and store 'not cut' in clipboard. +
  • + +
  • + copy : Copy selected items to clipboard and store 'cut' in clipboard. +
  • + +
  • + paste : Paste clipboard into view URL. +
  • + +
  • + pasteTo(KURL) : Paste clipboard into given URL. +
  • + +
  • + rename : Rename item in place. +
  • + +
  • + trash : Move selected items to trash. +
  • + +
  • + del : Delete selected items (couldn't call it delete!). +
  • + +
  • + shred : Shred selected items (secure deletion) - DEPRECATED. +
  • + +
  • + properties : Show file/document properties. +
  • + +
  • + editMimeType : show file/document's mimetype properties. +
  • + +
  • + searchProvider : Lookup selected text at default search provider +
  • + [normal actions] + +
  • + print : Print :-) +
  • + +
  • + reparseConfiguration : Re-read configuration and apply it. +
  • + +
  • + refreshMimeTypes : If the view uses mimetypes it should re-determine them. +
  • + 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] + +
  • + setSaveViewPropertiesLocally( boolean ): If true, view properties are saved into .directory + otherwise, they are saved globally. +
  • + +
  • + disableScrolling: no scrollbars + +
  • 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 TQObject { + protected BrowserExtension(Class dummy){super((Class) null);} + public native TQMetaObject 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(TQDataStream 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(TQDataStream 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: +
    +		   extension.metaObject().slotNames().contains( actionName + "()" )
    +		 
    + (note that actionName 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: +
    +		   connect( yourObject, SIGNAL("yourSignal()"),
    +		            extension, mapIterator.data() )
    +		 
    + (where "mapIterator" is your TQMap 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 obj for a child object which inherits from this + BrowserExtension class. Convenience method. + @short Queries obj for a child object which inherits from this BrowserExtension class. + */ + public static native BrowserExtension childObject(TQObject arg1); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/BrowserExtensionSignals.java b/tdejava/koala/org/trinitydesktop/koala/BrowserExtensionSignals.java new file mode 100644 index 00000000..4bcb3cee --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/BrowserExtensionSignals.java @@ -0,0 +1,215 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQDataStream; +import org.trinitydesktop.qt.TQPoint; +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 url. + To set a reload, the x and y offsets, the service type etc., fill in the + appropriate fields in the args structure. + Hosts should not connect to this signal but to openURLRequestDelayed. + @short Asks the host (browser) to open url. + */ + void openURLRequest(KURL url, URLArgs args); + /** + Asks the host (browser) to open url. + To set a reload, the x and y offsets, the service type etc., fill in the + appropriate fields in the args structure. + Hosts should not connect to this signal but to openURLRequestDelayed. + @short Asks the host (browser) to open url. + */ + 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 not 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 url. + @short Updates the URL shown in the browser's location bar to url. + */ + 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 url. + The args argument is optional additional information for the + browser, + @short Asks the hosting browser to open a new window for the given url. + @see URLArgs + */ + void createNewWindow(KURL url, URLArgs args); + /** + Asks the hosting browser to open a new window for the given url. + The args argument is optional additional information for the + browser, + @short Asks the hosting browser to open a new window for the given url. + @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 TDEIO.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 global for the files items. + @short Emit this to make the browser show a standard popup menu at the point global for the files items. + */ + void popupMenu(TQPoint global, ArrayList items); + /** + Emit this to make the browser show a standard popup menu + at the point global for the files items. + The GUI described by client is being merged with the popupmenu of the host + @short Emit this to make the browser show a standard popup menu at the point global for the files items. + */ + void popupMenu(KXMLGUIClientInterface client, TQPoint global, ArrayList items); + // void popupMenu(KXMLGUIClient* arg1,const TQPoint& 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 global for the given url. + Give as much information + about this URL as possible, like the mimeType and the file type + (mode: S_IFREG, S_IFDIR...) + @short Emit this to make the browser show a standard popup menu at the point global for the given url. + */ + void popupMenu(TQPoint global, KURL url, String mimeType, long mode); + /** + Emit this to make the browser show a standard popup menu + at the point global for the given url. + Give as much information + about this URL as possible, like the mimeType and the file type + (mode: S_IFREG, S_IFDIR...) + @short Emit this to make the browser show a standard popup menu at the point global for the given url. + */ + void popupMenu(TQPoint global, KURL url, String mimeType); + /** + Emit this to make the browser show a standard popup menu + at the point global for the given url. + Give as much information + about this URL as possible, like the mimeType and the file type + (mode: S_IFREG, S_IFDIR...) + The GUI described by client is being merged with the popupmenu of the host + @short Emit this to make the browser show a standard popup menu at the point global for the given url. + */ + void popupMenu(KXMLGUIClientInterface client, TQPoint global, KURL url, String mimeType, long mode); + /** + Emit this to make the browser show a standard popup menu + at the point global for the given url. + Give as much information + about this URL as possible, like the mimeType and the file type + (mode: S_IFREG, S_IFDIR...) + The GUI described by client is being merged with the popupmenu of the host + @short Emit this to make the browser show a standard popup menu at the point global for the given url. + */ + void popupMenu(KXMLGUIClientInterface client, TQPoint global, KURL url, String mimeType); + // void popupMenu(KXMLGUIClient* arg1,const TQPoint& arg2,const KURL& arg3,const KParts::URLArgs& arg4,KParts::BrowserExtension::PopupFlags arg5,mode_t arg6); >>>> NOT CONVERTED + // void popupMenu(KXMLGUIClient* arg1,const TQPoint& 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 part. + @short Ask the hosting application to focus part. + */ + 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/tdejava/koala/org/trinitydesktop/koala/BrowserHostExtension.java b/tdejava/koala/org/trinitydesktop/koala/BrowserHostExtension.java new file mode 100644 index 00000000..d6a9452f --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/BrowserHostExtension.java @@ -0,0 +1,63 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import java.util.ArrayList; +import org.trinitydesktop.qt.TQObject; + +/** + + An extension class for container parts, i.e. parts that contain + other parts. + For instance a TDEHTMLPart hosts one part per frame. + @short An extension class for container parts, i. + +*/ +public class BrowserHostExtension extends TQObject { + protected BrowserHostExtension(Class dummy){super((Class) null);} + public native TQMetaObject 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 TQPtrList frames(); >>>> NOT CONVERTED + /** + Returns the part that contains frame and that may be accessed + by callingPart + @short Returns the part that contains frame and that may be accessed by callingPart + */ + 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 obj for a child object which inherits from this + BrowserHostExtension class. Convenience method. + @short Queries obj for a child object which inherits from this BrowserHostExtension class. + */ + public static native BrowserHostExtension childObject(TQObject arg1); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/BrowserInterface.java b/tdejava/koala/org/trinitydesktop/koala/BrowserInterface.java new file mode 100644 index 00000000..8cf496ca --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/BrowserInterface.java @@ -0,0 +1,55 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQVariant; +import org.trinitydesktop.qt.TQObject; + +/** + + 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: + + TQ_PROPERTY( uint historyLength READ historyLength ); + + Callable methods: + + void goHistory( int ); + + @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 TQObject { + protected BrowserInterface(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + public BrowserInterface(TQObject parent, String name) { + super((Class) null); + newBrowserInterface(parent,name); + } + private native void newBrowserInterface(TQObject parent, String name); + public BrowserInterface(TQObject parent) { + super((Class) null); + newBrowserInterface(parent); + } + private native void newBrowserInterface(TQObject 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, TQVariant argument); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/BrowserRun.java b/tdejava/koala/org/trinitydesktop/koala/BrowserRun.java new file mode 100644 index 00000000..e80cf3f8 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/BrowserRun.java @@ -0,0 +1,143 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; + +/** + + This class extends KRun to provide additional functionality for browsers: +
      +
    • "save or open" dialog boxes +
    • "save" functionality +
    • support for HTTP POST (including saving the result to a temp file if + opening a separate application) +
    • warning before launching executables off the web +
    • custom error handling (i.e. treating errors as HTML pages) +
    • generation of SSL metadata depending on the previous URL shown by the part +
    + @author David Faure + + @short This class extends KRun to provide additional functionality for browsers:
    • "save or open" dialog boxes
    • "save" functionality
    • support for HTTP POST (including saving the result to a temp file if opening a separate application)
    • warning before launching executables off the web
    • custom error handling (i. + +*/ +public class BrowserRun extends KRun { + protected BrowserRun(Class dummy){super((Class) null);} + public native TQMetaObject 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 TDEIO.Job.setWindow() + @param removeReferrer if true, the "referrer" metadata from args isn't passed on + @param trustedSource if false, a warning will be shown before launching an executable + Always pass false for trustedSource, except for local directory views. + @short + */ + public BrowserRun(KURL url, URLArgs args, ReadOnlyPart part, TQWidget 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, TQWidget 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 TDEIO.Job.setWindow() + @param removeReferrer if true, the "referrer" metadata from args 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 trustedSource, except for local directory views. + @short + */ + public BrowserRun(KURL url, URLArgs args, ReadOnlyPart part, TQWidget 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, TQWidget 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 TQString& arg3,const TQString& arg4); >>>> NOT CONVERTED + // KParts::BrowserRun::AskSaveResult askSave(const KURL& arg1,KService::Ptr arg2,const TQString& 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 TQString& arg2,const TQString& arg3,int arg4); >>>> NOT CONVERTED + // KParts::BrowserRun::AskSaveResult askEmbedOrSave(const KURL& arg1,const TQString& arg2,const TQString& arg3); >>>> NOT CONVERTED + // KParts::BrowserRun::AskSaveResult askEmbedOrSave(const KURL& arg1,const TQString& arg2); >>>> NOT CONVERTED + public static native void simpleSave(KURL url, String suggestedFilename, TQWidget 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: job 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 TQString& 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/tdejava/koala/org/trinitydesktop/koala/CDATASection.java b/tdejava/koala/org/trinitydesktop/koala/CDATASection.java new file mode 100644 index 00000000..560600f8 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/CDATASection.java @@ -0,0 +1,46 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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 "]]>" + 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 DOMString attribute of the Text + 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 CDATASection interface inherits the + CharacterData interface through the Text + interface. Adjacent CDATASections 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/tdejava/koala/org/trinitydesktop/koala/CSSCharsetRule.java b/tdejava/koala/org/trinitydesktop/koala/CSSCharsetRule.java new file mode 100644 index 00000000..e1b87adc --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/CSSCharsetRule.java @@ -0,0 +1,44 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The CSSCharsetRule interface a \@charset + rule in a CSS style sheet. A \@charset rule can + be used to define the encoding of the style sheet. + @short The CSSCharsetRule interface a \@charset rule 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 \@charset + rule. + @short The encoding information used in this \@charset rule. + */ + public native String encoding(); + /** + see encoding + @short see encoding + */ + public native void setEncoding(String arg1); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/CSSException.java b/tdejava/koala/org/trinitydesktop/koala/CSSException.java new file mode 100644 index 00000000..a5b15d40 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/CSSException.java @@ -0,0 +1,27 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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/tdejava/koala/org/trinitydesktop/koala/CSSFontFaceRule.java b/tdejava/koala/org/trinitydesktop/koala/CSSFontFaceRule.java new file mode 100644 index 00000000..230390b9 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/CSSFontFaceRule.java @@ -0,0 +1,40 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The CSSFontFaceRule interface represents a + \@font-face rule in a CSS style sheet. The \@font-face + rule is used to hold a set of font descriptions. + @short The CSSFontFaceRule interface represents a + declaration-block of this rule. + @short The + \@import rule within a CSS style sheet. The \@import + rule is used to import style rules from other style sheets. + @short The CSSImportRule interface represents a (...)" 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/tdejava/koala/org/trinitydesktop/koala/CSSMediaRule.java b/tdejava/koala/org/trinitydesktop/koala/CSSMediaRule.java new file mode 100644 index 00000000..26f800bc --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/CSSMediaRule.java @@ -0,0 +1,87 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import java.util.ArrayList; +import org.trinitydesktop.qt.QtSupport; + +/** + + The CSSMediaRule interface represents a + \@media rule in a CSS style sheet. A \@media rule + can be used to delimit style rules for specific media types. + @short The CSSMediaRule interface represents a + media types for this rule. + @short A list of page rule + within a CSS style sheet. The @page rule is + used to specify the dimensions, orientation, margins, etc. of a + page box for paged media. + @short The CSSPageRule interface represents a + declaration-block of this rule. + @short The CSS + value . 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 + getPropertyCSSValue method of the + CSSStyleDeclaration interface. + @short The CSSPrimitiveValue interface represents a single statement + . This includes both rule sets + and + at-rules . 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 CSSUnknownRule + interface. + @short The CSSRule interface is the abstract base interface for any type of CSS + CSS declaration block . 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 CSSStyleDeclaration + interface. Furthermore, implementations that support a + specific level of CSS should correctly handle CSS + shorthand properties for that level. For a further discussion + of shorthand properties, see the CSS2Properties + interface. + @short The CSSStyleDeclaration interface represents a single CSS property + index . + @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 + shorthand property. Shorthand property values can only be + accessed and modified as strings, using the + getPropertyValue and setProperty + methods. + @param propertyName The name of the CSS property. See the CSS property + index . + @return Returns the value of the property if it has been + explicitly set for this declaration block. Returns the + null 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 CSS property + index . + @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 + "important" qualifier) if the property has been + explicitly set in this declaration block. + @param propertyName The name of the CSS property. See the CSS property + index . + @return A string representing the priority (e.g. + "important" ) 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 CSS property + index . + @param value The new value of the property. + @param priority The new priority of the property (e.g. + "important" ). + @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/tdejava/koala/org/trinitydesktop/koala/CSSStyleRule.java b/tdejava/koala/org/trinitydesktop/koala/CSSStyleRule.java new file mode 100644 index 00000000..9a353915 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/CSSStyleRule.java @@ -0,0 +1,52 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The CSSStyleRule interface represents a single rule set + in a CSS style sheet. + @short The CSSStyleRule interface represents a single selector + for the rule set. The implementation may have stripped out + insignificant whitespace while parsing the selector. + @short The textual representation of the + declaration-block of this rule set. + @short The CSSStyleSheet 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 \@import rule, + the ownerRule attribute will contain the + CSSImportRule . In that case, the ownerNode + attribute in the StyleSheet interface + will be null . If the style sheet comes from an + element or a processing instruction, the ownerRule + attribute will be null and the + ownerNode attribute will contain the Node . + @short If this style sheet comes from an \@import rule, the ownerRule attribute will contain the CSSImportRule . + */ + public native CSSRule ownerRule(); + /** + The list of all CSS rules contained within the style sheet. + This includes both rule sets + and + at-rules . + @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/tdejava/koala/org/trinitydesktop/koala/CSSUnknownRule.java b/tdejava/koala/org/trinitydesktop/koala/CSSUnknownRule.java new file mode 100644 index 00000000..527bd4b6 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/CSSUnknownRule.java @@ -0,0 +1,32 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The CSSUnkownRule interface represents an at-rule + not supported by this user agent. + @short The CSSUnkownRule 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/tdejava/koala/org/trinitydesktop/koala/CSSValue.java b/tdejava/koala/org/trinitydesktop/koala/CSSValue.java new file mode 100644 index 00000000..d809b050 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/CSSValue.java @@ -0,0 +1,51 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The CSSValue interface represents a simple or a + complexe value. + @short The CSSValue 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/tdejava/koala/org/trinitydesktop/koala/CSSValueList.java b/tdejava/koala/org/trinitydesktop/koala/CSSValueList.java new file mode 100644 index 00000000..8646968b --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/CSSValueList.java @@ -0,0 +1,51 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The CSSValueList interface provides the absraction + of an ordered collection of CSS values. + @short The CSSValueList 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 CSSValue s in the list. The range + of valid values indices is 0 to length-1 + inclusive. + @short The number of CSSValue 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 index position in + the CSSValueList , or null 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/tdejava/koala/org/trinitydesktop/koala/CharacterData.java b/tdejava/koala/org/trinitydesktop/koala/CharacterData.java new file mode 100644 index 00000000..712e585b --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/CharacterData.java @@ -0,0 +1,122 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The CharacterData 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 CharacterData , though Text + and others do inherit the interface from it. All + offsets in this interface start from 0. + @short The CharacterData 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 CharacterData + node. However, implementation limits may mean that the + entirety of a node's data may not fit into a single + DOMString . In such cases, the user may call + substringData 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 data + and the substringData method below. This + may have the value zero, i.e., CharacterData + nodes may be empty. + @short The number of characters that are available through data and the substringData 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 DOMString . + @return The specified substring. If the sum of offset + and count exceeds the length + , 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, data provides access to the + concatenation of data and the DOMString + specified. + @param arg The DOMString 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 DOMString 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, + data and length reflect the + change. + @param offset The offset from which to remove characters. + @param count The number of characters to delete. If the sum of + offset and count exceeds + length then all characters from offset + 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 + offset and count exceeds + length , then all characters to the end of the data are + replaced (i.e., the effect is the same as a remove + method call with the same range, followed by an + append method invocation). + @param arg The DOMString 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/tdejava/koala/org/trinitydesktop/koala/Comment.java b/tdejava/koala/org/trinitydesktop/koala/Comment.java new file mode 100644 index 00000000..4cd9941a --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/Comment.java @@ -0,0 +1,35 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + This represents the content of a comment, i.e., all the characters + between the starting ' <!-- ' and ending ' + --> '. 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/tdejava/koala/org/trinitydesktop/koala/Connection.java b/tdejava/koala/org/trinitydesktop/koala/Connection.java new file mode 100644 index 00000000..47c3ed77 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/Connection.java @@ -0,0 +1,120 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQObject; + +/** + + 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 TQObject { + protected Connection(Class dummy){super((Class) null);} + public native TQMetaObject 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(TDESocket* 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(TQObject receiver, String member); + public native void connect(TQObject 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/tdejava/koala/org/trinitydesktop/koala/CopyJob.java b/tdejava/koala/org/trinitydesktop/koala/CopyJob.java new file mode 100644 index 00000000..aa80176a --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/CopyJob.java @@ -0,0 +1,80 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.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 TDEIO.copy(), + TDEIO.move(), TDEIO.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 TQMetaObject metaObject(); + public native String className(); + /** + Do not create a CopyJob directly. Use TDEIO.copy(), + TDEIO.move(), TDEIO.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 TDEIO.copyAs(), + TDEIO.moveAs() or TDEIO.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 + */ + // TDEIO::CopyJob* CopyJob(const KURL::List& arg1,const KURL& arg2,TDEIO::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/tdejava/koala/org/trinitydesktop/koala/CopyJobSignals.java b/tdejava/koala/org/trinitydesktop/koala/CopyJobSignals.java new file mode 100644 index 00000000..d5c61cdb --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/CopyJobSignals.java @@ -0,0 +1,104 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.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(TDEIO::Job* arg1,const TQValueList& 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 dir. + @param job the job that emitted this signal + @param dir the directory that is currently being created + @short The job is creating the directory dir. + */ + void creatingDir(Job job, KURL dir); + /** + The user chose to rename from to to. + @param job the job that emitted this signal + @param from the original name + @param to the new name + @short The user chose to rename from to to. + */ + 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 to. The existing one is/was in from. + 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/tdejava/koala/org/trinitydesktop/koala/Counter.java b/tdejava/koala/org/trinitydesktop/koala/Counter.java new file mode 100644 index 00000000..94d8f173 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/Counter.java @@ -0,0 +1,52 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The Counter interface is used to represent any + counter or counters function value. This interface reflects + the values in the underlying style property. Hence, modifications + made through this interface modify the style property. + @short The Counter interface is used to represent any + See {@link DCOPClientSignals} for signals emitted by DCOPClient + @author Preston Brown , Matthias Ettrich + + @short Inter-process communication and remote procedure calls for KDE applications. + @see TDEApplication#dcopClient + +*/ +public class DCOPClient extends TQObject { + protected DCOPClient(Class dummy){super((Class) null);} + public native TQMetaObject 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 TQApplication object exists then client registers itself as + TQApplication.name() + "-" + \. + If no TQApplication 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. + appId is a unique 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 addPID 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 appId 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 appId 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 useEventLoop 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. + callBackObj and callBackSlot 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, TQObject callBackObj, String callBackSlot); + /** + Searches for an object which matches a criteria. + findObject calls remFun in the applications and objects identified + by remApp and remObj until remFun returns true. The name of + the application and object that returned true are returned in + foundApp and foundObj respectively. + If remFun is empty a default function is called in the object + which always returns true. + A findObject blocks the application until the process receives the + answer. + If useEventLoop 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 remFun + 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 signal as DCOP signal from object object with data as + arguments. + @short Emits signal as DCOP signal from object object with data 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 + sender unregisters and reregisters with DCOP. In this case the sender + must be registered when the connection is made. + If false, the connection will be reestablished when sender reregisters. + In this case the connection can be made even if sender is not registered + at that time. + +
    • + Volatile is true and sender does not exist. +
    • + +
    • + signal and slot do not have matching arguments. + +
    • @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 sender & signal are empty. In this + case all connections related to receiverObj 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 fun 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,TQCString& arg2,TQByteArray& 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 remApp is registered with the DCOP server. + @param remApp the id of the remote application + @return true if the remote application is registered, otherwise false. + + @short Checks whether remApp 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 remApp. + @param remApp he id of the application + @param ok if not null, the function sets ok 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 remApp. + */ + public native ArrayList remoteObjects(String remApp, boolean[] ok); + public native ArrayList remoteObjects(String remApp); + /** + Retrieves the list of interfaces of the remote object remObj + of application remApp. + @param remApp the id of the application + @param remObj the id of the object + @param ok if not null, the function sets ok 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 remObj of application remApp. + */ + 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 remObj + of application remApp + @param remApp the id of the application + @param remObj the id of the object + @param ok if not null, the function sets ok 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 remObj of application remApp + */ + 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 DCOPFind 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 objId as application-wide default object. + All app-wide messages that have not been processed by the dcopclient + will be send further to objId. + @param objId the id of the new default object + @short Installs object objId 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 enabled set to + true, notifications will be enabled until it was called with + enabled 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 fun. + A normalized signature doesn't contain any unnecessary whitespace + anymore. The remaining whitespace consists of single blanks only (0x20). + Example for a normalized signature: +
      +		   "someFunction(String,int)"
      +		 
      + 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 fun. + */ + 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 TDEApplication.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 TDEApplication.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/tdejava/koala/org/trinitydesktop/koala/DCOPClientSignals.java b/tdejava/koala/org/trinitydesktop/koala/DCOPClientSignals.java new file mode 100644 index 00000000..deb37bcb --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DCOPClientSignals.java @@ -0,0 +1,62 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import java.util.ArrayList; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; + +public interface DCOPClientSignals { + /** + Indicates that the application appId 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 appId has been registered with the server we are attached to. + */ + void applicationRegistered(String appId); + /** + Indicates that the formerly registered application appId 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 appId 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 TDEApplication 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/tdejava/koala/org/trinitydesktop/koala/DCOPObject.java b/tdejava/koala/org/trinitydesktop/koala/DCOPObject.java new file mode 100644 index 00000000..b2ecccfb --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DCOPObject.java @@ -0,0 +1,289 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import java.util.ArrayList; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; + +/** + + 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 , Matthias Ettrich + + @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 TQObject.name(). + @param obj the object to extract the name from + @short Creates a DCOPObject and calculates the object id using TQObject.name(). + */ + public DCOPObject(TQObject arg1) { + newDCOPObject(arg1); + } + private native void newDCOPObject(TQObject arg1); + /** + Creates a DCOPObject with object Id objId. + @param objId the object id of the DCOP object + @short Creates a DCOPObject with object Id objId. + */ + 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 fun 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 signal as DCOP signal from this object with data as + arguments + @param signal the signal to emit + @param data the data to send + @short Emit signal as DCOP signal from this object with data 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 + sender unregisters and reregisters with DCOP. In this case the sender + must be registered when the connection is made. + If false, the connection will be reestablished when sender reregisters. + In this case the connection can be made even if sender is not registered + at that time. + +
    • + Volatile is true and sender does not exist. +
    • + +
    • + signal and slot do not have matching arguments. + +
    • @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 sender & signal 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 objId 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 objId. + + @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 partialId. + + @short Tries to find an object using a partial object id. + */ + // TQPtrList match(const TQCString& arg1); >>>> NOT CONVERTED + /** + Creates an object id for the TQObject obj. This is done + using the TQObject.name() function. + @param obj the object whose name will be used + @return the created object id + + @short Creates an object id for the TQObject obj. + */ + public static native String objectName(TQObject 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/tdejava/koala/org/trinitydesktop/koala/DCOPObjectInterface.java b/tdejava/koala/org/trinitydesktop/koala/DCOPObjectInterface.java new file mode 100644 index 00000000..f2faf5c4 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DCOPObjectInterface.java @@ -0,0 +1,22 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import java.util.ArrayList; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; + +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/tdejava/koala/org/trinitydesktop/koala/DCOPObjectProxy.java b/tdejava/koala/org/trinitydesktop/koala/DCOPObjectProxy.java new file mode 100644 index 00000000..12a9c436 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DCOPObjectProxy.java @@ -0,0 +1,60 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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 + + @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 obj. If the first proxy returns + true, the DCOPClient will no longer call other proxies. + The object id obj 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/tdejava/koala/org/trinitydesktop/koala/DOMException.java b/tdejava/koala/org/trinitydesktop/koala/DOMException.java new file mode 100644 index 00000000..9fd20f6e --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DOMException.java @@ -0,0 +1,40 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + DOM operations only raise exceptions in "exceptional" + 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 ArrayList . + Implementations may raise other exceptions under other + circumstances. For example, implementations may raise an + implementation-dependent exception if a null + 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 "exceptional" 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/tdejava/koala/org/trinitydesktop/koala/DOMImplementation.java b/tdejava/koala/org/trinitydesktop/koala/DOMImplementation.java new file mode 100644 index 00000000..5f908685 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DOMImplementation.java @@ -0,0 +1,134 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The DOMImplementation 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 DOMImplementation 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 true . + @return true if the feature is implemented in + the specified version, false 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/tdejava/koala/org/trinitydesktop/koala/DavJob.java b/tdejava/koala/org/trinitydesktop/koala/DavJob.java new file mode 100644 index 00000000..13d1197c --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DavJob.java @@ -0,0 +1,44 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQDomDocument; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.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 TQMetaObject metaObject(); + public native String className(); + /** + Use TDEIO.davPropFind(), TDEIO.davPropPatch() and + TDEIO.davSearch() to create a new DavJob. + @short Use TDEIO.davPropFind(), TDEIO.davPropPatch() and TDEIO.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 TQDomDocument. + @return the response document + + @short Returns the response as a TQDomDocument. + */ + public native TQDomDocument response(); + protected native void slotFinished(); + protected native void slotData(byte[] data); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/DefaultProgress.java b/tdejava/koala/org/trinitydesktop/koala/DefaultProgress.java new file mode 100644 index 00000000..fd79a53d --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DefaultProgress.java @@ -0,0 +1,109 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; + +/** + + +*/ +public class DefaultProgress extends ProgressBase { + protected DefaultProgress(Class dummy){super((Class) null);} + public native TQMetaObject 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(TQWidget parent, String name) { + super((Class) null); + newDefaultProgress(parent,name); + } + private native void newDefaultProgress(TQWidget parent, String name); + public DefaultProgress(TQWidget parent) { + super((Class) null); + newDefaultProgress(parent); + } + private native void newDefaultProgress(TQWidget 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 TDEIO.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 TDEIO.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 TDEIO.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 TDEIO.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 TDEIO.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/tdejava/koala/org/trinitydesktop/koala/DeleteJob.java b/tdejava/koala/org/trinitydesktop/koala/DeleteJob.java new file mode 100644 index 00000000..21e962ef --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DeleteJob.java @@ -0,0 +1,52 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import java.util.ArrayList; + +/** + + A more complex Job to delete files and directories. + Don't create the job directly, but use TDEIO.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 TQMetaObject metaObject(); + public native String className(); + /** + Do not create a DeleteJob directly. Use TDEIO.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(TDEIO::Job* arg1,const TDEIO::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/tdejava/koala/org/trinitydesktop/koala/DeleteJobSignals.java b/tdejava/koala/org/trinitydesktop/koala/DeleteJobSignals.java new file mode 100644 index 00000000..51b8aac8 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DeleteJobSignals.java @@ -0,0 +1,45 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.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/tdejava/koala/org/trinitydesktop/koala/DockMainWindow.java b/tdejava/koala/org/trinitydesktop/koala/DockMainWindow.java new file mode 100644 index 00000000..55aad755 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DockMainWindow.java @@ -0,0 +1,113 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQWidget; + +/** + + 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 TQMetaObject metaObject(); + public native String className(); + /** + Constructor, same signature as KDockMainWindow. + @short Constructor, same signature as KDockMainWindow. + */ + public DockMainWindow(TQWidget parent, String name, int f) { + super((Class) null); + newDockMainWindow(parent,name,f); + } + private native void newDockMainWindow(TQWidget parent, String name, int f); + public DockMainWindow(TQWidget parent, String name) { + super((Class) null); + newDockMainWindow(parent,name); + } + private native void newDockMainWindow(TQWidget parent, String name); + public DockMainWindow(TQWidget parent) { + super((Class) null); + newDockMainWindow(parent); + } + private native void newDockMainWindow(TQWidget 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(TQObject object); + public native TQObject partObject(); + /** + Set the instance ( TDEInstance) for this part. + Call this first in the inherited class constructor, + because it loads the i18n catalogues. + @short Set the instance ( TDEInstance) for this part. + */ + protected native void setInstance(TDEInstanceInterface instance); + /** + Set the instance ( TDEInstance) for this part. + Call this first in the inherited class constructor, + because it loads the i18n catalogues. + @short Set the instance ( TDEInstance) for this part. + */ + protected native void setInstance(TDEInstanceInterface 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: +
      +		 if( factory() )
      +		 {
      +		   TQPtrList plugins = KParts.Plugin.pluginObjects( this );
      +		   TQPtrListIterator it( plugins );
      +		   KParts.Plugin  plugin;
      +		   while( ( plugin = it.current() ) != 0 )
      +		   {
      +		     ++it;
      +		     factory().addClient(  plugin );
      +		   }
      +		 }
      +		 
      + @short Load the Plugins honoring the PluginLoadingMode. + */ + protected native void loadPlugins(TQObject parent, KXMLGUIClientInterface parentGUIClient, TDEInstanceInterface 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/tdejava/koala/org/trinitydesktop/koala/Document.java b/tdejava/koala/org/trinitydesktop/koala/Document.java new file mode 100644 index 00000000..aeb06902 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/Document.java @@ -0,0 +1,559 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import java.util.ArrayList; + +/** + + The Document 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 Document + , the Document interface also contains the factory + methods needed to create these objects. The Node + objects created have a ownerDocument attribute which + associates them with the Document within whose + context they were created. + @short The Document 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 DocumentType + ) associated with this document. For HTML documents as well as + XML documents without a document type declaration this returns + null . The DOM Level 1 does not support editing + the Document Type Declaration, therefore docType + cannot be altered in any way. + @short The Document Type Declaration (see DocumentType ) associated with this document. + */ + public native DocumentType doctype(); + /** + The DOMImplementation object that handles this + document. A DOM application may use objects from multiple + implementations. + @short The DOMImplementation 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 tagName + parameter may be provided in any case, but it must be + mapped to the canonical uppercase form by the DOM + implementation. + @return A new Element 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 DocumentFragment object. + @return A new DocumentFragment . + + @short Creates an empty DocumentFragment object. + */ + public native DocumentFragment createDocumentFragment(); + /** + Creates a Text node given the specified string. + @param data The data for the node. + @return The new Text object. + + @short Creates a Text node given the specified string. + */ + public native Text createTextNode(String data); + /** + Creates a Comment node given the specified + string. + @param data The data for the node. + @return The new Comment object. + + @short Creates a Comment node given the specified string. + */ + public native Comment createComment(String data); + /** + Creates a CDATASection node whose value is the + specified string. + @param data The data for the CDATASection + contents. + @return The new CDATASection object. + + @short Creates a CDATASection node whose value is the specified string. + */ + public native CDATASection createCDATASection(String data); + /** + Creates a ProcessingInstruction 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 ProcessingInstruction object. + + @short Creates a ProcessingInstruction node given the specified name and data strings. + */ + public native ProcessingInstruction createProcessingInstruction(String target, String data); + /** + Creates an Attr of the given name. Note that the + Attr instance can then be set on an Element + using the setAttribute method. + @param name The name of the attribute. + @return A new Attr object. + + @short Creates an Attr 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 EntityReference object. + + @short Creates an EntityReference object. + */ + public native EntityReference createEntityReference(String name); + /** + Moved from HTMLDocument in DOM Level 2 + Returns the Element whose id is given by + elementId. If no such element exists, returns null + . Behavior is not defined if more than one element has + this id . + @param elementId The unique id value for an + element. + @return The matching element. + + @short Moved from HTMLDocument in DOM Level 2 Returns the Element whose id is given by elementId. + */ + public native Element getElementById(String elementId); + /** + No Exceptions. + Returns a ArrayList of all the Element 's + with a given tag name in the order in which they + would be encountered in a preorder traversal of the + Document tree. + @param tagname The name of the tag to match on. The special + value "*" matches all tags. + @return A new NodeList object containing all the + matched Element 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. + DOMImplementation.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 addStyleSheet 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 TDEHTML view widget of this document. + + @short + */ + public native TDEHTMLView 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 true to enable design mode, false 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/tdejava/koala/org/trinitydesktop/koala/DocumentFragment.java b/tdejava/koala/org/trinitydesktop/koala/DocumentFragment.java new file mode 100644 index 00000000..6747b320 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DocumentFragment.java @@ -0,0 +1,66 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + DocumentFragment is a "lightweight" or "minimal" + Document 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 Document object could fulfil this role, a + Document object can potentially be a heavyweight object, + depending on the underlying implementation. What is really needed + for this is a very lightweight object. DocumentFragment + is such an object. + Furthermore, various operations -- such as inserting nodes as + children of another Node -- may take + DocumentFragment objects as arguments; this results in all + the child nodes of the DocumentFragment being moved + to the child list of this node. + The children of a DocumentFragment node are zero or + more nodes representing the tops of any sub-trees defining the + structure of the document. DocumentFragment 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 + DocumentFragment might have only one child and that child + node could be a Text node. Such a structure model + represents neither an HTML document nor a well-formed XML document. + When a DocumentFragment is inserted into a + Document (or indeed any other Node that may + take children) the children of the DocumentFragment + and not the DocumentFragment itself are inserted + into the Node . This makes the + DocumentFragment very useful when the user wishes to create + nodes that are siblings; the DocumentFragment acts + as the parent of these nodes so that the user can use the standard + methods from the Node interface, such as + insertBefore() and appendChild() . + @short DocumentFragment is a "lightweight" or "minimal" Document 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/tdejava/koala/org/trinitydesktop/koala/DocumentStyle.java b/tdejava/koala/org/trinitydesktop/koala/DocumentStyle.java new file mode 100644 index 00000000..f29e493e --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DocumentStyle.java @@ -0,0 +1,30 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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/tdejava/koala/org/trinitydesktop/koala/DocumentType.java b/tdejava/koala/org/trinitydesktop/koala/DocumentType.java new file mode 100644 index 00000000..b8690a28 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DocumentType.java @@ -0,0 +1,89 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Each Document has a doctype attribute + whose value is either null or a DocumentType + object. The DocumentType 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 DocumentType + nodes. + @short Each Document has a doctype attribute whose value is either null or a DocumentType 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 + DOCTYPE keyword. + @short The name of DTD; i. + */ + public native String name(); + /** + A NamedNodeMap containing the general entities, + both external and internal, declared in the DTD. Duplicates are + discarded. For example in: <!DOCTYPE ex SYSTEM "ex.dtd" [ + <!ENTITY foo "foo"> <!ENTITY bar "bar"> <!ENTITY % baz + "baz"> ]> <ex/> the interface provides access to foo + and bar but not baz . + Every node in this map also implements the Entity + interface. + The DOM Level 1 does not support editing entities, therefore + entities cannot be altered in any way. + @short A NamedNodeMap containing the general entities, both external and internal, declared in the DTD. + */ + public native NamedNodeMap entities(); + /** + A NamedNodeMap containing the notations declared + in the DTD. Duplicates are discarded. Every node in this map + also implements the Notation interface. + The DOM Level 1 does not support editing notations, therefore + notations cannot be altered in any way. + @short A NamedNodeMap 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/tdejava/koala/org/trinitydesktop/koala/DomShared.java b/tdejava/koala/org/trinitydesktop/koala/DomShared.java new file mode 100644 index 00000000..8047d879 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/DomShared.java @@ -0,0 +1,25 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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/tdejava/koala/org/trinitydesktop/koala/Element.java b/tdejava/koala/org/trinitydesktop/koala/Element.java new file mode 100644 index 00000000..48ac290d --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/Element.java @@ -0,0 +1,326 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import java.util.ArrayList; + +/** + + By far the vast majority of objects (apart from text) that authors + encounter when traversing a document are Element + nodes. Assume the following XML document: <elementExample + id="demo"> <subelement1/> + <subelement2><subsubelement/></subelement2> + </elementExample> + When represented using DOM, the top node is an Element + node for "elementExample", which contains two + child Element nodes, one for "subelement1" + and one for "subelement2". "subelement1" + contains no child nodes. + Elements may have attributes associated with them; since the + Element interface inherits from Node + , the generic Node interface method + getAttributes may be used to retrieve the set of all + attributes for an element. There are methods on the Element + interface to retrieve either an Attr object + by name or an attribute value by name. In XML, where an attribute + value may contain entity references, an Attr 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 Element 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: <elementExample + id="demo"> ... </elementExample> , + tagName has the value "elementExample" + . Note that this is case-preserving in XML, as are all + of the operations of the DOM. The HTML DOM returns the + tagName 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 Attr 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 + Attr node plus any Text and + EntityReference nodes, build the appropriate subtree, + and use setAttributeNode 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 Attr node by name. + @param name The name of the attribute to retrieve. + @return The Attr node with the specified + attribute name or null if there is no such + attribute. + + @short Retrieves an Attr 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 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 name, the previously existing + Attr node is returned, otherwise null + is returned. + + @short Adds a new attribute. + */ + public native Attr setAttributeNode(Attr newAttr); + /** + Removes the specified attribute. + @param oldAttr The Attr node to remove from the + attribute list. If the removed Attr has a + default value it is immediately replaced. + NOT_FOUND_ERR: Raised if oldAttr is not an + attribute of the element. + @return The Attr node that was removed. + + @short Removes the specified attribute. + */ + public native Attr removeAttributeNode(Attr oldAttr); + /** + Returns a ArrayList of all descendant elements + with a given tag name, in the order in which they would be + encountered in a preorder traversal of the Element + tree. + @param name The name of the tag to match on. The special value + "*" matches all tags. + @return A list of matching Element nodes. + + @short Returns a NodeList of all descendant elements with a given tag name, in the order in which they would be encountered in a preorder traversal of the Element 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 true. 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 true to make this element editable, false + 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(); + /** + TDEHTML 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 TDEHTML extension to DOM This method returns the associated form element. + */ + public native Element form(); + public static native boolean tdehtmlValidAttrName(String name); + public static native boolean tdehtmlValidPrefix(String name); + public static native boolean tdehtmlValidQualifiedName(String name); + public static native boolean tdehtmlMalformedQualifiedName(String name); + public static native boolean tdehtmlMalformedPrefix(String name); + // DOM::Element* Element(DOM::ElementImpl* arg1); >>>> NOT CONVERTED +} diff --git a/tdejava/koala/org/trinitydesktop/koala/Entity.java b/tdejava/koala/org/trinitydesktop/koala/Entity.java new file mode 100644 index 00000000..8d17eb06 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/Entity.java @@ -0,0 +1,78 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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. Entity declaration modeling has + been left for a later Level of the DOM specification. + The nodeName attribute that is inherited from + Node 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 EntityReference 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 Entity node's child + list represents the structure of that replacement text. Otherwise, + the child list is empty. + The resolution of the children of the Entity (the + replacement value) may be lazily evaluated; actions by the user + (such as calling the childNodes method on the + Entity Node) are assumed to trigger the evaluation. + The DOM Level 1 does not support editing Entity + nodes; if a user wants to make changes to the contents of an + Entity , every related EntityReference node + has to be replaced in the structure model by a clone of the + Entity 's contents, and then the desired changes must be + made to each of those clones instead. All the descendants of an + Entity node are readonly. + An Entity 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 null . + @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 null . + @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 null . + @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/tdejava/koala/org/trinitydesktop/koala/EntityReference.java b/tdejava/koala/org/trinitydesktop/koala/EntityReference.java new file mode 100644 index 00000000..554ad015 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/EntityReference.java @@ -0,0 +1,52 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + EntityReference 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 EntityReference objects. If it + does provide such objects, then for a given EntityReference + node, it may be that there is no Entity node + representing the referenced entity; but if such an Entity + exists, then the child list of the EntityReference + node is the same as that of the Entity node. + As with the Entity node, all descendants of the + EntityReference are readonly. + The resolution of the children of the EntityReference + (the replacement value of the referenced Entity + ) may be lazily evaluated; actions by the user (such as + calling the childNodes method on the + EntityReference node) are assumed to trigger the + evaluation. + @short EntityReference 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/tdejava/koala/org/trinitydesktop/koala/Event.java b/tdejava/koala/org/trinitydesktop/koala/Event.java new file mode 100644 index 00000000..3628d809 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/Event.java @@ -0,0 +1,25 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQCustomEvent; + +/** + + Base class for all KParts events. + @short Base class for all KParts events. + +*/ +public class Event extends TQCustomEvent { + 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(TQEvent event); + public static native boolean test(TQEvent event, String name); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/EventException.java b/tdejava/koala/org/trinitydesktop/koala/EventException.java new file mode 100644 index 00000000..0a7dbdf0 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/EventException.java @@ -0,0 +1,28 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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/tdejava/koala/org/trinitydesktop/koala/EventListener.java b/tdejava/koala/org/trinitydesktop/koala/EventListener.java new file mode 100644 index 00000000..2179c9a0 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/EventListener.java @@ -0,0 +1,45 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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/tdejava/koala/org/trinitydesktop/koala/Factory.java b/tdejava/koala/org/trinitydesktop/koala/Factory.java new file mode 100644 index 00000000..3550c636 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/Factory.java @@ -0,0 +1,72 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQWidget; + +/** + + 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 TQMetaObject 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. tdehtml. You can for example embed the part into HTML + by using the following code: +
      +		    
      +		        
      +		        
      +		    
      +		 
      + This could result in a call to +
      +		     createPart( parentWidget, name, parentObject, parentName, "KParts.Part",
      +		                 ArrayList("name1="value1"", "name2="value2") );
      +		 
      + 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(TQWidget parentWidget, String widgetName, TQObject parent, String name, String classname, String[] args); + public native Part createPart(TQWidget parentWidget, String widgetName, TQObject parent, String name, String classname); + public native Part createPart(TQWidget parentWidget, String widgetName, TQObject parent, String name); + public native Part createPart(TQWidget parentWidget, String widgetName, TQObject parent); + public native Part createPart(TQWidget parentWidget, String widgetName); + public native Part createPart(TQWidget 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 TDEInstance 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 TDEInstance in general. + */ + public native TDEInstanceInterface 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 TDEInstanceInterface partInstanceFromLibrary(String libraryName); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/FileCopyJob.java b/tdejava/koala/org/trinitydesktop/koala/FileCopyJob.java new file mode 100644 index 00000000..9aa0e180 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/FileCopyJob.java @@ -0,0 +1,56 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.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 TQMetaObject metaObject(); + public native String className(); + /** + Do not create a FileCopyJob directly. Use TDEIO.file_move() + or TDEIO.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/tdejava/koala/org/trinitydesktop/koala/GUIActivateEvent.java b/tdejava/koala/org/trinitydesktop/koala/GUIActivateEvent.java new file mode 100644 index 00000000..361d7b21 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/GUIActivateEvent.java @@ -0,0 +1,27 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQEvent; + +/** + + 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(TQEvent event); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/HTMLAnchorElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLAnchorElement.java new file mode 100644 index 00000000..eee4a11c --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLAnchorElement.java @@ -0,0 +1,192 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The anchor element. See the
      A + element definition 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 + accesskey attribute definition 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 + charset attribute definition 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 shape for the shape of the + region. See the + coords attribute definition 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 + href attribute definition 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 + hreflang attribute definition 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 + name attribute definition 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 + rel attribute definition 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 + rev attribute definition 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 + coords . See the + shape attribute definition 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 + tabindex attribute definition 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 + target attribute definition 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 + type attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLAppletElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLAppletElement.java new file mode 100644 index 00000000..d86d4cf7 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLAppletElement.java @@ -0,0 +1,181 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + An embedded Java applet. See the + APPLET element definition 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 + align attribute definition 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 + alt attribute definition 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 + archive attribute definition 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 + code attribute definition 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 + codebase attribute definition 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 + height attribute definition 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 + hspace attribute definition 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 + name attribute definition 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 + object attribute definition 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 + vspace attribute definition 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 + width attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLAreaElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLAreaElement.java new file mode 100644 index 00000000..a508e5aa --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLAreaElement.java @@ -0,0 +1,136 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Client-side image map area definition. See the + AREA element definition 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 + accesskey attribute definition 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 + alt attribute definition 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 shape for the shape of the + region. See the + coords attribute definition 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 + href attribute definition 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 + nohref attribute definition 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 + coords . See the + shape attribute definition 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 + tabindex attribute definition 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 + target attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLBRElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLBRElement.java new file mode 100644 index 00000000..5d42fc2d --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLBRElement.java @@ -0,0 +1,46 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Force a line break. See the BR + element definition 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 + clear attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLBaseElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLBaseElement.java new file mode 100644 index 00000000..0538eca0 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLBaseElement.java @@ -0,0 +1,57 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Document base URI. See the + BASE element definition 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 + href attribute definition in HTML 4.0. + @short The base URI See the + target attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLBaseFontElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLBaseFontElement.java new file mode 100644 index 00000000..f6f92295 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLBaseFontElement.java @@ -0,0 +1,72 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Base font. See the + BASEFONT element definition 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 + color attribute definition 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 face attribute + definition 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 + size attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLBlockquoteElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLBlockquoteElement.java new file mode 100644 index 00000000..db3f1901 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLBlockquoteElement.java @@ -0,0 +1,45 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + ??? See the + BLOCKTQUOTE element definition in HTML 4.0. + @short ??? See the + cite attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLBodyElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLBodyElement.java new file mode 100644 index 00000000..e558833f --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLBodyElement.java @@ -0,0 +1,114 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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 + BODY element definition 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 + alink attribute definition 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 + background attribute definition 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 + bgcolor attribute definition 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 + link attribute definition 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 + text attribute definition 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 + vlink attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLButtonElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLButtonElement.java new file mode 100644 index 00000000..8548cced --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLButtonElement.java @@ -0,0 +1,120 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Push button. See the + BUTTON element definition 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 FORM element containing this + control. Returns null if this control is not within the context + of a form. + @short Returns the FORM element containing this control. + */ + public native HTMLFormElement formElement(); + /** + A single character access key to give access to the form + control. See the + accesskey attribute definition 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 + disabled attribute definition 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 + + name attribute definition 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 + tabindex attribute definition 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 + type attribute definition in HTML 4.0. + @short The type of button. + */ + public native String type(); + /** + The current form control value. See the + value attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLCollection.java b/tdejava/koala/org/trinitydesktop/koala/HTMLCollection.java new file mode 100644 index 00000000..5b5f0793 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLCollection.java @@ -0,0 +1,74 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + An HTMLCollection is a list of nodes. An individual + node may be accessed by either ordinal index or the node's + name or id 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 HTMLCollection 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 Node at the corresponding position + upon success. A value of null 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 Node using a name. It + first searches for a Node with a matching + id attribute. If it doesn't find one, it then searches + for a Node with a matching name + attribute, but only on those elements that are allowed a name + attribute. + @param name The name of the Node to be fetched. + @return The Node with a name or + id attribute whose value corresponds to the + specified string. Upon failure (e.g., no node with this name + exists), returns null . + + @short This method retrieves a Node 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/tdejava/koala/org/trinitydesktop/koala/HTMLDListElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLDListElement.java new file mode 100644 index 00000000..62760f6a --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLDListElement.java @@ -0,0 +1,46 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Definition list. See the + DL element definition 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 + compact attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLDirectoryElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLDirectoryElement.java new file mode 100644 index 00000000..f98824bd --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLDirectoryElement.java @@ -0,0 +1,47 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Directory list. See the + DIR element definition 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 + compact attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLDivElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLDivElement.java new file mode 100644 index 00000000..316f6731 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLDivElement.java @@ -0,0 +1,46 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Generic block container. See the + DIV element definition 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 + align attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLDocument.java b/tdejava/koala/org/trinitydesktop/koala/HTMLDocument.java new file mode 100644 index 00000000..fed06e76 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLDocument.java @@ -0,0 +1,221 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import java.util.ArrayList; + +/** + + An HTMLDocument 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 alinkColor + \li background + \li bgColor + \li fgColor + \li linkColor + \li vlinkColor + @short An HTMLDocument 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(TDEHTMLView parent) { + super((Class) null); + newHTMLDocument(parent); + } + private native void newHTMLDocument(TDEHTMLView 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 TITLE + element in the head of the document. + @short The title of a document as specified by the TITLE 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 BODY contents, returns the + BODY element, and in frameset documents, this returns + the outermost FRAMESET 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 IMG elements in a + document. The behavior is limited to IMG + elements for backwards compatibility. + @short A collection of all the IMG elements in a document. + */ + public native HTMLCollection images(); + /** + A collection of all the OBJECT elements that + include applets and APPLET ( deprecated ) + elements in a document. + @short A collection of all the OBJECT elements that include applets and APPLET ( deprecated ) elements in a document. + */ + public native HTMLCollection applets(); + /** + A collection of all AREA elements and anchor ( + A ) elements in a document with a value for the + href attribute. + @short A collection of all AREA elements and anchor ( A ) elements in a document with a value for the href 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 ( A ) elements in + a document with a value for the name attribute. + Note. For reasons of backwards compatibility, the returned set + of anchors only contains those anchors created with the + name attribute, not those created with the id + attribute. + @short A collection of all the anchor ( A ) elements in a document with a value for the name 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, + name=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 open() and + forces rendering. + @short Closes a document stream opened by open() and forces rendering. + */ + public native void close(); + /** + Write a string of text to a document stream opened by + open() . 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 open() . + */ + public native void write(String text); + /** + Write a string of text followed by a newline character to a + document stream opened by open() . 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 open() . + */ + public native void writeln(String text); + /** + Returns the (possibly empty) collection of elements whose + name value is given by elementName . + @param elementName The name attribute value for + an element. + @return The matching elements. + + @short Returns the (possibly empty) collection of elements whose name value is given by elementName . + */ + 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 IMG, OBJECT, + AREA, A, 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/tdejava/koala/org/trinitydesktop/koala/HTMLElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLElement.java new file mode 100644 index 00000000..d62c89e5 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLElement.java @@ -0,0 +1,144 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + All HTML element interfaces derive from this class. Elements that + only expose the HTML core attributes are represented by the base + HTMLElement interface. These elements are as + follows: + \li HEAD +
    • special
    • : SUB, SUP, SPAN, BDO +
    • font
    • : TT, I, B, U, S, STRIKE, BIG, SMALL +
    • phrase
    • : EM, STRONG, DFN, CODE, SAMP, KBD, VAR, + CITE, ACRONYM, ABBR +
    • list
    • : DD, DT + \li NOFRAMES, NOSCRIPT + \li ADDRESS, CENTER + Note: The style 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 + id attribute definition 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 + title attribute definition 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 + lang attribute definition 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 + dir attribute definition 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 + class attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLFieldSetElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLFieldSetElement.java new file mode 100644 index 00000000..7765e625 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLFieldSetElement.java @@ -0,0 +1,38 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Organizes form controls into logical groups. See the + FIELDSET element definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLFontElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLFontElement.java new file mode 100644 index 00000000..83e9f180 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLFontElement.java @@ -0,0 +1,73 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Local change to font. See the + FONT element definition 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 + color attribute definition 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 + face attribute definition 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 + size attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLFormCollection.java b/tdejava/koala/org/trinitydesktop/koala/HTMLFormCollection.java new file mode 100644 index 00000000..49d08dcf --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLFormCollection.java @@ -0,0 +1,14 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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/tdejava/koala/org/trinitydesktop/koala/HTMLFormElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLFormElement.java new file mode 100644 index 00000000..124b1d32 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLFormElement.java @@ -0,0 +1,129 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The FORM 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 + FORM element definition in HTML 4.0. + @short The FORM 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 + accept-charset attribute definition 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 + action attribute definition 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 + enctype attribute definition 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 + method attribute definition 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 + target attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLFrameElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLFrameElement.java new file mode 100644 index 00000000..ddd910e9 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLFrameElement.java @@ -0,0 +1,142 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Create a frame. See the + FRAME element definition 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 + frameborder attribute definition 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 + longdesc attribute definition 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 + marginheight attribute definition 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 + marginwidth attribute definition 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 target attribute). + See the + name attribute definition in HTML 4.0. + @short The frame name (object of the target 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 + noresize attribute definition 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 + scrolling attribute definition 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 + src attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLFrameSetElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLFrameSetElement.java new file mode 100644 index 00000000..d0723ef9 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLFrameSetElement.java @@ -0,0 +1,57 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Create a grid of frames. See the + FRAMESET element definition 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 + cols attribute definition 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 + rows attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLHRElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLHRElement.java new file mode 100644 index 00000000..0665bb07 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLHRElement.java @@ -0,0 +1,86 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Create a horizontal rule. See the + HR element definition 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 + align attribute definition 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 + noshade attribute definition 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 + size attribute definition 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 + width attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLHeadElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLHeadElement.java new file mode 100644 index 00000000..c5bcb9a2 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLHeadElement.java @@ -0,0 +1,45 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Document head information. See the + HEAD element definition 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 + profile attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLHeadingElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLHeadingElement.java new file mode 100644 index 00000000..998cb850 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLHeadingElement.java @@ -0,0 +1,46 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + For the H1 to H6 elements. See the + H1 element definition in HTML 4.0. + @short For the H1 to H6 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 + align attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLHtmlElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLHtmlElement.java new file mode 100644 index 00000000..31b20942 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLHtmlElement.java @@ -0,0 +1,46 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Root of an HTML document. See the + HTML element definition 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 + version attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLIFrameElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLIFrameElement.java new file mode 100644 index 00000000..e7d2d119 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLIFrameElement.java @@ -0,0 +1,168 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Inline subwindows. See the + IFRAME element definition 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 + align attribute definition 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 + frameborder attribute definition 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 + height attribute definition 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 + longdesc attribute definition 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 + marginheight attribute definition 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 + marginwidth attribute definition 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 target attribute). + See the + name attribute definition in HTML 4.0. + @short The frame name (object of the target 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 + scrolling attribute definition 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 + src attribute definition 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 + width attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLImageElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLImageElement.java new file mode 100644 index 00000000..5b2d5e62 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLImageElement.java @@ -0,0 +1,189 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Embedded image. See the + IMG element definition 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 + align attribute definition 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 + alt attribute definition 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 + border attribute definition 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 + height attribute definition 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 + + hspace attribute definition 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 + ismap attribute definition 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 + longdesc attribute definition 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 + src attribute definition 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 + usemap attribute definition 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 + vspace attribute definition 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 + width attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLInputElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLInputElement.java new file mode 100644 index 00000000..fc1fa1bf --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLInputElement.java @@ -0,0 +1,284 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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 + INPUT element definition 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 + value ). + @short Stores the initial control value (i. + */ + public native String defaultValue(); + /** + see defaultValue + @short see defaultValue + */ + public native void setDefaultValue(String arg1); + /** + When type has the value "Radio" or "Checkbox", + stores the initial value of the checked + attribute. + @short When type has the value "Radio" or "Checkbox", stores the initial value of the checked 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 + accept attribute definition 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 + accesskey attribute definition 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 + align attribute definition 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 + alt attribute definition 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 + type 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 + checked attribute definition in HTML 4.0. + @short Describes whether a radio or check box is checked, when type 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 + disabled attribute definition 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 type + has the value "Text" or "Password". See the + maxlength attribute definition in HTML 4.0. + @short Maximum number of characters for text fields, when type 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 + + name attribute definition 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 type has the + value "text" or "password" only. See the + readonly attribute definition 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 + size attribute definition in HTML 4.0. + @short Size information. + */ + public native long getSize(); + /** + see getSize + @short see getSize + */ + public native void setSize(long arg1); + /** + When the type attribute has the value "Image", + this attribute specifies the location of the image to be used + to decorate the graphical submit button. See the + src attribute definition in HTML 4.0. + @short When the type 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 + tabindex attribute definition 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 + type attribute definition 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 + usemap attribute definition 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 + value attribute definition 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 INPUT + elements whose type 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 INPUT elements whose + type 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/tdejava/koala/org/trinitydesktop/koala/HTMLIsIndexElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLIsIndexElement.java new file mode 100644 index 00000000..1c11e1f5 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLIsIndexElement.java @@ -0,0 +1,52 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + This element is used for single-line text input. See the + ISINDEX element definition 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 + prompt attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLLIElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLLIElement.java new file mode 100644 index 00000000..789779a6 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLLIElement.java @@ -0,0 +1,59 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + List item. See the + LI element definition 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 + type attribute definition 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 OL See the + value attribute definition in HTML 4.0. This attribute is + deprecated in HTML 4.0. + @short Reset sequence number when used in OL See the + LABEL element definition 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 + accesskey attribute definition 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 + id attribute. See the + for attribute definition in HTML 4.0. + @short This attribute links this label with another form control by id 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/tdejava/koala/org/trinitydesktop/koala/HTMLLegendElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLLegendElement.java new file mode 100644 index 00000000..646f7ce7 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLLegendElement.java @@ -0,0 +1,65 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Provides a caption for a FIELDSET grouping. See the + + LEGEND element definition in HTML 4.0. + @short Provides a caption for a FIELDSET 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 + accesskey attribute definition 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 FIELDSET . See the + align attribute definition in HTML 4.0. This attribute is + deprecated in HTML 4.0. + @short Text alignment relative to FIELDSET . + */ + 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/tdejava/koala/org/trinitydesktop/koala/HTMLLinkElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLLinkElement.java new file mode 100644 index 00000000..7c8349a4 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLLinkElement.java @@ -0,0 +1,151 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The LINK element specifies a link to an external + resource, and defines this document's relationship to that resource + (or vice versa). See the + LINK element definition in HTML 4.0. + @short The LINK 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 + + charset attribute definition 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 + href attribute definition 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 + hreflang attribute definition 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 + media attribute definition 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 + rel attribute definition 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 + rev attribute definition 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 + target attribute definition 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 + type attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLMapElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLMapElement.java new file mode 100644 index 00000000..983fefe3 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLMapElement.java @@ -0,0 +1,50 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Client-side image map. See the + MAP element definition 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 usemap ). See the + name attribute definition in HTML 4.0. + @short Names the map (for use with usemap ). + */ + 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/tdejava/koala/org/trinitydesktop/koala/HTMLMenuElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLMenuElement.java new file mode 100644 index 00000000..6dcb5e1c --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLMenuElement.java @@ -0,0 +1,47 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Menu list. See the + MENU element definition 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 + compact attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLMetaElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLMetaElement.java new file mode 100644 index 00000000..e2549866 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLMetaElement.java @@ -0,0 +1,82 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + This contains generic meta-information about the document. See the + + META element definition 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 + content attribute definition 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 + http-equiv attribute definition 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 + name attribute definition 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 + scheme attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLModElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLModElement.java new file mode 100644 index 00000000..56a1381b --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLModElement.java @@ -0,0 +1,59 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Notice of modification to part of a document. See the + INS and + DEL 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 + cite attribute definition 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 + datetime attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLOListElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLOListElement.java new file mode 100644 index 00000000..e86dca39 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLOListElement.java @@ -0,0 +1,72 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Ordered list. See the + OL element definition 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 + compact attribute definition 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 + start attribute definition 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 + type attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLObjectElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLObjectElement.java new file mode 100644 index 00000000..f09f6cad --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLObjectElement.java @@ -0,0 +1,269 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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 + OBJECT element definition 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 FORM element containing this + control. Returns null if this control is not within the context + of a form. + @short Returns the FORM element containing this control. + */ + public native HTMLFormElement formElement(); + /** + Applet class file. See the 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 + align attribute definition 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 + archive attribute definition 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 + border attribute definition 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 classid , data , and + archive attributes. See the + codebase attribute definition in HTML 4.0. + @short Base URI for classid , data , and archive attributes. + */ + public native String codeBase(); + /** + see codeBase + @short see codeBase + */ + public native void setCodeBase(String arg1); + /** + Content type for data downloaded via classid + attribute. See the + codetype attribute definition in HTML 4.0. + @short Content type for data downloaded via classid 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 + data attribute definition 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 + declare attribute definition 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 + height attribute definition 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 + hspace attribute definition 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 + + name attribute definition 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 + standby attribute definition 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 + tabindex attribute definition 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 data + attribute. See the + type attribute definition in HTML 4.0. + @short Content type for data downloaded via data attribute. + */ + public native String type(); + /** + see type + @short see type + */ + public native void setType(String arg1); + /** + Use client-side image map. See the + usemap attribute definition 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 + vspace attribute definition 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 + width attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLOptGroupElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLOptGroupElement.java new file mode 100644 index 00000000..b16bd60d --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLOptGroupElement.java @@ -0,0 +1,57 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Group options together in logical subdivisions. See the + OPTGROUP element definition 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 + disabled attribute definition 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 + label attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLOptionElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLOptionElement.java new file mode 100644 index 00000000..be685306 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLOptionElement.java @@ -0,0 +1,115 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + A selectable choice. See the + OPTION element definition 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 selected + attribute. + @short Stores the initial value of the selected 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 OPTION in its parent + SELECT . + @short The index of this OPTION in its parent SELECT . + */ + 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 + disabled attribute definition 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 + label attribute definition 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 + selected attribute definition 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 + value attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLParagraphElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLParagraphElement.java new file mode 100644 index 00000000..377ca416 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLParagraphElement.java @@ -0,0 +1,46 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Paragraphs. See the P + element definition 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 + align attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLParamElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLParamElement.java new file mode 100644 index 00000000..518faba2 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLParamElement.java @@ -0,0 +1,83 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Parameters fed to the OBJECT element. See the + PARAM element definition in HTML 4.0. + @short Parameters fed to the OBJECT 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 + name attribute definition 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 value attribute when + valuetype has the value "ref". See the + type attribute definition in HTML 4.0. + @short Content type for the value attribute when valuetype 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 + value attribute definition 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 value + attribute value. See the + valuetype attribute definition in HTML 4.0. + @short Information about the meaning of the value 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/tdejava/koala/org/trinitydesktop/koala/HTMLPreElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLPreElement.java new file mode 100644 index 00000000..d3483978 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLPreElement.java @@ -0,0 +1,46 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Preformatted text. See the + PRE element definition 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 + width attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLQuoteElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLQuoteElement.java new file mode 100644 index 00000000..9b900cb4 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLQuoteElement.java @@ -0,0 +1,51 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + For the Q and BLOCKTQUOTE elements. + See the Q + element definition in HTML 4.0. + Note: The DOM is not quite consistent here. They also define the + HTMLBlockQuoteElement interface, to represent the BLOCKTQUOTE + element. To resolve ambiquities, we use this one for the Q + element only. + @short For the Q and BLOCKTQUOTE 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 + cite attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLScriptElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLScriptElement.java new file mode 100644 index 00000000..b67c4374 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLScriptElement.java @@ -0,0 +1,112 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Script statements. See the + SCRIPT element definition 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 + charset attribute definition 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 + defer attribute definition 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 + src attribute definition 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 + type attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLSelectElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLSelectElement.java new file mode 100644 index 00000000..15de335a --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLSelectElement.java @@ -0,0 +1,168 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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 + SELECT element definition 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 SELECT . + @short The number of options in this SELECT . + */ + public native long length(); + /** + ### KDE 4.0: remove. + @short ### KDE 4. + */ + public native HTMLFormElement formElement(); + /** + The collection of OPTION elements contained by + this element. + @short The collection of OPTION elements contained by this element. + */ + public native HTMLCollection options(); + /** + The control is unavailable in this context. See the + disabled attribute definition 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 OPTION elements may be + selected in this SELECT . See the + multiple attribute definition in HTML 4.0. + @short If true, multiple OPTION elements may be selected in this SELECT . + */ + 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 + + name attribute definition 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 + size attribute definition 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 + tabindex attribute definition 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 OPTION + elements for this SELECT . + @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 OPTION elements for this SELECT . + */ + public native void add(HTMLElement element, HTMLElement before); + /** + Remove an element from the collection of OPTION + elements for this SELECT . 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 OPTION elements for this SELECT . + */ + 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/tdejava/koala/org/trinitydesktop/koala/HTMLStyleElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLStyleElement.java new file mode 100644 index 00000000..22e0a10d --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLStyleElement.java @@ -0,0 +1,75 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Style information. A more detailed style sheet object model is + planned to be defined in a separate document. See the + STYLE element definition 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 + media attribute definition 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 + type attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLTableCaptionElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLTableCaptionElement.java new file mode 100644 index 00000000..5fe07b01 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLTableCaptionElement.java @@ -0,0 +1,46 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Table caption See the + CAPTION element definition in HTML 4.0. + @short Table caption See the + align attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLTableCellElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLTableCellElement.java new file mode 100644 index 00000000..08e69402 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLTableCellElement.java @@ -0,0 +1,219 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The object used to represent the TH and TD + elements. See the + TD element definition in HTML 4.0. + @short The object used to represent the TH and TD 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 + abbr attribute definition 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 + align attribute definition 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 + axis attribute definition 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 + bgcolor attribute definition 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 + char attribute definition 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 + charoff attribute definition 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 + colspan attribute definition 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 id attribute values for header cells. + See the + headers attribute definition in HTML 4.0. + @short List of id attribute values for header cells. + */ + public native String headers(); + /** + see headers + @short see headers + */ + public native void setHeaders(String arg1); + /** + Cell height. See the + height attribute definition 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 + nowrap attribute definition 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 + rowspan attribute definition 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 + scope attribute definition 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 + valign attribute definition 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 + width attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLTableColElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLTableColElement.java new file mode 100644 index 00000000..01058215 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLTableColElement.java @@ -0,0 +1,107 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Regroups the COL and COLGROUP + elements. See the + COL element definition in HTML 4.0. + @short Regroups the COL and COLGROUP 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 + align attribute definition 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 + char attribute definition 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 + charoff attribute definition 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 + span attribute definition 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 + valign attribute definition 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 + width attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLTableElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLTableElement.java new file mode 100644 index 00000000..4a473966 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLTableElement.java @@ -0,0 +1,260 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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 CAPTION , THEAD , and + TFOOT 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 + TABLE element definition 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 CAPTION , or void if none + exists. + @short Returns the table's CAPTION , or void if none exists. + */ + public native HTMLTableCaptionElement caption(); + /** + see caption + @short see caption + */ + public native void setCaption(HTMLTableCaptionElement arg1); + /** + Returns the table's THEAD , or null + if none exists. + @short Returns the table's THEAD , or null if none exists. + */ + public native HTMLTableSectionElement tHead(); + /** + see tHead + @short see tHead + */ + public native void setTHead(HTMLTableSectionElement arg1); + /** + Returns the table's TFOOT , or null + if none exists. + @short Returns the table's TFOOT , or null 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 THEAD , TFOOT , all + TBODY elements. + @short Returns a collection of all the rows in the table, including all in THEAD , TFOOT , all TBODY 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 + align attribute definition 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 + bgcolor attribute definition 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 + border attribute definition 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 + cellpadding attribute definition 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 + cellspacing attribute definition 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 + frame attribute definition 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 + rules attribute definition 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 + summary attribute definition 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 + width attribute definition 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 ( THEAD ). + + @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 ( TFOOT ). + + @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 CAPTION 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/tdejava/koala/org/trinitydesktop/koala/HTMLTableRowElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLTableRowElement.java new file mode 100644 index 00000000..081169c4 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLTableRowElement.java @@ -0,0 +1,155 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + A row in a table. See the + TR element definition 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 ( + THEAD , TFOOT , or TBODY + ). + @short The index of this row, relative to the current section ( THEAD , TFOOT , or TBODY ). + */ + 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 + + align attribute definition 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 + bgcolor attribute definition 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 + char attribute definition 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 + charoff attribute definition 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 + valign attribute definition 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 TD 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 TD 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/tdejava/koala/org/trinitydesktop/koala/HTMLTableSectionElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLTableSectionElement.java new file mode 100644 index 00000000..171d503e --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLTableSectionElement.java @@ -0,0 +1,102 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The THEAD , TFOOT , and TBODY + elements. + @short The THEAD , TFOOT , and TBODY 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 align + 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 + char attribute definition 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 + charoff attribute definition 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 valign + 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/tdejava/koala/org/trinitydesktop/koala/HTMLTextAreaElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLTextAreaElement.java new file mode 100644 index 00000000..15b5483f --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLTextAreaElement.java @@ -0,0 +1,168 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Multi-line text field. See the + TEXTAREA element definition 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 + value ). + @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 + accesskey attribute definition 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 + cols attribute definition 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 + disabled attribute definition 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 + + name attribute definition 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 + readonly attribute definition 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 + rows attribute definition 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 + tabindex attribute definition 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 TEXTAREA . + @short Select the contents of the TEXTAREA . + */ + public native void select(); + // DOM::HTMLTextAreaElement* HTMLTextAreaElement(DOM::HTMLTextAreaElementImpl* arg1); >>>> NOT CONVERTED +} diff --git a/tdejava/koala/org/trinitydesktop/koala/HTMLTitleElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLTitleElement.java new file mode 100644 index 00000000..1b8b66cc --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLTitleElement.java @@ -0,0 +1,43 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The document title. See the + TITLE element definition 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/tdejava/koala/org/trinitydesktop/koala/HTMLUListElement.java b/tdejava/koala/org/trinitydesktop/koala/HTMLUListElement.java new file mode 100644 index 00000000..6761a0fd --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HTMLUListElement.java @@ -0,0 +1,59 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Unordered list. See the + UL element definition 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 + compact attribute definition 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 + type attribute definition 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/tdejava/koala/org/trinitydesktop/koala/HistoryProvider.java b/tdejava/koala/org/trinitydesktop/koala/HistoryProvider.java new file mode 100644 index 00000000..20057f8f --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HistoryProvider.java @@ -0,0 +1,69 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQObject; + +/** + + 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 tdehtml, just create your provider and call the + HistoryProvider constructor _before_ you do any tdehtml stuff. That way, + tdehtml, using the self()-method, will use your subclassed provider. + See {@link HistoryProviderSignals} for signals emitted by HistoryProvider + @author Carsten Pfeiffer + + @short Basic class to manage a history of "items". + +*/ +public class HistoryProvider extends TQObject { + protected HistoryProvider(Class dummy){super((Class) null);} + public native TQMetaObject 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(TQObject parent, String name) { + super((Class) null); + newHistoryProvider(parent,name); + } + private native void newHistoryProvider(TQObject parent, String name); + public HistoryProvider(TQObject parent) { + super((Class) null); + newHistoryProvider(parent); + } + private native void newHistoryProvider(TQObject parent); + public HistoryProvider() { + super((Class) null); + newHistoryProvider(); + } + private native void newHistoryProvider(); + /** + @return true if item is present in the history. + + @short + */ + public native boolean contains(String item); + /** + Inserts item into the history. + @short Inserts item into the history. + */ + public native void insert(String item); + /** + Removes item from the history. + @short Removes item 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/tdejava/koala/org/trinitydesktop/koala/HistoryProviderSignals.java b/tdejava/koala/org/trinitydesktop/koala/HistoryProviderSignals.java new file mode 100644 index 00000000..eec99a2a --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/HistoryProviderSignals.java @@ -0,0 +1,22 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; + +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 items. + @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/tdejava/koala/org/trinitydesktop/koala/Invocation.java b/tdejava/koala/org/trinitydesktop/koala/Invocation.java new file mode 100644 index 00000000..a423cc01 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/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.trinitydesktop.koala; + +import java.util.*; +import java.lang.reflect.*; +import org.trinitydesktop.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/tdejava/koala/org/trinitydesktop/koala/Job.java b/tdejava/koala/org/trinitydesktop/koala/Job.java new file mode 100644 index 00000000..82966174 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/Job.java @@ -0,0 +1,368 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import java.util.ArrayList; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQObject; + +/** + + The base class for all jobs. + For all jobs created in an application, the code looks like +
      +   TDEIO.Job  job = TDEIO.someoperation( some parameters );
      +   connect( job, SIGNAL("result( TDEIO.Job  )"),
      +            this, SLOT("slotResult( TDEIO.Job  )") );
      + 
      + (other connects, specific to the job) + And slotResult is usually at least: +
      +  if ( job.error() )
      +      job.showErrorDialog( this or null  );
      + 
      + See {@link JobSignals} for signals emitted by Job + @short The base class for all jobs. + @see Scheduler + @see Slave + +*/ +public class Job extends TQObject { + protected Job(Class dummy){super((Class) null);} + public native TQMetaObject 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 tdeio_uiserver to close the progress window. + quietly 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 TDEIO.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: +
      +		   i18n( "Could not read\n%1" ).arg( errortext );
      +		 
      + 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(TQWidget 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 parentWidget (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, TQWidget 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 window. + @param window the window to associate to + @short Associate this job with a window given by window. + @see #window + */ + public native void setWindow(TQWidget 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 TQWidget 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 TDEIO::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 TQMap& 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 TQMap& arg1); >>>> NOT CONVERTED + /** + @short + */ + // TDEIO::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. + */ + // TDEIO::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 + key 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/tdejava/koala/org/trinitydesktop/koala/JobSignals.java b/tdejava/koala/org/trinitydesktop/koala/JobSignals.java new file mode 100644 index 00000000..7c17d631 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/JobSignals.java @@ -0,0 +1,73 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import java.util.ArrayList; +import org.trinitydesktop.qt.TQWidget; + +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/tdejava/koala/org/trinitydesktop/koala/KActiveLabel.java b/tdejava/koala/org/trinitydesktop/koala/KActiveLabel.java new file mode 100644 index 00000000..775bad53 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KActiveLabel.java @@ -0,0 +1,82 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQFocusEvent; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQTextBrowser; + +/** + + 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 TQTextBrowser { + protected KActiveLabel(Class dummy){super((Class) null);} + public native TQMetaObject 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(TQWidget parent, String name) { + super((Class) null); + newKActiveLabel(parent,name); + } + private native void newKActiveLabel(TQWidget parent, String name); + public KActiveLabel(TQWidget parent) { + super((Class) null); + newKActiveLabel(parent); + } + private native void newKActiveLabel(TQWidget 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, TQWidget parent, String name) { + super((Class) null); + newKActiveLabel(text,parent,name); + } + private native void newKActiveLabel(String text, TQWidget parent, String name); + public KActiveLabel(String text, TQWidget parent) { + super((Class) null); + newKActiveLabel(text,parent); + } + private native void newKActiveLabel(String text, TQWidget parent); + public native TQSize minimumSizeHint(); + public native TQSize sizeHint(); + /** + Opens link in the default browser. + If link starts with the text "whatsthis:" a TQWhatsThis + box will appear and then display the rest of the text. The WhatsThis + functionality is available since KDE 3.2. + @short Opens link in the default browser. + */ + public native void openLink(String link); + protected native void focusInEvent(TQFocusEvent fe); + protected native void focusOutEvent(TQFocusEvent fe); + protected native void keyPressEvent(TQKeyEvent 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/tdejava/koala/org/trinitydesktop/koala/KAnimWidget.java b/tdejava/koala/org/trinitydesktop/koala/KAnimWidget.java new file mode 100644 index 00000000..1783d99b --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KAnimWidget.java @@ -0,0 +1,126 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQHideEvent; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPainter; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQShowEvent; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQFrame; + +/** + + 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: +
      + KAnimWidget anim = new KAnimWidget("kde", 0, this);
      + anim.start();
      + 
      + 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 + + @short Standard "About KDE" dialog box. + +*/ +public class KAnimWidget extends TQFrame { + protected KAnimWidget(Class dummy){super((Class) null);} + public native TQMetaObject 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 + TDEToolBar; 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, TQWidget parent, String name) { + super((Class) null); + newKAnimWidget(icons,size,parent,name); + } + private native void newKAnimWidget(String icons, int size, TQWidget parent, String name); + public KAnimWidget(String icons, int size, TQWidget parent) { + super((Class) null); + newKAnimWidget(icons,size,parent); + } + private native void newKAnimWidget(String icons, int size, TQWidget 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 + TDEIconLoader.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(TQPainter p); + protected native void leaveEvent(TQEvent e); + protected native void enterEvent(TQEvent e); + protected native void hideEvent(TQHideEvent e); + public native void showEvent(TQShowEvent e); + protected native void mousePressEvent(TQMouseEvent e); + protected native void mouseReleaseEvent(TQMouseEvent 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/tdejava/koala/org/trinitydesktop/koala/KAnimWidgetSignals.java b/tdejava/koala/org/trinitydesktop/koala/KAnimWidgetSignals.java new file mode 100644 index 00000000..9723b6f4 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KAnimWidgetSignals.java @@ -0,0 +1,15 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQHideEvent; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPainter; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQShowEvent; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; + +public interface KAnimWidgetSignals { + void clicked(); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KAr.java b/tdejava/koala/org/trinitydesktop/koala/KAr.java new file mode 100644 index 00000000..f97abfe1 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KAr.java @@ -0,0 +1,65 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQIODevice; +import org.trinitydesktop.qt.TQIODeviceInterface; + +/** + + KAr is a class for reading archives in ar format. Writing + is not supported. + @author Laurence Anderson + + @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 (TQFile, etc.). + @param dev the device to read from + @short Creates an instance that operates on the given device. + */ + public KAr(TQIODeviceInterface dev) { + super((Class) null); + newKAr(dev); + } + private native void newKAr(TQIODeviceInterface dev); + /** + The name of the ar file, as passed to the constructor. + @return the filename. Null if you used the TQIODevice 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/tdejava/koala/org/trinitydesktop/koala/KArchive.java b/tdejava/koala/org/trinitydesktop/koala/KArchive.java new file mode 100644 index 00000000..60a56232 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KArchive.java @@ -0,0 +1,229 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQIODevice; +import org.trinitydesktop.qt.TQIODeviceInterface; + +/** + + KArchive is a base class for reading and writing archives. + @author David Faure + + @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 TQIODeviceInterface 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 fileName 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 path 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 path 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 (size 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 (size 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/tdejava/koala/org/trinitydesktop/koala/KArchiveDirectory.java b/tdejava/koala/org/trinitydesktop/koala/KArchiveDirectory.java new file mode 100644 index 00000000..650be603 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KArchiveDirectory.java @@ -0,0 +1,76 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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 + dest. + @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 dest. + */ + 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/tdejava/koala/org/trinitydesktop/koala/KArchiveEntry.java b/tdejava/koala/org/trinitydesktop/koala/KArchiveEntry.java new file mode 100644 index 00000000..bc1fe8e5 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KArchiveEntry.java @@ -0,0 +1,107 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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/tdejava/koala/org/trinitydesktop/koala/KArchiveFile.java b/tdejava/koala/org/trinitydesktop/koala/KArchiveFile.java new file mode 100644 index 00000000..03ef24a3 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KArchiveFile.java @@ -0,0 +1,95 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQIODevice; +import org.trinitydesktop.qt.TQIODeviceInterface; + +/** + + 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 TQIODevice (internal class: KLimitedIODevice) + on top of the underlying TQIODevice. 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 TQIODevice of the file + + @short This method returns TQIODevice (internal class: KLimitedIODevice) on top of the underlying TQIODevice. + */ + public native TQIODeviceInterface 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 dest + @param dest the directory to extract to + @short Extracts the file to the directory dest + */ + 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/tdejava/koala/org/trinitydesktop/koala/KArrowButton.java b/tdejava/koala/org/trinitydesktop/koala/KArrowButton.java new file mode 100644 index 00000000..b92260cf --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KArrowButton.java @@ -0,0 +1,85 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQPainter; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQPushButton; + +/** + + 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 TDEStyle when drawing + the arrow. + @author Frerich Raabe + + @short Draws a button with an arrow. + +*/ +public class KArrowButton extends TQPushButton { + protected KArrowButton(Class dummy){super((Class) null);} + public native TQMetaObject 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(TQWidget parent, int arrow, String name) { + super((Class) null); + newKArrowButton(parent,arrow,name); + } + private native void newKArrowButton(TQWidget parent, int arrow, String name); + public KArrowButton(TQWidget parent, int arrow) { + super((Class) null); + newKArrowButton(parent,arrow); + } + private native void newKArrowButton(TQWidget parent, int arrow); + public KArrowButton(TQWidget parent) { + super((Class) null); + newKArrowButton(parent); + } + private native void newKArrowButton(TQWidget parent); + public KArrowButton() { + super((Class) null); + newKArrowButton(); + } + private native void newKArrowButton(); + /** + Reimplemented from TQPushButton. + @short Reimplemented from TQPushButton. + */ + public native TQSize 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 TQPushButton. + @short Reimplemented from TQPushButton. + */ + protected native void drawButton(TQPainter 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/tdejava/koala/org/trinitydesktop/koala/KAsyncIO.java b/tdejava/koala/org/trinitydesktop/koala/KAsyncIO.java new file mode 100644 index 00000000..5187b7a7 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KAsyncIO.java @@ -0,0 +1,76 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQIODevice; +import org.trinitydesktop.qt.TQIODeviceInterface; +import org.trinitydesktop.qt.TQObject; + +/** + + Asynchronous I/O Support + This abstract class provides basic functionality for asynchronous I/O + support on top of TQIODevice. + See {@link KAsyncIOSignals} for signals emitted by KAsyncIO + @author Thiago Macieira + + @short Asynchronous I/O support. + +*/ +public class KAsyncIO extends TQObject implements TQIODeviceInterface { + protected KAsyncIO(Class dummy){super((Class) null);} + public native TQMetaObject 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/tdejava/koala/org/trinitydesktop/koala/KAsyncIOSignals.java b/tdejava/koala/org/trinitydesktop/koala/KAsyncIOSignals.java new file mode 100644 index 00000000..fd6ae09c --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KAsyncIOSignals.java @@ -0,0 +1,20 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQIODevice; +import org.trinitydesktop.qt.TQIODeviceInterface; + +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/tdejava/koala/org/trinitydesktop/koala/KAudioPlayer.java b/tdejava/koala/org/trinitydesktop/koala/KAudioPlayer.java new file mode 100644 index 00000000..69976a68 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KAudioPlayer.java @@ -0,0 +1,76 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQObject; + +/** + + 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: +
      +   KAudioPlayer.play("/var/share/foo.wav");
      + 
      + If you want to use signals & slots, you can do something like: +
      +   KAudioPlayer player("/var/share/foo.wav");
      +   connect(&button, SIGNAL("clicked()"), &player, SLOT("play()"));
      + 
      + @short This class provides one-shot-and-forget audio playing. + +*/ +public class KAudioPlayer extends TQObject { + protected KAudioPlayer(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructor. + @param filename Absolute path to the filename of the sound file to play + @param parent A parent TQObject for this KAudioPlayer + @param name An internal name for this KAudioPlayer + @short Constructor. + */ + public KAudioPlayer(String filename, TQObject parent, String name) { + super((Class) null); + newKAudioPlayer(filename,parent,name); + } + private native void newKAudioPlayer(String filename, TQObject parent, String name); + public KAudioPlayer(String filename, TQObject parent) { + super((Class) null); + newKAudioPlayer(filename,parent); + } + private native void newKAudioPlayer(String filename, TQObject 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 TDEDIR/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/tdejava/koala/org/trinitydesktop/koala/KAuthIcon.java b/tdejava/koala/org/trinitydesktop/koala/KAuthIcon.java new file mode 100644 index 00000000..313eca3c --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KAuthIcon.java @@ -0,0 +1,48 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQWidget; + +/** + + 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 + + @short A base class for authorization icon widgets. + @see KRootPermsIcon + @see KWritePermsIcon + +*/ +public class KAuthIcon extends TQWidget { + protected KAuthIcon(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructor. + @short Constructor. + */ + public native TQSize 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/tdejava/koala/org/trinitydesktop/koala/KAuthIconSignals.java b/tdejava/koala/org/trinitydesktop/koala/KAuthIconSignals.java new file mode 100644 index 00000000..e87022bc --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KAuthIconSignals.java @@ -0,0 +1,18 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQWidget; + +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/tdejava/koala/org/trinitydesktop/koala/KBugReport.java b/tdejava/koala/org/trinitydesktop/koala/KBugReport.java new file mode 100644 index 00000000..11622e29 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KBugReport.java @@ -0,0 +1,103 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; + +/** + + All the information needed by the dialog box + (program name, version, bug-report address, etc.) + comes from the TDEAboutData class. + Make sure you create an instance of TDEAboutData and pass it + to TDECmdLineArgs. + @author David Faure + + @short A dialog box for sending bug reports. + +*/ +public class KBugReport extends KDialogBase { + protected KBugReport(Class dummy){super((Class) null);} + public native TQMetaObject 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(TQWidget parent, boolean modal, TDEAboutData aboutData) { + super((Class) null); + newKBugReport(parent,modal,aboutData); + } + private native void newKBugReport(TQWidget parent, boolean modal, TDEAboutData aboutData); + public KBugReport(TQWidget parent, boolean modal) { + super((Class) null); + newKBugReport(parent,modal); + } + private native void newKBugReport(TQWidget parent, boolean modal); + public KBugReport(TQWidget parent) { + super((Class) null); + newKBugReport(parent); + } + private native void newKBugReport(TQWidget 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 tdecmshell System/email + @short "Configure email" has been clicked - this calls tdecmshell 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/tdejava/koala/org/trinitydesktop/koala/KButtonBox.java b/tdejava/koala/org/trinitydesktop/koala/KButtonBox.java new file mode 100644 index 00000000..273f4288 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KButtonBox.java @@ -0,0 +1,160 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQSizePolicy; +import org.trinitydesktop.qt.TQPushButton; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; +import org.trinitydesktop.qt.TQWidget; + +/** + + 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 0 (making it easier to deal with layouts). The space + between buttons is now more Motif compliant. + @author Mario Weilguni + + @version $Id$ + + @short Container widget for buttons. + +*/ +public class KButtonBox extends TQWidget { + protected KButtonBox(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Create an empty container for buttons. + If _orientation is Vertical, 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(TQWidget parent, int _orientation, int border, int _autoborder) { + super((Class) null); + newKButtonBox(parent,_orientation,border,_autoborder); + } + private native void newKButtonBox(TQWidget parent, int _orientation, int border, int _autoborder); + public KButtonBox(TQWidget parent, int _orientation, int border) { + super((Class) null); + newKButtonBox(parent,_orientation,border); + } + private native void newKButtonBox(TQWidget parent, int _orientation, int border); + public KButtonBox(TQWidget parent, int _orientation) { + super((Class) null); + newKButtonBox(parent,_orientation); + } + private native void newKButtonBox(TQWidget parent, int _orientation); + public KButtonBox(TQWidget parent) { + super((Class) null); + newKButtonBox(parent); + } + private native void newKButtonBox(TQWidget 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 TQSize sizeHint(); + public native TQSizePolicy sizePolicy(); + public native void resizeEvent(TQResizeEvent arg1); + /** + Add a new TQPushButton. + @param text the text of the button to add + @param noexpand If noexpand is false, the width + of the button is adjusted to fit the other buttons (the maximum + of all buttons is taken). If noexpand is true, 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 TQPushButton. + */ + public native TQPushButton addButton(String text, boolean noexpand); + public native TQPushButton addButton(String text); + /** + Add a new TQPushButton. + @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 noexpand is false, the width + of the button is adjusted to fit the other buttons (the maximum + of all buttons is taken). If noexpand true, 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 TQPushButton. + */ + public native TQPushButton addButton(String text, TQObject receiver, String slot, boolean noexpand); + public native TQPushButton addButton(String text, TQObject receiver, String slot); + /** + Add a new TQPushButton. + @param guiitem text and icon on the button + @param noexpand If noexpand is false, the width + of the button is adjusted to fit the other buttons (the maximum + of all buttons is taken). If noexpand is true, 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 TQPushButton. + */ + public native TQPushButton addButton(KGuiItem guiitem, boolean noexpand); + public native TQPushButton addButton(KGuiItem guiitem); + /** + Add a new TQPushButton. + @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 noexpand is false, the width + of the button is adjusted to fit the other buttons (the maximum + of all buttons is taken). If noexpand true, 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 TQPushButton. + */ + public native TQPushButton addButton(KGuiItem guiitem, TQObject receiver, String slot, boolean noexpand); + public native TQPushButton addButton(KGuiItem guiitem, TQObject 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.trinitydesktop.qt.TQBoxLayout + */ + public native void addStretch(int scale); + public native void addStretch(); + /** + This function must be called once 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 TQSize bestButtonSize(); + protected native void placeButtons(); + protected native TQSize buttonSizeHint(TQPushButton 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/tdejava/koala/org/trinitydesktop/koala/KCMultiDialog.java b/tdejava/koala/org/trinitydesktop/koala/KCMultiDialog.java new file mode 100644 index 00000000..dcafdacf --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCMultiDialog.java @@ -0,0 +1,161 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; + +/** + + See {@link KCMultiDialogSignals} for signals emitted by KCMultiDialog + @author Matthias Elter , Daniel Molkentin + + @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 TQMetaObject 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(TQWidget parent, String name, boolean modal) { + super((Class) null); + newKCMultiDialog(parent,name,modal); + } + private native void newKCMultiDialog(TQWidget parent, String name, boolean modal); + public KCMultiDialog(TQWidget parent, String name) { + super((Class) null); + newKCMultiDialog(parent,name); + } + private native void newKCMultiDialog(TQWidget parent, String name); + public KCMultiDialog(TQWidget parent) { + super((Class) null); + newKCMultiDialog(parent); + } + private native void newKCMultiDialog(TQWidget 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 false, 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, TQWidget parent, String name, boolean modal) { + super((Class) null); + newKCMultiDialog(dialogFace,caption,parent,name,modal); + } + private native void newKCMultiDialog(int dialogFace, String caption, TQWidget parent, String name, boolean modal); + public KCMultiDialog(int dialogFace, String caption, TQWidget parent, String name) { + super((Class) null); + newKCMultiDialog(dialogFace,caption,parent,name); + } + private native void newKCMultiDialog(int dialogFace, String caption, TQWidget parent, String name); + public KCMultiDialog(int dialogFace, String caption, TQWidget parent) { + super((Class) null); + newKCMultiDialog(dialogFace,caption,parent); + } + private native void newKCMultiDialog(int dialogFace, String caption, TQWidget 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 TDECModuleInfo 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(TDECModuleInfo moduleinfo, String[] parentmodulenames, boolean withfallback); + public native void addModule(TDECModuleInfo moduleinfo, String[] parentmodulenames); + public native void addModule(TDECModuleInfo 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/tdejava/koala/org/trinitydesktop/koala/KCMultiDialogSignals.java b/tdejava/koala/org/trinitydesktop/koala/KCMultiDialogSignals.java new file mode 100644 index 00000000..f84ff298 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCMultiDialogSignals.java @@ -0,0 +1,30 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; + +public interface KCMultiDialogSignals { + /** + Emitted after all TDECModules have been told to save their configuration. + The applyClicked and okClicked signals are emitted before the + configuration is saved. + @short Emitted after all TDECModules have been told to save their configuration. + */ + void configCommitted(); + /** + Emitted after the TDECModules 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 TDECModules have been told to save their configuration. + */ + void configCommitted(String instanceName); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KCPUInfo.java b/tdejava/koala/org/trinitydesktop/koala/KCPUInfo.java new file mode 100644 index 00000000..eadfd85e --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCPUInfo.java @@ -0,0 +1,51 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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 extension, + and false otherwise. + @param extension the feature to query. + @return If true, the processor supports extension. + + @short Returns true if the processor supports extension, 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/tdejava/koala/org/trinitydesktop/koala/KCalendarSystem.java b/tdejava/koala/org/trinitydesktop/koala/KCalendarSystem.java new file mode 100644 index 00000000..331dab22 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCalendarSystem.java @@ -0,0 +1,323 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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 + + @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 TQDate 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 TQDate 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 TQDate 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 (TQDate, 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/tdejava/koala/org/trinitydesktop/koala/KCalendarSystemFactory.java b/tdejava/koala/org/trinitydesktop/koala/KCalendarSystemFactory.java new file mode 100644 index 00000000..1db676c2 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCalendarSystemFactory.java @@ -0,0 +1,52 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import java.util.ArrayList; + +/** + + Factory class for calendar types + @author Carlos Moro + + @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, TDELocale 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/tdejava/koala/org/trinitydesktop/koala/KCatalogue.java b/tdejava/koala/org/trinitydesktop/koala/KCatalogue.java new file mode 100644 index 00000000..d9afb182 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCatalogue.java @@ -0,0 +1,91 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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 TDELocale + +*/ +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 tdelibs.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/tdejava/koala/org/trinitydesktop/koala/KCharSelect.java b/tdejava/koala/org/trinitydesktop/koala/KCharSelect.java new file mode 100644 index 00000000..ee69cca8 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCharSelect.java @@ -0,0 +1,151 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQFontDatabase; +import org.trinitydesktop.qt.TQVBox; + +/** + + 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 + + @short Character selection widget. + +*/ +public class KCharSelect extends TQVBox { + protected KCharSelect(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructor. font specifies which font should be displayed, chr which character should be selected and tableNum specifies + the number of the table which should be displayed. + @short Constructor. + */ + public KCharSelect(TQWidget parent, String name, String font, char chr, int tableNum) { + super((Class) null); + newKCharSelect(parent,name,font,chr,tableNum); + } + private native void newKCharSelect(TQWidget parent, String name, String font, char chr, int tableNum); + public KCharSelect(TQWidget parent, String name, String font, char chr) { + super((Class) null); + newKCharSelect(parent,name,font,chr); + } + private native void newKCharSelect(TQWidget parent, String name, String font, char chr); + public KCharSelect(TQWidget parent, String name, String font) { + super((Class) null); + newKCharSelect(parent,name,font); + } + private native void newKCharSelect(TQWidget parent, String name, String font); + public KCharSelect(TQWidget parent, String name) { + super((Class) null); + newKCharSelect(parent,name); + } + private native void newKCharSelect(TQWidget parent, String name); + /** + Reimplemented. + @short Reimplemented. + */ + public native TQSize sizeHint(); + /** + Sets the font which is displayed to font + @short Sets the font which is displayed to font + */ + public native void setFont(String font); + /** + Sets the currently selected character to chr. + @short Sets the currently selected character to chr. + */ + public native void setChar(char chr); + /** + Sets the currently displayed table to tableNum. + @short Sets the currently displayed table to tableNum. + */ + 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 e is set to true, the combobox which allows the user to + select the font which should be displayed is enabled, else + disabled. + @short If e 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 e 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/tdejava/koala/org/trinitydesktop/koala/KCharSelectSignals.java b/tdejava/koala/org/trinitydesktop/koala/KCharSelectSignals.java new file mode 100644 index 00000000..92e2751b --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCharSelectSignals.java @@ -0,0 +1,19 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQFontDatabase; + +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/tdejava/koala/org/trinitydesktop/koala/KCharSelectTable.java b/tdejava/koala/org/trinitydesktop/koala/KCharSelectTable.java new file mode 100644 index 00000000..64b73c11 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCharSelectTable.java @@ -0,0 +1,55 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; +import org.trinitydesktop.qt.TQGridView; + +/** + + 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 + + @short Character selection table. + +*/ +public class KCharSelectTable extends TQGridView { + protected KCharSelectTable(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + public KCharSelectTable(TQWidget parent, String name, String _font, char _chr, int _tableNum) { + super((Class) null); + newKCharSelectTable(parent,name,_font,_chr,_tableNum); + } + private native void newKCharSelectTable(TQWidget parent, String name, String _font, char _chr, int _tableNum); + public native TQSize sizeHint(); + public native void resizeEvent(TQResizeEvent 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(TQMouseEvent e); + protected native void mouseDoubleClickEvent(TQMouseEvent e); + protected native void mouseReleaseEvent(TQMouseEvent e); + protected native void mouseMoveEvent(TQMouseEvent e); + protected native void keyPressEvent(TQKeyEvent 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/tdejava/koala/org/trinitydesktop/koala/KCharSelectTableSignals.java b/tdejava/koala/org/trinitydesktop/koala/KCharSelectTableSignals.java new file mode 100644 index 00000000..e014b54c --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCharSelectTableSignals.java @@ -0,0 +1,22 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; + +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/tdejava/koala/org/trinitydesktop/koala/KCharsets.java b/tdejava/koala/org/trinitydesktop/koala/KCharsets.java new file mode 100644 index 00000000..32cb3a77 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCharsets.java @@ -0,0 +1,128 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import java.util.ArrayList; +import org.trinitydesktop.qt.TQTextCodec; + +/** + + 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 + + @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 TQTextCodec. If the desired codec could not be found, + it returns a default (Latin-1) codec + + @short Provided for compatibility. + */ + public native TQTextCodec codecForName(String name); + /** + Tries to find a TQTextCodec to convert the given encoding from and to + Unicode. If no codec could be found the latin1 codec will be returned an + ok will be set to false. + @return the TQTextCodec. If the desired codec could not be found, + it returns a default (Latin-1) codec + + @short Tries to find a TQTextCodec to convert the given encoding from and to Unicode. + */ + public native TQTextCodec 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;) 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;) and resolves them using fromEntity. + */ + public static native String resolveEntities(String text); + /** Protected constructor. If you need the kcharsets object, use + TDEGlobal.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/tdejava/koala/org/trinitydesktop/koala/KCodecs.java b/tdejava/koala/org/trinitydesktop/koala/KCodecs.java new file mode 100644 index 00000000..4a622d8f --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCodecs.java @@ -0,0 +1,272 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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. + sage: +
      + String input = "Aladdin:open sesame";
      + String result = KCodecs.base64Encode(input);
      + cout << "Result: " << result.data() << endl;
      + 
      +
      + Output should be
      + Result: TQWxhZGRpbjpvcGVuIHNlc2FtZQ==
      + 
      + 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 + + @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 insertLFs 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 insertLFs 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/tdejava/koala/org/trinitydesktop/koala/KColor.java b/tdejava/koala/org/trinitydesktop/koala/KColor.java new file mode 100644 index 00000000..60a2d578 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KColor.java @@ -0,0 +1,49 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQColor; + +/** + + A color class that preserves both RGB and HSV values. + This is + unlike TQColor which only preserves RGB values and recalculates HSV + values. The TQColor behavior leads to an accumulation of rounding + errors when working in the HSV color space. + @author Waldo Bastian + + @short A color class that preserves both RGB and HSV values. + +*/ +public class KColor extends TQColor { + 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(TQColor col) { + super((Class) null); + newKColor(col); + } + private native void newKColor(TQColor 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/tdejava/koala/org/trinitydesktop/koala/KColorButton.java b/tdejava/koala/org/trinitydesktop/koala/KColorButton.java new file mode 100644 index 00000000..78658177 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KColorButton.java @@ -0,0 +1,103 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQDragEnterEvent; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQPainter; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQDropEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQPushButton; + +/** + + 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 TQPushButton { + protected KColorButton(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Creates a color button. + @short Creates a color button. + */ + public KColorButton(TQWidget parent, String name) { + super((Class) null); + newKColorButton(parent,name); + } + private native void newKColorButton(TQWidget parent, String name); + public KColorButton(TQWidget parent) { + super((Class) null); + newKColorButton(parent); + } + private native void newKColorButton(TQWidget parent); + /** + Creates a color button with an initial color c. + @short Creates a color button with an initial color c. + */ + public KColorButton(TQColor c, TQWidget parent, String name) { + super((Class) null); + newKColorButton(c,parent,name); + } + private native void newKColorButton(TQColor c, TQWidget parent, String name); + public KColorButton(TQColor c, TQWidget parent) { + super((Class) null); + newKColorButton(c,parent); + } + private native void newKColorButton(TQColor c, TQWidget parent); + public KColorButton(TQColor c, TQColor defaultColor, TQWidget parent, String name) { + super((Class) null); + newKColorButton(c,defaultColor,parent,name); + } + private native void newKColorButton(TQColor c, TQColor defaultColor, TQWidget parent, String name); + public KColorButton(TQColor c, TQColor defaultColor, TQWidget parent) { + super((Class) null); + newKColorButton(c,defaultColor,parent); + } + private native void newKColorButton(TQColor c, TQColor defaultColor, TQWidget parent); + /** + Returns the currently chosen color. + @short Returns the currently chosen color. + */ + public native TQColor color(); + /** + Sets the current color to c. + @short Sets the current color to c. + */ + public native void setColor(TQColor 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 TQColor defaultColor(); + /** + Sets the default color to c. + @short Sets the default color to c. + */ + public native void setDefaultColor(TQColor c); + public native TQSize sizeHint(); + protected native void drawButtonLabel(TQPainter p); + protected native void dragEnterEvent(TQDragEnterEvent arg1); + protected native void dropEvent(TQDropEvent arg1); + protected native void mousePressEvent(TQMouseEvent e); + protected native void mouseMoveEvent(TQMouseEvent e); + protected native void keyPressEvent(TQKeyEvent 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/tdejava/koala/org/trinitydesktop/koala/KColorButtonSignals.java b/tdejava/koala/org/trinitydesktop/koala/KColorButtonSignals.java new file mode 100644 index 00000000..e453a245 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KColorButtonSignals.java @@ -0,0 +1,22 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQDragEnterEvent; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQPainter; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQDropEvent; +import org.trinitydesktop.qt.TQWidget; + +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(TQColor newColor); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KColorCells.java b/tdejava/koala/org/trinitydesktop/koala/KColorCells.java new file mode 100644 index 00000000..921d8bbc --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KColorCells.java @@ -0,0 +1,57 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPoint; +import org.trinitydesktop.qt.TQDragEnterEvent; +import org.trinitydesktop.qt.TQPainter; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQDropEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; +import org.trinitydesktop.qt.TQGridView; + +/** + + A table of editable color cells. + See {@link KColorCellsSignals} for signals emitted by KColorCells + @author Martin Jones + + @short A table of editable color cells. + +*/ +public class KColorCells extends TQGridView { + protected KColorCells(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + public KColorCells(TQWidget parent, int rows, int cols) { + super((Class) null); + newKColorCells(parent,rows,cols); + } + private native void newKColorCells(TQWidget parent, int rows, int cols); + public native void setColor(int colNum, TQColor col); + public native TQColor 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(TQPainter painter, int row, int col); + protected native void resizeEvent(TQResizeEvent arg1); + protected native void mouseReleaseEvent(TQMouseEvent arg1); + protected native void mousePressEvent(TQMouseEvent arg1); + protected native void mouseMoveEvent(TQMouseEvent arg1); + protected native void dragEnterEvent(TQDragEnterEvent arg1); + protected native void dropEvent(TQDropEvent arg1); + protected native void mouseDoubleClickEvent(TQMouseEvent arg1); + protected native int posToCell(TQPoint pos, boolean ignoreBorders); + protected native int posToCell(TQPoint 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/tdejava/koala/org/trinitydesktop/koala/KColorCellsSignals.java b/tdejava/koala/org/trinitydesktop/koala/KColorCellsSignals.java new file mode 100644 index 00000000..eec1f5cf --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KColorCellsSignals.java @@ -0,0 +1,18 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPoint; +import org.trinitydesktop.qt.TQDragEnterEvent; +import org.trinitydesktop.qt.TQPainter; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQDropEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; + +public interface KColorCellsSignals { + void colorSelected(int col); + void colorDoubleClicked(int col); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KColorCombo.java b/tdejava/koala/org/trinitydesktop/koala/KColorCombo.java new file mode 100644 index 00000000..003c0cec --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KColorCombo.java @@ -0,0 +1,59 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; +import org.trinitydesktop.qt.TQComboBox; + +/** + + Combobox for colors. + See {@link KColorComboSignals} for signals emitted by KColorCombo + @short Combobox for colors. + +*/ +public class KColorCombo extends TQComboBox { + protected KColorCombo(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructs a color combo box. + @short Constructs a color combo box. + */ + public KColorCombo(TQWidget parent, String name) { + super((Class) null); + newKColorCombo(parent,name); + } + private native void newKColorCombo(TQWidget parent, String name); + public KColorCombo(TQWidget parent) { + super((Class) null); + newKColorCombo(parent); + } + private native void newKColorCombo(TQWidget parent); + /** + Selects the color col. + @short Selects the color col. + */ + public native void setColor(TQColor col); + /** + Returns the currently selected color. + @short Returns the currently selected color. + */ + public native TQColor 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(TQResizeEvent 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/tdejava/koala/org/trinitydesktop/koala/KColorComboSignals.java b/tdejava/koala/org/trinitydesktop/koala/KColorComboSignals.java new file mode 100644 index 00000000..5cba3b4b --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KColorComboSignals.java @@ -0,0 +1,21 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; + +public interface KColorComboSignals { + /** + Emitted when a new color box has been selected. + @short Emitted when a new color box has been selected. + */ + void activated(TQColor col); + /** + Emitted when a new item has been highlighted. + @short Emitted when a new item has been highlighted. + */ + void highlighted(TQColor col); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KColorDialog.java b/tdejava/koala/org/trinitydesktop/koala/KColorDialog.java new file mode 100644 index 00000000..6aa17ded --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KColorDialog.java @@ -0,0 +1,145 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQPoint; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; + +/** + +
    • Features:
    • + +
    • + Color selection from a wide range of palettes. +
    • + +
    • + Color selection from a palette of H vs S and V selectors. +
    • + +
    • + Direct input of HSV or RGB values. +
    • + +
    • + Saving of custom colors +
    • + 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: +
      + 	TQColor myColor;
      + 	int result = KColorDialog.getColor( myColor );
      +         if ( result == KColorDialog.Accepted )
      +            ...
      + 
      + 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 TQMetaObject metaObject(); + public native String className(); + /** + Constructs a color selection dialog. + @short Constructs a color selection dialog. + */ + public KColorDialog(TQWidget parent, String name, boolean modal) { + super((Class) null); + newKColorDialog(parent,name,modal); + } + private native void newKColorDialog(TQWidget parent, String name, boolean modal); + public KColorDialog(TQWidget parent, String name) { + super((Class) null); + newKColorDialog(parent,name); + } + private native void newKColorDialog(TQWidget parent, String name); + public KColorDialog(TQWidget parent) { + super((Class) null); + newKColorDialog(parent); + } + private native void newKColorDialog(TQWidget parent); + public KColorDialog() { + super((Class) null); + newKColorDialog(); + } + private native void newKColorDialog(); + /** + Returns the currently selected color. + @short Returns the currently selected color. + */ + public native TQColor color(); + /** + Call this to make the dialog show a "Default Color" checkbox. + If this checkbox is selected, the dialog will return an "invalid" color (TQColor()). + 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(TQColor defaultCol); + /** + @return the value passed to setDefaultColor + + @short + */ + public native TQColor defaultColor(); + /** + Preselects a color. + @short Preselects a color. + */ + public native void setColor(TQColor 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 theColor. + @return TQDialog.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(TQColor theColor, TQWidget parent); + public static native int getColor(TQColor 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 theColor. + This version takes a defaultColor argument, which sets the color + selected by the "default color" checkbox. When this checkbox is checked, + the invalid color (TQColor()) is returned into theColor. + @return TQDialog.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(TQColor theColor, TQColor defaultColor, TQWidget parent); + public static native int getColor(TQColor theColor, TQColor 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 TQColor grabColor(TQPoint p); + protected native void mouseReleaseEvent(TQMouseEvent arg1); + protected native void keyPressEvent(TQKeyEvent arg1); + public native boolean eventFilter(TQObject arg1, TQEvent 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/tdejava/koala/org/trinitydesktop/koala/KColorDialogSignals.java b/tdejava/koala/org/trinitydesktop/koala/KColorDialogSignals.java new file mode 100644 index 00000000..115930e3 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KColorDialogSignals.java @@ -0,0 +1,22 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQPoint; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; + +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(TQColor col); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KColorDrag.java b/tdejava/koala/org/trinitydesktop/koala/KColorDrag.java new file mode 100644 index 00000000..1d12fd15 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KColorDrag.java @@ -0,0 +1,86 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQMimeSourceInterface; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQMimeSource; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQStoredDrag; + +/** + + 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 TQStoredDrag { + protected KColorDrag(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructs a color drag with a white color. + @short Constructs a color drag with a white color. + */ + public KColorDrag(TQWidget dragsource, String name) { + super((Class) null); + newKColorDrag(dragsource,name); + } + private native void newKColorDrag(TQWidget dragsource, String name); + public KColorDrag(TQWidget dragsource) { + super((Class) null); + newKColorDrag(dragsource); + } + private native void newKColorDrag(TQWidget dragsource); + public KColorDrag() { + super((Class) null); + newKColorDrag(); + } + private native void newKColorDrag(); + /** + Constructs a color drag with the color col. + @short Constructs a color drag with the color col. + */ + public KColorDrag(TQColor col, TQWidget dragsource, String name) { + super((Class) null); + newKColorDrag(col,dragsource,name); + } + private native void newKColorDrag(TQColor col, TQWidget dragsource, String name); + public KColorDrag(TQColor col, TQWidget dragsource) { + super((Class) null); + newKColorDrag(col,dragsource); + } + private native void newKColorDrag(TQColor col, TQWidget dragsource); + public KColorDrag(TQColor col) { + super((Class) null); + newKColorDrag(col); + } + private native void newKColorDrag(TQColor col); + public native String format(int i); + public native byte[] encodedData(String m); + /** + Sets the color of the drag to col. + @short Sets the color of the drag to col. + */ + public native void setColor(TQColor col); + /** + Returns true if the MIME source e contains a color object. + @short Returns true if the MIME source e contains a color object. + */ + public static native boolean canDecode(TQMimeSourceInterface e); + /** + Decodes the MIME source e and puts the resulting color into col. + @short Decodes the MIME source e and puts the resulting color into col. + */ + public static native boolean decode(TQMimeSourceInterface e, TQColor 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/tdejava/koala/org/trinitydesktop/koala/KColorPatch.java b/tdejava/koala/org/trinitydesktop/koala/KColorPatch.java new file mode 100644 index 00000000..3e77e8ff --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KColorPatch.java @@ -0,0 +1,44 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQDragEnterEvent; +import org.trinitydesktop.qt.TQPainter; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQDropEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQFrame; + +/** + + 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 TQFrame { + protected KColorPatch(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + public KColorPatch(TQWidget parent) { + super((Class) null); + newKColorPatch(parent); + } + private native void newKColorPatch(TQWidget parent); + public native void setColor(TQColor col); + protected native void drawContents(TQPainter painter); + protected native void mouseMoveEvent(TQMouseEvent arg1); + protected native void dragEnterEvent(TQDragEnterEvent arg1); + protected native void dropEvent(TQDropEvent 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/tdejava/koala/org/trinitydesktop/koala/KColorPatchSignals.java b/tdejava/koala/org/trinitydesktop/koala/KColorPatchSignals.java new file mode 100644 index 00000000..c2ad372e --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KColorPatchSignals.java @@ -0,0 +1,15 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQDragEnterEvent; +import org.trinitydesktop.qt.TQPainter; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQDropEvent; +import org.trinitydesktop.qt.TQWidget; + +public interface KColorPatchSignals { + void colorChanged(TQColor arg1); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KCombiView.java b/tdejava/koala/org/trinitydesktop/koala/KCombiView.java new file mode 100644 index 00000000..9944a748 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCombiView.java @@ -0,0 +1,218 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import java.util.ArrayList; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQSplitter; + +/** + + 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 TQSplitter implements KFileViewInterface { + protected KCombiView(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + public KCombiView(TQWidget parent, String name) { + super((Class) null); + newKCombiView(parent,name); + } + private native void newKCombiView(TQWidget parent, String name); + public native TQWidget 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(TDEConfig arg1, String group); + public native void readConfig(TDEConfig arg1); + public native void writeConfig(TDEConfig arg1, String group); + public native void writeConfig(TDEConfig arg1); + public native void ensureItemVisible(KFileItem arg1); + public native TDEActionCollection actionCollection(); + public native void setAcceptDrops(boolean b); + public native boolean eventFilter(TQObject o, TQEvent 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 filename the current item in the view, if available. + @short Sets filename 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() & TQDir.Reversed). + @short Tells whether the current items are in reversed order (shortcut to sorting() & TQDir.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. TQIconView or TQListView. 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 TQDir.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 TDEIO.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/tdejava/koala/org/trinitydesktop/koala/KComboBox.java b/tdejava/koala/org/trinitydesktop/koala/KComboBox.java new file mode 100644 index 00000000..3842db13 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KComboBox.java @@ -0,0 +1,626 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQPopupMenu; +import org.trinitydesktop.qt.TQPixmap; +import org.trinitydesktop.qt.TQLineEdit; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQWheelEvent; +import org.trinitydesktop.qt.TQComboBox; + +/** + + A combined button, line-edit and a popup list widget. +
    • Detail
    • + This widget inherits from TQComboBox 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( TDECompletion, 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 + TDECompletionBase.setHandleSignals(boolean) or alternatively set the booleanean + parameter in the setCompletionObject 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 TQGuardedPtr. + The default key-bindings for completion and rotation is determined from the + global settings in TDEStdAccel. These values, however, can be overridden + locally by invoking TDECompletionBase.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, CompletionAuto. + 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: +
      + KComboBox combo = new TDECompletionBox(true, this, "mywidget");
      + TDECompletion comp = combo.completionObject();
      + combo.setEditable( false );
      + comp.clear(); // CRASH: completion object does not exist anymore.
      + 
      + 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 TQComboBox's implementation + and is done to give visual distinction between the three different modes: + disabled, read-only, and read-write. +
    • Usage
    • + To enable the basic completion feature: +
      + KComboBox combo = new KComboBox( true, this, "mywidget" );
      + TDECompletion 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 );
      + 
      + To use your own completion object: +
      + 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)"));
      + 
      + 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: +
      + // Tell the widget not to handle completion and rotation
      + combo.setHandleSignals( false );
      + // Set your own completion key for manual completions.
      + combo.setKeyBinding( TDECompletionBase.TextCompletion, Qt.End );
      + // Hide the context (popup) menu
      + combo.setContextMenuEnabled( false );
      + 
      + See {@link KComboBoxSignals} for signals emitted by KComboBox + @author Dawit Alemayehu + + @short An enhanced combo box. + +*/ +public class KComboBox extends TQComboBox implements TDECompletionBaseInterface { + protected KComboBox(Class dummy){super((Class) null);} + public native TQMetaObject 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(TQWidget parent, String name) { + super((Class) null); + newKComboBox(parent,name); + } + private native void newKComboBox(TQWidget parent, String name); + public KComboBox(TQWidget parent) { + super((Class) null); + newKComboBox(parent); + } + private native void newKComboBox(TQWidget 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( rw ) with a parent, a + name. + @param rw When true, 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( rw ) with a parent, a name. + */ + public KComboBox(boolean rw, TQWidget parent, String name) { + super((Class) null); + newKComboBox(rw,parent,name); + } + private native void newKComboBox(boolean rw, TQWidget parent, String name); + public KComboBox(boolean rw, TQWidget parent) { + super((Class) null); + newKComboBox(rw,parent); + } + private native void newKComboBox(boolean rw, TQWidget parent); + public KComboBox(boolean rw) { + super((Class) null); + newKComboBox(rw); + } + private native void newKComboBox(boolean rw); + /** + Sets url into the edit field of the combobox. It uses + KURL.prettyURL() so that the url is properly decoded for + displaying. + @short Sets url into the edit field of the combobox. + */ + public native void setEditURL(KURL url); + /** + Inserts url at position index into the combobox. The item will + be appended if index is negative. KURL.prettyURL() is used + so that the url is properly decoded for displaying. + @short Inserts url at position index into the combobox. + */ + public native void insertURL(KURL url, int index); + public native void insertURL(KURL url); + /** + Inserts url with the pixmap &p pixmap at position index into + the combobox. The item will be appended if index is negative. + KURL.prettyURL() is used so that the url is properly decoded + for displaying. + @short Inserts url with the pixmap &p pixmap at position index into the combobox. + */ + public native void insertURL(TQPixmap pixmap, KURL url, int index); + public native void insertURL(TQPixmap pixmap, KURL url); + /** + Replaces the item at position index with url. + KURL.prettyURL() is used so that the url is properly decoded + for displaying. + @short Replaces the item at position index with url. + */ + public native void changeURL(KURL url, int index); + /** + Replaces the item at position index with url and pixmap pixmap. + KURL.prettyURL() is used so that the url is properly decoded + for displaying. + @short Replaces the item at position index with url and pixmap pixmap. + */ + public native void changeURL(TQPixmap pixmap, KURL url, int index); + /** + Returns the current cursor position. + This method always returns a -1 if the combo-box is not + editable (read-write). + @return Current cursor position. + + @short Returns the current cursor position. + */ + public native int cursorPosition(); + /** + Re-implemented from TQComboBox. + If true, 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 TQComboBox. + */ + public native void setAutoCompletion(boolean autocomplete); + /** + Re-implemented from TQComboBox. + Returns true if the current completion mode is set + to automatic. See its more comprehensive replacement + completionMode(). + @return true when completion mode is automatic. + + @short Re-implemented from TQComboBox. + */ + 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 true, show the context menu. + @short Enables or disable the popup (context) menu. + */ + public native void setContextMenuEnabled(boolean showMenu); + /** + Returns true when the context menu is enabled. + @short Returns true 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 TQComboBox is used, which inserts the encoded URL. + @param enable If true, insert decoded URLs + @short Enables/Disables handling of URL drops. + */ + public native void setURLDropsEnabled(boolean enable); + /** + Returns true when decoded URL drops are enabled + @short Returns true 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 text. + If text is an empty string, false + is returned. + @return true if an item with the string text is in the combobox. + + @short Convenience method which iterates over all items and checks if any of them is equal to text. + */ + 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 trap 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 true 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(TQObject arg1, TQEvent 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 + TDEGlobalSettings.CompletionPopup and TDEGlobalSettings.CompletionPopupAuto. + This method will create a completion-box by calling + KLineEdit.completionBox, if none is there, yet. + + @short + */ + public native TDECompletionBox completionBox(boolean create); + public native TDECompletionBox 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(TQLineEdit 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 TQComobBox.AtTop or TQComboBox.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 + TDECompletionBase.setCompletedText. + @short Sets the completed text in the line-edit appropriately. + */ + public native void setCompletedText(String arg1); + /** + Sets items into the completion-box if completionMode() is + CompletionPopup. The popup will be shown immediately. + @short Sets items into the completion-box if completionMode() is CompletionPopup. + */ + public native void setCompletedItems(String[] items); + /** + Selects the first item that matches item. If there is no such item, + it is inserted at position index if insert is true. Otherwise, + no item is selected. + @short Selects the first item that matches item. + */ + 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 TQComboBox' implementation. Only here to not become + shadowed. + @short Simply calls TQComboBox' 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(TQWheelEvent ev); + /** + Completes text according to the completion mode. + Note: this method is not invoked if the completion mode is + set to CompletionNone. Also if the mode is set to CompletionShell + 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 hsig + 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 TDECompletion completionObject(boolean hsig); + public native TDECompletion 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 TDECompletion() 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(TDECompletion compObj, boolean hsig); + public native void setCompletionObject(TDECompletion 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 enable set to false will + cause the completion & rotation signals not to be emitted. + However, unlike setting the completion object to NULL + 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 + TDEGlobalSettings(). See below. + @param mode Completion type: + +
    • + CompletionNone: Disables completion feature. +
    • + +
    • + CompletionAuto: Attempts to find a match & + fills-in the remaining text. +
    • + +
    • + CompletionMan: Acts the same as the above + except the action has to be + manually triggered through + pre-defined completion key. +
    • + +
    • + CompletionShell: Mimics the completion feature + found in typical nix shell + environments. +
    • + +
    • + CompletionPopup: Shows all available completions at once, + in a listbox popping up. + +
    • @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 TDEGlobalSettings.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 key 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 sum 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 + "Qt.CtrlButton + Qt.Key_E" as the second argument to this + function. + @param item the feature whose key-binding needs to be set: + +
    • + TextCompletion the manual completion key-binding. +
    • + +
    • + PrevCompletionMatch the previous match key for multiple completion. +
    • + +
    • + NextCompletionMatch the next match key for for multiple completion. +
    • + +
    • + SubstringCompletion the key for substring completion +
    • + @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, TDEShortcut key); + /** + Returns the key-binding used for the specified item. + This methods returns the key-binding used to activate + the feature feature given by item. 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 item. + + @short Returns the key-binding used for the specified item. + @see #setKeyBinding + */ + public native TDEShortcut 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 TDEGlobalSettings. + 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 TDECompletion object even if + the internal pointer is NULL. 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 TDECompletion 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 item. + + @short Returns a key-binding map. + */ + // TDECompletionBase::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(TDECompletionBaseInterface delegate); + /** + Returns the delegation object. + @return the delegation object, or 0 if there is none + + @short Returns the delegation object. + @see #setDelegate + */ + protected native TDECompletionBaseInterface delegate(); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KComboBoxSignals.java b/tdejava/koala/org/trinitydesktop/koala/KComboBoxSignals.java new file mode 100644 index 00000000..69788438 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KComboBoxSignals.java @@ -0,0 +1,69 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQPopupMenu; +import org.trinitydesktop.qt.TQPixmap; +import org.trinitydesktop.qt.TQLineEdit; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQWheelEvent; + +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 not available when the widget is non-editable + or the completion mode is set to TDEGlobalSettings.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: PrevCompletionMatch, + NextCompletionMatch, RotateUp or RotateDown. See + TDECompletionBase.setKeyBinding() for details. + Note that this signal is NOT 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 TQPopupMenu 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(TQPopupMenu p); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KCommand.java b/tdejava/koala/org/trinitydesktop/koala/KCommand.java new file mode 100644 index 00000000..e9416d05 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCommand.java @@ -0,0 +1,43 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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/tdejava/koala/org/trinitydesktop/koala/KCommandHistory.java b/tdejava/koala/org/trinitydesktop/koala/KCommandHistory.java new file mode 100644 index 00000000..f4581a34 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCommandHistory.java @@ -0,0 +1,136 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; + +/** + + 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 TQObject { + protected KCommandHistory(Class dummy){super((Class) null);} + public native TQMetaObject 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 actionCollection, + 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(TDEActionCollection actionCollection, boolean withMenus) { + super((Class) null); + newKCommandHistory(actionCollection,withMenus); + } + private native void newKCommandHistory(TDEActionCollection actionCollection, boolean withMenus); + public KCommandHistory(TDEActionCollection actionCollection) { + super((Class) null); + newKCommandHistory(actionCollection); + } + private native void newKCommandHistory(TDEActionCollection 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 command you create. + Unless you set execute 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 TDEActions. + @short Undoes the last action. + */ + public native void undo(); + /** + Redoes the last undone action. + Call this if you don't use the builtin TDEActions. + @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/tdejava/koala/org/trinitydesktop/koala/KCommandHistorySignals.java b/tdejava/koala/org/trinitydesktop/koala/KCommandHistorySignals.java new file mode 100644 index 00000000..40f2999a --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCommandHistorySignals.java @@ -0,0 +1,30 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.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/tdejava/koala/org/trinitydesktop/koala/KContextMenuManager.java b/tdejava/koala/org/trinitydesktop/koala/KContextMenuManager.java new file mode 100644 index 00000000..56e30484 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KContextMenuManager.java @@ -0,0 +1,69 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPopupMenu; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQObject; + +/** + +KContextMenuManager manages configurable context popup menus. Instead +of reimplementing TQWidget.mousePressEvent() or + TQWidget.mouseReleaseEvent() and/or TQWidget.keyPressEvent(), simply +create the popup menu and insert it into the context menu manager with +the static function insert(). +Example: +
      +   KContextMenuManager.insert( myWidget, myPopupMenu );
      +
      +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: +
      +    [ContextMenus]
      +    ShowOnPress=true|false
      +
      +ShowOnPress 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: +
      +   [Keys]
      +   ...
      +   PopupContextMenu=Menu
      +   ...
      +
      +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 ( TQWidget.microFocusHint() ). + @author Matthias Ettrich + + @short Convenience class to mangage context menus. + +*/ +public class KContextMenuManager extends TQObject { + protected KContextMenuManager(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Makes popup a context popup menu for widget widget. + Ownership of the popup menu is not transferred to the context + menu manager. + @short Makes popup a context popup menu for widget widget. + */ + public static native void insert(TQWidget widget, TQPopupMenu 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/tdejava/koala/org/trinitydesktop/koala/KCursor.java b/tdejava/koala/org/trinitydesktop/koala/KCursor.java new file mode 100644 index 00000000..36f3e7ba --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCursor.java @@ -0,0 +1,200 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQCursor; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.Qt; + +/** + + A wrapper around TQCursor that allows for "themed" cursors. + Currently, the only themed cursor is a hand shaped cursor. + A typical usage would be +
      + setCursor(KCursor.handCursor());
      + 
      + @author Kurt Granroth + + @short A TQCursor 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 TQCursor 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 TQCursor 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 TQCursor 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 TQCursor 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 TQCursor 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 TQCursor 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 TQCursor 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 TQCursor 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 TQCursor 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 TQCursor 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 TQCursor 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 TQCursor sizeAllCursor(); + /** + Returns a blank or invisible cursor (static function). + @short Returns a blank or invisible cursor (static function). + */ + public static native TQCursor blankCursor(); + /** + Returns a WhatsThis cursor (static function). + @short Returns a WhatsThis cursor (static function). + */ + public static native TQCursor whatsThisCursor(); + /** + Sets auto-hiding the cursor for widget w. Enabling it will result in + the cursor being hidden when + +
    • + a key-event happens +
    • + +
    • + there are no key-events for a configured time-frame (see + setHideCursorDelay()) +
    • + 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 TQCanvasView, then you have to pass all key-events that should trigger + auto-hiding to autoHideEventFilter(). + @short Sets auto-hiding the cursor for widget w. + */ + public static native void setAutoHideCursor(TQWidget 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 customEventFilter 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(TQWidget 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: +
      +		 edit = new KEdit( this, "some edit widget" );
      +		 edit.installEventFilter( this );
      +		 KCursor.setAutoHideCursor( edit, true, true );
      +			 [...]
      +			 boolean YourClass.eventFilter( TQObject o, TQEvent e )
      +		 {
      +		     if ( o == edit ) // only that widget where you enabled auto-hide!
      +		         KCursor.autoHideEventFilter( o, e );
      +			     // now you can do your own event-processing
      +		     [...]
      +		 }
      +		 
      + 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(TQObject arg1, TQEvent 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/tdejava/koala/org/trinitydesktop/koala/KCustomMenuEditor.java b/tdejava/koala/org/trinitydesktop/koala/KCustomMenuEditor.java new file mode 100644 index 00000000..e860ab09 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KCustomMenuEditor.java @@ -0,0 +1,45 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; + +/** +*/ +public class KCustomMenuEditor extends KDialogBase { + protected KCustomMenuEditor(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Create a dialog for editing a custom menu + @short Create a dialog for editing a custom menu + */ + public KCustomMenuEditor(TQWidget parent) { + super((Class) null); + newKCustomMenuEditor(parent); + } + private native void newKCustomMenuEditor(TQWidget parent); + /** + load the custom menu + @short load the custom menu + */ + public native void load(TDEConfigBase arg1); + /** + save the custom menu + @short save the custom menu + */ + public native void save(TDEConfigBase 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/tdejava/koala/org/trinitydesktop/koala/KDCOPActionProxy.java b/tdejava/koala/org/trinitydesktop/koala/KDCOPActionProxy.java new file mode 100644 index 00000000..11fcc18f --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDCOPActionProxy.java @@ -0,0 +1,83 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The KDCOPActionProxy class provides an easy way to publish a collection of TDEAction objects + through DCOP. For the DCOP client the exported actions behave like full-fledged DCOP objects, + providing full access to the TDEAction 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 + TDEActionCollection 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 TDEActionCollection through DCOP, using the parent DCOPObject's object id to generate unique object ids for the actions. + */ + public KDCOPActionProxy(TDEActionCollection actionCollection, DCOPObjectInterface parent) { + super((Class) null); + newKDCOPActionProxy(actionCollection,parent); + } + private native void newKDCOPActionProxy(TDEActionCollection actionCollection, DCOPObjectInterface parent); + /** + Use this constructor if do not want to provide the exportable actions through a + TDEActionCollection . 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 TDEActionCollection . + */ + 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 TDEActionCollection, if the first constructor has been used. + @short Returns an action object with the given name. + */ + public native TDEAction 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. + */ + // TQMap actionMap(const TQCString& arg1); >>>> NOT CONVERTED + // TQMap 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, TDEAction 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/tdejava/koala/org/trinitydesktop/koala/KDCOPPropertyProxy.java b/tdejava/koala/org/trinitydesktop/koala/KDCOPPropertyProxy.java new file mode 100644 index 00000000..eb1794cd --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDCOPPropertyProxy.java @@ -0,0 +1,83 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; + +/** + + The KDCOPPropertyProxy class provides an easy way to publish Qt properties of a + TQObject 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 TQObject. 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 TQObject 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 TQObject argument for each + call. + @short Convenience constructor. + */ + public KDCOPPropertyProxy(TQObject object) { + newKDCOPPropertyProxy(object); + } + private native void newKDCOPPropertyProxy(TQObject 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. + */ + // TQValueList functions(); >>>> NOT CONVERTED + /** + Returns a semicolon-separated list of functions understood by the PropertyProxy for the given + TQObject argument. + Returns "property(String);setProperty(String,TQVariant);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 TQObject argument. + @see DCOPObject#functions + */ + // TQValueList functions(TQObject* 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, TQObject object); + /** + Processes the given DCOP method request by translating the request into a setProperty/property call + on the given TQObject argument. + @short Processes the given DCOP method request by translating the request into a setProperty/property call on the given TQObject argument. + */ + public static native boolean processPropertyRequest(String fun, byte[] data, StringBuffer replyType, byte[] replyData, TQObject 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/tdejava/koala/org/trinitydesktop/koala/KDCOPServiceStarter.java b/tdejava/koala/org/trinitydesktop/koala/KDCOPServiceStarter.java new file mode 100644 index 00000000..c55b7c42 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDCOPServiceStarter.java @@ -0,0 +1,80 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + A generic DCOP service starter, using TDETrader. + 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 + + @short A generic DCOP service starter, using TDETrader. + +*/ +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 TDETrader + @param preferences see TDETrader + @param error On failure, error contains a description of the error + that occurred. If the pointer is 0, the argument will be + ignored + @param dcopService On success, dcopService 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 serviceType, + and start it, to use its DCOP interface. + The default implementation uses TDETrader 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 TDETrader + @param preferences see TDETrader + @param error On failure, error contains a description of the error + that occurred. If the pointer is 0, the argument will be + ignored + @param dcopService On success, dcopService 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 serviceType, 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/tdejava/koala/org/trinitydesktop/koala/KDEDesktopMimeType.java b/tdejava/koala/org/trinitydesktop/koala/KDEDesktopMimeType.java new file mode 100644 index 00000000..c10d808c --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDEDesktopMimeType.java @@ -0,0 +1,116 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQDataStream; +import org.trinitydesktop.qt.TQPixmap; +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(TQDataStream _str, int offset) { + super((Class) null); + newKDEDesktopMimeType(_str,offset); + } + private native void newKDEDesktopMimeType(TQDataStream _str, int offset); + public native String icon(String _url, boolean _is_local); + public native String icon(KURL _url, boolean _is_local); + public native TQPixmap pixmap(KURL _url, int _group, int _force_size, int _state, StringBuffer _path); + public native TQPixmap pixmap(KURL _url, int _group, int _force_size, int _state); + public native TQPixmap pixmap(KURL _url, int _group, int _force_size); + public native TQPixmap 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 tdeio itself. Namely mount/unmount for FSDevice files. + @return the list of services + + @short Returns a list of services for the given . + */ + // TQValueList 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 . + */ + // TQValueList userDefinedServices(const TQString& arg1,bool arg2); >>>> NOT CONVERTED + /** + Overload of userDefinedServices for speed purposes: it takes a TDEConfig 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 TDEConfig so that the caller can check things in the file without having it parsed twice. + */ + // TQValueList userDefinedServices(const TQString& arg1,TDEConfig& 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-TDE-GetActionMenu extension. + @short Overload of userDefinedServices but also allows you to pass a list of urls for this file. + */ + // TQValueList userDefinedServices(const TQString& arg1,TDEConfig& arg2,bool arg3,const KURL::List& arg4); >>>> NOT CONVERTED + /** + Execute service on the list of urls. + @param urls the list of urls + @param service the service to execute + @short Execute service on the list of urls. + */ + // 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 TQPixmap pixmap(int group, int force_size, int state, StringBuffer path); + public native TQPixmap pixmap(int group, int force_size, int state); + public native TQPixmap pixmap(int group, int force_size); + public native TQPixmap 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/tdejava/koala/org/trinitydesktop/koala/KDataTool.java b/tdejava/koala/org/trinitydesktop/koala/KDataTool.java new file mode 100644 index 00000000..1cb44f6c --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDataTool.java @@ -0,0 +1,74 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQObject; + +/** + + 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 TQObject { + protected KDataTool(Class dummy){super((Class) null);} + public native TQMetaObject 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 TQObject (or 0 for parent-less KDataTools) + @param name the name of the TQObject, 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(TDEInstanceInterface 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 TDEInstanceInterface 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 data. + @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 TQString& arg1,void* arg2,const TQString& arg3,const TQString& arg4); >>>> NOT CONVERTED +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KDataToolAction.java b/tdejava/koala/org/trinitydesktop/koala/KDataToolAction.java new file mode 100644 index 00000000..1bf1b0f4 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDataToolAction.java @@ -0,0 +1,78 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; + +/** + + This class helps applications implement support for KDataTool. + The steps to follow are simple: + +
    • + query for the available tools using KDataToolInfo.query +
    • + +
    • + pass the result to KDataToolAction.dataToolActionList (with a slot) +
    • + +
    • + plug the resulting actions, either using KXMLGUIClient.plugActionList, or by hand. +
    • + 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 TDEAction { + protected KDataToolAction(Class dummy){super((Class) null);} + public native TQMetaObject 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, TQObject parent, String name) { + super((Class) null); + newKDataToolAction(text,info,command,parent,name); + } + private native void newKDataToolAction(String text, KDataToolInfo info, String command, TQObject parent, String name); + public KDataToolAction(String text, KDataToolInfo info, String command, TQObject parent) { + super((Class) null); + newKDataToolAction(text,info,command,parent); + } + private native void newKDataToolAction(String text, KDataToolInfo info, String command, TQObject 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 TDEActions + + @short Creates a list of actions from a list of information about data-tools. + */ + // TQPtrList dataToolActionList(const TQValueList& arg1,const TQObject* 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/tdejava/koala/org/trinitydesktop/koala/KDataToolActionSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDataToolActionSignals.java new file mode 100644 index 00000000..6fb8248b --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDataToolActionSignals.java @@ -0,0 +1,16 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; + +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/tdejava/koala/org/trinitydesktop/koala/KDataToolInfo.java b/tdejava/koala/org/trinitydesktop/koala/KDataToolInfo.java new file mode 100644 index 00000000..a30c0dcc --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDataToolInfo.java @@ -0,0 +1,160 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +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,TDEInstance* 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 "TQImage" 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 TQPopupMenu 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 TQPopupMenu item + + @short Returns a list of strings that you can put in a TQPopupMenu 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 TQObject (or 0 for parent-less KDataTools) + @param name the name of the TQObject, 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(TQObject parent, String name); + public native KDataTool createTool(TQObject 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 TDEInstanceInterface 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 TDETrader 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 TDETrader about installed KDataTool implementations. + */ + // TQValueList query(const TQString& arg1,const TQString& arg2,TDEInstance* 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/tdejava/koala/org/trinitydesktop/koala/KDatePicker.java b/tdejava/koala/org/trinitydesktop/koala/KDatePicker.java new file mode 100644 index 00000000..44e66517 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDatePicker.java @@ -0,0 +1,176 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQSize; +import java.util.Calendar; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; +import org.trinitydesktop.qt.TQFrame; + +/** + + 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 TQFrame { + protected KDatePicker(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** The usual constructor. The given date will be displayed + initially. + @short The usual constructor. + */ + public KDatePicker(TQWidget parent, Calendar arg2, String name) { + super((Class) null); + newKDatePicker(parent,arg2,name); + } + private native void newKDatePicker(TQWidget parent, Calendar arg2, String name); + public KDatePicker(TQWidget parent, Calendar arg2) { + super((Class) null); + newKDatePicker(parent,arg2); + } + private native void newKDatePicker(TQWidget parent, Calendar arg2); + public KDatePicker(TQWidget parent) { + super((Class) null); + newKDatePicker(parent); + } + private native void newKDatePicker(TQWidget 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(TQWidget parent, Calendar arg2, String name, int f) { + super((Class) null); + newKDatePicker(parent,arg2,name,f); + } + private native void newKDatePicker(TQWidget 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(TQWidget parent, String name) { + super((Class) null); + newKDatePicker(parent,name); + } + private native void newKDatePicker(TQWidget 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 TQSize sizeHint(); + /** + Sets the date. + @return false 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 enable = 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 enable = 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(TQObject o, TQEvent e); + protected native void resizeEvent(TQResizeEvent 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/tdejava/koala/org/trinitydesktop/koala/KDatePickerSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDatePickerSignals.java new file mode 100644 index 00000000..cc546be2 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDatePickerSignals.java @@ -0,0 +1,41 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQSize; +import java.util.Calendar; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; + +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/tdejava/koala/org/trinitydesktop/koala/KDateTable.java b/tdejava/koala/org/trinitydesktop/koala/KDateTable.java new file mode 100644 index 00000000..7baeccdd --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDateTable.java @@ -0,0 +1,167 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQSize; +import java.util.Calendar; +import org.trinitydesktop.qt.TQPainter; +import org.trinitydesktop.qt.TQFocusEvent; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; +import org.trinitydesktop.qt.TQWheelEvent; +import org.trinitydesktop.qt.TQGridView; + +/** + + 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 TQGridView { + 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 TQMetaObject metaObject(); + public native String className(); + /** + The constructor. + @short The constructor. + */ + public KDateTable(TQWidget parent, Calendar date, String name, int f) { + super((Class) null); + newKDateTable(parent,date,name,f); + } + private native void newKDateTable(TQWidget parent, Calendar date, String name, int f); + public KDateTable(TQWidget parent, Calendar date, String name) { + super((Class) null); + newKDateTable(parent,date,name); + } + private native void newKDateTable(TQWidget parent, Calendar date, String name); + public KDateTable(TQWidget parent, Calendar date) { + super((Class) null); + newKDateTable(parent,date); + } + private native void newKDateTable(TQWidget parent, Calendar date); + public KDateTable(TQWidget parent) { + super((Class) null); + newKDateTable(parent); + } + private native void newKDateTable(TQWidget parent); + public KDateTable() { + super((Class) null); + newKDateTable(); + } + private native void newKDateTable(); + /** + The constructor. + @short The constructor. + */ + public KDateTable(TQWidget parent, String name, int f) { + super((Class) null); + newKDateTable(parent,name,f); + } + private native void newKDateTable(TQWidget parent, String name, int f); + public KDateTable(TQWidget parent, String name) { + super((Class) null); + newKDateTable(parent,name); + } + private native void newKDateTable(TQWidget 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 TQSize 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, TQColor fgColor, int bgMode, TQColor bgColor); + public native void setCustomDatePainting(Calendar date, TQColor fgColor, int bgMode); + public native void setCustomDatePainting(Calendar date, TQColor 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(TQPainter arg1, int arg2, int arg3); + /** + Handle the resize events. + @short Handle the resize events. + */ + protected native void viewportResizeEvent(TQResizeEvent arg1); + /** + React on mouse clicks that select a date. + @short React on mouse clicks that select a date. + */ + protected native void contentsMousePressEvent(TQMouseEvent arg1); + protected native void wheelEvent(TQWheelEvent e); + protected native void keyPressEvent(TQKeyEvent e); + protected native void focusInEvent(TQFocusEvent e); + protected native void focusOutEvent(TQFocusEvent 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/tdejava/koala/org/trinitydesktop/koala/KDateTableSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDateTableSignals.java new file mode 100644 index 00000000..f32037fd --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDateTableSignals.java @@ -0,0 +1,43 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQSize; +import java.util.Calendar; +import org.trinitydesktop.qt.TQPainter; +import org.trinitydesktop.qt.TQFocusEvent; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; +import org.trinitydesktop.qt.TQWheelEvent; + +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(TDEPopupMenu menu, Calendar date); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KDateTimeWidget.java b/tdejava/koala/org/trinitydesktop/koala/KDateTimeWidget.java new file mode 100644 index 00000000..e3550ffd --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDateTimeWidget.java @@ -0,0 +1,83 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import java.util.Calendar; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQWidget; + +/** + + 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 + + @version $Id$ + + @short A combination of a date and a time selection widget. + @see KDateWidget + +*/ +public class KDateTimeWidget extends TQWidget { + protected KDateTimeWidget(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructs a date and time selection widget. + @short Constructs a date and time selection widget. + */ + public KDateTimeWidget(TQWidget parent, String name) { + super((Class) null); + newKDateTimeWidget(parent,name); + } + private native void newKDateTimeWidget(TQWidget parent, String name); + public KDateTimeWidget(TQWidget parent) { + super((Class) null); + newKDateTimeWidget(parent); + } + private native void newKDateTimeWidget(TQWidget 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 datetime. + @short Constructs a date and time selection widget with the initial date and time set to datetime. + */ + public KDateTimeWidget(Calendar datetime, TQWidget parent, String name) { + super((Class) null); + newKDateTimeWidget(datetime,parent,name); + } + private native void newKDateTimeWidget(Calendar datetime, TQWidget parent, String name); + public KDateTimeWidget(Calendar datetime, TQWidget parent) { + super((Class) null); + newKDateTimeWidget(datetime,parent); + } + private native void newKDateTimeWidget(Calendar datetime, TQWidget 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 datetime. + @short Changes the selected date and time to datetime. + */ + 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/tdejava/koala/org/trinitydesktop/koala/KDateTimeWidgetSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDateTimeWidgetSignals.java new file mode 100644 index 00000000..83a42e45 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDateTimeWidgetSignals.java @@ -0,0 +1,16 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import java.util.Calendar; +import org.trinitydesktop.qt.TQWidget; + +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/tdejava/koala/org/trinitydesktop/koala/KDateValidator.java b/tdejava/koala/org/trinitydesktop/koala/KDateValidator.java new file mode 100644 index 00000000..faa36474 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDateValidator.java @@ -0,0 +1,42 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import java.util.Calendar; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQValidator; + +/** + + Validates user-entered dates. + @short Validates user-entered dates. + +*/ +public class KDateValidator extends TQValidator { + protected KDateValidator(Class dummy){super((Class) null);} + public KDateValidator(TQWidget parent, String name) { + super((Class) null); + newKDateValidator(parent,name); + } + private native void newKDateValidator(TQWidget parent, String name); + public KDateValidator(TQWidget parent) { + super((Class) null); + newKDateValidator(parent); + } + private native void newKDateValidator(TQWidget 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/tdejava/koala/org/trinitydesktop/koala/KDateWidget.java b/tdejava/koala/org/trinitydesktop/koala/KDateWidget.java new file mode 100644 index 00000000..c9e0eb1a --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDateWidget.java @@ -0,0 +1,82 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import java.util.Calendar; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQWidget; + +/** + + 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 TQWidget { + protected KDateWidget(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructs a date selection widget. + @short Constructs a date selection widget. + */ + public KDateWidget(TQWidget parent, String name) { + super((Class) null); + newKDateWidget(parent,name); + } + private native void newKDateWidget(TQWidget parent, String name); + public KDateWidget(TQWidget parent) { + super((Class) null); + newKDateWidget(parent); + } + private native void newKDateWidget(TQWidget parent); + public KDateWidget() { + super((Class) null); + newKDateWidget(); + } + private native void newKDateWidget(); + /** + Constructs a date selection widget with the initial date set to date. + @short Constructs a date selection widget with the initial date set to date. + */ + public KDateWidget(Calendar date, TQWidget parent, String name) { + super((Class) null); + newKDateWidget(date,parent,name); + } + private native void newKDateWidget(Calendar date, TQWidget parent, String name); + public KDateWidget(Calendar date, TQWidget parent) { + super((Class) null); + newKDateWidget(date,parent); + } + private native void newKDateWidget(Calendar date, TQWidget 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 date. + @short Changes the selected date to date. + */ + 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/tdejava/koala/org/trinitydesktop/koala/KDateWidgetSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDateWidgetSignals.java new file mode 100644 index 00000000..20c3329d --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDateWidgetSignals.java @@ -0,0 +1,16 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import java.util.Calendar; +import org.trinitydesktop.qt.TQWidget; + +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/tdejava/koala/org/trinitydesktop/koala/KDesktopFile.java b/tdejava/koala/org/trinitydesktop/koala/KDesktopFile.java new file mode 100644 index 00000000..84dfcdd3 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDesktopFile.java @@ -0,0 +1,237 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import java.util.ArrayList; + +/** + + KDE Desktop File Management. + @author Pietro Iglio + + @short KDE Desktop File Management class. + @see TDEConfigBase + @see TDEConfig + +*/ +public class KDesktopFile extends TDEConfig { + protected KDesktopFile(Class dummy){super((Class) null);} + public native TQMetaObject 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 resType. + @param readOnly Whether the object should be read-only. + @param resType Allows you to change what sort of resource + to search for if fileName 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 file. + Actual saving to file 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 file. + */ + public native TDEConfig 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 path + 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/tdejava/koala/org/trinitydesktop/koala/KDialog.java b/tdejava/koala/org/trinitydesktop/koala/KDialog.java new file mode 100644 index 00000000..e1f1fa99 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDialog.java @@ -0,0 +1,154 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQRect; +import org.trinitydesktop.qt.TQLayoutItem; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQLayoutItemInterface; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQDialog; + +/** + + 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 + (escape = reject(), enter = accept(), 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 , Espen Sand + + @short Dialog with extended non-modal support and methods for %KDE standard compliance. + @see KDialogBase + +*/ +public class KDialog extends TQDialog { + protected KDialog(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructor. + Takes the same arguments as TQDialog. + @short Constructor. + */ + public KDialog(TQWidget parent, String name, boolean modal, int f) { + super((Class) null); + newKDialog(parent,name,modal,f); + } + private native void newKDialog(TQWidget parent, String name, boolean modal, int f); + public KDialog(TQWidget parent, String name, boolean modal) { + super((Class) null); + newKDialog(parent,name,modal); + } + private native void newKDialog(TQWidget parent, String name, boolean modal); + public KDialog(TQWidget parent, String name) { + super((Class) null); + newKDialog(parent,name); + } + private native void newKDialog(TQWidget parent, String name); + public KDialog(TQWidget parent) { + super((Class) null); + newKDialog(parent); + } + private native void newKDialog(TQWidget parent); + public KDialog() { + super((Class) null); + newKDialog(); + } + private native void newKDialog(); + /** + If the dialog starts with focus in a TQLineEdit child, + then call selectAll() on the child. + @short If the dialog starts with focus in a TQLineEdit child, then call selectAll() on the child. + */ + public native void polish(); + /** + Make a KDE compliant caption. + @param caption Your caption. Do not 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 widget 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 widget and its nested children. + */ + public static native void resizeLayout(TQWidget widget, int margin, int spacing); + /** + Resize every layout associated with lay 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 lay and its children. + */ + public static native void resizeLayout(TQLayoutItemInterface lay, int margin, int spacing); + /** + Centers widget on the desktop, taking multi-head setups into + account. If screen is -1, widget will be centered on its + current screen (if it was shown already) or on the primary screen. + If screen is -3, widget will be centered on the screen that + currently contains the mouse pointer. + screen will be ignored if a merged display (like Xinerama) is not + in use, or merged display placement is not enabled in kdeglobals. + @short Centers widget on the desktop, taking multi-head setups into account. + */ + public static native void centerOnScreen(TQWidget widget, int screen); + public static native void centerOnScreen(TQWidget widget); + /** + Places widget so that it doesn't cover a certain area of the screen. + This is typically used by the "find dialog" so that the match it finds can + be read. + For screen, see centerOnScreen + @return true on success (widget doesn't cover area anymore, or never did), + false on failure (not enough space found) + + @short Places widget so that it doesn't cover a certain area of the screen. + */ + public static native boolean avoidArea(TQWidget widget, TQRect area, int screen); + public static native boolean avoidArea(TQWidget widget, TQRect area); + /** + @short + */ + protected native void keyPressEvent(TQKeyEvent 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/tdejava/koala/org/trinitydesktop/koala/KDialogBase.java b/tdejava/koala/org/trinitydesktop/koala/KDialogBase.java new file mode 100644 index 00000000..a35fbb79 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDialogBase.java @@ -0,0 +1,1338 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQHideEvent; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQCloseEvent; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQPixmap; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQGrid; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQPushButton; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQVBox; +import org.trinitydesktop.qt.TQFrame; +import org.trinitydesktop.qt.TQHBox; + +/** + + 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, TreeList/Paged, Tabbed, Plain, Swallow and IconList + 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. +
    • Standard buttons (action buttons):
    • + 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 TQDialog.reject() + while slotOk() will run TQDialog.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. +
    • Dialog shapes:
    • + 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. +
    • Layout:
    • + 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. +
    • Standard compliance:
    • + 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 TQVBoxLayout + is 0. This situation is valid for addPage , addVBoxPage , + addHBoxPage , addGridPage , makeMainWidget , + makeVBoxMainWidget , makeHBoxMainWidget and + makeGridMainWidget as well. + Example: +
      + UrlDlg.UrlDlg( TQWidget parent, String caption,
      +                 String urltext)
      + {
      +   TQWidget page = new TQWidget( this );
      +   setMainWidget(page);
      +   TQVBoxLayout topLayout = new TQVBoxLayout( page, 0, spacingHint() );
      +   TQLabel label = new TQLabel( caption, page, "caption" );
      +   topLayout.addWidget( label );
      +   lineedit = new TQLineEdit( urltext, page, "lineedit" );
      +   lineedit.setMinimumWidth(fontMetrics().maxWidth()*20);
      +   topLayout.addWidget( lineedit );
      +   topLayout.addStretch(10);
      + }
      + 
      + If you use makeVBoxMainWidget(), then the dialog above can be made + simpler but you lose the ability to add a stretchable area: +
      + UrlDlg.UrlDlg( TQWidget parent, String caption,
      +                 String urltext)
      + {
      +   TQVBox page = makeVBoxMainWidget();
      +   TQLabel label = new TQLabel( caption, page, "caption" );
      +   lineedit = new TQLineEdit( urltext, page, "lineedit" );
      +   lineedit.setMinimumWidth(fontMetrics().maxWidth()*20);
      + }
      + 
      + 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; + + /** + +
    • + TreeList - A dialog with a tree on the left side and a + representation of the contents on the right side. +
    • + +
    • + Tabbed - A dialog using a TQTabWidget. +
    • + +
    • + Plain - A normal dialog. Use plainPage() as parent for widgets. +
    • + +
    • + Swallow - Simplifes the usage of existing widgets. You specify + the widget to be displayed by setMainWidget(). +
    • + +
    • + IconList - A dialog with an iconlist on the left side and a + representation of the contents on the right side. + +
    • @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 TQMetaObject 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 false, 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 true, 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(TQWidget 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(TQWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2, KGuiItem user3); + public KDialogBase(TQWidget 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(TQWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2); + public KDialogBase(TQWidget 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(TQWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1); + public KDialogBase(TQWidget 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(TQWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator); + public KDialogBase(TQWidget 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(TQWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton); + public KDialogBase(TQWidget parent, String name, boolean modal, String caption, int buttonMask) { + super((Class) null); + newKDialogBase(parent,name,modal,caption,buttonMask); + } + private native void newKDialogBase(TQWidget parent, String name, boolean modal, String caption, int buttonMask); + public KDialogBase(TQWidget parent, String name, boolean modal, String caption) { + super((Class) null); + newKDialogBase(parent,name,modal,caption); + } + private native void newKDialogBase(TQWidget parent, String name, boolean modal, String caption); + public KDialogBase(TQWidget parent, String name, boolean modal) { + super((Class) null); + newKDialogBase(parent,name,modal); + } + private native void newKDialogBase(TQWidget parent, String name, boolean modal); + public KDialogBase(TQWidget parent, String name) { + super((Class) null); + newKDialogBase(parent,name); + } + private native void newKDialogBase(TQWidget parent, String name); + public KDialogBase(TQWidget parent) { + super((Class) null); + newKDialogBase(parent); + } + private native void newKDialogBase(TQWidget 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 false, the rest of the + program interface (example: other dialogs) is accessible while + the dialog is open. + @param separator If true, 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, TQWidget 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, TQWidget parent, String name, boolean modal, boolean separator, KGuiItem user1, KGuiItem user2, KGuiItem user3); + public KDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, TQWidget 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, TQWidget parent, String name, boolean modal, boolean separator, KGuiItem user1, KGuiItem user2); + public KDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, TQWidget 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, TQWidget parent, String name, boolean modal, boolean separator, KGuiItem user1); + public KDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, TQWidget 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, TQWidget parent, String name, boolean modal, boolean separator); + public KDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, TQWidget 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, TQWidget parent, String name, boolean modal); + public KDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, TQWidget 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, TQWidget parent, String name); + public KDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, TQWidget parent) { + super((Class) null); + newKDialogBase(dialogFace,caption,buttonMask,defaultButton,parent); + } + private native void newKDialogBase(int dialogFace, String caption, int buttonMask, int defaultButton, TQWidget 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 false, 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 true, 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, TQWidget 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, TQWidget 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, TQWidget 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, TQWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2); + public KDialogBase(int dialogFace, int f, TQWidget 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, TQWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1); + public KDialogBase(int dialogFace, int f, TQWidget 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, TQWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton, boolean separator); + public KDialogBase(int dialogFace, int f, TQWidget 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, TQWidget parent, String name, boolean modal, String caption, int buttonMask, int defaultButton); + public KDialogBase(int dialogFace, int f, TQWidget 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, TQWidget parent, String name, boolean modal, String caption, int buttonMask); + public KDialogBase(int dialogFace, int f, TQWidget 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, TQWidget parent, String name, boolean modal, String caption); + public KDialogBase(int dialogFace, int f, TQWidget parent, String name, boolean modal) { + super((Class) null); + newKDialogBase(dialogFace,f,parent,name,modal); + } + private native void newKDialogBase(int dialogFace, int f, TQWidget parent, String name, boolean modal); + public KDialogBase(int dialogFace, int f, TQWidget parent, String name) { + super((Class) null); + newKDialogBase(dialogFace,f,parent,name); + } + private native void newKDialogBase(int dialogFace, int f, TQWidget parent, String name); + public KDialogBase(int dialogFace, int f, TQWidget parent) { + super((Class) null); + newKDialogBase(dialogFace,f,parent); + } + private native void newKDialogBase(int dialogFace, int f, TQWidget 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 buttonMask 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 Key_Escape keypress. + @param parent Parent of the dialog. + @param name Dialog name (for internal use only). + @param modal Controls dialog modality. If false, the rest of the + program interface (example: other dialogs) is accessible + while the dialog is open. + @param separator If true, 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 buttonMask can only contain Yes, No, or Cancel. + */ + public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, TQWidget 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, TQWidget parent, String name, boolean modal, boolean separator, KGuiItem yes, KGuiItem no, KGuiItem cancel); + public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, TQWidget 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, TQWidget parent, String name, boolean modal, boolean separator, KGuiItem yes, KGuiItem no); + public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, TQWidget 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, TQWidget parent, String name, boolean modal, boolean separator, KGuiItem yes); + public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, TQWidget 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, TQWidget parent, String name, boolean modal, boolean separator); + public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, TQWidget 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, TQWidget parent, String name, boolean modal); + public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, TQWidget 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, TQWidget parent, String name); + public KDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, TQWidget parent) { + super((Class) null); + newKDialogBase(caption,buttonMask,defaultButton,escapeButton,parent); + } + private native void newKDialogBase(String caption, int buttonMask, int defaultButton, int escapeButton, TQWidget 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 Vertical or Horizontal. If Horizontal + (default), the button box is positioned at the bottom of the + dialog. If Vertical 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 + TQDialog.exec() or TQDialog.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 TQDialog.exec() or TQDialog.show() is called. + */ + public native void adjustSize(); + public native TQSize sizeHint(); + public native TQSize minimumSizeHint(); + /** + Retrieve the empty page when the predefined layout is used in Plain + 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 Plain + or if you don't use any predefined layout. + + @short Retrieve the empty page when the predefined layout is used in Plain mode. + */ + public native TQFrame plainPage(); + /** + Add a page to the dialog when the class is used in TreeList , + IconList or Tabbed 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: +
      +		 TQFrame page = addPage( i18n("Layout") );
      +		 TQVBoxLayout topLayout = new TQVBoxLayout( page, 0, KDialog.spacingHint() );
      +		 TQLabel label = new TQLabel( i18n("Layout type"), page );
      +		 topLayout.addWidget( label );
      +		 ..
      +		 
      + @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 TreeList , IconList or Tabbed mode. + */ + public native TQFrame addPage(String itemName, String header, TQPixmap pixmap); + public native TQFrame addPage(String itemName, String header); + public native TQFrame 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 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. + @short This is like addPage() just above, with the difference that the first element is a list of strings. + */ + public native TQFrame addPage(String[] items, String header, TQPixmap pixmap); + public native TQFrame addPage(String[] items, String header); + public native TQFrame addPage(String[] items); + /** + Add a page to the dialog when the class is used in TreeList, + IconList or Tabbed mode. + The returned widget must be used as the toplevel widget for + this particular page. The widget contains a TQVBoxLayout + layout so the widget children are lined up vertically. You can + use it as follows: +
      +		 TQVBox page = addVBoxPage( i18n("Layout") );
      +		 TQLabel label = new TQLabel( i18n("Layout type"), page );
      +		 ..
      +		 
      + @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 TreeList, IconList or Tabbed mode. + */ + public native TQVBox addVBoxPage(String itemName, String header, TQPixmap pixmap); + public native TQVBox addVBoxPage(String itemName, String header); + public native TQVBox 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 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. + @short This is like addVBoxPage() just above, with the difference that the first element is a list of strings. + */ + public native TQVBox addVBoxPage(String[] items, String header, TQPixmap pixmap); + public native TQVBox addVBoxPage(String[] items, String header); + public native TQVBox addVBoxPage(String[] items); + /** + Add a page to the dialog when the class is used in TreeList, + IconList or Tabbed mode. + The returned widget must be used as the + toplevel widget for this particular page. The widget contains a + TQHBoxLayout 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 TreeList, IconList or Tabbed mode. + */ + public native TQHBox addHBoxPage(String itemName, String header, TQPixmap pixmap); + public native TQHBox addHBoxPage(String itemName, String header); + public native TQHBox 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. + @short This is like addHBoxPage() just above, with the difference that the first element is a list of strings. + */ + public native TQHBox addHBoxPage(String[] items, String header, TQPixmap pixmap); + public native TQHBox addHBoxPage(String[] items, String header); + public native TQHBox addHBoxPage(String[] items); + /** + Add a page to the dialog when the class is used in TreeList, + IconList or Tabbed mode. + The returned widget must be used as the + toplevel widget for this particular page. The widget contains a + TQGridLayout layout so the widget children are positioned in a grid. + @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. + @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 TreeList, IconList or Tabbed mode. + */ + public native TQGrid addGridPage(int n, int dir, String itemName, String header, TQPixmap pixmap); + public native TQGrid addGridPage(int n, int dir, String itemName, String header); + public native TQGrid 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. + @short This is like addGridPage() just above, with the difference that the first element is a list of strings. + */ + public native TQGrid addGridPage(int n, int dir, String[] items, String header, TQPixmap pixmap); + public native TQGrid addGridPage(int n, int dir, String[] items, String header); + public native TQGrid addGridPage(int n, int dir, String[] items); + /** + 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, TQPixmap pixmap); + /** + Make a main widget. + The function will make a TQFrame widget + and use setMainWidget() to register it. You can not use this + function more than once, not if you have already defined a + main widget with setMainWidget() and not if you have used the + constructor where you define the face (Plain, Swallow, Tabbed, + TreeList). + @return The main widget or 0 if any of the rules described above + were broken. + + @short Make a main widget. + */ + public native TQFrame makeMainWidget(); + /** + Make a main widget. + The function will make a TQVBox widget + and use setMainWidget() to register it. You can use this + function more than once, but not if you have already defined a + main widget with setMainWidget() and not if you have used the + constructor where you define the face (Plain, Swallow, Tabbed, + TreeList, IconList). + @return The main widget or 0 if any of the rules described above + were broken. + + @short Make a main widget. + */ + public native TQVBox makeVBoxMainWidget(); + /** + Make a main widget. + The function will make a TQHBox widget + and use setMainWidget() to register it. You can not use this + function more than once, not if you have already defined a + main widget with setMainWidget() and not if you have used the + constructor where you define the face (Plain, Swallow, Tabbed, + TreeList, IconList). + @return The main widget or 0 if any of the rules described above + were broken. + + @short Make a main widget. + */ + public native TQHBox makeHBoxMainWidget(); + /** + Make a main widget. + The function will make a TQGrid widget + and use setMainWidget() to register it. You can not use this + function more than once, not if you have already defined a + main widget with setMainWidget and not 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 TQGrid 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 true, 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 true display the button(s). + @short Hide or display the Cancel button. + */ + public native void showButtonCancel(boolean state); + /** + Sets the page with index 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 true if the page is shown, false otherwise. + + @short Sets the page with index 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(TQWidget 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 widget 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(TQWidget 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 TQWidget 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 true the dialog cannot be resized. + @short Convenience method. + */ + public native void setInitialSize(TQSize s, boolean noResize); + public native void setInitialSize(TQSize 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 true the dialog cannot be resized. + @short Convenience method. + */ + public native void incInitialSize(TQSize s, boolean noResize); + public native void incInitialSize(TQSize 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 TDEGlobal.config is preserved. + @short read the dialogs size from the configuration according to the screen size. + */ + public native TQSize 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 TDEConfig object to read from + @param groupName Name of the group to read from. The old group + of TDEGlobal.config is preserved. + @short read the dialogs size from the configuration according to the screen size. + */ + public native TQSize configDialogSize(TDEConfig 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 TDEConfig 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(TDEConfig config, String groupName, boolean global); + public native void saveDialogSize(TDEConfig 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 TQListView.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 persist 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(TQWidget 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, TQObject 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, TQObject 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 true 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 w and h + as the size of the main widget. + + @short Calculate the size hint for the dialog. + */ + public native TQSize 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 id. + Normally + you should not use this function. Never 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 TQPushButton (Martijn) + @return The action button or 0 if the button does not exists. + + @short Returns the action button that corresponds to the id. + */ + public native TQPushButton actionButton(int id); + /** + Enable or disable (gray out) a general action button. + @param id Button identifier. + @param state true 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 true 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 true 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(TQWidget 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 true 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 TQPixmap 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(TQPixmap 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(TQKeyEvent 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(TQHideEvent 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 TQDialog behavior + will take place. + @short Detects when a dialog is being closed from the window manager controls. + */ + protected native void closeEvent(TQCloseEvent 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 + TQDialog.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 + TQDialog.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 + TQDialog.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 + TQDialog.reject() is activated in regular mode and + TQDialog.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 + TQDialog.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 TQObject.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/tdejava/koala/org/trinitydesktop/koala/KDialogBaseSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDialogBaseSignals.java new file mode 100644 index 00000000..874761fe --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDialogBaseSignals.java @@ -0,0 +1,129 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQHideEvent; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQCloseEvent; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQPixmap; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQGrid; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQPushButton; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQVBox; +import org.trinitydesktop.qt.TQFrame; +import org.trinitydesktop.qt.TQHBox; + +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 not 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(TQWidget page); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KDialogQueue.java b/tdejava/koala/org/trinitydesktop/koala/KDialogQueue.java new file mode 100644 index 00000000..fc55001c --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDialogQueue.java @@ -0,0 +1,29 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQDialog; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; + +/** +*/ +public class KDialogQueue extends TQObject { + protected KDialogQueue(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + public static native void queueDialog(TQDialog 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/tdejava/koala/org/trinitydesktop/koala/KDialogSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDialogSignals.java new file mode 100644 index 00000000..b42e92da --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDialogSignals.java @@ -0,0 +1,21 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQRect; +import org.trinitydesktop.qt.TQLayoutItem; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQLayoutItemInterface; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQWidget; + +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/tdejava/koala/org/trinitydesktop/koala/KDirLister.java b/tdejava/koala/org/trinitydesktop/koala/KDirLister.java new file mode 100644 index 00000000..f5bd71cc --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDirLister.java @@ -0,0 +1,458 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import java.util.ArrayList; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQObject; + +/** + + The dir lister deals with the tdeiojob 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 : + +
    • + Create an instance. +
    • + +
    • + Connect to at least update, clear, newItem, and deleteItem. +
    • + +
    • + Call openURL - the signals will be called. +
    • + +
    • + Reuse the instance when opening a new url (openURL). +
    • + +
    • + Destroy the instance when not needed anymore (usually destructor). +
    • + 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 + + @short Helper class for the tdeiojob used to list and update a directory. + +*/ +public class KDirLister extends TQObject { + 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 TQMetaObject 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 _url, in any case. + Depending on _keep 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 _url) + + @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 _url. + @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, TQWidget 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 _keep == 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 _keep == 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 _dir. This method causes KDirLister to _only_ emit + the items of _dir 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 _dir. + */ + 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 name matches a filter in the list of name filters. + @return true if name matches a filter in the list, + otherwise false. + + @short Checks whether name matches a filter in the list of name filters. + @see #setNameFilter + */ + public native boolean matchesFilter(String name); + /** + Checks whether mime matches a filter in the list of mime types + @param mime the mimetype to find in the filter list. + @return true if name matches a filter in the list, + otherwise false. + + @short Checks whether mime 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(TQWidget 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 TQWidget 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 dir. + This method will NOT start listing dir, 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 dir. + + @short Returns the items listed for the given dir. + */ + 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 TQString& arg1,const TQPtrList& 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/tdejava/koala/org/trinitydesktop/koala/KDirListerSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDirListerSignals.java new file mode 100644 index 00000000..237145e1 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDirListerSignals.java @@ -0,0 +1,135 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import java.util.ArrayList; +import org.trinitydesktop.qt.TQWidget; + +public interface KDirListerSignals { + /** + Tell the view that we started to list _url. 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 _url. + */ + 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 _url 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 _url 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 _url 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 _url 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 _keep == false. + @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 _url. + 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 _url. + */ + 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 _fileItem == 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/tdejava/koala/org/trinitydesktop/koala/KDirNotify.java b/tdejava/koala/org/trinitydesktop/koala/KDirNotify.java new file mode 100644 index 00000000..ef0f3fb4 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDirNotify.java @@ -0,0 +1,50 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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 directory + 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 directory 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/tdejava/koala/org/trinitydesktop/koala/KDirNotifyInterface.java b/tdejava/koala/org/trinitydesktop/koala/KDirNotifyInterface.java new file mode 100644 index 00000000..c7aeb741 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDirNotifyInterface.java @@ -0,0 +1,8 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.QtSupport; +import java.util.ArrayList; + +public interface KDirNotifyInterface { +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KDirOperator.java b/tdejava/koala/org/trinitydesktop/koala/KDirOperator.java new file mode 100644 index 00000000..d0f7114f --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDirOperator.java @@ -0,0 +1,820 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPoint; +import java.util.ArrayList; +import org.trinitydesktop.qt.TQDropEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; +import org.trinitydesktop.qt.TQWidget; + +/** + + 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 TDEIO.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� 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: +
      +   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( TDEGlobal.config(), "Your KDiroperator ConfigGroup" );
      +   op.setView(KFile.Default);
      + 
      + 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 , Carsten Pfeiffer + + @short A widget for displaying files and browsing directories. + +*/ +public class KDirOperator extends TQWidget { + 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 TQMetaObject 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, TQWidget parent, String name) { + super((Class) null); + newKDirOperator(urlName,parent,name); + } + private native void newKDirOperator(KURL urlName, TQWidget parent, String name); + public KDirOperator(KURL urlName, TQWidget parent) { + super((Class) null); + newKDirOperator(urlName,parent); + } + private native void newKDirOperator(KURL urlName, TQWidget 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: +
      +		 ArrayList filter;
      +		 filter << "text/html" << "image/png" << "inode/directory";
      +		 dirOperator.setMimefilter( filter );
      +		 
      + 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 filename + the current file. filename is just the name, no path or url. + @short Clears the current selection and attempts to set filename 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 TQWidget 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 + +
    • + File +
    • + +
    • + Directory +
    • + +
    • + Files +
    • + +
    • + ExistingOnly +
    • + +
    • + LocalOnly +
    • + 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 w 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(TQWidget 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 item 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 TDECompletion 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 TDECompletion completionObject(); + /** + @return a TDECompletion 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 TDECompletion 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 TDEActionCollection.inserted() or removed(). + There are the following actions: + +
    • + popupMenu : an ActionMenu presenting a popupmenu with all actions +
    • + +
    • + up : changes to the parent directory +
    • + +
    • + back : goes back to the previous directory +
    • + +
    • + forward : goes forward in the history +
    • + +
    • + home : changes to the user's home directory +
    • + +
    • + reload : reloads the current directory +
    • + +
    • + separator : a separator +
    • + +
    • + mkdir : opens a dialog box to create a directory +
    • + +
    • + delete : deletes the selected files/directories +
    • + +
    • + sorting menu : an ActionMenu containing all sort-options +
    • + +
    • + by name : sorts by name +
    • + +
    • + by date : sorts by date +
    • + +
    • + by size : sorts by size +
    • + +
    • + reversed : reverses the sort order +
    • + +
    • + dirs first : sorts directories before files +
    • + +
    • + case insensitive : sorts case insensitively +
    • + +
    • + view menu : an ActionMenu containing all actions concerning the view +
    • + +
    • + short view : shows a simple fileview +
    • + +
    • + detailed view : shows a detailed fileview (dates, permissions ,...) +
    • + +
    • + show hidden : shows hidden files +
    • + +
    • + separate dirs : shows directories in a separate pane +
    • + +
    • + preview : shows a preview next to the fileview +
    • + +
    • + single : hides the separate view for directories or the preview +
    • + +
    • + properties : shows a KPropertiesDialog for the selected files +
    • + 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 +
      +		 actionCollection().action( "up" ).plug( someToolBar );
      +		 
      + 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 TDEActionCollection 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 TDEGlobal.config() anyway. + @short Sets the config object and the to be used group in KDirOperator. + @see #viewConfig + @see #viewConfigGroup + */ + public native void setViewConfig(TDEConfig config, String group); + /** + Returns the TDEConfig object used for saving and restoring view's + configuration. + @return the TDEConfig object used for saving and restoring view's + configuration. + + @short Returns the TDEConfig object used for saving and restoring view's configuration. + */ + public native TDEConfig 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 +
      +		 setView( KFile.Default )
      +		 
      + to apply it. + @short Reads the default settings for a view, i. + @see #setView + @see #setViewConfig + @see #writeConfig + */ + public native void readConfig(TDEConfig arg1, String group); + public native void readConfig(TDEConfig 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(TDEConfig arg1, String group); + public native void writeConfig(TDEConfig 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 TDEIO.DeleteJob to delete the given items. + @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 TDEIO.DeleteJob to delete the given items. + */ + 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 TDEIO.DeleteJob to delete the given items. + @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 TDEIO.DeleteJob to delete the given items. + */ + public native DeleteJob del(ArrayList items, TQWidget parent, boolean ask, boolean showProgress); + public native DeleteJob del(ArrayList items, TQWidget parent, boolean ask); + public native DeleteJob del(ArrayList items, TQWidget 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 b is true + @param b true if the widget should allow dropping of files + @short Reimplemented - allow dropping of files if b 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 TDEIO.CopyJob to trash the given items. + @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 TDEIO.CopyJob to trash the given items. + */ + public native CopyJob trash(ArrayList items, TQWidget parent, boolean ask, boolean showProgress); + public native CopyJob trash(ArrayList items, TQWidget parent, boolean ask); + public native CopyJob trash(ArrayList items, TQWidget 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 TQWidget 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(TQWidget 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(TQResizeEvent 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 TDEIO.PreviewJob for the currently + shown files, taking mimeFilter() and nameFilter() into account + Enables/disables the preview-action accordingly. + @short Checks if there support from TDEIO.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 item. + @short Enters the directory specified by the given item. + */ + 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, TQPoint 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 match as current item in the view and emits + completion( match ) + @short Tries to make the given match 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/tdejava/koala/org/trinitydesktop/koala/KDirOperatorSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDirOperatorSignals.java new file mode 100644 index 00000000..5d2e1243 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDirOperatorSignals.java @@ -0,0 +1,42 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPoint; +import java.util.ArrayList; +import org.trinitydesktop.qt.TQDropEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; + +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, item 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, TQDropEvent event, ArrayList urls); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KDirSelectDialog.java b/tdejava/koala/org/trinitydesktop/koala/KDirSelectDialog.java new file mode 100644 index 00000000..43e76037 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDirSelectDialog.java @@ -0,0 +1,102 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; + +/** + + A pretty dialog for a KDirSelect control for selecting directories. + @author Michael Jarrett + + @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 TQMetaObject 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 TQObject.name + @param modal if the dialog is modal or not + @short The constructor. + */ + public KDirSelectDialog(String startDir, boolean localOnly, TQWidget parent, String name, boolean modal) { + super((Class) null); + newKDirSelectDialog(startDir,localOnly,parent,name,modal); + } + private native void newKDirSelectDialog(String startDir, boolean localOnly, TQWidget parent, String name, boolean modal); + public KDirSelectDialog(String startDir, boolean localOnly, TQWidget parent, String name) { + super((Class) null); + newKDirSelectDialog(startDir,localOnly,parent,name); + } + private native void newKDirSelectDialog(String startDir, boolean localOnly, TQWidget parent, String name); + public KDirSelectDialog(String startDir, boolean localOnly, TQWidget parent) { + super((Class) null); + newKDirSelectDialog(startDir,localOnly,parent); + } + private native void newKDirSelectDialog(String startDir, boolean localOnly, TQWidget 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, TQWidget parent, String caption); + public static native KURL selectDirectory(String startDir, boolean localOnly, TQWidget 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/tdejava/koala/org/trinitydesktop/koala/KDirSize.java b/tdejava/koala/org/trinitydesktop/koala/KDirSize.java new file mode 100644 index 00000000..364fbdbd --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDirSize.java @@ -0,0 +1,80 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.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 TQMetaObject 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 lstItems. + 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(TDEIO::Job* arg1,const TDEIO::UDSEntryList& arg2); >>>> NOT CONVERTED + protected native void processList(); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KDirWatch.java b/tdejava/koala/org/trinitydesktop/koala/KDirWatch.java new file mode 100644 index 00000000..c0051beb --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDirWatch.java @@ -0,0 +1,238 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import java.util.Calendar; +import org.trinitydesktop.qt.TQObject; + +/** + + 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 + + @short Class for watching directory and file changes. + @see #self + +*/ +public class KDirWatch extends TQObject { + 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 TQMetaObject metaObject(); + public native String className(); + /** + Constructor. + Scanning begins immediately when a dir/file watch + is added. + @param parent the parent of the TQObject (or 0 for parent-less KDataTools) + @param name the name of the TQObject, can be 0 + @short Constructor. + */ + public KDirWatch(TQObject parent, String name) { + super((Class) null); + newKDirWatch(parent,name); + } + private native void newKDirWatch(TQObject parent, String name); + public KDirWatch(TQObject parent) { + super((Class) null); + newKDirWatch(parent); + } + private native void newKDirWatch(TQObject 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 watchFiles is + false (the default), the signals dirty(), created(), deleted() + can be emitted, all for the watched directory. + When watchFiles 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 path 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 path 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, + and when you have refreshed that path. + @param path the path to restart scanning + @return true if the path 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 skippedToo 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 false 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/tdejava/koala/org/trinitydesktop/koala/KDirWatchSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDirWatchSignals.java new file mode 100644 index 00000000..f1ef1abd --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDirWatchSignals.java @@ -0,0 +1,36 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +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/tdejava/koala/org/trinitydesktop/koala/KDiskFreeSp.java b/tdejava/koala/org/trinitydesktop/koala/KDiskFreeSp.java new file mode 100644 index 00000000..3eb867bc --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDiskFreeSp.java @@ -0,0 +1,57 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQObject; + +/** + + 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 TQObject { + protected KDiskFreeSp(Class dummy){super((Class) null);} + public KDiskFreeSp(TQObject parent, String name) { + super((Class) null); + newKDiskFreeSp(parent,name); + } + private native void newKDiskFreeSp(TQObject parent, String name); + public KDiskFreeSp(TQObject parent) { + super((Class) null); + newKDiskFreeSp(parent); + } + private native void newKDiskFreeSp(TQObject parent); + public KDiskFreeSp() { + super((Class) null); + newKDiskFreeSp(); + } + private native void newKDiskFreeSp(); + /** + Call this to fire a search on the disk usage information + for mountPoint. 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 mountPoint. + */ + public native int readDF(String mountPoint); + /** + Call this to fire a search on the disk usage information + for the mount point containing path. + 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 path. + */ + 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/tdejava/koala/org/trinitydesktop/koala/KDiskFreeSpSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDiskFreeSpSignals.java new file mode 100644 index 00000000..0af03899 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDiskFreeSpSignals.java @@ -0,0 +1,11 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; + +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/tdejava/koala/org/trinitydesktop/koala/KDockArea.java b/tdejava/koala/org/trinitydesktop/koala/KDockArea.java new file mode 100644 index 00000000..9f7e21a2 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDockArea.java @@ -0,0 +1,64 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPopupMenu; +import org.trinitydesktop.qt.TQPixmap; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; +import org.trinitydesktop.qt.TQDomElement; +import org.trinitydesktop.qt.TQWidget; + +/** + See {@link KDockAreaSignals} for signals emitted by KDockArea +*/ +public class KDockArea extends TQWidget { + protected KDockArea(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + public KDockArea(TQWidget parent, String name) { + super((Class) null); + newKDockArea(parent,name); + } + private native void newKDockArea(TQWidget parent, String name); + public KDockArea(TQWidget parent) { + super((Class) null); + newKDockArea(parent); + } + private native void newKDockArea(TQWidget 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, TQPixmap pixmap, TQWidget parent, String strCaption, String strTabPageLabel); + public native KDockWidget createDockWidget(String name, TQPixmap pixmap, TQWidget parent, String strCaption); + public native KDockWidget createDockWidget(String name, TQPixmap pixmap, TQWidget parent); + public native KDockWidget createDockWidget(String name, TQPixmap pixmap); + public native void writeDockConfig(TQDomElement base); + public native void readDockConfig(TQDomElement base); + public native void writeDockConfig(TDEConfig c, String group); + public native void writeDockConfig(TDEConfig c); + public native void writeDockConfig(); + public native void readDockConfig(TDEConfig c, String group); + public native void readDockConfig(TDEConfig c); + public native void readDockConfig(); + public native void activateDock(); + public native TQPopupMenu dockHideShowMenu(); + public native void makeDockVisible(KDockWidget dock); + public native void makeDockInvisible(KDockWidget dock); + public native void makeWidgetDockVisible(TQWidget widget); + public native void resizeEvent(TQResizeEvent 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/tdejava/koala/org/trinitydesktop/koala/KDockAreaSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDockAreaSignals.java new file mode 100644 index 00000000..fb37bc5a --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDockAreaSignals.java @@ -0,0 +1,18 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPopupMenu; +import org.trinitydesktop.qt.TQPixmap; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; +import org.trinitydesktop.qt.TQDomElement; + +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/tdejava/koala/org/trinitydesktop/koala/KDockMainWindow.java b/tdejava/koala/org/trinitydesktop/koala/KDockMainWindow.java new file mode 100644 index 00000000..bbe6ccfd --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDockMainWindow.java @@ -0,0 +1,221 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPopupMenu; +import org.trinitydesktop.qt.TQPixmap; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQDomElement; + +/** + + A special kind of TDEMainWindow 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: +
      + 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)
      +   ...
      + 
      + 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 TDEMainWindow that is able to have dockwidget child widgets (and member of the dockwidget class set). + +*/ +public class KDockMainWindow extends TDEMainWindow { + protected KDockMainWindow(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructs a dockmainwindow. It calls its base class constructor and does additional things concerning + to the dock stuff: + +
    • + information about the dock state of this' children gets initialized +
    • + +
    • + a dockmanager is created... +
    • + +
    • + ...and gets initialized +
    • + +
    • + the main dockwidget is set to 0 +
    • + @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(TQWidget parent, String name, int f) { + super((Class) null); + newKDockMainWindow(parent,name,f); + } + private native void newKDockMainWindow(TQWidget parent, String name, int f); + public KDockMainWindow(TQWidget parent, String name) { + super((Class) null); + newKDockMainWindow(parent,name); + } + private native void newKDockMainWindow(TQWidget parent, String name); + public KDockMainWindow(TQWidget parent) { + super((Class) null); + newKDockMainWindow(parent); + } + private native void newKDockMainWindow(TQWidget 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 TQObject 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, TQPixmap pixmap, TQWidget parent, String strCaption, String strTabPageLabel); + public native KDockWidget createDockWidget(String name, TQPixmap pixmap, TQWidget parent, String strCaption); + public native KDockWidget createDockWidget(String name, TQPixmap pixmap, TQWidget parent); + public native KDockWidget createDockWidget(String name, TQPixmap 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(TQDomElement 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(TQDomElement base); + /** + It writes the current dock state in the given section of TDEConfig. + @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 TDEConfig. + */ + public native void writeDockConfig(TDEConfig c, String group); + public native void writeDockConfig(TDEConfig c); + public native void writeDockConfig(); + /** + It reads the current dock state from the given section of TDEConfig. + @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 TDEConfig. + */ + public native void readDockConfig(TDEConfig c, String group); + public native void readDockConfig(TDEConfig 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 TQDialog, 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 TQPopupMenu 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(TQWidget 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(TQWidget 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/tdejava/koala/org/trinitydesktop/koala/KDockMainWindowSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDockMainWindowSignals.java new file mode 100644 index 00000000..c40856f2 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDockMainWindowSignals.java @@ -0,0 +1,17 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPopupMenu; +import org.trinitydesktop.qt.TQPixmap; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQDomElement; + +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/tdejava/koala/org/trinitydesktop/koala/KDockManager.java b/tdejava/koala/org/trinitydesktop/koala/KDockManager.java new file mode 100644 index 00000000..907f93a2 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDockManager.java @@ -0,0 +1,211 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQPopupMenu; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQDomElement; +import org.trinitydesktop.qt.TQObject; + +/** + + 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 TDEConfig . + 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 TQObject { + 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 TQMetaObject metaObject(); + public native String className(); + /** + Constructs a dockmanager. Some initialization happen: + +
    • + It installs an event filter for the main window, +
    • + +
    • + a control list for dock objects +
    • + +
    • + a control list for menu items concerning to menus provided by the dockmanager +
    • + +
    • + Some state variables are set +
    • + @param mainWindow the main window controlled by this + @param name the internal TQOject name + @short Constructs a dockmanager. + */ + public KDockManager(TQWidget mainWindow, String name) { + super((Class) null); + newKDockManager(mainWindow,name); + } + private native void newKDockManager(TQWidget mainWindow, String name); + public KDockManager(TQWidget mainWindow) { + super((Class) null); + newKDockManager(mainWindow); + } + private native void newKDockManager(TQWidget 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 TDEConfig + @short Saves the current state of the dockmanager and of all controlled widgets. + */ + public native void writeConfig(TDEConfig c, String group); + public native void writeConfig(TDEConfig 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 + (TQObject.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 TDEConfig + @short Like writeConfig but reads the whole stuff in. + */ + public native void readConfig(TDEConfig c, String group); + public native void readConfig(TDEConfig 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(TQDomElement 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(TQDomElement 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(TQObject object, TQEvent 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(TQWidget 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(TQWidget w); + /** + @return the popupmenu for showing/hiding dockwidgets + + @short + */ + public native TQPopupMenu dockHideShowMenu(); + /** + @param dockName an internal TQObject name + @return the dockwidget that has got that internal TQObject name + + @short + */ + public native KDockWidget getDockWidgetFromName(String dockName); + /** + Enables opaque resizing. Opaque resizing defaults to TDEGlobalSettings.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 TQSplitter. 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/tdejava/koala/org/trinitydesktop/koala/KDockManagerSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDockManagerSignals.java new file mode 100644 index 00000000..d4f3f0a6 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDockManagerSignals.java @@ -0,0 +1,28 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQPopupMenu; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQDomElement; + +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/tdejava/koala/org/trinitydesktop/koala/KDockTabGroup.java b/tdejava/koala/org/trinitydesktop/koala/KDockTabGroup.java new file mode 100644 index 00000000..c0e41ea5 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDockTabGroup.java @@ -0,0 +1,51 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQTabWidget; + +/** + + 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 TQTabWidget 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 TQTabWidget { + protected KDockTabGroup(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructs this. It just calls the method of the base class. + @short Constructs this. + */ + public KDockTabGroup(TQWidget parent, String name) { + super((Class) null); + newKDockTabGroup(parent,name); + } + private native void newKDockTabGroup(TQWidget parent, String name); + public KDockTabGroup(TQWidget parent) { + super((Class) null); + newKDockTabGroup(parent); + } + private native void newKDockTabGroup(TQWidget parent); + public KDockTabGroup() { + super((Class) null); + newKDockTabGroup(); + } + private native void newKDockTabGroup(); + public native TQWidget 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/tdejava/koala/org/trinitydesktop/koala/KDockWidget.java b/tdejava/koala/org/trinitydesktop/koala/KDockWidget.java new file mode 100644 index 00000000..8d07e5bb --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDockWidget.java @@ -0,0 +1,406 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPixmap; +import org.trinitydesktop.qt.TQPaintEvent; +import org.trinitydesktop.qt.TQPoint; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQWidget; + +/** + + 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: +
      + ...
      + KDockMainWindow mainWidget;
      + ...
      + KDockWidget dock = null;
      + dock = mainWidget.createDockWidget( "Any window caption", nicePixmap, null, i18n("window caption")); // null==no parent
      + TQWidget actualWidget = new TQWidget( dock);
      + dock.setWidget( actualWidget); // embed it
      + dock.setToolTipString(i18n("That's me")); // available when appearing as tab page
      + ...
      + 
      + 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 TQWidget { + 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 TQMetaObject metaObject(); + public native String className(); + /** + Construct a dockwidget. + Initially, docking to another and docking to this is allowed for + every DockPosition. 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, TQPixmap pixmap, TQWidget 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, TQPixmap pixmap, TQWidget parent, String strCaption, String strTabPageLabel, int f); + public KDockWidget(KDockManager dockManager, String name, TQPixmap pixmap, TQWidget parent, String strCaption, String strTabPageLabel) { + super((Class) null); + newKDockWidget(dockManager,name,pixmap,parent,strCaption,strTabPageLabel); + } + private native void newKDockWidget(KDockManager dockManager, String name, TQPixmap pixmap, TQWidget parent, String strCaption, String strTabPageLabel); + public KDockWidget(KDockManager dockManager, String name, TQPixmap pixmap, TQWidget parent, String strCaption) { + super((Class) null); + newKDockWidget(dockManager,name,pixmap,parent,strCaption); + } + private native void newKDockWidget(KDockManager dockManager, String name, TQPixmap pixmap, TQWidget parent, String strCaption); + public KDockWidget(KDockManager dockManager, String name, TQPixmap pixmap, TQWidget parent) { + super((Class) null); + newKDockWidget(dockManager,name,pixmap,parent); + } + private native void newKDockWidget(KDockManager dockManager, String name, TQPixmap pixmap, TQWidget parent); + public KDockWidget(KDockManager dockManager, String name, TQPixmap pixmap) { + super((Class) null); + newKDockWidget(dockManager,name,pixmap); + } + private native void newKDockWidget(KDockManager dockManager, String name, TQPixmap 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 spliPos 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 this. + + @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, TQPoint pos, boolean check, int tabIndex); + public native KDockWidget manualDock(KDockWidget target, int dockPos, int spliPos, TQPoint pos, boolean check); + public native KDockWidget manualDock(KDockWidget target, int dockPos, int spliPos, TQPoint 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 DockPositions + @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 DockPositions + @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 DockPositions). + + @short + */ + public native int dockSite(); + /** + Sets the embedded widget. + A TQLayout 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(TQWidget 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 TQWidget getWidget(); + /** + Sets the header of this dockwidget. + A TQLayout 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 (DockCenter), 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: + +
    • + It is a (tab) group. +
    • + +
    • + It is already invisible ;-) +
    • + +
    • + The parent of this is the KDockMainWindow. +
    • + +
    • + It isn't able to dock to another widget. + +
    • @return If it may be possible to hide this. + + @short + */ + public native boolean mayBeHide(); + /** + +
    • + It is a (tab) group. +
    • + +
    • + It is already visible ;-) +
    • + +
    • + The parent of this is the KDockMainWindow. + +
    • @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 true, if a dockback is possible, otherwise false. + + @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 TQWidget events that are interesting for dockwidgets. + @short Catches and processes some TQWidget events that are interesting for dockwidgets. + */ + public native boolean event(TQEvent arg1); + /** + Add dockwidget management actions to TQWidget.show. + @short Add dockwidget management actions to TQWidget.show. + */ + public native void show(); + /** + @return the parent widget of this if it inherits class KDockTabGroup + + @short + */ + public native KDockTabGroup parentDockTabGroup(); + public native TQWidget 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(TQWidget 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 TQWidget 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(TQPixmap 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 TQPixmap 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: + +
    • + the parent widget is the KDockMainWindow +
    • + +
    • + this is a (tab) group dockwidget +
    • + +
    • + it is not able to dock to another dockwidget + +
    • @short Checks some conditions and shows or hides the dockwidget header (drag panel). + */ + protected native void updateHeader(); + protected native void setLatestKDockContainer(TQWidget arg1); + protected native TQWidget 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(TQPaintEvent arg1); + protected native void mousePressEvent(TQMouseEvent arg1); + protected native void mouseReleaseEvent(TQMouseEvent arg1); + protected native void mouseMoveEvent(TQMouseEvent arg1); + protected native void leaveEvent(TQEvent 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/tdejava/koala/org/trinitydesktop/koala/KDockWidgetAbstractHeader.java b/tdejava/koala/org/trinitydesktop/koala/KDockWidgetAbstractHeader.java new file mode 100644 index 00000000..ca1126da --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDockWidgetAbstractHeader.java @@ -0,0 +1,60 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQFrame; + +/** + + 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 TQFrame { + protected KDockWidgetAbstractHeader(Class dummy){super((Class) null);} + public native TQMetaObject 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(TDEConfig arg1); + /** + Provides loading the current configuration. Must be overridden by an inheriting class + @short Provides loading the current configuration. + */ + public native void loadConfig(TDEConfig 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/tdejava/koala/org/trinitydesktop/koala/KDockWidgetAbstractHeaderDrag.java b/tdejava/koala/org/trinitydesktop/koala/KDockWidgetAbstractHeaderDrag.java new file mode 100644 index 00000000..b4dc7b49 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDockWidgetAbstractHeaderDrag.java @@ -0,0 +1,52 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQFrame; + +/** + + 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 TQFrame { + protected KDockWidgetAbstractHeaderDrag(Class dummy){super((Class) null);} + public native TQMetaObject 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/tdejava/koala/org/trinitydesktop/koala/KDockWidgetHeader.java b/tdejava/koala/org/trinitydesktop/koala/KDockWidgetHeader.java new file mode 100644 index 00000000..5b66382d --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDockWidgetHeader.java @@ -0,0 +1,85 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.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 TQMetaObject 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(TDEConfig 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(TDEConfig 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/tdejava/koala/org/trinitydesktop/koala/KDockWidgetHeaderDrag.java b/tdejava/koala/org/trinitydesktop/koala/KDockWidgetHeaderDrag.java new file mode 100644 index 00000000..44cbf6d6 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDockWidgetHeaderDrag.java @@ -0,0 +1,52 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPaintEvent; + +/** + + 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 TQMetaObject 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(TQPaintEvent 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/tdejava/koala/org/trinitydesktop/koala/KDockWidgetSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDockWidgetSignals.java new file mode 100644 index 00000000..93f76607 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDockWidgetSignals.java @@ -0,0 +1,50 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPixmap; +import org.trinitydesktop.qt.TQPaintEvent; +import org.trinitydesktop.qt.TQPoint; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; + +public interface KDockWidgetSignals { + /** + @short + */ + void widgetSet(TQWidget 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/tdejava/koala/org/trinitydesktop/koala/KDoubleNumInput.java b/tdejava/koala/org/trinitydesktop/koala/KDoubleNumInput.java new file mode 100644 index 00000000..7cf51d4a --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDoubleNumInput.java @@ -0,0 +1,280 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; + +/** + + KDoubleNumInput combines a TQSpinBox and optionally a TQSlider + 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 + TQSpinBox (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 TQMetaObject 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(TQWidget parent, String name) { + super((Class) null); + newKDoubleNumInput(parent,name); + } + private native void newKDoubleNumInput(TQWidget parent, String name); + public KDoubleNumInput(TQWidget parent) { + super((Class) null); + newKDoubleNumInput(parent); + } + private native void newKDoubleNumInput(TQWidget 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 TQWidget + @param name internal name for this widget + @short Constructor + */ + public KDoubleNumInput(double lower, double upper, double value, double step, int precision, TQWidget 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, TQWidget parent, String name); + public KDoubleNumInput(double lower, double upper, double value, double step, int precision, TQWidget 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, TQWidget 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 TQWidget + @param name internal name for this widget + @short Constructor + */ + public KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision, TQWidget 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, TQWidget parent, String name); + public KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision, TQWidget 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, TQWidget 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 TQSlider + @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 TQSize minimumSizeHint(); + public native boolean eventFilter(TQObject arg1, TQEvent 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 ref. It ref == 0, emitting of + relativeValueChanged is blocked and relativeValue + just returns 0. + @short Sets the reference Point to ref. + */ + public native void setReferencePoint(double ref); + /** + Sets the suffix to be displayed to suffix. 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 suffix. + @see #setSuffix + */ + public native void setSuffix(String suffix); + /** + Sets the prefix to be displayed to prefix. 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 prefix. + @see #setPrefix + */ + public native void setPrefix(String prefix); + protected native void doLayout(); + protected native void resizeEvent(TQResizeEvent 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/tdejava/koala/org/trinitydesktop/koala/KDoubleNumInputSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDoubleNumInputSignals.java new file mode 100644 index 00000000..fc626160 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDoubleNumInputSignals.java @@ -0,0 +1,26 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQResizeEvent; + +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/tdejava/koala/org/trinitydesktop/koala/KDoubleValidator.java b/tdejava/koala/org/trinitydesktop/koala/KDoubleValidator.java new file mode 100644 index 00000000..cdc444c2 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDoubleValidator.java @@ -0,0 +1,68 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQObject; +import org.trinitydesktop.qt.TQDoubleValidator; + +/** + + KDoubleValidator extends TQDoubleValidator to be + locale-aware. That means that - subject to not being disabled - + TDELocale.decimalSymbol(), TDELocale.thousandsSeparator() + and TDELocale.positiveSign() and TDELocale.negativeSign() + are respected. + @author Marc Mutz + + @short A locale-aware TQDoubleValidator. + @see KIntValidator + +*/ +public class KDoubleValidator extends TQDoubleValidator { + protected KDoubleValidator(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** Constuct a locale-aware KDoubleValidator with default range + (whatever TQDoubleValidator uses for that) and parent parent @short Constuct a locale-aware KDoubleValidator with default range (whatever TQDoubleValidator uses for that) and parent parent + */ + public KDoubleValidator(TQObject parent, String name) { + super((Class) null); + newKDoubleValidator(parent,name); + } + private native void newKDoubleValidator(TQObject parent, String name); + public KDoubleValidator(TQObject parent) { + super((Class) null); + newKDoubleValidator(parent); + } + private native void newKDoubleValidator(TQObject parent); + /** Constuct a locale-aware KDoubleValidator for range [bottom,top] and a precision of decimals decimals after the decimal + point. @short Constuct a locale-aware KDoubleValidator for range [bottom,top] and a precision of decimals decimals after the decimal point. + */ + public KDoubleValidator(double bottom, double top, int decimals, TQObject parent, String name) { + super((Class) null); + newKDoubleValidator(bottom,top,decimals,parent,name); + } + private native void newKDoubleValidator(double bottom, double top, int decimals, TQObject parent, String name); + public KDoubleValidator(double bottom, double top, int decimals, TQObject parent) { + super((Class) null); + newKDoubleValidator(bottom,top,decimals,parent); + } + private native void newKDoubleValidator(double bottom, double top, int decimals, TQObject 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/tdejava/koala/org/trinitydesktop/koala/KDualColorButton.java b/tdejava/koala/org/trinitydesktop/koala/KDualColorButton.java new file mode 100644 index 00000000..b38a5919 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDualColorButton.java @@ -0,0 +1,161 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQRect; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPaintEvent; +import org.trinitydesktop.qt.TQDragEnterEvent; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQDropEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQWidget; + +/** + + 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 + + @short A widget for selecting two related colors. + +*/ +public class KDualColorButton extends TQWidget { + protected KDualColorButton(Class dummy){super((Class) null);} + public static final int Foreground = 0; + public static final int Background = 1; + + public native TQMetaObject 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(TQWidget parent, String name, TQWidget dialogParent) { + super((Class) null); + newKDualColorButton(parent,name,dialogParent); + } + private native void newKDualColorButton(TQWidget parent, String name, TQWidget dialogParent); + public KDualColorButton(TQWidget parent, String name) { + super((Class) null); + newKDualColorButton(parent,name); + } + private native void newKDualColorButton(TQWidget parent, String name); + public KDualColorButton(TQWidget parent) { + super((Class) null); + newKDualColorButton(parent); + } + private native void newKDualColorButton(TQWidget 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(TQColor fgColor, TQColor bgColor, TQWidget parent, String name, TQWidget dialogParent) { + super((Class) null); + newKDualColorButton(fgColor,bgColor,parent,name,dialogParent); + } + private native void newKDualColorButton(TQColor fgColor, TQColor bgColor, TQWidget parent, String name, TQWidget dialogParent); + public KDualColorButton(TQColor fgColor, TQColor bgColor, TQWidget parent, String name) { + super((Class) null); + newKDualColorButton(fgColor,bgColor,parent,name); + } + private native void newKDualColorButton(TQColor fgColor, TQColor bgColor, TQWidget parent, String name); + public KDualColorButton(TQColor fgColor, TQColor bgColor, TQWidget parent) { + super((Class) null); + newKDualColorButton(fgColor,bgColor,parent); + } + private native void newKDualColorButton(TQColor fgColor, TQColor bgColor, TQWidget parent); + public KDualColorButton(TQColor fgColor, TQColor bgColor) { + super((Class) null); + newKDualColorButton(fgColor,bgColor); + } + private native void newKDualColorButton(TQColor fgColor, TQColor bgColor); + /** + Returns the current foreground color. + @short Returns the current foreground color. + */ + public native TQColor foreground(); + /** + Returns the current background color. + @short Returns the current background color. + */ + public native TQColor 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 TQColor 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 TQSize sizeHint(); + /** + Sets the foreground color. + @short Sets the foreground color. + */ + public native void setForeground(TQColor c); + /** + Sets the background color. + @short Sets the background color. + */ + public native void setBackground(TQColor 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(TQColor 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(TQRect fgRect, TQRect bgRect); + protected native void paintEvent(TQPaintEvent ev); + protected native void mousePressEvent(TQMouseEvent ev); + protected native void mouseMoveEvent(TQMouseEvent ev); + protected native void mouseReleaseEvent(TQMouseEvent ev); + protected native void dragEnterEvent(TQDragEnterEvent ev); + protected native void dropEvent(TQDropEvent 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/tdejava/koala/org/trinitydesktop/koala/KDualColorButtonSignals.java b/tdejava/koala/org/trinitydesktop/koala/KDualColorButtonSignals.java new file mode 100644 index 00000000..a8e91090 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KDualColorButtonSignals.java @@ -0,0 +1,31 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.TQRect; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPaintEvent; +import org.trinitydesktop.qt.TQDragEnterEvent; +import org.trinitydesktop.qt.TQSize; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQDropEvent; +import org.trinitydesktop.qt.TQWidget; + +public interface KDualColorButtonSignals { + /** + Emitted when the foreground color is changed. + @short Emitted when the foreground color is changed. + */ + void fgChanged(TQColor c); + /** + Emitted when the background color is changed. + @short Emitted when the background color is changed. + */ + void bgChanged(TQColor 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/tdejava/koala/org/trinitydesktop/koala/KEMailSettings.java b/tdejava/koala/org/trinitydesktop/koala/KEMailSettings.java new file mode 100644 index 00000000..13f26f83 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KEMailSettings.java @@ -0,0 +1,124 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.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/tdejava/koala/org/trinitydesktop/koala/KEdFind.java b/tdejava/koala/org/trinitydesktop/koala/KEdFind.java new file mode 100644 index 00000000..78121136 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KEdFind.java @@ -0,0 +1,58 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; + +/** + See {@link KEdFindSignals} for signals emitted by KEdFind +*/ +public class KEdFind extends KDialogBase { + protected KEdFind(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + public KEdFind(TQWidget parent, String name, boolean modal) { + super((Class) null); + newKEdFind(parent,name,modal); + } + private native void newKEdFind(TQWidget parent, String name, boolean modal); + public KEdFind(TQWidget parent, String name) { + super((Class) null); + newKEdFind(parent,name); + } + private native void newKEdFind(TQWidget parent, String name); + public KEdFind(TQWidget parent) { + super((Class) null); + newKEdFind(parent); + } + private native void newKEdFind(TQWidget 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/tdejava/koala/org/trinitydesktop/koala/KEdFindSignals.java b/tdejava/koala/org/trinitydesktop/koala/KEdFindSignals.java new file mode 100644 index 00000000..f8b50530 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KEdFindSignals.java @@ -0,0 +1,11 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; + +public interface KEdFindSignals { + void search(); + void done(); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KEdGotoLine.java b/tdejava/koala/org/trinitydesktop/koala/KEdGotoLine.java new file mode 100644 index 00000000..14e1817a --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KEdGotoLine.java @@ -0,0 +1,43 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; + +/** +*/ +public class KEdGotoLine extends KDialogBase { + protected KEdGotoLine(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + public KEdGotoLine(TQWidget parent, String name, boolean modal) { + super((Class) null); + newKEdGotoLine(parent,name,modal); + } + private native void newKEdGotoLine(TQWidget parent, String name, boolean modal); + public KEdGotoLine(TQWidget parent, String name) { + super((Class) null); + newKEdGotoLine(parent,name); + } + private native void newKEdGotoLine(TQWidget parent, String name); + public KEdGotoLine(TQWidget parent) { + super((Class) null); + newKEdGotoLine(parent); + } + private native void newKEdGotoLine(TQWidget 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/tdejava/koala/org/trinitydesktop/koala/KEdReplace.java b/tdejava/koala/org/trinitydesktop/koala/KEdReplace.java new file mode 100644 index 00000000..ce1d5a3a --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KEdReplace.java @@ -0,0 +1,67 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; + +/** + See {@link KEdReplaceSignals} for signals emitted by KEdReplace +*/ +public class KEdReplace extends KDialogBase { + protected KEdReplace(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + public KEdReplace(TQWidget parent, String name, boolean modal) { + super((Class) null); + newKEdReplace(parent,name,modal); + } + private native void newKEdReplace(TQWidget parent, String name, boolean modal); + public KEdReplace(TQWidget parent, String name) { + super((Class) null); + newKEdReplace(parent,name); + } + private native void newKEdReplace(TQWidget parent, String name); + public KEdReplace(TQWidget parent) { + super((Class) null); + newKEdReplace(parent); + } + private native void newKEdReplace(TQWidget 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/tdejava/koala/org/trinitydesktop/koala/KEdReplaceSignals.java b/tdejava/koala/org/trinitydesktop/koala/KEdReplaceSignals.java new file mode 100644 index 00000000..dd973b98 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KEdReplaceSignals.java @@ -0,0 +1,13 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; + +public interface KEdReplaceSignals { + void replace(); + void find(); + void replaceAll(); + void done(); +} diff --git a/tdejava/koala/org/trinitydesktop/koala/KEdit.java b/tdejava/koala/org/trinitydesktop/koala/KEdit.java new file mode 100644 index 00000000..723943a4 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KEdit.java @@ -0,0 +1,193 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPopupMenu; +import org.trinitydesktop.qt.TQPaintEvent; +import org.trinitydesktop.qt.TQPoint; +import org.trinitydesktop.qt.TQDragEnterEvent; +import org.trinitydesktop.qt.TQDragMoveEvent; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQCursor; +import org.trinitydesktop.qt.TQDropEvent; +import org.trinitydesktop.qt.TQTextStream; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQMultiLineEdit; + +/** + + A simple text editor for the %KDE project. + See {@link KEditSignals} for signals emitted by KEdit + @author Bernd Johannes Wuebben , Waldo Bastian + + @short A simple text editor for the %KDE project. + +*/ +public class KEdit extends TQMultiLineEdit { + 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 TQMetaObject metaObject(); + public native String className(); + /** + The usual constructor. + @short The usual constructor. + */ + public KEdit(TQWidget _parent, String name) { + super((Class) null); + newKEdit(_parent,name); + } + private native void newKEdit(TQWidget _parent, String name); + public KEdit(TQWidget _parent) { + super((Class) null); + newKEdit(_parent); + } + private native void newKEdit(TQWidget _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(TQTextStream arg1); + /** + Save text from the edit widget to a text stream. + If softWrap is false soft line wrappings are replaced with line-feeds + If softWrap is true soft line wrappings are ignored. + @short Save text from the edit widget to a text stream. + */ + public native void saveText(TQTextStream arg1, boolean softWrap); + public native void saveText(TQTextStream 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 true if a search was done. false 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(TQPopupMenu 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 TQMultiLineEdit.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 TQPopupMenu createPopupMenu(TQPoint 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(TQCursor arg1); + protected native void viewportPaintEvent(TQPaintEvent arg1); + protected native void keyPressEvent(TQKeyEvent arg1); + protected native void dragMoveEvent(TQDragMoveEvent e); + protected native void dragEnterEvent(TQDragEnterEvent e); + protected native void dropEvent(TQDropEvent e); + protected native void contentsDragMoveEvent(TQDragMoveEvent e); + protected native void contentsDragEnterEvent(TQDragEnterEvent e); + protected native void contentsDropEvent(TQDropEvent 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/tdejava/koala/org/trinitydesktop/koala/KEditListBox.java b/tdejava/koala/org/trinitydesktop/koala/KEditListBox.java new file mode 100644 index 00000000..b852cbba --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KEditListBox.java @@ -0,0 +1,236 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQListBox; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import java.util.ArrayList; +import org.trinitydesktop.qt.TQPushButton; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQGroupBox; + +/** + + 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 TQGroupBox { + 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 TQMetaObject metaObject(); + public native String className(); + /** + Create an editable listbox. + If checkAtEntering 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 checkAtEntering 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(TQWidget parent, String name, boolean checkAtEntering, int buttons) { + super((Class) null); + newKEditListBox(parent,name,checkAtEntering,buttons); + } + private native void newKEditListBox(TQWidget parent, String name, boolean checkAtEntering, int buttons); + public KEditListBox(TQWidget parent, String name, boolean checkAtEntering) { + super((Class) null); + newKEditListBox(parent,name,checkAtEntering); + } + private native void newKEditListBox(TQWidget parent, String name, boolean checkAtEntering); + public KEditListBox(TQWidget parent, String name) { + super((Class) null); + newKEditListBox(parent,name); + } + private native void newKEditListBox(TQWidget parent, String name); + public KEditListBox(TQWidget parent) { + super((Class) null); + newKEditListBox(parent); + } + private native void newKEditListBox(TQWidget parent); + public KEditListBox() { + super((Class) null); + newKEditListBox(); + } + private native void newKEditListBox(); + /** + Create an editable listbox. + The same as the other constructor, additionally it takes + title, which will be the title of the frame around the listbox. + @short Create an editable listbox. + */ + public KEditListBox(String title, TQWidget parent, String name, boolean checkAtEntering, int buttons) { + super((Class) null); + newKEditListBox(title,parent,name,checkAtEntering,buttons); + } + private native void newKEditListBox(String title, TQWidget parent, String name, boolean checkAtEntering, int buttons); + public KEditListBox(String title, TQWidget parent, String name, boolean checkAtEntering) { + super((Class) null); + newKEditListBox(title,parent,name,checkAtEntering); + } + private native void newKEditListBox(String title, TQWidget parent, String name, boolean checkAtEntering); + public KEditListBox(String title, TQWidget parent, String name) { + super((Class) null); + newKEditListBox(title,parent,name); + } + private native void newKEditListBox(String title, TQWidget parent, String name); + public KEditListBox(String title, TQWidget parent) { + super((Class) null); + newKEditListBox(title,parent); + } + private native void newKEditListBox(String title, TQWidget 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 TQString& arg1,const KEditListBox::CustomEditor& arg2,TQWidget* arg3,const char* arg4,bool arg5,int arg6); >>>> NOT CONVERTED + // KEditListBox* KEditListBox(const TQString& arg1,const KEditListBox::CustomEditor& arg2,TQWidget* arg3,const char* arg4,bool arg5); >>>> NOT CONVERTED + // KEditListBox* KEditListBox(const TQString& arg1,const KEditListBox::CustomEditor& arg2,TQWidget* arg3,const char* arg4); >>>> NOT CONVERTED + // KEditListBox* KEditListBox(const TQString& arg1,const KEditListBox::CustomEditor& arg2,TQWidget* arg3); >>>> NOT CONVERTED + // KEditListBox* KEditListBox(const TQString& arg1,const KEditListBox::CustomEditor& arg2); >>>> NOT CONVERTED + /** + Return a pointer to the embedded TQListBox. + @short Return a pointer to the embedded TQListBox. + */ + public native TQListBox listBox(); + /** + Return a pointer to the embedded TQLineEdit. + @short Return a pointer to the embedded TQLineEdit. + */ + public native KLineEdit lineEdit(); + /** + Return a pointer to the Add button + @short Return a pointer to the Add button + */ + public native TQPushButton addButton(); + /** + Return a pointer to the Remove button + @short Return a pointer to the Remove button + */ + public native TQPushButton removeButton(); + /** + Return a pointer to the Up button + @short Return a pointer to the Up button + */ + public native TQPushButton upButton(); + /** + Return a pointer to the Down button + @short Return a pointer to the Down button + */ + public native TQPushButton downButton(); + /** + See TQListBox.count() + @short See TQListBox.count() + */ + public native int count(); + /** + See TQListBox.insertStringList() + @short See TQListBox.insertStringList() + */ + public native void insertStringList(String[] list, int index); + public native void insertStringList(String[] list); + /** + See TQListBox.insertStringList() + @short See TQListBox.insertStringList() + */ + public native void insertStrList(String[] list, int index); + public native void insertStrList(String[] list); + /** + See TQListBox.insertStrList() + @short See TQListBox.insertStrList() + */ + public native void insertStrList(String[] list, int numStrings, int index); + /** + See TQListBox.insertItem() + @short See TQListBox.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 TQListBox.text() + @short See TQListBox.text() + */ + public native String text(int index); + /** + See TQListBox.currentItem() + @short See TQListBox.currentItem() + */ + public native int currentItem(); + /** + See TQListBox.currentText() + @short See TQListBox.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 items + @short Clears the listbox and sets the contents to items + */ + 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/tdejava/koala/org/trinitydesktop/koala/KEditListBoxSignals.java b/tdejava/koala/org/trinitydesktop/koala/KEditListBoxSignals.java new file mode 100644 index 00000000..19e6fc03 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KEditListBoxSignals.java @@ -0,0 +1,25 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQListBox; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import java.util.ArrayList; +import org.trinitydesktop.qt.TQPushButton; +import org.trinitydesktop.qt.TQWidget; + +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/tdejava/koala/org/trinitydesktop/koala/KEditSignals.java b/tdejava/koala/org/trinitydesktop/koala/KEditSignals.java new file mode 100644 index 00000000..eb40f577 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KEditSignals.java @@ -0,0 +1,40 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPopupMenu; +import org.trinitydesktop.qt.TQPaintEvent; +import org.trinitydesktop.qt.TQPoint; +import org.trinitydesktop.qt.TQDragEnterEvent; +import org.trinitydesktop.qt.TQDragMoveEvent; +import org.trinitydesktop.qt.TQKeyEvent; +import org.trinitydesktop.qt.TQCursor; +import org.trinitydesktop.qt.TQDropEvent; +import org.trinitydesktop.qt.TQTextStream; +import org.trinitydesktop.qt.TQWidget; + +public interface KEditSignals { + /** This signal is emitted if the user dropped a URL over the text editor + TQMultiLineEdit widget. + Note that the user can drop also Text on it, but + this is already handled internally by TQMultiLineEdit. + @short This signal is emitted if the user dropped a URL over the text editor TQMultiLineEdit widget. + */ + void gotUrlDrop(TQDropEvent 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/tdejava/koala/org/trinitydesktop/koala/KEditToolbar.java b/tdejava/koala/org/trinitydesktop/koala/KEditToolbar.java new file mode 100644 index 00000000..7705bfe0 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KEditToolbar.java @@ -0,0 +1,242 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; + +/** + + 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: +
      + KEditToolbar dlg(actionCollection());
      + if (dlg.exec())
      + {
      +   createGUI();
      + }
      + 
      + That code snippet also takes care of redrawing the menu and + toolbars if you have made any changes. + If you are using TDEMainWindow's settings methods (either save/apply manually + or autoSaveSettings), you should write something like: +
      + void MyClass.slotConfigureToolbars()
      + {
      +   saveMainWindowSettings( TDEGlobal.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( TDEGlobal.config(), "MainWindow" );
      + }
      + 
      + 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: +
      + saveMainWindowSettings( TDEGlobal.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( TDEGlobal.config(), "MainWindow" );
      + }
      + 
      + See {@link KEditToolbarSignals} for signals emitted by KEditToolbar + @author Kurt Granroth + + @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 TQMetaObject metaObject(); + public native String className(); + /** + Constructor for apps that do not use components. + This is the + only entry point to this class. You must 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 TDEMainWindow 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). + @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 The parent of the dialog. + @param name An internal name. + @short Constructor for apps that do not use components. + */ + public KEditToolbar(TDEActionCollection collection, String xmlfile, boolean global, TQWidget parent, String name) { + super((Class) null); + newKEditToolbar(collection,xmlfile,global,parent,name); + } + private native void newKEditToolbar(TDEActionCollection collection, String xmlfile, boolean global, TQWidget parent, String name); + public KEditToolbar(TDEActionCollection collection, String xmlfile, boolean global, TQWidget parent) { + super((Class) null); + newKEditToolbar(collection,xmlfile,global,parent); + } + private native void newKEditToolbar(TDEActionCollection collection, String xmlfile, boolean global, TQWidget parent); + public KEditToolbar(TDEActionCollection collection, String xmlfile, boolean global) { + super((Class) null); + newKEditToolbar(collection,xmlfile,global); + } + private native void newKEditToolbar(TDEActionCollection collection, String xmlfile, boolean global); + public KEditToolbar(TDEActionCollection collection, String xmlfile) { + super((Class) null); + newKEditToolbar(collection,xmlfile); + } + private native void newKEditToolbar(TDEActionCollection collection, String xmlfile); + public KEditToolbar(TDEActionCollection collection) { + super((Class) null); + newKEditToolbar(collection); + } + private native void newKEditToolbar(TDEActionCollection collection); + public KEditToolbar(String defaultToolbar, TDEActionCollection collection, String xmlfile, boolean global, TQWidget parent, String name) { + super((Class) null); + newKEditToolbar(defaultToolbar,collection,xmlfile,global,parent,name); + } + private native void newKEditToolbar(String defaultToolbar, TDEActionCollection collection, String xmlfile, boolean global, TQWidget parent, String name); + public KEditToolbar(String defaultToolbar, TDEActionCollection collection, String xmlfile, boolean global, TQWidget parent) { + super((Class) null); + newKEditToolbar(defaultToolbar,collection,xmlfile,global,parent); + } + private native void newKEditToolbar(String defaultToolbar, TDEActionCollection collection, String xmlfile, boolean global, TQWidget parent); + public KEditToolbar(String defaultToolbar, TDEActionCollection collection, String xmlfile, boolean global) { + super((Class) null); + newKEditToolbar(defaultToolbar,collection,xmlfile,global); + } + private native void newKEditToolbar(String defaultToolbar, TDEActionCollection collection, String xmlfile, boolean global); + public KEditToolbar(String defaultToolbar, TDEActionCollection collection, String xmlfile) { + super((Class) null); + newKEditToolbar(defaultToolbar,collection,xmlfile); + } + private native void newKEditToolbar(String defaultToolbar, TDEActionCollection collection, String xmlfile); + public KEditToolbar(String defaultToolbar, TDEActionCollection collection) { + super((Class) null); + newKEditToolbar(defaultToolbar,collection); + } + private native void newKEditToolbar(String defaultToolbar, TDEActionCollection 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: +
      +		 KEditToolbar edit(factory());
      +		 if ( edit.exec() )
      +		 ...
      +		 
      + @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 TDEMainWindow.guiFactory(). + This works, but only _if_ setting conserveMemory to false when calling + TDEMainWindow.createGUI()! If not, use the other KEditToolbar constructor. + @short Constructor for KParts based apps. + */ + public KEditToolbar(KXMLGUIFactory factory, TQWidget parent, String name) { + super((Class) null); + newKEditToolbar(factory,parent,name); + } + private native void newKEditToolbar(KXMLGUIFactory factory, TQWidget parent, String name); + public KEditToolbar(KXMLGUIFactory factory, TQWidget parent) { + super((Class) null); + newKEditToolbar(factory,parent); + } + private native void newKEditToolbar(KXMLGUIFactory factory, TQWidget 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, TQWidget parent, String name) { + super((Class) null); + newKEditToolbar(defaultToolbar,factory,parent,name); + } + private native void newKEditToolbar(String defaultToolbar, KXMLGUIFactory factory, TQWidget parent, String name); + public KEditToolbar(String defaultToolbar, KXMLGUIFactory factory, TQWidget parent) { + super((Class) null); + newKEditToolbar(defaultToolbar,factory,parent); + } + private native void newKEditToolbar(String defaultToolbar, KXMLGUIFactory factory, TQWidget 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/tdejava/koala/org/trinitydesktop/koala/KEditToolbarSignals.java b/tdejava/koala/org/trinitydesktop/koala/KEditToolbarSignals.java new file mode 100644 index 00000000..3c28e6c3 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KEditToolbarSignals.java @@ -0,0 +1,16 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQWidget; + +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/tdejava/koala/org/trinitydesktop/koala/KEditToolbarWidget.java b/tdejava/koala/org/trinitydesktop/koala/KEditToolbarWidget.java new file mode 100644 index 00000000..b4ccaffa --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KEditToolbarWidget.java @@ -0,0 +1,410 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQDomDocument; +import org.trinitydesktop.qt.TQListViewItem; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQDropEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQDomElement; +import org.trinitydesktop.qt.TQWidget; + +/** + + 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 + + @version $Id$ + + @short A widget used to customize or configure toolbars. + +*/ +public class KEditToolbarWidget extends TQWidget implements KXMLGUIClientInterface { + protected KEditToolbarWidget(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructor. This is the only entry point to this class. You + must 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 TDEMainWindow 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(TDEActionCollection collection, String xmlfile, boolean global, TQWidget parent) { + super((Class) null); + newKEditToolbarWidget(collection,xmlfile,global,parent); + } + private native void newKEditToolbarWidget(TDEActionCollection collection, String xmlfile, boolean global, TQWidget parent); + public KEditToolbarWidget(TDEActionCollection collection, String xmlfile, boolean global) { + super((Class) null); + newKEditToolbarWidget(collection,xmlfile,global); + } + private native void newKEditToolbarWidget(TDEActionCollection collection, String xmlfile, boolean global); + public KEditToolbarWidget(TDEActionCollection collection, String xmlfile) { + super((Class) null); + newKEditToolbarWidget(collection,xmlfile); + } + private native void newKEditToolbarWidget(TDEActionCollection collection, String xmlfile); + public KEditToolbarWidget(TDEActionCollection collection) { + super((Class) null); + newKEditToolbarWidget(collection); + } + private native void newKEditToolbarWidget(TDEActionCollection collection); + public KEditToolbarWidget(String defaultToolbar, TDEActionCollection collection, String file, boolean global, TQWidget parent) { + super((Class) null); + newKEditToolbarWidget(defaultToolbar,collection,file,global,parent); + } + private native void newKEditToolbarWidget(String defaultToolbar, TDEActionCollection collection, String file, boolean global, TQWidget parent); + public KEditToolbarWidget(String defaultToolbar, TDEActionCollection collection, String file, boolean global) { + super((Class) null); + newKEditToolbarWidget(defaultToolbar,collection,file,global); + } + private native void newKEditToolbarWidget(String defaultToolbar, TDEActionCollection collection, String file, boolean global); + public KEditToolbarWidget(String defaultToolbar, TDEActionCollection collection, String file) { + super((Class) null); + newKEditToolbarWidget(defaultToolbar,collection,file); + } + private native void newKEditToolbarWidget(String defaultToolbar, TDEActionCollection collection, String file); + public KEditToolbarWidget(String defaultToolbar, TDEActionCollection collection) { + super((Class) null); + newKEditToolbarWidget(defaultToolbar,collection); + } + private native void newKEditToolbarWidget(String defaultToolbar, TDEActionCollection 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: +
      +		 KEditToolbar edit(factory());
      +		 if ( edit.exec() )
      +		 ...
      +		 
      + @param factory Your application's factory object + @param parent This widget's parent + @short Constructor for KParts based apps. + */ + public KEditToolbarWidget(KXMLGUIFactory factory, TQWidget parent) { + super((Class) null); + newKEditToolbarWidget(factory,parent); + } + private native void newKEditToolbarWidget(KXMLGUIFactory factory, TQWidget parent); + public KEditToolbarWidget(KXMLGUIFactory factory) { + super((Class) null); + newKEditToolbarWidget(factory); + } + private native void newKEditToolbarWidget(KXMLGUIFactory factory); + public KEditToolbarWidget(String defaultToolbar, KXMLGUIFactory factory, TQWidget parent) { + super((Class) null); + newKEditToolbarWidget(defaultToolbar,factory,parent); + } + private native void newKEditToolbarWidget(String defaultToolbar, KXMLGUIFactory factory, TQWidget parent); + public KEditToolbarWidget(String defaultToolbar, KXMLGUIFactory factory) { + super((Class) null); + newKEditToolbarWidget(defaultToolbar,factory); + } + private native void newKEditToolbarWidget(String defaultToolbar, KXMLGUIFactory factory); + /** + @short + */ + public native TDEActionCollection actionCollection(); + /** + Save any changes the user made. The file will be in the user's + local directory (usually $HOME/.trinity/share/apps/\). 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,TQListViewItem* arg2,bool arg3); >>>> NOT CONVERTED + // void insertActive(ToolbarItem* arg1,TQListViewItem* arg2); >>>> NOT CONVERTED + // void removeActive(ToolbarItem* arg1); >>>> NOT CONVERTED + // void moveActive(ToolbarItem* arg1,TQListViewItem* arg2); >>>> NOT CONVERTED + protected native void initNonKPart(TDEActionCollection 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(TQDomElement elem); + protected native void updateLocal(TQDomElement elem); + protected native void slotToolbarSelected(String text); + protected native void slotInactiveSelected(TQListViewItem item); + protected native void slotActiveSelected(TQListViewItem item); + protected native void slotDropped(TDEListView list, TQDropEvent e, TQListViewItem 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 TDEAction action(String name); + /** + Retrieves an action for a given TQDomElement. The default + implementation uses the "name" attribute to query the action + object via the other action() method. + @short Retrieves an action for a given TQDomElement. + */ + public native TDEAction action(TQDomElement element); + /** + @return The instance ( TDEInstance ) for this GUI client. + + @short + */ + public native TDEInstanceInterface instance(); + /** + @return The parsed XML in a TQDomDocument, set by + setXMLFile() or setXML(). + This document describes the layout of the GUI. + + @short + */ + public native TQDomDocument 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(TQDomDocument doc); + /** + @short + */ + public native TQDomDocument 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 child from the client's children list. + @short Removes the given child 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 TQPtrList* 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

      \

      tag. E.g. +
      +		 
      +		 
      +		   
      +		     ...